| | |
| | | }); |
| | | } |
| | | |
| | | /** 校验合同模板业务编号是否存在 POST /api/user/electronSign/checkExistContractTemplateCode */ |
| | | export async function checkExistContractTemplateCode( |
| | | body: API.CheckExistContractTemplateCodeCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/user/electronSign/checkExistContractTemplateCode', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 电子签回传 POST /api/user/electronSign/electronSignCallback */ |
| | | export async function electronSignCallback( |
| | | body: API.ElectronSignCallbackCommand, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 修复合同模板变量数据(1.2.0.2) POST /api/user/electronSign/repairContractTemplateValuePointBy_1_2_0_2_ */ |
| | | export async function repairContractTemplateValuePointBy1202_( |
| | | body: API.RepairContractTemplateValuePointBy1202Command, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/user/electronSign/repairContractTemplateValuePointBy_1_2_0_2_', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 保存合同模板 POST /api/user/electronSign/saveContractTemplate */ |
| | | export async function saveContractTemplate( |
| | | body: API.SaveContractTemplateCommand, |
| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 企业批量签约合同 POST /api/user/enterpriseEmployee/batchEnterpriseSignContract */ |
| | | export async function batchEnterpriseSignContract( |
| | | body: API.BatchEnterpriseSignContractCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.BatchEnterpriseSignContractCommandResult>( |
| | | '/api/user/enterpriseEmployee/batchEnterpriseSignContract', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 编辑灵工信息 POST /api/user/enterpriseEmployee/editEnterpriseEmployee */ |
| | | export async function editEnterpriseEmployee( |
| | | body: API.EditEnterpriseEmployeeCommand, |
| | |
| | | address?: string; |
| | | } |
| | | |
| | | interface BatchEnterpriseSignContractCommand { |
| | | /** 灵工Id */ |
| | | ids?: string[]; |
| | | } |
| | | |
| | | interface BatchEnterpriseSignContractCommandResult { |
| | | /** 签约成功灵工Id */ |
| | | successIds?: string[]; |
| | | /** 签约失败的灵工信息 */ |
| | | errors?: BatchEnterpriseSignContractCommandResultError[]; |
| | | } |
| | | |
| | | interface BatchEnterpriseSignContractCommandResultError { |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 手机号 */ |
| | | contactPhoneNumber?: string; |
| | | /** 身份证号 */ |
| | | identity?: string; |
| | | /** 错误消息 */ |
| | | errorMessages?: string; |
| | | } |
| | | |
| | | interface BindWxmpUserInfoCommand { |
| | | /** 访问令牌 */ |
| | | accessToken: string; |
| | |
| | | accesses?: EnumElectronSignAccess[]; |
| | | } |
| | | |
| | | interface CheckExistContractTemplateCodeCommand { |
| | | /** 模板Id(编辑时传入) */ |
| | | id?: string; |
| | | /** 业务编号 */ |
| | | code: string; |
| | | } |
| | | |
| | | type CheckHealthQuery = Record<string, any>; |
| | | |
| | | interface CheckOperatorTokenCommand { |
| | |
| | | interface CheckReceiveTaskCommand { |
| | | /** 提交Id */ |
| | | id?: string; |
| | | /** 任务人员Id */ |
| | | taskInfoUserId?: string; |
| | | /** 日期 */ |
| | | date?: string; |
| | | /** 签到时间 */ |
| | | checkInTime?: string; |
| | | /** 签出时间 */ |
| | |
| | | interface ExportTaskSettlementOrderRostersCommand { |
| | | /** 结算订单Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface FriendlyResultBatchEnterpriseSignContractCommandResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: BatchEnterpriseSignContractCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultBoolean { |
| | |
| | | bindProperty?: string; |
| | | /** 是否必填 */ |
| | | required?: boolean; |
| | | /** 坐标X */ |
| | | x?: number; |
| | | /** 坐标Y */ |
| | | y?: number; |
| | | /** 页码 */ |
| | | page?: number; |
| | | } |
| | | |
| | | type GetCurrentLogierMenusQuery = Record<string, any>; |
| | |
| | | hirePassTaskCount?: number; |
| | | /** 已取消 */ |
| | | hireRefuseTaskCount?: number; |
| | | /** 任务中 */ |
| | | inProcessTaskCount?: number; |
| | | /** 余额 */ |
| | | balance?: number; |
| | | /** 我的收益 */ |
| | | incomeCount?: number; |
| | | /** 待结算 */ |
| | | waitSettlement?: number; |
| | | /** 已发放 */ |
| | | releaseedCount?: number; |
| | | /** 已绑定的银行卡通道 */ |
| | | bankCardAAccesses?: EnumUserBankCardAccess[]; |
| | | } |
| | |
| | | identity?: string; |
| | | /** 手机号 */ |
| | | contactPhoneNumber?: string; |
| | | /** 累计工时 */ |
| | | totalWorkHours?: number; |
| | | /** 所属银行 */ |
| | | bank?: string; |
| | | /** 所属支行 */ |
| | | bankBranch?: string; |
| | | /** 收款账户 */ |
| | | receiveAccount?: string; |
| | | /** 累计工时 */ |
| | | totalWorkHours?: number; |
| | | /** 结算金额 */ |
| | | settlementAmount?: number; |
| | | /** 实发金额 */ |
| | |
| | | verifyCode: string; |
| | | } |
| | | |
| | | type RepairContractTemplateValuePointBy1202Command = Record<string, any>; |
| | | |
| | | interface ResendResourceCommand { |
| | | /** 资源日志Id */ |
| | | id?: string; |
| | |
| | | bindProperty?: string; |
| | | /** 是否必填 */ |
| | | required?: boolean; |
| | | /** 坐标X */ |
| | | x?: number; |
| | | /** 坐标Y */ |
| | | y?: number; |
| | | /** 页码 */ |
| | | page?: number; |
| | | } |
| | | |
| | | interface SaveDictionaryCategoryCommand { |
| | |
| | | import { filterCN, filterNumbersFromString } from '@/utils'; |
| | | import { FormInstance } from 'element-plus'; |
| | | import { EnumElectronSignAccessText } from '@/constants'; |
| | | import * as electronSignServices from '@/services/api/electronSign'; |
| | | import { Message } from '@bole-core/core'; |
| | | |
| | | defineOptions({ |
| | | name: 'AddOrEditTemplateDialog', |
| | |
| | | all: true, |
| | | }); |
| | | |
| | | async function handleCodeBlur() { |
| | | try { |
| | | let params: API.CheckContractTemplateCommand = { |
| | | id: form.value?.id, |
| | | }; |
| | | let res = await electronSignServices.checkContractTemplate(params); |
| | | if (res) { |
| | | Message.warnMessage('业务编码已存在,请重新输入'); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const dialogForm = ref<FormInstance>(); |
| | | |
| | | function onDialogClose() { |