From bc79e1fae76dffb3cbc3ddfa9ba23e66e150d098 Mon Sep 17 00:00:00 2001
From: zhang_nuo <zhang_12370@163.com>
Date: 星期五, 28 八月 2026 23:18:27 +0800
Subject: [PATCH] fix: 调整多个业务模块的页面展示与字段

---
 src/views/basicData/customerFile/index.vue |   65 ++++++++++++++++++++------------
 1 files changed, 40 insertions(+), 25 deletions(-)

diff --git a/src/views/basicData/customerFile/index.vue b/src/views/basicData/customerFile/index.vue
index 7091a02..c343053 100644
--- a/src/views/basicData/customerFile/index.vue
+++ b/src/views/basicData/customerFile/index.vue
@@ -738,16 +738,16 @@
       prop: "contactPhone",
       width: 150,
     },
-    {
-      label: "璺熻繘杩涘害",
-      prop: "followUpLevel",
-      width: 120,
-    },
-    {
-      label: "璺熻繘鏃堕棿",
-      prop: "followUpTime",
-      width: 120,
-    },
+    // {
+    //   label: "璺熻繘杩涘害",
+    //   prop: "followUpLevel",
+    //   width: 120,
+    // },
+    // {
+    //   label: "璺熻繘鏃堕棿",
+    //   prop: "followUpTime",
+    //   width: 120,
+    // },
     {
       label: "閾惰鍩烘湰鎴�",
       prop: "basicBankAccount",
@@ -795,29 +795,34 @@
       label: "鎿嶄綔",
       align: "center",
       fixed: "right",
-      width: 290,
+      width: 130,
       operation: [
         {
           name: "缂栬緫",
           type: "text",
+          showHide: row => !isCustomerEditLocked(row),
           clickFun: row => {
+            if (isCustomerEditLocked(row)) {
+              proxy.$modal.msgWarning("宸茶閿�鍞ā鍧楀紩鐢ㄧ殑绉佹捣瀹㈡埛涓嶈兘缂栬緫");
+              return;
+            }
             openForm("edit", row);
           },
         },
-				{
-					name: "娣诲姞娲借皥杩涘害",
-					type: "text",
-					clickFun: row => {
-						openNegotiationDialog(row);
-					},
-				},
-        {
-          name: "鍥炶鎻愰啋",
-          type: "text",
-          clickFun: row => {
-            openReminderDialog(row);
-          },
-        },
+				// {
+				// 	name: "娣诲姞娲借皥杩涘害",
+				// 	type: "text",
+				// 	clickFun: row => {
+				// 		openNegotiationDialog(row);
+				// 	},
+				// },
+        // {
+        //   name: "鍥炶鎻愰啋",
+        //   type: "text",
+        //   clickFun: row => {
+        //     openReminderDialog(row);
+        //   },
+        // },
 				{
 					name: "璇︽儏",
 					type: "text",
@@ -1001,6 +1006,10 @@
   }
   // 鎵撳紑寮规
   const openForm = (type, row) => {
+    if (type === "edit" && isCustomerEditLocked(row)) {
+      proxy.$modal.msgWarning("宸茶閿�鍞ā鍧楀紩鐢ㄧ殑绉佹捣瀹㈡埛涓嶈兘缂栬緫");
+      return;
+    }
     operationType.value = type;
     form.value = {};
     form.value.maintainer = userStore.nickName;
@@ -1030,6 +1039,12 @@
     }
     dialogFormVisible.value = true;
   };
+  const isCustomerEditLocked = row => {
+    const salesReferenced = Number(row?.salesReferenceFlag || 0) === 1;
+    const customerType = Number(row?.type);
+    const usageStatus = Number(row?.usageStatus || 0);
+    return salesReferenced && (customerType === 0 || (customerType === 1 && usageStatus === 1));
+  };
   // 鎻愪氦琛ㄥ崟
   const submitForm = () => {
     proxy.$refs["formRef"].validate(valid => {

--
Gitblit v1.9.3