48个文件已修改
3个文件已添加
65个文件已删除
| | |
| | | module.exports = { |
| | | env: { |
| | | NODE_ENV: '"development"', |
| | | BASE_URL: '"http://localhost:57190"', |
| | | BASE_URL: '"http://localhost:58190"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | |
| | | OSS_URL: '"https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/"', |
| | |
| | | [TaskStatus.Terminated]: '#9FA4AC', |
| | | }; |
| | | |
| | | export enum SalaryTimeTypeEnum { |
| | | export enum FlexTaskFeeTypeEnum { |
| | | /** |
| | | * 月薪 |
| | | * 按月 |
| | | */ |
| | | Month = 10, |
| | | OfMonth = 10, |
| | | /** |
| | | * 周薪 |
| | | * 按日 |
| | | */ |
| | | Week = 20, |
| | | OfDay = 20, |
| | | /** |
| | | * 日薪 |
| | | * 按时 |
| | | */ |
| | | Day = 30, |
| | | OfHour = 30, |
| | | /** |
| | | * 时薪 |
| | | * 计件 |
| | | */ |
| | | Hour = 40, |
| | | OfCount = 40, |
| | | } |
| | | |
| | | export const SalaryTimeTypeEnumText = { |
| | | [SalaryTimeTypeEnum.Month]: '月薪', |
| | | [SalaryTimeTypeEnum.Week]: '周薪', |
| | | [SalaryTimeTypeEnum.Day]: '日薪', |
| | | [SalaryTimeTypeEnum.Hour]: '时薪', |
| | | export const FlexTaskFeeTypeEnumText = { |
| | | [FlexTaskFeeTypeEnum.OfMonth]: '按月', |
| | | [FlexTaskFeeTypeEnum.OfDay]: '按日', |
| | | [FlexTaskFeeTypeEnum.OfHour]: '按时', |
| | | [FlexTaskFeeTypeEnum.OfCount]: '计件', |
| | | }; |
| | | |
| | | export const SalaryTimeTypeEnumUnit = { |
| | | [SalaryTimeTypeEnum.Month]: '元/月', |
| | | [SalaryTimeTypeEnum.Week]: '元/周', |
| | | [SalaryTimeTypeEnum.Day]: '元/天', |
| | | [SalaryTimeTypeEnum.Hour]: '元/小时', |
| | | [FlexTaskFeeTypeEnum.OfMonth]: '元/月', |
| | | [FlexTaskFeeTypeEnum.OfDay]: '元/日', |
| | | [FlexTaskFeeTypeEnum.OfHour]: '元/小时', |
| | | [FlexTaskFeeTypeEnum.OfCount]: '元/件', |
| | | }; |
| | | |
| | | export enum SalaryType { |
| | | month = 10, |
| | | week = 20, |
| | | day = 30, |
| | | export enum FlexTaskSettleTypeEnum { |
| | | /** |
| | | * 月结 |
| | | */ |
| | | OfMonth = 10, |
| | | /** |
| | | * 周结 |
| | | */ |
| | | OfWeek = 20, |
| | | /** |
| | | * 日结 |
| | | */ |
| | | OfDay = 30, |
| | | } |
| | | |
| | | export const SalaryTypeText = { |
| | | [SalaryType.month]: '月结', |
| | | [SalaryType.week]: '周结', |
| | | [SalaryType.day]: '日结', |
| | | export const FlexTaskSettleTypeEnumText = { |
| | | [FlexTaskSettleTypeEnum.OfMonth]: '月结', |
| | | [FlexTaskSettleTypeEnum.OfWeek]: '周结', |
| | | [FlexTaskSettleTypeEnum.OfDay]: '日结', |
| | | }; |
| | |
| | | /** |
| | | * 是否完善个人信息(企业名称,手机号) |
| | | */ |
| | | export function useAccessPersonalInfo<T extends (...args: any[]) => any>(fn: T) { |
| | | const { isCompletePersonalInfo } = useUser(); |
| | | // export function useAccessPersonalInfo<T extends (...args: any[]) => any>(fn: T) { |
| | | // const { isCompletePersonalInfo } = useUser(); |
| | | |
| | | const _fn = useAccessLogin((...args2) => { |
| | | if (!isCompletePersonalInfo.value) { |
| | | Message.confirm({ message: '请完善您的个人信息', title: '完善信息' }).then(() => { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.userInfo}`, |
| | | }); |
| | | }); |
| | | return; |
| | | } |
| | | fn?.(...args2); |
| | | }); |
| | | return _fn as T; |
| | | } |
| | | // const _fn = useAccessLogin((...args2) => { |
| | | // if (!isCompletePersonalInfo.value) { |
| | | // Message.confirm({ message: '请完善您的个人信息', title: '完善信息' }).then(() => { |
| | | // // Taro.navigateTo({ |
| | | // // url: `${RouterPath.userInfo}`, |
| | | // // }); |
| | | // }); |
| | | // return; |
| | | // } |
| | | // fn?.(...args2); |
| | | // }); |
| | | // return _fn as T; |
| | | // } |
| | |
| | | import * as userServices from '@12333/services/api/User'; |
| | | // import * as userServices from '@12333/services/api/User'; |
| | | import { useQuery, useQueryClient } from '@tanstack/vue-query'; |
| | | import { getUserCertificationFrontStatusAdapter } from '@12333/utils'; |
| | | import { UserCertificationFrontStatus } from '@12333/constants'; |
| | |
| | | onSuccess?: (data: API.MyCertificationAuditDto) => void; |
| | | }; |
| | | |
| | | export function useMyCertificationAuditInfo(options: UseMyCertificationAuditInfoOptions = {}) { |
| | | const { onSuccess } = options; |
| | | // export function useMyCertificationAuditInfo(options: UseMyCertificationAuditInfoOptions = {}) { |
| | | // const { onSuccess } = options; |
| | | |
| | | const { updateUserInfo } = useUser(); |
| | | // const { updateUserInfo } = useUser(); |
| | | |
| | | const queryClient = useQueryClient(); |
| | | // const queryClient = useQueryClient(); |
| | | |
| | | const { data, isLoading } = useQuery({ |
| | | queryKey: ['userServices/getMyCertificationAuditInfo'], |
| | | queryFn: async () => { |
| | | return await userServices.getMyCertificationAuditInfo({ showLoading: false }); |
| | | }, |
| | | placeholderData: () => null as API.MyCertificationAuditDto, |
| | | select(data) { |
| | | if (data) { |
| | | data.frontStatus = getUserCertificationFrontStatusAdapter(data.status, data.auditStatus); |
| | | } |
| | | return data; |
| | | }, |
| | | onSuccess(data) { |
| | | onSuccess?.(data); |
| | | }, |
| | | }); |
| | | // const { data, isLoading } = useQuery({ |
| | | // queryKey: ['userServices/getMyCertificationAuditInfo'], |
| | | // queryFn: async () => { |
| | | // return await userServices.getMyCertificationAuditInfo({ showLoading: false }); |
| | | // }, |
| | | // placeholderData: () => null as API.MyCertificationAuditDto, |
| | | // select(data) { |
| | | // if (data) { |
| | | // data.frontStatus = getUserCertificationFrontStatusAdapter(data.status, data.auditStatus); |
| | | // } |
| | | // return data; |
| | | // }, |
| | | // onSuccess(data) { |
| | | // onSuccess?.(data); |
| | | // }, |
| | | // }); |
| | | |
| | | /** |
| | | * 是否有审核单 |
| | | */ |
| | | const hasAduit = computed(() => { |
| | | return data && !!data.value?.currentUserCertificationAuditId; |
| | | }); |
| | | // /** |
| | | // * 是否有审核单 |
| | | // */ |
| | | // const hasAduit = computed(() => { |
| | | // return data && !!data.value?.currentUserCertificationAuditId; |
| | | // }); |
| | | |
| | | const isCertified = computed( |
| | | () => data?.value?.frontStatus === UserCertificationFrontStatus.Certified |
| | | ); |
| | | const isExpired = computed( |
| | | () => data?.value?.frontStatus === UserCertificationFrontStatus.Expired |
| | | ); |
| | | // const isCertified = computed( |
| | | // () => data?.value?.frontStatus === UserCertificationFrontStatus.Certified |
| | | // ); |
| | | // const isExpired = computed( |
| | | // () => data?.value?.frontStatus === UserCertificationFrontStatus.Expired |
| | | // ); |
| | | |
| | | function invalidateCertificationAuditInfo() { |
| | | updateUserInfo(); |
| | | return queryClient.invalidateQueries({ |
| | | queryKey: ['userServices/getMyCertificationAuditInfo'], |
| | | }); |
| | | } |
| | | // function invalidateCertificationAuditInfo() { |
| | | // updateUserInfo(); |
| | | // return queryClient.invalidateQueries({ |
| | | // queryKey: ['userServices/getMyCertificationAuditInfo'], |
| | | // }); |
| | | // } |
| | | |
| | | function ensureCertificationAuditInfo() { |
| | | return queryClient.ensureQueryData({ |
| | | queryKey: ['userServices/getMyCertificationAuditInfo'], |
| | | }); |
| | | } |
| | | // function ensureCertificationAuditInfo() { |
| | | // return queryClient.ensureQueryData({ |
| | | // queryKey: ['userServices/getMyCertificationAuditInfo'], |
| | | // }); |
| | | // } |
| | | |
| | | return { |
| | | myCertificationAuditInfo: data, |
| | | isLoading, |
| | | hasAduit, |
| | | invalidateCertificationAuditInfo, |
| | | isCertified, |
| | | isExpired, |
| | | ensureCertificationAuditInfo, |
| | | }; |
| | | } |
| | | // return { |
| | | // myCertificationAuditInfo: data, |
| | | // isLoading, |
| | | // hasAduit, |
| | | // invalidateCertificationAuditInfo, |
| | | // isCertified, |
| | | // isExpired, |
| | | // ensureCertificationAuditInfo, |
| | | // }; |
| | | // } |
| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { object2query, LocationUtils } from '@12333/utils'; |
| | | import { ParkOrHRStatus, UserCertificationFrontStatus } from '@12333/constants'; |
| | | import * as userServices from '@12333/services/api/User'; |
| | | // import * as userServices from '@12333/services/api/User'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import { MaybeRef } from 'vue'; |
| | | import { useRefeshDidShow } from '@12333/hooks/infiniteLoading'; |
| | |
| | | |
| | | const { userDetail, userInfo, locationCity } = storeToRefs(userStore); |
| | | |
| | | function updateUserInfo() { |
| | | return userStore.getCurrentUserInfo(); |
| | | } |
| | | // function updateUserInfo() { |
| | | // return userStore.getCurrentUserInfo(); |
| | | // } |
| | | |
| | | const isCompanyAudited = computed(() => { |
| | | return userDetail.value?.openHRSiteStatus === ParkOrHRStatus.Running; |
| | | }); |
| | | // const isCompanyAudited = computed(() => { |
| | | // return userDetail.value?.openHRSiteStatus === ParkOrHRStatus.Running; |
| | | // }); |
| | | |
| | | /** |
| | | * 是否完善个人信息(企业名称,手机号) |
| | | */ |
| | | const isCompletePersonalInfo = computed(() => { |
| | | return ( |
| | | !!userDetail.value?.customerName && |
| | | !!userDetail.value?.contacter && |
| | | !!userDetail.value?.cityName |
| | | ); |
| | | }); |
| | | // const isCompletePersonalInfo = computed(() => { |
| | | // return ( |
| | | // !!userDetail.value?.customerName && |
| | | // !!userDetail.value?.contacter && |
| | | // !!userDetail.value?.cityName |
| | | // ); |
| | | // }); |
| | | |
| | | const isCertified = computed(() => { |
| | | return userDetail.value?.frontStatus === UserCertificationFrontStatus.Certified; |
| | |
| | | return { |
| | | user: userInfo, |
| | | userDetail: userDetail, |
| | | updateUserInfo, |
| | | isCompletePersonalInfo, |
| | | isCompanyAudited, |
| | | // updateUserInfo, |
| | | // isCompletePersonalInfo, |
| | | // isCompanyAudited, |
| | | isCertified, |
| | | locationCity, |
| | | }; |
| | |
| | | |
| | | Taro.useReady(async () => { |
| | | if (isLogin.value && userStore.firstGetUserDetail) { |
| | | userStore.getCurrentUserInfo(); |
| | | // userStore.getCurrentUserInfo(); |
| | | } |
| | | if (needAuth && !isLogin.value) { |
| | | Taro.navigateTo({ |
| | |
| | | import { HomeOrderType } from './constants'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType, Gender } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import _ from 'lodash'; |
| | | import HomeQueryMenuView from './HomeQueryMenuView.vue'; |
| | | import HomeQueryPositionMenuView from './HomeQueryPositionMenuView.vue'; |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | | orderInput: [ |
| | | queryState.orderType === HomeOrderType.Recommend |
| | | ? { property: 'isRecommend', order: OrderInputType.Desc } |
| | | : { property: 'lastShelfTime', order: OrderInputType.Desc }, |
| | | ], |
| | | orderInput: [{ property: 'taskId', order: OrderInputType.Desc }], |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskWorkerArrangeList(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState, queryMenuState, queryPositionState], |
| | | queryKey: [ |
| | | 'flexWorkerServices/getFlexTaskByArrange', |
| | | queryState, |
| | | queryMenuState, |
| | | queryPositionState, |
| | | ], |
| | | } |
| | | ); |
| | | |
| | |
| | | selectPositionItem.value?.toggle?.(); |
| | | } |
| | | |
| | | function goFlexJobDetail(item: API.FrontOrderList) { |
| | | function goFlexJobDetail(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.flexJobDetail}?id=${item.id}`, |
| | | url: `${RouterPath.flexJobDetail}?id=${item.taskId}`, |
| | | }); |
| | | } |
| | | |
| | |
| | | setMatchMakingIdentity, |
| | | } from '@/utils/storage/auth'; |
| | | import * as accountServices from '@12333/services/api/Account'; |
| | | import * as userServices from '@12333/services/api/User'; |
| | | // import * as userServices from '@12333/services/api/User'; |
| | | import Taro, { useRouter } from '@tarojs/taro'; |
| | | import { ButtonProps } from '@tarojs/components'; |
| | | import { debounce } from 'lodash'; |
| | |
| | | sessionKey: wxMiniAppUserLoginRes.sessionKey, |
| | | encryptedData: detail.encryptedData, |
| | | iv: detail.iv, |
| | | wxMiniApp: WxMiniAppEnum.人单合一, |
| | | wxMiniApp: WxMiniAppEnum.C端小程序, |
| | | }; |
| | | res = await accountServices.wxMiniAppPhoneAuthLogin(params); |
| | | this.loginSuccess(res); |
| | |
| | | try { |
| | | this.setUserInfoAction(res); |
| | | this.setTokenAction(res); |
| | | await this.getCurrentUserInfo(); |
| | | // await this.getCurrentUserInfo(); |
| | | } catch (error) {} |
| | | }, |
| | | |
| | |
| | | sessionKey: wxIndentityRes.sessionKey, |
| | | encryptedData: detail.encryptedData, |
| | | iv: detail.iv, |
| | | wxMiniApp: WxMiniAppEnum.人单合一, |
| | | wxMiniApp: WxMiniAppEnum.C端小程序, |
| | | }); |
| | | this.loginSuccess(res); |
| | | return res; |
| | | } catch (error) {} |
| | | }, |
| | | |
| | | async getCurrentUserInfo() { |
| | | try { |
| | | let res = await userServices.getUserInfo({ showLoading: false }); |
| | | if (res) { |
| | | res.frontStatus = getUserCertificationFrontStatusAdapter( |
| | | res.userCertificationStatus, |
| | | res.userCertificationAuditStatus |
| | | ); |
| | | res.originalAvatarUrl = res.avatarUrl; |
| | | res.avatarUrl = res.avatarUrl ? setOSSLink(res.avatarUrl) : DefaultAvatar; |
| | | this.setUserDetail(res); |
| | | this.firstGetUserDetail = false; |
| | | } |
| | | } catch (error) {} |
| | | }, |
| | | // async getCurrentUserInfo() { |
| | | // try { |
| | | // let res = await userServices.getUserInfo({ showLoading: false }); |
| | | // if (res) { |
| | | // res.frontStatus = getUserCertificationFrontStatusAdapter( |
| | | // res.userCertificationStatus, |
| | | // res.userCertificationAuditStatus |
| | | // ); |
| | | // res.originalAvatarUrl = res.avatarUrl; |
| | | // res.avatarUrl = res.avatarUrl ? setOSSLink(res.avatarUrl) : DefaultAvatar; |
| | | // this.setUserDetail(res); |
| | | // this.firstGetUserDetail = false; |
| | | // } |
| | | // } catch (error) {} |
| | | // }, |
| | | |
| | | setTokenAction(tokenInfo: API.IdentityModelTokenCacheItem) { |
| | | this.token = tokenInfo?.accessToken; |
| | |
| | | UserCertificationPayType, |
| | | } from '@12333/constants'; |
| | | import * as commonServices from '@12333/services/api/Common'; |
| | | import * as userServices from '@12333/services/api/User'; |
| | | // import * as userServices from '@12333/services/api/User'; |
| | | import { FormValidator, Message } from '@12333/utils'; |
| | | import { useUserCertificationSetting } from '@12333/hooks'; |
| | | // import { useUserCertificationSetting } from '@12333/hooks'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | | type UseAuthenticationFlowOptions = { |
| | |
| | | |
| | | const form = reactive({ |
| | | licenseUrl: [] as FileItem[], |
| | | enterpriseType: userDetail.value?.authType ?? EnterpriseType.HREnterprise, |
| | | // enterpriseType: userDetail.value?.authType ?? EnterpriseType.HREnterprise, |
| | | enterpriseName: '', |
| | | societyCreditCode: '', |
| | | certificationMode: certificationMode, |
| | |
| | | ], |
| | | }; |
| | | |
| | | const { updateUserInfo } = useUser(); |
| | | // const { updateUserInfo } = useUser(); |
| | | |
| | | const formRef = ref<any>(null); |
| | | |
| | |
| | | if (!formRef.value) return; |
| | | formRef.value.validate().then(({ valid, errors }: any) => { |
| | | if (valid) { |
| | | addUserCertificationAudit(); |
| | | // addUserCertificationAudit(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | const loading = ref(false); |
| | | |
| | | async function addUserCertificationAudit() { |
| | | try { |
| | | let params: API.AddUserCertificationAuditInput = { |
| | | enterpriseType: form.enterpriseType, |
| | | licenseUrl: form.licenseUrl[0].path, |
| | | enterpriseName: form.enterpriseName, |
| | | societyCreditCode: form.societyCreditCode, |
| | | certificationMode: form.certificationMode, |
| | | legalPersonName: form.legalPersonName, |
| | | legalPersonIdNumber: form.legalPersonIdNumber, |
| | | legalPersonIdImgUrl: form.legalPersonIdFrontImgUrl?.[0]?.path ?? '', |
| | | legalPersonIdBackImgUrl: form.legalPersonIdBackImgUrl?.[0]?.path ?? '', |
| | | legalPersonBankCardImgUrl: form.legalPersonBankCardImgUrl?.[0]?.path ?? '', |
| | | certificationContact: |
| | | form.certificationElement === UserCertificationElementEnum.Identity4 |
| | | ? form.legalPersonName |
| | | : form.proxyPersonName, |
| | | certificationContactPhone: |
| | | form.certificationElement === UserCertificationElementEnum.Identity4 |
| | | ? form.legalPersonContactPhone |
| | | : form.proxyPersonContactPhone, |
| | | proxyPersonName: form.proxyPersonName, |
| | | proxyPersonIdNumber: form.proxyPersonIdNumber, |
| | | proxyPersonIdImgUrl: form.proxyPersonIdFrontImgUrl?.[0]?.path ?? '', |
| | | proxyPersonIdBackImgUrl: form.proxyPersonIdBackImgUrl?.[0]?.path ?? '', |
| | | proxyPersonBankCardImgUrl: form.proxyPersonBankCardImgUrl?.[0]?.path ?? '', |
| | | proxyPowerAttorneyUrl: form.proxyPowerAttorneyUrl?.[0]?.path ?? '', |
| | | certificationChannel: UserCertificationChannelEnum.ThirdParty, |
| | | certificationElement: form.certificationElement, |
| | | vCode: form.verificationCode, |
| | | bankCardNumber: form.bankCardNumber, |
| | | payType: UserCertificationPayType.NotNeedPay, |
| | | }; |
| | | loading.value = true; |
| | | let res = await userServices.addUserCertificationAudit(params, { showLoading: false }); |
| | | if (res) { |
| | | updateUserInfo(); |
| | | Taro.redirectTo({ |
| | | url: RouterPath.authenticationResult, |
| | | }); |
| | | } |
| | | } catch (error) { |
| | | } finally { |
| | | loading.value = false; |
| | | } |
| | | } |
| | | // async function addUserCertificationAudit() { |
| | | // try { |
| | | // let params: API.AddUserCertificationAuditInput = { |
| | | // enterpriseType: form.enterpriseType, |
| | | // licenseUrl: form.licenseUrl[0].path, |
| | | // enterpriseName: form.enterpriseName, |
| | | // societyCreditCode: form.societyCreditCode, |
| | | // certificationMode: form.certificationMode, |
| | | // legalPersonName: form.legalPersonName, |
| | | // legalPersonIdNumber: form.legalPersonIdNumber, |
| | | // legalPersonIdImgUrl: form.legalPersonIdFrontImgUrl?.[0]?.path ?? '', |
| | | // legalPersonIdBackImgUrl: form.legalPersonIdBackImgUrl?.[0]?.path ?? '', |
| | | // legalPersonBankCardImgUrl: form.legalPersonBankCardImgUrl?.[0]?.path ?? '', |
| | | // certificationContact: |
| | | // form.certificationElement === UserCertificationElementEnum.Identity4 |
| | | // ? form.legalPersonName |
| | | // : form.proxyPersonName, |
| | | // certificationContactPhone: |
| | | // form.certificationElement === UserCertificationElementEnum.Identity4 |
| | | // ? form.legalPersonContactPhone |
| | | // : form.proxyPersonContactPhone, |
| | | // proxyPersonName: form.proxyPersonName, |
| | | // proxyPersonIdNumber: form.proxyPersonIdNumber, |
| | | // proxyPersonIdImgUrl: form.proxyPersonIdFrontImgUrl?.[0]?.path ?? '', |
| | | // proxyPersonIdBackImgUrl: form.proxyPersonIdBackImgUrl?.[0]?.path ?? '', |
| | | // proxyPersonBankCardImgUrl: form.proxyPersonBankCardImgUrl?.[0]?.path ?? '', |
| | | // proxyPowerAttorneyUrl: form.proxyPowerAttorneyUrl?.[0]?.path ?? '', |
| | | // certificationChannel: UserCertificationChannelEnum.ThirdParty, |
| | | // certificationElement: form.certificationElement, |
| | | // vCode: form.verificationCode, |
| | | // bankCardNumber: form.bankCardNumber, |
| | | // payType: UserCertificationPayType.NotNeedPay, |
| | | // }; |
| | | // loading.value = true; |
| | | // let res = await userServices.addUserCertificationAudit(params, { showLoading: false }); |
| | | // if (res) { |
| | | // updateUserInfo(); |
| | | // Taro.redirectTo({ |
| | | // url: RouterPath.authenticationResult, |
| | | // }); |
| | | // } |
| | | // } catch (error) { |
| | | // } finally { |
| | | // loading.value = false; |
| | | // } |
| | | // } |
| | | |
| | | return { |
| | | form, |
| | |
| | | }; |
| | | } |
| | | |
| | | export function useDownloadPowerAttorneyTemplate() { |
| | | const { userCertificationSetting } = useUserCertificationSetting(); |
| | | // export function useDownloadPowerAttorneyTemplate() { |
| | | // // const { userCertificationSetting } = useUserCertificationSetting(); |
| | | |
| | | function downloadPowerAttorneyTemplate() { |
| | | Taro.showLoading({ |
| | | title: '下载中', |
| | | }); |
| | | Taro.downloadFile({ |
| | | url: userCertificationSetting.value.enterprisePowerAttorneyTempPath, |
| | | success: function (res) { |
| | | Taro.hideLoading(); |
| | | // Message.success('下载成功'); |
| | | var filePath = res.tempFilePath; |
| | | Taro.openDocument({ |
| | | filePath: filePath, |
| | | showMenu: true, |
| | | }); |
| | | }, |
| | | fail: function (error: any) { |
| | | Taro.hideLoading(); |
| | | Message.error('下载失败'); |
| | | }, |
| | | }); |
| | | } |
| | | // function downloadPowerAttorneyTemplate() { |
| | | // Taro.showLoading({ |
| | | // title: '下载中', |
| | | // }); |
| | | // Taro.downloadFile({ |
| | | // url: userCertificationSetting.value.enterprisePowerAttorneyTempPath, |
| | | // success: function (res) { |
| | | // Taro.hideLoading(); |
| | | // // Message.success('下载成功'); |
| | | // var filePath = res.tempFilePath; |
| | | // Taro.openDocument({ |
| | | // filePath: filePath, |
| | | // showMenu: true, |
| | | // }); |
| | | // }, |
| | | // fail: function (error: any) { |
| | | // Taro.hideLoading(); |
| | | // Message.error('下载失败'); |
| | | // }, |
| | | // }); |
| | | // } |
| | | |
| | | return { |
| | | downloadPowerAttorneyTemplate, |
| | | }; |
| | | } |
| | | // return { |
| | | // downloadPowerAttorneyTemplate, |
| | | // }; |
| | | // } |
| | |
| | | <script setup lang="ts"> |
| | | import Taro from '@tarojs/taro'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import IconShare from '@/assets/flexJob/icon-share.png'; |
| | | import IconAttention from '@/assets/flexJob/icon-attention-lg.png'; |
| | | import IconAttentionActive from '@/assets/flexJob/icon-attention-lg-active.png'; |
| | |
| | | data: detail, |
| | | refetch, |
| | | } = useQuery({ |
| | | queryKey: ['orderServices/getOrdeForDetail', taskId], |
| | | queryKey: ['flexWorkerServices/getOrdeForDetail', taskId], |
| | | queryFn: async () => { |
| | | return await orderServices.getOrdeForDetail( |
| | | return await flexWorkerServices.getOrdeForDetail( |
| | | { id: taskId }, |
| | | { |
| | | showLoading: false, |
| | |
| | | <script setup lang="ts"> |
| | | import Taro from '@tarojs/taro'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | data: detail, |
| | | refetch, |
| | | } = useQuery({ |
| | | queryKey: ['orderServices/getOrdeForDetail', taskId], |
| | | queryKey: ['flexWorkerServices/getOrdeForDetail', taskId], |
| | | queryFn: async () => { |
| | | return await orderServices.getOrdeForDetail( |
| | | return await flexWorkerServices.getOrdeForDetail( |
| | | { id: taskId }, |
| | | { |
| | | showLoading: false, |
| | |
| | | <script setup lang="ts"> |
| | | import Taro from '@tarojs/taro'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | data: detail, |
| | | refetch, |
| | | } = useQuery({ |
| | | queryKey: ['orderServices/getOrdeForDetail', taskId], |
| | | queryKey: ['flexWorkerServices/getOrdeForDetail', taskId], |
| | | queryFn: async () => { |
| | | return await orderServices.getOrdeForDetail( |
| | | return await flexWorkerServices.getOrdeForDetail( |
| | | { id: taskId }, |
| | | { |
| | | showLoading: false, |
| | |
| | | import { RouterPath } from '@/constants'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import { TaskStatus } from '@/constants/task'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList'], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange'], |
| | | } |
| | | ); |
| | | |
| | | function goDetail(item: API.FrontOrderList) { |
| | | function goDetail(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.flexJobDetailFromManage}?id=${item.id}`, |
| | | url: `${RouterPath.flexJobDetailFromManage}?id=${item.taskId}`, |
| | | }); |
| | | } |
| | | |
| | | function checkContract() {} |
| | | function handleUnContract() {} |
| | | function goSignContract(item: API.FrontOrderList) { |
| | | function goSignContract(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.flexJobSign}`, |
| | | }); |
| | |
| | | <script setup lang="ts"> |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import _ from 'lodash'; |
| | | import { trim } from '@12333/utils'; |
| | | import { SignCard } from '@12333/components'; |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList'], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange'], |
| | | } |
| | | ); |
| | | |
| | |
| | | <script setup lang="ts"> |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import Taro from '@tarojs/taro'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import IconLocaltion from '@/assets/flexJob/icon-localtion.png'; |
| | | import { TaskPrice, TaskDetailWelfareItem } from '@12333/components'; |
| | | |
| | |
| | | data: detail, |
| | | refetch, |
| | | } = useQuery({ |
| | | queryKey: ['orderServices/getOrdeForDetail', taskId], |
| | | queryKey: ['flexWorkerServices/getOrdeForDetail', taskId], |
| | | queryFn: async () => { |
| | | return await orderServices.getOrdeForDetail( |
| | | return await flexWorkerServices.getOrdeForDetail( |
| | | { id: taskId }, |
| | | { |
| | | showLoading: false, |
| | |
| | | |
| | | <style lang="scss"> |
| | | @import '@/styles/common.scss'; |
| | | |
| | | .jobApplicationDetail-page-wrapper { |
| | | .taskDetail-time { |
| | | font-size: 24px; |
| | |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import { RouterPath } from '@/constants'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import { FlexJobCard } from '@12333/components'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList'], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange'], |
| | | } |
| | | ); |
| | | |
| | |
| | | import { RouterPath } from '@/constants'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import { TaskStatus } from '@/constants/task'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList'], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange'], |
| | | } |
| | | ); |
| | | |
| | |
| | | if (isLoginByWeb.value) { |
| | | const wxIndentity = await accountServices.getWxIndentity({ |
| | | code: loginRes.code, |
| | | wxMiniApp: WxMiniAppEnum.人单合一, |
| | | wxMiniApp: WxMiniAppEnum.C端小程序, |
| | | }); |
| | | wxIndentityRes.value = wxIndentity; |
| | | if (wxIndentityRes.value.userName) { |
| | |
| | | } else { |
| | | const params: API.APIwxMiniAppUserLoginParams = { |
| | | code: loginRes.code, |
| | | wxMiniApp: WxMiniAppEnum.人单合一, |
| | | wxMiniApp: WxMiniAppEnum.C端小程序, |
| | | }; |
| | | wxMiniAppUserLoginRes.value = await accountServices.wxMiniAppUserLogin(params); |
| | | if (wxMiniAppUserLoginRes.value.accessToken) { |
| | |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList'], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange'], |
| | | } |
| | | ); |
| | | </script> |
| | |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList'], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange'], |
| | | } |
| | | ); |
| | | </script> |
| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import _ from 'lodash'; |
| | | import { trim } from '@12333/utils'; |
| | | import { FlexJobCard } from '@12333/components'; |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange', queryState], |
| | | } |
| | | ); |
| | | </script> |
| | |
| | | <template> |
| | | <ContentScrollView :paddingH="false"> |
| | | <nut-form :model-value="form" ref="formRef" :rules="rules"> |
| | | <nut-form-item label="任务名称:" class="bole-form-item" prop="name" label-width="90px"> |
| | | <nut-input v-model="form.name" placeholder="请输入任务名称"> </nut-input> |
| | | <nut-form-item label="任务名称:" class="bole-form-item" prop="taskName" label-width="90px"> |
| | | <nut-input v-model="form.taskName" placeholder="请输入任务名称"> </nut-input> |
| | | </nut-form-item> |
| | | <nut-form-item |
| | | label="服务费:" |
| | | class="bole-form-item" |
| | | prop="salaryTimeType" |
| | | prop="feeType" |
| | | required |
| | | label-width="90px" |
| | | > |
| | | <nut-radio-group v-model="form.salaryTimeType" direction="horizontal"> |
| | | <BlRadio :label="Number(key)" v-for="(val, key) in SalaryTimeTypeEnumText" :key="key">{{ |
| | | <nut-radio-group v-model="form.feeType" direction="horizontal"> |
| | | <BlRadio :label="Number(key)" v-for="(val, key) in FlexTaskFeeTypeEnumText" :key="key">{{ |
| | | val |
| | | }}</BlRadio> |
| | | </nut-radio-group> |
| | | </nut-form-item> |
| | | <nut-form-item label=" " class="bole-form-item" prop="welfare" label-width="90px"> |
| | | <nut-form-item label=" " class="bole-form-item" prop="fee" label-width="90px"> |
| | | <div class="bole-form-input-wrapper"> |
| | | <nut-input |
| | | v-model.trim="form.welfare" |
| | | v-model.trim="form.fee" |
| | | class="nut-input-text bole-input-text" |
| | | placeholder="请输入服务费" |
| | | type="text" |
| | | /> |
| | | <div class="form-input-unit">{{ SalaryTimeTypeEnumUnit[form.salaryTimeType] }}</div> |
| | | <div class="form-input-unit">{{ SalaryTimeTypeEnumUnit[form.feeType] }}</div> |
| | | </div> |
| | | </nut-form-item> |
| | | <nut-form-item |
| | | label="结算方式:" |
| | | class="bole-form-item" |
| | | prop="salaryType" |
| | | prop="settleType" |
| | | required |
| | | label-width="90px" |
| | | > |
| | | <nut-radio-group v-model="form.salaryType" direction="horizontal"> |
| | | <BlRadio :label="Number(key)" v-for="(val, key) in SalaryTypeText">{{ val }}</BlRadio> |
| | | <nut-radio-group v-model="form.settleType" direction="horizontal"> |
| | | <BlRadio |
| | | :label="Number(key)" |
| | | v-for="(val, key) in FlexTaskSettleTypeEnumText" |
| | | :key="key" |
| | | >{{ val }}</BlRadio |
| | | > |
| | | </nut-radio-group> |
| | | </nut-form-item> |
| | | <nut-form-item label="福利:" class="bole-form-item" prop="welfare" label-width="90px"> |
| | | <nut-form-item label="福利:" class="bole-form-item" prop="listAideIds" label-width="90px"> |
| | | <ChooseInputWithPicker |
| | | v-model="form.welfare" |
| | | v-model="form.listAideIds" |
| | | placeholder="请选择福利" |
| | | :value-enum="TaskStatusText" |
| | | /> |
| | |
| | | import { |
| | | TaskStatus, |
| | | TaskStatusText, |
| | | SalaryTypeText, |
| | | SalaryType, |
| | | SalaryTimeTypeEnum, |
| | | SalaryTimeTypeEnumText, |
| | | FlexTaskSettleTypeEnum, |
| | | FlexTaskSettleTypeEnumText, |
| | | FlexTaskFeeTypeEnum, |
| | | FlexTaskFeeTypeEnumText, |
| | | SalaryTimeTypeEnumUnit, |
| | | } from '@/constants/task'; |
| | | import { useUser } from '@/hooks'; |
| | |
| | | ChooseLocationInput, |
| | | Radio as BlRadio, |
| | | } from '@12333/components'; |
| | | import { FormValidator } from '@12333/utils'; |
| | | import { FormValidator, Message } from '@12333/utils'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { goBack } from '@/utils'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | | }); |
| | | |
| | | const { userDetail } = useUser(); |
| | | const router = Taro.useRouter(); |
| | | const taskId = router.params?.taskId ?? ''; |
| | | const isEdit = computed(() => !!taskId); |
| | | |
| | | const form = reactive({ |
| | | name: '', |
| | | taskName: '', |
| | | feeType: FlexTaskFeeTypeEnum.OfMonth, |
| | | fee: 0, |
| | | settleType: FlexTaskSettleTypeEnum.OfMonth, |
| | | listAideIds: [] as string[], |
| | | |
| | | welfare: TaskStatus.All, |
| | | salaryTimeType: SalaryTimeTypeEnum.Month, |
| | | salaryType: SalaryType.month, |
| | |
| | | }); |
| | | |
| | | const rules = reactive<FormRules>({ |
| | | name: [{ required: true, message: '请输入任务名称' }], |
| | | taskName: [{ required: true, message: '请输入任务名称' }], |
| | | |
| | | weMapInfo: [ |
| | | { required: true, message: '请设置工作地点', validator: FormValidator.validatorWeMap }, |
| | |
| | | }); |
| | | } |
| | | |
| | | function confirm() {} |
| | | async function confirm() { |
| | | try { |
| | | let params: API.AddEidtFlexTaskInput = { |
| | | taskName: form.taskName, |
| | | feeType: form.salaryType, |
| | | }; |
| | | if (isEdit.value) { |
| | | params.taskId = taskId; |
| | | } |
| | | let res = await flexWorkerServices.addEidtFlexTask(params); |
| | | if (res) { |
| | | Message.success(isEdit.value ? '编辑成功' : '发布成功', { |
| | | onClosed() { |
| | | goBack(); |
| | | }, |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleCancel() { |
| | | Taro.navigateBack(); |
| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange', queryState], |
| | | } |
| | | ); |
| | | |
| | | function goSubmitTaskDetail(item: API.FrontOrderList) { |
| | | function goSubmitTaskDetail(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.taskCheckDetail}?id=${item.id}`, |
| | | }); |
| | |
| | | <script setup lang="ts"> |
| | | import Taro from '@tarojs/taro'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import TaskCheckCard from '../components/TaskCheckCard.vue'; |
| | |
| | | data: detail, |
| | | refetch, |
| | | } = useQuery({ |
| | | queryKey: ['orderServices/getOrdeForDetail', taskId], |
| | | queryKey: ['flexWorkerServices/getOrdeForDetail', taskId], |
| | | queryFn: async () => { |
| | | return await orderServices.getOrdeForDetail( |
| | | return await flexWorkerServices.getOrdeForDetail( |
| | | { id: taskId }, |
| | | { |
| | | showLoading: false, |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange', queryState], |
| | | } |
| | | ); |
| | | |
| | | function goHandleTaskDetail(item: API.FrontOrderList) { |
| | | function goHandleTaskDetail(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.taskHandleCheckDetail}?id=${item.id}`, |
| | | }); |
| | |
| | | <script setup lang="ts"> |
| | | import Taro from '@tarojs/taro'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import TaskCheckPersonalView from '../components/TaskCheckPersonalView.vue'; |
| | | import { PreviewImage } from '@12333/components'; |
| | | import { Colors } from '@12333/constants'; |
| | |
| | | data: detail, |
| | | refetch, |
| | | } = useQuery({ |
| | | queryKey: ['orderServices/getOrdeForDetail', taskId], |
| | | queryKey: ['flexWorkerServices/getOrdeForDetail', taskId], |
| | | queryFn: async () => { |
| | | return await orderServices.getOrdeForDetail( |
| | | return await flexWorkerServices.getOrdeForDetail( |
| | | { id: taskId }, |
| | | { |
| | | showLoading: false, |
| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType, Colors } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange', queryState], |
| | | } |
| | | ); |
| | | |
| | | function goSubmitTaskDetail(item: API.FrontOrderList) { |
| | | function goSubmitTaskDetail(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.batchTaskList}?id=${item.id}`, |
| | | }); |
| | |
| | | module.exports = { |
| | | env: { |
| | | NODE_ENV: '"development"', |
| | | BASE_URL: '"http://localhost:57190"', |
| | | BASE_URL: '"http://localhost:58190"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | |
| | | OSS_URL: '"https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/"', |
| | |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType, Gender } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import _ from 'lodash'; |
| | | import { trim } from '@12333/utils'; |
| | | import { MaybeRef } from 'vue'; |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState, queryMenuState, cityName], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange', queryState, queryMenuState, cityName], |
| | | } |
| | | ); |
| | | |
| | |
| | | selectItem.value?.toggle?.(); |
| | | } |
| | | |
| | | function goTaskDetail(item: API.FrontOrderList) { |
| | | function goTaskDetail(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.taskDetail}?id=${item.id}`, |
| | | }); |
| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange', queryState], |
| | | } |
| | | ); |
| | | |
| | | function goSubmitTaskDetail(item: API.FrontOrderList) { |
| | | function goSubmitTaskDetail(item: API.GetFlexTaskListOutput) { |
| | | // Taro.navigateTo({ |
| | | // url: `${RouterPath.taskSubmitCheck}?id=${item.id}`, |
| | | // }); |
| | |
| | | sessionKey: wxMiniAppUserLoginRes.sessionKey, |
| | | encryptedData: detail.encryptedData, |
| | | iv: detail.iv, |
| | | wxMiniApp: WxMiniAppEnum.人单合一, |
| | | wxMiniApp: WxMiniAppEnum.C端小程序, |
| | | }; |
| | | res = await accountServices.wxMiniAppPhoneAuthLogin(params); |
| | | this.loginSuccess(res); |
| | |
| | | sessionKey: wxIndentityRes.sessionKey, |
| | | encryptedData: detail.encryptedData, |
| | | iv: detail.iv, |
| | | wxMiniApp: WxMiniAppEnum.人单合一, |
| | | wxMiniApp: WxMiniAppEnum.C端小程序, |
| | | }); |
| | | this.loginSuccess(res); |
| | | return res; |
| | |
| | | if (isLoginByWeb.value) { |
| | | const wxIndentity = await accountServices.getWxIndentity({ |
| | | code: loginRes.code, |
| | | wxMiniApp: WxMiniAppEnum.人单合一, |
| | | wxMiniApp: WxMiniAppEnum.C端小程序, |
| | | }); |
| | | wxIndentityRes.value = wxIndentity; |
| | | if (wxIndentityRes.value.userName) { |
| | |
| | | } else { |
| | | const params: API.APIwxMiniAppUserLoginParams = { |
| | | code: loginRes.code, |
| | | wxMiniApp: WxMiniAppEnum.人单合一, |
| | | wxMiniApp: WxMiniAppEnum.C端小程序, |
| | | }; |
| | | wxMiniAppUserLoginRes.value = await accountServices.wxMiniAppUserLogin(params); |
| | | if (wxMiniAppUserLoginRes.value.accessToken) { |
| | |
| | | import { TaskStatusText, TaskStatusColor, TaskStatus } from '@/constants'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | | defineOptions({ |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange', queryState], |
| | | } |
| | | ); |
| | | |
| | |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList'], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange'], |
| | | } |
| | | ); |
| | | </script> |
| | |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList'], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange'], |
| | | } |
| | | ); |
| | | </script> |
| | |
| | | import { TaskStatusText, TaskStatusColor, TaskStatus } from '@/constants'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | | defineOptions({ |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange', queryState], |
| | | } |
| | | ); |
| | | |
| | | function goTaskDetail(item: API.FrontOrderList) { |
| | | function goTaskDetail(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.taskDetail}?id=${item.id}`, |
| | | }); |
| | |
| | | import { TaskStatusText, TaskStatusColor, TaskStatus } from '@/constants'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import { OrderInputType } from '@12333/constants'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | | defineOptions({ |
| | |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | let params: API.GetFlexTaskListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | return flexWorkerServices.getFlexTaskByArrange(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState], |
| | | queryKey: ['flexWorkerServices/getFlexTaskByArrange', queryState], |
| | | } |
| | | ); |
| | | |
| | | function goTaskDetail(item: API.FrontOrderList) { |
| | | function goTaskDetail(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.taskDetail}?id=${item.id}`, |
| | | }); |
| | |
| | | <script setup lang="ts"> |
| | | import Taro from '@tarojs/taro'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import CompanyDesc from '../components/CompanyDesc.vue'; |
| | | import CompanyTaskList from '../components/CompanyTaskList.vue'; |
| | | import CompanyInfo from '../components/CompanyInfo.vue'; |
| | |
| | | data: detail, |
| | | refetch, |
| | | } = useQuery({ |
| | | queryKey: ['orderServices/getOrdeForDetail', companyId], |
| | | queryKey: ['flexWorkerServices/getOrdeForDetail', companyId], |
| | | queryFn: async () => { |
| | | return await orderServices.getOrdeForDetail( |
| | | return await flexWorkerServices.getOrdeForDetail( |
| | | { id: companyId }, |
| | | { |
| | | showLoading: false, |
| | |
| | | |
| | | const { queryState, infiniteLoadingProps } = useTaskList(); |
| | | |
| | | function goTaskDetail(item: API.FrontOrderList) { |
| | | function goTaskDetail(item: API.GetFlexTaskListOutput) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.taskDetail}?id=${item.id}`, |
| | | }); |
| | |
| | | <script setup lang="ts"> |
| | | import Taro from '@tarojs/taro'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import * as flexWorkerServices from '@12333/services/api/FlexWorker'; |
| | | import { useToggle } from 'senin-mini/hooks'; |
| | | import { TaskPrice, TaskDetailWelfareItem } from '@12333/components'; |
| | | import IconAttention from '@/assets/task/icon-attention.png'; |
| | |
| | | data: detail, |
| | | refetch, |
| | | } = useQuery({ |
| | | queryKey: ['orderServices/getOrdeForDetail', taskId], |
| | | queryKey: ['flexWorkerServices/getOrdeForDetail', taskId], |
| | | queryFn: async () => { |
| | | return await orderServices.getOrdeForDetail( |
| | | return await flexWorkerServices.getOrdeForDetail( |
| | | { id: taskId }, |
| | | { |
| | | showLoading: false, |
| | |
| | | "config": [ |
| | | { |
| | | "requestLibPath": "import { request } from '@/utils/request'", |
| | | "schemaPath": "http://localhost:57190/swagger/v1/swagger.json", |
| | | "schemaPath": "http://localhost:58190/swagger/v1/swagger.json", |
| | | "serversPath": "./packages/services" |
| | | } |
| | | ] |
| | |
| | | |
| | | export enum WxMiniAppEnum { |
| | | /** |
| | | * 行业资讯小程序 |
| | | * C端小程序 |
| | | */ |
| | | 行业资讯 = 10, |
| | | C端小程序 = 10, |
| | | /** |
| | | * 人单合一小程序 |
| | | */ |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | type UserCredentialVerifyOcrIDCardOptions = { |
| | | onSuccess?: (res: API.UserCredentialVerifyOcrIDCardResponse) => any; |
| | | }; |
| | | // type UserCredentialVerifyOcrIDCardOptions = { |
| | | // onSuccess?: (res: API.UserCredentialVerifyOcrIDCardResponse) => any; |
| | | // }; |
| | | |
| | | export async function userCredentialVerifyOcrIDCard( |
| | | response: FileItem, |
| | | options: UserCredentialVerifyOcrIDCardOptions = {} |
| | | ) { |
| | | try { |
| | | if (response?.url) { |
| | | const { onSuccess } = options; |
| | | let res = await commonServices.userCredentialVerifyOcrIDCard({ |
| | | identityImageUrl: response.url, |
| | | }); |
| | | onSuccess?.(res); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | // export async function userCredentialVerifyOcrIDCard( |
| | | // response: FileItem, |
| | | // options: UserCredentialVerifyOcrIDCardOptions = {} |
| | | // ) { |
| | | // try { |
| | | // if (response?.url) { |
| | | // const { onSuccess } = options; |
| | | // let res = await commonServices.userCredentialVerifyOcrIDCard({ |
| | | // identityImageUrl: response.url, |
| | | // }); |
| | | // onSuccess?.(res); |
| | | // } |
| | | // } catch (error) {} |
| | | // } |
| | |
| | | import * as settingServices from '@12333/services/api/Setting'; |
| | | // import * as settingServices from '@12333/services/api/Setting'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import { MaybeRef, Ref, unref } from 'vue'; |
| | | import { BusinessSettingType, TempFolderPath } from '@12333/constants'; |
| | |
| | | select?: (data: T) => TData; |
| | | }; |
| | | |
| | | export function useBusinessSettingByType<T extends object = object, TData = T>( |
| | | options: UseBusinessSettingByTypeOptions = {} |
| | | ) { |
| | | const { type, select } = options; |
| | | // export function useBusinessSettingByType<T extends object = object, TData = T>( |
| | | // options: UseBusinessSettingByTypeOptions = {} |
| | | // ) { |
| | | // const { type, select } = options; |
| | | |
| | | const { data: businessSetting } = useQuery({ |
| | | queryKey: ['settingServices/getBusinessSettingByType', type], |
| | | queryFn: async () => { |
| | | return await settingServices.getBusinessSettingByType( |
| | | { |
| | | type: unref(type), |
| | | }, |
| | | { showLoading: false } |
| | | ); |
| | | }, |
| | | placeholderData: () => ({} as T), |
| | | staleTime: Infinity, |
| | | select, |
| | | }); |
| | | // const { data: businessSetting } = useQuery({ |
| | | // queryKey: ['settingServices/getBusinessSettingByType', type], |
| | | // queryFn: async () => { |
| | | // return await settingServices.getBusinessSettingByType( |
| | | // { |
| | | // type: unref(type), |
| | | // }, |
| | | // { showLoading: false } |
| | | // ); |
| | | // }, |
| | | // placeholderData: () => ({} as T), |
| | | // staleTime: Infinity, |
| | | // select, |
| | | // }); |
| | | |
| | | return { |
| | | businessSetting: businessSetting as Ref<TData>, |
| | | }; |
| | | } |
| | | // return { |
| | | // businessSetting: businessSetting as Ref<TData>, |
| | | // }; |
| | | // } |
| | | |
| | | type UserCertificationSetting = { |
| | | enterprisePowerAttorneyTempPath: string; |
| | |
| | | offlinePayEndDays: number; |
| | | }; |
| | | |
| | | export function useUserCertificationSetting() { |
| | | const { businessSetting } = useBusinessSettingByType<UserCertificationSetting>({ |
| | | type: BusinessSettingType.UserCertification, |
| | | select(data: any) { |
| | | return { |
| | | ...data, |
| | | enterprisePowerAttorneyTempPath: `${TempFolderPath}${data.enterprisePowerAttorneyTempPath}`, |
| | | idPhoteTempPath: `${TempFolderPath}${data.idPhoteTempPath}`, |
| | | payAmount: data.userCertificationAmount, |
| | | }; |
| | | }, |
| | | }); |
| | | return { |
| | | userCertificationSetting: businessSetting, |
| | | }; |
| | | } |
| | | // export function useUserCertificationSetting() { |
| | | // const { businessSetting } = useBusinessSettingByType<UserCertificationSetting>({ |
| | | // type: BusinessSettingType.UserCertification, |
| | | // select(data: any) { |
| | | // return { |
| | | // ...data, |
| | | // enterprisePowerAttorneyTempPath: `${TempFolderPath}${data.enterprisePowerAttorneyTempPath}`, |
| | | // idPhoteTempPath: `${TempFolderPath}${data.idPhoteTempPath}`, |
| | | // payAmount: data.userCertificationAmount, |
| | | // }; |
| | | // }, |
| | | // }); |
| | | // return { |
| | | // userCertificationSetting: businessSetting, |
| | | // }; |
| | | // } |
| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 根据绑定邮箱判断用户是否已存在 POST /api/Account/AnyUserByBindEmail */ |
| | | export async function anyUserByBindEmail( |
| | | body: API.AnyUserByBindEmailInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/Account/AnyUserByBindEmail', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 根据手机号判断用户是否已存在 POST /api/Account/AnyUserByPhoneNumber */ |
| | | export async function anyUserByPhoneNumber( |
| | | body: API.AnyUserByPhoneNumberInput, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 绑定用户账户邮箱 POST /api/Account/BindUserEmail */ |
| | | export async function bindUserEmail(body: API.BindUserEmailInput, options?: API.RequestConfig) { |
| | | return request<number>('/api/Account/BindUserEmail', { |
| | | /** C端验证码登录 POST /api/Account/CClientPhoneMesssageCodeLogin */ |
| | | export async function cClientPhoneMesssageCodeLogin( |
| | | body: API.PhoneMesssageCodeLoginInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.IdentityModelTokenCacheItem>('/api/Account/CClientPhoneMesssageCodeLogin', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** C端手机号验证码注册注册 POST /api/Account/CClientPhoneMesssageCodeRegister */ |
| | | export async function cClientPhoneMesssageCodeRegister( |
| | | body: API.PhoneMesssageCodeRegisterInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/Account/CClientPhoneMesssageCodeRegister', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 管理员创建用户 POST /api/Account/CreateUserForAdmin */ |
| | | export async function createUserForAdmin( |
| | | body: API.CreateUserForAdminInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/Account/CreateUserForAdmin', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 生成账号 POST /api/Account/GenerateUserName */ |
| | | export async function generateUserName( |
| | | body: API.GenerateUserNameInput, |
| | |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.WxMiniAppIndentityInfo>('/api/Account/GetWxIndentity', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取学社公众号文章 GET /api/Account/GetWxPublishWriting */ |
| | | export async function getWxPublishWriting(options?: API.RequestConfig) { |
| | | return request<API.InformationShowListDtoPageOutput>('/api/Account/GetWxPublishWriting', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 判断用户绑定邮箱是否重复 GET /api/Account/IsRepeatByBindEmail */ |
| | | export async function isRepeatByBindEmail( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIisRepeatByBindEmailParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/Account/IsRepeatByBindEmail', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 企业名称是否重复 GET /api/Account/IsRepeatByIsRepeatByEnterpriseName */ |
| | | export async function isRepeatByIsRepeatByEnterpriseName( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIisRepeatByIsRepeatByEnterpriseNameParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<boolean>('/api/Account/IsRepeatByIsRepeatByEnterpriseName', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/Account/SendPhoneMesssageCode', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 解绑用户邮箱 POST /api/Account/UnbindingUserEmail */ |
| | | export async function unbindingUserEmail( |
| | | body: API.UnbindingUserEmailInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/Account/UnbindingUserEmail', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 第三方银行卡预留手机号验证 发送验证码 POST /api/Common/SendBankCardCertificationVerificationCode */ |
| | | export async function sendBankCardCertificationVerificationCode( |
| | | body: API.SendBankCardCertificationVerificationCodeInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/Common/SendBankCardCertificationVerificationCode', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 发送邮箱验证码 POST /api/Common/SendEmailVerificationCode */ |
| | | export async function sendEmailVerificationCode( |
| | | body: API.SendEmailVerificationCodeByBusinessTypeInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/Common/SendEmailVerificationCode', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 第三方手机号验证 发送验证码 POST /api/Common/SendPhoneCertificationVerificationCode */ |
| | | export async function sendPhoneCertificationVerificationCode( |
| | | body: API.SendPhoneCertificationVerificationCodeInput, |
| | |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 身份证OCR识别 识别身份证正反面信息。此接口按照调用次数单独计费 POST /api/Common/UserCredentialVerifyOcrIDCard */ |
| | | export async function userCredentialVerifyOcrIDCard( |
| | | body: API.UserCredentialVerifyOcrIDCardInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.UserCredentialVerifyOcrIDCardResponse>( |
| | | '/api/Common/UserCredentialVerifyOcrIDCard', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 新增或修改企业管理 POST /api/FlexEnterprise/CreateOrEditFlexEnterprise */ |
| | | export async function createOrEditFlexEnterprise( |
| | | body: API.CreateOrEditFlexEnterpriseInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/FlexEnterprise/CreateOrEditFlexEnterprise', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 新增或修改银行设置 POST /api/FlexEnterprise/CreateOrEditFlexEnterpriseBankSetting */ |
| | | export async function createOrEditFlexEnterpriseBankSetting( |
| | | body: API.CreateOrEditFlexEnterpriseBankInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/FlexEnterprise/CreateOrEditFlexEnterpriseBankSetting', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 新增或修改消息设置 POST /api/FlexEnterprise/CreateOrEditFlexEnterpriseMessageSetting */ |
| | | export async function createOrEditFlexEnterpriseMessageSetting( |
| | | body: API.CreateOrEditFlexEnterpriseMessageSettingInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/FlexEnterprise/CreateOrEditFlexEnterpriseMessageSetting', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 新增或修改电子签设置 POST /api/FlexEnterprise/CreateOrEditFlexEnterpriseSignSetting */ |
| | | export async function createOrEditFlexEnterpriseSignSetting( |
| | | body: API.CreateOrEditFlexEnterpriseSignSettingInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/FlexEnterprise/CreateOrEditFlexEnterpriseSignSetting', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 删除企业管理 DELETE /api/FlexEnterprise/DeleteFlexEnterprise */ |
| | | export async function deleteFlexEnterprise( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIdeleteFlexEnterpriseParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexEnterprise/DeleteFlexEnterprise', { |
| | | method: 'DELETE', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取企业管理列表 POST /api/FlexEnterprise/GetFlexEnterpriseList */ |
| | | export async function getFlexEnterpriseList( |
| | | body: API.GetFlexEnterpriseInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.FlexEnterpriseDtoPageOutput>('/api/FlexEnterprise/GetFlexEnterpriseList', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置企业状态 POST /api/FlexEnterprise/SetFlexEnterpriseStatus */ |
| | | export async function setFlexEnterpriseStatus( |
| | | body: API.SetFlexEnterpriseStatusInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexEnterprise/SetFlexEnterpriseStatus', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 发布/编辑任务 POST /api/FlexWorker/AddEidtFlexTask */ |
| | | export async function addEidtFlexTask(body: API.AddEidtFlexTaskInput, options?: API.RequestConfig) { |
| | | return request<number>('/api/FlexWorker/AddEidtFlexTask', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 添加联系记录 GET /api/FlexWorker/AddUserResumeContractRecord */ |
| | | export async function addUserResumeContractRecord( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIaddUserResumeContractRecordParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/AddUserResumeContractRecord', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 取消人员收藏 DELETE /api/FlexWorker/CancelUserResumeCollect */ |
| | | export async function cancelUserResumeCollect( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIcancelUserResumeCollectParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/CancelUserResumeCollect', { |
| | | method: 'DELETE', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 收藏人员简历 POST /api/FlexWorker/CollectFlexWorkerResume */ |
| | | export async function collectFlexWorkerResume( |
| | | body: API.CollectFlexWorkerResumeInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/CollectFlexWorkerResume', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 收藏名片 GET /api/FlexWorker/CollectVisitingCard */ |
| | | export async function collectVisitingCard( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIcollectVisitingCardParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/CollectVisitingCard', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 任务删除 DELETE /api/FlexWorker/DeleteFlexTask */ |
| | | export async function deleteFlexTask( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIdeleteFlexTaskParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/DeleteFlexTask', { |
| | | method: 'DELETE', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 删除名片收藏 DELETE /api/FlexWorker/DeleteMyCardCollect */ |
| | | export async function deleteMyCardCollect( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIdeleteMyCardCollectParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/DeleteMyCardCollect', { |
| | | method: 'DELETE', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 编辑B端名片 POST /api/FlexWorker/EditVisitingCard */ |
| | | export async function editVisitingCard( |
| | | body: API.MyVisitingCardOutput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/EditVisitingCard', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取省市区列表 POST /api/FlexWorker/GetAreaList */ |
| | | export async function getAreaList(body: API.GetAreaListInput, options?: API.RequestConfig) { |
| | | return request<API.AreaDto[]>('/api/FlexWorker/GetAreaList', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取资格证书列表 GET /api/FlexWorker/GetCertificationList */ |
| | | export async function getCertificationList(options?: API.RequestConfig) { |
| | | return request<API.GetSearchSettingListOutput[]>('/api/FlexWorker/GetCertificationList', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取企业福利列表 GET /api/FlexWorker/GetEnterpriseWelfareList */ |
| | | export async function getEnterpriseWelfareList(options?: API.RequestConfig) { |
| | | return request<API.GetSearchSettingListOutput[]>('/api/FlexWorker/GetEnterpriseWelfareList', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取签约人员列表 POST /api/FlexWorker/GetFlexSignWorkerList */ |
| | | export async function getFlexSignWorkerList( |
| | | body: API.GetFlexSignWorkerListInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetNewestWorkerListOutputPageOutput>('/api/FlexWorker/GetFlexSignWorkerList', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** B端小程序-获取任务管理(未安排/已安排) POST /api/FlexWorker/GetFlexTaskByArrange */ |
| | | export async function getFlexTaskByArrange( |
| | | body: API.GetFlexTaskListInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetFlexTaskListOutputPageOutput>('/api/FlexWorker/GetFlexTaskByArrange', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** B端小程序-获取验收管理(待验收/已验收) POST /api/FlexWorker/GetFlexTaskByIsOverCheck */ |
| | | export async function getFlexTaskByIsOverCheck( |
| | | body: API.GetFlexTaskListInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetFlexTaskListOutputPageOutput>('/api/FlexWorker/GetFlexTaskByIsOverCheck', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取招聘任务详情 GET /api/FlexWorker/GetFlexTaskDto */ |
| | | export async function getFlexTaskDto( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetFlexTaskDtoParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetFlexTaskDtoOutput>('/api/FlexWorker/GetFlexTaskDto', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取招聘管理列表(发布中/已停止) POST /api/FlexWorker/GetFlexTaskList */ |
| | | export async function getFlexTaskList( |
| | | body: API.GetFlexTaskListByStatusInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetFlexTaskListOutputPageOutput>('/api/FlexWorker/GetFlexTaskList', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 应聘管理-任务详情-获取人员报名列表 POST /api/FlexWorker/GetFlexTaskWorkerApplyList */ |
| | | export async function getFlexTaskWorkerApplyList( |
| | | body: API.GetFlexTaskWorkerApplyListInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetNewestWorkerListOutputPageOutput>( |
| | | '/api/FlexWorker/GetFlexTaskWorkerApplyList', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 任务管理-待安排/已安排 人员列表 POST /api/FlexWorker/GetFlexTaskWorkerArrangeList */ |
| | | export async function getFlexTaskWorkerArrangeList( |
| | | body: API.GetFlexTaskWorkerArrangeListInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetNewestWorkerListOutputPageOutput>( |
| | | '/api/FlexWorker/GetFlexTaskWorkerArrangeList', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 验收管理-任务详情-获取单个人员提交验收内容列表 POST /api/FlexWorker/GetFlexTaskWorkerCheckContentDto */ |
| | | export async function getFlexTaskWorkerCheckContentDto( |
| | | body: API.GetFlexTaskWorkerCheckContentDtoInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetTaskWorkerCheckContentOutput>( |
| | | '/api/FlexWorker/GetFlexTaskWorkerCheckContentDto', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 获取验收管理 待验收/已验收-人员列表 POST /api/FlexWorker/GetFlexTaskWorkerCheckList */ |
| | | export async function getFlexTaskWorkerCheckList( |
| | | body: API.GetFlexTaskWorkerCheckListInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetNewestWorkerListOutputPageOutput>( |
| | | '/api/FlexWorker/GetFlexTaskWorkerCheckList', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 我的名片夹 POST /api/FlexWorker/GetMyCollectVisitingCardList */ |
| | | export async function getMyCollectVisitingCardList( |
| | | body: API.GetCollectVisitingCardListInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetCollectVisitingCardOutputPageOutput>( |
| | | '/api/FlexWorker/GetMyCollectVisitingCardList', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 获取我的名片 GET /api/FlexWorker/GetMyVisitingCard */ |
| | | export async function getMyVisitingCard(options?: API.RequestConfig) { |
| | | return request<API.MyVisitingCardOutput>('/api/FlexWorker/GetMyVisitingCard', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取灵工列表 POST /api/FlexWorker/GetNewesWorkertList */ |
| | | export async function getNewesWorkertList( |
| | | body: API.GetNewestWorkerListInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetNewestWorkerListOutputPageOutput>('/api/FlexWorker/GetNewesWorkertList', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取联系记录 POST /api/FlexWorker/GetUserContractRecordList */ |
| | | export async function getUserContractRecordList(body: API.PageInput, options?: API.RequestConfig) { |
| | | return request<API.GetNewestWorkerListOutputPageOutput>( |
| | | '/api/FlexWorker/GetUserContractRecordList', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 获取简历收藏列表 POST /api/FlexWorker/GetWorkerResumeCollectList */ |
| | | export async function getWorkerResumeCollectList(body: API.PageInput, options?: API.RequestConfig) { |
| | | return request<API.GetNewestWorkerListOutputPageOutput>( |
| | | '/api/FlexWorker/GetWorkerResumeCollectList', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 企业解约 GET /api/FlexWorker/StopEnterpriseUserContract */ |
| | | export async function stopEnterpriseUserContract( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIstopEnterpriseUserContractParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/StopEnterpriseUserContract', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 任务人员安排/取消安排 POST /api/FlexWorker/TaskWorkerArrange */ |
| | | export async function taskWorkerArrange( |
| | | body: API.TaskWorkerArrangeInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/TaskWorkerArrange', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 验收管理-验收详情-对人员进行验收审核 POST /api/FlexWorker/TaskWorkerCheckAcceptStatus */ |
| | | export async function taskWorkerCheckAcceptStatus( |
| | | body: API.TaskWorkerCheckAcceptStatusInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/TaskWorkerCheckAcceptStatus', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 任务人员录用/谢绝 POST /api/FlexWorker/TaskWorkerHireRefuse */ |
| | | export async function taskWorkerHireRefuse( |
| | | body: API.TaskWorkerHireRefuseInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/TaskWorkerHireRefuse', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 更新招聘任务发布状态 POST /api/FlexWorker/UpdateFlexTaskReleaseStatus */ |
| | | export async function updateFlexTaskReleaseStatus( |
| | | body: API.UpdateTaskReleaseStatusInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/FlexWorker/UpdateFlexTaskReleaseStatus', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 修改推荐状态 POST /api/SearchSetting/SetRecommendSearchSetting */ |
| | | export async function setRecommendSearchSetting( |
| | | body: API.SetRecommendSearchSettingInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/SearchSetting/SetRecommendSearchSetting', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
New file |
| | |
| | | /* eslint-disable */ |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 此处后端没有提供注释 GET /api/UserResume/GetUserResume */ |
| | | export async function getUserResume(options?: API.RequestConfig) { |
| | | return request<API.MyResumeOutput>('/api/UserResume/GetUserResume', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 GET /api/UserResume/GetUserResumeCertificateDetailById */ |
| | | export async function getUserResumeCertificateDetailById( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetUserResumeCertificateDetailByIdParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.UserResumeCertificateDetailOutput>( |
| | | '/api/UserResume/GetUserResumeCertificateDetailById', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 GET /api/UserResume/GetUserResumeCertificateList */ |
| | | export async function getUserResumeCertificateList(options?: API.RequestConfig) { |
| | | return request<API.UserResumeCertificateListOutput[]>( |
| | | '/api/UserResume/GetUserResumeCertificateList', |
| | | { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 GET /api/UserResume/GetUserResumeDetailInfo */ |
| | | export async function getUserResumeDetailInfo(options?: API.RequestConfig) { |
| | | return request<API.UserResumeDetailInfoOutput>('/api/UserResume/GetUserResumeDetailInfo', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 GET /api/UserResume/GetUserResumeWorkExperience */ |
| | | export async function getUserResumeWorkExperience(options?: API.RequestConfig) { |
| | | return request<API.UserResumeWorkExperienceOutput>( |
| | | '/api/UserResume/GetUserResumeWorkExperience', |
| | | { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 POST /api/UserResume/SaveUserResumeBaseInfo */ |
| | | export async function saveUserResumeBaseInfo( |
| | | body: API.SaveUserResumeBaseInfoInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<any>('/api/UserResume/SaveUserResumeBaseInfo', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 POST /api/UserResume/SaveUserResumeCertificate */ |
| | | export async function saveUserResumeCertificate( |
| | | body: API.SaveUserResumeCertificateInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<any>('/api/UserResume/SaveUserResumeCertificate', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 POST /api/UserResume/SaveUserResumeDetailInfo */ |
| | | export async function saveUserResumeDetailInfo( |
| | | body: API.SaveUserResumeDetailInfoInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<any>('/api/UserResume/SaveUserResumeDetailInfo', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 POST /api/UserResume/SaveUserResumeExpectationJob */ |
| | | export async function saveUserResumeExpectationJob( |
| | | body: API.SaveUserResumeExpectationJobInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<any>('/api/UserResume/SaveUserResumeExpectationJob', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 此处后端没有提供注释 POST /api/UserResume/SaveUserResumeWorkExperience */ |
| | | export async function saveUserResumeWorkExperience( |
| | | body: API.SaveUserResumeWorkExperienceInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<any>('/api/UserResume/SaveUserResumeWorkExperience', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | import * as AbpApiDefinition from './AbpApiDefinition'; |
| | | import * as AbpApplicationConfiguration from './AbpApplicationConfiguration'; |
| | | import * as Account from './Account'; |
| | | import * as AdvertiseBoard from './AdvertiseBoard'; |
| | | import * as AdvertiseOnShow from './AdvertiseOnShow'; |
| | | import * as Alipay from './Alipay'; |
| | | import * as AlipayEcsignNotify from './AlipayEcsignNotify'; |
| | | import * as AliPayNotify from './AliPayNotify'; |
| | | import * as Area from './Area'; |
| | | import * as BaseModule from './BaseModule'; |
| | | import * as BestSign from './BestSign'; |
| | | import * as BestSignCallBack from './BestSignCallBack'; |
| | | import * as CaiNiao from './CaiNiao'; |
| | | import * as CaiNiaoCallBack from './CaiNiaoCallBack'; |
| | | import * as CircleFriend from './CircleFriend'; |
| | | import * as Common from './Common'; |
| | | import * as CompanyInsure from './CompanyInsure'; |
| | | import * as Consult from './Consult'; |
| | | import * as CooperationApply from './CooperationApply'; |
| | | import * as Customer from './Customer'; |
| | | import * as EnterpriseMaterial from './EnterpriseMaterial'; |
| | | import * as Features from './Features'; |
| | | import * as FirstPartyCompany from './FirstPartyCompany'; |
| | | import * as Fund from './Fund'; |
| | | import * as HeadHunter from './HeadHunter'; |
| | | import * as HelpQuestion from './HelpQuestion'; |
| | | import * as FlexEnterprise from './FlexEnterprise'; |
| | | import * as FlexWorker from './FlexWorker'; |
| | | import * as IdentityRole from './IdentityRole'; |
| | | import * as IdentityUser from './IdentityUser'; |
| | | import * as IdentityUserLookup from './IdentityUserLookup'; |
| | | import * as IncentivePayments from './IncentivePayments'; |
| | | import * as IndustrialPark from './IndustrialPark'; |
| | | import * as IndustryBody from './IndustryBody'; |
| | | import * as IndustryMating from './IndustryMating'; |
| | | import * as Information from './Information'; |
| | | import * as Insurance from './Insurance'; |
| | | import * as InsureConsult from './InsureConsult'; |
| | | import * as InsureMarketProduct from './InsureMarketProduct'; |
| | | import * as InsureOfflineBill from './InsureOfflineBill'; |
| | | import * as InsureOrganization from './InsureOrganization'; |
| | | import * as InsureSupplier from './InsureSupplier'; |
| | | import * as LgGigWorker from './LgGigWorker'; |
| | | import * as LgGigWorkerReCharge from './LgGigWorkerReCharge'; |
| | | import * as Message from './Message'; |
| | | import * as OpenInformation from './OpenInformation'; |
| | | import * as OperateHistory from './OperateHistory'; |
| | | import * as Order from './Order'; |
| | | import * as ParkOrHR from './ParkOrHR'; |
| | | import * as ParkReward from './ParkReward'; |
| | | import * as Permissions from './Permissions'; |
| | | import * as PhoneMessage from './PhoneMessage'; |
| | | import * as PhonMessageHistory from './PhonMessageHistory'; |
| | | import * as PingAn from './PingAn'; |
| | | import * as PingAnBEDL from './PingAnBEDL'; |
| | | import * as PingAnELCP from './PingAnELCP'; |
| | | import * as PingAnJGF from './PingAnJGF'; |
| | | import * as PlatformServicePay from './PlatformServicePay'; |
| | | import * as PlatUserAccountSetting from './PlatUserAccountSetting'; |
| | | import * as Product from './Product'; |
| | | import * as Profile from './Profile'; |
| | | import * as Purchase from './Purchase'; |
| | | import * as Recharge from './Recharge'; |
| | | import * as Resource from './Resource'; |
| | | import * as SearchSetting from './SearchSetting'; |
| | | import * as Setting from './Setting'; |
| | | import * as Statistics from './Statistics'; |
| | | import * as SysOrg from './SysOrg'; |
| | | import * as SystemNotice from './SystemNotice'; |
| | | import * as Tenant from './Tenant'; |
| | | import * as TencentUser from './TencentUser'; |
| | | import * as Test from './Test'; |
| | | import * as ThirdPartCallBack from './ThirdPartCallBack'; |
| | | import * as Training from './Training'; |
| | | import * as User from './User'; |
| | | import * as UserRole from './UserRole'; |
| | | import * as UserResume from './UserResume'; |
| | | import * as Version from './Version'; |
| | | import * as Wallet from './Wallet'; |
| | | import * as WalletChannel from './WalletChannel'; |
| | | import * as Withdraw from './Withdraw'; |
| | | import * as WxNotify from './WxNotify'; |
| | | import * as WxPayNotify from './WxPayNotify'; |
| | | export default { |
| | | AbpApiDefinition, |
| | | AbpApplicationConfiguration, |
| | | Account, |
| | | AdvertiseBoard, |
| | | AdvertiseOnShow, |
| | | Alipay, |
| | | AlipayEcsignNotify, |
| | | AliPayNotify, |
| | | Area, |
| | | BaseModule, |
| | | BestSign, |
| | | BestSignCallBack, |
| | | CaiNiao, |
| | | CaiNiaoCallBack, |
| | | CircleFriend, |
| | | Common, |
| | | CompanyInsure, |
| | | Consult, |
| | | CooperationApply, |
| | | Customer, |
| | | EnterpriseMaterial, |
| | | Features, |
| | | FirstPartyCompany, |
| | | Fund, |
| | | HeadHunter, |
| | | HelpQuestion, |
| | | FlexEnterprise, |
| | | FlexWorker, |
| | | IdentityRole, |
| | | IdentityUser, |
| | | IdentityUserLookup, |
| | | IncentivePayments, |
| | | IndustrialPark, |
| | | IndustryBody, |
| | | IndustryMating, |
| | | Information, |
| | | Insurance, |
| | | InsureConsult, |
| | | InsureMarketProduct, |
| | | InsureOfflineBill, |
| | | InsureOrganization, |
| | | InsureSupplier, |
| | | LgGigWorker, |
| | | LgGigWorkerReCharge, |
| | | Message, |
| | | OpenInformation, |
| | | OperateHistory, |
| | | Order, |
| | | ParkOrHR, |
| | | ParkReward, |
| | | Permissions, |
| | | PhoneMessage, |
| | | PhonMessageHistory, |
| | | PingAn, |
| | | PingAnBEDL, |
| | | PingAnELCP, |
| | | PingAnJGF, |
| | | PlatformServicePay, |
| | | PlatUserAccountSetting, |
| | | Product, |
| | | Profile, |
| | | Purchase, |
| | | Recharge, |
| | | Resource, |
| | | SearchSetting, |
| | | Setting, |
| | | Statistics, |
| | | SysOrg, |
| | | SystemNotice, |
| | | Tenant, |
| | | TencentUser, |
| | | Test, |
| | | ThirdPartCallBack, |
| | | Training, |
| | | User, |
| | | UserRole, |
| | | UserResume, |
| | | Version, |
| | | Wallet, |
| | | WalletChannel, |
| | | Withdraw, |
| | | WxNotify, |
| | | WxPayNotify, |
| | | }; |