|
|
|
@ -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);
|
|
|
|
|