From 8a2c2a0a87f2a24e2ce89f386d2e6fd5d455ee8b Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期五, 18 十月 2024 11:28:10 +0800 Subject: [PATCH] 修改温湿试验设备 --- src/components/do/b1-inspect-order-plan/circuit-parameters2.vue | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 deletions(-) diff --git a/src/components/do/b1-inspect-order-plan/circuit-parameters2.vue b/src/components/do/b1-inspect-order-plan/circuit-parameters2.vue index 6939261..5afe6f5 100644 --- a/src/components/do/b1-inspect-order-plan/circuit-parameters2.vue +++ b/src/components/do/b1-inspect-order-plan/circuit-parameters2.vue @@ -116,7 +116,7 @@ </div> </el-col> <el-col :span="2"> - <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'涓嶅悎鏍�':(n.result===1?'鍚堟牸':'寰呭畾') }} + <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'涓嶅悎鏍�':(n.result===1?'鍚堟牸':(n.result===3?'涓嶅垽瀹�':'寰呭畾')) }} </div> </el-col> </el-row> @@ -167,7 +167,7 @@ </div> </el-col> <el-col :span="2"> - <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'涓嶅悎鏍�':(n.result===1?'鍚堟牸':'寰呭畾') }} + <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'涓嶅悎鏍�':(n.result===1?'鍚堟牸':(n.result===3?'涓嶅垽瀹�':'寰呭畾')) }} </div> </el-col> </el-row> @@ -272,12 +272,17 @@ }, currentNum(val) { this.initData() + }, + insProduct:{ + deep:true, + handler:function(val){ + this.initData() + } } }, mounted() { this.getTypeDicts() this.initData() - console.log(2222,this.currentNum) }, methods: { // 瀛楀吀鑾峰彇鏁版嵁 @@ -290,11 +295,12 @@ }, // 鍒濆鍖栨暟鎹� initData(){ + this.allBandList = [] // 澶勭悊椤圭洰 this.insProductNew = JSON.parse(JSON.stringify(this.insProduct)).filter(m=>m.inspectionItem.includes('鐢佃矾璇曢獙')) this.insProductNew.forEach(async item => { // 鑾峰彇璁惧鍒楄〃 - item.equipOptions = await this.getEquipOptions(item) + item.equipOptions = [] }) if(this.insProductNew[0].insProductResult2&&this.insProductNew[0].insProductResult2.length>0){ // 宸茬粡瀛樺湪鍊兼椂锛岃祴鍊� @@ -378,6 +384,25 @@ // 璧嬪�艰澶� item.equipName = '' item.equipValue = '' + this.portList = [ + { + value:'1', + }, + { + value:'2', + }, + { + value:'3', + }, + { + value:'4', + }, + ] + this.angleList = [ + { + value:'' + } + ] // 璧嬪�肩鍙e拰瑙掑害 item.portList = JSON.parse(JSON.stringify(this.portList)) item.angleList = JSON.parse(JSON.stringify(this.angleList)) @@ -552,7 +577,7 @@ if(!n.often){ return } - if(!n.often.includes('MHz')||!n.often.includes('MHZ')){ + if(!n.often.includes('MHz')&&!n.often.includes('MHZ')){ n.often = n.often + 'MHz' } }, @@ -568,6 +593,11 @@ }, save(h,y) { let arr = h.projectList.map(item=>{ + if(item.portList&&item.portList.length>0){ + item.value.forEach(m=>{ + m = m.splice(item.portList.length) + }) + } let obj = { insProductId:item.id, equipValue:this.insProductNew.find(m=>m.id==item.id).equipValue, -- Gitblit v1.9.3