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/InoutList.view.xml | 48 +++++++++++++++++++++++++++---------------------
1 files changed, 27 insertions(+), 21 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 e99ea9c..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>
@@ -123,7 +126,7 @@
</PropertyDef>
<PropertyDef name="settleWeight">
<Property name="dataType">Double</Property>
- <Property name="label">缁撶畻鍑�閲�</Property>
+ <Property name="label">缁撶畻閲嶉噺</Property>
<Property name="required">true</Property>
<Property name="displayFormat">0.0 KG</Property>
</PropertyDef>
@@ -156,6 +159,10 @@
<PropertyDef name="remarks">
<Property></Property>
<Property name="label">澶囨敞淇℃伅</Property>
+ </PropertyDef>
+ <PropertyDef name="updateLog">
+ <Property></Property>
+ <Property name="label">淇敼璁板綍</Property>
</PropertyDef>
<PropertyDef name="deptId">
<Property></Property>
@@ -366,11 +373,6 @@
view.get("#btnDel").set("visible",false);
}

-if("OUT" == TYPE){
- view.get("#recordWeight").set("caption","鍑哄簱閲嶉噺");
-}else{
- view.get("#recordWeight").set("caption","鍏ュ簱閲嶉噺");
-}

//榛樿鏌ヨ鏌ヨ鎻愭潯浠�
view.get("#dsQuery").insert({
@@ -423,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);
+ }
+ });
};

//寮傚父鎵ц
@@ -701,15 +713,6 @@
<Property name="align">center</Property>
<Property name="width">100</Property>
</DataColumn>
- <DataColumn id="recordWeight">
- <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
-arg.processDefault = true;</ClientEvent>
- <Property name="property">recordWeight</Property>
- <Property name="align">center</Property>
- <Property name="width">100</Property>
- <Property name="visible">true</Property>
- <Property name="name">recordWeight</Property>
- </DataColumn>
<DataColumn name="progress">
<ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
arg.processDefault = true;</ClientEvent>
@@ -933,12 +936,6 @@
<Property name="readOnly">true</Property>
<Editor/>
</AutoFormElement>
- <AutoFormElement>
- <Property name="name">recordWeight</Property>
- <Property name="property">recordWeight</Property>
- <Property name="readOnly">true</Property>
- <Editor/>
- </AutoFormElement>
</AutoForm>
</Children>
</FieldSet>
@@ -970,6 +967,12 @@
<AutoFormElement layoutConstraint="colSpan:3">
<Property name="name">remarks</Property>
<Property name="property">remarks</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement layoutConstraint="colSpan:3">
+ <Property name="name">updateLog</Property>
+ <Property name="property">updateLog</Property>
+ <Property name="readOnly">true</Property>
<Editor/>
</AutoFormElement>
</AutoForm>
@@ -1213,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