|
|
@ -140,9 +140,6 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
receiverName: '',
|
|
|
|
receiverName: '',
|
|
|
|
password: '',
|
|
|
|
password: '',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 页面Module
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
model = model;
|
|
|
|
model = model;
|
|
|
|
materialList: any = [];
|
|
|
|
materialList: any = [];
|
|
|
|
type = 'text';
|
|
|
|
type = 'text';
|
|
|
@ -151,15 +148,11 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
operatorName = '';
|
|
|
|
operatorName = '';
|
|
|
|
//添加库位和数量的列表
|
|
|
|
//添加库位和数量的列表
|
|
|
|
LocationList: any = [];
|
|
|
|
LocationList: any = [];
|
|
|
|
gather: any = [];
|
|
|
|
|
|
|
|
//库位
|
|
|
|
//库位
|
|
|
|
Location: any = [];
|
|
|
|
Location: any = [];
|
|
|
|
someIndex = 0;
|
|
|
|
someIndex = 0;
|
|
|
|
some: any = {};
|
|
|
|
some: any = {};
|
|
|
|
qty: any = '';
|
|
|
|
qty: any = '';
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 表单数据
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
form: any = {
|
|
|
|
form: any = {
|
|
|
|
documentNo: '',
|
|
|
|
documentNo: '',
|
|
|
|
amount: null,
|
|
|
|
amount: null,
|
|
|
@ -168,17 +161,9 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
operatorPass: '', // 接收人
|
|
|
|
operatorPass: '', // 接收人
|
|
|
|
rfPwd: '',
|
|
|
|
rfPwd: '',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 表单校验
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
rules: VFormRules<any> = {
|
|
|
|
rules: VFormRules<any> = {
|
|
|
|
amount: [{ required: true, message: this.$t('message.Pi_tip1') as string }],
|
|
|
|
amount: [{ required: true, message: this.$t('message.Pi_tip1') as string }],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 库存地点选择
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
locationCodeSelect = false;
|
|
|
|
|
|
|
|
detailHeader = detailHeader;
|
|
|
|
detailHeader = detailHeader;
|
|
|
|
empty() {
|
|
|
|
empty() {
|
|
|
|
this.some = {};
|
|
|
|
this.some = {};
|
|
|
@ -232,22 +217,23 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
this.Location = this.model.LocList;
|
|
|
|
this.Location = this.model.LocList;
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.Location = [];
|
|
|
|
console.log('1');
|
|
|
|
let content = {
|
|
|
|
// this.Location = [];
|
|
|
|
loginName: session.loginName,
|
|
|
|
// let content = {
|
|
|
|
sendSpot: null,
|
|
|
|
// loginName: session.loginName,
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
// sendSpot: null,
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
// factoryCode: session.factoryCode,
|
|
|
|
};
|
|
|
|
// workArea: session.workareaCode,
|
|
|
|
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
|
|
|
|
// };
|
|
|
|
res.forEach((item: any) => {
|
|
|
|
// let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
|
|
|
|
let pickerName: any = {};
|
|
|
|
// res.forEach((item: any) => {
|
|
|
|
pickerName.label = item.locationCode;
|
|
|
|
// let pickerName: any = {};
|
|
|
|
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
// pickerName.label = item.locationCode;
|
|
|
|
pickerName.sendSpot = item.sendSpot;
|
|
|
|
// pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
this.Location.push(pickerName);
|
|
|
|
// pickerName.sendSpot = item.sendSpot;
|
|
|
|
});
|
|
|
|
// this.Location.push(pickerName);
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
// });
|
|
|
|
|
|
|
|
// this.wlCode = this.Location[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
async materialChoice(e: any) {
|
|
|
|
async materialChoice(e: any) {
|
|
|
@ -269,22 +255,23 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
this.Location = this.model.LocList;
|
|
|
|
this.Location = this.model.LocList;
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.Location = [];
|
|
|
|
console.log('1');
|
|
|
|
let content = {
|
|
|
|
// this.Location = [];
|
|
|
|
loginName: session.loginName,
|
|
|
|
// let content = {
|
|
|
|
sendSpot: null,
|
|
|
|
// loginName: session.loginName,
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
// sendSpot: null,
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
// factoryCode: session.factoryCode,
|
|
|
|
};
|
|
|
|
// workArea: session.workareaCode,
|
|
|
|
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
|
|
|
|
// };
|
|
|
|
res.forEach((item: any) => {
|
|
|
|
// let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
|
|
|
|
let pickerName: any = {};
|
|
|
|
// res.forEach((item: any) => {
|
|
|
|
pickerName.label = item.locationCode;
|
|
|
|
// let pickerName: any = {};
|
|
|
|
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
// pickerName.label = item.locationCode;
|
|
|
|
pickerName.sendSpot = item.sendSpot;
|
|
|
|
// pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
this.Location.push(pickerName);
|
|
|
|
// pickerName.sendSpot = item.sendSpot;
|
|
|
|
});
|
|
|
|
// this.Location.push(pickerName);
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
// });
|
|
|
|
|
|
|
|
// this.wlCode = this.Location[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.qty = '';
|
|
|
|
this.qty = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|