wupengfei
8 天以前 f37c78b6412db783615f8b38f0487c57136c4ed8
src/views/EnterpriseInfo/components/EnterpriseDeclareRecordView.vue
@@ -10,7 +10,8 @@
<script setup lang="ts">
import { AppContainer, useTable, ProTableV2, defineOperationBtns } from '@bole-core/components';
import { OrderInputType } from '@bole-core/core';
import * as informationServices from '@/services/api/Information';
import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
import { BountyCheckStatusEnumText } from '@/constants';
defineOptions({
  name: 'EnterpriseDeclareRecordView',
@@ -19,33 +20,23 @@
const column: API.CustomModuleColumnDto[] = [
  {
    id: '1',
    enCode: 'batchBillNo',
    enCode: 'batchNo',
    name: '申报批次号',
  },
  {
    id: '2',
    enCode: 'changeType',
    enCode: 'creationTime',
    name: '申报日期',
  },
  {
    id: '3',
    enCode: 'creationTime',
    name: '内部审核日期',
    enCode: 'outCheckTime',
    name: '审核日期',
  },
  {
    id: '4',
    enCode: 'effectTime',
    name: '内部审核结果',
  },
  {
    id: '5',
    enCode: 'insurePersonNumber',
    name: '外部审核日期',
  },
  {
    id: '6',
    enCode: 'orginInsurePersonNumber',
    name: '外部审核结果',
    enCode: 'outCheckStatus',
    name: '审核结果',
  },
];
@@ -79,14 +70,15 @@
} = useTable(
  async ({ pageIndex, pageSize }, extraParamState) => {
    try {
      let params: API.GetInformationForManageInput = {
      let params: API.QueryParkCustomerBountyApplyInput = {
        pageModel: {
          rows: pageSize,
          page: pageIndex,
          orderInput: extraParamState.orderInput,
        },
        id: id,
      };
      let res = await informationServices.getInformationForManage(params, {
      let res = await parkBountyApplyServices.getParkCustomerBountyApplyList(params, {
        showLoading: !state.loading,
      });
      return res;
@@ -94,14 +86,22 @@
  },
  {
    defaultExtraParams: {
      orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }],
      orderInput: [{ property: 'id', order: OrderInputType.Desc }],
    },
    columnsRenderProps: {
      outCheckTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' },
      creationTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' },
      outCheckStatus: { type: 'enum', valueEnum: BountyCheckStatusEnumText },
    },
  }
);
async function goDetail(row: API.InsureBatchBillDto) {
async function goDetail(row: API.GetParkCustomerBountyApplyOutput) {
  router.push({
    name: '',
    name: 'MaterialReviewDetail',
    params: {
      id: row.id,
    },
  });
}