From f16c91bc9b96c415b7129e3eccf29b5b9f93d7a3 Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期三, 26 三月 2025 08:29:13 +0800
Subject: [PATCH] 工时查询修改, 样品搜索问题修复

---
 src/views/business/productOrder/components/add.vue |   30 ++++++++++++------------------
 1 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/add.vue
index bb0553c..307633f 100644
--- a/src/views/business/productOrder/components/add.vue
+++ b/src/views/business/productOrder/components/add.vue
@@ -356,11 +356,6 @@
                         size="small" type="textarea"
                         @change="e=>requestChange(e,scope.row,'radius')">
               </el-input>
-<!--              <el-select v-else-if="scope.row.inspectionItem.includes('楂樻俯鍘嬪姏璇曢獙') && (active==1||tabIndex==4)" v-model="scope.row.radius" clearable-->
-<!--                         placeholder="鏉′欢"-->
-<!--                         size="small" @change="e=>requestChange(e,scope.row,'radius')">-->
-<!--                <el-option v-for="(a,i) in JSON.parse(scope.row.radiusList)" :key="i" :label="a" :value="a"></el-option>-->
-<!--              </el-select>-->
               <span v-else>{{scope.row.radius}}</span>
             </template>
           </el-table-column>
@@ -379,16 +374,10 @@
           </el-table-column>
           <el-table-column label="璁¢噺鍗曚綅" prop="unit" show-overflow-tooltip width="100"></el-table-column>
           <el-table-column label="鍗曚环" prop="price" show-overflow-tooltip width="100"></el-table-column>
-          <!-- <el-table-column prop="manDay" label="棰勮鏃堕棿(澶�)" width="120" show-overflow-tooltip></el-table-column>
-          <el-table-column prop="manHour" label="宸ユ椂绯绘暟" width="100" show-overflow-tooltip></el-table-column> -->
-          <!-- <el-table-column prop="deviceGroup" label="璁惧缁�" width="120" show-overflow-tooltip></el-table-column> -->
           <el-table-column label="鍖洪棿" min-width="120" prop="section" show-overflow-tooltip></el-table-column>
           <el-table-column :filter-method="filterHandler" :filters="filters" label="瀛愬疄楠屽" min-width="130" prop="sonLaboratory"
             show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="isSpecial&&active==1"
-            fixed="right"
-            label="鎿嶄綔"
-            width="100">
+            <el-table-column v-if="isSpecial&&active==1" label="鎿嶄綔" width="100">
             <template slot-scope="scope">
               <el-button v-if="!scope.row.repetitionTag" size="small" type="text" @click="addProductList(productList,scope.row,scope.$index)">鎻掑叆琛�</el-button>
               <el-button v-if="!!scope.row.repetitionTag&&scope.row.delete" size="small" type="text" @click="deleteProductList(scope.$index,productList)">鍒犻櫎</el-button>
@@ -851,6 +840,7 @@
     this.active = this.$route.query.active
     this.tabIndex = this.$route.query.tabIndex
     this.currentId = this.$route.query.currentId
+    this.getUserNowData()
     this.getInfo()
   },
   activated() {
@@ -861,7 +851,6 @@
   },
   methods: {
     getInfo() {
-      this.getUserNowData()
       this.selectStandardTreeList()
       this.getAuthorizedPerson();
       this.selectStandardMethods()
@@ -1130,7 +1119,9 @@
             sampleList.forEach(a => {
               if (a.insProduct.length > 0) {
                 a.insProduct.forEach(c => {
-                  delete c.id
+                  if (this.tabIndex != 4) {
+                    delete c.id
+                  }
                 })
               }
               if (a.endModels) {
@@ -1168,7 +1159,9 @@
           sampleList.forEach(a => {
             if (a.insProduct.length > 0) {
               a.insProduct.forEach(c => {
-                delete c.id
+                if (this.tabIndex != 4) {
+                  delete c.id
+                }
               })
             }
             if (a.endModels) {
@@ -1267,7 +1260,6 @@
         }
       },
       saveMethod(sampleList){
-        console.log('sampleList----', sampleList)
         this.saveLoad = true
         if (this.addObj.quarterItemId) {
           this.addObj.quarterItemId = this.addObj.quarterItemId[1]
@@ -1411,7 +1403,6 @@
         if (node.data.code === '[3]') {
           this.sampleViewEn = val.sampleTypeEn
         } else if (node.data.code === '[4]') {
-          console.log('node.data---', node.data)
           if (node.data.children!==null && node.data.children.length>0) {
             this.sampleViewEn = val.sampleEn
           }
@@ -1657,7 +1648,6 @@
       },
       tableRowClassName({row, rowIndex}) {
         if (row.state == 1) {
-          console.log('row.state---', row.state)
           return 'warning-row';
         } else {
           return '';
@@ -2224,4 +2214,8 @@
 >>>.warning-row {
   color: #1890FF;
 }
+.node_i {
+  color: orange;
+  font-size: 18px;
+}
 </style>

--
Gitblit v1.9.3