Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2813f70b
authored
Apr 28, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更改数据显示格式
parent
857efe18
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
91 additions
and
88 deletions
src/router/index.js
src/utils/filter.js
src/views/Bill/index.vue
src/views/Bill/record.vue
src/views/Bill/sociallist.vue
src/views/Bill/socialpayment.vue
src/views/More/detail.vue
src/views/More/index.vue
src/views/OidcCallback.vue
src/views/ServiceFee/detail.vue
src/views/Trusteeship/index.vue
src/router/index.js
View file @
2813f70b
...
...
@@ -21,7 +21,6 @@ const router = new VueRouter({
path
:
"/test"
,
name
:
"test"
,
component
:
()
=>
import
(
"@/views/test.vue"
)
}
],
scrollBehavior
(
to
,
from
,
savedPosition
)
{
...
...
src/utils/filter.js
View file @
2813f70b
...
...
@@ -18,3 +18,16 @@ Vue.filter('y-m-d', (e) => {
return
''
;
}
})
Vue
.
filter
(
'moneyNum'
,
(
e
)
=>
{
e
=
parseFloat
(
e
);
if
(
e
===
0
)
{
return
'0.00'
;
}
if
(
e
)
{
return
e
.
toFixed
(
2
)
}
else
{
return
''
;
}
})
src/views/Bill/index.vue
View file @
2813f70b
...
...
@@ -25,11 +25,11 @@
<div
class=
"header_content"
>
<div
class=
"fund"
>
<span>
账户余额
</span>
<i>
{{
data
.
balance
}}
</i>
<i>
{{
data
.
balance
|
moneyNum
}}
</i>
</div>
<div
class=
"paid"
>
<span>
待付金额
</span>
<i
class=
"paid_color"
>
{{
data
.
waitPay
}}
</i>
<i
class=
"paid_color"
>
{{
data
.
waitPay
|
moneyNum
}}
</i>
</div>
</div>
<div
class=
"header_info"
>
...
...
@@ -53,7 +53,7 @@
</div>
<p>
<span>
托收金额
</span>
<i>
{{
data
.
hosting
.
amount
}}
</i>
<i>
{{
data
.
hosting
.
amount
|
moneyNum
}}
</i>
</p>
</div>
...
...
@@ -66,11 +66,11 @@
</div>
<p>
<span>
应付金额
</span>
<i>
{{
data
.
socical
.
total
}}
</i>
<i>
{{
data
.
socical
.
total
|
moneyNum
}}
</i>
</p>
<p>
<span>
待付金额
</span>
<i>
{{
data
.
socical
.
waitPay
}}
</i>
<i>
{{
data
.
socical
.
waitPay
|
moneyNum
}}
</i>
</p>
</div>
<!--公积金代理 accumulation-->
...
...
@@ -81,11 +81,11 @@
</div>
<p>
<span>
应付金额
</span>
<i>
{{
data
.
fund
.
total
}}
</i>
<i>
{{
data
.
fund
.
total
|
moneyNum
}}
</i>
</p>
<p>
<span>
待付金额
</span>
<i>
{{
data
.
fund
.
waitPay
}}
</i>
<i>
{{
data
.
fund
.
waitPay
|
moneyNum
}}
</i>
</p>
</div>
<!--个税代理 income-->
...
...
@@ -96,11 +96,11 @@
</div>
<p>
<span>
应付金额
</span>
<i>
{{
data
.
tax
.
total
}}
</i>
<i>
{{
data
.
tax
.
total
|
moneyNum
}}
</i>
</p>
<p>
<span>
待付金额
</span>
<i>
{{
data
.
tax
.
waitPay
}}
</i>
<i>
{{
data
.
tax
.
waitPay
|
moneyNum
}}
</i>
</p>
</div>
<!--服务费 service-->
...
...
@@ -111,11 +111,11 @@
</div>
<p>
<span>
应付金额
</span>
<i>
{{
data
.
service
.
total
}}
</i>
<i>
{{
data
.
service
.
total
|
moneyNum
}}
</i>
</p>
<p>
<span>
待付金额
</span>
<i>
{{
data
.
service
.
waitPay
}}
</i>
<i>
{{
data
.
service
.
waitPay
|
moneyNum
}}
</i>
</p>
</div>
<!--会员年费 vip-->
...
...
@@ -126,11 +126,11 @@
</div>
<p>
<span>
应付金额
</span>
<i>
{{
data
.
annual
.
total
}}
</i>
<i>
{{
data
.
annual
.
total
|
moneyNum
}}
</i>
</p>
<p>
<span>
待付金额
</span>
<i>
{{
data
.
annual
.
waitPay
}}
</i>
<i>
{{
data
.
annual
.
waitPay
|
moneyNum
}}
</i>
</p>
</div>
<!--其他事务办理 general-->
...
...
@@ -141,11 +141,11 @@
</div>
<p>
<span>
应付金额
</span>
<i>
{{
data
.
other
.
total
}}
</i>
<i>
{{
data
.
other
.
total
|
moneyNum
}}
</i>
</p>
<p>
<span>
待付金额
</span>
<i>
{{
data
.
other
.
waitPay
}}
</i>
<i>
{{
data
.
other
.
waitPay
|
moneyNum
}}
</i>
</p>
</div>
</div>
...
...
@@ -155,7 +155,6 @@
</
template
>
<
script
>
import
{
Icon
,
Loading
}
from
"vant"
;
import
{
TabHeader
}
from
"@/components"
;
import
*
as
utils
from
"../../utils/common"
;
...
...
src/views/Bill/record.vue
View file @
2813f70b
...
...
@@ -9,7 +9,7 @@
<div
class=
"list"
v-for=
"(item, index) in dataList"
:key=
"index"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
{{
item
.
feeType
}}
</div>
<i>
{{
item
.
amount
}}
</i>
<i>
{{
item
.
amount
|
moneyNum
}}
</i>
</div>
<p>
<span>
{{
item
.
dateTime
}}
</span>
...
...
src/views/Bill/sociallist.vue
View file @
2813f70b
...
...
@@ -7,11 +7,11 @@
<div
class=
"header"
>
<div
class=
"content_left"
>
<div
class=
"title_info"
>
应付总额
</div>
<div
class=
"title_money"
>
{{
data
.
payment
}}
</div>
<div
class=
"title_money"
>
{{
data
.
payment
|
moneyNum
}}
</div>
</div>
<div
class=
"content_right"
>
<div
class=
"title_info"
>
待付金额
</div>
<div
class=
"title_money"
>
{{
data
.
waitPayment
}}
</div>
<div
class=
"title_money"
>
{{
data
.
waitPayment
|
moneyNum
}}
</div>
</div>
</div>
<div
class=
"box"
>
...
...
@@ -22,11 +22,11 @@
</div>
<p>
<span>
应付金额
</span>
<i>
{{
item
.
payment
}}
</i>
<i>
{{
item
.
payment
|
moneyNum
}}
</i>
</p>
<p>
<span>
待付金额
</span>
<i>
{{
item
.
waitPayment
}}
</i>
<i>
{{
item
.
waitPayment
|
moneyNum
}}
</i>
</p>
</div>
</div>
...
...
src/views/Bill/socialpayment.vue
View file @
2813f70b
...
...
@@ -7,11 +7,11 @@
<div
class=
"header"
>
<div
class=
"content_left"
>
<div
class=
"title_info"
>
应付总额
</div>
<div
class=
"title_money"
>
{{
data
.
payment
}}
</div>
<div
class=
"title_money"
>
{{
data
.
payment
|
moneyNum
}}
</div>
</div>
<div
class=
"content_right"
>
<div
class=
"title_info"
>
待付金额
</div>
<div
class=
"title_money"
>
{{
data
.
waitPayment
}}
</div>
<div
class=
"title_money"
>
{{
data
.
waitPayment
|
moneyNum
}}
</div>
</div>
</div>
<div
class=
"box mt0"
v-for=
"(item,index) in data.list"
:key=
"index"
>
...
...
@@ -19,7 +19,7 @@
<div
class=
"list"
v-for=
"(ele,index) in item.list"
:key=
"index"
>
<div
class=
"list_title"
>
<div
class=
"title"
>
{{
ele
.
employeeName
}}
</div>
<div
class=
"list_title_money"
>
{{
ele
.
dueAmount
}}
</div>
<div
class=
"list_title_money"
>
{{
ele
.
dueAmount
|
moneyNum
}}
</div>
</div>
<p>
<span>
{{
ele
.
cityName
}}
</span>
...
...
src/views/More/detail.vue
View file @
2813f70b
<
template
>
<div>
<div
class=
"header"
>
<van-nav-bar
:title=
"title"
left-arrow
/>
<van-nav-bar
:title=
"title"
left-arrow
/>
</div>
<div
class=
"container"
>
<div
class=
"list"
v-for=
"(item, index) in list"
:key=
"index"
>
<div
class=
"title"
>
<div
class=
"title_info"
>
{{
item
.
orderName
}}
</div>
<i>
{{
item
.
dueAmount
}}
</i>
<i>
{{
item
.
dueAmount
|
moneyNum
}}
</i>
</div>
<p>
<span>
截止扣费日期
{{
item
.
dueDate
|
y
-
m
-
d
}}
</span>
...
...
@@ -43,8 +43,8 @@ export default {
mounted
()
{
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
const
index
=
parseInt
(
this
.
$route
.
query
.
index
);
const
name
=
this
.
$route
.
query
.
name
;
this
.
title
=
name
;
const
name
=
this
.
$route
.
query
.
name
;
this
.
title
=
name
;
this
.
list
=
this
.
getMoreList
[
index
].
details
;
}
};
...
...
src/views/More/index.vue
View file @
2813f70b
...
...
@@ -10,11 +10,11 @@
<div
class=
"header_content"
>
<div
class=
"fund"
>
<span>
账户余额
</span>
<i>
{{
summary
.
balance
}}
</i>
<i>
{{
summary
.
balance
|
moneyNum
}}
</i>
</div>
<div
class=
"paid"
>
<span>
待付金额
</span>
<i
class=
"paid_color"
>
{{
summary
.
waitPay
}}
</i>
<i
class=
"paid_color"
>
{{
summary
.
waitPay
|
moneyNum
}}
</i>
</div>
</div>
<div
class=
"header_info"
>
...
...
@@ -37,11 +37,11 @@
</div>
<p>
<span>
应付金额
</span>
<i>
{{
item
.
totalAmount
}}
</i>
<i>
{{
item
.
totalAmount
|
moneyNum
}}
</i>
</p>
<p>
<span>
待付金额
</span>
<i>
{{
item
.
waitPayAmount
}}
</i>
<i>
{{
item
.
waitPayAmount
|
moneyNum
}}
</i>
</p>
</div>
</div>
...
...
src/views/OidcCallback.vue
View file @
2813f70b
...
...
@@ -35,7 +35,6 @@ export default {
};
let
commonPms
=
GetCommonPms
();
let
url
=
`
${
oidc_config
.
authority
}
/connect/token?
${
commonPms
}
`
;
console
.
log
(
"url="
,
url
);
await
axios
.
post
(
url
,
qs
.
stringify
(
pms
))
.
then
(
...
...
@@ -62,11 +61,10 @@ export default {
this
.
oidcSignInCallback
()
.
then
(
redirectPath
=>
{
this
.
getOidcUser
()
.
then
(
res
=>
{
.
then
(
user
=>
{
let
urlsearch
=
redirectPath
.
split
(
"?"
)[
1
];
let
appid
=
this
.
getQueryString
(
urlsearch
,
"appid"
);
console
.
log
(
"appid="
,
appid
);
this
.
getToken
(
res
.
access_token
,
appid
,
redirectPath
);
this
.
getToken
(
user
.
access_token
,
appid
,
redirectPath
);
})
.
catch
(
err
=>
{
console
.
log
(
"err="
,
err
);
...
...
src/views/ServiceFee/detail.vue
View file @
2813f70b
...
...
@@ -7,27 +7,23 @@
<div
class=
"header"
>
<div
class=
"content_left"
>
<div
class=
"title_info"
>
应付总额
</div>
<div
class=
"title_money"
>
{{
data
.
payment
}}
</div>
<div
class=
"title_money"
>
{{
data
.
payment
|
moneyNum
}}
</div>
</div>
<div
class=
"content_right"
>
<div
class=
"title_info"
>
待付金额
</div>
<div
class=
"title_money"
>
{{
data
.
waitPayment
}}
</div>
<div
class=
"title_money"
>
{{
data
.
waitPayment
|
moneyNum
}}
</div>
</div>
</div>
<div
class=
"box mt0"
v-for=
"(item,index) in data.list"
:key=
"index"
>
<div
class=
"box-due"
>
<label
class=
"label_time"
>
截止扣费日期
{{
item
.
dueDate
|
transDate
}}
</label>
<span
class=
"font-blue status"
>
{{
item
.
statusDesc
}}
</span>
</div>
<div
class=
"list"
v-for=
"(ele,index) in item.list"
:key=
"index"
>
<div
class=
"list_title"
>
<div
class=
"title"
>
{{
ele
.
employeeName
}}
</div>
<div
class=
"list_title_money"
>
{{
ele
.
dueAmount
}}
</div>
<div
class=
"list_title_money"
>
{{
ele
.
dueAmount
|
moneyNum
}}
</div>
</div>
<p>
<span>
{{
ele
.
cityName
}}
</span>
<i
class
>
{{
ele
.
d
esc
}}
</i>
<i
class
=
"no_bill"
>
{{
ele
.
statusD
esc
}}
</i>
</p>
</div>
</div>
...
...
@@ -36,8 +32,9 @@
</
template
>
<
script
>
import
{
Icon
}
from
"vant"
;
import
{
Header
}
from
"@/components"
;
import
{
Icon
}
from
"vant"
;
import
{
mapGetters
}
from
"vuex"
;
import
dayjs
from
"dayjs"
;
export
default
{
components
:
{
...
...
@@ -46,25 +43,8 @@ export default {
},
data
()
{
return
{
title
:
"服务费详情"
,
data
:
{
payment
:
500.0
,
waitPayment
:
9999.0
,
list
:
[
{
dueDate
:
"2020-11-20"
,
statusDesc
:
"未扣费"
,
list
:
[
{
employeeName
:
"杨俊"
,
dueAmount
:
100.0
,
cityName
:
"北京市 北京市"
,
desc
:
"社保/公积金"
}
]
}
]
}
title
:
""
,
data
:
{}
};
},
filters
:
{
...
...
@@ -82,22 +62,36 @@ export default {
return
value
;
}
},
computed
:
{
...
mapGetters
([
"getReceiptDetail"
,
"getBeginDate"
])
},
methods
:
{
getData
()
{
const
index
=
this
.
$route
.
query
.
index
;
if
(
this
.
getReceiptDetail
&&
JSON
.
stringify
(
this
.
getReceiptDetail
)
!=
{}
&&
this
.
getReceiptDetail
.
list
&&
this
.
getReceiptDetail
.
list
.
length
>
index
)
{
this
.
data
=
this
.
getReceiptDetail
.
list
[
index
];
this
.
title
=
this
.
data
.
groupName
;
}
},
navLeftArrowClick
()
{
this
.
$router
.
go
(
-
1
);
}
},
mounted
()
{
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
this
.
getData
();
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.contener
{
.font-blue
{
color
:
#007aec
;
}
background
:
rgba
(
245
,
247
,
250
,
1
);
.header
{
height
:
98px
;
padding
:
0
16px
;
...
...
@@ -127,19 +121,20 @@ export default {
}
}
.box
{
margin-top
:
16px
;
padding
:
0
16px
;
.box-due
{
width
:
100%
;
display
:
grid
;
grid-template-columns
:
150px
70px
;
grid-template-rows
:
52px
;
background
:
white
;
&:first-child
{
margin-top
:
0
;
}
.label_time
{
height
:
20px
;
font-size
:
14px
;
justify-content
:
space-between
;
align-items
:
center
;
color
:
rgba
(
61
,
64
,
71
,
1
);
line-height
:
20px
;
padding
:
16px
0
;
display
:
block
;
border-bottom
:
1px
solid
#ececee
;
.status
{
justify-self
:
right
;
}
}
.list
{
background
:
rgba
(
255
,
255
,
255
,
1
);
...
...
@@ -148,7 +143,6 @@ export default {
&:last-child
{
border-bottom
:
0
;
}
.list_title
{
display
:
flex
;
align-items
:
center
;
...
...
@@ -159,16 +153,16 @@ export default {
color
:
rgba
(
61
,
64
,
71
,
1
);
line-height
:
22px
;
}
.arrow_right
{
color
:
#e4e4e6
;
}
.list_title_money
{
margin-left
:
auto
;
height
:
22px
;
font-size
:
16px
;
font-weight
:
500
;
color
:
rgba
(
61
,
64
,
71
,
1
);
}
.arrow_right
{
line-height
:
22px
;
margin-left
:
auto
;
color
:
#e4e4e6
;
}
}
p
{
...
...
src/views/Trusteeship/index.vue
View file @
2813f70b
...
...
@@ -24,7 +24,7 @@
<div
class=
"header_box"
>
<div
class=
"header_box_title"
>
<span>
{{
hosting
.
social
.
bizName
}}
</span>
<i
class=
"title_color"
>
{{
hosting
.
social
.
amount
}}
</i>
<i
class=
"title_color"
>
{{
hosting
.
social
.
amount
|
moneyNum
}}
</i>
</div>
<div
class=
"list_contenter"
>
<div
class=
"list"
v-for=
"(item,index) in hosting.social.list"
:key=
"index"
>
...
...
@@ -34,7 +34,7 @@
</div>
<p>
<span>
总备款金额
</span>
<i>
{{
item
.
amount
}}
</i>
<i>
{{
item
.
amount
|
moneyNum
}}
</i>
</p>
</div>
</div>
...
...
@@ -43,7 +43,7 @@
<div
class=
"header_box"
>
<div
class=
"header_box_title"
>
<span>
{{
hosting
.
fund
.
bizName
}}
</span>
<i
class=
"title_color"
>
{{
hosting
.
fund
.
amount
}}
</i>
<i
class=
"title_color"
>
{{
hosting
.
fund
.
amount
|
moneyNum
}}
</i>
</div>
<div
class=
"list_contenter"
>
<div
class=
"list"
v-for=
"(item,index) in hosting.fund.list"
:key=
"index"
>
...
...
@@ -53,7 +53,7 @@
</div>
<p>
<span>
总备款金额
</span>
<i>
{{
item
.
amount
}}
</i>
<i>
{{
item
.
amount
|
moneyNum
}}
</i>
</p>
</div>
</div>
...
...
@@ -64,7 +64,7 @@
<van-popup
v-model=
"show"
round
closeable
position=
"bottom"
:style=
"
{ height: '50%' }">
<div
class=
"popup_city"
>
<div
class=
"popup_city_title"
>
总备款金额
</div>
<div
class=
"popup_city_money"
>
{{
currentDetail
.
amount
}}
</div>
<div
class=
"popup_city_money"
>
{{
currentDetail
.
amount
|
moneyNum
}}
</div>
<p>
<span>
参保城市
</span>
<i>
{{
currentDetail
.
cityName
}}
</i>
...
...
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