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
9d8330d3
Commit
9d8330d3
authored
Sep 30, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改bug
parent
47141e5e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
15 deletions
+82
-15
base.vue
src/pages/intoApproval/intoApproval/base.vue
+1
-0
refund.vue
src/pages/intoApproval/intoApproval/refund.vue
+9
-1
rentInfo.vue
src/pages/intoApproval/intoApproval/rentInfo.vue
+10
-8
intoList.vue
src/pages/intoApproval/intoList.vue
+62
-6
No files found.
src/pages/intoApproval/intoApproval/base.vue
View file @
9d8330d3
...
@@ -344,6 +344,7 @@ export default {
...
@@ -344,6 +344,7 @@ export default {
mounted
()
{
mounted
()
{
this
.
getBonds
()
this
.
getBonds
()
this
.
popProtocol
()
this
.
popProtocol
()
this
.
isConfirm
=
this
.
$route
.
params
.
isConfirm
},
},
methods
:
{
methods
:
{
getTabNum
(
i
)
{
getTabNum
(
i
)
{
...
...
src/pages/intoApproval/intoApproval/refund.vue
View file @
9d8330d3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<h-view
id=
"refund"
class=
"public-style"
title=
"还款计划"
>
<h-view
id=
"refund"
class=
"public-style"
title=
"还款计划"
>
<div
class=
"top"
>
<div
class=
"top"
>
<h-header
:proportion=
"[5,1,1]"
class=
"header"
>
<h-header
:proportion=
"[5,1,1]"
class=
"header"
>
<div
slot=
"left"
class=
"h-header-btn"
@
click=
"
$routeGo()
"
>
<div
slot=
"left"
class=
"h-header-btn"
@
click=
"
goBase
"
>
<img
src=
"@/assets/intoApproval/arrow.png"
>
<img
src=
"@/assets/intoApproval/arrow.png"
>
<span>
还款计划
</span>
<span>
还款计划
</span>
</div>
</div>
...
@@ -90,6 +90,14 @@ export default {
...
@@ -90,6 +90,14 @@ export default {
this
.
getInfo
()
this
.
getInfo
()
},
},
methods
:
{
methods
:
{
goBase
()
{
this
.
$router
.
replace
({
name
:
'Base'
,
params
:
{
isConfirm
:
true
,
},
})
},
getInfo
()
{
getInfo
()
{
let
vm
=
this
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'prj_cashflow_query'
let
url
=
process
.
env
.
basePath
+
'prj_cashflow_query'
...
...
src/pages/intoApproval/intoApproval/rentInfo.vue
View file @
9d8330d3
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
预计付款日
</div>
<div
slot=
"name"
>
预计付款日
</div>
<span
slot=
"content"
>
{{
time
}}
</span>
<span
slot=
"content"
>
{{
rentInfo
.
pre_pay_date
|
timeFormat
}}
</span>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
还款周期
</div>
<div
slot=
"name"
>
还款周期
</div>
...
@@ -81,8 +81,8 @@
...
@@ -81,8 +81,8 @@
<
script
>
<
script
>
export
default
{
export
default
{
filters
:
{
filters
:
{
NumFormat
:
function
(
value
)
{
'NumFormat'
:
function
(
value
)
{
if
(
!
value
)
return
'0.00'
//
if (!value) return '0.00'
var
intPart
=
Number
(
value
)
|
0
// 获取整数部分
var
intPart
=
Number
(
value
)
|
0
// 获取整数部分
var
intPartFormat
=
intPart
.
toString
().
replace
(
/
(\d)(?=(?:\d{3})
+$
)
/g
,
'$1,'
)
// 将整数部分逢三一断
var
intPartFormat
=
intPart
.
toString
().
replace
(
/
(\d)(?=(?:\d{3})
+$
)
/g
,
'$1,'
)
// 将整数部分逢三一断
var
floatPart
=
'.00'
// 预定义小数部分
var
floatPart
=
'.00'
// 预定义小数部分
...
@@ -100,6 +100,13 @@ export default {
...
@@ -100,6 +100,13 @@ export default {
return
intPartFormat
+
floatPart
return
intPartFormat
+
floatPart
}
}
},
},
'timeFormat'
:
function
(
time
)
{
var
date
=
new
Date
(
time
)
var
y
=
date
.
getFullYear
()
var
m
=
date
.
getMonth
()
+
1
var
d
=
date
.
getDate
()
return
`
${
y
}
-
${
m
}
-
${
d
}
`
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -126,11 +133,6 @@ export default {
...
@@ -126,11 +133,6 @@ export default {
},
},
}
}
},
},
computed
:
{
'time'
:
function
()
{
return
this
.
rentInfo
.
pre_pay_date
.
substr
(
0
,
10
)
},
},
created
()
{
created
()
{
this
.
getRent
()
this
.
getRent
()
},
},
...
...
src/pages/intoApproval/intoList.vue
View file @
9d8330d3
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<Tab
@
getTabNum=
"getTabNum"
/>
<Tab
@
getTabNum=
"getTabNum"
/>
<div
class=
"hinput"
>
<div
class=
"hinput"
>
<div
class=
"search-box"
>
<div
class=
"search-box"
>
<input
type=
"text"
placeholder=
"请输入进件号/承租人名称"
>
<input
v-model=
"keyWords"
type=
"text"
placeholder=
"请输入进件号/承租人名称"
>
<img
src=
"@/assets/distributorSign/search.png"
alt=
""
>
<img
src=
"@/assets/distributorSign/search.png"
alt=
""
>
</div>
</div>
</div>
</div>
...
@@ -18,28 +18,27 @@
...
@@ -18,28 +18,27 @@
<div
class=
"item"
>
<div
class=
"item"
>
<img
src=
"@/assets/distributorSign/icon-进件合同.png"
alt=
""
>
<img
src=
"@/assets/distributorSign/icon-进件合同.png"
alt=
""
>
<p
class=
"incoming-num"
>
进件号
</p>
<p
class=
"incoming-num"
>
进件号
</p>
<p
class=
"code"
>
{{
item
.
finance_amount
}}
</p>
<p
class=
"code"
>
{{
item
.
project_number
}}
</p>
</div>
</div>
<div
class=
"details"
>
<div
class=
"details"
>
<div
class=
"option"
>
<div
class=
"option"
>
<p
class=
"name"
>
承租人
</p>
<p
class=
"name"
>
承租人
</p>
<p
class=
"full-name normal"
>
{{
item
.
bp_name
}}
</p>
<p
class=
"full-name normal"
>
{{
item
.
bp_name
}}
</p>
</div>
</div>
<div
class=
"option"
>
<div
class=
"option"
style=
"margin-left:20px"
>
<p
class=
"name"
>
合同租金
</p>
<p
class=
"name"
>
合同租金
</p>
<p
class=
"normal money"
>
{{
item
.
finance_amount
}}
</p>
<p
class=
"normal money"
>
{{
item
.
finance_amount
|
NumFormat
}}
</p>
<img
src=
"@/assets/distributorSign/goDetails.png"
alt=
""
>
<img
src=
"@/assets/distributorSign/goDetails.png"
alt=
""
>
</div>
</div>
<div
class=
"option"
>
<div
class=
"option"
>
<p
class=
"name"
>
申请时间
</p>
<p
class=
"name"
>
申请时间
</p>
<p
class=
"normal"
>
{{
item
.
confirm_start_date
}}
</p>
<p
class=
"normal"
>
{{
item
.
confirm_start_date
|
timeFormat
}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</h-content>
</h-content>
</h-view>
</h-view>
</
template
>
</
template
>
<
script
>
<
script
>
import
Tab
from
'@/pages/intoApproval/intoApproval/intoTab'
import
Tab
from
'@/pages/intoApproval/intoApproval/intoTab'
export
default
{
export
default
{
...
@@ -47,6 +46,34 @@ export default {
...
@@ -47,6 +46,34 @@ export default {
components
:
{
components
:
{
Tab
,
Tab
,
},
},
filters
:
{
'timeFormat'
:
function
(
time
)
{
var
date
=
new
Date
(
time
)
var
y
=
date
.
getFullYear
()
var
m
=
date
.
getMonth
()
+
1
var
d
=
date
.
getDate
()
return
`
${
y
}
-
${
m
}
-
${
d
}
`
},
'NumFormat'
:
function
(
value
)
{
if
(
!
value
)
return
'0.00'
var
intPart
=
Number
(
value
)
|
0
// 获取整数部分
var
intPartFormat
=
intPart
.
toString
().
replace
(
/
(\d)(?=(?:\d{3})
+$
)
/g
,
'$1,'
)
// 将整数部分逢三一断
var
floatPart
=
'.00'
// 预定义小数部分
var
value2Array
=
value
.
split
(
'.'
)
// =2表示数据有小数位
if
(
value2Array
.
length
===
2
)
{
floatPart
=
value2Array
[
1
].
toString
()
// 拿到小数部分
if
(
floatPart
.
length
===
1
)
{
// 补0,实际上用不着
return
intPartFormat
+
'.'
+
floatPart
+
'0'
}
else
{
return
intPartFormat
+
'.'
+
floatPart
}
}
else
{
return
intPartFormat
+
floatPart
}
},
},
data
()
{
data
()
{
return
{
return
{
tabNum
:
0
,
tabNum
:
0
,
...
@@ -68,7 +95,36 @@ export default {
...
@@ -68,7 +95,36 @@ export default {
}
}
},
},
'keyWords'
:
function
(
newVal
,
oldVal
)
{
'keyWords'
:
function
(
newVal
,
oldVal
)
{
let
newL
=
[]
let
vm
=
this
// let newList = []
// let newListConfirmed = []
// if (this.tabNum === 0) {
// this.unConfirm.forEach(item => {
// if (item.bp_name.indexOf(newVal) !== -1 || item.project_number.indexOf(newVal) !== -1) {
// newList.push(item)
// }
// })
// this.showList = newList
// } else if (this.tabNum === 1) {
// this.confirm.forEach(item => {
// if (item.bp_name.indexOf(newVal) !== -1 || item.project_number.indexOf(newVal) !== -1) {
// newListConfirmed.push(item)
// }
// })
// this.showList = newListConfirmed
// }
vm
.
contractMsg
.
forEach
(
item
=>
{
if
(
item
.
bp_name
.
indexOf
(
newVal
)
!==
-
1
||
item
.
project_number
.
indexOf
(
newVal
)
!==
-
1
)
{
newL
.
push
(
item
)
}
})
if
(
newVal
===
''
)
{
vm
.
showList
=
vm
.
contractMsg
}
else
{
vm
.
showList
=
newL
}
},
},
},
},
created
()
{
created
()
{
...
...
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