From fdd08d56e9d84d2f9578e82c44578d099b29572f Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期五, 12 九月 2025 17:38:24 +0800
Subject: [PATCH] 三保变更批量导出及打印

---
 src/views/eam/maintenance/EamThirdMaintenanceChangeList.vue |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/src/views/eam/maintenance/EamThirdMaintenanceChangeList.vue b/src/views/eam/maintenance/EamThirdMaintenanceChangeList.vue
index 6d2edae..ea6a42c 100644
--- a/src/views/eam/maintenance/EamThirdMaintenanceChangeList.vue
+++ b/src/views/eam/maintenance/EamThirdMaintenanceChangeList.vue
@@ -36,17 +36,24 @@
       </a-form>
     </div>
 
+    <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
+    <div class="table-operator">
+      <a-button @click="handleBatchPrint" type="primary" icon="monitor" :disabled="selectedRowKeys.length===0">鎵归噺棰勮
+      </a-button>
+    </div>
+
     <!-- table鍖哄煙-begin -->
     <a-table ref="table" size="middle" bordered rowKey="id" :columns="columns" :dataSource="dataSource"
              :pagination="ipagination" :loading="loading" :scroll="{x:'max-content'}"
+             :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
              @change="handleTableChange">
 
       <!--浣跨敤閮ㄩ棬-->
       <template slot="factoryCode" slot-scope="text,record">
-        {{[record.zxfactoryOrgCode_dictText,record.gqfactoryOrgCode_dictText,record.factoryCode_dictText].filter(item=>item).join('/')}}
+        {{[record.zxfactoryOrgCode_dictText].filter(item=>item).join('/')}}
       </template>
 
-        <span slot="action" slot-scope="text, record">
+      <span slot="action" slot-scope="text, record">
           <template v-if="record.changeStatus=='WAIT_SUBMIT'">
             <a @click="handleEdit(record)">缂栬緫</a>
 
@@ -75,6 +82,9 @@
     <!--瀹℃壒绐楀彛-->
     <third-maintenance-order-change-approval-modal ref="thirdMaintenanceOrderChangeApprovalModal"
                                                    :selectShenpiData="selectedRowData"/>
+
+    <!--鎵归噺鎵撳嵃绐楀彛-->
+    <eam-third-maintenance-change-batch-print-modal ref="batchPrintModal"/>
   </a-card>
 </template>
 
@@ -85,11 +95,13 @@
   import EamThirdMaintenanceChangeModal from './modules/EamThirdMaintenanceChangeModal.vue'
   import ThirdMaintenanceOrderChangeApprovalModal
     from '../../flowable/workflow/thirdMaintenance/ThirdMaintenanceOrderChangeApprovalModal'
+  import EamThirdMaintenanceChangeBatchPrintModal from './modules/EamThirdMaintenanceChangeBatchPrintModal'
 
   export default {
     name: 'EamThirdMaintenanceChangeList',
     mixins: [JeecgListMixin],
     components: {
+      EamThirdMaintenanceChangeBatchPrintModal,
       ThirdMaintenanceOrderChangeApprovalModal,
       EamThirdMaintenanceChangeModal,
       LxSearchEquipmentSelect
@@ -138,7 +150,7 @@
           },
           {
             title: '浣跨敤閮ㄩ棬',
-            dataIndex: 'factoryCode',
+            align: 'center',
             scopedSlots: { customRender: 'factoryCode' },
             fixed: 'left'
           },
@@ -323,6 +335,11 @@
         this.queryParam.dateEnd = dateStringArray[1]
       },
 
+      // 鎵归噺鎵撳嵃
+      handleBatchPrint() {
+        this.$refs.batchPrintModal.handlePreview(this.selectedRowKeys.join())
+      },
+
       handlePrint(record) {
         let href = `${window._CONFIG['domianURL']}/jmreport/view/1094880052100399104?id=` + record.id
         //  + `&orderId=` + record.id; //缃戠珯閾炬帴

--
Gitblit v1.9.3