Commit 129da460 authored by 18083's avatar 18083

批量下载解约通知函、连带责任函、拖车授权委托书按钮权限调整

parent 9b37758f
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
<a:init-procedure> <a:init-procedure>
<a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/> <a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="prj.PRJ501N.get_user_info" rootPath="user_name_path"/>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="con_dun_record_id" url="${/request/@context_path}/modules/cont/CON620/con_dun_record.lview"/> <a:link id="con_dun_record_id" url="${/request/@context_path}/modules/cont/CON620/con_dun_record.lview"/>
...@@ -365,6 +366,17 @@ ...@@ -365,6 +366,17 @@
$('CON601_con_contract_grid_ds').hideColumn('account_due_amount'); $('CON601_con_contract_grid_ds').hideColumn('account_due_amount');
$('CON601_con_contract_grid_ds').hideColumn('ac_received_amount'); $('CON601_con_contract_grid_ds').hideColumn('ac_received_amount');
$('CON601_con_contract_grid_ds').hideColumn('ac_unreceived_amount'); $('CON601_con_contract_grid_ds').hideColumn('ac_unreceived_amount');
}
if("${/model/role_info/record/@role_code}"!="0018"&&"${/model/role_info/record/@role_code}"!="0019") {
document.getElementById('CON601_joint_responsibility_id').style.display = "";
document.getElementById('CON601_trailer_letter_id').style.display = "";
} else {
document.getElementById("CON601_joint_responsibility_id").style.display = "none";
document.getElementById("CON601_trailer_letter_id").style.display = "none";
if("${/model/user_name_path/record/@user_name}"=="ZLSY001"||"${/model/user_name_path/record/@user_name}"=="ZLSY002"){
document.getElementById("CON601_con_contract_download_btn").style.display = "none";
document.getElementById("CON601_notice_of_termination_id").style.display = "none";
}
} }
//document.getElementById("repur_select_id").style.backgroundColor = '#657efe'; //document.getElementById("repur_select_id").style.backgroundColor = '#657efe';
//jQuery(".aaaa").css("color","#657efe"); //jQuery(".aaaa").css("color","#657efe");
...@@ -592,6 +604,10 @@ ...@@ -592,6 +604,10 @@
var r_map = new Map(); var r_map = new Map();
for (var i = 0; i < records.length; i++) { for (var i = 0; i < records.length; i++) {
if(records[i].get('division') == '95'){
$L.showInfoMessage('提示','经营性租赁业务不支持批量下载催收函!');
return;
}
if(!r_map.has(records[i].get('contract_id'))){ if(!r_map.has(records[i].get('contract_id'))){
var arr = new Array(); var arr = new Array();
arr.add(records[i].get('contract_id')); arr.add(records[i].get('contract_id'));
...@@ -631,6 +647,10 @@ ...@@ -631,6 +647,10 @@
var datas = []; var datas = [];
var templet_code = 'CON_LEASE_CONFIRM'; var templet_code = 'CON_LEASE_CONFIRM';
for (var i = 0;i < records.length;i++) { for (var i = 0;i < records.length;i++) {
if(records[i].get('division') == '95'){
$L.showInfoMessage('提示','经营性租赁业务不支持批量下载解约通知函!');
return;
}
var obj = {}; var obj = {};
obj['contract_id'] = records[i].get('contract_id'); obj['contract_id'] = records[i].get('contract_id');
obj['templet_code'] = templet_code; obj['templet_code'] = templet_code;
...@@ -693,6 +713,10 @@ ...@@ -693,6 +713,10 @@
var datas = []; var datas = [];
var templet_code = 'CON_LEASE'; var templet_code = 'CON_LEASE';
for (var i = 0;i < records.length;i++) { for (var i = 0;i < records.length;i++) {
if(records[i].get('division') == '95'){
$L.showInfoMessage('提示','经营性租赁业务不支持批量下载连带责任函!');
return;
}
var obj = {}; var obj = {};
obj['contract_id'] = records[i].get('contract_id'); obj['contract_id'] = records[i].get('contract_id');
obj['templet_code'] = templet_code; obj['templet_code'] = templet_code;
...@@ -755,6 +779,10 @@ ...@@ -755,6 +779,10 @@
var datas = []; var datas = [];
var templet_code = 'LEASE_RETURN'; var templet_code = 'LEASE_RETURN';
for (var i = 0;i < records.length;i++) { for (var i = 0;i < records.length;i++) {
if(records[i].get('division') == '95'){
$L.showInfoMessage('提示','经营性租赁业务不支持批量下载拖车授权委托书!');
return;
}
var obj = {}; var obj = {};
obj['contract_id'] = records[i].get('contract_id'); obj['contract_id'] = records[i].get('contract_id');
obj['templet_code'] = templet_code; obj['templet_code'] = templet_code;
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
var to_file_path = (sys_file_path + y + "\/" + m + "\/").toString(); var to_file_path = (sys_file_path + y + "\/" + m + "\/").toString();
FileUtils.forceMkdir(new File(to_file_path)); //根据日期创建目录 FileUtils.forceMkdir(new File(to_file_path)); //根据日期创建目录
for (var i = 0;i < from_file_data.length;i++) { for (var i = 0;i < from_file_data.length;i++) {
var to_file_path = (sys_file_path + y + "\/" + m + "\/").toString();
var record_data = from_file_data[i]; var record_data = from_file_data[i];
var to_file_name = record_data.to_file_name; var to_file_name = record_data.to_file_name;
......
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