| | |
| | | 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); |
| | |
| | | this.$message.error('上传附件前请先填写并保存频段'); |
| | | return false |
| | | }else{ |
| | | if(file.name.includes('交调')||file.name.includes('互调')){ |
| | | this.$refs.CircuitParameters.saveAll() |
| | | } |
| | | // if(file.name.includes('交调')||file.name.includes('互调')){ |
| | | // this.$refs.CircuitParameters.saveAll() |
| | | // } |
| | | if (file.size > 1024 * 1024 * 10) { |
| | | this.$message.error('上传文件不超过10M'); |
| | | this.$refs.upload.clearFiles() |
| | |
| | | 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{ |