From 3f4c60630a161bcc0e1abf2a298522d19a56c938 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期五, 13 二月 2026 14:04:50 +0800
Subject: [PATCH] 客户问题优化调整11

---
 fzzy-igdss-web/src/main/resources/static/inout/inout-check.js |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/static/inout/inout-check.js b/fzzy-igdss-web/src/main/resources/static/inout/inout-check.js
index bb78ad3..ee5ac48 100644
--- a/fzzy-igdss-web/src/main/resources/static/inout/inout-check.js
+++ b/fzzy-igdss-web/src/main/resources/static/inout/inout-check.js
@@ -35,6 +35,11 @@
             }
         });
 
+        //鐩戝惉浠撳簱閫夋嫨
+        layui.form.on('select(depotId)', function (data) {
+            updateDepot(data.value);
+        });
+
         // 鍒濆鍖栬〃鍗曟暟鎹�
         renderTable();
     });
@@ -43,6 +48,25 @@
     showProgress();
 });
 
+//鏍规嵁閫夋嫨浠撳簱鏄剧ず绮鍝佺
+function updateDepot(depotId) {
+    var selectDepot;
+    $.each(depot, function (index, data) {
+        if (data.id === depotId) {
+            selectDepot = data;
+            return false;
+        }
+    });
+
+    if (selectDepot) {
+        form.val("form-detail", {
+            foodVariety: selectDepot.foodVariety,
+            foodLevel: selectDepot.foodLevel
+        });
+        form.render();
+    }
+}
+
 /**
  * 鎺у埗娴佺▼鐜妭鏄剧ず
  */

--
Gitblit v1.9.3