白胚订单管理多选物料

master
zhaoxiaolin 1 year ago
parent dca6d4fad6
commit 4661a46a7a

@ -965,14 +965,18 @@ export default {
var code = ''; var code = '';
var desc = ''; var desc = '';
for (let i = 0; i < this.selectMaterielList.length; i++) { for (let i = 0; i < this.selectMaterielList.length; i++) {
if(code.indexOf(this.selectMaterielList[i].productCode)<0){ if(this.form.prodCode.indexOf(this.selectMaterielList[i].productCode)<0){
code = code + this.selectMaterielList[i].productCode + ','; code = code + this.selectMaterielList[i].productCode + ',';
} }
if(code.indexOf(this.selectMaterielList[i].productDescZh)<0){ if(this.form.prodDesc.indexOf(this.selectMaterielList[i].productDescZh)<0){
desc = desc + this.selectMaterielList[i].productDescZh + ','; desc = desc + this.selectMaterielList[i].productDescZh + ',';
}else{
this.$message({
message: this.selectMaterielList[i].productDescZh+'已经选择',
type: 'warning'
})
} }
} }
this.form.prodCode += code; this.form.prodCode += code;
this.form.prodDesc += desc; this.form.prodDesc += desc;

Loading…
Cancel
Save