From d6bcd2806fcf3a2f8da602152f2423f7f86226d7 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期一, 05 一月 2026 17:18:40 +0800
Subject: [PATCH] 增加生产报工-投入产出页面

---
 src/views/productionManagement/productionReporting/index.vue |   58 +++++++++++++++++++++++++++++++---------------------------
 1 files changed, 31 insertions(+), 27 deletions(-)

diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index c254d23..7d55dd6 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -127,15 +127,21 @@
 			</PIMTable>
 		</div>
 		<form-dia ref="formDia" @close="handleQuery"></form-dia>
+    <input-modal
+        v-if="isShowInput"
+        v-model:visible="isShowInput"
+    />
+    <output-modal
+        v-if="isShowOutput"
+        v-model:visible="isShowOutput"
+    />
 	</div>
 </template>
 
 <script setup>
 import {onMounted, ref} from "vue";
 import FormDia from "@/views/productionManagement/productionReporting/components/formDia.vue";
-import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js";
 import {ElMessageBox} from "element-plus";
-import dayjs from "dayjs";
 import {
 	productionReportUpdate,
 	workListPageById
@@ -144,6 +150,8 @@
   productionProductMainListPage,
 } from "@/api/productionManagement/production_product_main.js";
 import {userListNoPageByTenantId} from "@/api/system/user.js";
+import InputModal from "@/views/productionManagement/productionReporting/Input.vue";
+import OutputModal from "@/views/productionManagement/productionReporting/Output.vue";
 
 const data = reactive({
 	searchForm: {
@@ -236,9 +244,17 @@
     width: 200,
     operation: [
       {
-        name: "鏌ョ湅",
+        name: "鏌ョ湅鎶曞叆",
         type: "text",
         clickFun: (row) => {
+          showInput(row)
+        }
+      },
+      {
+        name: "鏌ョ湅浜у嚭",
+        type: "text",
+        clickFun: (row) => {
+          showOutput(row)
         }
       },
     ]
@@ -376,30 +392,18 @@
 	})
 };
 
-// 鍒犻櫎
-const handleDelete = () => {
-	let ids = [];
-	if (selectedRows.value.length > 0) {
-		ids = selectedRows.value.map((item) => item.id);
-	} else {
-		proxy.$modal.msgWarning("璇烽�夋嫨鏁版嵁");
-		return;
-	}
-	ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚垹闄わ紝鏄惁纭鍒犻櫎锛�", "瀵煎嚭", {
-		confirmButtonText: "纭",
-		cancelButtonText: "鍙栨秷",
-		type: "warning",
-	})
-		.then(() => {
-			staffJoinDel(ids).then((res) => {
-				proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
-				getList();
-			});
-		})
-		.catch(() => {
-			proxy.$modal.msg("宸插彇娑�");
-		});
-};
+// 鎵撳紑鎶曞叆妯℃�佹
+const isShowInput = ref(false);
+const showInput = (row) => {
+	isShowInput.value = true;
+}
+
+// 鎵撳紑浜у嚭妯℃�佹
+const isShowOutput = ref(false);
+const showOutput = (row) => {
+	isShowOutput.value = true;
+}
+
 // 瀵煎嚭
 const handleOut = () => {
 	ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {

--
Gitblit v1.9.3