2025-07-25 11:25:03 +08:00
|
|
|
import request from '@/utils/request'
|
2025-08-11 18:02:06 +08:00
|
|
|
import qs from "qs";
|
2025-07-25 11:25:03 +08:00
|
|
|
export function queryBomAccountList(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/bomAccount/queryBomAccountList',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function queryBigItemByStationType(stationType) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `api/bomAccount/queryBigItemByStationType/${stationType}`,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function queryItemByArea(areaId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `api/bomAccount/queryItemByArea/${areaId}`,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function queryBomAccountPoints() {
|
|
|
|
|
return request({
|
|
|
|
|
url: `api/bomAccount/queryBomAccountPoints`,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function add(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/bomAccount',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function del(ids) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/bomAccount/',
|
|
|
|
|
method: 'delete',
|
|
|
|
|
data: ids
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function edit(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'api/bomAccount',
|
|
|
|
|
method: 'put',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-19 14:23:57 +08:00
|
|
|
export function queryBomPrintListD(data) {
|
2025-08-11 18:02:06 +08:00
|
|
|
return request({
|
2025-08-19 14:23:57 +08:00
|
|
|
url: 'api/bomAccount/queryBomPrintListD' + '?' + qs.stringify(data, { indices: false }),
|
2025-08-11 18:02:06 +08:00
|
|
|
method: 'get',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-19 14:23:57 +08:00
|
|
|
export function queryBomPrintListX(data) {
|
2025-08-11 18:02:06 +08:00
|
|
|
return request({
|
2025-08-19 14:23:57 +08:00
|
|
|
url: 'api/bomAccount/queryBomPrintListX' + '?' + qs.stringify(data, { indices: false }),
|
|
|
|
|
method: 'get',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function bomPrintBiaoQianList(dxw) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `api/bomAccount/bomPrintBiaoQianList/${dxw}`,
|
2025-08-11 18:02:06 +08:00
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-19 14:23:57 +08:00
|
|
|
export default { add, edit, del, queryBomAccountPoints, bomPrintBiaoQianList,queryBomPrintListD,queryBomPrintListX }
|