diff --git a/src/api/request2.js b/src/api/request2.js index de9c0af9..b4cce1fa 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -441,7 +441,7 @@ export function validateItemAndLocation(parmas) { export function getPutawayRecommendLocation(params) { return request({ - url: baseApi + "/wms/location/recommendLocation", + url: baseApi + "/wms/location/recommendLocationNew", method: "post", data: params, }); diff --git a/src/pages/productionReturn/record/returnToStore.vue b/src/pages/productionReturn/record/returnToStore.vue index 96a07773..cf5596ec 100644 --- a/src/pages/productionReturn/record/returnToStore.vue +++ b/src/pages/productionReturn/record/returnToStore.vue @@ -227,7 +227,6 @@ }) } else { - debugger var detail = item.subList.find(r => { if (r.packingNumber == label.packingNumber && r.batch == label.batch) { @@ -325,7 +324,8 @@ itemCode: label.itemCode, batch: label.batch, inventoryStatus: label.inventoryStatus, - supplierCode: pack.supplierCode + supplierCode: pack.supplierCode, + businessCode:this.businessTypeCode }; console.log(JSON.stringify(param)) getPutawayRecommendLocation(param).then(res => { diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue index 13bb04fc..581efa96 100644 --- a/src/pages/putaway/record/putawayRecord.vue +++ b/src/pages/putaway/record/putawayRecord.vue @@ -118,13 +118,13 @@ businessType: {}, showToLoaction: true, recommendLocationList: [], //推荐库位列表 - fromWarehouseCode: '' //来源仓库 + fromWarehouseCode: '' ,//来源仓库 + businessTypeCode:"PurchasePutaway" }; }, onLoad(option) { this.clearData(); - var typeCode = "PurchasePutaway" - getBusinessType(typeCode, res => { + getBusinessType(this.businessTypeCode, res => { if (res.success) { this.businessType = res.businessType; this.fromLocationAreaTypeList = res.fromLocationAreaTypeList; @@ -206,7 +206,8 @@ itemCode: balance.itemCode, batch: balance.batch, inventoryStatus: balance.inventoryStatus, - supplierCode: pack.supplierCode + supplierCode: pack.supplierCode, + businessCode:this.businessTypeCode }; console.log(JSON.stringify(param)) getPutawayRecommendLocation(param).then(res => {