From b3fda48ba53b36f6770f399f58290ed4d95d04a6 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 30 四月 2025 09:19:52 +0800 Subject: [PATCH] feat: 接口 --- src/components/commonView/MaterialInfoView.vue | 15 + src/utils/common/file.ts | 6 src/services/api/typings.d.ts | 174 +++++++++++++++++++----- src/views/Reward/RewardDeclareDetail.vue | 18 + src/services/api/IndustrialPark.ts | 15 ++ src/components/commonView/SettlementMaterialInfoView.vue | 10 + src/views/MaterialReview/MaterialReviewDetail.vue | 18 + src/services/api/EnterpriseApplyFile.ts | 118 ++++++++++++++-- src/views/MaterialReview/MaterialReviewAudit.vue | 18 + 9 files changed, 312 insertions(+), 80 deletions(-) diff --git a/src/components/commonView/MaterialInfoView.vue b/src/components/commonView/MaterialInfoView.vue index 4561e41..4026f93 100644 --- a/src/components/commonView/MaterialInfoView.vue +++ b/src/components/commonView/MaterialInfoView.vue @@ -6,7 +6,10 @@ prop="enterpriseTaxSubFileUrl" style="margin-bottom: 22px" > - <ProFormUpload v-model:file-url="form.enterpriseTaxSubFileUrl"></ProFormUpload> + <ProFormUpload + v-model:file-url="form.enterpriseTaxSubFileUrl" + :limitShowViewMoreBtnCount="4" + ></ProFormUpload> </ProFormItemV2> </ProFormColItem> </ProFormCol> @@ -17,14 +20,20 @@ prop="enterpriseOperateFileUrl" style="margin-bottom: 22px" > - <ProFormUpload v-model:file-url="form.enterpriseOperateFileUrl"></ProFormUpload> + <ProFormUpload + v-model:file-url="form.enterpriseOperateFileUrl" + :limitShowViewMoreBtnCount="4" + ></ProFormUpload> </ProFormItemV2> </ProFormColItem> </ProFormCol> <ProFormCol> <ProFormColItem :span="12"> <ProFormItemV2 label="鍏ラ┗鎯呭喌鍏宠仈璇存槑:" prop="enterpriseRelateFileUrl"> - <ProFormUpload v-model:file-url="form.enterpriseRelateFileUrl"></ProFormUpload> + <ProFormUpload + v-model:file-url="form.enterpriseRelateFileUrl" + :limitShowViewMoreBtnCount="4" + ></ProFormUpload> </ProFormItemV2> </ProFormColItem> </ProFormCol> diff --git a/src/components/commonView/SettlementMaterialInfoView.vue b/src/components/commonView/SettlementMaterialInfoView.vue index 25ce58f..a81a5f5 100644 --- a/src/components/commonView/SettlementMaterialInfoView.vue +++ b/src/components/commonView/SettlementMaterialInfoView.vue @@ -13,14 +13,20 @@ prop="bountyAssignFileUlr" style="margin-bottom: 22px" > - <ProFormUpload v-model:file-url="form.bountyAssignFileUlr"></ProFormUpload> + <ProFormUpload + v-model:file-url="form.bountyAssignFileUlr" + :limitShowViewMoreBtnCount="4" + ></ProFormUpload> </ProFormItemV2> </ProFormColItem> </ProFormCol> <ProFormCol> <ProFormColItem :span="12"> <ProFormItemV2 label="濂栧姳閲戞眹鎬昏〃:" prop="bountyCollectFileUrl"> - <ProFormUpload v-model:file-url="form.bountyCollectFileUrl"></ProFormUpload> + <ProFormUpload + v-model:file-url="form.bountyCollectFileUrl" + :limitShowViewMoreBtnCount="4" + ></ProFormUpload> </ProFormItemV2> </ProFormColItem> </ProFormCol> diff --git a/src/services/api/EnterpriseApplyFile.ts b/src/services/api/EnterpriseApplyFile.ts index 80fb46d..bc7de20 100644 --- a/src/services/api/EnterpriseApplyFile.ts +++ b/src/services/api/EnterpriseApplyFile.ts @@ -2,25 +2,44 @@ // @ts-ignore import { request } from '@/utils/request'; -/** 鏌ヨ璇ュ鎴烽渶瑕佷笂浼犳枃浠剁被鍨嬬被鍒� GET /api/EnterpriseApplyFile/GetCustomerFileTypeHead */ -export async function getCustomerFileTypeHead(options?: API.RequestConfig) { - return request<API.IndustrialParkFileTypeDto[]>( - '/api/EnterpriseApplyFile/GetCustomerFileTypeHead', - { - method: 'GET', - ...(options || {}), - } - ); +/** 纭鎻愪氦鏉愭枡涓婁紶 POST /api/EnterpriseApplyFile/CustomerUploadMonthApplyFile */ +export async function customerUploadMonthApplyFile( + body: API.CustomerUploadMonthApplyFileInput, + options?: API.RequestConfig +) { + return request<number>('/api/EnterpriseApplyFile/CustomerUploadMonthApplyFile', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); } -/** 鑾峰彇鏈堜唤涓婁紶鏂囦欢璇︽儏 GET /api/EnterpriseApplyFile/GetCustomerUploadApplyFiles */ -export async function getCustomerUploadApplyFiles( +/** 瀹㈡埛绔垹闄ゆ寜鏈堜笂浼犲崟涓枃浠� DELETE /api/EnterpriseApplyFile/DeleteMonthApplySingleFile */ +export async function deleteMonthApplySingleFile( + body: API.DeleteMonthApplySingleFileInput, + options?: API.RequestConfig +) { + return request<number>('/api/EnterpriseApplyFile/DeleteMonthApplySingleFile', { + method: 'DELETE', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鏌ヨ璇ュ鎴烽渶瑕佷笂浼犳枃浠剁被鍨嬬被鍒� GET /api/EnterpriseApplyFile/GetCustomerFileTypeHead */ +export async function getCustomerFileTypeHead( // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) - params: API.APIgetCustomerUploadApplyFilesParams, + params: API.APIgetCustomerFileTypeHeadParams, options?: API.RequestConfig ) { return request<API.GetCustomerUploadApplyFilesOutput[]>( - '/api/EnterpriseApplyFile/GetCustomerUploadApplyFiles', + '/api/EnterpriseApplyFile/GetCustomerFileTypeHead', { method: 'GET', params: { @@ -31,12 +50,66 @@ ); } -/** 鎸夋湀浠芥煡璇紒涓氫笂浼犵殑鏂囦欢鍒楄〃 POST /api/EnterpriseApplyFile/GetEnterpriseApplyUploadFile */ +/** 鑾峰彇鏈堜唤涓婁紶鏂囦欢璇︽儏 POST /api/EnterpriseApplyFile/GetCustomerUploadApplyFiles */ +export async function getCustomerUploadApplyFiles( + body: API.GetCustomerUploadApplyFilesInput, + options?: API.RequestConfig +) { + return request<API.GetCustomerUploadApplyFilesOutput[]>( + '/api/EnterpriseApplyFile/GetCustomerUploadApplyFiles', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + } + ); +} + +/** 鑾峰彇鏈堜唤涓婁紶鏂囦欢鎸夌被鍨嬫煡璇㈡枃浠跺垪琛� POST /api/EnterpriseApplyFile/GetCustomerUploadApplyFilesByType */ +export async function getCustomerUploadApplyFilesByType( + body: API.GetCustomerUploadApplyFilesByTypeInput, + options?: API.RequestConfig +) { + return request<API.GetCustomerUploadApplyFilesByTypeOutput[]>( + '/api/EnterpriseApplyFile/GetCustomerUploadApplyFilesByType', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + } + ); +} + +/** 鏍规嵁鏈堜唤鏌ヨ鏄惁瀛樺湪鎻愪氦璁板綍 GET /api/EnterpriseApplyFile/GetCustomerUploadFileRecord */ +export async function getCustomerUploadFileRecord( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetCustomerUploadFileRecordParams, + options?: API.RequestConfig +) { + return request<API.GetCustomerUploadFileRecordOutput>( + '/api/EnterpriseApplyFile/GetCustomerUploadFileRecord', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + +/** 鎸夋湀浠芥煡璇紒涓氫笂浼犳潗鏂欏垪琛� POST /api/EnterpriseApplyFile/GetEnterpriseApplyUploadFile */ export async function getEnterpriseApplyUploadFile( body: API.PageInput, options?: API.RequestConfig ) { - return request<API.GetEnterpriseApplyUploadFileOutputPageOutput>( + return request<API.GetEnterpriseMonthApplyFileOutputPageOutput>( '/api/EnterpriseApplyFile/GetEnterpriseApplyUploadFile', { method: 'POST', @@ -48,3 +121,18 @@ } ); } + +/** 涓婁紶鏉愭枡璇︽儏-缂栬緫-涓婁紶鏂囦欢 POST /api/EnterpriseApplyFile/UploadMonthApplySingleFiles */ +export async function uploadMonthApplySingleFiles( + body: API.UploadMonthApplySingleFilesInput, + options?: API.RequestConfig +) { + return request<number>('/api/EnterpriseApplyFile/UploadMonthApplySingleFiles', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} diff --git a/src/services/api/IndustrialPark.ts b/src/services/api/IndustrialPark.ts index 8cfb12f..a30b7cd 100644 --- a/src/services/api/IndustrialPark.ts +++ b/src/services/api/IndustrialPark.ts @@ -61,6 +61,21 @@ ); } +/** 璁剧疆濂栧姳閲戠敵鎶ョ姸鎬� POST /api/IndustrialPark/SetIndustrialParkRewardEnable */ +export async function setIndustrialParkRewardEnable( + body: API.SetIndustrialParkRewardEnableInput, + options?: API.RequestConfig +) { + return request<number>('/api/IndustrialPark/SetIndustrialParkRewardEnable', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + /** 璁剧疆浜т笟鍥尯鐘舵�� POST /api/IndustrialPark/SetIndustrialParkStatus */ export async function setIndustrialParkStatus( body: API.SetIndustrialParkStatusInput, diff --git a/src/services/api/typings.d.ts b/src/services/api/typings.d.ts index 731e944..7df99f2 100644 --- a/src/services/api/typings.d.ts +++ b/src/services/api/typings.d.ts @@ -221,8 +221,6 @@ leaderMobile?: string; /** 鍥尯绫诲瀷 */ parkTypeId?: string; - /** 娉ㄥ唽鍦板潃 */ - registerAddress: string; /** 澶囨敞 */ remark?: string; /** 鏄惁宸茬粡鍚敤濂栧姳閲戠敵鎶� */ @@ -231,18 +229,14 @@ rewardTemplateSetting?: boolean; /** 缁存姢鐨勫叕鍙� */ companyOrgId?: string; - /** 缁存姢鐨勫叕鍙� */ - companyOrgName?: string; /** 缁存姢鐨勯儴闂� */ departmentOrgId?: string; /** 鏄惁鏀寔浼佷笟鑷富涓婁紶 */ suportEnterpriseUpload?: boolean; /** 鏄惁鏀寔骞冲彴鍏呭�� */ suportPlatRecharge?: boolean; - /** 210 浼佷笟鏉愭枡 220 姹囨�绘潗鏂� */ - applyFileType?: number; - /** 鍥尯鏉愭枡 */ - industrialParkFileTypeSetting?: string[]; + /** 鏂囦欢 */ + industrialParkApplyFileFile?: IndustrialParkApplyFileFile[]; } interface AddIndustryBodyAuditInput { @@ -1328,6 +1322,10 @@ moduleId?: string; } + interface APIgetCustomerFileTypeHeadParams { + enterpriseId?: string; + } + interface APIgetCustomerTemplateDetailParams { id?: string; } @@ -1340,8 +1338,8 @@ templateId?: string; } - interface APIgetCustomerUploadApplyFilesParams { - id?: string; + interface APIgetCustomerUploadFileRecordParams { + withMonth?: string; } interface APIgetDefaultConnectionStringParams { @@ -3072,6 +3070,8 @@ interface CheckUserEnterpriseRechargeInput { id?: string; checkStatus?: EnterpriseRechargeStatusEnum; + /** 鍏呭�煎嚟璇� */ + rechargeVoucherFileUrl?: string; remark?: string; } @@ -3944,6 +3944,10 @@ remark?: string; /** 鎵嬫満鍙� */ phoneNumber?: string; + /** 鐢ㄦ埛绔疘d */ + clientId?: string; + /** 鍥尯Ids */ + industrialParkIds?: string[]; /** 瑙掕壊 */ roleNames?: string[]; /** 瀵嗙爜 */ @@ -5327,6 +5331,15 @@ endTime?: string; } + interface CustomerApplyFileDetailDto { + id?: string; + fileType?: string; + fileSize?: number; + fileUrl?: string; + fileSearchTypeId?: string; + monthApplyId?: string; + } + interface CustomerManageListOutput { id?: string; /** 浼佷笟鍚嶇О */ @@ -5397,6 +5410,24 @@ templateParamExtraData?: string; } + interface CustomerUploadMonthApplyFileInput { + withMonth?: string; + fileTypes?: CustomerUploadMonthApplyFileType[]; + } + + interface CustomerUploadMonthApplyFileType { + fileSearchTypeId?: string; + listFiles?: CustomerUploadMonthApplyFileTypeDto[]; + } + + interface CustomerUploadMonthApplyFileTypeDto { + fileSearchTypeId?: string; + id?: string; + fileType?: string; + fileSize?: number; + fileUrl?: string; + } + interface DataprepareCreateExtInfo { contextParams?: string; shortUrl?: string; @@ -5430,6 +5461,12 @@ } type DecimalDecimalValueTuple = true; + + interface DeleteMonthApplySingleFileInput { + monthApplyId?: string; + fileSearchTypeId?: string; + detaiFileId?: string; + } interface DistTemplateCreateContractInput { /** 璁㈠崟绛剧害Id */ @@ -5687,6 +5724,10 @@ } type EnterpriseMaterialTypeEnum = 10 | 11 | 20; + + type EnterpriseMonthApplyStatusEnum = 10 | 20; + + type EnterpriseMonthUploadStatusEnum = 10 | 20 | 30; type EnterpriseRechargeStatusEnum = 10 | 20 | 30; @@ -6692,38 +6733,41 @@ operator?: string; } + interface GetCustomerUploadApplyFilesByTypeInput { + fileSearchTypeId?: string; + monthApplyId?: string; + } + + interface GetCustomerUploadApplyFilesByTypeOutput { + id?: string; + fileType?: string; + fileSize?: number; + fileUrl?: string; + } + + interface GetCustomerUploadApplyFilesInput { + id?: string; + enterpriseId?: string; + withMonth?: string; + } + interface GetCustomerUploadApplyFilesOutput { + id?: string; fileSearchTypeId?: string; fileCount?: number; isUpload?: boolean; lastUpdateTime?: string; - id?: string; + monthApplyId?: string; withMonth?: string; enterpriseName?: string; parkName?: string; fileTypeName?: string; sort?: number; + listFiles?: CustomerApplyFileDetailDto[]; } - interface GetEnterpriseApplyUploadFile { + interface GetCustomerUploadFileRecordOutput { id?: string; - fileSearchTypeId?: string; - fileCount?: number; - isUpload?: boolean; - lastUpdateTime?: string; - } - - interface GetEnterpriseApplyUploadFileOutput { - id?: string; - withMonth?: string; - enterpriseId?: string; - uploadFiles?: GetEnterpriseApplyUploadFile[]; - } - - interface GetEnterpriseApplyUploadFileOutputPageOutput { - pageModel?: Pagination; - objectData?: any; - data?: GetEnterpriseApplyUploadFileOutput[]; } interface GetEnterpriseBuntyTradeDto { @@ -6765,6 +6809,21 @@ errmsg?: string; cost?: string; data?: GetEnterpriseCredentialDataResponse; + } + + interface GetEnterpriseMonthApplyFileOutput { + id?: string; + enterpriseId?: string; + withMonth?: string; + creationTime?: string; + uploadStatus?: EnterpriseMonthUploadStatusEnum; + applyStatus?: EnterpriseMonthApplyStatusEnum; + } + + interface GetEnterpriseMonthApplyFileOutputPageOutput { + pageModel?: Pagination; + objectData?: any; + data?: GetEnterpriseMonthApplyFileOutput[]; } interface GetEnterprisePreChargeCheckListInput { @@ -6820,6 +6879,8 @@ outBankResumeName?: string; /** 鍑鸿处鍥炲崟 */ outReceiptFileUrl?: string; + /** 鍏呭�煎嚟璇� */ + rechargeVoucherFileUrl?: string; /** 瀹℃牳澶囨敞 */ checkRemark?: string; checkStatus?: EnterpriseRechargeStatusEnum; @@ -8112,6 +8173,14 @@ settleSumAmount?: number; /** 璐㈡斂鍙戞斁閲戦 */ financeSumAmount?: number; + /** 鏄惁宸茬粡鍚敤濂栧姳閲戠敵鎶� */ + rewardEnable?: boolean; + /** 濂栧姳閲戞ā鏉挎槸鍚﹂厤缃� */ + rewardTemplateSetting?: boolean; + /** 鏄惁鏀寔浼佷笟鑷富涓婁紶 */ + suportEnterpriseUpload?: boolean; + /** 鏄惁鏀寔骞冲彴鍏呭�� */ + suportPlatRecharge?: boolean; } interface GetParkBountyApplyListOutputPageOutput { @@ -9829,6 +9898,13 @@ type IncomeStatusEnum = 1 | 2; + interface IndustrialParkApplyFileFile { + /** 210 浼佷笟鏉愭枡 220 姹囨�绘潗鏂� */ + applyFileType?: number; + /** 鍥尯鏉愭枡 */ + industrialParkFileTypeSetting?: string[]; + } + interface IndustrialParkDetailOutput { id?: string; /** 鍥尯鍚嶇О */ @@ -9858,6 +9934,7 @@ registerAddress?: string; /** 澶囨敞 */ remark?: string; + industrialParkFileTypeList?: IndustrialParkFileTypeOutput[]; } interface IndustrialParkDropDownOutput { @@ -9870,10 +9947,11 @@ parkTypeName?: string; } - interface IndustrialParkFileTypeDto { - fileTypeId?: string; - fileTypeName?: string; - sort?: number; + interface IndustrialParkFileTypeOutput { + /** 210 浼佷笟鏉愭枡 220 姹囨�绘潗鏂� */ + applyFileType?: number; + /** 鍥尯鏉愭枡 */ + fileSearchTypeId?: string; } interface IndustrialParkListOutput { @@ -18256,6 +18334,11 @@ auditNote?: string; } + interface SetIndustrialParkRewardEnableInput { + id?: string; + rewardEnable?: boolean; + } + interface SetIndustrialParkStatusInput { id?: string; opStatus?: IndustrialParkStatusEnum; @@ -19574,6 +19657,10 @@ remark?: string; /** 鎵嬫満鍙� */ phoneNumber?: string; + /** 鐢ㄦ埛绔疘d */ + clientId?: string; + /** 鍥尯Ids */ + industrialParkIds?: string[]; /** 瑙掕壊 */ roleNames?: string[]; /** 瀵嗙爜 */ @@ -19591,8 +19678,6 @@ leaderMobile?: string; /** 鍥尯绫诲瀷 */ parkTypeId?: string; - /** 娉ㄥ唽鍦板潃 */ - registerAddress: string; /** 澶囨敞 */ remark?: string; /** 鏄惁宸茬粡鍚敤濂栧姳閲戠敵鎶� */ @@ -19601,18 +19686,14 @@ rewardTemplateSetting?: boolean; /** 缁存姢鐨勫叕鍙� */ companyOrgId?: string; - /** 缁存姢鐨勫叕鍙� */ - companyOrgName?: string; /** 缁存姢鐨勯儴闂� */ departmentOrgId?: string; /** 鏄惁鏀寔浼佷笟鑷富涓婁紶 */ suportEnterpriseUpload?: boolean; /** 鏄惁鏀寔骞冲彴鍏呭�� */ suportPlatRecharge?: boolean; - /** 210 浼佷笟鏉愭枡 220 姹囨�绘潗鏂� */ - applyFileType?: number; - /** 鍥尯鏉愭枡 */ - industrialParkFileTypeSetting?: string[]; + /** 鏂囦欢 */ + industrialParkApplyFileFile?: IndustrialParkApplyFileFile[]; id?: string; } @@ -20217,6 +20298,12 @@ insurePolicyId?: string; /** 鎶曚繚鍗� */ insureBillUrl?: string; + } + + interface UploadMonthApplySingleFilesInput { + monthApplyId?: string; + fileSearchTypeId?: string; + listFiles?: CustomerUploadMonthApplyFileTypeDto[]; } interface UploadParkBountyApplyCompanyFileInput { @@ -20863,6 +20950,8 @@ companyOrgId?: string; /** 缁勭粐鏋舵瀯閮ㄩ棬id */ departmentOrgId?: string; + /** 鍥尯Ids */ + industrialParkIds?: string[]; } interface UserDtoPageOutput { @@ -21149,6 +21238,9 @@ /** 鐢靛瓙绛惧嵃绔犲浘鐗囩敓鎴愮姸鎬� 0鏈敓鎴� 1宸茬敓鎴� */ signatureImageStatus?: number; certificationChannel?: UserCertificationChannelEnum; + industrialParkId?: string; + suportEnterpriseUpload?: boolean; + suportPlatRecharge?: boolean; } interface UserMessageInfo { diff --git a/src/utils/common/file.ts b/src/utils/common/file.ts index 2582146..a4434bf 100644 --- a/src/utils/common/file.ts +++ b/src/utils/common/file.ts @@ -26,7 +26,11 @@ } export function convertApi2FormUrlBySeparator(path: string, separator = '|') { - return path.split(separator).map((x) => setOSSLink(x)); + return path ? path.split(separator).map((x) => setOSSLink(x)) : []; +} + +export function convertApi2FormUrlObjectBySeparator(path: string, separator = '|') { + return path ? path.split(separator).map(convertApi2FormUrl) : []; } /** diff --git a/src/views/MaterialReview/MaterialReviewAudit.vue b/src/views/MaterialReview/MaterialReviewAudit.vue index c4b4664..ba8a828 100644 --- a/src/views/MaterialReview/MaterialReviewAudit.vue +++ b/src/views/MaterialReview/MaterialReviewAudit.vue @@ -89,7 +89,7 @@ import MateriaDetailDialog from '@/components/commonView/MateriaDetailDialog.vue'; import { useQuery, useQueryClient } from '@tanstack/vue-query'; import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; -import { convertApi2FormUrlOnlyOne, setOSSLink } from '@/utils'; +import { convertApi2FormUrlObjectBySeparator, setOSSLink } from '@/utils'; import { useGlobalEventContext, useRouteView } from '@/hooks'; import { FormInstance } from 'element-plus'; import { Message, OrderInputType } from '@bole-core/core'; @@ -138,11 +138,17 @@ form.parkTypeName = data.parkTypeName; form.applyMonth = data.applyMonth; form.applySumAmount = data.applySumAmount; - form.enterpriseTaxSubFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseTaxSubFileUrl); - form.enterpriseOperateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseOperateFileUrl); - form.bountyAssignFileUlr = convertApi2FormUrlOnlyOne(data?.bountyAssignFileUlr); - form.bountyCollectFileUrl = convertApi2FormUrlOnlyOne(data?.bountyCollectFileUrl); - form.enterpriseRelateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseRelateFileUrl); + form.enterpriseTaxSubFileUrl = convertApi2FormUrlObjectBySeparator( + data?.enterpriseTaxSubFileUrl + ); + form.enterpriseOperateFileUrl = convertApi2FormUrlObjectBySeparator( + data?.enterpriseOperateFileUrl + ); + form.bountyAssignFileUlr = convertApi2FormUrlObjectBySeparator(data?.bountyAssignFileUlr); + form.bountyCollectFileUrl = convertApi2FormUrlObjectBySeparator(data?.bountyCollectFileUrl); + form.enterpriseRelateFileUrl = convertApi2FormUrlObjectBySeparator( + data?.enterpriseRelateFileUrl + ); getList(); }, diff --git a/src/views/MaterialReview/MaterialReviewDetail.vue b/src/views/MaterialReview/MaterialReviewDetail.vue index 0b7d6d5..0bdeee5 100644 --- a/src/views/MaterialReview/MaterialReviewDetail.vue +++ b/src/views/MaterialReview/MaterialReviewDetail.vue @@ -58,7 +58,7 @@ import DeclareEnterpriseTableView from '@/components/commonView/DeclareEnterpriseTableView.vue'; import { useQuery } from '@tanstack/vue-query'; import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; -import { convertApi2FormUrlOnlyOne, setOSSLink } from '@/utils'; +import { convertApi2FormUrlObjectBySeparator, setOSSLink } from '@/utils'; import { useRouteView } from '@/hooks'; import { OrderInputType } from '@bole-core/core'; import { @@ -115,11 +115,17 @@ form.applySumAmount = data.applySumAmount; form.outCheckStatus = data.outCheckStatus; form.outCheckRemark = data.outCheckRemark; - form.enterpriseTaxSubFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseTaxSubFileUrl); - form.enterpriseOperateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseOperateFileUrl); - form.bountyAssignFileUlr = convertApi2FormUrlOnlyOne(data?.bountyAssignFileUlr); - form.bountyCollectFileUrl = convertApi2FormUrlOnlyOne(data?.bountyCollectFileUrl); - form.enterpriseRelateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseRelateFileUrl); + form.enterpriseTaxSubFileUrl = convertApi2FormUrlObjectBySeparator( + data?.enterpriseTaxSubFileUrl + ); + form.enterpriseOperateFileUrl = convertApi2FormUrlObjectBySeparator( + data?.enterpriseOperateFileUrl + ); + form.bountyAssignFileUlr = convertApi2FormUrlObjectBySeparator(data?.bountyAssignFileUlr); + form.bountyCollectFileUrl = convertApi2FormUrlObjectBySeparator(data?.bountyCollectFileUrl); + form.enterpriseRelateFileUrl = convertApi2FormUrlObjectBySeparator( + data?.enterpriseRelateFileUrl + ); getList(); }, diff --git a/src/views/Reward/RewardDeclareDetail.vue b/src/views/Reward/RewardDeclareDetail.vue index f0241f9..02342ea 100644 --- a/src/views/Reward/RewardDeclareDetail.vue +++ b/src/views/Reward/RewardDeclareDetail.vue @@ -42,7 +42,7 @@ import DeclareEnterpriseTableView from '@/components/commonView/DeclareEnterpriseTableView.vue'; import { useQuery } from '@tanstack/vue-query'; import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; -import { convertApi2FormUrlOnlyOne, setOSSLink } from '@/utils'; +import { convertApi2FormUrlObjectBySeparator, setOSSLink } from '@/utils'; import { useRouteView } from '@/hooks'; import { OrderInputType } from '@bole-core/core'; import { EnterpriseTypeText } from '@/constants'; @@ -87,11 +87,17 @@ form.parkTypeName = data.parkTypeName; form.applyMonth = data.applyMonth; form.applySumAmount = data.applySumAmount; - form.enterpriseTaxSubFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseTaxSubFileUrl); - form.enterpriseOperateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseOperateFileUrl); - form.bountyAssignFileUlr = convertApi2FormUrlOnlyOne(data?.bountyAssignFileUlr); - form.bountyCollectFileUrl = convertApi2FormUrlOnlyOne(data?.bountyCollectFileUrl); - form.enterpriseRelateFileUrl = convertApi2FormUrlOnlyOne(data?.enterpriseRelateFileUrl); + form.enterpriseTaxSubFileUrl = convertApi2FormUrlObjectBySeparator( + data?.enterpriseTaxSubFileUrl + ); + form.enterpriseOperateFileUrl = convertApi2FormUrlObjectBySeparator( + data?.enterpriseOperateFileUrl + ); + form.bountyAssignFileUlr = convertApi2FormUrlObjectBySeparator(data?.bountyAssignFileUlr); + form.bountyCollectFileUrl = convertApi2FormUrlObjectBySeparator(data?.bountyCollectFileUrl); + form.enterpriseRelateFileUrl = convertApi2FormUrlObjectBySeparator( + data?.enterpriseRelateFileUrl + ); getList(); }, -- Gitblit v1.9.1