From 5c8aaba66c16b1a143fdec27e29ad36eaefd1e3a Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 31 十二月 2024 14:33:25 +0800
Subject: [PATCH] 无源器件检验开发

---
 src/components/do/b1-inspect-order-plan/humidity.vue |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/humidity.vue b/src/components/do/b1-inspect-order-plan/humidity.vue
index 3fc68d0..5eead4d 100644
--- a/src/components/do/b1-inspect-order-plan/humidity.vue
+++ b/src/components/do/b1-inspect-order-plan/humidity.vue
@@ -3,7 +3,7 @@
     <table border="1" cellpadding="10" class="thermal-table" style="margin-bottom: 20px;">
       <template v-for="(item,index) in insProductList">
         <tr>
-          <td style="font-size: 18px;font-weight: 500;background-color: #F0F1F5;padding: 10px 0;box-sizing: border-box;" colspan="6">{{ item.inspectionItemSubclass }}</td>
+          <td style="font-size: 18px;font-weight: 500;background-color: #F0F1F5;padding: 10px 0;box-sizing: border-box;" :colspan="insProductList&&insProductList.find(m=>m.list0.length==6)?7:6">{{ item.inspectionItemSubclass }}</td>
         </tr>
         <tr>
           <td style="font-size: 16px;background-color: #F0F1F5;">瑙勬牸鍨嬪彿</td>
@@ -11,7 +11,7 @@
           <td style="font-size: 16px;background-color: #F0F1F5;">璇曢獙鏂规硶</td>
           <td>{{item.methodS}}</td>
           <td style="font-size: 16px;background-color: #F0F1F5;">璁惧缂栧彿</td>
-          <td>
+          <td :colspan="insProductList&&insProductList.find(m=>m.list0.length==6)?2:1">
             <el-select v-model="item.equipValue" placeholder="璇烽�夋嫨" size="small" :disabled="state>1" @focus="methodFocus(item)" @change="m=>handleEquip(m,item)">
               <el-option
                 v-for="item in equipOptions"
@@ -26,11 +26,11 @@
           <td style="font-size: 16px;background-color: #F0F1F5;">璇曢獙瑕佹眰</td>
           <td colspan="3" style="text-align: left;">{{item.tell}}</td>
           <td style="font-size: 16px;background-color: #F0F1F5;">璁惧鍚嶇О</td>
-          <td>{{ item.equipName }}</td>
+          <td :colspan="insProductList&&insProductList.find(m=>m.list0.length==6)?2:1">{{ item.equipName }}</td>
         </tr>
         <tr>
           <td style="font-size: 16px;background-color: #F0F1F5;">瀹為獙鍓嶆牱鍝佹鏌�</td>
-          <td colspan="2">
+          <td :colspan="item.beforeCheck=='鐮存崯'?1:(insProductList&&insProductList.find(m=>m.list0.length==6)?3:2)">
             <el-select v-model="item.beforeCheck" placeholder="璇烽�夋嫨" size="small" :disabled="state>1" @change="save(item)">
               <el-option
                 v-for="item in options"
@@ -40,8 +40,12 @@
               </el-option>
             </el-select>
           </td>
+          <td v-if="item.beforeCheck=='鐮存崯'">
+            <el-input v-model="item.beforeNote" placeholder="鐮存崯璇存槑" size="small" :disabled="state>1" style="display: inline-block;width: 100%;" @change="save(item)" type="textarea"
+              :rows="3"></el-input>
+          </td>
           <td style="font-size: 16px;background-color: #F0F1F5;">瀹為獙鍚庢牱鍝佹鏌�</td>
-          <td colspan="2">
+          <td :colspan="item.afterCheck=='鐮存崯'?1:2">
             <el-select v-model="item.afterCheck" placeholder="璇烽�夋嫨" size="small" :disabled="state>1" @change="save(item)">
               <el-option
                 v-for="item in options"
@@ -51,6 +55,10 @@
               </el-option>
             </el-select>
           </td>
