src/views/eam/repair/EamRepairOrderList.vue
@@ -35,6 +35,7 @@
    <!-- 操作按钮区域 -->
    <div class="table-operator" v-if="isDisplayOperation">
      <a-button type="primary" icon="download" @click="handleExportXls('维修工单台账')">导出</a-button>
      <a-dropdown :disabled="selectedRowKeys.length == 0">
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="handleBatchSubmit">
@@ -62,9 +63,12 @@
               :scroll="{x:'max-content'}">
        <span slot="action" slot-scope="text, record">
          <template v-if="record.repairStatus=='PENDING_REPAIR'||record.repairStatus=='UNDER_MAINTENANCE' ||record.repairStatus=='REJECTED'">
             <a @click="handleFillIn(record)">填报</a>
             <a-divider type="vertical"/>
             <a-popconfirm title="确定提交吗?" @confirm="() => handleSubmit(record.id)">
            <a-popconfirm v-if="record.claimStatus=='0' || record.claimStatus==null " title="确定提交吗?" @confirm="() => handleClaim(record.id)">
               <a>领取</a>
             </a-popconfirm>
             <a v-if="record.claimStatus=='1'"  @click="handleFillIn(record)">维修</a>
             <a-divider v-if="record.claimStatus=='1'"  type="vertical"/>
             <a-popconfirm v-if="record.claimStatus=='1'" title="确定提交吗?" @confirm="() => handleSubmit(record.id)">
               <a>提交</a>
             </a-popconfirm>
          </template>
@@ -163,6 +167,12 @@
            fixed: 'left'
          },
          {
            title: '领取状态',
            align: 'center',
            dataIndex: 'claimStatus_dictText',
            fixed: 'left'
          },
          {
            title: '工单号',
            align: 'center',
            dataIndex: 'repairCode',
@@ -187,6 +197,18 @@
            title: '维修结束时间',
            align: 'center',
            dataIndex: 'actualEndTime',
            width: 200
          },
          {
            title: '维修时长',
            align: 'center',
            dataIndex: 'repairDuration',
            width: 200
          },
          {
            title: '故障时长',
            align: 'center',
            dataIndex: 'faultDuration',
            width: 200
          },
          {
@@ -246,8 +268,10 @@
        url: {
          list: '/eam/eamRepairOrder/list',
          submit: '/eam/eamRepairOrder/submit',
          claim: '/eam/eamRepairOrder/claim',
          delete: '/eam/eamRepairOrder/delete',
          deleteBatch: '/eam/eamRepairOrder/deleteBatch'
          deleteBatch: '/eam/eamRepairOrder/deleteBatch',
          exportXlsUrl: "eam/eamRepairOrder/exportXls",
        }
      }
    },
@@ -300,6 +324,29 @@
          })
      },
      /**
       * 点击领取时触发
       * @param id
       */
      handleClaim(id){
        this.loading = true
        getAction(this.url.claim, { id })
          .then(res => {
            if (res.success) {
              this.$notification.success({
                message: '消息',
                description: res.message
              })
              this.loadData()
            } else {
              this.$notification.warning({
                message: '消息',
                description: res.message
              })
              this.loading = false
            }
          })
      },
      // 批量提交时触发
      handleBatchSubmit() {