From 7be77bb648c8dc92539d02f4d678ff60b2d5f3db Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期四, 19 六月 2025 17:51:57 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/eam/maintenance/EamInspectionOrderList.vue        |  720 +++++++++++++++++++++---------------
 src/views/eam/maintenance/EamThirdMaintenanceOrderList.vue  |  226 ++++++++--
 src/views/eam/maintenance/EamSecondMaintenanceOrderList.vue |  220 ++++++++--
 3 files changed, 758 insertions(+), 408 deletions(-)

diff --git a/src/views/eam/maintenance/EamInspectionOrderList.vue b/src/views/eam/maintenance/EamInspectionOrderList.vue
index ecdc95a..775a14e 100644
--- a/src/views/eam/maintenance/EamInspectionOrderList.vue
+++ b/src/views/eam/maintenance/EamInspectionOrderList.vue
@@ -1,33 +1,91 @@
 <template>
   <a-card :bordered="false">
     <!-- 鏌ヨ鍖哄煙 -->
-    <div class="table-page-search-wrapper" v-if="isDisplayOperation">
-      <a-form layout="inline" @keyup.enter.native="searchQuery">
+    <div
+      class="table-page-search-wrapper"
+      v-if="isDisplayOperation"
+    >
+      <a-form
+        layout="inline"
+        @keyup.enter.native="searchQuery"
+      >
         <a-row :gutter="24">
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="宸ュ崟鍙�">
-              <a-input placeholder="璇疯緭鍏ュ伐鍗曞彿" v-model="queryParam.orderNum"></a-input>
+              <a-input
+                placeholder="璇疯緭鍏ュ伐鍗曞彿"
+                v-model="queryParam.orderNum"
+              ></a-input>
             </a-form-item>
           </a-col>
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="璁惧缂栧彿">
-              <lx-search-equipment-select placeholder="璇疯緭鍏ヨ澶囩紪鍙锋垨鍚嶇О鎼滅储" v-model="queryParam.equipmentId"></lx-search-equipment-select>
+              <lx-search-equipment-select
+                placeholder="璇疯緭鍏ヨ澶囩紪鍙锋垨鍚嶇О鎼滅储"
+                v-model="queryParam.equipmentId"
+              ></lx-search-equipment-select>
             </a-form-item>
           </a-col>
-          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="6"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="璁″垝鐐规鏃ユ湡">
-              <a-range-picker v-model="queryParam.inspectionDateRange" @change="onInspectionDateChange" format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
+              <a-range-picker
+                v-model="queryParam.inspectionDateRange"
+                @change="onInspectionDateChange"
+                format="YYYY-MM-DD"
+                value-format="YYYY-MM-DD"
+              />
             </a-form-item>
           </a-col>
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="鐐规鐘舵��">
-              <j-dict-select-tag placeholder="璇烽�夋嫨鐐规鐘舵��" dict-code="inspection_status" v-model="queryParam.inspectionStatus" />
+              <j-dict-select-tag
+                placeholder="璇烽�夋嫨鐐规鐘舵��"
+                dict-code="inspection_status"
+                v-model="queryParam.inspectionStatus"
+              />
             </a-form-item>
           </a-col>
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
-            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
-              <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
-              <a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
+            <span
+              style="float: left;overflow: hidden;"
+              class="table-page-search-submitButtons"
+            >
+              <a-button
+                type="primary"
+                @click="searchQuery"
+                icon="search"
+              >鏌ヨ</a-button>
+              <a-button
+                type="info"
+                @click="searchReset"
+                icon="reload"
+                style="margin-left: 8px"
+              >閲嶇疆</a-button>
             </span>
           </a-col>
         </a-row>
@@ -36,31 +94,54 @@
     <!-- 鏌ヨ鍖哄煙-END -->
 
     <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
-    <div class="table-operator" v-if="isDisplayOperation">
-      <a-button @click="handleAdd" type="primary" icon="plus" v-if="isShowAuth('eam:inspection:add')">鏂板</a-button>
+    <div
+      class="table-operator"
+      v-if="isDisplayOperation"
+    >
+      <a-button
+        @click="handleAdd"
+        type="primary"
+        icon="plus"
+        v-if="isShowAuth('eam:inspection:add')"
+      >鏂板</a-button>
       <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">
-          <a-menu-item key="1" v-if="isShowAuth('eam:inspection:abolish')" @click="batchZf('ABOLISH')">
-            <a-icon type="snippets"/>
+          <a-menu-item
+            key="1"
+            v-if="isShowAuth('eam:inspection:abolish')"
+            @click="batchZf('ABOLISH')"
+          >
+            <a-icon type="snippets" />
             浣滃簾
           </a-menu-item>
-          <a-menu-item key="2" v-if="isShowAuth('eam:inspection:collect')" @click="batchLq('UNDER_INSPECTION')">
-            <a-icon type="form"/>
+          <a-menu-item
+            key="2"
+            v-if="isShowAuth('eam:inspection:collect')"
+            @click="batchLq('UNDER_INSPECTION')"
+          >
+            <a-icon type="form" />
             棰嗗彇
           </a-menu-item>
         </a-menu>
         <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔
-          <a-icon type="down"/>
+          <a-icon type="down" />
         </a-button>
       </a-dropdown>
     </div>
 
     <!-- table鍖哄煙-begin -->
     <div>
-      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;" v-if="isDisplayOperation">
+      <div
+        class="ant-alert ant-alert-info"
+        style="margin-bottom: 16px;"
+        v-if="isDisplayOperation"
+      >
         <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{
         selectedRowKeys.length }}</a>椤�
-        <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a>
+        <a
+          style="margin-left: 24px"
+          @click="onClearSelected"
+        >娓呯┖</a>
       </div>
 
       <a-table
@@ -75,330 +156,369 @@
         :loading="loading"
         :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
         class="j-table-force-nowrap"
-        @change="handleTableChange">
+        @change="handleTableChange"
+      >
 
-        <span slot="action" slot-scope="text, record">
-            <a @click="handleEdit(record)" v-if="isShowAuth('eam:inspection:edit') && record.inspectionStatus === 'WAIT_INSPECTION'" >缂栬緫</a>
+        <span
+          slot="action"
+          slot-scope="text, record"
+        >
+          <a
+            @click="handleEdit(record)"
+            v-if="isShowAuth('eam:inspection:edit') && record.inspectionStatus === 'WAIT_INSPECTION'"
+          >缂栬緫</a>
 
