From 28edbc60ecab951a85c30efa5acea6c27646ca4b Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 30 一月 2026 10:11:28 +0800
Subject: [PATCH] 对接生成核算接口

---
 src/views/productionManagement/productionCosting/index.vue |   30 +++++++++++-------------------
 src/api/productionManagement/productionCosting.js          |    9 ++++++++-
 2 files changed, 19 insertions(+), 20 deletions(-)

diff --git a/src/api/productionManagement/productionCosting.js b/src/api/productionManagement/productionCosting.js
index be7924b..ebf7daa 100644
--- a/src/api/productionManagement/productionCosting.js
+++ b/src/api/productionManagement/productionCosting.js
@@ -21,4 +21,11 @@
 }
 
 // 鍙宠竟琛ㄦ牸鐨勬帴鍙�
-//
\ No newline at end of file
+//
+export function salesLedgerProductionAccountingListProductionDetails(query) {
+  return request({
+    url: "/salesLedger/productionAccounting/listProductionDetails",
+    method: "get",
+    params: query,
+  });
+}
diff --git a/src/views/productionManagement/productionCosting/index.vue b/src/views/productionManagement/productionCosting/index.vue
index 0982fd3..40b7fbf 100644
--- a/src/views/productionManagement/productionCosting/index.vue
+++ b/src/views/productionManagement/productionCosting/index.vue
@@ -41,18 +41,15 @@
 
 <script setup>
 import {onMounted, ref} from "vue";
-import {
-	listCustomer,
-} from "@/api/basicData/customerFile.js";
 import { ElMessageBox } from "element-plus";
 import dayjs from "dayjs";
-import {productionAccountingListPage, salesLedgerProductionAccountingList} from "@/api/productionManagement/productionCosting.js";
+import {salesLedgerProductionAccountingListProductionDetails, salesLedgerProductionAccountingList} from "@/api/productionManagement/productionCosting.js";
 const { proxy } = getCurrentInstance();
 
 const tableColumn = ref([
 	{
 		label: "鐢熶骇鏃ユ湡",
-		prop: "schedulingDate",
+		prop: "scheduleDate",
     minWidth: 100,
 	},
 	{
@@ -65,29 +62,19 @@
 		prop: "salesContractNo",
     minWidth: 100,
 	},
-	// {
-	// 	label: "瀹㈡埛鍚堝悓鍙�",
-	// 	prop: "customerContractNo",
-	// 	width: 250,
-	// },
 	{
 		label: "瀹㈡埛鍚嶇О",
 		prop: "customerName",
     minWidth: 100,
 	},
-	// {
-	// 	label: "椤圭洰鍚嶇О",
-	// 	prop: "projectName",
-	// 	width:300
-	// },
 	{
 		label: "浜у搧澶х被",
-		prop: "productCategory",
+		prop: "productName",
     minWidth: 100,
 	},
 	{
 		label: "瑙勬牸鍨嬪彿",
-		prop: "specificationModel",
+		prop: "productModelName",
     minWidth: 100,
 	},
 	{
@@ -102,7 +89,7 @@
 	},
 	{
 		label: "鐢熶骇鏁伴噺",
-		prop: "finishedNum",
+		prop: "quantity",
     minWidth: 100,
 	},
 	{
@@ -114,7 +101,6 @@
 		label: "宸ヨ祫",
 		prop: "wages",
     minWidth: 100,
-
 	},
 ]);
 
@@ -204,6 +190,12 @@
 		page.total = res.data.total || 0;
 		// buildLeftTableData(records);
 	});
+
+  salesLedgerProductionAccountingListProductionDetails(params).then((res) => {
+		tableLoading.value = false;
+    tableData.value = res.data.records || [];;
+		page.total = res.data.total || 0;
+	});
 };
 
 // 鏋勫缓宸︿晶姹囨�诲彴璐︼紙鎸夌敓浜т汉姹囨�讳骇閲忋�佸伐璧勭瓑锛�

--
Gitblit v1.9.3