<template>
  <div>
    <a-table
      ref="table"
      size="middle"
      :scroll="{x:true}"
      bordered
      rowKey="id"
      :columns="columns"
      :dataSource="dataSource"
      :pagination="ipagination"
      :loading="loading"
      class="j-table-force-nowrap"
      @change="handleTableChange">
    </a-table>
  </div>
</template>

<script>

  import '@/assets/less/TableExpand.less'
  import { mixinDevice } from '@/utils/mixin'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'

  export default {
    name: 'InspectItemList',
    mixins:[JeecgListMixin, mixinDevice],
    props: {
      id: {
        type: String,
        default: ''
      }
    },
    data () {
      return {
        // 表头
        columns: [
          // {
          //   title: '序号',
          //   dataIndex: '',
          //   key:'rowIndex',
          //   width:60,
          //   align:"center",
          //   customRender:function (t,r,index) {
          //     return parseInt(index)+1;
          //   }
          // },
          {
            title:'送检编号',
            align:"center",
            dataIndex: 'sjcode',
            scopedSlots: { customRender: 'sjcode' }
          },
          {
            title:'送检负责人',
            align:"center",
            dataIndex: 'verificatePerson_dictText'
          },
          {
            title:'检定方式',
            align:"center",
            dataIndex: 'verificateMethod_dictText'
          },
          {
            title:'检定单位',
            align:"center",
            dataIndex: 'verificateClientId_dictText'
          },
          {
            title:'送检设备数量',
            align:"center",
            dataIndex: 'totalNum'
          },
          {
            title:'返回设备数量',
            align:"center",
            dataIndex: 'returnNum'
          },
          {
            title:'备注',
            align:"center",
            dataIndex: 'remark'
          },
          {
            title:'送检工单状态',
            align:"center",
            dataIndex: 'submissionGdstatus_dictText',
            scopedSlots: { customRender: 'submissionGdstatus_dictText' }
          },
        ],
        url: {
          list: "/cmmsSubmissionEquipment/cmmsSubmissionEquipment/jclistByEquipmentId",
          // equipmentId
          // delete: "/cmmsInspectItem/cmmsInspectItem/delete",
          // deleteBatch: "/cmmsInspectItem/cmmsInspectItem/deleteBatch",
          // exportXlsUrl: "/cmmsInspectItem/cmmsInspectItem/exportXls",
          // importExcelUrl: "cmmsInspectItem/cmmsInspectItem/importExcel",
        },
        dictOptions:{},
        superFieldList:[],
      }
    },
    created() {
      this.queryParam.equipmentId = this.id
    },
    computed: {
    },
    methods: {
      initDictConfig(){
      },
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less';
</style>