Commit 00fba136 authored by 25484's avatar 25484

Merge branch 'refs/heads/feature/ap_invoice_import' into develop

parents 912c0232 e1348d69
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
bp_record.getField('agent_name_n').setReadOnly(true); bp_record.getField('agent_name_n').setReadOnly(true);
}else{ }else{
bp_record.getField('agent_name_n').setReadOnly(false); bp_record.getField('agent_name_n').setReadOnly(false);
bp_record.getField('agent_name_n').setRequired(true);
// bp_record.getField('agent_type_n').setRequired(true);
} }
if ('${/parameter/@bp_type}' == 'AGENT') { if ('${/parameter/@bp_type}' == 'AGENT') {
bp_record.getField('agent_type_n').setReadOnly(false); bp_record.getField('agent_type_n').setReadOnly(false);
...@@ -88,6 +90,7 @@ ...@@ -88,6 +90,7 @@
current_record.getField('enabled_flag').setReadOnly(true); current_record.getField('enabled_flag').setReadOnly(true);
}else if(head_record.get('bp_category') == 'VENDER'){ }else if(head_record.get('bp_category') == 'VENDER'){
bp_record.getField('agent_name_n').setReadOnly(true); bp_record.getField('agent_name_n').setReadOnly(true);
bp_record.getField('agent_name_n').setRequired(false);
}else { }else {
current_record.getField('bp_type_n').setReadOnly(true); current_record.getField('bp_type_n').setReadOnly(true);
current_record.getField('enabled_flag').setReadOnly(true); current_record.getField('enabled_flag').setReadOnly(true);
...@@ -332,6 +335,8 @@ ...@@ -332,6 +335,8 @@
// } // }
// }); // });
var social_credit_code_flag;
function CheckSocialCreditCode(Code) { function CheckSocialCreditCode(Code) {
var patrn = /^[0-9A-Z]+$/; var patrn = /^[0-9A-Z]+$/;
//18位校验及大写校验 //18位校验及大写校验
...@@ -430,11 +435,13 @@ ...@@ -430,11 +435,13 @@
// } // }
} else { } else {
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
if (social_credit_code_flag != 'N'){
var check_flag = false; var check_flag = false;
if (head_record.get('bp_code')) { if (head_record.get('bp_code')) {
return true; return true;
} }
Leaf.request({ Leaf.request({
url: $('get_special_fields_link_id').getUrl(), url: $('get_special_fields_link_id').getUrl(),
para: { para: {
...@@ -466,8 +473,13 @@ ...@@ -466,8 +473,13 @@
sync: true, sync: true,
scope: this scope: this
}); });
}
}else {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('提示', '统一社会信用代码有误,请重新输入!');
return false;
}
}
return check_flag; return check_flag;
}; };
...@@ -621,6 +633,7 @@ ...@@ -621,6 +633,7 @@
if(name == 'social_code') { if(name == 'social_code') {
if (!CheckSocialCreditCode(value)) { if (!CheckSocialCreditCode(value)) {
Leaf.showMessage('提示', '统一社会信用代码有误,请重新输入!'); Leaf.showMessage('提示', '统一社会信用代码有误,请重新输入!');
social_credit_code_flag ='N';
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false; 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