| | |
| | | PreviewBtnV2, |
| | | } from '@bole-core/components'; |
| | | import { setOSSLink } from '@/utils'; |
| | | import { BaseDeclareEnterpriseTableViewColumns } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'DeclareEnterpriseTableView', |
| | |
| | | searchKeyWord: string; |
| | | }; |
| | | openDialog?: (row) => void; |
| | | column?: API.ModuleColumnDto[]; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), {}); |
| | | |
| | | const column = defineColumns([ |
| | | { |
| | | id: '1', |
| | | enCode: 'userName', |
| | | name: '帐号', |
| | | }, |
| | | { |
| | | id: '2', |
| | | enCode: 'enterpriseName', |
| | | name: '企业名称', |
| | | }, |
| | | { |
| | | id: '3', |
| | | enCode: 'societyCreditCode', |
| | | name: '信用代码', |
| | | }, |
| | | { |
| | | id: '4', |
| | | enCode: 'contactPhone', |
| | | name: '电话', |
| | | }, |
| | | { |
| | | id: '5', |
| | | enCode: 'authType', |
| | | name: '企业类型', |
| | | }, |
| | | { |
| | | id: '6', |
| | | enCode: 'licenseUrl', |
| | | name: '营业执照', |
| | | }, |
| | | { |
| | | id: '7', |
| | | enCode: 'bankAccountInfo', |
| | | name: '基本户信息', |
| | | }, |
| | | ]); |
| | | const props = withDefaults(defineProps<Props>(), { |
| | | column: () => BaseDeclareEnterpriseTableViewColumns, |
| | | }); |
| | | |
| | | const operationBtns = defineOperationBtns([ |
| | | { |
| | |
| | | import { defineColumns } from '@bole-core/components'; |
| | | |
| | | export enum FourStreamsMaterialFileBusinessTypeEnum { |
| | | /** 园区入驻协议 */ |
| | | ParkEnterPactUrl = 10, |
| | |
| | | [TransferFileEnumInRewardGrand.FinanceFileUrl]: 'financeFileUrl', |
| | | [TransferFileEnumInRewardGrand.SettleFileUrl]: 'settleFileUrl', |
| | | } as const; |
| | | |
| | | export const BaseDeclareEnterpriseTableViewColumns = defineColumns([ |
| | | { |
| | | id: '1', |
| | | enCode: 'userName', |
| | | name: '帐号', |
| | | }, |
| | | { |
| | | id: '2', |
| | | enCode: 'enterpriseName', |
| | | name: '企业名称', |
| | | }, |
| | | { |
| | | id: '3', |
| | | enCode: 'societyCreditCode', |
| | | name: '信用代码', |
| | | }, |
| | | { |
| | | id: '4', |
| | | enCode: 'contactPhone', |
| | | name: '电话', |
| | | }, |
| | | { |
| | | id: '5', |
| | | enCode: 'authType', |
| | | name: '企业类型', |
| | | }, |
| | | { |
| | | id: '6', |
| | | enCode: 'licenseUrl', |
| | | name: '营业执照', |
| | | }, |
| | | { |
| | | id: '7', |
| | | enCode: 'bankAccountInfo', |
| | | name: '基本户信息', |
| | | }, |
| | | ]); |
| | | |
| | | type UseAddRewardApplyStep3ColumnsOptions = { |
| | | suportEnterpriseUpload: Ref<boolean>; |
| | | baseColumns?: API.ModuleColumnDto[]; |
| | | }; |
| | | |
| | | export function useAddRewardApplyStep3Columns({ |
| | | suportEnterpriseUpload, |
| | | baseColumns = BaseDeclareEnterpriseTableViewColumns, |
| | | }: UseAddRewardApplyStep3ColumnsOptions) { |
| | | const addRewardApplyStep3Columns = computed(() => |
| | | defineColumns( |
| | | [ |
| | | ...baseColumns, |
| | | suportEnterpriseUpload.value && { |
| | | id: '9', |
| | | enCode: 'applyAmount', |
| | | name: '申报金额', |
| | | }, |
| | | ].filter(Boolean) |
| | | ) |
| | | ); |
| | | |
| | | return { addRewardApplyStep3Columns }; |
| | | } |
| | |
| | | parkId?: string; |
| | | /** 申请园区 */ |
| | | parkName?: string; |
| | | /** 是否支持企业自主上传 */ |
| | | suportEnterpriseUpload?: boolean; |
| | | /** 申请园区类型 */ |
| | | parkTypeName?: string; |
| | | /** 申请奖励金月份 */ |
| | |
| | | /** 入账时间 */ |
| | | transferToTime?: string; |
| | | parkBountyApplyDetailId?: string; |
| | | /** 申报金额 */ |
| | | applyAmount?: number; |
| | | /** 入账凭证 */ |
| | | transferToFileUrl?: string; |
| | | financeToStatus?: FinanceStatusEnum; |
| | |
| | | suportPlatRecharge?: boolean; |
| | | rewardEnable?: boolean; |
| | | suportWithDraw?: boolean; |
| | | industrialParkStatus?: IndustrialParkStatusEnum; |
| | | isHasBountyApply?: boolean; |
| | | /** 是否可以登录电子签 */ |
| | | canLoginUserSign?: boolean; |
| | |
| | | :pro-table-props="proTableProps" |
| | | :reset="reset" |
| | | :open-dialog="openDialog" |
| | | :column="addRewardApplyStep3Columns" |
| | | ></DeclareEnterpriseTableView> |
| | | <MateriaDetailDialog |
| | | v-bind="dialogProps" |
| | |
| | | BountyCheckStatusEnum, |
| | | BountyCheckStatusEnumText, |
| | | BountyCheckStatusEnumColor, |
| | | useAddRewardApplyStep3Columns, |
| | | } from '@/constants'; |
| | | import { FourStreamsMaterialFileTableItem } from '@/components/commonView/types'; |
| | | import { |
| | |
| | | |
| | | outCheckStatus: '' as any as BountyCheckStatusEnum, |
| | | outCheckRemark: '', |
| | | |
| | | suportEnterpriseUpload: false, |
| | | }); |
| | | |
| | | const { addRewardApplyStep3Columns } = useAddRewardApplyStep3Columns({ |
| | | suportEnterpriseUpload: toRef(form, 'suportEnterpriseUpload'), |
| | | }); |
| | | |
| | | const tableRef = ref<InstanceType<typeof DeclareEnterpriseTableView>>(); |
| | |
| | | data.collectCountListFiles |
| | | ); |
| | | |
| | | form.suportEnterpriseUpload = data.suportEnterpriseUpload; |
| | | |
| | | getList(); |
| | | }, |
| | | }); |
| | |
| | | }, |
| | | columnsRenderProps: { |
| | | authType: { type: 'enum', valueEnum: EnterpriseTypeText }, |
| | | applyAmount: { type: 'money' }, |
| | | }, |
| | | } |
| | | ); |
| | |
| | | :pro-table-props="proTableProps" |
| | | :reset="reset" |
| | | :open-dialog="openDialog" |
| | | :column="addRewardApplyStep3Columns" |
| | | ></DeclareEnterpriseTableView> |
| | | <MateriaDetailDialog |
| | | v-bind="dialogProps" |
| | |
| | | import { convertApi2FormUrlObjectBySeparator, setOSSLink } from '@/utils'; |
| | | import { useRouteView } from '@/hooks'; |
| | | import { OrderInputType } from '@bole-core/core'; |
| | | import { EnterpriseTypeText } from '@/constants'; |
| | | import { EnterpriseTypeText, useAddRewardApplyStep3Columns } from '@/constants'; |
| | | import { FourStreamsMaterialFileTableItem } from '@/components/commonView/types'; |
| | | import { useIndustrialParkDropDownList } from '@/hooks/industrialPark'; |
| | | import { |
| | |
| | | calculationFileList: [] as CustomerApplyFileTypeListItem[], |
| | | // bountyAssignFileUlr: [] as UploadUserFile[], |
| | | // bountyCollectFileUrl: [] as UploadUserFile[], |
| | | suportEnterpriseUpload: false, |
| | | }); |
| | | |
| | | const { addRewardApplyStep3Columns } = useAddRewardApplyStep3Columns({ |
| | | suportEnterpriseUpload: toRef(form, 'suportEnterpriseUpload'), |
| | | }); |
| | | |
| | | const { data: detail, isLoading } = useQuery({ |
| | | queryKey: ['parkBountyApplyServices/getParkBountyApplyDetail', id], |
| | | queryKey: ['parkBountyApplyServices/getParkBountyApplyDetailBaseInfo', id], |
| | | queryFn: async () => { |
| | | return await parkBountyApplyServices.getParkBountyApplyDetailBaseInfo( |
| | | { parkBountyApplyId: id }, |
| | |
| | | } |
| | | ); |
| | | }, |
| | | placeholderData: () => ({} as API.OutCheckParkBountyApplyBaseInfo), |
| | | placeholderData: () => ({} as API.ParkBountyApplyBaseInfo), |
| | | onSuccess(data) { |
| | | form.batchNo = data.batchNo; |
| | | form.parkName = data.parkName; |
| | |
| | | // form.enterpriseRelateFileUrl = convertApi2FormUrlObjectBySeparator( |
| | | // data?.enterpriseRelateFileUrl |
| | | // ); |
| | | form.suportEnterpriseUpload = data.suportEnterpriseUpload; |
| | | |
| | | getList(); |
| | | }, |
| | |
| | | type: 'urlV2', |
| | | formatter: (row: API.UserCertificationAuditListDto) => setOSSLink(row.licenseUrl), |
| | | }, |
| | | applyAmount: { type: 'money' }, |
| | | }, |
| | | } |
| | | ); |