From 1cbee08edf1823000a761ef23360628d2cb5d559 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期二, 05 八月 2025 23:41:08 +0800
Subject: [PATCH] 修改名称展示

---
 src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 51 insertions(+), 8 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue b/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue
index c3c709f..c9d7509 100644
--- a/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue
+++ b/src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue
@@ -4,9 +4,9 @@
              :scroll="{y:265}" :customRow="customRow" :size="size" rowKey="docId" @change="handleTableChange">
 
       <!-- 瀛楃涓茶秴闀挎埅鍙栫渷鐣ュ彿鏄剧ず-->
-      <span slot="docName" slot-scope="text">
-          <j-ellipsis :value="text"/>
-        </span>
+<!--      <span slot="docName" slot-scope="text">-->
+<!--          <j-ellipsis :value="text"/>-->
+<!--        </span>-->
     </a-table>
 
     <DocumentModal ref="modalForm" @ok="modalFormOk"/>
@@ -17,7 +17,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 './NcDocumentAssignModal'
@@ -53,8 +53,7 @@
             title: '鏂囦欢鍚嶇О',
             dataIndex: 'docName',
             key: 'docName',
-            align: 'center',
-            scopedSlots: { customRender: 'docName' },
+
             width: 500,
             sorter: true
           },
@@ -96,7 +95,8 @@
         currentRightClickedDocumentInfo: {},
         currentClickedDocumentInfo: {},
         url: {
-          list: '/nc/doc/find/page'
+          list: '/nc/doc/find/page',
+          submitProccess:'/dncFlow/dispatchFile/submitProccess'
         }
       }
     },
@@ -213,6 +213,48 @@
         this.$refs.documentAssignModalRef.visible = true
       },
 
+      handleAppoint(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
+            }
+            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()
+          }
+        })
+      },
+
       handleDocumentExtract(record) {
         const that = this
         const { docId, attributionId, attributionType } = record
@@ -227,8 +269,9 @@
                 if (res.success) {
                   that.$notification.success({
                     message: '娑堟伅',
-                    description: `鎻愬彇鎴愬姛`
+                    description: `鎻愬彇鎴愬姛`,
                   })
+                  that.$bus.$emit('reloadCutterList')
                 } else {
                   that.$notification.error({
                     message: '娑堟伅',

--
Gitblit v1.9.3