Commit 251c8c8e authored by 18083's avatar 18083

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

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