| | |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="search" v-show="!configShow&&!equipConfigShow&&!cableConfigShow"> |
| | | <div style="height: (100vh - 200px);"> |
| | | <div class="search" v-show="!configShow&&!equipConfigShow&&!cableConfigShow"> |
| | | <el-row> |
| | | <el-col class="search_thing" :span="6"> |
| | | <div class="search_label">委托编号:</div> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | <el-dialog title="选择单位" :visible.sync="selectUserDia" width="70%"> |
| | | <div class="body" style="height: 60vh;" v-if="selectUserDia"> |
| | |
| | | this.temperatureData = this.temperatureData.slice(0,-deleteNum) |
| | | } |
| | | }, |
| | | changeProductList0(){ |
| | | this.productList0.forEach(a=>{ |
| | | let obj = this.productList.find(m => m.id == a.id) |
| | | if(obj){ |
| | | a.state = obj.state |
| | | } |
| | | }) |
| | | }, |
| | | searchFilterList () { |
| | | const vtw = { |
| | | inspectionItem: this.inspectionItem, // 检验项 |
| | |
| | | const isHaveValue = Object.values(vtw).some(item => { |
| | | return item |
| | | }) |
| | | this.changeProductList0() |
| | | if (isHaveValue) { |
| | | for(let i in vtw) { |
| | | if (vtw[i]) { |
| | |
| | | }) |
| | | } |
| | | } |
| | | this.$nextTick(()=>{ |
| | | this.productList.forEach(a => { |
| | | if (a.state == 1) this.toggleSelection(a) |
| | | }) |
| | | }) |
| | | } else { |
| | | // 没有查询条件时渲染所有数据 |
| | | this.productList = this.productList0 |
| | | this.$nextTick(()=>{ |
| | | this.productList.forEach(a => { |
| | | if (a.state == 1) this.toggleSelection(a) |
| | | }) |
| | | }) |
| | | } |
| | | }, |
| | | getAuthorizedPerson() { |
| | |
| | | return item |
| | | }) |
| | | const select = this.selectTree.split(' - ') |
| | | if (row.inspectionItem === '温度循环' && select[2] === '光缆' && row.state === 1) { |
| | | if (row.inspectionItem === '温度循环' && select[2] === '光缆' && row.state === 1&&this.isAskOnlyRead) { |
| | | this.circulateShow = true; |
| | | return |
| | | } else if (row.inspectionItem === '温度循环' && select[2] === '光缆' && row.state === 0) { |
| | |
| | | } else if ((row.inspectionItem === '温升试验' || row.inspectionItem === '热循环') && row.state === 0) { |
| | | this.temperatureShow = false; |
| | | } |
| | | this.changeProductList0() |
| | | this.currentMethod.insProduct = this.productList0 |
| | | this.getProNum() |
| | | }, |
| | | searchProject () { |
| | |
| | | return |
| | | } |
| | | const select = this.selectTree.split(' - ') |
| | | if (p.inspectionItem === '温度循环' && select[2] === '光缆' && p.state === 1) { |
| | | if (p.inspectionItem === '温度循环' && select[2] === '光缆' && p.state === 1&&this.isAskOnlyRead) { |
| | | this.circulateShow = true; |
| | | return |
| | | } else if (p.inspectionItem === '温度循环' && select[2] === '光缆' && p.state === 0) { |
| | |
| | | return item |
| | | }) |
| | | } |
| | | this.changeProductList0() |
| | | this.currentMethod.insProduct = this.productList0 |
| | | this.getProNum() |
| | | this.$nextTick(() => { |
| | | this.$refs.productTable.doLayout() |