From b0dada24ccf8bebf143a921ae01d6cc95d378f6e Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 08 一月 2026 16:41:19 +0800
Subject: [PATCH] 修改bug

---
 src/pages/productionManagement/productionReport/index.vue |   38 +++++++++++++++++++++++---------------
 1 files changed, 23 insertions(+), 15 deletions(-)

diff --git a/src/pages/productionManagement/productionReport/index.vue b/src/pages/productionManagement/productionReport/index.vue
index 4d7b8a4..abe5679 100644
--- a/src/pages/productionManagement/productionReport/index.vue
+++ b/src/pages/productionManagement/productionReport/index.vue
@@ -21,11 +21,14 @@
         <u-form-item label="鏈鐢熶骇鏁伴噺"
                      prop="quantity"
                      required>
-          <u-number-box v-model="form.quantity"
+          <u-input v-model="form.quantity"
+                   placeholder="璇疯緭鍏�"
+                   type="number" />
+          <!-- <u-number-box v-model="form.quantity"
                         step="0.1"
                         bgColor="#fff"
                         decimal-length="1"
-                        :min="0"></u-number-box>
+                        :min="0"></u-number-box> -->
         </u-form-item>
         <u-form-item label="鐝粍淇℃伅"
                      prop="schedulingUserId"
@@ -133,19 +136,24 @@
   // 椤甸潰鍔犺浇鏃跺垵濮嬪寲鏁版嵁
   onLoad(options => {
     console.log(options, "options");
-    const orderRow = JSON.parse(options.orderRow);
-    console.log(orderRow, "orderRow======########");
-
-    form.value.planQuantity = orderRow.planQuantity;
-    form.value.quantity = orderRow.quantity;
-    form.value.productProcessRouteItemId = orderRow.productProcessRouteItemId;
-    form.value.workOrderId = orderRow.id;
-    form.value.reportWork = orderRow.reportWork;
-    form.value.productMainId = orderRow.productMainId;
-    getInfo().then(res => {
-      form.value.userId = res.user.userId;
-      form.value.userName = res.user.userName;
-    });
+    try {
+      const orderRow = JSON.parse(options.orderRow);
+      console.log(orderRow, "orderRow======########");
+      form.value.planQuantity = orderRow.planQuantity;
+      form.value.quantity = orderRow.quantity;
+      form.value.productProcessRouteItemId = orderRow.productProcessRouteItemId;
+      form.value.workOrderId = orderRow.id;
+      form.value.reportWork = orderRow.reportWork;
+      form.value.productMainId = orderRow.productMainId;
+      getInfo().then(res => {
+        form.value.userId = res.user.userId;
+        form.value.userName = res.user.userName;
+      });
+    } catch (error) {
+      modal.msgError("璁㈠崟瑙f瀽澶辫触");
+      goBack();
+      return;
+    }
   });
 </script>
 

--
Gitblit v1.9.3