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
99a075a2
Commit
99a075a2
authored
Nov 13, 2019
by
25484
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]商业伙伴自然人创建修改
parent
68201d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
21 deletions
+38
-21
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+38
-21
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
99a075a2
...
@@ -363,7 +363,7 @@
...
@@ -363,7 +363,7 @@
//alert('${/parameter/@unbrand}');
//alert('${/parameter/@unbrand}');
if (bp_class == 'NP') {
if (bp_class == 'NP') {
if (card_identity_flag == 'N' || sp_identity_flag == 'N') {
//
if (card_identity_flag == 'N' || sp_identity_flag == 'N') {
//if (regax.test(extra_nam) && extra_nam.length == 3) {
//if (regax.test(extra_nam) && extra_nam.length == 3) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var check_flag = false;
var check_flag = false;
...
@@ -407,11 +407,11 @@
...
@@ -407,11 +407,11 @@
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// return false;
// return false;
// }
// }
} else {
//
} else {
Leaf.showMessage('${l:HLS.PROMPT}', '身份证校验未通过,不能保存!');
//
Leaf.showMessage('${l:HLS.PROMPT}', '身份证校验未通过,不能保存!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
//
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
//
return false;
}
//
}
} else {
} else {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var check_flag = false;
var check_flag = false;
...
@@ -518,11 +518,13 @@
...
@@ -518,11 +518,13 @@
scope: this
scope: this
});
});
}; */
}; */
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) {
debugger;
var f_bp_create_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var f_bp_create_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var gird_ds_id = 'BP_NP_CREATE_BP_ASSETS01_hls_bp_assets_ds';
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_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');
var gird_ds_id3 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_bank_flow');
var gird_ds_id4 = 'BP_NP_CREATE_F_SPOUSE_1_hls_bp_master_ds';
var gird_ds_id5 = 'BP_NP_CREATE_F_SPOUSE_hls_bp_master_ds';
if (gird_ds_id == ds.id || gird_ds_id2 == ds.id) {
if (gird_ds_id == ds.id || gird_ds_id2 == ds.id) {
if (name == 'relationship_with_bp') {
if (name == 'relationship_with_bp') {
if (value == 'A7501') {
if (value == 'A7501') {
...
@@ -558,12 +560,6 @@
...
@@ -558,12 +560,6 @@
record.getField('parent_id_n').setReadOnly(true);
record.getField('parent_id_n').setReadOnly(true);
}
}
}
}
}
var hls_bp_master_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if (ds.id == hls_bp_master_ds_id && hls_bp_master_ds_id) {
//
if (name == 'id_card_no') {
if (name == 'id_card_no') {
// record = $(hls_bp_master_ds_id).getCurrentRecord();
// record = $(hls_bp_master_ds_id).getCurrentRecord();
// var id_num = record.get('id_card_no');
// var id_num = record.get('id_card_no');
...
@@ -572,19 +568,22 @@
...
@@ -572,19 +568,22 @@
if (!value) {
if (!value) {
record.set('ccx_resmsg', '');
record.set('ccx_resmsg', '');
}
}
ds.fields.id_card_no.pro.validator = id_card_no_validate;
if(record.get('id_type') == 'ID_CARD'){
if (!checkCard(value)) {
Leaf.showMessage('${l:HLS.PROMPT}','个人身份证号错误!');
return false;
}
}
// ds.fields.id_card_no.pro.validator = id_card_no_validate;
//自动带出籍贯
//自动带出籍贯
record.set('resident_addres', get_native_place(value))
record.set('resident_addres', get_native_place(value))
}
}
if (name == 'id_no_sp') {
}
if (!value) {
record.set('ccx_resmsg1', '');
}
ds.fields.id_no_sp.pro.validator = id_card_no_validate;
record.set('resident_addres_sp', get_native_place(value))
}
var hls_bp_master_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if (ds.id == hls_bp_master_ds_id && hls_bp_master_ds_id) {
if (name == 'id_card_no_leg') {
if (name == 'id_card_no_leg') {
if (!value) {
if (!value) {
record.set('ccx_resmsg1', '');
record.set('ccx_resmsg1', '');
...
@@ -597,6 +596,24 @@
...
@@ -597,6 +596,24 @@
}
}
}
}
if (ds.id == gird_ds_id4 || ds.id == gird_ds_id5) {
if (name == 'id_no_sp') {
if (!value) {
record.set('ccx_resmsg1', '');
}
if(record.get('card_type_sp') == 'ID_CARD'){
if (!checkCard(value)) {
Leaf.showMessage('${l:HLS.PROMPT}','配偶身份证号错误!');
return false;
}
}
// ds.fields.id_no_sp.pro.validator = id_card_no_validate;
record.set('resident_addres_sp', get_native_place(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