Commit 68201d51 authored by 25484's avatar 25484

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

parent 1bf20599
...@@ -558,13 +558,7 @@ ...@@ -558,13 +558,7 @@
record.getField('parent_id_n').setReadOnly(true); record.getField('parent_id_n').setReadOnly(true);
} }
} }
if (name == 'marital_status') {
if (value == '30') {
record.getField('bp_name_sp').setRequired(true);
// record.getField('card_type_sp').setRequired(true);
record.getField('id_no_sp').setRequired(true);
}
}
} }
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');
...@@ -591,7 +585,16 @@ ...@@ -591,7 +585,16 @@
record.set('resident_addres_sp', get_native_place(value)) record.set('resident_addres_sp', get_native_place(value))
} }
if (name == 'id_card_no_leg') {
if (!value) {
record.set('ccx_resmsg1', '');
}
var id_card_no_leg = record.get('id_card_no_leg');
if (!checkCard(id_card_no_leg)) {
Leaf.showMessage('${l:HLS.PROMPT}','法人代表身份证号格式错误!');
return false;
}
}
} }
......
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