import {request} from '../../utils/request.js'
|
import qs from 'qs'
|
//获取当前容器下的组盘详情
|
export function getContainerRecord(containerCode){ //牧野物料查询
|
let data = {
|
containerCode:containerCode
|
}
|
return request({
|
// url: `/WarehousOrder/getMaterialList?ContainerCode=${containerCode}`,
|
url: `/WarehousOrder/getMaterialList?${qs.stringify(containerCode)}`,
|
method: 'get'
|
})
|
}
|
|
export function getMaterialList(data){ //物料查询 带库存
|
return request({
|
// url: `/WareMaterial/page?Code=${materialCode}&PageNo=1&PageSize=10`,
|
url: `/WarehousOrder/getInventoryQuantity?${qs.stringify(data)}`,
|
method: 'get',
|
})
|
}
|
|
//获取容器信息
|
export function getContainDetail(code) {
|
let data = {
|
Code:code,
|
PageNo:1,
|
PageSize:10
|
}
|
return request({
|
// url: `/WareContainer/page?Code=${code}&PageNo=1&PageSize: 10`,
|
url: `/WareContainer/page?${qs.stringify(data)}`,
|
method: 'get'
|
})
|
|
}
|
|
export function getOrderNo(data){ //自动生成单号
|
return request({
|
url: `/CriterionEnterWare/getOrderNo`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
export function getContainerDetails(data){ //空托查询
|
return request({
|
url: `/CriterionEnterWare/getContainerDetails`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
export function getMaterialDetails(data){ //物料查询
|
return request({
|
url: `/CriterionEnterWare/getMaterialDetails?materialCode=${data.materialCode}`,
|
method: 'post'
|
})
|
}
|
export function WarematerialCode(data){ //牧野物料查询
|
return request({
|
url: `/CollectDelivery/page?WarematerialCode=${data.WarematerialCode}`,
|
method: 'get',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
export function addGroupDisk(data){ //组盘
|
return request({
|
url: `/api/wmsGroupDisk/PdaBindUpdate`,
|
method: 'post',
|
data
|
})
|
}
|
export function onlyUpdateDutyCycle(data){ //仅更新空间占比数据 【Editby shaocx,2023-05-23】
|
return request({
|
url: `/WarehousOrder/onlyUpdateDutyCycle`,
|
method: 'post',
|
data
|
})
|
}
|
export function add(data){ //牧野人工组盘
|
return request({
|
url: `/OrderReceipt/add`,
|
method: 'post',
|
contentType:'application/json',
|
data: data
|
})
|
}
|
export function PdaBindListForSNCode(data){ //物料查询
|
return request({
|
url: `/api/WmsGroupDisk/PdaBindListForSNCode?${qs.stringify(data)}`,
|
method: 'get',
|
})
|
}
|
|
// 调整库龄
|
export function addAdjustAge(data){
|
return request({
|
url: `/WareAge/addAdjustAge`,
|
method: 'post',
|
data
|
})
|
}
|
// 调整库龄
|
export function getMaterialListForAdjustAge(data){ //物料查询
|
return request({
|
url: `/WareAge/GetMaterialListForAdjustAge?${qs.stringify(data)}`,
|
method: 'get',
|
})
|
}
|
|
|
export function getareaTypesList(data){ //载具类型
|
var data1 = {
|
isVirtually:false
|
}
|
return request({
|
url: `/api/wmsArea/page`,
|
method: 'post',
|
data:data1
|
})
|
}
|
|
// 推荐库位
|
export function getRecommendList(data) {
|
return request({
|
// url: `/WareMaterial/getlocation?${qs.stringify(data)}`,
|
//url: `/api/wmsPlace/page?${qs.stringify(data)}`,
|
url: `/api/WmsPlace/RecommendPlaceList?${qs.stringify(data)}`,
|
method: 'post'
|
})
|
}
|
|
|
//容器上架 - 查询物料
|
export function getWmsContainer(data){
|
return request({
|
url: `/api/wmsPutaway/getContainerInfoQuan`,
|
method: 'post',
|
data
|
})
|
}
|
|
//组空盘
|
export function addGroupContainer(data){
|
return request({
|
url: `/api/wmsPutaway/putawayConfirm`,
|
method: 'post',
|
data
|
})
|
}
|
|
//容器上架确认
|
export function putContainerConfirm(data){
|
return request({
|
url: `/api/WmsPutaway/PutawayConfirmxxxxxx`,
|
method: 'post',
|
data
|
})
|
}
|
|
//容器类型
|
export function getContainerTypeList(data){
|
return request({
|
url: `/api/wmsContainerType/page`,
|
method: 'post',
|
data,
|
})
|
}
|
|
|
//库位信息
|
export function getwmsPlace(data){
|
return request({
|
url: `/api/wmsPlace/page`,
|
method: 'post',
|
data
|
})
|
}
|
|
//库位信息-容器下架
|
export function getwmsPlaceForContainerOff(data){
|
return request({
|
url: `/api/wmsUnshelve/getPlaceInfo`,
|
method: 'post',
|
data
|
})
|
}
|
|
//查物料和库存
|
export function getwmsContainerType(data){
|
return request({
|
// url: `/api/WmsContainer/ContainerTypeForPda?${qs.stringify(data)}`,
|
url: `/api/wmsUnshelve/getMaterialCodeByInfo?${qs.stringify(data)}`,
|
method: 'get'
|
})
|
}
|
|
//容器下架
|
export function addGroupContainerXiajia(data){
|
return request({
|
url: `/api/wmsUnshelve/containerUnshelveExecute`,
|
method: 'post',
|
data
|
})
|
}
|
|
|
|
//======================
|
export function getBhbMaterialList(data){
|
return request({
|
url: `/api/WmsCommonnQuery/QueryUpiListByUpi`,
|
method: 'post',
|
data: data
|
})
|
}
|
|
export function getenumDataList(data){
|
return request({
|
url: `/api/sysEnum/enumDataList?${qs.stringify(data)}`,
|
method: 'get',
|
data: data
|
})
|
}
|
|
export function WmsOperationTaskSetNG(data){
|
return request({
|
url: `/api/WmsOperationTask/SetNG`,
|
method: 'post',
|
data: data
|
})
|
}
|
export function WmsOperationTaskCancelNG(data){
|
return request({
|
url: `/api/WmsOperationTask/CancelNG`,
|
method: 'post',
|
data: data
|
})
|
}
|