| | |
| | | this.$message.error('请输入湿度') |
| | | return |
| | | } |
| | | this.loading = true |
| | | if(this.sonLaboratory === '电路试验'&&!(await this.$refs.CircuitParameters.saveAll())){ |
| | | this.loading = false |
| | | return |
| | | }else{ |
| | | this.loading = false |
| | | } |
| | | this.experimentDia = true |
| | | this.newUserInfo = [] |
| | |
| | | if(this.sonLaboratory === '电路试验'){ |
| | | // // 电路试验数采 |
| | | // 获取当前样品的检验项 |
| | | // let list = await this.getCurrentProduct(this.currentSample.id,0) |
| | | // this.currentSample.insProduct = this.HaveJson(list) |
| | | // this.currentNum++ |
| | | let list = await this.getCurrentProduct(this.currentSample.id,0) |
| | | this.currentSample.insProduct = this.HaveJson(list) |
| | | this.currentNum++ |
| | | } |
| | | }else { |
| | | this.$message.error(response.message); |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | this.loading = true |
| | | if(await this.$refs.CircuitParameters.saveAll()){ |
| | | this.$emit('goback') |
| | | this.loading = false |
| | | }else{ |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }else{ |