Commit 251c8c8e authored by 18083's avatar 18083

农行导入自动转预收款优化

parent 235b4dea
......@@ -152,6 +152,7 @@
var saveOrc = [];
if (orc_save.length <= 0) {
Leaf.showMessage('提示', '请至少选择一条数据!');
} else {
for (var i = 0; i < orc_save.length; i++) {
var lineOrc = {};
......@@ -183,6 +184,7 @@
param['AbcOrc'] = saveOrc;
if(recode.get('re_flag')=='N'){
Leaf.showConfirm('特别注意', '日志号, <font color="red">'+recode.get('receipt_no')+'</font>,的单据未匹配到对应回单数据,是否确认提交?', function () {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
url: $('csh_abc_import_transaction_link').getUrl(),
para: {
......@@ -193,14 +195,22 @@
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});
Leaf.Masker.unmask(Ext.getBody());
$('AbcBankDs').query();
$("OcrQueryDs").query();
//returnBack();
},
failure: function (res) {
Leaf.Masker.unmask(Ext.getBody());
},
error: function (res) {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
});
}else {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
url: $('csh_abc_import_transaction_link').getUrl(),
para: {
......@@ -211,10 +221,12 @@
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});
Leaf.Masker.unmask(Ext.getBody());
$('AbcBankDs').query();
$("OcrQueryDs").query();
//returnBack();
},
scope: this
});
}
......@@ -222,7 +234,9 @@
}
if (abc_save.length > 0) {
Leaf.Masker.unmask(Ext.getBody());
Leaf.showMessage('提示', '农行回单OCR页面的单据无法提交!');
}
}
......
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