Commit 8c5ee931 authored by 38823's avatar 38823

博雷顿业务调整

parent f5e01df9
...@@ -990,26 +990,29 @@ ...@@ -990,26 +990,29 @@
} }
} }
} }
if(!Ext.isEmpty(description) && description == 'AGENT'){ //博雷顿展示 授信额度占用 字段
if(!Ext.isEmpty(bp_code)){ if(division !='93'){
if(bp_code !== 'D00000029' && bp_code !== 'D00000031' && bp_code !== 'D00000026' && bp_code !== 'D00000030'){ if(!Ext.isEmpty(description) && description == 'AGENT'){
if(bp_code =='X00010005' || bp_code =='J00010006'){ if(!Ext.isEmpty(bp_code)){
record.set('credit_line','TENANT'); if(bp_code !== 'D00000029' && bp_code !== 'D00000031' && bp_code !== 'D00000026' && bp_code !== 'D00000030'){
record.set('credit_line_n','承租人'); if(bp_code =='X00010005' || bp_code =='J00010006'){
record.getField('credit_line').setRequired(false); record.set('credit_line','TENANT');
record.getField('credit_line_n').setRequired(false); record.set('credit_line_n','承租人');
record.getField('credit_line').setReadOnly(true); record.getField('credit_line').setRequired(false);
record.getField('credit_line_n').setReadOnly(true); record.getField('credit_line_n').setRequired(false);
record.getField('credit_line').setReadOnly(true);
}else { record.getField('credit_line_n').setReadOnly(true);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none'; }else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
}
} }
} }
}else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
} }
}else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
} }
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”或"建行扣款(两方)"时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”或"建行扣款(两方)"时展示,必填,大于0,默认20万,可修改;
......
...@@ -1270,37 +1270,40 @@ ...@@ -1270,37 +1270,40 @@
var credit_record = $(ds_id).getCurrentRecord(); var credit_record = $(ds_id).getCurrentRecord();
var invoice_agent_id=record.get('invoice_agent_id'); var invoice_agent_id=record.get('invoice_agent_id');
if(!Ext.isEmpty(description) && description == 'AGENT'){ //博雷顿展示 授信额度占用 字段
if(!Ext.isEmpty(bp_code)){ if(division !='93') {
if((division=='80'||division=='30'||division=='50'|| division=='99') && bp_code !== 'D00010019'){ if (!Ext.isEmpty(description) && description == 'AGENT') {
credit_record.set('credit_line','TENANT'); if (!Ext.isEmpty(bp_code)) {
credit_record.set('credit_line_n','承租人'); if ((division == '80' || division == '30' || division == '50' || division == '99') && bp_code !== 'D00010019') {
} credit_record.set('credit_line', 'TENANT');
} credit_record.set('credit_line_n', '承租人');
}
}
} }
if(!Ext.isEmpty(description) && description == 'AGENT'){ if (!Ext.isEmpty(description) && description == 'AGENT') {
if(!Ext.isEmpty(bp_code)){ if (!Ext.isEmpty(bp_code)) {
if(bp_code !== 'D00000026' && bp_code !== 'D00000029' && bp_code !== 'D00000030' && bp_code !== 'D00000031'){ if (bp_code !== 'D00000026' && bp_code !== 'D00000029' && bp_code !== 'D00000030' && bp_code !== 'D00000031') {
if(bp_code =='X00010005' || bp_code =='J00010006'){ if (bp_code == 'X00010005' || bp_code == 'J00010006') {
credit_record.set('credit_line','TENANT'); credit_record.set('credit_line', 'TENANT');
credit_record.set('credit_line_n','承租人'); credit_record.set('credit_line_n', '承租人');
credit_record.getField('credit_line').setReadOnly(true); credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true); credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false); credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false); credit_record.getField('credit_line_n').setRequired(false);
}else { } else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
}
} }
} }
} else {
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
} }
}else {
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
} }
} }
//只读页面隐藏保存按钮 //只读页面隐藏保存按钮
......
...@@ -1139,17 +1139,20 @@ ...@@ -1139,17 +1139,20 @@
} }
//深圳美鹏和hcs显示分公司,其他隐藏 //深圳美鹏和hcs显示分公司,其他隐藏
var bp_code = '${/model/user_agent_description/record/@bp_code}'; var bp_code = '${/model/user_agent_description/record/@bp_code}';
if (!Ext.isEmpty(bp_code) && bp_code !== 'D00010001' && bp_code !== 'D00000009') { //博雷顿展示 授信额度占用 字段
record.getField('branch_code').setRequired(false); if(division != '93'){
record.getField('branch_code_n').setRequired(false); if (!Ext.isEmpty(bp_code) && bp_code !== 'D00010001' && bp_code !== 'D00000009') {
if (document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_BRANCH_CODE')) { record.getField('branch_code').setRequired(false);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_BRANCH_CODE_prompt').style.display = 'none'; record.getField('branch_code_n').setRequired(false);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_BRANCH_CODE').style.display = 'none'; if (document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_BRANCH_CODE')) {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_BRANCH_CODE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_BRANCH_CODE').style.display = 'none';
}
}
if (Ext.isEmpty(bp_code)) {
record.getField('branch_code').setRequired(false);
record.getField('branch_code_n').setRequired(false);
} }
}
if (Ext.isEmpty(bp_code)) {
record.getField('branch_code').setRequired(false);
record.getField('branch_code_n').setRequired(false);
} }
//获取员工类型 //获取员工类型
var create_bp_code = '${/model/approve_history_rp/record/@bp_code}'; var create_bp_code = '${/model/approve_history_rp/record/@bp_code}';
......
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