From 1085f3fffcdc0afd9f140490f9d0078a8426667c Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 03 二月 2026 13:27:30 +0800
Subject: [PATCH] 不合格管理:问题调整

---
 src/views/business/unpass/index-manage.vue |   29 ++++++++++++++++++++++-------
 1 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/src/views/business/unpass/index-manage.vue b/src/views/business/unpass/index-manage.vue
index 556c548..76b32c0 100644
--- a/src/views/business/unpass/index-manage.vue
+++ b/src/views/business/unpass/index-manage.vue
@@ -122,6 +122,7 @@
   data() {
     return {
       handlerId: null,
+      contract:null,
       entity: {
         contract: null,
         sample: null,
@@ -260,16 +261,18 @@
           dataType: 'action',
           fixed: 'right',
           label: '鎿嶄綔',
-          width: '180px',
+          width: '220px',
           operation: [
             {
-              name: '鎻愪氦OA',
+              name: (row)=>{
+                return row.requestId !== null && row.operation==='閫�鍥�' ? '閲嶆柊鎻愪氦' : '鎻愪氦OA'
+              },
               type: 'text',
               clickFun: (row) => {
                 this.openOA(row);
               },
               disabled: (row, index) => {
-                return row.requestId !== null  // 鏈塺equestId璇存槑宸茬粡鎻愪氦杩嘜A锛屼笉鍙啀娆℃彁浜�
+                return row.requestId !== null && row.operation!=='閫�鍥�'  // 鏈塺equestId璇存槑宸茬粡鎻愪氦杩嘜A锛屼笉鍙啀娆℃彁浜�
               }
             },
             {
@@ -286,7 +289,7 @@
                 this.deleteOA(row);
               },
               disabled: (row, index) => {
-                return row.requestId !== null  // 鏈塺equestId璇存槑宸茬粡鎻愪氦杩嘜A锛屼笉鍙啀娆℃彁浜�
+                return row.requestId !== null && row.operation!=='閫�鍥�'  // 鏈塺equestId璇存槑宸茬粡鎻愪氦杩嘜A锛屼笉鍙啀娆℃彁浜�
               }
             },
           ]
@@ -294,7 +297,7 @@
       ],
       page: {
         total: 0,
-        size: 10,
+        size: 20,
         current: 1
       },
       statusList: [],
@@ -362,6 +365,9 @@
     resetForm1 () {
       this.$refs.unPassDialog.$refs['unPassForm'].resetFields();
       this.unPassDialog = false
+      this.$nextTick(()=>{
+        this.refreshTable('page')
+      })
     },
     // 鎵撳紑鍒犻櫎OA纭寮规
     deleteOA (row) {
@@ -386,7 +392,16 @@
     // 鏌ョ湅鎻愪氦OA鐨勬暟鎹�
     openOA (row) {
       this.handlerId = row.handlerId
-      this.dialogVisible = true
+      this.contract = row.contract
+      if(row && row.requestId !== null  ){
+        // 閲嶆柊鎻愪氦OA,鎵撳紑缂栬緫寮规
+        this.unPassDialog = true
+        this.$nextTick(() => {
+          this.$refs.unPassDialog.getInsOrder('resubmit', row)
+        })
+      }else{
+        this.dialogVisible = true
+      }
     },
     // 鏌ョ湅OA娴佺▼
     OAView (row) {
@@ -403,7 +418,7 @@
     submitOA(row) {
       // 鎻愪氦OA
       this.submitOALoading = true
-      pushOA({handlerId: this.handlerId,}).then(res => {
+      pushOA({handlerId: this.handlerId,contract:this.contract}).then(res => {
         this.submitOALoading = false
         if (res.code === 200) {
           this.dialogVisible = false

--
Gitblit v1.9.3