Files
klp-oa/klp-ui/src/api/wms/purchasePlan.js
2025-07-18 17:22:56 +08:00

45 lines
839 B
JavaScript

import request from '@/utils/request'
// 查询采购计划主列表
export function listPurchasePlan(query) {
return request({
url: '/wms/purchasePlan/list',
method: 'get',
params: query
})
}
// 查询采购计划主详细
export function getPurchasePlan(planId) {
return request({
url: '/wms/purchasePlan/' + planId,
method: 'get'
})
}
// 新增采购计划主
export function addPurchasePlan(data) {
return request({
url: '/wms/purchasePlan',
method: 'post',
data: data
})
}
// 修改采购计划主
export function updatePurchasePlan(data) {
return request({
url: '/wms/purchasePlan',
method: 'put',
data: data
})
}
// 删除采购计划主
export function delPurchasePlan(planId) {
return request({
url: '/wms/purchasePlan/' + planId,
method: 'delete'
})
}