From a6baad20258a61d9ce9a786029ca4cb63a7c992e Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期二, 21 四月 2026 17:31:33 +0800
Subject: [PATCH] 优化出入库功能,新增对未完全入库和出库商品的检查,更新相关API接口以支持审批人字段的统一命名

---
 src/pages/productionManagement/productionReport/index.vue |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/pages/productionManagement/productionReport/index.vue b/src/pages/productionManagement/productionReport/index.vue
index 16412c1..dcd0fd7 100644
--- a/src/pages/productionManagement/productionReport/index.vue
+++ b/src/pages/productionManagement/productionReport/index.vue
@@ -182,6 +182,17 @@
   // 椤甸潰鍔犺浇鏃跺垵濮嬪寲鏁版嵁
   onLoad(options => {
     console.log(options, "options");
+    // 濡傛灉娌℃湁 orderRow 鍙傛暟锛岃鏄庢槸浠庨椤电洿鎺ヨ烦杞紝闇�瑕佺敤鎴锋墜鍔ㄩ�夋嫨璁㈠崟
+    if (!options.orderRow) {
+      console.log("浠庨椤佃烦杞紝鏃犺鍗曟暟鎹�");
+      getInfo().then(res => {
+        // 榛樿浣跨敤褰撳墠鐧诲綍鐢ㄦ埛
+        form.value.userId = res.user.userId;
+        form.value.userName = res.user.userName;
+        form.value.schedulingUserId = res.user.userId;
+      });
+      return;
+    }
     try {
       const orderRow = JSON.parse(options.orderRow);
       console.log("鏋勯�犵殑orderRow:", orderRow);

--
Gitblit v1.9.3