From af36ae256c1aa78058e65499e7417ca0e3c68cd6 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Thu, 21 Sep 2023 10:53:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A3=E8=80=85=E7=AE=A1=E7=90=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/patient/list.js | 8 +- src/api/prescription/list.js | 18 + src/components/familyModal.vue | 405 +++++++---------- src/components/tableUnit.vue | 10 +- src/views/patient/family-list/index.vue | 209 ++------- src/views/patient/patient-list/index.vue | 141 ++++-- .../prescription/prescription-list/index.vue | 425 ++++++++++++++++++ 7 files changed, 758 insertions(+), 458 deletions(-) create mode 100644 src/api/prescription/list.js create mode 100644 src/views/prescription/prescription-list/index.vue diff --git a/src/api/patient/list.js b/src/api/patient/list.js index aeeb1c6..8564b2b 100644 --- a/src/api/patient/list.js +++ b/src/api/patient/list.js @@ -16,4 +16,10 @@ export function getPatientDetail(id){ method: 'get' }) } - \ No newline at end of file + export function changeStatus(id,data){ + return request({ + url:'/admin/patient/status/'+id, + method: 'put', + data + }) + } \ No newline at end of file diff --git a/src/api/prescription/list.js b/src/api/prescription/list.js new file mode 100644 index 0000000..d1536a0 --- /dev/null +++ b/src/api/prescription/list.js @@ -0,0 +1,18 @@ +import request from '../../utils/request' + +const url = '/admin/prescription'; + + +export function getPrescriptionList(params){ + return request({ + url:'/admin/prescription', + method: 'get', + params + }) +} +export function getPrescriptionDetail(id){ + return request({ + url:'/admin/prescription/'+id, + method: 'get' + }) + } diff --git a/src/components/familyModal.vue b/src/components/familyModal.vue index c9be3ab..ef20ca9 100644 --- a/src/components/familyModal.vue +++ b/src/components/familyModal.vue @@ -1,252 +1,193 @@ \ No newline at end of file + + \ No newline at end of file diff --git a/src/components/tableUnit.vue b/src/components/tableUnit.vue index 18fc4c2..89e4a60 100644 --- a/src/components/tableUnit.vue +++ b/src/components/tableUnit.vue @@ -35,9 +35,9 @@ const props = defineProps({ } }); -const { data, columns,pagination} = toRefs(props); - -// watch(()=>props.data,(value)=>{ -// data.value=value; -// },{immediate:true}) +const { data,columns,pagination} = toRefs(props); +const emits = defineEmits(['handleFamilyDetail']); + const handleDetail=(record)=>{ + emits('handleFamilyDetail',record.family_id) + } \ No newline at end of file diff --git a/src/views/patient/family-list/index.vue b/src/views/patient/family-list/index.vue index 41f5bc4..de56dd8 100644 --- a/src/views/patient/family-list/index.vue +++ b/src/views/patient/family-list/index.vue @@ -8,6 +8,12 @@ + + + 搜索 @@ -58,151 +64,15 @@ 详情 - - 修改 + - - -
-
-
基本信息
-
- - - - - {{modalForm.card_name}} ({{modalForm.sex==1?'男,':'女,'}}{{modalForm.age -}}岁) - - - - - -
-
{{modalForm.id_number_mask}}
- -
-
-
{{id_card_num}}
- -
-
-
-
- - - -
-
{{modalForm.mobile_mask}}
- -
-
-
{{family_mobile}}
- -
-
-
-
- -
-
-
所属账号
-
- - - - {{modalForm.user.user_name}} - - - - - -
-
{{modalForm.user.mobile}}
- -
-
-
{{count_mobile}}
- -
-
-
-
- - - - {{formatRelation(modalForm.relation)}} - - - - - - -
-
-
就诊人信息
-
- - - - - - - -
-
-
收获地址
-
-
-
- - - - {{ item.consignee_name}} - - - - - {{ item.consignee_tel}} - - - - - - - {{ item.province}} {{item.city}}{{item.county}}{{item.address}} - - - -
-
- -
-
-
-
操作
-
- - - - - 禁用 - - - - - -
- + @@ -219,9 +89,9 @@ + + \ No newline at end of file