From 0964a3d755ab490b709acca3a12df323a5053c8e Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 23 四月 2026 13:35:09 +0800
Subject: [PATCH] 发货记录增加数量+“库存预警”字段移至库存管理+点击销售合同号自动跳转到销售台账

---
 src/views/reportAnalysis/projectProfit/index.vue |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/views/reportAnalysis/projectProfit/index.vue b/src/views/reportAnalysis/projectProfit/index.vue
index 1aa36c1..bbf9b46 100644
--- a/src/views/reportAnalysis/projectProfit/index.vue
+++ b/src/views/reportAnalysis/projectProfit/index.vue
@@ -22,7 +22,12 @@
           total: pagination.total,
         }"
         @pagination="changePage"
-      ></PIMTable>
+      >
+      <template #customerContractNo="{ row }">
+         <el-button type="primary" text @click="showDetail(row)">{{ row.customerContractNo }}
+					</el-button>
+        </template>
+      </PIMTable>
     </div>
   </div>
 </template>
@@ -32,7 +37,10 @@
 import { getPurchaseList } from "@/api/procurementManagement/projectProfit";
 import { onMounted, getCurrentInstance } from "vue";
 import { ElMessageBox } from "element-plus";
+import { useRouter, useRoute } from "vue-router";
 
+const router = useRouter();
+  const route = useRoute();
 const { proxy } = getCurrentInstance();
 
 defineOptions({
@@ -58,6 +66,8 @@
       label: "閿�鍞悎鍚屽彿",
       align: "center",
       prop: "customerContractNo",
+      dataType: "slot",
+      slot: "customerContractNo",
     },
     {
       label: "瀹㈡埛鍚嶇О",
@@ -89,14 +99,25 @@
       align: "center",
       prop: "balanceRatio",
     },
-    {
-      label: "澧炲�肩◣",
-      align: "center",
-      prop: "balanceAmount",
-    },
+    // {
+    //   label: "澧炲�肩◣",
+    //   align: "center",
+    //   prop: "balanceAmount",
+    // },
   ]
 );
 
+const showDetail = (row) => {
+  
+ router.push({
+      path: "/salesManagement/salesLedger",
+      query: {
+        customerContractNo: row.customerContractNo
+      },
+    });
+};
+
+
 const changePage = ({ page }) => {
   pagination.currentPage = page;
   onCurrentChange(page);

--
Gitblit v1.9.3