| | |
| | | inspectionItemSubclass:null, |
| | | methodS:null, |
| | | circulateShow:false, |
| | | circulateForm:{} |
| | | circulateForm:{}, |
| | | isBsm2Val2:false |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | }) |
| | | }else if(type==1){ |
| | | let arr = this.editTable.filter(b => b.sampleId == item.id) |
| | | arr.forEach(f => { |
| | | if(a.ask.includes(f.symbolItem)){ |
| | | let ask = calBack(a.ask, f.symbolItem,f.value) |
| | | if (ask) { |
| | | a.ask = ask |
| | | for (var i=0;i<arr.length;i++){ |
| | | if(a.ask){ |
| | | if(a.ask.includes(arr[i].symbolItem)){ |
| | | let ask = calBack(a.ask, arr[i].symbolItem,arr[i].value) |
| | | if (ask) { |
| | | a.ask = ask |
| | | } |
| | | let tell = this.handleTell(a.tell, arr[i].symbolItem,arr[i].value) |
| | | if (tell) { |
| | | a.tell = tell |
| | | } |
| | | } |
| | | let tell = this.handleTell(a.tell, f.symbolItem,f.value) |
| | | if (tell) { |
| | | a.tell = tell |
| | | } |
| | | }else{ |
| | | this.$message.error('要求值为空,需要去标准库维护!') |
| | | } |
| | | }) |
| | | } |
| | | // arr.forEach(f => { |
| | | // if(a.ask){ |
| | | // if(a.ask.includes(f.symbolItem)){ |
| | | // let ask = calBack(a.ask, f.symbolItem,f.value) |
| | | // if (ask) { |
| | | // a.ask = ask |
| | | // } |
| | | // let tell = this.handleTell(a.tell, f.symbolItem,f.value) |
| | | // if (tell) { |
| | | // a.tell = tell |
| | | // } |
| | | // } |
| | | // }else{} |
| | | // }) |
| | | } |
| | | } |
| | | }) |
| | |
| | | this.$axios.post(this.$api.insOrder.upInsOrderOfState, { |
| | | state, |
| | | id: this.currentId, |
| | | companyId:this.addObj.companyId |
| | | companyId:this.addObj.companyId, |
| | | laboratory:this.addObj.laboratory |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | } else if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 0) { |
| | | row.bsm1 = false |
| | | } |
| | | if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && row.state === 1) { |
| | | if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && row.state === 1&&!this.isBsm2Val2) { |
| | | this.bsm2 = true |
| | | this.bsm1Dia = true |
| | | if (this.bsm2Val2.length === 0) { |
| | | this.bsm2Val = (this.sampleList.length - 1) * this.sampleList.length / 2 |
| | | this.computationalPairing(this.sampleList.length) |
| | | this.bsm2Val2 = this.HaveJson(this.bsm2Val3) |
| | | this.bsm2 = true |
| | | this.bsm1Dia = true |
| | | } |
| | | } else if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && row.state === 1 && this.sampleList.length > 1) { |
| | | this.bsm2 = false |
| | |
| | | } else if (p.bsm === '1' && p.section !== '' && p.section !== null && p.state === 0) { |
| | | p.bsm1 = false |
| | | } |
| | | if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && p.state === 1) { |
| | | if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && p.state === 1&&!this.isBsm2Val2) { |
| | | this.bsm2 = true |
| | | this.bsm1Dia = true |
| | | if (this.bsm2Val2.length === 0) { |
| | |
| | | return |
| | | } |
| | | } |
| | | this.isBsm2Val2 = true; |
| | | } |
| | | // if(this.bsm3){ |
| | | // if(!this.bsm3Val){ |