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
4cb0d869
Commit
4cb0d869
authored
Dec 02, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'scroll修改'
parent
ba8e1dbb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
201 additions
and
322 deletions
+201
-322
contract-records.vue
src/pages/contractInquire/contract-records.vue
+121
-250
contract-signing.vue
src/pages/contractSigning/contract-signing.vue
+35
-19
start-list.vue
src/pages/contractStart/start-list.vue
+1
-0
contract-list.vue
src/pages/distributorSign/contract-list.vue
+44
-53
No files found.
src/pages/contractInquire/contract-records.vue
View file @
4cb0d869
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime: 2019-1
1-28 16:25:04
* @LastEditTime: 2019-1
2-02 09:02:06
* @LastEditors: Please set LastEditors
* @Description: 合同查询--记录
* @FilePath:
...
...
@@ -37,14 +37,14 @@
</div>
<!-- 全部合同记录 -->
<scroll
v-show=
"data!==null
&&selected==='all'
"
v-show=
"data!==null"
ref=
"scroll"
:updateData=
"[
l
ists]"
:updateData=
"[
showL
ists]"
:pullUp=
"true"
@
pullingUp=
"loadMore('全部',pagenum,lists)"
>
<div
class=
"pay-content"
>
<div
v-for=
"(item,index) in
l
ists"
:key=
"index"
class=
"contract-item"
>
<div
v-for=
"(item,index) in
showL
ists"
:key=
"index"
class=
"contract-item"
>
<div
class=
"header"
>
<img
src=
"@/assets/contractRepayment/contract.png"
alt=
""
>
<h2>
{{
item
.
project_number
}}
</h2>
...
...
@@ -67,125 +67,7 @@
</div>
</div>
</scroll>
<!-- 待首付 -->
<scroll
v-show=
"data!==null&&selected==='one'"
ref=
"scrollOne"
:updateData=
"[unSignedLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore('待首付',unSigned_pagenum,unSignedLists)"
>
<div
class=
"pay-content"
>
<div
v-for=
"(item,index) in unSignedLists"
:key=
"index"
class=
"contract-item"
>
<div
class=
"header"
>
<img
src=
"@/assets/contractRepayment/contract.png"
alt=
""
>
<h2>
{{
item
.
project_number
}}
</h2>
<p
class=
"green"
>
待首付
</p>
</div>
<div
class=
"center"
>
<div><span>
承租人
</span><p>
{{
item
.
bp_name
}}
</p></div>
<div><span>
年利率
</span><p>
{{
item
.
int_rate_n
}}
</p></div>
<div><span>
期限
</span><p>
{{
item
.
lease_times
}}
期
</p></div>
<div><span>
融资金额
</span><p
class=
"bold"
>
{{
parseFloat
(
item
.
finance_amount
).
toFixed
(
2
)
|
currency
}}
</p></div>
<span
class=
"red"
>
{{
item
.
con_overdue_status
}}
</span>
<section
@
click=
"toRepayDetail(item.project_id)"
>
<img
src=
"@/assets/contractRepayment/view.png"
alt=
""
>
<span>
查看合同明细
</span>
</section>
</div>
</div>
</div>
</scroll>
<!-- 首付还款中 -->
<scroll
v-show=
"data!==null&&selected==='two'"
ref=
"scrollTwo"
:updateData=
"[unRepayLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore('首付还款中',unRepay_pagenum,unRepayLists)"
>
<div
class=
"pay-content"
>
<div
v-for=
"(item,index) in unRepayLists"
:key=
"index"
class=
"contract-item"
>
<div
class=
"header"
>
<img
src=
"@/assets/contractRepayment/contract.png"
alt=
""
>
<h2>
{{
item
.
project_number
}}
</h2>
<p
class=
"orange"
>
首付还款中
</p>
</div>
<div
class=
"center"
>
<div><span>
承租人
</span><p>
{{
item
.
bp_name
}}
</p></div>
<div><span>
年利率
</span><p>
{{
item
.
int_rate_n
}}
</p></div>
<div><span>
期限
</span><p>
{{
item
.
lease_times
}}
期
</p></div>
<div><span>
融资金额
</span><p
class=
"bold"
>
{{
parseFloat
(
item
.
finance_amount
).
toFixed
(
2
)
|
currency
}}
</p></div>
<span
class=
"red"
>
{{
item
.
con_overdue_status
}}
</span>
<section
@
click=
"toRepayDetail(item.project_id)"
>
<img
src=
"@/assets/contractRepayment/view.png"
alt=
""
>
<span>
查看合同明细
</span>
</section>
</div>
</div>
</div>
</scroll>
<!-- 还款中 -->
<scroll
v-show=
"data!==null&&selected==='three'"
ref=
"scrollThree"
:updateData=
"[repayingLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore('还款中',repaying_pagenum,repayingLists)"
>
<div
class=
"pay-content"
>
<div
v-for=
"(item,index) in repayingLists"
:key=
"index"
class=
"contract-item"
>
<div
class=
"header"
>
<img
src=
"@/assets/contractRepayment/contract.png"
alt=
""
>
<h2>
{{
item
.
project_number
}}
</h2>
<p
class=
"blue"
>
还款中
</p>
</div>
<div
class=
"center"
>
<div><span>
承租人
</span><p>
{{
item
.
bp_name
}}
</p></div>
<div><span>
年利率
</span><p>
{{
item
.
int_rate_n
}}
</p></div>
<div><span>
期限
</span><p>
{{
item
.
lease_times
}}
期
</p></div>
<div><span>
融资金额
</span><p
class=
"bold"
>
{{
parseFloat
(
item
.
finance_amount
).
toFixed
(
2
)
|
currency
}}
</p></div>
<span
class=
"red"
>
{{
item
.
con_overdue_status
}}
</span>
<section
@
click=
"toRepayDetail(item.project_id)"
>
<img
src=
"@/assets/contractRepayment/view.png"
alt=
""
>
<span>
查看合同明细
</span>
</section>
</div>
</div>
</div>
</scroll>
<!-- 已结清 -->
<scroll
v-show=
"data!==null&&selected==='four'"
ref=
"scrollFour"
:updateData=
"[repayedLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore('已结清',repayed_pagenum,repayedLists)"
>
<div
class=
"pay-content"
>
<div
v-for=
"(item,index) in repayedLists"
:key=
"index"
class=
"contract-item"
>
<div
class=
"header"
>
<img
src=
"@/assets/contractRepayment/contract.png"
alt=
""
>
<h2>
{{
item
.
project_number
}}
</h2>
<p
class=
"black"
>
已结清
</p>
</div>
<div
class=
"center"
>
<div><span>
承租人
</span><p>
{{
item
.
bp_name
}}
</p></div>
<div><span>
年利率
</span><p>
{{
item
.
int_rate_n
}}
</p></div>
<div><span>
期限
</span><p>
{{
item
.
lease_times
}}
期
</p></div>
<div><span>
融资金额
</span><p
class=
"bold"
>
{{
parseFloat
(
item
.
finance_amount
).
toFixed
(
2
)
|
currency
}}
</p></div>
<span
class=
"red"
>
{{
item
.
con_overdue_status
}}
</span>
<section
@
click=
"toRepayDetail(item.project_id)"
>
<img
src=
"@/assets/contractRepayment/view.png"
alt=
""
>
<span>
查看合同明细
</span>
</section>
</div>
</div>
</div>
</scroll>
</h-view>
</
template
>
...
...
@@ -200,6 +82,7 @@ export default {
// data: null, // 无记录时
data
:
1
,
lists
:
[],
// 全部记录
showLists
:
[],
selected
:
'all'
,
unSignedLists
:
[],
// 待首付
unRepayLists
:
[],
// 首付还款中
...
...
@@ -221,21 +104,37 @@ export default {
computed
:
{},
watch
:
{
selected
()
{
this
.
$refs
.
scroll
.
update
(
false
)
this
.
$refs
.
scroll
.
scrollToTop
()
if
(
this
.
selected
===
'all'
)
{
this
.
contract_status_n
=
'全部'
this
.
pageNum
=
this
.
pagenum
this
.
showLists
=
this
.
lists
}
else
if
(
this
.
selected
===
'one'
)
{
this
.
contract_status_n
=
'待首付'
this
.
pageNum
=
this
.
unSigned_pagenum
this
.
showLists
=
this
.
unSignedLists
if
(
!
this
.
unSigned_flag
)
{
this
.
recordQuery
(
'待首付'
,
this
.
unSignedLists
)
}
}
else
if
(
this
.
selected
===
'two'
)
{
this
.
contract_status_n
=
'首付还款中'
this
.
pageNum
=
this
.
unRepay_pagenum
this
.
showLists
=
this
.
unRepayLists
if
(
!
this
.
unRepay_flag
)
{
this
.
recordQuery
(
'首付还款中'
,
this
.
unRepayLists
)
}
}
else
if
(
this
.
selected
===
'three'
)
{
this
.
contract_status_n
=
'还款中'
this
.
pageNum
=
this
.
repaying_pagenum
this
.
showLists
=
this
.
repayingLists
if
(
!
this
.
repaying_flag
)
{
this
.
recordQuery
(
'还款中'
,
this
.
repayingLists
)
}
}
else
if
(
this
.
selected
===
'four'
)
{
this
.
contract_status_n
=
'已结清'
this
.
pageNum
=
this
.
repayed_pagenum
this
.
showLists
=
this
.
repayedLists
if
(
!
this
.
repayed_flag
)
{
this
.
recordQuery
(
'已结清'
,
this
.
repayedLists
)
}
...
...
@@ -272,7 +171,7 @@ export default {
vm
.
repaying_flag
=
false
vm
.
repayed_flag
=
false
vm
.
recordQuery
(
'
待首付'
,
vm
.
unSignedL
ists
)
vm
.
recordQuery
(
'
全部'
,
vm
.
l
ists
)
}
})
},
...
...
@@ -314,37 +213,39 @@ export default {
res
.
lists
.
forEach
((
data
,
index
,
array
)
=>
{
arr
.
push
(
array
[
index
])
})
vm
.
showLists
=
arr
console
.
log
(
'......'
,
vm
.
lists
)
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
if
(
status
===
'全部'
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
status
===
'待首付'
)
{
vm
.
unSigned_flag
=
true
vm
.
$refs
.
scroll
One
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
status
===
'首付还款中'
)
{
vm
.
unRepay_flag
=
true
vm
.
$refs
.
scroll
Two
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
status
===
'还款中'
)
{
vm
.
repaying_flag
=
true
vm
.
$refs
.
scroll
Three
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
status
===
'已结清'
)
{
vm
.
repayed_flag
=
true
vm
.
$refs
.
scroll
Four
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
}
else
if
(
res
.
lists
.
length
===
10
)
{
if
(
status
===
'全部'
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
else
if
(
status
===
'待首付'
)
{
vm
.
unSigned_flag
=
true
vm
.
$refs
.
scroll
One
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
else
if
(
status
===
'首付还款中'
)
{
vm
.
unRepay_flag
=
true
vm
.
$refs
.
scroll
Two
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
else
if
(
status
===
'还款中'
)
{
vm
.
repaying_flag
=
true
vm
.
$refs
.
scroll
Three
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
else
if
(
status
===
'已结清'
)
{
vm
.
repayed_flag
=
true
vm
.
$refs
.
scroll
Four
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
}
else
{
...
...
@@ -353,65 +254,54 @@ export default {
})
},
loadMore
(
status
,
pageNum
,
list
)
{
loadMore
()
{
let
vm
=
this
pageNum
++
let
url
=
$config
.
basePath
+
'con_contract_list'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
searchInput
:
vm
.
searchInput
,
pagenum
:
pageNum
,
pagenum
:
vm
.
pageNum
,
pagesize
:
10
,
contract_status_n
:
status
,
contract_status_n
:
vm
.
contract_status_n
,
}
vm
.
hlsPopup
.
showLoading
(
'
数据加载中
'
)
vm
.
hlsPopup
.
showLoading
(
'
请稍后
'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
if
(
status
===
'全部'
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
status
===
'待首付'
)
{
vm
.
$refs
.
scrollOne
.
update
(
true
)
}
else
if
(
status
===
'首付还款中'
)
{
vm
.
$refs
.
scrollTwo
.
update
(
true
)
}
else
if
(
status
===
'还款中'
)
{
vm
.
$refs
.
scrollThree
.
update
(
true
)
}
else
if
(
status
===
'已结清'
)
{
vm
.
$refs
.
scrollFour
.
update
(
true
)
}
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
list
.
push
(
array
[
index
])
if
(
this
.
selected
===
'all'
)
{
vm
.
lists
.
push
(
array
[
index
])
}
else
if
(
this
.
selected
===
'one'
)
{
vm
.
unSignedLists
.
push
(
array
[
index
])
}
else
if
(
this
.
selected
===
'two'
)
{
vm
.
unRepayLists
.
push
(
array
[
index
])
}
else
if
(
this
.
selected
===
'three'
)
{
vm
.
repayingLists
.
push
(
array
[
index
])
}
else
if
(
this
.
selected
===
'four'
)
{
vm
.
repayedLists
.
push
(
array
[
index
])
}
})
if
(
status
===
'全部'
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
status
===
'待首付'
)
{
vm
.
$refs
.
scrollOne
.
update
(
true
)
}
else
if
(
status
===
'首付还款中'
)
{
vm
.
$refs
.
scrollTwo
.
update
(
true
)
}
else
if
(
status
===
'还款中'
)
{
vm
.
$refs
.
scrollThree
.
update
(
true
)
}
else
if
(
status
===
'已结清'
)
{
vm
.
$refs
.
scrollFour
.
update
(
true
)
}
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
list
.
push
(
array
[
index
])
if
(
this
.
selected
===
'all'
)
{
vm
.
lists
.
push
(
array
[
index
])
}
else
if
(
this
.
selected
===
'one'
)
{
vm
.
unSignedLists
.
push
(
array
[
index
])
}
else
if
(
this
.
selected
===
'two'
)
{
vm
.
unRepayLists
.
push
(
array
[
index
])
}
else
if
(
this
.
selected
===
'three'
)
{
vm
.
repayingLists
.
push
(
array
[
index
])
}
else
if
(
this
.
selected
===
'four'
)
{
vm
.
repayedLists
.
push
(
array
[
index
])
}
})
if
(
status
===
'全部'
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
else
if
(
status
===
'待首付'
)
{
vm
.
$refs
.
scrollOne
.
update
(
false
)
}
else
if
(
status
===
'首付还款中'
)
{
vm
.
$refs
.
scrollTwo
.
update
(
false
)
}
else
if
(
status
===
'还款中'
)
{
vm
.
$refs
.
scrollThree
.
update
(
false
)
}
else
if
(
status
===
'已结清'
)
{
vm
.
$refs
.
scrollFour
.
update
(
false
)
}
vm
.
$refs
.
scroll
.
update
(
true
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
@@ -419,23 +309,49 @@ export default {
})
},
async
searchs
()
{
// await this.search('全部',this.lists)
// await this.search('待首付', this.unSignedLists = [])
// await this.search('首付还款中', this.unRepayLists = [])
// await this.search('还款中', this.repayingLists = [])
// await this.search('已结清', this.repayedLists = [])
let
res
=
await
this
.
searchUnsign
()
// 待首付结果
if
(
res
)
{
let
resUnrepay
=
await
this
.
searchUnrepay
()
// 首付还款中结果
if
(
resUnrepay
)
{
let
resRepaying
=
await
this
.
searchRepaying
()
// 还款中结果
if
(
resRepaying
)
{
this
.
searchRepayed
()
let
resAll
=
await
this
.
searchAll
()
if
(
resAll
)
{
let
res
=
await
this
.
searchUnsign
()
// 待首付结果
if
(
res
)
{
let
resUnrepay
=
await
this
.
searchUnrepay
()
// 首付还款中结果
if
(
resUnrepay
)
{
let
resRepaying
=
await
this
.
searchRepaying
()
// 还款中结果
if
(
resRepaying
)
{
this
.
searchRepayed
()
}
}
}
}
},
async
searchAll
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'con_contract_list'
let
param
=
{
contract_status_n
:
'全部'
,
user_phone
:
window
.
localStorage
.
user_phone
,
searchInput
:
vm
.
searchInput
,
pagenum
:
1
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'请稍后'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
lists
if
(
vm
.
selected
===
'all'
)
{
vm
.
showLists
=
vm
.
lists
}
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
return
false
}
},
async
searchUnsign
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'con_contract_list'
...
...
@@ -451,10 +367,13 @@ export default {
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
unSignedLists
=
res
.
lists
if
(
vm
.
selected
===
'one'
)
{
vm
.
showLists
=
vm
.
unSignedLists
}
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
One
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
One
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
return
true
}
else
{
...
...
@@ -477,10 +396,13 @@ export default {
let
res
=
await
vm
.
$post
(
url
,
param
)
if
(
res
.
result
===
'S'
)
{
vm
.
unRepayLists
=
res
.
lists
if
(
vm
.
selected
===
'two'
)
{
vm
.
showLists
=
vm
.
unRepayLists
}
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
Two
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
Two
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
return
true
}
else
{
...
...
@@ -503,10 +425,13 @@ export default {
let
res
=
await
vm
.
$post
(
url
,
param
)
if
(
res
.
result
===
'S'
)
{
vm
.
repayingLists
=
res
.
lists
if
(
vm
.
selected
===
'three'
)
{
vm
.
showLists
=
vm
.
repayingLists
}
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
Three
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
Three
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
return
true
}
else
{
...
...
@@ -529,70 +454,16 @@ export default {
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
// vm.hlsPopup.hideLoading()
vm
.
repayedLists
=
res
.
lists
if
(
vm
.
selected
===
'four'
)
{
vm
.
showLists
=
vm
.
repayedLists
}
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
Four
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
Four
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
// search (status, list) {
// let vm = this
// let url = $config.basePath + 'con_contract_list'
// let param = {
// contract_status_n: status,
// user_phone: window.localStorage.user_phone,
// searchInput: vm.searchInput,
// pagenum: 1,
// pagesize: 10,
// }
// vm.hlsPopup.showLoading('数据加载中')
// vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (status === '全部') {
// vm.lists = res.lists
// } else if (status === '待首付') {
// vm.unSignedLists = res.lists
// } else if (status === '首付还款中') {
// vm.unRepayLists = res.lists
// } else if (status === '还款中') {
// vm.repayingLists = res.lists
// } else if (status === '已结清') {
// vm.repayedLists = res.lists
// }
// // vm.unSignedLists = res.lists
// // res.lists.forEach((data, index, array) => {
// // list.push(array[index])
// // })
// // console.log(vm.unSignedLists)
// if (res.lists.length >= 0 && res.lists.length
<
10
)
{
// if (status === '全部') {
// vm.$refs.scroll.update(true)
// } else if (status === '待首付') {
// vm.$refs.scrollOne.update(true)
// } else if (status === '首付还款中') {
// vm.$refs.scrollTwo.update(true)
// } else if (status === '还款中') {
// vm.$refs.scrollThree.update(true)
// } else if (status === '已结清') {
// vm.$refs.scrollFour.update(true)
// }
// } else if (res.lists.length === 10) {
// if (status === '全部') {
// vm.$refs.scroll.update(false)
// } else if (status === '待首付') {
// vm.$refs.scrollOne.update(false)
// } else if (status === '首付还款中') {
// vm.$refs.scrollTwo.update(false)
// } else if (status === '还款中') {
// vm.$refs.scrollThree.update(false)
// } else if (status === '已结清') {
// vm.$refs.scrollFour.update(false)
// }
// }
// })
// },
},
}
</
script
>
...
...
src/pages/contractSigning/contract-signing.vue
View file @
4cb0d869
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-29 1
2:40:38
* @LastEditTime: 2019-11-29 1
7:31:00
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
...
...
@@ -23,14 +23,13 @@
</div>
<scroll
v-show=
"num === 1"
ref=
"scroll"
:updateData=
"[s
ubmit
Lists]"
:updateData=
"[s
how
Lists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in s
ubmit
Lists"
:key=
"index"
class=
"contract-lists"
>
<div
v-for=
"(item,index) in s
how
Lists"
:key=
"index"
class=
"contract-lists"
>
<div
class=
"pro-code"
@
click=
"goDetails(item)"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<p>
...
...
@@ -48,9 +47,9 @@
</div>
</scroll>
<scroll
<
!--
<
scroll
v-show=
"num === 2"
ref=
"scroll
s
"
ref=
"scroll"
:updateData=
"[approvedLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
...
...
@@ -72,7 +71,7 @@
</div>
</div>
</div>
</scroll>
</scroll>
-->
</h-view>
</
template
>
...
...
@@ -99,17 +98,23 @@ export default {
approvedLists
:
[],
// 已签约
showLists
:
[],
lists
:
[],
submitFlag
:
false
,
approvedFlag
:
false
,
}
},
watch
:
{
'num'
:
{
handler
(
newVal
,
oldVal
)
{
this
.
$refs
.
scroll
.
update
(
false
)
if
(
newVal
===
2
)
{
if
(
!
this
.
approvedFlag
)
{
this
.
contractList
()
}
this
.
$refs
.
scroll
.
scrollToTop
()
this
.
showLists
=
this
.
approvedLists
}
else
if
(
newVal
===
1
)
{
this
.
showLists
=
this
.
submitLists
this
.
$refs
.
scroll
.
scrollToTop
()
// this.$refs.scroll.update(false)
}
},
immediate
:
true
,
...
...
@@ -175,7 +180,7 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
submitLists
=
res
.
lists
vm
.
s
ubmitFlag
=
true
vm
.
s
howLists
=
vm
.
submitLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
...
@@ -201,10 +206,11 @@ export default {
console
.
log
(
res
.
lists
)
vm
.
approvedLists
=
res
.
lists
vm
.
approvedFlag
=
true
vm
.
showLists
=
vm
.
approvedLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
@@ -225,7 +231,7 @@ export default {
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'
数据加载中
'
)
vm
.
hlsPopup
.
showLoading
(
'
请稍后
'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
...
...
@@ -244,6 +250,7 @@ export default {
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
showLists
=
vm
.
submitLists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -258,25 +265,26 @@ export default {
confirm_status
:
'APPROVED'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'
数据加载中
'
)
vm
.
hlsPopup
.
showLoading
(
'
请稍后
'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
showLists
=
vm
.
approvedLists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -294,11 +302,15 @@ export default {
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'
数据加载中
'
)
vm
.
hlsPopup
.
showLoading
(
'
请稍后
'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
submitLists
=
res
.
lists
if
(
vm
.
num
===
1
)
{
vm
.
showLists
=
vm
.
submitLists
}
// vm.showLists = vm.submitLists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
...
@@ -325,10 +337,14 @@ export default {
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
approvedLists
=
res
.
lists
if
(
vm
.
num
===
2
)
{
vm
.
showLists
=
vm
.
approvedLists
}
// vm.showLists = vm.approvedLists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
...
...
src/pages/contractStart/start-list.vue
View file @
4cb0d869
...
...
@@ -136,6 +136,7 @@ export default {
},
getTabNum
(
i
)
{
this
.
tabNum
=
i
this
.
$refs
.
scroll
.
scrollToTop
()
},
goAdd
()
{
hlsPopup
.
showLongCenter
(
'暂不支持无关联进件的车辆发送'
)
...
...
src/pages/distributorSign/contract-list.vue
View file @
4cb0d869
...
...
@@ -8,7 +8,7 @@
<h-view
id=
"distribute-sign"
title=
"经销商签约"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"
goBack
"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"
$routeGo()
"
>
<span>
经销商签约
</span>
</div>
</h-header>
...
...
@@ -21,21 +21,20 @@
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
</div>
<scroll
v-show=
"num === 1"
ref=
"scroll"
:updateData=
"[s
ubmit
Lists]"
:updateData=
"[s
how
Lists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in s
ubmit
Lists"
:key=
"index"
class=
"contract-lists"
>
<div
v-for=
"(item,index) in s
how
Lists"
:key=
"index"
class=
"contract-lists"
>
<div
class=
"pro-code"
@
click=
"goDetails(item)"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<p>
<span>
合同号
</span>
<span>
{{
item
.
project_number
}}
</span>
</p>
<img
src=
"@/assets/
constractSigning/righticon
.png"
alt=
""
class=
"arrow"
>
<img
src=
"@/assets/
distributorSign/goDetails
.png"
alt=
""
class=
"arrow"
>
</div>
<div
class=
"box"
>
<div><p>
承租人
</p><p>
{{
item
.
bp_name
}}
</p></div>
...
...
@@ -45,9 +44,9 @@
</div>
</div>
</scroll>
<scroll
<
!--
<
scroll
v-show=
"num === 2"
ref=
"scroll
s
"
ref=
"scroll"
:updateData=
"[approvedLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
...
...
@@ -60,7 +59,7 @@
<span>
合同号
</span>
<span>
{{
item
.
project_number
}}
</span>
</p>
<img
src=
"@/assets/
constractSigning/righticon
.png"
alt=
""
class=
"arrow"
>
<img
src=
"@/assets/
distributorSign/goDetails
.png"
alt=
""
class=
"arrow"
>
</div>
<div
class=
"box"
>
<div><p>
承租人
</p><p>
{{
item
.
bp_name
}}
</p></div>
...
...
@@ -69,7 +68,7 @@
</div>
</div>
</div>
</scroll>
</scroll>
-->
</h-view>
</
template
>
...
...
@@ -91,28 +90,29 @@ export default {
uncheck1
:
unCheck1
,
uncheck2
:
unCheck2
,
lists
:
[],
showLists
:
[],
submitLists
:
[],
// 待签约列表
approvedLists
:
[],
// 已签约列表
approvedFlag
:
false
,
}
},
watch
:
{
// 'num': {
// handler (newVal, oldVal) {
// if (newVal === 2) {
// if (!this.approvedFlag) {
// this.getLists()
// }
// }
// },
// immediate: true,
// },
num
()
{
if
(
this
.
num
===
2
)
{
if
(
!
this
.
approvedFlag
)
{
this
.
getLists
()
'num'
:
{
handler
(
newVal
,
oldVal
)
{
this
.
$refs
.
scroll
.
update
(
false
)
if
(
newVal
===
2
)
{
if
(
!
this
.
approvedFlag
)
{
this
.
getLists
()
}
this
.
$refs
.
scroll
.
scrollToTop
()
this
.
showLists
=
this
.
approvedLists
}
else
if
(
newVal
===
1
)
{
this
.
showLists
=
this
.
submitLists
this
.
$refs
.
scroll
.
scrollToTop
()
// this.$refs.scroll.update(false)
}
}
},
immediate
:
true
,
},
searchInput
()
{
let
vm
=
this
...
...
@@ -168,7 +168,7 @@ export default {
if
(
res
.
result
===
'S'
)
{
console
.
log
(
res
.
lists
)
vm
.
submitLists
=
res
.
lists
//
vm.showLists = vm.submitLists
vm
.
showLists
=
vm
.
submitLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
...
@@ -194,10 +194,11 @@ export default {
console
.
log
(
res
.
lists
)
vm
.
approvedLists
=
res
.
lists
vm
.
approvedFlag
=
true
vm
.
showLists
=
vm
.
approvedLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
@@ -206,7 +207,6 @@ export default {
}
},
loadMore
()
{
console
.
log
(
'lodeMore'
)
let
vm
=
this
if
(
vm
.
num
===
1
)
{
vm
.
submitPagenum
++
...
...
@@ -237,6 +237,7 @@ export default {
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
showLists
=
vm
.
submitLists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -258,25 +259,26 @@ export default {
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
showLists
=
vm
.
approvedLists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
async
submitSearch
()
{
submitSearch
()
{
let
vm
=
this
vm
.
submitPagenum
=
1
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
...
...
@@ -288,20 +290,16 @@ export default {
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'请稍后'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
if
(
res
.
result
===
'S'
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
submitLists
=
res
.
lists
vm
.
showLists
=
vm
.
submitLists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
return
false
}
})
},
approvedearch
()
{
let
vm
=
this
...
...
@@ -319,18 +317,17 @@ export default {
// vm.hlsPopup.hideLoading()
// console.log(res.lists)
vm
.
approvedLists
=
res
.
lists
vm
.
showLists
=
vm
.
approvedLists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
s
.
update
(
false
)
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
async
search
()
{
let
res
=
await
this
.
submitSearch
()
if
(
res
)
{
this
.
approvedearch
()
}
search
()
{
this
.
submitSearch
()
setTimeout
(
this
.
approvedearch
,
1000
)
},
goDetails
(
item
)
{
this
.
$router
.
push
({
...
...
@@ -343,12 +340,6 @@ export default {
dateConverse
(
date
)
{
return
date
.
replace
(
/
\/
/g
,
'-'
)
},
// 返回个人中心
goBack
()
{
this
.
$router
.
push
({
name
:
'MyInfo'
,
})
},
},
}
</
script
>
...
...
@@ -415,7 +406,7 @@ export default {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888C8F;
//
line-height: 36px;
line-height: 36px;
background: url("../../assets/contractStart/search1.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
...
...
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