Commit 1f83aa42 authored by 38823's avatar 38823

建行代扣显示问题优化二

parent 362abd6a
......@@ -529,6 +529,7 @@
}
function csh511_save_all() {
debugger;
if (checkAmount()) {
var datas = [];
var para = {};
......@@ -543,20 +544,24 @@
para: datas,
success: function(res) {
Leaf.Masker.unmask(Ext.getBody());
var err_sum =0;
var message='';
for(var i=0;i<res.result.record.length;i++){
if(res.result.record[i].p_err_msg !=undefined){
var message='';
message= res.result.record[i].p_err_msg + message;
var e_message = '建行代扣结果未回传 :'+message+',请重新选择需核销的现金流!';
$L.showErrorMessage("提示",e_message,null,800,300);
$('csh531n_write_off_submit_btn_id').enable();
return;
err_sum = err_sum +1;
}
}
Leaf.Masker.unmask(Ext.getBody());
$('csh_transaction_deposit_ds').submit();
$('csh_transaction_advanced_ds').submit();
csh531_submitsuccess();
if(err_sum > 0){
$L.showErrorMessage("提示",e_message,null,800,300);
$('csh531n_write_off_submit_btn_id').enable();
} else {
Leaf.Masker.unmask(Ext.getBody());
$('csh_transaction_deposit_ds').submit();
$('csh_transaction_advanced_ds').submit();
csh531_submitsuccess();
}
},
failure: function() {
Leaf.Masker.unmask(Ext.getBody());
......
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