From 878b6958363308a7d07b7b8197dc19662f3e1198 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期五, 27 三月 2026 15:40:22 +0800
Subject: [PATCH] 获取出入库id,逻辑优化调整
---
fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.view.xml | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.view.xml
index 7e517c5..360db0b 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.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.domain.InoutRecord</Property>
<PropertyDef name="id">
<Property></Property>
@@ -422,6 +425,16 @@
}else{
$notify("璇烽�夋嫨鏁版嵁鈥︹��");
}
+};
+
+//鏍规嵁浠撳簱鑷姩鍥炲~绮鍝佺锛岀櫥璁帮紝浜у湴鏂�
+autoByDepot = function(depotId){
+ view.get("#ajaxGetDepot").set("parameter",depotId).execute(function(result){
+ if(result){
+ var data = view.get("#dataGridMain").get("selection");
+ data.set("foodVariety",result.foodVariety);
+ }
+ });
};

//寮傚父鎵ц
@@ -1203,5 +1216,8 @@
<Property name="service">inoutDataPR#analysisExcel</Property>
<Property name="executingMessage">姝e湪鎵ц瑙f瀽鈥︹��</Property>
</AjaxAction>
+ <AjaxAction id="ajaxGetDepot">
+ <Property name="service">depotPR#getDepot</Property>
+ </AjaxAction>
</View>
</ViewConfig>
--
Gitblit v1.9.3