From f1a910c25a8b8296dcbf0777942da3252b39d277 Mon Sep 17 00:00:00 2001 From: fuenmao <980740792@qq.com> Date: Wed, 26 Aug 2026 11:00:10 +0800 Subject: [PATCH] 11 --- src/api/modules/biz/onboarding.ts | 12 +- src/views/biz/onboarding/task/index.vue | 832 +++++++++++++++++++----- src/views/onboarding/fill/index.vue | 492 ++++++++++---- 3 files changed, 1078 insertions(+), 258 deletions(-) diff --git a/src/api/modules/biz/onboarding.ts b/src/api/modules/biz/onboarding.ts index 0a8842e..54a478d 100644 --- a/src/api/modules/biz/onboarding.ts +++ b/src/api/modules/biz/onboarding.ts @@ -3,6 +3,7 @@ import type { ReqId, ResPage } from "@/api/interface"; const taskHttp = moduleRequest("/biz/onboarding/task/"); const auditHttp = moduleRequest("/biz/onboarding/audit/"); +const fileHttp = moduleRequest("/sys/dev/file/"); export interface OnboardingTask { id: number; @@ -178,6 +179,15 @@ export const onboardingTaskApi = { return taskHttp.get("detail", params); }, + /** 使用后台登录令牌读取文件流,供入职材料下载和图片预览使用。 */ + downloadFile(fileId: number) { + return fileHttp.get( + "download", + { id: fileId }, + { responseType: "blob", loading: false, cancel: false } + ); + }, + create(params: Record) { return taskHttp.post("create", params); }, @@ -543,4 +553,4 @@ export const onboardingPublicApi = { deleteMaterial(params: { token: string; taskMaterialId: number }) { return publicHttp.post("delete-material", params); } -}; \ No newline at end of file +}; diff --git a/src/views/biz/onboarding/task/index.vue b/src/views/biz/onboarding/task/index.vue index 28f3106..b9d556f 100644 --- a/src/views/biz/onboarding/task/index.vue +++ b/src/views/biz/onboarding/task/index.vue @@ -121,84 +121,147 @@ - - - - - - - + +
+ + +
+
+ 入职基础信息 + 请选择新员工入职的公司主体、岗位及适用的入职模板 +
- - - - - + + + + + + + + - - - - - + + + + + + + - - - - - + + + + + + + + + + + +
+ + +
+
+ 补充备注 + 填写该候选人入职的相关流转备注(仅人事可见,选填) +
+ + + +
+
+
@@ -242,23 +305,32 @@
- -
-
- {{ detail.task.taskNo }} - - {{ statusText(detail.task.taskStatus) }} - - - 第 {{ detail.task.submitCount }} 次提交 - + +
+ -
- 发起于:{{ formatTime(detail.task.createTime) }} +
@@ -275,51 +347,156 @@ - - - - - - {{ detail.employeeInfo.employeeName }} - - {{ detail.employeeInfo.gender || '-' }} - {{ detail.employeeInfo.phone }} - {{ detail.employeeInfo.idCardNumber }} - {{ detail.employeeInfo.college || '-' }} - - {{ detail.employeeInfo.education || '-' }} / {{ detail.employeeInfo.major || '-' }} - - - {{ detail.employeeInfo.contactAddress || '-' }} - - - - + +
+ +
- - - - - - {{ item.fieldValue || '-' }} - - - - +
+ + + + + + {{ detail.employeeInfo.employeeName }} + + {{ detail.employeeInfo.gender || '-' }} + {{ detail.employeeInfo.nation || '-' }} + {{ detail.employeeInfo.birthday || '-' }} + {{ detail.employeeInfo.registeredResidence || '-' }} + + {{ detail.employeeInfo.height ? detail.employeeInfo.height + ' cm' : '-' }} / + {{ detail.employeeInfo.weight ? detail.employeeInfo.weight + ' kg' : '-' }} + + {{ detail.employeeInfo.healthCondition || '-' }} + {{ detail.employeeInfo.maritalStatus || '-' }} + + {{ detail.employeeInfo.idCardNumber || '-' }} + + + + + + + + + {{ detail.employeeInfo.education || '-' }} + {{ detail.employeeInfo.major || '-' }} + {{ detail.employeeInfo.graduatedSchool || detail.employeeInfo.college || '-' }} + {{ detail.employeeInfo.vocationalQualification || '-' }} + {{ detail.employeeInfo.qualificationLevel || '-' }} + {{ detail.employeeInfo.technicalSpecialty || '-' }} + + + + + + + + {{ detail.employeeInfo.phone || '-' }} + {{ detail.employeeInfo.email || '-' }} + {{ detail.employeeInfo.currentAddress || detail.employeeInfo.contactAddress || '-' }} + {{ detail.employeeInfo.landlordContact || '-' }} + + {{ detail.employeeInfo.bankCardNumber || '-' }} + + {{ detail.employeeInfo.bankName || '-' }} + + + + + + + + {{ detail.employeeInfo.emergencyContact || '-' }} + {{ detail.employeeInfo.emergencyPhone || '-' }} + {{ detail.employeeInfo.emergencyAddress || '-' }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.value || '-' }} + + + +
@@ -337,19 +514,16 @@ >
- - + @click="previewImage(item.fileId)" + /> +
+ + {{ materialPreviewText(item) }} +
- + + 图片预览 + + 原件下载 @@ -519,6 +704,13 @@ + +