From 5448c9032abebbbaf4761670dfd90c8e5ea058fc Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 23 三月 2026 16:53:49 +0800
Subject: [PATCH] bom的产品结构添加单价

---
 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