Browse Source

YT-406装配制品上架,pc申请同一物料不同批次,pda显示成一个批次一共的数量,应不同批次分开显示数量

intex_online20241111
zhang_li 1 month ago
parent
commit
b6b3888d74
  1. 2
      src/common/detail.js
  2. 20
      src/pages/productPutaway/job/productPutawayDetail.vue

2
src/common/detail.js

@ -49,7 +49,7 @@ export function getDataSource(subList) {
let items = []; let items = [];
subList.forEach(detail => { subList.forEach(detail => {
var item = items.find(r => var item = items.find(r =>
r.itemCode == detail.itemCode) r.itemCode == detail.itemCode && r.batch == detail.batch )
if (item == undefined) { if (item == undefined) {
item = createItemInfo(detail); item = createItemInfo(detail);
let newDetail = createDetailInfo(detail); // let newDetail = createDetailInfo(detail); //

20
src/pages/productPutaway/job/productPutawayDetail.vue

@ -334,15 +334,24 @@
var locationCode = result.balance.locationCode; var locationCode = result.balance.locationCode;
var inventoryStatus = result.balance.inventoryStatus; var inventoryStatus = result.balance.inventoryStatus;
var detail = this.detailSource.find(r => r.itemCode == itemCode); var detail = this.detailSource.find(r => r.itemCode == itemCode);
if (detail == undefined) { if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
} else { } else {
var itemDetail = detail.subList.find(r => { // var itemDetail = detail.subList.find(r => {
return r.batch == batch && // return r.batch == result.label.batch &&
r.fromLocationCode == result.fromLocationCode // r.fromLocationCode == result.fromLocationCode
// })
let itemDetail = ''
this.detailSource.find(item => {
const itemDetail1 = item.subList.find(r => {
return r.batch == result.label.batch && r.fromLocationCode == result.fromLocationCode
}) })
if (itemDetail == undefined) { if(itemDetail1){
itemDetail = itemDetail1
}
console.log(99,itemDetail1)
});
if (!itemDetail) {
this.showErrorMessage("批次【" + batch + "】库位【" + result this.showErrorMessage("批次【" + batch + "】库位【" + result
.fromLocationCode + "】不在列表中") .fromLocationCode + "】不在列表中")
} else { } else {
@ -379,6 +388,7 @@
} }
} }
} catch (e) { } catch (e) {
console.log(2333,e)
this.showMessage(e.message) this.showMessage(e.message)
} }
}, },

Loading…
Cancel
Save