|
|
@ -212,7 +212,9 @@ export default {
|
|
|
|
const len = obj.split(',').length;
|
|
|
|
const len = obj.split(',').length;
|
|
|
|
console.log('切割的数组',obj.split(','));
|
|
|
|
console.log('切割的数组',obj.split(','));
|
|
|
|
a.forEach(item => {
|
|
|
|
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);
|
|
|
|
console.log("check的值",this.checkDevice);
|
|
|
|
if(this.checkDevice == true){
|
|
|
|
if(this.checkDevice == true){
|
|
|
|
console.log("重复添加",true);
|
|
|
|
console.log("重复添加",true);
|
|
|
@ -225,7 +227,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//新增 设备选择弹出框
|
|
|
|
//新增 BOM选择弹出框
|
|
|
|
onItemSelectedBom(obj){
|
|
|
|
onItemSelectedBom(obj){
|
|
|
|
if(this.form.material == null ||this.form.material == ""){
|
|
|
|
if(this.form.material == null ||this.form.material == ""){
|
|
|
|
console.log("material是空,if获取的obj",obj);
|
|
|
|
console.log("material是空,if获取的obj",obj);
|
|
|
|