From 6e79229cbc0ecc7b27dfaf63350c59c503f59836 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Sun, 8 Dec 2024 22:36:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=81=A5=E5=BA=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=EF=BC=8C=E6=A1=A3=E6=A1=88=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/health/processRecord.js | 44 ++ src/pages.json | 16 +- src/pages/health/index.vue | 3 +- src/pages/health/processRecord/addEdit.vue | 258 ++++++++++ src/pages/health/processRecord/list.vue | 447 ++++++++++++++++++ .../health/temperatureRecord/addEdit.vue | 1 - 6 files changed, 766 insertions(+), 3 deletions(-) create mode 100644 src/api/health/processRecord.js create mode 100644 src/pages/health/processRecord/addEdit.vue create mode 100644 src/pages/health/processRecord/list.vue diff --git a/src/api/health/processRecord.js b/src/api/health/processRecord.js new file mode 100644 index 0000000..3a024d8 --- /dev/null +++ b/src/api/health/processRecord.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询档案过程记录列表 +export function listProcessRecord(query) { + return request({ + url: '/health/processRecord/list', + method: 'get', + params: query + }) +} + +// 查询档案过程记录详细 +export function getProcessRecord(id) { + return request({ + url: '/health/processRecord/' + id, + method: 'get' + }) +} + +// 新增档案过程记录 +export function addProcessRecord(data) { + return request({ + url: '/health/processRecord', + method: 'post', + data + }) +} + +// 修改档案过程记录 +export function updateProcessRecord(data) { + return request({ + url: '/health/processRecord', + method: 'put', + data + }) +} + +// 删除档案过程记录 +export function delProcessRecord(id) { + return request({ + url: '/health/processRecord/' + id, + method: 'delete' + }) +} diff --git a/src/pages.json b/src/pages.json index 0ed06a4..df17864 100644 --- a/src/pages.json +++ b/src/pages.json @@ -137,7 +137,21 @@ "style": { "navigationBarTitleText": "体温记录" } - }, { + } , + { + "path": "pages/health/processRecord/list", + "style": { + "navigationBarTitleText": "档案过程记录" + } + } + , + { + "path": "pages/health/processRecord/addEdit", + "style": { + "navigationBarTitleText": "档案过程记录" + } + }, + { "path": "pages/health/heightWeightRecord/list", "style": { "navigationBarTitleText": "身高体重记录" diff --git a/src/pages/health/index.vue b/src/pages/health/index.vue index d7d0aa8..739f9d6 100644 --- a/src/pages/health/index.vue +++ b/src/pages/health/index.vue @@ -39,7 +39,8 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作 const healthGridList=ref([ { path: '/pages/health/person/list', text: '成员管理', icon: 'staff-filled', permission: 'health:person:list' }, - { path: '/pages/health/healthRecord/list', text: '健康档案', icon: 'list', permission: 'health:healthRecord:list' }, + { path: '/pages/health/healthRecord/list', text: '健康档案', icon: 'bars', permission: 'health:healthRecord:list' }, + { path: '/pages/health/processRecord/list', text: '档案过程记录', icon: 'list', permission: 'health:processRecord:list' }, { path: '/pages/health/doctorRecord/list', text: '就医记录', icon: 'upload', permission: 'health:doctorRecord:list' }, { path: '/pages/health/marRecord/list', text: '用药记录', icon: 'shop-filled', permission: 'health:marRecord:list' }, { path: '/pages/health/temperatureRecord/list', text: '体温记录', icon: 'spinner-cycle', permission: 'health:temperatureRecord:list' }, diff --git a/src/pages/health/processRecord/addEdit.vue b/src/pages/health/processRecord/addEdit.vue new file mode 100644 index 0000000..f6f2061 --- /dev/null +++ b/src/pages/health/processRecord/addEdit.vue @@ -0,0 +1,258 @@ + + + + + \ No newline at end of file diff --git a/src/pages/health/processRecord/list.vue b/src/pages/health/processRecord/list.vue new file mode 100644 index 0000000..8571ea1 --- /dev/null +++ b/src/pages/health/processRecord/list.vue @@ -0,0 +1,447 @@ + + + + + \ No newline at end of file diff --git a/src/pages/health/temperatureRecord/addEdit.vue b/src/pages/health/temperatureRecord/addEdit.vue index 3ec722c..b90e466 100644 --- a/src/pages/health/temperatureRecord/addEdit.vue +++ b/src/pages/health/temperatureRecord/addEdit.vue @@ -114,7 +114,6 @@ const { form, queryPersonParams, queryHealthRecordParams, rules} = toRefs(data) onLoad((option) => { form.value.id = option.id flag.value = option.flag - alert(flag.value) if(flag.value==null){ if(form.value.id!=null){ title.value="体温记录-修改"