From 96880d3b685cb56862a5b633182b97d8ec58eeb0 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期二, 06 一月 2026 15:25:27 +0800
Subject: [PATCH] 入库通知单交互修改,后端添加业务逻辑判断

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutNoticeIn.view.xml |   72 ++++++++++++++----------------------
 1 files changed, 28 insertions(+), 44 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutNoticeIn.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutNoticeIn.view.xml
index 568a51f..c9a5eff 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutNoticeIn.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutNoticeIn.view.xml
@@ -4,22 +4,7 @@
   <Context/>
   <Model>
     <DataType name="dtMain">
-      <ClientEvent name="onDataChange">if(arg.property == 'type'){&#xD;
-		//搴撳尯鑷缓閫氱煡鍗�&#xD;
-	if(arg.newValue == '10'){&#xD;
-		view.get(&quot;#formItemBank&quot;).set(&quot;visible&quot;,false);&#xD;
-	    var curData = view.get(&quot;#dsMain.data:#&quot;); //褰撳墠閫夋嫨鐨勬暟鎹�&#xD;
-	    curData.set(&quot;bankId&quot;,'-');&#xD;
-&#xD;
-	}&#xD;
-		//璐ㄦ娂鐩戠閫氱煡鍗�&#xD;
-	if(arg.newValue == '20'){&#xD;
-		view.get(&quot;#formItemBank&quot;).set(&quot;visible&quot;,true);&#xD;
-		var curData = view.get(&quot;#dsMain.data:#&quot;); //褰撳墠閫夋嫨鐨勬暟鎹�&#xD;
-	    curData.set(&quot;bankId&quot;,null);&#xD;
-	}&#xD;
-}&#xD;
-&#xD;
+      <ClientEvent name="onDataChange">&#xD;
 &#xD;
 &#xD;
 </ClientEvent>
@@ -216,6 +201,12 @@
       <Property name="dataProvider">inoutNoticePR#getYearQuery</Property>
       <Property name="loadMode">manual</Property>
       <Property name="dataType">dtNoticeParam</Property>
+    </DataSet>
+    <DataSet id="dsDepotList">
+      <Property name="dataProvider">depotPR#getData</Property>
+      <Property name="userData">浠撳簱鍒楄〃涓嬫媺妗�</Property>
+      <Property name="loadMode">manual</Property>
+      <Property name="dataType">[dtDepot]</Property>
     </DataSet>
     <Container>
       <Property name="className">c-param</Property>
@@ -416,12 +407,7 @@
       <Property name="iconClass">fa fa-tasks</Property>
       <Buttons>
         <Button id="btnOk">
-          <ClientEvent name="onClick">var entity = view.get(&quot;#dsMain.data:#&quot;);&#xD;
-var bankId = entity.get(&quot;bankId&quot;);&#xD;
-if(!bankId){&#xD;
-		        $alert(&quot;璇峰厛閫夋嫨鐩戠閾惰&quot;);&#xD;
-}else{&#xD;
-	view.get(&quot;#updateSave&quot;).execute(function(result){&#xD;
+          <ClientEvent name="onClick">view.get(&quot;#updateSave&quot;).execute(function(result){&#xD;
 	if(result){&#xD;
 		$alert(result);&#xD;
 		return;&#xD;
@@ -429,7 +415,6 @@
 	$notify(&quot;鏁版嵁鎵ц瀹屾垚锛侊紒&quot;);&#xD;
 	self.get(&quot;parent&quot;).hide();&#xD;
 });&#xD;
-}&#xD;
 &#xD;
 &#xD;
 </ClientEvent>
@@ -493,7 +478,12 @@
             <AutoFormElement id="formItemBank">
               <Property name="name">bankId</Property>
               <Property name="property">bankId</Property>
-              <Property name="hideMode">display</Property>
+              <Property name="hideMode">visibility</Property>
+              <Editor/>
+            </AutoFormElement>
+            <AutoFormElement>
+              <Property name="name">deptId</Property>
+              <Property name="property">deptId</Property>
               <Editor/>
             </AutoFormElement>
             <AutoFormElement>
@@ -593,7 +583,8 @@
             </AutoFormElement>
             <HtmlContainer layoutConstraint="colSpan:3">
               <Property name="content">1.鍏ュ簱閫氱煡鍗曚綔涓哄叆搴撲綔涓氱殑鍓嶇疆鏉′欢锛屽繀椤婚厤缃紝鍚﹀垯鏃犳硶杩涜鍏ュ簱浣滀笟銆�&lt;br>&#xD;
-2.鍗曟嵁绫诲瀷=搴撳尯閫氱煡鍗曪紝琛ㄧず搴撳尯鑷繁浣滀笟涓氬姟锛屼笉鍙楃洃绠$鐞嗐��</Property>
+2.鍗曟嵁绫诲瀷=搴撳尯閫氱煡鍗曪紝琛ㄧず搴撳尯鑷繁浣滀笟涓氬姟锛屼笉鍙楃洃绠$鐞嗐��&lt;br>&#xD;
+3.鍗曟嵁绫诲瀷=璐ㄦ娂鐩戠閫氱煡鍗曪紝鍗曟嵁蹇呴』濉啓鐩戠潱閾惰銆�</Property>
               <Property name="exClassName">h-tip</Property>
               <Property name="contentOverflow">hidden</Property>
             </HtmlContainer>
@@ -603,25 +594,18 @@
       <Tools/>
     </Dialog>
     <DataSetDropDown id="dsDepotDropDown">
-      <ClientEvent name="onOpen">	&#xD;
-	var entity = view.get(&quot;#dsMain.data:#&quot;);&#xD;
-	if(!entity){&#xD;
-	    $alert(&quot;璇峰厛閫夋嫨鐩戠閾惰&quot;);&#xD;
-	}else{&#xD;
-		var typeData = entity.get(&quot;type&quot;);&#xD;
-		if(typeData=='20'){&#xD;
-			var bankId = entity.get(&quot;bankId&quot;);&#xD;
-			console.log(bankId);&#xD;
-		    if(!bankId){&#xD;
-		        $alert(&quot;璇峰厛閫夋嫨鐩戠閾惰&quot;);&#xD;
-		    }else{&#xD;
-				view.get(&quot;#dsDepotList&quot;).set(&quot;parameter&quot;,entity.get(&quot;bankId&quot;)).flushAsync();&#xD;
-		    }&#xD;
-		}else{&#xD;
-			view.get(&quot;#dsDepotList&quot;).set(&quot;parameter&quot;,null).flushAsync();&#xD;
-		}&#xD;
-	}&#xD;
-</ClientEvent>
+      <ClientEvent name="onOpen">&#xD;
+var entity = view.get(&quot;#dsMain.data:#&quot;);&#xD;
+if(!entity){&#xD;
+    $alert(&quot;璇峰厛閫夋嫨鎵�灞炲垎搴�&quot;);&#xD;
+}else{&#xD;
+    var deptId = entity.get(&quot;deptId&quot;);&#xD;
+    if(!deptId){&#xD;
+        $alert(&quot;璇峰厛閫夋嫨鎵�灞炲垎搴�&quot;);&#xD;
+    }else{&#xD;
+        view.get(&quot;#dsDepotList&quot;).set(&quot;parameter&quot;,entity.get(&quot;deptId&quot;)).flushAsync();&#xD;
+    }&#xD;
+}</ClientEvent>
       <Property name="dataSet">dsDepotList</Property>
       <Property name="height">450</Property>
       <Property name="autoOpen">true</Property>

--
Gitblit v1.9.3