wupengfei
2025-04-17 404a6138ba3594a66d1b66e2bc79b9b3132836c5
src/views/EnterpriseInfo/components/RewardGrantRecordView.vue
@@ -2,13 +2,27 @@
  <LoadingLayout :loading="state.loading">
    <AppContainer>
      <ProTableV2 v-bind="proTableProps" :columns="column" :operationBtns="operationBtns">
        <template #operationBtn-checkBtn="{ data, row }">
          <PreviewBtnV2
            class="pro-table-operation-btn"
            :url="convertApi2FormUrlBySeparator(row.transferToFileUrl ?? '')"
            preview-btn-text="查看凭证"
          />
        </template>
      </ProTableV2>
    </AppContainer>
  </LoadingLayout>
</template>
<script setup lang="ts">
import { AppContainer, useTable, ProTableV2, defineOperationBtns } from '@bole-core/components';
import {
  AppContainer,
  useTable,
  ProTableV2,
  defineOperationBtns,
  PreviewBtnV2,
} from '@bole-core/components';
import { convertApi2FormUrlBySeparator } from '@/utils';
import { OrderInputType } from '@bole-core/core';
import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
import { IncomeStatusEnumText } from '@/constants';
@@ -25,34 +39,36 @@
  },
  {
    id: '2',
    enCode: 'settleTime',
    name: '奖励金发放日期',
    enCode: 'batchNo',
    name: '申报总额',
  },
  {
    id: '3',
    enCode: 'incomeTime',
    name: '奖励金到账日期',
    enCode: 'applySumAmount',
    name: '财政拨付金额',
  },
  {
    id: '4',
    enCode: 'applySumAmount',
    name: '发放金额',
    enCode: 'settleTime',
    name: '财政拨付日期',
  },
  {
    id: '5',
    enCode: 'incomeStatus',
    name: '到账确认结果',
    enCode: 'applySumAmount',
    name: '平台充值金额',
  },
  {
    id: '6',
    enCode: 'incomeTime',
    name: '平台充值日期',
  },
];
const operationBtns = defineOperationBtns([
  {
    data: {
      enCode: 'previewBtn',
      enCode: 'checkBtn',
      name: '查看凭证',
    },
    emits: {
      onClick: (role) => handlePreview(role),
    },
  },
]);
@@ -91,7 +107,7 @@
  },
  {
    defaultExtraParams: {
      orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }],
      orderInput: [{ property: 'id', order: OrderInputType.Desc }],
    },
    columnsRenderProps: {
      settleTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' },