From a206264f7baa07af1b48dfd45adc735e3ca2a963 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期二, 30 十二月 2025 10:00:30 +0800
Subject: [PATCH] 质押合同,仓库多选

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/PledgeContract.view.xml |  105 ++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 76 insertions(+), 29 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/PledgeContract.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/PledgeContract.view.xml
index 2201381..9b9f70d 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/PledgeContract.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/PledgeContract.view.xml
@@ -231,8 +231,9 @@
               <Editor/>
             </AutoFormElement>
             <AutoFormElement>
-              <Property name="name">status</Property>
-              <Property name="property">status</Property>
+              <Property name="name">depotNames</Property>
+              <Property name="property">depotNames</Property>
+              <Property name="trigger">CDDDept</Property>
               <Editor/>
             </AutoFormElement>
             <AutoFormElement>
@@ -271,9 +272,8 @@
               <Editor/>
             </AutoFormElement>
             <AutoFormElement>
-              <Property name="name">depotIds</Property>
-              <Property name="property">depotIds</Property>
-              <Property name="trigger">dsDepotDropDown</Property>
+              <Property name="name">status</Property>
+              <Property name="property">status</Property>
               <Editor/>
             </AutoFormElement>
             <AutoFormElement layoutConstraint="colSpan:3">
@@ -345,30 +345,77 @@
         <Editor/>
       </DataColumn>
     </DataSetDropDown>
-    <DataSetDropDown id="dsDepotDropDown">
+    <CustomDropDown id="CDDDept">
       <ClientEvent name="onOpen">&#xD;
-var entity = view.get(&quot;#dsMain.data:#&quot;);&#xD;
-if(!entity){&#xD;
-    $alert(&quot;璇峰厛閫夋嫨璐ㄦ娂搴撳尯&quot;);&#xD;
-}else{&#xD;
-    var pledgeDept = entity.get(&quot;pledgeDept&quot;);&#xD;
-    if(!pledgeDept){&#xD;
-        $alert(&quot;璇峰厛閫夋嫨璐ㄦ娂搴撳尯&quot;);&#xD;
-    }else{&#xD;
-        view.get(&quot;#dsDepotList&quot;).set(&quot;parameter&quot;,entity.get(&quot;pledgeDept&quot;)).flushAsync();&#xD;
-    }
-}</ClientEvent>
-      <Property name="dataSet">dsDepotList</Property>
-      <Property name="height">400</Property>
-      <Property name="autoOpen">true</Property>
-      <Property name="assignmentMap">depotIds=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>
+          var entity = view.get(&quot;#dsMain.data:#&quot;);&#xD;
+          if(!entity){&#xD;
+          $alert(&quot;璇峰厛閫夋嫨璐ㄦ娂搴撳尯&quot;);&#xD;
+          }else{&#xD;
+          var pledgeDept = entity.get(&quot;pledgeDept&quot;);&#xD;
+          if(!pledgeDept){&#xD;
+          $alert(&quot;璇峰厛閫夋嫨璐ㄦ娂搴撳尯&quot;);&#xD;
+          }else{&#xD;
+          view.get(&quot;#dsDeptSelect&quot;).set(&quot;parameter&quot;,entity.get(&quot;pledgeDept&quot;)).flushAsync();&#xD;
+          }
+          }</ClientEvent>
+      <Property name="minWidth">400</Property>
+      <Property name="minHeight">400</Property>
+      <Property name="assignmentMap">depotIds=depotIds,depotNames=depotNames</Property>
+      <Panel>
+        <Property name="showCaptionBar">false</Property>
+        <Buttons>
+          <Button>
+            <ClientEvent name="onClick">var selection = view.get(&quot;#dgDepotSelect&quot;).get(&quot;selection&quot;);&#xD;
+                if(!selection || selection.length == 0){&#xD;
+                $alert(&quot;璇烽�夋嫨浠撳簱&quot;);&#xD;
+                return;&#xD;
+                }&#xD;
+                &#xD;
+                var depotIds = &quot;&quot;,depotNames=&quot;&quot;;&#xD;
+                selection.each(function(item){&#xD;
+                depotIds += item.get(&quot;id&quot;)+&quot;,&quot;;&#xD;
+                depotNames+=item.get(&quot;name&quot;)+&quot;,&quot;;&#xD;
+                });&#xD;
+                &#xD;
+                view.get(&quot;#CDDDept&quot;).close({depotIds:depotIds,depotNames:depotNames});</ClientEvent>
+            <Property name="caption">纭閫夋嫨</Property>
+          </Button>
+          <Button>
+            <ClientEvent name="onClick">view.get(&quot;#CDDDept&quot;).close({});&#xD;
+                view.get(&quot;#dgDepotSelect&quot;).set(&quot;selection&quot;,null);</ClientEvent>
+            <Property name="caption">鍙栨秷鎿嶄綔</Property>
+          </Button>
+        </Buttons>
+        <Children>
+          <DataSet id="dsDeptSelect">
+            <Property name="dataType">[dtDepot]</Property>
+            <Property name="dataProvider">depotPR#getData</Property>
+            <Property name="userData">搴撳尯鍒楄〃涓嬫媺妗�</Property>
+            <Property name="loadMode">manual</Property>
+          </DataSet>
+          <DataGrid id="dgDepotSelect">
+            <Property name="dataSet">dsDeptSelect</Property>
+            <Property name="selectionMode">multiRows</Property>
+            <RowSelectorColumn>
+              <Property name="caption">閫夋嫨</Property>
+              <Property name="width">50</Property>
+            </RowSelectorColumn>
+            <DataColumn name="name">
+              <Property name="property">name</Property>
+              <Property name="readOnly">true</Property>
+            </DataColumn>
+            <DataColumn name="id">
+              <Property name="property">id</Property>
+              <Property name="readOnly">true</Property>
+            </DataColumn>
+            <DataColumn name="depotType">
+              <Property name="property">depotType</Property>
+              <Property name="readOnly">true</Property>
+            </DataColumn>
+          </DataGrid>
+        </Children>
+        <Tools/>
+      </Panel>
+    </CustomDropDown>
   </View>
 </ViewConfig>

--
Gitblit v1.9.3