Commit 5c392d80 authored by linxin's avatar linxin

fix

parent 9ef29de6
...@@ -12,31 +12,31 @@ ...@@ -12,31 +12,31 @@
<list-item :item-height="44" class="invoice"> <list-item :item-height="44" class="invoice">
<item> <item>
<div slot="name">合同号</div> <div slot="name">合同号</div>
<div slot="content">CON2019080310020</div> <div slot="content">{{ detailInfo.project_number }}</div>
</item> </item>
<item> <item>
<div slot="name">经销商</div> <div slot="name">经销商</div>
<div slot="content">****代理商</div> <div slot="content">{{ detailInfo.agent_bp_name }}代理商</div>
</item> </item>
<item> <item>
<div slot="name">承租人</div> <div slot="name">承租人</div>
<div slot="content">张三</div> <div slot="content">{{ detailInfo.bp_name }}</div>
</item> </item>
<item> <item>
<div slot="name">产品线</div> <div slot="name">产品线</div>
<div slot="content">起重机</div> <div slot="content">{{ detailInfo.division_n }}</div>
</item> </item>
<item> <item>
<div slot="name">合同金额</div> <div slot="name">合同金额</div>
<div slot="content">起重机</div> <div slot="content">{{ detailInfo.total_price }}</div>
</item> </item>
<item> <item>
<div slot="name">商务政策</div> <div slot="name">商务政策</div>
<div slot="content">零手续费产品</div> <div slot="content">{{ detailInfo.product_plan_id_n }}</div>
</item> </item>
<item> <item>
<div slot="name">租赁物数量</div> <div slot="name">租赁物数量</div>
<div slot="content">3</div> <div slot="content">{{ detailInfo.product_num }}</div>
</item> </item>
</list-item> </list-item>
...@@ -82,11 +82,33 @@ export default { ...@@ -82,11 +82,33 @@ export default {
}, },
data () { data () {
return { return {
detailInfo: {},
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {},
beforeRouteEnter (to, from, next) {
next(vm => {
vm.getDetail()
})
},
methods: { methods: {
getDetail () {
let vm = this
let url = process.env.basePath + 'con_repayment_detial'
let param = {
project_id: 48818,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.detailInfo = res.info
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
toRepayPlan () { toRepayPlan () {
this.$router.push({ this.$router.push({
name: 'RepayPlan', name: 'RepayPlan',
......
...@@ -12,7 +12,10 @@ ...@@ -12,7 +12,10 @@
<div><span></span>{{ money |currency }}</div> <div><span></span>{{ money |currency }}</div>
</div> </div>
</div> </div>
<h-content class="pay-content"> <h-content v-if="prj_lists.length===0" class="none">
<p>暂无记录</p>
</h-content>
<h-content v-if="prj_lists.length!==0" class="pay-content">
<section v-for="(item,index) in prj_lists" :key="index" class="contract-item"> <section v-for="(item,index) in prj_lists" :key="index" class="contract-item">
<div class="header"> <div class="header">
<img src="@/assets/payment/contract.png" alt=""> <img src="@/assets/payment/contract.png" alt="">
...@@ -31,17 +34,16 @@ ...@@ -31,17 +34,16 @@
</div> </div>
</div> </div>
</section> </section>
<div class="prompt">
<div><img src="@/assets/payment/prompt.png" alt=""></div>
<div>
<p>温馨提示</p>
<p> 推荐使用农行卡,农行卡支付免收手续费!</p>
<p>由于存在款项到账时差性,“已还金额”字段可能XXX,给您造成的不便,请谅解,谢谢!</p>
</div>
</div>
</h-content> </h-content>
<div class="prompt">
<bottom-tab> <div><img src="@/assets/payment/prompt.png" alt=""></div>
<div>
<p>温馨提示</p>
<p> 推荐使用农行卡,农行卡支付免收手续费!</p>
<p>由于存在款项到账时差性,“已还金额”字段可能XXX,给您造成的不便,请谅解,谢谢!</p>
</div>
</div>
<bottom-tab v-if="prj_lists.length!==0" >
<tab-button class="footer" @click.native="createDetail"> <tab-button class="footer" @click.native="createDetail">
&nbsp;&nbsp; &nbsp;&nbsp;
</tab-button> </tab-button>
...@@ -377,5 +379,10 @@ export default { ...@@ -377,5 +379,10 @@ export default {
height: 40px; height: 40px;
margin: 4px 2% 0 2%; margin: 4px 2% 0 2%;
} }
.none{
display:flex;
justify-content: center;
align-items: center;
}
} }
</style> </style>
...@@ -12,7 +12,10 @@ ...@@ -12,7 +12,10 @@
<div><span></span>{{ sumMoney |currency }}</div> <div><span></span>{{ sumMoney |currency }}</div>
</div> </div>
</div> </div>
<h-content class="pay-content"> <h-content v-if="info.length===0" class="none">
<p>暂无记录</p>
</h-content>
<h-content v-if="info.length!==0" class="pay-content">
<div class="search"> <div class="search">
<img src="@/assets/payment/search.png" alt=""> <img src="@/assets/payment/search.png" alt="">
<input type="text" placeholder="请输入合同号/车架号/承租人名称"> <input type="text" placeholder="请输入合同号/车架号/承租人名称">
...@@ -49,16 +52,18 @@ ...@@ -49,16 +52,18 @@
<div slot="name">应还违约金</div> <div slot="name">应还违约金</div>
<span slot="content">{{ money|currency }}</span> <span slot="content">{{ money|currency }}</span>
</item> </item>
</list-item></h-content> </list-item>
<div class="prompt"> <div class="prompt">
<div><img src="@/assets/payment/prompt.png" alt=""></div> <div><img src="@/assets/payment/prompt.png" alt=""></div>
<div> <div>
<p>温馨提示</p> <p>温馨提示</p>
<p> 推荐使用农行卡,农行卡支付免收手续费!</p> <p> 推荐使用农行卡,农行卡支付免收手续费!</p>
<p>由于存在款项到账时差性,“已还金额”字段可能XXX,给您造成的不便,请谅解,谢谢!</p> <p>由于存在款项到账时差性,“已还金额”字段可能XXX,给您造成的不便,请谅解,谢谢!</p>
</div>
</div> </div>
</div> </h-content>
<bottom-tab>
<bottom-tab v-if="info.length!==0">
<tab-button class="footer" @click.native="payDetail()"> <tab-button class="footer" @click.native="payDetail()">
&nbsp;&nbsp; &nbsp;&nbsp;
</tab-button> </tab-button>
...@@ -147,10 +152,10 @@ export default { ...@@ -147,10 +152,10 @@ export default {
}) })
}, },
createData () { createData () {
let obj = {}
let pushList = [] let pushList = []
this.info.forEach(i => { this.info.forEach(i => {
i.con_lists.forEach(j => { i.con_lists.forEach(j => {
let obj = {}
obj.bp_id = window.sessionStorage.getItem('bp_id') obj.bp_id = window.sessionStorage.getItem('bp_id')
obj.amount = j.amount obj.amount = j.amount
obj.contract_id = j.contract_id obj.contract_id = j.contract_id
...@@ -457,5 +462,10 @@ export default { ...@@ -457,5 +462,10 @@ export default {
height: 40px; height: 40px;
margin: 4px 2% 0 2%; margin: 4px 2% 0 2%;
} }
.none{
display:flex;
justify-content: center;
align-items: center;
}
} }
</style> </style>
...@@ -113,24 +113,22 @@ export default { ...@@ -113,24 +113,22 @@ export default {
}, },
createOrder () { createOrder () {
let vm = this let vm = this
vm.toContractRecord(vm.liquidated_damages) let url = process.env.basePath + 'do_order_1_con'
window.sessionStorage.setItem('order_id', 123) let param = {
// let url = process.env.basePath + 'do_order_1_con' info: {
// let param = { bp_id: window.sessionStorage.getItem('bp_id'),
// info: { },
// bp_id: window.sessionStorage.getItem('bp_id'), }
// }, hlsPopup.showLoading('请稍候')
// } vm.$post(url, param).then(function (res) {
// hlsPopup.showLoading('请稍候') vm.hlsPopup.hideLoading()
// vm.$post(url, param).then(function (res) { if (res.result === 'S') {
// vm.hlsPopup.hideLoading() window.sessionStorage.setItem('order_id', res.order_id)
// if (res.result === 'S') { vm.toContractRecord(vm.liquidated_damages)
// window.sessionStorage.setItem('order_id', res.info.order_id) } else {
// vm.toContractRecord(vm.liquidated_damages) hlsPopup.showLongCenter(res.message)
// } else { }
// hlsPopup.showLongCenter(res.message) })
// }
// })
}, },
toPayEntry (money) { toPayEntry (money) {
this.$router.push({ this.$router.push({
......
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