Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
82fb0723
Commit
82fb0723
authored
Nov 18, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
58e7e48c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
9 deletions
+21
-9
contract-repayment.vue
src/pages/contractRepayment/contract-repayment.vue
+5
-2
refund.vue
src/pages/contractRepayment/refund.vue
+1
-1
contract-record.vue
src/pages/pay/firstPay/contract-record.vue
+15
-6
No files found.
src/pages/contractRepayment/contract-repayment.vue
View file @
82fb0723
...
...
@@ -14,7 +14,7 @@
<img
src=
"@/assets/contractRepayment/contract.png"
alt=
""
>
<h2>
{{
item
.
project_number
}}
</h2>
<!-- 状态用类名控制 待还款orange,待签约blue,还款中green -->
<p
class=
"green"
>
待还款
</p>
<p
:class=
"
{'green':item.repayment_status==='首付还款中','blue':item.repayment_status==='待首付','orange':item.repayment_status==='还款中','grey':item.repayment_status==='已结清'}">
{{
item
.
repayment_status
}}
</p>
</div>
<div
class=
"center"
>
<div><span>
合同金额
</span><p>
{{
item
.
total_price
|
currency
}}
</p></div>
...
...
@@ -168,7 +168,10 @@ export default {
border: 1px solid #FDB62F;
color: #FDB62F;
}
p.grey{
border: 1px solid grey;
color: grey;
}
p.blue {
color: @headerColor;
border: 1px solid @headerColor;
...
...
src/pages/contractRepayment/refund.vue
View file @
82fb0723
...
...
@@ -284,7 +284,7 @@ export default {
height: 30px;
position: absolute;
left: -8px;
top:
4
4px;
top:
3
4px;
}
.status {
...
...
src/pages/pay/firstPay/contract-record.vue
View file @
82fb0723
...
...
@@ -36,7 +36,9 @@
<div
class=
"item-right"
>
<p>
{{
parseFloat
(
e
.
due_amount
).
toFixed
(
2
)
|
currency
}}
</p>
<p>
{{
e
.
received_amount
|
currency
}}
</p>
<input
v-model=
"e.amount"
type=
"text"
placeholder=
"请输入还款金额"
>
<!--
<input
v-model=
"e.amount"
type=
"number"
placeholder=
"请输入还款金额"
>
-->
<input
:value=
"e.amount"
type=
"number"
placeholder=
"请输入还款金额"
>
</div>
</div>
</div>
...
...
@@ -61,19 +63,17 @@
<
script
>
export
default
{
name
:
'ContractRecord'
,
components
:
{},
data
()
{
return
{
money
:
0
,
inputNum
:
0
,
prj_lists
:
[],
}
},
watch
:
{
prj_lists
:
{
'prj_lists'
:
{
handler
(
newName
,
oldName
)
{
console
.
log
(
1
)
let
vm
=
this
let
sumL
=
[]
for
(
let
i
of
this
.
prj_lists
)
{
...
...
@@ -98,6 +98,7 @@ export default {
}
},
deep
:
true
,
immediate
:
true
,
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
...
...
@@ -105,7 +106,9 @@ export default {
vm
.
getDetail
()
})
},
mounted
()
{
console
.
log
(
this
.
prj_lists
)
},
methods
:
{
getDetail
()
{
let
vm
=
this
...
...
@@ -118,6 +121,12 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
prj_lists
=
res
.
prj_lists
vm
.
prj_lists
.
forEach
(
i
=>
{
i
.
cf_lists
.
forEach
(
j
=>
{
console
.
log
(
2
)
j
.
amount
=
(
parseFloat
(
j
.
due_amount
)
-
parseFloat
(
j
.
received_amount
))
})
})
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
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