zhengyiming
2025-11-14 4153f38e1f55daac0d1da109992a65c0026b0f40
src/views/MaterialReview/MaterialReview.vue
@@ -71,70 +71,19 @@
import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
import _ from 'lodash';
import { ModelValueType } from 'element-plus';
import { useGlobalEventContext } from '@/hooks';
import { useAccess, useGlobalEventContext } from '@/hooks';
defineOptions({
  name: 'MaterialReview',
  name: 'MaterialReviewList',
});
const column: API.CustomModuleColumnDto[] = [
  {
    id: '1',
    enCode: 'batchNo',
    name: '申请批次号',
  },
  {
    id: '2',
    enCode: 'parkName',
    name: '申请园区',
  },
  {
    id: '3',
    enCode: 'parkTypeName',
    name: '园区类型',
  },
  {
    id: '4',
    enCode: 'applyMonth',
    name: '申请奖励金月份',
  },
  {
    id: '5',
    enCode: 'applySumAmount',
    name: '奖励金汇总金额(元)',
  },
  {
    id: '6',
    enCode: 'creationTime',
    name: '申报日期',
  },
  {
    id: '7',
    enCode: 'outCheckTime',
    name: '审核日期',
  },
  {
    id: '8',
    enCode: 'outCheckStatus',
    name: '审核状态',
  },
];
const operationBtns = defineOperationBtns([
  {
    data: {
      enCode: 'detailBtn',
      name: '详情',
    },
const operationBtnMap: Record<string, OperationBtnType> = {
  detailBtn: {
    emits: {
      onClick: (role) => goDetail(role),
    },
  },
  {
    data: {
      enCode: 'auditBtn',
      name: '审核',
    },
  auditBtn: {
    emits: {
      onClick: (role) => goAudit(role),
    },
@@ -143,7 +92,11 @@
        row.outCheckStatus !== BountyCheckStatusEnum.WaitCheck,
    },
  },
]);
};
const { checkSubModuleItemShow, column, operationBtns } = useAccess({
  operationBtnMap,
});
const router = useRouter();
const BaseState = {