Browse Source

修改推荐库位

hella_vue3
lijuncheng 8 months ago
parent
commit
4f173f179d
  1. 2
      src/api/request2.js
  2. 4
      src/pages/productionReturn/record/returnToStore.vue
  3. 9
      src/pages/putaway/record/putawayRecord.vue

2
src/api/request2.js

@ -441,7 +441,7 @@ export function validateItemAndLocation(parmas) {
export function getPutawayRecommendLocation(params) { export function getPutawayRecommendLocation(params) {
return request({ return request({
url: baseApi + "/wms/location/recommendLocation", url: baseApi + "/wms/location/recommendLocationNew",
method: "post", method: "post",
data: params, data: params,
}); });

4
src/pages/productionReturn/record/returnToStore.vue

@ -227,7 +227,6 @@
}) })
} else { } else {
debugger
var detail = item.subList.find(r => { var detail = item.subList.find(r => {
if (r.packingNumber == label.packingNumber && if (r.packingNumber == label.packingNumber &&
r.batch == label.batch) { r.batch == label.batch) {
@ -325,7 +324,8 @@
itemCode: label.itemCode, itemCode: label.itemCode,
batch: label.batch, batch: label.batch,
inventoryStatus: label.inventoryStatus, inventoryStatus: label.inventoryStatus,
supplierCode: pack.supplierCode supplierCode: pack.supplierCode,
businessCode:this.businessTypeCode
}; };
console.log(JSON.stringify(param)) console.log(JSON.stringify(param))
getPutawayRecommendLocation(param).then(res => { getPutawayRecommendLocation(param).then(res => {

9
src/pages/putaway/record/putawayRecord.vue

@ -118,13 +118,13 @@
businessType: {}, businessType: {},
showToLoaction: true, showToLoaction: true,
recommendLocationList: [], // recommendLocationList: [], //
fromWarehouseCode: '' // fromWarehouseCode: '' ,//
businessTypeCode:"PurchasePutaway"
}; };
}, },
onLoad(option) { onLoad(option) {
this.clearData(); this.clearData();
var typeCode = "PurchasePutaway" getBusinessType(this.businessTypeCode, res => {
getBusinessType(typeCode, res => {
if (res.success) { if (res.success) {
this.businessType = res.businessType; this.businessType = res.businessType;
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList; this.fromLocationAreaTypeList = res.fromLocationAreaTypeList;
@ -206,7 +206,8 @@
itemCode: balance.itemCode, itemCode: balance.itemCode,
batch: balance.batch, batch: balance.batch,
inventoryStatus: balance.inventoryStatus, inventoryStatus: balance.inventoryStatus,
supplierCode: pack.supplierCode supplierCode: pack.supplierCode,
businessCode:this.businessTypeCode
}; };
console.log(JSON.stringify(param)) console.log(JSON.stringify(param))
getPutawayRecommendLocation(param).then(res => { getPutawayRecommendLocation(param).then(res => {

Loading…
Cancel
Save