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

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

parent 3d308eae
......@@ -105,7 +105,7 @@ export default {
let vm = this
let url = process.env.basePath + 'prj_cashflow_query'
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.hlsPopup.hideLoading()
......
......@@ -45,67 +45,34 @@
<div slot="content">{{ '暂无字段' }}</div>
</item>
</list-item>
<div class="contract">
<div class="contract" v-for="(list,index) in conList" :key="index">
<div>
<div class="top">
<img src="@/assets/reimburseMyself/q.png" >
<span class="number">合同号</span>
<span>CON201903022001</span>
<span>{{list.project_number}}</span>
</div>
<div class="bottom">
<list-item :item-height="30">
<div class="bottom" v-for="(item,indexTwo) in list.con_lists" :key="indexTwo">
<list-item >
<item>
<div slot="name">首付款</div>
<div slot="content">{{ '20000'|currency }}</div>
<div slot="content">{{ item.down_payment | currency }}</div>
</item>
<item>
<div slot="name">保证金</div>
<div slot="content">{{ '20000'|currency }}</div>
<div slot="content">{{ item.deposit | currency }}</div>
</item>
<item>
<div slot="name">手续费</div>
<div slot="content">{{ '20000'|currency }}</div>
<div slot="content">{{ item.lease_charge | currency }}</div>
</item>
<item>
<div slot="name">GPS费用</div>
<div slot="content">{{ '20000'|currency }}</div>
<div slot="content">{{ item.gps_fee | currency }}</div>
</item>
<item>
<div slot="name">保险押金</div>
<div slot="content">{{ '20000'|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>
<div slot="content">{{ item.insurance_fee | currency }}</div>
</item>
</list-item>
</div>
......@@ -120,11 +87,13 @@ export default {
data () {
return {
detail: {},
conList: [],
}
},
beforeRouteEnter (to, from, next) {
next(vm => {
vm.getDetail()
vm.getConList()
})
},
created: function () {},
......@@ -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>
......@@ -199,7 +184,7 @@ export default {
}
.contract {
width: 359px;
height: 194.5px;
// height: 194.5px;
background-color: #fff;
margin: 0 auto;
margin-top: 8px;
......
......@@ -29,7 +29,7 @@
<div slot="content" class="money-font">{{ list.orderamount | currency }}</div>
</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="content" class="time-font">{{ list.order_date }}</div>
</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