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
5025e22d
Commit
5025e22d
authored
Nov 15, 2019
by
stone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 增加付款条件的控制
parent
479b66dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
csh_payment_req.lview
src/main/webapp/modules/csh/CSH501/csh_payment_req.lview
+18
-2
No files found.
src/main/webapp/modules/csh/CSH501/csh_payment_req.lview
View file @
5025e22d
...
...
@@ -728,12 +728,15 @@
//检验输入的数据是否符合要求
var
check_due_amount_flag=
true;
var
line_datas=
$(ds_line_id).data;
debugger
for(var
i=
0;i<line_datas.length;i++){
var
line_data=
line_datas[i];
//应付我司金额
var
amount_agent=
line_data.get('amount_agent');
var
amount_vender=
line_data.get('amount_vender');
var
due_amount=
line_data.get('due_amount');
var
bp_bank_account_id=
line_data.get('bp_bank_account_id');
var
vender_bank_account_id=
line_data.get('vender_bank_account_id');
//首付款抵充金额
var
other_payment2=
line_data.get('other_payment2');
if(amount_agent<0||amount_vender<0){
...
...
@@ -741,6 +744,19 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return
false;
}
//根据金额判断代理店和厂商不能为空
if(amount_agent
>
0
&&
!vender_bank_account_id){
$L.showErrorMessage("提示",'请选择代理店账号信息!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
if(amount_vender>0
&&
!bp_bank_account_id){
$L.showErrorMessage("提示",'请选择厂商账号信息!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
if(plus(plus(amount_agent,amount_vender),other_payment2)!=due_amount){
$L.showErrorMessage("提示",'应付我司金额,委托付款金额和首付款抵充金额之后应等于应付金额!');
...
...
@@ -773,8 +789,8 @@
//确认保存
var hd_record = $(ds_id).getCurrentRecord();
var payment_req_id = hd_record.get('payment_req_id');
//console.log(
$(ds_id));
//
console.log(
$(ds_line_id));
if (payment_req_id) {
Leaf.request({
...
...
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