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 @@
+
+
+
+
+
+ {{ title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 奶粉品牌:
+ {{ item.milkPowderBrand }}
+
+
+ 备注:
+ {{ item.remark }}
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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