Commit f445ec04 authored by gzj34291's avatar gzj34291

合同签约地校验

parent cc51bb10
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -605,6 +605,22 @@
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
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');
if(tenant_ds_id == ds.id&&tenant_ds_id){
if(name == 'send_message_n'){
if(value=='是'){
record.getField('cell_phone').setRequired(true);
} else if(value=='否'){
record.getField('cell_phone').setRequired(false);
}
}
}
if (lease_item_ds_id == ds.id && lease_item_ds_id) {
if(division=='70'){
record.getField('lease_name_n').setRequired(true);
......@@ -882,11 +898,11 @@
/* 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();*/
$(bp_ds_ids).query(); */
if(lease_item_ds_id == ds.id &&lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(division=='70'&&division!=''){
debugger;
//debugger;
if(record!=''){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
......@@ -945,8 +961,28 @@
return eval(strJs);
}
var division='';
//新增和加载时调用(form)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
// debugger;
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', '是');
record.getField('cell_phone').setRequired(true);
} else if( record.get('send_message') == 'YES'){
record.getField('cell_phone').setRequired(true);
}
if (Leaf.isEmpty(record.get('cell_phone'))){
record.set('cell_phone', record.get('phone_number'));
}
}
var 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');
if (ds_id == ds.id && ds_id) {
......@@ -957,6 +993,10 @@
record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id_n').setRequired(false);
}
//新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (record.get('pay_method') == 'CCB_THREE') {
......@@ -1026,7 +1066,7 @@
record.getField('branch_code_n').setRequired(false);
}
//获取员工类型
debugger;
//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();
......@@ -1617,9 +1657,10 @@
return false;
}
if (record.get('signing_city')){
var reg = /^([\u2E80-\u9FFF]){4,}$/;
// var reg = /^([\u2E80-\u9FFF]){4,}$/;
var reg = /^(.){4,}$/;
if (!reg.test(record.get('signing_city'))) {
$L.showErrorMessage('提示', '合同签订地请输入**市**区!');
$L.showErrorMessage('', '建议格式:“xx市xx区”(也可填写详细地址)!');
return false;
}
}
......
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