From 7b2f45c3882d12fecc5ce00f7adb315b9dae0869 Mon Sep 17 00:00:00 2001
From: houshuai <17802598606@163.com>
Date: 星期五, 13 六月 2025 16:50:07 +0800
Subject: [PATCH] 航宇dnc定型流程开发

---
 src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainTop.vue |   48 ++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 46 insertions(+), 2 deletions(-)

diff --git a/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainTop.vue b/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainTop.vue
index bdca851..bb21be2 100644
--- a/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainTop.vue
+++ b/src/views/dnc/base/modules/DeviceStructure/DeviceStructureMainTop.vue
@@ -29,6 +29,7 @@
 import HasSentDocumentTableList from './Document/HasSentDocumentTableList'
 import HasReceivedDocumentTableList from './Document/HasReceivedDocumentTableList'
 import DocumentBatchDeleteModal from '../../../common/DocumentBatchDeleteModal'
+import { postAction } from '@api/manage'
 
 export default {
   name: 'DeviceStructureMainTop',
@@ -44,7 +45,10 @@
       tableContainerSize: 'small',
       currentTypeOfDevice: 7,// 浜у搧缁撴瀯鏍戜腑瀹氫箟鐨勮澶囧眰绾ype涓�7
       currentRightClickedTableRowInfo: {},
-      hasLoadedDataTabKeyArray: []
+      hasLoadedDataTabKeyArray: [],
+      url:{
+        submitProccess:'/dncFlow/dispatchFile/submitProccess'
+      }
     }
   },
   created() {
@@ -172,7 +176,47 @@
         }
       })
     },
-
+    handleAppoint(){
+      const that = this
+      const { docId, param, attributionId,attributionType,publishFileId } = this.currentRightClickedTableRowInfo
+      that.$confirm({
+        title: '鎻愮ず',
+        content: `纭瀹氬瀷鍚楋紵`,
+        okText: '纭',
+        cancelText: '鍙栨秷',
+        onOk: () => {
+          let dispatchFile = {
+            'docId':docId,
+            'attributionId':attributionId,
+            'attributionType':attributionType,
+            'fileId':publishFileId
+          }
+          postAction(this.url.submitProccess,dispatchFile)
+            .then(res => {
+              if (res.success) {
+                this.$message.success('娴佺▼鍙戣捣鎴愬姛')
+              } else {
+                that.$notification.error({
+                  message: '娑堟伅',
+                  description: res.message
+                })
+              }
+            })
+            .catch(err => {
+              that.$notification.error({
+                message: '娑堟伅',
+                description: err.message
+              })
+            })
+            .finally(() => {
+              that.$destroyAll()
+            })
+        },
+        onCancel: () => {
+          that.$destroyAll()
+        }
+      })
+    },
     /**
      * 鐐瑰嚮鎵归噺鍒犻櫎鍚庡嚭鐜板脊绐�
      * @param modalTitle 寮圭獥鏍囬

--
Gitblit v1.9.3