| | |
| | | <span>检验项</span> |
| | | <el-input |
| | | v-model="inspectionItem" |
| | | @input="searchFilterList" |
| | | size="mini" |
| | | placeholder="请输入"/> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="inspectionItemSubclass" label="检验项子项" min-width="140" |
| | | show-overflow-tooltip></el-table-column> |
| | | show-overflow-tooltip> |
| | | <template slot="header" slot-scope="scope"> |
| | | <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px"> |
| | | <span>检验项子项</span> |
| | | <el-input |
| | | v-model="inspectionItemSubclass" |
| | | @input="searchFilterList" |
| | | size="mini" |
| | | placeholder="请输入"/> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="sonLaboratory" label="子实验室" min-width="130" show-overflow-tooltip :filters="filters" |
| | | :filter-method="filterHandler"></el-table-column> |
| | | <el-table-column prop="methodS" label="试验方法" min-width="120" show-overflow-tooltip> |
| | | <template slot="header" slot-scope="scope"> |
| | | <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px"> |
| | | <span>试验方法</span> |
| | | <el-input |
| | | v-model="methodS" |
| | | @input="searchFilterList" |
| | | size="mini" |
| | | placeholder="请输入"/> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="unit" label="计量单位" width="100" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="price" label="单价" width="100" show-overflow-tooltip></el-table-column> |
| | |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="温度循环要求填写" :visible.sync="circulateShow" width="800px" :show-close="false"> |
| | | <div class="search" style="display: flex;background: transparent;"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">保温时间:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">循环次数:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">温度点:</div> |
| | | <div class="search_input"> |
| | | <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from '../../tool/value-table.vue' |
| | | import fiberOpticConfig from './fiberoptic-config.vue' |
| | | import equipConfig from './equip-config.vue' |
| | | import cableConfig from './cable-config.vue' |
| | | import Vue from 'vue' |
| | | export default { |
| | | import ValueTable from '../../tool/value-table.vue' |
| | | import fiberOpticConfig from './fiberoptic-config.vue' |
| | | import equipConfig from './equip-config.vue' |
| | | import cableConfig from './cable-config.vue' |
| | | import Vue from 'vue' |
| | | |
| | | export default { |
| | | components: { |
| | | ValueTable, |
| | | fiberOpticConfig, |
| | |
| | | addSampleDia: false, |
| | | count: 1, |
| | | productList: [], |
| | | productList0: [], |
| | | bsm1DiaList: [], |
| | | productIds: [], |
| | | getProductLoad: false, |
| | |
| | | symbolList:[ |
| | | 'RTS','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'], |
| | | inspectionItem:null, |
| | | inspectionItemSubclass:null, |
| | | methodS:null, |
| | | circulateShow:false, |
| | | circulateForm:{}, |
| | | isBsm2Val2:false |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | searchFilterList () { |
| | | const vtw = { |
| | | inspectionItem: this.inspectionItem, // 检验项 |
| | | inspectionItemSubclass: this.inspectionItemSubclass, // 检验项子项 |
| | | methodS: this.methodS, // 试验方法 |
| | | } |
| | | const isHaveValue = Object.values(vtw).some(item => { |
| | | return item |
| | | }) |
| | | if (isHaveValue) { |
| | | for(let i in vtw) { |
| | | if (vtw[i]) { |
| | | this.productList = this.productList0.filter((item) => { |
| | | return item[i] && item[i].includes(vtw[i]) |
| | | }) |
| | | } |
| | | } |
| | | } else { |
| | | // 没有查询条件时渲染所有数据 |
| | | this.productList = this.productList0 |
| | | } |
| | | }, |
| | | getAuthorizedPerson() { |
| | | this.$axios.get(this.$api.user.getUserMenu).then(res => { |
| | | let data = [] |
| | |
| | | this.$axios.post(this.$api.insOrder.upInsOrderOfState, { |
| | | state, |
| | | id: this.currentId, |
| | | companyId:this.addObj.companyId |
| | | companyId:this.addObj.companyId, |
| | | laboratory:this.addObj.laboratory |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | this.$refs.productTable.toggleRowSelection(row, true); |
| | | }, |
| | | upProductSelect(selection, row) { |
| | | console.log('danxuan', row) |
| | | this.bsm1DiaList = [] |
| | | row.state = row.state == 1 ? 0 : 1 |
| | | if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 1) { |
| | |
| | | } else if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 0) { |
| | | row.bsm1 = false |
| | | } |
| | | if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && row.state === 1) { |
| | | if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && row.state === 1&&!this.isBsm2Val2) { |
| | | this.bsm2 = true |
| | | this.bsm1Dia = true |
| | | if (this.bsm2Val2.length === 0) { |
| | |
| | | } |
| | | return item |
| | | }) |
| | | if (row.inspectionItem === '温度循环') { |
| | | this.circulateShow = true; |
| | | return |
| | | } |
| | | this.getProNum() |
| | | }, |
| | | permute(nums) { |
| | |
| | | row.insProduct = this.HaveJson(res.data) |
| | | this.getProductLoad = false |
| | | this.productList = row.insProduct |
| | | this.productList0 = JSON.parse(JSON.stringify(this.productList)) |
| | | this.$refs.sampleTable.setCurrentRow(row) |
| | | setTimeout(() => { |
| | | this.productList.forEach(a => { |
| | |
| | | } else if (p.bsm === '1' && p.section !== '' && p.section !== null && p.state === 0) { |
| | | p.bsm1 = false |
| | | } |
| | | if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && p.state === 1) { |
| | | if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && p.state === 1&&!this.isBsm2Val2) { |
| | | this.bsm2 = true |
| | | this.bsm1Dia = true |
| | | if (this.bsm2Val2.length === 0) { |
| | |
| | | return |
| | | } |
| | | } |
| | | this.isBsm2Val2 = true; |
| | | } |
| | | // if(this.bsm3){ |
| | | // if(!this.bsm3Val){ |