zenglf
2023-09-19 3457909638c660c0cfcb521b6104ab64c679b914
src/views/eam/DailyMaintenanceOrderList3m.vue
@@ -55,6 +55,27 @@
        icon="plus"
        v-has="'dailyMaintenanceOrder:add'"
      >新增</a-button>
      <a-button
        v-if="selectedRowKeys.length == 1 && selectionRows[0].status == '8'"
        @click="handlePrintPrecision(selectionRows[0])"
        type="primary"
        style="margin-left: 8px"
      >精度检验单打印
      </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"
@@ -231,11 +252,11 @@
            type="vertical"
          /> -->
          <a
            v-if="record.status === '5'"
            v-if="record.status === '5' || record.status === '8' "
            @click="handlePrecisionCheckOrder(record)"
          >精度检验</a>
          <a-divider
            v-if="record.status === '5'"
            v-if="record.status === '5'|| record.status === '8'"
            type="vertical"
          />
          <a-dropdown>
@@ -262,7 +283,7 @@
          slot-scope="text, record"
        >
          <a
            v-if="record.status === '3' || record.status === '4' ||record.status === '5'  ||record.status === '7' "
            v-if="record.status === '3' || record.status === '4' ||record.status === '5'  ||record.status === '7' ||record.status === '8'"
            class="lot"
            @click="handleOrderExe(record)"
          >{{record.num}}</a>
@@ -500,6 +521,23 @@
      this.selectionRows = selectionRows;
    },
    handlePrintPrecision(record) {
      let href = `${window._CONFIG['domianURL']}/jmreport/view/858844938446508032?id=` + record.id; //网站链接
      window.open(href, "_blank");
    },
    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 = '日常保养工单执行'