Commit 6b0f5b03 authored by linxin's avatar linxin

支付修改

parent af12fcb8
...@@ -116,6 +116,7 @@ export default { ...@@ -116,6 +116,7 @@ export default {
vm.getRentInfo() vm.getRentInfo()
vm.money = vm.$route.params.money vm.money = vm.$route.params.money
vm.sumMoney = vm.money vm.sumMoney = vm.money
vm.keyWords = ''
vm.info = [] vm.info = []
vm.showList = [] vm.showList = []
vm.searchList = [] vm.searchList = []
...@@ -163,7 +164,6 @@ export default { ...@@ -163,7 +164,6 @@ export default {
vm.sumMoney = a vm.sumMoney = a
} }
} }
vm.money = a
}) })
} else { } else {
if (vm.money !== '') { if (vm.money !== '') {
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
deep: true, deep: true,
}, },
keyWords (newVal, oldVal) { keyWords (newVal, oldVal) {
this.search() this.getRentInfo()
}, },
'sumMoney': { 'sumMoney': {
handler (newVal, oulVal) { handler (newVal, oulVal) {
...@@ -202,17 +202,27 @@ export default { ...@@ -202,17 +202,27 @@ export default {
}, },
getRentInfo () { getRentInfo () {
let vm = this 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 = { let param = {
bp_id: window.localStorage.getItem('bp_id'), bp_id: window.localStorage.getItem('bp_id'),
pagesize: 10, searchInput: vm.keyWords,
pagenum: vm.pagenum,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
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.info = res.prj_lists 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 vm.showList = vm.info
} 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