From 1227a827fc531da057f1f50c967dd79d2a673a3a Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期二, 05 九月 2023 18:24:26 +0800
Subject: [PATCH] 三级保养打印功能

---
 src/views/eam/DailyMaintenanceOrderList3m.vue |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/src/views/eam/DailyMaintenanceOrderList3m.vue b/src/views/eam/DailyMaintenanceOrderList3m.vue
index 7ed5b7f..adb9568 100644
--- a/src/views/eam/DailyMaintenanceOrderList3m.vue
+++ b/src/views/eam/DailyMaintenanceOrderList3m.vue
@@ -55,6 +55,20 @@
         icon="plus"
         v-has="'dailyMaintenanceOrder:add'"
       >鏂板</a-button>
+      <a-button
+        v-if="selectedRowKeys.length == 1 && selectionRows[0].status == '8'"
+        @click="handlePrintCheck(selectionRows[0])"
+        type="primary"
+        style="margin-left: 8px"
+      >楠屾敹鍗曟墦鍗�
+      </a-button>
+      <a-button
+        v-if="selectedRowKeys.length == 1 && selectionRows[0].status == '8'"
+        @click="handlePrintInfo(selectionRows[0])"
+        type="primary"
+        style="margin-left: 8px"
+      >绉讳氦鍗曟墦鍗�
+      </a-button>
       <!-- <a-button
         v-if="selectedRowKeys.length > 0"
         type="primary"
@@ -500,6 +514,18 @@
       this.selectionRows = selectionRows;
     },
 
+    handlePrintCheck(record) {
+      let href = `${window._CONFIG['domianURL']}/jmreport/view/858867141388996608?id=`+record.id; //缃戠珯閾炬帴
+      window.open(href, "_blank");
+    },
+
+
+    handlePrintInfo(record) {
+      let href = `${window._CONFIG['domianURL']}/jmreport/view/858930685061042176?id=`+record.id; //缃戠珯閾炬帴
+      window.open(href, "_blank");
+    },
+
+
     handleOrderExe(record) {
       this.$refs.DailyMaintenanceOrderExeDrawer.visible = true
       this.$refs.DailyMaintenanceOrderExeDrawer.title = '鏃ュ父淇濆吇宸ュ崟鎵ц'

--
Gitblit v1.9.3