Commit 99a075a2 authored by 25484's avatar 25484

[fix]商业伙伴自然人创建修改

parent 68201d51
......@@ -363,7 +363,7 @@
//alert('${/parameter/@unbrand}');
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) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var check_flag = false;
......@@ -407,11 +407,11 @@
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// return false;
// }
} else {
Leaf.showMessage('${l:HLS.PROMPT}', '身份证校验未通过,不能保存!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
// } else {
// Leaf.showMessage('${l:HLS.PROMPT}', '身份证校验未通过,不能保存!');
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// return false;
// }
} else {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var check_flag = false;
......@@ -518,11 +518,13 @@
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 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');
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 (name == 'relationship_with_bp') {
if (value == 'A7501') {
......@@ -558,12 +560,6 @@
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') {
// record = $(hls_bp_master_ds_id).getCurrentRecord();
// var id_num = record.get('id_card_no');
......@@ -572,19 +568,22 @@
if (!value) {
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))
}
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 (!value) {
record.set('ccx_resmsg1', '');
......@@ -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))
}
}
};
......
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