From 0ca44dcd97ec5e2530959eafd516bfed696d0e62 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 07 五月 2026 11:59:24 +0800
Subject: [PATCH] 重构客户档案

---
 src/views/productionPlan/productionPlan/index.vue |   41 ++++++++++++++++++++++++++++++++++++-----
 1 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/src/views/productionPlan/productionPlan/index.vue b/src/views/productionPlan/productionPlan/index.vue
index 0c8399c..46d0548 100644
--- a/src/views/productionPlan/productionPlan/index.vue
+++ b/src/views/productionPlan/productionPlan/index.vue
@@ -88,6 +88,13 @@
         <template #qtyRequired="{ row }">
           {{ row.qtyRequired || '-' }}<span style="color:rgba(12, 46, 40, 0.76)"> {{ row.unit || '鏂�' }}</span>
         </template>
+        <template #salesContractNo="{ row }">
+          <el-button type="primary"
+                     text
+                     link
+                     @click="showDetail(row)">{{ row.salesContractNo }}
+          </el-button>
+        </template>
       </PIMTable>
     </div>
     <!-- 鍚堝苟涓嬪彂寮圭獥 -->
@@ -127,9 +134,8 @@
       </el-form>
       <template #footer>
         <span class="dialog-footer">
+          <el-button type="primary" @click="handleMergeSubmit">纭畾涓嬪彂</el-button>
           <el-button @click="isShowNewModal = false">鍙栨秷</el-button>
-          <el-button type="primary"
-                     @click="handleMergeSubmit">纭畾涓嬪彂</el-button>
         </span>
       </template>
     </el-dialog>
@@ -221,9 +227,8 @@
       </el-form>
       <template #footer>
         <span class="dialog-footer">
+          <el-button type="primary" @click="handleSubmit">纭畾</el-button>
           <el-button @click="dialogVisible = false">鍙栨秷</el-button>
-          <el-button type="primary"
-                     @click="handleSubmit">纭畾</el-button>
         </span>
       </template>
     </el-dialog>
@@ -292,6 +297,7 @@
         return params == "閿�鍞�" ? "閿�鍞�" : "鍐呴儴";
       },
     },
+
     {
       label: "浜у搧鍚嶇О",
       prop: "productName",
@@ -366,6 +372,23 @@
       formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : ""),
     },
     {
+      label: "閿�鍞悎鍚屽彿",
+      prop: "salesContractNo",
+      width: "200px",
+      dataType: "slot",
+      slot: "salesContractNo",
+    },
+    {
+      label: "瀹㈡埛鍚嶇О",
+      prop: "customerName",
+      width: "150px",
+    },
+    {
+      label: "椤圭洰鍚嶇О",
+      prop: "projectName",
+      width: "150px",
+    },
+    {
       label: "澶囨敞",
       width: "150px",
       prop: "remark",
@@ -382,7 +405,7 @@
           type: "primary",
           link: true,
           showHide: row => {
-            return row.status == 0;
+            return row.status == 0 && row.source != "閿�鍞�";
           },
           clickFun: row => {
             handleEdit(row);
@@ -720,6 +743,14 @@
     // 鎵撳紑寮圭獥
     isShowNewModal.value = true;
   };
+  const showDetail = row => {
+    router.push({
+      path: "/salesManagement/salesLedger",
+      query: {
+        salesContractNo: row.salesContractNo,
+      },
+    });
+  };
 
   // 澶勭悊鍚堝苟涓嬪彂鎻愪氦
   const handleMergeSubmit = () => {

--
Gitblit v1.9.3