| | |
| | | this.handleExcelMethod() |
| | | }, |
| | | changeInput(m, code, n) { |
| | | let str = code.split('-') |
| | | let pId = str[3] |
| | | if(!this.param[pId].equipValue||this.param[pId].equipValue.length==0||!this.param[pId].equipValue[0].v.v){ |
| | | let inspectionItem = '' |
| | | let idS = [] |
| | | let child = 0 |
| | | for (let i in this.currentSample.insProduct) { |
| | | if(this.currentSample.insProduct[i].id==pId){ |
| | | inspectionItem = this.currentSample.insProduct[i].inspectionItem |
| | | } |
| | | } |
| | | for (let i in this.currentSample.insProduct) { |
| | | if(this.currentSample.insProduct[i].inspectionItem==inspectionItem&&this.currentSample.insProduct[i].id!=pId){ |
| | | idS.push(this.currentSample.insProduct[i].id) |
| | | } |
| | | } |
| | | for (let i = 0;i<idS.length;i++) { |
| | | if(this.param[idS[i]].equipValue&&this.param[idS[i]].equipValue.length>0&&this.param[idS[i]].equipValue[0].v.v){ |
| | | child++ |
| | | } |
| | | } |
| | | if(child==0){ |
| | | n.v.v = null |
| | | this.$message.error('请先填写设备信息') |
| | | return |
| | | } |
| | | } |
| | | // let str = code.split('-') |
| | | // let pId = str[3] |
| | | // if(!this.param[pId].equipValue||this.param[pId].equipValue.length==0||!this.param[pId].equipValue[0].v.v){ |
| | | // let inspectionItem = '' |
| | | // let idS = [] |
| | | // let child = 0 |
| | | // for (let i in this.currentSample.insProduct) { |
| | | // if(this.currentSample.insProduct[i].id==pId){ |
| | | // inspectionItem = this.currentSample.insProduct[i].inspectionItem |
| | | // } |
| | | // } |
| | | // for (let i in this.currentSample.insProduct) { |
| | | // if(this.currentSample.insProduct[i].inspectionItem==inspectionItem&&this.currentSample.insProduct[i].id!=pId){ |
| | | // idS.push(this.currentSample.insProduct[i].id) |
| | | // } |
| | | // } |
| | | // for (let i = 0;i<idS.length;i++) { |
| | | // if(this.param[idS[i]].equipValue&&this.param[idS[i]].equipValue.length>0&&this.param[idS[i]].equipValue[0].v.v){ |
| | | // child++ |
| | | // } |
| | | // } |
| | | // if(child==0){ |
| | | // n.v.v = null |
| | | // this.$message.error('请先填写设备信息') |
| | | // return |
| | | // } |
| | | // } |
| | | if (n) { |
| | | // if (this.PROJECT === '装备电缆') { |
| | | // let num2 = new this.$Big(n.v.v) |