zhengyiming
昨天 ac7fde69c457b3488bbfe2671dbfeb3eeba26414
fix: 灵工管理
10个文件已修改
173 ■■■■ 已修改文件
apps/bMiniApp/src/pages/home/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/pages/mine/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/mine/mineHire/mineHire.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/Card/FlexJobTopView.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/constants/task.ts 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/enterpriseEmployee.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/index.ts 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/typings.d.ts 84 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/pages/home/index.vue
@@ -91,7 +91,7 @@
onMounted(async () => {
  try {
    await setLocationCity();
    await resetLocation();
  } catch (error) {}
});
apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue
@@ -25,6 +25,12 @@
        :gender="item.gender"
        :age="item.age"
        :isReal="item.userIsReal"
        :personalIdentityContent="item.personalIdentityContent"
        :educationalBackgroundContent="item.educationalBackgroundContent"
        :taskCount="item.taskCount"
        :avatar="item.avatar"
        :workExperience="item.workExperience"
        :workSeniority="item.workSeniority"
        @click="goDetail(item)"
      >
        <template #footerRight>
apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue
@@ -14,7 +14,10 @@
        :workExperience="item.workExperience"
      >
        <template #footerLeft>
          <div class="flexJob-card-footer-text">
          <div
            class="flexJob-card-footer-text"
            :style="{ color: EnumTaskUserHireStatusColor[item.hireStatus] }"
          >
            {{ EnumTaskUserHireStatusText[item.hireStatus] }}
          </div>
        </template>
@@ -27,7 +30,7 @@
</template>
<script setup lang="ts">
import { EnumTaskUserHireStatusText } from '@12333/constants';
import { EnumTaskUserHireStatusText, EnumTaskUserHireStatusColor } from '@12333/constants';
import { RouterPath } from '@/constants';
import { useTaskUserList } from '@12333/hooks';
import { FlexJobCard } from '@12333/components';
apps/cMiniApp/src/pages/mine/index.vue
@@ -80,7 +80,7 @@
            @click="goMineHire"
          >
            <img :src="IconOrderHire" class="mine-order-list-icon" />
            <div class="mine-order-list-text">已录用</div>
            <div class="mine-order-list-text">已安排</div>
          </nut-badge>
          <nut-badge
            class="mine-order-list-item"
apps/cMiniApp/src/subpackages/mine/mineHire/mineHire.vue
@@ -1,5 +1,5 @@
<template>
  <PageLayoutWithBg class="mineHire-page-wrapper" :title="'已录用'">
  <PageLayoutWithBg class="mineHire-page-wrapper" :title="'已安排'">
    <InnerPage></InnerPage>
  </PageLayoutWithBg>
</template>
packages/components/src/Card/FlexJobTopView.vue
@@ -1,6 +1,10 @@
<template>
  <div :class="['flexJob-card-top-wrapper', size]">
    <Avatar :src="avatar" :size="size === 'small' ? 50 : 60" class="flexJob-card-top-avatar" />
    <Avatar
      :src="setOSSLink(avatar)"
      :size="size === 'small' ? 50 : 60"
      class="flexJob-card-top-avatar"
    />
    <div class="flexJob-card-top-info">
      <div class="flexJob-card-top-info-item">
        <div class="flexJob-card-top-info-name">{{ name }}</div>
