|
|
|
@ -162,34 +162,36 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as any);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
await this.model.ImportQueryOrderInfo(this.form.documentNo.trim());
|
|
|
|
|
await this.model.ImportQueryOrderInfo(this.form.documentNo);
|
|
|
|
|
if (model.code == '1') {
|
|
|
|
|
if(this.model.orderInInfoList.length == 0){
|
|
|
|
|
this.empty()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'success',
|
|
|
|
|
title: this.$t('message.successful') as any,
|
|
|
|
|
});
|
|
|
|
|
console.log('orderInInfoList', this.model.orderInInfoList);
|
|
|
|
|
let list: any = localStorage.getItem('list');
|
|
|
|
|
localStorage.removeItem('list');
|
|
|
|
|
this.material = JSON.parse(list);
|
|
|
|
|
this.DNReceivingList = JSON.parse(list);
|
|
|
|
|
this.DNReceivingList.forEach((item: any) => {
|
|
|
|
|
item.wllist = [];
|
|
|
|
|
});
|
|
|
|
|
this.poList = [...this.DNReceivingList]; //结构
|
|
|
|
|
let arr = this.removeDuplicates(this.poList, 'poNo');
|
|
|
|
|
// 组装下拉结构
|
|
|
|
|
arr.forEach((item: any) => {
|
|
|
|
|
item.label = item.poNo;
|
|
|
|
|
item.value = item.poNo;
|
|
|
|
|
});
|
|
|
|
|
this.poList = arr;
|
|
|
|
|
// 自动化流程改造测试
|
|
|
|
|
this.poListChoice({
|
|
|
|
|
pickerName: this.poList.find(() => true),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
let list: any = localStorage.getItem('list');
|
|
|
|
|
localStorage.removeItem('list');
|
|
|
|
|
this.material = JSON.parse(list);
|
|
|
|
|
this.DNReceivingList = JSON.parse(list);
|
|
|
|
|
this.DNReceivingList.forEach((item: any) => {
|
|
|
|
|
item.wllist = [];
|
|
|
|
|
});
|
|
|
|
|
this.poList = [...this.DNReceivingList]; //结构
|
|
|
|
|
let arr = this.removeDuplicates(this.poList, 'poNo');
|
|
|
|
|
// 组装下拉结构
|
|
|
|
|
arr.forEach((item: any) => {
|
|
|
|
|
item.label = item.poNo;
|
|
|
|
|
item.value = item.poNo;
|
|
|
|
|
});
|
|
|
|
|
this.poList = arr;
|
|
|
|
|
|
|
|
|
|
// 自动化流程改造测试
|
|
|
|
|
this.poListChoice({
|
|
|
|
|
pickerName: this.poList.find(() => true),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// 去除重复 方法
|
|
|
|
|
// 传入数组 list 及要去重的属性 valueKey
|
|
|
|
@ -352,6 +354,19 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
this.DNReceivingList = [];
|
|
|
|
|
await this.query();
|
|
|
|
|
}
|
|
|
|
|
empty() {
|
|
|
|
|
this.LocationList = [];
|
|
|
|
|
this.Location = [];
|
|
|
|
|
this.poNo = '';
|
|
|
|
|
this.poList = [];
|
|
|
|
|
this.wl = {
|
|
|
|
|
value: null,
|
|
|
|
|
};
|
|
|
|
|
this.every = {};
|
|
|
|
|
this.materialList = [];
|
|
|
|
|
this.receiptAmount = null;
|
|
|
|
|
this.DNReceivingList = [];
|
|
|
|
|
}
|
|
|
|
|
async onSubmit() {
|
|
|
|
|
if (this.LocationList.length === 0) {
|
|
|
|
|
this.customToast(this.$t('message.Commission_tips5') as any);
|
|
|
|
|