diff --git a/.env.development b/.env.development index c00ccb1..40eeb46 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ MP_API_BASE_URL=http://localhost:8080 MP_IMAGE_URL=https://patient.youcan365.com MP_CACHE_PREFIX=development -MP_WX_APP_ID=wx93af55767423938e +MP_WX_APP_ID=wx1d8337a40c11d66c MP_CORP_ID=wwe3fb2faa52cf9dfb MP_TIM_SDK_APP_ID=1600123876 MP_INVITE_TEAMMATE_QRCODE=https://patient.youcan365.com/invite-teammate diff --git a/.env.localhost b/.env.localhost index c00ccb1..40eeb46 100644 --- a/.env.localhost +++ b/.env.localhost @@ -1,7 +1,7 @@ MP_API_BASE_URL=http://localhost:8080 MP_IMAGE_URL=https://patient.youcan365.com MP_CACHE_PREFIX=development -MP_WX_APP_ID=wx93af55767423938e +MP_WX_APP_ID=wx1d8337a40c11d66c MP_CORP_ID=wwe3fb2faa52cf9dfb MP_TIM_SDK_APP_ID=1600123876 MP_INVITE_TEAMMATE_QRCODE=https://patient.youcan365.com/invite-teammate diff --git a/baseData/index.js b/baseData/index.js new file mode 100644 index 0000000..0b54e87 --- /dev/null +++ b/baseData/index.js @@ -0,0 +1,39 @@ +export const ToDoEventType = { + followUpNoShow: "未到院回访", + followUpNoDeal: "未成交回访", + followUp: "诊后回访", + followUpPostSurgery: "术后回访", + followUpPostTreatment: "治疗后回访", + appointmentReminder: "就诊提醒", + followUpReminder: "复诊提醒", + medicationReminder: "用药提醒", + serviceSummary: "咨询服务", + eventNotification: "活动通知", + ContentReminder: "宣教发送", + questionnaire: "问卷调查", + followUpComplaint: "投诉回访", + followUpActivity: "活动回访", + other: "其他", + Feedback: "意见反馈", + // 预约相关服务类型 + treatmentAppointment: "治疗预约", + followupAppointment: "复诊预约", + confirmArrival: "确认到院", + prenatalFollowUp: "孕期回访", +}; + +export const statusNames = { + notStart: "未开始", + treated: "已完成", + processing: "待处理", + cancelled: "已取消", + expired: "已过期", +}; + +export const statusClassNames = { + notStart: "text-primary", + treated: "text-success", + processing: "text-danger", + cancelled: "text-gray", + expired: "text-gray", +} \ No newline at end of file diff --git a/components/full-page.vue b/components/full-page.vue index 45eefc8..4453441 100644 --- a/components/full-page.vue +++ b/components/full-page.vue @@ -7,8 +7,14 @@ - + @@ -16,22 +22,22 @@ - + diff --git a/hooks/usePageList.js b/hooks/usePageList.js new file mode 100644 index 0000000..5792d48 --- /dev/null +++ b/hooks/usePageList.js @@ -0,0 +1,33 @@ +import { computed, ref, watch } from "vue"; +import useDebounce from '@/utils/useDebounce' + +export default function usePageList(callback, options = {}) { + const keyword = ref('') + const list = ref([]) + const page = ref(1) + const pageSize = ref(options.pageSize || 20) + const pages = ref(0); + const loading = ref(false) + const total = ref(0) + + const hasMore = computed(() => page.value < pages.value) + + const handleKeywordChange = useDebounce(() => { + getList() + }, options.debounce || 1000) + + function changePage(p) { + if (loading.value) return + page.value = p + getList() + } + + function getList() { + typeof callback === 'function' && callback() + } + + watch(keyword, handleKeywordChange); + + return { total, page, pageSize, keyword, list, pages, changePage, loading, hasMore } + +} diff --git a/manifest.json b/manifest.json index dbbc303..36d7ad9 100644 --- a/manifest.json +++ b/manifest.json @@ -50,7 +50,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wx93af55767423938e", + "appid" : "wx1d8337a40c11d66c", "setting" : { "urlCheck" : false }, diff --git a/pages.json b/pages.json index a665207..c2a03ed 100644 --- a/pages.json +++ b/pages.json @@ -115,6 +115,12 @@ "navigationBarTitleText": "病历详情" } }, + { + "path": "pages/case/medical-case-form", + "style": { + "navigationBarTitleText": "添加病历" + } + }, { "path": "pages/case/service-record-detail", "style": { diff --git a/pages/case/medical-case-form.vue b/pages/case/medical-case-form.vue new file mode 100644 index 0000000..532e89b --- /dev/null +++ b/pages/case/medical-case-form.vue @@ -0,0 +1,473 @@ +