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
4d95e970
Commit
4d95e970
authored
Aug 15, 2023
by
lizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
征信校验
parent
99b1b7d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
117 additions
and
0 deletions
+117
-0
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+39
-0
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+39
-0
hls_bp_master_req_modify.lview
...webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
+39
-0
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
4d95e970
...
...
@@ -727,6 +727,45 @@
var gird_ds_id = 'BP_NP_CREATE_BP_ASSETS01_hls_bp_assets_ds';
var gird_ds_id2 = 'BP_NP_CREATE_BP_ASSETS04_hls_bp_assets_ds';
var gird_ds_id3 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_bank_flow');
//学历学位校验 add 20230710
if(name=='academic_background'||name=='degrees') {
var academic_background = record.get('academic_background');
var degrees = record.get('degrees');
if(!Ext.isEmpty(academic_background)
&&
!Ext.isEmpty(degrees)){
if ((academic_background == '1'
&&
degrees != '1'
&&
degrees != '2'
&&
degrees != '3') ||
(academic_background == '2'
&&
degrees != '4')||
((academic_background == '3'||academic_background == '4'||academic_background == '5'||academic_background == '6'||academic_background == '7'||academic_background == '8')
&&
(degrees != '5'))){
Leaf.showMessage('提示', '请正确填写学位和学历');
setTimeout(function () {
if(name=='academic_background'){
record.set('degrees', '');
record.set('degrees_n', '');
}else if(name=='degrees'){
record.set('academic_background', '');
record.set('academic_background_n', '');
}
}, 20);
return false;
}
}
}
//许可证有效期校验
if (name == 'due_date') {
var lastday = new Date('2099-12-31');
if (value >lastday) {
Leaf.showMessage('${l:PROMPT}', '营业许可证到期日最大不得超过2099-12-31');
setTimeout(function () {
record.set('due_date', '');
}, 20);
}
}
if (name == 'due_box') {
if (value == 'Y') {
record.set('due_date', '2099-12-31');
}else if(value == 'N'){
record.set('due_date', '');
}
}
//邮编校验 add by 20230619
if(name=='zipcode'|| name=='work_unit_zip') {
value = value.trim();
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
4d95e970
...
...
@@ -535,6 +535,45 @@
var
gird_ds_id =
'BP_NP_MODIFY_N_BP_ASSETS01_hls_bp_assets_ds'
;
var
gird_ds_id2 =
'BP_NP_MODIFY_N_BP_ASSETS04_hls_bp_assets_ds'
;
var
gird_ds_id3 =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_bank_flow');
//学历学位校验
add
20230710
if(
name=
='academic_background'||name=='degrees')
{
var
academic_background =
record.get('academic_background');
var
degrees =
record.get('degrees');
if(!Ext.isEmpty(academic_background)&&
!Ext.isEmpty(degrees)){
if
((
academic_background =
=
'1'
&&
degrees
!=
'1'&&
degrees
!=
'2'&&
degrees
!=
'3')
||
(
academic_background =
=
'2'
&&
degrees
!=
'4')||
((
academic_background =
=
'3'||
academic_background =
=
'4'||
academic_background =
=
'5'||
academic_background =
=
'6'||
academic_background =
=
'7'||
academic_background =
=
'8')
&&
(degrees
!=
'5'))){
Leaf.showMessage('提示',
'请正确填写学位和学历');
setTimeout(function
()
{
if(
name=
='academic_background'){
record.set('degrees',
'');
record.set('degrees_n',
'');
}else
if(
name=
='degrees'){
record.set('academic_background',
'');
record.set('academic_background_n',
'');
}
},
20);
return
false;
}
}
}
//许可证有效期校验
if
(
name =
=
'due_date')
{
var
lastday =
new
Date('2099-12-31');
if
(value
>
lastday) {
Leaf.showMessage('${l:PROMPT}', '营业许可证到期日最大不得超过2099-12-31');
setTimeout(function () {
record.set('due_date', '');
}, 20);
}
}
if (name == 'due_box') {
if (value == 'Y') {
record.set('due_date', '2099-12-31');
}else if(value == 'N'){
record.set('due_date', '');
}
}
//邮编校验 add by 20230619
if(name=='zipcode'|| name=='work_unit_zip') {
value = value.trim();
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
View file @
4d95e970
...
...
@@ -574,6 +574,45 @@
var gird_ds_id = 'BP_NP_MODIFY_N_BP_ASSETS01_hls_bp_assets_ds';
var gird_ds_id2 = 'BP_NP_MODIFY_N_BP_ASSETS04_hls_bp_assets_ds';
var gird_ds_id3 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_bank_flow');
//学历学位校验 add 20230710
if(name=='academic_background'||name=='degrees') {
var academic_background = record.get('academic_background');
var degrees = record.get('degrees');
if(!Ext.isEmpty(academic_background)
&&
!Ext.isEmpty(degrees)){
if ((academic_background == '1'
&&
degrees != '1'
&&
degrees != '2'
&&
degrees != '3') ||
(academic_background == '2'
&&
degrees != '4')||
((academic_background == '3'||academic_background == '4'||academic_background == '5'||academic_background == '6'||academic_background == '7'||academic_background == '8')
&&
(degrees != '5'))){
Leaf.showMessage('提示', '请正确填写学位和学历');
setTimeout(function () {
if(name=='academic_background'){
record.set('degrees', '');
record.set('degrees_n', '');
}else if(name=='degrees'){
record.set('academic_background', '');
record.set('academic_background_n', '');
}
}, 20);
return false;
}
}
}
//许可证有效期校验
if (name == 'due_date') {
var lastday = new Date('2099-12-31');
if (value >lastday) {
Leaf.showMessage('${l:PROMPT}', '营业许可证到期日最大不得超过2099-12-31');
setTimeout(function () {
record.set('due_date', '');
}, 20);
}
}
if (name == 'due_box') {
if (value == 'Y') {
record.set('due_date', '2099-12-31');
}else if(value == 'N'){
record.set('due_date', '');
}
}
//邮编校验 add by 20230619
if(name=='zipcode'|| name=='work_unit_zip') {
if (!(/^[0-9]{6}$/.test(value))
&&
value) {
...
...
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