From 72a67eb9ba942e632c11906093c5cd14e364eed7 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期五, 13 二月 2026 14:27:34 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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