cuijian
2023-09-04 7545fb929cef97d8b81df845e16747e4fc2d978f
完工移交单打印按钮
已修改1个文件
12 ■■■■■ 文件已修改
src/views/eam/DailyMaintenanceOrderList.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/DailyMaintenanceOrderList.vue
@@ -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"
@@ -483,6 +490,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 = '日常保养工单执行'