From 44b729434d847256e2ddcc4b2484192d33f492ab Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期五, 09 八月 2024 10:38:21 +0800 Subject: [PATCH] 修改检验任务样品切换 --- src/components/do/b1-ins-order/fiberoptic-config-two.vue | 54 +++++++++++++------------- src/components/do/b1-inspect-order-plan/Inspection.vue | 10 ++++ src/components/do/b1-ins-order/fiberoptic-config.vue | 4 +- 3 files changed, 38 insertions(+), 30 deletions(-) diff --git a/src/components/do/b1-ins-order/fiberoptic-config-two.vue b/src/components/do/b1-ins-order/fiberoptic-config-two.vue index a45fbcf..d5dfea7 100644 --- a/src/components/do/b1-ins-order/fiberoptic-config-two.vue +++ b/src/components/do/b1-ins-order/fiberoptic-config-two.vue @@ -35,12 +35,12 @@ </div> <div class="search-item" style="margin-right: 10px;"> <label style="width: 100px">姣忔牴绠℃娊妫�鏍囧噯閲�</label> - <el-input v-model="packageInfo.standNum" placeholder="璇疯緭鍏�" size="small" @blur="addStandNum" :disabled="active!=1" style="width:100px"></el-input> + <el-input v-model="packageInfo.standNum" placeholder="璇疯緭鍏�" size="small" @blur="addStandNum" :disabled="active!=1" style="width:70px"></el-input> </div> <div class="search-item"> <label style="width: 100px">姣忔牴绠℃娊妫�妫�娴嬮噺</label> <el-input v-model="packageInfo.testNum" placeholder="璇疯緭鍏�" size="small" @blur="addTestNum" - style="width:100px" + style="width:70px" :disabled="packageInfo.radio===0||active!=1"></el-input> </div> </div> @@ -478,7 +478,7 @@ this.fiberList.push(b) }) } - + }else{ this.fiberList = [] a.fiber.forEach(b=>{ @@ -487,7 +487,7 @@ } }) } - + this.getTypeDicts1() this.getStandTreeBySampleType() this.getStandTreeBySampleType2() @@ -513,7 +513,7 @@ } }) }) - + } if(this.detectionItems.type == 0) { // 璧嬪�兼娴嬮」淇℃伅 鍏夌氦 @@ -584,7 +584,7 @@ this.fiberList = [] this.fibersList = [] this.detectionItems = [] - + // 椤甸潰鏄惁鍚湁鍏夌氦甯� if(this.packageInfo.ismiers) { // 鍏ㄦ @@ -627,8 +627,8 @@ } } - - + + }, upNum() { this.fiberList = [] @@ -689,7 +689,7 @@ } a.fibers.push(fibers) this.fibersList.push(fibers) - } + } }) } else { this.bushing = [] @@ -763,7 +763,7 @@ // this.addFiber() // }, 200) // }) - + // 灏嗕笅鎷夋鍊艰祴鍊肩粰鍏夌氦 鐩戝惉鍘婚櫎 if(this.selectFiberList.length == 0) { this.$message.error('璇烽�夋嫨鏁版嵁') @@ -800,7 +800,7 @@ this.detectionType = 0 this.$set(this.detectionItems,'type',0) } - + }) }, methodChange2(val) { @@ -897,7 +897,7 @@ fibersIdent: a.ident, productList: [] } - this.fiberList.push(fiber) + this.fiberList.push(fiber) } }) } else { @@ -918,7 +918,7 @@ }) } }else { - this.fiberList = [] + this.fiberList = [] let flag = true // 鎸夌収椤哄簭鐢熸垚鍏夌氦鑹叉爣 let colors2 = [] @@ -960,7 +960,7 @@ // this.$message.error('鏈�夋嫨濂楃') // return // } - // this.fiberList = [] + // this.fiberList = [] // let flag = true // // 鎸夌収椤哄簭鐢熸垚鍏夌氦鑹叉爣 // let colors2 = [] @@ -1111,7 +1111,7 @@ }else if (type == 0){ this.detectionItems = [] this.detectionItems = row.productList - } + } // if(type == 1) { // if((row.model == null || row.model == '') && (row.standard == null || row.standard == '')){ // this.detectionItems = [] @@ -1144,11 +1144,11 @@ // 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) // } // } @@ -1169,7 +1169,7 @@ // } // this.$axios.post(this.$api.standardTree.selectStandardProductList, { // model: this.mireModel.split(' - ')[1], - // standardMethodListId: this.mireStandard, + // standardMethodListId: this.mireStandard, // factory: '' // }, { // headers: { @@ -1184,16 +1184,16 @@ // 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) // } // } diff --git a/src/components/do/b1-ins-order/fiberoptic-config.vue b/src/components/do/b1-ins-order/fiberoptic-config.vue index aef1696..24e3d8c 100644 --- a/src/components/do/b1-ins-order/fiberoptic-config.vue +++ b/src/components/do/b1-ins-order/fiberoptic-config.vue @@ -35,12 +35,12 @@ </div> <div class="search-item" style="margin-right: 10px;"> <label style="width: 100px">姣忔牴绠℃娊妫�鏍囧噯閲�</label> - <el-input v-model="packageInfo.standNum" placeholder="璇疯緭鍏�" size="small" @blur="addStandNum" :disabled="active!=1" style="width:100px"></el-input> + <el-input v-model="packageInfo.standNum" placeholder="璇疯緭鍏�" size="small" @blur="addStandNum" :disabled="active!=1" style="width:70px"></el-input> </div> <div class="search-item"> <label style="width: 100px">姣忔牴绠℃娊妫�妫�娴嬮噺</label> <el-input v-model="packageInfo.testNum" placeholder="璇疯緭鍏�" size="small" @blur="addTestNum" - :disabled="packageInfo.radio===0||active!=1" style="width:100px"></el-input> + :disabled="packageInfo.radio===0||active!=1" style="width:70px"></el-input> </div> </div> <el-table ref="table0" :data="bushing" tooltip-effect="dark" style="width: 100%" height="203px" size="small" diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue index c454335..dd3fb7d 100644 --- a/src/components/do/b1-inspect-order-plan/Inspection.vue +++ b/src/components/do/b1-inspect-order-plan/Inspection.vue @@ -242,7 +242,7 @@ <!-- <el-button size="small" type="primary" @click="fiberOpticVisible=true" v-if="fiberOptic.length>0">鍏夌氦鍒囨崲</el-button> <el-button size="small" type="primary" @click="fiberOpticTapeVisible=true" v-if="fiberOpticTape.length>0">鍏夌氦甯﹀垏鎹�</el-button> <el-button size="small" type="primary" @click="bushingVisible=true" v-if="bushing.length>0">濂楃鍒囨崲</el-button> --> - <el-button size="small" type="primary" @click="sampleVisible=true">鏍峰搧鍒囨崲</el-button> + <el-button size="small" type="primary" @click="sampleVisible=true;uploadSample()">鏍峰搧鍒囨崲</el-button> <el-button size="small" type="primary" @click="taskVisible=true">浠诲姟鍒囨崲</el-button> <el-button size="small" type="primary" @click="addVerifyDia = true" v-if="state==1" :loading="submitLoading">鎻愪氦</el-button> @@ -1985,6 +1985,14 @@ this.collected = collected this.temDataAcquisition = temDataAcquisition }, + uploadSample(){ + this.$axios.post(this.$api.insOrderPlan.doInsOrder, { + id: this.id, + laboratory: this.sonLaboratory + }).then(async res => { + this.sampleProduct = res.data.sampleProduct + }) + }, async getCurrentProduct(id,type){ this.tableLoading = true; let res = await this.$axios.post(this.$api.insOrderPlan.getInsProduct+'?id='+id+'&type='+type+'&laboratory='+this.sonLaboratory) -- Gitblit v1.9.3