Commit 817dd0ef authored by stone's avatar stone

[fix] 增加付款的页面

parent f3d0b8ba
...@@ -95,7 +95,6 @@ ...@@ -95,7 +95,6 @@
</tr> </tr>
<!--循环获取数据--> <!--循环获取数据-->
<#if model.getObject("/model/payment_details").getChilds()??> <#if model.getObject("/model/payment_details").getChilds()??>
<#list model.getObject('/model/payment_details').getChilds() as detail_item_l> <#list model.getObject('/model/payment_details').getChilds() as detail_item_l>
<tr height="0.7"> <tr height="0.7">
<tc width="4"> <tc width="4">
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
//批量导入 //批量导入
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () {
var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var records = $(con_ds_id).getSelected(); // var records = $(con_ds_id).getSelected();
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'con_insurance_upload_link_winId', id: 'con_insurance_upload_link_winId',
url: $('con_insurance_upload_link').getUrl(), url: $('con_insurance_upload_link').getUrl(),
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: sf
$Date: 2019/09/24 21:19
$Revision: 1.0
$Purpose: 商业伙伴授信维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="basic.get_sys_default_time" rootPath="sys_default_time"/>-->
</a:init-procedure>
<a:view>
<a:link id="credit_enhance_detail_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="hls361N_update_credit_link_id" model="hls.HLS361N.hls_bp_master_credit_update_status" modelaction="update"/>
<script type="text/javascript"><![CDATA[
Leaf.onReady(function() {
var credit_ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_credit_hd');
console.log('${/parameter/@bp_credit_hd_id}');
$(credit_ds).setQueryParameter('bp_credit_hd_id', '${/parameter/@bp_credit_hd_id}')
$(credit_ds).query();
})
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function(ds, record) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var check_flag = true;
var credit_date_from=Leaf.formatDate(record.get('credit_date_from'))
var credit_date_to=Leaf.formatDate(record.get('credit_date_to'));
var total_amount=record.get('credit_total_amount');
var used_credit_amount=record.get('used_amount');
if(total_amount<used_credit_amount){
$L.showErrorMessage("错误",'修改后剩余授信额度小于0',null,null);
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
if(credit_date_from>credit_date_to){
$L.showErrorMessage("错误",'终止日需大于生效日',null,null);
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
if(credit_date_to<Leaf.formatDate(new Date())){
$L.showErrorMessage("错误",'终止日早于当前时间',null,null);
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
Leaf.request({
url: $('hls361N_update_credit_link_id').getUrl(),
para: {
bp_credit_hd_id : record.get('bp_credit_hd_id'),
credit_total_amount: total_amount,
credit_date_from : credit_date_from,
credit_date_to : credit_date_to
},
success: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
sync: true,
scope: this
});
return check_flag;
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
...@@ -15,6 +15,7 @@ $Purpose: 商业伙伴授信维护 ...@@ -15,6 +15,7 @@ $Purpose: 商业伙伴授信维护
<a:link id="hn1150_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="hn1150_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="hls361_hls_bp_master_credit_tenant_detail_link" url="${/request/@context_path}/modules/hls/HLS361N/credit_entrance_detail.lview"/> <a:link id="hls361_hls_bp_master_credit_tenant_detail_link" url="${/request/@context_path}/modules/hls/HLS361N/credit_entrance_detail.lview"/>
<a:link id="hls361_hls_bp_master_create_link" url="${/request/@context_path}/modules/hls/HLS361N/credit_credit.lview"/> <a:link id="hls361_hls_bp_master_create_link" url="${/request/@context_path}/modules/hls/HLS361N/credit_credit.lview"/>
<a:link id="hls361_hls_bp_master_maintain_link" url="${/request/@context_path}/modules/hls/HLS361N/credit_credit_maintain.lview"/>
<a:link id="hls361_hls_bp_master_credit_agent_detail_link" url="${/request/@context_path}/modules/hls/HLS362N/credit_entrance_detail_confirm.lview"/> <a:link id="hls361_hls_bp_master_credit_agent_detail_link" url="${/request/@context_path}/modules/hls/HLS362N/credit_entrance_detail_confirm.lview"/>
<a:link id="hls361N_update_credit_status_link_id" model="hls.HLS361N.hls_bp_master_credit_update_status" modelaction="update"/> <a:link id="hls361N_update_credit_status_link_id" model="hls.HLS361N.hls_bp_master_credit_update_status" modelaction="update"/>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
...@@ -70,10 +71,11 @@ $Purpose: 商业伙伴授信维护 ...@@ -70,10 +71,11 @@ $Purpose: 商业伙伴授信维护
//1. 营业内勤/营业担当勾选授信状态为“启用”或“停用 //1. 营业内勤/营业担当勾选授信状态为“启用”或“停用
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
//授信额度变更 //授信额度变更
var param={};
var credit_ds=get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_credit_hd'); var credit_ds=get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_credit_hd');
var datas=$(credit_ds).selected; var datas=$(credit_ds).selected;
if(datas.length!=1){ if(datas.length!=1){
$L.showInfoMessage("提示",'请选择一条数据',null,null) $L.showInfoMessage("提示",'请选择要变更的数据',null,null)
return; return;
} }
//启用和审批冻结判断 //启用和审批冻结判断
...@@ -89,7 +91,21 @@ $Purpose: 商业伙伴授信维护 ...@@ -89,7 +91,21 @@ $Purpose: 商业伙伴授信维护
return; return;
} }
var credit_date_from=Leaf.formatDate(datas[0].data.credit_date_from) //跳转到维护页面
param['function_code'] = 'HLS36105_M';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'UPDATE';
param['url_title'] = '商业伙伴授信维护';
param['bp_category_n']=datas[0].get('bp_category_n');
param['bp_credit_hd_id']=datas[0].get('bp_credit_hd_id');
param['bp_name']=datas[0].get('bp_name');
param['credit_date_from']=datas[0].get('credit_date_from');
param['credit_total_amount']=datas[0].get('credit_total_amount');
param['bp_code']=datas[0].get('bp_code');
hls_doc_get_layout_code('hn1150_get_layout_code_link_id', param, 'hls361_hls_bp_master_maintain_link', null);
/* var credit_date_from=Leaf.formatDate(datas[0].data.credit_date_from)
var credit_date_to=Leaf.formatDate(datas[0].data.credit_date_to) var credit_date_to=Leaf.formatDate(datas[0].data.credit_date_to)
//进行数据的校验 //进行数据的校验
//1) “授信总额度”录入值不能小于“已使用额度”;若小于,则报错提示:“修改后剩余授信额度小于0!”; //1) “授信总额度”录入值不能小于“已使用额度”;若小于,则报错提示:“修改后剩余授信额度小于0!”;
...@@ -137,7 +153,7 @@ $Purpose: 商业伙伴授信维护 ...@@ -137,7 +153,7 @@ $Purpose: 商业伙伴授信维护
sync: true, sync: true,
scope: this scope: this
}); });
}) })*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment