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