-          <a-divider type="vertical" v-if="isShowAuth('eam:inspection:edit') && record.inspectionStatus === 'WAIT_INSPECTION'" />
+          <a-divider
+            type="vertical"
+            v-if="isShowAuth('eam:inspection:edit') && record.inspectionStatus === 'WAIT_INSPECTION'"
+          />
 
-          <a-popconfirm title="纭畾棰嗗彇鍚�?" v-if="isShowAuth('eam:inspection:collect') && record.inspectionStatus === 'WAIT_INSPECTION'"
-                        @confirm="() => handleInspection(record.id)">
-                  <a>棰嗗彇</a>
+          <a-popconfirm
+            title="纭畾棰嗗彇鍚�?"
+            v-if="isShowAuth('eam:inspection:collect') && record.inspectionStatus === 'WAIT_INSPECTION'"
+            @confirm="() => handleInspection(record.id)"
+          >
+            <a>棰嗗彇</a>
           </a-popconfirm>
 
-          <a-divider type="vertical" v-if="isShowAuth('eam:inspection:collect') && record.inspectionStatus === 'WAIT_INSPECTION'" />
+          <a-divider
+            type="vertical"
+            v-if="isShowAuth('eam:inspection:collect') && record.inspectionStatus === 'WAIT_INSPECTION'"
+          />
 
           <a-dropdown>
-            <a class="ant-dropdown-link">鏇村 <a-icon type="down"/></a>
+            <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
             <a-menu slot="overlay">
               <a-menu-item>
                 <a @click="handleDetail(record)">璇︽儏</a>
               </a-menu-item>
               <a-menu-item v-if="isShowAuth('eam:inspection:abolish') && record.inspectionStatus === 'WAIT_INSPECTION'">
-                <a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handleOrReceive(record.id)">
+                <a-popconfirm
+                  title="纭畾浣滃簾鍚�?"
+                  @confirm="() => handleOrReceive(record.id)"
+                >
                   <a>浣滃簾</a>
                 </a-popconfirm>
               </a-menu-item>
             </a-menu>
           </a-dropdown>
+
+          <a-divider
+            v-if="record.inspectionStatus === 'COMPLETE'"
+            type="vertical"
+          />
+          <a
+            v-if="record.inspectionStatus === 'COMPLETE'"
+            @click="handlePrint(record)"
+          >鎵撳嵃</a>
         </span>
       </a-table>
     </div>
 
-    <eam-inspection-order-modal ref="modalForm" @ok="modalFormOk"></eam-inspection-order-modal>
+    <eam-inspection-order-modal
+      ref="modalForm"
+      @ok="modalFormOk"
+    ></eam-inspection-order-modal>
 
-    <inspection-order-handle ref="modalFormXq" :selectShenpiData="selectInspectionOrderXqData"/>
+    <inspection-order-handle
+      ref="modalFormXq"
+      :selectShenpiData="selectInspectionOrderXqData"
+    />
   </a-card>
 </template>
 
 <script>
 
-  import '@/assets/less/TableExpand.less'
-  import { mixinDevice } from '@/utils/mixin'
-  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
-  import EamInspectionOrderModal from './modules/EamInspectionOrderModal'
-  import { deleteAction, getAction } from '@api/manage'
-  import InspectionOrderHandle from '../../flowable/workflow/InspectionOrder/InspectionOrderHandle'
-  import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue'
+import '@/assets/less/TableExpand.less'
+import { mixinDevice } from '@/utils/mixin'
+import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+import EamInspectionOrderModal from './modules/EamInspectionOrderModal'
+import { deleteAction, getAction } from '@api/manage'
+import InspectionOrderHandle from '../../flowable/workflow/InspectionOrder/InspectionOrderHandle'
+import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue'
 
