diff --git a/dist.zip b/dist.zip
new file mode 100644
index 0000000..c6025fd
Binary files /dev/null and b/dist.zip differ
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/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/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..3eee11e
--- /dev/null
+++ b/src/api/health/medicineStockIn.js
@@ -0,0 +1,44 @@
+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'
+ })
+}
diff --git a/src/api/health/weightRecord.js b/src/api/health/weightRecord.js
deleted file mode 100644
index 69994d0..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
- })
-}
-
-// 修改体重记录
-export function updateWeightRecord(data) {
- return request({
- url: '/health/weightRecord',
- method: 'put',
- data
- })
-}
-
-// 删除体重记录
-export function delWeightRecord(id) {
- return request({
- url: '/health/weightRecord/' + id,
- method: 'delete'
- })
-}
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index a94a240..7a3a60c 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -82,7 +82,7 @@ function logout() {
})
.then(() => {
userStore.logOut().then(() => {
- location.href = '/health/index'
+ location.href = '/hrms/index'
})
})
.catch(() => {})
diff --git a/src/router/index.js b/src/router/index.js
index c00130e..bb97fcb 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -179,7 +179,7 @@ export const dynamicRoutes = [
]
const router = createRouter({
- history: createWebHistory('/health/'),
+ history: createWebHistory('/hrms/'),
routes: constantRoutes,
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {
diff --git a/src/utils/request.js b/src/utils/request.js
index ce4d924..295a021 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -92,7 +92,7 @@ service.interceptors.response.use(
useUserStore()
.logOut()
.then(() => {
- location.href = '/health/index'
+ location.href = '/hrms/index'
})
})
.catch(() => {
diff --git a/src/views/health/activity/index.vue b/src/views/health/activity/index.vue
new file mode 100644
index 0000000..8807515
--- /dev/null
+++ b/src/views/health/activity/index.vue
@@ -0,0 +1,325 @@
+
+