From 37c5e71e2ad11f6b0f047d6843cd1983c9deccea Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期一, 23 三月 2026 16:59:20 +0800
Subject: [PATCH] 修改报工提交字段

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

diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index 3b193f8..ee789d2 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -709,7 +709,7 @@
 
 const handleReport = async () => {
   const data = await productionRecordFormRef.value.submitData()
-  reportForm.otherData.rows = JSON.stringify(data || {});
+  reportForm.otherData.rows = data || [];
   reportFormRef.value?.validate((valid) => {
     if (!valid) {
       return false;
@@ -761,7 +761,8 @@
     const submitData = {
       ...reportForm,
       quantity: quantity,
-      scrapQty: scrapQty
+      scrapQty: scrapQty,
+      otherData: JSON.stringify(reportForm.otherData)
     };
 
     // console.log(submitData);

--
Gitblit v1.9.3