| | |
| | | { |
| | | id: '9', |
| | | enCode: 'financeAmount', |
| | | name: '财政拨付金额', |
| | | name: '推广补贴发放金额', |
| | | width: 160, |
| | | }, |
| | | { |
| | | id: '10', |
| | | enCode: 'financeSumAmount', |
| | | name: '财政拨付已登记', |
| | | name: '推广补贴发放已登记', |
| | | width: 160, |
| | | }, |
| | | { |
| | |
| | | { |
| | | id: '12', |
| | | enCode: 'financeStatus', |
| | | name: '财政拨付登记状态', |
| | | name: '推广补贴发放登记状态', |
| | | width: 160, |
| | | }, |
| | | { |
| | |
| | | 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, |
| | | }); |
| | | }, |
| | | }); |