Commit cfe17801 authored by 小费同学阿's avatar 小费同学阿 💬

缴费:押金列表分页

parent be575b58
...@@ -71,6 +71,14 @@ export function selectFinListById(query) { ...@@ -71,6 +71,14 @@ export function selectFinListById(query) {
params: query params: query
}) })
} }
// 获取押金信息列表页(分页)
export function selectFinListPage(query) {
return request({
url: '/business/trade/his/selectFinListPage',
method: 'get',
params: query
})
}
// 充值押金弹窗信息获取接口 // 充值押金弹窗信息获取接口
......
...@@ -626,6 +626,15 @@ color: #333333;" ...@@ -626,6 +626,15 @@ color: #333333;"
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!--分页-->
<pagination
v-show="total>6"
:limit.sync="queryParams.pageSize"
:page.sync="queryParams.pageNum"
:total="total"
:page-sizes="[6,20,50]"
@pagination="getDeposit"
/>
</div> </div>
</div> </div>
</div> </div>
...@@ -654,8 +663,7 @@ import { getRecord } from '@/api/business/mdeicalRecord' ...@@ -654,8 +663,7 @@ import { getRecord } from '@/api/business/mdeicalRecord'
import { import {
buyingOnCredit, getPaymentList, buyingOnCredit, getPaymentList,
hospitalGetInfoById, hospitalGetInfoById,
paymentDetail, paymentDetail, selectFinListPage
selectFinListById
} from '@/api/financial/payment' } from '@/api/financial/payment'
import { tradeTypeMap, tradeTypeMapDepositList } from '../constant' import { tradeTypeMap, tradeTypeMapDepositList } from '../constant'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
...@@ -673,6 +681,14 @@ export default { ...@@ -673,6 +681,14 @@ export default {
}, },
data() { data() {
return { return {
// 查询参数
queryParams: {
// 导出列表
pageNum: 1,
pageSize: 6
},
// 总条数
total: 0,
// 收入类目 // 收入类目
tradeTypeMap: tradeTypeMap, tradeTypeMap: tradeTypeMap,
depositList: [], // 押金列表数据 depositList: [], // 押金列表数据
...@@ -873,8 +889,8 @@ export default { ...@@ -873,8 +889,8 @@ export default {
sessionStorage.setItem('Payment-single-detail', JSON.stringify({ sessionStorage.setItem('Payment-single-detail', JSON.stringify({
detailInfo: this.detailInfo, detailInfo: this.detailInfo,
singleData: row, singleData: row,
parentData: this.rowData, parentData: this.rowData
depositList: this.depositList // depositList: this.depositList
})) }))
this.$router.push({ this.$router.push({
name: 'Payment-single-detail' name: 'Payment-single-detail'
...@@ -1039,6 +1055,7 @@ export default { ...@@ -1039,6 +1055,7 @@ export default {
this.rowData['payRecipientShow'] = (this.rowData.payType === '3') ? '百邦萌宠平台' : this.rowData.payRecipient this.rowData['payRecipientShow'] = (this.rowData.payType === '3') ? '百邦萌宠平台' : this.rowData.payRecipient
console.log('rowData', this.rowData) console.log('rowData', this.rowData)
this.getInfo() this.getInfo()
this.getDeposit()
}) })
}, },
parseTime, parseTime,
...@@ -1089,16 +1106,23 @@ export default { ...@@ -1089,16 +1106,23 @@ export default {
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
}
},
getDeposit() {
// 押金列表 // 押金列表
selectFinListById({ medicalRecordId: this.rowData.medicalRecordId }).then(res => { selectFinListPage({ medicalRecordId: this.rowData.medicalRecordId,
this.depositList = res.data pageSize: this.queryParams.pageSize,
console.log('押金列表返回值', this.depositList) pageNum: this.queryParams.pageNum }).then(res => {
this.depositList = res.rows
console.log('分页的押金列表信息', this.depositList)
this.total = res.total
this.loading = false
console.log('押金列表返回值页数', res.total)
}).catch(err => { }).catch(err => {
console.log('押金列表返回值Err', err) console.log('押金列表返回值Err', err)
}) })
} }
} }
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
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