Commit a5a75bf2 authored by 25484's avatar 25484

[fix]商业伙伴修改

parent a63926fa
...@@ -587,7 +587,19 @@ ...@@ -587,7 +587,19 @@
//自动带出籍贯 //自动带出籍贯
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', '');
}
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))
}
} }
var hls_bp_master_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var hls_bp_master_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
...@@ -611,21 +623,21 @@ ...@@ -611,21 +623,21 @@
} }
} }
if (ds.id == gird_ds_id4 || ds.id == gird_ds_id5) { // if (ds.id == gird_ds_id4 || ds.id == gird_ds_id5) {
if (name == 'id_no_sp') { // if (name == 'id_no_sp') {
if (!value) { // if (!value) {
record.set('ccx_resmsg1', ''); // record.set('ccx_resmsg1', '');
} // }
if(record.get('card_type_sp') == 'ID_CARD'){ // if(record.get('card_type_sp') == 'ID_CARD'){
if (!checkCard(value)) { // if (!checkCard(value)) {
Leaf.showMessage('${l:HLS.PROMPT}','配偶身份证号错误!'); // Leaf.showMessage('${l:HLS.PROMPT}','配偶身份证号错误!');
return false; // return false;
} // }
} // }
// ds.fields.id_no_sp.pro.validator = id_card_no_validate; // // ds.fields.id_no_sp.pro.validator = id_card_no_validate;
record.set('resident_addres_sp', get_native_place(value)) // record.set('resident_addres_sp', get_native_place(value))
} // }
} // }
if(name=='marital_status'){ if(name=='marital_status'){
if(value=='30'){ if(value=='30'){
record.getField('bp_name_sp').setRequired(true); record.getField('bp_name_sp').setRequired(true);
......
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