From 27ab62f7d980e13e3fe5cd3ac5a979c7d5fc92b7 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期四, 15 一月 2026 11:04:42 +0800
Subject: [PATCH] 库区,仓库联动查询修改

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeOut.view.xml |   78 ++++++++++++++++++++++++++++-----------
 1 files changed, 56 insertions(+), 22 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeOut.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeOut.view.xml
index 97be764..2710c3c 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeOut.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeOut.view.xml
@@ -6,12 +6,10 @@
     <DataType name="dtMain" parent="dtNoticeOut"/>
   </Model>
   <View layout="padding:10">
-    <ClientEvent name="onReady">var deptId = window.parent.deptId;//鐖堕〉闈腑鐨勫垎搴撶紪鐮�&#xD;
-var TYPE = &quot;NOTICE_OUT&quot;;&#xD;
-query = function(){&#xD;
-	view.get(&quot;#dsQuery&quot;).set(&quot;parameter&quot;,{deptId:deptId}).flushAsync();&#xD;
+    <ClientEvent name="onReady">query = function(){&#xD;
+	var param = view.get(&quot;#dsQuery.data&quot;);&#xD;
+	view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,param).flushAsync();&#xD;
 };&#xD;
-query();&#xD;
       &#xD;
       &#xD;
 //瀹d紶鎿嶄綔&#xD;
@@ -39,11 +37,17 @@
 &#xD;
 //鐐瑰嚮瀹℃牳&#xD;
 audit = function(){&#xD;
-	&#xD;
+	var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
+	var url =&quot;com.fzzy.work.WorkOrder.d?businessId=&quot;+cur.get(&quot;id&quot;);&#xD;
+    window.$openParentTab(&quot;宸ュ崟绠$悊&quot;,url);&#xD;
 }&#xD;
 //鐐瑰嚮璇︾粏&#xD;
 showDetail = function(){&#xD;
-	&#xD;
+	view.get(&quot;#dialogMain&quot;).show();&#xD;
+}&#xD;
+//鐐瑰嚮鎵撳嵃&#xD;
+print = function(){&#xD;
+	$alert(&quot;鏈幏鍙栧埌鎵撳嵃妯℃澘鈥︹��&quot;);&#xD;
 }</ClientEvent>
     <Property name="packages">font-awesome,css-common</Property>
     <DataSet id="dsMain">
@@ -55,12 +59,17 @@
     <DataSet id="dsQuery">
       <Property name="dataType">dtNoticeParam</Property>
       <Property name="dataProvider">inoutNoticePR#getYearQuery</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>
       <AutoForm>
-        <Property name="cols">*,*,*,90,90,*</Property>
+        <Property name="cols">*,*,*,90,90,50</Property>
         <Property name="dataSet">dsQuery</Property>
         <Property name="labelAlign">right</Property>
         <Property name="labelWidth">100</Property>
@@ -72,6 +81,7 @@
         <AutoFormElement>
           <Property name="name">depotId</Property>
           <Property name="property">depotId</Property>
+          <Property name="trigger">dsDepotDropDown</Property>
           <Editor/>
         </AutoFormElement>
         <AutoFormElement>
@@ -91,7 +101,7 @@
           <Property name="exClassName">btn-q1</Property>
         </Button>
         <Button>
-          <ClientEvent name="onClick">view.get(&quot;#dsQuery&quot;).flushAsync();</ClientEvent>
+          <ClientEvent name="onClick">query();</ClientEvent>
           <Property name="caption">閲嶇疆</Property>
           <Property name="exClassName">btn-q2</Property>
           <Property name="iconClass">fa fa-refresh</Property>
@@ -101,6 +111,7 @@
     <Container>
       <Property name="className">c-data</Property>
       <ToolBar>
+        <Property name="ignored">true</Property>
         <ToolBarButton layoutConstraint="left">
           <Property name="caption">瀵煎嚭EXCEL</Property>
           <Property name="exClassName">btn4</Property>
@@ -176,27 +187,24 @@
       <Property name="width">1200</Property>
       <Property name="iconClass">fa fa-tasks</Property>
       <Buttons>
-        <Button id="btnOk">
-          <ClientEvent name="onClick">view.get(&quot;#updateSave&quot;).execute(function(result){&#xD;
-            if(result){&#xD;
-            $alert(result);&#xD;
-            return;&#xD;
-            }&#xD;
-            $notify(&quot;鏁版嵁鎵ц瀹屾垚锛侊紒&quot;);&#xD;
-            self.get(&quot;parent&quot;).hide();&#xD;
-            });</ClientEvent>
-          <Property name="caption">淇濆瓨</Property>
+        <Button>
+          <ClientEvent name="onClick">autid();</ClientEvent>
+          <Property name="caption">瀹℃壒</Property>
           <Property name="iconClass">fa fa-check-circle</Property>
           <Property name="exClassName">btn1</Property>
-          <Property name="width">120</Property>
+        </Button>
+        <Button>
+          <ClientEvent name="onClick">print();</ClientEvent>
+          <Property name="caption">鎵撳嵃</Property>
+          <Property name="iconClass">fa fa-file-word-o</Property>
+          <Property name="exClassName">btn2</Property>
         </Button>
         <Button>
           <ClientEvent name="onClick">view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
             self.get(&quot;parent&quot;).hide();</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>
         </Button>
       </Buttons>
       <Children>
@@ -231,6 +239,7 @@
             <Property name="labelAlign">right</Property>
             <Property name="labelSeparator">锛�</Property>
             <Property name="labelWidth">120</Property>
+            <Property name="readOnly">true</Property>
             <AutoFormElement layoutConstraint="colSpan:2">
               <Property name="name">name</Property>
               <Property name="property">name</Property>
@@ -364,5 +373,30 @@
     <AjaxAction id="recalculate">
       <Property name="service">inoutNoticePR#updateSumNoticeOut</Property>
     </AjaxAction>
+    <DataSetDropDown id="dsDepotDropDown">
+      <ClientEvent name="onOpen">&#xD;
+        var entity = view.get(&quot;#dsQuery.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;
+        }
+        }</ClientEvent>
+      <Property name="dataSet">dsDepotList</Property>
+      <Property name="height">450</Property>
+      <Property name="autoOpen">true</Property>
+      <Property name="assignmentMap">depotId=id</Property>
+      <Property name="width">400</Property>
+      <DataColumn>
+        <Property name="align">center</Property>
+        <Property name="name">name</Property>
+        <Property name="property">name</Property>
+        <Editor/>
+      </DataColumn>
+    </DataSetDropDown>
   </View>
 </ViewConfig>

--
Gitblit v1.9.3