From 6516fcccdd4b356ab233c983cb61add8f490e254 Mon Sep 17 00:00:00 2001 From: lcj <2331845269@qq.com> Date: Mon, 17 Mar 2025 15:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/constructionUser/types.ts | 11 +++ src/views/machinery/index.vue | 28 +----- src/views/materials/materials/index.vue | 28 +----- .../component/ConstructionUserDetail.vue | 87 +++++++++++++++++++ src/views/project/constructionUser/index.vue | 15 ++++ src/views/project/contractor/index.vue | 2 +- src/views/project/project/index.vue | 4 +- .../projectTeam/component/UserListDialog.vue | 14 ++- 8 files changed, 133 insertions(+), 56 deletions(-) create mode 100644 src/views/project/constructionUser/component/ConstructionUserDetail.vue diff --git a/src/api/project/constructionUser/types.ts b/src/api/project/constructionUser/types.ts index f66fa16..dd3d794 100644 --- a/src/api/project/constructionUser/types.ts +++ b/src/api/project/constructionUser/types.ts @@ -1,4 +1,5 @@ import { ContractorVO } from '@/api/project/contractor/types'; +import { ProjectTeamVO } from '@/api/project/projectTeam/types'; export interface ConstructionUserVO { /** @@ -21,6 +22,11 @@ export interface ConstructionUserVO { */ facePic: string; + /** + * 人脸照url + */ + facePicUrl: string; + /** * 人员姓名 */ @@ -46,6 +52,11 @@ export interface ConstructionUserVO { */ teamId: string | number; + /** + * 班组 + */ + teamVo: ProjectTeamVO; + /** * 状态(0在职 1离职) */ diff --git a/src/views/machinery/index.vue b/src/views/machinery/index.vue index 4ecf38d..15eccb3 100644 --- a/src/views/machinery/index.vue +++ b/src/views/machinery/index.vue @@ -42,17 +42,10 @@ - + - - + - @@ -207,6 +213,7 @@ import { listContractor } from '@/api/project/contractor'; import { listProjectTeam } from '@/api/project/projectTeam'; import { ContractorVO } from '@/api/project/contractor/types'; import { ProjectTeamVO } from '@/api/project/projectTeam/types'; +import ConstructionUserDetail from '@/views/project/constructionUser/component/ConstructionUserDetail.vue'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { type_of_work, user_sex_type, user_clock_type } = toRefs(proxy?.useDict('type_of_work', 'user_sex_type', 'user_clock_type')); @@ -407,6 +414,14 @@ const handleUpdate = async (row?: ConstructionUserVO) => { dialog.title = '修改施工人员'; }; +/** 展开用户详情抽屉操作 */ +const currentUserId = ref(); +const showDetailDrawer = ref(false); +const handleShowDrawer = (row?: ConstructionUserVO) => { + currentUserId.value = row.id; + showDetailDrawer.value = true; +}; + /** 提交按钮 */ const submitForm = () => { constructionUserFormRef.value?.validate(async (valid: boolean) => { diff --git a/src/views/project/contractor/index.vue b/src/views/project/contractor/index.vue index c64e2f9..d872c2f 100644 --- a/src/views/project/contractor/index.vue +++ b/src/views/project/contractor/index.vue @@ -51,7 +51,7 @@