From 609eb7a2d87dc7ce0546bf55d6096ea660f8f9be Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 13 十月 2025 11:09:48 +0800 Subject: [PATCH] feat: 微信 --- src/views/EnterpriseManage/components/ConfigureDialog.vue | 4 .eslintrc-auto-import.json | 21 src/services/api/typings.d.ts | 842 +++++++++++++++++++++ src/views/EnterpriseManage/components/WechatConfigureView.vue | 1183 +++++++++++++++++++++++++++- auto-imports.d.ts | 44 + src/constants/apiEnum.ts | 132 +++ src/constants/enterprise.ts | 2 src/constants/enterpriseWallet.ts | 75 + src/hooks/index.ts | 1 src/services/api/enterpriseWallet.ts | 36 src/hooks/identify.ts | 43 + 11 files changed, 2,313 insertions(+), 70 deletions(-) diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json index 58b65b5..52bffd2 100644 --- a/.eslintrc-auto-import.json +++ b/.eslintrc-auto-import.json @@ -117,6 +117,25 @@ "EnumUserWalletTransactionTypeText": true, "EnumWalletTransactionStatus": true, "EnumWalletTransactionStatusText": true, + "EnumWeChatPayApplymentBankAccountType": true, + "EnumWeChatPayApplymentCertType": true, + "EnumWeChatPayApplymentCertTypeTextForSHZZ": true, + "EnumWeChatPayApplymentCertTypeTextForSYDW": true, + "EnumWeChatPayApplymentCertTypeTextForZFJG": true, + "EnumWeChatPayApplymentContactType": true, + "EnumWeChatPayApplymentContactTypeText": true, + "EnumWeChatPayApplymentContactTypeTextForZFJG": true, + "EnumWeChatPayApplymentFinanceType": true, + "EnumWeChatPayApplymentIdDocType": true, + "EnumWeChatPayApplymentIdDocTypeText": true, + "EnumWeChatPayApplymentIdHolderType": true, + "EnumWeChatPayApplymentIdHolderTypeText": true, + "EnumWeChatPayApplymentIdHolderTypeTextOnlyLEGAL": true, + "EnumWeChatPayApplymentSalesScenesType": true, + "EnumWeChatPayApplymentSalesScenesTypeText": true, + "EnumWeChatPayApplymentState": true, + "EnumWeChatPayApplymentSubjectType": true, + "EnumWeChatPayApplymentSubjectTypeText": true, "ExtractDefaultPropTypes": true, "ExtractPropTypes": true, "ExtractPublicPropTypes": true, @@ -287,6 +306,8 @@ "useUser": true, "useVModel": true, "useVModels": true, + "userCredentialVerifyOcrIDCard": true, + "vatLicense": true, "watch": true, "watchEffect": true, "watchPostEffect": true, diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 2787dce..f76939f 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -121,6 +121,25 @@ const EnumUserWalletTransactionTypeText: typeof import('./src/constants/finance')['EnumUserWalletTransactionTypeText'] const EnumWalletTransactionStatus: typeof import('./src/constants/apiEnum')['EnumWalletTransactionStatus'] const EnumWalletTransactionStatusText: typeof import('./src/constants/finance')['EnumWalletTransactionStatusText'] + const EnumWeChatPayApplymentBankAccountType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentBankAccountType'] + const EnumWeChatPayApplymentCertType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentCertType'] + const EnumWeChatPayApplymentCertTypeTextForSHZZ: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForSHZZ'] + const EnumWeChatPayApplymentCertTypeTextForSYDW: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForSYDW'] + const EnumWeChatPayApplymentCertTypeTextForZFJG: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForZFJG'] + const EnumWeChatPayApplymentContactType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentContactType'] + const EnumWeChatPayApplymentContactTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentContactTypeText'] + const EnumWeChatPayApplymentContactTypeTextForZFJG: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentContactTypeTextForZFJG'] + const EnumWeChatPayApplymentFinanceType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentFinanceType'] + const EnumWeChatPayApplymentIdDocType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentIdDocType'] + const EnumWeChatPayApplymentIdDocTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentIdDocTypeText'] + const EnumWeChatPayApplymentIdHolderType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentIdHolderType'] + const EnumWeChatPayApplymentIdHolderTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentIdHolderTypeText'] + const EnumWeChatPayApplymentIdHolderTypeTextOnlyLEGAL: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentIdHolderTypeTextOnlyLEGAL'] + const EnumWeChatPayApplymentSalesScenesType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSalesScenesType'] + const EnumWeChatPayApplymentSalesScenesTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSalesScenesTypeText'] + const EnumWeChatPayApplymentState: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentState'] + const EnumWeChatPayApplymentSubjectType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSubjectType'] + const EnumWeChatPayApplymentSubjectTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSubjectTypeText'] const FastButtonMap: typeof import('./src/constants/module')['FastButtonMap'] const FastColumnList: typeof import('./src/constants/module')['FastColumnList'] const FastDataButtonList: typeof import('./src/constants/module')['FastDataButtonList'] @@ -269,6 +288,8 @@ const useUser: typeof import('./src/hooks/useUser')['useUser'] const useVModel: typeof import('./src/hooks/help')['useVModel'] const useVModels: typeof import('./src/hooks/help')['useVModels'] + const userCredentialVerifyOcrIDCard: typeof import('./src/hooks/identify')['userCredentialVerifyOcrIDCard'] + const vatLicense: typeof import('./src/hooks/identify')['vatLicense'] const watch: typeof import('vue')['watch'] const watchEffect: typeof import('vue')['watchEffect'] const watchPostEffect: typeof import('vue')['watchPostEffect'] @@ -280,7 +301,7 @@ export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' import('vue') // @ts-ignore - export type { EnumBillingMethod, EnumClientType, EnumCodeUrlScene, EnumConsoleLogAccess, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumElectronSignVerifyType, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletExpandindirectOrderFileType, EnumEnterpriseWalletExpandindirectOrderScene, EnumEnterpriseWalletExpandindirectOrderStatus, EnumEnterpriseWalletSignStatus, EnumEnterpriseWalletTransactionType, EnumGetEnterpriseEmployeesQuerySignContractStatus, EnumLogLevel, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumSmsStatus, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementOrderStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserBankCardAccess, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, EnumUserWalletTransactionType, EnumWalletTransactionStatus, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton, SettlementReceiveStatus, EnumBillingMethod, EnumClientType, EnumCodeUrlScene, EnumConsoleLogAccess, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumElectronSignVerifyType, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletExpandindirectOrderFileType, EnumEnterpriseWalletExpandindirectOrderScene, EnumEnterpriseWalletExpandindirectOrderStatus, EnumEnterpriseWalletSignStatus, EnumEnterpriseWalletTransactionType, EnumGetEnterpriseEmployeesQuerySignContractStatus, EnumLogLevel, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumSmsStatus, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementOrderStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserBankCardAccess, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, EnumUserWalletTransactionType, EnumWalletTransactionStatus, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton, SettlementReceiveStatus } from './src/constants/apiEnum' + export type { EnumBillingMethod, EnumClientType, EnumCodeUrlScene, EnumConsoleLogAccess, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumElectronSignVerifyType, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletExpandindirectOrderFileType, EnumEnterpriseWalletExpandindirectOrderScene, EnumEnterpriseWalletExpandindirectOrderStatus, EnumEnterpriseWalletSignStatus, EnumEnterpriseWalletTransactionType, EnumGetEnterpriseEmployeesQuerySignContractStatus, EnumLogLevel, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumSmsStatus, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementOrderStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserBankCardAccess, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, EnumUserWalletTransactionType, EnumWalletTransactionStatus, EnumWeChatPayApplymentBankAccountType, EnumWeChatPayApplymentCertType, EnumWeChatPayApplymentContactType, EnumWeChatPayApplymentFinanceType, EnumWeChatPayApplymentIdDocType, EnumWeChatPayApplymentIdHolderType, EnumWeChatPayApplymentSalesScenesType, EnumWeChatPayApplymentState, EnumWeChatPayApplymentSubjectType, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton, SettlementReceiveStatus, EnumBillingMethod, EnumClientType, EnumCodeUrlScene, EnumConsoleLogAccess, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumElectronSignVerifyType, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletExpandindirectOrderFileType, EnumEnterpriseWalletExpandindirectOrderScene, EnumEnterpriseWalletExpandindirectOrderStatus, EnumEnterpriseWalletSignStatus, EnumEnterpriseWalletTransactionType, EnumGetEnterpriseEmployeesQuerySignContractStatus, EnumLogLevel, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumSmsStatus, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementOrderStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserBankCardAccess, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, EnumUserWalletTransactionType, EnumWalletTransactionStatus, EnumWeChatPayApplymentBankAccountType, EnumWeChatPayApplymentCertType, EnumWeChatPayApplymentContactType, EnumWeChatPayApplymentFinanceType, EnumWeChatPayApplymentIdDocType, EnumWeChatPayApplymentIdHolderType, EnumWeChatPayApplymentSalesScenesType, EnumWeChatPayApplymentState, EnumWeChatPayApplymentSubjectType, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton, SettlementReceiveStatus } from './src/constants/apiEnum' import('./src/constants/apiEnum') // @ts-ignore export type { FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum, FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum } from './src/constants/cPerson' @@ -438,6 +459,25 @@ readonly EnumUserWalletTransactionTypeText: UnwrapRef<typeof import('./src/constants/finance')['EnumUserWalletTransactionTypeText']> readonly EnumWalletTransactionStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWalletTransactionStatus']> readonly EnumWalletTransactionStatusText: UnwrapRef<typeof import('./src/constants/finance')['EnumWalletTransactionStatusText']> + readonly EnumWeChatPayApplymentBankAccountType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentBankAccountType']> + readonly EnumWeChatPayApplymentCertType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentCertType']> + readonly EnumWeChatPayApplymentCertTypeTextForSHZZ: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForSHZZ']> + readonly EnumWeChatPayApplymentCertTypeTextForSYDW: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForSYDW']> + readonly EnumWeChatPayApplymentCertTypeTextForZFJG: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForZFJG']> + readonly EnumWeChatPayApplymentContactType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentContactType']> + readonly EnumWeChatPayApplymentContactTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentContactTypeText']> + readonly EnumWeChatPayApplymentContactTypeTextForZFJG: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentContactTypeTextForZFJG']> + readonly EnumWeChatPayApplymentFinanceType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentFinanceType']> + readonly EnumWeChatPayApplymentIdDocType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentIdDocType']> + readonly EnumWeChatPayApplymentIdDocTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentIdDocTypeText']> + readonly EnumWeChatPayApplymentIdHolderType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentIdHolderType']> + readonly EnumWeChatPayApplymentIdHolderTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentIdHolderTypeText']> + readonly EnumWeChatPayApplymentIdHolderTypeTextOnlyLEGAL: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentIdHolderTypeTextOnlyLEGAL']> + readonly EnumWeChatPayApplymentSalesScenesType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSalesScenesType']> + readonly EnumWeChatPayApplymentSalesScenesTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSalesScenesTypeText']> + readonly EnumWeChatPayApplymentState: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentState']> + readonly EnumWeChatPayApplymentSubjectType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSubjectType']> + readonly EnumWeChatPayApplymentSubjectTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSubjectTypeText']> readonly FastButtonMap: UnwrapRef<typeof import('./src/constants/module')['FastButtonMap']> readonly FastColumnList: UnwrapRef<typeof import('./src/constants/module')['FastColumnList']> readonly FastDataButtonList: UnwrapRef<typeof import('./src/constants/module')['FastDataButtonList']> @@ -586,6 +626,8 @@ readonly useUser: UnwrapRef<typeof import('./src/hooks/useUser')['useUser']> readonly useVModel: UnwrapRef<typeof import('./src/hooks/help')['useVModel']> readonly useVModels: UnwrapRef<typeof import('./src/hooks/help')['useVModels']> + readonly userCredentialVerifyOcrIDCard: UnwrapRef<typeof import('./src/hooks/identify')['userCredentialVerifyOcrIDCard']> + readonly vatLicense: UnwrapRef<typeof import('./src/hooks/identify')['vatLicense']> readonly watch: UnwrapRef<typeof import('vue')['watch']> readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']> readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']> diff --git a/src/constants/apiEnum.ts b/src/constants/apiEnum.ts index 49b80ec..0423e28 100644 --- a/src/constants/apiEnum.ts +++ b/src/constants/apiEnum.ts @@ -605,6 +605,138 @@ Fail = 50, } +/** 寰俊鏀粯-閾惰璐︽埛绫诲瀷鏋氫妇 */ +export enum EnumWeChatPayApplymentBankAccountType { + /**瀵瑰叕閾惰璐︽埛 */ + BANK_ACCOUNT_TYPE_CORPORATE = 0, + /**缁忚惀鑰呬釜浜洪摱琛屽崱锛堜粎涓綋鎴峰彲閫夋嫨锛� */ + BANK_ACCOUNT_TYPE_PERSONAL = 1, +} + +/** 寰俊鏀粯-鐧昏璇佷功绫诲瀷鏋氫妇 */ +export enum EnumWeChatPayApplymentCertType { + /**浜嬩笟鍗曚綅娉曚汉璇佷功锛堜富浣撲负浜嬩笟鍗曚綅鏃堕�夋嫨锛� */ + CERTIFICATE_TYPE_2388 = 0, + /**缁熶竴绀句細淇$敤浠g爜璇佷功锛堜富浣撲负鏀垮簻鏈哄叧/绀句細缁勭粐鏃堕�夋嫨锛� */ + CERTIFICATE_TYPE_2389 = 1, + /**绀句細鍥綋娉曚汉鐧昏璇佷功锛堜富浣撲负绀句細缁勭粐鏃堕�夋嫨锛� */ + CERTIFICATE_TYPE_2394 = 2, + /**姘戝姙闈炰紒涓氬崟浣嶇櫥璁拌瘉涔︼紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2395 = 3, + /**鍩洪噾浼氭硶浜虹櫥璁拌瘉涔︼紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2396 = 4, + /**鎵т笟璁稿彲璇�/鎵т笟璇侊紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2520 = 5, + /**鍩哄眰缇や紬鎬ц嚜娌荤粍缁囩壒鍒硶浜虹粺涓�绀句細淇$敤浠g爜璇侊紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2521 = 6, + /**鍐滄潙闆嗕綋缁忔祹缁勭粐鐧昏璇侊紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2522 = 7, + /**瀹楁暀娲诲姩鍦烘墍鐧昏璇侊紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2399 = 8, + /**鏀垮簻閮ㄩ棬涓嬪彂鐨勫叾浠栨湁鏁堣瘉鏄庢枃浠讹紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2400 = 9, +} + +/** 寰俊鏀粯-瓒呯骇绠$悊鍛樼被鍨嬫灇涓� */ +export enum EnumWeChatPayApplymentContactType { + /**缁忚惀鑰�/娉曞畾浠h〃浜� */ + LEGAL = 0, + /**缁忓姙浜猴紙缁忓晢鎴锋巿鏉冨姙鐞嗗井淇℃敮浠樹笟鍔$殑浜哄憳锛� */ + SUPER = 1, +} + +/** 寰俊鏀粯-閲戣瀺鏈烘瀯绫诲瀷鏋氫妇 */ +export enum EnumWeChatPayApplymentFinanceType { + /**閾惰涓氾紙閫傜敤浜庡晢涓氶摱琛屻�佹斂绛栨�ч摱琛屻�佸啘鏉戝悎浣滈摱琛屻�佹潙闀囬摱琛屻�佸紑鍙戞�ч噾铻嶆満鏋勭瓑锛� */ + BANK_AGENT = 0, + /**鏀粯鏈烘瀯锛堥�傜敤浜庨潪閾惰绫绘敮浠樻満鏋勶級 */ + PAYMENT_AGENT = 1, + /**淇濋櫓涓氾紙閫傜敤浜庝繚闄┿�佷繚闄╀腑浠嬨�佷繚闄╀唬鐞嗐�佷繚闄╃粡绾瓑淇濋櫓绫讳笟鍔★級 */ + INSURANCE = 2, + /**浜ゆ槗鍙婄粨绠楃被閲戣瀺鏈烘瀯锛堥�傜敤浜庝氦鏄撴墍銆佺櫥璁扮粨绠楃被鏈烘瀯銆侀摱琛屽崱娓呯畻鏈烘瀯銆佽祫閲戞竻绠椾腑蹇冪瓑锛� */ + TRADE_AND_SETTLE = 3, + /**鍏朵粬閲戣瀺鏈烘瀯锛堥�傜敤浜庤储鍔″叕鍙搞�佷俊鎵樺叕鍙搞�侀噾铻嶈祫浜х鐞嗗叕鍙搞�侀噾铻嶇璧佸叕鍙搞�佹苯杞﹂噾铻嶅叕鍙搞�佽捶娆惧叕鍙搞�佽揣甯佺粡绾叕鍙搞�佹秷璐归噾铻嶅叕鍙搞�佽瘉鍒镐笟銆侀噾铻嶆帶鑲″叕鍙搞�佽偂绁ㄣ�佹湡璐с�佽揣甯佸厬鎹€�佸皬棰濊捶娆惧叕鍙搞�侀噾铻嶈祫浜х鐞嗐�佹媴淇濆叕鍙搞�佸晢涓氫繚鐞嗗叕鍙搞�佸吀褰撹銆佽瀺璧勭璧佸叕鍙搞�佽储缁忓挩璇㈢瓑鍏朵粬閲戣瀺涓氬姟锛� */ + OTHER = 4, +} + +/** 寰俊鏀粯-璇佷欢绫诲瀷鏋氫妇 */ +export enum EnumWeChatPayApplymentIdDocType { + /**涓浗澶ч檰灞呮皯 */ + IDENTIFICATION_TYPE_IDCARD = 0, + /**鍏朵粬鍥藉鎴栧湴鍖哄眳姘� */ + IDENTIFICATION_TYPE_OVERSEA_PASSPORT = 1, + /**涓浗棣欐腐灞呮皯 */ + IDENTIFICATION_TYPE_HONGKONG_PASSPORT = 2, + /**涓浗婢抽棬灞呮皯 */ + IDENTIFICATION_TYPE_MACAO_PASSPORT = 3, + /**涓浗鍙版咕灞呮皯 */ + IDENTIFICATION_TYPE_TAIWAN_PASSPORT = 4, + /**澶栧浗浜哄眳鐣欒瘉 */ + IDENTIFICATION_TYPE_FOREIGN_RESIDENT = 5, + /**娓境灞呮皯璇� */ + IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT = 6, + /**鍙版咕灞呮皯璇� */ + IDENTIFICATION_TYPE_TAIWAN_RESIDENT = 7, +} + +/** 寰俊鏀粯-璇佷欢鎸佹湁浜虹被鍨嬫灇涓� */ +export enum EnumWeChatPayApplymentIdHolderType { + /**缁忚惀鑰�/娉曞畾浠h〃浜� */ + LEGAL = 0, + /**缁忓姙浜猴紙缁忓晢鎴锋巿鏉冨姙鐞嗗井淇℃敮浠樹笟鍔$殑浜哄憳锛屾巿鏉冭寖鍥村寘鎷絾涓嶉檺浜庣绾︼紝鍏ラ┗杩囩▼闇�瀹屾垚璐︽埛楠岃瘉锛� */ + SUPER = 1, +} + +/** 寰俊鏀粯-缁忚惀鍦烘櫙绫诲瀷鏋氫妇 */ +export enum EnumWeChatPayApplymentSalesScenesType { + /**绾夸笅鍦烘墍 */ + SALES_SCENES_STORE = 0, + /**鏈嶅姟鍙蜂笌鍏紬鍙� */ + SALES_SCENES_MP = 1, + /**灏忕▼搴� */ + SALES_SCENES_MINI_PROGRAM = 2, + /**浜掕仈缃戠綉绔� */ + SALES_SCENES_WEB = 3, + /**App */ + SALES_SCENES_APP = 4, + /**浼佷笟寰俊 */ + SALES_SCENES_WEWORK = 5, +} + +/** 寰俊鏀粯鐢宠鍗曠姸鎬佹灇涓� */ +export enum EnumWeChatPayApplymentState { + /**缂栬緫涓紝鎻愪氦鐢宠鍙戠敓閿欒瀵艰嚧锛岃灏濊瘯閲嶆柊鎻愪氦 */ + APPLYMENT_STATE_EDITTING = 0, + /**瀹℃牳涓紝鐢宠鍗曟鍦ㄥ鏍镐腑锛岃秴绾х鐞嗗憳鐢ㄥ井淇℃墦寮�鈥滅绾﹂摼鎺モ�濓紝瀹屾垚缁戝畾寰俊鍙峰悗锛岀敵璇峰崟杩涘害灏嗛�氳繃寰俊鍏紬鍙烽�氱煡瓒呯骇绠$悊鍛橈紝寮曞瀹屾垚鍚庣画姝ラ */ + APPLYMENT_STATE_AUDITING = 1, + /**宸查┏鍥烇紝璇锋寜鐓ч┏鍥炲師鍥犱慨鏀圭敵璇疯祫鏂欙紝瓒呯骇绠$悊鍛樼敤寰俊鎵撳紑鈥滅绾﹂摼鎺モ�濓紝瀹屾垚缁戝畾寰俊鍙凤紝鍚庣画鐢宠鍗曡繘搴﹀皢閫氳繃寰俊鍏紬鍙烽�氱煡瓒呯骇绠$悊鍛� */ + APPLYMENT_STATE_REJECTED = 2, + /**寰呰处鎴烽獙璇侊紝璇疯秴绾х鐞嗗憳浣跨敤寰俊鎵撳紑杩斿洖鐨勨�滅绾﹂摼鎺モ�濓紝鏍规嵁椤甸潰鎸囧紩瀹屾垚璐︽埛楠岃瘉 */ + APPLYMENT_STATE_TO_BE_CONFIRMED = 3, + /**寰呯绾︼紝璇疯秴绾х鐞嗗憳浣跨敤寰俊鎵撳紑杩斿洖鐨勨�滅绾﹂摼鎺モ�濓紝鏍规嵁椤甸潰鎸囧紩瀹屾垚绛剧害 */ + APPLYMENT_STATE_TO_BE_SIGNED = 4, + /**寮�閫氭潈闄愪腑锛岀郴缁熷紑閫氱浉鍏虫潈闄愪腑锛岃鑰愬績绛夊緟 */ + APPLYMENT_STATE_SIGNING = 5, + /**宸插畬鎴愶紝鍟嗘埛鍏ラ┗鐢宠宸插畬鎴� */ + APPLYMENT_STATE_FINISHED = 6, + /**宸蹭綔搴燂紝鐢宠鍗曞凡琚挙閿� */ + APPLYMENT_STATE_CANCELED = 7, +} + +/** 寰俊鏀粯-涓讳綋绫诲瀷鏋氫妇 */ +export enum EnumWeChatPayApplymentSubjectType { + /**涓綋鎴凤紙钀ヤ笟鎵х収涓婄殑涓讳綋绫诲瀷涓�鑸负涓綋鎴枫�佷釜浣撳伐鍟嗘埛銆佷釜浣撶粡钀ワ級 */ + SUBJECT_TYPE_INDIVIDUAL = 0, + /**浼佷笟锛堣惀涓氭墽鐓т笂鐨勪富浣撶被鍨嬩竴鑸负鏈夐檺鍏徃銆佹湁闄愯矗浠诲叕鍙革級 */ + SUBJECT_TYPE_ENTERPRISE = 1, + /**鏀垮簻鏈哄叧锛堝寘鎷悇绾с�佸悇绫绘斂搴滄満鍏筹紝濡傛満鍏冲厷濮斻�佺◣鍔°�佹皯鏀裤�佷汉绀俱�佸伐鍟嗐�佸晢鍔°�佸競鐩戠瓑锛� */ + SUBJECT_TYPE_GOVERNMENT = 2, + /**浜嬩笟鍗曚綅锛堝寘鎷浗鍐呭悇绫讳簨涓氬崟浣嶏紝濡傦細鍖荤枟銆佹暀鑲层�佸鏍$瓑鍗曚綅锛� */ + SUBJECT_TYPE_INSTITUTIONS = 3, + /**绀句細缁勭粐锛堝寘鎷ぞ浼氬洟浣撱�佹皯鍔為潪浼佷笟銆佸熀閲戜細銆佸熀灞傜兢浼楁�ц嚜娌荤粍缁囥�佸啘鏉戦泦浣撶粡娴庣粍缁囩瓑缁勭粐锛� */ + SUBJECT_TYPE_OTHERS = 4, +} + /** 鎴戠殑鎶ュ悕鍒嗛〉鍒楄〃-鐘舵�� */ export enum GetPersonalApplyTaskInfosQueryStatus { /**寰呯‘璁� */ diff --git a/src/constants/enterprise.ts b/src/constants/enterprise.ts index 0f6bb2e..be49de0 100644 --- a/src/constants/enterprise.ts +++ b/src/constants/enterprise.ts @@ -31,7 +31,7 @@ [EnterpriseConfigureType.AliPay]: '鏀粯瀹濋厤缃�', [EnterpriseConfigureType.Electronic]: '鐢靛瓙绛鹃厤缃�', [EnterpriseConfigureType.ShortMessage]: '鐭俊閫氶亾閰嶇疆', - // [EnterpriseConfigureType.Wechat]: '寰俊鏀粯閰嶇疆', + [EnterpriseConfigureType.Wechat]: '寰俊鏀粯閰嶇疆', }; export enum VerifyStatus { diff --git a/src/constants/enterpriseWallet.ts b/src/constants/enterpriseWallet.ts index 338f3b7..863299e 100644 --- a/src/constants/enterpriseWallet.ts +++ b/src/constants/enterpriseWallet.ts @@ -20,3 +20,78 @@ `${TempFolderPath}/alipayExpandindirectScene/scene4.png`, `${TempFolderPath}/alipayExpandindirectScene/scene5.png`, ]; + +export const EnumWeChatPayApplymentContactTypeText = { + [EnumWeChatPayApplymentContactType.LEGAL]: '缁忚惀鑰�/娉曞畾浠h〃浜�', + [EnumWeChatPayApplymentContactType.SUPER]: '缁忓姙浜�', +}; + +export const EnumWeChatPayApplymentContactTypeTextForZFJG = { + [EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_IDCARD]: '涓浗澶ч檰灞呮皯-韬唤璇�', +}; + +export const EnumWeChatPayApplymentIdDocTypeText = { + [EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_IDCARD]: '涓浗澶ч檰灞呮皯-韬唤璇�', + [EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_OVERSEA_PASSPORT]: '鍏朵粬鍥藉鎴栧湴鍖哄眳姘�-鎶ょ収', + [EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_HONGKONG_PASSPORT]: + '涓浗棣欐腐灞呮皯-鏉ュ線鍐呭湴閫氳璇�', + [EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_MACAO_PASSPORT]: + '涓浗婢抽棬灞呮皯-鏉ュ線鍐呭湴閫氳璇�', + [EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_TAIWAN_PASSPORT]: + '涓浗鍙版咕灞呮皯-鏉ュ線澶ч檰閫氳璇�', + [EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_FOREIGN_RESIDENT]: '澶栧浗浜哄眳鐣欒瘉', + [EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT]: '娓境灞呮皯璇�', + [EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_TAIWAN_RESIDENT]: '鍙版咕灞呮皯璇�', +}; + +export const EnumWeChatPayApplymentSubjectTypeText = { + [EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INDIVIDUAL]: '涓綋鎴�', + [EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_ENTERPRISE]: '浼佷笟', + [EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_GOVERNMENT]: '鏀垮簻鏈哄叧', + [EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INSTITUTIONS]: '浜嬩笟鍗曚綅', + [EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_OTHERS]: '绀句細缁勭粐', +}; + +export const EnumWeChatPayApplymentCertTypeTextForSYDW = { + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2388]: '浜嬩笟鍗曚綅娉曚汉璇佷功', +}; + +export const EnumWeChatPayApplymentCertTypeTextForZFJG = { + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2389]: '缁熶竴绀句細淇$敤浠g爜璇佷功', +}; + +export const EnumWeChatPayApplymentCertTypeTextForSHZZ = { + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2394]: '绀句細鍥綋娉曚汉鐧昏璇佷功', + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2395]: '姘戝姙闈炰紒涓氬崟浣嶇櫥璁拌瘉涔�', + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2396]: '鍩洪噾浼氭硶浜虹櫥璁拌瘉涔�', + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2520]: '鎵т笟璁稿彲璇�/鎵т笟璇�', + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2521]: + '鍩哄眰缇や紬鎬ц嚜娌荤粍缁囩壒鍒硶浜虹粺涓�绀句細淇$敤浠g爜璇�', + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2522]: '鍐滄潙闆嗕綋缁忔祹缁勭粐鐧昏璇�', + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2399]: '瀹楁暀娲诲姩鍦烘墍鐧昏璇�', + [EnumWeChatPayApplymentCertType.CERTIFICATE_TYPE_2400]: '鏀垮簻閮ㄩ棬涓嬪彂鐨勫叾浠栨湁鏁堣瘉鏄庢枃浠�', +}; + +export const EnumWeChatPayApplymentIdHolderTypeTextOnlyLEGAL = { + [EnumWeChatPayApplymentIdHolderType.LEGAL]: '缁忚惀鑰�/娉曞畾浠h〃浜�', +}; + +export const EnumWeChatPayApplymentIdHolderTypeText = { + [EnumWeChatPayApplymentIdHolderType.LEGAL]: '缁忚惀鑰�/娉曞畾浠h〃浜�', + [EnumWeChatPayApplymentIdHolderType.SUPER]: '缁忓姙浜�', +}; + +export const EnumWeChatPayApplymentSalesScenesTypeText = { + [EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_STORE]: '绾夸笅鍦烘墍', + [EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_MP]: '鏈嶅姟鍙蜂笌鍏紬鍙�', + [EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_MINI_PROGRAM]: '灏忕▼搴�', + [EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_WEB]: '浜掕仈缃戠綉绔�', + [EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_APP]: 'App', + [EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_WEWORK]: '浼佷笟寰俊', +}; + +export const EnumWeChatPayApplymentBankAccountTypeText = { + [EnumWeChatPayApplymentBankAccountType.BANK_ACCOUNT_TYPE_CORPORATE]: '瀵瑰叕閾惰璐︽埛', + [EnumWeChatPayApplymentBankAccountType.BANK_ACCOUNT_TYPE_PERSONAL]: + '缁忚惀鑰呬釜浜洪摱琛屽崱锛堜粎涓綋鎴峰彲閫夋嫨锛�', +}; diff --git a/src/hooks/identify.ts b/src/hooks/identify.ts new file mode 100644 index 0000000..00f78f3 --- /dev/null +++ b/src/hooks/identify.ts @@ -0,0 +1,43 @@ +import * as ocrUtilsServices from '@/services/api/ocrUtils'; +import { UploadUserFile } from '@bole-core/components'; +import _ from 'lodash'; + +type VatLicenseOptions = { + onSuccess?: (res: API.BaiduOcrBusinessLicenseResultModel) => any; +}; + +export async function vatLicense(response: UploadUserFile, options: VatLicenseOptions = {}) { + try { + if (response?.url) { + const { onSuccess } = options; + let res = await ocrUtilsServices.getLicenseOcr({ + url: response.url, + }); + onSuccess?.(res.model); + } + } catch (error) {} +} + +type UserCredentialVerifyOcrIDCardOptions = { + access?: EnumOcrAccess; + scene?: string; + isOssUrl?: boolean; + url?: string; + onSuccess?: (res: API.BaiduOcrIdentityFrontResultModel) => any; +}; + +export async function userCredentialVerifyOcrIDCard( + options: UserCredentialVerifyOcrIDCardOptions = {} +) { + try { + const { onSuccess, access, isOssUrl, url, scene } = options; + if (url) { + let res = await ocrUtilsServices.getIdentityFrontOcr({ + access: access, + url: url, + isOssUrl: isOssUrl, + }); + onSuccess?.(res.model); + } + } catch (error) {} +} diff --git a/src/hooks/index.ts b/src/hooks/index.ts index 90173c1..105e91f 100644 --- a/src/hooks/index.ts +++ b/src/hooks/index.ts @@ -10,3 +10,4 @@ export * from './menu'; export * from './portraitTable'; export * from './electronSign'; +export * from './identify'; diff --git a/src/services/api/enterpriseWallet.ts b/src/services/api/enterpriseWallet.ts index 827d31c..fc99708 100644 --- a/src/services/api/enterpriseWallet.ts +++ b/src/services/api/enterpriseWallet.ts @@ -295,6 +295,24 @@ ); } +/** 鏌ヨ浼佷笟寰俊鏀粯閽卞寘璇︽儏 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWallet */ +export async function getEnterpriseWeChatPayWallet( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetEnterpriseWeChatPayWalletParams, + options?: API.RequestConfig +) { + return request<API.GetEnterpriseWeChatPayWalletQueryResult>( + '/api/user/enterpriseWallet/getEnterpriseWeChatPayWallet', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + /** 寮�閫氫紒涓氶挶鍖� POST /api/user/enterpriseWallet/openEnterpriseWallet */ export async function openEnterpriseWallet( body: API.OpenEnterpriseWalletCommand, @@ -313,6 +331,24 @@ ); } +/** 寮�閫氫紒涓氬井淇¢挶鍖� POST /api/user/enterpriseWallet/openEnterpriseWeChatPayWallet */ +export async function openEnterpriseWeChatPayWallet( + body: API.OpenEnterpriseWeChatPayWalletCommand, + options?: API.RequestConfig +) { + return request<API.OpenEnterpriseWeChatPayWalletCommandResult>( + '/api/user/enterpriseWallet/openEnterpriseWeChatPayWallet', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} + /** 浼佷笟閽卞寘鍏呭�� POST /api/user/enterpriseWallet/rechargeEnterpriseWallet */ export async function rechargeEnterpriseWallet( body: API.RechargeEnterpriseWalletCommand, diff --git a/src/services/api/typings.d.ts b/src/services/api/typings.d.ts index 1c62e3e..0b652b8 100644 --- a/src/services/api/typings.d.ts +++ b/src/services/api/typings.d.ts @@ -134,6 +134,11 @@ id?: string; } + interface APIgetEnterpriseWeChatPayWalletParams { + /** 浼佷笟Id */ + enterpriseId?: string; + } + interface APIgetFileUrlParams { /** 鍦板潃 */ url?: string; @@ -336,6 +341,7 @@ } interface BaiduOcrIdentityFrontResultModel { + /** 濮撳悕 */ name?: string; /** 韬唤璇佸彿 */ identity?: string; @@ -1085,6 +1091,129 @@ Fail = 50, } + enum EnumWeChatPayApplymentBankAccountType { + /**瀵瑰叕閾惰璐︽埛 */ + BANK_ACCOUNT_TYPE_CORPORATE = 0, + /**缁忚惀鑰呬釜浜洪摱琛屽崱锛堜粎涓綋鎴峰彲閫夋嫨锛� */ + BANK_ACCOUNT_TYPE_PERSONAL = 1, + } + + enum EnumWeChatPayApplymentCertType { + /**浜嬩笟鍗曚綅娉曚汉璇佷功锛堜富浣撲负浜嬩笟鍗曚綅鏃堕�夋嫨锛� */ + CERTIFICATE_TYPE_2388 = 0, + /**缁熶竴绀句細淇$敤浠g爜璇佷功锛堜富浣撲负鏀垮簻鏈哄叧/绀句細缁勭粐鏃堕�夋嫨锛� */ + CERTIFICATE_TYPE_2389 = 1, + /**绀句細鍥綋娉曚汉鐧昏璇佷功锛堜富浣撲负绀句細缁勭粐鏃堕�夋嫨锛� */ + CERTIFICATE_TYPE_2394 = 2, + /**姘戝姙闈炰紒涓氬崟浣嶇櫥璁拌瘉涔︼紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2395 = 3, + /**鍩洪噾浼氭硶浜虹櫥璁拌瘉涔︼紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2396 = 4, + /**鎵т笟璁稿彲璇�/鎵т笟璇侊紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2520 = 5, + /**鍩哄眰缇や紬鎬ц嚜娌荤粍缁囩壒鍒硶浜虹粺涓�绀句細淇$敤浠g爜璇侊紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2521 = 6, + /**鍐滄潙闆嗕綋缁忔祹缁勭粐鐧昏璇侊紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2522 = 7, + /**瀹楁暀娲诲姩鍦烘墍鐧昏璇侊紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2399 = 8, + /**鏀垮簻閮ㄩ棬涓嬪彂鐨勫叾浠栨湁鏁堣瘉鏄庢枃浠讹紙涓讳綋涓虹ぞ浼氱粍缁囨椂閫夋嫨锛� */ + CERTIFICATE_TYPE_2400 = 9, + } + + enum EnumWeChatPayApplymentContactType { + /**缁忚惀鑰�/娉曞畾浠h〃浜� */ + LEGAL = 0, + /**缁忓姙浜猴紙缁忓晢鎴锋巿鏉冨姙鐞嗗井淇℃敮浠樹笟鍔$殑浜哄憳锛� */ + SUPER = 1, + } + + enum EnumWeChatPayApplymentFinanceType { + /**閾惰涓氾紙閫傜敤浜庡晢涓氶摱琛屻�佹斂绛栨�ч摱琛屻�佸啘鏉戝悎浣滈摱琛屻�佹潙闀囬摱琛屻�佸紑鍙戞�ч噾铻嶆満鏋勭瓑锛� */ + BANK_AGENT = 0, + /**鏀粯鏈烘瀯锛堥�傜敤浜庨潪閾惰绫绘敮浠樻満鏋勶級 */ + PAYMENT_AGENT = 1, + /**淇濋櫓涓氾紙閫傜敤浜庝繚闄┿�佷繚闄╀腑浠嬨�佷繚闄╀唬鐞嗐�佷繚闄╃粡绾瓑淇濋櫓绫讳笟鍔★級 */ + INSURANCE = 2, + /**浜ゆ槗鍙婄粨绠楃被閲戣瀺鏈烘瀯锛堥�傜敤浜庝氦鏄撴墍銆佺櫥璁扮粨绠楃被鏈烘瀯銆侀摱琛屽崱娓呯畻鏈烘瀯銆佽祫閲戞竻绠椾腑蹇冪瓑锛� */ + TRADE_AND_SETTLE = 3, + /**鍏朵粬閲戣瀺鏈烘瀯锛堥�傜敤浜庤储鍔″叕鍙搞�佷俊鎵樺叕鍙搞�侀噾铻嶈祫浜х鐞嗗叕鍙搞�侀噾铻嶇璧佸叕鍙搞�佹苯杞﹂噾铻嶅叕鍙搞�佽捶娆惧叕鍙搞�佽揣甯佺粡绾叕鍙搞�佹秷璐归噾铻嶅叕鍙搞�佽瘉鍒镐笟銆侀噾铻嶆帶鑲″叕鍙搞�佽偂绁ㄣ�佹湡璐с�佽揣甯佸厬鎹€�佸皬棰濊捶娆惧叕鍙搞�侀噾铻嶈祫浜х鐞嗐�佹媴淇濆叕鍙搞�佸晢涓氫繚鐞嗗叕鍙搞�佸吀褰撹銆佽瀺璧勭璧佸叕鍙搞�佽储缁忓挩璇㈢瓑鍏朵粬閲戣瀺涓氬姟锛� */ + OTHER = 4, + } + + enum EnumWeChatPayApplymentIdDocType { + /**涓浗澶ч檰灞呮皯 */ + IDENTIFICATION_TYPE_IDCARD = 0, + /**鍏朵粬鍥藉鎴栧湴鍖哄眳姘� */ + IDENTIFICATION_TYPE_OVERSEA_PASSPORT = 1, + /**涓浗棣欐腐灞呮皯 */ + IDENTIFICATION_TYPE_HONGKONG_PASSPORT = 2, + /**涓浗婢抽棬灞呮皯 */ + IDENTIFICATION_TYPE_MACAO_PASSPORT = 3, + /**涓浗鍙版咕灞呮皯 */ + IDENTIFICATION_TYPE_TAIWAN_PASSPORT = 4, + /**澶栧浗浜哄眳鐣欒瘉 */ + IDENTIFICATION_TYPE_FOREIGN_RESIDENT = 5, + /**娓境灞呮皯璇� */ + IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT = 6, + /**鍙版咕灞呮皯璇� */ + IDENTIFICATION_TYPE_TAIWAN_RESIDENT = 7, + } + + enum EnumWeChatPayApplymentIdHolderType { + /**缁忚惀鑰�/娉曞畾浠h〃浜� */ + LEGAL = 0, + /**缁忓姙浜猴紙缁忓晢鎴锋巿鏉冨姙鐞嗗井淇℃敮浠樹笟鍔$殑浜哄憳锛屾巿鏉冭寖鍥村寘鎷絾涓嶉檺浜庣绾︼紝鍏ラ┗杩囩▼闇�瀹屾垚璐︽埛楠岃瘉锛� */ + SUPER = 1, + } + + enum EnumWeChatPayApplymentSalesScenesType { + /**绾夸笅鍦烘墍 */ + SALES_SCENES_STORE = 0, + /**鏈嶅姟鍙蜂笌鍏紬鍙� */ + SALES_SCENES_MP = 1, + /**灏忕▼搴� */ + SALES_SCENES_MINI_PROGRAM = 2, + /**浜掕仈缃戠綉绔� */ + SALES_SCENES_WEB = 3, + /**App */ + SALES_SCENES_APP = 4, + /**浼佷笟寰俊 */ + SALES_SCENES_WEWORK = 5, + } + + enum EnumWeChatPayApplymentState { + /**缂栬緫涓紝鎻愪氦鐢宠鍙戠敓閿欒瀵艰嚧锛岃灏濊瘯閲嶆柊鎻愪氦 */ + APPLYMENT_STATE_EDITTING = 0, + /**瀹℃牳涓紝鐢宠鍗曟鍦ㄥ鏍镐腑锛岃秴绾х鐞嗗憳鐢ㄥ井淇℃墦寮�鈥滅绾﹂摼鎺モ�濓紝瀹屾垚缁戝畾寰俊鍙峰悗锛岀敵璇峰崟杩涘害灏嗛�氳繃寰俊鍏紬鍙烽�氱煡瓒呯骇绠$悊鍛橈紝寮曞瀹屾垚鍚庣画姝ラ */ + APPLYMENT_STATE_AUDITING = 1, + /**宸查┏鍥烇紝璇锋寜鐓ч┏鍥炲師鍥犱慨鏀圭敵璇疯祫鏂欙紝瓒呯骇绠$悊鍛樼敤寰俊鎵撳紑鈥滅绾﹂摼鎺モ�濓紝瀹屾垚缁戝畾寰俊鍙凤紝鍚庣画鐢宠鍗曡繘搴﹀皢閫氳繃寰俊鍏紬鍙烽�氱煡瓒呯骇绠$悊鍛� */ + APPLYMENT_STATE_REJECTED = 2, + /**寰呰处鎴烽獙璇侊紝璇疯秴绾х鐞嗗憳浣跨敤寰俊鎵撳紑杩斿洖鐨勨�滅绾﹂摼鎺モ�濓紝鏍规嵁椤甸潰鎸囧紩瀹屾垚璐︽埛楠岃瘉 */ + APPLYMENT_STATE_TO_BE_CONFIRMED = 3, + /**寰呯绾︼紝璇疯秴绾х鐞嗗憳浣跨敤寰俊鎵撳紑杩斿洖鐨勨�滅绾﹂摼鎺モ�濓紝鏍规嵁椤甸潰鎸囧紩瀹屾垚绛剧害 */ + APPLYMENT_STATE_TO_BE_SIGNED = 4, + /**寮�閫氭潈闄愪腑锛岀郴缁熷紑閫氱浉鍏虫潈闄愪腑锛岃鑰愬績绛夊緟 */ + APPLYMENT_STATE_SIGNING = 5, + /**宸插畬鎴愶紝鍟嗘埛鍏ラ┗鐢宠宸插畬鎴� */ + APPLYMENT_STATE_FINISHED = 6, + /**宸蹭綔搴燂紝鐢宠鍗曞凡琚挙閿� */ + APPLYMENT_STATE_CANCELED = 7, + } + + enum EnumWeChatPayApplymentSubjectType { + /**涓綋鎴凤紙钀ヤ笟鎵х収涓婄殑涓讳綋绫诲瀷涓�鑸负涓綋鎴枫�佷釜浣撳伐鍟嗘埛銆佷釜浣撶粡钀ワ級 */ + SUBJECT_TYPE_INDIVIDUAL = 0, + /**浼佷笟锛堣惀涓氭墽鐓т笂鐨勪富浣撶被鍨嬩竴鑸负鏈夐檺鍏徃銆佹湁闄愯矗浠诲叕鍙革級 */ + SUBJECT_TYPE_ENTERPRISE = 1, + /**鏀垮簻鏈哄叧锛堝寘鎷悇绾с�佸悇绫绘斂搴滄満鍏筹紝濡傛満鍏冲厷濮斻�佺◣鍔°�佹皯鏀裤�佷汉绀俱�佸伐鍟嗐�佸晢鍔°�佸競鐩戠瓑锛� */ + SUBJECT_TYPE_GOVERNMENT = 2, + /**浜嬩笟鍗曚綅锛堝寘鎷浗鍐呭悇绫讳簨涓氬崟浣嶏紝濡傦細鍖荤枟銆佹暀鑲层�佸鏍$瓑鍗曚綅锛� */ + SUBJECT_TYPE_INSTITUTIONS = 3, + /**绀句細缁勭粐锛堝寘鎷ぞ浼氬洟浣撱�佹皯鍔為潪浼佷笟銆佸熀閲戜細銆佸熀灞傜兢浼楁�ц嚜娌荤粍缁囥�佸啘鏉戦泦浣撶粡娴庣粍缁囩瓑缁勭粐锛� */ + SUBJECT_TYPE_OTHERS = 4, + } + interface ExportTaskCheckReceiveTaskUsersCommand { /** 浠诲姟Id */ id?: string; @@ -1536,6 +1665,24 @@ /** 閿欒鐮� */ errorCode?: string; data?: GetEnterpriseWalletTransactionQueryResult; + /** 鎵ц鎴愬姛 */ + success?: boolean; + /** 閿欒淇℃伅 */ + msg?: any; + /** 闄勫姞鏁版嵁 */ + extras?: any; + /** 鏃堕棿鎴� */ + timestamp?: number; + } + + interface FriendlyResultGetEnterpriseWeChatPayWalletQueryResult { + /** 璺熻釜Id */ + traceId?: string; + /** 鐘舵�佺爜 */ + code?: number; + /** 閿欒鐮� */ + errorCode?: string; + data?: GetEnterpriseWeChatPayWalletQueryResult; /** 鎵ц鎴愬姛 */ success?: boolean; /** 閿欒淇℃伅 */ @@ -2614,6 +2761,24 @@ /** 閿欒鐮� */ errorCode?: string; data?: OpenEnterpriseWalletCommandResult; + /** 鎵ц鎴愬姛 */ + success?: boolean; + /** 閿欒淇℃伅 */ + msg?: any; + /** 闄勫姞鏁版嵁 */ + extras?: any; + /** 鏃堕棿鎴� */ + timestamp?: number; + } + + interface FriendlyResultOpenEnterpriseWeChatPayWalletCommandResult { + /** 璺熻釜Id */ + traceId?: string; + /** 鐘舵�佺爜 */ + code?: number; + /** 閿欒鐮� */ + errorCode?: string; + data?: OpenEnterpriseWeChatPayWalletCommandResult; /** 鎵ц鎴愬姛 */ success?: boolean; /** 閿欒淇℃伅 */ @@ -3801,6 +3966,33 @@ /** 璁㈠崟鏀粯鏃堕棿 */ transDate?: string; transactionStatus?: EnumWalletTransactionStatus; + } + + interface GetEnterpriseWeChatPayWalletQueryResult { + /** 閽卞寘Id */ + id?: string; + /** 瓒呯骇绠$悊鍛樼绾﹂摼鎺� +1銆佽秴绾х鐞嗗憳鐢ㄥ井淇℃壂鐮侊紝鍏虫敞鈥滃井淇℃敮浠樺晢瀹跺姪鎵嬧�濆叕浼楀彿鍚庯紝鍏紬鍙峰皢鑷姩鍙戦�佺绾︽秷鎭紱瓒呯闇�鐐瑰嚮娑堟伅锛屾牴鎹寚寮曞畬鎴愭牳瀵硅仈绯讳俊鎭�佽处鎴烽獙璇併�佺绾︾瓑鎿嶄綔锛� +2銆佽秴绠″畬鎴愭牳瀵硅仈绯讳俊鎭紝鍚庣画鐢宠鍗曡繘搴﹀彲閫氳繃鍏紬鍙疯嚜鍔ㄩ�氱煡瓒呯骇绠$悊鍛� */ + sign_url?: string; + applyment_state?: EnumWeChatPayApplymentState; + /** 鐢宠鐘舵�佹弿杩� */ + applyment_state_msg?: string; + /** 椹冲洖鍘熷洜璇︽儏锛屽悇椤硅祫鏂欑殑瀹℃牳鎯呭喌锛屽綋鐢宠鐘舵�佷负APPLYMENT_STATE_REJECTED鏃舵墠杩斿洖 */ + audit_detail?: WeChatPayGetApplymentResponseAuditDetail[]; + /** 浣欓 */ + balance?: number; + /** 涓氬姟鐢宠缂栧彿 +1銆佸彧鑳界敱鏁板瓧銆佸瓧姣嶆垨涓嬪垝绾跨粍鎴愶紝寤鸿鍓嶇紑涓烘湇鍔″晢鍟嗘埛鍙凤紱 +2銆佹湇鍔″晢鑷畾涔夌殑鍞竴缂栧彿锛� +3銆佹瘡涓紪鍙峰搴斾竴涓敵璇峰崟锛屾瘡涓敵璇峰崟瀹℃牳閫氳繃鍚庝細鐢熸垚涓�涓井淇℃敮浠樺晢鎴峰彿銆� */ + business_code: string; + contact_info: WeChatPayApplymentBodyParametersContactInfo; + subject_info: WeChatPayApplymentBodyParametersSubjectInfo; + business_info: WeChatPayApplymentBodyParametersBusinessInfo; + settlement_info: WeChatPayApplymentBodyParametersSettlementInfo; + bank_account_info: WeChatPayApplymentBodyParametersBankAccountInfo; + addition_info?: WeChatPayApplymentBodyParametersAdditionInfo; } interface GetExceptionLogsQuery { @@ -5682,6 +5874,36 @@ signUrl?: string; } + interface OpenEnterpriseWeChatPayWalletCommand { + /** 浼佷笟Id */ + enterpriseId?: string; + /** 涓氬姟鐢宠缂栧彿 +1銆佸彧鑳界敱鏁板瓧銆佸瓧姣嶆垨涓嬪垝绾跨粍鎴愶紝寤鸿鍓嶇紑涓烘湇鍔″晢鍟嗘埛鍙凤紱 +2銆佹湇鍔″晢鑷畾涔夌殑鍞竴缂栧彿锛� +3銆佹瘡涓紪鍙峰搴斾竴涓敵璇峰崟锛屾瘡涓敵璇峰崟瀹℃牳閫氳繃鍚庝細鐢熸垚涓�涓井淇℃敮浠樺晢鎴峰彿銆� */ + business_code: string; + contact_info: WeChatPayApplymentBodyParametersContactInfo; + subject_info: WeChatPayApplymentBodyParametersSubjectInfo; + business_info: WeChatPayApplymentBodyParametersBusinessInfo; + settlement_info: WeChatPayApplymentBodyParametersSettlementInfo; + bank_account_info: WeChatPayApplymentBodyParametersBankAccountInfo; + addition_info?: WeChatPayApplymentBodyParametersAdditionInfo; + } + + interface OpenEnterpriseWeChatPayWalletCommandResult { + /** 閽卞寘Id */ + id?: string; + /** 瓒呯骇绠$悊鍛樼绾﹂摼鎺� +1銆佽秴绾х鐞嗗憳鐢ㄥ井淇℃壂鐮侊紝鍏虫敞鈥滃井淇℃敮浠樺晢瀹跺姪鎵嬧�濆叕浼楀彿鍚庯紝鍏紬鍙峰皢鑷姩鍙戦�佺绾︽秷鎭紱瓒呯闇�鐐瑰嚮娑堟伅锛屾牴鎹寚寮曞畬鎴愭牳瀵硅仈绯讳俊鎭�佽处鎴烽獙璇併�佺绾︾瓑鎿嶄綔锛� +2銆佽秴绠″畬鎴愭牳瀵硅仈绯讳俊鎭紝鍚庣画鐢宠鍗曡繘搴﹀彲閫氳繃鍏紬鍙疯嚜鍔ㄩ�氱煡瓒呯骇绠$悊鍛� */ + sign_url?: string; + applyment_state?: EnumWeChatPayApplymentState; + /** 鐢宠鐘舵�佹弿杩� */ + applyment_state_msg?: string; + /** 椹冲洖鍘熷洜璇︽儏锛屽悇椤硅祫鏂欑殑瀹℃牳鎯呭喌锛屽綋鐢宠鐘舵�佷负APPLYMENT_STATE_REJECTED鏃舵墠杩斿洖 */ + audit_detail?: WeChatPayGetApplymentResponseAuditDetail[]; + } + interface PagedListQueryPageModel { /** 琛屾暟 */ rows?: number; @@ -6672,6 +6894,626 @@ url?: string; } + interface WeChatPayApplymentBodyParametersAdditionInfo { + /** 娉曞畾浠h〃浜哄紑鎴锋壙璇哄嚱 +1銆佽涓婁紶娉曞畾浠h〃浜烘垨璐熻矗浜轰翰绗旂缃茬殑寮�鎴锋壙璇哄嚱鎵弿浠讹紙涓嬭浇妯℃澘锛夈�備翰绗旂鍚嶆壙璇哄嚱鍐呭娓呮櫚鍙锛屼笉寰楁湁娑傛薄锛岀牬鎹燂紝瀛楄抗涓嶆竻鏅扮幇璞★紱 +2銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID 銆� */ + legal_person_commitment?: string; + /** 娉曞畾浠h〃浜哄紑鎴锋剰鎰胯棰� +1銆佸缓璁硶瀹氫唬琛ㄤ汉鎸夊涓嬭瘽鏈綍鍒垛�滄硶瀹氫唬琛ㄤ汉寮�鎴锋剰鎰胯棰戔�濓細 +鎴戞槸#鍏徃鍏ㄧО#鐨勬硶瀹氫唬琛ㄤ汉锛堟垨璐熻矗浜猴級锛岀壒姝よ瘉鏄庢湰鍏徃鐢宠鐨勫晢鎴峰彿涓烘垜鍙哥湡瀹炴剰鎰垮紑绔嬩笖鐢ㄤ簬XX涓氬姟锛堟垨XX鏈嶅姟锛夈�傛垜鍙哥幇鏈変笟鍔$鍚堟硶寰嬫硶瑙勫強鑵捐鐨勭浉鍏宠瀹氥�� +2銆佹敮鎸佷笂浼�20M鍐呯殑瑙嗛锛屾牸寮忓彲涓篴vi銆亀mv銆乵peg銆乵p4銆乵ov銆乵kv銆乫lv銆乫4v銆乵4v銆乺mvb锛� +3銆佽濉啓閫氳繃瑙嗛涓婁紶API棰勫厛涓婁紶瑙嗛鐢熸垚濂界殑MediaID 銆� */ + legal_person_video?: string; + /** 琛ュ厖鏉愭枡 +1銆佹渶澶氬彲涓婁紶5寮犵収鐗囷紱 +2銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + business_addition_pics?: string[]; + /** 琛ュ厖璇存槑 +512瀛椾互鍐� */ + business_addition_msg?: string; + } + + interface WeChatPayApplymentBodyParametersBankAccountInfo { + bank_account_type: EnumWeChatPayApplymentBankAccountType; + /** 寮�鎴峰悕绉� +1銆侀�夋嫨鈥滅粡钀ヨ�呬釜浜洪摱琛屽崱鈥濇椂锛屽紑鎴峰悕绉板繀椤讳笌鈥滅粡钀ヨ�呰瘉浠跺鍚嶁�濅竴鑷达紱 +2銆侀�夋嫨鈥滃鍏摱琛岃处鎴封�濇椂锛屽紑鎴峰悕绉板繀椤讳笌钀ヤ笟鎵х収涓婄殑鈥滃晢鎴峰悕绉扳�濅竴鑷达紱 +3銆佽瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + account_name: string; + /** 寮�鎴烽摱琛� +瀵圭閾惰璋冪敤锛氭煡璇㈡敮鎸佷釜浜轰笟鍔$殑閾惰鍒楄〃API +瀵瑰叕閾惰璋冪敤锛氭煡璇㈡敮鎸佸鍏笟鍔$殑閾惰鍒楄〃API */ + account_bank: string; + /** 寮�鎴烽摱琛岀渷甯傜紪鐮� +璇ュ瓧娈靛嵆灏嗕笅绾垮鐞嗭紝鏃犻渶浼犲叆 +鑷冲皯绮剧‘鍒板競,璇︾粏鍙傝鐪佸競鍖虹紪鍙峰鐓ц〃 +娉細浠呭綋鐪佸競鍖虹紪鍙峰鐓ц〃涓棤瀵瑰簲鐨勭渷甯傚尯缂栧彿鏃讹紝鍙悜涓婂彇璇ラ摱琛屽搴斿競绾х紪鍙锋垨鐪佺骇缂栧彿銆� */ + bank_address_code?: string; + /** 寮�鎴烽摱琛岄摱琛屽彿 +1銆佹牴鎹紑鎴烽摱琛屾煡璇㈡帴鍙d腑鐨勨�滄槸鍚﹂渶瑕佸~鍐欐敮琛屸�濆垽鏂槸鍚﹂渶瑕佸~鍐欍�傚涓哄叾浠栭摱琛岋紝寮�鎴烽摱琛屽叏绉帮紙鍚敮琛岋級鍜屽紑鎴烽摱琛岃仈琛屽彿浜岄�変竴锛� +2銆佽缁嗛渶璋冪敤鏌ヨ鏀鍒楄〃API鏌ョ湅鏌ヨ缁撴灉銆� */ + bank_branch_id?: string; + /** 寮�鎴烽摱琛屽叏绉帮紙鍚敮琛岋級 +1銆佹牴鎹紑鎴烽摱琛屾煡璇㈡帴鍙d腑鐨勨�滄槸鍚﹂渶瑕佸~鍐欐敮琛屸�濆垽鏂槸鍚﹂渶瑕佸~鍐欍�傚涓哄叾浠栭摱琛岋紝寮�鎴烽摱琛屽叏绉帮紙鍚敮琛岋級鍜屽紑鎴烽摱琛岃仈琛屽彿浜岄�変竴锛� +2銆佽缁嗛渶璋冪敤鏌ヨ鏀鍒楄〃API鏌ョ湅鏌ヨ缁撴灉銆� */ + bank_name?: string; + /** 閾惰璐﹀彿 +1銆佹暟瀛楋紝闀垮害閬靛惊绯荤粺鏀寔鐨勫崱鍙烽暱搴﹁姹傝〃锛� +2銆佽瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + account_number: string; + } + + interface WeChatPayApplymentBodyParametersBusinessInfo { + /** 鍟嗘埛绠�绉� +鍦ㄦ敮浠樺畬鎴愰〉鍚戜拱瀹跺睍绀猴紝闇�涓庡井淇$粡钀ョ被鐩浉鍏� +1銆佽杈撳叆1-64涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +5銆佷粎鏀寔utf-8鏍煎紡锛� +6銆佺畝绉拌姹� +锛�1锛変笉鏀寔鍗曠函浠ヤ汉鍚嶆潵鍛藉悕锛岃嫢涓轰釜浣撴埛缁忚惀锛屽彲鐢ㄢ�滀釜浣撴埛+缁忚惀鑰呭悕绉扳�濇垨鈥滅粡钀ヨ�呭悕绉�+涓氬姟鈥濆懡鍚嶏紝濡傗�滀釜浣撴埛寮犱笁鈥濇垨鈥滃紶涓夐楗簵鈥濓紱 +锛�2锛変笉鏀寔鏃犲疄闄呮剰涔夌殑鏂囨锛屽鈥淴X鐗圭害鍟嗘埛鈥濄�佲��800鈥濄�佲�淴X瀹㈡湇鐢佃瘽XXX鈥濄�� */ + merchant_shortname: string; + /** 瀹㈡湇鐢佃瘽 +灏嗗湪浜ゆ槗璁板綍涓悜涔板灞曠ず锛岃纭繚鐢佃瘽鐣呴�氫互渚垮钩鍙板洖鎷ㄧ‘璁� +1銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +2銆侀渶婊¤冻浠ヤ笅浠讳竴鏉′欢锛� +11浣嶆暟瀛楃殑鎵嬫満鍙风爜锛� +5-20浣嶆暟瀛椼�佽繛瀛楃鈥�-鈥濄�佸姞鍙封��+鈥濄�� */ + service_phone: string; + sales_info: WeChatPayApplymentBodyParametersBusinessInfoSalesInfo; + } + + interface WeChatPayApplymentBodyParametersBusinessInfoSalesInfo { + /** 缁忚惀鍦烘櫙绫诲瀷 +1銆佽鍕鹃�夊疄闄呭敭鍗栧晢鍝�/鎻愪緵鏈嶅姟鍦烘櫙锛堣嚦灏戜竴椤癸級锛屼互渚夸负浣犲紑閫氶渶瑕佺殑鏀粯鏉冮檺锛� +2銆佸缓璁彧鍕鹃�夌洰鍓嶅繀椤荤殑鍦烘櫙锛屼互渚垮敖蹇�氳繃鍏ラ┗瀹℃牳锛屽叾浠栨敮浠樻潈闄愬彲鍦ㄥ叆椹诲悗鍐嶆牴鎹疄闄呴渶瑕佸彂璧风敵璇� */ + sales_scenes_type: EnumWeChatPayApplymentSalesScenesType[]; + biz_store_info?: WeChatPayApplymentBodyParametersBusinessInfoSalesInfoBizStoreInfo; + mp_info?: WeChatPayApplymentBodyParametersBusinessInfoSalesInfoMpInfo; + mini_program_info?: WeChatPayApplymentBodyParametersBusinessInfoSalesInfoMiniProgramInfo; + app_info?: WeChatPayApplymentBodyParametersBusinessInfoSalesInfoAppInfo; + web_info?: WeChatPayApplymentBodyParametersBusinessInfoSalesInfoWebInfo; + wework_info?: WeChatPayApplymentBodyParametersBusinessInfoSalesInfoWeworkInfo; + } + + interface WeChatPayApplymentBodyParametersBusinessInfoSalesInfoAppInfo { + /** 鏈嶅姟鍟嗗簲鐢ˋppID +1銆佹湇鍔″晢搴旂敤AppID涓庡晢瀹跺簲鐢ˋppID锛屼簩閫変竴蹇呭~锛� +2銆佸彲濉啓褰撳墠鏈嶅姟鍟嗗晢鎴峰彿宸茬粦瀹氱殑搴旂敤AppID銆� */ + app_appid?: string; + /** 鍟嗗搴旂敤AppID +1銆佹湇鍔″晢搴旂敤AppID涓庡晢瀹跺簲鐢ˋppID锛屼簩閫変竴蹇呭~锛� +2銆佸彲濉啓涓庡晢瀹朵富浣撲竴鑷翠笖宸茶璇佺殑搴旂敤AppID锛岄渶鏄凡璁よ瘉鐨凙pp锛� +3銆佸鏍搁�氳繃鍚庯紝绯荤粺灏嗗彂璧风壒绾﹀晢瀹跺晢鎴峰彿涓庤AppID鐨勭粦瀹氾紙鍗抽厤缃负sub_appid锛夛紝鏈嶅姟鍟嗛殢鍚庡彲鍦ㄥ彂璧锋敮浠樻椂閫夋嫨浼犲叆璇ppID锛屼互瀹屾垚鏀粯锛屽苟鑾峰彇sub_openid鐢ㄤ簬鏁版嵁缁熻锛岃惀閿�绛変笟鍔″満鏅�� */ + app_sub_appid?: string; + /** App鎴浘 +1銆佽鎻愪緵APP棣栭〉鎴浘銆佸熬椤垫埅鍥俱�佸簲鐢ㄥ唴鎴浘銆佹敮浠橀〉鎴浘鍚�1寮狅紱 +2銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + app_pics: string[]; + } + + interface WeChatPayApplymentBodyParametersBusinessInfoSalesInfoBizStoreInfo { + /** 绾夸笅鍦烘墍鍚嶇О +璇峰~鍐欓棬搴楀悕绉� +1銆侀暱搴︿负1-50涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +5銆佷粎鏀寔utf-8鏍煎紡銆� */ + biz_store_name: string; + /** 绾夸笅鍦烘墍鐪佸競缂栫爜 +1銆佸彧鑳界敱鏁板瓧缁勬垚锛� +2銆佽缁嗗弬瑙佸井淇℃敮浠樻彁渚涚殑鐪佸競瀵圭収琛ㄣ�� */ + biz_address_code: string; + /** 绾夸笅鍦烘墍鍦板潃 +璇峰~鍐欒缁嗙殑缁忚惀鍦烘墍淇℃伅锛屽鏈夊涓満鎵�锛岄�夋嫨涓�涓富瑕佸満鎵�濉啓鍗冲彲銆� +1銆侀暱搴︿负4-512涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +5銆佷粎鏀寔utf-8鏍煎紡銆� */ + biz_store_address: string; + /** 绾夸笅鍦烘墍闂ㄥご鐓х墖 +1銆佽涓婁紶闂ㄥご姝i潰鐓х墖锛堣姹傞棬搴楁嫑鐗屻�侀棬妗嗗畬鏁淬�佹竻鏅般�佸彲杈ㄨ瘑锛夛紱鑻ヤ负鍋滆溅鍦虹瓑鏃犲浐瀹氶棬澶寸収鐗囩殑缁忚惀鍦烘墍锛屽彲涓婁紶宀椾涵/鍑哄叆闂稿彛銆傚叿浣撳弬鑰冦�愭寚寮曟枃妗c�戯紱 +2銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + store_entrance_pic: string[]; + /** 绾夸笅鍦烘墍鍐呴儴鐓х墖 +1銆佽涓婁紶闂ㄥ簵鍐呴儴鐜鐓х墖锛堝彲杈ㄨ瘑缁忚惀鍐呭锛夈�傝嫢涓哄仠杞﹀満绛夋棤鍥哄畾闂ㄥご鐨勭粡钀ュ満鎵�锛屽彲涓婁紶鍋滆溅鍦哄唴閮ㄧ収鐗囥�傚叿浣撳弬鑰冦�愭寚寮曟枃妗c�戯紱 +2銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + indoor_pic: string[]; + /** 绾夸笅鍦烘墍瀵瑰簲鐨勫晢瀹禔ppID +1銆佸彲濉啓涓庡晢瀹朵富浣撲竴鑷翠笖宸茶璇佺殑鏈嶅姟鍙锋垨鍏紬鍙枫�佸皬绋嬪簭銆丄PP鐨凙ppID锛屽叾涓湇鍔″彿鎴栧叕浼楀彿AppID闇�鏄凡璁よ瘉鐨勬湇鍔″彿銆佹斂搴滄垨濯掍綋绫诲瀷鐨勫叕浼楀彿锛� +2銆佸鏍搁�氳繃鍚庯紝绯荤粺灏嗛澶栦负鍟嗗寮�閫氫粯娆剧爜鏀粯銆丣SAPI鏀粯鐨勮嚜鏈変氦鏄撴潈闄愶紝骞跺畬鎴愬晢瀹跺晢鎴峰彿涓庤AppID鐨勭粦瀹氥�� */ + biz_sub_appid?: string; + } + + interface WeChatPayApplymentBodyParametersBusinessInfoSalesInfoMiniProgramInfo { + /** 鏈嶅姟鍟嗗皬绋嬪簭AppID +1銆佹湇鍔″晢灏忕▼搴廇ppID涓庡晢瀹跺皬绋嬪簭AppID锛屼簩閫変竴蹇呭~锛� +2銆佸彲濉啓褰撳墠鏈嶅姟鍟嗗晢鎴峰彿宸茬粦瀹氱殑灏忕▼搴廇ppID銆� */ + mini_program_appid?: string; + /** 鍟嗗灏忕▼搴廇ppID +1銆佹湇鍔″晢灏忕▼搴廇ppID涓庡晢瀹跺皬绋嬪簭AppID锛屼簩閫変竴蹇呭~锛� +2銆佽濉啓宸茶璇佺殑灏忕▼搴廇ppID锛� +3銆佸畬鎴愯繘浠跺悗锛岀郴缁熷彂璧风壒绾﹀晢鎴峰彿涓庤AppID鐨勭粦瀹氾紙鍗抽厤缃负sub_appid鍙湪鍙戣捣鏀粯鏃朵紶鍏ワ級 +锛�1锛夎嫢AppID涓讳綋涓庡晢瀹朵富浣�/鏈嶅姟鍟嗕富浣撲竴鑷达紝鍒欑洿鎺ュ畬鎴愮粦瀹氾紱 +锛�2锛夎嫢AppID涓讳綋涓庡晢瀹朵富浣�/鏈嶅姟鍟嗕富浣撲笉涓�鑷达紝鍒欏晢鎴风绾︽椂鏄剧ず銆婅仈鍚堣惀杩愭壙璇哄嚱銆嬶紝骞朵笖AppID鐨勭鐞嗗憳闇�鐧诲綍鍏紬骞冲彴纭缁戝畾鎰忔効銆� */ + mini_program_sub_appid?: string; + /** 灏忕▼搴忔埅鍥� +1銆佽鎻愪緵灞曠ず鍟嗗搧/鏈嶅姟鐨勯〉闈㈡埅鍥�/璁捐绋匡紙鏈�澶�5寮狅級锛岃嫢灏忕▼搴忔湭寤鸿瀹屽杽鎴栨湭涓婄嚎 璇峰姟蹇呮彁渚涳紱 +2銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + mini_program_pics?: string[]; + } + + interface WeChatPayApplymentBodyParametersBusinessInfoSalesInfoMpInfo { + /** 鏈嶅姟鍟嗘湇鍔″彿鎴栧叕浼楀彿AppID +1銆佹湇鍔″晢鏈嶅姟鍙锋垨鍏紬鍙稟ppID銆佸晢瀹舵湇鍔″彿鎴栧叕浼楀彿AppID锛屼簩閫変竴蹇呭~锛� +2銆佸彲濉啓褰撳墠鏈嶅姟鍟嗗晢鎴峰彿宸茬粦瀹氱殑鏈嶅姟鍙锋垨鍏紬鍙稟ppID銆� */ + mp_appid?: string; + /** 鍟嗗鏈嶅姟鍙锋垨鍏紬鍙稟ppID +1銆佹湇鍔″晢鏈嶅姟鍙锋垨鍏紬鍙稟ppID銆佸晢瀹舵湇鍔″彿鎴栧叕浼楀彿AppID锛屼簩閫変竴蹇呭~锛� +2銆佸彲濉啓涓庡晢瀹朵富浣撲竴鑷翠笖宸茶璇佺殑鏈嶅姟鍙锋垨鍏紬鍙稟ppID锛岄渶鏄凡璁よ瘉鐨勬湇鍔″彿銆佹斂搴滄垨濯掍綋绫诲瀷鐨勫叕浼楀彿锛� +3銆佸鏍搁�氳繃鍚庯紝绯荤粺灏嗗彂璧风壒绾﹀晢瀹跺晢鎴峰彿涓庤AppID鐨勭粦瀹氾紙鍗抽厤缃负sub_appid锛夛紝鏈嶅姟鍟嗛殢鍚庡彲鍦ㄥ彂璧锋敮浠樻椂閫夋嫨浼犲叆璇ppid锛屼互瀹屾垚鏀粯锛屽苟鑾峰彇sub_openid鐢ㄤ簬鏁版嵁缁熻锛岃惀閿�绛変笟鍔″満鏅�� */ + mp_sub_appid?: string; + /** 鏈嶅姟鍙锋垨鍏紬鍙烽〉闈㈡埅鍥� +1銆佽鎻愪緵灞曠ず鍟嗗搧/鏈嶅姟鐨勯〉闈㈡埅鍥�/璁捐绋匡紙鏈�澶�5寮狅級锛岃嫢鏈嶅姟鍙锋垨鍏紬鍙锋湭寤鸿瀹屽杽鎴栨湭涓婄嚎璇峰姟蹇呮彁渚涳紱 +2銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + mp_pics: string[]; + } + + interface WeChatPayApplymentBodyParametersBusinessInfoSalesInfoWebInfo { + /** 浜掕仈缃戠綉绔欏煙鍚� +1銆佸涓篜C绔晢鍩庛�佹櫤鑳界粓绔瓑鍦烘櫙锛屽彲涓婁紶瀹樼綉閾炬帴锛� +2銆佺綉绔欏煙鍚嶉渶ICP澶囨锛岃嫢澶囨涓讳綋涓庣敵璇蜂富浣撲笉鍚岋紝璇蜂笂浼犲姞鐩栧叕绔犵殑缃戠珯鎺堟潈鍑姐�� */ + domain: string; + /** 缃戠珯鎺堟潈鍑� +1銆佽嫢澶囨涓讳綋涓庣敵璇蜂富浣撲笉鍚岋紝璇峰姟蹇呬笂浼犲姞鐩栧叕绔犵殑缃戠珯鎺堟潈鍑�.doc锛� +2銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + web_authorisation?: string; + /** 浜掕仈缃戠綉绔欏搴旂殑鍟嗗AppID +1銆佸彲濉啓宸茶璇佺殑鏈嶅姟鍙锋垨鍏紬鍙枫�佸皬绋嬪簭銆丄PP鐨凙ppID锛屽叾涓湇鍔″彿鎴栧叕浼楀彿AppID闇�鏄凡璁よ瘉鐨勬湇鍔″彿銆佹斂搴滄垨濯掍綋绫诲瀷鐨勫叕浼楀彿锛� +2銆佸畬鎴愯繘浠跺悗锛岀郴缁熷彂璧风壒绾﹀晢鎴峰彿涓庤AppID鐨勭粦瀹氾紙鍗抽厤缃负sub_appid锛屽彲鍦ㄥ彂璧锋敮浠樻椂浼犲叆锛� + 锛�1锛夎嫢APPID涓讳綋涓庡晢瀹朵富浣撲竴鑷达紝鍒欑洿鎺ュ畬鎴愮粦瀹氾紱 + 锛�2锛夎嫢APPID涓讳綋涓庡晢瀹朵富浣撲笉涓�鑷达紝鍒欏晢鎴风绾︽椂鏄剧ず銆婅仈鍚堣惀杩愭壙璇哄嚱銆嬶紝骞朵笖 AppID鐨勭鐞嗗憳闇�鐧诲綍鍏紬骞冲彴纭缁戝畾鎰忔効锛涳紙 鏆備笉鏀寔缁戝畾寮備富浣撶殑搴旂敤APPID锛夈�� */ + web_appid?: string; + } + + interface WeChatPayApplymentBodyParametersBusinessInfoSalesInfoWeworkInfo { + /** 鍟嗗浼佷笟寰俊CorpID +1銆佸彲濉啓涓庡晢瀹朵富浣撲竴鑷翠笖宸茶璇佺殑浼佷笟寰俊CorpID锛� +2銆佸鏍搁�氳繃鍚庯紝绯荤粺灏嗕负鍟嗗寮�閫氫紒涓氬井淇′笓鍖虹殑鑷湁浜ゆ槗鏉冮檺锛屽苟瀹屾垚鍟嗗鍟嗘埛鍙蜂笌璇ppID鐨勭粦瀹氾紝鍟嗗鍙嚜琛屽彂璧蜂氦鏄撱�� */ + sub_corp_id: string; + /** 浼佷笟寰俊椤甸潰鎴浘 +1銆佹渶澶氬彲涓婁紶5寮犵収鐗囷紱 +2銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + wework_pics: string[]; + } + + interface WeChatPayApplymentBodyParametersContactInfo { + contact_type: EnumWeChatPayApplymentContactType; + /** 瓒呯骇绠$悊鍛樺鍚� +1銆侀暱搴︿负2-100涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃銆� +璇ュ瓧娈甸渶瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + contact_name: string; + contact_id_doc_type?: EnumWeChatPayApplymentIdDocType; + /** 瓒呯骇绠$悊鍛樿韩浠借瘉浠跺彿鐮� +1銆佸綋瓒呯骇绠$悊鍛樼被鍨嬫槸缁忓姙浜烘椂锛岃涓婁紶瓒呯骇绠$悊鍛樿瘉浠跺彿鐮侊紱 +2銆佸彲浼犺韩浠借瘉銆佹潵寰�鍐呭湴閫氳璇併�佹潵寰�澶ч檰閫氳璇併�佹姢鐓х瓑璇佷欢鍙风爜锛屽彿鐮佽鑼冨涓嬶細 +韬唤璇侊紙闄愪腑鍥藉ぇ闄嗗眳姘戯級锛�17浣嶆暟瀛�+1浣嶆暟瀛梶X锛� +鎶ょ収锛堥檺澧冨浜哄+锛夛細4-15浣� 鏁板瓧|瀛楁瘝|杩炲瓧绗︼紱 +涓浗棣欐腐灞呮皯--鏉ュ線鍐呭湴閫氳璇侊細H/h寮�澶�+8鎴�10浣嶆暟瀛�/瀛楁瘝锛� +涓浗婢抽棬灞呮皯--鏉ュ線鍐呭湴閫氳璇侊細M/m寮�澶�+8鎴�10浣嶆暟瀛�/瀛楁瘝锛� +涓浗鍙版咕灞呮皯--鏉ュ線澶ч檰閫氳璇侊細8浣嶆暟瀛楁垨10浣嶆暟瀛楋紱 +澶栧浗浜哄眳鐣欒瘉锛�15浣� 鏁板瓧|瀛楁瘝锛� +鍙版咕灞呮皯灞呬綇璇�/娓境灞呮皯灞呬綇璇侊細17浣嶆暟瀛�+1浣嶆暟瀛梶X锛� +3銆佽秴绾х鐞嗗憳绛剧害鏃讹紝鏍¢獙寰俊鍙风粦瀹氱殑閾惰鍗″疄鍚嶄俊鎭紝鏄惁涓庤璇佷欢鍙风爜涓�鑷达紱 +4銆佽瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + contact_id_number?: string; + /** 瓒呯骇绠$悊鍛樿瘉浠舵闈㈢収鐗� +1銆佸綋瓒呯骇绠$悊鍛樼被鍨嬫槸缁忓姙浜烘椂锛岃涓婁紶瓒呯骇绠$悊鍛樿瘉浠剁殑姝i潰鐓х墖锛� +2銆佽嫢璇佷欢绫诲瀷涓鸿韩浠借瘉锛岃涓婁紶浜哄儚闈㈢収鐗囷紱 +3銆佹闈㈡媿鎽勩�佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +4銆佽涓婁紶褰╄壊鐓х墖鎴栧僵鑹叉壂鎻忎欢鎴栧鍗颁欢锛堥渶鍔犵洊鍏珷椴滅珷锛夛紝鍙坊鍔犫�滃井淇℃敮浠樷�濈浉鍏虫按鍗帮紙濡傚井淇℃敮浠樿璇侊級锛岃銆愭寚寮曟枃妗c�戯紱 +5銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + contact_id_doc_copy?: string; + /** 瓒呯骇绠$悊鍛樿瘉浠跺弽闈㈢収鐗� +1銆佸綋瓒呯骇绠$悊鍛樼被鍨嬫槸缁忓姙浜烘椂锛岃涓婁紶瓒呯骇绠$悊鍛樿瘉浠剁殑鍙嶉潰鐓х墖锛� +2銆佽嫢璇佷欢绫诲瀷涓烘姢鐓э紝鏃犻渶涓婁紶鍙嶉潰鐓х墖锛� +3銆佹闈㈡媿鎽勩�佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +4銆佽涓婁紶褰╄壊鐓х墖鎴栧僵鑹叉壂鎻忎欢锛屽鍗颁欢闇�鍔犵洊鍏珷椴滅珷锛屽彲娣诲姞鈥滃井淇℃敮浠樷�濈浉鍏虫按鍗帮紙濡傚井淇℃敮浠樿璇侊級锛岃銆愭寚寮曟枃妗c�戯紱 +5銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + contact_id_doc_copy_back?: string; + /** 瓒呯骇绠$悊鍛樿瘉浠舵湁鏁堟湡寮�濮嬫椂闂� +1銆佸綋瓒呯骇绠$悊鍛樼被鍨嬫槸缁忓姙浜烘椂锛岃涓婁紶璇佷欢鏈夋晥鏈熷紑濮嬫椂闂达紱 +2銆佽鎸夌収绀轰緥鍊煎~鍐欙紝鏃ユ湡鏍煎紡搴旀弧瓒冲悎娉曠殑YYYY-MM-DD鏍煎紡锛� +3銆佸紑濮嬫椂闂翠笉鑳藉皬浜�1900-01-01锛屽紑濮嬫椂闂翠笉鑳藉ぇ浜庣瓑浜庡綋鍓嶆棩鏈熴�� */ + contact_period_begin?: string; + /** 瓒呯骇绠$悊鍛樿瘉浠舵湁鏁堟湡缁撴潫鏃堕棿 +1銆佸綋瓒呯骇绠$悊鍛樼被鍨嬫槸缁忓姙浜烘椂锛岃涓婁紶璇佷欢鏈夋晥鏈熺粨鏉熸椂闂达紱 +2銆佽鎸夌収绀轰緥鍊煎~鍐欙紝鏃ユ湡鏍煎紡搴旀弧瓒冲悎娉曠殑YYYY-MM-DD鏍煎紡锛岃嫢璇佷欢鏈夋晥鏈熶负闀挎湡锛岃濉啓锛氶暱鏈燂紱 +3銆佺粨鏉熸椂闂村ぇ浜庡紑濮嬫椂闂淬�� */ + contact_period_end?: string; + /** 涓氬姟鍔炵悊鎺堟潈鍑� +璇ュ瓧娈靛嵆灏嗕笅绾垮鐞嗭紝鏃犻渶浼犲叆 +1銆佸綋瓒呯骇绠$悊鍛樼被鍨嬫槸缁忓姙浜烘椂锛岃涓婁紶涓氬姟鍔炵悊鎺堟潈鍑斤紱 +2銆佽鍙傜収绀轰緥鍥炬墦鍗颁笟鍔″姙鐞嗘巿鏉冨嚱锛屽叏閮ㄤ俊鎭渶鎵撳嵃锛屼笉鏀寔鎵嬪啓鍟嗘埛淇℃伅锛屽苟鍔犵洊鍏珷锛� +3銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + business_authorization_letter?: string; + /** 瓒呯骇绠$悊鍛樺井淇penID +璇ュ瓧娈甸�夊~锛岃嫢涓婁紶涓鸿秴绾х鐞嗗憳绛剧害鏃讹紝浼氭牎楠屽井淇″彿鏄惁涓庤寰俊OpenID涓�鑷� */ + openid?: string; + /** 鑱旂郴鎵嬫満 +1銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +2銆侀渶婊¤冻浠ヤ笅浠讳竴鏉′欢锛� +11浣嶆暟瀛楃殑鎵嬫満鍙风爜锛� +5-20浣嶆暟瀛椼�佽繛瀛楃鈥�-鈥濄�佸姞鍙封��+鈥濓紱 +3銆佺敤浜庢帴鏀跺井淇℃敮浠樼殑閲嶈绠$悊淇℃伅鍙婃棩甯告搷浣滈獙璇佺爜锛� +4銆佽瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + mobile_phone: string; + /** 鑱旂郴閭 +1銆佺敤浜庢帴鏀跺井淇℃敮浠樼殑寮�鎴烽偖浠跺強鏃ュ父涓氬姟閫氱煡锛� +2銆侀渶瑕佸甫@锛岄伒寰偖绠辨牸寮忔牎楠� 锛岃瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + contact_email: string; + } + + interface WeChatPayApplymentBodyParametersSettlementInfo { + /** 鍏ラ┗缁撶畻瑙勫垯ID +璇烽�夋嫨缁撶畻瑙勫垯ID锛岃缁嗗弬瑙佽垂鐜囩粨绠楄鍒欏鐓ц〃 */ + settlement_id: string; + /** 鎵�灞炶涓� +濉啓鎸囧畾琛屼笟鍚嶇О锛岃缁嗗弬瑙佽垂鐜囩粨绠楄鍒欏鐓ц〃 */ + qualification_type: string; + /** 鐗规畩璧勮川鍥剧墖 +1銆佷粎褰撳晢鎴烽�夋嫨浜嗗繀闇�鎻愪氦鐗规畩璧勮川鐨勮涓氭椂锛岄渶瑕佹彁渚涜椤硅祫鏂欙紱鑻ュ晢鎴烽�夋嫨浜嗘棤闇�鐗规畩璧勮川鐨勮涓氾紝鎴栨湭閫夋嫨琛屼笟鏃讹紝鏃犻渶鎻愪氦璇ラ」璧勬枡锛岃鎯呮煡鐪嬨�婅垂鐜囩粨绠楄鍒欏鐓ц〃銆嬶紱 +2銆佹渶澶氬彲涓婁紶5寮犵収鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + qualifications?: string[]; + /** 浼樻儬璐圭巼娲诲姩ID +閫夋嫨鎸囧畾娲诲姩ID锛屽鏋滃晢鎴锋湁鎰忓悜鎶ュ悕浼樻儬璐圭巼娲诲姩锛岃瀛楁蹇呭~銆傝缁嗗弬瑙併�婁紭鎯犺垂鐜囨椿鍔ㄥ鐓ц〃銆� */ + activities_id?: string; + /** 浼樻儬璐圭巼娲诲姩鍊� +鏍规嵁浼樻儬璐圭巼娲诲姩瑙勫垯锛岀敱鍚堜綔浼欎即鑷畾涔夊~鍐欙紝鏀寔涓や釜灏忔暟鐐癸紝闇�鍦ㄤ紭鎯犺垂鐜囨椿鍔↖D鎸囧畾璐圭巼鑼冨洿鍐� +锛�1锛�2023骞�7鏈�17鏃�-9鏈�17鏃ワ紝鍚勫悎浣滀紮浼村钩鍙板彲閫夋嫨鍙紶鍏モ�滄椿鍔ㄨ垂鐜囧�尖�濓紝鎴栧垎鍒紶鍏モ�滀俊鐢ㄥ崱浼樻儬娲诲姩璐圭巼鍊尖�� 涓� 鈥滈潪淇$敤鍗′紭鎯犳椿鍔ㄨ垂鐜囧�尖�濓紝鍙紶鍏モ�滄椿鍔ㄨ垂鐜囧�尖�濈殑鎯呭喌涓嬶紝骞冲彴灏嗗崗鍔╁皢鐢宠鍗曚腑鐨� 鈥滀紭鎯犳椿鍔ㄨ垂鐜囧�尖�� 鍥炲~鍏ユ柊澧炵殑 鈥滀俊鐢ㄥ崱浼樻儬娲诲姩璐圭巼鍊尖�� 涓� 鈥滈潪淇$敤鍗′紭鎯犳椿鍔ㄨ垂鐜囧�尖�濅腑 锛� +锛�2锛�2023骞�9鏈�18鏃ヨ捣锛屽钩鍙板皢涓嶅啀鎻愪緵濡備笂鍏煎鑳藉姏锛屽眾鏃朵粎鑳藉垎鍒紶鍏モ�滀俊鐢ㄥ崱浼樻儬娲诲姩璐圭巼鍊尖�� 涓� 鈥滈潪淇$敤鍗′紭鎯犳椿鍔ㄨ垂鐜囧�尖�濓紝鍚﹀垯鎺ュ彛灏嗕細鎶ラ敊銆備负閬垮厤褰卞搷姝e父杩涗欢锛岃鍦ㄥ吋瀹规湡闂村畬鎴愮浉鍏宠皟鏁淬�� */ + activities_rate?: string; + /** 浼樻儬璐圭巼娲诲姩琛ュ厖鏉愭枡 +1銆佹牴鎹墍閫変紭鎯犺垂鐜囨椿鍔紝鎻愪緵鐩稿叧鏉愭枡锛岃缁嗗弬瑙併�婁紭鎯犺垂鐜囨椿鍔ㄥ鐓ц〃銆嬶紱 +2銆佹渶澶氬彲涓婁紶5寮犵収鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + activities_additions?: string[]; + /** 闈炰俊鐢ㄥ崱娲诲姩璐圭巼鍊� +鐢ㄦ埛鏀粯鏂瑰紡涓哄�熻鍗℃椂鏀跺彇鐨勬墜缁垂璐圭巼锛� +1銆佽嫢濉啓浜嗕紭鎯犺垂鐜囨椿鍔↖D锛屽垯璇ュ瓧娈靛繀濉紱 +2銆佷粎鑳藉~鍏�2浣嶄互鍐呭皬鏁帮紝涓斿湪浼樻儬璐圭巼娲诲姩ID鎸囧畾璐圭巼鑼冨洿鍐呫�� */ + debit_activities_rate?: string; + /** 淇$敤鍗℃椿鍔ㄨ垂鐜囧�� +鐢ㄦ埛鏀粯鏂瑰紡涓轰俊鐢ㄥ崱鏃舵敹鍙栫殑鎵嬬画璐硅垂鐜囷細 +1銆佽嫢濉啓浜嗕紭鎯犺垂鐜囨椿鍔↖D锛屽垯璇ュ瓧娈靛繀濉紱 +2銆佷粎鑳藉~鍏�2浣嶄互鍐呭皬鏁帮紝涓斿湪浼樻儬璐圭巼娲诲姩ID鎸囧畾璐圭巼鑼冨洿鍐呫�� */ + credit_activities_rate?: string; + } + + interface WeChatPayApplymentBodyParametersSubjectInfo { + subject_type: EnumWeChatPayApplymentSubjectType; + /** 鏄惁鏄噾铻嶆満鏋� +閫夊~锛岃鏍规嵁鐢宠涓讳綋鐨勫疄闄呮儏鍐靛~鍐欙紝鍙弬鑰冮�夋嫨閲戣瀺鏈烘瀯鎸囧紩锛� +1銆佽嫢鍟嗘埛涓讳綋鏄噾铻嶆満鏋勶紝鍒欏~鍐欙細true锛� +2銆佽嫢鍟嗘埛涓讳綋涓嶆槸閲戣瀺鏈烘瀯锛屽垯濉啓锛歠alse銆� +鑻ユ湭浼犲叆灏嗛粯璁ゅ~鍐欙細false銆� */ + finance_institution?: boolean; + business_license_info?: WeChatPayApplymentBodyParametersSubjectInfoBusinessLicenseInfo; + certificate_info?: WeChatPayApplymentBodyParametersSubjectInfoCertificateInfo; + finance_institution_info?: WeChatPayApplymentBodyParametersSubjectInfoFinanceInstitutionInfo; + identity_info: WeChatPayApplymentBodyParametersSubjectInfoIdentityInfo; + /** 鏈�缁堝彈鐩婁汉淇℃伅鍒楄〃(UBO) +1銆佷富浣撶被鍨嬩釜浣撴埛/绀句細缁勭粐/鏀垮簻鏈哄叧/浜嬩笟鍗曚綅鏃讹紝鏃犻渶濉啓 +2銆佷富浣撶被鍨嬩负浼佷笟鏃讹紝鎸夌収涓嬭堪瑕佹眰濉啓 +1锛夎嫢缁忚惀鑰�/娉曞畾浠h〃浜轰笉鏄渶缁堝彈鐩婃墍鏈変汉锛屽垯闇�鎻愬~鍐欏彈鐩婃墍鏈変汉淇℃伅锛屾渶澶氫笂浼�4涓�� +2锛夎嫢缁忚惀鑰�/娉曞畾浠h〃浜烘槸鏈�缁堝彈鐩婃墍鏈変汉涔嬩竴锛屽彲鍦ㄦ濉啓鍏朵粬鍙楃泭鎵�鏈変汉淇℃伅锛屾渶澶氫笂浼�3涓�� +鏍规嵁鍥藉鐩稿叧娉曞緥娉曡锛岄渶瑕佹彁渚涘叕鍙稿彈鐩婃墍鏈変汉淇℃伅锛屽彈鐩婃墍鏈変汉闇�绗﹀悎鑷冲皯浠ヤ笅鏉′欢涔嬩竴锛� +鈻笍鐩存帴鎴栬�呴棿鎺ユ嫢鏈夎秴杩�25%鍏徃鑲℃潈鎴栬�呰〃鍐虫潈鐨勮嚜鐒朵汉銆� +鈻笍閫氳繃浜轰簨銆佽储鍔$瓑鍏朵粬鏂瑰紡瀵瑰叕鍙歌繘琛屾帶鍒剁殑鑷劧浜恒�� +鈻笍鍏徃鐨勯珮绾х鐞嗕汉鍛橈紝鍖呮嫭鍏徃鐨勭粡鐞嗐�佸壇缁忕悊銆佽储鍔¤礋璐d汉銆佷笂甯傚叕鍙歌懀浜嬩細绉樹功鍜屽叕鍙哥珷绋嬭瀹氱殑鍏朵粬浜哄憳銆� */ + ubo_info_list?: WeChatPayApplymentBodyParametersSubjectInfoUboInfo[]; + } + + interface WeChatPayApplymentBodyParametersSubjectInfoBusinessLicenseInfo { + /** 钀ヤ笟鎵х収鐓х墖 +1銆佺収鐗囧簲姝i潰鎷嶆憚銆佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +2銆佷笂浼犲僵鑹茬収鐗囥�佸僵鑹叉壂鎻忎欢锛屽鍗颁欢闇�鍔犵洊鍏珷椴滅珷锛� +3銆佹按鍗颁粎闄愪簬寰俊鏀粯涓氬姟鐩稿叧锛� +4銆佹寚寮曚笌绀轰緥鍙弬鑰冦�愭寚寮曟枃妗c�戯紱 +5銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + license_copy: string; + /** 娉ㄥ唽鍙�/缁熶竴绀句細淇$敤浠g爜 +1銆佷富浣撲负鈥滀釜浣撳伐鍟嗘埛鈥濇椂锛岃濉啓钀ヤ笟鎵х収涓婄殑娉ㄥ唽鍙�/缁熶竴绀句細淇$敤浠g爜锛屾牸寮忛渶婊¤冻浠ヤ笅浠讳竴鏉′欢锛� +-15浣嶆暟瀛楋紱 +-18浣嶉樋鎷変集鏁板瓧鎴栧ぇ鍐欒嫳鏂囧瓧姣嶏紙涓嶅緱鍖呭惈鑻辨枃瀛楁瘝I/O/Z/S/V锛夛紝骞朵笖浠�9寮�澶淬�� +2銆佷富浣撲负鈥滀紒涓氣�濇椂锛岃濉啓钀ヤ笟鎵х収涓婄殑娉ㄥ唽鍙�/缁熶竴绀句細淇$敤浠g爜锛屾牸寮忓涓嬶細 +-18浣嶉樋鎷変集鏁板瓧鎴栧ぇ鍐欒嫳鏂囧瓧姣嶏紙涓嶅緱鍖呭惈鑻辨枃瀛楁瘝I/O/Z/S/V锛夛紝骞朵笖浠�9寮�澶淬�� */ + license_number: string; + /** 鍟嗘埛鍚嶇О +1銆侀暱搴︿负2-128涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +5銆佷粎鏀寔utf-8鏍煎紡锛� +6銆佷釜浣撴埛璇佷欢涓轰互涓嬫儏鍐垫椂锛屾寜鐓т釜浣撴埛XXX鍛藉悕锛圶XX鏄惀涓氭墽鐓х粡钀ヤ汉濮撳悕锛夛細钀ヤ笟鎵х収鐧昏鍚嶇О涓虹┖銆佷粎鍚暟瀛椼�佷粎鍚壒娈婂瓧绗︺�佲�滄棤鈥濄�佲�滄棤瀛楀彿鈥濓紱 +7銆佷釜浣撴埛涓嶈兘浣跨敤鈥滀紒涓氣�濃�滃叕鍙糕�濇垨鈥滃啘姘戜笓涓氬悎浣滅ぞ鈥濈粨灏俱�� */ + merchant_name: string; + /** 涓綋鎴风粡钀ヨ��/娉曞畾浠h〃浜哄鍚� +璇峰~鍐欒惀涓氭墽鐓х殑缁忚惀鑰�/娉曞畾浠h〃浜哄鍚� +1銆侀暱搴︿负2-100涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃銆� */ + legal_person: string; + /** 娉ㄥ唽鍦板潃 +寤鸿濉啓钀ヤ笟鎵х収鐨勬敞鍐屽湴鍧�锛岃嫢璇ュ瓧娈垫湭濉啓锛岀郴缁熷皢浼氭煡璇㈠浗瀹跺伐鍟嗕俊鎭~鍏ャ�傞渶娉ㄦ剰鑻ュ伐鍟嗕俊鎭煡璇笉鍒帮紝鍒欎細琚鏍搁┏鍥炪�� +1銆侀暱搴︿负4-128涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +5銆佷粎鏀寔utf-8鏍煎紡銆� */ + license_address?: string; + /** 鏈夋晥鏈熼檺寮�濮嬫棩鏈� +寤鸿濉啓钀ヤ笟鎵х収鐨勬湁鏁堟湡闄愬紑濮嬫椂闂达紝鑻ヨ瀛楁鏈~鍐欙紝绯荤粺灏嗕細鏌ヨ鍥藉宸ュ晢淇℃伅濉叆銆傞渶娉ㄦ剰鑻ュ伐鍟嗕俊鎭煡璇笉鍒帮紝鍒欎細琚鏍搁┏鍥炪�� +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡锛� +2銆佸紑濮嬫椂闂翠笉鑳藉皬浜�1900-01-01锛� +3銆佸紑濮嬫椂闂翠笉鑳藉ぇ浜庣瓑浜庡綋鍓嶆棩鏈熴�� */ + period_begin?: string; + /** 鏈夋晥鏈熼檺缁撴潫鏃ユ湡 +寤鸿濉啓钀ヤ笟鎵х収鐨勬湁鏁堟湡闄愮粨鏉熸椂闂达紝鑻ヨ瀛楁鏈~鍐欙紝绯荤粺灏嗕細鏌ヨ鍥藉宸ュ晢淇℃伅濉叆銆傞渶娉ㄦ剰鑻ュ伐鍟嗕俊鎭煡璇笉鍒帮紝鍒欎細琚鏍搁┏鍥炪�� +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡鎴栭暱鏈燂紱 +2銆佺粨鏉熸椂闂撮渶澶т簬寮�濮嬫椂闂淬�� */ + period_end?: string; + } + + interface WeChatPayApplymentBodyParametersSubjectInfoCertificateInfo { + /** 鐧昏璇佷功鐓х墖 +1銆佺収鐗囧簲姝i潰鎷嶆憚銆佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +2銆佷笂浼犲僵鑹茬収鐗囥�佸僵鑹叉壂鎻忎欢锛屽鍗颁欢闇�鍔犵洊鍏珷椴滅珷锛� +3銆佹按鍗颁粎闄愪簬寰俊鏀粯涓氬姟鐩稿叧锛� +4銆佹寚寮曚笌绀轰緥鍙弬鑰冦�愭寚寮曟枃妗c�戯紱 +5銆佽濉啓閫氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + cert_copy: string; + cert_type: EnumWeChatPayApplymentCertType; + /** 璇佷功鍙� +璇疯緭鍏ヤ笌鎵�閫夎瘉涔︾被鍨嬬浉鍖归厤涓旂鍚堝浗瀹舵爣鍑嗚鑼冪殑璇佷功鍙凤紝鍏朵腑闄ゆ斂搴滆瘉鏄庢枃浠跺锛岄渶婊¤冻18浣嶉樋鎷変集鏁板瓧鎴栧ぇ鍐欒嫳鏂囧瓧姣嶏紙涓嶅緱鍖呭惈鑻辨枃瀛楁瘝I/O/Z/S/V锛� */ + cert_number: string; + /** 鍟嗘埛鍚嶇О +璇峰~鍐欑櫥璁拌瘉涔︿笂鐨勫晢鎴峰悕绉� +1銆侀暱搴︿负2-128涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +5銆佷粎鏀寔utf-8鏍煎紡銆� */ + merchant_name: string; + /** 娉ㄥ唽鍦板潃 +璇峰~鍐欑櫥璁拌瘉涔︾殑娉ㄥ唽鍦板潃 +1銆侀暱搴︿负4-128涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +5銆佷粎鏀寔utf-8鏍煎紡銆� */ + company_address: string; + /** 娉曞畾浠h〃浜� +璇峰~鍐欑櫥璁拌瘉涔︿笂鐨勬硶瀹氫唬琛ㄤ汉濮撳悕 +1銆侀暱搴︿负2-100涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃銆� */ + legal_person: string; + /** 鏈夋晥鏈熼檺寮�濮嬫棩鏈� +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡锛� +2銆佸紑濮嬫椂闂翠笉鑳藉皬浜�1900-01-01锛� +3銆佸紑濮嬫椂闂翠笉鑳藉ぇ浜庣瓑浜庡綋鍓嶆棩鏈熴�� */ + period_begin: string; + /** 鏈夋晥鏈熼檺缁撴潫鏃ユ湡 +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡鎴栭暱鏈燂紱 +2銆佺粨鏉熸椂闂撮渶澶т簬寮�濮嬫椂闂淬�� */ + period_end: string; + /** 鍗曚綅璇佹槑鍑界収鐗� +1銆佷富浣撶被鍨嬩负鏀垮簻鏈哄叧銆佷簨涓氬崟浣嶉�変紶锛� + 锛�1锛夎嫢涓婁紶锛屽垯瀹℃牳閫氳繃鍚庡嵆鍙绾︼紝鏃犻渶姹囨楠岃瘉锛� + 锛�2锛夎嫢鏈笂浼狅紝鍒欏鏍搁�氳繃鍚庯紝闇�姹囨楠岃瘉銆� +2銆佷富浣撲负涓綋鎴枫�佷紒涓氥�佸叾浠栫粍缁囩瓑锛屼笉闇�瑕佷笂浼犳湰瀛楁锛� +3銆佽鍙傜収绀轰緥鍥炬墦鍗板崟浣嶈瘉鏄庡嚱锛屽叏閮ㄤ俊鎭渶鎵撳嵃锛屼笉鏀寔鎵嬪啓鍟嗘埛淇℃伅锛屽苟鍔犵洊鍏珷锛� +4銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + certificate_letter_copy?: string; + } + + interface WeChatPayApplymentBodyParametersSubjectInfoFinanceInstitutionInfo { + finance_type: EnumWeChatPayApplymentFinanceType; + /** 閲戣瀺鏈烘瀯璁稿彲璇佸浘鐗� +1銆佺収鐗囧簲姝i潰鎷嶆憚銆佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +2銆佷笂浼犲僵鑹茬収鐗囥�佸僵鑹叉壂鎻忎欢锛屽鍗颁欢闇�鍔犵洊鍏珷椴滅珷锛� +3銆佹按鍗颁粎闄愪簬寰俊鏀粯涓氬姟鐩稿叧锛� +4銆佹牴鎹墍灞為噾铻嶆満鏋勭被鍨嬬殑璁稿彲璇佽姹傛彁渚涳紝璇︽儏鏌ョ湅閲戣瀺鏈烘瀯鎸囧紩锛� +5銆佽鎻愪緵涓衡�滅敵璇峰晢瀹朵富浣撯�濇墍灞炵殑璁稿彲璇侊紝鍙巿鏉冧娇鐢ㄦ�诲叕鍙�/鍒嗗叕鍙哥殑鐗规畩璧勮川锛� +6銆佹渶澶氬彲涓婁紶5寮犵収鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + finance_license_pics: string[]; + } + + interface WeChatPayApplymentBodyParametersSubjectInfoIdentityInfo { + id_holder_type?: EnumWeChatPayApplymentIdHolderType; + id_doc_type?: EnumWeChatPayApplymentIdDocType; + /** 娉曞畾浠h〃浜鸿鏄庡嚱 +1銆佸綋璇佷欢鎸佹湁浜虹被鍨嬩负缁忓姙浜烘椂锛屽繀椤讳笂浼犮�傚叾浠栨儏鍐碉紝鏃犻渶涓婁紶锛� +2銆佽嫢鍥犵壒娈婃儏鍐碉紝鏃犳硶鎻愪緵娉曞畾浠h〃浜鸿瘉浠舵椂锛岃鍙傜収绀轰緥鍥炬墦鍗版硶瀹氫唬琛ㄤ汉璇存槑鍑斤紝鍏ㄩ儴淇℃伅闇�鎵撳嵃锛屼笉鏀寔鎵嬪啓鍟嗘埛淇℃伅锛屽苟鍔犵洊鍏珷锛� +3銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + authorize_letter_copy?: string; + id_card_info?: WeChatPayApplymentBodyParametersSubjectInfoIdentityInfoIdCardInfo; + id_doc_info?: WeChatPayApplymentBodyParametersSubjectInfoIdentityInfoIdDocInfo; + } + + interface WeChatPayApplymentBodyParametersSubjectInfoIdentityInfoIdCardInfo { + /** 韬唤璇佷汉鍍忛潰鐓х墖 +1銆佽涓婁紶涓綋鎴风粡钀ヨ��/娉曞畾浠h〃浜虹殑韬唤璇佷汉鍍忛潰鐓х墖锛� +2銆佹闈㈡媿鎽勩�佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +3銆佽涓婁紶褰╄壊鐓х墖or褰╄壊鎵弿浠讹紝澶嶅嵃浠堕渶鍔犵洊鍏珷椴滅珷锛屽彲娣诲姞鈥滃井淇℃敮浠樷�濈浉鍏虫按鍗帮紙濡傚井淇℃敮浠樿璇侊級锛岃銆愭寚寮曟枃妗c�戯紱 +4銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + id_card_copy: string; + /** 韬唤璇佸浗寰介潰鐓х墖 +1銆佽涓婁紶涓綋鎴风粡钀ヨ��/娉曞畾浠h〃浜虹殑韬唤璇佸浗寰介潰鐓х墖锛� +2銆佹闈㈡媿鎽勩�佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +3銆佽涓婁紶褰╄壊鐓х墖or褰╄壊鎵弿浠讹紝澶嶅嵃浠堕渶鍔犵洊鍏珷椴滅珷锛屽彲娣诲姞鈥滃井淇℃敮浠樷�濈浉鍏虫按鍗帮紙濡傚井淇℃敮浠樿璇侊級锛岃銆愭寚寮曟枃妗c�戯紱 +4銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + id_card_national: string; + /** 韬唤璇佸鍚� +1銆佽濉啓涓綋鎴风粡钀ヨ��/娉曞畾浠h〃浜哄搴旇韩浠借瘉鐨勫鍚嶏紱 +2銆侀暱搴︿负2-100涓瓧绗︼紱 +3銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +4銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +5銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +6銆佽瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + id_card_name: string; + /** 韬唤璇佸彿鐮� +1銆佽濉啓涓綋鎴风粡钀ヨ��/娉曞畾浠h〃浜哄搴旇韩浠借瘉鐨勫彿鐮侊紱 +2銆�17浣嶆暟瀛�+1浣嶆暟瀛梶X 锛岃瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + id_card_number: string; + /** 韬唤璇佸眳浣忓湴鍧� +1銆佷富浣撶被鍨嬩负浼佷笟鏃讹紝闇�瑕佸~鍐欍�傚叾浠栦富浣撶被鍨嬶紝鏃犻渶涓婁紶锛� +2銆佽鎸夌収韬唤璇佷綇鍧�濉啓锛屽骞夸笢鐪佹繁鍦冲競鍗楀北鍖簒x璺痻x鍙穢x瀹わ紱 +3銆侀暱搴︿负4-128涓瓧绗︼紱 +4銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +5銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +6銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +7銆佷粎鏀寔utf-8鏍煎紡锛� +8銆� 璇ュ瓧娈甸渶瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + id_card_address?: string; + /** 韬唤璇佹湁鏁堟湡寮�濮嬫椂闂� +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡锛� +2銆佸紑濮嬫椂闂翠笉鑳藉皬浜�1900-01-01锛� +3銆佸紑濮嬫椂闂翠笉鑳藉ぇ浜庣瓑浜庡綋鍓嶆棩鏈熴�� */ + card_period_begin: string; + /** 韬唤璇佹湁鏁堟湡缁撴潫鏃堕棿 +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡鎴栭暱鏈燂紱 +2銆佺粨鏉熸椂闂撮渶澶т簬寮�濮嬫椂闂淬�� */ + card_period_end: string; + } + + interface WeChatPayApplymentBodyParametersSubjectInfoIdentityInfoIdDocInfo { + /** 璇佷欢姝i潰鐓х墖 +1銆佽瘉浠剁被鍨嬩笉涓衡�滆韩浠借瘉鈥濇椂锛屼笂浼犺瘉浠舵闈㈢収鐗囷紱 +2銆佹闈㈡媿鎽勩�佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +3銆佽涓婁紶褰╄壊鐓х墖or褰╄壊鎵弿浠讹紝澶嶅嵃浠堕渶鍔犵洊鍏珷椴滅珷锛屽彲娣诲姞鈥滃井淇℃敮浠樷�濈浉鍏虫按鍗帮紙濡傚井淇℃敮浠樿璇侊級锛岃銆愭寚寮曟枃妗c�戯紱 +4銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + id_doc_copy: string; + /** 璇佷欢鍙嶉潰鐓х墖 +1銆佽嫢璇佷欢绫诲瀷涓哄線鏉ラ�氳璇併�佸鍥戒汉灞呯暀璇併�佹腐婢冲眳浣忚瘉銆佸彴婀惧眳浣忚瘉鏃讹紝涓婁紶璇佷欢鍙嶉潰鐓х墖锛� +2銆佽嫢璇佷欢绫诲瀷涓烘姢鐓э紝鏃犻渶涓婁紶鍙嶉潰鐓х墖锛� +3銆佹闈㈡媿鎽勩�佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +4銆佽涓婁紶褰╄壊鐓х墖or褰╄壊鎵弿浠讹紝澶嶅嵃浠堕渶鍔犵洊鍏珷椴滅珷锛屽彲娣诲姞鈥滃井淇℃敮浠樷�濈浉鍏虫按鍗帮紙濡傚井淇℃敮浠樿璇侊級锛岃銆愭寚寮曟枃妗c�戯紱 +5銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + id_doc_copy_back?: string; + /** 璇佷欢濮撳悕 +1銆佽濉啓缁忚惀鑰�/娉曞畾浠h〃浜虹殑璇佷欢濮撳悕锛� +2銆侀暱搴︿负2-100涓瓧绗︼紱 +3銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +4銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +5銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +6銆佽瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + id_doc_name: string; + /** 璇佷欢鍙风爜 +1銆佽濉啓缁忚惀鑰�/娉曞畾浠h〃浜虹殑璇佷欢鍙风爜锛� +鎶ょ収锛堥檺澧冨浜哄+锛夛細4-15浣� 鏁板瓧|瀛楁瘝|杩炲瓧绗︼紱 +涓浗棣欐腐灞呮皯--鏉ュ線鍐呭湴閫氳璇侊細H/h寮�澶�+8鎴�10浣嶆暟瀛�/瀛楁瘝锛� +涓浗婢抽棬灞呮皯--鏉ュ線鍐呭湴閫氳璇侊細M/m寮�澶�+8鎴�10浣嶆暟瀛�/瀛楁瘝锛� +涓浗鍙版咕灞呮皯--鏉ュ線澶ч檰閫氳璇侊細8浣嶆暟瀛楁垨10浣嶆暟瀛楋紱 +澶栧浗浜哄眳鐣欒瘉锛�15浣� 鏁板瓧|瀛楁瘝锛� +鍙版咕灞呮皯灞呬綇璇�/娓境灞呮皯灞呬綇璇侊細17浣嶆暟瀛�+1浣嶆暟瀛梶X锛� +2銆佽瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + id_doc_number: string; + /** 璇佷欢灞呬綇鍦板潃 +1銆佷富浣撶被鍨嬩负浼佷笟鏃讹紝闇�瑕佸~鍐欍�傚叾浠栦富浣撶被鍨嬶紝鏃犻渶涓婁紶锛� +2銆佽鎸夌収韬唤璇佷綇鍧�濉啓锛屽骞夸笢鐪佹繁鍦冲競鍗楀北鍖簒x璺痻x鍙穢x瀹わ紱 +3銆侀暱搴︿负4-128涓瓧绗︼紱 +4銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +5銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +6銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +7銆佷粎鏀寔utf-8鏍煎紡锛� +8銆� 璇ュ瓧娈甸渶瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + id_doc_address?: string; + /** 璇佷欢鏈夋晥鏈熷紑濮嬫椂闂� +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡锛� +2銆佸紑濮嬫椂闂翠笉鑳藉皬浜�1900-01-01锛� +3銆佸紑濮嬫椂闂翠笉鑳藉ぇ浜庣瓑浜庡綋鍓嶆棩鏈熴�� */ + doc_period_begin: string; + /** 璇佷欢鏈夋晥鏈熺粨鏉熸椂闂� +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡鎴栭暱鏈燂紱 +2銆佺粨鏉熸椂闂撮渶澶т簬寮�濮嬫椂闂淬�� */ + doc_period_end: string; + } + + interface WeChatPayApplymentBodyParametersSubjectInfoUboInfo { + ubo_id_doc_type: EnumWeChatPayApplymentIdDocType; + /** 璇佷欢姝i潰鐓х墖 +1銆佽涓婁紶鍙楃泭浜鸿瘉浠剁殑姝i潰鐓х墖锛� +2銆佽嫢璇佷欢绫诲瀷涓鸿韩浠借瘉锛岃涓婁紶浜哄儚闈㈢収鐗囷紱 +3銆佹闈㈡媿鎽勩�佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +4銆佽涓婁紶褰╄壊鐓х墖or褰╄壊鎵弿浠讹紝澶嶅嵃浠堕渶鍔犵洊鍏珷椴滅珷锛屽彲娣诲姞鈥滃井淇℃敮浠樷�濈浉鍏虫按鍗帮紙濡傚井淇℃敮浠樿璇侊級锛岃銆愭寚寮曟枃妗c�戯紱 +5銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + ubo_id_doc_copy: string; + /** 璇佷欢鍙嶉潰鐓х墖 +1銆佽涓婁紶鍙楃泭浜鸿瘉浠剁殑鍙嶉潰鐓х墖锛� +2銆佽嫢璇佷欢绫诲瀷涓鸿韩浠借瘉锛岃涓婁紶鍥藉窘闈㈢収鐗囷紱 +3銆佽嫢璇佷欢绫诲瀷涓烘姢鐓э紝鏃犻渶涓婁紶鍙嶉潰鐓х墖锛� +4銆佹闈㈡媿鎽勩�佹竻鏅般�佸洓瑙掑畬鏁淬�佹棤鍙嶅厜鎴栭伄鎸★紱涓嶅緱缈绘媿銆佹埅鍥俱�侀暅鍍忋�丳S锛� +5銆佽涓婁紶褰╄壊鐓х墖or褰╄壊鎵弿浠讹紝澶嶅嵃浠堕渶鍔犵洊鍏珷椴滅珷锛屽彲娣诲姞鈥滃井淇℃敮浠樷�濈浉鍏虫按鍗帮紙濡傚井淇℃敮浠樿璇侊級锛岃銆愭寚寮曟枃妗c�戯紱 +6銆佸彲涓婁紶1寮犲浘鐗囷紝璇峰~鍐欓�氳繃鍥剧墖涓婁紶API棰勫厛涓婁紶鍥剧墖鐢熸垚濂界殑MediaID銆� */ + ubo_id_doc_copy_back?: string; + /** 璇佷欢濮撳悕 +1銆侀暱搴︿负2-100涓瓧绗︼紱 +2銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +3銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +4銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +5銆佽瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + ubo_id_doc_name: string; + /** 璇佷欢鍙风爜 +1銆佸彲浼犺韩浠借瘉銆佹潵寰�鍐呭湴閫氳璇併�佹潵寰�澶ч檰閫氳璇併�佹姢鐓х瓑璇佷欢鍙风爜锛屽彿鐮佽鑼冨涓嬶細 +韬唤璇侊紙闄愪腑鍥藉ぇ闄嗗眳姘戯級锛�17浣嶆暟瀛�+1浣嶆暟瀛梶X锛� +鎶ょ収锛堥檺澧冨浜哄+锛夛細4-15浣� 鏁板瓧|瀛楁瘝|杩炲瓧绗︼紱 +涓浗棣欐腐灞呮皯--鏉ュ線鍐呭湴閫氳璇侊細H/h寮�澶�+8鎴�10浣嶆暟瀛�/瀛楁瘝锛� +涓浗婢抽棬灞呮皯--鏉ュ線鍐呭湴閫氳璇侊細M/m寮�澶�+8鎴�10浣嶆暟瀛�/瀛楁瘝锛� +涓浗鍙版咕灞呮皯--鏉ュ線澶ч檰閫氳璇侊細8浣嶆暟瀛楁垨10浣嶆暟瀛楋紱 +澶栧浗浜哄眳鐣欒瘉锛�15浣� 鏁板瓧|瀛楁瘝锛� +鍙版咕灞呮皯灞呬綇璇�/娓境灞呮皯灞呬綇璇侊細17浣嶆暟瀛�+1浣嶆暟瀛梶X銆� +2銆佽瀛楁闇�瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + ubo_id_doc_number: string; + /** 璇佷欢灞呬綇鍦板潃 +1銆佽鎸夌収韬唤璇佷綇鍧�濉啓锛屽骞夸笢鐪佹繁鍦冲競鍗楀北鍖簒x璺痻x鍙穢x瀹わ紱 +2銆侀暱搴︿负4-128涓瓧绗︼紱 +3銆佸墠鍚庝笉鑳芥湁绌烘牸銆佸埗琛ㄧ銆佹崲琛岀锛� +4銆佷笉鑳戒粎鍚暟瀛椼�佺壒娈婂瓧绗︼紱 +5銆佷粎鑳藉~鍐欐暟瀛椼�佽嫳鏂囧瓧姣嶃�佹眽瀛楀強鐗规畩瀛楃锛� +6銆佷粎鏀寔utf-8鏍煎紡锛� +7銆� 璇ュ瓧娈甸渶瑕佷娇鐢ㄥ井淇℃敮浠樺叕閽ュ姞瀵嗭紙鎺ㄨ崘锛夛紝璇峰弬鑰冭幏鍙栧井淇℃敮浠樺叕閽D璇存槑浠ュ強寰俊鏀粯鍏挜鍔犲瘑鏁忔劅淇℃伅鎸囧紩锛屼篃鍙互浣跨敤寰俊鏀粯骞冲彴璇佷功鍏挜鍔犲瘑锛屽弬鑰冭幏鍙栧钩鍙拌瘉涔﹀簭鍒楀彿銆佸钩鍙拌瘉涔﹀姞瀵嗘晱鎰熶俊鎭寚寮曘�� */ + ubo_id_doc_address: string; + /** 璇佷欢鏈夋晥鏈熷紑濮嬫椂闂� +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡锛� +2銆佸紑濮嬫椂闂翠笉鑳藉皬浜�1900-01-01锛� +3銆佸紑濮嬫椂闂翠笉鑳藉ぇ浜庣瓑浜庡綋鍓嶆棩鏈熴�� */ + ubo_period_begin: string; + /** 璇佷欢鏈夋晥鏈熺粨鏉熸椂闂� +1銆佹棩鏈熸牸寮忓簲婊¤冻鍚堟硶鐨刌YYY-MM-DD鏍煎紡鎴栭暱鏈燂紱 +2銆佺粨鏉熸椂闂撮渶澶т簬寮�濮嬫椂闂淬�� */ + ubo_period_end: string; + } + + interface WeChatPayGetApplymentResponseAuditDetail { + /** 鎻愪氦鐢宠鍗曠殑璧勬枡椤瑰瓧娈靛悕 */ + field: string; + /** 鎻愪氦鐢宠鍗曠殑璧勬枡椤瑰瓧娈靛悕绉� */ + field_name: string; + /** 鎻愪氦璧勬枡椤硅椹冲洖鐨勫師鍥� */ + reject_reason: string; + } + interface WxmpLoginCommand { /** 鐢ㄦ埛鐧诲綍鍑瘉 */ code: string; diff --git a/src/views/EnterpriseManage/components/ConfigureDialog.vue b/src/views/EnterpriseManage/components/ConfigureDialog.vue index 820cd62..ae35d49 100644 --- a/src/views/EnterpriseManage/components/ConfigureDialog.vue +++ b/src/views/EnterpriseManage/components/ConfigureDialog.vue @@ -13,9 +13,9 @@ <el-tab-pane lazy :name="EnterpriseConfigureType.AliPay"> <AliPayConfigureView :id="form.id" ref="aliPayConfigureViewRef" /> </el-tab-pane> - <!-- <el-tab-pane lazy :name="EnterpriseConfigureType.Wechat"> + <el-tab-pane lazy :name="EnterpriseConfigureType.Wechat"> <WechatConfigureView :id="form.id" ref="wechatConfigureViewRef" /> - </el-tab-pane> --> + </el-tab-pane> <el-tab-pane lazy :name="EnterpriseConfigureType.Electronic"> <ElectronicConfigureView :id="form.id" ref="electronicConfigureViewRef" /> </el-tab-pane> diff --git a/src/views/EnterpriseManage/components/WechatConfigureView.vue b/src/views/EnterpriseManage/components/WechatConfigureView.vue index 92ed870..f39f332 100644 --- a/src/views/EnterpriseManage/components/WechatConfigureView.vue +++ b/src/views/EnterpriseManage/components/WechatConfigureView.vue @@ -1,118 +1,922 @@ <template> <LoadingLayout :loading="isLoading"> - <ProForm :model="form" ref="dialogForm" label-width="130px"> + <ProForm :model="form" ref="dialogForm" label-width="150px"> <ProFormItemV2 - label="鑱旂郴浜哄鍚�:" - prop="name" - :checkRules="[{ message: '璇疯緭鍏ヨ仈绯讳汉濮撳悕' }]" + label="涓氬姟鐢宠缂栧彿:" + prop="business_code" + :checkRules="[{ message: '璇疯緭鍏ヤ笟鍔$敵璇风紪鍙�', pattern: /^[a-zA-Z0-9_]+$/ }]" > - <ProFormText v-model.trim="form.name" placeholder="璇疯緭鍏ヨ仈绯讳汉濮撳悕"> </ProFormText> + <ProFormText v-model.trim="form.business_code" placeholder="璇疯緭鍏ヤ笟鍔$敵璇风紪鍙�"> + </ProFormText> </ProFormItemV2> <ProFormItemV2 - label="鑱旂郴浜虹被鍨�:" - prop="name" - :checkRules="[{ message: '璇烽�夋嫨鑱旂郴浜虹被鍨�' }]" + label="瓒呯骇绠$悊鍛樼被鍨�:" + prop="contact_type" + :checkRules="[{ message: '璇烽�夋嫨瓒呯骇绠$悊鍛樼被鍨�' }]" > - <ProFormRadio v-model.trim="form.name" :value-enum="[]" button-style /> + <ProFormRadio + v-model.trim="form.contact_type" + :value-enum="EnumWeChatPayApplymentContactTypeText" + :button-style="false" + /> </ProFormItemV2> <ProFormItemV2 - label="涓氬姟鍔炵悊鎺堟潈鍑�:" - prop="url" - :check-rules="[{ type: 'upload', message: '璇蜂笂浼犱笟鍔″姙鐞嗘巿鏉冨嚱' }]" + label="瓒呯骇绠$悊鍛樺鍚�:" + prop="contact_name" + :checkRules="[{ message: '璇疯緭鍏ヨ秴绾х鐞嗗憳濮撳悕' }]" + > + <ProFormText + :minlength="2" + :maxlength="100" + v-model.trim="form.contact_name" + placeholder="璇疯緭鍏ヨ秴绾х鐞嗗憳濮撳悕" + > + </ProFormText> + </ProFormItemV2> + <template v-if="form.contact_type === EnumWeChatPayApplymentContactType.SUPER"> + <ProFormItemV2 + label="瓒呯骇绠$悊鍛樿瘉浠剁被鍨�:" + prop="contact_id_doc_type" + :checkRules="[{ message: '璇烽�夋嫨瓒呯骇绠$悊鍛樿瘉浠剁被鍨�' }]" + > + <ProFormSelect + v-model="form.contact_id_doc_type" + :valueEnum="EnumWeChatPayApplymentIdDocTypeText" + placeholder="璇烽�夋嫨瓒呯骇绠$悊鍛樿瘉浠剁被鍨�" + > + </ProFormSelect> + </ProFormItemV2> + <ProFormItemV2 + label="瓒呯骇绠$悊鍛樿瘉浠跺彿鐮�:" + prop="contact_id_number" + :checkRules="[{ message: '璇疯緭鍏ヨ秴绾х鐞嗗憳璇佷欢鍙风爜' }]" + > + <ProFormText v-model.trim="form.contact_id_number" placeholder="璇疯緭鍏ヨ秴绾х鐞嗗憳璇佷欢鍙风爜"> + </ProFormText> + </ProFormItemV2> + <ProFormItemV2 + label="璇佷欢姝i潰鐓х墖:" + prop="contact_id_doc_copy" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犺瘉浠舵闈㈢収鐗�' }]" + > + <ProFormImageUpload + v-model:file-url="form.contact_id_doc_copy" + :limit-file-count="1" + ></ProFormImageUpload> + </ProFormItemV2> + <ProFormItemV2 + label="璇佷欢鍙嶉潰鐓х墖:" + prop="contact_id_doc_copy_back" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犺瘉浠跺弽闈㈢収鐗�' }]" + > + <ProFormImageUpload + v-model:file-url="form.contact_id_doc_copy_back" + :limit-file-count="1" + ></ProFormImageUpload> + </ProFormItemV2> + <ProFormItemV2 + label="璇佷欢鏈夋晥鏈�:" + prop="contact_period" + :check-rules="[{ type: 'array', message: '璇烽�夋嫨璇佷欢鏈夋晥鏈�' }]" + > + <ProFormDatePicker + v-model="form.contact_period" + type="daterange" + range-separator="~" + start-placeholder="璧峰鏃ユ湡" + end-placeholder="鍒版湡鏃ユ湡" + clearable + ></ProFormDatePicker> + </ProFormItemV2> + <ProFormItemV2 + label="涓氬姟鍔炵悊鎺堟潈鍑�:" + prop="business_authorization_letter" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犱笟鍔″姙鐞嗘巿鏉冨嚱' }]" + > + <div style="display: flex"> + <ProFormUpload + v-model:file-url="form.business_authorization_letter" + :limit="1" + :limitFileSize="10" + accept="png,jpg,jpeg,pdf" + ></ProFormUpload> + <el-button style="margin-left: 10px" type="primary" link @click="downloadTemplate" + >妯℃澘涓嬭浇</el-button + > + </div> + </ProFormItemV2> + </template> + <ProFormItemV2 + label="鑱旂郴鎵嬫満:" + prop="mobile_phone" + :checkRules="[{ type: 'phone', message: '璇疯緭鍏ヨ仈绯绘墜鏈�' }]" + > + <ProFormText v-model.trim="form.mobile_phone" placeholder="璇疯緭鍏ヨ仈绯绘墜鏈�" /> + </ProFormItemV2> + + <ProFormItemV2 + label="鑱旂郴閭:" + prop="contact_email" + :checkRules="[{ type: 'email', message: '璇疯緭鍏ヨ仈绯婚偖绠�' }]" + > + <ProFormText v-model.trim="form.contact_email" placeholder="璇疯緭鍏ヨ仈绯婚偖绠�" /> + </ProFormItemV2> + <ProFormItemV2 + label="涓讳綋绫诲瀷:" + prop="subject_type" + :checkRules="[{ message: '璇烽�夋嫨涓讳綋绫诲瀷' }]" + > + <ProFormSelect + v-model="form.subject_type" + :valueEnum="EnumWeChatPayApplymentSubjectTypeText" + placeholder="璇烽�夋嫨涓讳綋绫诲瀷" + > + </ProFormSelect> + </ProFormItemV2> + + <template + v-if=" + form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INDIVIDUAL || + form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_ENTERPRISE + " + > + <ProFormItemV2 + label="钀ヤ笟鎵х収:" + prop="license_copy" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犺惀涓氭墽鐓�' }]" + > + <ProFormUpload + v-model:file-url="form.license_copy" + :limitFileCount="1" + :on-success="handleLicenseUrlChange" + accept="jpg/jpeg,png,pdf" + ></ProFormUpload> + </ProFormItemV2> + <ProFormItemV2 + label="鍟嗘埛鍚嶇О:" + prop="merchant_name" + :checkRules="[{ message: '璇疯緭鍏ュ晢鎴峰悕绉�' }]" + > + <ProFormText + :maxlength="128" + :minlength="2" + show-word-limit + v-model.trim="form.merchant_name" + placeholder="璇疯緭鍏ュ晢鎴峰悕绉�" + /> + </ProFormItemV2> + <ProFormItemV2 + label="缁熶竴绀句細淇$敤浠g爜:" + prop="license_number" + :checkRules="[{ message: '璇疯緭鍏ョ粺涓�绀句細淇$敤浠g爜', type: 'societyCreditCode' }]" + > + <ProFormText v-model.trim="form.license_number" placeholder="璇疯緭鍏ョ粺涓�绀句細淇$敤浠g爜" /> + </ProFormItemV2> + <ProFormItemV2 + label="娉曚汉濮撳悕:" + prop="legal_person" + :checkRules="[{ message: '璇疯緭鍏ユ硶浜哄鍚�' }]" + > + <ProFormText + :minlength="2" + :maxlength="100" + v-model.trim="form.legal_person" + placeholder="璇疯緭鍏ユ硶浜哄鍚�" + /> + </ProFormItemV2> + </template> + + <template + v-if=" + form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_GOVERNMENT || + form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INSTITUTIONS || + form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_OTHERS + " + > + <ProFormItemV2 + label="鐧昏璇佷功鐓х墖:" + prop="cert_copy" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犵櫥璁拌瘉涔︾収鐗�' }]" + > + <ProFormImageUpload + v-model:file-url="form.cert_copy" + :limit-file-count="1" + ></ProFormImageUpload> + </ProFormItemV2> + <ProFormItemV2 + label="鐧昏璇佷功绫诲瀷:" + prop="cert_type" + :checkRules="[{ message: '璇烽�夋嫨鐧昏璇佷功绫诲瀷' }]" + > + <ProFormSelect + v-model="form.cert_type" + :valueEnum="EnumWeChatPayApplymentCertTypeTextList" + placeholder="璇烽�夋嫨鐧昏璇佷功绫诲瀷" + > + </ProFormSelect> + </ProFormItemV2> + <ProFormItemV2 + label="鐧昏璇佷功鍙�:" + prop="cert_number" + :checkRules="[{ message: '璇疯緭鍏ョ櫥璁拌瘉涔﹀彿' }]" + > + <ProFormText v-model.trim="form.cert_number" placeholder="璇疯緭鍏ョ櫥璁拌瘉涔﹀彿" /> + </ProFormItemV2> + <ProFormItemV2 + label="鍟嗘埛鍚嶇О:" + prop="cert_merchant_name" + :checkRules="[{ message: '璇疯緭鍏ュ晢鎴峰悕绉�' }]" + > + <ProFormText + :minlength="2" + :maxlength="128" + v-model.trim="form.cert_merchant_name" + placeholder="璇疯緭鍏ュ晢鎴峰悕绉�" + /> + </ProFormItemV2> + <ProFormItemV2 + label="娉ㄥ唽鍦板潃:" + prop="cert_company_address" + :checkRules="[{ message: '璇疯緭鍏ユ敞鍐屽湴鍧�' }]" + > + <ProFormText + :minlength="4" + :maxlength="128" + v-model.trim="form.cert_company_address" + placeholder="璇疯緭鍏ユ敞鍐屽湴鍧�" + /> + </ProFormItemV2> + <ProFormItemV2 + label="娉曞畾浠h〃浜�:" + prop="cert_legal_person" + :checkRules="[{ message: '璇疯緭鍏ユ硶瀹氫唬琛ㄤ汉' }]" + > + <ProFormText + :minlength="2" + :maxlength="100" + v-model.trim="form.cert_legal_person" + placeholder="璇疯緭鍏ユ硶瀹氫唬琛ㄤ汉" + /> + </ProFormItemV2> + <ProFormItemV2 + label="璇佷欢鏈夋晥鏈�:" + prop="cert_period" + :check-rules="[{ type: 'array', message: '璇烽�夋嫨璇佷欢鏈夋晥鏈�' }]" + > + <ProFormDatePicker + v-model="form.cert_period" + type="daterange" + range-separator="~" + start-placeholder="璧峰鏃ユ湡" + end-placeholder="鍒版湡鏃ユ湡" + clearable + ></ProFormDatePicker> + </ProFormItemV2> + </template> + + <ProFormItemV2 + label="璇佷欢鎸佹湁浜虹被鍨�:" + prop="id_holder_type" + :checkRules="[{ message: '璇烽�夋嫨璇佷欢鎸佹湁浜虹被鍨�' }]" + > + <ProFormSelect + v-model="form.id_holder_type" + :valueEnum="EnumWeChatPayApplymentIdHolderTypeTextList" + placeholder="璇烽�夋嫨璇佷欢鎸佹湁浜虹被鍨�" + > + </ProFormSelect> + </ProFormItemV2> + + <ProFormItemV2 + v-if="form.id_holder_type === EnumWeChatPayApplymentIdHolderType.LEGAL" + label="璇佷欢鎸佹湁浜鸿瘉浠剁被鍨�:" + prop="id_doc_type" + :checkRules="[{ message: '璇烽�夋嫨璇佷欢鎸佹湁浜鸿瘉浠剁被鍨�' }]" + > + <ProFormSelect + v-model="form.id_doc_type" + :valueEnum="id_doc_typeList" + placeholder="璇烽�夋嫨璇佷欢鎸佹湁浜鸿瘉浠剁被鍨�" + > + </ProFormSelect> + </ProFormItemV2> + + <ProFormItemV2 + v-if="form.id_holder_type === EnumWeChatPayApplymentIdHolderType.SUPER" + label="娉曞畾浠h〃浜鸿鏄庡嚱:" + prop="authorize_letter_copy" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犳硶瀹氫唬琛ㄤ汉璇存槑鍑�' }]" > <div style="display: flex"> <ProFormUpload - v-model:file-url="form.url" + v-model:file-url="form.authorize_letter_copy" :limit="1" :limitFileSize="10" accept="png,jpg,jpeg,pdf" ></ProFormUpload> - <el-button style="margin-left: 10px" type="primary" link @click="downloadTemplate" + <el-button style="margin-left: 10px" type="primary" link @click="downloadFRTemplate" >妯℃澘涓嬭浇</el-button > </div> </ProFormItemV2> - <ProFormItemV2 - label="鎵嬫満鍙�:" - prop="name" - :checkRules="[{ type: 'phone', message: '璇疯緭鍏ユ墜鏈哄彿' }]" + + <template + v-if=" + form.id_holder_type === EnumWeChatPayApplymentIdHolderType.LEGAL && + form.id_doc_type === EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_IDCARD + " > - <ProFormText v-model.trim="form.name" placeholder="璇疯緭鍏ユ墜鏈哄彿" /> - </ProFormItemV2> - <ProFormItemV2 - label="鐢靛瓙閭:" - prop="name" - :checkRules="[{ type: 'email', message: '璇疯緭鍏ョ數瀛愰偖绠�' }]" + <ProFormItemV2 + label="韬唤璇佷汉鍍忛潰:" + prop="id_card_copy" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犺韩浠借瘉浜哄儚闈�' }]" + > + <ProFormUpload + v-model:file-url="form.id_card_copy" + :limitFileCount="1" + :on-success="handleFrontImgUrlChange" + accept="jpg/jpeg,png,pdf" + ></ProFormUpload> + </ProFormItemV2> + <ProFormItemV2 + label="韬唤璇佸浗寰介潰:" + prop="id_card_national" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犺韩浠借瘉鍥藉窘闈�' }]" + > + <ProFormUpload + v-model:file-url="form.id_card_national" + :limitFileCount="1" + accept="jpg/jpeg,png,pdf" + ></ProFormUpload> + </ProFormItemV2> + <ProFormItemV2 + label="韬唤璇佸鍚�:" + prop="id_card_name" + :checkRules="[{ message: '璇疯緭鍏ヨ韩浠借瘉濮撳悕' }]" + > + <ProFormText + :minlength="2" + :maxlength="100" + v-model.trim="form.id_card_name" + placeholder="璇疯緭鍏ヨ韩浠借瘉濮撳悕" + /> + </ProFormItemV2> + <ProFormItemV2 + label="韬唤璇佸彿鐮�:" + prop="id_card_number" + :checkRules="[{ message: '璇疯緭鍏ヨ韩浠借瘉鍙风爜', type: 'idCard' }]" + > + <ProFormText v-model.trim="form.id_card_number" placeholder="璇疯緭鍏ヨ韩浠借瘉鍙风爜" /> + </ProFormItemV2> + <ProFormItemV2 + label="韬唤璇佹湁鏁堟湡:" + prop="id_card_period" + :checkRules="[{ message: '璇烽�夋嫨韬唤璇佹湁鏁堟湡', type: 'array' }]" + > + <ProFormDatePicker + v-model="form.id_card_period" + type="daterange" + range-separator="~" + start-placeholder="璧峰鏃ユ湡" + end-placeholder="鍒版湡鏃ユ湡" + clearable + ></ProFormDatePicker> + </ProFormItemV2> + </template> + + <template + v-if=" + form.id_holder_type === EnumWeChatPayApplymentIdHolderType.LEGAL && + form.id_doc_type !== EnumWeChatPayApplymentIdDocType.IDENTIFICATION_TYPE_IDCARD + " > - <ProFormText v-model.trim="form.name" placeholder="璇疯緭鍏ョ數瀛愰偖绠�" /> - </ProFormItemV2> - <ProFormItemV2 label="涓讳綋绫诲瀷:" prop="name" :checkRules="[{ message: '璇烽�夋嫨涓讳綋绫诲瀷' }]"> - <ProFormSelect v-model="form.name" :valueEnum="[]" placeholder="璇烽�夋嫨涓讳綋绫诲瀷"> - </ProFormSelect> - </ProFormItemV2> - <ProFormItemV2 label="鍟嗘埛绠�绉�:" prop="name" :checkRules="[{ message: '璇疯緭鍏ュ晢鎴风畝绉�' }]"> + <ProFormItemV2 + label="璇佷欢姝i潰鐓х墖:" + prop="id_doc_copy" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犺瘉浠舵闈㈢収鐗�' }]" + > + <ProFormUpload + v-model:file-url="form.id_doc_copy" + :limitFileCount="1" + accept="jpg/jpeg,png,pdf" + ></ProFormUpload> + </ProFormItemV2> + + <ProFormItemV2 + label="璇佷欢濮撳悕:" + prop="id_doc_name" + :checkRules="[{ message: '璇疯緭鍏ヨ瘉浠跺鍚�' }]" + > + <ProFormText + :minlength="2" + :maxlength="100" + v-model.trim="form.id_doc_name" + placeholder="璇疯緭鍏ヨ瘉浠跺鍚�" + /> + </ProFormItemV2> + <ProFormItemV2 + label="璇佷欢鍙风爜:" + prop="id_doc_number" + :checkRules="[{ message: '璇疯緭鍏ヨ瘉浠跺彿鐮�' }]" + > + <ProFormText v-model.trim="form.id_doc_number" placeholder="璇疯緭鍏ヨ瘉浠跺彿鐮�" /> + </ProFormItemV2> + <ProFormItemV2 + label="璇佷欢鏈夋晥鏈�:" + prop="id_doc_period" + :checkRules="[{ message: '璇烽�夋嫨璇佷欢鏈夋晥鏈�', type: 'array' }]" + > + <ProFormDatePicker + v-model="form.id_doc_period" + type="daterange" + range-separator="~" + start-placeholder="璧峰鏃ユ湡" + end-placeholder="鍒版湡鏃ユ湡" + clearable + ></ProFormDatePicker> + </ProFormItemV2> + </template> + + <div + class="ubo-info-list-wrapper" + v-if="form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_ENTERPRISE" + > + <div class="ubo-info-list-top"> + <div class="ubo-info-list-title">鏈�缁堝彈鐩婁汉淇℃伅鍒楄〃</div> + <div class="ubo-info-list-btn"> + <el-button type="primary" link @click="addUboInfo">娣诲姞</el-button> + </div> + </div> + <div v-for="(item, index) in form.ubo_info_list" :key="index"> + <ProFormItemV2 + :label="`绗�${index + 1}涓瘉浠剁被鍨�:`" + :prop="`ubo_info_list.${index}.ubo_id_doc_type`" + :checkRules="[{ message: '璇烽�夋嫨璇佷欢绫诲瀷' }]" + > + <ProFormSelect + v-model="item.ubo_id_doc_type" + :valueEnum="EnumWeChatPayApplymentIdDocTypeText" + placeholder="璇烽�夋嫨璇佷欢绫诲瀷" + > + </ProFormSelect> + </ProFormItemV2> + <ProFormItemV2 + :label="`绗�${index + 1}涓瘉浠舵闈㈢収鐗�:`" + :prop="`ubo_info_list.${index}.ubo_id_doc_copy`" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犺瘉浠舵闈㈢収鐗�' }]" + > + <ProFormImageUpload + v-model:file-url="item.ubo_id_doc_copy" + :limit-file-count="1" + ></ProFormImageUpload> + </ProFormItemV2> + <ProFormItemV2 + :label="`绗�${index + 1}涓瘉浠跺鍚�:`" + :prop="`ubo_info_list.${index}.ubo_id_doc_name`" + :checkRules="[{ message: '璇疯緭鍏ヨ瘉浠跺鍚�' }]" + > + <ProFormText + :minlength="2" + :maxlength="100" + v-model.trim="item.ubo_id_doc_name" + placeholder="璇疯緭鍏ヨ瘉浠跺鍚�" + /> + </ProFormItemV2> + <ProFormItemV2 + :label="`绗�${index + 1}涓瘉浠跺彿鐮�:`" + :prop="`ubo_info_list.${index}.ubo_id_doc_number`" + :checkRules="[{ message: '璇疯緭鍏ヨ瘉浠跺彿鐮�' }]" + > + <ProFormText v-model.trim="item.ubo_id_doc_number" placeholder="璇疯緭鍏ヨ瘉浠跺彿鐮�" /> + </ProFormItemV2> + <ProFormItemV2 + :label="`绗�${index + 1}涓瘉浠跺眳浣忓湴鍧�:`" + :prop="`ubo_info_list.${index}.ubo_id_doc_address`" + :checkRules="[{ message: '璇疯緭鍏ヨ瘉浠跺眳浣忓湴鍧�' }]" + > + <ProFormText v-model.trim="item.ubo_id_doc_address" placeholder="璇疯緭鍏ヨ瘉浠跺眳浣忓湴鍧�" /> + </ProFormItemV2> + <ProFormItemV2 + :label="`绗�${index + 1}涓瘉浠舵湁鏁堟湡:`" + :prop="`ubo_info_list.${index}.ubo_period`" + :checkRules="[{ message: '璇烽�夋嫨璇佷欢鏈夋晥鏈�', type: 'array' }]" + > + <ProFormDatePicker + v-model="item.ubo_period" + type="daterange" + range-separator="~" + start-placeholder="璧峰鏃ユ湡" + end-placeholder="鍒版湡鏃ユ湡" + clearable + ></ProFormDatePicker> + </ProFormItemV2> + <el-button type="primary" link @click="deleteUboInfo(index)">鍒犻櫎</el-button> + </div> + </div> + + <ProFormItemV2 + label="鍟嗘埛绠�绉�:" + prop="merchant_shortname" + :checkRules="[{ message: '璇疯緭鍏ュ晢鎴风畝绉�' }]" + > <ProFormText - :maxlength="64" + :minlength="1" + :maxlength="60" show-word-limit - v-model.trim="form.name" + v-model.trim="form.merchant_shortname" placeholder="璇疯緭鍏ュ晢鎴风畝绉�" /> </ProFormItemV2> + <ProFormItemV2 label="瀹㈡湇鐢佃瘽:" - prop="name" + prop="service_phone" :checkRules="[{ type: 'tel', message: '璇疯緭鍏ュ鏈嶇數璇�' }]" > - <ProFormText v-model.trim="form.name" placeholder="璇疯緭鍏ュ鏈嶇數璇�" /> + <ProFormText v-model.trim="form.service_phone" placeholder="璇疯緭鍏ュ鏈嶇數璇�" /> </ProFormItemV2> - <ProFormItemV2 label="缁忚惀鍦烘櫙:" prop="name" :checkRules="[{ message: '璇烽�夋嫨缁忚惀鍦烘櫙' }]"> - <ProFormSelect v-model="form.name" :valueEnum="[]" placeholder="璇烽�夋嫨缁忚惀鍦烘櫙"> + + <ProFormItemV2 + label="缁忚惀鍦烘櫙绫诲瀷:" + prop="sales_scenes_type" + :checkRules="[{ message: '璇烽�夋嫨缁忚惀鍦烘櫙绫诲瀷' }]" + > + <ProFormSelect + v-model="form.sales_scenes_type" + :valueEnum="EnumWeChatPayApplymentSalesScenesTypeText" + placeholder="璇烽�夋嫨缁忚惀鍦烘櫙绫诲瀷" + multiple + > </ProFormSelect> </ProFormItemV2> + + <template + v-if=" + form.sales_scenes_type.includes(EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_STORE) + " + > + <ProFormItemV2 + label="绾夸笅鍦烘墍鍚嶇О:" + prop="biz_store_name" + :checkRules="[{ message: '璇疯緭鍏ョ嚎涓嬪満鎵�鍚嶇О' }]" + > + <ProFormText + :maxlength="50" + v-model.trim="form.biz_store_name" + placeholder="璇疯緭鍏ョ嚎涓嬪満鎵�鍚嶇О" + /> + </ProFormItemV2> + <ProFormItemV2 + label="绾夸笅鍦烘墍鐪佸競缂栫爜:" + prop="biz_address_code" + :checkRules="[{ message: '璇疯緭鍏ョ嚎涓嬪満鎵�鐪佸競缂栫爜' }]" + > + <ProFormInputNumber + v-model.trim="form.biz_address_code" + placeholder="璇疯緭鍏ョ嚎涓嬪満鎵�鐪佸競缂栫爜" + /> + </ProFormItemV2> + <ProFormItemV2 + label="绾夸笅鍦烘墍鍦板潃:" + prop="biz_store_address" + :checkRules="[{ message: '璇疯緭鍏ョ嚎涓嬪満鎵�鍦板潃' }]" + > + <ProFormText + :maxlength="512" + :minlength="4" + v-model.trim="form.biz_store_address" + placeholder="璇疯緭鍏ョ嚎涓嬪満鎵�鍦板潃" + /> + </ProFormItemV2> + <ProFormItemV2 + label="绾夸笅鍦烘墍闂ㄥご鐓х墖:" + prop="store_entrance_pic" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犵嚎涓嬪満鎵�闂ㄥご鐓х墖' }]" + > + <ProFormUpload + v-model:file-url="form.store_entrance_pic" + accept="jpg/jpeg,png" + ></ProFormUpload> + </ProFormItemV2> + <ProFormItemV2 + label="绾夸笅鍦烘墍鍐呴儴鐓х墖:" + prop="indoor_pic" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犵嚎涓嬪満鎵�鍐呴儴鐓х墖' }]" + > + <ProFormUpload v-model:file-url="form.indoor_pic" accept="jpg/jpeg,png"></ProFormUpload> + </ProFormItemV2> + </template> + <template + v-if=" + form.sales_scenes_type.includes(EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_MP) + " + > + <ProFormItemV2 + label="鏈嶅姟鍟嗘湇鍔″彿鎴栧叕浼楀彿AppID:" + prop="mp_appid" + :checkRules="[ + { + message: '鏈嶅姟鍟嗘湇鍔″彿鎴栧叕浼楀彿AppID', + validator: (rule, value, callback) => { + if (form.mp_appid || form.mp_sub_appid) { + callback(); + } + callback(new Error('璇疯緭鍏ユ湇鍔″晢鏈嶅姟鍙锋垨鍏紬鍙稟ppID')); + }, + }, + ]" + > + <ProFormText + v-model.trim="form.mp_appid" + placeholder="璇疯緭鍏ユ湇鍔″晢鏈嶅姟鍙锋垨鍏紬鍙稟ppID(鏈嶅姟鍟嗘湇鍔″彿鎴栧叕浼楀彿AppID銆佸晢瀹舵湇鍔″彿鎴栧叕浼楀彿AppID锛屼簩閫変竴蹇呭~)" + /> + </ProFormItemV2> + <ProFormItemV2 + label="鍟嗗鏈嶅姟鍙锋垨鍏紬鍙稟ppID:" + prop="mp_sub_appid" + :checkRules="[ + { + message: '璇疯緭鍏ュ晢瀹舵湇鍔″彿鎴栧叕浼楀彿AppID', + validator: (rule, value, callback) => { + if (form.mp_appid || form.mp_sub_appid) { + callback(); + } + callback(new Error('璇疯緭鍏ュ晢瀹舵湇鍔″彿鎴栧叕浼楀彿AppID')); + }, + }, + ]" + > + <ProFormText + v-model.trim="form.mp_sub_appid" + placeholder="璇疯緭鍏ュ晢瀹舵湇鍔″彿鎴栧叕浼楀彿AppID(鏈嶅姟鍟嗘湇鍔″彿鎴栧叕浼楀彿AppID銆佸晢瀹舵湇鍔″彿鎴栧叕浼楀彿AppID锛屼簩閫変竴蹇呭~)" + /> + </ProFormItemV2> + <ProFormItemV2 + label="灏忕▼搴忔埅鍥�:" + prop="mp_pics" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犲皬绋嬪簭鎴浘' }]" + > + <ProFormUpload + v-model:file-url="form.mp_pics" + :limitFileCount="5" + accept="jpg/jpeg,png" + ></ProFormUpload> + </ProFormItemV2> + </template> + <template + v-if=" + form.sales_scenes_type.includes( + EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_MINI_PROGRAM + ) + " + > + <ProFormItemV2 + label="鏈嶅姟鍟嗗皬绋嬪簭AppID:" + prop="mini_program_appid" + :checkRules="[ + { + message: '璇疯緭鍏ユ湇鍔″晢灏忕▼搴廇ppID', + validator: (rule, value, callback) => { + if (form.mini_program_appid || form.mini_program_sub_appid) { + callback(); + } + callback(new Error('璇疯緭鍏ユ湇鍔″晢灏忕▼搴廇ppID')); + }, + }, + ]" + > + <ProFormText + v-model.trim="form.mini_program_appid" + placeholder="璇疯緭鍏ユ湇鍔″晢灏忕▼搴廇ppID(鏈嶅姟鍟嗗皬绋嬪簭AppID涓庡晢瀹跺皬绋嬪簭AppID锛屼簩閫変竴蹇呭~)" + /> + </ProFormItemV2> + <ProFormItemV2 + label="鍟嗗灏忕▼搴廇ppID:" + prop="mini_program_sub_appid" + :checkRules="[ + { + message: '璇疯緭鍏ュ晢瀹跺皬绋嬪簭AppID', + validator: (rule, value, callback) => { + if (form.mini_program_appid || form.mini_program_sub_appid) { + callback(); + } + callback(new Error('璇疯緭鍏ユ湇鍔″晢灏忕▼搴廇ppID')); + }, + }, + ]" + > + <ProFormText + v-model.trim="form.mini_program_sub_appid" + placeholder="璇疯緭鍏ュ晢瀹跺皬绋嬪簭AppID(鏈嶅姟鍟嗗皬绋嬪簭AppID涓庡晢瀹跺皬绋嬪簭AppID锛屼簩閫変竴蹇呭~)" + /> + </ProFormItemV2> + <ProFormItemV2 + label="灏忕▼搴忔埅鍥�:" + prop="mini_program_pics" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犲皬绋嬪簭鎴浘' }]" + > + <ProFormUpload + v-model:file-url="form.mini_program_pics" + :limitFileCount="5" + accept="jpg/jpeg,png" + ></ProFormUpload> + </ProFormItemV2> + </template> + + <template + v-if=" + form.sales_scenes_type.includes(EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_APP) + " + > + <ProFormItemV2 + label="鏈嶅姟鍟嗗簲鐢ˋppID:" + prop="app_appid" + :checkRules="[ + { + message: '鏈嶅姟鍟嗗簲鐢ˋppID', + validator: (rule, value, callback) => { + if (form.app_appid || form.mp_sub_appid) { + callback(); + } + callback(new Error('璇疯緭鍏ユ湇鍔″晢搴旂敤AppID')); + }, + }, + ]" + > + <ProFormText + v-model.trim="form.app_appid" + placeholder="璇疯緭鍏ユ湇鍔″晢搴旂敤AppID(鏈嶅姟鍟嗗簲鐢ˋppID涓庡晢瀹跺簲鐢ˋppID锛屼簩閫変竴蹇呭~)" + /> + </ProFormItemV2> + <ProFormItemV2 + label="鍟嗗搴旂敤AppID:" + prop="app_sub_appid" + :checkRules="[ + { + message: '璇疯緭鍏ュ晢瀹跺簲鐢ˋppID', + validator: (rule, value, callback) => { + if (form.mp_appid || form.app_sub_appid) { + callback(); + } + callback(new Error('璇疯緭鍏ュ晢瀹跺簲鐢ˋppID')); + }, + }, + ]" + > + <ProFormText + v-model.trim="form.app_sub_appid" + placeholder="璇疯緭鍏ュ晢瀹跺簲鐢ˋppID(鏈嶅姟鍟嗗簲鐢ˋppID涓庡晢瀹跺簲鐢ˋppID锛屼簩閫変竴蹇呭~)" + /> + </ProFormItemV2> + <ProFormItemV2 + label="App鎴浘:" + prop="app_pics" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼燗pp鎴浘' }]" + > + <ProFormUpload + v-model:file-url="form.app_pics" + :limitFileCount="4" + accept="jpg/jpeg,png" + ></ProFormUpload> + </ProFormItemV2> + </template> + + <template + v-if=" + form.sales_scenes_type.includes(EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_WEB) + " + > + <ProFormItemV2 + label="浜掕仈缃戠綉绔欏煙鍚�:" + prop="domain" + :checkRules="[{ message: '璇疯緭鍏ヤ簰鑱旂綉缃戠珯鍩熷悕' }]" + > + <ProFormText v-model.trim="form.domain" placeholder="璇疯緭鍏ヤ簰鑱旂綉缃戠珯鍩熷悕" /> + </ProFormItemV2> + <ProFormItemV2 label="缃戠珯鎺堟潈鍑�:" prop="web_authorisation"> + <div style="display: flex"> + <ProFormUpload + v-model:file-url="form.web_authorisation" + :limit="1" + :limitFileSize="10" + accept="png,jpg,jpeg,pdf" + ></ProFormUpload> + <el-button + style="margin-left: 10px" + type="primary" + link + @click="downloadWebAuthorisationTemplate" + >妯℃澘涓嬭浇</el-button + > + </div> + </ProFormItemV2> + </template> + + <template + v-if=" + form.sales_scenes_type.includes(EnumWeChatPayApplymentSalesScenesType.SALES_SCENES_WEWORK) + " + > + <ProFormItemV2 + label="鍟嗗浼佷笟寰俊CorpID:" + prop="sub_corp_id" + :checkRules="[{ message: '璇疯緭鍏ュ晢瀹朵紒涓氬井淇orpID' }]" + > + <ProFormText v-model.trim="form.sub_corp_id" placeholder="璇疯緭鍏ュ晢瀹朵紒涓氬井淇orpID" /> + </ProFormItemV2> + <ProFormItemV2 + label="浼佷笟寰俊椤甸潰鎴浘:" + prop="wework_pics" + :check-rules="[{ type: 'upload', message: '璇蜂笂浼犱紒涓氬井淇¢〉闈㈡埅鍥�' }]" + > + <ProFormUpload + v-model:file-url="form.wework_pics" + :limitFileCount="5" + accept="jpg/jpeg,png" + ></ProFormUpload> + </ProFormItemV2> + </template> + <ProFormItemV2 - label="鍏ラ┗缁撶畻ID:" - prop="name" - :checkRules="[{ message: '璇疯緭鍏ュ叆椹荤粨绠桰D' }]" + label="鍏ラ┗缁撶畻瑙勫垯ID:" + prop="settlement_id" + :checkRules="[{ message: '璇疯緭鍏ュ叆椹荤粨绠楄鍒橧D' }]" > <div style="display: flex; width: 100%"> - <ProFormText v-model.trim="form.name" placeholder="璇疯緭鍏ュ叆椹荤粨绠桰D" /> + <ProFormText v-model.trim="form.settlement_id" placeholder="璇疯緭鍏ュ叆椹荤粨绠楄鍒橧D" /> <el-button style="margin-left: 10px" type="primary" link @click="openOuterSettleRule" >璐圭巼缁撶畻瑙勫垯瀵圭収琛�</el-button > </div> </ProFormItemV2> + <ProFormItemV2 - label="鐗规畩璧勮川鐓х墖:" - prop="url" - :check-rules="[{ type: 'upload', message: '璇蜂笂浼犵壒娈婅祫璐ㄧ収鐗�' }]" + label="鎵�灞炶涓�:" + prop="qualification_type" + :checkRules="[{ message: '璇疯緭鍏ユ墍灞炶涓�' }]" > - <ProFormUpload - v-model:file-url="form.url" - :limit="5" - :limitFileSize="10" - accept="png,jpg,jpeg,pdf" - ></ProFormUpload> + <ProFormText + :maxlength="50" + v-model.trim="form.qualification_type" + placeholder="璇疯緭鍏ユ墍灞炶涓�(璇︾粏鍙傝璐圭巼缁撶畻瑙勫垯瀵圭収琛�)" + /> </ProFormItemV2> - <ProFormItemV2 label="缁撶畻璐︽埛:" prop="name" :checkRules="[{ message: '璇烽�夋嫨缁撶畻璐︽埛' }]"> - <ProFormSelect v-model="form.name" :valueEnum="[]" placeholder="璇烽�夋嫨缁撶畻璐︽埛"> + <ProFormItemV2 label="鐗规畩璧勮川鍥剧墖:" prop="qualifications"> + <ProFormUpload v-model:file-url="form.qualifications" accept="jpg/jpeg,png"></ProFormUpload> + </ProFormItemV2> + <ProFormItemV2 + label="缁撶畻閾惰璐︽埛绫诲瀷:" + prop="bank_account_type" + :checkRules="[{ message: '璇烽�夋嫨缁撶畻閾惰璐︽埛绫诲瀷' }]" + > + <ProFormSelect + v-model="form.bank_account_type" + :valueEnum="EnumWeChatPayApplymentBankAccountTypeText" + placeholder="璇烽�夋嫨缁撶畻閾惰璐︽埛绫诲瀷" + > </ProFormSelect> </ProFormItemV2> - <ProFormItemV2 label="寮�鎴烽摱琛�:" prop="name" :checkRules="[{ message: '璇疯緭鍏ュ紑鎴烽摱琛�' }]"> - <ProFormText v-model.trim="form.name" placeholder="璇疯緭鍏ュ紑鎴烽摱琛�" /> + <ProFormItemV2 + label="寮�鎴峰悕绉�:" + prop="account_name" + :checkRules="[{ message: '璇疯緭鍏ュ紑鎴峰悕绉�' }]" + > + <ProFormText v-model.trim="form.account_name" placeholder="璇疯緭鍏ュ紑鎴峰悕绉�" /> + </ProFormItemV2> + <ProFormItemV2 + label="寮�鎴烽摱琛�:" + prop="account_bank" + :checkRules="[{ message: '璇疯緭鍏ュ紑鎴烽摱琛�' }]" + > + <ProFormText v-model.trim="form.account_bank" placeholder="璇疯緭鍏ュ紑鎴烽摱琛�" /> + </ProFormItemV2> + <ProFormItemV2 + label="寮�鎴烽摱琛岄摱琛屽彿:" + prop="bank_branch_id" + :checkRules="[{ message: '璇疯緭鍏ュ紑鎴烽摱琛岄摱琛屽彿' }]" + > + <ProFormText v-model.trim="form.bank_branch_id" placeholder="璇疯緭鍏ュ紑鎴烽摱琛岄摱琛屽彿" /> + </ProFormItemV2> + <ProFormItemV2 + label="寮�鎴烽摱琛屽叏绉帮紙鍚敮琛岋級:" + prop="bank_name" + :checkRules="[{ message: '璇疯緭鍏ュ紑鎴烽摱琛屽叏绉帮紙鍚敮琛岋級' }]" + > + <ProFormText v-model.trim="form.bank_name" placeholder="璇疯緭鍏ュ紑鎴烽摱琛屽叏绉帮紙鍚敮琛岋級" /> </ProFormItemV2> <ProFormItemV2 label="閾惰璐﹀彿:" - prop="name" + prop="account_number" :checkRules="[{ message: '璇疯緭鍏ラ摱琛岃处鍙�', type: 'bankCard' }]" > - <ProFormText v-model.trim="form.name" placeholder="璇疯緭鍏ラ摱琛岃处鍙�" /> + <ProFormText v-model.trim="form.account_number" placeholder="璇疯緭鍏ラ摱琛岃处鍙�" /> </ProFormItemV2> </ProForm> </LoadingLayout> </template> <script setup lang="ts"> -import { FormInstance } from 'element-plus'; +import { FormInstance, ModelValueType } from 'element-plus'; import { ProForm, ProFormItemV2, @@ -123,10 +927,39 @@ ProFormUpload, useFormDialog, ProFormRadio, + ProFormDatePicker, + ProFormImageUpload, + ProFormInputNumber, } from '@bole-core/components'; import * as enterpriseWalletServices from '@/services/api/enterpriseWallet'; import { useQuery } from '@tanstack/vue-query'; -import { convertWalletApiToFiles, convertWalletFilesToApi, downloadFileByUrl } from '@/utils'; +import { vatLicense, userCredentialVerifyOcrIDCard } from '@/hooks'; +import { + EnumWeChatPayApplymentContactType, + EnumWeChatPayApplymentContactTypeText, + EnumWeChatPayApplymentIdDocType, + EnumWeChatPayApplymentIdDocTypeText, + EnumWeChatPayApplymentSubjectType, + EnumWeChatPayApplymentSubjectTypeText, + EnumWeChatPayApplymentCertTypeTextForSYDW, + EnumWeChatPayApplymentCertTypeTextForZFJG, + EnumWeChatPayApplymentCertTypeTextForSHZZ, + EnumWeChatPayApplymentIdHolderType, + EnumWeChatPayApplymentIdHolderTypeText, + EnumWeChatPayApplymentIdHolderTypeTextOnlyLEGAL, + EnumWeChatPayApplymentSalesScenesType, + EnumWeChatPayApplymentSalesScenesTypeText, + EnumWeChatPayApplymentBankAccountTypeText, +} from '@/constants'; +import { + convertApi2FormUrl, + convertApi2FormUrlOnlyOne, + convertWalletApiToFiles, + convertWalletFilesToApi, + downloadFileByUrl, + format, +} from '@/utils'; +import { Message } from '@bole-core/core'; defineOptions({ name: 'WechatConfigureView', @@ -136,13 +969,117 @@ id: string; }; +type UboInfo = { + ubo_id_doc_type: EnumWeChatPayApplymentIdDocType; + ubo_id_doc_copy: UploadUserFile[]; + ubo_id_doc_name: string; + ubo_id_doc_number: string; + ubo_id_doc_address: string; + ubo_period: ModelValueType; +}; + const props = withDefaults(defineProps<Props>(), {}); const dialogForm = ref<FormInstance>(); const form = reactive({ - name: '', - url: [] as UploadUserFile[], + business_code: '', + contact_type: '' as any as EnumWeChatPayApplymentContactType, + contact_name: '', + contact_id_doc_type: '' as any as EnumWeChatPayApplymentIdDocType, + contact_id_number: '', + contact_id_doc_copy: [] as UploadUserFile[], + contact_id_doc_copy_back: [] as UploadUserFile[], + contact_period: [] as ModelValueType, + business_authorization_letter: [] as UploadUserFile[], + mobile_phone: '', + contact_email: '', + subject_type: '' as any as EnumWeChatPayApplymentSubjectType, + license_copy: [] as UploadUserFile[], + merchant_name: '', + license_number: '', + legal_person: '', + cert_copy: [] as UploadUserFile[], + cert_type: '' as any as EnumWeChatPayApplymentCertType, + cert_number: '', + cert_merchant_name: '', + cert_company_address: '', + cert_legal_person: '', + cert_period: [] as ModelValueType, + id_holder_type: '' as any as EnumWeChatPayApplymentIdHolderType, + id_doc_type: '' as any as EnumWeChatPayApplymentIdDocType, + authorize_letter_copy: [] as UploadUserFile[], + id_card_copy: [] as UploadUserFile[], + id_card_national: [] as UploadUserFile[], + id_card_name: '', + id_card_number: '', + id_card_address: '', + id_card_period: [] as ModelValueType, + id_doc_copy: [] as UploadUserFile[], + id_doc_name: '', + id_doc_number: '', + id_doc_period: [] as ModelValueType, + ubo_info_list: [] as UboInfo[], + merchant_shortname: '', + service_phone: '', + sales_scenes_type: [] as any as EnumWeChatPayApplymentSalesScenesType[], + biz_store_name: '', + biz_address_code: null as Number, + biz_store_address: '', + store_entrance_pic: [] as UploadUserFile[], + indoor_pic: [] as UploadUserFile[], + mp_appid: '', + mp_sub_appid: '', + mp_pics: [] as UploadUserFile[], + mini_program_appid: '', + mini_program_sub_appid: '', + mini_program_pics: [] as UploadUserFile[], + app_appid: '', + app_sub_appid: '', + app_pics: [] as UploadUserFile[], + domain: '', + web_authorisation: [] as UploadUserFile[], + sub_corp_id: '', + wework_pics: [] as UploadUserFile[], + settlement_id: '', + qualification_type: '', + qualifications: [] as UploadUserFile[], + bank_account_type: '' as any as EnumWeChatPayApplymentBankAccountType, + account_name: '', + account_bank: '', + bank_branch_id: '', + bank_name: '', + account_number: '', +}); + +const EnumWeChatPayApplymentCertTypeTextList = computed(() => { + if (form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INSTITUTIONS) { + return EnumWeChatPayApplymentCertTypeTextForSYDW; + } + if (form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_GOVERNMENT) { + return EnumWeChatPayApplymentCertTypeTextForZFJG; + } + if (form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_OTHERS) { + return EnumWeChatPayApplymentCertTypeTextForSHZZ; + } + return []; +}); + +const EnumWeChatPayApplymentIdHolderTypeTextList = computed(() => { + if ( + form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INSTITUTIONS || + form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_GOVERNMENT + ) { + return EnumWeChatPayApplymentIdHolderTypeText; + } + return EnumWeChatPayApplymentIdHolderTypeTextOnlyLEGAL; +}); + +const id_doc_typeList = computed(() => { + if (form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_GOVERNMENT) { + return EnumWeChatPayApplymentContactTypeTextForZFJG; + } + return EnumWeChatPayApplymentIdDocTypeText; }); const { isLoading, refetch } = useQuery({ @@ -152,19 +1089,100 @@ EnumEnterpriseWalletAccess.Alipay, ], queryFn: async (ctx) => { - return await enterpriseWalletServices.getEnterpriseWallet({ + return await enterpriseWalletServices.getEnterpriseWeChatPayWallet({ enterpriseId: props.id, - access: EnumEnterpriseWalletAccess.Alipay, }); }, onSuccess(data) { - form.name = data.name; - form.url = convertWalletApiToFiles( - data.files, - EnumEnterpriseWalletExpandindirectOrderFileType.Scene + form.business_code = data.business_code ?? ''; + form.contact_type = data.contact_info?.contact_type; + form.contact_name = data.contact_info?.contact_name ?? ''; + form.contact_id_doc_type = data.contact_info?.contact_id_doc_type; + form.contact_id_number = data.contact_info?.contact_id_number ?? ''; + form.contact_id_doc_copy = convertApi2FormUrlOnlyOne( + data.contact_info?.contact_id_doc_copy ?? '' ); + form.contact_id_doc_copy_back = convertApi2FormUrlOnlyOne( + data.contact_info?.contact_id_doc_copy_back ?? '' + ); + form.contact_period = [ + format(data.contact_info?.contact_period_begin, 'YYYY-MM-DD'), + format(data.contact_info?.contact_period_end, 'YYYY-MM-DD'), + ]; + form.business_authorization_letter = convertApi2FormUrlOnlyOne( + data.contact_info?.business_authorization_letter ?? '' + ); + form.mobile_phone = data.contact_info?.mobile_phone ?? ''; + form.contact_email = data.contact_info?.contact_email ?? ''; + form.subject_type = data.subject_info?.subject_type; + form.license_copy = convertApi2FormUrlOnlyOne( + data.subject_info?.business_license_info?.license_copy ?? '' + ); + form.merchant_name = data.subject_info?.business_license_info?.merchant_name ?? ''; + form.license_number = data.subject_info?.business_license_info?.license_number ?? ''; + form.legal_person = data.subject_info?.business_license_info?.legal_person ?? ''; + form.cert_copy = convertApi2FormUrlOnlyOne( + data.subject_info?.certificate_info?.cert_copy ?? '' + ); + form.cert_type = data.subject_info?.certificate_info?.cert_type; + form.cert_number = data.subject_info?.certificate_info?.cert_number ?? ''; + form.cert_merchant_name = data.subject_info?.certificate_info?.merchant_name ?? ''; + form.cert_company_address = data.subject_info?.certificate_info?.company_address ?? ''; + form.cert_legal_person = data.subject_info?.certificate_info?.legal_person ?? ''; + form.cert_period = [ + format(data.subject_info?.certificate_info?.period_begin, 'YYYY-MM-DD'), + format(data.subject_info?.certificate_info?.period_end, 'YYYY-MM-DD'), + ]; }, }); + +function addUboInfo() { + if (form.ubo_info_list.length >= 3) { + Message.errorMessage('鏈�澶氭坊鍔�3涓彈鐩婁汉'); + return; + } + form.ubo_info_list.push({ + ubo_id_doc_type: '' as any as EnumWeChatPayApplymentIdDocType, + ubo_id_doc_copy: [], + ubo_id_doc_name: '', + ubo_id_doc_number: '', + ubo_id_doc_address: '', + ubo_period: [], + }); +} + +function deleteUboInfo(index: number) { + form.ubo_info_list.splice(index, 1); +} + +const handleLicenseUrlChange = (response: UploadUserFile) => { + vatLicense(response, { + onSuccess(res) { + let tips: string[] = []; + res?.enterpriseName ? (form.merchant_name = res.enterpriseName) : tips.push('鍟嗘埛鍚嶇О'); + res?.societyCreditCode + ? (form.license_number = res.societyCreditCode) + : tips.push('缁熶竴绀句細淇$敤浠g爜'); + res?.legalPerson ? (form.legal_person = res.legalPerson) : tips.push('娉曚汉濮撳悕'); + if (tips.length > 0) { + Message.errorMessage( + `鏈兘璇嗗埆鍒版偍涓婁紶鐨勫浘鐗囷紝璇烽噸鏂颁笂浼犳竻鏅扮殑鍥剧墖鎴栨墜鍔ㄨ緭鍏�${tips.join('鍜�')}` + ); + } + }, + }); +}; + +function handleFrontImgUrlChange(response: UploadUserFile) { + userCredentialVerifyOcrIDCard({ + url: response?.url, + access: EnumOcrAccess.Baidu, + onSuccess(res) { + if (res.name) form.id_card_name = res.name; + if (res.identity) form.id_card_number = res.identity; + }, + }); +} function openOuterSettleRule() { window.open('https://kf.qq.com/faq/220228IJb2UV220228uEjU3Q.html', '_blank'); @@ -181,6 +1199,13 @@ } catch (error) {} } +function downloadFRTemplate() { + downloadFileByUrl( + 'https://parkmanagement.oss-cn-hangzhou.aliyuncs.com/FlexJob/temp/%E6%B3%95%E4%BA%BA%E4%BB%A3%E8%A1%A8%E8%AF%B4%E6%98%8E%E5%87%BD.png', + '娉曞畾浠h〃浜鸿鏄庡嚱' + ); +} + function downloadTemplate() { downloadFileByUrl( 'https://parkmanagement.oss-cn-hangzhou.aliyuncs.com/FlexJob/temp/%E4%B8%9A%E5%8A%A1%E5%8A%9E%E7%90%86%E6%8E%88%E6%9D%83%E5%87%BD.png', @@ -188,7 +1213,33 @@ ); } +function downloadWebAuthorisationTemplate() { + downloadFileByUrl( + 'https://parkmanagement.oss-cn-hangzhou.aliyuncs.com/FlexJob/temp/%E7%BD%91%E7%AB%99%E6%8E%88%E6%9D%83%E5%87%BD.doc', + '缃戠珯鎺堟潈鍑�' + ); +} + defineExpose({ onConfirm: enterpriseWalletExpandindirectCreate, }); </script> + +<style lang="scss" scoped> +@use '@/style/common.scss' as *; + +.ubo-info-list-wrapper { + .ubo-info-list-top { + display: flex; + justify-content: space-between; + + .ubo-info-list-title { + margin: 12px 0; + font-size: 16px; + font-weight: bold; + color: getCssVar('text-color', 'primary'); + line-height: 24px; + } + } +} +</style> -- Gitblit v1.9.1