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
5d713527
Commit
5d713527
authored
Nov 01, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'问题修复'
parent
edef3e41
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
202 additions
and
162 deletions
+202
-162
down.png
src/assets/productQuery/down.png
+0
-0
repay-detail.vue
src/pages/contractInquire/repay-detail.vue
+18
-14
repay-plans.vue
src/pages/contractInquire/repay-plans.vue
+21
-20
financing-details.vue
src/pages/financingTrial/financing-details.vue
+2
-2
financing-trial.vue
src/pages/financingTrial/financing-trial.vue
+37
-27
product-list.vue
src/pages/productQuery/product-list.vue
+52
-59
query-home.vue
src/pages/productQuery/query-home.vue
+72
-40
No files found.
src/assets/productQuery/down.png
0 → 100644
View file @
5d713527
619 Bytes
src/pages/contractInquire/repay-detail.vue
View file @
5d713527
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime: 2019-10-31 1
6:17:39
* @LastEditTime: 2019-10-31 1
7:33:52
* @LastEditors: Please set LastEditors
* @Description: 合同查询--明细
* @FilePath:
...
...
@@ -53,27 +53,27 @@
</list-item>
<div
class=
"header"
>
设备清单
</div>
<list-item
:item-height=
"104"
class=
"equipment-list"
>
<item
v-for=
"(item,index) in
4
"
:proportion=
"[2,1]"
:key=
"index"
>
<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"
>
JC1213
</span>
<span
class=
"bold"
>
{{
item
.
product_code
}}
</span>
</div>
<div
class=
"list"
>
<p>
发动机号
</p>
<span>
JC12131111
</span>
<span>
{{
item
.
lease_item_engine_num
}}
</span>
</div>
<div
class=
"list"
>
<p>
厂商型号
</p>
<span>
****
</span>
<span>
{{
item
.
lease_item_factory_num
}}
</span>
</div>
<div
class=
"list"
>
<p>
车牌号
</p>
<span>
********
</span>
<span>
{{
item
.
lease_item_car_num
}}
</span>
</div>
</div>
<div
slot=
"content"
>
<div
class=
"plan"
@
click=
"toRepayPlans"
>
<div
class=
"plan"
@
click=
"toRepayPlans
(item.contract_id)
"
>
<img
src=
"@/assets/contractRepayment/plan.png"
alt=
""
>
<span>
还款计划
</span>
</div>
...
...
@@ -93,6 +93,7 @@ export default {
},
data
()
{
return
{
lists
:
[],
detailInfo
:
{},
}
},
...
...
@@ -107,10 +108,13 @@ export default {
})
},
methods
:
{
toRepayPlans
()
{
// val: contract_id
toRepayPlans
(
val
)
{
this
.
$router
.
push
({
name
:
'RepayPlans'
,
params
:
{
contract_id
:
val
,
},
})
},
detailQuery
()
{
...
...
@@ -138,11 +142,11 @@ export default {
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)
//
}
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
},
...
...
src/pages/contractInquire/repay-plans.vue
View file @
5d713527
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime: 2019-1
0-31 14:47:21
* @LastEditTime: 2019-1
1-01 09:36:50
* @LastEditors: Please set LastEditors
* @Description: 还款
* @FilePath:
...
...
@@ -21,12 +21,12 @@
<div>
融资额
</div>
<p>
190,000.00
</p>
<img
src=
"@/assets/contractInquire/num.png"
alt=
""
>
<h3><span>
12
</span>
期
</h3>
<h3><span>
{{
info
.
lease_times
}}
</span>
期
</h3>
</div>
<div
class=
"single"
>
<div><h4>
保证金
</h4><p>
¥
5,000.00
</p></div>
<div><h4>
保证金
</h4><p>
¥ 5,000.00
</p></div>
<div><h4>
保证金
</h4><p>
¥ 5,000.00
</p></div>
<div><h4>
保证金
</h4><p>
¥
{{
info
.
deposit
|
currency
}}
</p></div>
<div><h4>
首付款
</h4><p>
¥
{{
info
.
down_payment
|
currency
}}
</p></div>
<div><h4>
手续费
</h4><p>
¥
{{
parseFloat
(
info
.
lease_charge
).
toFixed
(
2
)
|
currency
}}
</p></div>
</div>
</div>
<div
class=
"plan-name"
>
...
...
@@ -76,6 +76,7 @@ export default {
height
:
0
,
oldHeight
:
0
,
newHeight
:
0
,
info
:
{},
}
},
computed
:
{},
...
...
@@ -112,21 +113,21 @@ export default {
}
},
repayPlan
()
{
//
let vm = this
// let url = $config.basePath + '
'
//
let param = {
//
contract_id: vm.$route.params.contract_id,
//
}
//
vm.hlsPopup.showLoading('数据加载中')
//
vm.hlsHttp.post(url, param).then(function (res) {
//
console.log(res)
//
vm.hlsPopup.hideLoading()
//
if (res.result === 'S') {
// vm.detailI
nfo = res.info
//
} else {
//
hlsPopup.showLongCenter(res.message)
//
}
//
})
let
vm
=
this
let
url
=
$config
.
basePath
+
'con_equip_cashflow_query
'
let
param
=
{
contract_id
:
vm
.
$route
.
params
.
contract_id
,
}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
console
.
log
(
res
)
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
i
nfo
=
res
.
info
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
},
}
...
...
src/pages/financingTrial/financing-details.vue
View file @
5d713527
...
...
@@ -2,7 +2,7 @@
* @Descrip""/>User Settings Edit
* @Author: your name
* @Date: 2019-09-29 20:31:00
* @LastEditTime: 2019-1
0-30 19:03:32
* @LastEditTime: 2019-1
1-01 12:27:20
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -188,7 +188,7 @@ export default {
'down_payment'
:
vm
.
equip_price
*
(
vm
.
info
.
down_payment_ratio_n
.
replace
(
'%'
,
''
)
/
100
),
'deposit'
:
vm
.
equip_price
*
(
vm
.
info
.
deposit_ratio_n
.
replace
(
'%'
,
''
)
/
100
),
'lease_charge'
:
vm
.
equip_price
*
(
vm
.
info
.
lease_charge_ratio_n
.
replace
(
'%'
,
''
)
/
100
),
'due_date'
:
vm
.
price_date_to
,
'due_date'
:
(
vm
.
price_date_to
).
substr
(
0
,
10
)
,
},
}
vm
.
hlsPopup
.
showLoading
(
'试算中,请稍后'
)
...
...
src/pages/financingTrial/financing-trial.vue
View file @
5d713527
...
...
@@ -2,7 +2,7 @@
* @Descrip 融资试算
* @Author: your name
* @Date: 2019-09-29 17:09:49
* @LastEditTime: 2019-1
0-31 16:57:36
* @LastEditTime: 2019-1
1-01 11:13:22
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -76,7 +76,7 @@ export default {
if
(
from
.
name
===
'ProDetailed'
)
{
vm
.
price_date_to
=
vm
.
$route
.
params
.
price_date_to
// 有效日期
vm
.
plan_price
=
vm
.
$route
.
params
.
plan_price
// 参考价
vm
.
calculationQuery
()
vm
.
calculationQuery
(
'collect'
)
}
else
if
(
from
.
name
===
'HomePage'
)
{
vm
.
calculationQuery
()
vm
.
price_date_to
=
''
// 清楚缓存(从收藏带来的数据)
...
...
@@ -104,19 +104,35 @@ export default {
})
},
// 试算查询
calculationQuery
()
{
calculationQuery
(
val
)
{
let
vm
=
this
let
url
=
$config
.
basePath
+
'prd_calculation_query'
let
param
=
{}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
if
(
val
)
{
let
url
=
$config
.
basePath
+
'prd_product_calculation_query'
let
param
=
{
division
:
window
.
sessionStorage
.
division
,
}
})
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
else
{
let
url
=
$config
.
basePath
+
'prd_calculation_query'
let
param
=
{}
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
},
}
...
...
@@ -243,25 +259,19 @@ section {
.tario {
width: 100%;
height: 60px;
display: flex;
flex-direction: row;
justify-content: space-around;
position: relative;
background: #fff;
// margin-bottom: 8px;
padding-left: 18px;
img {
width: 16px;
height: 16px;
margin-top: 22px;
.wrap:nth-of-type(1) {
height: 60px;
position: absolute;
left: 50px;
}
.wrap {
.wrap:nth-of-type(2) {
height: 60px;
// margin-left: 6.4%
position: absolute;
right: 30px;
}
// .wrap:nth-of-type(2) {
// // margin-left: 12.5%s
// }
p {
height: 30px;
line-height: 30px;
...
...
src/pages/productQuery/product-list.vue
View file @
5d713527
...
...
@@ -18,30 +18,31 @@
<img
src=
"@/assets/distributorSign/search.png"
alt=
""
>
</div>
</div>
<list-item
v-for=
"item in lists"
:key=
"item.product_id"
>
<item
:proportion=
"[1,4]"
@
click
.
native=
"goDetailed(item.product_id,item.collect_status,item.bp_id)"
>
<div
slot=
"name"
class=
"item-pic"
>
<img
src=
"@/assets/homePage/WechatIMG2 Copy@2x.png"
alt=
""
>
</div>
<div
slot=
"content"
class=
"item-content"
>
<div
class=
"centers"
>
<p
class=
"firsts1"
>
{{
item
.
bp_type_n
}}
</p>
<p
class=
"seconds1"
>
{{
item
.
bp_name
}}
</p>
</div>
<div
class=
"centers"
>
<p
class=
"firsts1"
>
参数项
</p>
<p
class=
"seconds1"
>
{{
item
.
product_code
}}
</p>
<div
class=
"division-box"
>
<list-item
v-for=
"item in lists"
:key=
"item.product_id"
>
<item
:proportion=
"[1,4]"
@
click
.
native=
"goDetailed(item.product_id,item.collect_status,item.bp_id)"
>
<div
slot=
"name"
class=
"item-pic"
>
<img
src=
"@/assets/homePage/WechatIMG2 Copy@2x.png"
alt=
""
>
</div>
<div
class=
"centers"
>
<p
class=
"firsts1"
>
产品名称
</p>
<p
class=
"seconds1"
>
{{
item
.
product_name
}}
</p>
<div
slot=
"content"
class=
"item-content"
>
<div
class=
"pro-name"
>
<p>
{{
item
.
product_name
}}
</p>
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
>
</div>
<div
class=
"centers"
>
<p
class=
"firsts1"
>
{{
item
.
bp_type_n
}}
</p>
<p
class=
"seconds1"
>
{{
item
.
bp_name
}}
</p>
</div>
<div
class=
"centers"
>
<p
class=
"firsts1"
>
参数项
</p>
<p
class=
"seconds1"
>
{{
item
.
product_code
}}
</p>
</div>
</div>
</div>
<div
slot=
"right-icon"
>
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
>
</div>
</item>
</list-item>
<div
slot=
"right-icon"
/>
</item>
</list-item>
</div>
</h-content>
</h-view>
</
template
>
...
...
@@ -95,21 +96,6 @@ export default {
</
script
>
<
style
lang=
'less'
scoped
>
#prolist {
.h-header-btn {
img {
width: 16px;
height: 16px;
margin-left: 4px;
}
span {
font-family: PingFangSC-Semibold;
margin-left: 16px;
font-size: 17px;
letter-spacing: 0.61px;
line-height: 24px;
}
}
.hinput {
position: relative;
z-index: 50;
...
...
@@ -143,15 +129,10 @@ export default {
}
}
}
.arrow {
width: 16px;
height: 16px;
// margin-left: 30px;
margin-top: 16px;
.division-box {
padding: 8px;
}
// .hls-item .contents .add-name {
// flex: none!important;
// }
.item-pic {
width: 100px;
//height: 110px;
...
...
@@ -161,28 +142,39 @@ export default {
}
}
.item-content {
// height: 102px;
width: 100%;
margin-left: 20px;
.centers:nth-of-type(1) {
margin-top: 16px;
}
.centers:nth-of-type(2) {
margin-top: 6px;
}
.centers:nth-of-type(3) {
margin-top: 6px;
.pro-name {
height: 42px;
width: 100%;
position: relative;
border-bottom: 1px solid #F3F3F7;
.arrow {
position: absolute;
width: 16px;
height: 16px;
right: 0;
top: 13px;
}
p {
height: 42px;
line-height: 42px;
font-family: PingFangSC-Semibold;
font-size: 15px;
color: #4B4A4B;
letter-spacing: 0;
font-weight: 600;
}
}
.centers {
// margin-top: 6px;
// white-space: nowrap;
// width: 100%;
font-family: PingFangSC-Semibold;
font-size: 13px;
color: rgba(56,63,69,0.60);
letter-spacing: 0.5px;
display: flex;
flex-direction: row;
margin-top: 8px;
.firsts1 {
width: 60px;
height: 17px;
...
...
@@ -191,14 +183,15 @@ export default {
color: rgba(56,63,69,0.60);
}
.seconds1 {
width: 70%;
width: 70%;
margin-left: 16px;
height: auto;
font-family: PingFangSC-Regular;
font-size: 13px;
color: #
383F45
;
color: #
4B4A4B
;
}
}
}
}
</
style
>
src/pages/productQuery/query-home.vue
View file @
5d713527
...
...
@@ -2,7 +2,7 @@
* @Descrip: 查询首页
* @Author: your name
* @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-1
0-29 09:42:12
* @LastEditTime: 2019-1
1-01 10:21:19
* @LastEditors: Please set LastEditors
-->
<
template
>
...
...
@@ -21,24 +21,32 @@
<img
src=
"@/assets/distributorSign/search.png"
alt=
""
>
</div>
</div>
<div
v-for=
"(item,index) in prolists"
:key=
"index"
class=
"wrap"
>
<scroll
ref=
"scrollLists"
>
<div
class=
"scroll-box"
>
<div
class=
"box"
@
click=
"goLists(item.division)"
>
<div
class=
"first"
>
<img
src=
"@/assets/productQuery/product-query.png"
alt=
""
>
<p
class=
"product-class"
>
主机厂
</p>
<p
class=
"product"
>
{{
item
.
factory_bp_name
}}
</p>
</div>
<div
class=
"second"
>
<p
class=
"product-class"
>
产品线
</p>
<div
class=
"product"
>
<p>
{{
item
.
division_n
}}
</p>
<div
v-for=
"(item,index) in prolists"
:key=
"index"
class=
"wrap"
>
<div
class=
"box"
@
click=
"goLists(item.division)"
>
<div
class=
"leftPic"
>
<img
src=
"@/assets/productQuery/product-query.png"
alt=
""
class=
"leftPic"
>
</div>
<div
class=
"first"
>
<p
class=
"product-class"
>
主机厂
</p>
<p
class=
"product"
>
{{
item
.
factory_bp_name
}}
</p>
</div>
<div
class=
"second"
>
<p
class=
"product-class"
>
产品线
</p>
<div
class=
"product"
>
<p>
{{
item
.
division_n
}}
</p>
</div>
<img
src=
"@/assets/productQuery/down.png"
alt=
""
@
click
.
stop=
"queryDivision(item.factory_bp_id,index)"
>
</div>
<!--
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
>
-->
</div>
<img
src=
"@/assets/productQuery/pull.png"
alt=
""
@
click
.
stop=
"queryDivision(item.factory_bp_id,index)"
>
</div>
<img
class=
"arrow"
src=
"@/assets/productQuery/getIn.png"
alt=
""
>
</div>
</
div
>
</
scroll
>
</h-content>
</h-view>
</
template
>
...
...
@@ -175,63 +183,87 @@ export default {
}
}
}
.scroll-box {
padding: 8px;
}
.box {
position: relative;
width: 100%;
height:
79
px;
height:
85
px;
background: #fff;
border-top: 1px solid #cccccc70;
margin-bottom: 8px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.leftPic {
position: absolute;
left: 12px;
top:29px;
height: 26px;
width: 26px;
background: rgba(29, 63, 255, 0.1);
border-radius: 8px;
img {
height: 16px;
width: 16px;
position: absolute;
left: 5px;
top: 5px;
}
}
.first {
height:
20
px;
width: 100%
;
display: flex
;
flex-direction: row
;
margin-top: 16
px;
img {
width: 16px
;
height: 16p
x;
margin-left: 16px
;
}
height:
42
px;
line-height: 42px
;
width: 80%
;
position: absolute
;
left: 50
px;
top: 0;
border-bottom: 1px solid #F3F3F7
;
// display: fle
x;
// flex-direction: row
;
//margin-top: 16px;
.product-class {
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56,63,69,0.60);
margin-left: 8px
;
position: absolute
;
}
.product {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #383F45;
margin-left: 16px
position: absolute;
right: 0px;
}
}
.second {
height: 20px;
width: 100%;
display: flex;
flex-direction: row;
margin-top: 7px;
height: 42px;
line-height: 42px;
width: 80%;
position: absolute;
left: 50px;
top: 43px;
.product-class {
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56,63,69,0.60);
margin-left: 54px
;
position: absolute
;
}
.product {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #383F45;
margin-left: 16px;
position: absolute;
right: 30px;
}
img {
width: 16px;
height: 16px;
margin-left: 9px;
position: absolute;
right: 0;
top: 12px;
}
}
.arrow {
...
...
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