fix: 新功能开发,原有功能优化。
This commit is contained in:
44
src/api/health/activity.js
Normal file
44
src/api/health/activity.js
Normal file
@@ -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'
|
||||
})
|
||||
}
|
||||
44
src/api/health/heightWeightRecord.js
Normal file
44
src/api/health/heightWeightRecord.js
Normal file
@@ -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'
|
||||
})
|
||||
}
|
||||
44
src/api/health/medicineBasic.js
Normal file
44
src/api/health/medicineBasic.js
Normal file
@@ -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'
|
||||
})
|
||||
}
|
||||
44
src/api/health/medicineStock.js
Normal file
44
src/api/health/medicineStock.js
Normal file
@@ -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'
|
||||
})
|
||||
}
|
||||
44
src/api/health/medicineStockIn.js
Normal file
44
src/api/health/medicineStockIn.js
Normal file
@@ -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'
|
||||
})
|
||||
}
|
||||
@@ -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'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user