From 49652147a82cb1acf12aa306902d97ba5cecff68 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 12 七月 2025 11:46:26 +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