Commit 6bbf3bdd authored by linxin's avatar linxin

Merge branch 'liuxin' into develop

parents 66e22bb1 95baf90b
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
</div> </div>
<h-content class="pay-content"> <h-content class="pay-content">
<section v-for="(item,index) in 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="">
<p>合同号 &nbsp; {{ item.project_number }}</p> <p>合同号 &nbsp; {{ item.project_number }}</p>
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
<div><span>款项</span><span>应还金额</span><span>已还金额</span><span>本次还款额</span></div> <div><span>款项</span><span>应还金额</span><span>已还金额</span><span>本次还款额</span></div>
</div> </div>
<div class="content"> <div class="content">
<div class="list"> <div v-for="(e,i) in item.cf_lists" :key="i" class="list">
<span>首付款</span> <span>{{ e.cf_item_name }}</span>
<div>300,000.00</div> <div>{{ e.due_amount|currency }}</div>
<p>90,000.00</p> <p>{{ e.received_amount|currency }}</p>
<input type="text" placeholder="请输入还款金额"> <input v-model="e.pay" type="text" placeholder="请输入还款金额">
</div> </div>
<div class="list"> <!-- <div class="list">
<span>保证金</span> <span>保证金</span>
<div>10,000.00</div> <div>10,000.00</div>
<p>8,000.00</p> <p>8,000.00</p>
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
<div>50,000.00</div> <div>50,000.00</div>
<p>900.00</p> <p>900.00</p>
<input type="text" placeholder="请输入还款金额"> <input type="text" placeholder="请输入还款金额">
</div> </div> -->
<div class="list"> <!-- <div class="list">
<span>保险押金</span> <span>保险押金</span>
<div>10,000.00</div> <div>10,000.00</div>
<p>8,000.00</p> <p>8,000.00</p>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<div>10,000.00</div> <div>10,000.00</div>
<p>8,000.00</p> <p>8,000.00</p>
<input type="text" placeholder="请输入还款金额"> <input type="text" placeholder="请输入还款金额">
</div> </div> -->
</div> </div>
</section> </section>
</h-content> </h-content>
...@@ -80,20 +80,93 @@ export default { ...@@ -80,20 +80,93 @@ export default {
}, },
data () { data () {
return { return {
money: '', money: 0,
lists: [], inputNum: 0,
prj_lists: [
{
'project_id': '48792',
'project_number': 'PRJ2019078',
'bp_name': '李永波装甲车租赁公司',
'cf_lists': [
{
'received_amount': '9500000',
'cf_item_name': '保证金',
'cf_item': '51',
'project_number': 'PRJ2019078',
'due_amount': '9500000',
},
{
'received_amount': '3150000',
'cf_item_name': '咨询费',
'cf_item': '15',
'project_number': 'PRJ2019078',
'due_amount': '3150000',
},
],
},
{
'project_id': '48800',
'project_number': 'PRJ2019082',
'bp_name': '李永波装甲车租赁公司',
'cf_lists': [
{
'received_amount': '7000000',
'cf_item_name': '保证金',
'cf_item': '51',
'project_number': 'PRJ2019082',
'due_amount': '7000000',
},
{
'received_amount': '4050000',
'cf_item_name': '咨询费',
'cf_item': '15',
'project_number': 'PRJ2019082',
'due_amount': '4050000',
},
],
},
],
} }
}, },
computed: {},
watch: {}, watch: {
'prj_lists': {
handler (newName, oldName) {
let a = 0
for (let i in this.prj_lists) {
let val = i.cf_lists.map(j => {
// a = a + parseFloat(j.pay)
// console.log(a)
// return j.pay
// return j
console.log(j)
})
console.log(val)
}
// let sum = this.prj_lists.map(i => {
// i.cf_lists.map(j => {
// a = a + parseFloat(j.pay)
// console.log(a)
// return j.pay
// return j
// })
// })
// this.money = val
// console.log(sum)
},
immediate: true,
deep: true,
},
},
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
vm.getDetail() // vm.getDetail()
}) })
}, },
activated () { // activated () {
this.money = this.$route.params.money // this.money = this.$route.params.money
}, // },
methods: { methods: {
getDetail () { getDetail () {
let vm = this let vm = this
...@@ -105,7 +178,7 @@ export default { ...@@ -105,7 +178,7 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.lists = res.lists vm.prj_lists = res.prj_lists
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
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