| | |
| | | :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 { |
| | |
| | | parkTypeName: '', |
| | | applyMonth: '', |
| | | applySumAmount: 0, |
| | | enterpriseTaxSubFileUrl: [] as UploadUserFile[], |
| | | enterpriseOperateFileUrl: [] as UploadUserFile[], |
| | | enterpriseRelateFileUrl: [] as UploadUserFile[], |
| | | // enterpriseTaxSubFileUrl: [] as UploadUserFile[], |
| | | // enterpriseOperateFileUrl: [] as UploadUserFile[], |
| | | // enterpriseRelateFileUrl: [] as UploadUserFile[], |
| | | parkCollectFileList: [] as CustomerApplyFileTypeListItem[], |
| | | bountyAssignFileUlr: [] as UploadUserFile[], |
| | | bountyCollectFileUrl: [] as UploadUserFile[], |
| | | 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.parkTypeName = data.parkTypeName; |
| | | form.applyMonth = data.applyMonth; |
| | | form.applySumAmount = data.applySumAmount; |
| | | form.enterpriseTaxSubFileUrl = convertApi2FormUrlObjectBySeparator( |
| | | data?.enterpriseTaxSubFileUrl |
| | | ); |
| | | form.enterpriseOperateFileUrl = convertApi2FormUrlObjectBySeparator( |
| | | data?.enterpriseOperateFileUrl |
| | | ); |
| | | // form.enterpriseTaxSubFileUrl = convertApi2FormUrlObjectBySeparator( |
| | | // data?.enterpriseTaxSubFileUrl |
| | | // ); |
| | | // form.enterpriseOperateFileUrl = convertApi2FormUrlObjectBySeparator( |
| | | // data?.enterpriseOperateFileUrl |
| | | // ); |
| | | form.parkCollectFileList = EnterpriseApplyFileUtils.convertApiFileToParkCollectFileList( |
| | | data.listFiles |
| | | ); |
| | | form.bountyAssignFileUlr = convertApi2FormUrlObjectBySeparator(data?.bountyAssignFileUlr); |
| | | form.bountyCollectFileUrl = convertApi2FormUrlObjectBySeparator(data?.bountyCollectFileUrl); |
| | | form.enterpriseRelateFileUrl = convertApi2FormUrlObjectBySeparator( |
| | | data?.enterpriseRelateFileUrl |
| | | form.calculationFileList = EnterpriseApplyFileUtils.convertApiFileToParkCollectFileList( |
| | | data.collectCountListFiles |
| | | ); |
| | | // form.bountyAssignFileUlr = convertApi2FormUrlObjectBySeparator(data?.bountyAssignFileUlr); |
| | | // form.bountyCollectFileUrl = convertApi2FormUrlObjectBySeparator(data?.bountyCollectFileUrl); |
| | | // form.enterpriseRelateFileUrl = convertApi2FormUrlObjectBySeparator( |
| | | // data?.enterpriseRelateFileUrl |
| | | // ); |
| | | form.suportEnterpriseUpload = data.suportEnterpriseUpload; |
| | | |
| | | getList(); |
| | | }, |
| | |
| | | type: 'urlV2', |
| | | formatter: (row: API.UserCertificationAuditListDto) => setOSSLink(row.licenseUrl), |
| | | }, |
| | | applyAmount: { type: 'money' }, |
| | | }, |
| | | } |
| | | ); |
| | |
| | | const queryClient = useQueryClient(); |
| | | async function openDialog(row: API.ParkBountyApplyDetailInfo) { |
| | | try { |
| | | const applyFiles = await queryClient.ensureQueryData({ |
| | | const applyFilesRes = await queryClient.ensureQueryData({ |
| | | queryKey: [ |
| | | 'enterpriseApplyFileServices/getCustomerUploadApplyFiles', |
| | | row.enterpriseId, |
| | |
| | | handleAdd({ |
| | | list: EnterpriseApplyFileUtils.initParkCollectFileListApplyFiles( |
| | | applyUploadFiles, |
| | | applyFiles, |
| | | applyFilesRes.items, |
| | | lastUploadEnterPactFile |
| | | ), |
| | | companyId: row.enterpriseId, |