+          <td v-if="item.afterCheck=='鐮存崯'" :colspan="insProductList&&insProductList.find(m=>m.list0.length==6)?2:1">
+            <el-input v-model="item.afterNote" placeholder="鐮存崯璇存槑" size="small" :disabled="state>1" style="display: inline-block;width: 100%;" @change="save(item)" type="textarea"
+              :rows="3"></el-input>
+          </td>
         </tr>
         <tr v-if="item.inspectionItemSubclass&&item.inspectionItemSubclass.includes('浣�')">
           <td>鐢佃皟缁撴灉</td>
@@ -58,14 +66,14 @@
             <el-input v-model="m.value" :placeholder="'绗�'+(i+1)+'娆�'" size="small" :disabled="state>1" style="display: inline-block;width: 50%;" @change="save(item)"></el-input>
             <el-button icon="el-icon-minus" circle size="mini" type="danger"
            :disabled="state>1" style="margin: 5px;display: inline-block;" @click="deleteList(item.list0,i,m)" ></el-button>
-            <el-button icon="el-icon-plus" circle size="mini" type="primary" :disabled="state>1" style="margin: 5px;display: inline-block;" v-if="i==item.list0.length-1&&i<4" @click="addList(item.list0,item.list0.length-1)"></el-button>
+            <el-button icon="el-icon-plus" circle size="mini" type="primary" :disabled="state>1" style="margin: 5px;display: inline-block;" v-if="i==item.list0.length-1&&i<5" @click="addList(item.list0,item.list0.length-1)"></el-button>
           </td>
         </tr>
         <tr style="background-color: #F0F1F5;">
           <td colspan="2">鏃堕棿</td>
           <td colspan="1">娓╁害</td>
           <td colspan="1">婀垮害</td>
-          <td colspan="2">鎿嶄綔</td>
+          <td  :colspan="insProductList&&insProductList.find(m=>m.list0.length==6)?3:2">鎿嶄綔</td>
         </tr>
         <tr v-for="(m,i) in item.list" :key="i+item.id">
           <td colspan="2">
@@ -80,7 +88,7 @@
           <td colspan="1">
             <el-input v-model="m.humidity" placeholder="婀垮害" size="small" @change	="a=>handleReplace(m,'%rh','humidity',item)" :disabled="state>1"></el-input>
           </td>
-          <td colspan="2">
+          <td  :colspan="insProductList&&insProductList.find(m=>m.list0.length==6)?3:2">
             <el-button icon="el-icon-minus" circle size="mini" type="danger"
             @click="deleteList(item.list,i,item)" :disabled="state>1" style="margin: 5px;"></el-button>
             <el-button icon="el-icon-plus" circle size="mini" type="primary" @click="addList(item.list,i,'out')" :disabled="state>1" style="margin: 5px;"></el-button>
@@ -134,6 +142,8 @@
           this.$set(item,'equipName','')
           this.$set(item,'beforeCheck','')
           this.$set(item,'afterCheck','')
+          this.$set(item,'afterNote','')
+          this.$set(item,'beforeNote','')
         }else{
           // 璧嬪��
           this.$set(item,'list',JSON.parse(item.insProductResult.insValue))
@@ -155,6 +165,8 @@
           this.$set(item,'equipName',item.insProductResult.equipName?JSON.parse(item.insProductResult.equipName)[0].v:'')
           this.$set(item,'beforeCheck',item.insProductResult.beforeCheck)
           this.$set(item,'afterCheck',item.insProductResult.afterCheck)
+          this.$set(item,'afterNote',item.insProductResult.afterNote)
+          this.$set(item,'beforeNote',item.insProductResult.beforeNote)
         }
       })
     },
@@ -240,6 +252,8 @@
         num:this.num,
         beforeCheck:item.beforeCheck,
         afterCheck:item.afterCheck,
+        afterNote:item.afterNote,
+        beforeNote:item.beforeNote,
       }, {
       headers: {
         'Content-Type': 'application/json'

--
Gitblit v1.9.3