| | |
| | | id?: Ref<string>; |
| | | applyMonth?: Ref<string>; |
| | | enableUploadExtraFiles?: boolean; |
| | | bountyTemplateId?: Ref<string>; |
| | | }; |
| | | |
| | | export function useDeclareEnterpriseTable(options: UseDeclareEnterpriseTableOptions = {}) { |
| | | const { id, applyMonth, enableUploadExtraFiles = false } = options; |
| | | const { id, applyMonth, enableUploadExtraFiles = false, bountyTemplateId } = options; |
| | | |
| | | const { |
| | | getDataSource: getList, |
| | |
| | | try { |
| | | const applyFilesRes = await queryClient.ensureQueryData({ |
| | | queryKey: [ |
| | | 'enterpriseApplyFileServices/getCustomerUploadApplyFiles', |
| | | 'enterpriseApplyFileServices/getCustomerUploadApplyFilesV2', |
| | | row.enterpriseId, |
| | | applyMonth.value, |
| | | bountyTemplateId.value, |
| | | ], |
| | | queryFn: async () => { |
| | | return await enterpriseApplyFileServices.getCustomerUploadApplyFiles({ |
| | | return await enterpriseApplyFileServices.getCustomerUploadApplyFilesV2({ |
| | | enterpriseId: row.enterpriseId, |
| | | withMonth: applyMonth.value, |
| | | bountyTemplateId: bountyTemplateId.value, |
| | | }); |
| | | }, |
| | | }); |