postdischarge-ui/src/api/system/specialDiseaseNode.js

55 lines
1.3 KiB
JavaScript
Raw Normal View History

2024-03-27 15:57:52 +08:00
import request from '@/utils/request'
2024-04-08 10:13:32 +08:00
// 任务细分
2024-03-27 15:57:52 +08:00
export function taskPartitionList(taskTypeId) {
return request({
url: `/system/partition/taskPartitionList?taskTypeId=${taskTypeId}`,
method: 'get',
})
}
2024-05-22 17:36:47 +08:00
export function list(parentDictCode) {
return request({
url: `/system/dict/data/list?parentDictCode=${parentDictCode}`,
method: 'get',
})
}
2024-04-08 10:13:32 +08:00
// 任务类型
2024-03-27 15:57:52 +08:00
export function selectTaskTypeList() {
return request({
url: '/system/taskType/selectTaskTypeList',
method: 'get',
})
}
2024-04-08 10:13:32 +08:00
// 任务状态
2024-04-22 17:13:44 +08:00
export function taskStatusDictList(id) {
2024-03-27 15:57:52 +08:00
return request({
2024-04-22 17:13:44 +08:00
url: `/system/taskStatus/taskStatusDictList?taskPartitionId=${id}`,
2024-03-27 15:57:52 +08:00
method: 'get',
})
2024-04-08 10:13:32 +08:00
}
//新增修改节点
export function specialDiseaseNode(data) {
return request({
url: `/system/specialDiseaseNode/edit`,
method: 'put',
data
})
}
2024-04-08 10:35:35 +08:00
//查询主路径详情
export function selectSpecialDisease(id) {
return request({
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
method: 'get'
})
2024-04-08 15:14:33 +08:00
}
//审核完成
export function updateRouteCheckStatus(data) {
return request({
url: `/system/specialDiseaseNode/updateRouteCheckStatus`,
method: 'post',
data
})
2024-04-08 10:35:35 +08:00
}