import {request} from '../../utils/request.js'
|
export function getMaterial(data){ //查询PO单
|
return request({
|
url: `/PurchaseOrder/pageDetails`,
|
method: 'get',
|
data
|
})
|
}
|
//根据采购单号和物料编码获取采购明细
|
export function getPurchaseOrderDetail(data){ //查询PO单
|
return request({
|
url: `/api/wmsOrderPurchase/QueryDetailsPda`,
|
method: 'get',
|
data
|
})
|
}
|
//取货单列表
|
export function getQhdOrderDetail(data){ //查询PO单
|
return request({
|
url: `/sorting/order/detail/list`,
|
method: 'get',
|
data
|
})
|
}
|
export function addDelivery(data){ //确认收货
|
return request({
|
url: `/api/receivingProcess/add`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
export function getCollect(data){ //本次收货
|
return request({
|
url: `/ReceivingProcess/getCollect`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
export function getShortageMaterial(data){ //缺料
|
return request({
|
url: `/ReceivingProcess/getShortageMaterial`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
|
// 2.29
|
//根据采购单号和物料编码获取采购明细
|
export function getPurchaseOrderDetail2(data){ //查询PO单
|
return request({
|
url: `/ReceivingProcess/QueryDetails`,
|
method: 'get',
|
data
|
})
|
}
|
export function addDeliveryNew(data){ //确认收货
|
return request({
|
url: `/ReceivingProcess/AddPODeliveryForGoods`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
|
export function createBatchNo(data){ //自动生成收货批次号 【Editby shaocx,2022-12-30】
|
return request({
|
url: `/PurchaseOrder/createBatchNo`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
|
export function query(data){ //单据状态统计
|
return request({
|
// url: `/check/order/status/query`, //
|
url: `/ReceivingProcess/AddPODeliveryForGoodsCheck`,
|
method: 'post',
|
contentType:'application/json',
|
data
|
})
|
}
|
|
//SAP-下拉
|
export function getSapSelect(data) {
|
return request({
|
url: `/ReceivingProcess/getsaplocation`,
|
method: 'get',
|
data
|
})
|
}
|
|
|
//越库 - 主页列表
|
export function getMoveWarehouseGroup(data) {
|
return request({
|
url: `/PurchaseOrder/queryAllowYKDetails`,
|
method: 'get',
|
data
|
})
|
}
|
//越库 - 确认
|
export function addconfirmMove(data) {
|
return request({
|
url: `/ReceivingProcess/yuekuForSHQY`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
//越库 -子页列表
|
export function getMoveOrderDetail(data){
|
return request({
|
url: `/sorting/order/detail/list`,
|
method: 'get',
|
data
|
})
|
}
|
|
// 收货校验
|
export function addShouhuoJiaoYan(data){
|
return request({
|
url: `/ReceivingProcess/ValidateBeforeAddPODeliveryForGoods`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|