From d289be3b10e9b259625ca9128b54bc62950c4e48 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期一, 08 九月 2025 17:57:49 +0800
Subject: [PATCH] 出库状态改为生命周期 其他文档改为电子文档 电子文档新增指派设备结构树

---
 src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue |   43 ++++++++++++++++++++++++++++++++-----------
 1 files changed, 32 insertions(+), 11 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
index 3c6083b..32481e2 100644
--- a/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
+++ b/src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
@@ -1,11 +1,17 @@
 <template>
   <div>
-    <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination"
-             :scroll="{y:189}" :customRow="customRow" :size="size" rowKey="docId" @change="handleTableChange">
-
+    <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination" :loading="loading"
+             :scroll="{y:265}" :customRow="customRow" :size="size" rowKey="docId" @change="handleTableChange">
+      <!-- 瀛楃涓茶秴闀挎埅鍙栫渷鐣ュ彿鏄剧ず-->
+      <span slot="docName" slot-scope="text">
+                <j-ellipsis :value="text"/>
+      </span>
     </a-table>
 
     <DocumentModal ref="modalForm" @ok="modalFormOk"/>
+
+    <NcDocumentAssignModal :size="size" ref="documentAssignModalRef"
+                           :currentDocumentInfo="currentRightClickedDocumentInfo"/>
   </div>
 </template>
 
@@ -13,10 +19,11 @@
   import { getAction } from '@/api/manage'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import DocumentModal from '../../../../common/DocumentModal'
+  import NcDocumentAssignModal from '@views/dnc/base/modules/ProductStructure/Document/NcDocumentAssignModal.vue'
 
   export default {
     name: 'OtherDocumentTableList',
-    components: { DocumentModal },
+    components: { NcDocumentAssignModal, DocumentModal },
     mixins: [JeecgListMixin],
     props: {
       currentTreeNodeInfo: {
@@ -45,12 +52,13 @@
             dataIndex: 'docName',
             key: 'docName',
             align: 'center',
+            scopedSlots: { customRender: 'docName' },
             width: 300,
             sorter: true
           },
           { title: '璁惧缂栧彿', dataIndex: 'docCode', align: 'center' },
           {
-            title: '鍑哄簱鐘舵��',
+            title: '鐢熷懡鍛ㄦ湡',
             dataIndex: 'pullStatus_dictText',
             key: 'pullStatus',
             align: 'center',
@@ -61,13 +69,15 @@
           },
           {
             title: '鐘�  鎬�',
-            dataIndex: 'docStatus_dictText',
-            key: 'docStatus',
+            dataIndex: 'docDispatchStatus_dictText',
+            key: 'docDispatchStatus',
             align: 'center',
             filters: [
-              { text: '璁捐', value: 1 },
-              { text: '鍙戝竷', value: 2 },
-              { text: '褰掓。', value: 3 }
+              { text: '缂栧埗', value: 1 },
+              { text: '鏍″', value: 2 },
+              { text: '鎵瑰噯', value: 3 },
+              { text: '璇曞垏', value: 4 },
+              { text: '瀹氬瀷', value: 5 }
             ]
           },
           { title: '绯荤粺鎸囧畾鐗堟湰', dataIndex: 'publishVersion', align: 'center', width: 200 },
@@ -80,6 +90,7 @@
           }
         ],
         dataSource: [],
+        currentRightClickedDocumentInfo: {},
         currentClickedDocumentInfo: {},
         url: {
           list: '/nc/doc/find/page'
@@ -89,7 +100,7 @@
     watch: {
       currentTreeNodeInfo: {
         handler(value) {
-          this.currentClickedDocumentInfo = {}
+          this.currentClickedDocumentInfo = this.currentRightClickedDocumentInfo = {}
         },
         immediate: true
       }
@@ -131,9 +142,13 @@
 
       customRow(record) {
         return {
+          style: {
+            backgroundColor: this.currentClickedDocumentInfo.docId === record.docId ? '#BAE7FF' : 'transparent'
+          },
           on: {
             contextmenu: event => {
               event.preventDefault()
+              this.currentRightClickedDocumentInfo = Object.assign({ param: 'OTHER' }, record)
               this.$emit('handleTableContextMenuOpen', { ...record, param: 'OTHER' })
             },
             click: () => {
@@ -172,6 +187,12 @@
         this.$refs.modalForm.title = modalTitle
       },
 
+      handleDocumentAssign(record, modalTitle) {
+        if (!this.$refs.documentAssignModalRef) return
+        this.$refs.documentAssignModalRef.title = modalTitle
+        this.$refs.documentAssignModalRef.visible = true
+      },
+
       handleDelete() {
         // 姝ゅ鍑芥暟涓哄睆钄絤ixins涓殑鍚屽悕鍑芥暟锛岄�氱敤鍑芥暟鍐欏湪鐖剁骇涓�
       },

--
Gitblit v1.9.3