From 4b7bb80551bdd3a29cda85df24f261c4afb3806f Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 20 八月 2025 16:01:31 +0800 Subject: [PATCH] fix: bug --- src/services/api/index.ts | 2 src/views/EnterpriseManage/components/ConfigureDialog.vue | 14 +-- src/services/api/electronSign.ts | 63 +++++++++++++++ src/services/api/typings.d.ts | 73 ++++++++++++++---- src/constants/apiEnum.ts | 36 +++++---- src/constants/enterprise.ts | 2 src/services/api/user.ts | 30 ------- 7 files changed, 146 insertions(+), 74 deletions(-) diff --git a/src/constants/apiEnum.ts b/src/constants/apiEnum.ts index 3f6b552..bd24f08 100644 --- a/src/constants/apiEnum.ts +++ b/src/constants/apiEnum.ts @@ -136,35 +136,39 @@ /** 璧勬簮鎺у埗鍣� */ export enum EnumResourceController { /**鏁版嵁瀛楀吀 */ - Dictionary = 0, + FlexJobServerDictionary = 0, /**浠诲姟 */ - Task = 1, + FlexJobServerTask = 1, /**浠诲姟浜哄憳 */ - TaskUser = 2, + FlexJobServerTaskUser = 2, /**浠诲姟楠屾敹 */ - TaskCheckReceive = 3, + FlexJobServerTaskCheckReceive = 3, + /**鏂囦欢 */ + CommonServerFileUtils = 4, /**鏂囧瓧璇嗗埆 */ - FileUtils = 4, - /**鏂囧瓧璇嗗埆 */ - OcrUtils = 5, + CommonServerOcrUtils = 5, /**鏃ュ織璁板綍 */ - LogRecords = 6, + CommonServerLogRecords = 6, /**鐢ㄦ埛璁よ瘉 */ - Auth = 7, + UserServerAuth = 7, /**鐢ㄦ埛鑿滃崟 */ - Menu = 8, + UserServerMenu = 8, /**鐢ㄦ埛璧勬簮 */ - Resource = 9, + UserServerResource = 9, /**鐢ㄦ埛瑙掕壊 */ - Role = 10, + UserServerRole = 10, /**鐢ㄦ埛淇℃伅 */ - User = 11, + UserServerUser = 11, + /**鐢靛瓙绛� */ + UserServerElectronSign = 12, /**鐢ㄦ埛绠�鍘� */ - UserResume = 12, + UserServerUserResume = 13, /**浼佷笟淇℃伅 */ - Enterprise = 13, + UserServerEnterprise = 14, /**鐏靛伐淇℃伅 */ - EnterpriseEmployee = 14, + UserServerEnterpriseEmployee = 15, + /**鐢靛瓙绛� */ + ElectronSignServerElectronSign = 16, } /** 璧勬簮璇锋眰鏂瑰紡 */ diff --git a/src/constants/enterprise.ts b/src/constants/enterprise.ts index dca7bda..79357ec 100644 --- a/src/constants/enterprise.ts +++ b/src/constants/enterprise.ts @@ -61,7 +61,7 @@ export const EnumRealAccessText = { [EnumRealAccess.BestSign]: '涓婁笂绛�', - [EnumRealAccess.AlipaySign]: '鏀粯瀹濈數瀛愮', + [EnumRealAccess.AlipaySign]: '鏀粯瀹濅俊浠荤', }; export enum ChargeTypeEnum { diff --git a/src/services/api/electronSign.ts b/src/services/api/electronSign.ts new file mode 100644 index 0000000..77c1101 --- /dev/null +++ b/src/services/api/electronSign.ts @@ -0,0 +1,63 @@ +/* eslint-disable */ +// @ts-ignore +import { request } from '@/utils/request'; + +/** 鐢靛瓙绛惧洖浼� POST /api/user/electronSign/electronSignCallback */ +export async function electronSignCallback( + body: API.ElectronSignCallbackCommand, + options?: API.RequestConfig +) { + return request<boolean>('/api/user/electronSign/electronSignCallback', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 涓汉浜鸿劯瀹炲悕璁よ瘉 POST /api/user/electronSign/personalUserFaceReal */ +export async function personalUserFaceReal( + body: API.PersonalUserFaceRealCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/electronSign/personalUserFaceReal', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 涓汉涓夎绱犲疄鍚嶈璇� POST /api/user/electronSign/personalUserIdentity3Real */ +export async function personalUserIdentity3Real( + body: API.PersonalUserIdentity3RealCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/electronSign/personalUserIdentity3Real', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鍙戦�佷釜浜轰笁瑕佺礌瀹炲悕鐭俊 POST /api/user/electronSign/sendPersonalUserIdentity3RealSms */ +export async function sendPersonalUserIdentity3RealSms( + body: API.SendPersonalUserIdentity3RealSmsCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/electronSign/sendPersonalUserIdentity3RealSms', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} diff --git a/src/services/api/index.ts b/src/services/api/index.ts index 9639827..39390a8 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -13,6 +13,7 @@ import * as userResume from './userResume'; import * as auth from './auth'; import * as taskCheckReceive from './taskCheckReceive'; +import * as electronSign from './electronSign'; import * as taskUser from './taskUser'; import * as menu from './menu'; import * as logRecords from './logRecords'; @@ -29,6 +30,7 @@ userResume, auth, taskCheckReceive, + electronSign, taskUser, menu, logRecords, diff --git a/src/services/api/typings.d.ts b/src/services/api/typings.d.ts index 6146af4..584f731 100644 --- a/src/services/api/typings.d.ts +++ b/src/services/api/typings.d.ts @@ -324,6 +324,23 @@ id?: string; } + interface ElectronSignCallbackCommand { + /** 瀹㈡埛Id */ + customerId?: string; + /** 鏂规硶鍚嶇О */ + action?: string; + /** 鏄惁鎴愬姛 */ + success?: boolean; + /** 鍥炶皟鐮� */ + code?: string; + /** 鍥炶皟娑堟伅 */ + message?: string; + /** 鍏宠仈Id */ + relationId?: string; + /** 鍥炰紶鏁版嵁 */ + data?: any; + } + enum EnumBillingMethod { /**鎸夋湀 */ Month = 10, @@ -444,35 +461,39 @@ enum EnumResourceController { /**鏁版嵁瀛楀吀 */ - Dictionary = 0, + FlexJobServerDictionary = 0, /**浠诲姟 */ - Task = 1, + FlexJobServerTask = 1, /**浠诲姟浜哄憳 */ - TaskUser = 2, + FlexJobServerTaskUser = 2, /**浠诲姟楠屾敹 */ - TaskCheckReceive = 3, + FlexJobServerTaskCheckReceive = 3, + /**鏂囦欢 */ + CommonServerFileUtils = 4, /**鏂囧瓧璇嗗埆 */ - FileUtils = 4, - /**鏂囧瓧璇嗗埆 */ - OcrUtils = 5, + CommonServerOcrUtils = 5, /**鏃ュ織璁板綍 */ - LogRecords = 6, + CommonServerLogRecords = 6, /**鐢ㄦ埛璁よ瘉 */ - Auth = 7, + UserServerAuth = 7, /**鐢ㄦ埛鑿滃崟 */ - Menu = 8, + UserServerMenu = 8, /**鐢ㄦ埛璧勬簮 */ - Resource = 9, + UserServerResource = 9, /**鐢ㄦ埛瑙掕壊 */ - Role = 10, + UserServerRole = 10, /**鐢ㄦ埛淇℃伅 */ - User = 11, + UserServerUser = 11, + /**鐢靛瓙绛� */ + UserServerElectronSign = 12, /**鐢ㄦ埛绠�鍘� */ - UserResume = 12, + UserServerUserResume = 13, /**浼佷笟淇℃伅 */ - Enterprise = 13, + UserServerEnterprise = 14, /**鐏靛伐淇℃伅 */ - EnterpriseEmployee = 14, + UserServerEnterpriseEmployee = 15, + /**鐢靛瓙绛� */ + ElectronSignServerElectronSign = 16, } enum EnumResourceMethod { @@ -3549,6 +3570,17 @@ clientType?: EnumClientType; } + interface PersonalUserFaceRealCommand { + /** 濮撳悕 */ + name: string; + /** 韬唤璇佸彿 */ + identity: string; + /** 韬唤璇佷汉鍍忛潰 */ + identityImg: string; + /** 韬唤璇佸浗寰介潰 */ + identityBackImg: string; + } + interface PersonalUserIdentity3RealCommand { /** 濮撳悕 */ name: string; @@ -3908,7 +3940,14 @@ phoneNumber: string; } - type SendPersonalUserIdentity3RealSmsCommand = Record<string, any>; + interface SendPersonalUserIdentity3RealSmsCommand { + /** 濮撳悕 */ + name: string; + /** 鎵嬫満鍙� */ + phoneNumber: string; + /** 韬唤璇佸彿 */ + identity: string; + } interface SetDictionaryDataIsDisabledCommand { ids?: string[]; diff --git a/src/services/api/user.ts b/src/services/api/user.ts index 98b559b..43f20b8 100644 --- a/src/services/api/user.ts +++ b/src/services/api/user.ts @@ -68,36 +68,6 @@ }); } -/** 涓汉涓夎绱犲疄鍚嶈璇� POST /api/user/user/personalUserIdentity3Real */ -export async function personalUserIdentity3Real( - body: API.PersonalUserIdentity3RealCommand, - options?: API.RequestConfig -) { - return request<string>('/api/user/user/personalUserIdentity3Real', { - method: 'POST', - headers: { - 'Content-Type': 'application/json-patch+json', - }, - data: body, - ...(options || {}), - }); -} - -/** 鍙戦�佷釜浜轰笁瑕佺礌瀹炲悕鐭俊 POST /api/user/user/sendPersonalUserIdentity3RealSms */ -export async function sendPersonalUserIdentity3RealSms( - body: API.SendPersonalUserIdentity3RealSmsCommand, - options?: API.RequestConfig -) { - return request<string>('/api/user/user/sendPersonalUserIdentity3RealSms', { - method: 'POST', - headers: { - 'Content-Type': 'application/json-patch+json', - }, - data: body, - ...(options || {}), - }); -} - /** 璁剧疆鐢ㄦ埛淇℃伅瑙掕壊 PUT /api/user/user/setUserInfoRoles */ export async function setUserInfoRoles( body: API.SetUserInfoRolesCommand, diff --git a/src/views/EnterpriseManage/components/ConfigureDialog.vue b/src/views/EnterpriseManage/components/ConfigureDialog.vue index 234dbbf..5a8a232 100644 --- a/src/views/EnterpriseManage/components/ConfigureDialog.vue +++ b/src/views/EnterpriseManage/components/ConfigureDialog.vue @@ -96,19 +96,15 @@ </template> </template> <template v-if="form.enterpriseConfigureType === EnterpriseConfigureType.ShortMessage"> - <!-- <div class="configure-dialog-form-title">閫氶亾閰嶇疆</div> - <ProFormItemV2 - label="鍚嶇О:" - prop="messageChannel" - :checkRules="[{ message: '璇烽�夋嫨鐭俊閫氶亾' }]" - > + <div class="configure-dialog-form-title">閫氶亾閰嶇疆</div> + <ProFormItemV2 label="鍚嶇О:" prop="smsAccess" :checkRules="[{ message: '璇烽�夋嫨鐭俊閫氶亾' }]"> <ProFormSelect - v-model="form.messageChannel" + v-model="form.smsAccess" :valueEnum="EnumSmsAccessText" placeholder="璇烽�夋嫨鐭俊閫氶亾" > </ProFormSelect> - </ProFormItemV2> --> + </ProFormItemV2> <div class="configure-dialog-form-title">璐圭敤閰嶇疆</div> <ProFormItemV2 label="鐭俊璐圭敤:" prop="smsCost"> <ProFormInputNumber @@ -147,8 +143,6 @@ ChargeTypeEnum, ChargeTypeEnumText, EnumRealAccessText, - VerifyStatusText, - VerifyStatus, EnumSmsAccessText, EnumRealAccess, } from '@/constants'; -- Gitblit v1.9.1