wupengfei
4 天以前 598d868e59daae4502c4f8fe4b4d3833a7e371be
src/constants/fourStreams.ts
@@ -80,21 +80,25 @@
    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',
@@ -110,26 +114,32 @@
    id: '7',
    enCode: 'bankAccountInfo',
    name: '基本户信息',
    width: 300,
  },
]);
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)
    )