From c863d53a225feffb018e35b4453c1e977eaeca81 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期一, 11 五月 2026 15:24:34 +0800
Subject: [PATCH] 不合格处理:对接OA报错问题修复

---
 src/views/business/unpass/index-manage.vue |   63 ++++++++++++++++---------------
 1 files changed, 33 insertions(+), 30 deletions(-)

diff --git a/src/views/business/unpass/index-manage.vue b/src/views/business/unpass/index-manage.vue
index f2aa6c7..cb5d776 100644
--- a/src/views/business/unpass/index-manage.vue
+++ b/src/views/business/unpass/index-manage.vue
@@ -134,6 +134,7 @@
                   :unPassDialog="unPassDialog"></UnPassDialog>
     <OAProcess ref="OAProcess"
                :OAProcess="OAProcess"
+               :isOldData="isOldData"
                @closeOAProcess="closeOAProcess"
                v-if="OAProcess"></OAProcess>
   </div>
@@ -152,7 +153,7 @@
     OAProcess,
     UnPassDialog,
   },
-  dicts: ['material_prop_type','oa_workflow_state'],
+  dicts: ['material_prop_type','oa_workflow_state','categories_no_conformities','attribution_no_conformities'],
   data() {
     return {
       lotBatchNo:null,
@@ -385,22 +386,22 @@
           width: "100px",
           dataType: "tag",
           formatData: (params) => {
-            if (params == 0) {
-              return "涓�绫讳笉鍚堟牸";
-            } else if(params == 1) {
-              return "浜岀被涓嶅悎鏍�";
-            } else {
-              return null
-            }
+            let label = null
+            this.dict.type.categories_no_conformities.forEach(item=>{
+              if(item.raw.dictValue==params){
+                label = item.raw.dictLabel
+              }
+            })
+            return label
           },
           formatType: (params) => {
-            if (params == 0) {
-              return "warning";
-            } else if(params == 1) {
-              return "info";
-            } else {
-              return "null";
-            }
+            let type = null
+            this.dict.type.categories_no_conformities.forEach(item=>{
+              if(item.raw.dictValue==params){
+                type =  item.raw.listClass
+              }
+            })
+            return type
           },
         },
         { label: '渚涘簲鍟嗙紪鐮�', prop: 'supplierId',width:'140' },
@@ -411,22 +412,22 @@
           width: "120px",
           dataType: "tag",
           formatData: (params) => {
-            if (params == 0) {
-              return "妫�娴嬩笉鍚堟牸";
-            } else if(params == 1) {
-              return "鐢熶骇鍙嶉涓嶅悎鏍�";
-            } else {
-              return null
-            }
+            let label = params
+            this.dict.type.attribution_no_conformities.forEach(item=>{
+              if(item.raw.dictValue==params){
+                label = item.raw.dictLabel
+              }
+            })
+            return label
           },
           formatType: (params) => {
-            if (params == 0) {
-              return "danger";
-            } else if(params == 1) {
-              return "warning";
-            } else {
-              return "null";
-            }
+            let type = null
+            this.dict.type.attribution_no_conformities.forEach(item=>{
+              if(item.raw.dictValue==params){
+                type = item.raw.listClass
+              }
+            })
+            return type
           },
         },
         { label: '涓嶅悎鏍兼弿杩�', prop: 'unqualifiedDesc',width: "160px" },
@@ -481,7 +482,8 @@
       submitOALoading: false, // OA娴佺▼寮规鎻愪氦鎸夐挳loading
       deleteVisible: false, // OA娴佺▼鍒犻櫎寮规
       cancelOALoading: false, // OA娴佺▼鍒犻櫎寮规鎻愪氦鎸夐挳loading
-      exportLoading:false
+      exportLoading:false,
+      isOldData: true,//鏄惁鏄棫鏁版嵁
     };
   },
   mounted() {
@@ -668,6 +670,7 @@
     // 鏌ョ湅OA娴佺▼
     OAView (row) {
       this.OAProcess = true
+      this.isOldData = row.isOldData
       this.$nextTick(() => {
         this.$refs.OAProcess.getInfo(row.handlerId,row?row.unqualifiedDesc:"")
       })

--
Gitblit v1.9.3