cosmoim-852 fix DN收货调整

master
hou 3 years ago
parent 20aef9d82a
commit 8df6a83658

@ -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 = [];

@ -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));

@ -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) {

@ -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) => {

Loading…
Cancel
Save