Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
f445ec04
Commit
f445ec04
authored
Mar 07, 2022
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同签约地校验
parent
cc51bb10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
8 deletions
+49
-8
con_contract_modify.lview
...main/webapp/modules/cont/CON505/con_contract_modify.lview
+1
-1
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+48
-7
No files found.
src/main/webapp/modules/cont/CON505/con_contract_modify.lview
View file @
f445ec04
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
f445ec04
...
@@ -605,6 +605,22 @@
...
@@ -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
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
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');
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
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='70'){
if(
division=
='70'){
record.getField('lease_name_n').setRequired(true);
record.getField('lease_name_n').setRequired(true);
...
@@ -880,13 +896,13 @@
...
@@ -880,13 +896,13 @@
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP', 'prj_project_bp');
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP', 'prj_project_bp');
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 bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp');
/* 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).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=='70'
&&
division!=''){
if(division=='70'
&&
division!=''){
debugger;
//
debugger;
if(record!=''){
if(record!=''){
record.getField('lease_name_n').setRequired(true);
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('brand_value').setRequired(true);
...
@@ -945,8 +961,28 @@
...
@@ -945,8 +961,28 @@
return
eval(strJs);
return
eval(strJs);
}
}
var
division=
''
;
var
division=
''
;
//新增和加载时调用(form)
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)
{
//
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
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');
if
(
ds_id =
=
ds.id
&&
ds_id)
{
if
(
ds_id =
=
ds.id
&&
ds_id)
{
...
@@ -957,6 +993,10 @@
...
@@ -957,6 +993,10 @@
record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id_n').setRequired(false);
record.getField('bank_account_id_n').setRequired(false);
}
}
//新增
“限制金额”字段;
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if
(record.get('pay_method')
==
'CCB_THREE')
{
if
(record.get('pay_method')
==
'CCB_THREE')
{
...
@@ -1026,7 +1066,7 @@
...
@@ -1026,7 +1066,7 @@
record.getField('branch_code_n').setRequired(false);
record.getField('branch_code_n').setRequired(false);
}
}
//获取员工类型
//获取员工类型
debugger;
//
debugger;
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
credit_record =
$(ds_id).getCurrentRecord();
var
credit_record =
$(ds_id).getCurrentRecord();
...
@@ -1617,9 +1657,10 @@
...
@@ -1617,9 +1657,10 @@
return
false;
return
false;
}
}
if
(record.get('signing_city')){
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')))
{
if
(!reg.test(record.get('signing_city')))
{
$L.showErrorMessage('
提示',
'合同签订地请输入**市**区
!');
$L.showErrorMessage('
',
'建议格式:“xx市xx区”(也可填写详细地址)
!');
return
false;
return
false;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment