From 5cb65b5ddc7738ce5a395bca0556f37de8c257bd Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 31 七月 2024 16:58:39 +0800
Subject: [PATCH] 检验下单筛选、x待检项目统计bug

---
 src/components/do/b1-ins-order/add.vue |   31 ++++++++++++++++++++++++++++---
 1 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 0156774..bc59989 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -164,7 +164,8 @@
         </el-col>
       </el-row>
     </div>
-    <div class="search" v-show="!configShow&&!equipConfigShow&&!cableConfigShow">
+    <div style="height: (100vh - 200px);">
+      <div class="search" v-show="!configShow&&!equipConfigShow&&!cableConfigShow">
       <el-row>
         <el-col class="search_thing" :span="6">
           <div class="search_label">濮旀墭缂栧彿锛�</div>
@@ -511,6 +512,7 @@
           </template>
         </el-table-column>
       </el-table>
+    </div>
     </div>
     <el-dialog title="閫夋嫨鍗曚綅" :visible.sync="selectUserDia" width="70%">
       <div class="body" style="height: 60vh;" v-if="selectUserDia">
@@ -1362,6 +1364,14 @@
           this.temperatureData = this.temperatureData.slice(0,-deleteNum)
         }
       },
+      changeProductList0(){
+        this.productList0.forEach(a=>{
+          let obj = this.productList.find(m => m.id == a.id)
+          if(obj){
+            a.state = obj.state
+          }
+        })
+      },
       searchFilterList () {
         const vtw = {
           inspectionItem: this.inspectionItem, // 妫�楠岄」
@@ -1371,6 +1381,7 @@
         const isHaveValue = Object.values(vtw).some(item => {
           return item
         })
+        this.changeProductList0()
         if (isHaveValue) {
           for(let i in vtw) {
             if (vtw[i]) {
@@ -1379,9 +1390,19 @@
               })
             }
           }
+          this.$nextTick(()=>{
+            this.productList.forEach(a => {
+              if (a.state == 1) this.toggleSelection(a)
+            })
+          })
         } else {
           // 娌℃湁鏌ヨ鏉′欢鏃舵覆鏌撴墍鏈夋暟鎹�
           this.productList = this.productList0
+          this.$nextTick(()=>{
+            this.productList.forEach(a => {
+              if (a.state == 1) this.toggleSelection(a)
+            })
+          })
         }
       },
       getAuthorizedPerson() {
@@ -2130,7 +2151,7 @@
           return item
         })
         const select = this.selectTree.split(' - ')
-        if (row.inspectionItem === '娓╁害寰幆' && select[2] === '鍏夌紗' && row.state === 1) {
+        if (row.inspectionItem === '娓╁害寰幆' && select[2] === '鍏夌紗' && row.state === 1&&this.isAskOnlyRead) {
           this.circulateShow = true;
           return
         } else if (row.inspectionItem === '娓╁害寰幆' && select[2] === '鍏夌紗' && row.state === 0) {
@@ -2146,6 +2167,8 @@
         } else if ((row.inspectionItem === '娓╁崌璇曢獙' || row.inspectionItem === '鐑惊鐜�') && row.state === 0) {
           this.temperatureShow = false;
         }
+        this.changeProductList0()
+        this.currentMethod.insProduct = this.productList0
         this.getProNum()
       },
       searchProject () {
@@ -2433,7 +2456,7 @@
             return
           }
           const select = this.selectTree.split(' - ')
-          if (p.inspectionItem === '娓╁害寰幆' && select[2] === '鍏夌紗' && p.state === 1) {
+          if (p.inspectionItem === '娓╁害寰幆' && select[2] === '鍏夌紗' && p.state === 1&&this.isAskOnlyRead) {
             this.circulateShow = true;
             return
           } else if (p.inspectionItem === '娓╁害寰幆' && select[2] === '鍏夌紗' && p.state === 0) {
@@ -2478,6 +2501,8 @@
             return item
           })
         }
+        this.changeProductList0()
+        this.currentMethod.insProduct = this.productList0
         this.getProNum()
         this.$nextTick(() => {
           this.$refs.productTable.doLayout()

--
Gitblit v1.9.3