devicesmgt/sgzb-ui/src/api/repairTest/inventoryScrap.js

78 lines
1.4 KiB
JavaScript
Raw Normal View History

2025-03-04 10:42:21 +08:00
import request from '@/utils/request';
//
//获取机具类型树
export function equipmentTypeTree(data) {
return request({
url: '/material/select/getDeviceTypeTree',
method: 'post',
data: data
});
}
//获取设备编号列表
export function getMachineListByCode(query) {
return request({
2025-03-04 13:11:33 +08:00
url: '/base/machine/getMachineList',
2025-03-04 10:42:21 +08:00
method: 'get',
params: query
});
}
//新增盘带报废
export function addScrapInfo(data) {
return request({
url: '/material/scrap/addList ',
method: 'post',
data: data
});
}
//获取盘带报废列表
export function getInventoryList(query) {
return request({
url: '/material/scrap/inventoryList',
method: 'get',
params: query
});
}
//获取盘带报废详情
export function getScrapInfo(query) {
return request({
url: '/material/scrap/getDetailsList',
method: 'get',
params: query
});
}
//修改盘带报废
export function editScrapInfo(data) {
return request({
url: '/material/scrap/updateList ',
method: 'post',
data: data
});
}
//一级页面删除盘带报废
export function applyRemove(data) {
return request({
url: '/material/scrap/delete ',
method: 'post',
data: data
});
}
//盘点报废通过与驳回
export function inventoryPass(data) {
return request({
url: '/material/scrap/inventoryApprove',
method: 'post',
data: data
});
}