zhaowei
5 天以前 1451e36b1767a4d7883e80078b371b6273e9eb41
src/views/eam/maintenance/EamThirdMaintenanceChangeList.vue
@@ -41,7 +41,7 @@
             :pagination="ipagination" :loading="loading" :scroll="{x:'max-content'}"
             @change="handleTableChange">
        <span slot="action" slot-scope="text, record">
          <tamplate v-if="record.changeStatus=='WAIT_SUBMIT'">
          <template v-if="record.changeStatus=='WAIT_SUBMIT'">
            <a @click="handleEdit(record)">编辑</a>
            <a-divider type="vertical"/>
@@ -55,41 +55,38 @@
            <a-popconfirm title="确定作废吗?" @confirm="handleAbolish(record.id)">
              <a>作废</a>
            </a-popconfirm>
          </tamplate>
          </template>
          <a @click="handleDetail(record)" v-if="record.changeStatus!='WAIT_SUBMIT'&&record.changeStatus!='ABOLISH'">详情</a>
          <a @click="handleDetail(record)"
             v-if="record.changeStatus!='WAIT_SUBMIT'&&record.changeStatus!='ABOLISH'">详情</a>
        </span>
    </a-table>
    <!-- table区域-end -->
    <!-- 表单区域 -->
    <eam-third-maintenance-change-modal ref="orderChangeModal" @ok="modalFormOk"/>
    <eam-third-maintenance-change-modal ref="modalForm" @ok="modalFormOk"/>
    <!--变更流程表单-->
<!--    <third-maintenance-approval-modal ref="thirdMaintenanceApprovalModal"-->
<!--                                      :selectShenpiData="selectThirdMaintenanceData"/>-->
    <!--审批窗口-->
    <third-maintenance-order-change-approval-modal ref="thirdMaintenanceOrderChangeApprovalModal"
                                                   :selectShenpiData="selectedRowData"/>
  </a-card>
</template>
<script>
  // import EamThirdMaintenanceOrderModal from './modules/EamThirdMaintenanceOrderModal'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue'
  import { deleteAction, getAction } from '@api/manage'
  // import ThirdMaintenanceApprovalModal
  //   from '@views/flowable/workflow/thirdMaintenance/ThirdMaintenanceApprovalModal.vue'
  import EamThirdMaintenanceChangeModal
    from '@views/eam/technical/modules/EamThirdMaintenanceChangeModal.vue'
  import EamThirdMaintenanceChangeModal from './modules/EamThirdMaintenanceChangeModal.vue'
  import ThirdMaintenanceOrderChangeApprovalModal
    from '../../flowable/workflow/thirdMaintenance/ThirdMaintenanceOrderChangeApprovalModal'
  export default {
    name: 'EamThirdMaintenanceChangeList',
    mixins: [JeecgListMixin],
    components: {
      ThirdMaintenanceOrderChangeApprovalModal,
      EamThirdMaintenanceChangeModal,
      LxSearchEquipmentSelect,
      // EamThirdMaintenanceOrderModal,
      // ThirdMaintenanceApprovalModal
      LxSearchEquipmentSelect
    },
    props: {
      isDisplayOperation: {
@@ -101,7 +98,7 @@
      return {
        description: '设备三级保养变更页面',
        disableMixinCreated: true,
        selectThirdMaintenanceData: {},
        selectedRowData: {},
        // 表头
        columns: [
          {
@@ -134,9 +131,15 @@
            fixed: 'left'
          },
          {
            title: '变更状态',
            align: 'center',
            dataIndex: 'changeStatus_dictText',
            fixed: 'left'
          },
          {
            title: '工单号',
            align: 'center',
            dataIndex: 'orderNum_dictText'
            dataIndex: 'orderId_dictText'
          },
          {
            title: '变更单号',
@@ -162,11 +165,6 @@
            title: '申请类型',
            align: 'center',
            dataIndex: 'applyCategory_dictText'
          },
          {
            title: '变更状态',
            align: 'center',
            dataIndex: 'changeStatus_dictText'
          },
          {
            title: '变更原因类型',
@@ -221,8 +219,8 @@
        ],
        url: {
          list: '/eam/eamThirdMaintenanceChange/list',
          abolish: '/eam/eamThirdMaintenanceChange/abolish',
          collect: '/eam/eamThirdMaintenanceChange/collect'
          submit: '/eam/eamThirdMaintenanceChange/submit',
          abolish: '/eam/eamThirdMaintenanceChange/abolish'
        }
      }
    },
@@ -234,13 +232,13 @@
        title: '操作',
        dataIndex: 'action',
        align: 'center',
        width: 200,
        fixed: 'right',
        scopedSlots: { customRender: 'action' }
      }
      this.columns = [...this.columns, operationColumn]
      this.loadData(1)
    },
    computed: {},
    methods: {
      /**
       * 提交时触发
@@ -257,12 +255,12 @@
                description: res.message
              })
              that.loadData()
              that.loading = false
            } else {
              that.$notification.warning({
                message: '消息',
                description: res.message
              })
              that.loading = false
            }
          })
      },
@@ -292,17 +290,17 @@
          })
      },
      // /**
      //  * 点击详情时触发
      //  * @param record
      //  */
      // handleDetail(record) {
      //   this.selectThirdMaintenanceData = Object.assign({}, record)
      //   this.$refs.thirdMaintenanceApprovalModal.title = '详情'
      //   this.$refs.thirdMaintenanceApprovalModal.visible = true
      //   this.$refs.thirdMaintenanceApprovalModal.disableSubmit = true
      //   this.$refs.thirdMaintenanceApprovalModal.recordDetail(record)
      // },
      /**
       * 点击详情时触发
       * @param record
       */
      handleDetail(record) {
        this.selectedRowData = Object.assign({}, record)
        this.$refs.thirdMaintenanceOrderChangeApprovalModal.title = '详情'
        this.$refs.thirdMaintenanceOrderChangeApprovalModal.visible = true
        this.$refs.thirdMaintenanceOrderChangeApprovalModal.disableSubmit = true
        this.$refs.thirdMaintenanceOrderChangeApprovalModal.handleDetail(record)
      },
      /**
       * 申请时间发生改变时触发