器材目录画面 up by dh

This commit is contained in:
duhe
2025-02-27 18:32:44 +08:00
parent 1d533d1199
commit 3180f1e062
7 changed files with 1440 additions and 39 deletions

View File

@@ -0,0 +1,73 @@
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/openhis";
// 查询器材目录列表
export function getDeviceList(query) {
return request({
url: '/datadictionary/device/information-page',
method: 'get',
params: query
})
}
// 查询器材目录详细
export function getDeviceOne(id) {
return request({
url: '/datadictionary/device/information-one/' + parseStrEmpty(id),
method: 'get'
})
}
// 新增器材目录
export function addDevice(data) {
return request({
url: '/datadictionary/device/information',
method: 'post',
data: data
})
}
// 修改器材目录
export function editDevice(data) {
return request({
url: '/datadictionary/device/information',
method: 'put',
data: data
})
}
// // 删除器材目录
// export function delUser(userId) {
// return request({
// url: '/system/user/' + userId,
// method: 'delete'
// })
// }
// 器材目录分类查询
export function getDiseaseTreatmentInit() {
return request({
url: '/datadictionary/device/init',
method: 'get'
})
}
// 停用病种目录
export function stopDevice(ids) {
console.log(ids)
return request({
url: '/datadictionary/device/information-stop',
method: 'put',
data: ids
})
}
// 启用病种目录
export function startDevice(ids) {
console.log(ids)
return request({
url: '/datadictionary/device/information-start',
method: 'put',
data: ids
})
}