| | |
| | | if (name == '检验原始记录' || name == '辐射试验检测原始记录') { |
| | | let num = 0 |
| | | for (let i in this.param) { |
| | | if(!this.param[i].insResult||!this.param[i].insResult.v||(!this.param[i].insResult.v.v&&this.param[i].insResult.v.v!==0)){ |
| | | this.$message.error("请输入检验过程值"); |
| | | return; |
| | | }else{ |
| | | if (!this.param[i].insResult || !this.param[i].insResult.v || (!this.param[i].insResult.v.v && this.param[i].insResult.v.v !== 0)) { |
| | | this.$message.error("请输入检验过程值"); |
| | | return; |
| | | } else { |
| | | if (this.param[i].insResult.v.v != 0 && this.param[i].insResult.v.v != 1) { |
| | | num++; |
| | | } |
| | |
| | | if (this.sonLaboratory === "电路试验") { |
| | | // // 电路试验数采 |
| | | // 获取当前样品的检验项 |
| | | let list = await this.getCurrentProduct(this.currentSample.id, 0); |
| | | this.currentSample.insProduct = this.HaveJson(list); |
| | | this.currentNum++; |
| | | if (response.data && |
| | | ((response.data.includes('xlsx') && response.data.includes('交调')) || |
| | | (response.data.includes('csv') && response.data.includes('驻波')))) { |
| | | let list = await this.getCurrentProduct(this.currentSample.id, 0); |
| | | this.currentSample.insProduct = this.HaveJson(list); |
| | | this.currentNum++; |
| | | } |
| | | } else if (this.sonLaboratory === "振动") { |
| | | this.getDocAnalysis(response.data) |
| | | } |
| | |
| | | this.$message.error(response.message); |
| | | } |
| | | }, |
| | | getDocAnalysis (data) { |
| | | getDocAnalysis(data) { |
| | | const psToDataKeyMap = { |
| | | '检验值1': '1', |
| | | '检验值9': '9', |