DN发货修复

master
hou 3 years ago
parent 93ef44b9a0
commit a4c5836047

@ -120,6 +120,7 @@ export default class stoOutboundDom extends BasePage {
productDescZh: '', productDescZh: '',
scanAmount: 0, scanAmount: 0,
rowItem: '', rowItem: '',
row:'',
barCode: '', barCode: '',
}; };
materialList: any = []; // materialList: any = []; //
@ -177,6 +178,7 @@ export default class stoOutboundDom extends BasePage {
sessionStorage.setItem('SweepCode', JSON.stringify(this.form.orderNo)); sessionStorage.setItem('SweepCode', JSON.stringify(this.form.orderNo));
this.toPage(this.page.product.outbound.Back); this.toPage(this.page.product.outbound.Back);
} }
//
async query() { async query() {
if (!this.form.orderNo) { if (!this.form.orderNo) {
this.customToast(this.$t('message.Commission_tips1') as any); this.customToast(this.$t('message.Commission_tips1') as any);
@ -190,11 +192,13 @@ export default class stoOutboundDom extends BasePage {
}); });
this.form.productCode = this.model.materielList[0].materialCode; this.form.productCode = this.model.materielList[0].materialCode;
this.form.productDescZh = this.model.materielList[0].materialDesc; this.form.productDescZh = this.model.materielList[0].materialDesc;
this.form.rowItem = this.model.materielList[0].rowItem; this.form.rowItem = this.model.materielList[0].materialCode;
this.form.row = this.model.materielList[0].rowItem;
this.form.orderAmount = this.model.materielList[0].orderAmount; this.form.orderAmount = this.model.materielList[0].orderAmount;
this.form.scanAmount = parseFloat(this.model.materielList[0].outAmount); this.form.scanAmount = parseFloat(this.model.materielList[0].outAmount);
} }
} }
//
materialConfirm(v: any) { materialConfirm(v: any) {
console.log('v[0].value', v[0]); console.log('v[0].value', v[0]);
// this.form.productCode = v[0].value; // this.form.productCode = v[0].value;
@ -208,11 +212,12 @@ export default class stoOutboundDom extends BasePage {
// } // }
// }); // });
this.model.materielList.forEach((item: any) => { this.model.materielList.forEach((item: any) => {
if (v[0].value == item.rowItem) { if (v[0].rowItem == item.rowItem) {
console.log('item', item); console.log('item', item);
this.form.productCode = item.materialCode; this.form.productCode = item.materialCode;
this.form.productDescZh = item.materialDesc; this.form.productDescZh = item.materialDesc;
this.form.rowItem = item.rowItem; this.form.rowItem = item.materialCode;
this.form.row = item.rowItem;
this.form.orderAmount = item.orderAmount; this.form.orderAmount = item.orderAmount;
this.form.scanAmount = parseFloat(item.outAmount); this.form.scanAmount = parseFloat(item.outAmount);
return; return;
@ -360,7 +365,7 @@ export default class stoOutboundDom extends BasePage {
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
keepBy: session.loginName, keepBy: session.loginName,
order3: this.form.orderNo, order3: this.form.orderNo,
orderItem: this.form.rowItem, orderItem: this.form.row,
type: 0, type: 0,
orderType: 4, orderType: 4,
productCode: this.form.productCode, productCode: this.form.productCode,

@ -102,7 +102,8 @@ export class ReturningModule extends VuexModule {
stoAmount += item.orderAmount; stoAmount += item.orderAmount;
}); });
const materielList = result.data.map((item: any) => ({ const materielList = result.data.map((item: any) => ({
value: item.rowItem, value: item.materialCode,
rowItem:item.rowItem,
label: item.rowItem + '(' + item.materialCode + ')', label: item.rowItem + '(' + item.materialCode + ')',
...item, ...item,
})); }));

Loading…
Cancel
Save