45 lines
922 B
JavaScript
45 lines
922 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询采购计划明细列表
|
|
export function listPurchasePlanDetail(query) {
|
|
return request({
|
|
url: '/wms/purchasePlanDetail/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询采购计划明细详细
|
|
export function getPurchasePlanDetail(detailId) {
|
|
return request({
|
|
url: '/wms/purchasePlanDetail/' + detailId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增采购计划明细
|
|
export function addPurchasePlanDetail(data) {
|
|
return request({
|
|
url: '/wms/purchasePlanDetail',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改采购计划明细
|
|
export function updatePurchasePlanDetail(data) {
|
|
return request({
|
|
url: '/wms/purchasePlanDetail',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除采购计划明细
|
|
export function delPurchasePlanDetail(detailId) {
|
|
return request({
|
|
url: '/wms/purchasePlanDetail/' + detailId,
|
|
method: 'delete'
|
|
})
|
|
}
|