| | |
| | | VITE_ROUTER_HISTORY = "h5" |
| | | |
| | | # 线上环境后端地址 |
| | | # VITE_PROXY_DOMAIN_REAL = "https://testrlywx.boleyuma.com/" |
| | | VITE_PROXY_DOMAIN_REAL = "http://118.178.252.28:8770/" |
| | | VITE_PROXY_DOMAIN_REAL = "https://testfj.81812333.com/" |
| | | # VITE_PROXY_DOMAIN_REAL = "http://118.178.252.28:8770/" |
| | | |
| | | # 是否为打包后的文件提供传统浏览器兼容性支持 支持 true 不支持 false |
| | | VITE_LEGACY = true |
| | |
| | | "EnumDbAuditOperateText": true, |
| | | "EnumElectronSignAccess": true, |
| | | "EnumElectronSignAccessText": true, |
| | | "EnumEnterpriseCostStatus": true, |
| | | "EnumEnterpriseCostType": true, |
| | | "EnumEnterpriseRealMethod": true, |
| | | "EnumEnterpriseWalletAccess": true, |
| | | "EnumEnterpriseWalletSignStatus": true, |
| | | "EnumMenuType": true, |
| | | "EnumMenuVisitLevel": true, |
| | | "EnumOcrAccess": true, |
| | |
| | | const EnumDbAuditOperateText: typeof import('./src/constants/apiEnumText')['EnumDbAuditOperateText'] |
| | | const EnumElectronSignAccess: typeof import('./src/constants/apiEnum')['EnumElectronSignAccess'] |
| | | const EnumElectronSignAccessText: typeof import('./src/constants/electronSign')['EnumElectronSignAccessText'] |
| | | const EnumEnterpriseCostStatus: typeof import('./src/constants/apiEnum')['EnumEnterpriseCostStatus'] |
| | | const EnumEnterpriseCostType: typeof import('./src/constants/apiEnum')['EnumEnterpriseCostType'] |
| | | const EnumEnterpriseRealMethod: typeof import('./src/constants/apiEnum')['EnumEnterpriseRealMethod'] |
| | | const EnumEnterpriseWalletAccess: typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletAccess'] |
| | | const EnumEnterpriseWalletSignStatus: typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletSignStatus'] |
| | | const EnumMenuType: typeof import('./src/constants/apiEnum')['EnumMenuType'] |
| | | const EnumMenuVisitLevel: typeof import('./src/constants/apiEnum')['EnumMenuVisitLevel'] |
| | | const EnumOcrAccess: typeof import('./src/constants/apiEnum')['EnumOcrAccess'] |
| | |
| | | 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, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumEnterpriseRealMethod, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton, EnumBillingMethod, EnumClientType, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumEnterpriseRealMethod, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton } from './src/constants/apiEnum' |
| | | export type { EnumBillingMethod, EnumClientType, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletSignStatus, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton, EnumBillingMethod, EnumClientType, EnumContractTemplateStatus, EnumContractTemplateValueRecorder, EnumContractTemplateValueType, EnumDataSource, EnumDbAuditOperate, EnumElectronSignAccess, EnumEnterpriseCostStatus, EnumEnterpriseCostType, EnumEnterpriseRealMethod, EnumEnterpriseWalletAccess, EnumEnterpriseWalletSignStatus, EnumMenuType, EnumMenuVisitLevel, EnumOcrAccess, EnumPagedListOrder, EnumPayAccess, EnumPersonalFreeTime, EnumPersonalJobSeekingStatus, EnumPersonalRealMethod, EnumPersonalUserRealStatus, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSettlementCycle, EnumSmsAccess, EnumTaskCheckReceiveStatus, EnumTaskRecommendStatus, EnumTaskReleaseStatus, EnumTaskSettlementStatus, EnumTaskStatus, EnumTaskUserArrangeStatus, EnumTaskUserHireStatus, EnumTaskUserSignContractStatus, EnumTaskUserSubmitCheckReceiveStatus, EnumUserGender, EnumUserRealMethod, EnumUserStatus, EnumUserType, GetPersonalApplyTaskInfosQueryStatus, GetPersonalHireTaskInfosQueryStatus, GetTaskInfoQueryResultApplyButton, GetTaskInfoQueryResultHireButton } from './src/constants/apiEnum' |
| | | import('./src/constants/apiEnum') |
| | | // @ts-ignore |
| | | export type { FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum, FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum } from './src/constants/cPerson' |
| | |
| | | readonly EnumDbAuditOperateText: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumDbAuditOperateText']> |
| | | readonly EnumElectronSignAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumElectronSignAccess']> |
| | | readonly EnumElectronSignAccessText: UnwrapRef<typeof import('./src/constants/electronSign')['EnumElectronSignAccessText']> |
| | | readonly EnumEnterpriseCostStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseCostStatus']> |
| | | readonly EnumEnterpriseCostType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseCostType']> |
| | | readonly EnumEnterpriseRealMethod: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseRealMethod']> |
| | | readonly EnumEnterpriseWalletAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletAccess']> |
| | | readonly EnumEnterpriseWalletSignStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletSignStatus']> |
| | | readonly EnumMenuType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumMenuType']> |
| | | readonly EnumMenuVisitLevel: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumMenuVisitLevel']> |
| | | readonly EnumOcrAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumOcrAccess']> |
| | |
| | | AlipaySign = 20, |
| | | } |
| | | |
| | | /** 企业用量扣费状态 */ |
| | | export enum EnumEnterpriseCostStatus { |
| | | /**扣费成功 */ |
| | | Success = 10, |
| | | /**扣费失败 */ |
| | | Fail = 20, |
| | | } |
| | | |
| | | /** 企业用量类型 */ |
| | | export enum EnumEnterpriseCostType { |
| | | /**短信 */ |
| | | SMS = 10, |
| | | /**电子签 */ |
| | | ElectronSign = 20, |
| | | } |
| | | |
| | | /** 企业实名方式 */ |
| | | export enum EnumEnterpriseRealMethod { |
| | | /**企业三要素 */ |
| | | Identity3 = 10, |
| | | /**企业四要素 */ |
| | | Identity4 = 20, |
| | | } |
| | | |
| | | /** 企业钱包通道 */ |
| | | export enum EnumEnterpriseWalletAccess { |
| | | /**支付宝 */ |
| | | Alipay = 10, |
| | | } |
| | | |
| | | /** 企业钱包签约状态 */ |
| | | export enum EnumEnterpriseWalletSignStatus { |
| | | /**申请中 */ |
| | | Apply = 10, |
| | | /**已签约 */ |
| | | Normal = 100, |
| | | /**终止 */ |
| | | Stop = 999, |
| | | } |
| | | |
| | | /** 菜单类型 */ |
| | |
| | | UserServerUserResume = 13, |
| | | /**企业信息 */ |
| | | UserServerEnterprise = 14, |
| | | /**企业钱包 */ |
| | | UserServerEnterpriseWallet = 15, |
| | | /**灵工信息 */ |
| | | UserServerEnterpriseEmployee = 15, |
| | | UserServerEnterpriseEmployee = 16, |
| | | /**电子签 */ |
| | | ElectronSignServerElectronSign = 16, |
| | | ElectronSignServerElectronSign = 17, |
| | | } |
| | | |
| | | /** 资源请求方式 */ |
| | |
| | | Pass = 20, |
| | | /**已拒签 */ |
| | | Refuse = 30, |
| | | /**生效中 */ |
| | | Effect = 40, |
| | | /**已终止 */ |
| | | Stop = 50, |
| | | } |
| | |
| | | */ |
| | | Bank = 1, |
| | | /** |
| | | * 支付信息配置 |
| | | */ |
| | | AliPay = 2, |
| | | /** |
| | | * 电子签配置 |
| | | */ |
| | | Electronic = 2, |
| | | Electronic = 3, |
| | | /** |
| | | * 短信通道配置 |
| | | */ |
| | | ShortMessage = 3, |
| | | ShortMessage = 4, |
| | | } |
| | | |
| | | export const EnterpriseConfigureTypeText = { |
| | | // [EnterpriseConfigureType.Bank]: '银行信息配置', |
| | | [EnterpriseConfigureType.AliPay]: '支付信息配置', |
| | | [EnterpriseConfigureType.Electronic]: '电子签配置', |
| | | [EnterpriseConfigureType.ShortMessage]: '短信通道配置', |
| | | }; |
| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 校验合同模是否可用 POST /api/user/electronSign/checkContractTemplate */ |
| | | export async function checkContractTemplate( |
| | | body: API.CheckContractTemplateCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/user/electronSign/checkContractTemplate', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 校验电子签通道是否启用 POST /api/user/electronSign/checkElectronSignAccessEnableds */ |
| | | export async function checkElectronSignAccessEnableds( |
| | | body: API.CheckElectronSignAccessEnabledsCommand, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 保存企业费用 POST /api/user/enterprise/saveEnterpriseCost */ |
| | | export async function saveEnterpriseCost( |
| | | body: API.SaveEnterpriseCostCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterprise/saveEnterpriseCost', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置企业电子签配置 PUT /api/user/enterprise/setEnterpriseElectronSignSetting */ |
| | | export async function setEnterpriseElectronSignSetting( |
| | | body: API.SetEnterpriseElectronSignSettingCommand, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 企业用户签约 POST /api/user/enterpriseEmployee/enterpriseUserElectronSign */ |
| | | export async function enterpriseUserElectronSign( |
| | | body: API.EnterpriseUserElectronSignCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.EnterpriseUserElectronSignCommandResult>( |
| | | '/api/user/enterpriseEmployee/enterpriseUserElectronSign', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询灵工详情 GET /api/user/enterpriseEmployee/getEnterpriseEmployee */ |
| | | export async function getEnterpriseEmployee( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询个人用户签约详情 GET /api/user/enterpriseEmployee/getEnterpriseEmployeeElectronSign */ |
| | | export async function getEnterpriseEmployeeElectronSign( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseEmployeeElectronSignParams, |
| | | /** 查询灵工分页列表数据 POST /api/user/enterpriseEmployee/getEnterpriseEmployees */ |
| | | export async function getEnterpriseEmployees( |
| | | body: API.GetEnterpriseEmployeesQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseEmployeeElectronSignQueryResult>( |
| | | '/api/user/enterpriseEmployee/getEnterpriseEmployeeElectronSign', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询个人用户签约列表 POST /api/user/enterpriseEmployee/getEnterpriseEmployeeElectronSigns */ |
| | | export async function getEnterpriseEmployeeElectronSigns( |
| | | body: API.GetEnterpriseEmployeeElectronSignsQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseEmployeeElectronSignsQueryResult>( |
| | | '/api/user/enterpriseEmployee/getEnterpriseEmployeeElectronSigns', |
| | | return request<API.GetEnterpriseEmployeesQueryResult>( |
| | | '/api/user/enterpriseEmployee/getEnterpriseEmployees', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询灵工分页列表数据 POST /api/user/enterpriseEmployee/getEnterpriseEmployees */ |
| | | export async function getEnterpriseEmployees( |
| | | body: API.GetEnterpriseEmployeesQuery, |
| | | /** 查询个人用户签约详情 GET /api/user/enterpriseEmployee/getPersonalUserElectronSign */ |
| | | export async function getPersonalUserElectronSign( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetPersonalUserElectronSignParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseEmployeesQueryResult>( |
| | | '/api/user/enterpriseEmployee/getEnterpriseEmployees', |
| | | return request<API.GetPersonalUserElectronSignQueryResult>( |
| | | '/api/user/enterpriseEmployee/getPersonalUserElectronSign', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询个人用户签约列表 POST /api/user/enterpriseEmployee/getPersonalUserElectronSigns */ |
| | | export async function getPersonalUserElectronSigns( |
| | | body: API.GetPersonalUserElectronSignsQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetPersonalUserElectronSignsQueryResult>( |
| | | '/api/user/enterpriseEmployee/getPersonalUserElectronSigns', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 邀请灵工签约 POST /api/user/enterpriseEmployee/inviteEnterpriseEmployeeElectronSign */ |
| | | export async function inviteEnterpriseEmployeeElectronSign( |
| | | body: API.InviteEnterpriseEmployeeElectronSignCommand, |
| | | /** 邀请灵工签约 POST /api/user/enterpriseEmployee/inviteElectronSign */ |
| | | export async function inviteElectronSign( |
| | | body: API.InviteElectronSignCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterpriseEmployee/inviteEnterpriseEmployeeElectronSign', { |
| | | return request<number>('/api/user/enterpriseEmployee/inviteElectronSign', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 个人用户签约 POST /api/user/enterpriseEmployee/personalUserElectronSign */ |
| | | export async function personalUserElectronSign( |
| | | body: API.PersonalUserElectronSignCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.PersonalUserElectronSignCommandResult>( |
| | | '/api/user/enterpriseEmployee/personalUserElectronSign', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 灵工解约 POST /api/user/enterpriseEmployee/stopElectronSign */ |
| | | export async function stopElectronSign( |
| | | body: API.StopElectronSignCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/user/enterpriseEmployee/stopElectronSign', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 支付宝资金二级商户KYB代进件 POST /api/user/enterpriseWallet/alipayFundExpandindirectCreate */ |
| | | export async function alipayFundExpandindirectCreate( |
| | | body: API.AlipayFundExpandindirectCreateCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectCreate', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 支付宝资金二级商户KYB代进件状态通知 POST /api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify */ |
| | | export async function alipayFundExpandindirectCreateNotify( |
| | | body: { |
| | | /** 通知ID */ |
| | | notify_id?: string; |
| | | /** 消息发送时的服务端时间 */ |
| | | utc_timestamp?: string; |
| | | /** 消息接口名称 */ |
| | | msg_method?: string; |
| | | /** 消息接受方的应用id */ |
| | | app_id?: string; |
| | | /** 版本号(1.1版本为标准消息) */ |
| | | version?: string; |
| | | /** 消息报文 */ |
| | | biz_content?: string; |
| | | /** 签名 */ |
| | | sign?: string; |
| | | /** 签名类型 */ |
| | | sign_type?: string; |
| | | /** 编码集,该字符集为验签和解密所需要的字符集 */ |
| | | charset?: string; |
| | | }, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | const formData = new FormData(); |
| | | |
| | | Object.keys(body).forEach((ele) => { |
| | | const item = (body as any)[ele]; |
| | | |
| | | if (item !== undefined && item !== null) { |
| | | formData.append( |
| | | ele, |
| | | typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item |
| | | ); |
| | | } |
| | | }); |
| | | |
| | | return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify', { |
| | | method: 'POST', |
| | | data: formData, |
| | | requestType: 'form', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 支付宝资金二级商户KYB代进件文件上传接口 POST /api/user/enterpriseWallet/alipayFundExpandindirectImageUpload */ |
| | | export async function alipayFundExpandindirectImageUpload( |
| | | body: { |
| | | /** 产品码 */ |
| | | ProductCode?: string; |
| | | /** 场景码 */ |
| | | BizScene?: string; |
| | | }, |
| | | File?: File, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | const formData = new FormData(); |
| | | |
| | | if (File) { |
| | | formData.append('File', File); |
| | | } |
| | | |
| | | Object.keys(body).forEach((ele) => { |
| | | const item = (body as any)[ele]; |
| | | |
| | | if (item !== undefined && item !== null) { |
| | | formData.append( |
| | | ele, |
| | | typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item |
| | | ); |
| | | } |
| | | }); |
| | | |
| | | return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectImageUpload', { |
| | | method: 'POST', |
| | | data: formData, |
| | | requestType: 'form', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 支付宝资金二级商户KYB代进件单取消接口 POST /api/user/enterpriseWallet/alipayFundExpandindirectOrderCancel */ |
| | | export async function alipayFundExpandindirectOrderCancel( |
| | | body: API.AlipayFundExpandindirectOrderCancelCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectOrderCancel', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 转账 POST /api/user/enterpriseWallet/alipayTransfer */ |
| | | export async function alipayTransfer(body: API.AlipayTransferCommand, options?: API.RequestConfig) { |
| | | return request<string>('/api/user/enterpriseWallet/alipayTransfer', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 支付宝用户授权协议签约通知 POST /api/user/enterpriseWallet/alipayUserAgreementPageSignNotify */ |
| | | export async function alipayUserAgreementPageSignNotify( |
| | | body: { |
| | | notify_id?: string; |
| | | notify_time?: string; |
| | | sign_type?: string; |
| | | sign?: string; |
| | | invalid_time?: string; |
| | | sign_scene?: string; |
| | | sign_time?: string; |
| | | alipay_user_id?: string; |
| | | status?: string; |
| | | forex_eligible?: string; |
| | | external_logon_id?: string; |
| | | app_id?: string; |
| | | auth_app_id?: string; |
| | | external_agreement_no?: string; |
| | | personal_product_code?: string; |
| | | valid_time?: string; |
| | | agreement_no?: string; |
| | | zm_open_id?: string; |
| | | alipay_open_id?: string; |
| | | merchant_app_id?: string; |
| | | alipay_logon_id?: string; |
| | | notify_type?: string; |
| | | zm_score?: string; |
| | | single_quota?: string; |
| | | login_token?: string; |
| | | device_id?: string; |
| | | credit_auth_mode?: string; |
| | | specified_sort_assets?: string; |
| | | partner_id?: string; |
| | | modify_type?: string; |
| | | next_deduct_time?: string; |
| | | }, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | const formData = new FormData(); |
| | | |
| | | Object.keys(body).forEach((ele) => { |
| | | const item = (body as any)[ele]; |
| | | |
| | | if (item !== undefined && item !== null) { |
| | | formData.append( |
| | | ele, |
| | | typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item |
| | | ); |
| | | } |
| | | }); |
| | | |
| | | return request<boolean>('/api/user/enterpriseWallet/alipayUserAgreementPageSignNotify', { |
| | | method: 'POST', |
| | | data: formData, |
| | | requestType: 'form', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 关闭企业钱包 POST /api/user/enterpriseWallet/closeEnterpriseWallet */ |
| | | export async function closeEnterpriseWallet( |
| | | body: API.CloseEnterpriseWalletCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterpriseWallet/closeEnterpriseWallet', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询支付宝资金二级商户KYB代进件单详情 GET /api/user/enterpriseWallet/getAlipayFundExpandindirectOrder */ |
| | | export async function getAlipayFundExpandindirectOrder( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetAlipayFundExpandindirectOrderParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetAlipayFundExpandindirectOrderQueryResult>( |
| | | '/api/user/enterpriseWallet/getAlipayFundExpandindirectOrder', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 支付宝通知回传 GET /api/user/enterpriseWallet/getAlipayNotify */ |
| | | export async function getAlipayNotify( |
| | | body: API.GetAlipayNotifyCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | const formData = new FormData(); |
| | | |
| | | Object.keys(body).forEach((ele) => { |
| | | const item = (body as any)[ele]; |
| | | |
| | | if (item !== undefined && item !== null) { |
| | | formData.append( |
| | | ele, |
| | | typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item |
| | | ); |
| | | } |
| | | }); |
| | | |
| | | return request<boolean>('/api/user/enterpriseWallet/getAlipayNotify', { |
| | | method: 'GET', |
| | | data: formData, |
| | | requestType: 'form', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询企业钱包详情 GET /api/user/enterpriseWallet/getEnterpriseWallet */ |
| | | export async function getEnterpriseWallet( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseWalletParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseWalletQueryResult>( |
| | | '/api/user/enterpriseWallet/getEnterpriseWallet', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 开通企业钱包 POST /api/user/enterpriseWallet/openEnterpriseWallet */ |
| | | export async function openEnterpriseWallet( |
| | | body: API.OpenEnterpriseWalletCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.OpenEnterpriseWalletCommandResult>( |
| | | '/api/user/enterpriseWallet/openEnterpriseWallet', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 企业钱包充值 POST /api/user/enterpriseWallet/rechargeEnterpriseWallet */ |
| | | export async function rechargeEnterpriseWallet( |
| | | body: API.RechargeEnterpriseWalletCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterpriseWallet/rechargeEnterpriseWallet', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | import * as resource from './resource'; |
| | | import * as task from './task'; |
| | | import * as dictionary from './dictionary'; |
| | | import * as enterpriseWallet from './enterpriseWallet'; |
| | | import * as electronSign from './electronSign'; |
| | | import * as userResume from './userResume'; |
| | | import * as auth from './auth'; |
| | |
| | | resource, |
| | | task, |
| | | dictionary, |
| | | enterpriseWallet, |
| | | electronSign, |
| | | userResume, |
| | | auth, |
| | |
| | | [key: string]: any; |
| | | } |
| | | |
| | | interface AlipayFundExpandindirectCreateCommand { |
| | | /** 产品码 */ |
| | | productCode?: string; |
| | | /** 场景码 */ |
| | | bizScene?: string; |
| | | /** 外部单号 */ |
| | | outBizNo?: string; |
| | | /** 二级商户信息-标识 */ |
| | | identity?: string; |
| | | /** 二级商户信息-标识类型 */ |
| | | identityType?: string; |
| | | /** 二级商户信息-姓名 */ |
| | | name?: string; |
| | | /** 业务类型 */ |
| | | bizType?: string; |
| | | /** 原进件单id */ |
| | | originalOrderId?: string; |
| | | /** 资金记账本的业务场景 */ |
| | | sceneCode?: string; |
| | | /** 转账场景说明 */ |
| | | sceneDirections?: string; |
| | | /** 转账场景截图 */ |
| | | sceneImage?: string; |
| | | /** 商户行业资质图片或协议文本 */ |
| | | sceneQualificationImage?: string; |
| | | sitesInfo?: AlipayFundExpandindirectCreateCommandSites; |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface AlipayFundExpandindirectCreateCommandSites { |
| | | website?: string; |
| | | app?: string; |
| | | gongzh?: string; |
| | | qita?: string; |
| | | xchengxU_ZHI?: string; |
| | | } |
| | | |
| | | interface AlipayFundExpandindirectOrderCancelCommand { |
| | | /** 代进件单Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | type AlipayTransferCommand = Record<string, any>; |
| | | |
| | | interface APIcheckHealthParams { |
| | | /** 健康校验 */ |
| | | request?: CheckHealthQuery; |
| | | } |
| | | |
| | | interface APIgetAlipayFundExpandindirectOrderParams { |
| | | /** 代进件单Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetAliyunOSSAcsParams { |
| | |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseEmployeeElectronSignParams { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 合同模板业务编码 */ |
| | | code?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseEmployeeParams { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | |
| | | interface APIgetEnterpriseSmsSettingParams { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseWalletParams { |
| | | /** 企业Id */ |
| | | enterpriseId?: string; |
| | | /** 通道 */ |
| | | access?: EnumEnterpriseWalletAccess; |
| | | } |
| | | |
| | | interface APIgetFileUrlParams { |
| | |
| | | interface APIgetPersonalLoginInfoParams { |
| | | /** 查询个人用户登录信息 */ |
| | | request?: GetPersonalLoginInfoQuery; |
| | | } |
| | | |
| | | interface APIgetPersonalUserElectronSignParams { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 合同模板业务编码 */ |
| | | code?: string; |
| | | } |
| | | |
| | | interface APIgetPersonalUserRealResultParams { |
| | |
| | | verifyCode: string; |
| | | } |
| | | |
| | | interface CheckContractTemplateCommand { |
| | | /** 合同模板Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface CheckElectronSignAccessEnabledsCommand { |
| | | /** 通道 */ |
| | | accesses?: EnumElectronSignAccess[]; |
| | |
| | | } |
| | | |
| | | type ClearTaskCollectCommand = Record<string, any>; |
| | | |
| | | interface CloseEnterpriseWalletCommand { |
| | | access?: EnumEnterpriseWalletAccess; |
| | | } |
| | | |
| | | interface CollectTaskCommand { |
| | | /** 任务Id */ |
| | |
| | | data?: any; |
| | | } |
| | | |
| | | interface EnterpriseUserElectronSignCommand { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface EnterpriseUserElectronSignCommandResult { |
| | | /** 签署合同短链接 */ |
| | | signContractShortUrl?: string; |
| | | /** 签署合同长链接 */ |
| | | signContractLongUrl?: string; |
| | | } |
| | | |
| | | enum EnumBillingMethod { |
| | | /**按月 */ |
| | | Month = 10, |
| | |
| | | AlipaySign = 20, |
| | | } |
| | | |
| | | enum EnumEnterpriseCostStatus { |
| | | /**扣费成功 */ |
| | | Success = 10, |
| | | /**扣费失败 */ |
| | | Fail = 20, |
| | | } |
| | | |
| | | enum EnumEnterpriseCostType { |
| | | /**短信 */ |
| | | SMS = 10, |
| | | /**电子签 */ |
| | | ElectronSign = 20, |
| | | } |
| | | |
| | | enum EnumEnterpriseRealMethod { |
| | | /**企业三要素 */ |
| | | Identity3 = 10, |
| | | /**企业四要素 */ |
| | | Identity4 = 20, |
| | | } |
| | | |
| | | enum EnumEnterpriseWalletAccess { |
| | | /**支付宝 */ |
| | | Alipay = 10, |
| | | } |
| | | |
| | | enum EnumEnterpriseWalletSignStatus { |
| | | /**申请中 */ |
| | | Apply = 10, |
| | | /**已签约 */ |
| | | Normal = 100, |
| | | /**终止 */ |
| | | Stop = 999, |
| | | } |
| | | |
| | | enum EnumMenuType { |
| | |
| | | UserServerUserResume = 13, |
| | | /**企业信息 */ |
| | | UserServerEnterprise = 14, |
| | | /**企业钱包 */ |
| | | UserServerEnterpriseWallet = 15, |
| | | /**灵工信息 */ |
| | | UserServerEnterpriseEmployee = 15, |
| | | UserServerEnterpriseEmployee = 16, |
| | | /**电子签 */ |
| | | ElectronSignServerElectronSign = 16, |
| | | ElectronSignServerElectronSign = 17, |
| | | } |
| | | |
| | | enum EnumResourceMethod { |
| | |
| | | Pass = 20, |
| | | /**已拒签 */ |
| | | Refuse = 30, |
| | | /**生效中 */ |
| | | Effect = 40, |
| | | /**已终止 */ |
| | | Stop = 50, |
| | | } |
| | |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: boolean; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultEnterpriseUserElectronSignCommandResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: EnterpriseUserElectronSignCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetAlipayFundExpandindirectOrderQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetAlipayFundExpandindirectOrderQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseEmployeeElectronSignQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetEnterpriseEmployeeElectronSignQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseEmployeeElectronSignsQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetEnterpriseEmployeeElectronSignsQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseEmployeeQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetEnterpriseSmsSettingQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseWalletQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetEnterpriseWalletQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetPersonalLoginInfoQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetPersonalUserElectronSignQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetPersonalUserElectronSignQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetPersonalUserElectronSignsQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetPersonalUserElectronSignsQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultOpenEnterpriseWalletCommandResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: OpenEnterpriseWalletCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultPagedListQueryResultGetDictionaryCategoriesQueryResultItem { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultPersonalUserElectronSignCommandResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: PersonalUserElectronSignCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultString { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface GetAlipayFundExpandindirectOrderQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 产品码 */ |
| | | productCode?: string; |
| | | /** 场景码 */ |
| | | bizScene?: string; |
| | | /** 外部单号 */ |
| | | outBizNo?: string; |
| | | /** 二级商户信息-标识 */ |
| | | identity?: string; |
| | | /** 二级商户信息-标识类型 */ |
| | | identityType?: string; |
| | | /** 二级商户信息-姓名 */ |
| | | name?: string; |
| | | /** 业务类型 */ |
| | | bizType?: string; |
| | | /** 原进件单id */ |
| | | originalOrderId?: string; |
| | | /** 资金记账本的业务场景 */ |
| | | sceneCode?: string; |
| | | /** 转账场景说明 */ |
| | | sceneDirections?: string; |
| | | /** 转账场景截图 */ |
| | | sceneImage?: string; |
| | | /** 商户行业资质图片或协议文本 */ |
| | | sceneQualificationImage?: string; |
| | | /** 商户站点信息 */ |
| | | sites?: string; |
| | | /** 进件单id */ |
| | | orderId?: string; |
| | | /** 进件单状态 |
| | | 审批中: PROCESSING |
| | | 已生效: VALID |
| | | 审批不通过: INVALID |
| | | 已废弃: DISUSE |
| | | 已撤销: REVOKED */ |
| | | status?: string; |
| | | /** 进件单任务完结时间 */ |
| | | taskFinishTime?: string; |
| | | /** 进件单审核不通过原因 */ |
| | | riskReviewRemark?: string; |
| | | } |
| | | |
| | | type GetAlipayNotifyCommand = Record<string, any>; |
| | | |
| | | type GetAliyunOSSAcsQuery = Record<string, any>; |
| | | |
| | |
| | | /** 提交Id */ |
| | | id?: string; |
| | | enterpriseEmployeeUser?: GetCheckReceiveTaskUserSubmitsQueryResultObjectDataEnterpriseEmployeeUser; |
| | | /** 验收时间 */ |
| | | date?: string; |
| | | /** 提交时间 */ |
| | | createdTime?: string; |
| | | /** 验收照片 */ |
| | |
| | | interface GetCheckReceiveTaskUserSubmitsQueryResultItem { |
| | | /** 提交Id */ |
| | | id?: string; |
| | | /** 验收时间 */ |
| | | date?: string; |
| | | /** 提交时间 */ |
| | | createdTime?: string; |
| | | /** 验收照片 */ |
| | |
| | | electronSignAccesses?: EnumElectronSignAccess[]; |
| | | } |
| | | |
| | | interface GetEnterpriseEmployeeElectronSignQueryResult { |
| | | /** 合同编号 */ |
| | | contractCode?: string; |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | /** 签约方信息-员工-姓名 */ |
| | | name?: string; |
| | | /** 签约方信息-员工-证件类型 */ |
| | | identityType?: string; |
| | | /** 签约方信息-员工-证件号码 */ |
| | | identity?: string; |
| | | /** 签约方信息-员工-签约时间 */ |
| | | userSignContractTime?: string; |
| | | /** 签约方信息-公司主体-主体类型 */ |
| | | enterpriseType?: string; |
| | | /** 签约方信息-公司主体-签约主体 */ |
| | | enterpriseName?: string; |
| | | /** 签约方信息-公司主体-签约时间 */ |
| | | enterpriseSignContractTime?: string; |
| | | /** 协议内容 */ |
| | | contractUrl?: string; |
| | | } |
| | | |
| | | interface GetEnterpriseEmployeeElectronSignsQuery { |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetEnterpriseEmployeeElectronSignsQueryResult { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetEnterpriseEmployeeElectronSignsQueryResultItem[]; |
| | | } |
| | | |
| | | interface GetEnterpriseEmployeeElectronSignsQueryResultItem { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 企业全称 */ |
| | | enterpriseName?: string; |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | } |
| | | |
| | | interface GetEnterpriseEmployeeQueryResult { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | |
| | | enterpriseSignContractTime?: string; |
| | | /** 电子合同 */ |
| | | contractUrl?: string; |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | } |
| | | |
| | | interface GetEnterpriseEmployeesQuery { |
| | |
| | | enterpriseSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | /** 企业签约时间 */ |
| | | enterpriseSignContractTime?: string; |
| | | /** 电子合同 */ |
| | | contractUrl?: string; |
| | | } |
| | | |
| | | type GetEnterpriseLoginInfoQuery = Record<string, any>; |
| | |
| | | industryTypeContent?: string; |
| | | /** 是否已配置 */ |
| | | isConfigured?: boolean; |
| | | } |
| | | |
| | | interface GetEnterpriseWalletQueryResult { |
| | | /** 钱包Id */ |
| | | id?: string; |
| | | access?: EnumEnterpriseWalletAccess; |
| | | /** 协议号 */ |
| | | code?: string; |
| | | /** 通道协议号 */ |
| | | agreementNo?: string; |
| | | /** 协议签约时间 */ |
| | | signTime?: string; |
| | | /** 协议生效时间 */ |
| | | validTime?: string; |
| | | /** 协议失效时间 */ |
| | | invalidTime?: string; |
| | | signStatus?: EnumEnterpriseWalletSignStatus; |
| | | } |
| | | |
| | | interface GetExceptionLogsQuery { |
| | |
| | | avatar?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 手机号 */ |
| | | contactPhoneNumber?: string; |
| | | /** 是否实名 */ |
| | | isReal?: boolean; |
| | | realMethod?: EnumUserRealMethod; |
| | |
| | | hirePassTaskCount?: number; |
| | | /** 已取消 */ |
| | | hireRefuseTaskCount?: number; |
| | | } |
| | | |
| | | interface GetPersonalUserElectronSignQueryResult { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 合同编号 */ |
| | | contractCode?: string; |
| | | contractTemplateAccess?: EnumElectronSignAccess; |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | /** 签约方信息-员工-姓名 */ |
| | | name?: string; |
| | | /** 签约方信息-员工-证件类型 */ |
| | | identityType?: string; |
| | | /** 签约方信息-员工-证件号码 */ |
| | | identity?: string; |
| | | /** 签约方信息-员工-手机号 */ |
| | | contactPhoneNumber?: string; |
| | | /** 签约方信息-员工-签约时间 */ |
| | | userSignContractTime?: string; |
| | | /** 签约方信息-公司主体-主体类型 */ |
| | | enterpriseType?: string; |
| | | /** 签约方信息-公司主体-签约主体 */ |
| | | enterpriseName?: string; |
| | | /** 签约方信息-公司主体-签约时间 */ |
| | | enterpriseSignContractTime?: string; |
| | | /** 协议内容 */ |
| | | contractUrl?: string; |
| | | } |
| | | |
| | | interface GetPersonalUserElectronSignsQuery { |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetPersonalUserElectronSignsQueryResult { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetPersonalUserElectronSignsQueryResultItem[]; |
| | | } |
| | | |
| | | interface GetPersonalUserElectronSignsQueryResultItem { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 企业全称 */ |
| | | enterpriseName?: string; |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | } |
| | | |
| | | interface GetPersonalUserInfoSignContractsQuery { |
| | |
| | | status?: EnumTaskStatus; |
| | | releaseStatus?: EnumTaskReleaseStatus; |
| | | hireStatus?: EnumTaskUserHireStatus; |
| | | /** 灵工Id */ |
| | | enterpriseEmployeeId?: string; |
| | | applyButton?: GetTaskInfoQueryResultApplyButton; |
| | | hireButton?: GetTaskInfoQueryResultHireButton; |
| | | } |
| | |
| | | identity?: string; |
| | | } |
| | | |
| | | interface InviteEnterpriseEmployeeElectronSignCommand { |
| | | interface InviteElectronSignCommand { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | ids?: string[]; |
| | | /** 合同模板Id */ |
| | | contractTemplateId?: string; |
| | | } |
| | |
| | | sessionKey?: string; |
| | | /** 是否已绑定手机号(仅用于微信小程序授权登录) */ |
| | | isBindPhoneNumber?: boolean; |
| | | } |
| | | |
| | | interface OpenEnterpriseWalletCommand { |
| | | access?: EnumEnterpriseWalletAccess; |
| | | } |
| | | |
| | | interface OpenEnterpriseWalletCommandResult { |
| | | /** 签约地址 */ |
| | | signUrl?: string; |
| | | } |
| | | |
| | | interface PagedListQueryPageModel { |
| | |
| | | clientType?: EnumClientType; |
| | | } |
| | | |
| | | interface PersonalUserElectronSignCommand { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface PersonalUserElectronSignCommandResult { |
| | | /** 签署合同短链接 */ |
| | | signContractShortUrl?: string; |
| | | /** 签署合同长链接 */ |
| | | signContractLongUrl?: string; |
| | | } |
| | | |
| | | interface PersonalUserFaceRealCommand { |
| | | /** 姓名 */ |
| | | name: string; |
| | |
| | | identityBackImg: string; |
| | | /** 验证码 */ |
| | | verifyCode: string; |
| | | } |
| | | |
| | | interface RechargeEnterpriseWalletCommand { |
| | | access?: EnumEnterpriseWalletAccess; |
| | | /** 金额 */ |
| | | amount?: number; |
| | | } |
| | | |
| | | interface RegisterPersonalUserCommand { |
| | |
| | | password?: string; |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface SaveEnterpriseCostCommand { |
| | | /** 企业Id */ |
| | | enterpriseId?: string; |
| | | type?: EnumEnterpriseCostType; |
| | | /** 合同模板Id */ |
| | | contractTemplateId?: string; |
| | | /** 灵工合同Id */ |
| | | enterpriseEmployeeContractId?: string; |
| | | status?: EnumEnterpriseCostStatus; |
| | | } |
| | | |
| | | interface SaveMenuButtonCommand { |
| | |
| | | clientType?: EnumClientType; |
| | | } |
| | | |
| | | interface StopElectronSignCommand { |
| | | /** 灵工Id */ |
| | | ids?: string[]; |
| | | } |
| | | |
| | | interface SubmitCheckReceiveTaskCommand { |
| | | /** 任务Id */ |
| | | taskInfoId?: string; |
| | |
| | | import ConfigureDialog from './components/ConfigureDialog.vue'; |
| | | import { Message } from '@bole-core/core'; |
| | | import * as enterpriseServices from '@/services/api/enterprise'; |
| | | import * as enterpriseWalletServices from '@/services/api/enterpriseWallet'; |
| | | |
| | | defineOptions({ |
| | | name: 'EnterpriseManageList', |
| | |
| | | ); |
| | | |
| | | async function getEnterpriseElectronSignSetting(id: string) { |
| | | try { |
| | | return await enterpriseServices.getEnterpriseElectronSignSetting({ id: id }); |
| | | } catch (error) {} |
| | | return await enterpriseServices.getEnterpriseElectronSignSetting({ id: id }); |
| | | } |
| | | |
| | | async function getEnterpriseSmsSetting(id: string) { |
| | | try { |
| | | return await enterpriseServices.getEnterpriseSmsSetting({ id: id }); |
| | | } catch (error) {} |
| | | return await enterpriseServices.getEnterpriseSmsSetting({ id: id }); |
| | | } |
| | | |
| | | const EnumElectronSignAccessList = computed(() => |
| | |
| | | ); |
| | | |
| | | async function openDialog(row?: API.GetEnterprisesQueryResultItem) { |
| | | if (row) { |
| | | let electronSignSetting = await getEnterpriseElectronSignSetting(row.id); |
| | | let smsSetting = await getEnterpriseSmsSetting(row.id); |
| | | handleEdit({ |
| | | id: row.id, |
| | | enterpriseConfigureType: EnterpriseConfigureType.Electronic, |
| | | electronSignAccesses: EnumElectronSignAccessList.value.map((value) => |
| | | electronSignSetting.electronSignAccesses.includes(value) ? value : null |
| | | ), |
| | | smsAccess: smsSetting.smsAccess, |
| | | smsCost: smsSetting.smsCost, |
| | | }); |
| | | } else { |
| | | handleAdd({ |
| | | enterpriseConfigureType: EnterpriseConfigureType.Electronic, |
| | | }); |
| | | } |
| | | try { |
| | | if (row) { |
| | | let electronSignSetting = await getEnterpriseElectronSignSetting(row.id); |
| | | let smsSetting = await getEnterpriseSmsSetting(row.id); |
| | | // let alipayWallet = await enterpriseWalletServices.getEnterpriseWallet({ |
| | | // enterpriseId: row.id, |
| | | // access: EnumEnterpriseWalletAccess.Alipay, |
| | | // }); |
| | | handleEdit({ |
| | | id: row.id, |
| | | enterpriseConfigureType: EnterpriseConfigureType.AliPay, |
| | | electronSignAccesses: EnumElectronSignAccessList.value.map((value) => |
| | | electronSignSetting.electronSignAccesses.includes(value) ? value : null |
| | | ), |
| | | smsAccess: smsSetting.smsAccess, |
| | | smsCost: smsSetting.smsCost, |
| | | alipayAccount: '', |
| | | alipayMerchantId: '', |
| | | }); |
| | | } else { |
| | | handleAdd({ |
| | | enterpriseConfigureType: EnterpriseConfigureType.AliPay, |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const { dialogProps, handleAdd, handleEdit, editForm, dialogState } = useFormDialog({ |
| | | onConfirm: handleAddOrEdit, |
| | | defaultFormParams: { |
| | | id: '', |
| | | enterpriseConfigureType: EnterpriseConfigureType.Electronic, |
| | | enterpriseConfigureType: EnterpriseConfigureType.AliPay, |
| | | electronSignAccesses: [] as EnumElectronSignAccess[], |
| | | smsAccess: '' as any as EnumSmsAccess, |
| | | smsCost: 0, |
| | | alipayAccount: '', |
| | | alipayMerchantId: '', |
| | | }, |
| | | }); |
| | | |
| | |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="银行账户:" prop="verifyStatus"> |
| | | {{ VerifyStatusText[form.verifyStatus] }} |
| | | <el-button style="margin-left: 40px" type="primary" link @click="handleCheckBankAccount" |
| | | <el-button style="margin-left: 10px" type="primary" link @click="handleCheckBankAccount" |
| | | >校验</el-button |
| | | > |
| | | </ProFormItemV2> |
| | | </template> --> |
| | | <template v-if="form.enterpriseConfigureType === EnterpriseConfigureType.AliPay"> |
| | | <ProFormItemV2 |
| | | label="支付宝账号:" |
| | | prop="alipayAccount" |
| | | :checkRules="[{ message: '请输入支付宝账号' }]" |
| | | > |
| | | <div style="display: flex; width: 100%"> |
| | | <ProFormText v-model.trim="form.alipayAccount" placeholder="请输入支付宝账号"> |
| | | </ProFormText> |
| | | <el-button style="margin-left: 10px" type="primary" link @click="openEnterpriseWallet" |
| | | >获取签约链接</el-button |
| | | > |
| | | </div> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="商户ID:" |
| | | prop="alipayMerchantId" |
| | | :checkRules="[{ message: '请输入商户ID' }]" |
| | | > |
| | | <ProFormText v-model.trim="form.alipayMerchantId" placeholder="请输入商户ID" /> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="签约状态:" prop="alipayAccount" required> |
| | | <span>已签约</span> |
| | | <el-button style="margin-left: 10px" type="primary" link @click="handleCheckBankAccount" |
| | | >校验</el-button |
| | | > |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="进件状态:" prop="alipayAccount" required> |
| | | <span>已进件</span> |
| | | <el-button style="margin-left: 10px" type="primary" link @click="handleCheckBankAccount" |
| | | >校验</el-button |
| | | > |
| | | </ProFormItemV2> |
| | | </template> |
| | | <template v-if="form.enterpriseConfigureType === EnterpriseConfigureType.Electronic"> |
| | | <div class="configure-dialog-form-title">通道配置</div> |
| | | <ProFormItemV2 |
| | |
| | | </span> |
| | | </template> |
| | | </ProDialog> |
| | | <QrcodeDialog v-bind="dialogQrcodeProps"></QrcodeDialog> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | |
| | | ProFormInputNumber, |
| | | ProFormSelect, |
| | | ProFormSwitch, |
| | | useFormDialog, |
| | | } from '@bole-core/components'; |
| | | import { BoleRegExp } from '@bole-core/core'; |
| | | import { |
| | |
| | | EnumSmsAccessText, |
| | | EnumElectronSignAccess, |
| | | } from '@/constants'; |
| | | import * as enterpriseWalletServices from '@/services/api/enterpriseWallet'; |
| | | import QrcodeDialog from './QrcodeDialog.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'ConfigureDialog', |
| | |
| | | electronSignAccesses: EnumElectronSignAccess[]; |
| | | smsAccess: EnumSmsAccess; |
| | | smsCost: number; |
| | | alipayAccount: string; |
| | | alipayMerchantId: string; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | const { dialogProps: dialogQrcodeProps, handleAdd } = useFormDialog({ |
| | | defaultFormParams: { |
| | | qrcodeUrl: '', |
| | | }, |
| | | }); |
| | | |
| | | async function openEnterpriseWallet() { |
| | | try { |
| | | let params: API.OpenEnterpriseWalletCommand = { |
| | | access: EnumEnterpriseWalletAccess.Alipay, |
| | | }; |
| | | let res = await enterpriseWalletServices.openEnterpriseWallet(params); |
| | | if (res) { |
| | | handleAdd({ |
| | | qrcodeUrl: res.signUrl, |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | @use '@/style/common.scss' as *; |
New file |
| | |
| | | <template> |
| | | <ProDialog |
| | | title="二维码" |
| | | v-model="innerVisible" |
| | | width="400px" |
| | | destroy-on-close |
| | | draggable |
| | | class="qrcode-dialog" |
| | | > |
| | | <div class="qrcode-wrapper"> |
| | | <vue-qrcode |
| | | v-if="useQrcode" |
| | | :value="form.qrcodeUrl" |
| | | tag="img" |
| | | :options="{ width: 180 }" |
| | | ref="qrcode" |
| | | > |
| | | </vue-qrcode> |
| | | <img v-else :src="form.qrcodeUrl" style="width: 180px; height: 180px" /> |
| | | </div> |
| | | </ProDialog> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import VueQrcode from '@chenfengyuan/vue-qrcode'; |
| | | import { ProDialog } from '@bole-core/components'; |
| | | |
| | | defineOptions({ |
| | | name: 'QrcodeDialog', |
| | | }); |
| | | |
| | | type Props = { |
| | | modelValue: boolean; |
| | | form: { |
| | | qrcodeUrl: string; |
| | | }; |
| | | useQrcode?: boolean; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), { |
| | | modelValue: false, |
| | | useQrcode: true, |
| | | }); |
| | | |
| | | const emit = defineEmits<{ |
| | | (e: 'update:modelValue', value: boolean): void; |
| | | (e: 'onCancel'): void; |
| | | }>(); |
| | | |
| | | const innerVisible = computed({ |
| | | get() { |
| | | return props.modelValue; |
| | | }, |
| | | set(val) { |
| | | emit('update:modelValue', val); |
| | | }, |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @use '@/style/common.scss' as *; |
| | | |
| | | .qrcode-wrapper { |
| | | position: relative; |
| | | |
| | | .alipay-icon { |
| | | position: absolute; |
| | | top: calc(50% - 22px); |
| | | left: calc(50% - 22px); |
| | | display: block; |
| | | padding: 6px; |
| | | width: 44px; |
| | | height: 44px; |
| | | border: none; |
| | | border-radius: 7px; |
| | | background: #ffffff; |
| | | } |
| | | } |
| | | </style> |
| | | <style lang="scss"> |
| | | .qrcode-dialog { |
| | | .el-dialog__body { |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | </style> |