@@ -31,6 +35,7 @@
import { AvatarImage, EnumUserGender } from '@12333/constants';
import { Avatar } from '@12333/components';
import { computed } from 'vue';
import { setOSSLink } from '@12333/utils';
defineOptions({
  name: 'FlexJobTopView',
packages/constants/task.ts
@@ -1,3 +1,4 @@
import { Colors } from './enum';
import {
  EnumBillingMethod,
  EnumUserGender,
@@ -48,7 +49,7 @@
};
export const EnumTaskCheckReceiveStatusText = {
  [EnumTaskCheckReceiveStatus.Wait]: '待验收',
  [EnumTaskCheckReceiveStatus.WaitSubmit]: '待验收',
  [EnumTaskCheckReceiveStatus.Completed]: '已验收',
};
@@ -72,6 +73,12 @@
  [EnumTaskUserHireStatus.Refuse]: '已谢绝',
};
export const EnumTaskUserHireStatusColor = {
  [EnumTaskUserHireStatus.Wait]: Colors.Warning,
  [EnumTaskUserHireStatus.Pass]: Colors.Primary,
  [EnumTaskUserHireStatus.Refuse]: Colors.Danger,
};
export const GetPersonalApplyTaskInfosQueryStatusText = {
  [GetPersonalApplyTaskInfosQueryStatus.WaitHire]: '待确认',
  [GetPersonalApplyTaskInfosQueryStatus.WaitSignContract]: '待签约',
packages/services/apiV2/enterpriseEmployee.ts
@@ -2,6 +2,24 @@
// @ts-ignore
import { request } from '@/utils/request';
/** 查询灵工详情 GET /api/user/enterpriseEmployee/getEnterpriseEmployee */
export async function getEnterpriseEmployee(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseEmployeeParams,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseEmployeeQueryResult>(
    '/api/user/enterpriseEmployee/getEnterpriseEmployee',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
/** 查询灵工分页列表数据 POST /api/user/enterpriseEmployee/getEnterpriseEmployees */
export async function getEnterpriseEmployees(
  body: API.GetEnterpriseEmployeesQuery,
packages/services/apiV2/index.ts
@@ -2,27 +2,27 @@
/* eslint-disable */
// API 更新时间:
// API 唯一标识:
import * as userResume from './userResume';
import * as resource from './resource';
import * as enterpriseEmployee from './enterpriseEmployee';
import * as user from './user';
import * as dictionary from './dictionary';
import * as auth from './auth';
import * as taskUser from './taskUser';
import * as task from './task';
import * as enterprise from './enterprise';
import * as role from './role';
import * as enterprise from './enterprise';
import * as task from './task';
import * as dictionary from './dictionary';
import * as user from './user';
import * as userResume from './userResume';
import * as auth from './auth';
import * as resource from './resource';
import * as taskUser from './taskUser';
import * as enterpriseEmployee from './enterpriseEmployee';
import * as menu from './menu';
export default {
  userResume,
  resource,
  enterpriseEmployee,
  user,
  dictionary,
  auth,
  taskUser,
  task,
  enterprise,
  role,
  enterprise,
  task,
  dictionary,
  user,
  userResume,
  auth,
  resource,
  taskUser,
  enterpriseEmployee,
  menu,
};
packages/services/apiV2/typings.d.ts
@@ -50,6 +50,13 @@
    id?: string;
  }
  interface APIgetEnterpriseEmployeeParams {
    /** 灵工Id */
    id?: string;
    /** 任务Id */
    taskInfoId?: string;
  }
  interface APIgetEnterpriseParams {
    /** Id */
    id?: string;
@@ -516,6 +523,24 @@
    /** 错误码 */
    errorCode?: string;
    data?: GetEnterpriseElectronSignSettingQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetEnterpriseEmployeeQueryResult {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    data?: GetEnterpriseEmployeeQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
@@ -1269,9 +1294,9 @@
    /** 关键字 */
    keywords?: string;
    /** 验收日期-最早时间 */
    submitTimeBegin?: string;
    dateBegin?: string;
    /** 验收日期-最晚时间 */
    submitTimeEnd?: string;
    dateEnd?: string;
    checkReceiveStatus?: EnumTaskCheckReceiveStatus;
    pageModel?: PagedListQueryPageModel;
  }
@@ -1297,8 +1322,7 @@
    name?: string;
    /** 身份证号 */
    identity?: string;
    /** 生日 */
    birthday?: string;
    gender?: EnumUserGender;
    /** 年龄 */
    age?: number;
    /** 手机号 */
@@ -1430,6 +1454,32 @@
    mergeSignCost?: number;
  }
  interface GetEnterpriseEmployeeQueryResult {
    /** 灵工Id */
    id?: string;
    /** 姓名 */
    name?: string;
    /** 身份证号 */
    identity?: string;
    /** 手机号 */
    contactPhoneNumber?: string;
    gender?: EnumUserGender;
    /** 年龄 */
    age?: number;
    /** 身份证人像面 */
    identityImg?: string;
    /** 身份证国徽面 */
    identityBackImg?: string;
    /** 报名时间 */
    applyTime?: string;
    /** 实名时间 */
    userRealTime?: string;
    /** 企业签约时间 */
    enterpriseSignContractTime?: string;
    /** 电子合同 */
    contractUrl?: string;
  }
  interface GetEnterpriseEmployeesQuery {
    /** 关键字(姓名/手机/身份证号) */
    keywords?: string;
@@ -1467,9 +1517,24 @@
    age?: number;
    /** 手机号 */
    contactPhoneNumber?: string;
    hireStatus?: EnumTaskUserHireStatus;
    /** 实名状态 */
    /** 是否实名 */
    userIsReal?: boolean;
    realMethod?: EnumUserRealMethod;
    /** 身份编号 */
    personalIdentityCode?: string;
    /** 身份 */
    personalIdentityContent?: string;
    /** 学历编号 */
    educationalBackgroundCode?: string;
    /** 学历 */
    educationalBackgroundContent?: string;
    /** 上岗次数 */
    taskCount?: number;
    /** 工作资历 */
    workSeniority?: string;
    /** 工作经验 */
    workExperience?: string;
    hireStatus?: EnumTaskUserHireStatus;
    userSignContractStatus?: EnumTaskUserSignContractStatus;
    /** 录用时间 */
    hireTime?: string;
@@ -2102,6 +2167,9 @@
  interface GetTaskUsersQuery {
    /** 任务Id */
    id?: string;
    /** 关键字 */
    keywords?: string;
    hireStatus?: EnumTaskUserHireStatus;
    pageModel?: PagedListQueryPageModel;
  }
@@ -2761,9 +2829,9 @@
    /** 永久证书 */
    isForever?: boolean;
    /** 开始日期 */
    startDate: string;
    startDate?: string;
    /** 结束日期 */
    endDate: string;
    endDate?: string;
    /** 发证单位 */
    issueUnit?: string;
    /** 证书正面照片 */