tft-fe/src/api/consumablesManagement.js
2023-01-03 09:33:30 +08:00

96 lines
1.7 KiB
JavaScript

import request from './request'
// 出入库管理
export function getMaterialManagePage(data) {
return request({
url: '/material/MaterialManage/selectAll',
method: 'post',
data
})
}
export function getMaterialDetail(data) {
return request({
url: '/material/MaterialManage/detail',
method: 'post',
data
})
}
export function getOutInRecordRecord(data) {
return request({
url: '/material/OutInRecord/record',
method: 'post',
data
})
}
export function outInRecordRecordExport(data) {
return request({
url: '/material/MaterialManage/export',
method: 'post',
responseType: 'blob',
data,
timeout: 60000
})
}
export function getMaterialManageByid(data) {
return request({
url: '/material/MaterialManage/updateGet',
method: 'post',
data
})
}
export function materialManageUpdate(data) {
return request({
url: '/material/MaterialManage/update',
method: 'post',
data
})
}
export function materialManageInsert(data) {
return request({
url: '/material/MaterialManage/insert',
method: 'post',
data
})
}
export function materialManageDelete(data) {
return request({
url: '/material/MaterialManage/delete',
method: 'post',
data
})
}
export function setAlarmValueGet(data) {
return request({
url: '/material/MaterialManage/SetAlarmValueGet',
method: 'post',
data
})
}
export function setAlarmValue(data) {
return request({
url: '/material/MaterialManage/SetAlarmValue',
method: 'post',
data
})
}
// 出入库记录
// 在线耗材跟踪
export function onlineMaterialTrackSelect(data) {
return request({
url: '/material/MaterialManage/onlineMaterialTrackSelect',
method: 'post',
data
})
}