From e5454b769d44a34af423bf87ac8a740bf8c20341 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 29 四月 2025 13:25:29 +0800
Subject: [PATCH] Merge branch 'dev' into dev_tides

---
 src/views/business/inspectionReview/index.vue |   67 ++++++++++++++++++++-------------
 1 files changed, 40 insertions(+), 27 deletions(-)

diff --git a/src/views/business/inspectionReview/index.vue b/src/views/business/inspectionReview/index.vue
index 4af1036..567885f 100644
--- a/src/views/business/inspectionReview/index.vue
+++ b/src/views/business/inspectionReview/index.vue
@@ -12,8 +12,8 @@
           </el-select>
         </el-form-item>
         <el-form-item>
-          <el-button icon="el-icon-refresh" size="mini" @click="refresh">閲� 缃�</el-button>
-          <el-button type="primary" icon="el-icon-search" size="mini" @click="refreshTable">鏌� 璇�</el-button>
+          <el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button>
+          <el-button size="mini" @click="refresh">閲嶇疆</el-button>
         </el-form-item>
       </el-form>
       <div class="page_total">
@@ -23,8 +23,8 @@
     </div>
     <div>
       <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading"
-        :rowClassName="rowClassName" :height="'calc(100vh - 270px)'" @pagination="pagination"
-        key="tableData0"></lims-table>
+                  :rowClassName="rowClassName" :height="'calc(100vh - 270px)'" @pagination="pagination"
+                  key="tableData0"></lims-table>
     </div>
     <!--鎶ュ憡鏌ョ湅-->
     <el-dialog title="鎶ュ憡鏌ョ湅" :visible.sync="issuedVisible" width="80vw" :modal-append-to-body="false"
@@ -108,7 +108,18 @@
           prop: "type",
           dataType: "tag",
           formatData: (params) => {
-            return this.urgencyLevel.find((m) => m.value == params).label;
+            if (this.urgencyLevel.find((m) => m.value == params)) {
+              return this.urgencyLevel.find((m) => m.value == params).label;
+            } else {
+              return null
+            }
+          },
+          formatType: (params) => {
+            if (this.urgencyLevel.find((m) => m.value == params)) {
+              return this.urgencyLevel.find((m) => m.value == params).type;
+            } else {
+              return null
+            }
           },
         },
         {
@@ -128,11 +139,18 @@
           prop: "insState",
           dataType: "tag",
           formatData: (params) => {
-            return this.inspectionTaskState.find((m) => m.value == params)
-              .label;
+            if (this.inspectionTaskState.find((m) => m.value == params)) {
+              return this.inspectionTaskState.find((m) => m.value == params).label;
+            } else {
+              return null
+            }
           },
           formatType: (params) => {
-            return this.inspectionTaskState.find((m) => m.value == params).type;
+            if (this.inspectionTaskState.find((m) => m.value == params)) {
+              return this.inspectionTaskState.find((m) => m.value == params).type;
+            } else {
+              return null
+            }
           },
         },
         { label: "妫�楠屼汉", prop: "userName" },
@@ -153,7 +171,7 @@
                 this.handleReview(row);
               },
               disabled: (row) => {
-                return row.userName == null || row.userName && !row.userName.includes(this.nickName)
+                return row.checkName == null || (row.checkName && !row.checkName.includes(this.nickName))
               }
             },
             {
@@ -229,10 +247,10 @@
       fullscreen: false,
       option: null,
       orderTypeList: [
-        { label: '濮旀墭璇曢獙', value: 'Customer-ordered test' },
-        { label: '鎶芥', value: '鎶芥' },
-        { label: '杩涘巶妫�楠�', value: '杩涘巶妫�楠�' },
-        { label: '瀛e害妫�楠�', value: 'Quarterly inspection' },
+        { label: '濮旀墭璇曢獙', value: 'Customer-ordered test', type: 'success' },
+        { label: '鎶芥', value: '鎶芥', type: 'danger' },
+        { label: '杩涘巶妫�楠�', value: '杩涘巶妫�楠�', type: 'info' },
+        { label: '瀛e害妫�楠�', value: 'Quarterly inspection', type: '' },
       ],
       urgencyLevel: [],
       inspectionTaskState: [],
@@ -286,13 +304,6 @@
       }
       return "";
     },
-    // 鏌ョ湅浜т笟閾句俊鎭�
-    // openInfoDialog (row) {
-    //   this.showInfoDialog = true
-    //   this.$nextTick(() => {
-    //     this.$refs.showInfoDialog.getInfo(row.ifsInventoryId)
-    //   })
-    // },
     selectAllByOne(row) {
       this.isCopper = row.isCopper
       this.customsInspection = row
@@ -304,7 +315,7 @@
         case 0:
           // 鍘熸潗鏂�
           this.$router.push({
-            path: "/materialOrder/customsInspection", query: {
+            path: "/materialOrder/customsInspectionView", query: {
               customsInspection: row,
               active: this.activeFace,
               currentId: this.currentId,
@@ -315,7 +326,7 @@
         case null:
           // 鎴愬搧
           this.$router.push({
-            path: "/productOrder/add", query: {
+            path: "/productOrder/addView", query: {
               examine: this.examine,
               active: this.activeFace,
               currentId: this.currentId
@@ -325,7 +336,7 @@
         case 1:
           // 閾滄潗
           this.$router.push({
-            path: "/materialOrder/copperOrder", query: {
+            path: "/materialOrder/CopperView", query: {
               active: this.activeFace,
               currentId: this.currentId
             }
@@ -373,10 +384,6 @@
     // 鏌ョ湅鎶ュ憡
     handleIssued(row) {
       // todo: 鏌ョ湅鎶ュ憡缁勪欢
-/*      if (!row.tempUrlPdf) return this.$message.warning('鏂囦欢鏈笂浼�')
-      this.currentInfo = row
-      this.lookDialogVisible = true*/
-      console.log(this.javaApi)
       this.currentInfo = row;
       let fileName = row.url
       let fileType = "docx"
@@ -417,5 +424,11 @@
 <style scoped>
 .page_total {
   margin-bottom: 10px;
+  display: flex;
+}
+.page_total span:last-child {
+  color: #3a7bfa;
+  font-size: 23px;
+  font-weight: 400;
 }
 </style>

--
Gitblit v1.9.3