Commit ae60dc78 authored by 李晓兵's avatar 李晓兵

'修改合同签约还款计划获取项目id'

parent 3d308eae
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'prj_cashflow_query' let url = process.env.basePath + 'prj_cashflow_query'
let param = { let param = {
project_id: window.sessionStorage.getItem('project_id'), project_id: this.$route.params.project_id,
} }
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
......
...@@ -45,67 +45,34 @@ ...@@ -45,67 +45,34 @@
<div slot="content">{{ '暂无字段' }}</div> <div slot="content">{{ '暂无字段' }}</div>
</item> </item>
</list-item> </list-item>
<div class="contract"> <div class="contract" v-for="(list,index) in conList" :key="index">
<div> <div>
<div class="top"> <div class="top">
<img src="@/assets/reimburseMyself/q.png" > <img src="@/assets/reimburseMyself/q.png" >
<span class="number">合同号</span> <span class="number">合同号</span>
<span>CON201903022001</span> <span>{{list.project_number}}</span>
</div> </div>
<div class="bottom"> <div class="bottom" v-for="(item,indexTwo) in list.con_lists" :key="indexTwo">
<list-item :item-height="30"> <list-item >
<item> <item>
<div slot="name">首付款</div> <div slot="name">首付款</div>
<div slot="content">{{ '20000'|currency }}</div> <div slot="content">{{ item.down_payment | currency }}</div>
</item> </item>
<item> <item>
<div slot="name">保证金</div> <div slot="name">保证金</div>
<div slot="content">{{ '20000'|currency }}</div> <div slot="content">{{ item.deposit | currency }}</div>
</item> </item>
<item> <item>
<div slot="name">手续费</div> <div slot="name">手续费</div>
<div slot="content">{{ '20000'|currency }}</div> <div slot="content">{{ item.lease_charge | currency }}</div>
</item> </item>
<item> <item>
<div slot="name">GPS费用</div> <div slot="name">GPS费用</div>
<div slot="content">{{ '20000'|currency }}</div> <div slot="content">{{ item.gps_fee | currency }}</div>
</item> </item>
<item> <item>
<div slot="name">保险押金</div> <div slot="name">保险押金</div>
<div slot="content">{{ '20000'|currency }}</div> <div slot="content">{{ item.insurance_fee | currency }}</div>
</item>
</list-item>
</div>
</div>
</div>
<div class="contract">
<div>
<div class="top">
<img src="@/assets/reimburseMyself/q.png" >
<span class="number">合同号</span>
<span>CON201903022001</span>
</div>
<div class="bottom">
<list-item :item-height="30">
<item>
<div slot="name">首付款</div>
<div slot="content">{{ '20000'|currency }}</div>
</item>
<item>
<div slot="name">保证金</div>
<div slot="content">{{ '20000'|currency }}</div>
</item>
<item>
<div slot="name">手续费</div>
<div slot="content">{{ '20000'|currency }}</div>
</item>
<item>
<div slot="name">GPS费用</div>
<div slot="content">{{ '20000'|currency }}</div>
</item>
<item>
<div slot="name">保险押金</div>
<div slot="content">{{ '20000'|currency }}</div>
</item> </item>
</list-item> </list-item>
</div> </div>
...@@ -120,11 +87,13 @@ export default { ...@@ -120,11 +87,13 @@ export default {
data () { data () {
return { return {
detail: {}, detail: {},
conList: [],
} }
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
vm.getDetail() vm.getDetail()
vm.getConList()
}) })
}, },
created: function () {}, created: function () {},
...@@ -148,6 +117,22 @@ export default { ...@@ -148,6 +117,22 @@ export default {
} }
}) })
}, },
getConList() {
let vm = this
let url = process.env.basePath + 'my_con_list_query'
let param = {
order_id: vm.$route.params.order_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.conList = res.prj_lists
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
}, },
} }
</script> </script>
...@@ -199,7 +184,7 @@ export default { ...@@ -199,7 +184,7 @@ export default {
} }
.contract { .contract {
width: 359px; width: 359px;
height: 194.5px; // height: 194.5px;
background-color: #fff; background-color: #fff;
margin: 0 auto; margin: 0 auto;
margin-top: 8px; margin-top: 8px;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<div slot="content" class="money-font">{{ list.orderamount | currency }}</div> <div slot="content" class="money-font">{{ list.orderamount | currency }}</div>
</item> </item>
<item> <item>
<img slot="left-icon" src="" class="left-icon"> <div slot="left-icon" class="left-icon"></div>
<div slot="name" class="time-font">还款时间</div> <div slot="name" class="time-font">还款时间</div>
<div slot="content" class="time-font">{{ list.order_date }}</div> <div slot="content" class="time-font">{{ list.order_date }}</div>
</item> </item>
......
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