Commit 97e81ad9 authored by 许珑标's avatar 许珑标

充值记录查询

parent 92aabe69
...@@ -8,7 +8,13 @@ export function listAccRecharge(query) { ...@@ -8,7 +8,13 @@ export function listAccRecharge(query) {
params: query params: query
}) })
} }
export function listBill(query) {
return request({
url: '/business/accRecharge/page',
method: 'get',
params: query
})
}
// 查询账户充值记录所有列表 // 查询账户充值记录所有列表
export function listAllAccRecharge(query) { export function listAllAccRecharge(query) {
return request({ return request({
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<div style="width: 90%;"> <div style="width: 90%;">
<el-row> <el-row>
<el-col :span="12"><el-button style="width:120px;" type="primary" plain <el-col :span="12"><el-button style="width:120px;" type="primary" plain
@click="showBill(ele.cardNo)">充值记录</el-button></el-col> @click="showBill(ele.payAccNo)">充值记录</el-button></el-col>
<el-col :span="12"><el-button style="width:120px;" type="primary" plain <el-col :span="12"><el-button style="width:120px;" type="primary" plain
@click="salarySelection(ele.payAccNo)">去发薪</el-button></el-col> @click="salarySelection(ele.payAccNo)">去发薪</el-button></el-col>
</el-row> </el-row>
...@@ -361,10 +361,10 @@ ...@@ -361,10 +361,10 @@
</el-tabs> </el-tabs>
<el-table v-loading="loading" :data="billDataList"> <el-table v-loading="loading" :data="billDataList">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="账单类型" align="center" prop="billType"> <el-table-column label="账单类型" align="center" prop="capitalPurpose">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.billType == 1">服务费账单</span> <span v-if="scope.row.capitalPurpose == 1">服务费账单</span>
<span v-if="scope.row.billType == 2">余额</span> <span v-if="scope.row.capitalPurpose == 2">余额</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="收支类型" align="center" prop="tranType"> <el-table-column label="收支类型" align="center" prop="tranType">
...@@ -383,7 +383,7 @@ ...@@ -383,7 +383,7 @@
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="时间" align="center" prop="tranTime" width="180" /> <el-table-column label="时间" align="center" prop="createTime" width="180" />
</el-table> </el-table>
<el-pagination small layout="prev, pager, next" :total="billTotal" :page.sync="billQuery.pageNum" <el-pagination small layout="prev, pager, next" :total="billTotal" :page.sync="billQuery.pageNum"
@size-change="handleSizeChange" @current-change="handleCurrentChange" :limit.sync="billQuery.pageSize" @size-change="handleSizeChange" @current-change="handleCurrentChange" :limit.sync="billQuery.pageSize"
...@@ -399,14 +399,16 @@ ...@@ -399,14 +399,16 @@
<script> <script>
import AccSelect from '@/views/business/accInfo/accSelect.vue' import AccSelect from '@/views/business/accInfo/accSelect.vue'
import { listAllAccInfo, getAccAliInfo } from '@/api/business/accInfo' import { listAllAccInfo, getAccAliInfo } from '@/api/business/accInfo'
import { addAccRecharge } from '@/api/business/accRecharge.js' import { addAccRecharge, listBill } from '@/api/business/accRecharge.js'
import { addDateRange } from '@/utils/ruoyi' import { addDateRange } from '@/utils/ruoyi'
import { formatDate } from '@/utils'
import QrCodeComponent from '@/components/QrCode.vue' import QrCodeComponent from '@/components/QrCode.vue'
export default { export default {
name: 'SalaryAccount', name: 'SalaryAccount',
components: { QrCodeComponent, AccSelect }, components: { QrCodeComponent, AccSelect },
data() { data() {
return { return {
billPanel: false,
qrPayPanel: { qrPayPanel: {
open: false, open: false,
payUrl: '' payUrl: ''
...@@ -474,7 +476,7 @@ export default { ...@@ -474,7 +476,7 @@ export default {
billQuery: { billQuery: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
billType: 1, //账单类型:1-服务费;2-余额 capitalPurpose: 1, //账单类型:1-服务费;2-余额
tranType: '', //收支类型:1-收入;2-支出 tranType: '', //收支类型:1-收入;2-支出
startTime: '', startTime: '',
endTime: '', endTime: '',
...@@ -483,7 +485,8 @@ export default { ...@@ -483,7 +485,8 @@ export default {
billDataList: [], billDataList: [],
billTotal: 0, billTotal: 0,
userInfoName: null, userInfoName: null,
accountCollection: [] accountCollection: [],
loading: false
} }
}, },
created() { }, created() { },
...@@ -497,6 +500,10 @@ export default { ...@@ -497,6 +500,10 @@ export default {
} }
}, },
methods: { methods: {
billTypeTabClick(tab) {
this.billQuery.capitalPurpose = tab.name === "second" ? 2 : 1 //1:服务费 2:余额
this.getBillList();
},
showBill(cardNo) { showBill(cardNo) {
this.billQuery.cardNo = cardNo; this.billQuery.cardNo = cardNo;
this.billPanel = true; this.billPanel = true;
......
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