|
|
@ -173,6 +173,7 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
await this.GetLocation();
|
|
|
|
await this.GetLocation();
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//获取库位
|
|
|
|
async GetLocation() {
|
|
|
|
async GetLocation() {
|
|
|
|
let content = {
|
|
|
|
let content = {
|
|
|
|
loginName: session.loginName,
|
|
|
|
loginName: session.loginName,
|
|
|
@ -189,9 +190,11 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//返回
|
|
|
|
onUpload() {
|
|
|
|
onUpload() {
|
|
|
|
uni.navigateBack({ delta: 1 });
|
|
|
|
uni.navigateBack({ delta: 1 });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//单号查询
|
|
|
|
async query() {
|
|
|
|
async query() {
|
|
|
|
if (!this.form.documentNo) {
|
|
|
|
if (!this.form.documentNo) {
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as any);
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as any);
|
|
|
@ -210,10 +213,12 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.wl = this.materialList[0];
|
|
|
|
this.wl = this.materialList[0];
|
|
|
|
this.some = this.model.dnReturnList[0];
|
|
|
|
this.some = this.model.dnReturnList[0];
|
|
|
|
|
|
|
|
this.qty = this.model.dnReturnList[0].poAmount;
|
|
|
|
console.log('this.some', this.some);
|
|
|
|
console.log('this.some', this.some);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//选择物料
|
|
|
|
materialChoice(e: any) {
|
|
|
|
materialChoice(e: any) {
|
|
|
|
console.log('e', e);
|
|
|
|
console.log('e', e);
|
|
|
|
this.model.dnReturnList.forEach((item: any, index: any) => {
|
|
|
|
this.model.dnReturnList.forEach((item: any, index: any) => {
|
|
|
@ -222,6 +227,7 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
this.someIndex = index;
|
|
|
|
this.someIndex = index;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
this.qty = this.some.poAmount;
|
|
|
|
console.log('this.some', this.some);
|
|
|
|
console.log('this.some', this.some);
|
|
|
|
console.log('this.someIndex', this.someIndex);
|
|
|
|
console.log('this.someIndex', this.someIndex);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -288,9 +294,11 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//查询明细
|
|
|
|
appoint() {
|
|
|
|
appoint() {
|
|
|
|
this.toPage(this.page.raw.ingoods.dnReturnGoods.Local);
|
|
|
|
this.toPage(this.page.raw.ingoods.dnReturnGoods.Local);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//提交
|
|
|
|
async onSubmit() {
|
|
|
|
async onSubmit() {
|
|
|
|
let isTrue = true;
|
|
|
|
let isTrue = true;
|
|
|
|
// this.model.dnReturnList.forEach((item: any) => {
|
|
|
|
// this.model.dnReturnList.forEach((item: any) => {
|
|
|
|