Commit 6b21ef8c authored by 王炜's avatar 王炜

资管费涉及报价单调整权限显隐调整以及相关代码review修复20240119

parent 701228f1
......@@ -79,6 +79,7 @@
<bm:query-field field="display_flag" queryExpression="d.display_flag=${@display_flag}"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter enforceOperations="query" expression=" ((d.column_name not in('BTB_INTEREST','BTB_FEE') and nvl((select h.hd_user_col_v06 from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id}),'N')!='Y') OR nvl((select h.hd_user_col_v06 from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id}),'N')='Y')"></bm:data-filter>
<bm:data-filter name="query" expression="(d.price_list =nvl(${@price_list},(select h.price_list from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id})) and d.layout_area_seq = &apos;L&apos; and lower(d.column_name)=nvl(${@column_name},lower(d.column_name)) and d.price_list=p.price_list)"/>
</bm:data-filters>
</bm:model>
......@@ -111,5 +111,6 @@
</bm:query-fields>
<bm:data-filters>
<bm:data-filter enforceOperations="query" expression="(t.layout_area_seq = &apos;H&apos; and t.price_list=p.price_list and t.price_list = nvl(${@price_list},(select h.price_list from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id})))"/>
<bm:data-filter enforceOperations="query" expression=" ((t.column_name not in('BTB_INT_RATE') and nvl((select h.hd_user_col_v06 from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id}),'N')!='Y') OR nvl((select h.hd_user_col_v06 from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id}),'N')='Y')"></bm:data-filter>
</bm:data-filters>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="true">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
Select nvl((SELECT 'Y'
from dual
where ${/parameter/@project_id} is null
and exists
(select 1
from asset_management_fee t,
hls_bp_master_agent_division d
where t.bp_id = ${/parameter/@invoice_agent_id}
and d.agent_division_id = t.agent_division_id
and d.division = ${/parameter/@division}
AND t.wfl_status = 'APPROVED')
union
select 'Y'
from dual
where ${/parameter/@project_id} is not null
and exists
(select 1
from asset_management_fee t,
hls_bp_master_agent_division d,
prj_project p
where t.bp_id = p.INVOICE_AGENT_ID
and d.agent_division_id = t.agent_division_id
and d.division = p.division
AND t.wfl_status = 'APPROVED'
and p.project_id = ${/parameter/@project_id})),
'N') asset_fee_flag
from dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -9,7 +9,11 @@
<bm:operations>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
declare
v_int_rate_display prj_quotation.int_rate_display%type;
begin
select decode(${@hd_user_col_v06},'Y',${@int_rate_display},null) into
v_int_rate_display from dual;
prj_quotation_pkg.insert_prj_quotation(
p_quotation_id=>${@quotation_id},
p_document_category=>${@document_category},
......@@ -49,7 +53,11 @@
p_ref_d02=>to_date(${@ref_d02},'yyyy-mm-dd hh24:mi:ss'),
p_ref_d03=>to_date(${@ref_d03},'yyyy-mm-dd hh24:mi:ss'),
p_ref_d04=>to_date(${@ref_d04},'yyyy-mm-dd hh24:mi:ss'),
p_ref_d05=>to_date(${@ref_d05},'yyyy-mm-dd hh24:mi:ss'));
p_ref_d05=>to_date(${@ref_d05},'yyyy-mm-dd hh24:mi:ss'),
p_int_rate_display=>v_int_rate_display,
p_btb_int_rate=>${@btb_int_rate},
p_hd_user_col_v06=>${@hd_user_col_v06}
);
end;
]]></bm:update-sql>
<bm:parameters>
......@@ -59,7 +67,11 @@
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
declare
v_int_rate_display prj_quotation.int_rate_display%type;
begin
select decode(${@hd_user_col_v06},'Y',${@int_rate_display},null) into
v_int_rate_display from dual;
prj_quotation_pkg.update_prj_quotation(
p_quotation_id=>${@quotation_id},
p_document_category=>${@document_category},
......@@ -100,7 +112,10 @@
p_ref_d03=>to_date(${@ref_d03},'yyyy-mm-dd hh24:mi:ss'),
p_ref_d04=>to_date(${@ref_d04},'yyyy-mm-dd hh24:mi:ss'),
p_ref_d05=>to_date(${@ref_d05},'yyyy-mm-dd hh24:mi:ss'),
p_btb_int_rate=>${@btb_int_rate});
p_int_rate_display=>v_int_rate_display,
p_btb_int_rate=>${@btb_int_rate},
p_hd_user_col_v06=>${@hd_user_col_v06}
);
end;
]]></bm:update-sql>
<bm:parameters>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-4-17 上午09:26:12
$Revision: 1.0
$Purpose:
$Author: gaoyang
$Date: 2013-4-17 上午09:26:12
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:c="leaf.application.action" xmlns:s="leaf.plugin.script" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" customizationEnabled="true" trace="true">
<a:init-procedure participants="leaf.service.exception.ExceptionHandler">
......@@ -19,13 +19,13 @@
<p:set field="/parameter/@dynamic_base_table" value="null"/>
<a:model-query defaultwhereclause="(d.layout_area_seq = &apos;H&apos;)" fetchAll="true" model="hls.HLS500N.hls_parameter_value_lov_load_n" rootPath="hd_parameter_sql_value"/>
<a:model-query defaultwhereclause="(d.layout_area_seq = &apos;L&apos;)" fetchAll="true" model="hls.HLS500N.hls_parameter_value_lov_load_n" rootPath="ln_parameter_sql_value"/>
<a:model-query defaultWhereClause="cc.division = hd.division and cc.contract_id=${/parameter/@document_id}" model="hls.HLS500N.check_con_record_date" rootPath="full_elec_sign"/>
<p:exception-handles>
<p:catch Exception="*">
<p:action name="HandleException"/>
<p:action name="CreateErrorResponse"/>
</p:catch>
</p:exception-handles>
<a:model-query defaultWhereClause="cc.division = hd.division and cc.contract_id=${/parameter/@document_id}" model="hls.HLS500N.check_con_record_date" rootPath="full_elec_sign"/>
</a:init-procedure>
<a:view>
<!-- <a:link id="hls_parameter_value_lov_link" url="${/request/@context_path}/modules/hls/HLS500/hls_parameter_value_lov.lview"/> -->
......@@ -58,19 +58,19 @@
margin-left:3px;
}
.item-slideBar{
top:10px;
width:600px;
height:30px;
border:1px solid #009900;
background-color:#CCFBD5;
color:#009900;
font-weight:bold;
font-size:12px;
text-align:center;
line-height:20px;
white-space :nowrap;
position:absolute;
}
top:10px;
width:600px;
height:30px;
border:1px solid #009900;
background-color:#CCFBD5;
color:#009900;
font-weight:bold;
font-size:12px;
text-align:center;
line-height:20px;
white-space :nowrap;
position:absolute;
}
.item-slideBar .inner{
width: 600px;
max-width: 500px;
......@@ -102,7 +102,7 @@
hd_calc_orign_value = [],
ln_calc_formula_orign_value = [],
ln_calc_orign_value = [];
var is_constru_unit = '${/parameter/@is_constru_unit}' || 'N';
Leaf.Masker.mask(document.documentElement, '${l:HLS.LOADING}');
function hls_hls500_3JD() {
......@@ -172,12 +172,12 @@
var cc = div((H16 + H97), (H99 + H102 - H16));
// alert(div((H16+H97), (H99+H102-H16)).toFixed(2) * 1);
var show = down_payment_rate_new * 100;
// if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
// if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
// unlock_calc_current_window();
// Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
// return false;
//}
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new && is_constru_unit != 'Y') {
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new && is_constru_unit != 'Y') {
if ('${/parameter/@division}'==91){
Leaf.SideBar.show({
......@@ -340,11 +340,11 @@
function hls_hls500_re_calc() {
if('${/parameter/@layout_code}'=='CCR_BEFORE_SIGN'){
Leaf.showMessage('${l:PROMPT}', '签约前变更暂时不支持试算');
return;
Leaf.showMessage('${l:PROMPT}', '签约前变更暂时不支持试算');
return;
}else{
lock_calc_current_window('${l:HLS.CALCULATING}');
hls_hls500_save_new(calc_execute, 'RE_CALC');
lock_calc_current_window('${l:HLS.CALCULATING}');
hls_hls500_save_new(calc_execute, 'RE_CALC');
}
}
......@@ -395,7 +395,7 @@
final_recreate_H_formula = recreate_H_formula;
final_recreate_L_formula = recreate_L_formula;
}
Leaf.request({
Leaf.request({
url: '${/request/@context_path}/autocrud/hls.HLS500.hls_fin_calculator_calc/update',
para: {
layout_code: '${/parameter/@layout_code}',
......@@ -553,10 +553,11 @@
function parameter_function(record, name) {
var field = record.getField(name),
ds = $('hls_fin_calculator_hd_ds'),
input_mode = record.get('input_mode');
set_field_input_mode(record, field, name, input_mode);
special_editor_function(ds, record, name);
if (record.get('alignment')) {
if (record.get('alignment')) {
Ext.each($('hls_fin_calculator_hd_grid_id').columns, function (c) {
if (c.name == name) {
c.align = record.get('alignment');
......@@ -672,15 +673,16 @@
}
function do_hls500_column_name(record, name) {
var editor_record = $('line_attribute_ds').find('column_name', name),
var editor_record = $('line_attribute_ds').find('column_name', name),
field = record.getField(name),
input_mode = editor_record.get('input_mode');
set_field_input_mode(record, field, name, input_mode);
if('${/parameter/@layout_code}'=='CCR_BEFORE_SIGN'){
if(name='principal_eq_pymt_adj'){
set_field_input_mode(record, field, name, 'READONLY');
}
}
if(name='principal_eq_pymt_adj'){
set_field_input_mode(record, field, name, 'READONLY');
}
}
if (editor_record.get('validation_type') == 'NUMBERFIELD') {
if (editor_record.get('allow_decimal') == 'TRUE') {
field.setPropertity('allowdecimals', true);
......@@ -762,7 +764,7 @@
}
function do_hls500_line_load(ds) {
var lineRecords = ds.getAll();
var lineRecords = ds.getAll();
var attribute_records = $('line_attribute_ds').getAll();
if (!lineRecords) {
return;
......@@ -808,7 +810,7 @@
var count=0;
var error_count=0;
function do_hls500_head_update(ds, record, name, value, old_value) {
function do_hls500_head_update(ds, record, name, value, old_value) {
// if (record.get('column_code') == 'H54' ) {
// var sum=record.get('column_value')-4.75
......@@ -860,46 +862,46 @@
recreate_L_formula = 'N';
}
}
//非全电签约电子合同起租日校验 18083
//非全电签约电子合同起租日校验
if('${/parameter/@layout_code}'=='CCR_BEFORE_SIGN'){
if('${/model/full_elec_sign/record/@full_elec_sign}'!='Y' && '${/model/full_elec_sign/record/@sign_type}'=='ELE_SIGN'){
if (record.get('column_code') == 'H2'){
if(!Ext.isEmpty(record.get('column_value'))){
Leaf.request({
url: $('check_con_lease_start_date_link_id').getUrl(),
para: {
'contract_id': '${/parameter/@document_id}',
'lease_start_date':record.get('column_value')
},
success: function(res) {
error_count = res.result.error_count;
},
failure: function () {
return;
},
error: function () {
return;
},
scope: this,
sync: true
});
//判断起租日
debugger;
if (error_count > 0 && count == 0 ) {
count = count + 1;
$L.showErrorMessage('提示', '变更后起租日期不符合要求,请修改!');
record.set('column_value','');
return false;
}else if (error_count > 0 && count != 0) {
count = 0;
record.set('column_value','');
return false;
}
}
if('${/model/full_elec_sign/record/@full_elec_sign}'!='Y' && '${/model/full_elec_sign/record/@sign_type}'=='ELE_SIGN'){
if (record.get('column_code') == 'H2'){
if(!Ext.isEmpty(record.get('column_value'))){
Leaf.request({
url: $('check_con_lease_start_date_link_id').getUrl(),
para: {
'contract_id': '${/parameter/@document_id}',
'lease_start_date':record.get('column_value')
},
success: function(res) {
error_count = res.result.error_count;
},
failure: function () {
return false;
},
error: function () {
return false;
},
scope: this,
sync: true
});
//判断起租日
if (error_count > 0 && count == 0) {
count = count + 1;
$L.showErrorMessage('提示', '变更后起租日期不符合要求,请修改!');
record.set('column_value','');
return false;
}else if (error_count > 0 && count != 0) {
count = 0;
record.set('column_value','');
return false;
}
}
}
}
}
}
onEditorupdate(ds, record, name, value, old_value);
}
......@@ -1003,7 +1005,7 @@
}
function onEditorHdload(ds) {
var headRecords = ds.getAll();
var headRecords = ds.getAll();
if ('${/parameter/@document_category}' == 'CONTRACT') {
Leaf.request({
url: $('con_check_con_record_link_id').getUrl(),
......@@ -1016,27 +1018,27 @@
if (sign_contract_status == 'SIGN' || sign_contract_status == 'SIGNING' || contract_status == 'NEW' || contract_status == 'INCEPT_RETURN') {
//签约前合同变更才放开部分字段,其他维持原合同起租时租赁日调整逻辑
/*if('${/parameter/@layout_code}'!='CCR_BEFORE_SIGN'){*/
for (var i = 0; i < headRecords.length; i++) {
for (var i = 0; i < headRecords.length; i++) {
var column_name = headRecords[i].get('column_name');
if (column_name != "lease_start_date" && column_name != "contract_inception_date") {
headRecords[i].set('input_mode', 'READONLY');
headRecords[i].set('readonly_input_mode', 'TRUE');
headRecords[i].getField('column_value').setReadOnly(true);
headRecords[i].getField('column_value_c').setReadOnly(true);
}
}
/* }else{
for (var i = 0; i < headRecords.length; i++) {
var column_name = headRecords[i].get('column_name');
if (column_name != "lease_start_date" && column_name != "contract_inception_date") {
if (column_name != "lease_start_date" && column_name != "contract_inception_date"&&column_name != "other_fee"&&column_name != "lease_times"&&column_name != "int_rate_display"
&&column_name != "down_payment"&&column_name != "third_party_deposit"&&column_name != "balloon_ratio") {
headRecords[i].set('input_mode', 'READONLY');
headRecords[i].set('readonly_input_mode', 'TRUE');
headRecords[i].getField('column_value').setReadOnly(true);
headRecords[i].getField('column_value_c').setReadOnly(true);
}
}
/* }else{
for (var i = 0; i < headRecords.length; i++) {
var column_name = headRecords[i].get('column_name');
if (column_name != "lease_start_date" && column_name != "contract_inception_date"&&column_name != "other_fee"&&column_name != "lease_times"&&column_name != "int_rate_display"
&&column_name != "down_payment"&&column_name != "third_party_deposit"&&column_name != "balloon_ratio") {
headRecords[i].set('input_mode', 'READONLY');
headRecords[i].set('readonly_input_mode', 'TRUE');
headRecords[i].getField('column_value').setReadOnly(true);
headRecords[i].getField('column_value_c').setReadOnly(true);
}
}
}*/
}*/
......@@ -1681,15 +1683,15 @@
var dowm_payment = div(H16, plus(H99,H102)).toFixed(2) * 100;
if (dowm_payment < 15) {
if ('${/parameter/@division}'!=91) {
Leaf.showMessage('${l:PROMPT}', '回租首付款比例不低于15%');
unlock_calc_current_window();
return false;
Leaf.showMessage('${l:PROMPT}', '回租首付款比例不低于15%');
unlock_calc_current_window();
return false;
}else{
Leaf.SideBar.show({
//msg: "回租首付款比例不低于15%</br>租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%",
msg: "回租首付款比例不低于15%",
duration: 5000
});
Leaf.SideBar.show({
//msg: "回租首付款比例不低于15%</br>租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%",
msg: "回租首付款比例不低于15%",
duration: 5000
});
}
}
}
......@@ -1711,43 +1713,43 @@
var price_list = res.result.price_list;
var down_payment_rate_new = res.result.down_payment_rate_new;
if ('${/parameter/@document_category}' == 'PROJECT' && '${/parameter/@business_type}' == 'LEASE') {
if ((price_list == 'HL_PRICR_E' || price_list == 'HL_PRICR_TEST' || price_list == 'HL_PRICR_NTEST' || price_list == 'HL_PRICR_EN') && secondary_lease == 'NO') {
//比例=(H16+H97)/(H99+H102-H16)
var H16, H97, H99, H102;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0; i < temp_head_records.length; i++) {
if (temp_head_records[i].get('column_code') == 'H16') {
H16 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H97') {
H97 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H99') {
H99 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H102') {
H102 = temp_head_records[i].get('column_value') || 0
if ((price_list == 'HL_PRICR_E' || price_list == 'HL_PRICR_TEST' || price_list == 'HL_PRICR_NTEST' || price_list == 'HL_PRICR_EN') && secondary_lease == 'NO') {
//比例=(H16+H97)/(H99+H102-H16)
var H16, H97, H99, H102;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0; i < temp_head_records.length; i++) {
if (temp_head_records[i].get('column_code') == 'H16') {
H16 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H97') {
H97 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H99') {
H99 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H102') {
H102 = temp_head_records[i].get('column_value') || 0
}
}
}
var aa = H16 + H97;
var bb = H99 + H102 - H16;
var cc = div((H16 + H97), (H99 + H102 - H16));
// alert(div((H16+H97), (H99+H102-H16)).toFixed(2) * 1);
var show = down_payment_rate_new * 100;
//if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
// unlock_calc_current_window();
// Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
// return false;
//}
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new && is_constru_unit != 'Y') {
var aa = H16 + H97;
var bb = H99 + H102 - H16;
var cc = div((H16 + H97), (H99 + H102 - H16));
// alert(div((H16+H97), (H99+H102-H16)).toFixed(2) * 1);
var show = down_payment_rate_new * 100;
//if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
// unlock_calc_current_window();
// Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
// return false;
//}
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new && is_constru_unit != 'Y') {
if ('${/parameter/@division}'==91) {
Leaf.SideBar.show({
// msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%</br>租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%',
msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%',
duration: 10000
});
Leaf.SideBar.show({
// msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%</br>租赁期为一年及以内的,利率为6.75%,大于一年的7.3%</br>利率最低值不能低于4.75%',
msg:'首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%',
duration: 10000
});
}
}
}
}
}
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0; i < temp_head_records.length; i++) {
......@@ -1780,7 +1782,7 @@
// temp_head_records[i].set('column_value_c',0);
}
}
}else if( '${/parameter/@business_type}' == 'LEASEBACK'){
}else if( '${/parameter/@business_type}' == 'LEASEBACK'){
if (payment_deduction != 'DOWN_PAYMENT_DEDUCTION') {
if (temp_head_records[i].get('column_code') == 'H109') {
temp_head_records[i].set('column_value', 0);
......@@ -1875,52 +1877,53 @@
});
} else {
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0; i < temp_head_records.length; i++) {
if (!$('temp_hd_attribute_ds').find('column_code', temp_head_records[i].get('column_code'))) {
$('temp_hd_attribute_ds').create(temp_head_records[i].data);
}
var H16;
if (temp_head_records[i].get('column_code') == 'H16') {
H16 = temp_head_records[i].get('column_value');
}
if (temp_head_records[i].get('column_code') == 'H109') {
temp_head_records[i].set('column_value', H16);
// temp_head_records[i].set('column_value_c',0);
} else {
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0; i < temp_head_records.length; i++) {
if (!$('temp_hd_attribute_ds').find('column_code', temp_head_records[i].get('column_code'))) {
$('temp_hd_attribute_ds').create(temp_head_records[i].data);
}
var H16;
if (temp_head_records[i].get('column_code') == 'H16') {
H16 = temp_head_records[i].get('column_value');
}
if (temp_head_records[i].get('column_code') == 'H109') {
temp_head_records[i].set('column_value', H16);
// temp_head_records[i].set('column_value_c',0);
}
}
var all_records = $('temp_hd_attribute_ds').getAll();
var headRecord = $('hls_fin_cal_save_hd_ds').getAt(0);
headRecord.isNew = false;
headRecord.dirty = true;
create_record_column(all_records, headRecord);
function hls_fin_cal_save_hd_submitsuccess_new(ds, res) {
if (typeof (nextStep) == 'function') {
nextStep(source_procedure);
} else {
function on_ln_formula_load(ds) {
Leaf.SideBar.enable = true;
success_sidebar_show();
unlock_calc_current_window();
$('ln_formula_ds').un('load', on_ln_formula_load);
}
$('ln_formula_ds').on('load', on_ln_formula_load);
$('ln_formula_ds').query();
}
}
var all_records = $('temp_hd_attribute_ds').getAll();
var headRecord = $('hls_fin_cal_save_hd_ds').getAt(0);
headRecord.isNew = false;
headRecord.dirty = true;
create_record_column(all_records, headRecord);
function hls_fin_cal_save_hd_submitsuccess_new(ds, res) {
if (typeof (nextStep) == 'function') {
nextStep(source_procedure);
} else {
function on_ln_formula_load(ds) {
Leaf.SideBar.enable = true;
success_sidebar_show();
unlock_calc_current_window();
$('ln_formula_ds').un('load', on_ln_formula_load);
}
$('ln_formula_ds').on('load', on_ln_formula_load);
$('ln_formula_ds').query();
}
}
}
$('hls_fin_cal_save_hd_ds').on('submitsuccess', hls_fin_cal_save_hd_submitsuccess_new);
Leaf.SideBar.enable = false;
Leaf.SideBar.enable = false;
$('hls_fin_cal_save_hd_ds').submit();
}
}
}
function calc_execute_JD_new(source_procedure) {
var final_recreate_H_formula, final_recreate_L_formula;
var final_recreate_H_formula, final_recreate_L_formula;
if (source_procedure == 'RE_CALC') {
final_recreate_H_formula = 'Y';
final_recreate_L_formula = 'Y';
......@@ -1928,7 +1931,7 @@
final_recreate_H_formula = recreate_H_formula;
final_recreate_L_formula = recreate_L_formula;
}
Leaf.request({
Leaf.request({
url: '${/request/@context_path}/autocrud/hls.HLS500.hls_fin_calculator_calc/update',
para: {
calc_session_id: '${/parameter/@calc_session_id}',
......@@ -1959,6 +1962,7 @@
}
function calc_execute_NJD_new(source_procedure) {
var final_recreate_H_formula, final_recreate_L_formula;
if (source_procedure == 'RE_CALC') {
final_recreate_H_formula = 'Y';
......@@ -1966,12 +1970,13 @@
} else {
final_recreate_H_formula = recreate_H_formula;
if('${/parameter/@layout_code}'=='CCR_BEFORE_SIGN'){
final_recreate_L_formula = 'N';
final_recreate_L_formula = 'N';
}else{
final_recreate_L_formula = recreate_L_formula;
final_recreate_L_formula = recreate_L_formula;
}
}
Leaf.request({
Leaf.request({
url: '${/request/@context_path}/autocrud/hls.HLS500.hls_fin_calculator_calc/update',
para: {
calc_session_id: '${/parameter/@calc_session_id}',
......
......@@ -14,11 +14,13 @@
<a:model-query defaultWhereClause="v.role_id = ${/session/@role_id} and v.role_code in (&apos;HAND&apos;,&apos;0017&apos;,&apos;0019&apos;)" model="zjwfl.sys_role_flag" rootPath="role_flag_path"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_description" rootPath="description"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_asset_fee_flag" rootPath="asset_fee_path" ></a:model-query>
<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'];
]]>
</s:server-script>
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
]]></s:server-script>
</a:init-procedure>
<a:view>
<a:link id="${/parameter/@layout_code}lease_prj_create_query_link"
......@@ -63,7 +65,6 @@
url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
<a:link id="check_machine_number_id" model="prj.PRJ501N.project_approval" modelaction="query"/>
<script type="text/javascript"><![CDATA[
// alert('${/parameter/@division}')
//add by zhuxianfei
Leaf.onReady(function() {
if(division!='30' && division!='50'&& division!='99'){
......@@ -71,7 +72,7 @@
$(gridId).hideColumn('machine_number_n');
}
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
if(division!='70'){
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';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06_prompt').style.display = 'none';
......@@ -80,9 +81,21 @@
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{
//新建页面直接隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
}
}
});
function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true;
}else{
return false;
}
}
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
......@@ -208,7 +221,28 @@
var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list');
if (cal_hd_price_list == 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');
var btb_int_rate = record.get('btb_int_rate');
var cal_int_rate_display = record.get('cal_int_rate_display');
var int_rate_display = record.get('int_rate_display');
if(check_empty(cal_hd_user_col_v06)){
cal_hd_user_col_v06='N';
}
if(check_empty(hd_user_col_v06)){
hd_user_col_v06='N';
}
if(check_empty(btb_int_rate)){
btb_int_rate=0;
}
if(check_empty(int_rate_display)){
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({
......@@ -238,7 +272,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';
......@@ -263,6 +297,7 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
document_category: 'PROJECT',
maintain_type: 'MODIFY',
......@@ -468,7 +503,7 @@
}
//神钢建机,新报单的机号与关联的合同机号必须相同
if(division == '91'){
debugger;
var machine_number1 = lease_item_record.get('machine_number');
var machine_number2 = project_record.get('machine_number');
if(typeof(machine_number1) != 'undefined' && typeof(machine_number2) != 'undefined'){
......@@ -787,10 +822,28 @@
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(division != '70'&& division != ''){
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';
}
record.getField('hd_user_col_v06').setRequired(false);
record.getField('hd_user_col_v06_n').setRequired(false);
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);
record.set('asset_id_n', null);
record.set('btb_int_rate', '');
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';
}
}
}
if (division != '70'&&division!='92' && division != '') {
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none';
......@@ -913,7 +966,7 @@
//星邦高空作业车 默认承租人为只读;
//厦门恒立兴、福州恒立兴、三明恒立兴、江西恒立兴 可选为必填;
//其它代理店不展示该字段,默认为代理店;
debugger;
//获取员工类型
var description = '${/model/description/record/@employee_type_code}';
var bp_code='${/model/user_agent_description/record/@bp_code}';
......@@ -974,7 +1027,7 @@
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
debugger;
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');
......@@ -985,26 +1038,27 @@
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if (prj_quotation_ds_id == ds.id) {
if (name == 'hd_user_col_v06') {
if (record.get('hd_user_col_v06') == 'N') {
record.set('asset_id', null);
record.set('asset_id_n', null);
record.set('btb_int_rate', '');
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';
}
}
if('${/parameter/@asset_fee_flag}'=='Y'){
if (value== 'N'||Ext.isEmpty(value)||value==''||typeof(value) == 'undefined' ) {
record.set('asset_id', null);
record.set('asset_id_n', null);
record.set('btb_int_rate', '');
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';
}
}
}
}
}
if(tenant_ds_id == ds.id&&tenant_ds_id){
......
......@@ -37,7 +37,6 @@
return false;
}
if(record.data.division=='92'&&record.data.business_type!='LEASEBACK'){
debugger;
$L.showErrorMessage("提示", '租赁物为北京心诚的业务类型只能是售后回租!');
return false;
}
......
......@@ -18,11 +18,13 @@
<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>
<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'];
]]>
</s:server-script>
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
]]></s:server-script>
</a:init-procedure>
<a:view>
<a:link id="prj501N_prj_lease_item_maintain_link" model="prj.PRJ500N.prj_project_lease_item_delete" modelaction="execute"/>
......@@ -125,6 +127,14 @@
});
};
function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true;
}else{
return false;
}
}
//add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
......@@ -260,7 +270,29 @@
var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list');
if (cal_hd_price_list == 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');
var btb_int_rate = record.get('btb_int_rate');
var cal_int_rate_display = record.get('cal_int_rate_display');
var int_rate_display = record.get('int_rate_display');
if(check_empty(cal_hd_user_col_v06)){
cal_hd_user_col_v06='N';
}
if(check_empty(hd_user_col_v06)){
hd_user_col_v06='N';
}
if(check_empty(btb_int_rate)){
btb_int_rate=0;
}
if(check_empty(int_rate_display)){
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({
......@@ -669,27 +701,28 @@
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if (prj_quotation_ds_id == ds.id) {
if (name == 'hd_user_col_v06') {
if (record.get('hd_user_col_v06') == 'N') {
record.set('asset_id', null);
record.set('asset_id_n', null);
record.set('btb_int_rate', '');
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';
}
}
}
if('${/parameter/@asset_fee_flag}'=='Y'){
if (value== 'N'||Ext.isEmpty(value)||value==''||typeof(value) == 'undefined'||value==null) {
record.set('asset_id', null);
record.set('asset_id_n', null);
record.set('btb_int_rate', '');
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';
}
}
}
}
}
if(tenant_ds_id == ds.id&&tenant_ds_id){
......@@ -1045,7 +1078,6 @@
/* var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp');
$(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}');
$(bp_ds_ids).query();*/
debugger;
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'){
......@@ -1125,7 +1157,6 @@
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){
//debugger;
if (Leaf.isEmpty(record.get('send_message'))){
record.set('send_message', 'YES');
record.set('send_message_n', '是');
......@@ -1275,7 +1306,6 @@
record.getField('branch_code_n').setRequired(false);
}
//获取员工类型
debugger;
var description = '${/model/description/record/@employee_type_code}';
var bp_code='${/model/user_agent_description/record/@bp_code}';
var credit_record = $(ds_id).getCurrentRecord();
......@@ -1321,19 +1351,36 @@
}
}
if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id){
if(division != '70'&& division != ''){
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';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06_prompt').style.display = 'none';
}
//隐藏组件
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/@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';
}
record.getField('hd_user_col_v06').setRequired(false);
record.getField('hd_user_col_v06_n').setRequired(false);
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);
record.set('asset_id_n', null);
record.set('btb_int_rate', '');
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';
}
}
}
if(division!='70'&&division!='92'&&division!=''){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN').style.display = 'none'
......@@ -1452,9 +1499,17 @@
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
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';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06_prompt').style.display = 'none';
}
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
}
}
});
//序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
......@@ -2062,7 +2117,6 @@
}
//神钢建机,新报单的机号与关联的合同机号必须相同
if(division == '91'){
debugger;
var machine_number1 = lease_item_record.get('machine_number');
var machine_number2 = project_record.get('machine_number');
if(typeof(machine_number1) != 'undefined' && typeof(machine_number2) != 'undefined'){
......
......@@ -12,11 +12,13 @@
rootPath="user_name_path"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
<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>
<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'];
]]>
</s:server-script>
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
]]></s:server-script>
</a:init-procedure>
<a:view>
<a:link id="${/parameter/@layout_code}lease_number_query_link"
......@@ -114,6 +116,14 @@
});
};
function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true;
}else{
return false;
}
}
//add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
......@@ -779,6 +789,18 @@
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
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';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06_prompt').style.display = 'none';
}
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
}
}
})
//序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
......@@ -1136,18 +1158,23 @@
}
}
if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id){
if(division != '70'&& division != ''){
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';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06_prompt').style.display = 'none';
}
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
}
record.getField('hd_user_col_v06').setRequired(false);
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
//产品线维护了组合利率的调整加载事件显示
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';
}
}else{
if (check_empty(record.get('hd_user_col_v06'))||record.get('hd_user_col_v06')=='N' ) {
//隐藏组件
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{
//显示组件
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(division!='70'&&division!='92'&&division!=''){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
......@@ -1304,27 +1331,22 @@
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if (prj_quotation_ds_id == ds.id) {
if (name == 'hd_user_col_v06') {
if (record.get('hd_user_col_v06') == 'N') {
record.set('asset_id', null);
record.set('asset_id_n', null);
record.set('btb_int_rate', '');
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';
}
}
}
if('${/parameter/@asset_fee_flag}'=='Y'){
if (value== 'N'||Ext.isEmpty(value)||value==''||typeof(value) == 'undefined'||value==null) {
//隐藏组件
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 {
//显示组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'block';
}
}
}
}
}
//选择承租人带出开票信息
......
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