Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
Project
Project
Details
Activity
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
godwithdh
WX_h5
Commits
0a9de7bf
Commit
0a9de7bf
authored
Apr 21, 2020
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
算金额
parent
5d90df78
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Finance.vue
src/view/tiip/kanban/Finance.vue
+8
-8
No files found.
src/view/tiip/kanban/Finance.vue
View file @
0a9de7bf
...
...
@@ -115,7 +115,7 @@
<span
class=
"iconfont icon-kehuguanli"
/>
<div>
<span>
客户欠款
</span>
<span>
{{
(
balance
.
filter
(
v
=>
v
.
sName
.
indexOf
(
"客户欠款"
)
>=
0
)
||
[{
nAmount
:
0
}
])[
0
].
nAmount
}}
<
/span
>
<span>
{{
computAmount
(
"客户欠款"
)
}}
</span>
<span>
元
</span>
</div>
</div>
...
...
@@ -123,7 +123,7 @@
<span
class=
"iconfont icon-pengyou"
/>
<div>
<span>
供应商欠款
</span>
<
span
>
{{
(
balance
.
filter
(
v
=>
v
.
sName
.
indexOf
(
"供应商欠款"
)
>=
0
)
||
[{
nAmount
:
0
}
])[
0
].
nAmount
}}
<
/span
>
<span>
{{
computAmount
(
"供应商欠款"
)
}}
</span>
<span>
元
</span>
</div>
</div>
...
...
@@ -131,7 +131,7 @@
<span
class=
"iconfont icon-cardCode"
/>
<div>
<span>
银行余额
</span>
<
span
>
{{
(
balance
.
filter
(
v
=>
v
.
sName
.
indexOf
(
"银行余额"
)
>=
0
)
||
[{
nAmount
:
0
}
])[
0
].
nAmount
}}
<
/span
>
<span>
{{
computAmount
(
"银行余额"
)
}}
</span>
<span>
元
</span>
</div>
</div>
...
...
@@ -139,7 +139,7 @@
<span
class=
"iconfont icon-yingfu"
/>
<div>
<span>
现金余额
</span>
<
span
>
{{
(
balance
.
filter
(
v
=>
v
.
sName
.
indexOf
(
"现金余额"
)
>=
0
)
||
[{
nAmount
:
0
}
])[
0
].
nAmount
}}
<
/span
>
<span>
{{
computAmount
(
"现金余额"
)
}}
</span>
<span>
元
</span>
</div>
</div>
...
...
@@ -251,13 +251,13 @@ export default {
more
(
val
,
tabIndex
){
this
.
$router
.
push
({
name
:
"financeDetail"
,
params
:{
mode
:
val
,
tabIndex
:
tabIndex
,
start
:
this
.
start
,
end
:
this
.
end
}})
},
computAmount
(
name
){
return
(
this
.
balance
.
filter
(
v
=>
v
.
sName
.
indexOf
(
name
)
>=
0
)[
0
]
||
{
nAmount
:
0
}).
nAmount
},
},
computed
:{
balanceAmount
(){
var
amount
=
0
this
.
balance
.
forEach
(
v
=>
{
amount
+=
v
.
nAmount
}
)
var
amount
=
(
this
.
computAmount
(
"现金余额"
)
+
this
.
computAmount
(
"银行余额"
)
+
this
.
computAmount
(
"客户欠款"
))
-
this
.
computAmount
(
"供应商欠款"
)
return
amount
.
toLocaleString
();
}
}
...
...
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