diff --git a/src/api/health/activity.js b/src/api/health/activity.js
new file mode 100644
index 0000000..00ea5cf
--- /dev/null
+++ b/src/api/health/activity.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询活动记录列表
+export function listActivity(query) {
+ return request({
+ url: '/health/activity/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询活动记录详细
+export function getActivity(id) {
+ return request({
+ url: '/health/activity/' + id,
+ method: 'get'
+ })
+}
+
+// 新增活动记录
+export function addActivity(data) {
+ return request({
+ url: '/health/activity',
+ method: 'post',
+ data
+ })
+}
+
+// 修改活动记录
+export function updateActivity(data) {
+ return request({
+ url: '/health/activity',
+ method: 'put',
+ data
+ })
+}
+
+// 删除活动记录
+export function delActivity(id) {
+ return request({
+ url: '/health/activity/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/health/doctorRecord.js b/src/api/health/doctorRecord.js
index 4a1af1d..055d389 100644
--- a/src/api/health/doctorRecord.js
+++ b/src/api/health/doctorRecord.js
@@ -2,43 +2,43 @@ import request from '@/utils/request'
// 查询就医记录列表
export function listDoctorRecord(query) {
- return request({
- url: '/health/doctorRecord/list',
- method: 'get',
- params: query
- })
+ return request({
+ url: '/health/doctorRecord/list',
+ method: 'get',
+ params: query
+ })
}
// 查询就医记录详细
export function getDoctorRecord(id) {
- return request({
- url: '/health/doctorRecord/' + id,
- method: 'get'
- })
+ return request({
+ url: '/health/doctorRecord/' + id,
+ method: 'get'
+ })
}
// 新增就医记录
export function addDoctorRecord(data) {
- return request({
- url: '/health/doctorRecord',
- method: 'post',
- data: data
- })
+ return request({
+ url: '/health/doctorRecord',
+ method: 'post',
+ data
+ })
}
// 修改就医记录
export function updateDoctorRecord(data) {
- return request({
- url: '/health/doctorRecord',
- method: 'put',
- data: data
- })
+ return request({
+ url: '/health/doctorRecord',
+ method: 'put',
+ data
+ })
}
// 删除就医记录
export function delDoctorRecord(id) {
- return request({
- url: '/health/doctorRecord/' + id,
- method: 'delete'
- })
+ return request({
+ url: '/health/doctorRecord/' + id,
+ method: 'delete'
+ })
}
diff --git a/src/api/health/healthRecord.js b/src/api/health/healthRecord.js
index 31907ef..8997827 100644
--- a/src/api/health/healthRecord.js
+++ b/src/api/health/healthRecord.js
@@ -2,43 +2,43 @@ import request from '@/utils/request'
// 查询健康档案列表
export function listHealthRecord(query) {
- return request({
- url: '/health/healthRecord/list',
- method: 'get',
- params: query
- })
+ return request({
+ url: '/health/healthRecord/list',
+ method: 'get',
+ params: query
+ })
}
// 查询健康档案详细
export function getHealthRecord(id) {
- return request({
- url: '/health/healthRecord/' + id,
- method: 'get'
- })
+ return request({
+ url: '/health/healthRecord/' + id,
+ method: 'get'
+ })
}
// 新增健康档案
export function addHealthRecord(data) {
- return request({
- url: '/health/healthRecord',
- method: 'post',
- data: data
- })
+ return request({
+ url: '/health/healthRecord',
+ method: 'post',
+ data
+ })
}
// 修改健康档案
export function updateHealthRecord(data) {
- return request({
- url: '/health/healthRecord',
- method: 'put',
- data: data
- })
+ return request({
+ url: '/health/healthRecord',
+ method: 'put',
+ data
+ })
}
// 删除健康档案
export function delHealthRecord(id) {
- return request({
- url: '/health/healthRecord/' + id,
- method: 'delete'
- })
+ return request({
+ url: '/health/healthRecord/' + id,
+ method: 'delete'
+ })
}
diff --git a/src/api/health/heightWeightRecord.js b/src/api/health/heightWeightRecord.js
new file mode 100644
index 0000000..8bf1e83
--- /dev/null
+++ b/src/api/health/heightWeightRecord.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询身高体重记录列表
+export function listHeightWeightRecord(query) {
+ return request({
+ url: '/health/heightWeightRecord/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询身高体重记录详细
+export function getHeightWeightRecord(id) {
+ return request({
+ url: '/health/heightWeightRecord/' + id,
+ method: 'get'
+ })
+}
+
+// 新增身高体重记录
+export function addHeightWeightRecord(data) {
+ return request({
+ url: '/health/heightWeightRecord',
+ method: 'post',
+ data
+ })
+}
+
+// 修改身高体重记录
+export function updateHeightWeightRecord(data) {
+ return request({
+ url: '/health/heightWeightRecord',
+ method: 'put',
+ data
+ })
+}
+
+// 删除身高体重记录
+export function delHeightWeightRecord(id) {
+ return request({
+ url: '/health/heightWeightRecord/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/health/marRecord.js b/src/api/health/marRecord.js
index 20da6df..ddb437f 100644
--- a/src/api/health/marRecord.js
+++ b/src/api/health/marRecord.js
@@ -2,43 +2,43 @@ import request from '@/utils/request'
// 查询用药记录列表
export function listMarRecord(query) {
- return request({
- url: '/health/marRecord/list',
- method: 'get',
- params: query
- })
+ return request({
+ url: '/health/marRecord/list',
+ method: 'get',
+ params: query
+ })
}
// 查询用药记录详细
export function getMarRecord(id) {
- return request({
- url: '/health/marRecord/' + id,
- method: 'get'
- })
+ return request({
+ url: '/health/marRecord/' + id,
+ method: 'get'
+ })
}
// 新增用药记录
export function addMarRecord(data) {
- return request({
- url: '/health/marRecord',
- method: 'post',
- data: data
- })
+ return request({
+ url: '/health/marRecord',
+ method: 'post',
+ data
+ })
}
// 修改用药记录
export function updateMarRecord(data) {
- return request({
- url: '/health/marRecord',
- method: 'put',
- data: data
- })
+ return request({
+ url: '/health/marRecord',
+ method: 'put',
+ data
+ })
}
// 删除用药记录
export function delMarRecord(id) {
- return request({
- url: '/health/marRecord/' + id,
- method: 'delete'
- })
+ return request({
+ url: '/health/marRecord/' + id,
+ method: 'delete'
+ })
}
diff --git a/src/api/health/medicineBasic.js b/src/api/health/medicineBasic.js
new file mode 100644
index 0000000..0e13201
--- /dev/null
+++ b/src/api/health/medicineBasic.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询药品基础信息列表
+export function listMedicineBasic(query) {
+ return request({
+ url: '/health/medicineBasic/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询药品基础信息详细
+export function getMedicineBasic(id) {
+ return request({
+ url: '/health/medicineBasic/' + id,
+ method: 'get'
+ })
+}
+
+// 新增药品基础信息
+export function addMedicineBasic(data) {
+ return request({
+ url: '/health/medicineBasic',
+ method: 'post',
+ data
+ })
+}
+
+// 修改药品基础信息
+export function updateMedicineBasic(data) {
+ return request({
+ url: '/health/medicineBasic',
+ method: 'put',
+ data
+ })
+}
+
+// 删除药品基础信息
+export function delMedicineBasic(id) {
+ return request({
+ url: '/health/medicineBasic/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/health/medicineStock.js b/src/api/health/medicineStock.js
new file mode 100644
index 0000000..eaff3d0
--- /dev/null
+++ b/src/api/health/medicineStock.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询药品实时库存列表
+export function listMedicineStock(query) {
+ return request({
+ url: '/health/medicineStock/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询药品实时库存详细
+export function getMedicineStock(id) {
+ return request({
+ url: '/health/medicineStock/' + id,
+ method: 'get'
+ })
+}
+
+// 新增药品实时库存
+export function addMedicineStock(data) {
+ return request({
+ url: '/health/medicineStock',
+ method: 'post',
+ data
+ })
+}
+
+// 修改药品实时库存
+export function updateMedicineStock(data) {
+ return request({
+ url: '/health/medicineStock',
+ method: 'put',
+ data
+ })
+}
+
+// 删除药品实时库存
+export function delMedicineStock(id) {
+ return request({
+ url: '/health/medicineStock/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/health/medicineStockIn.js b/src/api/health/medicineStockIn.js
new file mode 100644
index 0000000..aaa7706
--- /dev/null
+++ b/src/api/health/medicineStockIn.js
@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询药品入库清单列表
+export function listMedicineStockIn(query) {
+ return request({
+ url: '/health/medicineStockIn/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询药品入库清单详细
+export function getMedicineStockIn(id) {
+ return request({
+ url: '/health/medicineStockIn/' + id,
+ method: 'get'
+ })
+}
+
+// 新增药品入库清单
+export function addMedicineStockIn(data) {
+ return request({
+ url: '/health/medicineStockIn',
+ method: 'post',
+ data
+ })
+}
+
+// 修改药品入库清单
+export function updateMedicineStockIn(data) {
+ return request({
+ url: '/health/medicineStockIn',
+ method: 'put',
+ data
+ })
+}
+
+// 删除药品入库清单
+export function delMedicineStockIn(id) {
+ return request({
+ url: '/health/medicineStockIn/' + id,
+ method: 'delete'
+ })
+}
+
+// 查询药品入库清单列表
+export function listMedicineRealtimeStock(query) {
+ return request({
+ url: '/health/medicineStockIn/realTimeList',
+ method: 'get',
+ params: query
+ })
+}
diff --git a/src/api/health/statisticAnalysis.js b/src/api/health/statisticAnalysis.js
new file mode 100644
index 0000000..2b39859
--- /dev/null
+++ b/src/api/health/statisticAnalysis.js
@@ -0,0 +1,17 @@
+import request from '@/utils/request'
+
+export function getMarAnalysis(query) {
+ return request({
+ url: '/health/analysis/marAnalysis',
+ method: 'get',
+ params: query
+ })
+}
+
+export function getTemperatureAnalysis(query) {
+ return request({
+ url: '/health/analysis/temperatureAnalysis',
+ method: 'get',
+ params: query
+ })
+}
diff --git a/src/api/health/temperatureRecord.js b/src/api/health/temperatureRecord.js
index b38fe66..77355b1 100644
--- a/src/api/health/temperatureRecord.js
+++ b/src/api/health/temperatureRecord.js
@@ -2,43 +2,43 @@ import request from '@/utils/request'
// 查询体温记录列表
export function listTemperatureRecord(query) {
- return request({
- url: '/health/temperatureRecord/list',
- method: 'get',
- params: query
- })
+ return request({
+ url: '/health/temperatureRecord/list',
+ method: 'get',
+ params: query
+ })
}
// 查询体温记录详细
export function getTemperatureRecord(id) {
- return request({
- url: '/health/temperatureRecord/' + id,
- method: 'get'
- })
+ return request({
+ url: '/health/temperatureRecord/' + id,
+ method: 'get'
+ })
}
// 新增体温记录
export function addTemperatureRecord(data) {
- return request({
- url: '/health/temperatureRecord',
- method: 'post',
- data: data
- })
+ return request({
+ url: '/health/temperatureRecord',
+ method: 'post',
+ data
+ })
}
// 修改体温记录
export function updateTemperatureRecord(data) {
- return request({
- url: '/health/temperatureRecord',
- method: 'put',
- data: data
- })
+ return request({
+ url: '/health/temperatureRecord',
+ method: 'put',
+ data
+ })
}
// 删除体温记录
export function delTemperatureRecord(id) {
- return request({
- url: '/health/temperatureRecord/' + id,
- method: 'delete'
- })
+ return request({
+ url: '/health/temperatureRecord/' + id,
+ method: 'delete'
+ })
}
diff --git a/src/api/health/weightRecord.js b/src/api/health/weightRecord.js
deleted file mode 100644
index 149bf96..0000000
--- a/src/api/health/weightRecord.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import request from '@/utils/request'
-
-// 查询体重记录列表
-export function listWeightRecord(query) {
- return request({
- url: '/health/weightRecord/list',
- method: 'get',
- params: query
- })
-}
-
-// 查询体重记录详细
-export function getWeightRecord(id) {
- return request({
- url: '/health/weightRecord/' + id,
- method: 'get'
- })
-}
-
-// 新增体重记录
-export function addWeightRecord(data) {
- return request({
- url: '/health/weightRecord',
- method: 'post',
- data: data
- })
-}
-
-// 修改体重记录
-export function updateWeightRecord(data) {
- return request({
- url: '/health/weightRecord',
- method: 'put',
- data: data
- })
-}
-
-// 删除体重记录
-export function delWeightRecord(id) {
- return request({
- url: '/health/weightRecord/' + id,
- method: 'delete'
- })
-}
diff --git a/src/pages.json b/src/pages.json
index e12510a..0ed06a4 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -46,12 +46,6 @@
"style": {
"navigationBarTitleText": "就医记录"
}
- } ,
- {
- "path": "pages/health/doctorRecord/details",
- "style": {
- "navigationBarTitleText": "就医记录详情"
- }
}
,
{
@@ -66,13 +60,6 @@
"navigationBarTitleText": "健康档案"
}
} ,
- {
- "path": "pages/health/healthRecord/details",
- "style": {
- "navigationBarTitleText": "健康档案详情"
- }
- }
- ,
{
"path": "pages/health/healthRecord/addEdit",
"style": {
@@ -92,6 +79,52 @@
"navigationBarTitleText": "用药记录"
}
},
+ {
+ "path": "pages/health/medicineBasic/list",
+ "style": {
+ "navigationBarTitleText": "药品基础信息"
+ }
+ }
+ ,
+ {
+ "path": "pages/health/medicineBasic/details",
+ "style": {
+ "navigationBarTitleText": "药品基础信息详情"
+ }
+ }
+ ,
+ {
+ "path": "pages/health/medicineBasic/addEdit",
+ "style": {
+ "navigationBarTitleText": "药品基础信息"
+ }
+ },
+ {
+ "path": "pages/health/medicineStockIn/list",
+ "style": {
+ "navigationBarTitleText": "药品入库清单"
+ }
+ }
+ ,
+ {
+ "path": "pages/health/medicineStockIn/details",
+ "style": {
+ "navigationBarTitleText": "药品入库清单详情"
+ }
+ }
+ ,
+ {
+ "path": "pages/health/medicineStockIn/addEdit",
+ "style": {
+ "navigationBarTitleText": "药品入库清单"
+ }
+ }, {
+ "path": "pages/health/medicineStock/list",
+ "style": {
+ "navigationBarTitleText": "药品实时库存"
+ }
+ }
+ ,
{
"path": "pages/health/temperatureRecord/list",
"style": {
@@ -104,18 +137,24 @@
"style": {
"navigationBarTitleText": "体温记录"
}
+ }, {
+ "path": "pages/health/heightWeightRecord/list",
+ "style": {
+ "navigationBarTitleText": "身高体重记录"
+ }
+ }
+ ,
+ {
+ "path": "pages/health/heightWeightRecord/addEdit",
+ "style": {
+ "navigationBarTitleText": "身高体重记录"
+ }
},
{
"path": "pages/health/person/list",
"style": {
"navigationBarTitleText": "成员管理"
}
- } ,
- {
- "path": "pages/health/person/details",
- "style": {
- "navigationBarTitleText": "成员管理详情"
- }
}
,
{
@@ -125,22 +164,16 @@
}
},
{
- "path": "pages/health/weightRecord/list",
+ "path": "pages/health/activity/list",
"style": {
- "navigationBarTitleText": "体重记录"
- }
- } ,
- {
- "path": "pages/health/weightRecord/details",
- "style": {
- "navigationBarTitleText": "体重记录详情"
+ "navigationBarTitleText": "活动记录"
}
}
,
{
- "path": "pages/health/weightRecord/addEdit",
+ "path": "pages/health/activity/addEdit",
"style": {
- "navigationBarTitleText": "体重记录"
+ "navigationBarTitleText": "活动记录"
}
}
],
diff --git a/src/pages/health/activity/addEdit.vue b/src/pages/health/activity/addEdit.vue
new file mode 100644
index 0000000..aea6c71
--- /dev/null
+++ b/src/pages/health/activity/addEdit.vue
@@ -0,0 +1,266 @@
+
+
+
+
+
+ {{ title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/weightRecord/list.vue b/src/pages/health/activity/list.vue
similarity index 58%
rename from src/pages/health/weightRecord/list.vue
rename to src/pages/health/activity/list.vue
index 386a02c..626f73f 100644
--- a/src/pages/health/weightRecord/list.vue
+++ b/src/pages/health/activity/list.vue
@@ -1,53 +1,68 @@
-
-
-
-
-
-
-
-
- 类型
-
- {{ item.dictLabel }}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
@@ -56,29 +71,30 @@
-
-
-
\ No newline at end of file
+}
+
\ No newline at end of file
diff --git a/src/pages/health/doctorRecord/details.vue b/src/pages/health/doctorRecord/details.vue
deleted file mode 100644
index d66166f..0000000
--- a/src/pages/health/doctorRecord/details.vue
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/health/doctorRecord/list.vue b/src/pages/health/doctorRecord/list.vue
index 386a02c..8e16896 100644
--- a/src/pages/health/doctorRecord/list.vue
+++ b/src/pages/health/doctorRecord/list.vue
@@ -1,27 +1,68 @@
+
+
+
+
+
+
+
-
-
+
+
-
+
- 类型
-
- {{ item.dictLabel }}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -29,25 +70,49 @@
-
@@ -58,35 +123,52 @@
+
-
-
\ No newline at end of file
+}
+
\ No newline at end of file
diff --git a/src/pages/health/healthRecord/details.vue b/src/pages/health/healthRecord/details.vue
deleted file mode 100644
index d66166f..0000000
--- a/src/pages/health/healthRecord/details.vue
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/health/healthRecord/list.vue b/src/pages/health/healthRecord/list.vue
index 386a02c..29ca07d 100644
--- a/src/pages/health/healthRecord/list.vue
+++ b/src/pages/health/healthRecord/list.vue
@@ -1,27 +1,71 @@
+
+
+
+
+
+
+
-
-
+
+
-
+
- 类型
+ 档案状态
- {{ item.dictLabel }}
+ {{ item.dictLabel }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -29,25 +73,52 @@
-
+
+ 人员名称:
+ {{ item.personName }}
+
类型:
- {{ dictStr(item.type, journeyTypeList) }}
+ {{ dictStr(item.type,typeList) }}
- 记录时间:
- {{ item.createTime }}
+ 档案状态:
+ {{ dictStr(item.state, stateList) }}
- 内容:
+ 发生时间:
+ {{ item.occurTime }}
+
+
+ 康复时间:
+ {{ item.rehabilitationTime }}
+
+
+ 发生原因:
+ {{ dictStr(item.etiology, etiologyList) }}
+
+
+ 初期症状:
+ {{ item.initialSymptoms }}
+
+
+ 中期症状:
+ {{ item.mediumTermSymptoms }}
+
+
+ 后期症状:
+ {{ item.laterStageSymptoms }}
+
+
+ 备注:
{{ item.remark }}
-
- 修改
+ 修改
删除
@@ -58,35 +129,57 @@
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/heightWeightRecord/list.vue b/src/pages/health/heightWeightRecord/list.vue
new file mode 100644
index 0000000..22a44f7
--- /dev/null
+++ b/src/pages/health/heightWeightRecord/list.vue
@@ -0,0 +1,432 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 测量时间:
+ {{ item.measureTime }}
+
+
+ 备注:
+ {{ item.remark }}
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/homepage/index.vue b/src/pages/health/homepage/index.vue
index a376835..5924a31 100644
--- a/src/pages/health/homepage/index.vue
+++ b/src/pages/health/homepage/index.vue
@@ -1,117 +1,335 @@
-
-
-
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
+
+
+
-
+
+
-
-
diff --git a/src/pages/health/index.vue b/src/pages/health/index.vue
index a376835..d7d0aa8 100644
--- a/src/pages/health/index.vue
+++ b/src/pages/health/index.vue
@@ -13,6 +13,18 @@
+
+
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
@@ -26,12 +38,20 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作
import { ref } from "vue";
const healthGridList=ref([
- { path: '/pages/health/healthRecord/list', text: '健康档案', icon: 'wallet-filled', permission: 'health:healthRecord:list' },
- { path: '/pages/health/temperatureRecord/list', text: '体温记录', icon: 'wallet', permission: 'health:temperatureRecord:list' },
+ { 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/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/weightRecord/list', text: '体重记录', icon: 'calendar', permission: 'health:weightRecord:list' },
- { path: '/pages/health/person/list', text: '成员管理', icon: 'paperplane-filled', permission: 'health:person:list' }
+ { path: '/pages/health/temperatureRecord/list', text: '体温记录', icon: 'spinner-cycle', permission: 'health:temperatureRecord:list' },
+ { path: '/pages/health/heightWeightRecord/list', text: '身高体重记录', icon: 'map-pin-ellipse', permission: 'health:heightWeightRecord:list' },
+ { path: '/pages/health/activity/list', text: '活动记录', icon: 'images-filled', permission: 'health:activity:list' }
+
+ ])
+ const medicineGridList=ref([
+ { path: '/pages/health/medicineBasic/list', text: '药品基础信息', icon: 'folder-add-filled', permission: 'health:medicineBasic:list' },
+ { 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' }
+
])
function navigateTo(path) {
uni.navigateTo({
diff --git a/src/pages/health/marRecord/addEdit.vue b/src/pages/health/marRecord/addEdit.vue
index f521457..f9e0e2b 100644
--- a/src/pages/health/marRecord/addEdit.vue
+++ b/src/pages/health/marRecord/addEdit.vue
@@ -26,10 +26,11 @@
inputAlign="right" border="none">
-
-
-
+
+
+
+
@@ -48,7 +49,11 @@
-
+
+
+
+
@@ -72,6 +77,10 @@
@confirm="handleMarTypeConfirm">
+
+
{
form.value.id = option.id
- if(form.value.id!=null){
+ flag.value = option.flag
+ if(flag.value==null){
+ if(form.value.id!=null){
title.value="用药记录-修改"
}else{
title.value="用药记录-新增"
}
+ }else{
+ title.value="用药记录-复制"
+ }
+
getData()
})
onReady(() => {
form.value.dosingTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
})
+function dictStr(val, arr) {
+ let str = ''
+ arr.map(item => {
+ if (item.dictValue === val) {
+ str = item.dictLabel
+ }
+ })
+ return str
+ }
function getData() {
+ listMedicineBasic(queryMedicineParams.value).then((response) => {
+ medicalList.value = [response.rows]
+ })
listPerson(queryPersonParams.value).then((response) => {
personList.value = [response.rows]
if(response.rows.length>0){
@@ -182,6 +225,10 @@ function getData() {
// 类型
getDicts('mar_type').then(res => {
marTypeList.value =[res.data]
+ })
+ // 类型
+ getDicts('medical_unit').then(res => {
+ unitList.value =[res.data]
})
// 类型
getDicts('mar_resource').then(res => {
@@ -197,31 +244,26 @@ function getData() {
if(form.value.id!=null){
getMarRecord(form.value.id).then(res => {
form.value = res.data
+ form.value.medicalName=form.value.name
getDicts('mar_place').then(result => {
form.value.placeName=dictStr(form.value.place, result.data)
})
// 药品来源
getDicts('mar_resource').then(result => {
form.value.resourceName=dictStr(form.value.resource, result.data)
+ })
+ // 药品来源
+ getDicts('medical_unit').then(result => {
+ form.value.unitName=dictStr(form.value.unit, result.data)
})
// 用药类型
- getDicts('mar_type').then(result => {
+ getDicts('mar_type').then(result => {
form.value.marTypeName=dictStr(form.value.type, result.data)
})
})
}
}
-function dictStr(val, arr) {
- let str = ''
- arr.map(item => {
- if (item.dictValue === val) {
- str = item.dictLabel
- }
- })
- return str
- }
-
function handlePerson() {
if (personList.value[0].length === 0) {
proxy.$refs['uToast'].show({
@@ -239,6 +281,10 @@ function handlePersonConfirm(e) {
queryHealthRecordParams.value.personId=e.value[0].id
listHealthRecord(queryHealthRecordParams.value).then((response) => {
healthRecordList.value = [response.rows]
+ if(response.rows.length>0){
+ form.value.healthRecordName= response.rows[0].name
+ form.value.healthRecordId = response.rows[0].id
+ }
showPerson.value = false
})
@@ -246,6 +292,34 @@ function handlePersonConfirm(e) {
function handlePersonCancel() {
showPerson.value = false
}
+
+ function handleMedical() {
+ if (medicalList.value[0].length === 0) {
+ proxy.$refs['uToast'].show({
+ message: '药品为空 ', type: 'warning'
+ })
+ } else {
+ showMedical.value = true
+ }
+ }
+function handleMedicalConfirm(e) {
+ form.value.medicalName = e.value[0].shortNameBrandPackaging
+ form.value.name = e.value[0].shortNameBrandPackaging
+ form.value.medicineId = e.value[0].id
+ getMedicineBasic(e.value[0].id).then((response) => {
+ form.value.unit = response.data.unit
+ // 药品来源
+ getDicts('medical_unit').then(result => {
+ form.value.unitName=dictStr( response.data.unit, result.data)
+ })
+ form.value.contentUnit = response.data.contentUnit
+ })
+ showMedical.value = false
+
+}
+function handleMedicalCancel() {
+ showMedical.value = false
+ }
function handHealthRecord() {
if (healthRecordList.value[0].length === 0) {
proxy.$refs['uToast'].show({
@@ -282,6 +356,24 @@ function handleResource() {
showResource.value = false
}
+ function handleUnit() {
+ if (unitList.value[0].length === 0) {
+ proxy.$refs['uToast'].show({
+ message: '用药单位为空 ', type: 'warning'
+ })
+ } else {
+ showUnit.value = true
+ }
+ }
+ function handleUnitConfirm(e) {
+ form.value.unitName = e.value[0].dictLabel
+ form.value.unit = e.value[0].dictValue
+ showUnit.value = false
+ }
+ function handleUnitCancel() {
+ showUnit.value = false
+ }
+
function handlePlace() {
if (placeList.value[0].length === 0) {
proxy.$refs['uToast'].show({
@@ -312,6 +404,15 @@ function handleResource() {
function handleMarTypeConfirm(e) {
form.value.marTypeName = e.value[0].dictLabel
form.value.type = e.value[0].dictValue
+
+ queryMedicineParams.value.treatmentType = e.value[0].dictValue
+ form.value.medicalName = ""
+ form.value.name = ""
+ form.value.medicineId = null
+ listMedicineBasic(queryMedicineParams.value).then((response) => {
+ medicalList.value = [response.rows]
+ })
+
showMarType.value = false
}
function handleMarTypeCancel() {
@@ -329,13 +430,25 @@ function datePickConfirm(e) {
function submit() {
proxy.$refs['uForm'].validate().then(() => {
if (form.value.id != null) {
- updateMarRecord(form.value).then(res => {
+ if(flag.value==null){
+ updateMarRecord(form.value).then(res => {
proxy.$refs['uToast'].show({
message: '修改成功', complete() {
uni.navigateTo({ url: `/pages/health/marRecord/list` })
}
})
})
+ }else {
+ form.value.id == null
+ addMarRecord(form.value).then(res => {
+ proxy.$refs['uToast'].show({
+ message: '新增成功', complete() {
+ uni.navigateTo({ url: `/pages/health/marRecord/list` })
+ }
+ })
+ })
+ }
+
}else {
addMarRecord(form.value).then(res => {
proxy.$refs['uToast'].show({
diff --git a/src/pages/health/marRecord/list.vue b/src/pages/health/marRecord/list.vue
index 2f1207f..af6a785 100644
--- a/src/pages/health/marRecord/list.vue
+++ b/src/pages/health/marRecord/list.vue
@@ -75,16 +75,25 @@
- 健康档案:
- {{ item.healthRecordName }}
+ 用药时间:
+ {{ item.dosingTime }}
用药类型:
{{ dictStr(item.type, typeList) }}
+
+ 人员名称:
+ {{ item.personName }}
+
+
+ 健康档案:
+ {{ item.healthRecordName }}
+
+
药品来源:
{{ dictStr(item.resource,resourceList) }}
@@ -94,11 +103,12 @@
{{ dictStr(item.place, placeList) }}
- 用药时间:
- {{ item.dosingTime }}
+ 备注:
+ {{ item.remark }}
修改
+ 复制
删除
@@ -135,6 +145,7 @@ const personList = ref([])
const typeList = ref([])
const resourceList = ref([])
const placeList = ref([])
+const unitList = ref([])
const flag= ref(true)
const time =ref( Number(new Date()))
@@ -215,6 +226,11 @@ function getList() {
getDicts('mar_place').then(res => {
placeList.value = res.data
})
+ // 单位
+ getDicts('medical_unit').then(res => {
+ unitList.value = res.data
+ })
+
// 药品类型
getDicts('mar_resource').then(res => {
resourceList.value = res.data
@@ -251,7 +267,7 @@ function settingCancel() {
settingPickShow.value = false
}
function searchSubmit() {
- if(queryParams.value.startTime!=''&&queryParams.value.endTime!=''){
+ if(queryParams.value.startTime!=''&&queryParams.value.startTime!=undefined&&queryParams.value.endTime!=''&&queryParams.value.endTime!=undefined){
queryParams.value.time = queryParams.value.startTime+'-'+queryParams.value.endTime
}
pageNum.value = 1
@@ -300,6 +316,10 @@ function settingCancel() {
uni.navigateTo({ url: `/pages/health/marRecord/addEdit?id=${item.id}` })
isShow.value = true
}
+ function handleCopy(item) {
+ uni.navigateTo({ url: `/pages/health/marRecord/addEdit?flag=copy&id=${item.id}` })
+ isShow.value = true
+ }
function handleAdd() {
uni.navigateTo({ url: `/pages/health/marRecord/addEdit` })
isShow.value = true
diff --git a/src/pages/health/medicineBasic/addEdit.vue b/src/pages/health/medicineBasic/addEdit.vue
new file mode 100644
index 0000000..fe78429
--- /dev/null
+++ b/src/pages/health/medicineBasic/addEdit.vue
@@ -0,0 +1,524 @@
+
+
+
+
+
+ {{ title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/medicineBasic/details.vue b/src/pages/health/medicineBasic/details.vue
new file mode 100644
index 0000000..9051dfc
--- /dev/null
+++ b/src/pages/health/medicineBasic/details.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/medicineBasic/list.vue b/src/pages/health/medicineBasic/list.vue
new file mode 100644
index 0000000..b57bc93
--- /dev/null
+++ b/src/pages/health/medicineBasic/list.vue
@@ -0,0 +1,487 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 治疗类型
+
+ {{ item.dictLabel }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 药品全称:
+ {{ item.name }}
+
+
+ 治疗类型:
+ {{ dictStr(item.treatmentType, typeList) }}
+
+
+ 药品编码:
+ {{ item.code }}
+
+
+ 药品分类:
+ {{ dictStr(item.classification, classificationList) }}
+
+
+
+ 类别:
+ {{ dictStr(item.category,categoryList) }}
+
+
+ 药品剂型:
+ {{ dictStr(item.dosageForm, dosageFormList) }}
+
+
+ 生产厂家:
+ {{ item.manufacturers }}
+
+
+ 修改
+ 复制
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/medicineStock/list.vue b/src/pages/health/medicineStock/list.vue
new file mode 100644
index 0000000..3634f2d
--- /dev/null
+++ b/src/pages/health/medicineStock/list.vue
@@ -0,0 +1,357 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 规格总数:
+ {{ item.totalCount }}
+
+
+ 剩余数量:
+ {{ item.leftCount }}
+
+
+ 规格单位:
+ {{ dictStr(item.unit, unitList) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/medicineStockIn/addEdit.vue b/src/pages/health/medicineStockIn/addEdit.vue
new file mode 100644
index 0000000..9ddc9fb
--- /dev/null
+++ b/src/pages/health/medicineStockIn/addEdit.vue
@@ -0,0 +1,517 @@
+
+
+
+
+
+ {{ title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/medicineStockIn/details.vue b/src/pages/health/medicineStockIn/details.vue
new file mode 100644
index 0000000..b382526
--- /dev/null
+++ b/src/pages/health/medicineStockIn/details.vue
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/medicineStockIn/list.vue b/src/pages/health/medicineStockIn/list.vue
new file mode 100644
index 0000000..a6f551e
--- /dev/null
+++ b/src/pages/health/medicineStockIn/list.vue
@@ -0,0 +1,522 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 使用状态
+
+ {{ item.dictLabel }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 购买时间:
+ {{ item.purchaseDate }}
+
+
+ 使用状态:
+ {{ dictStr(item.state, stateList) }}
+
+
+ 入库编号:
+ {{ item.code }}
+
+
+ 入库数量:
+ {{ item.quantity }}
+
+
+ 包装单位:
+ {{ dictStr(item.packageUnit, packageUnitList) }}
+
+
+
+ 过期日期:
+ {{item.expiringDate }}
+
+
+ 规格总数:
+ {{ item.totalCount }}
+
+
+ 规格单位:
+ {{ dictStr(item.unit, unitList) }}
+
+
+ 剩余数量:
+ {{ item.leftCount }}
+
+
+ 备注:
+ {{ item.remark }}
+
+
+ 修改
+ 复制
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/person/addEdit.vue b/src/pages/health/person/addEdit.vue
index 62cf02d..806e55b 100644
--- a/src/pages/health/person/addEdit.vue
+++ b/src/pages/health/person/addEdit.vue
@@ -1,105 +1,135 @@
-
-
-
-
- {{ title}}
-
-
-
-
+
+
+
+ {{ title}}
+
+
+
+
-
+
+
+
+
-
-
-
+
+
+
+
+
+
+
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
\ No newline at end of file
+}
+
\ No newline at end of file
diff --git a/src/pages/health/person/details.vue b/src/pages/health/person/details.vue
deleted file mode 100644
index d66166f..0000000
--- a/src/pages/health/person/details.vue
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/health/person/list.vue b/src/pages/health/person/list.vue
index 386a02c..df70669 100644
--- a/src/pages/health/person/list.vue
+++ b/src/pages/health/person/list.vue
@@ -1,53 +1,55 @@
-
-
-
-
-
-
-
-
- 类型
-
- {{ item.dictLabel }}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
+
+ 昵称:
+ {{ item.nickName }}
+
类型:
- {{ dictStr(item.type, journeyTypeList) }}
+ {{ dictStr(item.type,typeList) }}
- 记录时间:
- {{ item.createTime }}
+ 生日:
+ {{ item.birthday }}
- 内容:
+ 年龄:
+ {{ item.age }}
+
+
+ 身高(CM):
+ {{ item.height }}
+
+
+ 体重(KG):
+ {{ item.weight }}
+
+
+ 排序:
+ {{ item.ranking }}
+
+
+ 备注:
{{ item.remark }}
-
- 修改
+ 修改
删除
@@ -56,29 +58,30 @@
-
-
-
\ No newline at end of file
diff --git a/src/pages/health/weightRecord/details.vue b/src/pages/health/weightRecord/details.vue
deleted file mode 100644
index d66166f..0000000
--- a/src/pages/health/weightRecord/details.vue
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/work/accounts/accountDealRecord/list.vue b/src/pages/work/accounts/accountDealRecord/list.vue
index be8d4a6..42096a3 100644
--- a/src/pages/work/accounts/accountDealRecord/list.vue
+++ b/src/pages/work/accounts/accountDealRecord/list.vue
@@ -317,7 +317,7 @@ function selectAccountType(item) {
})
}
function searchSubmit() {
- if(queryParams.value.startTime!=''&&queryParams.value.endTime!=''){
+ if(queryParams.value.startTime!=''&&queryParams.value.startTime!=undefined&&queryParams.value.endTime!=''&&queryParams.value.endTime!=undefined){
queryParams.value.time = queryParams.value.startTime+'-'+queryParams.value.endTime
}
pageNum.value = 1
diff --git a/src/pages/work/accounts/creditTransferRecord/list.vue b/src/pages/work/accounts/creditTransferRecord/list.vue
index e5b25fc..8d630cc 100644
--- a/src/pages/work/accounts/creditTransferRecord/list.vue
+++ b/src/pages/work/accounts/creditTransferRecord/list.vue
@@ -246,7 +246,7 @@ function dictStr(val, arr) {
return str
}
function searchSubmit() {
- if(queryParams.value.startTime!=''&&queryParams.value.endTime!=''){
+ if(queryParams.value.startTime!=''&&queryParams.value.startTime!=undefined&&queryParams.value.endTime!=''&&queryParams.value.endTime!=undefined){
queryParams.value.time = queryParams.value.startTime+'-'+queryParams.value.endTime
}
pageNum.value = 1
diff --git a/src/pages/work/accounts/debitTransferRecord/list.vue b/src/pages/work/accounts/debitTransferRecord/list.vue
index 68029c7..b87ca7c 100644
--- a/src/pages/work/accounts/debitTransferRecord/list.vue
+++ b/src/pages/work/accounts/debitTransferRecord/list.vue
@@ -235,7 +235,7 @@ function dictStr(val, arr) {
return str
}
function searchSubmit() {
- if(queryParams.value.startTime!=''&&queryParams.value.endTime!=''){
+ if(queryParams.value.startTime!=''&&queryParams.value.startTime!=undefined&&queryParams.value.endTime!=''&&queryParams.value.endTime!=undefined){
queryParams.value.time = queryParams.value.startTime+'-'+queryParams.value.endTime
}
pageNum.value = 1
diff --git a/src/pages/work/accounts/investAccountDeal/list.vue b/src/pages/work/accounts/investAccountDeal/list.vue
index d2c69aa..7087a8c 100644
--- a/src/pages/work/accounts/investAccountDeal/list.vue
+++ b/src/pages/work/accounts/investAccountDeal/list.vue
@@ -255,7 +255,7 @@ function selectAccountType(item) {
})
}
function searchSubmit() {
- if(queryParams.value.startTime!=''&&queryParams.value.endTime!=''){
+ if(queryParams.value.startTime!=''&&queryParams.value.startTime!=undefined&&queryParams.value.endTime!=''&&queryParams.value.endTime!=undefined){
queryParams.value.time = queryParams.value.startTime+'-'+queryParams.value.endTime
}
pageNum.value = 1
diff --git a/src/pages/work/accounts/investTransferRecord/list.vue b/src/pages/work/accounts/investTransferRecord/list.vue
index 56bfcb2..c17b05e 100644
--- a/src/pages/work/accounts/investTransferRecord/list.vue
+++ b/src/pages/work/accounts/investTransferRecord/list.vue
@@ -232,7 +232,7 @@ function dictStr(val, arr) {
return str
}
function searchSubmit() {
- if(queryParams.value.startTime!=''&&queryParams.value.endTime!=''){
+ if(queryParams.value.startTime!=''&&queryParams.value.startTime!=undefined&&queryParams.value.endTime!=''&&queryParams.value.endTime!=undefined){
queryParams.value.time = queryParams.value.startTime+'-'+queryParams.value.endTime
}
pageNum.value = 1
diff --git a/src/pages/work/accounts/lendTransferRecord/list.vue b/src/pages/work/accounts/lendTransferRecord/list.vue
index 0bf3c4e..453f6ad 100644
--- a/src/pages/work/accounts/lendTransferRecord/list.vue
+++ b/src/pages/work/accounts/lendTransferRecord/list.vue
@@ -230,7 +230,7 @@ function dictStr(val, arr) {
return str
}
function searchSubmit() {
- if(queryParams.value.startTime!=''&&queryParams.value.endTime!=''){
+ if(queryParams.value.startTime!=''&&queryParams.value.startTime!=undefined&&queryParams.value.endTime!=''&&queryParams.value.endTime!=undefined){
queryParams.value.time = queryParams.value.startTime+'-'+queryParams.value.endTime
}
pageNum.value = 1
diff --git a/src/pages/work/accounts/posTransferRecord/list.vue b/src/pages/work/accounts/posTransferRecord/list.vue
index 321737b..79a3a55 100644
--- a/src/pages/work/accounts/posTransferRecord/list.vue
+++ b/src/pages/work/accounts/posTransferRecord/list.vue
@@ -222,7 +222,7 @@ function settingCancel() {
settingPickShow.value = false
}
function searchSubmit() {
- if(queryParams.value.startTime!=''&&queryParams.value.endTime!=''){
+ if(queryParams.value.startTime!=''&&queryParams.value.startTime!=undefined&&queryParams.value.endTime!=''&&queryParams.value.endTime!=undefined){
queryParams.value.time = queryParams.value.startTime+'-'+queryParams.value.endTime
}
pageNum.value = 1