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-view/src/main/java/com/fzzy/igds/InoutHand.view.xml | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutHand.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutHand.view.xml
index ed73b78..909355d 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutHand.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutHand.view.xml
@@ -4,6 +4,9 @@
<Context/>
<Model>
<DataType name="dtMain">
+ <ClientEvent name="onDataChange">if(arg.property =="depotId"){
+ autoByDepot(arg.newValue);
+}
</ClientEvent>
<Property name="creationType">com.fzzy.igds.data.InoutData</Property>
<PropertyDef name="id">
<Property></Property>
@@ -315,6 +318,16 @@
view.get("#dsMain").set("parameter",TYPE).flushAsync();
};
flush();
+ 
+ //鏍规嵁浠撳簱鑷姩鍥炲~绮鍝佺锛岀櫥璁帮紝浜у湴鏂�
+ autoByDepot = function(depotId){
+ view.get("#ajaxGetDepot").set("parameter",depotId).execute(function(result){
+ if(result){
+ var data = view.get("#dsMain.data:#");
+ data.set("foodVariety",result.foodVariety);
+ }
+ });
+ };

/**
* 鏁版嵁淇濆瓨鎻愪氦
@@ -950,5 +963,8 @@
<Property name="async">true</Property>
<Property name="confirmMessage">纭畾瑕佸垹闄や箞锛�</Property>
</AjaxAction>
+ <AjaxAction id="ajaxGetDepot">
+ <Property name="service">depotPR#getDepot</Property>
+ </AjaxAction>
</View>
</ViewConfig>
--
Gitblit v1.9.3