cosmoim-852 fix 原材料退料优化物料选择逻辑

master
hou 3 years ago
parent f0f980ece2
commit 34090c262d

@ -198,15 +198,10 @@ export default class returningDom extends BasePage {
}
materialConfirm(v: any) {
this.materieCode = v.pickerName;
this.model.materielList.forEach((item: any) => {
if (this.materieCode.value == item.label) {
console.log(item);
this.form.sendSpot = item.sendSpot;
this.form.totalBackAmount = item.totalBackAmount;
this.materielAmount = item.amount;
this.form.materialCode = item.value;
}
});
this.form.sendSpot = this.model.materielList[v.pickerVal].sendSpot;
this.form.totalBackAmount = this.model.materielList[v.pickerVal].totalBackAmount;
this.materielAmount = this.model.materielList[v.pickerVal].amount;
this.form.materialCode = this.model.materielList[v.pickerVal].value;
}
/**
* 上传

@ -62,7 +62,6 @@ export class ReturningModule extends VuexModule {
rows: '50',
loginName: session.loginName,
});
console.log('qqqqqqqqq', data);
const materielList = data.map((item: any) => ({
label: item.materialCode,
value: item.materialCode,
@ -71,8 +70,6 @@ export class ReturningModule extends VuexModule {
sendSpot: item.sendSpot,
totalBackAmount: item.totalBackAmount,
}));
console.log('物料列表', data);
console.log('物料名列表', materielList);
const orderInInfo = data[0] || {};
return { orderInInfo, materielList };
}

Loading…
Cancel
Save