From 5b6529bd37a7191b674a64c760dcb5f21ab534f1 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期五, 20 三月 2026 16:42:59 +0800
Subject: [PATCH] 质押还款提醒逻辑调整
---
fzzy-igdss-view/src/main/java/com/fzzy/igds/PledgeContract.view.xml | 390 ++++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 281 insertions(+), 109 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 ca05f87..964740d 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
@@ -10,7 +10,19 @@
*/
query = function(){
view.get("#dsMain").flushAsync();
-}
</ClientEvent>
+}

+
+queryDepot= function(){
+ var entity = view.get("#dgMain").get("selection");
+ if(entity){
+ var code = entity.get("id");
+ view.get("#dsPledgeContractDepot").set("parameter",{PledgeId:code}).flush();
+ }else{
+ $notify("璇峰厛閫夋嫨璐ㄦ娂鍚堝悓淇℃伅锛�");
+ }
+
+}
+</ClientEvent>
<Property name="packages">font-awesome,css-common</Property>
<DataSet id="dsMain">
<Property name="loadMode">lazy</Property>
@@ -20,6 +32,11 @@
<DataSet id="dsParam">
<ClientEvent name="onReady">self.insert({});</ClientEvent>
<Property name="dataType">dtBaseParam</Property>
+ </DataSet>
+ <DataSet id="dsPledgeContractDepot">
+ <Property name="dataProvider">pledgeContractPR#listAllData</Property>
+ <Property name="dataType">[dtPledgeContractDepot]</Property>
+ <Property name="loadMode">manual</Property>
</DataSet>
<Container>
<Property name="className">c-param</Property>
@@ -53,33 +70,41 @@
</Container>
<Container>
<Property name="className">c-data</Property>
- <ToolBar>
- <ToolBarButton>
- <ClientEvent name="onClick">
+ <SplitPanel>
+ <Property name="direction">right</Property>
+ <Property name="position">350</Property>
+ <MainControl>
+ <Container>
+ <ToolBar>
+ <ToolBarButton>
+ <ClientEvent name="onClick">
view.get("#ajaxInitAdd").execute(function(data){
view.get("#dsMain").insert(data);
view.get("#dialogMain").show();
});</ClientEvent>
- <Property name="caption">鏂板</Property>
- <Property name="exClassName">btn1</Property>
- <Property name="width">100</Property>
- <Property name="iconClass">fa fa-plus</Property>
- </ToolBarButton>
- <ToolBarButton>
- <ClientEvent name="onClick">var data = view.get("#dgMain").get("selection");
-view.get("#dialogMain").show();
- </ClientEvent>
- <Property name="id">btnUpdate</Property>
- <Property name="caption">淇敼</Property>
- <Property name="exClassName">btn2</Property>
- <Property name="width">100</Property>
- <Property name="iconClass">fa fa-pencil-square-o</Property>
- </ToolBarButton>
- <ToolBarButton>
- <ClientEvent name="onClick">var data = view.get("#dgMain").get("selection")
+ <Property name="caption">鏂板</Property>
+ <Property name="exClassName">btn1</Property>
+ <Property name="width">100</Property>
+ <Property name="iconClass">fa fa-plus</Property>
+ </ToolBarButton>
+ <ToolBarButton>
+ <ClientEvent name="onClick">var data = view.get("#dgMain").get("selection");
+if(data){
+ view.get("#dialogMain").show();
+}else{
+ $notify("璇烽�夋嫨闇�瑕佷慨鏀圭殑淇℃伅鈥︹��");
+}
</ClientEvent>
+ <Property name="id">btnUpdate</Property>
+ <Property name="caption">淇敼</Property>
+ <Property name="exClassName">btn2</Property>
+ <Property name="width">100</Property>
+ <Property name="iconClass">fa fa-pencil-square-o</Property>
+ </ToolBarButton>
+ <ToolBarButton>
+ <ClientEvent name="onClick">var data = view.get("#dgMain").get("selection")
if(!data){
- $alert("璇烽�夋嫨鏁版嵁");
- }else{
+ $alert("璇烽�夋嫨闇�瑕佸垹闄ょ殑璐ㄦ娂鍚堝悓淇℃伅鈥︹��");
+}else{
view.get("#ajaxDelData").set("parameter", data).execute(function(result){
if("200"!=result.code){
$alert("寮傚父淇℃伅锛�"+result.message);
@@ -89,61 +114,136 @@
}
})
}</ClientEvent>
- <Property name="caption">鍒犻櫎</Property>
- <Property name="exClassName">btn3</Property>
- <Property name="width">100</Property>
- <Property name="iconClass">fa fa-times</Property>
- </ToolBarButton>
- </ToolBar>
- <DataGrid id="dgMain" layoutConstraint="padding:8" selectionMode="singleRow">
- <ClientEvent name="onDataRowClick">self.set("selection", arg.data)</ClientEvent>
- <Property name="dataSet">dsMain</Property>
- <Property name="readOnly">true</Property>
- <RowSelectorColumn/>
- <RowNumColumn/>
- <DataColumn name="pledgeBank">
- <Property name="property">pledgeBank</Property>
- </DataColumn>
- <DataColumn name="pledgeCompany">
- <Property name="property">pledgeCompany</Property>
- </DataColumn>
- <DataColumn name="name">
- <Property name="property">name</Property>
- <Property name="width">400</Property>
- </DataColumn>
- <DataColumn name="status">
- <Property name="property">status</Property>
- <Property name="align">center</Property>
- <Property name="width">150</Property>
- </DataColumn>
- <DataColumn name="remark">
- <Property name="property">remark</Property>
- </DataColumn>
- <DataColumn name="updateBy">
- <Property name="property">updateBy</Property>
- <Property name="align">center</Property>
- <Property name="width">160</Property>
- </DataColumn>
- <DataColumn name="updateTime">
- <Property name="property">updateTime</Property>
- <Property name="align">center</Property>
- <Property name="width">200</Property>
- </DataColumn>
- <DataColumn name="signTime">
- <Property name="property">signTime</Property>
- </DataColumn>
- <DataColumn name="pledgeStart">
- <Property name="property">pledgeStart</Property>
- </DataColumn>
- <DataColumn name="pledgeEnd">
- <Property name="property">pledgeEnd</Property>
- </DataColumn>
- </DataGrid>
+ <Property name="caption">鍒犻櫎</Property>
+ <Property name="exClassName">btn3</Property>
+ <Property name="width">100</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </ToolBarButton>
+ <ToolBarButton>
+ <ClientEvent name="onClick">//var cur = view.get("#dsMain.data:#");
+var cur = view.get("#dgMain").get("selection");
+if(cur){
+ var entity = view.get("#dgMain").get("selection");
+ var Id = entity.get("id");
+ var code = entity.get("pledgeCompany");
+ view.get("#dsDepotSelect").set("parameter",{parentId:code,PledgeId:Id}).flush();
+ view.get("#dialogDepot").show();
+}else{
+ $notify("璇峰厛閫夋嫨璐ㄦ娂鍚堝悓淇℃伅锛�");
+}</ClientEvent>
+ <Property name="caption">閰嶇疆浠撳簱</Property>
+ <Property name="exClassName">btn1</Property>
+ <Property name="width">100</Property>
+ <Property name="iconClass">fa fa-plus</Property>
+ </ToolBarButton>
+ </ToolBar>
+ <DataGrid id="dgMain" layoutConstraint="padding:8" selectionMode="singleRow">
+ <ClientEvent name="onDataRowClick">self.set("selection", arg.data);
+var entity = view.get("#dsMain.data:#");
+var code = entity.get("id");
+view.get("#dsPledgeContractDepot").set("parameter",{PledgeId:code}).flush();</ClientEvent>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="readOnly">true</Property>
+ <Property name="fixedColumnCount">3</Property>
+ <RowSelectorColumn/>
+ <RowNumColumn/>
+ <DataColumn name="pledgeCompany">
+ <Property name="property">pledgeCompany</Property>
+ <Property name="width">200</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="pledgeBank">
+ <Property name="property">pledgeBank</Property>
+ <Property name="width">200</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="name">
+ <Property name="property">name</Property>
+ <Property name="width">400</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="status">
+ <Property name="property">status</Property>
+ <Property name="align">center</Property>
+ <Property name="width">150</Property>
+ </DataColumn>
+ <DataColumn name="remark">
+ <Property name="property">remark</Property>
+ <Property name="width">300</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="updateBy">
+ <Property name="property">updateBy</Property>
+ <Property name="align">center</Property>
+ <Property name="width">300</Property>
+ </DataColumn>
+ <DataColumn name="updateTime">
+ <Property name="property">updateTime</Property>
+ <Property name="align">center</Property>
+ <Property name="width">150</Property>
+ </DataColumn>
+ <DataColumn name="signTime">
+ <Property name="property">signTime</Property>
+ <Property name="width">150</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="pledgeStart">
+ <Property name="property">pledgeStart</Property>
+ <Property name="width">150</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ <DataColumn name="pledgeEnd">
+ <Property name="property">pledgeEnd</Property>
+ <Property name="width">150</Property>
+ <Property name="align">center</Property>
+ </DataColumn>
+ </DataGrid>
+ </Container>
+ </MainControl>
+ <SideControl>
+ <Container>
+ <ToolBar>
+ <ToolBarButton>
+ <ClientEvent name="onClick">var data = view.get("#dgMainItem").get("selection")
+if(!data){
+ $alert("璇烽�夋嫨闇�瑕佸垹闄ょ殑璐ㄦ娂浠撳簱淇℃伅鈥︹��");
+}else{
+ view.get("#ajaxDelDepotData").set("parameter", data).execute(function(result){
+ if("200"!=result.code){
+ $alert("寮傚父淇℃伅锛�"+result.message);
+ }else{
+ $notify("鎵ц鎴愬姛");
+ queryDepot();
+ }
+ })
+}</ClientEvent>
+ <Property name="caption">鍒犻櫎浠撳簱</Property>
+ <Property name="exClassName">btn3</Property>
+ <Property name="width">100</Property>
+ <Property name="iconClass">fa fa-times</Property>
+ </ToolBarButton>
+ </ToolBar>
+ <DataGrid id="dgMainItem" layoutConstraint="padding:8" selectionMode="singleRow">
+ <ClientEvent name="onDataRowClick">self.set("selection", arg.data)</ClientEvent>
+ <Property name="dataSet">dsPledgeContractDepot</Property>
+ <Property name="readOnly">true</Property>
+ <RowSelectorColumn/>
+ <RowNumColumn/>
+ <DataColumn name="pledgeDept">
+ <Property name="property">pledgeDept</Property>
+ </DataColumn>
+ <DataColumn name="pledgeDepot">
+ <Property name="property">pledgeDepot</Property>
+ </DataColumn>
+ </DataGrid>
+ </Container>
+ </SideControl>
+ </SplitPanel>
</Container>
<Dialog id="dialogMain" layout="regionPadding:8">
<Property name="closeable">false</Property>
<Property name="caption">璐ㄦ娂鍚堝悓</Property>
- <Property name="width">65%</Property>
+ <Property name="width">80%</Property>
<Property name="iconClass">fa fa-tasks</Property>
<Property name="height">90%</Property>
<Buttons>
@@ -167,7 +267,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>
@@ -210,13 +310,23 @@
<Editor/>
</AutoFormElement>
<AutoFormElement>
- <Property name="name">pledgeDept</Property>
- <Property name="property">pledgeDept</Property>
+ <Property name="name">contractAmount</Property>
+ <Property name="property">contractAmount</Property>
<Editor/>
</AutoFormElement>
<AutoFormElement>
- <Property name="name">status</Property>
- <Property name="property">status</Property>
+ <Property name="name">repaidAmount</Property>
+ <Property name="property">repaidAmount</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement layoutConstraint="colSpan:2">
+ <Property name="name">contractName</Property>
+ <Property name="property">contractName</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">contractNo</Property>
+ <Property name="property">contractNo</Property>
<Editor/>
</AutoFormElement>
<AutoFormElement>
@@ -234,35 +344,9 @@
<Property name="property">pledgeEnd</Property>
<Editor/>
</AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
- <Property name="name">contractName</Property>
- <Property name="property">contractName</Property>
- <Editor/>
- </AutoFormElement>
<AutoFormElement>
- <Property name="name">contractNo</Property>
- <Property name="property">contractNo</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">contractAmount</Property>
- <Property name="property">contractAmount</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">repaidAmount</Property>
- <Property name="property">repaidAmount</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">depotIds</Property>
- <Property name="property">depotIds</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:3">
- <Property name="name">remark</Property>
- <Property name="property">remark</Property>
- <Property name="editorType">TextArea</Property>
+ <Property name="name">status</Property>
+ <Property name="property">status</Property>
<Editor/>
</AutoFormElement>
<AutoFormElement>
@@ -277,10 +361,16 @@
<Property name="readOnly">true</Property>
<Editor/>
</AutoFormElement>
+ <AutoFormElement layoutConstraint="colSpan:3">
+ <Property name="name">remark</Property>
+ <Property name="property">remark</Property>
+ <Property name="editorType">TextArea</Property>
+ <Editor/>
+ </AutoFormElement>
<HtmlContainer layoutConstraint="colSpan:3">
<Property name="content">1.褰撳墠鍗曟嵁浠呬綔涓哄綋鍓嶇郴缁熶笟鍔′俊鎭櫥璁颁娇鐢紝涓嶄綔涓哄疄闄呭弻鏂瑰悎绾︾害鏉熴��<br>
2.褰撳墠鍗曟嵁榛樿鏀寔涓�1涓悎绾﹀搴�1涓簱鍖猴紝濡傛灉鍚屾椂瀵瑰簲澶氫釜搴撳尯璇锋暟鎹櫥璁般��<br>
-3.璐ㄦ娂鐘舵�佸鏋�=瑙e帇锛岀郴缁熷搴斿偓鍔炴彁閱掔瓑鍔熻兘鑷姩瀹屾垚銆�<br></Property>
+3.璐ㄦ娂鐘舵�佸鏋�=瑙f娂锛岀郴缁熷搴斿偓鍔炴彁閱掔瓑鍔熻兘鑷姩瀹屾垚銆�<br></Property>
<Property name="exClassName">h-tip</Property>
<Property name="contentOverflow">hidden</Property>
</HtmlContainer>
@@ -297,11 +387,93 @@
</UpdateItem>
</UpdateAction>
<AjaxAction id="ajaxDelData">
- <Property name="confirmMessage">纭畾瑕佸垹闄ゆ暟鎹箞锛�</Property>
+ <Property name="confirmMessage">纭畾瑕佸垹闄よ璐ㄦ娂鍚堝悓鏁版嵁鍚楋紵</Property>
<Property name="service">pledgeContractPR#delete</Property>
+ </AjaxAction>
+ <AjaxAction id="ajaxDelDepotData">
+ <Property name="confirmMessage">纭畾瑕佸垹闄よ璐ㄦ娂浠撳簱鏁版嵁涔堝悧锛�</Property>
+ <Property name="service">pledgeContractPR#deleteDepot</Property>
</AjaxAction>
<AjaxAction id="ajaxInitAdd">
<Property name="service">pledgeContractPR#initAdd</Property>
</AjaxAction>
+ <Dialog id="dialogDepot">
+ <ClientEvent name="onReady">var entity = view.get("#dsMain.data:#");
+var code = entity.get("pledgeCompany");
+view.get("#dsDepotSelect").set("parameter",{parentId:code}).flush();</ClientEvent>
+ <Property name="width">50%</Property>
+ <Property name="height">80%</Property>
+ <Buttons>
+ <Button>
+ <ClientEvent name="onClick">var selection = view.get("#dialogDepotSelect").get("selection");
+var cur = view.get("#dgMain").get("selection");
+var ua = view.get("#saveAction");
+if(selection.length == 0) return;
+
+var items = cur.get("depotData");
+var tag = true;
+selection.each(function(entity){
+ tag = true;
+ items.each(function(data){
+ if(data.get("pledgeDepot") == entity.get("id")) tag = false;
+ });
+ if(tag){
+ items.insert({
+ pledgeDepot:entity.get("id"),
+ pledgeDept:entity.get("deptId"),
+ pledgeId:cur.get("id"),
+ companyId:cur.get("companyId")
+ });
+ }
+}); 
+ua.execute(function(){
+ self.get("parent").hide();
+ view.get("#dialogDepotSelect").set("selection",null);
+ queryDepot();
+});
+</ClientEvent>
+ <Property name="caption">纭閫夋嫨</Property>
+ </Button>
+ <Button>
+ <ClientEvent name="onClick">self.get("parent").hide();
+view.get("#dialogDepotSelect").set("selection",null);</ClientEvent>
+ <Property name="caption">鍙栨秷鎿嶄綔</Property>
+ </Button>
+ </Buttons>
+ <Children>
+ <DataSet id="dsDepotSelect">
+ <Property name="dataType">[dtDepot]</Property>
+ <Property name="dataProvider">pledgeContractPR#getUnplacedDepotData</Property>
+ <Property name="userData">搴撳尯鍒楄〃涓嬫媺妗�</Property>
+ <Property name="loadMode">manual</Property>
+ </DataSet>
+ <DataGrid id="dialogDepotSelect">
+ <Property name="dataSet">dsDepotSelect</Property>
+ <Property name="selectionMode">multiRows</Property>
+ <RowSelectorColumn>
+ <Property name="caption">閫夋嫨</Property>
+ <Property name="width">50</Property>
+ </RowSelectorColumn>
+ <DataColumn>
+ <Property name="property">deptId</Property>
+ <Property name="readOnly">true</Property>
+ <Property name="name">deptId</Property>
+ </DataColumn>
+ <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/>
+ </Dialog>
</View>
</ViewConfig>
--
Gitblit v1.9.3