Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
35bc3343
Commit
35bc3343
authored
Oct 18, 2019
by
stone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 修复付款申请bug
parent
edb03943
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
16 deletions
+52
-16
csh_payment_req_pay.lwm
...webapp/WEB-INF/classes/csh/CSH502/csh_payment_req_pay.lwm
+1
-0
csh_payment_req.lview
src/main/webapp/modules/csh/CSH501/csh_payment_req.lview
+1
-4
csh_payment_req_pay.lview
src/main/webapp/modules/csh/CSH502/csh_payment_req_pay.lview
+46
-8
csh_transaction_receipt_maintain.lview
...modules/csh/CSH510/csh_transaction_receipt_maintain.lview
+2
-2
csh_transaction_receipt.lview
...n/webapp/modules/csh/CSH511/csh_transaction_receipt.lview
+1
-1
csh_amount_return.lview
src/main/webapp/modules/csh/CSH515/csh_amount_return.lview
+1
-1
No files found.
src/main/webapp/WEB-INF/classes/csh/CSH502/csh_payment_req_pay.lwm
View file @
35bc3343
...
...
@@ -38,6 +38,7 @@
p_this_pay_agent_amount=>nvl(${@this_pay_agent_amount},0),
p_this_pay_vender_amount=>nvl(${@this_pay_vender_amount},0),
p_merge_flag =>nvl(${@merge_flag},'N'),
p_bp_category =>${@bp_category},
p_due_amount =>nvl(${@due_amount},0));
end;]]>
</bm:update-sql>
</bm:operation>
...
...
src/main/webapp/modules/csh/CSH501/csh_payment_req.lview
View file @
35bc3343
...
...
@@ -724,10 +724,7 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return
false;
}
console.log(amount_agent);
console.log(amount_vender);
console.log(other_payment2);
console.log(due_amount);
if(plus(plus(amount_agent,amount_vender),other_payment2)!=due_amount){
$L.showErrorMessage("提示",'应付我司金额,委托付款金额和首付款抵充金额之后应等于应付金额!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
...
...
src/main/webapp/modules/csh/CSH502/csh_payment_req_pay.lview
View file @
35bc3343
...
...
@@ -49,6 +49,16 @@
var residual_agent_amount=record.get('residual_agent_amount');
var residual_vender_amount=record.get('residual_vender_amount');
var pay_amount=plus(this_pay_agent_amount,this_pay_vender_amount);
var identify_category='';
if(this_pay_agent_amount!=0&&this_pay_vender_amount!=0){
$L.showErrorMessage("提示",'每个只能选择代理店,厂商中的其中一个进行支付');
return;
}
if(this_pay_agent_amount==0&&this_pay_vender_amount==0){
$L.showErrorMessage("提示",'付款金额不能为空!');
return;
}
record.set('transaction_amount', pay_amount);
//检验手动输入的金额必须小于应付金额
if((this_pay_agent_amount>
residual_agent_amount)||(this_pay_vender_amount>residual_vender_amount)){
...
...
@@ -57,14 +67,26 @@
}
if (record.validateRecord(true)
&&
check_flag){
console.log('${/parameter/@lnds_id}');
ajax_flag = 'Y';
//锁屏
csh502_pay_lock_window();
var param = record.data;
var saveData = [];
var pre_line_records = $('${/parameter/@lnds_id}').getSelected();
for (var i = 0;i
< pre_line_records.length
;i++)
{
var
pre_line_record =
pre_line_records[i];
//由于每次只有代理店或者厂商进行付款,进行判断,银行账号取金额不为0的付款对象,默认为代理店
if(this_pay_vender_amount
>
0) {
var agent_bank_account=pre_line_record.get('vender_bank_account_id');
pre_line_record.set('bp_bank_account_id',agent_bank_account);
identify_category='VENDER';
}else{
pre_line_record.set('bp_category','AGENT');
identify_category='AGENT';
}
pre_line_record.set('_status', 'insert');
pre_line_record.set('type', 'PAYMENT_REQ_PAYMENT');
pre_line_record.set('id', pre_line_record.get('payment_req_ln_id'));
...
...
@@ -87,8 +109,9 @@
param['payment_req_id'] = pre_line_records[0].get('payment_req_id');
param['payment_req_ln_id'] = pre_line_records[0].get('payment_req_ln_id');
param['merge_flag'] = 'N';
param['bp_category'] =identify_category;
param['details'] = saveData;
console.log(param);
Leaf.showConfirm('${l:PROMPT_MESSAGE}', '确定提交?', function okFun() {
Leaf.request({
url: $('csh_payment_req_pay_link_id').getUrl(),
...
...
@@ -553,6 +576,21 @@
//
}
/*console.log('${/parameter}');*/
//
var
lnds=
'${/parameter/@lnds_id}'
;
//根据前面的是代理店还是厂商,来判断此次可以手动输入的是代理店还是厂商
var
pre_line_records =
$('${/parameter/@lnds_id}').getSelected();
var
pre_line_record=
pre_line_records[0];
//代理店不为空
if(pre_line_record.get('bp_bank_account_id')==undefined){
$('agent_num').hide();
$('agent_id').hide();
$('bank_account_ds').hideColumn('this_pay_agent_amount');
}
if(pre_line_record.get('vender_bank_account_id')==undefined){
$('vender_id').hide();
$('vender_num').hide();
$('bank_account_ds').hideColumn('this_pay_vender_amount');
}
var
date =
new
Date();
if
('${/parameter/@loan_date}')
{
r_date =
(('${/parameter/@loan_date}').match(/\d{4}.\d{1,2}.\d{1,2}/mg).toString()).replace(/[^0-9]/mg,
'-');
...
...
@@ -665,14 +703,14 @@
<a:map
from=
"bank_branch_name"
to=
"bank_branch_name"
/>
</a:mapping>
</a:field>
<a:field
name=
"bp_bank_account_code"
autoComplete=
"true"
autoCompleteField=
"bank_account_num"
lovGridHeight=
"350"
lovHeight=
"550"
lovLabelWidth=
"90"
lovService=
"basic.hls_bp_master_bank_account_v_for_lov?enabled_flag=Y&bp_enabled_flag=Y"
lovWidth=
"580"
title=
"CSH511.BANK_ACCOUNT_CODE"
>
<!--
<a:field name="bp_bank_account_code" autoComplete="true" autoCompleteField="bank_account_num" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="basic.hls_bp_master_bank_account_v_for_lov?enabled_flag=Y&bp_enabled_flag=Y" lovWidth="580" title="CSH511.BANK_ACCOUNT_CODE">
<a:mapping>
<a:map from="bank_account_id" to="bp_bank_account_id"/>
<a:map from="bank_account_num" to="bp_bank_account_num"/>
<a:map from="bank_account_name" to="bp_bank_account_name"/>
<a:map from="bank_account_code" to="bp_bank_account_code"/>
</a:mapping>
</a:field>
</a:field>
-->
<a:field
name=
"payment_method_display"
defaultValue=
"银行转账"
displayField=
"description"
options=
"payment_method_ds"
returnField=
"payment_method_id"
valueField=
"payment_method_id"
/>
<a:field
name=
"payment_method_id"
defaultValue=
"10"
/>
<a:field
name=
"payment_req_id"
defaultValue=
"${/parameter/@payment_req_id}"
/>
...
...
@@ -700,10 +738,10 @@
<a:form
labelWidth=
"180"
title=
"CSH502.CSH_PAYMENT_REQ_PAY"
>
<a:box
column=
"4"
>
<!-- <a:textField name="bp_name" bindTarget="csh_payment_req_pay_ds" prompt="CSH501.CSH_PAYMENT_OBJ_NAME" readOnly="true" width="150"/>-->
<a:textField
name=
"bp_bank_account_name"
bindTarget=
"csh_payment_req_pay_ds"
prompt=
"付款代理商对象"
readOnly=
"true"
width=
"150"
/>
<a:textField
name=
"bp_bank_account_num"
bindTarget=
"csh_payment_req_pay_ds"
prompt=
"付款代理商账号"
readOnly=
"true"
width=
"150"
/>
<a:textField
name=
"vender_bank_account_id"
bindTarget=
"csh_payment_req_pay_ds"
prompt=
"付款厂商对象"
readOnly=
"true"
width=
"150"
/>
<a:textField
name=
"vender_bank_account_num"
bindTarget=
"csh_payment_req_pay_ds"
prompt=
"付款厂商账号"
readOnly=
"true"
width=
"150"
/>
<a:textField
id=
"agent_num"
name=
"bp_bank_account_name"
bindTarget=
"csh_payment_req_pay_ds"
prompt=
"付款代理商对象"
readOnly=
"true"
width=
"150"
/>
<a:textField
id=
"agent_id"
name=
"bp_bank_account_num"
bindTarget=
"csh_payment_req_pay_ds"
prompt=
"付款代理商账号"
readOnly=
"true"
width=
"150"
/>
<a:textField
id=
"vender_id"
name=
"vender_bank_account_id"
bindTarget=
"csh_payment_req_pay_ds"
prompt=
"付款厂商对象"
readOnly=
"true"
width=
"150"
/>
<a:textField
id=
"vender_num"
name=
"vender_bank_account_num"
bindTarget=
"csh_payment_req_pay_ds"
prompt=
"付款厂商账号"
readOnly=
"true"
width=
"150"
/>
</a:box>
<a:box
column=
"4"
>
<a:textField
name=
"contract_number"
bindTarget=
"csh_payment_req_pay_ds"
prompt=
"合同编号"
readOnly=
"true"
width=
"150"
/>
...
...
src/main/webapp/modules/csh/CSH510/csh_transaction_receipt_maintain.lview
View file @
35bc3343
...
...
@@ -235,9 +235,9 @@
}
function seedetail_transaction_num(value, record, name) {
console.log(record.get('receipt_type'));
/*
console.log(record.get('receipt_type'));
console.log( record.get('bp_name'));
console.log( record.get('confirmed_flag'));
console.log( record.get('confirmed_flag'));
*/
if (record.get('transaction_id')) {
var url;
/*if (record.get('posted_flag') == 'N') {
...
...
src/main/webapp/modules/csh/CSH511/csh_transaction_receipt.lview
View file @
35bc3343
...
...
@@ -25,7 +25,7 @@
var transaction_id='';
//附件上传
function upload_attachment_win() {
console.log(transaction_id)
/* console.log(transaction_id)*/
var flag=true;
if(transaction_id==''){
$L.showInfoMessage("提示",'请先保存数据',null,null);
...
...
src/main/webapp/modules/csh/CSH515/csh_amount_return.lview
View file @
35bc3343
...
...
@@ -32,7 +32,7 @@
//提交按钮
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_transaction_return');
console.log($(ds_id).getAt(0));
/* console.log($(ds_id).getAt(0));*/
var return_id = $(ds_id).getAt(0).get('return_id');
var transaction_amount = $(ds_id).getAt(0).get('transaction_amount');
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment