| | |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <fiberOpticConfig :currentId="currentId" v-if="configShow"/> |
| | | <fiberOpticConfig :currentId="currentId" v-if="configShow" :active="active"/> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | formType: [], |
| | | configShow: false, |
| | | currentMethod: null, |
| | | isAskOnlyRead:false |
| | | isAskOnlyRead:false, |
| | | sampleId: null |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.addObj.custom = selects.name |
| | | this.addObj.code = selects.code |
| | | this.addObj.phone = selects.phone |
| | | this.addObj.companyId = selects.departId |
| | | }) |
| | | }, |
| | | searchFilter() { |
| | |
| | | this.isAskOnlyRead = true |
| | | }else{ |
| | | this.isAskOnlyRead = false |
| | | } |
| | | this.sampleId = row.id |
| | | if(this.active!==1){ |
| | | this.sampleIds = [] |
| | | this.sampleIds.push(row.id) |
| | | } |
| | | this.productList = row.insProduct |
| | | setTimeout(() => { |
| | |
| | | return row[property] === value; |
| | | }, |
| | | openConfig(){ |
| | | if(this.sampleIds.length===0){ |
| | | this.$message.error("未选择样品") |
| | | return |
| | | 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.$axios.post(this.$api.insBushing.selectBushingBySampleId,{ |
| | | sampleId: this.sampleId |
| | | }).then(res=>{ |
| | | for(var i in this.sampleList){ |
| | | if(this.sampleList[i].id = this.sampleId){ |
| | | this.sampleList[i].bushing = res.data |
| | | break |
| | | } |
| | | } |
| | | this.configShow = true |
| | | }) |
| | | } |
| | | this.configShow = true |
| | | } |
| | | } |
| | | } |