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
d4831045
Commit
d4831045
authored
Jun 07, 2021
by
Hello
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
三期需求修改
parent
a08a43b1
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
773 additions
and
734 deletions
+773
-734
dev.env.js
config/dev.env.js
+1
-1
uat.env.js
config/uat.env.js
+1
-1
my-contract.vue
src/pages/contractCreate/my-contract.vue
+14
-17
sales-info.vue
src/pages/contractCreate/sales-info.vue
+1
-1
contract-records.vue
src/pages/contractInquire/contract-records.vue
+1
-1
repay-detail.vue
src/pages/contractInquire/repay-detail.vue
+497
-444
add-car.vue
src/pages/contractStart/add-car.vue
+1
-1
function-list.vue
src/pages/functionCenter/function-list.vue
+10
-5
message-list.vue
src/pages/messageCenter/message-list.vue
+16
-14
my-info.vue
src/pages/myInfo/my-info.vue
+11
-57
setting.vue
src/pages/myInfo/setting.vue
+4
-4
newslist.vue
src/pages/news/newslist.vue
+11
-10
entity-list.vue
src/pages/productQuery/entity-list.vue
+7
-4
product-detailed.vue
src/pages/productQuery/product-detailed.vue
+2
-1
product-list.vue
src/pages/productQuery/product-list.vue
+1
-1
query-home.vue
src/pages/productQuery/query-home.vue
+180
-169
index.js
src/router/index.js
+1
-1
hlsHttp.js
src/scripts/hlsHttp.js
+12
-0
index.html
www/index.html
+1
-1
yarn.lock
yarn.lock
+1
-1
No files found.
config/dev.env.js
View file @
d4831045
...
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"3.0.
3
"'
currentVersion
:
'"3.0.
6
"'
}
config/uat.env.js
View file @
d4831045
...
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"3.0.
3
"'
currentVersion
:
'"3.0.
6
"'
}
src/pages/contractCreate/my-contract.vue
View file @
d4831045
...
...
@@ -6,37 +6,38 @@
* @Description: In User Settings Edit
-->
<
template
>
<h-view
id=
"
contract-create-lis
t"
>
<h-view
id=
"
my-contrac
t"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<span>
我的合同
</span>
</div>
</h-header>
<div
class=
"my-contractlist"
>
<div
class=
"contract-item"
@
click=
"goSign()"
>
<h-content
class=
"my-contractlist"
>
<div
v-if=
"user_bp_type == 'AGENT' || user_bp_type == 'OFFICE'"
class=
"contract-item"
@
click=
"goCreate()"
>
<img
src=
"@/assets/myInfo/contractCreate.png"
>
<span>
融租方案创建
</span>
</div>
<div
v-if=
"user_bp_type !== 'MANAGER'"
class=
"contract-item"
@
click=
"goSign()"
>
<p
v-if=
"signCount > 0"
:class=
"
{'content-wrap-class-width':signCount > 99, 'content-wrap-class':signCount
<
99
}"
>
{{
signCount
>
99
?
'99+'
:
signCount
}}
</p>
<img
src=
"@/assets/myInfo/unSign.png"
>
<span>
融租方案确认
</span>
</div>
<div
v-if=
"
multipleRole == 'TENANT' || multipleRole == 'GUTA'
|| user_bp_type == 'AGENT'"
class=
"contract-item"
@
click=
"goCarConfirm()"
>
<div
v-if=
"
user_bp_type == 'GUTA'|| user_bp_type == 'TENANT'
|| user_bp_type == 'AGENT'"
class=
"contract-item"
@
click=
"goCarConfirm()"
>
<p
v-if=
"carCount > 0"
:class=
"
{'content-wrap-class-width':carCount > 99, 'content-wrap-class':carCount
<
99
}"
>
{{
carCount
>
99
?
'99+'
:
carCount
}}
</p>
<img
src=
"@/assets/myInfo/carConfirm.png"
>
<span>
合同签订
</span>
</div>
<div
v-if=
"multipleRole == 'AGENT' || (multipleRole == 'OFFICE' || user_bp_type == 'OFFICE')"
class=
"contract-item"
@
click=
"goCreate()"
>
<img
src=
"@/assets/myInfo/contractCreate.png"
>
<span>
融租方案创建
</span>
</div>
<div
v-if=
"multipleRole == 'GUTA'"
class=
"contract-item"
@
click=
"changeContract('GUTA')"
>
<div
v-if=
"user_bp_type == 'GUTA'"
class=
"contract-item"
@
click=
"changeContract('GUTA')"
>
<img
src=
"@/assets/myInfo/under.png"
>
<span>
我担保的合同
</span>
</div>
<div
v-if=
"
multipleRole == 'AGENT' || (multipleRole == 'OFFICE' || user_bp_type == 'OFFICE')
"
class=
"contract-item"
@
click=
"goContract()"
>
<div
v-if=
"
user_bp_type == 'AGENT' || user_bp_type == 'OFFICE' || user_bp_type == 'MANAGER'
"
class=
"contract-item"
@
click=
"goContract()"
>
<img
src=
"@/assets/myInfo/agent.png"
>
<span>
我办理的合同
</span>
</div>
</
div
>
</
h-content
>
</h-view>
</
template
>
...
...
@@ -134,18 +135,14 @@ export default {
})
},
goContract
()
{
if
(
this
.
user_bp_type
===
'OFFICE'
)
{
this
.
changeContract
(
'OFFICE'
)
}
else
{
this
.
changeContract
(
'AGENT'
)
}
this
.
changeContract
(
this
.
user_bp_type
)
},
},
}
</
script
>
<
style
lang=
"less"
type=
"text/less"
>
#
contract-create-lis
t{
#
my-contrac
t{
.my-contractlist {
display: flex;
flex-wrap: wrap;
...
...
src/pages/contractCreate/sales-info.vue
View file @
d4831045
...
...
@@ -576,7 +576,7 @@ export default {
// margin-top:50px;
// }
.scroll-content{
top:100px;
//
top:100px;
}
.date-pic {
height: 17px;
...
...
src/pages/contractInquire/contract-records.vue
View file @
d4831045
...
...
@@ -288,7 +288,7 @@ export default {
let
name
=
''
if
(
vm
.
bp_type
===
'TENANT'
)
{
name
=
'con_contract_list_tenant'
}
else
if
(
vm
.
bp_type
===
'AGENT'
||
vm
.
bp_type
===
'OFFICE'
)
{
}
else
if
(
vm
.
bp_type
===
'AGENT'
||
vm
.
bp_type
===
'OFFICE'
||
vm
.
bp_type
===
'MANAGER'
)
{
name
=
'con_contract_list_saleman'
}
else
if
(
vm
.
bp_type
===
'GUTA'
)
{
name
=
'con_contract_list_guta'
...
...
src/pages/contractInquire/repay-detail.vue
View file @
d4831045
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime : 2019-12-23 14:11:26
* @LastEditors : Please set LastEditors
* @Description: 合同查询--明细
* @FilePath:
-->
<
template
>
<h-view
id=
"repay-detail"
class=
"public-style"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<span>
合同明细
</span>
</div>
</h-header>
<h-content
ref=
"content"
class=
"repay-content"
>
<div
class=
"header"
>
合同单据
<div
class=
"download"
@
click=
"downLoad"
>
电子版下载
<img
src=
"@/assets/contractInquire/download.png"
alt=
""
></div>
</div>
<list-item
:item-height=
"44"
class=
"invoice"
>
<item>
<div
slot=
"name"
>
合同号
</div>
<div
slot=
"content"
>
{{
detailInfo
.
project_number
}}
</div>
</item>
<item>
<div
slot=
"name"
>
{{
detailInfo
.
bp_agent_name
?
'经销商'
:
'办事处'
}}
</div>
<div
slot=
"content"
>
{{
detailInfo
.
bp_agent_name
?
detailInfo
.
bp_agent_name
:
detailInfo
.
office_name
}}
</div>
</item>
<item>
<div
slot=
"name"
>
承租人
</div>
<div
slot=
"content"
>
{{
detailInfo
.
bp_name
}}
</div>
</item>
<item>
<div
slot=
"name"
>
产品名称
</div>
<div
slot=
"content"
>
{{
detailInfo
.
division_n
}}
</div>
</item>
<item>
<div
slot=
"name"
>
产品型号
</div>
<div
slot=
"content"
>
{{
detailInfo
.
product_code
}}
</div>
</item>
<item>
<div
slot=
"name"
>
合同金额
</div>
<div
slot=
"content"
>
{{
detailInfo
.
total_price
|
currency
}}
</div>
</item>
<item>
<div
slot=
"name"
>
商务政策
</div>
<div
slot=
"content"
>
{{
detailInfo
.
product_plan_id_n
}}
</div>
</item>
<item>
<div
slot=
"name"
>
租赁物数量
</div>
<div
slot=
"content"
>
{{
detailInfo
.
product_num
}}
</div>
</item>
</list-item>
<div
class=
"header"
>
设备清单
</div>
<scroll
ref=
"scroll"
:updateData=
"[lists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<list-item
:item-height=
"104"
class=
"equipment-list"
>
<item
v-for=
"(item,index) in lists"
:proportion=
"[2,1]"
:key=
"index"
>
<div
slot=
"name"
class=
"parameters"
>
<div
class=
"list"
>
<p>
设备识别号
</p>
<span
class=
"bold"
>
{{
item
.
product_code
}}
-
{{
index
+
1
|
lengthCheck
}}
</span>
</div>
<div
class=
"list"
>
<p>
发动机号
</p>
<span>
{{
item
.
lease_item_engine_num
}}
</span>
</div>
<div
class=
"list"
>
<p>
车辆型号
</p>
<span>
{{
item
.
vehicle_model
}}
</span>
</div>
<div
class=
"list"
>
<p>
合格证编号
</p>
<span>
{{
item
.
certificate_number
}}
</span>
</div>
</div>
<div
slot=
"content"
>
<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>
</div>
</div>
</item>
</list-item>
</scroll>
</h-content>
</h-view>
</
template
>
<
script
>
export
default
{
name
:
'RepayDetail'
,
filters
:
{
lengthCheck
:
function
(
value
)
{
if
((
value
.
toString
()).
length
===
1
)
{
return
`0
${
value
}
`
}
else
{
return
value
}
},
},
data
()
{
return
{
lists
:
[],
pagenum
:
1
,
hidden
:
false
,
detailInfo
:
{},
fileArray
:
[],
}
},
computed
:
{
},
watch
:
{},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
name
===
'ContractRecords'
)
{
vm
.
pagenum
=
1
vm
.
detailQuery
()
vm
.
equipQuery
()
}
})
},
methods
:
{
// val: contract_id
toRepayPlans
(
val
)
{
this
.
$router
.
push
({
name
:
'RepayPlans'
,
params
:
{
contract_id
:
val
,
lease_num
:
this
.
detailInfo
.
lease_num
,
},
})
},
downLoad
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'get_download_app'
let
param
=
{
project_id
:
vm
.
$route
.
params
.
project_id
,
phone
:
window
.
localStorage
.
user_phone
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
fileArray
=
res
.
info
vm
.
fileArray
.
forEach
(
i
=>
{
cordova
.
InAppBrowser
.
open
(
i
.
fileUrl
,
'_system'
,
'location=yes,hideurlbar=no,toolbarposition=top'
)
})
// vm.pdfDownload()
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
pdfDownload
()
{
// 下载pdf文件
let
vm
=
this
vm
.
fileArray
.
forEach
(
element
=>
{
if
(
element
.
fileUrl
)
{
console
.
log
(
'vm.$refs.pdf'
+
vm
.
$refs
.
pdf
)
// debugger
vm
.
$refs
.
pdf
.
downloadPDF
(
element
.
fileUrl
,
element
.
fileName
)
}
})
},
// 合同明细
detailQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'con_contract_detial'
let
param
=
{
project_id
:
vm
.
$route
.
params
.
project_id
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
detailInfo
=
res
.
info
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
// 设备清单
equipQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'con_equip_list'
let
param
=
{
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
project_id
:
vm
.
$route
.
params
.
project_id
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
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
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
loadMore
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'con_equip_list'
vm
.
pagenum
++
let
param
=
{
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
project_id
:
vm
.
$route
.
params
.
project_id
,
}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
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
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
},
}
</
script
>
<
style
lang=
'less'
>
#repay-detail {
.status{
margin-bottom:20px;
display: inline-block;
}
.red{
color: red;
border-bottom: 1px solid red;
}
.repay-content {
overflow: hidden;
.header {
position: relative;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #1D3FFF;
text-indent: 1em;
border-bottom: 1px solid #F1F0F5;
.download {
position: absolute;
padding-left: 12px;
right: 12px;
top: 8px;
background: #FFFFFF;
border-radius: 5px;
height: 24px;
line-height: 24px;
// width: 93px;
font-family: PingFangSC-Regular;
font-size: 11px;
color: #1D3FFF;
letter-spacing: 0.34px;
img {
position: absolute;
height: 15px;
left: 6px;
top: 6px;
}
}
&:before {
content: "";
position: absolute;
top: 12px;
left: 0;
width: 4px;
height: 16px;
background: #1D3FFF;
}
}
.invoice {
margin-bottom: 0px;
.hls-item{
.contents{
.add-name {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
}
.add-content {
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56,63,69,0.60);
}
}
}
}
.equipment-list {
border-top: none;
background-color: transparent;
.hls-item {
border-top: 1px solid #D9DBDF;
border-bottom: 1px solid #D9DBDF;
background-color: #fff;
margin-bottom: 10px;
.contents {
padding-top: 8px;
.add-name{
display: flex;
flex-direction: column;
.parameters {
width: 100%;
margin-left: -40px;
.list {
display: flex;
margin-bottom:0;
p {
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56,63,69,0.60);
letter-spacing: 0.4px;
text-align: right;
flex: 1;
}
span {
flex:1;
margin-left: 15px;
font-family: PingFangSC-Regular;
font-size: 13px;
color: #383F45;
letter-spacing: 0.4px;
}
span.bold {
font-family: PingFangSC-Semibold;
font-weight: 700;
}
}
}
}
.add-content {
.plan {
position: relative;
width: 100px;
height: 30px;
background: rgba(29, 63, 255,.2);
border-radius: 4px;
img {
height: 14px;
position: absolute;
top: 8px;
left: 12px;
}
span {
font-family: PingFangSC-Regular;
font-size: 13px;
color: #1D3FFF;
letter-spacing: 0.4px;
position: absolute;
top: 5px;
left: 32px;
}
}
}
}
}
}
}
.scrollContent {
padding-bottom: 400px;
}
.tab-style {
width: 100%;
position: absolute;
}
}
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.32rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#repay-detail{
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#repay-detail{
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
</
style
>
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime : 2019-12-23 14:11:26
* @LastEditors : Please set LastEditors
* @Description: 合同查询--明细
* @FilePath:
-->
<
template
>
<h-view
id=
"repay-detail"
class=
"public-style"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<span>
合同明细
</span>
</div>
</h-header>
<div
ref=
"content"
class=
"repay-content"
>
<div
class=
"header"
>
合同单据
<div
class=
"download"
@
click=
"downLoad"
>
电子版下载
<img
src=
"@/assets/contractInquire/download.png"
alt=
""
></div>
</div>
<list-item
:item-height=
"44"
class=
"invoice"
>
<item>
<div
slot=
"name"
>
合同号
</div>
<div
slot=
"content"
>
{{
detailInfo
.
project_number
}}
</div>
</item>
<item>
<div
slot=
"name"
>
{{
detailInfo
.
bp_agent_name
?
'经销商'
:
'办事处'
}}
</div>
<div
slot=
"content"
>
{{
detailInfo
.
bp_agent_name
?
detailInfo
.
bp_agent_name
:
detailInfo
.
office_name
}}
</div>
</item>
<item>
<div
slot=
"name"
>
承租人
</div>
<div
slot=
"content"
>
{{
detailInfo
.
bp_name
}}
</div>
</item>
<item>
<div
slot=
"name"
>
产品名称
</div>
<div
slot=
"content"
>
{{
detailInfo
.
division_n
}}
</div>
</item>
<item>
<div
slot=
"name"
>
产品型号
</div>
<div
slot=
"content"
>
{{
detailInfo
.
product_code
}}
</div>
</item>
<item>
<div
slot=
"name"
>
合同金额
</div>
<div
slot=
"content"
>
{{
detailInfo
.
total_price
|
currency
}}
</div>
</item>
<item>
<div
slot=
"name"
>
商务政策
</div>
<div
slot=
"content"
>
{{
detailInfo
.
product_plan_id_n
}}
</div>
</item>
<item>
<div
slot=
"name"
>
租赁物数量
</div>
<div
slot=
"content"
>
{{
detailInfo
.
product_num
}}
</div>
</item>
</list-item>
</div>
<scroll
ref=
"scroll"
:updateData=
"[lists]"
:pullUp=
"true"
@
pullingUp=
"loadMore"
>
<div
class=
"header"
>
设备清单
</div>
<list-item
:item-height=
"104"
class=
"equipment-list"
>
<item
v-for=
"(item,index) in lists"
:proportion=
"[2,1]"
:key=
"index"
>
<div
slot=
"name"
class=
"parameters"
>
<div
class=
"list"
>
<p>
设备识别号
</p>
<span
class=
"bold"
>
{{
item
.
product_code
}}
-
{{
index
+
1
|
lengthCheck
}}
</span>
</div>
<div
class=
"list"
>
<p>
发动机号
</p>
<span>
{{
item
.
lease_item_engine_num
}}
</span>
</div>
<div
class=
"list"
>
<p>
车辆型号
</p>
<span>
{{
item
.
vehicle_model
}}
</span>
</div>
<div
class=
"list"
>
<p>
合格证编号
</p>
<span>
{{
item
.
certificate_number
}}
</span>
</div>
</div>
<div
slot=
"content"
>
<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>
</div>
</div>
</item>
</list-item>
</scroll>
</h-view>
</
template
>
<
script
>
export
default
{
name
:
'RepayDetail'
,
filters
:
{
lengthCheck
:
function
(
value
)
{
if
((
value
.
toString
()).
length
===
1
)
{
return
`0
${
value
}
`
}
else
{
return
value
}
},
},
data
()
{
return
{
lists
:
[],
pagenum
:
1
,
hidden
:
false
,
detailInfo
:
{},
fileArray
:
[],
}
},
computed
:
{},
watch
:
{},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
name
===
'ContractRecords'
)
{
vm
.
pagenum
=
1
vm
.
detailQuery
()
vm
.
equipQuery
()
}
})
},
methods
:
{
// val: contract_id
toRepayPlans
(
val
)
{
this
.
$router
.
push
({
name
:
'RepayPlans'
,
params
:
{
contract_id
:
val
,
lease_num
:
this
.
detailInfo
.
lease_num
,
},
})
},
downLoad
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'get_download_app'
let
param
=
{
project_id
:
vm
.
$route
.
params
.
project_id
,
phone
:
window
.
localStorage
.
user_phone
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
fileArray
=
res
.
info
vm
.
fileArray
.
forEach
(
i
=>
{
cordova
.
InAppBrowser
.
open
(
i
.
fileUrl
,
'_system'
,
'location=yes,hideurlbar=no,toolbarposition=top'
)
})
// vm.pdfDownload()
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
pdfDownload
()
{
// 下载pdf文件
let
vm
=
this
vm
.
fileArray
.
forEach
(
element
=>
{
if
(
element
.
fileUrl
)
{
console
.
log
(
'vm.$refs.pdf'
+
vm
.
$refs
.
pdf
)
// debugger
vm
.
$refs
.
pdf
.
downloadPDF
(
element
.
fileUrl
,
element
.
fileName
)
}
})
},
// 合同明细
detailQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'con_contract_detial'
let
param
=
{
project_id
:
vm
.
$route
.
params
.
project_id
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
detailInfo
=
res
.
info
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
// 设备清单
equipQuery
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'con_equip_list'
let
param
=
{
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
project_id
:
vm
.
$route
.
params
.
project_id
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
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
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
loadMore
()
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'con_equip_list'
vm
.
pagenum
++
let
param
=
{
pagesize
:
10
,
pagenum
:
vm
.
pagenum
,
project_id
:
vm
.
$route
.
params
.
project_id
,
}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
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
.
$refs
.
scroll
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
vum
.
forEach
(
returnData
,
function
(
data
,
index
,
array
)
{
vm
.
lists
.
push
(
array
[
index
])
})
vm
.
$refs
.
scroll
.
update
(
false
)
}
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
},
}
</
script
>
<
style
lang=
'less'
>
#repay-detail {
.status {
margin-bottom: 20px;
display: inline-block;
}
.red {
color: red;
border-bottom: 1px solid red;
}
.repay-content {
overflow: hidden;
position: absolute;
z-index: 10;
width: 100%;
.header {
//position: relative;
background-color: #fafafa;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #1D3FFF;
text-indent: 1em;
border-bottom: 1px solid #F1F0F5;
.download {
position: absolute;
padding-left: 12px;
right: 12px;
top: 8px;
background: #FFFFFF;
border-radius: 5px;
height: 24px;
line-height: 24px;
// width: 93px;
font-family: PingFangSC-Regular;
font-size: 11px;
color: #1D3FFF;
letter-spacing: 0.34px;
img {
position: absolute;
height: 15px;
left: 6px;
top: 6px;
}
}
&:before {
content: "";
position: absolute;
top: 12px;
left: 0;
width: 4px;
height: 16px;
background: #1D3FFF;
}
}
.invoice {
margin-bottom: 0px;
.hls-item {
.contents {
.add-name {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
}
.add-content {
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56, 63, 69, 0.60);
}
}
}
}
}
.scrollContent {
//padding-bottom: 400px;
.header {
//position: relative;
background-color: #fafafa;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #1D3FFF;
text-indent: 1em;
border-bottom: 1px solid #F1F0F5;
.download {
position: absolute;
padding-left: 12px;
right: 12px;
top: 8px;
background: #FFFFFF;
border-radius: 5px;
height: 24px;
line-height: 24px;
// width: 93px;
font-family: PingFangSC-Regular;
font-size: 11px;
color: #1D3FFF;
letter-spacing: 0.34px;
img {
position: absolute;
height: 15px;
left: 6px;
top: 6px;
}
}
&:before {
content: "";
position: absolute;
top: 12px;
left: 0;
width: 4px;
height: 16px;
background: #1D3FFF;
}
}
.equipment-list {
border-top: none;
background-color: transparent;
.hls-item {
border-top: 1px solid #D9DBDF;
border-bottom: 1px solid #D9DBDF;
background-color: #fff;
margin-bottom: 10px;
.contents {
padding-top: 8px;
.add-name {
display: flex;
flex-direction: column;
.parameters {
width: 100%;
margin-left: -40px;
.list {
display: flex;
margin-bottom: 0;
p {
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56, 63, 69, 0.60);
letter-spacing: 0.4px;
text-align: right;
flex: 1;
}
span {
flex: 1;
margin-left: 15px;
font-family: PingFangSC-Regular;
font-size: 13px;
color: #383F45;
letter-spacing: 0.4px;
}
span.bold {
font-family: PingFangSC-Semibold;
font-weight: 700;
}
}
}
}
.add-content {
.plan {
position: relative;
width: 100px;
height: 30px;
background: rgba(29, 63, 255, .2);
border-radius: 4px;
img {
height: 14px;
position: absolute;
top: 8px;
left: 12px;
}
span {
font-family: PingFangSC-Regular;
font-size: 13px;
color: #1D3FFF;
letter-spacing: 0.4px;
position: absolute;
top: 5px;
left: 32px;
}
}
}
}
}
}
}
.tab-style {
width: 100%;
position: absolute;
}
}
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.32rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#repay-detail {
.scrollContent {
// padding-top: 3.72rem;
}
}
}
}
</
style
>
src/pages/contractStart/add-car.vue
View file @
d4831045
...
...
@@ -606,7 +606,7 @@ export default {
let
vm
=
this
hlsPopup
.
showActionSheet
({
titleText
:
'请选择证件类型'
,
buttonArray
:
[
'
徐工重型合格证
'
,
'车辆登记证'
,
'出厂合格证'
],
buttonArray
:
[
'
标准车辆合格证(徐工重型、施维英)
'
,
'车辆登记证'
,
'出厂合格证'
],
callback
:
(
index
)
=>
{
if
(
index
===
0
)
{
vm
.
certificationType
=
'NORMAL'
...
...
src/pages/functionCenter/function-list.vue
View file @
d4831045
...
...
@@ -192,10 +192,15 @@ export default {
window
.
localStorage
.
setItem
(
'bp_name'
,
res
.
info
.
user_bp_name
)
window
.
localStorage
.
setItem
(
'bp_identity'
,
res
.
info
.
bp_identity
)
window
.
localStorage
.
setItem
(
'bp_class'
,
res
.
info
.
user_bp_class
)
window
.
localStorage
.
setItem
(
'bp_type'
,
res
.
info
.
user_bp_type
)
window
.
localStorage
.
setItem
(
'multipleRole'
,
res
.
info
.
user_bp_type
)
vm
.
user_bp_type
=
res
.
info
.
user_bp_type
vm
.
bp_type_n
=
res
.
info
.
user_bp_type_n
// 有角色信息就不设置缓存,可能在角色切换时做了处理,此处不设置角色
if
(
localStorage
.
bp_type
||
localStorage
.
multipleRole
)
{
vm
.
user_bp_type
=
localStorage
.
bp_type
}
else
{
window
.
localStorage
.
setItem
(
'bp_type'
,
res
.
info
.
user_bp_type
)
window
.
localStorage
.
setItem
(
'multipleRole'
,
res
.
info
.
user_bp_type
)
vm
.
user_bp_type
=
res
.
info
.
user_bp_type
}
// vm.bp_type_n = res.info.user_bp_type_n
vm
.
user_bp_name
=
res
.
info
.
user_bp_name
vm
.
user_phone
=
res
.
info
.
user_phone
if
(
vm
.
user_bp_type
===
'TENANT'
)
{
...
...
@@ -364,7 +369,7 @@ export default {
userBind
()
{
// .首付还款、租金还款、融租方案确认需对业务经理角色做控制,点击无法进入,提示“当前角色非承租人或担保人,无法使用该功能!”
if
(
this
.
user_bp_type
===
'MANAGER'
)
{
hlsPopup
.
showLongCenter
(
'
当前角色非承租人或担保人,无法使用该功能
!'
)
hlsPopup
.
showLongCenter
(
'
业务经理无需进行用户绑定
!'
)
return
}
window
.
localStorage
.
setItem
(
'from'
,
true
)
...
...
src/pages/messageCenter/message-list.vue
View file @
d4831045
...
...
@@ -103,20 +103,22 @@ export default {
let
twoHeight
=
40
this
.
textHeight
=
`
${
twoHeight
}
px`
let
txtDom
=
this
.
$refs
.
textContainer
for
(
let
i
=
0
;
i
<
txtDom
.
length
;
i
++
)
{
let
curHeight
=
txtDom
[
i
].
offsetHeight
if
(
curHeight
>
twoHeight
)
{
this
.
$set
(
this
.
list
,
i
,
Object
.
assign
({},
this
.
list
[
i
],
{
status
:
true
})
)
}
else
{
this
.
$set
(
this
.
list
,
i
,
Object
.
assign
({},
this
.
list
[
i
],
{
status
:
null
})
)
if
(
txtDom
)
{
for
(
let
i
=
0
;
i
<
txtDom
.
length
;
i
++
)
{
let
curHeight
=
txtDom
[
i
].
offsetHeight
if
(
curHeight
>
twoHeight
)
{
this
.
$set
(
this
.
list
,
i
,
Object
.
assign
({},
this
.
list
[
i
],
{
status
:
true
})
)
}
else
{
this
.
$set
(
this
.
list
,
i
,
Object
.
assign
({},
this
.
list
[
i
],
{
status
:
null
})
)
}
}
}
},
...
...
src/pages/myInfo/my-info.vue
View file @
d4831045
...
...
@@ -29,39 +29,8 @@
</div>
</div>
</div>
<!--
<div
v-if=
"multipleRole!=='GUTA'&&user_bp_type!=='GUTA'"
class=
"card"
>
-->
<!--
<div
class=
"card"
>
<div
class=
"card-info"
>
<div
class=
"card-bottom"
>
<div
v-if=
"((user_bp_type!=='TENANT')&&(user_bp_type!=='GUTA')&&(multipleRole!=='GUTA')&&(multipleRole!=='TENANT'))||multipleRole==='AGENT'"
@
click=
"goStart"
>
<img
src=
"@/assets/myInfo/car.png"
>
<p>
融租合同创建
</p>
</div>
<div
v-if=
"((user_bp_type==='TENANT')&&(multipleRole==='TENANT'))||(multipleRole==='TENANT')||((user_bp_type==='TENANT')&&(!multipleRole))"
@
click=
"changePay"
>
<img
src=
"@/assets/myInfo/pay.png"
>
<p>
首付还款
</p>
</div>
<div
v-if=
"((user_bp_type==='TENANT')&&(multipleRole==='TENANT'))||(multipleRole==='TENANT')||((user_bp_type==='TENANT')&&(!multipleRole))"
@
click=
"changeRent"
>
<img
src=
"@/assets/myInfo/refund.png"
>
<p>
租金还款
</p>
</div>
<div
v-if=
"(user_bp_type==='AGENT')&&(user_bp_class==='ORG')&&(user_bp_status === 'APPROVED')"
@
click=
"changeCash"
>
<img
src=
"@/assets/myInfo/promise.png"
>
<p>
缴纳保证金
</p>
</div>
<div
v-if=
"((user_bp_type==='GUTA')&&(multipleRole==='GUTA'))||(multipleRole==='GUTA')||((user_bp_type==='GUTA')&&(!multipleRole))"
@
click=
"changeContract('GUTA')"
>
<img
src=
"@/assets/myInfo/under.png"
>
<p>
我担保的合同
</p>
</div>
<div
v-if=
"((user_bp_type==='AGENT')&&(multipleRole==='AGENT'))||(multipleRole==='AGENT')||((user_bp_type==='AGENT')&&(!multipleRole))||(user_bp_type==='OFFICE')"
@
click=
"goContract"
>
<img
src=
"@/assets/myInfo/agent.png"
>
<p>
我办理的合同
</p>
</div>
</div>
</div>
</div>
-->
</div>
<h-content
class=
"my-content"
>
<h-content
class=
"my-content
has-footer
"
>
<div
class=
"content-top"
>
<list-item
:item-height=
"44"
class=
"list"
>
<item
@
click
.
native=
"goContract"
>
...
...
@@ -375,17 +344,10 @@ export default {
// 选择角色后确定
roleConfirm
(
role
)
{
this
.
roleSwitchFlag
=
false
if
(
role
.
bp_type
===
'TENANT'
)
{
window
.
localStorage
.
setItem
(
'multipleRole'
,
'TENANT'
)
this
.
multipleRole
=
'TENANT'
}
else
if
(
role
.
bp_type
===
'GUTA'
)
{
window
.
localStorage
.
setItem
(
'multipleRole'
,
'GUTA'
)
this
.
multipleRole
=
'GUTA'
}
else
if
(
role
.
bp_type
===
'AGENT'
)
{
window
.
localStorage
.
setItem
(
'multipleRole'
,
'AGENT'
)
this
.
multipleRole
=
'AGENT'
}
window
.
localStorage
.
setItem
(
'multipleRole'
,
role
.
bp_type
)
this
.
multipleRole
=
role
.
bp_type
console
.
log
(
'选择后的角色为:'
+
role
)
window
.
localStorage
.
setItem
(
'bp_type'
,
role
.
bp_type
)
},
typeConfirm
(
e
)
{
// 选择操作方式后
...
...
@@ -957,28 +919,20 @@ export default {
vm
.
app_user_id
=
res
.
info
.
app_user_id
window
.
localStorage
.
removeItem
(
'bp_id'
)
window
.
localStorage
.
setItem
(
'bp_id'
,
res
.
info
.
user_bp_id
)
window
.
localStorage
.
setItem
(
'user_bp_status'
,
res
.
info
.
user_bp_status
)
window
.
localStorage
.
setItem
(
'user_bp_status'
,
res
.
info
.
user_bp_status
)
window
.
localStorage
.
setItem
(
'bp_name'
,
res
.
info
.
user_bp_name
)
window
.
localStorage
.
setItem
(
'bp_identity'
,
res
.
info
.
bp_identity
)
window
.
localStorage
.
setItem
(
'bp_class'
,
res
.
info
.
user_bp_class
)
window
.
localStorage
.
setItem
(
'bp_type'
,
res
.
info
.
user_bp_type
)
if
(
localStorage
.
bp_type
||
localStorage
.
multipleRole
)
{
}
else
{
window
.
localStorage
.
setItem
(
'bp_type'
,
res
.
info
.
user_bp_type
)
window
.
localStorage
.
setItem
(
'multipleRole'
,
res
.
info
.
user_bp_type
)
}
vm
.
user_bp_name
=
res
.
info
.
user_bp_name
vm
.
user_bp_type
=
res
.
info
.
user_bp_type
vm
.
user_phone
=
res
.
info
.
user_phone
vm
.
bp_type_n
=
res
.
info
.
user_bp_type_n
if
(
window
.
localStorage
.
multipleRole
)
{
}
else
{
if
(
res
.
info
.
user_bp_type
===
'TENANT'
)
{
window
.
localStorage
.
setItem
(
'multipleRole'
,
'TENANT'
)
}
else
if
(
res
.
info
.
user_bp_type
===
'GUTA'
)
{
window
.
localStorage
.
setItem
(
'multipleRole'
,
'GUTA'
)
}
else
if
(
res
.
info
.
user_bp_type
===
'AGENT'
)
{
window
.
localStorage
.
setItem
(
'multipleRole'
,
'AGENT'
)
}
}
vm
.
watchBpStatus
()
vm
.
getHead
()
vm
.
getMultipleRole
()
...
...
src/pages/myInfo/setting.vue
View file @
d4831045
...
...
@@ -15,7 +15,7 @@
</item>
</list-item>
<list-item
:item-height=
"50"
class=
"list"
>
<item
v-if=
"bpId!=='undefined'"
@
click
.
native=
"changePageHead()"
>
<item
v-if=
"bpId!=='undefined'"
v-show=
"user_bp_type!='MANAGER'"
@
click
.
native=
"changePageHead()"
>
<div
slot=
"name"
style=
"color:#656464;"
>
修改信息
</div>
<div
class=
"arrow_right"
><img
src=
"@/assets/myinfo/arrow_right.png"
></div>
</item>
...
...
@@ -23,7 +23,7 @@
<div
slot=
"name"
style=
"color:#656464;"
>
角色切换
</div>
<div
class=
"arrow_right"
><img
src=
"@/assets/myinfo/arrow_right.png"
></div>
</item>
<item
@
click
.
native=
"resetPwd()"
>
<item
v-if=
"user_bp_type!='MANAGER'"
@
click
.
native=
"resetPwd()"
>
<div
slot=
"name"
style=
"color:red;"
>
修改密码
</div>
<div
class=
"arrow_right"
><img
src=
"@/assets/myinfo/arrow_right.png"
></div>
</item>
...
...
@@ -33,7 +33,7 @@
</div>
<div
slot=
"right-icon"
style=
"float:right;color:#383F45;opacity:0.4;"
>
当前版本
{{
currentVersion
}}
</div>
</item>
<item
@
click
.
native=
"unBind()"
>
<item
v-if=
"user_bp_type!='MANAGER'"
@
click
.
native=
"unBind()"
>
<div
slot=
"name"
style=
"color:#656464;"
>
解除绑定
</div>
<div
class=
"arrow_right"
><img
src=
"@/assets/myinfo/arrow_right.png"
></div>
</item>
...
...
@@ -81,7 +81,7 @@ export default {
},
computed
:
{
roleList
()
{
let
roleObj
=
{
'TENANT'
:
'主承租人'
,
'GUTA'
:
'担保人'
,
'FACTORY'
:
'主机厂'
,
'AGENT'
:
'经销商'
,
'OFFICE'
:
'办事处'
}
let
roleObj
=
{
'TENANT'
:
'主承租人'
,
'GUTA'
:
'担保人'
,
'FACTORY'
:
'主机厂'
,
'AGENT'
:
'经销商'
,
'OFFICE'
:
'办事处'
,
'MANAGER'
:
'业务经理'
}
let
obj
=
{
bp_type
:
this
.
user_bp_type
,
bp_type_n
:
roleObj
[
this
.
user_bp_type
],
...
...
src/pages/news/newslist.vue
View file @
d4831045
...
...
@@ -164,19 +164,20 @@ export default {
</
script
>
<
style
lang=
'less'
>
@import "../../styles/vue-1px";
.display {
position: fixed;
top: 0;
img {
width: 100%;
height: 100%;
// margin-top: -70px;
}
}
#newList {
.display {
position: fixed;
top: 0;
img {
width: 100%;
height: 100%;
// margin-top: -70px;
}
}
background: #efefef;
.scroll-content {
top: 50px;
//
top: 50px;
}
.pay-content {
width: 96%;
...
...
src/pages/productQuery/entity-list.vue
View file @
d4831045
<
template
>
<h-view
id=
"
pro
list"
class=
"public-style"
title=
"产品查询"
>
<h-view
id=
"
entity-
list"
class=
"public-style"
title=
"产品查询"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
...
...
@@ -45,7 +45,7 @@
<
script
>
import
noImg
from
'../../assets/productQuery/none.png'
export
default
{
name
:
'
Product
List'
,
name
:
'
Entity
List'
,
data
()
{
return
{
lists
:
[],
...
...
@@ -198,9 +198,12 @@ export default {
}
</
script
>
<
style
lang=
'less'
scoped
>
#prolist {
#entity-list {
.content{
background-color: #f5f5f5;
}
.scroll-content{
margin-top: 100px;
//
margin-top: 100px;
}
.display {
position: fixed;
...
...
src/pages/productQuery/product-detailed.vue
View file @
d4831045
...
...
@@ -126,6 +126,7 @@ export default {
config
:
config
,
unConfig
:
unConfig
,
height
:
0
,
src
:
''
,
}
},
computed
:
{},
...
...
@@ -161,7 +162,7 @@ export default {
this
.
src
=
require
(
'@/assets/productQuery/collect.png'
)
}
},
methods
:{
methods
:
{
startScroll
()
{
this
.
slide
=
true
},
...
...
src/pages/productQuery/product-list.vue
View file @
d4831045
...
...
@@ -227,7 +227,7 @@ export default {
#prolist {
background: rgba(239, 239, 239, 0.55);
.scroll-content {
top: 50px;
//
top: 50px;
}
.display {
position: fixed;
...
...
src/pages/productQuery/query-home.vue
View file @
d4831045
...
...
@@ -6,7 +6,7 @@
* @LastEditors: Please set LastEditors
-->
<
template
>
<h-view
id=
"query"
class=
"public-style"
title=
"产品查询"
>
<h-view
id=
"query
-home
"
class=
"public-style"
title=
"产品查询"
>
<h-header
v-if=
"$route.path=='/query-home'"
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
...
...
@@ -35,7 +35,7 @@
<div
class=
"first"
>
<p
class=
"product"
>
{{
item
.
factory_bp_name
}}
</p>
</div>
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
>
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
>
</div>
</div>
</div>
...
...
@@ -45,6 +45,7 @@
<
script
>
import
noImg
from
'../../assets/productQuery/none.png'
export
default
{
name
:
'QueryHome'
,
data
()
{
...
...
@@ -70,164 +71,159 @@ export default {
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
if
(
from
.
name
===
'HomePage'
||
from
.
name
===
'FunctionCenter'
)
{
next
(
vm
=>
{
vm
.
searchInput
=
''
vm
.
pagenum
=
1
vm
.
proQuery
()
})
}
next
()
next
(
vm
=>
{
vm
.
searchInput
=
''
vm
.
pagenum
=
1
vm
.
proQuery
()
})
},
methods
:
{
// 初始产品查询
proQuery
()
{
let
vm
=
this
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
()
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
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
vm
.
prolists
.
length
===
10
)
{
vm
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scrollLists
.
update
(
false
)
}
console
.
log
(
vm
.
prolists
)
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
// 跳列表 val = 产品线
goLists
(
val
)
{
this
.
$router
.
push
({
name
:
'ProductList'
,
params
:
{
factory_bp_id
:
val
,
},
})
},
methods
:
{
// 初始产品查询
proQuery
()
{
let
vm
=
this
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
()
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
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
vm
.
prolists
.
length
===
10
)
{
vm
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scrollLists
.
update
(
false
)
}
console
.
log
(
vm
.
prolists
)
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
// 跳列表 val = 产品线
goLists
(
val
)
{
this
.
$router
.
push
({
name
:
'ProductList'
,
params
:
{
factory_bp_id
:
val
,
},
})
},
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
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
prolists
.
push
(
array
[
index
])
})
vm
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
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
.
prolists
.
forEach
(
item
=>
{
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
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
returnData
.
length
===
10
)
{
returnData
.
forEach
((
data
,
index
,
array
)
=>
{
vm
.
prolists
.
push
(
array
[
index
])
})
vm
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
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
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
prolists
.
forEach
(
item
=>
{
})
vm
.
$refs
.
scrollLists
.
update
(
true
)
}
else
if
(
vm
.
lists
.
length
===
10
)
{
vm
.
prolists
.
forEach
(
item
=>
{
item
[
'url'
]
=
item
.
factory_attachment_id
?
process
.
env
.
filePath
+
'attachment_id='
+
item
.
factory_attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
:
noImg
})
vm
.
$refs
.
scrollLists
.
update
(
false
)
}
})
},
// 产品线查询val=主机厂id,ind=产品列表索引
queryDivision
(
val
,
ind
)
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_division_list'
let
param
=
{
factory_bp_id
:
val
,
}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
console
.
log
(
res
)
if
(
res
.
result
===
'S'
)
{
vm
.
divisionList
=
res
.
lists
.
map
(
item
=>
{
return
{
code
:
item
.
division
,
code_name
:
item
.
product_line
,
}
})
// vm.divisionList = res.lists
vm
.
hlsPopup
.
selectList
({
list
:
vm
.
divisionList
,
// 下拉列表
code
:
'bp_type'
,
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
// 更改产品线(division)和 产品线描述(division_n)
vm
.
prolists
[
ind
].
division_n
=
obj
.
bp_type_n
vm
.
prolists
[
ind
].
division
=
obj
.
bp_type
},
})
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
},
})
vm
.
$refs
.
scrollLists
.
update
(
false
)
}
})
},
// 产品线查询val=主机厂id,ind=产品列表索引
queryDivision
(
val
,
ind
)
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_product_division_list'
let
param
=
{
factory_bp_id
:
val
,
}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
console
.
log
(
res
)
if
(
res
.
result
===
'S'
)
{
vm
.
divisionList
=
res
.
lists
.
map
(
item
=>
{
return
{
code
:
item
.
division
,
code_name
:
item
.
product_line
,
}
})
// vm.divisionList = res.lists
vm
.
hlsPopup
.
selectList
({
list
:
vm
.
divisionList
,
// 下拉列表
code
:
'bp_type'
,
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
// 更改产品线(division)和 产品线描述(division_n)
vm
.
prolists
[
ind
].
division_n
=
obj
.
bp_type_n
vm
.
prolists
[
ind
].
division
=
obj
.
bp_type
},
})
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
},
}
</
script
>
<
style
lang=
'less'
>
#query
{
#query-home
{
.search {
background-color: #fff;
padding: 8px 12px;
...
...
@@ -235,6 +231,7 @@ export default {
width: 100%;
z-index: 100;
margin-bottom: 8px;
input {
padding-left: 12px;
height: 36px;
...
...
@@ -248,12 +245,14 @@ export default {
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
}
input::placeholder {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888C8F;
letter-spacing: 0;
}
input:focus {
background: url("../../assets/contractStart/search2.png") 320px no-repeat;
background-size: 16px 16px;
...
...
@@ -261,9 +260,11 @@ export default {
border: 2px solid #bcc6ff;
}
}
.scroll-box {
padding: 8px;
}
.box {
width: 100%;
height: 80px;
...
...
@@ -274,20 +275,24 @@ export default {
justify-content: center;
align-items: center;
padding: 20px;
.leftPic {
height: 40px;
width: 40px;
border-radius: 8px;
img {
height: 40px;
width: 40px;
}
}
.first {
flex-grow: 1;
height: 84px;
line-height: 84px;
text-indent: 20px;
.product {
font-family: PingFangSC-Regular;
font-size: 14px;
...
...
@@ -295,27 +300,32 @@ export default {
text-align: left;
}
}
.arrow {
height: 16px;
width: 16px;
}
}
.content {
position: absolute;
top:0;
top:
0;
}
.scrollContent {
padding-top: 1.92rem;
//
padding-top: 1.92rem;
padding-bottom: 20px;
}
}
.platform-ios {
}
.platform-ios {
#query {
.scrollContent {
padding-top: 2.32rem;
}
}
}
// iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
...
...
@@ -326,6 +336,7 @@ export default {
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
...
...
@@ -333,21 +344,21 @@ export default {
.scrollContent {
padding-top: 2.72rem;
}
.search {
input {
background: url("../../assets/contractStart/search1.png") 320px
no-repeat
;
background-size: 16px 16px
;
background-color: rgba(239, 239, 239, 0.55)
;
padding: 8px 12
px;
border-radius: 4px
;
width: 100%
;
font-family: PingFangSC-Regular
;
font-size: 14px
;
color: #888c8f;
input {
background: url("../../assets/contractStart/search1.png") 320px no-repeat;
background-size: 16px 16px
;
background-color: rgba(239, 239, 239, 0.55)
;
padding: 8px 12px
;
border-radius: 4
px;
width: 100%
;
font-family: PingFangSC-Regular
;
font-size: 14px
;
color: #888c8f
;
}
}
}
}
}
}
</
style
>
src/router/index.js
View file @
d4831045
...
...
@@ -314,7 +314,7 @@ export default new Router({
{
path
:
'/np-bank-info'
,
component
:
NPBankInfo
,
name
:
'NPBankInfo'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/accessory-info'
,
component
:
AccessoryInfo
,
name
:
'AccessoryInfo'
,
meta
:
{
keepAlive
:
true
}},
// 我的合同
{
path
:
'/my-contract'
,
component
:
MyContract
,
name
:
'MyContract'
,
meta
:
{
keepAlive
:
tru
e
}},
{
path
:
'/my-contract'
,
component
:
MyContract
,
name
:
'MyContract'
,
meta
:
{
keepAlive
:
fals
e
}},
// 合同创建
{
path
:
'/contract-create-list'
,
component
:
ContractCreateList
,
name
:
'ContractCreateList'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/sales-info'
,
component
:
SalesInfo
,
name
:
'SalesInfo'
,
meta
:
{
keepAlive
:
true
}},
...
...
src/scripts/hlsHttp.js
View file @
d4831045
...
...
@@ -94,6 +94,18 @@ axios.interceptors.response.use(response => {
hlsPopup
.
showPopup
({
title
:
'登录失效,重新登录'
,
onConfirm
:
()
=>
{
let
width
=
window
.
localStorage
.
getItem
(
'width'
)
let
height
=
window
.
localStorage
.
getItem
(
'height'
)
if
(
window
.
localStorage
.
isReadPolicy
===
'false'
)
{
window
.
localStorage
.
clear
()
}
else
if
(
window
.
localStorage
.
isReadPolicy
===
'true'
)
{
window
.
localStorage
.
clear
()
window
.
localStorage
.
setItem
(
'isReadPolicy'
,
true
)
}
else
{
window
.
localStorage
.
clear
()
}
window
.
localStorage
.
setItem
(
'width'
,
width
)
window
.
localStorage
.
setItem
(
'height'
,
height
)
router
.
push
({
name
:
'Login'
})
},
})
...
...
www/index.html
View file @
d4831045
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
./cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"
></script><title>
徐工金服
</title><link
href=
./static/css/app.639b6df732adf63dae328f1593b59570.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.218b13cb8652090c3877.js
></script><script
type=
text/javascript
src=
./static/js/vendor.cf2df294c770beff4ed8.js
></script><script
type=
text/javascript
src=
./static/js/app.65c453c4bb4f8e7f93fe.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
./cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"
></script><title>
徐工金服
</title><link
href=
./static/css/app.639b6df732adf63dae328f1593b59570.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.56e966ab03c8841ad724.js
></script><script
type=
text/javascript
src=
./static/js/vendor.cf2df294c770beff4ed8.js
></script><script
type=
text/javascript
src=
./static/js/app.c0fdd7ccc95590344674.js
></script></body></html>
\ No newline at end of file
yarn.lock
View file @
d4831045
...
...
@@ -3995,7 +3995,7 @@ hex-color-regex@^1.1.0:
"hls-easy-ui@https://hel.hand-china.com/easyUI/hls-easy-ui.git#keyboard":
version "0.0.5"
resolved "https://hel.hand-china.com/easyUI/hls-easy-ui.git#
63c1508ec00db07f6e3c1de556ece91da2559c0a
"
resolved "https://hel.hand-china.com/easyUI/hls-easy-ui.git#
70307428700b184a43334bab764e38d7bdf40d35
"
dependencies:
autosize "^3.0.20"
better-scroll "^1.10.3"
...
...
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