Commit 08a7721b authored by 25484's avatar 25484

[fix]代理店创建修改

parent 0fe8a0e0
...@@ -115,13 +115,21 @@ ...@@ -115,13 +115,21 @@
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function(ds, record) { window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function(ds, record) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var agent_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_agent_division');
var head_record = $(ds_id).getCurrentRecord(); var head_record = $(ds_id).getCurrentRecord();
var record_agent =$(agent_id).getAll();
var check_flag = false; var check_flag = false;
//判断简称是否是三位字母大写 //判断简称是否是三位字母大写
var english_name= head_record.get('english_name'); var english_name= head_record.get('english_name');
var patrn = /^[A-Z]{3}$/; var patrn = /^[A-Z]{3}$/;
//对统一社会信用代码和身份生进行校验 //对统一社会信用代码和身份生进行校验
if(record_agent.length == 0){
Leaf.showMessage('${l:PROMPT}', '必须维护租赁物信息且每种租赁物只能维护一次!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}else{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
if(patrn.test(english_name)==false){ if(patrn.test(english_name)==false){
$L.showErrorMessage('错误','代理店代码为三位大写字母!',null,null); $L.showErrorMessage('错误','代理店代码为三位大写字母!',null,null);
......
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