From cd26d9664032ff33ac806dc507577b2acaa88a6d Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期六, 10 八月 2024 15:31:38 +0800
Subject: [PATCH] 复核人过滤

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |   27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index 2f55a89..7a81061 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -417,7 +417,7 @@
                       <i class="el-icon-caret-left table_caret" style="width: 16px;" @click="caretSample(-1)" v-if="!currentFiberOpticTape&&!currentFiberOptic"></i>
                       <div :style="`font-family:${n.v.ff} !important;overflow: hidden;white-space: nowrap;width: calc(100% - 32px);`">{{currentSample.sampleCode}}</div>
                       <i class="el-icon-caret-right table_caret" style="width: 16px;"
-                      v-if="!currentFiberOpticTape&&!currentFiberOptic"@click="caretSample(1)"></i>
+                      v-if="!currentFiberOpticTape&&!currentFiberOptic" @click="caretSample(1)"></i>
                     </div>
                   </template>
                   <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='鏍峰搧鍨嬪彿'">
@@ -853,7 +853,7 @@
   import file from '../../../util/file'
   import excelFunction from '../../../util/excelFountion'
   export default {
-    props: ['sonLaboratory', 'orderId', 'state'],
+    props: ['sonLaboratory', 'orderId', 'state','inspectorList'],
     components: {
       ValueTable,
     },
@@ -943,6 +943,7 @@
           requiredUp: []
         },
         upIndex: 0,
+        changeType:null,
         getReportModelLoading:false,
         insOrder: {},
         sampleProduct: [],
@@ -1142,7 +1143,16 @@
         })
       },
       currentTable(val1, val0) {
-        if (val0 != null && val1 != val0) {
+        if(val0 !=null && val1 != val0){
+        if(this.tableLists.find(m=>m.templateId==val1)&&(this.tableLists.find(m=>m.templateId==val1).templateName=='鎴愬搧缂嗘楠屽師濮嬭褰�')){
+          if(this.casing.length>0){
+            this.handleChange(this.casing[0].id,3)
+          }
+          return
+        }
+        if(this.changeType && this.changeType>0){
+          return
+        }
           this.tableLists.forEach(async (m, i) => {
             if (m.templateId == val1) {
               let list = await this.getCurrentProduct(this.currentSample.id,0)
@@ -1185,11 +1195,6 @@
             }
           })
           this.handleCasing()
-          if(this.tableLists.find(m=>m.templateId==val1)&&(this.tableLists.find(m=>m.templateId==val1).templateName=='鎴愬搧缂嗘楠屽師濮嬭褰�')){
-            if(this.casing.length>0){
-              this.handleChange(this.casing[0].id,3)
-            }
-          }
         }
       },
       equipForm:{
@@ -1351,7 +1356,6 @@
                       maxNum = num
                     }
                   }
-                  console.log('data[i][j].equipName',data[i][j].equipName,'data[i][j].equipValue',data[i][j].equipValue,'m.v',m.v,'m.v.ps',m.v.ps,'m.v.ps.value',m.v.ps.value,'str0',str0,'str',str,'m.v.v',m.v.v)
                   if(data[i][j].equipName&&data[i][j].equipValue&&m.v&&m.v.ps&&m.v.ps.value=='璁惧缂栫爜'&&str0==str){
                     if(!m.v.v){
                       this.changeEquip(data[i][j].equipValue,m,data[i][j].equipName)
@@ -2094,6 +2098,7 @@
         })
       },
       async handleChange(m,type){
+        this.changeType = type;
         if(m){
           let list = await this.getCurrentProduct(m,type)
           if(list.length>0){
@@ -3164,9 +3169,9 @@
       getAuthorizedPerson() {
         this.$axios.get(this.$api.user.getUserMenu).then(res => {
           let data = []
-          let userName = JSON.parse(localStorage.getItem("user")).name;
+          // let userName = JSON.parse(localStorage.getItem("user")).name;
           res.data.forEach(a => {
-            if(a.name !== userName) {
+            if(!this.inspectorList.includes(a.name)) {
               data.push({
               label: a.name,
               value: a.id

--
Gitblit v1.9.3