|
|
|
@ -150,10 +150,11 @@ export default class returningDom extends BasePage {
|
|
|
|
|
screen() {
|
|
|
|
|
this.redirectTo(this.page.raw.handover.returning.filter);
|
|
|
|
|
}
|
|
|
|
|
async query(){
|
|
|
|
|
await this.model.queryOrderInInfo(this.form.prdOrder)
|
|
|
|
|
async query() {
|
|
|
|
|
await this.model.queryOrderInInfo(this.form.prdOrder);
|
|
|
|
|
this.form.wlName = this.model.orderInInfo.materialCode;
|
|
|
|
|
this.form.sendSpot = this.model.orderInInfo.sendSpot
|
|
|
|
|
this.form.sendSpot = this.model.orderInInfo.sendSpot;
|
|
|
|
|
this.form.totalBackAmount = this.model.orderInInfo.totalBackAmount;
|
|
|
|
|
}
|
|
|
|
|
LocationChoice(e: any) {
|
|
|
|
|
console.log('e>>>>>>>>>>>>>>>>>>>>>>>>', e);
|
|
|
|
@ -167,7 +168,6 @@ export default class returningDom extends BasePage {
|
|
|
|
|
this.form.sapFactoryCode = await this.model.queryDefaultFactoryCode();
|
|
|
|
|
//页面初始化 获取可选库位
|
|
|
|
|
let means: any = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any);
|
|
|
|
|
let sendSpot = JSON.parse(localStorage.getItem('sendSpot') as any);
|
|
|
|
|
if (JSON.parse(sessionStorage.getItem('data') as any)) {
|
|
|
|
|
this.data = JSON.parse(sessionStorage.getItem('data') as any);
|
|
|
|
|
this.form.prdOrder = this.data.label;
|
|
|
|
@ -208,12 +208,14 @@ export default class returningDom extends BasePage {
|
|
|
|
|
this.$form.resetFields();
|
|
|
|
|
}
|
|
|
|
|
materialConfirm(v: any) {
|
|
|
|
|
console.log('vvvvvv',v)
|
|
|
|
|
console.log('vvvvvv', v);
|
|
|
|
|
this.form.materialCode = v[0].value;
|
|
|
|
|
this.form.wlName = v[0].label;
|
|
|
|
|
console.log('this.model.materielList', this.model.materielList);
|
|
|
|
|
this.model.materielList.forEach((item: any) => {
|
|
|
|
|
if (this.form.materialCode == item.label) {
|
|
|
|
|
// this.form.amount = item.amount;
|
|
|
|
|
console.log('item', item);
|
|
|
|
|
this.form.sendSpot = item.sendSpot;
|
|
|
|
|
this.form.totalBackAmount = item.totalBackAmount;
|
|
|
|
|
// this.form.wkposCode = item.wkposCode;
|
|
|
|
@ -236,7 +238,7 @@ export default class returningDom extends BasePage {
|
|
|
|
|
// (this.form.sendSpot as any) = this.model.orderInInfo.sendSpot;
|
|
|
|
|
(this.form.sapFactoryCode as any) = this.model.orderInInfo.sapFactoryCode;
|
|
|
|
|
// delete this.form.wlName;
|
|
|
|
|
this.form.wlCode = this.wlCode.label
|
|
|
|
|
this.form.wlCode = this.wlCode.label;
|
|
|
|
|
await this.model.tluSubmit(this.form);
|
|
|
|
|
// this.$form.resetFields();
|
|
|
|
|
this.operatorName = '';
|
|
|
|
@ -245,15 +247,15 @@ export default class returningDom extends BasePage {
|
|
|
|
|
this.model.orderInInfo.sapFactoryCode = '';
|
|
|
|
|
// this.model.materielList = [];
|
|
|
|
|
this.model.materielList.length = 0;
|
|
|
|
|
this.empty()
|
|
|
|
|
this.empty();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async empty(){
|
|
|
|
|
this.form.wlName = ''
|
|
|
|
|
this.form.sendSpot = ''
|
|
|
|
|
this.form.amount = ''
|
|
|
|
|
await this.query()
|
|
|
|
|
async empty() {
|
|
|
|
|
this.form.wlName = '';
|
|
|
|
|
this.form.sendSpot = '';
|
|
|
|
|
this.form.amount = '';
|
|
|
|
|
await this.query();
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 操作人输入回车
|
|
|
|
|