zhengyiming
2025-11-12 d13efc10f2a59705f142d24c5b05f925b7f9b131
src/views/EnterpriseInfo/EnterpriseInfo.vue
@@ -72,109 +72,19 @@
import _ from 'lodash';
import { ModelValueType } from 'element-plus';
import { EnterpriseTypeText } from '@/constants';
import { useAccess } from '@/hooks';
defineOptions({
  name: 'EnterpriseInfo',
});
const column: API.CustomModuleColumnDto[] = [
  {
    id: '1',
    enCode: 'enterpriseName',
    name: '企业名',
    width: 250,
  },
  {
    id: '2',
    enCode: 'societyCreditCode',
    name: '统一社会信用代码',
    width: 200,
  },
  {
    id: '3',
    enCode: 'enterpriseType',
    name: '企业类型',
    width: 150,
  },
  {
    id: '4',
    enCode: 'industrialParkName',
    name: '所属园区',
    width: 200,
  },
  {
    id: '5',
    enCode: 'parkTypName',
    name: '园区类型',
    width: 150,
  },
  {
    id: '6',
    enCode: 'applyCount',
    name: '申报次数',
    width: 150,
  },
  {
    id: '7',
    enCode: 'lastApplyTime',
    name: '最近申报日期',
    width: 180,
  },
  {
    id: '8',
    enCode: 'financeCount',
    name: '财政拨付次数',
    width: 150,
  },
  {
    id: '9',
    enCode: 'lastFinanceTime',
    name: '最近财政拨付日期',
    width: 180,
  },
  {
    id: '10',
    enCode: 'financeSumAmount',
    name: '财政拨付总额',
    width: 150,
  },
  {
    id: '11',
    enCode: 'settleCount',
    name: '平台拨付次数',
    width: 150,
  },
  {
    id: '12',
    enCode: 'lastSettleTime',
    name: '最近平台拨付日期',
    width: 180,
  },
  {
    id: '13',
    enCode: 'settleSumAmount',
    name: '平台拨付总额',
    width: 150,
  },
  {
    id: '14',
    enCode: 'bountyAmount',
    name: '平台拨付余额',
    width: 150,
  },
];
const operationBtnMap: Record<string, OperationBtnType> = {
  detailBtn: { emits: { onClick: (role) => goDetail(role) } },
};
const operationBtns = defineOperationBtns([
  {
    data: {
      enCode: 'detailBtn',
      name: '详情',
    },
    emits: {
      onClick: (role) => goDetail(role),
    },
  },
]);
const { checkSubModuleItemShow, column, operationBtns } = useAccess({
  operationBtnMap,
});
const router = useRouter();
const BaseState = {