Commit 808eb393 authored by 18083's avatar 18083

二手机自然人银企直连改造北京心诚终端合同模板调整

parent c621fdeb
<?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 exists (select 1
from exp_emp_assign_e_v ee,
hls_bp_master h,
hls_bp_master_agent_division hb
where ee.unit_id = h.unit_id
and h.bp_id = hb.bp_id
and h.bp_category = 'AGENT'
and ee.user_id = ${/session/@user_id}
and hb.division in ('70', '92'))),
'N') second_lease_flag
from dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
...@@ -143,8 +143,12 @@ select fa.file_name,fa.file_path,fa.attachment_id ...@@ -143,8 +143,12 @@ select fa.file_name,fa.file_path,fa.attachment_id
'ENTERPRISE_CREDIT_KJ_E','ENTERPRISE_CREDIT', 'ENTERPRISE_CREDIT_KJ_E','ENTERPRISE_CREDIT',
'PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT', 'PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT',
'GUARANTOR_PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT', 'GUARANTOR_PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT',
'ENTERPRISE_CREDIT_MJ_E','ENTERPRISE_CREDIT' 'ENTERPRISE_CREDIT_MJ_E','ENTERPRISE_CREDIT',
--二手机新增付款请求书区分签署人,卖方付款
'CSH_PAYMENT_REQ_TJ_RE','CSH_PAYMENT_REQ_TJ_E',
--'CSH_PAYMENT_REQ_KJ_1_RE','CSH_PAYMENT_REQ_KJ_1_E',
'CSH_PAYMENT_REQ_KJ_1_RE','CSH_PAYMENT_REQ_TJ_E',
'CSH_LEASEBACK_YNTQ_RE','CSH_PAYMENT_REQ_TJ_E'
) )
from con_ele_signer_file cf, con_contract_ele_signer cs from con_ele_signer_file cf, con_contract_ele_signer cs
where cf.con_ele_signer_id = cs.con_ele_signer_id where cf.con_ele_signer_id = cs.con_ele_signer_id
......
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
return; return;
} }
//代理店北京慧珠不支持打印纸质合同文本 //代理店北京慧珠不支持打印纸质合同文本
if(bp_id_agent_code=='D00010038'){ if(bp_id_agent_code=='D00010038'||bp_id_agent_code=='D00010023'){
Leaf.showErrorMessage('提示','当前合同不支持打印纸质合同文本!'); Leaf.showErrorMessage('提示','当前合同不支持打印纸质合同文本!');
return; return;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -775,7 +775,9 @@ ...@@ -775,7 +775,9 @@
bp_id: head_record.get('bp_id') bp_id: head_record.get('bp_id')
}, },
success: function (res) { success: function (res) {
if($(signer_ds_id)){
$(signer_ds_id).query(); $(signer_ds_id).query();
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
failure: function (res) { failure: function (res) {
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: zhangxing5129 $Author: zhangxing5129
$Date: 2014-8-29 下午03:53:38 $Date: 2014-8-29 下午03:53:38
$Revision: 1.0 $Revision: 1.0
$Purpose: 商业伙伴创建 入口界面 $Purpose: 商业伙伴创建 入口界面
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/> <a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="hls.HLS214N.sys_user_lv" rootPath="user_name_path"/> <a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="hls.HLS214N.sys_user_lv" rootPath="user_name_path"/>
<a:model-query defaultWhereClause="t.user_id=${/session/@user_id}" model="hls.HLS214N.sys_division" rootPath="user_division"/>
<a:model-query model="hls.HLS213N.bp_agent_second_lease" rootPath="second_lease_flag"/>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="hls_bp_master_link" url="${/request/@context_path}/modules/hls/HLS213N/hls_bp_master_create.lview"/> <a:link id="hls_bp_master_link" url="${/request/@context_path}/modules/hls/HLS213N/hls_bp_master_create.lview"/>
<a:link id="hls_bp_op_master_link" url="${/request/@context_path}/modules/hls/HLS213N/hls_bp_master_op_create.lview"/>
<a:link id="get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
...@@ -34,12 +37,22 @@ ...@@ -34,12 +37,22 @@
var param=record.data; var param=record.data;
hls_doc_get_layout_code('get_layout_code_link_id',param,'hls_bp_op_master_link',null,'${/parameter/@layout_code}'); hls_doc_get_layout_code('get_layout_code_link_id',param,'hls_bp_op_master_link',null,'${/parameter/@layout_code}');
}else{ }else{
if(record.get('bp_class')=='NP' &&record.get('bp_type')=='VENDER' &&'${/model/second_lease_flag/record/@second_lease_flag}'=='Y'){
record.set('function_code', 'HLS213VE');
record.set('function_usage', 'CREATE');
record.set('default_value_dsid', ds_id);
record.data['url_title'] = '商业伙伴创建';
var param = record.data;
hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}');
}else{
record.set('function_code', 'HLS213D'); record.set('function_code', 'HLS213D');
record.set('function_usage', 'CREATE'); record.set('function_usage', 'CREATE');
record.set('default_value_dsid', ds_id); record.set('default_value_dsid', ds_id);
record.data['url_title'] = '商业伙伴创建'; record.data['url_title'] = '商业伙伴创建';
var param = record.data; var param = record.data;
hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}'); hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}');
}
} }
} }
}; };
...@@ -101,6 +114,9 @@ ...@@ -101,6 +114,9 @@
if("${/model/user_name_path/record/@user_name}"=="DSF001"||"${/model/user_name_path/record/@user_name}"=="DSF002"){ if("${/model/user_name_path/record/@user_name}"=="DSF001"||"${/model/user_name_path/record/@user_name}"=="DSF002"){
r.set('bp_category', 'THIRD_PARTY'); r.set('bp_category', 'THIRD_PARTY');
r.set('bp_category_n', '第三方'); r.set('bp_category_n', '第三方');
}else if("${/model/user_division/record/@division}"=='95'){
r.set('bp_category','RENTER');
r.set('bp_category_n','租赁商');
}else{ }else{
r.set('bp_category', 'TENANT'); r.set('bp_category', 'TENANT');
r.set('bp_category_n', '承租人'); r.set('bp_category_n', '承租人');
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
trace="true"> trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/> <a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/>
<a:model-query fetchAll="true" model="basic.hls_sys_time_default_value" rootPath="default_value"/> <a:model-query fetchAll="true" model="basic.hls_sys_time_default_value" rootPath="default_value"/>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="hls.HLS214N.sys_user_lv" rootPath="user_name_path"/> <a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="hls.HLS214N.sys_user_lv" rootPath="user_name_path"/>
</a:init-procedure> </a:init-procedure>
...@@ -17,8 +17,14 @@ ...@@ -17,8 +17,14 @@
modelaction="update"/> modelaction="update"/>
<a:link id="hls_bp_master_modify_link" <a:link id="hls_bp_master_modify_link"
url="${/request/@context_path}/modules/hls/HLS214N/hls_bp_master_modify.lview"/> url="${/request/@context_path}/modules/hls/HLS214N/hls_bp_master_modify.lview"/>
<a:link id="hls_bp_master_op_modify_link"
url="${/request/@context_path}/modules/hls/HLS214N/hls_bp_master_op_modify.lview"/>
<a:link id="hls_bp_master_op_query_modify_link"
url="${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_op_query.lview"/>
<a:link id="hls_bp_master_req_modify_link" <a:link id="hls_bp_master_req_modify_link"
url="${/request/@context_path}/modules/hls/HLS214N/hls_bp_master_req_modify.lview"/> url="${/request/@context_path}/modules/hls/HLS214N/hls_bp_master_req_modify.lview"/>
<a:link id="hls_bp_master_req_op_modify_link"
url="${/request/@context_path}/modules/hls/HLS214N/hls_bp_master_op_req_modify.lview"/>
<a:link id="Identity_ccx_link" <a:link id="Identity_ccx_link"
url="${/request/@context_path}/modules/interface/INTERFACE_CCX/hlcm_ccxIdentity_interface.lsc"/> url="${/request/@context_path}/modules/interface/INTERFACE_CCX/hlcm_ccxIdentity_interface.lsc"/>
<a:link id="IcInfo_ccx_link" <a:link id="IcInfo_ccx_link"
...@@ -48,13 +54,13 @@ ...@@ -48,13 +54,13 @@
} }
if(record.get('invoice_wfl_status') == 'APPROVING' || record.get('bp_wfl_status') == 'APPROVING'){ if(record.get('invoice_wfl_status') == 'APPROVING' || record.get('bp_wfl_status') == 'APPROVING'){
//审批中调用 //审批中调用
param['function_code'] = 'HLS214BR_Q'; param['function_code'] = 'HLS214BR_Q';
param['bp_class'] = bp_class; param['bp_class'] = bp_class;
param['url_title'] = '开票申请信息'; param['url_title'] = '开票申请信息';
// param['change_req_id'] = res.result.change_req_id; // param['change_req_id'] = res.result.change_req_id;
param['document_id'] = record.get('bp_id'); param['document_id'] = record.get('bp_id');
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
param['query_only'] = 'Y'; param['query_only'] = 'Y';
// window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_billing_link', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_billing_link', ds_id);
// var url = '${/request/@context_path}/autocrud/hls.HLS214N.hls_bp_master_req_create/update'; // var url = '${/request/@context_path}/autocrud/hls.HLS214N.hls_bp_master_req_create/update';
...@@ -101,6 +107,7 @@ ...@@ -101,6 +107,7 @@
success: function (res) { success: function (res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
if (res.result.change_req_id) { if (res.result.change_req_id) {
param['winid'] = 'bp_master_invoice_detail_win'; param['winid'] = 'bp_master_invoice_detail_win';
param['function_code'] = 'HLS214B'; param['function_code'] = 'HLS214B';
param['bp_class'] = bp_class; param['bp_class'] = bp_class;
...@@ -136,13 +143,34 @@ ...@@ -136,13 +143,34 @@
var param = record.data; var param = record.data;
if(record.get('bp_wfl_status') == 'APPROVING' || record.get('invoice_wfl_status') == 'APPROVING'){ if(record.get('bp_wfl_status') == 'APPROVING' || record.get('invoice_wfl_status') == 'APPROVING'){
// 展示原始信息,后续待定 // 展示原始信息,后续待定
param['function_code'] = 'HLS215D'; if(record.get('bp_type')!='RENTER' && record.get('bp_type')!='MAN_FACTURER' && record.get('bp_type')!='ASSET_REGULATOR'){
param['function_usage'] = 'QUERY'; if(record.get('bp_class')=='NP' &&record.get('bp_type')=='VENDER' &&record.get('second_lease_flag')=='Y'){
param['bp_class'] = bp_class; param['function_code'] = 'HLS214VED';
param['cond_para1'] = user_category; param['function_usage'] = 'QUERY';
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}'; param['bp_class'] = bp_class;
param['query_only'] = 'Y'; param['cond_para1'] = user_category;
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_modify_link', ds_id); param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'Y';
var link_id = 'hls_bp_master_modify_link';
}else{
param['function_code'] = 'HLS215D';
param['function_usage'] = 'QUERY';
param['bp_class'] = bp_class;
param['cond_para1'] = user_category;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'Y';
var link_id = 'hls_bp_master_modify_link';
}
}else {
param['function_code'] = 'HLS215D_OP';
param['function_usage'] = 'QUERY';
param['bp_class'] = bp_class;
param['cond_para1'] = user_category;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'Y';
var link_id = 'hls_bp_master_op_query_modify_link';
}
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, link_id, ds_id);
}else if (record.get('invoice_wfl_status') != 'APPROVING' && record.get('bp_wfl_status') != 'APPROVING'){ }else if (record.get('invoice_wfl_status') != 'APPROVING' && record.get('bp_wfl_status') != 'APPROVING'){
if (record.get('bp_type')=='THIRD_PARTY'&&"${/model/role_info/record/@role_code}"!="HAND"&&"${/model/user_name_path/record/@user_name}"!="DSF001"&&"${/model/user_name_path/record/@user_name}"!="DSF002") { if (record.get('bp_type')=='THIRD_PARTY'&&"${/model/role_info/record/@role_code}"!="HAND"&&"${/model/user_name_path/record/@user_name}"!="DSF001"&&"${/model/user_name_path/record/@user_name}"!="DSF002") {
param['function_code'] = 'HLS215D'; param['function_code'] = 'HLS215D';
...@@ -178,7 +206,33 @@ ...@@ -178,7 +206,33 @@
param['delete_flag'] = 'Y'; param['delete_flag'] = 'Y';
// param['layout_debugger_flag']='Y'; // param['layout_debugger_flag']='Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id);
}else{ }else if(record.get('bp_type')=='RENTER' || record.get('bp_type')=='MAN_FACTURER' || record.get('bp_type')=='ASSET_REGULATOR'){
param['function_code'] = 'HLS214F_OP';
param['function_usage'] = 'MODIFY';
param['bp_class'] = bp_class;
param['change_req_id'] = res.result.change_req_id;
param['document_id'] = res.result.change_req_id;
param['cond_para1'] = user_category;
param['bp_name_updated_flag'] = record.get('bp_name_updated_flag');
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'N';
param['delete_flag'] = 'Y';
// param['layout_debugger_flag']='Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_op_modify_link', ds_id);
} else{
if(record.get('bp_class')=='NP' &&record.get('bp_type')=='VENDER' &&record.get('second_lease_flag')=='Y'){
param['function_code'] = 'HLS214VE';
param['function_usage'] = 'MODIFY';
param['bp_class'] = bp_class;
param['change_req_id'] = res.result.change_req_id;
param['document_id'] = res.result.change_req_id;
param['cond_para1'] = user_category;
param['bp_name_updated_flag'] = record.get('bp_name_updated_flag');
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'N';
param['delete_flag'] = 'Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id);
}else{
param['function_code'] = 'HLS214F'; param['function_code'] = 'HLS214F';
param['function_usage'] = 'MODIFY'; param['function_usage'] = 'MODIFY';
param['bp_class'] = bp_class; param['bp_class'] = bp_class;
...@@ -191,8 +245,8 @@ ...@@ -191,8 +245,8 @@
param['delete_flag'] = 'Y'; param['delete_flag'] = 'Y';
// param['layout_debugger_flag']='Y'; // param['layout_debugger_flag']='Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id);
}
} }
} }
}, },
failure: function () { failure: function () {
...@@ -238,7 +292,25 @@ ...@@ -238,7 +292,25 @@
}, },
scope: this scope: this
}); });
}
//经营性租赁
else if(record.get('bp_type')=='RENTER' || record.get('bp_type')=='MAN_FACTURER' || record.get('bp_type')=='ASSET_REGULATOR'){
param['function_code']='HLS214OP';
param['bp_class'] =bp_class;
param['cond_para1'] = user_category;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_op_modify_link', ds_id);
}else{ }else{
if(record.get('bp_class')=='NP' &&record.get('bp_type')=='VENDER' &&record.get('second_lease_flag')=='Y'){
param['function_code'] = 'HLS214VED';
param['function_usage'] = 'MODIFY';
param['bp_class'] = bp_class;
param['cond_para1'] = user_category;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'N';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_modify_link', ds_id);
}else{
param['function_code'] = 'HLS214D'; param['function_code'] = 'HLS214D';
param['function_usage'] = 'MODIFY'; param['function_usage'] = 'MODIFY';
param['bp_class'] = bp_class; param['bp_class'] = bp_class;
...@@ -246,8 +318,8 @@ ...@@ -246,8 +318,8 @@
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}'; param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'N'; param['query_only'] = 'N';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_modify_link', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_modify_link', ds_id);
}
} }
} }
} }
} }
...@@ -388,7 +460,7 @@ ...@@ -388,7 +460,7 @@
}; };
window['${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function (ds, qpara, bp_seq) { window['${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function (ds, qpara, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if(ds==$(ds_id)){ if(ds==$(ds_id)){
aut_authority_list_validate_query(ds, qpara); aut_authority_list_validate_query(ds, qpara);
......
...@@ -1060,7 +1060,25 @@ ...@@ -1060,7 +1060,25 @@
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master'); 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'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
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');
//二手车资管费为否,隐藏组合利率组件及将字段设置为空 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'){
if(name == 'bp_category'){
if(value =='VENDER'){
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
}else{
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
}
}
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if (prj_quotation_ds_id == ds.id) { if (prj_quotation_ds_id == ds.id) {
if (name == 'hd_user_col_v06') { if (name == 'hd_user_col_v06') {
if('${/parameter/@asset_fee_flag}'=='Y'){ if('${/parameter/@asset_fee_flag}'=='Y'){
...@@ -1083,7 +1101,7 @@ ...@@ -1083,7 +1101,7 @@
} else { } else {
record.getField('asset_id').setRequired(true); record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true); record.getField('asset_id_n').setRequired(true);
//展示组件 //隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'block';
} }
...@@ -1396,6 +1414,25 @@ ...@@ -1396,6 +1414,25 @@
record.getField('bp_category_n').setReadOnly(true); record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_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');
$(gridBpId).hideColumn('vender_bank_account_num_n');
}else if(division =='70' ||division =='92'){
if (record.get('bp_category') == 'VENDER') {
record.getField('bp_category_n').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setRequired(true);
}else{
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setRequired(false);
}
}
} }
//现金流列表加载时隐藏资管费 18083 //现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id &&cashflow_ds_id){ if(cashflow_ds_id == ds.id &&cashflow_ds_id){
...@@ -1493,6 +1530,21 @@ ...@@ -1493,6 +1530,21 @@
var rk_value = seq_num + 1; var rk_value = seq_num + 1;
record.set('seq_num', rk_value); 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'){
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
}else{
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
}
} }
}; };
//客户评分 //客户评分
...@@ -1587,12 +1639,24 @@ ...@@ -1587,12 +1639,24 @@
$L.showMessage('提示','承租人的居住地址不能为空'); $L.showMessage('提示','承租人的居住地址不能为空');
return ; return ;
} }
} //二手机产品线合作伙伴维护了供应商则需校验供应商银行信息必填 18083 2024/7/10
var vender_bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP', 'prj_project_bp');
var vender_records =$(vender_bp_ds_id).getAll();
var vender_count = 0;
for(var i=0;i<vender_records.length;i++){
if(vender_records[i].get('bp_category')=='VENDER'){
vender_count = vender_count+1;
}
}
}
var promt;
if((current_record.get('division')=='70' ||current_record.get('division')=='92')&& vender_count>0){
promt ='该笔报单后续将把设备款全部支付给供应商,确认要提交工作流吗?';
}else{
promt ='确认要提交工作流吗?';
}
if (record.get('large_balance') == 'YES') { if (record.get('large_balance') == 'YES') {
var project_number = current_record.get('project_number'); var project_number = current_record.get('project_number');
Leaf.request({ Leaf.request({
...@@ -1669,7 +1733,7 @@ ...@@ -1669,7 +1733,7 @@
}); });
}else { }else {
if ($(ds_id).validate()) { 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 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'); 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'){
...@@ -1770,6 +1834,8 @@ ...@@ -1770,6 +1834,8 @@
$('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('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('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_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');
} }
else { else {
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('machine_number_70'); $('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('machine_number_70');
...@@ -1782,6 +1848,8 @@ ...@@ -1782,6 +1848,8 @@
$('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('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('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_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');
} }
}) })
......
...@@ -708,7 +708,25 @@ ...@@ -708,7 +708,25 @@
var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item'); var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
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');
//二手车资管费为否,隐藏组合利率组件及将字段设置为空 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'){
if(name == 'bp_category'){
if(value =='VENDER'){
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
}else{
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
}
}
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if (prj_quotation_ds_id == ds.id) { if (prj_quotation_ds_id == ds.id) {
if (name == 'hd_user_col_v06') { if (name == 'hd_user_col_v06') {
if('${/parameter/@asset_fee_flag}'=='Y'){ if('${/parameter/@asset_fee_flag}'=='Y'){
...@@ -1055,7 +1073,7 @@ ...@@ -1055,7 +1073,7 @@
$(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}'); $(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}');
$(bp_ds_ids).query();*/ $(bp_ds_ids).query();*/
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'; var gridId= ds.bindname+'_layout_grid_id';
if(division!='30' && division!='50'&& division!='99'){ if(division!='30' && division!='50'&& division!='99'){
$(gridId).hideColumn('machine_number_n'); $(gridId).hideColumn('machine_number_n');
} }
...@@ -1114,6 +1132,25 @@ ...@@ -1114,6 +1132,25 @@
record.getField('bp_category_n').setReadOnly(true); record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_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');
$(gridBpId).hideColumn('vender_bank_account_num_n');
}else if(division =='70' ||division =='92'){
if (record.get('bp_category') == 'VENDER') {
record.getField('bp_category_n').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setRequired(true);
}else{
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setRequired(false);
}
}
} }
//现金流列表加载时隐藏资管费 18083 //现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id &&cashflow_ds_id){ if(cashflow_ds_id == ds.id &&cashflow_ds_id){
...@@ -1596,6 +1633,21 @@ ...@@ -1596,6 +1633,21 @@
var rk_value = seq_num + 1; var rk_value = seq_num + 1;
record.set('seq_num', rk_value); 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'){
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
}else{
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
}
} }
}; };
...@@ -1718,6 +1770,17 @@ ...@@ -1718,6 +1770,17 @@
Leaf.showMessage('提示','承租人的居住地址不能为空'); Leaf.showMessage('提示','承租人的居住地址不能为空');
return ; return ;
} }
//二手机产品线合作伙伴维护了供应商则需校验供应商银行信息必填 18083 2024/7/10
var vender_bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP', 'prj_project_bp');
var vender_records =$(vender_bp_ds_id).getAll();
var vender_count = 0;
for(var i=0;i<vender_records.length;i++){
if(vender_records[i].get('bp_category')=='VENDER'){
vender_count = vender_count+1;
}
}
} }
if (current_record.dirty == true) { if (current_record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
...@@ -1735,6 +1798,12 @@ ...@@ -1735,6 +1798,12 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return; return;
} }
var promt;
if((current_record.get('division')=='70' ||current_record.get('division')=='92')&& vender_count>0){
promt ='该笔报单后续将把设备款全部支付给供应商,确认要提交工作流吗?';
}else{
promt ='确认要提交工作流吗?';
}
if (record.get('large_balance') == 'YES') { if (record.get('large_balance') == 'YES') {
var project_number = current_record.get('project_number'); var project_number = current_record.get('project_number');
Leaf.request({ Leaf.request({
...@@ -1777,7 +1846,7 @@ ...@@ -1777,7 +1846,7 @@
} }
} }
if ($(ds_id).validate()) { if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () { Leaf.showConfirm('${HLS.PROMPT}',promt, function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({ Leaf.request({
url: $('prj_approval_link_id').getUrl(), url: $('prj_approval_link_id').getUrl(),
...@@ -1811,7 +1880,7 @@ ...@@ -1811,7 +1880,7 @@
}); });
} else { } else {
if ($(ds_id).validate()) { if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () { Leaf.showConfirm('${HLS.PROMPT}',promt, function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({ Leaf.request({
url: $('prj_approval_link_id').getUrl(), url: $('prj_approval_link_id').getUrl(),
...@@ -1875,7 +1944,7 @@ ...@@ -1875,7 +1944,7 @@
} }
} }
if ($(ds_id).validate()) { 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 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'); 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'){
...@@ -1934,7 +2003,7 @@ ...@@ -1934,7 +2003,7 @@
}); });
} else { } else {
if ($(ds_id).validate()) { 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 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'); var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
......
...@@ -705,6 +705,25 @@ ...@@ -705,6 +705,25 @@
record.getField('bp_category_n').setReadOnly(true); record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_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');
$(gridBpId).hideColumn('vender_bank_account_num_n');
}else if(division =='70' ||division =='92'){
if (record.get('bp_category') == 'VENDER') {
record.getField('bp_category_n').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setRequired(true);
}else{
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setRequired(false);
}
}
} }
//现金流列表加载时隐藏资管费 18083 //现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id &&cashflow_ds_id){ if(cashflow_ds_id == ds.id &&cashflow_ds_id){
...@@ -917,6 +936,21 @@ ...@@ -917,6 +936,21 @@
var rk_value = seq_num + 1; var rk_value = seq_num + 1;
record.set('seq_num', rk_value); 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'){
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
}else{
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
}
} }
}; };
//客户评分 //客户评分
...@@ -1364,7 +1398,24 @@ ...@@ -1364,7 +1398,24 @@
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');
var prj_quotation_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation'); var prj_quotation_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
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'){
if(name == 'bp_category'){
if(value =='VENDER'){
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
}else{
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
}
}
}
}
if(tenant_ds_id == ds.id&&tenant_ds_id){ if(tenant_ds_id == ds.id&&tenant_ds_id){
if(name == 'send_message_n'){ if(name == 'send_message_n'){
......
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