-  export default {
-    name: 'EamInspectionOrderList',
-    mixins: [JeecgListMixin, mixinDevice],
-    components: {
-      InspectionOrderHandle,
-      EamInspectionOrderModal,
-      LxSearchEquipmentSelect,
-    },
-    props: {
-      isDisplayOperation: {
-        type: Boolean,
-        default: true
-      }
-    },
-    data() {
-      return {
-        description: 'eam_inspection_order绠$悊椤甸潰',
-        disableMixinCreated: true,
-        // 琛ㄥご
-        columns: [
-          {
-            title: '#',
-            dataIndex: '',
-            key: 'rowIndex',
-            width: 60,
-            align: 'center',
-            customRender: function(t, r, index) {
-              return parseInt(index) + 1
-            }
-          },
-          {
-            title: '宸ュ崟鍙�',
-            align: 'center',
-            dataIndex: 'orderNum'
-          },
-          {
-            title: '璁惧缂栧彿',
-            align: 'center',
-            dataIndex: 'equipmentCode'
-          },
-          {
-            title: '璁惧鍚嶇О',
-            align: 'center',
-            dataIndex: 'equipmentName'
-          },
-          {
-            title: '鏍囧噯鍚嶇О',
-            align: 'center',
-            dataIndex: 'standardId_dictText'
-          },
-          {
-            title: '鐐规鏃ユ湡',
-            align: 'center',
-            dataIndex: 'inspectionDate',
-            customRender: function(text) {
-              return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
-            }
-          },
-          {
-            title: '鐐规杩囨湡鏃ユ湡',
-            align: 'center',
-            dataIndex: 'expirationTime',
-            customRender: function(text) {
-              return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
-            }
-          },
-          {
-            title: '鍒涘缓鏂瑰紡',
-            align: 'center',
-            dataIndex: 'creationMethod_dictText'
-          },
-          {
-            title: '鐐规鐘舵��',
-            align: 'center',
-            dataIndex: 'inspectionStatus_dictText'
-          },
-          {
-            title: '鐐规浜�',
-            align: 'center',
-            dataIndex: 'operator_dictText'
-          },
-          {
-            title: '鐐规鏃堕棿',
-            align: 'center',
-            dataIndex: 'operateTime',
-          },
-          {
-            title: '绠$悊鍛樼‘璁�',
-            align: 'center',
-            dataIndex: 'confirmUser_dictText'
-          },
-          {
-            title: '纭鏃堕棿',
-            align: 'center',
-            dataIndex: 'confirmTime',
-          },
-          {
-            title: '纭鎰忚',
-            align: 'center',
-            dataIndex: 'confirmComment',
+export default {
+  name: 'EamInspectionOrderList',
+  mixins: [JeecgListMixin, mixinDevice],
+  components: {
+    InspectionOrderHandle,
+    EamInspectionOrderModal,
+    LxSearchEquipmentSelect,
+  },
+  props: {
+    isDisplayOperation: {
+      type: Boolean,
+      default: true
+    }
+  },
+  data() {
+    return {
+      description: 'eam_inspection_order绠$悊椤甸潰',
+      disableMixinCreated: true,
+      // 琛ㄥご
+      columns: [
+        {
+          title: '#',
+          dataIndex: '',
+          key: 'rowIndex',
+          width: 60,
+          align: 'center',
+          customRender: function (t, r, index) {
+            return parseInt(index) + 1
           }
-        ],
-        url: {
-          list: '/eam/eamInspectionOrder/list',
-          cancelInspectionOrder: '/eam/eamInspectionOrder/cancelInspectionOrder',
-          deleteBatch: '/eam/eamInspectionOrder/deleteBatch',
-          exportXlsUrl: '/eam/eamInspectionOrder/exportXls',
-          importExcelUrl: 'eam/eamInspectionOrder/importExcel',
-          receiveInspectionOrder: 'eam/eamInspectionOrder/receiveInspectionOrder',
-          cancelOrReceive: 'eam/eamInspectionOrder/cancelOrReceive'
         },
-        dictOptions: {},
-        superFieldList: [],
-        selectInspectionOrderXqData: {}
-      }
+        {
+          title: '宸ュ崟鍙�',
+          align: 'center',
+          dataIndex: 'orderNum'
+        },
+        {
+          title: '璁惧缂栧彿',
+          align: 'center',
+          dataIndex: 'equipmentCode'
+        },
+        {
+          title: '璁惧鍚嶇О',
+          align: 'center',
+          dataIndex: 'equipmentName'
+        },
+        {
+          title: '鏍囧噯鍚嶇О',
+          align: 'center',
+          dataIndex: 'standardId_dictText'
+        },
+        {
+          title: '鐐规鏃ユ湡',
+          align: 'center',
+          dataIndex: 'inspectionDate',
+          customRender: function (text) {
+            return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
+          }
+        },
+        {
+          title: '鐐规杩囨湡鏃ユ湡',
+          align: 'center',
+          dataIndex: 'expirationTime',
+          customRender: function (text) {
+            return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
+          }
+        },
+        {
+          title: '鍒涘缓鏂瑰紡',
+          align: 'center',
+          dataIndex: 'creationMethod_dictText'
+        },
+        {
+          title: '鐐规鐘舵��',
+          align: 'center',
+          dataIndex: 'inspectionStatus_dictText'
+        },
+        {
+          title: '鐐规浜�',
+          align: 'center',
+          dataIndex: 'operator_dictText'
+        },
+        {
+          title: '鐐规鏃堕棿',
+          align: 'center',
+          dataIndex: 'operateTime',
+        },
+        {
+          title: '绠$悊鍛樼‘璁�',
+          align: 'center',
+          dataIndex: 'confirmUser_dictText'
+        },
+        {
+          title: '纭鏃堕棿',
+          align: 'center',
+          dataIndex: 'confirmTime',
+        },
+        {
+          title: '纭鎰忚',
+          align: 'center',
+          dataIndex: 'confirmComment',
+        }
+      ],
+      url: {
+        list: '/eam/eamInspectionOrder/list',
+        cancelInspectionOrder: '/eam/eamInspectionOrder/cancelInspectionOrder',
+        deleteBatch: '/eam/eamInspectionOrder/deleteBatch',
+        exportXlsUrl: '/eam/eamInspectionOrder/exportXls',
+        importExcelUrl: 'eam/eamInspectionOrder/importExcel',
+        receiveInspectionOrder: 'eam/eamInspectionOrder/receiveInspectionOrder',
+        cancelOrReceive: 'eam/eamInspectionOrder/cancelOrReceive'
+      },
+      dictOptions: {},
+      superFieldList: [],
+      selectInspectionOrderXqData: {}
+    }
+  },
+  created() {
+    if (!this.isDisplayOperation) {
+      return
+    }
+    const operationColumn = {
+      title: '鎿嶄綔',
+      dataIndex: 'action',
+      align: 'center',
+      fixed: 'right',
+      width: 200,
+      scopedSlots: { customRender: 'action' }
+    }
+    this.columns = [...this.columns, operationColumn]
+    this.loadData(1)
+  },
+  computed: {
+    importExcelUrl: function () {
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
+    }
+  },
+  methods: {
+    initDictConfig() {
     },
-    created() {
-      if (!this.isDisplayOperation) {
+    //璇︽儏
+    handleDetail: function (record) {
+      this.selectInspectionOrderXqData = Object.assign({}, record)
+      this.$refs.modalFormXq.visible = true
+      this.$refs.modalFormXq.title = '璇︽儏'
+      this.$refs.modalFormXq.disableSubmit = true
+      this.$refs.modalFormXq.getAllApproveData(record)
+      this.$refs.modalFormXq.getBasicInformation({ ...record, dataId: record.id })
+    },
+    handleInspection(id) {
+      if (!this.url.receiveInspectionOrder) {
+        this.$message.error('璇疯缃畊rl.receiveInspectionOrder!')
         return
       }
-      const operationColumn = {
-        title: '鎿嶄綔',
-        dataIndex: 'action',
-        align: 'center',
-        fixed: 'right',
-        width: 200,
-        scopedSlots: { customRender: 'action' }
-      }
-      this.columns = [...this.columns, operationColumn]
-      this.loadData(1)
+      var that = this
+      getAction(that.url.receiveInspectionOrder, { id: id }).then((res) => {
+        if (res.success) {
+          that.$notification.success({
+            message: '娑堟伅',
+            description: res.message
+          })
+          that.loadData()
+        } else {
+          // that.$message.warning(res.message);
+          that.$notification.warning({
+            message: '娑堟伅',
+            description: res.message
+          })
+        }
+      })
     },
-    computed: {
-      importExcelUrl: function() {
-        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
+    handleOrReceive(id) {
+      if (!this.url.cancelInspectionOrder) {
+        this.$message.error('璇疯缃畊rl.cancelInspectionOrder!')
+        return
       }
+      var that = this
+      getAction(that.url.cancelInspectionOrder, { id: id }).then((res) => {
+        if (res.success) {
+          that.$notification.success({
+            message: '娑堟伅',
+            description: res.message
+          })
+          that.loadData()
+        } else {
+          // that.$message.warning(res.message);
+          that.$notification.warning({
+            message: '娑堟伅',
+            description: res.message
+          })
+        }
+      })
     },
-    methods: {
-      initDictConfig() {
-      },
-      //璇︽儏
-      handleDetail: function(record) {
-        this.selectInspectionOrderXqData = Object.assign({}, record)
-        this.$refs.modalFormXq.visible = true
-        this.$refs.modalFormXq.title = '璇︽儏'
-        this.$refs.modalFormXq.disableSubmit = true
-        this.$refs.modalFormXq.getAllApproveData(record)
-        this.$refs.modalFormXq.getBasicInformation({ ...record, dataId: record.id })
-      },
-      handleInspection(id) {
-        if (!this.url.receiveInspectionOrder) {
-          this.$message.error('璇疯缃畊rl.receiveInspectionOrder!')
-          return
+    batchZf(type) {
+      if (this.selectedRowKeys.length <= 0) {
+        this.$notification.warning({
+          message: '娑堟伅',
+          description: '璇烽�夋嫨涓�鏉¤褰�'
+        })
+      } else {
+        var ids = ''
+        for (var a = 0; a < this.selectedRowKeys.length; a++) {
+          ids += this.selectedRowKeys[a] + ','
         }
         var that = this
-        getAction(that.url.receiveInspectionOrder, { id: id }).then((res) => {
-          if (res.success) {
-            that.$notification.success({
-              message: '娑堟伅',
-              description: res.message
-            })
-            that.loadData()
-          } else {
-            // that.$message.warning(res.message);
-            that.$notification.warning({
-              message: '娑堟伅',
-              description: res.message
+        this.$confirm({
+          title: '纭浣滃簾',
+          content: '鏄惁浣滃簾閫変腑鏁版嵁锛屽彧鏈夊緟鐐规鐘舵�佺殑鏁版嵁鎵嶅彲浣滃簾鎴愬姛?',
+          onOk: function () {
+            that.loading = true
+            getAction(that.url.cancelOrReceive, { ids: ids, type: type }).then((res) => {
+              if (res.success) {
+                that.$notification.success({
+                  message: '娑堟伅',
+                  description: res.message
+                })
+                that.loadData()
+                that.onClearSelected()
+              } else {
+                // that.$message.warning(res.message);
+                that.$notification.warning({
+                  message: '娑堟伅',
+                  description: res.message
+                })
+              }
+            }).finally(() => {
+              that.loading = false
             })
           }
         })
-      },
-      handleOrReceive(id) {
-        if (!this.url.cancelInspectionOrder) {
-          this.$message.error('璇疯缃畊rl.cancelInspectionOrder!')
-          return
+      }
+    },
+    batchLq(type) {
+      if (this.selectedRowKeys.length <= 0) {
+        this.$notification.warning({
+          message: '娑堟伅',
+          description: '璇烽�夋嫨涓�鏉¤褰�'
+        })
+      } else {
+        var ids = ''
+        for (var a = 0; a < this.selectedRowKeys.length; a++) {
+          ids += this.selectedRowKeys[a] + ','
         }
         var that = this
-        getAction(that.url.cancelInspectionOrder, { id: id }).then((res) => {
-          if (res.success) {
-            that.$notification.success({
-              message: '娑堟伅',
-              description: res.message
-            })
-            that.loadData()
-          } else {
-            // that.$message.warning(res.message);
-            that.$notification.warning({
-              message: '娑堟伅',
-              description: res.message
+        this.$confirm({
+          title: '纭棰嗗彇',
+          content: '鏄惁棰嗗彇閫変腑鏁版嵁锛屽彧鏈夊緟鐐规鐘舵�佺殑鏁版嵁鎵嶅彲棰嗗彇鎴愬姛?',
+          onOk: function () {
+            that.loading = true
+            getAction(that.url.cancelOrReceive, { ids: ids, type: type }).then((res) => {
+              if (res.success) {
+                that.$notification.success({
+                  message: '娑堟伅',
+                  description: res.message
+                })
+                that.loadData()
+                that.onClearSelected()
+              } else {
+                // that.$message.warning(res.message);
+                that.$notification.warning({
+                  message: '娑堟伅',
+                  description: res.message
+                })
+              }
+            }).finally(() => {
+              that.loading = false
             })
           }
         })
-      },
-      batchZf(type) {
-        if (this.selectedRowKeys.length <= 0) {
-          this.$notification.warning({
-            message: '娑堟伅',
-            description: '璇烽�夋嫨涓�鏉¤褰�'
-          })
-        } else {
-          var ids = ''
-          for (var a = 0; a < this.selectedRowKeys.length; a++) {
-            ids += this.selectedRowKeys[a] + ','
-          }
-          var that = this
-          this.$confirm({
-            title: '纭浣滃簾',
-            content: '鏄惁浣滃簾閫変腑鏁版嵁锛屽彧鏈夊緟鐐规鐘舵�佺殑鏁版嵁鎵嶅彲浣滃簾鎴愬姛?',
-            onOk: function() {
-              that.loading = true
-              getAction(that.url.cancelOrReceive, { ids: ids, type: type }).then((res) => {
-                if (res.success) {
-                  that.$notification.success({
-                    message: '娑堟伅',
-                    description: res.message
-                  })
-                  that.loadData()
-                  that.onClearSelected()
-                } else {
-                  // that.$message.warning(res.message);
-                  that.$notification.warning({
-                    message: '娑堟伅',
-                    description: res.message
-                  })
-                }
-              }).finally(() => {
-                that.loading = false
-              })
-            }
-          })
-        }
-      },
-      batchLq(type) {
-        if (this.selectedRowKeys.length <= 0) {
-          this.$notification.warning({
-            message: '娑堟伅',
-            description: '璇烽�夋嫨涓�鏉¤褰�'
-          })
-        } else {
-          var ids = ''
-          for (var a = 0; a < this.selectedRowKeys.length; a++) {
-            ids += this.selectedRowKeys[a] + ','
-          }
-          var that = this
-          this.$confirm({
-            title: '纭棰嗗彇',
-            content: '鏄惁棰嗗彇閫変腑鏁版嵁锛屽彧鏈夊緟鐐规鐘舵�佺殑鏁版嵁鎵嶅彲棰嗗彇鎴愬姛?',
-            onOk: function() {
-              that.loading = true
-              getAction(that.url.cancelOrReceive, { ids: ids, type: type }).then((res) => {
-                if (res.success) {
-                  that.$notification.success({
-                    message: '娑堟伅',
-                    description: res.message
-                  })
-                  that.loadData()
-                  that.onClearSelected()
-                } else {
-                  // that.$message.warning(res.message);
-                  that.$notification.warning({
-                    message: '娑堟伅',
-                    description: res.message
-                  })
-                }
-              }).finally(() => {
-                that.loading = false
-              })
-            }
-          })
-        }
-      },
-      onInspectionDateChange: function(value, dateString) {
-        this.queryParam.inspectionDateBegin = dateString[0]
-        this.queryParam.inspectionDateEnd = dateString[1]
-      },
-    }
+      }
+    },
+    onInspectionDateChange: function (value, dateString) {
+      this.queryParam.inspectionDateBegin = dateString[0]
+      this.queryParam.inspectionDateEnd = dateString[1]
+    },
+
+    handlePrint(record) {
+      let href = `${window._CONFIG['domianURL']}/jmreport/view/1094871242505912320?id=` + record.id + `&equipmentId=` + record.equipmentId + `&inspectionDate=` + record.inspectionDate; //缃戠珯閾炬帴
+      window.open(href, "_blank");
+    },
   }
+}
 </script>
 <style scoped>
-  @import '~@assets/less/common.less';
+@import '~@assets/less/common.less';
 </style>
\ No newline at end of file
diff --git a/src/views/eam/maintenance/EamSecondMaintenanceOrderList.vue b/src/views/eam/maintenance/EamSecondMaintenanceOrderList.vue
index 84f1970..fd98045 100644
--- a/src/views/eam/maintenance/EamSecondMaintenanceOrderList.vue
+++ b/src/views/eam/maintenance/EamSecondMaintenanceOrderList.vue
@@ -2,36 +2,91 @@
   <a-card :bordered="false">
 
     <!-- 鏌ヨ鍖哄煙 -->
-    <div class="table-page-search-wrapper" v-if="isDisplayOperation">
-      <a-form layout="inline" @keyup.enter.native="searchQuery">
+    <div
+      class="table-page-search-wrapper"
+      v-if="isDisplayOperation"
+    >
+      <a-form
+        layout="inline"
+        @keyup.enter.native="searchQuery"
+      >
         <a-row :gutter="24">
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="宸ュ崟鍙�">
-              <a-input placeholder="璇疯緭鍏ュ伐鍗曞彿" v-model="queryParam.orderNum"></a-input>
+              <a-input
+                placeholder="璇疯緭鍏ュ伐鍗曞彿"
+                v-model="queryParam.orderNum"
+              ></a-input>
             </a-form-item>
           </a-col>
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="璁惧缂栧彿">
-              <lx-search-equipment-select placeholder="璇疯緭鍏ヨ澶囩紪鍙锋垨鍚嶇О鎼滅储"
-                                          v-model="queryParam.equipmentId"></lx-search-equipment-select>
+              <lx-search-equipment-select
+                placeholder="璇疯緭鍏ヨ澶囩紪鍙锋垨鍚嶇О鎼滅储"
+                v-model="queryParam.equipmentId"
+              ></lx-search-equipment-select>
             </a-form-item>
           </a-col>
-          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="6"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="璁″垝淇濆吇鏃ユ湡">
-              <a-range-picker v-model="queryParam.maintenanceDateRange" @change="onMaintenanceDateChange"
-                              format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
+              <a-range-picker
+                v-model="queryParam.maintenanceDateRange"
+                @change="onMaintenanceDateChange"
+                format="YYYY-MM-DD"
+                value-format="YYYY-MM-DD"
+              />
             </a-form-item>
           </a-col>
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="淇濆吇鐘舵��">
-              <j-dict-select-tag placeholder="璇烽�夋嫨淇濆吇鐘舵��" dict-code="second_maintenance_status"
-                                 v-model="queryParam.maintenanceStatus" />
+              <j-dict-select-tag
+                placeholder="璇烽�夋嫨淇濆吇鐘舵��"
+                dict-code="second_maintenance_status"
+                v-model="queryParam.maintenanceStatus"
+              />
             </a-form-item>
           </a-col>
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
-            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
-              <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
-              <a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
+            <span
+              style="float: left;overflow: hidden;"
+              class="table-page-search-submitButtons"
+            >
+              <a-button
+                type="primary"
+                @click="searchQuery"
+                icon="search"
+              >鏌ヨ</a-button>
+              <a-button
+                type="info"
+                @click="searchReset"
+                icon="reload"
+                style="margin-left: 8px"
+              >閲嶇疆</a-button>
             </span>
           </a-col>
 
@@ -40,16 +95,32 @@
     </div>
 
     <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
-    <div class="table-operator" v-if="isDisplayOperation">
-      <a-button @click="handleAdd" type="primary" icon="plus" v-if="isShowAuth('eam:secondMaintenance:add')">鏂板
+    <div
+      class="table-operator"
+      v-if="isDisplayOperation"
+    >
+      <a-button
+        @click="handleAdd"
+        type="primary"
+        icon="plus"
+        v-if="isShowAuth('eam:secondMaintenance:add')"
+      >鏂板
       </a-button>
       <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">
-          <a-menu-item key="1" @click="handlerBatchAbolish" v-if="isShowAuth('eam:secondMaintenance:abolish')">
+          <a-menu-item
+            key="1"
+            @click="handlerBatchAbolish"
+            v-if="isShowAuth('eam:secondMaintenance:abolish')"
+          >
             <a-icon type="delete" />
             浣滃簾
           </a-menu-item>
-          <a-menu-item key="2" @click="handlerBatchCollect" v-if="isShowAuth('eam:secondMaintenance:collect')">
+          <a-menu-item
+            key="2"
+            @click="handlerBatchCollect"
+            v-if="isShowAuth('eam:secondMaintenance:collect')"
+          >
             <a-icon type="form" />
             棰嗗彇
           </a-menu-item>
@@ -62,10 +133,16 @@
 
     <!-- table鍖哄煙-begin -->
     <div>
-      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;" v-if="isDisplayOperation">
-        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a
-        style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
-        <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a>
+      <div
+        class="ant-alert ant-alert-info"
+        style="margin-bottom: 16px;"
+        v-if="isDisplayOperation"
+      >
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
+        <a
+          style="margin-left: 24px"
+          @click="onClearSelected"
+        >娓呯┖</a>
       </div>
 
       <a-table
@@ -80,38 +157,61 @@
         class="j-table-force-nowrap"
         :scroll="{x:'max-content'}"
         :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
-        @change="handleTableChange">
+        @change="handleTableChange"
+      >
 
-        <span slot="action" slot-scope="text, record">
+        <span
+          slot="action"
+          slot-scope="text, record"
+        >
           <template v-if="record.maintenanceStatus === 'WAIT_MAINTENANCE'">
-          <a @click="handleEdit(record)" v-if="isShowAuth('eam:secondMaintenance:edit')">缂栬緫</a>
+            <a
+              @click="handleEdit(record)"
+              v-if="isShowAuth('eam:secondMaintenance:edit')"
+            >缂栬緫</a>
 
-          <a-divider type="vertical" v-if="isShowAuth('eam:secondMaintenance:edit')" />
+            <a-divider
+              type="vertical"
+              v-if="isShowAuth('eam:secondMaintenance:edit')"
+            />
 
-          <a-popconfirm title="纭畾棰嗗彇鍚�?" @confirm="() => handlerCollect(record.id)" v-if="isShowAuth('eam:secondMaintenance:collect')">
-            <a>棰嗗彇</a>
-          </a-popconfirm>
+            <a-popconfirm
+              title="纭畾棰嗗彇鍚�?"
+              @confirm="() => handlerCollect(record.id)"
+              v-if="isShowAuth('eam:secondMaintenance:collect')"
+            >
+              <a>棰嗗彇</a>
+            </a-popconfirm>
 
-          <a-divider type="vertical" v-if="isShowAuth('eam:secondMaintenance:collect')" />
+            <a-divider
+              type="vertical"
+              v-if="isShowAuth('eam:secondMaintenance:collect')"
+            />
 
-          <a-dropdown>
-            <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
-            <a-menu slot="overlay">
-              <a-menu-item v-if="isShowAuth('eam:secondMaintenance:abolish')">
-                <a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handlerAbolish(record.id)" >
-                  <a>浣滃簾</a>
-                </a-popconfirm>
-              </a-menu-item>
-              <a-menu-item>
-                <a @click="handleDetail(record)">璇︽儏</a>
-              </a-menu-item>
-            </a-menu>
-          </a-dropdown>
+            <a-dropdown>
+              <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
+              <a-menu slot="overlay">
+                <a-menu-item v-if="isShowAuth('eam:secondMaintenance:abolish')">
+                  <a-popconfirm
+                    title="纭畾浣滃簾鍚�?"
+                    @confirm="() => handlerAbolish(record.id)"
+                  >
+                    <a>浣滃簾</a>
+                  </a-popconfirm>
+                </a-menu-item>
+                <a-menu-item>
+                  <a @click="handleDetail(record)">璇︽儏</a>
+                </a-menu-item>
+              </a-menu>
+            </a-dropdown>
           </template>
 
           <template v-else>
-              <a @click="handleDetail(record)">璇︽儏</a>
+            <a @click="handleDetail(record)">璇︽儏</a>
+            <a-divider type="vertical" />
+            <a @click="handlePrint(record)">鎵撳嵃</a>
           </template>
+
         </span>
 
       </a-table>
@@ -119,9 +219,15 @@
     <!-- table鍖哄煙-end -->
 
     <!-- 琛ㄥ崟鍖哄煙 -->
-    <eamSecondMaintenanceOrder-modal ref="modalForm" @ok="modalFormOk"></eamSecondMaintenanceOrder-modal>
+    <eamSecondMaintenanceOrder-modal
+      ref="modalForm"
+      @ok="modalFormOk"
+    ></eamSecondMaintenanceOrder-modal>
 
-    <second-maintenance-approval-modal ref="secondMaintenanceApprovalModal" :selectShenpiData="selectSecondMaintenanceData" />
+    <second-maintenance-approval-modal
+      ref="secondMaintenanceApprovalModal"
+      :selectShenpiData="selectSecondMaintenanceData"
+    />
   </a-card>
 </template>
 
@@ -161,7 +267,7 @@
           width: 60,
           align: 'center',
           fixed: 'left',
-          customRender: function(t, r, index) {
+          customRender: function (t, r, index) {
             return parseInt(index) + 1
           }
         },
@@ -289,7 +395,7 @@
   },
   computed: {},
   methods: {
-    onMaintenanceDateChange: function(value, dateString) {
+    onMaintenanceDateChange: function (value, dateString) {
       if (dateString && dateString.length === 2) {
         this.queryParam.maintenanceDateBegin = dateString[0]
         this.queryParam.maintenanceDateEnd = dateString[1]
@@ -344,7 +450,7 @@
         this.$confirm({
           title: '纭浣滃簾',
           content: '鏄惁浣滃簾閫変腑鏁版嵁锛屽彧鏈夊緟淇濆吇鐘舵�佺殑鏁版嵁鎵嶅彲浣滃簾鎴愬姛?',
-          onOk: function() {
+          onOk: function () {
             that.loading = true
             deleteAction(that.url.abolishBatch, { ids: ids }).then((res) => {
               if (res.success) {
@@ -419,7 +525,7 @@
         this.$confirm({
           title: '纭棰嗗彇',
           content: '鏄惁棰嗗彇閫変腑鏁版嵁锛屽彧鏈夊緟淇濆吇鐘舵�佺殑鏁版嵁鎵嶅彲棰嗗彇鎴愬姛?',
-          onOk: function() {
+          onOk: function () {
             that.loading = true
             deleteAction(that.url.collectBatch, { ids: ids }).then((res) => {
               if (res.success) {
@@ -451,7 +557,13 @@
       this.$refs.secondMaintenanceApprovalModal.recordDetail(record)
       this.$refs.secondMaintenanceApprovalModal.title = '璇︽儏'
       this.$refs.secondMaintenanceApprovalModal.disableSubmit = true
-    }
+    },
+
+    handlePrint(record) {
+      // let href = `${window._CONFIG['domianURL']}/jmreport/view/1094871242505912320`; //缃戠珯閾炬帴
+      let href = `${window._CONFIG['domianURL']}/jmreport/view/1094834721929232384?id=` + record.id; //缃戠珯閾炬帴
+      window.open(href, "_blank");
+    },
   }
 }
 </script>
diff --git a/src/views/eam/maintenance/EamThirdMaintenanceOrderList.vue b/src/views/eam/maintenance/EamThirdMaintenanceOrderList.vue
index e3cd159..2b65b8a 100644
--- a/src/views/eam/maintenance/EamThirdMaintenanceOrderList.vue
+++ b/src/views/eam/maintenance/EamThirdMaintenanceOrderList.vue
@@ -2,36 +2,91 @@
   <a-card :bordered="false">
 
     <!-- 鏌ヨ鍖哄煙 -->
-    <div class="table-page-search-wrapper" v-if="isDisplayOperation">
-      <a-form layout="inline" @keyup.enter.native="searchQuery">
+    <div
+      class="table-page-search-wrapper"
+      v-if="isDisplayOperation"
+    >
+      <a-form
+        layout="inline"
+        @keyup.enter.native="searchQuery"
+      >
         <a-row :gutter="24">
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="宸ュ崟鍙�">
-              <a-input placeholder="璇疯緭鍏ュ伐鍗曞彿" v-model="queryParam.orderNum"></a-input>
+              <a-input
+                placeholder="璇疯緭鍏ュ伐鍗曞彿"
+                v-model="queryParam.orderNum"
+              ></a-input>
             </a-form-item>
           </a-col>
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="璁惧缂栧彿">
-              <lx-search-equipment-select placeholder="璇疯緭鍏ヨ澶囩紪鍙锋垨鍚嶇О鎼滅储"
-                                          v-model="queryParam.equipmentId"></lx-search-equipment-select>
+              <lx-search-equipment-select
+                placeholder="璇疯緭鍏ヨ澶囩紪鍙锋垨鍚嶇О鎼滅储"
+                v-model="queryParam.equipmentId"
+              ></lx-search-equipment-select>
             </a-form-item>
           </a-col>
-          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="6"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="璁″垝淇濆吇鏃ユ湡">
-              <a-range-picker v-model="queryParam.maintenanceDateRange" @change="onMaintenanceDateChange"
-                              format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
+              <a-range-picker
+                v-model="queryParam.maintenanceDateRange"
+                @change="onMaintenanceDateChange"
+                format="YYYY-MM-DD"
+                value-format="YYYY-MM-DD"
+              />
             </a-form-item>
           </a-col>
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
             <a-form-item label="淇濆吇鐘舵��">
-              <j-dict-select-tag placeholder="璇烽�夋嫨淇濆吇鐘舵��" dict-code="second_maintenance_status"
-                                 v-model="queryParam.maintenanceStatus" />
+              <j-dict-select-tag
+                placeholder="璇烽�夋嫨淇濆吇鐘舵��"
+                dict-code="second_maintenance_status"
+                v-model="queryParam.maintenanceStatus"
+              />
             </a-form-item>
           </a-col>
-          <a-col :xl="4" :lg="7" :md="8" :sm="24">
-            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
-              <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
-              <a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+          <a-col
+            :xl="4"
+            :lg="7"
+            :md="8"
+            :sm="24"
+          >
+            <span
+              style="float: left;overflow: hidden;"
+              class="table-page-search-submitButtons"
+            >
+              <a-button
+                type="primary"
+                @click="searchQuery"
+                icon="search"
+              >鏌ヨ</a-button>
+              <a-button
+                type="info"
+                @click="searchReset"
+                icon="reload"
+                style="margin-left: 8px"
+              >閲嶇疆</a-button>
             </span>
           </a-col>
 
@@ -40,16 +95,32 @@
     </div>
 
     <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
-    <div class="table-operator" v-if="isDisplayOperation">
-      <a-button @click="handleAdd" type="primary" icon="plus" v-if="isShowAuth('eam:secondMaintenance:add')">鏂板
+    <div
+      class="table-operator"
+      v-if="isDisplayOperation"
+    >
+      <a-button
+        @click="handleAdd"
+        type="primary"
+        icon="plus"
+        v-if="isShowAuth('eam:secondMaintenance:add')"
+      >鏂板
       </a-button>
       <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">
-          <a-menu-item key="1" @click="handlerBatchAbolish" v-if="isShowAuth('eam:secondMaintenance:abolish')">
+          <a-menu-item
+            key="1"
+            @click="handlerBatchAbolish"
+            v-if="isShowAuth('eam:secondMaintenance:abolish')"
+          >
             <a-icon type="delete" />
             浣滃簾
           </a-menu-item>
-          <a-menu-item key="2" @click="handlerBatchCollect" v-if="isShowAuth('eam:secondMaintenance:collect')">
+          <a-menu-item
+            key="2"
+            @click="handlerBatchCollect"
+            v-if="isShowAuth('eam:secondMaintenance:collect')"
+          >
             <a-icon type="form" />
             棰嗗彇
           </a-menu-item>
@@ -62,10 +133,16 @@
 
     <!-- table鍖哄煙-begin -->
     <div>
-      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;" v-if="isDisplayOperation">
-        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a
-        style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
-        <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a>
+      <div
+        class="ant-alert ant-alert-info"
+        style="margin-bottom: 16px;"
+        v-if="isDisplayOperation"
+      >
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
+        <a
+          style="margin-left: 24px"
+          @click="onClearSelected"
+        >娓呯┖</a>
       </div>
 
       <a-table
@@ -80,38 +157,67 @@
         class="j-table-force-nowrap"
         :scroll="{x:'max-content'}"
         :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
-        @change="handleTableChange">
+        @change="handleTableChange"
+      >
 
-        <span slot="action" slot-scope="text, record">
+        <span
+          slot="action"
+          slot-scope="text, record"
+        >
           <template v-if="record.maintenanceStatus === 'WAIT_MAINTENANCE'">
-          <a @click="handleEdit(record)" v-if="isShowAuth('eam:thirdMaintenance:edit')">缂栬緫</a>
+            <a
+              @click="handleEdit(record)"
+              v-if="isShowAuth('eam:thirdMaintenance:edit')"
+            >缂栬緫</a>
 
-          <a-divider type="vertical" v-if="isShowAuth('eam:thirdMaintenance:edit')" />
+            <a-divider
+              type="vertical"
+              v-if="isShowAuth('eam:thirdMaintenance:edit')"
+            />
 
-          <a-popconfirm title="纭畾棰嗗彇鍚�?" @confirm="() => handlerCollect(record.id)" v-if="isShowAuth('eam:thirdMaintenance:collect')">
-            <a>棰嗗彇</a>
-          </a-popconfirm>
+            <a-popconfirm
+              title="纭畾棰嗗彇鍚�?"
+              @confirm="() => handlerCollect(record.id)"
+              v-if="isShowAuth('eam:thirdMaintenance:collect')"
+            >
+              <a>棰嗗彇</a>
+            </a-popconfirm>
 
-          <a-divider type="vertical" v-if="isShowAuth('eam:thirdMaintenance:collect')" />
+            <a-divider
+              type="vertical"
+              v-if="isShowAuth('eam:thirdMaintenance:collect')"
+            />
 
-          <a-dropdown>
-            <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
-            <a-menu slot="overlay">
-              <a-menu-item v-if="isShowAuth('eam:thirdMaintenance:abolish')">
-                <a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handlerAbolish(record.id)">
-                  <a>浣滃簾</a>
-                </a-popconfirm>
-              </a-menu-item>
-              <a-menu-item>
-                <a @click="handleDetail(record)">璇︽儏</a>
-              </a-menu-item>
-            </a-menu>
-          </a-dropdown>
+            <a-dropdown>
+              <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
+              <a-menu slot="overlay">
+                <a-menu-item v-if="isShowAuth('eam:thirdMaintenance:abolish')">
+                  <a-popconfirm
+                    title="纭畾浣滃簾鍚�?"
+                    @confirm="() => handlerAbolish(record.id)"
+                  >
+                    <a>浣滃簾</a>
+                  </a-popconfirm>
+                </a-menu-item>
+                <a-menu-item>
+                  <a @click="handleDetail(record)">璇︽儏</a>
+                </a-menu-item>
+              </a-menu>
+            </a-dropdown>
           </template>
 
           <template v-else>
-              <a @click="handleDetail(record)">璇︽儏</a>
+            <a @click="handleDetail(record)">璇︽儏</a>
           </template>
+
+          <a-divider
+            v-if="record.maintenanceStatus === 'COMPLETE'"
+            type="vertical"
+          />
+          <a
+            v-if="record.maintenanceStatus === 'COMPLETE'"
+            @click="handlePrint(record)"
+          >鎵撳嵃</a>
         </span>
 
       </a-table>
@@ -119,9 +225,15 @@
     <!-- table鍖哄煙-end -->
 
     <!-- 琛ㄥ崟鍖哄煙 -->
-    <eamThirdMaintenanceOrder-modal ref="modalForm" @ok="modalFormOk"></eamThirdMaintenanceOrder-modal>
+    <eamThirdMaintenanceOrder-modal
+      ref="modalForm"
+      @ok="modalFormOk"
+    ></eamThirdMaintenanceOrder-modal>
 
-    <third-maintenance-approval-modal ref="thirdMaintenanceApprovalModal" :selectShenpiData="selectThirdMaintenanceData" />
+    <third-maintenance-approval-modal
+      ref="thirdMaintenanceApprovalModal"
+      :selectShenpiData="selectThirdMaintenanceData"
+    />
   </a-card>
 </template>
 
@@ -161,7 +273,7 @@
           width: 60,
           align: 'center',
           fixed: 'left',
-          customRender: function(t, r, index) {
+          customRender: function (t, r, index) {
             return parseInt(index) + 1
           }
         },
@@ -299,7 +411,7 @@
   },
   computed: {},
   methods: {
-    onMaintenanceDateChange: function(value, dateString) {
+    onMaintenanceDateChange: function (value, dateString) {
       if (dateString && dateString.length === 2) {
         this.queryParam.maintenanceDateBegin = dateString[0]
         this.queryParam.maintenanceDateEnd = dateString[1]
@@ -354,7 +466,7 @@
         this.$confirm({
           title: '纭浣滃簾',
           content: '鏄惁浣滃簾閫変腑鏁版嵁锛屽彧鏈夊緟淇濆吇鐘舵�佺殑鏁版嵁鎵嶅彲浣滃簾鎴愬姛?',
-          onOk: function() {
+          onOk: function () {
             that.loading = true
             deleteAction(that.url.abolishBatch, { ids: ids }).then((res) => {
               if (res.success) {
@@ -429,7 +541,7 @@
         this.$confirm({
           title: '纭棰嗗彇',
           content: '鏄惁棰嗗彇閫変腑鏁版嵁锛屽彧鏈夊緟淇濆吇鐘舵�佺殑鏁版嵁鎵嶅彲棰嗗彇鎴愬姛?',
-          onOk: function() {
+          onOk: function () {
             that.loading = true
             deleteAction(that.url.collectBatch, { ids: ids }).then((res) => {
               if (res.success) {
@@ -461,7 +573,13 @@
       this.$refs.thirdMaintenanceApprovalModal.recordDetail(record)
       this.$refs.thirdMaintenanceApprovalModal.title = '璇︽儏'
       this.$refs.thirdMaintenanceApprovalModal.disableSubmit = true
-    }
+    },
+
+    handlePrint(record) {
+      let href = `${window._CONFIG['domianURL']}/jmreport/view/1094880052100399104?id=` + record.id;
+      //  + `&orderId=` + record.id; //缃戠珯閾炬帴
+      window.open(href, "_blank");
+    },
   }
 }
 </script>

--
Gitblit v1.9.3