From d64a09950682a8800256048f1ed05a71ef97cd66 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 5 Feb 2025 17:53:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=99=BA=E8=81=AA=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=EF=BC=8C=E5=90=83=E5=A5=B6=E8=AE=B0=E5=BD=95=E3=80=81=E5=90=83?= =?UTF-8?q?=E5=A5=B6=E9=87=8F=E7=BB=9F=E8=AE=A1=E5=8A=9F=E8=83=BD=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/health/milkPowderRecord.js | 44 ++ src/api/health/statisticAnalysis.js | 7 + src/pages.json | 23 +- src/pages/health/index.vue | 18 + src/pages/health/milkPowderRecord/addEdit.vue | 208 +++++++ src/pages/health/milkPowderRecord/list.vue | 441 ++++++++++++++ .../statistic/milkPowderStatistic/index.vue | 554 ++++++++++++++++++ 7 files changed, 1293 insertions(+), 2 deletions(-) create mode 100644 src/api/health/milkPowderRecord.js create mode 100644 src/pages/health/milkPowderRecord/addEdit.vue create mode 100644 src/pages/health/milkPowderRecord/list.vue create mode 100644 src/pages/health/statistic/milkPowderStatistic/index.vue diff --git a/src/api/health/milkPowderRecord.js b/src/api/health/milkPowderRecord.js new file mode 100644 index 0000000..c7083b8 --- /dev/null +++ b/src/api/health/milkPowderRecord.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询吃奶记录列表 +export function listMilkPowderRecord(query) { + return request({ + url: '/health/milkPowderRecord/list', + method: 'get', + params: query + }) +} + +// 查询吃奶记录详细 +export function getMilkPowderRecord(id) { + return request({ + url: '/health/milkPowderRecord/' + id, + method: 'get' + }) +} + +// 新增吃奶记录 +export function addMilkPowderRecord(data) { + return request({ + url: '/health/milkPowderRecord', + method: 'post', + data + }) +} + +// 修改吃奶记录 +export function updateMilkPowderRecord(data) { + return request({ + url: '/health/milkPowderRecord', + method: 'put', + data + }) +} + +// 删除吃奶记录 +export function delMilkPowderRecord(id) { + return request({ + url: '/health/milkPowderRecord/' + id, + method: 'delete' + }) +} diff --git a/src/api/health/statisticAnalysis.js b/src/api/health/statisticAnalysis.js index a556dae..8552779 100644 --- a/src/api/health/statisticAnalysis.js +++ b/src/api/health/statisticAnalysis.js @@ -41,3 +41,10 @@ export function getDoctorAnalysis(query) { }) } +export function getMilkPowderAnalysis(query) { + return request({ + url: '/health/analysis/milkPowderAnalysis', + method: 'get', + params: query + }) +} diff --git a/src/pages.json b/src/pages.json index d89509c..dcd0dbd 100644 --- a/src/pages.json +++ b/src/pages.json @@ -177,11 +177,24 @@ } , { - "path": "pages/health/heightWeightRecord/addEdit", + "path": "pages/health/milkPowderRecord/addEdit", "style": { - "navigationBarTitleText": "身高体重记录" + "navigationBarTitleText": "吃奶记录" } }, + { + "path": "pages/health/milkPowderRecord/list", + "style": { + "navigationBarTitleText": "吃奶记录" + } + } + , + { + "path": "pages/health/heightWeightRecord/addEdit", + "style": { + "navigationBarTitleText": "身高体重记录" + } + }, { "path": "pages/health/person/list", "style": { @@ -231,6 +244,12 @@ "style": { "navigationBarTitleText": "体温统计" } + } , + { + "path": "pages/health/statistic/milkPowderStatistic/index", + "style": { + "navigationBarTitleText": "吃奶量统计" + } } ], "subPackages": [ diff --git a/src/pages/health/index.vue b/src/pages/health/index.vue index 443b8ae..42680c4 100644 --- a/src/pages/health/index.vue +++ b/src/pages/health/index.vue @@ -15,6 +15,19 @@ + + + + + + + + {{ item.text }} + + + + + @@ -39,6 +52,11 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作 { path: '/pages/health/medicineStockIn/list', text: '药品入库清单', icon: 'arrow-down', permission: 'health:medicineStockIn:list' }, { path: '/pages/health/medicineStock/list', text: '药品实时库存', icon: 'color', permission: 'health:medicineStockIn:list' } + ]) + const babycareGridList=ref([ + { path: '/pages/health/milkPowderRecord/list', text: '吃奶记录', icon: 'map-pin-ellipse', permission: 'health:milkPowderRecord:list' }, + { path: '/pages/health/statistic/milkPowderStatistic/index', text: '吃奶量统计', icon: 'spinner-cycle', permission: 'health:temperatureRecord:list' } + ]) function navigateTo(path) { uni.navigateTo({ diff --git a/src/pages/health/milkPowderRecord/addEdit.vue b/src/pages/health/milkPowderRecord/addEdit.vue new file mode 100644 index 0000000..92bfcac --- /dev/null +++ b/src/pages/health/milkPowderRecord/addEdit.vue @@ -0,0 +1,208 @@ + + + + + \ No newline at end of file diff --git a/src/pages/health/milkPowderRecord/list.vue b/src/pages/health/milkPowderRecord/list.vue new file mode 100644 index 0000000..fb90eb4 --- /dev/null +++ b/src/pages/health/milkPowderRecord/list.vue @@ -0,0 +1,441 @@ + + + + + \ No newline at end of file diff --git a/src/pages/health/statistic/milkPowderStatistic/index.vue b/src/pages/health/statistic/milkPowderStatistic/index.vue new file mode 100644 index 0000000..0f563f7 --- /dev/null +++ b/src/pages/health/statistic/milkPowderStatistic/index.vue @@ -0,0 +1,554 @@ + + + + + \ No newline at end of file