diff --git a/src/views/plan/whiteOrder/index.vue b/src/views/plan/whiteOrder/index.vue index 4949790..afcf966 100644 --- a/src/views/plan/whiteOrder/index.vue +++ b/src/views/plan/whiteOrder/index.vue @@ -965,8 +965,14 @@ export default { var code = ''; var desc = ''; for (let i = 0; i < this.selectMaterielList.length; i++) { - code = code + this.selectMaterielList[i].productCode + ','; - desc = desc + this.selectMaterielList[i].productDescZh + ','; + if(code.indexOf(this.selectMaterielList[i].productCode)<0){ + code = code + this.selectMaterielList[i].productCode + ','; + } + + if(code.indexOf(this.selectMaterielList[i].productDescZh)<0){ + desc = desc + this.selectMaterielList[i].productDescZh + ','; + } + } this.form.prodCode += code; this.form.prodDesc += desc;