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
6b58d875
Commit
6b58d875
authored
Nov 22, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://hel.hand-china.com/xugong/hls-xcmg-vue-app
into develop
parents
d8673f10
c574939b
Pipeline
#3738
canceled with stages
Changes
11
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
599 additions
and
226 deletions
+599
-226
repay-detail.vue
src/pages/contractInquire/repay-detail.vue
+2
-2
repay-details.vue
src/pages/contractRepayment/repay-details.vue
+53
-30
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
contract-record.vue
src/pages/pay/firstPay/contract-record.vue
+1
-1
first-pay.vue
src/pages/pay/marginPay/first-pay.vue
+35
-1
product-list.vue
src/pages/productQuery/product-list.vue
+0
-1
query-home.vue
src/pages/productQuery/query-home.vue
+111
-29
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+17
-10
enterprise.vue
src/pages/userBind/org/enterprise.vue
+6
-6
No files found.
src/pages/contractInquire/repay-detail.vue
View file @
6b58d875
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @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
* @LastEditors: Please set LastEditors
* @Description: 合同查询--明细
* @Description: 合同查询--明细
* @FilePath:
* @FilePath:
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
</div>
</div>
</div>
</div>
<div
slot=
"content"
>
<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)"
>
<div
class=
"plan"
@
click=
"toRepayPlans(item.contract_id)"
>
<img
src=
"@/assets/contractRepayment/plan.png"
alt=
""
>
<img
src=
"@/assets/contractRepayment/plan.png"
alt=
""
>
<span>
还款计划
</span>
<span>
还款计划
</span>
...
...
src/pages/contractRepayment/repay-details.vue
View file @
6b58d875
...
@@ -41,6 +41,9 @@
...
@@ -41,6 +41,9 @@
</list-item>
</list-item>
<div
class=
"header"
>
设备清单
</div>
<div
class=
"header"
>
设备清单
</div>
<scroll
ref=
"scroll"
:updateData=
"[lists]"
:pullUp=
"true"
@
pullingUp=
"getEquipment"
>
<list-item
:item-height=
"104"
class=
"equipment-list"
>
<list-item
:item-height=
"104"
class=
"equipment-list"
>
<item
v-for=
"(item,index) in lists"
:proportion=
"[2,1]"
:key=
"index"
>
<item
v-for=
"(item,index) in lists"
:proportion=
"[2,1]"
:key=
"index"
>
<div
slot=
"name"
class=
"parameters"
>
<div
slot=
"name"
class=
"parameters"
>
...
@@ -70,7 +73,7 @@
...
@@ -70,7 +73,7 @@
</div>
</div>
</item>
</item>
</list-item>
</list-item>
</h-content>
</
scroll></
h-content>
</h-view>
</h-view>
</
template
>
</
template
>
...
@@ -82,7 +85,7 @@ export default {
...
@@ -82,7 +85,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
overdue_status
:
this
.
$route
.
params
.
overdue_status
,
pagenum
:
1
,
detailInfo
:
{
detailInfo
:
{
project_number
:
''
,
project_number
:
''
,
agent_bp_name
:
''
,
agent_bp_name
:
''
,
...
@@ -100,6 +103,8 @@ export default {
...
@@ -100,6 +103,8 @@ export default {
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
next
(
vm
=>
{
if
(
from
.
name
===
'ContractRepayment'
)
{
if
(
from
.
name
===
'ContractRepayment'
)
{
vm
.
pagenum
=
1
vm
.
lists
=
[]
vm
.
getDetail
()
vm
.
getDetail
()
vm
.
getEquipment
()
vm
.
getEquipment
()
}
}
...
@@ -111,12 +116,30 @@ export default {
...
@@ -111,12 +116,30 @@ export default {
let
url
=
process
.
env
.
basePath
+
'con_equip_list'
let
url
=
process
.
env
.
basePath
+
'con_equip_list'
let
param
=
{
let
param
=
{
project_id
:
this
.
$route
.
params
.
project_id
,
project_id
:
this
.
$route
.
params
.
project_id
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
}
}
hlsPopup
.
showLoading
(
'请稍候'
)
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
let
returnData
=
[]
returnData
=
res
.
lists
if
(
returnData
.
length
===
0
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
pagenum
++
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
pagenum
++
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
...
...
src/pages/contractSigning/contract-signing.vue
View file @
6b58d875
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @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
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
-->
-->
...
@@ -22,15 +22,41 @@
...
@@ -22,15 +22,41 @@
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
</div>
</div>
<!--
<h-content
>
-->
<scroll
<scroll
v-if=
"num === 1"
ref=
"scroll"
ref=
"scroll"
:updateData=
"[s
how
Lists]"
:updateData=
"[s
ubmit
Lists]"
:pullUp=
"true"
:pullUp=
"true"
@
pullingUp=
"loadMore"
@
pullingUp=
"loadMore"
>
>
<div
class=
"wrap"
>
<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)"
>
<div
class=
"pro-code"
@
click=
"goDetails(item)"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<p>
<p>
...
@@ -61,6 +87,8 @@ export default {
...
@@ -61,6 +87,8 @@ export default {
return
{
return
{
num
:
null
,
num
:
null
,
pagenum
:
1
,
pagenum
:
1
,
submitPagenum
:
1
,
approvedPagenum
:
1
,
searchInput
:
''
,
searchInput
:
''
,
check1
:
Check1
,
check1
:
Check1
,
check2
:
Check2
,
check2
:
Check2
,
...
@@ -71,15 +99,21 @@ export default {
...
@@ -71,15 +99,21 @@ export default {
approvedLists
:
[],
// 已签约
approvedLists
:
[],
// 已签约
showLists
:
[],
showLists
:
[],
lists
:
[],
lists
:
[],
submitFlag
:
false
,
approvedFlag
:
false
,
}
}
},
},
watch
:
{
watch
:
{
'num'
:
{
'num'
:
{
handler
(
newVal
,
oldVal
)
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
===
1
)
{
if
(
newVal
===
1
)
{
this
.
showLists
=
this
.
submitLists
if
(
!
this
.
submitFlag
)
{
this
.
contractList
()
}
}
else
if
(
newVal
===
2
)
{
}
else
if
(
newVal
===
2
)
{
this
.
showLists
=
this
.
approvedLists
if
(
!
this
.
approvedFlag
)
{
this
.
contractList
()
}
}
}
},
},
immediate
:
true
,
immediate
:
true
,
...
@@ -105,6 +139,8 @@ export default {
...
@@ -105,6 +139,8 @@ export default {
if
(
from
.
name
===
'MyInfo'
)
{
if
(
from
.
name
===
'MyInfo'
)
{
vm
.
num
=
1
vm
.
num
=
1
vm
.
pagenum
=
1
vm
.
pagenum
=
1
vm
.
submitPagenum
=
1
vm
.
approvedPagenum
=
1
vm
.
searchInput
=
''
vm
.
searchInput
=
''
vm
.
user_bp_type
=
vm
.
$route
.
params
.
user_bp_type
vm
.
user_bp_type
=
vm
.
$route
.
params
.
user_bp_type
}
}
...
@@ -119,21 +155,21 @@ export default {
...
@@ -119,21 +155,21 @@ export default {
// 合同查询
// 合同查询
contractList
()
{
contractList
()
{
let
vm
=
this
let
vm
=
this
if
(
vm
.
num
===
1
)
{
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
pagenum
:
vm
.
pagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
searchInput
:
vm
.
searchInput
,
}
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
vm
.
showLists
=
res
.
lists
vm
.
submitLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
submitFlag
=
true
vm
.
approvedLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
vm
.
showLists
=
vm
.
submitLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
@@ -143,16 +179,44 @@ export default {
...
@@ -143,16 +179,44 @@ export default {
hlsPopup
.
showLongCenter
(
res
.
message
)
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
()
{
loadMore
()
{
let
vm
=
this
let
vm
=
this
vm
.
pagenum
++
if
(
vm
.
num
===
1
)
{
vm
.
submitPagenum
++
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
pagenum
:
vm
.
submitPagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
searchInput
:
vm
.
searchInput
,
}
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
...
@@ -165,55 +229,102 @@ export default {
...
@@ -165,55 +229,102 @@ export default {
vm
.
$refs
.
scroll
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
l
ists
.
push
(
array
[
index
])
vm
.
submitL
ists
.
push
(
array
[
index
])
})
})
vm
.
$refs
.
scroll
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
l
ists
.
push
(
array
[
index
])
vm
.
submitL
ists
.
push
(
array
[
index
])
})
})
vm
.
$refs
.
scroll
.
update
(
false
)
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
{
}
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
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
})
})
}
},
},
search
()
{
s
ubmitS
earch
()
{
let
vm
=
this
let
vm
=
this
vm
.
p
agenum
=
1
vm
.
submitP
agenum
=
1
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
pagenum
:
vm
.
submitPagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
searchInput
:
vm
.
searchInput
,
}
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
lists
// console.log(res.lists)
vm
.
submitLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
submitLists
=
res
.
lists
vm
.
approvedLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
if
(
vm
.
num
===
1
)
{
vm
.
showLists
=
vm
.
submitLists
}
else
{
vm
.
showLists
=
vm
.
approvedLists
}
if
(
vm
.
lists
.
length
>=
0
&&
vm
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
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
)
{
goDetails
(
item
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
src/pages/distributorSign/contract-list.vue
View file @
6b58d875
...
@@ -18,13 +18,39 @@
...
@@ -18,13 +18,39 @@
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入合同号/承租人名称"
>
</div>
</div>
<scroll
<scroll
v-if=
"tabNum === 0"
ref=
"scroll"
ref=
"scroll"
:updateData=
"[s
how
Lists]"
:updateData=
"[s
ubmit
Lists]"
:pullUp=
"true"
:pullUp=
"true"
@
pullingUp=
"loadMore"
@
pullingUp=
"loadMore"
>
>
<div
class=
"wrap"
>
<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)"
>
<div
class=
"pro-code"
@
click=
"goDetails(item)"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<img
src=
"@/assets/distributorSign/fileIcon.png"
alt=
""
class=
"file-icon"
>
<p>
<p>
...
@@ -55,20 +81,28 @@ export default {
...
@@ -55,20 +81,28 @@ export default {
return
{
return
{
tabNum
:
null
,
tabNum
:
null
,
pagenum
:
1
,
pagenum
:
1
,
submitPagenum
:
1
,
approvedPagenum
:
1
,
searchInput
:
''
,
searchInput
:
''
,
lists
:
[],
lists
:
[],
showLists
:
[],
showLists
:
[],
submitLists
:
[],
submitLists
:
[],
approvedLists
:
[],
approvedLists
:
[],
submitFlag
:
false
,
approvedFlag
:
false
,
}
}
},
},
watch
:
{
watch
:
{
'tabNum'
:
{
'tabNum'
:
{
handler
(
newVal
,
oldVal
)
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
===
0
)
{
if
(
newVal
===
0
)
{
this
.
showLists
=
this
.
submitLists
if
(
!
this
.
submitFlag
)
{
this
.
getLists
()
}
}
else
if
(
newVal
===
1
)
{
}
else
if
(
newVal
===
1
)
{
this
.
showLists
=
this
.
approvedLists
if
(
!
this
.
approvedFlag
)
{
this
.
getLists
()
}
}
}
},
},
immediate
:
true
,
immediate
:
true
,
...
@@ -85,27 +119,29 @@ export default {
...
@@ -85,27 +119,29 @@ export default {
},
},
created
()
{
created
()
{
this
.
tabNum
=
0
this
.
tabNum
=
0
this
.
getLists
()
//
this.getLists()
},
},
methods
:
{
methods
:
{
// 查询签约列表
// 查询签约列表
getLists
()
{
getLists
()
{
let
vm
=
this
let
vm
=
this
if
(
vm
.
tabNum
===
0
)
{
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
let
param
=
{
pagesize
:
10
,
pagesize
:
10
,
pagenum
:
vm
.
p
agenum
,
pagenum
:
vm
.
submitP
agenum
,
searchInput
:
vm
.
searchInput
,
searchInput
:
vm
.
searchInput
,
confirm_status
:
'SUBMIT'
,
user_phone
:
window
.
localStorage
.
user_phone
,
user_phone
:
window
.
localStorage
.
user_phone
,
}
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
console
.
log
(
res
.
lists
)
vm
.
submitLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
submitLists
=
res
.
lists
vm
.
approvedLists
=
res
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
vm
.
submitFlag
=
true
vm
.
showLists
=
vm
.
submitLists
//
vm.showLists = vm.submitLists
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
if
(
res
.
lists
.
length
>
0
&&
res
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
res
.
lists
.
length
===
10
)
{
}
else
if
(
res
.
lists
.
length
===
10
)
{
...
@@ -115,15 +151,43 @@ export default {
...
@@ -115,15 +151,43 @@ export default {
hlsPopup
.
showLongCenter
(
res
.
message
)
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
()
{
loadMore
()
{
let
vm
=
this
let
vm
=
this
vm
.
pagenum
++
if
(
vm
.
tabNum
===
0
)
{
vm
.
submitPagenum
++
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
pagenum
:
vm
.
submitPagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
searchInput
:
vm
.
searchInput
,
}
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
...
@@ -136,56 +200,104 @@ export default {
...
@@ -136,56 +200,104 @@ export default {
vm
.
$refs
.
scroll
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
}
else
if
(
returnData
.
length
>
0
&&
returnData
.
length
<
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
l
ists
.
push
(
array
[
index
])
vm
.
submitL
ists
.
push
(
array
[
index
])
})
})
vm
.
$refs
.
scroll
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
l
ists
.
push
(
array
[
index
])
vm
.
submitL
ists
.
push
(
array
[
index
])
})
})
vm
.
$refs
.
scroll
.
update
(
false
)
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
{
}
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
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
})
})
}
},
},
search
()
{
s
ubmitS
earch
()
{
let
vm
=
this
let
vm
=
this
vm
.
p
agenum
=
1
vm
.
submitP
agenum
=
1
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
url
=
$config
.
basePath
+
'prj_confirm_list_query'
let
param
=
{
let
param
=
{
user_phone
:
window
.
localStorage
.
user_phone
,
user_phone
:
window
.
localStorage
.
user_phone
,
pagesize
:
10
,
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
pagenum
:
vm
.
submitPagenum
,
confirm_status
:
'SUBMIT'
,
searchInput
:
vm
.
searchInput
,
searchInput
:
vm
.
searchInput
,
}
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
vm
.
lists
=
res
.
lists
// console.log(res.lists)
vm
.
submitLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'SUBMIT'
)
vm
.
submitLists
=
res
.
lists
vm
.
approvedLists
=
vm
.
lists
.
filter
(
item
=>
item
.
confirm_status
===
'APPROVED'
)
if
(
res
.
lists
.
length
>=
0
&&
res
.
lists
.
length
<
10
)
{
if
(
vm
.
tabNum
===
0
)
{
vm
.
showLists
=
vm
.
submitLists
}
else
{
vm
.
showLists
=
vm
.
approvedLists
}
if
(
vm
.
lists
.
length
>=
0
&&
vm
.
lists
.
length
<
10
)
{
vm
.
$refs
.
scroll
.
update
(
true
)
vm
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
}
else
if
(
res
.
lists
.
length
===
10
)
{
vm
.
$refs
.
scroll
.
update
(
false
)
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
)
{
goDetails
(
item
)
{
window
.
sessionStorage
.
setItem
(
'confirm_id'
,
item
.
confirm_id
)
window
.
sessionStorage
.
setItem
(
'confirm_id'
,
item
.
confirm_id
)
window
.
sessionStorage
.
setItem
(
'bp_class'
,
item
.
bp_class
)
window
.
sessionStorage
.
setItem
(
'bp_class'
,
item
.
bp_class
)
...
...
src/pages/financingTrial/financing-trial.vue
View file @
6b58d875
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Descrip 融资试算
* @Descrip 融资试算
* @Author: your name
* @Author: your name
* @Date: 2019-09-29 17:09:49
* @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
* @LastEditors: Please set LastEditors
-->
-->
<
template
>
<
template
>
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
ref=
"scroll"
ref=
"scroll"
:updateData=
"[lists]"
:updateData=
"[lists]"
:pullUp=
"true"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
>
<section
v-for=
"(item,index) in lists"
:key=
"index"
>
<section
v-for=
"(item,index) in lists"
:key=
"index"
>
<div
class=
"descript"
@
click=
"goDetails(item.product_plan_id)"
>
<div
class=
"descript"
@
click=
"goDetails(item.product_plan_id)"
>
...
@@ -147,7 +148,11 @@ export default {
...
@@ -147,7 +148,11 @@ export default {
})
})
}
else
{
}
else
{
let
url
=
$config
.
basePath
+
'prd_calculation_query'
let
url
=
$config
.
basePath
+
'prd_calculation_query'
let
param
=
{}
let
param
=
{
pagesize
:
10
,
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
...
...
src/pages/pay/firstPay/contract-record.vue
View file @
6b58d875
...
@@ -122,7 +122,7 @@ export default {
...
@@ -122,7 +122,7 @@ export default {
vm
.
prj_lists
=
res
.
prj_lists
vm
.
prj_lists
=
res
.
prj_lists
vm
.
prj_lists
.
forEach
(
i
=>
{
vm
.
prj_lists
.
forEach
(
i
=>
{
i
.
cf_lists
.
forEach
(
j
=>
{
i
.
cf_lists
.
forEach
(
j
=>
{
let
num
=
(
parseFloat
(
j
.
due_amount
)
-
parseFloat
(
j
.
received_amount
)).
toFixed
(
2
)
let
num
=
parseFloat
(
j
.
due_amount
)
-
parseFloat
(
j
.
received_amount
)
vm
.
$set
(
j
,
'amount'
,
num
)
vm
.
$set
(
j
,
'amount'
,
num
)
})
})
})
})
...
...
src/pages/pay/marginPay/first-pay.vue
View file @
6b58d875
...
@@ -27,14 +27,21 @@
...
@@ -27,14 +27,21 @@
</div>
</div>
<div
class=
"pay-input"
>
<div
class=
"pay-input"
>
<span>
应还保证金
</span>
<span>
应还保证金
</span>
<input
v-model=
"money"
type=
"
text
"
placeholder=
"请输入支付金额"
>
<input
v-model=
"money"
type=
"
number
"
placeholder=
"请输入支付金额"
>
<!--
<div
@
click=
"createOrder"
>
<!--
<div
@
click=
"createOrder"
>
<img
src=
"@/assets/payment/into.png"
>
<img
src=
"@/assets/payment/into.png"
>
</div>
-->
</div>
-->
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"write"
>
<div
class=
"box"
>
<span>
备注
</span>
<textarea
placeholder=
"请输入您的备注……"
/>
</div>
</div>
</section>
</section>
<div
class=
"prompt"
>
<div
class=
"prompt"
>
<div>
<div>
<img
src=
"@/assets/payment/prompt.png"
alt
>
<img
src=
"@/assets/payment/prompt.png"
alt
>
...
@@ -82,6 +89,32 @@ export default {
...
@@ -82,6 +89,32 @@ export default {
</
script
>
</
script
>
<
style
lang=
'less'
>
<
style
lang=
'less'
>
#first-pay {
#first-pay {
.write {
width: 96%;
height: 172px;
background-color: #fff;
margin-top:10px;
box-shadow: 0 1px 3px 2px rgba(168, 168, 168, 0.14);
span {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
letter-spacing: 0;
}
.box {
width: 343px;
margin: 0 auto;
padding-top: 8px;
textarea {
width: 343px;
height: 119px;
margin-top: 12.5px;
font-family: PingFangSC-Regular;
font-size: 13px;
letter-spacing: 0;
}
}
}
.top-head {
.top-head {
width: 100%;
width: 100%;
height: 142px;
height: 142px;
...
@@ -117,6 +150,7 @@ export default {
...
@@ -117,6 +150,7 @@ export default {
height: 94px;
height: 94px;
display: flex;
display: flex;
justify-content: center;
justify-content: center;
flex-flow: row wrap;
.pos {
.pos {
width: 96%;
width: 96%;
height: 100%;
height: 100%;
...
...
src/pages/productQuery/product-list.vue
View file @
6b58d875
...
@@ -177,7 +177,6 @@ export default {
...
@@ -177,7 +177,6 @@ export default {
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
console
.
log
(
res
)
vm
.
lists
=
res
.
lists
vm
.
lists
=
res
.
lists
vm
.
lists
.
forEach
(
item
=>
{
vm
.
lists
.
forEach
(
item
=>
{
item
[
'url'
]
=
process
.
env
.
filePath
+
'attachment_id='
+
item
.
product_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
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 @
6b58d875
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Descrip: 查询首页
* @Descrip: 查询首页
* @Author: your name
* @Author: your name
* @Date: 2019-10-15 14:30:00
* @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
* @LastEditors: Please set LastEditors
-->
-->
<
template
>
<
template
>
...
@@ -13,12 +13,16 @@
...
@@ -13,12 +13,16 @@
<span>
产品选择
</span>
<span>
产品选择
</span>
</div>
</div>
</h-header>
</h-header>
<h-content>
<!-- 搜索 -->
<!-- 搜索 -->
<div
class=
"search has-header"
>
<div
class=
"search has-header"
>
<input
type=
"text"
placeholder=
"请输入产品类别/产品线"
>
<input
v-model=
"searchInput"
type=
"text"
placeholder=
"请输入产品类别/产品线"
>
</div>
</div>
<scroll
ref=
"scrollLists"
>
<scroll
ref=
"scrollLists"
:updateData=
"[prolists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"scroll-box"
>
<div
class=
"scroll-box"
>
<div
v-for=
"(item,index) in prolists"
:key=
"index"
class=
"wrap"
>
<div
v-for=
"(item,index) in prolists"
:key=
"index"
class=
"wrap"
>
...
@@ -44,7 +48,6 @@
...
@@ -44,7 +48,6 @@
</div>
</div>
</div>
</div>
</scroll>
</scroll>
</h-content>
</h-view>
</h-view>
</
template
>
</
template
>
...
@@ -57,13 +60,27 @@ export default {
...
@@ -57,13 +60,27 @@ export default {
divisionList
:
[],
divisionList
:
[],
list_flag
:
false
,
list_flag
:
false
,
factory_bp_id
:
''
,
factory_bp_id
:
''
,
searchInput
:
''
,
// 搜索内容
pagenum
:
1
,
}
}
},
},
computed
:
{},
computed
:
{},
watch
:
{},
watch
:
{
searchInput
()
{
let
vm
=
this
if
(
vm
.
timeout
)
{
clearTimeout
(
vm
.
timeout
)
}
vm
.
timeout
=
setTimeout
(()
=>
{
vm
.
search
()
},
1000
)
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
if
(
from
.
name
===
'HomePage'
)
{
if
(
from
.
name
===
'HomePage'
)
{
next
(
vm
=>
{
next
(
vm
=>
{
vm
.
searchInput
=
''
vm
.
pagenum
=
1
vm
.
proQuery
()
vm
.
proQuery
()
})
})
}
}
...
@@ -71,16 +88,27 @@ export default {
...
@@ -71,16 +88,27 @@ export default {
},
},
methods
:
methods
:
{
{
// 产品查询
//
初始
产品查询
proQuery
()
{
proQuery
()
{
let
vm
=
this
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_type_list'
let
url
=
$config
.
basePath
+
'prd_product_type_list'
let
param
=
{
}
let
param
=
{
searchInput
:
vm
.
searchInput
,
pagenum
:
vm
.
pagenum
,
pagesize
:
10
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
prolists
=
res
.
lists
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
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
...
@@ -94,6 +122,60 @@ export default {
...
@@ -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=产品列表索引
// 产品线查询val=主机厂id,ind=产品列表索引
queryDivision
(
val
,
ind
)
{
queryDivision
(
val
,
ind
)
{
let
vm
=
this
let
vm
=
this
...
...
src/pages/userBind/np/naturePerson.vue
View file @
6b58d875
...
@@ -311,7 +311,7 @@
...
@@ -311,7 +311,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
v-if=
"
from&&isApproved&&isAGENT
"
class=
"tax"
@
click=
"changeUndertake"
>
<div
v-if=
"
(from&&isApproved&&isAGENT)||fromPromisePay
"
class=
"tax"
@
click=
"changeUndertake"
>
<img
src=
"@/assets/userBind/tax.png"
class=
"left-img"
>
<img
src=
"@/assets/userBind/tax.png"
class=
"left-img"
>
<div>
<div>
<span>
缴纳保证金
</span>
<span>
缴纳保证金
</span>
...
@@ -405,6 +405,7 @@ export default {
...
@@ -405,6 +405,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
list
:
{},
list
:
{},
fromPromisePay
:
false
,
hasSP
:
false
,
hasSP
:
false
,
isPaople
:
false
,
isPaople
:
false
,
isLesons
:
false
,
isLesons
:
false
,
...
@@ -538,13 +539,20 @@ export default {
...
@@ -538,13 +539,20 @@ export default {
}
}
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
if
(
from
.
fullPath
===
'/tab/my-info'
||
from
.
fullPath
===
'/margin-first-pay'
)
{
// 绑定查询入口
if
(
from
.
fullPath
===
'/tab/my-info'
)
{
// 绑定查询入口
next
(
vm
=>
{
next
(
vm
=>
{
vm
.
from
=
true
vm
.
from
=
true
vm
.
basicInfoQuery
()
vm
.
basicInfoQuery
()
vm
.
loadItemList
()
// 附件查询
vm
.
loadItemList
()
// 附件查询
vm
.
getBankInfo
()
vm
.
getBankInfo
()
})
})
}
else
if
(
from
.
fullPath
===
'/margin-first-pay'
)
{
next
(
vm
=>
{
vm
.
fromPromisePay
=
true
vm
.
basicInfoQuery
()
vm
.
loadItemList
()
// 附件查询
vm
.
getBankInfo
()
})
}
}
next
()
next
()
},
},
...
@@ -556,7 +564,7 @@ export default {
...
@@ -556,7 +564,7 @@ export default {
let
vm
=
this
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_np_info_query'
let
url
=
process
.
env
.
basePath
+
'bp_np_info_query'
let
param
=
{
let
param
=
{
bp_id
:
vm
.
$route
.
params
.
bp_id
,
bp_id
:
vm
.
fromPromisePay
?
window
.
sessionStorage
.
getItem
(
'bp_id'
)
:
vm
.
$route
.
params
.
bp_id
,
}
}
hlsPopup
.
showLoading
(
'请稍候'
)
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
...
@@ -627,7 +635,7 @@ export default {
...
@@ -627,7 +635,7 @@ export default {
},
},
loadItemList
()
{
loadItemList
()
{
let
vm
=
this
let
vm
=
this
let
bpId
=
vm
.
from
?
vm
.
$route
.
params
.
bp_id
:
window
.
localStorage
.
getItem
(
'user
_id'
)
let
bpId
=
vm
.
from
?
vm
.
$route
.
params
.
bp_id
:
window
.
sessionStorage
.
getItem
(
'bp
_id'
)
let
url
=
process
.
env
.
basePath
+
'prj_cdd_check_list'
let
url
=
process
.
env
.
basePath
+
'prj_cdd_check_list'
let
param
=
{
let
param
=
{
master
:
{
master
:
{
...
@@ -746,7 +754,7 @@ export default {
...
@@ -746,7 +754,7 @@ export default {
vm
.
hlsPopup
.
showSuccess
(
'保存成功'
)
vm
.
hlsPopup
.
showSuccess
(
'保存成功'
)
vm
.
isSave
=
true
vm
.
isSave
=
true
window
.
localStorage
.
setItem
(
'user_id'
,
res
.
bp_id
)
window
.
localStorage
.
setItem
(
'user_id'
,
res
.
bp_id
)
window
.
sessionStorage
.
setItem
(
'
user
_id'
,
res
.
bp_id
)
window
.
sessionStorage
.
setItem
(
'
bp
_id'
,
res
.
bp_id
)
window
.
sessionStorage
.
setItem
(
'bp_name'
,
vm
.
baseInfo
.
bp_name
)
window
.
sessionStorage
.
setItem
(
'bp_name'
,
vm
.
baseInfo
.
bp_name
)
window
.
localStorage
.
setItem
(
'bp_name'
,
vm
.
baseInfo
.
bp_name
)
window
.
localStorage
.
setItem
(
'bp_name'
,
vm
.
baseInfo
.
bp_name
)
return
res
.
bp_id
return
res
.
bp_id
...
@@ -1144,7 +1152,7 @@ export default {
...
@@ -1144,7 +1152,7 @@ export default {
let
url
=
process
.
env
.
basePath
+
'bp_bank_save'
let
url
=
process
.
env
.
basePath
+
'bp_bank_save'
let
param
=
{
let
param
=
{
master
:
{
master
:
{
bp_id
:
this
.
from
?
this
.
$route
.
params
.
bp_id
:
window
.
localStorage
.
getItem
(
'user
_id'
),
bp_id
:
this
.
from
?
this
.
$route
.
params
.
bp_id
:
window
.
sessionStorage
.
getItem
(
'bp
_id'
),
bank_lists
:
this
.
bankList
,
bank_lists
:
this
.
bankList
,
},
},
}
}
...
@@ -1163,7 +1171,7 @@ export default {
...
@@ -1163,7 +1171,7 @@ export default {
})
})
},
},
putData
()
{
putData
()
{
let
bp_id
=
this
.
from
?
this
.
$route
.
params
.
bp_id
:
window
.
localStorage
.
getItem
(
'user
_id'
)
let
bp_id
=
this
.
from
?
this
.
$route
.
params
.
bp_id
:
window
.
sessionStorage
.
getItem
(
'bp
_id'
)
if
(
bp_id
)
{
if
(
bp_id
)
{
this
.
hlsPopup
.
showConfirm
({
this
.
hlsPopup
.
showConfirm
({
title
:
'提示'
,
title
:
'提示'
,
...
@@ -1174,7 +1182,7 @@ export default {
...
@@ -1174,7 +1182,7 @@ export default {
let
url
=
process
.
env
.
basePath
+
'bp_bind_submit'
let
url
=
process
.
env
.
basePath
+
'bp_bind_submit'
let
param
=
{
let
param
=
{
master
:
{
master
:
{
bp_id
:
this
.
from
?
this
.
$route
.
params
.
bp_id
:
window
.
localStorage
.
getItem
(
'user
_id'
),
bp_id
:
this
.
from
?
this
.
$route
.
params
.
bp_id
:
window
.
sessionStorage
.
getItem
(
'bp
_id'
),
company_id
:
'2145'
,
company_id
:
'2145'
,
},
},
}
}
...
@@ -1233,8 +1241,7 @@ export default {
...
@@ -1233,8 +1241,7 @@ export default {
},
},
getBankInfo
()
{
getBankInfo
()
{
let
vm
=
this
let
vm
=
this
// let bpId = window.localStorage.getItem('user_id')
let
id
=
vm
.
from
?
vm
.
$route
.
params
.
bp_id
:
window
.
sessionStorage
.
getItem
(
'bp_id'
)
let
id
=
vm
.
from
?
vm
.
$route
.
params
.
bp_id
:
window
.
localStorage
.
getItem
(
'user_id'
)
let
url
=
process
.
env
.
basePath
+
'bp_bank_query'
let
url
=
process
.
env
.
basePath
+
'bp_bank_query'
let
param
=
{
let
param
=
{
bp_id
:
id
,
bp_id
:
id
,
...
...
src/pages/userBind/org/enterprise.vue
View file @
6b58d875
...
@@ -798,7 +798,7 @@ export default {
...
@@ -798,7 +798,7 @@ export default {
/* if (this.bank_lists.bank_account_name !== this.saveInfo.bp_name) {
/* if (this.bank_lists.bank_account_name !== this.saveInfo.bp_name) {
this.bank_card_flag = false
this.bank_card_flag = false
this.hlsPopup.showLongCenter('企业名称与账户名称不一致')
this.hlsPopup.showLongCenter('企业名称与账户名称不一致')
}*/
}
*/
if
(
this
.
bank_card_flag
)
{
if
(
this
.
bank_card_flag
)
{
this
.
hlsPopup
.
showLoading
(
'请稍后'
)
this
.
hlsPopup
.
showLoading
(
'请稍后'
)
let
id
let
id
...
@@ -1770,14 +1770,14 @@ export default {
...
@@ -1770,14 +1770,14 @@ export default {
buttonArray
:
[
'拍照'
,
'从相册取'
],
buttonArray
:
[
'拍照'
,
'从相册取'
],
callback
:
index
=>
{
callback
:
index
=>
{
if
(
index
===
0
)
{
if
(
index
===
0
)
{
vm
.
imgUploadOpenCamera
(
description
,
check_id
)
vm
.
imgUploadOpenCamera
(
description
,
check_id
)
}
else
{
}
else
{
vm
.
imgUploadTakePicture
(
description
,
check_id
)
vm
.
imgUploadTakePicture
(
description
,
check_id
)
}
}
},
},
})
})
},
},
imgUploadOpenCamera
(
description
,
check_id
)
{
imgUploadOpenCamera
(
description
,
check_id
)
{
let
vm
=
this
let
vm
=
this
let
obj
=
{
let
obj
=
{
'pkvalue'
:
check_id
,
'pkvalue'
:
check_id
,
...
@@ -1806,7 +1806,7 @@ export default {
...
@@ -1806,7 +1806,7 @@ export default {
}
}
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
},
},
imgUploadTakePicture
(
description
,
check_id
)
{
imgUploadTakePicture
(
description
,
check_id
)
{
let
vm
=
this
let
vm
=
this
let
cameraoptions
=
{
let
cameraoptions
=
{
quality
:
100
,
quality
:
100
,
...
...
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