Commit fb9a6e70 authored by 陆正友's avatar 陆正友

农行回单修改

parent 950d4255
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
to_char(a.bank_receipt_date, 'yyyy-MM-dd') bank_receipt_date_r, to_char(a.bank_receipt_date, 'yyyy-MM-dd') bank_receipt_date_r,
a.payer_number payer_number_r, a.payer_number payer_number_r,
a.payer_name payer_name_r, a.payer_name payer_name_r,
a.bank_name bank_name_r, a.payer_bank bank_name_r,
a.total_amount total_amount_r a.total_amount total_amount_r
FROM hlcm_ele_trx_import_itfc hc, hlcm_ele_abc_bank_slip_trx a FROM hlcm_ele_trx_import_itfc hc, hlcm_ele_abc_bank_slip_trx a
where hc.create_trx_flag = 'Y' where hc.create_trx_flag = 'Y'
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
hx.receipt_no, hx.receipt_no,
hx.payer_name, hx.payer_name,
hx.payer_number, hx.payer_number,
hx.bank_name, hx.payer_bank,
(case (case
when (select count(bp_name) when (select count(bp_name)
from hls_bp_master from hls_bp_master
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
NULL AS bank_receipt_date_r, NULL AS bank_receipt_date_r,
NULL AS payer_number_r, NULL AS payer_number_r,
NULL AS payer_name_r, NULL AS payer_name_r,
NULL AS bank_name_r, NULL AS payer_bank_r,
NULL AS total_amount_r, NULL AS total_amount_r,
COALESCE((SELECT v.code_value_name COALESCE((SELECT v.code_value_name
FROM sys_code_values_v v, FROM sys_code_values_v v,
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
hx.receipt_no, hx.receipt_no,
hx.payer_name, hx.payer_name,
hx.payer_number, hx.payer_number,
hx.bank_name, hx.payer_bank,
(case (case
when (select count(bp_name) when (select count(bp_name)
from hls_bp_master from hls_bp_master
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
to_char(a.bank_receipt_date, 'yyyy-MM-dd') bank_receipt_date_r, to_char(a.bank_receipt_date, 'yyyy-MM-dd') bank_receipt_date_r,
a.payer_number payer_number_r, a.payer_number payer_number_r,
a.payer_name payer_name_r, a.payer_name payer_name_r,
a.bank_name bank_name_r, a.bank_name payer_bank_r,
a.total_amount total_amount_r, a.total_amount total_amount_r,
COALESCE((SELECT v.code_value_name COALESCE((SELECT v.code_value_name
FROM sys_code_values_v v, FROM sys_code_values_v v,
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
}); });
function returnAbc() { function returnAbc() {
// 刷新页面 // 刷新页面
$("OcrQueryDs").query(); $("OcrQueryDs").query();
...@@ -48,15 +47,17 @@ ...@@ -48,15 +47,17 @@
$("OcrQueryDs").query(); $("OcrQueryDs").query();
$("AbcBankDs").query(); $("AbcBankDs").query();
} }
// 背景渲染农行回单 // 背景渲染农行回单
function change_background_color(record) { function change_background_color(record) {
if (record.get('re_flag') == 'Y') { if (record.get('re_flag') == 'Y') {
return 'background-color:#DC143C;' return 'background-color:#DC143C;'
} }
} }
// 字段渲染农行回单 // 字段渲染农行回单
function checkOcrRender(value, record, name) { function checkOcrRender(value, record, name) {
if (record.get('re_flag') == 'Y') { if (record.get('re_flag') == 'Y' && !Ext.isEmpty(value)) {
var name_r = name + '_r'; var name_r = name + '_r';
var value_r = record.get(name_r);//OCR数据 var value_r = record.get(name_r);//OCR数据
if (value != value_r) { if (value != value_r) {
...@@ -77,6 +78,7 @@ ...@@ -77,6 +78,7 @@
} }
} }
} else { } else {
if (!Ext.isEmpty(value)) {
if (name == 'total_amount') { if (name == 'total_amount') {
return '<font color="black">' + Leaf.formatMoney(value) + '</font>' return '<font color="black">' + Leaf.formatMoney(value) + '</font>'
} else if (name == 'bank_receipt_date') { } else if (name == 'bank_receipt_date') {
...@@ -85,6 +87,8 @@ ...@@ -85,6 +87,8 @@
return '<font color="black">' + value + '</font>' return '<font color="black">' + value + '</font>'
} }
} }
}
} }
// 保存按钮 // 保存按钮
...@@ -128,6 +132,7 @@ ...@@ -128,6 +132,7 @@
}); });
} }
} }
// function btn001_renderer_button_authority_detail(value, record, name) { // function btn001_renderer_button_authority_detail(value, record, name) {
// if (record.isNew==true){ // if (record.isNew==true){
// return Leaf.showMessage('提示', '请至少选择一条数据!'); // return Leaf.showMessage('提示', '请至少选择一条数据!');
...@@ -135,7 +140,7 @@ ...@@ -135,7 +140,7 @@
// } // }
// 提交按钮 // 提交按钮
function agricultural_bank_submit( ro) { function agricultural_bank_submit(ro) {
var orc_save = $('AbcBankDs').getSelected(); var orc_save = $('AbcBankDs').getSelected();
var abc_save = $('OcrQueryDs').getSelected(); var abc_save = $('OcrQueryDs').getSelected();
var param = {}; var param = {};
...@@ -171,8 +176,8 @@ ...@@ -171,8 +176,8 @@
recode = orc_save[i]; recode = orc_save[i];
} }
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.request({ Leaf.request({
url: $('csh_abc_import_transaction_link').getUrl(), url: $('csh_abc_import_transaction_link').getUrl(),
para: { para: {
...@@ -185,12 +190,12 @@ ...@@ -185,12 +190,12 @@
}); });
$('AbcBankDs').query(); $('AbcBankDs').query();
$("OcrQueryDs").query(); $("OcrQueryDs").query();
returnBack(); //returnBack();
}, },
scope: this scope: this
}); });
}); });
}else { } else {
Leaf.request({ Leaf.request({
url: $('csh_abc_import_transaction_link').getUrl(), url: $('csh_abc_import_transaction_link').getUrl(),
para: { para: {
...@@ -203,7 +208,7 @@ ...@@ -203,7 +208,7 @@
}); });
$('AbcBankDs').query(); $('AbcBankDs').query();
$("OcrQueryDs").query(); $("OcrQueryDs").query();
returnBack(); // returnBack();
}, },
scope: this scope: this
}); });
...@@ -302,18 +307,24 @@ ...@@ -302,18 +307,24 @@
<a:tabs> <a:tabs>
<a:tab prompt="OCR数据" width="110"> <a:tab prompt="OCR数据" width="110">
<a:grid id="ocr" bindTarget="OcrQueryDs" marginHeight="200" marginWidth="80" navBar="true" rowRenderer="change_background_color"> <a:grid id="ocr" bindTarget="OcrQueryDs" marginHeight="200" marginWidth="80" navBar="true"
rowRenderer="change_background_color">
<a:columns> <a:columns>
<a:column name="bank_num" prompt="收款账号" width="150" align="center" renderer="checkOcrRender"/> <a:column name="bank_num" prompt="收款账号" width="150" align="center"
renderer="checkOcrRender"/>
<a:column name="bank_receipt_date" prompt="交易时间" width="100" align="center" <a:column name="bank_receipt_date" prompt="交易时间" width="100" align="center"
renderer="checkOcrRender"/> renderer="checkOcrRender"/>
<a:column name="receipt_no" prompt="回单编号" width="80" align="left"/> <a:column name="receipt_no" prompt="回单编号" width="80" align="left"/>
<a:column name="payer_number" prompt="付款方账号" width="100" align="center" renderer="checkOcrRender"/> <a:column name="payer_number" prompt="付款方账号" width="100" align="center"
<a:column name="payer_name" prompt="付款方户名" width="100" align="left" renderer="checkOcrRender"/> renderer="checkOcrRender"/>
<a:column name="bank_name" prompt="付款方开户行" width="100" align="left" renderer="checkOcrRender"/> <a:column name="payer_name" prompt="付款方户名" width="100" align="left"
renderer="checkOcrRender"/>
<a:column name="payer_bank" prompt="付款方开户行" width="100" align="left"
renderer="checkOcrRender"/>
<a:column name="bp_name" prompt="收款对象" width="100" align="left"/> <a:column name="bp_name" prompt="收款对象" width="100" align="left"/>
<a:column name="paid_byother_flag_desc" prompt="是否代付" width="70" align="center"/> <a:column name="paid_byother_flag_desc" prompt="是否代付" width="70" align="center"/>
<a:column name="total_amount" prompt="金额" width="100" align="right" renderer="checkOcrRender"/> <a:column name="total_amount" prompt="金额" width="100" align="right"
renderer="checkOcrRender"/>
<a:column name="zy" prompt="摘要" width="80" align="center"/> <a:column name="zy" prompt="摘要" width="80" align="center"/>
<a:column name="collection_classes_desc" prompt="款项分类" width="90" align="center"/> <a:column name="collection_classes_desc" prompt="款项分类" width="90" align="center"/>
<a:column name="remark" prompt="附言" width="80" align="center"/> <a:column name="remark" prompt="附言" width="80" align="center"/>
...@@ -332,13 +343,15 @@ ...@@ -332,13 +343,15 @@
<a:column name="bank_receipt_date" prompt="交易时间" width="100" <a:column name="bank_receipt_date" prompt="交易时间" width="100"
renderer="checkOcrRender" align="center"/> renderer="checkOcrRender" align="center"/>
<a:column name="receipt_no" prompt="日志号" width="80" align="left"/> <a:column name="receipt_no" prompt="日志号" width="80" align="left"/>
<a:column name="payer_number" prompt="对方账号" width="100" align="center" renderer="checkOcrRender"/> <a:column name="payer_number" prompt="对方账号" width="100" align="center"
renderer="checkOcrRender"/>
<a:column name="payer_name" prompt="对方账号户名" width="100" align="left" <a:column name="payer_name" prompt="对方账号户名" width="100" align="left"
renderer="checkOcrRender" renderer="checkOcrRender"
required="true"/> required="true"/>
<a:column name="bank_name" prompt="对方银行名称" width="100" align="left" <a:column name="bank_name" prompt="对方银行名称" width="100" align="left"
renderer="checkOcrRender"/> renderer="checkOcrRender"/>
<a:column name="beneficiary_name" prompt="收款对象" width="100" editor="grid_lov" align="left"/> <a:column name="beneficiary_name" prompt="收款对象" width="100" editor="grid_lov"
align="left"/>
<a:column name="paid_byother_flag_desc" prompt="是否代付" width="70" editor="grid_cb" <a:column name="paid_byother_flag_desc" prompt="是否代付" width="70" editor="grid_cb"
required="true" required="true"
align="center"/> align="center"/>
......
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