qushaowei
2023-10-24 9d3b355061393f9dd031c1d8aaf124564d9c0d19
src/views/eam/DailyMaintenanceOrderList.vue
@@ -1,7 +1,7 @@
<template>
  <a-card
    :bordered="false"
    title="日常保养工单"
    title="二级保养"
  >
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
@@ -71,7 +71,7 @@
        @click="handlePrintInfo(selectionRows[0])"
        type="primary"
        style="margin-left: 8px"
      >打印
      >移交单打印
      </a-button>
      <!-- <a-button
        v-if="selectedRowKeys.length > 0"
@@ -142,11 +142,11 @@
          slot-scope="text, record"
        >
          <a-popconfirm
            title="确定下发工单吗?"
            title="确定接收工单吗?"
            @confirm="() => handleOrderIssue(record)"
            v-has="'dailyMaintenanceOrder:issue'"
          >
            <a v-if="record.status == '1'">下发</a>
            <a v-if="record.status == '1'">接收</a>
          </a-popconfirm>
          <a-divider
            v-if="record.status == '1'"
@@ -233,11 +233,11 @@
            type="vertical"
          />
          <a
            v-if="record.status === '5'"
            v-if="record.status === '5' || record.status === '8'"
            @click="handleFinish(record)"
          >确认</a>
          >完工移交单</a>
          <a-divider
            v-if="record.status === '5'"
            v-if="record.status === '5' || record.status === '8'"
            type="vertical"
          />
          <a-dropdown>
@@ -315,7 +315,8 @@
  },
  data() {
    return {
      description: '日常保养工单',
      description: '二级保养工单',
      queryParam: { maintenanceType: '2' },
      // 表头
      columns: [
        {
@@ -329,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",
@@ -350,7 +356,7 @@
          dataIndex: 'assignModeName'
        },
        {
          title: '设备编码',
          title: '统一编码',
          align: "center",
          dataIndex: 'equipmentNum',
        },
@@ -491,7 +497,7 @@
    },
    handlePrintInfo(record) {
      let href = `${window._CONFIG['domianURL']}/jmreport/view/857408393168490496?id=`+record.id; //网站链接
      let href = `${window._CONFIG['domianURL']}/jmreport/view/857408393168490496?id=` + record.id; //网站链接
      window.open(href, "_blank");
    },
@@ -590,6 +596,11 @@
      this.$refs.MaintenanceOrderAssignModal.title = '工单改派'
      this.$refs.MaintenanceOrderAssignModal.disableSubmit = false
    },
    searchReset() {
      this.queryParam = { maintenanceType: '2' }
      this.loadData(1);
    },
    // modalFormOk() {
    //   alert(0)
    //   // 新增/修改 成功时,重载列表
@@ -627,7 +638,7 @@
  font-weight: bold;
}
.yellow {
  color: yellow;
  color: rgba(255, 255, 0, 0.443);
  font-weight: bold;
}
.fontweight {