From ff1f734e5f37cdd004f6c8bf88a2917737e1ff08 Mon Sep 17 00:00:00 2001
From: hyingbo <1363390067@qq.com>
Date: 星期四, 11 九月 2025 11:10:56 +0800
Subject: [PATCH] 故障报修列表超期标记红色

---
 src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue |   52 +++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 47 insertions(+), 5 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
index 32481e2..a887909 100644
--- a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
+++ b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
@@ -16,7 +16,7 @@
 </template>
 
 <script>
-  import { getAction } from '@/api/manage'
+import { getAction, postAction } from '@/api/manage'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import DocumentModal from '../../../../common/DocumentModal'
   import NcDocumentAssignModal from '@views/dnc/base/modules/ProductStructure/Document/NcDocumentAssignModal.vue'
@@ -76,8 +76,6 @@
               { text: '缂栧埗', value: 1 },
               { text: '鏍″', value: 2 },
               { text: '鎵瑰噯', value: 3 },
-              { text: '璇曞垏', value: 4 },
-              { text: '瀹氬瀷', value: 5 }
             ]
           },
           { title: '绯荤粺鎸囧畾鐗堟湰', dataIndex: 'publishVersion', align: 'center', width: 200 },
@@ -93,7 +91,8 @@
         currentRightClickedDocumentInfo: {},
         currentClickedDocumentInfo: {},
         url: {
-          list: '/nc/doc/find/page'
+          list: '/nc/doc/find/page',
+          startDispatchFile:'/dncFlow/dispatchFile/startDispatchFile',
         }
       }
     },
@@ -192,7 +191,50 @@
         this.$refs.documentAssignModalRef.title = modalTitle
         this.$refs.documentAssignModalRef.visible = true
       },
-
+      handleDocumentDispatch(record) {
+        const that = this
+        console.log("sssss",record)
+        that.$confirm({
+          title: '鎻愮ず',
+          content: `纭鍙戣捣瀹$娴佺▼鍚楋紵`,
+          okText: '纭',
+          cancelText: '鍙栨秷',
+          onOk: () => {
+            let dispatchFile = {
+              'docId':record.docId,
+              'attributionId':record.attributionId,
+              'attributionType':record.attributionType,
+              'fileId':record.publishFileId,
+              'docClassCode':record.classificationId_dictText,
+            }
+            postAction(this.url.startDispatchFile,dispatchFile)
+              .then(res => {
+                if (res.success) {
+                  this.$message.success('娴佺▼鍙戣捣鎴愬姛')
+                  this.loadData()
+                } else {
+                  that.$notification.error({
+                    message: '娑堟伅',
+                    description: res.message
+                  })
+                }
+              })
+              .catch(err => {
+                that.$notification.error({
+                  message: '娑堟伅',
+                  description: err.message
+                })
+              })
+              .finally(() => {
+                that.$destroyAll()
+                this.loadData()
+              })
+          },
+          onCancel: () => {
+            that.$destroyAll()
+          }
+        })
+      },
       handleDelete() {
         // 姝ゅ鍑芥暟涓哄睆钄絤ixins涓殑鍚屽悕鍑芥暟锛岄�氱敤鍑芥暟鍐欏湪鐖剁骇涓�
       },

--
Gitblit v1.9.3