From 55853d1a56d123b798bb30b53cb0dfefbeacb1a2 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期四, 19 三月 2026 14:57:07 +0800
Subject: [PATCH] 报工详情

---
 src/views/productionManagement/workOrder/index.vue |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index da42a3f..9a5aadd 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -211,6 +211,7 @@
                        :value="user.userId"/>
           </el-select>
         </el-form-item>
+        <ProductionRecordForm ref="productionRecordFormRef" :list="processParamList"/>
       </el-form>
       <template #footer>
         <span class="dialog-footer">
@@ -250,12 +251,16 @@
 import QRCode from "qrcode";
 import {getCurrentInstance, reactive, toRefs} from "vue";
 import FilesDia from "./components/filesDia.vue";
+import {
+  listPage as listProcessParamPage,
+} from "@/api/productionManagement/productProcessParameter.js";
 
 const {proxy} = getCurrentInstance();
 const {priority_type} = proxy.useDict("priority_type");
 
 const CopperPrintingForm = defineAsyncComponent(() => import("./components/CopperPrintingForm.vue"));
 const VoltageSortingForm = defineAsyncComponent(() => import("./components/VoltageSortingForm.vue"));
+const ProductionRecordForm = defineAsyncComponent(() => import("./components/ProductionRecordForm.vue"));
 const tableColumn = ref([
   {
     label: "浼樺厛绾�",
@@ -401,7 +406,9 @@
   productProcessRouteItemId: "",
   userId: "",
   productMainId: null,
+  otherData: {}
 });
+const productionRecordFormRef = ref();
 
 // 鏈鐢熶骇鏁伴噺楠岃瘉瑙勫垯
 const validateQuantity = (rule, value, callback) => {
@@ -631,7 +638,22 @@
       });
 };
 
-const showReportDialog = row => {
+const processParamPage = reactive({
+  current: 1,
+  size: 9999,
+  total: 0,
+});
+const getProcessParamList = async (row) => {
+  const params = {
+    processId: row.processId,
+    ...processParamPage,
+  };
+  const res = await listProcessParamPage(params)
+  return res.data.records
+};
+
+const processParamList = ref([])
+const showReportDialog = async row => {
   currentReportRowData.value = row;
   if (row.processName === '鍗伴摐' || row.processName === '鍗伴摱') {
     copperPrintingFormVisible.value = true
@@ -641,6 +663,7 @@
     voltageSortingFormVisible.value = true
     return;
   }
+  processParamList.value = await getProcessParamList(row)
   reportForm.planQuantity = row.planQuantity;
   reportForm.quantity = row.quantity !== undefined && row.quantity !== null ? row.quantity : null;
   reportForm.productProcessRouteItemId = row.productProcessRouteItemId;
@@ -670,7 +693,9 @@
   workOrderFilesRef.value?.openDialog(row);
 };
 
-const handleReport = () => {
+const handleReport = async () => {
+  const data = await productionRecordFormRef.value.submitData()
+  reportForm.otherData = JSON.stringify(data || {});
   reportFormRef.value?.validate((valid) => {
     if (!valid) {
       return false;

--
Gitblit v1.9.3