| | |
| | | Wxmp = 20, |
| | | /**H5登录 */ |
| | | H5 = 30, |
| | | /**接口 */ |
| | | Api = 40, |
| | | } |
| | | |
| | | /** 编号地址场景 */ |
| | |
| | | UserServerEnterpriseEmployee = 19, |
| | | /**电子签 */ |
| | | ElectronSignServerElectronSign = 20, |
| | | /**电子签 */ |
| | | ToolServerSms = 21, |
| | | } |
| | | |
| | | /** 资源请求方式 */ |
| | |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 测试微信支付 POST /api/user/enterpriseWallet/testWeChatPay */ |
| | | export async function testWeChatPay(body: API.TestWeChatPayCommand, options?: API.RequestConfig) { |
| | | return request<boolean>('/api/user/enterpriseWallet/testWeChatPay', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | /* eslint-disable */ |
| | | // API 更新时间: |
| | | // API 唯一标识: |
| | | import * as SmsAppService from './SmsAppService'; |
| | | import * as enterpriseEmployee from './enterpriseEmployee'; |
| | | import * as user from './user'; |
| | | import * as role from './role'; |
| | |
| | | import * as task from './task'; |
| | | import * as enterprise from './enterprise'; |
| | | import * as resource from './resource'; |
| | | import * as logRecords from './logRecords'; |
| | | import * as dictionary from './dictionary'; |
| | | import * as enterpriseWallet from './enterpriseWallet'; |
| | | import * as dictionary from './dictionary'; |
| | | import * as codeUrl from './codeUrl'; |
| | | import * as electronSign from './electronSign'; |
| | | import * as userResume from './userResume'; |
| | |
| | | import * as taskCheckReceive from './taskCheckReceive'; |
| | | import * as taskUser from './taskUser'; |
| | | import * as sms from './sms'; |
| | | import * as logRecords from './logRecords'; |
| | | import * as menu from './menu'; |
| | | import * as fileUtils from './fileUtils'; |
| | | import * as syncDatabase from './syncDatabase'; |
| | | export default { |
| | | SmsAppService, |
| | | enterpriseEmployee, |
| | | user, |
| | | role, |
| | |
| | | task, |
| | | enterprise, |
| | | resource, |
| | | logRecords, |
| | | dictionary, |
| | | enterpriseWallet, |
| | | dictionary, |
| | | codeUrl, |
| | | electronSign, |
| | | userResume, |
| | |
| | | taskCheckReceive, |
| | | taskUser, |
| | | sms, |
| | | logRecords, |
| | | menu, |
| | | fileUtils, |
| | | syncDatabase, |
| | |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 阿里云短信平台回传通知 POST /api/common/sms/smsAliyunNotify */ |
| | | export async function smsAliyunNotify( |
| | | body: API.SmsAliyunNotifyCommandItem[], |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.SmsAliyunNotifyCommandResult>('/api/common/sms/smsAliyunNotify', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 诚立业短信平台回传通知 POST /api/common/sms/smsChengLiYeNotify */ |
| | | export async function smsChengLiYeNotify( |
| | | body: API.SmsChengLiYeNotifyCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/common/sms/smsChengLiYeNotify', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | Wxmp = 20, |
| | | /**H5登录 */ |
| | | H5 = 30, |
| | | /**接口 */ |
| | | Api = 40, |
| | | } |
| | | |
| | | enum EnumCodeUrlScene { |
| | |
| | | UserServerEnterpriseEmployee = 19, |
| | | /**电子签 */ |
| | | ElectronSignServerElectronSign = 20, |
| | | /**电子签 */ |
| | | ToolServerSms = 21, |
| | | } |
| | | |
| | | enum EnumResourceMethod { |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultIActionResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: IActionResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultImportEnterpriseEmployeesCommandResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: RechargeEnterpriseWalletCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultSmsAliyunNotifyCommandResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: SmsAliyunNotifyCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | isDisabled?: boolean; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 签名名称 */ |
| | | signName?: string; |
| | | } |
| | | |
| | | interface GetTaskEnterpriseQueryResult { |
| | |
| | | workExperience?: string; |
| | | } |
| | | |
| | | type IActionResult = Record<string, any>; |
| | | |
| | | interface ImportEnterpriseEmployeesCommand { |
| | | /** Excel地址 */ |
| | | excelUrl?: string; |
| | |
| | | isDisabled?: boolean; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 签名名称 */ |
| | | signName?: string; |
| | | } |
| | | |
| | | interface SaveTaskInfoCommand { |
| | |
| | | status?: EnumUserStatus; |
| | | } |
| | | |
| | | interface SmsAliyunNotifyCommandItem { |
| | | /** 转发给运营商的时间。 */ |
| | | send_time?: string; |
| | | /** 收到运营商回执的时间。 */ |
| | | report_time?: string; |
| | | /** 是否发送成功。 */ |
| | | success?: boolean; |
| | | /** 错误码信息描述。 */ |
| | | err_msg?: string; |
| | | /** 错误码。 */ |
| | | err_code?: string; |
| | | /** 短信接收号码。 */ |
| | | phone_number?: string; |
| | | /** 短信长度。 */ |
| | | sms_size?: string; |
| | | /** 发送回执ID,即发送流水号。 */ |
| | | biz_id?: string; |
| | | /** 调用发送短信SendSms接口时传的outId。 */ |
| | | out_id?: string; |
| | | } |
| | | |
| | | interface SmsAliyunNotifyCommandResult { |
| | | /** 回调码 */ |
| | | code?: number; |
| | | /** 消息 */ |
| | | msg?: string; |
| | | } |
| | | |
| | | interface SmsChengLiYeNotifyCommand { |
| | | /** 状态码 */ |
| | | resultCode?: string; |
| | | /** 状态码 */ |
| | | msgReports?: SmsChengLiYeNotifyCommandMsgReport[]; |
| | | } |
| | | |
| | | interface SmsChengLiYeNotifyCommandMsgReport { |
| | | /** 用户名。提交时的用户名 */ |
| | | userName?: string; |
| | | /** 提交返回的msgid */ |
| | | msgid?: number; |
| | | /** 提交返回的seqid */ |
| | | seqid?: string; |
| | | /** 手机号码 */ |
| | | mobile?: string; |
| | | /** 手机号码发送状态码 */ |
| | | status?: string; |
| | | /** 状态码描述 */ |
| | | statusDes?: string; |
| | | /** 报告返回时间 */ |
| | | doneTime?: string; |
| | | } |
| | | |
| | | interface SmsLoginCommand { |
| | | /** 手机号码 */ |
| | | phoneNumber?: string; |
| | |
| | | remark?: string; |
| | | } |
| | | |
| | | type TestWeChatPayCommand = Record<string, any>; |
| | | |
| | | interface UpdatePhoneNumberVerifyCodeCommand { |
| | | /** 手机号码 */ |
| | | phoneNumber: string; |
| | |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="通道配置:" prop="accesses"> |
| | | <div class="access-list"> |
| | | <div class="access-list" v-if="!isRead"> |
| | | <div class="access-item" v-for="(item, index) in form.accesses" :key="index"> |
| | | <div class="access-item-label"> |
| | | {{ EnumSmsAccessTextUseInSms[item.access] }} |
| | |
| | | ]" |
| | | :button-style="false" |
| | | ></ProFormRadio> |
| | | <ProFormText |
| | | style="margin-right: 10px; width: 200px" |
| | | v-model="item.signName" |
| | | placeholder="请输入签名名称" |
| | | ></ProFormText> |
| | | <ProFormInputNumber |
| | | :controls="false" |
| | | :min="0" |
| | | v-model="item.sort" |
| | | placeholder="请输入" |
| | | ></ProFormInputNumber> |
| | | </div> |
| | | </div> |
| | | <div class="access-list" v-else> |
| | | <div class="access-item" v-for="(item, index) in form.accesses" :key="index"> |
| | | <div class="access-item-label"> |
| | | {{ `通道:${EnumSmsAccessTextUseInSms[item.access]}` }} |
| | | </div> |
| | | <div class="access-item-label"> |
| | | {{ `状态:${item.isDisabled ? '禁用' : '启用'}` }} |
| | | </div> |
| | | <div class="access-item-label">{{ `签名:${item.signName}` }}</div> |
| | | <div class="access-item-label">{{ `排序:${item.sort}` }}</div> |
| | | </div> |
| | | </div> |
| | | </ProFormItemV2> |
| | |
| | | ProFormItemV2, |
| | | ProFormInputNumber, |
| | | ProFormRadio, |
| | | ProFormText, |
| | | } from '@bole-core/components'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import * as smsServices from '@/services/api/sms'; |
| | |
| | | minutelyMaxCount: 0, |
| | | hourlyMaxCount: 0, |
| | | dailyMaxCount: 0, |
| | | accesses: [] as API.SaveSmsSettingCommandAccess[], |
| | | accesses: [] as API.GetSmsSettingQueryResultAccess[], |
| | | }); |
| | | |
| | | const isRead = ref(true); |