From 4a56b77cc26f926e2f1b2a8c9fa28c0668e841b7 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 30 一月 2026 11:13:44 +0800
Subject: [PATCH] 进销存升级 1.收入管理、借款管理、支出管理金额字段都加上合计统计

---
 src/views/productionManagement/productionCosting/index.vue |   73 ++++++++++++++++++------------------
 1 files changed, 36 insertions(+), 37 deletions(-)

diff --git a/src/views/productionManagement/productionCosting/index.vue b/src/views/productionManagement/productionCosting/index.vue
index fd3a11b..40b7fbf 100644
--- a/src/views/productionManagement/productionCosting/index.vue
+++ b/src/views/productionManagement/productionCosting/index.vue
@@ -41,77 +41,66 @@
 
 <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} from "@/api/productionManagement/productionCosting.js";
+import {salesLedgerProductionAccountingListProductionDetails, salesLedgerProductionAccountingList} from "@/api/productionManagement/productionCosting.js";
 const { proxy } = getCurrentInstance();
 
 const tableColumn = ref([
 	{
 		label: "鐢熶骇鏃ユ湡",
-		prop: "schedulingDate",
-		width: 120,
+		prop: "scheduleDate",
+    minWidth: 100,
 	},
 	{
 		label: "鐢熶骇浜�",
 		prop: "schedulingUserName",
-		width: 90,
+    minWidth: 100,
 	},
 	{
 		label: "鍚堝悓鍙�",
 		prop: "salesContractNo",
-		width: 220,
+    minWidth: 100,
 	},
-	// {
-	// 	label: "瀹㈡埛鍚堝悓鍙�",
-	// 	prop: "customerContractNo",
-	// 	width: 250,
-	// },
 	{
 		label: "瀹㈡埛鍚嶇О",
 		prop: "customerName",
-		width: 250,
+    minWidth: 100,
 	},
-	// {
-	// 	label: "椤圭洰鍚嶇О",
-	// 	prop: "projectName",
-	// 	width:300
-	// },
 	{
 		label: "浜у搧澶х被",
-		prop: "productCategory",
-		width: 160,
+		prop: "productName",
+    minWidth: 100,
 	},
 	{
 		label: "瑙勬牸鍨嬪彿",
-		prop: "specificationModel",
-		width: 160,
+		prop: "productModelName",
+    minWidth: 100,
 	},
 	{
 		label: "鍗曚綅",
 		prop: "unit",
+    minWidth: 100,
 	},
 	{
 		label: "宸ュ簭",
 		prop: "process",
+    minWidth: 100,
 	},
 	{
 		label: "鐢熶骇鏁伴噺",
-		prop: "finishedNum",
-		width: 100,
+		prop: "quantity",
+    minWidth: 100,
 	},
 	{
 		label: "宸ユ椂瀹氶",
 		prop: "workHours",
-		width: 100,
+    minWidth: 100,
 	},
 	{
 		label: "宸ヨ祫",
 		prop: "wages",
-		width: 100,
+    minWidth: 100,
 	},
 ]);
 
@@ -120,22 +109,25 @@
 	{
 		label: "鐢熶骇浜�",
 		prop: "schedulingUserName",
-		width: 120,
+    minWidth: 100,
 	},
 	{
 		label: "浜ч噺",
-		prop: "finishedNum",
-		width: 100,
-	},
+		prop: "outputNum",
+    minWidth: 100,
+
+  },
 	{
 		label: "宸ヨ祫",
 		prop: "wages",
-		width: 100,
+    minWidth: 100,
+
 	},
 	{
 		label: "鍚堟牸鐜�",
-		prop: "qualifiedRate",
-		width: 100,
+		prop: "outputRate",
+    minWidth: 100,
+
 	},
 ]);
 
@@ -190,12 +182,19 @@
 	const params = { ...searchForm.value, ...page };
 	params.dateType = dateType.value;
 	params.entryDate = undefined
-	productionAccountingListPage(params).then((res) => {
+  salesLedgerProductionAccountingList(params).then((res) => {
 		tableLoading.value = false;
 		const records = res.data.records || [];
-		tableData.value = records;
+    // console.log("resdsd",records)
+    leftTableData.value = records;
 		page.total = res.data.total || 0;
-		buildLeftTableData(records);
+		// buildLeftTableData(records);
+	});
+
+  salesLedgerProductionAccountingListProductionDetails(params).then((res) => {
+		tableLoading.value = false;
+    tableData.value = res.data.records || [];;
+		page.total = res.data.total || 0;
 	});
 };
 

--
Gitblit v1.9.3