From a2636786dab0d81ef183fcf4498a76890b06c83e Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 19 Sep 2023 16:17:50 +0800 Subject: [PATCH] =?UTF-8?q?H1=20H11=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/technology/process/content.vue | 6 ++++-- src/views/technology/process/index.vue | 6 +++--- src/views/technology/recipe/content.vue | 4 +++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/technology/process/content.vue b/src/views/technology/process/content.vue index cfd5f40b..8dfc1159 100644 --- a/src/views/technology/process/content.vue +++ b/src/views/technology/process/content.vue @@ -212,7 +212,9 @@ export default { const len = obj.split(',').length; console.log('切割的数组',obj.split(',')); a.forEach(item => { - this.checkDevice = this.form.device.search(item) != -1; + const item1 = item+','; + console.log("打印item1",item1); + this.checkDevice = this.form.device.search(item1) != -1; console.log("check的值",this.checkDevice); if(this.checkDevice == true){ console.log("重复添加",true); @@ -225,7 +227,7 @@ export default { } }, - //新增 设备选择弹出框 + //新增 BOM选择弹出框 onItemSelectedBom(obj){ if(this.form.material == null ||this.form.material == ""){ console.log("material是空,if获取的obj",obj); diff --git a/src/views/technology/process/index.vue b/src/views/technology/process/index.vue index 3f32d68a..3297075d 100644 --- a/src/views/technology/process/index.vue +++ b/src/views/technology/process/index.vue @@ -836,11 +836,11 @@ export default { const len = obj.split(",").length; console.log("切割的数组", obj.split(",")); a.forEach((item) => { - this.checkEquipment = this.form.equipment.search(item) != -1; - + const item1 = item+','; + console.log("打印item1",item1); + this.checkEquipment = this.form.equipment.search(item1) != -1; if (this.checkEquipment == true) { console.log("重复添加", true); - Message.warning("您已经添加过该设备,请勿重复添加!!!"); } else if (this.checkEquipment == false) { this.selectMaterielListtag.push(item); diff --git a/src/views/technology/recipe/content.vue b/src/views/technology/recipe/content.vue index 9f322e93..f026ba80 100644 --- a/src/views/technology/recipe/content.vue +++ b/src/views/technology/recipe/content.vue @@ -323,7 +323,9 @@ export default { const len = obj.split(',').length; console.log('切割的数组',obj.split(',')); a.forEach(item => { - this.checkDevice = this.form.device.search(item) != -1; + const item1 = item+','; + console.log("打印item1",item1); + this.checkDevice = this.form.device.search(item1) != -1; console.log("check的值",this.checkDevice); if(this.checkDevice == true){ console.log("重复添加",true);