|
|
@ -145,6 +145,8 @@ export default class finishProductOfflineDom extends BasePage {
|
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
|
|
async onReady() {
|
|
|
|
async onReady() {
|
|
|
|
this.$form.setRules(this.rules);
|
|
|
|
this.$form.setRules(this.rules);
|
|
|
|
|
|
|
|
await this.model.queryReturningTypeList();
|
|
|
|
|
|
|
|
this.form.aimWl = model.firstLocation;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 处理选择行 选中一条执行一次
|
|
|
|
* 处理选择行 选中一条执行一次
|
|
|
@ -240,9 +242,14 @@ export default class finishProductOfflineDom extends BasePage {
|
|
|
|
this.customToast(this.$t('message.barcode') as string);
|
|
|
|
this.customToast(this.$t('message.barcode') as string);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.model.searchCode == '') {
|
|
|
|
|
|
|
|
this.customToast(this.$t('message.barcode_PleaseScan') as string);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (this.materielList.length == 0) {
|
|
|
|
if (this.materielList.length == 0) {
|
|
|
|
this.materielList.push(this.model.materielList[0]);
|
|
|
|
this.materielList.push(this.model.materielList[0]);
|
|
|
|
this.materielList[this.materielList.length - 1].locCode = this.form.aimWl.label;
|
|
|
|
this.materielList[this.materielList.length - 1].locCode = this.form.aimWl.label;
|
|
|
|
|
|
|
|
this.model.setSearchCode();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
let flag = 0;
|
|
|
|
let flag = 0;
|
|
|
|
for (let i = 0; i < this.materielList.length; i++) {
|
|
|
|
for (let i = 0; i < this.materielList.length; i++) {
|
|
|
@ -254,7 +261,9 @@ export default class finishProductOfflineDom extends BasePage {
|
|
|
|
if (flag == 0) {
|
|
|
|
if (flag == 0) {
|
|
|
|
this.materielList.push(this.model.materielList[0]);
|
|
|
|
this.materielList.push(this.model.materielList[0]);
|
|
|
|
this.materielList[this.materielList.length - 1].locCode = this.form.aimWl.label;
|
|
|
|
this.materielList[this.materielList.length - 1].locCode = this.form.aimWl.label;
|
|
|
|
|
|
|
|
this.model.setSearchCode();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.model.setSearchCode();
|
|
|
|
this.customToast(this.$t('message.product_Tip7') as string);
|
|
|
|
this.customToast(this.$t('message.product_Tip7') as string);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -270,7 +279,7 @@ export default class finishProductOfflineDom extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
await this.model.queryOrderInInfo(this.form);
|
|
|
|
await this.model.queryOrderInInfo(this.form);
|
|
|
|
if (this.model.searchCode == '1') {
|
|
|
|
if (this.model.searchCode == '1') {
|
|
|
|
await this.model.queryTypeList(this.form.barCode);
|
|
|
|
await this.model.queryTypeList(this.model.materielList[0].productCode);
|
|
|
|
this.form.aimWl = model.firstLocation;
|
|
|
|
this.form.aimWl = model.firstLocation;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|