qushaowei
2023-10-17 05170ec3d816960d4f8a38ec8d202cefe73b4179
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 = '日常保养工单执行'
@@ -615,7 +633,7 @@
  font-weight: bold;
}
.yellow {
  color: yellow;
  color: rgba(255, 255, 0, 0.443);
  font-weight: bold;
}
.fontweight {