diff --git a/src/pages/raw/handover/picking/ByOrder.vue b/src/pages/raw/handover/picking/ByOrder.vue index 5636de1..a959940 100644 --- a/src/pages/raw/handover/picking/ByOrder.vue +++ b/src/pages/raw/handover/picking/ByOrder.vue @@ -319,6 +319,12 @@ export default class RawReceiptDetail extends BasePage { async onAggregate() { await this.model.queryProOrder(this.model.formParams); await this.model.queryProOrderResult(this.model.NEWparams); + if (this.model.proOrderResultList.length == 0) { + this.some = {}; + this.LocationList = []; + this.wlCode = ''; + return; + } await this.model.lockProOrderResult(this.model.proOrderResultList); this.some = {}; this.LocationList = []; diff --git a/src/pages/raw/handover/picking/model.ts b/src/pages/raw/handover/picking/model.ts index fc79c44..cc70f52 100644 --- a/src/pages/raw/handover/picking/model.ts +++ b/src/pages/raw/handover/picking/model.ts @@ -292,7 +292,8 @@ export class PickingModule extends VuexModule { // icon: 'none', // title: 'No Data Found!', // }); - vm.customToast(vm.$t('message.Pi_NoDataFound') as any); + // vm.customToast(vm.$t('message.Pi_NoDataFound') as any); + return; } aggregateList.forEach((item: any) => { (item.loginName = params.loginName), (item.differences = parseFloat(item.amount) - parseFloat(item.totalMoAmount)); diff --git a/src/pages/raw/ingoods/dnReceipt/ImportDN.vue b/src/pages/raw/ingoods/dnReceipt/ImportDN.vue index fe18dda..777b60d 100644 --- a/src/pages/raw/ingoods/dnReceipt/ImportDN.vue +++ b/src/pages/raw/ingoods/dnReceipt/ImportDN.vue @@ -243,7 +243,8 @@ export default class dnReceiptDom extends BasePage { this.receiptAmount = ''; this.poNo = e.pickerName.value; // 过滤重复物料 - this.materialList = JSON.parse(JSON.stringify(this.removeDuplicates(this.material, 'materialCode'))); + // this.materialList = JSON.parse(JSON.stringify(this.removeDuplicates(this.material, 'materialCode'))); + this.materialList = JSON.parse(JSON.stringify(this.material)); // 返回物料中poNo为选中的项; this.materialList = this.materialList.filter((item: any) => { if (item.poNo == e.pickerName.value) { diff --git a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue index f60a0f5..5e757f4 100644 --- a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue +++ b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue @@ -244,7 +244,8 @@ export default class dnReceiptDom extends BasePage { this.receiptAmount = ''; this.poNo = e.pickerName.value; // 过滤重复物料 - this.materialList = JSON.parse(JSON.stringify(this.removeDuplicates(this.material, 'materialCode'))); + // this.materialList = JSON.parse(JSON.stringify(this.removeDuplicates(this.material, 'materialCode'))); + this.materialList = JSON.parse(JSON.stringify(this.material)); console.log('this.materialList??>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', this.materialList); // 返回物料中poNo为选中的项; this.materialList = this.materialList.filter((item: any) => {