Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
3b3b28d0
Commit
3b3b28d0
authored
Oct 10, 2024
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商业伙伴经办人 身份证号唯一性校验
parent
e3cab322
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
221 additions
and
218 deletions
+221
-218
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+114
-111
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+56
-59
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+51
-48
No files found.
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
3b3b28d0
...
...
@@ -19,9 +19,10 @@
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
$ctx.parameter.division_detail = $ctx.get('/model/division_detail_path/record/@division_detail');
]]>
]]>
</s:server-script>
</a:init-procedure>
<a:view>
...
...
@@ -73,7 +74,7 @@
var gridId= 'PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id';
$(gridId).hideColumn('machine_number_n');
}
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
if('${/parameter/@asset_fee_flag}'=='N'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06').style.display = 'none';
...
...
@@ -87,22 +88,19 @@
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
//新建页面直接隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}
});
});
function check_empty(value){
function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true;
}else{
...
...
@@ -110,10 +108,7 @@
}
}
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
...
...
@@ -151,7 +146,7 @@
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'||division=='99'){
if(division=='30' || division=='50'||
division=='99'){
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
...
...
@@ -224,7 +219,7 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'||division=='99'){
if(division=='30' || division=='50'||
division=='99'){
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
...
...
@@ -236,7 +231,7 @@
var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list');
//追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价
//追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价
var cal_hd_user_col_v06 = record.get('cal_hd_user_col_v06');
var hd_user_col_v06 = record.get('hd_user_col_v06');
var cal_btb_int_rate = record.get('cal_btb_int_rate');
...
...
@@ -265,7 +260,6 @@
||(cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='Y'&&cal_hd_user_col_v06==hd_user_col_v06
&&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) {
//直接进入报价页面
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid',
...
...
@@ -294,7 +288,7 @@
$(quotation_ds_id).query();
$(history_ds_id).query();
});
}
else {
}else {
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y';
...
...
@@ -500,8 +494,6 @@
var project_id = project_record.get('project_id');
var machine_number_num = 0;
var secondary_lease = project_record.get('secondary_lease');
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
if (prj_project_ds_id == ds.id && prj_project_ds_id) {
...
...
@@ -827,7 +819,8 @@
var
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id)
{
//产品线不为二手机业务,将资管费等字段置空
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
...
...
@@ -918,24 +911,25 @@
}
if
(
ds_id =
=
ds.id
&&
ds_id)
{
division=
record.get('division');
if
(record.get('secondary_lease')
==
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
division=
record.get('division');
if
(record.get('secondary_lease')
==
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
//业务类型回租时,默认只读“首付款抵扣”选项
if
(record.get('business_type')
==
'LEASEBACK')
{
//
record.set('payment_deduction',
'DOWN_PAYMENT_DEDUCTION');
...
...
@@ -977,26 +971,27 @@
var
description =
'${/model/description/record/@employee_type_code}'
;
var
bp_code=
'${/model/user_agent_description/record/@bp_code}'
;
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'){
record.set('credit_line','TENANT');
record.set('credit_line_n','承租人');
}
}
}
//博雷顿展示
授信额度占用
字段
if(division
!='93'){
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if(bp_code
!==
'D00000029'
&&
bp_code
!==
'D00000031'
&&
bp_code
!==
'D00000026'
&&
bp_code
!==
'D00000030'){
if(
bp_code =
='X00010005'
||
bp_code =
='J00010006'){
record.set('credit_line','TENANT');
record.set('credit_line_n','承租人');
record.getField('credit_line').setRequired(false);
record.getField('credit_line_n').setRequired(false);
record.getField('credit_line').setReadOnly(true);
record.getField('credit_line_n').setReadOnly(true);
if((
division=
='80'||division=='30'||division=='50'||division=='99')
&&
bp_code
!==
'D00010019'){
record.set('credit_line','TENANT');
record.set('credit_line_n','承租人');
}
}
}
//博雷顿展示
授信额度占用
字段
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'){
if(
bp_code =
='X00010005'
||
bp_code =
='J00010006'){
record.set('credit_line','TENANT');
record.set('credit_line_n','承租人');
record.getField('credit_line').setRequired(false);
record.getField('credit_line_n').setRequired(false);
record.getField('credit_line').setReadOnly(true);
record.getField('credit_line_n').setReadOnly(true);
}else
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
...
...
@@ -1012,7 +1007,7 @@
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')
{
...
...
@@ -1036,7 +1031,7 @@
//add
by
wangwei
非铁甲业务隐藏铁甲评分
var
bp_tenant_rate_detail_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'bp_tenant_rate_detail');
if
(
bp_tenant_rate_detail_ds_id =
=
ds.id
&&
bp_tenant_rate_detail_ds_id)
{
if
(division
!=
'70'
&&
division
!=
'')
{
if
(division
!=
'70'
&&
division
!=
'')
{
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
...
...
@@ -1048,14 +1043,16 @@
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
}
}
};
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function
(ds,
record,
name,
value,
old_value,
bp_seq)
{
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
var
quo_rate_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_RATE_N',
'prj_quotation');
var
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
var
quo_rate_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_RATE_N',
'prj_quotation');
var
prj_project_history_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_HISTORY_INGO',
'hls_bp_master');
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
...
...
@@ -1078,7 +1075,7 @@
}
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if('${/parameter/@asset_fee_flag}'=='Y'){
...
...
@@ -1097,7 +1094,6 @@
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}
else
{
record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true);
...
...
@@ -1109,12 +1105,10 @@
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
if(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
if(
name =
=
'send_message_n'){
...
...
@@ -1129,7 +1123,7 @@
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='30'||division=='50'||division=='80'||division=='99'){
if(
division=
='30'||division=='50'||division=='80'||
division=
='99'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
...
...
@@ -1153,16 +1147,16 @@
//选择承租人带出开票信息
if
(
prj_project_ds_id =
=
ds.id
&&
prj_project_ds_id)
{
if
(
name =
=
"payment_deduction"
&&
value=
="DOWN_PAYMENT_DEDUCTION")
{
//业务类型回租时,默认只读“首付款抵扣”选项
if
($(prj_project_ds_id).getAt(0).get('business_type')
==
'LEASE')
{
Leaf.showInfoMessage("提示",
"直租业务不能选择首付款抵扣");
setTimeout(function
()
{
$(prj_project_ds_id).getAt(0).set('payment_deduction',
null);
$(prj_project_ds_id).getAt(0).set('payment_deduction_n',
null);
},
10);
//业务类型回租时,默认只读“首付款抵扣”选项
if
($(prj_project_ds_id).getAt(0).get('business_type')
==
'LEASE')
{
Leaf.showInfoMessage("提示",
"直租业务不能选择首付款抵扣");
setTimeout(function
()
{
$(prj_project_ds_id).getAt(0).set('payment_deduction',
null);
$(prj_project_ds_id).getAt(0).set('payment_deduction_n',
null);
},
10);
}
}
}
if
(
name =
=
"bp_id_tenant_n"
&&
value)
{
var
bp_id_tenant =
record.get('bp_id_tenant');
Leaf.Masker.mask(Ext.getBody());
...
...
@@ -1270,26 +1264,28 @@
}
//add
by
niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if
(
name =
=
'secondary_lease')
{
if
(
value=
='YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else
if(
value=
='NO'){
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',null);
record.set('repur_contract_id_n',null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
if
(
name =
=
'secondary_lease')
{
if
(
value =
=
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(
value =
=
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if
(
name=
='pay_method')
{
...
...
@@ -1382,7 +1378,7 @@
//控制资管费现金流隐藏
var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_NS', 'prj_quotation');
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(division!='30'
&&
division!='50'
&&
division!='99'){
$(gridId).hideColumn('machine_number_n');
...
...
@@ -1406,6 +1402,7 @@
}
}
if (bp_ds_id == ds.id
&&
bp_ds_id) {
if (record.get('bp_category') == 'TENANT') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
...
...
@@ -1414,7 +1411,11 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if (record.get('bp_code') == 'C00007065' || record.get('bp_code') == 'C00007066') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70'
&&
division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
...
...
@@ -1434,9 +1435,9 @@
}
}
}
//现金流列表加载时隐藏资管费 18083
//现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
//var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06');
//var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06');
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
...
...
@@ -1444,13 +1445,13 @@
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
...
...
@@ -1461,20 +1462,18 @@
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
}
}
}
};
//序号自增 add by lijingjing
...
...
@@ -1531,7 +1530,7 @@
record.set('seq_num',
rk_value);
}
//新增时只有二手机供应商银行账号必填
//新增时只有二手机供应商银行账号必填
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
if
(
bp_ds_id =
=
ds.id
&&
bp_ds_id)
{
if(
division=
='70'
||
division=
='92'){
...
...
@@ -1649,6 +1648,10 @@
}
}
//if(vender_count
>
0
&&
vender_count!=1){
//Leaf.showErrorMessage('错误', '只能维护一个供应商!');
//return false;
//}
}
var promt;
...
...
@@ -1673,11 +1676,11 @@
}else{
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?'
, function () {
Leaf.showConfirm('${HLS.PROMPT}',
promt
, function () {
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
if(division=='30'||division=='50'||division=='99'){
if(division=='30'||division=='50'||
division=='99'){
var record=$(lease_ds_id).getCurrentRecord();
var records=$(ds_id).getCurrentRecord();
var set_number=records.get('set_number');
...
...
@@ -1736,7 +1739,7 @@
Leaf.showConfirm('${HLS.PROMPT}',promt, function () {
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
if(division=='30'||division=='50'||division=='99'){
if(division=='30'||division=='50'||
division=='99'){
var record=$(lease_ds_id).getCurrentRecord();
var records=$(ds_id).getCurrentRecord();
var set_number=records.get('set_number');
...
...
@@ -1834,7 +1837,7 @@
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('residual_value_amount');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('ownership_flag_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('created_by_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num');
}
else {
...
...
@@ -1848,7 +1851,7 @@
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('residual_value_amount');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('ownership_flag_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('created_by_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num');
}
})
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
3b3b28d0
...
...
@@ -17,6 +17,7 @@
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_description"
rootPath=
"description"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_residual_value"
rootPath=
"residual_value"
/>
<!-- <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value_from" rootPath="prj_residual_value"/>-->
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_asset_fee_flag"
rootPath=
"asset_fee_path"
></a:model-query>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_division_detail"
rootPath=
"division_detail_path"
></a:model-query>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
...
...
@@ -129,7 +130,7 @@
});
};
function check_empty(value){
function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true;
}else{
...
...
@@ -138,10 +139,8 @@
}
//add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
...
...
@@ -292,18 +291,16 @@
if(check_empty(int_rate_display)){
int_rate_display=0;
}
if(check_empty(cal_btb_int_rate)){
if(check_empty(cal_btb_int_rate)){
cal_btb_int_rate =0;
}
if(check_empty(cal_int_rate_display)){
cal_int_rate_display=0;
}
if ((cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='N')
||(cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='Y'&&cal_hd_user_col_v06==hd_user_col_v06
&&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) {
//直接进入报价页面
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid',
...
...
@@ -726,7 +723,7 @@
}
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if('${/parameter/@asset_fee_flag}'=='Y'){
...
...
@@ -741,11 +738,10 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}
}
else
{
record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true);
...
...
@@ -753,15 +749,14 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'block'
;
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
}
if(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
if(
name =
=
'send_message_n'){
...
...
@@ -1073,7 +1068,7 @@
$(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}');
$(bp_ds_ids).query();*/
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
var gridId= ds.bindname+'_layout_grid_id';
if(division!='30'
&&
division!='50'
&&
division!='99'){
$(gridId).hideColumn('machine_number_n');
}
...
...
@@ -1113,7 +1108,7 @@
$(gridId).hideColumn('created_by_n');
}
if (lease_item_ds_id == ds.id
&&
lease_item_ds_id) {
if(division=='30'||division=='50'||division=='80'||
division=='99'){
if(division=='30'||division=='50'||division=='80'||division=='99'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
...
...
@@ -1124,6 +1119,7 @@
}
}
if (bp_ds_id == ds.id
&&
bp_ds_id) {
debugger;
if (record.get('bp_category') == 'TENANT') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
...
...
@@ -1132,7 +1128,11 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if (record.get('bp_code') == 'C00007065' || record.get('bp_code') == 'C00007066') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70'
&&
division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
...
...
@@ -1152,7 +1152,7 @@
}
}
}
//现金流列表加载时隐藏资管费 18083
//现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
//var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06');
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
...
...
@@ -1162,13 +1162,13 @@
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
...
...
@@ -1179,20 +1179,18 @@
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
}
}
}
};
function arrToObject(arr) {
...
...
@@ -1206,8 +1204,7 @@
}
var
division=
''
;
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load']
=
function
(ds,
record,
config_records,
bp_seq)
{
var
tenant_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_INFO_1',
'prj_project');
var
tenant_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_INFO_1',
'prj_project');
if(
tenant_ds_id =
=
ds.id){
if
(Leaf.isEmpty(record.get('send_message'))){
...
...
@@ -1337,26 +1334,26 @@
var
credit_record =
$(ds_id).getCurrentRecord();
var
invoice_agent_id=
record.get('invoice_agent_id');
//博雷顿展示
授信额度占用
字段
//博雷顿展示
授信额度占用
字段
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);
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
{
...
...
@@ -1382,7 +1379,7 @@
}
}
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id){
//产品线维护了组合利率的调整加载事件显示
//产品线维护了组合利率的调整加载事件显示
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
...
...
@@ -1392,6 +1389,7 @@
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
}else{
if
(check_empty(record.get('hd_user_col_v06'))||record.get('hd_user_col_v06')=='N'
)
{
record.set('asset_id',
null);
...
...
@@ -1480,7 +1478,7 @@
}
}
}
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)){
//
if
(
bp_code =
=
'C00010168'
||
bp_code =
=
'C00010198'
||
bp_code =
=
'C00010170')
{
if
(
bp_code =
=
'D00000041'
||
bp_code =
='D00010001'
||
bp_code=
='D00000026')
{
...
...
@@ -1574,7 +1572,7 @@
var
billing_url =
'${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}'
;
$(billing_ds_id).setQueryUrl(billing_url);
$(billing_ds_id).query();
//不为租赁二手机业务时隐藏资管费相关字段及费率
18083
2023/1/15
//不为租赁二手机业务时隐藏资管费相关字段及费率
18083
2023/1/15
if('${/parameter/@asset_fee_flag}'=='N'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')
.style.display =
'none'
;
...
...
@@ -1584,15 +1582,12 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}
});
//序号自增
add
by
lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add']
=
function
(ds,
record,
config_records,
bp_seq)
{
...
...
@@ -1634,7 +1629,7 @@
record.set('seq_num',
rk_value);
}
//新增时只有二手机供应商银行账号必填
//新增时只有二手机供应商银行账号必填
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
if
(
bp_ds_id =
=
ds.id
&&
bp_ds_id)
{
if('${/parameter/@division}'=='70'
||
'${/parameter/@division}'=='92'){
...
...
@@ -1649,7 +1644,6 @@
record.getField('vender_bank_account_num_n').setRequired(false);
}
}
};
//indexchange事件(grid,attach,gridbox,table)
//
window['${/parameter/@layout_code}_on_layout_dynamic_grid_indexchange']
=
function(ds,
record,
bp_seq)
{
...
...
@@ -1780,6 +1774,10 @@
}
}
//if(vender_count
>
0
&&
vender_count!=1){
//Leaf.showErrorMessage('错误', '只能维护一个供应商!');
//return false;
//}
}
if (current_record.dirty == true) {
...
...
@@ -2213,7 +2211,6 @@
var
secondary_lease =
project_record.get('secondary_lease');
return
true;
};
//附件打包下载
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
View file @
3b3b28d0
...
...
@@ -14,12 +14,13 @@
<a:model-query
fetchAll=
"true"
model=
"zjwfl.ZJWFL1060.zi_wfl_approve_get_submitted"
rootPath=
"approve_history_rp"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_asset_fee_flag"
rootPath=
"asset_fee_path"
></a:model-query>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_division_detail"
rootPath=
"division_detail_path"
></a:model-query>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
$ctx.parameter.division_detail = $ctx.get('/model/division_detail_path/record/@division_detail');
]]>
</s:server-script>
$ctx.parameter.division_detail = $ctx.get('/model/division_detail_path/record/@division_detail');
]]>
</s:server-script>
</a:init-procedure>
<a:view>
<a:link
id=
"${/parameter/@layout_code}lease_number_query_link"
...
...
@@ -118,7 +119,7 @@
});
};
function check_empty(value){
function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true;
}else{
...
...
@@ -127,7 +128,6 @@
}
//add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
...
...
@@ -231,7 +231,7 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list');
//追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价
//追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价
var cal_hd_user_col_v06 = record.get('cal_hd_user_col_v06');
var hd_user_col_v06 = record.get('hd_user_col_v06');
var cal_btb_int_rate = record.get('cal_btb_int_rate');
...
...
@@ -410,6 +410,7 @@
}
}
}
}
}
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
...
...
@@ -419,7 +420,6 @@
var machine_number = lease_item_record.get('machine_number_70');
var machine_number_num = 0;
var secondary_lease = project_record.get('secondary_lease');
if(!bp_rate_flag){
return false;
}
...
...
@@ -642,7 +642,7 @@
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
//控制资管费现金流隐藏
var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_NS', 'prj_quotation');
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(division!='30'
&&
division!='50'){
$(gridId).hideColumn('machine_number_n');
...
...
@@ -705,7 +705,11 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if (record.get('bp_code') == 'C00007065' || record.get('bp_code') == 'C00007066') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70'
&&
division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
...
...
@@ -725,9 +729,9 @@
}
}
}
//现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
//var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06');
//现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
//var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06');
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
...
...
@@ -735,13 +739,13 @@
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
...
...
@@ -752,15 +756,15 @@
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
}
}
}
...
...
@@ -878,7 +882,8 @@
var
billing_url =
'${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}'
;
$(billing_ds_id).setQueryUrl(billing_url);
$(billing_ds_id).query();
//不为租赁二手机业务时隐藏资管费相关字段及费率
18083
2023/1/15
//不为租赁二手机业务时隐藏资管费相关字段及费率
18083
2023/1/15
if('${/parameter/@asset_fee_flag}'=='N'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')
.style.display =
'none'
;
...
...
@@ -888,14 +893,13 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}
})
//序号自增
add
by
lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add']
=
function
(ds,
record,
config_records,
bp_seq)
{
...
...
@@ -937,7 +941,7 @@
record.set('seq_num',
rk_value);
}
//新增时只有二手机供应商银行账号必填
//新增时只有二手机供应商银行账号必填
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
if
(
bp_ds_id =
=
ds.id
&&
bp_ds_id)
{
if(
division=
='70'
||
division=
='92'){
...
...
@@ -1058,11 +1062,11 @@
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
}else
if(record.get('division')
==
'70'
&&
division
!=
''
&&
('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02')){
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
}
}
}
if
(
ds_id =
=
ds.id
&&
ds_id)
{
division=
record.get('division');
...
...
@@ -1152,23 +1156,22 @@
}
//深圳美鹏和hcs显示分公司,其他隐藏
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);
record.getField('branch_code_n').setRequired(false);
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)
&&
bp_code
!==
'D00010001'
&&
bp_code
!==
'D00000009')
{
record.getField('branch_code').setRequired(false);
record.getField('branch_code_n').setRequired(false);
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
credit_record =
$(ds_id).getCurrentRecord();
if(!Ext.isEmpty(create_bp_code)){
if(
create_bp_code =
=
'D00000029'
||
create_bp_code =
=
'D00000026'
||
create_bp_code =
=
'D00000030'
||
create_bp_code =
=
'D00000031'){
if('${/parameter/@editable_flag}'
==
'Y'
||
'${/parameter/@editable_flag}'
==
'YE'){
credit_record.getField('credit_line').setReadOnly(false);
...
...
@@ -1193,9 +1196,11 @@
}
}else
if('${/parameter/@editable_flag}'
!=
'YE'
&&
division
!=
'93'){
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
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'
;
}
if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save')
.style.display =
"none"
;
}
...
...
@@ -1236,16 +1241,15 @@
//record.set('int_rate_display',
'');
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
//隐藏组件
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
}else{
record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true);
//显示组件
//显示组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'block'
;
}
...
...
@@ -1318,7 +1322,7 @@
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
}
//云南铁拳隐藏承租人保证金字段
18083
2023/5/24
//云南铁拳隐藏承租人保证金字段
18083
2023/5/24
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
...
...
@@ -1374,6 +1378,7 @@
if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save')
.style.display =
"none"
;
}
}
};
if('${/parameter/@editable_flag}'
==
'Y'
||
'${/parameter/@editable_flag}'
==
'YE'){
...
...
@@ -1427,7 +1432,7 @@
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if('${/parameter/@asset_fee_flag}'=='Y'){
...
...
@@ -1442,18 +1447,18 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}
else
{
}
else
{
//显示组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'block'
;
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
...
...
@@ -1463,7 +1468,6 @@
}
}
//选择承租人带出开票信息
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
prj_project_history_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_HISTORY_INGO',
'hls_bp_master');
...
...
@@ -1744,7 +1748,6 @@
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
};
//附件打包下载
window['${/parameter/@layout_code}_ACY_USER_BUTTON1_layout_dynamic_tab_click'] = function () {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment