Commit 6b0f5b03 authored by linxin's avatar linxin

支付修改

parent af12fcb8
......@@ -116,6 +116,7 @@ export default {
vm.getRentInfo()
vm.money = vm.$route.params.money
vm.sumMoney = vm.money
vm.keyWords = ''
vm.info = []
vm.showList = []
vm.searchList = []
......@@ -163,7 +164,6 @@ export default {
vm.sumMoney = a
}
}
vm.money = a
})
} else {
if (vm.money !== '') {
......@@ -177,7 +177,7 @@ export default {
deep: true,
},
keyWords (newVal, oldVal) {
this.search()
this.getRentInfo()
},
'sumMoney': {
handler (newVal, oulVal) {
......@@ -202,17 +202,27 @@ export default {
},
getRentInfo () {
let vm = this
let url = process.env.basePath + 'payment_con_list_query'
let randomString = Math.floor(Math.random() * 21)
let url =
process.env.basePath +
'payment_con_list_query' +
'&index' +
`'${randomString}'`
let param = {
bp_id: window.localStorage.getItem('bp_id'),
pagesize: 10,
pagenum: vm.pagenum,
searchInput: vm.keyWords,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.info = res.prj_lists
vm.info.forEach(i => {
i.con_lists.forEach(j => {
let num = (parseFloat(j.due_amount) - parseFloat(j.received_amount))
vm.$set(j, 'amount', num)
})
})
vm.showList = vm.info
} else {
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