246 lines
5.0 KiB
JavaScript
246 lines
5.0 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 分页查询 营养科普-列表
|
|
export function getHealthSciencePageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_popular_article/list',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params:data
|
|
})
|
|
}
|
|
|
|
// 营养科普-新增
|
|
export function addHealthScienceApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_popular_article',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 营养科普-编辑
|
|
export function editHealthScienceApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_popular_article/edit',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 营养科普-删除
|
|
export function delHealthScienceApi(Id) {
|
|
return request({
|
|
url: '/smart-canteen/health_popular_article/del/'+Id,
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
// 获取慢性病字典-下拉
|
|
export function dictHealthChronicApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_chronic/dict-health-chronic',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 分页查询 慢性病 列表
|
|
export function getChronicPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_chronic/list',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params:data
|
|
})
|
|
}
|
|
// 慢性病-新增
|
|
export function addChronicApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_chronic',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 慢性病-更新
|
|
export function editChronicApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_chronic/edit',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 慢性病-更新
|
|
export function delChronicApi(Id) {
|
|
return request({
|
|
url: '/smart-canteen/health_chronic/del/'+Id,
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
// 分页查询 健康档案-列表
|
|
export function getHealthInfoPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_person_info/list',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params:data
|
|
})
|
|
}
|
|
// 查询 健康档案-详情
|
|
export function getHealthInfoDetailApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_person_info/detail-health-info',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data:data
|
|
})
|
|
}
|
|
// 健康档案-编辑
|
|
export function editHealthInfoApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_person_info/edit-health-info',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 健康档案-删除
|
|
export function delHealthInfoApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_person_info/del-health-info',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 模板-列表
|
|
export function getModelListApi() {
|
|
return request({
|
|
url: '/smart-canteen/health_medical_report_template/getModelList',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params:{}
|
|
})
|
|
}
|
|
// 查询 体检报告模板-详情
|
|
export function getModelByIdApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_medical_report_template/getModelById',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data:data
|
|
})
|
|
}
|
|
// 体检报告-编辑
|
|
export function addReportApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_person_medical_report/addReport',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
export function getReportApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_person_medical_report/getReportList',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data:data
|
|
})
|
|
}
|
|
export function delReportListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_person_medical_report/delReportList',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data:data
|
|
})
|
|
}
|
|
// 查询 体检报告-详情
|
|
export function getReportByIdApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/health_person_medical_report/getReportById',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data:data
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|