zhengyiming
2 天以前 e1aeb653d656b3c3be05f06cac212f435cec07c3
src/constants/fourStreams.ts
@@ -80,31 +80,37 @@
    id: '1',
    enCode: 'userName',
    name: '帐号',
    width: 160,
  },
  {
    id: '2',
    enCode: 'enterpriseName',
    name: '企业名称',
    width: 250,
  },
  {
    id: '3',
    enCode: 'societyCreditCode',
    name: '信用代码',
    width: 200,
  },
  {
    id: '4',
    enCode: 'contactPhone',
    name: '电话',
    width: 160,
  },
  {
    id: '5',
    enCode: 'authType',
    name: '企业类型',
    width: 120,
  },
  {
    id: '6',
    enCode: 'licenseUrl',
    name: '营业执照',
    width: 120,
  },
  {
    id: '7',
@@ -114,22 +120,27 @@
]);
type UseAddRewardApplyStep3ColumnsOptions = {
  suportEnterpriseUpload: Ref<boolean>;
  suportPlatRecharge: Ref<boolean>;
  baseColumns?: API.ModuleColumnDto[];
};
export function useAddRewardApplyStep3Columns({
  suportEnterpriseUpload,
  suportPlatRecharge,
  baseColumns = BaseDeclareEnterpriseTableViewColumns,
}: UseAddRewardApplyStep3ColumnsOptions) {
  const addRewardApplyStep3Columns = computed(() =>
    defineColumns(
      [
        ...baseColumns,
        suportEnterpriseUpload.value && {
        {
          id: '8',
          enCode: 'financeAmount',
          name: '财政拨付金额',
        },
        suportPlatRecharge.value && {
          id: '9',
          enCode: 'applyAmount',
          name: '申报金额',
          enCode: 'transferAmount',
          name: '平台拨付金额',
        },
      ].filter(Boolean)
    )