Commit 5d713527 authored by 786817560's avatar 786817560

'问题修复'

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