| | |
| | | this.fiberList.push(b) |
| | | }) |
| | | } |
| | | |
| | | |
| | | }else{ |
| | | a.fiber.forEach(b=>{ |
| | | this.fiberList.push(b) |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | this.getTypeDicts1() |
| | | this.getStandTreeBySampleType() |
| | | this.getStandTreeBySampleType2() |
| | |
| | | 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.multiFiberList.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 = [] |
| | |
| | | this.detectionType = 1 |
| | | this.$set(this.detectionItems,'type',1) |
| | | |
| | | if (row.productList != null && row.productList.length > 0) { |
| | | if (row.productList != null && row.productList.length > 0) { |
| | | setTimeout(() => { |
| | | row.productList.forEach(product => { |
| | | let rowToSelect = this.detectionItems.find(item => item.id === product.id); |
| | | if (rowToSelect) { |
| | | this.toggleSelection(rowToSelect); |
| | | } |
| | | }); |
| | | row.productList.forEach(product => { |
| | | let rowToSelect = this.detectionItems.find(item => item.id === product.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.detectionType = 0 |
| | | this.$set(this.detectionItems,'type',0) |
| | | |
| | | if (row.productList != null && row.productList.length > 0) { |
| | | if (row.productList != null && row.productList.length > 0) { |
| | | setTimeout(() => { |
| | | row.productList.forEach(product => { |
| | | let rowToSelect = this.detectionItems.find(item => item.id === product.id); |
| | | if (rowToSelect) { |
| | | this.toggleSelection(rowToSelect); |
| | | } |
| | | }); |
| | | row.productList.forEach(product => { |
| | | let rowToSelect = this.detectionItems.find(item => item.id === product.id); |
| | | if (rowToSelect) { |
| | | this.toggleSelection(rowToSelect); |
| | | } |
| | | }); |
| | | },200) |
| | | } |
| | | } |
| | | |
| | | |
| | | }) |
| | | },1000); |
| | | } |