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) { materialConfirm(v: any) {
this.materieCode = v.pickerName; this.materieCode = v.pickerName;
this.model.materielList.forEach((item: any) => { this.form.sendSpot = this.model.materielList[v.pickerVal].sendSpot;
if (this.materieCode.value == item.label) { this.form.totalBackAmount = this.model.materielList[v.pickerVal].totalBackAmount;
console.log(item); this.materielAmount = this.model.materielList[v.pickerVal].amount;
this.form.sendSpot = item.sendSpot; this.form.materialCode = this.model.materielList[v.pickerVal].value;
this.form.totalBackAmount = item.totalBackAmount;
this.materielAmount = item.amount;
this.form.materialCode = item.value;
}
});
} }
/** /**
* 上传 * 上传

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

Loading…
Cancel
Save