|
|
|
@ -111,26 +111,26 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
//所选择的库位
|
|
|
|
|
wlCode: any = '';
|
|
|
|
|
materialIndex: any = null;
|
|
|
|
|
//页面初始化
|
|
|
|
|
async onReady() {
|
|
|
|
|
//页面初始化 获取可选库位
|
|
|
|
|
await this.QueryLoc();
|
|
|
|
|
}
|
|
|
|
|
async QueryLoc() {
|
|
|
|
|
let content = {
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
await this.model.queryItemLoc({
|
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
|
};
|
|
|
|
|
await this.model.queryCodeAndWorkAreaCode(content);
|
|
|
|
|
this.model.LocList.forEach((item: any) => {
|
|
|
|
|
let pickerName: any = {};
|
|
|
|
|
pickerName.label = item.locationCode;
|
|
|
|
|
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
|
pickerName.sendSpot = item.sendSpot;
|
|
|
|
|
this.Loc.push(pickerName);
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
sendSpot: null,
|
|
|
|
|
materialCode: this.every.materialCode,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
});
|
|
|
|
|
this.wlCode = this.Loc[0];
|
|
|
|
|
this.Loc = [];
|
|
|
|
|
this.wlCode = '';
|
|
|
|
|
if (this.model.LocList.length == 0) {
|
|
|
|
|
uni.showModal({
|
|
|
|
|
content: this.$t('message.selected') as any,
|
|
|
|
|
showCancel: false,
|
|
|
|
|
confirmText: this.$t('message.workArea_Confirm') as any,
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.Loc = this.model.LocList;
|
|
|
|
|
this.wlCode = this.Loc[0];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
empty() {
|
|
|
|
|
this.list = [];
|
|
|
|
@ -184,14 +184,16 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
});
|
|
|
|
|
this.every = this.material[0];
|
|
|
|
|
this.materialIndex = 0;
|
|
|
|
|
await this.QueryLoc();
|
|
|
|
|
}
|
|
|
|
|
//选择物料后触发的回调事件 本次数量:receiptAmount 需求数量:requestAmount
|
|
|
|
|
materialChoice(e: any) {
|
|
|
|
|
this.nowAmount = '';
|
|
|
|
|
this.material.forEach((item: any, index: any) => {
|
|
|
|
|
this.material.forEach(async (item: any, index: any) => {
|
|
|
|
|
if (item.materialCode == e.pickerName.value) {
|
|
|
|
|
this.every = item;
|
|
|
|
|
this.materialIndex = index;
|
|
|
|
|
await this.QueryLoc();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -280,7 +282,6 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
await this.model.submitOutsourcing(this.list);
|
|
|
|
|
this.empty();
|
|
|
|
|
await this.QueryLoc();
|
|
|
|
|
await this.query();
|
|
|
|
|
}
|
|
|
|
|
async bill() {
|
|
|
|
@ -452,6 +453,8 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
.search {
|
|
|
|
|
padding-left: 1px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: scroll;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.library-right {
|
|
|
|
|