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="体温记录-修改"