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 |   54 ++++++++++++++++++++++++++++++------------------------
 1 files changed, 30 insertions(+), 24 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 17d2574..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 ==&quot;depotId&quot;){&#xD;
+    autoByDepot(arg.newValue);&#xD;
+}&#xD;</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(&quot;#btnDel&quot;).set(&quot;visible&quot;,false);&#xD;
 }&#xD;
 &#xD;
-if(&quot;OUT&quot; == TYPE){&#xD;
-	view.get(&quot;#recordWeight&quot;).set(&quot;caption&quot;,&quot;鍑哄簱閲嶉噺&quot;);&#xD;
-}else{&#xD;
-	view.get(&quot;#recordWeight&quot;).set(&quot;caption&quot;,&quot;鍏ュ簱閲嶉噺&quot;);&#xD;
-}&#xD;
 &#xD;
 //榛樿鏌ヨ鏌ヨ鎻愭潯浠�&#xD;
 view.get(&quot;#dsQuery&quot;).insert({&#xD;
@@ -423,6 +425,16 @@
 	}else{&#xD;
     	$notify(&quot;璇烽�夋嫨鏁版嵁鈥︹��&quot;);&#xD;
 	}&#xD;
+};&#xD;
+&#xD;
+//鏍规嵁浠撳簱鑷姩鍥炲~绮鍝佺锛岀櫥璁帮紝浜у湴鏂�&#xD;
+autoByDepot = function(depotId){&#xD;
+    view.get(&quot;#ajaxGetDepot&quot;).set(&quot;parameter&quot;,depotId).execute(function(result){&#xD;
+        if(result){&#xD;
+            var data = view.get(&quot;#dataGridMain&quot;).get(&quot;selection&quot;);&#xD;
+            data.set(&quot;foodVariety&quot;,result.foodVariety);&#xD;
+        }&#xD;
+    });&#xD;
 };&#xD;
 &#xD;
 //寮傚父鎵ц&#xD;
@@ -584,7 +596,7 @@
         </ToolBarButton>
         <ToolBarButton id="btnDel">
           <ClientEvent name="onClick">showAbnormal();</ClientEvent>
-          <Property name="caption">寮傚父鎿嶄綔</Property>
+          <Property name="caption">浣滃簾鎿嶄綔</Property>
           <Property name="exClassName">btn4</Property>
           <Property name="iconClass">fa fa-minus</Property>
           <Property name="width">100</Property>
@@ -700,15 +712,6 @@
           <Property name="property">settleWeight</Property>
           <Property name="align">center</Property>
           <Property name="width">100</Property>
-        </DataColumn>
-        <DataColumn id="recordWeight">
-          <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
-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 = &quot;bold&quot;;&#xD;
@@ -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>
@@ -972,6 +969,12 @@
                 <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>
           </Children>
         </FieldSet>
@@ -1000,14 +1003,14 @@
       <Buttons>
         <Button>
           <ClientEvent name="onClick">todoError();</ClientEvent>
-          <Property name="caption">寮傚父缁堟</Property>
+          <Property name="caption">纭浣滃簾</Property>
           <Property name="iconClass">fa fa-check</Property>
           <Property name="exClassName">btn1</Property>
           <Property name="width">120</Property>
         </Button>
         <Button>
           <ClientEvent name="onClick">self.get(&quot;parent&quot;).close();</ClientEvent>
-          <Property name="caption">鍙栨秷鎿嶄綔</Property>
+          <Property name="caption">鍙栨秷</Property>
           <Property name="exClassName">btn3</Property>
           <Property name="iconClass">fa fa-times-circle</Property>
           <Property name="width">120</Property>
@@ -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