|
|
|
@ -270,16 +270,16 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
this.every = { ...e.pickerName };
|
|
|
|
|
//清空库位列表 避免库位重复添加
|
|
|
|
|
console.log('this.every', this.every);
|
|
|
|
|
this.Location = [];
|
|
|
|
|
//this.Location = [];
|
|
|
|
|
// 查询时初始化仓库
|
|
|
|
|
this.Location = await this.initLocation(this.every);
|
|
|
|
|
if (this.Location.length == 0) {
|
|
|
|
|
await this.queryLoction();
|
|
|
|
|
}
|
|
|
|
|
// this.Location = await this.initLocation(this.every);
|
|
|
|
|
// if (this.Location.length == 0) {
|
|
|
|
|
// await this.queryLoction();
|
|
|
|
|
// }
|
|
|
|
|
// 自动化流程改造测试
|
|
|
|
|
this.LocationChoice({
|
|
|
|
|
pickerName: this.Location.find(() => true),
|
|
|
|
|
});
|
|
|
|
|
// this.LocationChoice({
|
|
|
|
|
// pickerName: this.Location.find(() => true),
|
|
|
|
|
// });
|
|
|
|
|
this.DNReceivingList.forEach((item: any, index: any) => {
|
|
|
|
|
if (item.poNo == this.every.poNo && item.materialCode == this.every.materialCode && item.poLine == this.every.poLine) {
|
|
|
|
|
this.everyIndex = index;
|
|
|
|
@ -371,13 +371,13 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
// 清空 add table
|
|
|
|
|
this.LocationList = [];
|
|
|
|
|
// 仓库
|
|
|
|
|
this.Location = [];
|
|
|
|
|
// this.Location = [];
|
|
|
|
|
this.poNo = '';
|
|
|
|
|
this.poList = [];
|
|
|
|
|
// 清空 当前选择的库位对象
|
|
|
|
|
this.wl = {
|
|
|
|
|
value: null,
|
|
|
|
|
};
|
|
|
|
|
// this.wl = {
|
|
|
|
|
// value: null,
|
|
|
|
|
// };
|
|
|
|
|
// 清空 物料对象
|
|
|
|
|
this.every = {};
|
|
|
|
|
// 清空 原始物料列表
|
|
|
|
@ -391,12 +391,12 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
empty() {
|
|
|
|
|
this.LocationList = [];
|
|
|
|
|
this.Location = [];
|
|
|
|
|
//this.Location = [];
|
|
|
|
|
this.poNo = '';
|
|
|
|
|
this.poList = [];
|
|
|
|
|
this.wl = {
|
|
|
|
|
value: null,
|
|
|
|
|
};
|
|
|
|
|
// this.wl = {
|
|
|
|
|
// value: null,
|
|
|
|
|
// };
|
|
|
|
|
this.every = {};
|
|
|
|
|
this.materialList = [];
|
|
|
|
|
this.receiptAmount = null;
|
|
|
|
|