From 64cd24b079ec15ea5c9be7360060e7b34eb3d8bd Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期三, 21 一月 2026 17:48:46 +0800
Subject: [PATCH] 在入职管理、离职管理和用印管理中新增附件上传功能
---
src/views/personnelManagement/dimission/index.vue | 33 +++++++++++++++++++++++++++++----
1 files changed, 29 insertions(+), 4 deletions(-)
diff --git a/src/views/personnelManagement/dimission/index.vue b/src/views/personnelManagement/dimission/index.vue
index ae90d99..247a96c 100644
--- a/src/views/personnelManagement/dimission/index.vue
+++ b/src/views/personnelManagement/dimission/index.vue
@@ -51,6 +51,7 @@
></PIMTable>
</div>
<form-dia ref="formDia" @close="handleQuery"></form-dia>
+ <files-dia ref="filesDia"></files-dia>
</div>
</template>
@@ -61,6 +62,7 @@
import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js";
import {ElMessageBox} from "element-plus";
import dayjs from "dayjs";
+import FilesDia from "./filesDia.vue";
const data = reactive({
searchForm: {
@@ -145,10 +147,17 @@
prop: "emergencyContactPhone",
width:150
},
- // {
- // label: "鍚堝悓骞撮檺",
- // prop: "contractTerm",
- // },
+ {
+ label: "绂昏亴鏃ユ湡",
+ prop: "createTime",
+ width: 120,
+ formatData: (params) => {
+ if (params) {
+ return dayjs(params).format("YYYY-MM-DD");
+ }
+ return "-";
+ }
+ },
{
label: "鍚堝悓寮�濮嬫棩鏈�",
prop: "contractStartTime",
@@ -163,12 +172,20 @@
dataType: "action",
label: "鎿嶄綔",
align: "center",
+ width: 120,
operation: [
{
name: "缂栬緫",
type: "text",
clickFun: (row) => {
openForm("edit", row);
+ },
+ },
+ {
+ name: "闄勪欢",
+ type: "text",
+ clickFun: (row) => {
+ openFilesFormDia(row);
},
},
],
@@ -183,6 +200,7 @@
total: 0,
});
const formDia = ref()
+const filesDia = ref()
const { proxy } = getCurrentInstance()
@@ -200,6 +218,13 @@
}
getList();
};
+// 鎵撳紑闄勪欢寮规
+const openFilesFormDia = (row) => {
+ console.log(row)
+ nextTick(() => {
+ filesDia.value?.openDialog( row,'鍚堝悓')
+ })
+};
// 鏌ヨ鍒楄〃
/** 鎼滅储鎸夐挳鎿嶄綔 */
const handleQuery = () => {
--
Gitblit v1.9.3