Commit 3b3b28d0 authored by 38823's avatar 38823

商业伙伴经办人 身份证号唯一性校验

parent e3cab322
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
<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.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source']; $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'); $ctx.parameter.division_detail = $ctx.get('/model/division_detail_path/record/@division_detail');
]]> ]]>
...@@ -87,7 +88,6 @@ ...@@ -87,7 +88,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_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/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')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
...@@ -97,9 +97,7 @@ ...@@ -97,9 +97,7 @@
$('${/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_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
} }
}); });
function check_empty(value){ function check_empty(value){
...@@ -110,10 +108,7 @@ ...@@ -110,10 +108,7 @@
} }
} }
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var url; var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); 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'); var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
...@@ -151,7 +146,7 @@ ...@@ -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 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(); 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 set_number=current_red.get('set_number');
var total_number=current_red.get('total_number'); var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){ if(total_number!=0 && set_number!=total_number){
...@@ -224,7 +219,7 @@ ...@@ -224,7 +219,7 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); 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 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(); 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 set_number=current_red.get('set_number');
var total_number=current_red.get('total_number'); var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){ if(total_number!=0 && set_number!=total_number){
...@@ -265,7 +260,6 @@ ...@@ -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_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)) { &&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) {
//直接进入报价页面 //直接进入报价页面
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid', id: 'hls_fin_calc_quotation_update_link_winid',
...@@ -294,7 +288,7 @@ ...@@ -294,7 +288,7 @@
$(quotation_ds_id).query(); $(quotation_ds_id).query();
$(history_ds_id).query(); $(history_ds_id).query();
}); });
} else { }else {
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD'); record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
var calc_recreate_L_formula; var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y'; calc_recreate_L_formula = 'Y';
...@@ -500,8 +494,6 @@ ...@@ -500,8 +494,6 @@
var project_id = project_record.get('project_id'); var project_id = project_record.get('project_id');
var machine_number_num = 0; var machine_number_num = 0;
var secondary_lease = project_record.get('secondary_lease'); 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 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(); var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
if (prj_project_ds_id == ds.id && prj_project_ds_id) { if (prj_project_ds_id == ds.id && prj_project_ds_id) {
...@@ -827,6 +819,7 @@ ...@@ -827,6 +819,7 @@
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');
if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id) { 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')){ if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
...@@ -936,6 +929,7 @@ ...@@ -936,6 +929,7 @@
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_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').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') { if (record.get('business_type') == 'LEASEBACK') {
// record.set('payment_deduction', 'DOWN_PAYMENT_DEDUCTION'); // record.set('payment_deduction', 'DOWN_PAYMENT_DEDUCTION');
...@@ -977,6 +971,7 @@ ...@@ -977,6 +971,7 @@
var description = '${/model/description/record/@employee_type_code}'; var description = '${/model/description/record/@employee_type_code}';
var bp_code='${/model/user_agent_description/record/@bp_code}'; var bp_code='${/model/user_agent_description/record/@bp_code}';
var invoice_agent_id=record.get('invoice_agent_id'); var invoice_agent_id=record.get('invoice_agent_id');
if(!Ext.isEmpty(description) && description == 'AGENT'){ if(!Ext.isEmpty(description) && description == 'AGENT'){
if(!Ext.isEmpty(bp_code)){ if(!Ext.isEmpty(bp_code)){
if((division=='80'||division=='30'||division=='50'||division=='99') && bp_code !== 'D00010019'){ if((division=='80'||division=='30'||division=='50'||division=='99') && bp_code !== 'D00010019'){
...@@ -1048,11 +1043,13 @@ ...@@ -1048,11 +1043,13 @@
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE').style.display = 'none'; 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) { 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_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 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 quo_rate_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_RATE_N', 'prj_quotation');
...@@ -1097,7 +1094,6 @@ ...@@ -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_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
} 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);
...@@ -1109,12 +1105,10 @@ ...@@ -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_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
} }
} }
} }
} }
} }
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'){
...@@ -1129,7 +1123,7 @@ ...@@ -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'); 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 (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); record.getField('set_number').setRequired(true);
}else{ }else{
record.getField('set_number').setReadOnly(true); record.getField('set_number').setReadOnly(true);
...@@ -1271,25 +1265,27 @@ ...@@ -1271,25 +1265,27 @@
//add by niminmin //add by niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。 //当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if (name == 'secondary_lease') { if (name == 'secondary_lease') {
if (value=='YES') { 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_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').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').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true); record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false); record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false); record.getField('repur_contract_id_n').setReadOnly(false);
}else if(value=='NO'){ } else if (value == 'NO') {
record.getField('repur_contract_id').setRequired(false); record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false); record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true); record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true); record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',null); record.set('repur_contract_id', null);
record.set('repur_contract_id_n',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_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID').style.display = 'none';
} }
} }
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (name=='pay_method') { if (name=='pay_method') {
...@@ -1406,6 +1402,7 @@ ...@@ -1406,6 +1402,7 @@
} }
} }
if (bp_ds_id == ds.id && bp_ds_id) { if (bp_ds_id == ds.id && bp_ds_id) {
if (record.get('bp_category') == 'TENANT') { if (record.get('bp_category') == 'TENANT') {
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);
...@@ -1414,6 +1411,10 @@ ...@@ -1414,6 +1411,10 @@
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 (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'){ if(division !='70' &&division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id'; var gridBpId= ds.bindname+'_layout_grid_id';
...@@ -1473,8 +1474,6 @@ ...@@ -1473,8 +1474,6 @@
} }
} }
}; };
//序号自增 add by lijingjing //序号自增 add by lijingjing
...@@ -1649,6 +1648,10 @@ ...@@ -1649,6 +1648,10 @@
} }
} }
//if(vender_count >0 && vender_count!=1){
//Leaf.showErrorMessage('错误', '只能维护一个供应商!');
//return false;
//}
} }
var promt; var promt;
...@@ -1673,11 +1676,11 @@ ...@@ -1673,11 +1676,11 @@
}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'){
var record=$(lease_ds_id).getCurrentRecord(); var record=$(lease_ds_id).getCurrentRecord();
var records=$(ds_id).getCurrentRecord(); var records=$(ds_id).getCurrentRecord();
var set_number=records.get('set_number'); var set_number=records.get('set_number');
...@@ -1736,7 +1739,7 @@ ...@@ -1736,7 +1739,7 @@
Leaf.showConfirm('${HLS.PROMPT}',promt, 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'){
var record=$(lease_ds_id).getCurrentRecord(); var record=$(lease_ds_id).getCurrentRecord();
var records=$(ds_id).getCurrentRecord(); var records=$(ds_id).getCurrentRecord();
var set_number=records.get('set_number'); var set_number=records.get('set_number');
......
...@@ -17,6 +17,7 @@ ...@@ -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_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" 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_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_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> <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[
...@@ -138,10 +139,8 @@ ...@@ -138,10 +139,8 @@
} }
//add by zhuxianfei //add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var url; var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); 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'); var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
...@@ -298,12 +297,10 @@ ...@@ -298,12 +297,10 @@
if(check_empty(cal_int_rate_display)){ if(check_empty(cal_int_rate_display)){
cal_int_rate_display=0; cal_int_rate_display=0;
} }
if ((cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='N') 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_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)) { &&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) {
//直接进入报价页面 //直接进入报价页面
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid', id: 'hls_fin_calc_quotation_update_link_winid',
...@@ -745,7 +742,6 @@ ...@@ -745,7 +742,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_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
} 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);
...@@ -761,7 +757,6 @@ ...@@ -761,7 +757,6 @@
} }
} }
} }
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'){
...@@ -1113,7 +1108,7 @@ ...@@ -1113,7 +1108,7 @@
$(gridId).hideColumn('created_by_n'); $(gridId).hideColumn('created_by_n');
} }
if (lease_item_ds_id == ds.id && lease_item_ds_id) { 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); record.getField('set_number').setRequired(true);
}else{ }else{
record.getField('set_number').setReadOnly(true); record.getField('set_number').setReadOnly(true);
...@@ -1124,6 +1119,7 @@ ...@@ -1124,6 +1119,7 @@
} }
} }
if (bp_ds_id == ds.id && bp_ds_id) { if (bp_ds_id == ds.id && bp_ds_id) {
debugger;
if (record.get('bp_category') == 'TENANT') { if (record.get('bp_category') == 'TENANT') {
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);
...@@ -1132,6 +1128,10 @@ ...@@ -1132,6 +1128,10 @@
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 (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'){ if(division !='70' &&division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id'; var gridBpId= ds.bindname+'_layout_grid_id';
...@@ -1191,8 +1191,6 @@ ...@@ -1191,8 +1191,6 @@
} }
} }
}; };
function arrToObject(arr) { function arrToObject(arr) {
...@@ -1206,7 +1204,6 @@ ...@@ -1206,7 +1204,6 @@
} }
var division=''; var division='';
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) { 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(tenant_ds_id == ds.id){
...@@ -1339,20 +1336,20 @@ ...@@ -1339,20 +1336,20 @@
var invoice_agent_id=record.get('invoice_agent_id'); var invoice_agent_id=record.get('invoice_agent_id');
//博雷顿展示 授信额度占用 字段 //博雷顿展示 授信额度占用 字段
if(division !='93') { if(division !='93') {
if(!Ext.isEmpty(description) && description == 'AGENT'){ if (!Ext.isEmpty(description) && description == 'AGENT') {
if(!Ext.isEmpty(bp_code)){ if (!Ext.isEmpty(bp_code)) {
if((division=='80'||division=='30'||division=='50'|| division=='99') && bp_code !== 'D00010019'){ if ((division == '80' || division == '30' || division == '50' || division == '99') && bp_code !== 'D00010019') {
credit_record.set('credit_line','TENANT'); credit_record.set('credit_line', 'TENANT');
credit_record.set('credit_line_n','承租人'); credit_record.set('credit_line_n', '承租人');
} }
} }
} }
if(!Ext.isEmpty(description) && description == 'AGENT'){ if (!Ext.isEmpty(description) && description == 'AGENT') {
if(!Ext.isEmpty(bp_code)){ if (!Ext.isEmpty(bp_code)) {
if(bp_code !== 'D00000026' && bp_code !== 'D00000029' && bp_code !== 'D00000030' && bp_code !== 'D00000031'){ if (bp_code !== 'D00000026' && bp_code !== 'D00000029' && bp_code !== 'D00000030' && bp_code !== 'D00000031') {
if(bp_code =='X00010005' || bp_code =='J00010006'){ if (bp_code == 'X00010005' || bp_code == 'J00010006') {
credit_record.set('credit_line','TENANT'); credit_record.set('credit_line', 'TENANT');
credit_record.set('credit_line_n','承租人'); credit_record.set('credit_line_n', '承租人');
credit_record.getField('credit_line').setReadOnly(true); credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true); credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false); credit_record.getField('credit_line').setRequired(false);
...@@ -1392,6 +1389,7 @@ ...@@ -1392,6 +1389,7 @@
record.getField('asset_id').setRequired(false); record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false); record.getField('asset_id_n').setRequired(false);
}else{ }else{
if (check_empty(record.get('hd_user_col_v06'))||record.get('hd_user_col_v06')=='N' ) { 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', null);
...@@ -1588,11 +1586,8 @@ ...@@ -1588,11 +1586,8 @@
$('${/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_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee'); $('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
} }
} }
}); });
//序号自增 add by lijingjing //序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
...@@ -1649,7 +1644,6 @@ ...@@ -1649,7 +1644,6 @@
record.getField('vender_bank_account_num_n').setRequired(false); record.getField('vender_bank_account_num_n').setRequired(false);
} }
} }
}; };
//indexchange事件(grid,attach,gridbox,table) //indexchange事件(grid,attach,gridbox,table)
// window['${/parameter/@layout_code}_on_layout_dynamic_grid_indexchange'] = function(ds, record, bp_seq) { // window['${/parameter/@layout_code}_on_layout_dynamic_grid_indexchange'] = function(ds, record, bp_seq) {
...@@ -1780,6 +1774,10 @@ ...@@ -1780,6 +1774,10 @@
} }
} }
//if(vender_count >0 && vender_count!=1){
//Leaf.showErrorMessage('错误', '只能维护一个供应商!');
//return false;
//}
} }
if (current_record.dirty == true) { if (current_record.dirty == true) {
...@@ -2213,7 +2211,6 @@ ...@@ -2213,7 +2211,6 @@
var secondary_lease = project_record.get('secondary_lease'); var secondary_lease = project_record.get('secondary_lease');
return true; return true;
}; };
//附件打包下载 //附件打包下载
......
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
$ctx.parameter.tomcat_source = con_print_path['tomcat_source']; $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'); $ctx.parameter.division_detail = $ctx.get('/model/division_detail_path/record/@division_detail');
]]></s:server-script> ]]>
</s:server-script>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="${/parameter/@layout_code}lease_number_query_link" <a:link id="${/parameter/@layout_code}lease_number_query_link"
...@@ -127,7 +128,6 @@ ...@@ -127,7 +128,6 @@
} }
//add by zhuxianfei //add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
...@@ -410,6 +410,7 @@ ...@@ -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'); 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 @@ ...@@ -419,7 +420,6 @@
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var machine_number_num = 0; var machine_number_num = 0;
var secondary_lease = project_record.get('secondary_lease'); var secondary_lease = project_record.get('secondary_lease');
if(!bp_rate_flag){ if(!bp_rate_flag){
return false; return false;
} }
...@@ -705,6 +705,10 @@ ...@@ -705,6 +705,10 @@
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 (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'){ if(division !='70' &&division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id'; var gridBpId= ds.bindname+'_layout_grid_id';
...@@ -878,6 +882,7 @@ ...@@ -878,6 +882,7 @@
var billing_url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}'; 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).setQueryUrl(billing_url);
$(billing_ds_id).query(); $(billing_ds_id).query();
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15 //不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
if('${/parameter/@asset_fee_flag}'=='N'){ if('${/parameter/@asset_fee_flag}'=='N'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){ if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
...@@ -895,7 +900,6 @@ ...@@ -895,7 +900,6 @@
} }
}) })
//序号自增 add by lijingjing //序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
...@@ -1168,7 +1172,6 @@ ...@@ -1168,7 +1172,6 @@
var create_bp_code = '${/model/approve_history_rp/record/@bp_code}'; var create_bp_code = '${/model/approve_history_rp/record/@bp_code}';
var credit_record = $(ds_id).getCurrentRecord(); var credit_record = $(ds_id).getCurrentRecord();
if(!Ext.isEmpty(create_bp_code)){ if(!Ext.isEmpty(create_bp_code)){
if(create_bp_code == 'D00000029' || create_bp_code == 'D00000026' || create_bp_code == 'D00000030' || create_bp_code == 'D00000031'){ 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'){ if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){
credit_record.getField('credit_line').setReadOnly(false); credit_record.getField('credit_line').setReadOnly(false);
...@@ -1193,9 +1196,11 @@ ...@@ -1193,9 +1196,11 @@
} }
}else if('${/parameter/@editable_flag}' != 'YE' && division != '93'){ }else if('${/parameter/@editable_flag}' != 'YE' && division != '93'){
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){ 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'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
} }
if(document.getElementById('${/parameter/@layout_code}_save')){ if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save').style.display = "none"; document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
} }
...@@ -1241,7 +1246,6 @@ ...@@ -1241,7 +1246,6 @@
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
} }
}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);
...@@ -1374,6 +1378,7 @@ ...@@ -1374,6 +1378,7 @@
if(document.getElementById('${/parameter/@layout_code}_save')){ if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save').style.display = "none"; document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
} }
} }
}; };
if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){ if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){
...@@ -1463,7 +1468,6 @@ ...@@ -1463,7 +1468,6 @@
} }
} }
//选择承租人带出开票信息 //选择承租人带出开票信息
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); 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'); 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 @@ ...@@ -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_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').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 () { window['${/parameter/@layout_code}_ACY_USER_BUTTON1_layout_dynamic_tab_click'] = function () {
......
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