import request from '../untils/request2024'
|
import qs from 'qs'
|
export function getMaterial(data){ //查询PO单
|
return request({
|
url: `/PurchaseOrder/pageDetails`,
|
method: 'get',
|
data
|
})
|
}
|
//根据采购单号和物料编码获取采购明细
|
export function getPurchaseOrderDetail(data){ //查询PO单
|
return request({
|
url: `/PurchaseOrder/QueryDetails`,
|
method: 'get',
|
data
|
})
|
}
|
//根据采购单号和物料编码获取采购明细
|
export function getPurchaseOrderDetail2(data){ //查询PO单
|
return request({
|
url: `/api/inbound/inScan/getData`,
|
method: 'post',
|
data
|
})
|
}
|
//根据采购单号和物料编码获取采购明细,已收货的专用
|
export function queryDetailsForHasSH(data){ //查询PO单
|
return request({
|
url: `/PurchaseOrder/QueryDetailsForHasSH`,
|
method: 'get',
|
data
|
})
|
}
|
//根据托盘号获取所有物料 打印
|
export function queryDetailsForConter(data){
|
return request({
|
url: `/WarehousOrder/getMaterialList`,
|
method: 'get',
|
data
|
})
|
}
|
//收货
|
export function getOutMaterial(data){ //查询PO单
|
return request({
|
url:`/delivery/detail/query?${qs.stringify(data)}`,
|
method: 'get'
|
})
|
}
|
|
export function addDelivery(data){ //确认收货
|
return request({
|
url: `/ReceivingProcess/addDelivery`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
export function addDeliveryNew(data){ //确认收货
|
return request({
|
url: `/api/task/receiptConvert`,
|
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
|
})
|
}
|
|
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
|
})
|
}
|
|
//删除图片
|
export function deletePicture(data) {
|
return request({
|
url: `/delivery/record/deleteImages?${qs.stringify(data)}`,
|
method: 'post'
|
})
|
}
|
// 免费件 临时页面 确认收货
|
export function addDeliveryMfj(data){
|
return request({
|
url: `/ReceivingProcess/deliveryForTempFree`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
|
//SAP-下拉
|
export function getSapSelect(data) {
|
return request({
|
url: `/ReceivingProcess/getsaplocation`,
|
method: 'get',
|
data
|
})
|
}
|
|
// 收货-撤销
|
export function getOutShouHouGroup(data) {
|
return request({
|
url: `/ConfirmDeliveryAndDeliver/page`,
|
method: 'get',
|
contentType: 'application/json',
|
data: data
|
})
|
}
|
// 收货-确认撤销
|
export function reSumeconfirmShouHou(data) {
|
return request({
|
url: `/ReceivingProcess/cancelAddDelivery`,
|
method: 'post',
|
contentType: 'application/json',
|
data: data
|
})
|
}
|
|
// 图片预览
|
export function getOutImgGroup(data) {
|
return request({
|
url: `/CollectDelivery/previewImages`,
|
method: 'get',
|
contentType: 'application/json',
|
data: data
|
})
|
}
|
|
// 盘点计划
|
export function getOutPanDianGroup(data) {
|
return request({
|
url: `/ConfirmDeliveryAndDeliver/page`,
|
method: 'get',
|
contentType: 'application/json',
|
data: data
|
})
|
}
|
|
// 计划完成
|
export function getPlanEnd(data) {
|
return request({
|
url: `/check/order/querycontainer?${qs.stringify(data)}`,
|
method: 'get',
|
})
|
}
|
// 盘点计划
|
export function getOutCpGroup(data) {
|
return request({
|
url: `/check/order/querycontainer?${qs.stringify(data)}`,
|
method: 'get',
|
contentType: 'application/json',
|
data: data
|
})
|
}
|
// 盘点计划 -确认
|
export function getPlanEndCfm(data) {
|
return request({
|
url: `/check/order/updatecheck`,
|
method: 'post',
|
contentType: 'application/json',
|
data: data
|
})
|
}
|
// 盘点计划 -统计
|
export function getPlanTotal(data) {
|
return request({
|
url: `/check/order/querycount?${qs.stringify(data)}`,
|
method: 'get',
|
contentType: 'application/json',
|
})
|
}
|
// 收货校验
|
export function addShouhuoJiaoYan(data){
|
return request({
|
url: `/ReceivingProcess/ValidateBeforeAddPODeliveryForGoods`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
|
|
export function addDeliveryManageQ(data){ //签收
|
return request({
|
url: `/GoodsDelivery/updateOrderStattus`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
|
|
//根据采购单号和物料编码获取采购明细
|
export function getPurchaseOrderDetailShgl(data){ //查询PO单
|
return request({
|
url: `/GoodsDelivery/QueryDetailsShgl`,
|
method: 'get',
|
data
|
})
|
}
|
|
|
export function getShList(data) {
|
return request({
|
url: `/GoodsDelivery/page`,
|
method: 'get',
|
data
|
})
|
}
|
|
|
|
// 发货-撤销
|
export function getOutfaHouGroup(data) {
|
return request({
|
url: `/WareBackoutOrderDetails/page`,
|
method: 'get',
|
contentType: 'application/json',
|
data: data
|
})
|
}
|
|
|
// 发货-确认撤销
|
export function reSumeconfirmfaHou(data) {
|
return request({
|
// url: `/ReceivingProcess/cancelDeliveryRecordAdd`,
|
url: `/delivery/record/cancelDeliveryRecordAdd`,
|
method: 'post',
|
contentType: 'application/json',
|
data: data
|
})
|
}
|
|
|
export function getPositions(data){
|
return request({
|
url: `/api/basicInfo/base/storage/getPositionList`,
|
method: 'post',
|
data
|
})
|
}
|