| | |
| | | <nut-form-item |
| | | label="保险产品:" |
| | | class="bole-form-item" |
| | | prop="supplierEnterpriseId" |
| | | prop="insuranceProductId" |
| | | label-width="90px" |
| | | required |
| | | v-if="form.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn)" |
| | | > |
| | | <ChooseInputWithPicker |
| | | v-model="form.supplierEnterpriseId" |
| | | v-model="form.insuranceProductId" |
| | | placeholder="请选择保险产品" |
| | | :value-enum="supplierEnterpriseSelect" |
| | | :value-enum="enterpriseInsuranceProductSelect" |
| | | @change="calcTaskTotalServiceFee()" |
| | | /> |
| | | </nut-form-item> |
| | | <nut-form-item |
| | |
| | | prop="totalServiceFee" |
| | | label-width="110px" |
| | | > |
| | | {{ `${toThousand(totalServiceFee)}元` }} |
| | | {{ `${toThousand(form.totalServiceFee)}元` }} |
| | | </nut-form-item> |
| | | </nut-form> |
| | | </ContentScrollView> |
| | |
| | | import { |
| | | useAllAreaList, |
| | | useDictionaryDataSelect, |
| | | useEnterpriseInsuranceProductSelect, |
| | | useEnterpriseWalletAccessSelect, |
| | | useGetSupplierEnterpriseSelect, |
| | | } from '@12333/hooks'; |
| | |
| | | const { findAreaNameFromCode } = useAllAreaList(); |
| | | |
| | | const { supplierEnterpriseSelect } = useGetSupplierEnterpriseSelect(); |
| | | |
| | | const router = Taro.useRouter(); |
| | | const taskId = router.params?.id ?? ''; |
| | | const isCopy = router.params?.isCopy === 'true'; |
| | |
| | | totalPieceQuantity: '' as any as number, |
| | | |
| | | totalServiceFee: null as number, |
| | | insuranceProductId: '', |
| | | }); |
| | | |
| | | const rules = reactive<FormRules>({ |
| | |
| | | }, |
| | | }, |
| | | ], |
| | | insuranceProductId: [ |
| | | { |
| | | required: true, |
| | | message: '请选择保险产品', |
| | | validator(value) { |
| | | if (!value?.length) return Promise.reject('请选择保险产品'); |
| | | return Promise.resolve(true); |
| | | }, |
| | | }, |
| | | ], |
| | | }); |
| | | |
| | | const { settlementAccessList } = useEnterpriseWalletAccessSelect({ |
| | | supplierEnterpriseId: computed(() => form.supplierEnterpriseId), |
| | | }); |
| | | |
| | | const { enterpriseInsuranceProductSelect } = useEnterpriseInsuranceProductSelect({ |
| | | supplierEnterpriseId: computed(() => form.supplierEnterpriseId), |
| | | }); |
| | | |
| | |
| | | form.applyBeginTime = dayjs(data.applyBeginTime).format('YYYY-MM-DD'); |
| | | form.applyEndTime = dayjs(data.applyEndTime).format('YYYY-MM-DD'); |
| | | form.settlementAccess = data.settlementAccess; |
| | | form.insuranceProductId = data.insuranceProductId; |
| | | |
| | | if (!!data.timeoutServiceFee) { |
| | | calcTaskTotalServiceFee(); |
| | |
| | | needPeopleNumber: form.needPeopleNumber, |
| | | beginTime: dayjs(form.beginTime).format('YYYY-MM-DD 00:00:00'), |
| | | endTime: dayjs(form.endTime).format('YYYY-MM-DD 23:59:59'), |
| | | supplierEnterpriseId: form.supplierEnterpriseId, |
| | | checkReceiveMethods: form.checkReceiveMethods, |
| | | }; |
| | | if (form.insuranceProductId) { |
| | | params.insuranceProductId = form.insuranceProductId; |
| | | } |
| | | let res = await taskServices.calcTaskTotalServiceFee(params, { showLoading: false }); |
| | | if (res) { |
| | | form.totalServiceFee = res.totalServiceFee; |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const totalServiceFee = computed(() => { |
| | | if (!form.beginTime || !form.endTime) { |
| | | return 0; |
| | | } |
| | | var days = dayjs(form.endTime).diff(dayjs(form.beginTime), 'day') + 1; |
| | | const serviceFee = form.serviceFee || 0; |
| | | const needPeopleNumber = form.needPeopleNumber || 0; |
| | | switch (form.billingMethod) { |
| | | case EnumBillingMethod.Month: |
| | | return serviceFee * Math.round(days / 30) * needPeopleNumber; |
| | | case EnumBillingMethod.Day: |
| | | return serviceFee * days * needPeopleNumber; |
| | | case EnumBillingMethod.Hour: |
| | | return serviceFee * (form.verifyWorkHours || 0) * days * needPeopleNumber; |
| | | case EnumBillingMethod.Piece: |
| | | return serviceFee * (form.totalPieceQuantity || 0); |
| | | default: |
| | | return 0; |
| | | } |
| | | }); |
| | | // const totalServiceFee = computed(() => { |
| | | // if (!form.beginTime || !form.endTime) { |
| | | // return 0; |
| | | // } |
| | | // var days = dayjs(form.endTime).diff(dayjs(form.beginTime), 'day') + 1; |
| | | // const serviceFee = form.serviceFee || 0; |
| | | // const needPeopleNumber = form.needPeopleNumber || 0; |
| | | // switch (form.billingMethod) { |
| | | // case EnumBillingMethod.Month: |
| | | // return serviceFee * Math.round(days / 30) * needPeopleNumber; |
| | | // case EnumBillingMethod.Day: |
| | | // return serviceFee * days * needPeopleNumber; |
| | | // case EnumBillingMethod.Hour: |
| | | // return serviceFee * (form.verifyWorkHours || 0) * days * needPeopleNumber; |
| | | // case EnumBillingMethod.Piece: |
| | | // return serviceFee * (form.totalPieceQuantity || 0); |
| | | // default: |
| | | // return 0; |
| | | // } |
| | | // }); |
| | | |
| | | const formRef = ref<any>(null); |
| | | function handleConfirm() { |
| | |
| | | applyBeginTime: dayjs(form.applyBeginTime).format('YYYY-MM-DD 00:00:00'), |
| | | applyEndTime: dayjs(form.applyEndTime).format('YYYY-MM-DD 23:59:59'), |
| | | settlementAccess: form.settlementAccess, |
| | | insuranceProductId: form.insuranceProductId, |
| | | }; |
| | | if (form.billingMethod !== EnumBillingMethod.Face) { |
| | | params.serviceFee = form.serviceFee; |
| | |
| | | |
| | | const emit = defineEmits<{ |
| | | (e: 'update:modelValue', val: string | number): void; |
| | | (e: 'change'): void; |
| | | }>(); |
| | | |
| | | const options = computed(() => |
| | |
| | | onConfirm: ({ selectedValue, selectedOptions }) => { |
| | | console.log('selectedValue: ', selectedValue, selectedOptions); |
| | | emit('update:modelValue', selectedOptions[0].value); |
| | | emit('change'); |
| | | onClose(); |
| | | }, |
| | | }), |
| | |
| | | Pass = 30, |
| | | } |
| | | |
| | | /** 投保供应商账号 */ |
| | | export enum EnumInsuranceSupplierAccess { |
| | | /**人资园 */ |
| | | WaterDropCloud = 10, |
| | | } |
| | | |
| | | /** 日志级别 */ |
| | | export enum EnumLogLevel { |
| | | /**跟踪 */ |
| | |
| | | FlexJobServerTaskUser = 2, |
| | | /**任务验收 */ |
| | | FlexJobServerTaskCheckReceive = 3, |
| | | /**投保产品 */ |
| | | FlexJobServerInsuranceProduct = 4, |
| | | /**企业投保产品 */ |
| | | FlexJobServerEnterpriseInsuranceProduct = 5, |
| | | /**编号地址 */ |
| | | CommonServerCodeUrls = 4, |
| | | CommonServerCodeUrls = 6, |
| | | /**文件 */ |
| | | CommonServerFileUtils = 5, |
| | | CommonServerFileUtils = 7, |
| | | /**事件 */ |
| | | CommonServerEventUtils = 6, |
| | | CommonServerEventUtils = 8, |
| | | /**文字识别 */ |
| | | CommonServerOcrUtils = 7, |
| | | CommonServerOcrUtils = 9, |
| | | /**日志记录 */ |
| | | CommonServerLogRecords = 8, |
| | | CommonServerLogRecords = 10, |
| | | /**同步数据库 */ |
| | | CommonServerSyncDatabase = 9, |
| | | CommonServerSyncDatabase = 11, |
| | | /**短信工具 */ |
| | | CommonServerSmsUtils = 10, |
| | | CommonServerSmsUtils = 12, |
| | | /**配置 */ |
| | | CommonServerSettings = 11, |
| | | CommonServerSettings = 13, |
| | | /**已读 */ |
| | | CommonServerReadRecord = 12, |
| | | CommonServerReadRecord = 14, |
| | | /**微信小程序 */ |
| | | CommonServerWxmp = 15, |
| | | /**用户认证 */ |
| | | UserServerAuth = 13, |
| | | UserServerAuth = 16, |
| | | /**用户菜单 */ |
| | | UserServerMenu = 14, |
| | | UserServerMenu = 17, |
| | | /**用户资源 */ |
| | | UserServerResource = 15, |
| | | UserServerResource = 18, |
| | | /**用户角色 */ |
| | | UserServerRole = 16, |
| | | UserServerRole = 19, |
| | | /**用户信息 */ |
| | | UserServerUser = 17, |
| | | UserServerUser = 20, |
| | | /**用户钱包 */ |
| | | UserServerUserWallet = 18, |
| | | UserServerUserWallet = 21, |
| | | /**电子签 */ |
| | | UserServerElectronSign = 19, |
| | | UserServerElectronSign = 22, |
| | | /**用户简历 */ |
| | | UserServerUserResume = 20, |
| | | UserServerUserResume = 23, |
| | | /**企业信息 */ |
| | | UserServerEnterprise = 21, |
| | | UserServerEnterprise = 24, |
| | | /**企业钱包 */ |
| | | UserServerEnterpriseWallet = 22, |
| | | UserServerEnterpriseWallet = 25, |
| | | /**企业合作钱包 */ |
| | | UserServerEnterpriseCooperationWallet = 23, |
| | | UserServerEnterpriseCooperationWallet = 26, |
| | | /**灵工信息 */ |
| | | UserServerEnterpriseEmployee = 24, |
| | | UserServerEnterpriseEmployee = 27, |
| | | /**电子签 */ |
| | | ElectronSignServerElectronSign = 25, |
| | | ElectronSignServerElectronSign = 28, |
| | | /**短信 */ |
| | | ToolServerSms = 26, |
| | | ToolServerSms = 29, |
| | | /**小程序 */ |
| | | ToolServerWxmp = 27, |
| | | ToolServerWxmp = 30, |
| | | /**保险 */ |
| | | WaterDropCloudServerInsurance = 31, |
| | | } |
| | | |
| | | /** 资源请求方式 */ |
| | |
| | | VERIFYING = 2, |
| | | } |
| | | |
| | | /** 微信小程序订阅消息模板 */ |
| | | export enum EnumWxmpSubscribMessageTemplate { |
| | | /**工易赚 */ |
| | | HireCompletedToPersonal = 0, |
| | | /**工易赚 */ |
| | | ElectronSignStatusChangedForPersonal = 1, |
| | | /**工易赚 */ |
| | | ArrangeCompletedToPersonal = 2, |
| | | /**工易赚 */ |
| | | TaskCheckReceiveResultToPersonal = 3, |
| | | /**工易赚 */ |
| | | SettlementReceiveToPersonal = 4, |
| | | /**灵工达 */ |
| | | TaskCheckReceiveResultToEnterprise = 5, |
| | | /**灵工达 */ |
| | | SettlementWaitAuditToEnterprise = 6, |
| | | /**灵工达 */ |
| | | SettlementReceiveToEnterprise = 7, |
| | | /**灵工达 */ |
| | | RechargeStatusChangedToEnterprise = 8, |
| | | /**淘闪工 */ |
| | | SettlementWaitSureToSupplier = 9, |
| | | /**淘闪工 */ |
| | | SettlementReceiveToSupplier = 10, |
| | | /**淘闪工 */ |
| | | RechargeStatusChangedToSupplier = 11, |
| | | /**淘闪工 */ |
| | | CheckInToSupplier = 12, |
| | | } |
| | | |
| | | /** 我的报名分页列表-状态 */ |
| | | export enum GetPersonalApplyTaskInfosQueryStatus { |
| | | /**待确认 */ |
| | |
| | | export * from './user'; |
| | | export * from './payrollChange'; |
| | | export * from './dialog'; |
| | | export * from './insurance'; |
| New file |
| | |
| | | import { useQuery, useQueryClient } from '@tanstack/vue-query'; |
| | | import * as enterpriseInsuranceProductServices from '@12333/services/apiV2/enterpriseInsuranceProduct'; |
| | | import { compile, computed, MaybeRef, unref } from 'vue'; |
| | | |
| | | type UseEnterpriseInsuranceProductSelectOptions = { |
| | | supplierEnterpriseId: MaybeRef<string>; |
| | | }; |
| | | |
| | | export function useEnterpriseInsuranceProductSelect( |
| | | options: UseEnterpriseInsuranceProductSelectOptions |
| | | ) { |
| | | const { supplierEnterpriseId } = options; |
| | | const queryClient = useQueryClient(); |
| | | |
| | | const { data: enterpriseInsuranceProductSelect } = useQuery({ |
| | | queryKey: [ |
| | | 'enterpriseInsuranceProductServices/getEnterpriseInsuranceProductSelect', |
| | | supplierEnterpriseId, |
| | | ], |
| | | queryFn: () => { |
| | | return enterpriseInsuranceProductServices.getEnterpriseInsuranceProductSelect( |
| | | { supplierEnterpriseId: unref(supplierEnterpriseId) }, |
| | | { |
| | | showLoading: false, |
| | | } |
| | | ); |
| | | }, |
| | | placeholderData: () => |
| | | [] as API.SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption[], |
| | | enabled: computed(() => !!unref(supplierEnterpriseId)), |
| | | }); |
| | | |
| | | return { enterpriseInsuranceProductSelect }; |
| | | } |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业保险配置 GET /api/user/enterprise/getEnterpriseInsuranceSetting */ |
| | | export async function getEnterpriseInsuranceSetting( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseInsuranceSettingParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseInsuranceSettingQueryResult>( |
| | | '/api/user/enterprise/getEnterpriseInsuranceSetting', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业信息分页列表数据 POST /api/user/enterprise/getEnterprises */ |
| | | export async function getEnterprises(body: API.GetEnterprisesQuery, options?: API.RequestConfig) { |
| | | return request<API.PagedListQueryResultGetEnterprisesQueryResultItem>( |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 设置企业保险配置 PUT /api/user/enterprise/setEnterpriseInsuranceSetting */ |
| | | export async function setEnterpriseInsuranceSetting( |
| | | body: API.SetEnterpriseInsuranceSettingCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterprise/setEnterpriseInsuranceSetting', { |
| | | method: 'PUT', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置企业短信配置 PUT /api/user/enterprise/setEnterpriseSmsSetting */ |
| | | export async function setEnterpriseSmsSetting( |
| | | body: API.SetEnterpriseSmsSettingCommand, |
| New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 查询企业保险产品分页列表 POST /api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProducts */ |
| | | export async function getEnterpriseInsuranceProducts( |
| | | body: API.GetEnterpriseInsuranceProductsQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseInsuranceProductsQueryResult>( |
| | | '/api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProducts', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业保险产品选择器数据 GET /api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProductSelect */ |
| | | export async function getEnterpriseInsuranceProductSelect( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseInsuranceProductSelectParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption[]>( |
| | | '/api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProductSelect', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 设置企业投保产品状态 PUT /api/flexjob/enterpriseInsuranceProduct/setDisabledEnterpriseInsuranceProducts */ |
| | | export async function setDisabledEnterpriseInsuranceProducts( |
| | | body: API.SetDisabledEnterpriseInsuranceProductsCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>( |
| | | '/api/flexjob/enterpriseInsuranceProduct/setDisabledEnterpriseInsuranceProducts', |
| | | { |
| | | method: 'PUT', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | |
| | | import * as userResume from './userResume'; |
| | | import * as auth from './auth'; |
| | | import * as taskUser from './taskUser'; |
| | | import * as enterpriseInsuranceProduct from './enterpriseInsuranceProduct'; |
| | | import * as eventUtils from './eventUtils'; |
| | | import * as enterpriseCooperationWallet from './enterpriseCooperationWallet'; |
| | | import * as insuranceProduct from './insuranceProduct'; |
| | | import * as codeUrl from './codeUrl'; |
| | | import * as syncDatabase from './syncDatabase'; |
| | | import * as menu from './menu'; |
| | |
| | | import * as userWallet from './userWallet'; |
| | | import * as fileUtils from './fileUtils'; |
| | | import * as settings from './settings'; |
| | | import * as wxmpUtils from './wxmpUtils'; |
| | | export default { |
| | | enterprise, |
| | | enterpriseEmployee, |
| | |
| | | userResume, |
| | | auth, |
| | | taskUser, |
| | | enterpriseInsuranceProduct, |
| | | eventUtils, |
| | | enterpriseCooperationWallet, |
| | | insuranceProduct, |
| | | codeUrl, |
| | | syncDatabase, |
| | | menu, |
| | |
| | | userWallet, |
| | | fileUtils, |
| | | settings, |
| | | wxmpUtils, |
| | | }; |
| New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 查询保险产品分页列表 POST /api/flexjob/insuranceProduct/getInsuranceProducts */ |
| | | export async function getInsuranceProducts( |
| | | body: API.GetInsuranceProductsQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetInsuranceProductsQueryResult>( |
| | | '/api/flexjob/insuranceProduct/getInsuranceProducts', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 保存保险产品 POST /api/flexjob/insuranceProduct/saveInsuranceProduct */ |
| | | export async function saveInsuranceProduct( |
| | | body: API.SaveInsuranceProductCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/flexjob/insuranceProduct/saveInsuranceProduct', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置保险产品状态 PUT /api/flexjob/insuranceProduct/setIsDisabledInsuranceProduct */ |
| | | export async function setIsDisabledInsuranceProduct( |
| | | body: API.SetIsDisabledInsuranceProductCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/flexjob/insuranceProduct/setIsDisabledInsuranceProduct', { |
| | | method: 'PUT', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | taskInfoId?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseInsuranceProductSelectParams { |
| | | /** 供应商Id */ |
| | | supplierEnterpriseId?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseInsuranceSettingParams { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseLoginInfoParams { |
| | | /** 查询企业用户登录信息 */ |
| | | request?: GetEnterpriseLoginInfoQuery; |
| | |
| | | } |
| | | |
| | | interface CalcTaskTotalServiceFeeCommand { |
| | | /** 供应商Id */ |
| | | supplierEnterpriseId?: string; |
| | | billingMethod?: EnumBillingMethod; |
| | | /** 服务费 */ |
| | | serviceFee?: number; |
| | |
| | | verifyWorkHours?: number; |
| | | /** 总件数 */ |
| | | totalPieceQuantity?: number; |
| | | /** 保险产品Id */ |
| | | insuranceProductId?: string; |
| | | /** 需求人数 */ |
| | | needPeopleNumber?: number; |
| | | /** 任务开始时间 */ |
| | | beginTime?: string; |
| | | /** 任务结束时间 */ |
| | | endTime?: string; |
| | | /** 验收方式 */ |
| | | checkReceiveMethods?: EnumTaskCheckReceiveMethod[]; |
| | | } |
| | | |
| | | interface CalcTaskTotalServiceFeeCommandResult { |
| | | /** 服务费 */ |
| | | totalServiceFee?: number; |
| | | /** 保费单价 */ |
| | | insuranceUnitPrice?: number; |
| | | /** 预计保费 */ |
| | | insuranceTotalPrice?: number; |
| | | insuranceSupplierAccess?: EnumInsuranceSupplierAccess; |
| | | /** 投保供应商账号 */ |
| | | insuranceSupplierAccount?: string; |
| | | /** 保险供应商Id */ |
| | | insuranceSupplierId?: string; |
| | | } |
| | | |
| | | interface ChangePhoneNumberCommand { |
| | |
| | | Pass = 30, |
| | | } |
| | | |
| | | enum EnumInsuranceSupplierAccess { |
| | | /**人资园 */ |
| | | WaterDropCloud = 10, |
| | | } |
| | | |
| | | enum EnumLogLevel { |
| | | /**跟踪 */ |
| | | Trace = 10, |
| | |
| | | FlexJobServerTaskUser = 2, |
| | | /**任务验收 */ |
| | | FlexJobServerTaskCheckReceive = 3, |
| | | /**投保产品 */ |
| | | FlexJobServerInsuranceProduct = 4, |
| | | /**企业投保产品 */ |
| | | FlexJobServerEnterpriseInsuranceProduct = 5, |
| | | /**编号地址 */ |
| | | CommonServerCodeUrls = 4, |
| | | CommonServerCodeUrls = 6, |
| | | /**文件 */ |
| | | CommonServerFileUtils = 5, |
| | | CommonServerFileUtils = 7, |
| | | /**事件 */ |
| | | CommonServerEventUtils = 6, |
| | | CommonServerEventUtils = 8, |
| | | /**文字识别 */ |
| | | CommonServerOcrUtils = 7, |
| | | CommonServerOcrUtils = 9, |
| | | /**日志记录 */ |
| | | CommonServerLogRecords = 8, |
| | | CommonServerLogRecords = 10, |
| | | /**同步数据库 */ |
| | | CommonServerSyncDatabase = 9, |
| | | CommonServerSyncDatabase = 11, |
| | | /**短信工具 */ |
| | | CommonServerSmsUtils = 10, |
| | | CommonServerSmsUtils = 12, |
| | | /**配置 */ |
| | | CommonServerSettings = 11, |
| | | CommonServerSettings = 13, |
| | | /**已读 */ |
| | | CommonServerReadRecord = 12, |
| | | CommonServerReadRecord = 14, |
| | | /**微信小程序 */ |
| | | CommonServerWxmp = 15, |
| | | /**用户认证 */ |
| | | UserServerAuth = 13, |
| | | UserServerAuth = 16, |
| | | /**用户菜单 */ |
| | | UserServerMenu = 14, |
| | | UserServerMenu = 17, |
| | | /**用户资源 */ |
| | | UserServerResource = 15, |
| | | UserServerResource = 18, |
| | | /**用户角色 */ |
| | | UserServerRole = 16, |
| | | UserServerRole = 19, |
| | | /**用户信息 */ |
| | | UserServerUser = 17, |
| | | UserServerUser = 20, |
| | | /**用户钱包 */ |
| | | UserServerUserWallet = 18, |
| | | UserServerUserWallet = 21, |
| | | /**电子签 */ |
| | | UserServerElectronSign = 19, |
| | | UserServerElectronSign = 22, |
| | | /**用户简历 */ |
| | | UserServerUserResume = 20, |
| | | UserServerUserResume = 23, |
| | | /**企业信息 */ |
| | | UserServerEnterprise = 21, |
| | | UserServerEnterprise = 24, |
| | | /**企业钱包 */ |
| | | UserServerEnterpriseWallet = 22, |
| | | UserServerEnterpriseWallet = 25, |
| | | /**企业合作钱包 */ |
| | | UserServerEnterpriseCooperationWallet = 23, |
| | | UserServerEnterpriseCooperationWallet = 26, |
| | | /**灵工信息 */ |
| | | UserServerEnterpriseEmployee = 24, |
| | | UserServerEnterpriseEmployee = 27, |
| | | /**电子签 */ |
| | | ElectronSignServerElectronSign = 25, |
| | | ElectronSignServerElectronSign = 28, |
| | | /**短信 */ |
| | | ToolServerSms = 26, |
| | | ToolServerSms = 29, |
| | | /**小程序 */ |
| | | ToolServerWxmp = 27, |
| | | ToolServerWxmp = 30, |
| | | /**保险 */ |
| | | WaterDropCloudServerInsurance = 31, |
| | | } |
| | | |
| | | enum EnumResourceMethod { |
| | |
| | | VERIFY_FAIL = 1, |
| | | /**验证中,商户可发起提现尝试 */ |
| | | VERIFYING = 2, |
| | | } |
| | | |
| | | enum EnumWxmpSubscribMessageTemplate { |
| | | /**工易赚 */ |
| | | HireCompletedToPersonal = 0, |
| | | /**工易赚 */ |
| | | ElectronSignStatusChangedForPersonal = 1, |
| | | /**工易赚 */ |
| | | ArrangeCompletedToPersonal = 2, |
| | | /**工易赚 */ |
| | | TaskCheckReceiveResultToPersonal = 3, |
| | | /**工易赚 */ |
| | | SettlementReceiveToPersonal = 4, |
| | | /**灵工达 */ |
| | | TaskCheckReceiveResultToEnterprise = 5, |
| | | /**灵工达 */ |
| | | SettlementWaitAuditToEnterprise = 6, |
| | | /**灵工达 */ |
| | | SettlementReceiveToEnterprise = 7, |
| | | /**灵工达 */ |
| | | RechargeStatusChangedToEnterprise = 8, |
| | | /**淘闪工 */ |
| | | SettlementWaitSureToSupplier = 9, |
| | | /**淘闪工 */ |
| | | SettlementReceiveToSupplier = 10, |
| | | /**淘闪工 */ |
| | | RechargeStatusChangedToSupplier = 11, |
| | | /**淘闪工 */ |
| | | CheckInToSupplier = 12, |
| | | } |
| | | |
| | | interface ExportEnterpriseBalanceDetailsCommand { |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseInsuranceProductsQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetEnterpriseInsuranceProductsQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseInsuranceSettingQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetEnterpriseInsuranceSettingQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetEnterpriseLoginInfoQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetIdentityFrontOcrCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetInsuranceProductsQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetInsuranceProductsQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: SelectOptionGuidGetTaskSelectQueryOption[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultListSelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | createdTime?: string; |
| | | } |
| | | |
| | | interface GetEnterpriseInsuranceProductSelectQueryOption { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 产品名称 */ |
| | | name?: string; |
| | | } |
| | | |
| | | interface GetEnterpriseInsuranceProductsQuery { |
| | | /** 企业合作Id */ |
| | | enterpriseCooperationId: string; |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | /** 保险公司编号 */ |
| | | supplierCode?: string; |
| | | /** 保险险种编号 */ |
| | | typeCode?: string; |
| | | /** 保额编号 */ |
| | | sumInsuredCode?: string; |
| | | /** 投保方式编号 */ |
| | | periodCode?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetEnterpriseInsuranceProductsQueryResult { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetEnterpriseInsuranceProductsQueryResultItem[]; |
| | | } |
| | | |
| | | interface GetEnterpriseInsuranceProductsQueryResultItem { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 保险公司编号 */ |
| | | supplierCode?: string; |
| | | /** 保险公司 */ |
| | | supplierContent?: string; |
| | | /** 产品名称 */ |
| | | name?: string; |
| | | /** 保险险种编号 */ |
| | | typeCode?: string; |
| | | /** 保险险种 */ |
| | | typeContent?: string; |
| | | /** 保额编号 */ |
| | | sumInsuredCode?: string; |
| | | /** 保额 */ |
| | | sumInsuredContent?: string; |
| | | /** 投保方式编号 */ |
| | | periodCode?: string; |
| | | /** 投保方式 */ |
| | | periodContent?: string; |
| | | /** 职业类别编号 */ |
| | | jobCategoryCode?: string; |
| | | /** 职业类别 */ |
| | | jobCategoryContent?: string; |
| | | /** 投保版本编号 */ |
| | | versionCode?: string; |
| | | /** 投保版本 */ |
| | | versionContent?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface GetEnterpriseInsuranceSettingQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | insuranceSupplierAccess?: EnumInsuranceSupplierAccess; |
| | | /** 投保供应商账号 */ |
| | | insuranceSupplierAccount?: string; |
| | | } |
| | | |
| | | type GetEnterpriseLoginInfoQuery = Record<string, any>; |
| | | |
| | | interface GetEnterpriseLoginInfoQueryResult { |
| | |
| | | model?: BaiduOcrIdentityFrontResultModel; |
| | | } |
| | | |
| | | interface GetInsuranceProductsQuery { |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | /** 保险公司编号 */ |
| | | supplierCode?: string; |
| | | /** 保险险种编号 */ |
| | | typeCode?: string; |
| | | /** 保额编号 */ |
| | | sumInsuredCode?: string; |
| | | /** 投保方式编号 */ |
| | | periodCode?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetInsuranceProductsQueryResult { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetInsuranceProductsQueryResultItem[]; |
| | | } |
| | | |
| | | interface GetInsuranceProductsQueryResultItem { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 保险公司编号 */ |
| | | supplierCode?: string; |
| | | /** 保险公司 */ |
| | | supplierContent?: string; |
| | | /** 产品名称 */ |
| | | name?: string; |
| | | /** 保险险种编号 */ |
| | | typeCode?: string; |
| | | /** 保险险种 */ |
| | | typeContent?: string; |
| | | /** 保额编号 */ |
| | | sumInsuredCode?: string; |
| | | /** 保额 */ |
| | | sumInsuredContent?: string; |
| | | /** 投保方式编号 */ |
| | | periodCode?: string; |
| | | /** 投保方式 */ |
| | | periodContent?: string; |
| | | /** 职业类别编号 */ |
| | | jobCategoryCode?: string; |
| | | /** 职业类别 */ |
| | | jobCategoryContent?: string; |
| | | /** 投保版本编号 */ |
| | | versionCode?: string; |
| | | /** 投保版本 */ |
| | | versionContent?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface GetLicenseOcrCommand { |
| | | access?: EnumOcrAccess; |
| | | /** 场景 */ |
| | |
| | | serviceFeeRate?: number; |
| | | /** 发票税点 */ |
| | | invoiceTaxPointRate?: number; |
| | | /** 是否已配置 */ |
| | | isConfigured?: boolean; |
| | | } |
| | | |
| | | interface GetPersonalApplyTaskInfosQuery { |
| | |
| | | timeoutServiceFee?: number; |
| | | /** 总件数 */ |
| | | totalPieceQuantity?: number; |
| | | /** 保险产品Id */ |
| | | insuranceProductId?: string; |
| | | /** 保险产品名称 */ |
| | | insuranceProductName?: string; |
| | | settlementCycle?: EnumSettlementCycle; |
| | | /** 结算日期 */ |
| | | settlementDate?: number; |
| | |
| | | ext?: string; |
| | | } |
| | | |
| | | interface SaveInsuranceProductCommand { |
| | | /** 保险公司编号 */ |
| | | supplierCode: string; |
| | | /** 产品名称 */ |
| | | name: string; |
| | | /** 保险险种编号 */ |
| | | typeCode?: string; |
| | | /** 保额编号 */ |
| | | sumInsuredCode?: string; |
| | | /** 投保方式编号 */ |
| | | periodCode?: string; |
| | | /** 职业类别编号 */ |
| | | jobCategoryCode?: string; |
| | | /** 版本编号 */ |
| | | versionCode?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface SaveMenuButtonCommand { |
| | | /** 菜单Id */ |
| | | parentId?: string; |
| | |
| | | timeoutServiceFee?: number; |
| | | /** 总件数 */ |
| | | totalPieceQuantity?: number; |
| | | /** 保险产品Id */ |
| | | insuranceProductId?: string; |
| | | settlementCycle: EnumSettlementCycle; |
| | | /** 结算日期 */ |
| | | settlementDate: number; |
| | |
| | | data?: GetTaskSelectQueryOption; |
| | | } |
| | | |
| | | interface SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption { |
| | | /** 值 */ |
| | | value?: string; |
| | | /** 标签 */ |
| | | label?: string; |
| | | data?: GetEnterpriseInsuranceProductSelectQueryOption; |
| | | } |
| | | |
| | | interface SelectOptionStringGetDictionaryDataSelectQueryResultOption { |
| | | /** 值 */ |
| | | value?: string; |
| | |
| | | phoneNumber: string; |
| | | } |
| | | |
| | | interface SendWxmpSubscribMessageCommand { |
| | | template: EnumWxmpSubscribMessageTemplate; |
| | | /** 点击模板卡片后的跳转页面,仅限本小程序内的页面。支持带参数,(示例index?foo=bar)。该字段不填则模板无跳转 */ |
| | | page?: string; |
| | | /** 用户Id */ |
| | | userId?: string; |
| | | /** 企业Id */ |
| | | enterpriseId?: string; |
| | | /** 关联Id */ |
| | | relationId?: string; |
| | | } |
| | | |
| | | interface SetDictionaryDataIsDisabledCommand { |
| | | ids?: string[]; |
| | | /** 是否已禁用 */ |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface SetDisabledEnterpriseInsuranceProductsCommand { |
| | | /** 企业合作Id */ |
| | | enterpriseCooperationId?: string; |
| | | ids?: string[]; |
| | | /** 是否已禁用 */ |
| | | isDisabled?: boolean; |
| | |
| | | electronSignAccesses?: EnumElectronSignAccess[]; |
| | | } |
| | | |
| | | interface SetEnterpriseInsuranceSettingCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | insuranceSupplierAccess?: EnumInsuranceSupplierAccess; |
| | | /** 投保供应商账号 */ |
| | | insuranceSupplierAccount?: string; |
| | | } |
| | | |
| | | interface SetEnterpriseSmsSettingCommand { |
| | | /** Id */ |
| | | id?: string; |
| | |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface SetIsDisabledInsuranceProductCommand { |
| | | ids?: string[]; |
| | | /** 是否已禁用 */ |
| | | isDisabled?: boolean; |
| | | } |
| | | |
| | | interface SetMenuSwitchCommand { |
| | | /** Id */ |
| | | ids?: string[]; |
| New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 发送微信订阅消息 POST /api/common/wxmpUtils/sendWxmpSubscribMessage */ |
| | | export async function sendWxmpSubscribMessage( |
| | | body: API.SendWxmpSubscribMessageCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/common/wxmpUtils/sendWxmpSubscribMessage', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |