Commit 8c5ee931 authored by 38823's avatar 38823

博雷顿业务调整

parent f5e01df9
......@@ -990,6 +990,8 @@
}
}
}
//博雷顿展示 授信额度占用 字段
if(division !='93'){
if(!Ext.isEmpty(description) && description == 'AGENT'){
if(!Ext.isEmpty(bp_code)){
if(bp_code !== 'D00000029' && bp_code !== 'D00000031' && bp_code !== 'D00000026' && bp_code !== 'D00000030'){
......@@ -1011,6 +1013,7 @@
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万,可修改;
if (record.get('PAY_METHOD') == 'CCB_THREE'||record.get('PAY_METHOD') == 'CCB_TWO') {
......
......@@ -1270,39 +1270,42 @@
var credit_record = $(ds_id).getCurrentRecord();
var invoice_agent_id=record.get('invoice_agent_id');
if(!Ext.isEmpty(description) && description == 'AGENT'){
if(!Ext.isEmpty(bp_code)){
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(bp_code)){
if(bp_code !== 'D00000026' && bp_code !== 'D00000029' && bp_code !== 'D00000030' && bp_code !== 'D00000031'){
if(bp_code =='X00010005' || bp_code =='J00010006'){
credit_record.set('credit_line','TENANT');
credit_record.set('credit_line_n','承租人');
//博雷顿展示 授信额度占用 字段
if(division !='93') {
if (!Ext.isEmpty(description) && description == 'AGENT') {
if (!Ext.isEmpty(bp_code)) {
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(bp_code)) {
if (bp_code !== 'D00000026' && bp_code !== 'D00000029' && bp_code !== 'D00000030' && bp_code !== 'D00000031') {
if (bp_code == 'X00010005' || bp_code == 'J00010006') {
credit_record.set('credit_line', 'TENANT');
credit_record.set('credit_line_n', '承租人');
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 {
} 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 {
} 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);
}
}
}
//只读页面隐藏保存按钮
if('${/parameter/@function_usage}' == 'QUERY'){
if(document.getElementById('${/parameter/@layout_code}_save')){
......
......@@ -1139,6 +1139,8 @@
}
//深圳美鹏和hcs显示分公司,其他隐藏
var bp_code = '${/model/user_agent_description/record/@bp_code}';
//博雷顿展示 授信额度占用 字段
if(division != '93'){
if (!Ext.isEmpty(bp_code) && bp_code !== 'D00010001' && bp_code !== 'D00000009') {
record.getField('branch_code').setRequired(false);
record.getField('branch_code_n').setRequired(false);
......@@ -1151,6 +1153,7 @@
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 credit_record = $(ds_id).getCurrentRecord();
......
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