| | |
| | | <el-button size="medium" @click="templateDia=true" v-show="active==1"> |
| | | <span style="color: #3A7BFA;">保存模板</span> |
| | | </el-button> |
| | | <el-button size="medium" type="primary" @click="openCableConfig" |
| | | v-if="active==1&&PROJECT=='装备电缆'&&addObj.sampleType!=undefined&&addObj.sampleType.indexOf('电缆')>-1">电缆配置</el-button> |
| | | <el-button size="medium" type="primary" @click="openEquipConfig" v-if="active==1">子样品配置</el-button> |
| | | <el-button size="medium" type="primary" @click="openConfig" v-if="addObj.sampleType==='光缆'">光纤配置</el-button> |
| | | <el-button size="medium" type="primary" @click="save" :loading="saveLoad" v-show="active==1">提交</el-button> |
| | | <!-- 审核 --> |
| | | <el-button size="medium" @click="upInsOrderOfState(2)" :loading="saveLoad" v-show="active==3&&addObj.companyId" |
| | |
| | | }) |
| | | this.circulateShow = false |
| | | this.changeProductList0() |
| | | this.currentMethod.insProduct = this.productList0 |
| | | if(this.sampleSelectionList.length>0){ |
| | | this.sampleSelectionList.forEach(item=>{ |
| | | item.insProduct = this.productList0 |
| | | }) |
| | | }else{ |
| | | this.currentMethod.insProduct = this.productList0 |
| | | } |
| | | this.getProNum() |
| | | }, |
| | | spliceTemperatureTest () { |
| | |
| | | let min = Math.min(...splits) |
| | | let max = Math.max(...splits) |
| | | if(min==max){ |
| | | console.log(2222); |
| | | isTrue = false |
| | | } |
| | | //要求描述中不包含±以及区间的数字,则返回false |
| | |
| | | // } |
| | | |
| | | this.changeProductList0() |
| | | this.currentMethod.insProduct = this.productList0 |
| | | if(this.sampleSelectionList.length>0){ |
| | | this.sampleSelectionList.forEach(item=>{ |
| | | item.insProduct = this.productList0 |
| | | }) |
| | | }else{ |
| | | this.currentMethod.insProduct = this.productList0 |
| | | } |
| | | this.getProNum() |
| | | }, |
| | | searchProject () { |
| | |
| | | }) |
| | | } |
| | | this.changeProductList0() |
| | | this.currentMethod.insProduct = this.productList0 |
| | | if(this.sampleSelectionList.length>0){ |
| | | this.sampleSelectionList.forEach(item=>{ |
| | | item.insProduct = this.productList0 |
| | | }) |
| | | }else{ |
| | | this.currentMethod.insProduct = this.productList0 |
| | | } |
| | | this.getProNum() |
| | | this.$nextTick(() => { |
| | | this.$refs.productTable.doLayout() |
| | |
| | | const property = column['property']; |
| | | return row[property] === value; |
| | | }, |
| | | openConfig() { |
| | | if (this.active === 1) { |
| | | if (this.sampleIds.length === 0) { |
| | | this.$message.error("未选择样品") |
| | | return |
| | | } |
| | | this.configShow = true |
| | | } else { |
| | | if (this.sampleId === null) { |
| | | this.$message.error('未选中样品') |
| | | return |
| | | } |
| | | this.sampleIds = [this.sampleId] |
| | | this.$axios.post(this.$api.insBushing.selectBushingBySampleId, { |
| | | sampleId: this.sampleId |
| | | }).then(res => { |
| | | if (res.data.length === 0) { |
| | | this.$message.error('该样品没有配置光纤') |
| | | return |
| | | } |
| | | for (var i in this.sampleList) { |
| | | if (this.sampleList[i].id = this.sampleId) { |
| | | this.sampleList[i].bushing = res.data |
| | | break |
| | | } |
| | | } |
| | | this.configShow = true |
| | | }) |
| | | } |
| | | }, |
| | | openEquipConfig() { |
| | | if (this.active === 1) { |
| | | if (this.sampleIds.length === 0) { |
| | |
| | | return |
| | | } |
| | | this.equipConfigShow = true |
| | | } else { |
| | | if (this.sampleId === null) { |
| | | this.$message.error('未选中样品') |
| | | return |
| | | } |
| | | // this.$axios.post(this.$api.insBushing.selectBushingBySampleId, { |
| | | // sampleId: this.sampleId |
| | | // }).then(res => { |
| | | // if (res.data.length === 0) { |
| | | // this.$message.error('该样品没有配置光纤') |
| | | // return |
| | | // } |
| | | // for (var i in this.sampleList) { |
| | | // if (this.sampleList[i].id = this.sampleId) { |
| | | // this.sampleList[i].bushing = res.data |
| | | // break |
| | | // } |
| | | // } |
| | | // this.configShow = true |
| | | // }) |
| | | } |
| | | }, |
| | | openCableConfig() { |
| | | if (this.active === 1) { |
| | | if (this.sampleIds.length === 0) { |
| | | this.$message.error("未选择样品") |
| | | return |
| | | } |
| | | this.cableConfigShow = true |
| | | } else { |
| | | if (this.sampleId === null) { |
| | | this.$message.error('未选中样品') |
| | |
| | | } |
| | | } |
| | | this.changeProductList0() |
| | | this.currentMethod.insProduct = this.productList0 |
| | | if(this.sampleSelectionList.length>0){ |
| | | this.sampleSelectionList.forEach(item=>{ |
| | | item.insProduct = this.productList0 |
| | | }) |
| | | }else{ |
| | | this.currentMethod.insProduct = this.productList0 |
| | | } |
| | | }, |
| | | save1 () { |
| | | if (this.bsm1DiaList.length > 0) { |