From ca8cf61b9b31099ea843c36bf9da4740650cfbc9 Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期三, 18 十月 2023 16:53:33 +0800 Subject: [PATCH] 操作证模块调整 --- src/views/eam/DailyMaintenanceOrderList.vue | 39 +++++++++++++++++++++++++++++++-------- 1 files changed, 31 insertions(+), 8 deletions(-) diff --git a/src/views/eam/DailyMaintenanceOrderList.vue b/src/views/eam/DailyMaintenanceOrderList.vue index 0f0a36d..8812cc1 100644 --- a/src/views/eam/DailyMaintenanceOrderList.vue +++ b/src/views/eam/DailyMaintenanceOrderList.vue @@ -1,7 +1,7 @@ <template> <a-card :bordered="false" - title="鏃ュ父淇濆吇宸ュ崟" + title="浜岀骇淇濆吇宸ュ崟" > <!-- 鏌ヨ鍖哄煙 --> <div class="table-page-search-wrapper"> @@ -66,6 +66,13 @@ icon="plus" v-has="'dailyMaintenanceOrder:add'" >鏂板</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" @@ -308,7 +315,8 @@ }, data() { return { - description: '鏃ュ父淇濆吇宸ュ崟', + description: '浜岀骇淇濆吇宸ュ崟', + queryParam: { maintenanceType: '2' }, // 琛ㄥご columns: [ { @@ -322,16 +330,21 @@ } }, { - title: '鐘舵��', - align: "center", - dataIndex: 'statusName' - }, - { title: '淇濆吇宸ュ崟鍙�', align: "center", dataIndex: 'num', scopedSlots: { customRender: 'num' } }, + { + title: '鐘舵��', + align: "center", + dataIndex: 'statusName' + }, + // { + // title: '淇濆吇绫诲瀷', + // align: "center", + // dataIndex: 'maintenanceTypeName', + // }, { title: '淇濆吇鍛ㄦ湡', align: "center", @@ -483,6 +496,11 @@ this.selectionRows = selectionRows; }, + handlePrintInfo(record) { + let href = `${window._CONFIG['domianURL']}/jmreport/view/857408393168490496?id=` + record.id; //缃戠珯閾炬帴 + window.open(href, "_blank"); + }, + handleOrderExe(record) { this.$refs.DailyMaintenanceOrderExeDrawer.visible = true this.$refs.DailyMaintenanceOrderExeDrawer.title = '鏃ュ父淇濆吇宸ュ崟鎵ц' @@ -578,6 +596,11 @@ this.$refs.MaintenanceOrderAssignModal.title = '宸ュ崟鏀规淳' this.$refs.MaintenanceOrderAssignModal.disableSubmit = false }, + + searchReset() { + this.queryParam = { maintenanceType: '2' } + this.loadData(1); + }, // modalFormOk() { // alert(0) // // 鏂板/淇敼 鎴愬姛鏃讹紝閲嶈浇鍒楄〃 @@ -615,7 +638,7 @@ font-weight: bold; } .yellow { - color: yellow; + color: rgba(255, 255, 0, 0.443); font-weight: bold; } .fontweight { -- Gitblit v1.9.3