Commit 40ab5495 authored by Spencer Chang's avatar Spencer Chang

[fix] 回款账户校验不能重复

parent 61fe0279
...@@ -186,13 +186,31 @@ ...@@ -186,13 +186,31 @@
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// return; // return;
// } // }
// 回款賬戶變更
if('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY'){
var bank_account_num_s =req_record.get('bank_account_num_s');
var bank_account_num_c =req_record.get('bank_account_num_c');
if(bank_account_num_s == bank_account_num_c){
Leaf.showMessage('警告', '现扣款账号和原扣款账号不能重复!');
return;
}else{
$('${/parameter/@layout_code}_submit_approval').disable(); $('${/parameter/@layout_code}_submit_approval').disable();
$('${/parameter/@layout_code}_save').disable(); $('${/parameter/@layout_code}_save').disable();
if('${/parameter/@layout_code}' == 'CON_CHANGE_MODIFY'){ if ('${/parameter/@layout_code}' == 'CON_CHANGE_MODIFY') {
$('${/parameter/@layout_code}_quote').disable(); $('${/parameter/@layout_code}_quote').disable();
} }
$('${/parameter/@layout_code}_user_button1').disable(); $('${/parameter/@layout_code}_user_button1').disable();
setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con731_submit), 2000); setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con731_submit), 2000);
}
}else {
$('${/parameter/@layout_code}_submit_approval').disable();
$('${/parameter/@layout_code}_save').disable();
if ('${/parameter/@layout_code}' == 'CON_CHANGE_MODIFY') {
$('${/parameter/@layout_code}_quote').disable();
}
$('${/parameter/@layout_code}_user_button1').disable();
setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con731_submit), 2000);
}
} else { } else {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
} }
...@@ -485,7 +503,7 @@ ...@@ -485,7 +503,7 @@
} }
}else if (name == 'description') { }else if (name == 'description') {
if (record.get('important_flag') == 'Y') { if (record.get('important_flag') == 'Y') {
return '<font color="RED">' + value + '</font>'; return '<span style="color: RED; ">' + value + '</span>';
} }
return value; return value;
} }
......
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