From fc78fe876cb453ff0fb2d2d66160c7266feeaab4 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Fri, 15 Aug 2025 18:15:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E6=A5=9A=E9=94=81=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/hr/org/index.ts | 10 +++ src/views/hr/archives/index.vue | 99 +++++++++++++++++++++++++++- src/views/hr/company/companyduty.vue | 1 - 3 files changed, 107 insertions(+), 3 deletions(-) diff --git a/src/api/hr/org/index.ts b/src/api/hr/org/index.ts index 581b309..6e25906 100644 --- a/src/api/hr/org/index.ts +++ b/src/api/hr/org/index.ts @@ -295,3 +295,13 @@ export function getpositioncont(data: getContId){ data: data }); } +/** + * 获取职位(岗位)详情 + */ +export function jiechuUserLock(data: getContId){ + return request({ + url: '/hrapi/staff/jiechuUserLock', + method: 'post', + data: data + }); +} diff --git a/src/views/hr/archives/index.vue b/src/views/hr/archives/index.vue index 803c549..47a6171 100644 --- a/src/views/hr/archives/index.vue +++ b/src/views/hr/archives/index.vue @@ -14,6 +14,7 @@ import { editUserTemplateInfo, gainTempleateOrgList, teamcontlist, + jiechuUserLock, } from "@/api/hr/org/index"; import { archivesCont, searchCriteriaForPeople } from "@/api/hr/people/type"; import { emptypeOptions } from "@/api/hr/people/datacont"; @@ -690,6 +691,52 @@ const gainTimeList = () => { tiemList.value = data.data.list; }); }; +//清楚锁定 +const unLockUSer = (val: any) => { + console.log("解说-jiechuUserLock--》", val); + jiechuUserLock({ userId: val.number }).then((res: any) => { + getArchivesPage(); + }); +}; +const ruleFormRefLock = ref(null); +const ubLockPage = ref(false); +const unLockForm = reactive({ + numText: "", +}); +const closeLock = () => { + ubLockPage.value = false; +}; +const openUnlico = () => { + ubLockPage.value = true; +}; +const resetForm = () => { + closeLock(); + ruleFormRefLock.value.resetFields(); +}; +const editTitleRules = reactive({ + numText: [ + { required: true, message: "请输入工号;以英文逗号隔开(,)", trigger: "blur" }, + ], +}); +var butLoad = ref(false); +//提交数据 +const picksubus = () => { + butLoad.value = true; + ruleFormRefLock.value.validate((isValid: boolean) => { + if (isValid) { + jiechuUserLock({ userId: unLockForm.numText }) + .then((res: any) => { + butLoad.value = false; + getArchivesPage(); + }) + .finally(() => { + butLoad.value = false; + }); + } else { + butLoad.value = false; + } + }); +};