From 431c0d52116837d798d68c6a8c68c81e21526066 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期六, 12 七月 2025 14:55:13 +0800 Subject: [PATCH] 1.新增入职合同开始结束时间做限制(合同起始时间匹配合同年限) --- src/views/basicData/customerFile/index.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/views/basicData/customerFile/index.vue b/src/views/basicData/customerFile/index.vue index f0c1186..284300d 100644 --- a/src/views/basicData/customerFile/index.vue +++ b/src/views/basicData/customerFile/index.vue @@ -258,7 +258,7 @@ { label: "鍦板潃鍙婅仈绯绘柟寮�", prop: "addressPhone", - width: 220, + width: 250, }, { label: "鑱旂郴浜�", @@ -267,18 +267,22 @@ { label: "鑱旂郴鐢佃瘽", prop: "contactPhone", + width:150 }, { label: "閾惰鍩烘湰鎴�", prop: "basicBankAccount", + width: 220, }, { label: "閾惰璐﹀彿", prop: "bankAccount", + width: 220, }, { label: "寮�鎴疯鍙�", prop: "bankCode", + width:220 }, { label: "缁存姢浜�", @@ -287,11 +291,13 @@ { label: "缁存姢鏃堕棿", prop: "maintenanceTime", + width: 100, }, { dataType: "action", label: "鎿嶄綔", align: "center", + fixed: 'right', operation: [ { name: "缂栬緫", @@ -299,6 +305,9 @@ clickFun: (row) => { openForm("edit", row); }, + disabled: (row) => { + return row.maintainer !== userStore.nickName + } }, ], }, @@ -309,7 +318,7 @@ const tableLoading = ref(false); const page = reactive({ current: 1, - size: 10, + size: 100, total: 0, }); const total = ref(0); @@ -502,6 +511,12 @@ const handleDelete = () => { let ids = []; if (selectedRows.value.length > 0) { + // 妫�鏌ユ槸鍚︽湁浠栦汉缁存姢鐨勬暟鎹� + const unauthorizedData = selectedRows.value.filter(item => item.maintainer !== userStore.nickName); + if (unauthorizedData.length > 0) { + proxy.$modal.msgWarning("涓嶅彲鍒犻櫎浠栦汉缁存姢鐨勬暟鎹�"); + return; + } ids = selectedRows.value.map((item) => item.id); } else { proxy.$modal.msgWarning("璇烽�夋嫨鏁版嵁"); -- Gitblit v1.9.3