| | |
| | | <div class="search-item" style="width: 50%;margin-right: 16px;"> |
| | | <label style="width: 80px;">纤带类型</label> |
| | | <el-select v-model="miresModel" placeholder="请选择" size="small" style="width: 100%;" |
| | | |
| | | |
| | | > |
| | | <el-option v-for="(item,a) in miresModels" :key="a" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | |
| | | this.fiberList.push(b) |
| | | }) |
| | | } |
| | | |
| | | |
| | | }else{ |
| | | this.fiberList = [] |
| | | a.fiber.forEach(b=>{ |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | this.getTypeDicts1() |
| | | this.getStandTreeBySampleType() |
| | | this.getStandTreeBySampleType2() |
| | |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | |
| | | } |
| | | if(this.detectionItems.type == 0) { |
| | | // 赋值检测项信息 光纤 |
| | |
| | | }) |
| | | }) |
| | | |
| | | if(this.multiFiberList.length == 1) { |
| | | // 选择的时候就将fiberList的值赋值给对应的fiberList |
| | | if(this.multiFiberList.length > 0) { |
| | | this.multiFiberList.forEach(item => { |
| | | this.fibersList.forEach(a => { |
| | | if(a.ident == item.ident){ |
| | |
| | | } |
| | | }) |
| | | }) |
| | | }else if(this.multiFiberList.length > 1) { |
| | | this.fibersList.forEach(item => { |
| | | item.fiber = this.fiberList |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | // 套管检测量赋值 |
| | | addTestNum() { |
| | | |
| | | |
| | | if(parseInt(this.packageInfo.testNum) > parseInt(this.packageInfo.standNum)) { |
| | | this.packageInfo.testNum = this.packageInfo.standNum |
| | | this.$message.error('检测量不能大于标准量') |
| | |
| | | this.fiberList = [] |
| | | this.fibersList = [] |
| | | this.detectionItems = [] |
| | | |
| | | |
| | | // 页面是否含有光纤带 |
| | | if(this.packageInfo.ismiers) { |
| | | // 全检 |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | upNum() { |
| | | this.fiberList = [] |
| | |
| | | } |
| | | a.fibers.push(fibers) |
| | | this.fibersList.push(fibers) |
| | | } |
| | | } |
| | | }) |
| | | } else { |
| | | this.bushing = [] |
| | |
| | | // this.addFiber() |
| | | // }, 200) |
| | | // }) |
| | | |
| | | |
| | | // 将下拉框值赋值给光纤 监听去除 |
| | | if(this.selectFiberList.length == 0) { |
| | | this.$message.error('请选择数据') |
| | |
| | | this.detectionType = 0 |
| | | this.$set(this.detectionItems,'type',0) |
| | | } |
| | | |
| | | |
| | | }) |
| | | }, |
| | | methodChange2(val) { |
| | |
| | | fibersIdent: a.ident, |
| | | productList: [] |
| | | } |
| | | this.fiberList.push(fiber) |
| | | this.fiberList.push(fiber) |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | }) |
| | | } |
| | | }else { |
| | | this.fiberList = [] |
| | | this.fiberList = [] |
| | | let flag = true |
| | | // 按照顺序生成光纤色标 |
| | | let colors2 = [] |
| | |
| | | // this.$message.error('未选择套管') |
| | | // return |
| | | // } |
| | | // this.fiberList = [] |
| | | // this.fiberList = [] |
| | | // let flag = true |
| | | // // 按照顺序生成光纤色标 |
| | | // let colors2 = [] |
| | |
| | | let product = JSON.parse(JSON.stringify(row.productList)) |
| | | setTimeout(() => { |
| | | product.forEach(p => { |
| | | let rowToSelect = this.detectionItems.find(item => item.id === p.id); |
| | | if (rowToSelect) { |
| | | let rowToSelect = this.detectionItems.find(item => item.id === p.id); |
| | | if (rowToSelect) { |
| | | this.toggleSelection(rowToSelect); |
| | | } |
| | | }); |
| | | }); |
| | | },200) |
| | | } |
| | | } |
| | |
| | | } |
| | | this.$axios.post(this.$api.standardTree.selectStandardProductList, { |
| | | model: this.mireModel.split(' - ')[1], |
| | | standardMethodListId: this.mireStandard, |
| | | standardMethodListId: this.mireStandard, |
| | | factory: '' |
| | | }, { |
| | | headers: { |
| | |
| | | this.detectionItems = res.data |
| | | this.detectionType = 0 |
| | | this.$set(this.detectionItems,'type',0) |
| | | |
| | | if (row.productList != null && row.productList.length > 0) { |
| | | let product = JSON.parse(JSON.stringify(row.productList)) |
| | | |
| | | if (row.productList != null && row.productList.length > 0) { |
| | | let product = JSON.parse(JSON.stringify(row.productList)) |
| | | setTimeout(() => { |
| | | product.forEach(p => { |
| | | let rowToSelect = this.detectionItems.find(item => item.id === p.id); |
| | | if (rowToSelect) { |
| | | product.forEach(p => { |
| | | let rowToSelect = this.detectionItems.find(item => item.id === p.id); |
| | | if (rowToSelect) { |
| | | this.toggleSelection(rowToSelect); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | },200) |
| | | } |
| | | } |