From 2b2bc285c0e1798305353e83b47776156e81007d Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 23 三月 2026 14:07:11 +0800
Subject: [PATCH] 生产报工模块修改

---
 src/views/productionManagement/productionReporting/index.vue |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index 4bf8452..a919973 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -57,14 +57,12 @@
         </template>
       </PIMTable>
     </div>
-    <ReportingDialog v-model:visible="dialogVisible"
-                     :data="form"
-                     @completed="handleQuery" />
   </div>
 </template>
 
 <script setup>
   import { onMounted, ref, reactive, getCurrentInstance } from "vue";
+  import { useRouter } from "vue-router";
   import { ElMessage, ElMessageBox } from "element-plus";
   import dayjs from "dayjs";
   import {
@@ -74,8 +72,8 @@
     productionReportDelete,
   } from "@/api/productionManagement/productionReporting.js";
   import PIMTable from "@/components/PIMTable/PIMTable.vue";
-  import ReportingDialog from "./components/ReportingDialog.vue";
 
+  const router = useRouter();
   const { proxy } = getCurrentInstance();
 
   const tableColumn = ref([
@@ -320,7 +318,6 @@
     },
   ];
 
-  const dialogVisible = ref(false);
   const form = reactive({
     id: undefined,
     orderId: "",
@@ -387,7 +384,10 @@
       processId: "",
       params: {},
     });
-    dialogVisible.value = true;
+    router.push({
+      path: "/productionManagement/ReportingDialog",
+      query: { data: JSON.stringify(form) },
+    });
   };
 
   const handleEdit = row => {
@@ -407,7 +407,10 @@
       processId: row.processId || "",
       params: row.params || {},
     });
-    dialogVisible.value = true;
+    router.push({
+      path: "/productionManagement/ReportingDialog",
+      query: { data: JSON.stringify(form) },
+    });
   };
 
   const handleDetail = row => {

--
Gitblit v1.9.3