|
|
|
@ -219,14 +219,72 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
this.some = this.model.blDetailList[0];
|
|
|
|
|
this.someIndex = 0;
|
|
|
|
|
});
|
|
|
|
|
await this.model.queryItemLoc({
|
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
sendSpot: null,
|
|
|
|
|
materialCode: this.some.materialCode,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
});
|
|
|
|
|
if (this.model.LocList.length != 0) {
|
|
|
|
|
this.Location = [];
|
|
|
|
|
this.Location = this.model.LocList;
|
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
|
} else {
|
|
|
|
|
this.Location = [];
|
|
|
|
|
let content = {
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
sendSpot: null,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
|
};
|
|
|
|
|
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
|
|
|
|
|
res.forEach((item: any) => {
|
|
|
|
|
let pickerName: any = {};
|
|
|
|
|
pickerName.label = item.locationCode;
|
|
|
|
|
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
|
pickerName.sendSpot = item.sendSpot;
|
|
|
|
|
this.Location.push(pickerName);
|
|
|
|
|
});
|
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
materialChoice(e: any) {
|
|
|
|
|
async materialChoice(e: any) {
|
|
|
|
|
this.model.blDetailList.forEach((item: any, index: any) => {
|
|
|
|
|
if (item.materialCode == e.pickerName.label) {
|
|
|
|
|
this.some = item;
|
|
|
|
|
this.someIndex = index;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
await this.model.queryItemLoc({
|
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
sendSpot: null,
|
|
|
|
|
materialCode: this.some.materialCode,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
});
|
|
|
|
|
if (this.model.LocList.length != 0) {
|
|
|
|
|
this.Location = [];
|
|
|
|
|
this.Location = this.model.LocList;
|
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
|
} else {
|
|
|
|
|
this.Location = [];
|
|
|
|
|
let content = {
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
sendSpot: null,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
|
};
|
|
|
|
|
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
|
|
|
|
|
res.forEach((item: any) => {
|
|
|
|
|
let pickerName: any = {};
|
|
|
|
|
pickerName.label = item.locationCode;
|
|
|
|
|
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
|
pickerName.sendSpot = item.sendSpot;
|
|
|
|
|
this.Location.push(pickerName);
|
|
|
|
|
});
|
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
|
}
|
|
|
|
|
this.qty = '';
|
|
|
|
|
}
|
|
|
|
|
LocationChoice(e: any) {
|
|
|
|
|