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
37f2c644
Commit
37f2c644
authored
Nov 22, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'提代码'
parent
95b41a94
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
487 additions
and
178 deletions
+487
-178
repay-detail.vue
src/pages/contractInquire/repay-detail.vue
+2
-2
contract-signing.vue
src/pages/contractSigning/contract-signing.vue
+183
-72
contract-list.vue
src/pages/distributorSign/contract-list.vue
+184
-72
financing-trial.vue
src/pages/financingTrial/financing-trial.vue
+7
-2
product-list.vue
src/pages/productQuery/product-list.vue
+0
-1
query-home.vue
src/pages/productQuery/query-home.vue
+111
-29
No files found.
src/pages/contractInquire/repay-detail.vue
View file @
37f2c644
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime: 2019-11-
19 11:12:37
* @LastEditTime: 2019-11-
22 10:28:20
* @LastEditors: Please set LastEditors
* @Description: 合同查询--明细
* @FilePath:
...
...
@@ -73,7 +73,7 @@
</div>
</div>
<div
slot=
"content"
>
<span
v-if=
"item.overdue_times"
:class=
"['status','red']"
>
逾期
{{
item
.
overdue_times
}}
期
</span>
<span
v-if=
"item.overdue_times
!= 0
"
:class=
"['status','red']"
>
逾期
{{
item
.
overdue_times
}}
期
</span>
<div
class=
"plan"
@
click=
"toRepayPlans(item.contract_id)"
>
<img
src=
"@/assets/contractRepayment/plan.png"
alt=
""
>
<span>
还款计划
</span>
...
...
src/pages/contractSigning/contract-signing.vue
View file @
37f2c644
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-2
1 16:32:18
* @LastEditTime: 2019-11-2
2 15:02:02
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
...
...
@@ -22,15 +22,41 @@
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
</div>
<!--
<h-content
>
-->
<scroll
v-if=
"num === 1"
ref=
"scroll"
:updateData=
"[s
how
Lists]"
:updateData=
"[s
ubmit
Lists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in showLists"
:key=
"index"
class=
"contract-lists"
>
<div
v-for=
"(item,index) in submitLists"
: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/distributorSign/goDetails.png"
alt=
""
class=
"arrow"
>
</div>
<div
class=
"box"
>
<div><p>
承租人
</p><p>
{{
item
.
bp_name
}}
</p></div>
<div><p>
合同租金
</p><p
class=
"money"
>
{{
item
.
total_price
|
currency
}}
</p></div>
<div><p>
申请时间
</p><p>
{{
dateConverse
(
item
.
confirm_start_date
)
}}
</p></div>
</div>
</div>
</div>
</scroll>
<scroll
v-if=
"num === 2"
ref=
"scrolls"
:updateData=
"[approvedLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in approvedLists"
:key=
"index"
class=
"contract-lists"
>
<div
class=
"pro-code"
@
click=
"goDetails(item)"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<p>
...
...
@@ -61,6 +87,8 @@ export default {
return
{
num
:
null
,
pagenum
:
1
,
submitPagenum
:
1
,
approvedPagenum
:
1
,
searchInput
:
''
,
check1
:
Check1
,
check2
:
Check2
,
...
...
@@ -71,15 +99,21 @@ export default {
approvedLists
:
[],
// 已签约
showLists
:
[],
lists
:
[],
submitFlag
:
false
,
approvedFlag
:
false
,
}
},
watch
:
{
'num'
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
===
1
)
{
this
.
showLists
=
this
.
submitLists
if
(
!
this
.
submitFlag
)
{
this
.
contractList
()
}
}
else
if
(
newVal
===
2
)
{
this
.
showLists
=
this
.
approvedLists
if
(
!
this
.
approvedFlag
)
{
this
.
contractList
()
}
}
},
immediate
:
true
,
...
...
@@ -105,6 +139,8 @@ export default {
if
(
from
.
name
===
'MyInfo'
)
{
vm
.
num
=
1
vm
.
pagenum
=
1
vm
.
submitPagenum
=
1
vm
.
approvedPagenum
=
1
vm
.
searchInput
=
''
vm
.
user_bp_type
=
vm
.
$route
.
params
.
user_bp_type
}
...
...
@@ -119,21 +155,21 @@ export default {
// 合同查询
contractList
()
{
let
vm
=
this
if
(
vm
.
num
===
1
)
{
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
vm
.
submitLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
approvedLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
vm
.
showLists
=
vm
.
submitLists
vm
.
showLists
=
res
.
lists
vm
.
submitFlag
=
true
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
...
@@ -143,16 +179,44 @@ export default {
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
else
if
(
vm
.
num
===
2
)
{
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
pagesize
:
10
,
pagenum
:
vm
.
approvedPagenum
,
searchInput
:
vm
.
searchInput
,
confirm_status
:
'APPROVED'
,
user_phone
:
window
.
localStorage
.
user_phone
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
console
.
log
(
res
.
lists
)
vm
.
approvedLists
=
res
.
lists
vm
.
approvedFlag
=
true
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scrolls
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scrolls
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
loadMore
()
{
let
vm
=
this
vm
.
pagenum
++
if
(
vm
.
num
===
1
)
{
vm
.
submitPagenum
++
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
pagenum
:
vm
.
submitPagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
...
...
@@ -165,55 +229,102 @@ export default {
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
l
ists
.
push
(
array
[
index
])
vm
.
submitL
ists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
l
ists
.
push
(
array
[
index
])
vm
.
submitL
ists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
submitLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
approvedLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
if
(
vm
.
num
===
1
)
{
vm
.
showLists
=
vm
.
submitLists
}
else
{
vm
.
showLists
=
vm
.
approvedLists
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
else
if
(
vm
.
tabNum
===
2
)
{
vm
.
approvedPagenum
++
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
approvedPagenum
,
confirm_status
:
'APPROVED'
,
searchInput
:
vm
.
searchInput
,
}
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
.
scrolls
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scrolls
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scrolls
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
search
()
{
s
ubmitS
earch
()
{
let
vm
=
this
vm
.
p
agenum
=
1
vm
.
submitP
agenum
=
1
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
pagenum
:
vm
.
submitPagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
lists
vm
.
submitLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
approvedLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
if
(
vm
.
num
===
1
)
{
vm
.
showLists
=
vm
.
submitLists
}
else
{
vm
.
showLists
=
vm
.
approvedLists
}
if
(
vm
.
lists
.
length
>=
0
&&
vm
.
lists
.
length
<
10
)
{
// console.log(res.lists)
vm
.
submitLists
=
res
.
lists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
approvedearch
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
vm
.
approvedPagenum
=
1
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
approvedPagenum
,
confirm_status
:
'APPROVED'
,
searchInput
:
vm
.
searchInput
,
}
// vm.hlsPopup.showLoading('数据加载中')
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
approvedLists
=
res
.
lists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scrolls
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scrolls
.
update
(
false
)
}
})
},
search
()
{
this
.
submitSearch
()
setTimeout
(
this
.
approvedearch
,
1000
)
},
goDetails
(
item
)
{
this
.
$router
.
push
({
...
...
src/pages/distributorSign/contract-list.vue
View file @
37f2c644
...
...
@@ -18,13 +18,39 @@
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
</div>
<scroll
v-if=
"tabNum === 0"
ref=
"scroll"
:updateData=
"[s
how
Lists]"
:updateData=
"[s
ubmit
Lists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in showLists"
:key=
"index"
class=
"contract-lists"
>
<div
v-for=
"(item,index) in submitLists"
: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/distributorSign/goDetails.png"
alt=
""
class=
"arrow"
>
</div>
<div
class=
"box"
>
<div><p>
承租人
</p><p>
{{
item
.
bp_name
}}
</p></div>
<div><p>
合同租金
</p><p
class=
"money"
>
{{
item
.
total_price
|
currency
}}
</p></div>
<div><p>
申请时间
</p><p>
{{
dateConverse
(
item
.
confirm_start_date
)
}}
</p></div>
</div>
</div>
</div>
</scroll>
<scroll
v-if=
"tabNum === 1"
ref=
"scrolls"
:updateData=
"[approvedLists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"wrap"
>
<div
v-for=
"(item,index) in approvedLists"
:key=
"index"
class=
"contract-lists"
>
<div
class=
"pro-code"
@
click=
"goDetails(item)"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<p>
...
...
@@ -55,20 +81,28 @@ export default {
return
{
tabNum
:
null
,
pagenum
:
1
,
submitPagenum
:
1
,
approvedPagenum
:
1
,
searchInput
:
''
,
lists
:
[],
showLists
:
[],
submitLists
:
[],
approvedLists
:
[],
submitFlag
:
false
,
approvedFlag
:
false
,
}
},
watch
:
{
'tabNum'
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
===
0
)
{
this
.
showLists
=
this
.
submitLists
if
(
!
this
.
submitFlag
)
{
this
.
getLists
()
}
}
else
if
(
newVal
===
1
)
{
this
.
showLists
=
this
.
approvedLists
if
(
!
this
.
approvedFlag
)
{
this
.
getLists
()
}
}
},
immediate
:
true
,
...
...
@@ -85,27 +119,29 @@ export default {
},
created
()
{
this
.
tabNum
=
0
this
.
getLists
()
//
this.getLists()
},
methods
:
{
// 查询签约列表
getLists
()
{
let
vm
=
this
if
(
vm
.
tabNum
===
0
)
{
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
pagesize
:
10
,
pagenum
:
vm
.
p
agenum
,
pagenum
:
vm
.
submitP
agenum
,
searchInput
:
vm
.
searchInput
,
confirm_status
:
'SUBMIT'
,
user_phone
:
window
.
localStorage
.
user_phone
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
vm
.
submitLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
approvedLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
vm
.
showLists
=
vm
.
submitLists
console
.
log
(
res
.
lists
)
vm
.
submitLists
=
res
.
lists
vm
.
submitFlag
=
true
//
vm.showLists = vm.submitLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
...
@@ -115,15 +151,43 @@ export default {
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
else
if
(
vm
.
tabNum
===
1
)
{
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
pagesize
:
10
,
pagenum
:
vm
.
approvedPagenum
,
searchInput
:
vm
.
searchInput
,
confirm_status
:
'APPROVED'
,
user_phone
:
window
.
localStorage
.
user_phone
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
console
.
log
(
res
.
lists
)
vm
.
approvedLists
=
res
.
lists
vm
.
approvedFlag
=
true
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scrolls
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scrolls
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
loadMore
()
{
let
vm
=
this
vm
.
pagenum
++
if
(
vm
.
tabNum
===
0
)
{
vm
.
submitPagenum
++
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
pagenum
:
vm
.
submitPagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
...
...
@@ -136,56 +200,104 @@ export default {
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
l
ists
.
push
(
array
[
index
])
vm
.
submitL
ists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
l
ists
.
push
(
array
[
index
])
vm
.
submitL
ists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
vm
.
submitLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
approvedLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
if
(
vm
.
tabNum
===
0
)
{
vm
.
showLists
=
vm
.
submitLists
}
else
{
vm
.
showLists
=
vm
.
approvedLists
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
else
if
(
vm
.
tabNum
===
1
)
{
vm
.
approvedPagenum
++
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
approvedPagenum
,
confirm_status
:
'APPROVED'
,
searchInput
:
vm
.
searchInput
,
}
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
.
scrolls
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scrolls
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
approvedLists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scrolls
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
search
()
{
s
ubmitS
earch
()
{
let
vm
=
this
vm
.
p
agenum
=
1
vm
.
submitP
agenum
=
1
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
pagenum
:
vm
.
submitPagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
lists
vm
.
submitLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
approvedLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
if
(
vm
.
tabNum
===
0
)
{
vm
.
showLists
=
vm
.
submitLists
}
else
{
vm
.
showLists
=
vm
.
approvedLists
}
if
(
vm
.
lists
.
length
>=
0
&&
vm
.
lists
.
length
<
10
)
{
// console.log(res.lists)
vm
.
submitLists
=
res
.
lists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
}
})
},
approvedearch
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
vm
.
approvedPagenum
=
1
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagenum
:
vm
.
approvedPagenum
,
confirm_status
:
'APPROVED'
,
searchInput
:
vm
.
searchInput
,
}
// vm.hlsPopup.showLoading('数据加载中')
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
// vm.hlsPopup.hideLoading()
// console.log(res.lists)
vm
.
approvedLists
=
res
.
lists
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scrolls
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scrolls
.
update
(
false
)
}
})
},
search
()
{
this
.
submitSearch
()
setTimeout
(
this
.
approvedearch
,
1000
)
},
goDetails
(
item
)
{
window
.
sessionStorage
.
setItem
(
'confirm_id'
,
item
.
confirm_id
)
window
.
sessionStorage
.
setItem
(
'bp_class'
,
item
.
bp_class
)
...
...
src/pages/financingTrial/financing-trial.vue
View file @
37f2c644
...
...
@@ -2,7 +2,7 @@
* @Descrip 融资试算
* @Author: your name
* @Date: 2019-09-29 17:09:49
* @LastEditTime: 2019-11-22 09:
15:25
* @LastEditTime: 2019-11-22 09:
28:00
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -22,6 +22,7 @@
ref=
"scroll"
:updateData=
"[lists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<section
v-for=
"(item,index) in lists"
:key=
"index"
>
<div
class=
"descript"
@
click=
"goDetails(item.product_plan_id)"
>
...
...
@@ -147,7 +148,11 @@ export default {
})
}
else
{
let
url
=
$config
.
basePath
+
'prd_calculation_query'
let
param
=
{}
let
param
=
{
pagesize
:
10
,
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
...
...
src/pages/productQuery/product-list.vue
View file @
37f2c644
...
...
@@ -177,7 +177,6 @@ export default {
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
console
.
log
(
res
)
vm
.
lists
=
res
.
lists
vm
.
lists
.
forEach
(
item
=>
{
item
[
'url'
]
=
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
...
...
src/pages/productQuery/query-home.vue
View file @
37f2c644
...
...
@@ -2,7 +2,7 @@
* @Descrip: 查询首页
* @Author: your name
* @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-11-2
1 16:51:39
* @LastEditTime: 2019-11-2
2 09:45:40
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -13,12 +13,16 @@
<span>
产品选择
</span>
</div>
</h-header>
<h-content>
<!-- 搜索 -->
<div
class=
"search has-header"
>
<input
type=
"text"
placeholder=
"请输入产品类别/产品线"
>
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入产品类别/产品线"
>
</div>
<scroll
ref=
"scrollLists"
>
<scroll
ref=
"scrollLists"
:updateData=
"[prolists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"scroll-box"
>
<div
v-for=
"(item,index) in prolists"
:key=
"index"
class=
"wrap"
>
...
...
@@ -44,7 +48,6 @@
</div>
</div>
</scroll>
</h-content>
</h-view>
</
template
>
...
...
@@ -57,13 +60,27 @@ export default {
divisionList
:
[],
list_flag
:
false
,
factory_bp_id
:
''
,
searchInput
:
''
,
// 搜索内容
pagenum
:
1
,
}
},
computed
:
{},
watch
:
{},
watch
:
{
searchInput
()
{
let
vm
=
this
if
(
vm
.
timeout
)
{
clearTimeout
(
vm
.
timeout
)
}
vm
.
timeout
=
setTimeout
(()
=>
{
vm
.
search
()
},
1000
)
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
if
(
from
.
name
===
'HomePage'
)
{
next
(
vm
=>
{
vm
.
searchInput
=
''
vm
.
pagenum
=
1
vm
.
proQuery
()
})
}
...
...
@@ -71,16 +88,27 @@ export default {
},
methods
:
{
// 产品查询
//
初始
产品查询
proQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_type_list'
let
param
=
{
}
let
param
=
{
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
prolists
=
res
.
lists
if
(
vm
.
prolists
.
length
===
0
)
{
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
vm
.
prolists
.
length
>
0
&&
vm
.
prolists
.
length
<
10
)
{
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
vm
.
prolists
.
length
===
10
)
{
vm
.
$refs
.
scrollLists
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -94,6 +122,60 @@ export default {
})
},
loadMore
()
{
let
vm
=
this
vm
.
pagenum
=
vm
.
pagenum
+
1
let
url
=
$config
.
basePath
+
'prd_product_type_list'
let
param
=
{
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
let
returnData
=
[]
if
(
res
.
result
===
'S'
)
{
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
prolists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
prolists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scrollLists
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
// 搜索
search
()
{
let
vm
=
this
vm
.
pagenum
=
1
let
url
=
$config
.
basePath
+
'prd_product_type_list'
let
param
=
{
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
searchInput
:
vm
.
searchInput
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
prolists
=
res
.
lists
if
(
vm
.
prolists
.
length
>=
0
&&
vm
.
prolists
.
length
<
10
)
{
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scrollLists
.
update
(
false
)
}
})
},
// 产品线查询val=主机厂id,ind=产品列表索引
queryDivision
(
val
,
ind
)
{
let
vm
=
this
...
...
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