czt
2026-01-21 164a53adaed58ad0519bc214b08c0bfb287723f4
fzzy-igdss-view/src/main/java/com/fzzy/igds/PledgeContract.view.xml
@@ -182,7 +182,7 @@
      </Buttons>
      <Children>
        <Container>
          <AutoForm layoutConstraint="top ">
          <AutoForm layoutConstraint="top">
            <Property name="dataSet">dsMain</Property>
            <Property name="showHint">false</Property>
            <Property name="cols">210,*,210</Property>
@@ -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">
@@ -297,7 +297,7 @@
            <HtmlContainer layoutConstraint="colSpan:3">
              <Property name="content">1.当前单据仅作为当前系统业务信息登记使用,不作为实际双方合约约束。&lt;br>&#xD;
2.当前单据默认支持为1个合约对应1个库区,如果同时对应多个库区请数据登记。&lt;br>&#xD;
3.质押状态如果=解压,系统对应催办提醒等功能自动完成。&lt;br></Property>
3.质押状态如果=解押,系统对应催办提醒等功能自动完成。&lt;br></Property>
              <Property name="exClassName">h-tip</Property>
              <Property name="contentOverflow">hidden</Property>
            </HtmlContainer>
@@ -345,7 +345,7 @@
        <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;
@@ -355,20 +355,67 @@
    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;
        view.get(&quot;#dsDeptSelect&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>
      <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>