Commit da2338a7 authored by 18083's avatar 18083

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

parent 0de3bd1d
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<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
'ENTERPRISE_CREDIT_KJ_E','ENTERPRISE_CREDIT',
'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
where cf.con_ele_signer_id = cs.con_ele_signer_id
......
......@@ -217,7 +217,7 @@
return;
}
//代理店北京慧珠不支持打印纸质合同文本
if(bp_id_agent_code=='D00010031'){
if(bp_id_agent_code=='D00010031'||bp_id_agent_code=='D00010021'){
Leaf.showErrorMessage('提示','当前合同不支持打印纸质合同文本!');
return;
}
......
......@@ -865,7 +865,8 @@
//加载时调用(grid,table,gridBox) add by 23459
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
if(ds.id == lease_item_ds_id&&lease_item_ds_id){
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP_1', 'con_contract_bp');
if(ds.id == lease_item_ds_id&&lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70'){
$(gridId).hideColumn('full_name');
......@@ -891,6 +892,14 @@
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n');
}
}
if (ds.id == bp_ds_id && bp_ds_id){
//非二手机及北京心诚业务隐藏银行账号字段
if(record.data.division!='70' && record.data.division!='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
$(gridBpId).hideColumn('vender_bank_account_num_n');
}
}
var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_1', 'con_contract_cashflow');
if(ds.id == cashflow_ds_id&&cashflow_ds_id){
......@@ -970,7 +979,6 @@
/*Leaf.onReady(init);
function init() {
debugger;
//用户对应员工不是员工 就不显示该附件组件
if("${/model/employee_info/record/@employee_type_code}" != 'STAFF'){
document.getElementById('${/parameter/@layout_code}_C_ATTCH_2_con_contract_grid_id_wrap').style.display = 'none';
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -708,7 +708,25 @@
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 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 (name == 'hd_user_col_v06') {
if('${/parameter/@asset_fee_flag}'=='Y'){
......@@ -1055,7 +1073,7 @@
$(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}');
$(bp_ds_ids).query();*/
if(lease_item_ds_id == ds.id &&lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
var gridId= ds.bindname+'_layout_grid_id';
if(division!='30' && division!='50'&& division!='99'){
$(gridId).hideColumn('machine_number_n');
}
......@@ -1114,6 +1132,25 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70' &&division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
$(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
if(cashflow_ds_id == ds.id &&cashflow_ds_id){
......@@ -1596,6 +1633,21 @@
var rk_value = seq_num + 1;
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 @@
Leaf.showMessage('提示','承租人的居住地址不能为空');
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) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
......@@ -1735,6 +1798,12 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
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') {
var project_number = current_record.get('project_number');
Leaf.request({
......@@ -1777,7 +1846,7 @@
}
}
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
Leaf.showConfirm('${HLS.PROMPT}',promt, function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('prj_approval_link_id').getUrl(),
......@@ -1811,7 +1880,7 @@
});
} else {
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
Leaf.showConfirm('${HLS.PROMPT}',promt, function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('prj_approval_link_id').getUrl(),
......@@ -1875,7 +1944,7 @@
}
}
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
Leaf.showConfirm('${HLS.PROMPT}',promt, function () {
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
if(division=='30'||division=='50'|| division=='99'){
......@@ -1934,7 +2003,7 @@
});
} else {
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
Leaf.showConfirm('${HLS.PROMPT}',promt, function () {
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
......
......@@ -705,6 +705,25 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70' &&division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
$(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
if(cashflow_ds_id == ds.id &&cashflow_ds_id){
......@@ -917,6 +936,21 @@
var rk_value = seq_num + 1;
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 @@
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 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(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