|
|
@@ -0,0 +1,61 @@
|
|
|
+<template>
|
|
|
+ <div class="order-console">
|
|
|
+ <el-drawer
|
|
|
+ v-model="showOrderConsole"
|
|
|
+ title="充值/消费记录"
|
|
|
+ direction="rtl"
|
|
|
+ size="80%"
|
|
|
+ :before-close="beforeClose"
|
|
|
+ >
|
|
|
+ <el-table class="mt-4" size="large" :data="pager.lists">
|
|
|
+ <el-table-column type="index" width="55"/>
|
|
|
+ <el-table-column label="类型" prop="typeDesc" min-width="120"/>
|
|
|
+ <el-table-column label="场景" prop="bizScene" min-width="80" show-tooltip-when-overflow/>
|
|
|
+ <el-table-column label="发生金额(元)" prop="amount" min-width="120" show-tooltip-when-overflow>
|
|
|
+ <template #default="scope">
|
|
|
+ <span v-if="scope.row.type > 0" style="font-weight: bolder;color:#67C23A">+{{ scope.row.amount }}</span>
|
|
|
+ <span v-else style="font-weight: bolder;color:#F56C6C">-{{ scope.row.amount }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="发生时间" prop="eventTime" min-width="120"/>
|
|
|
+ </el-table>
|
|
|
+ <div class="flex justify-end mt-4">
|
|
|
+ <pagination v-model="pager" @change="getLists"/>
|
|
|
+ </div>
|
|
|
+ </el-drawer>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="ts">
|
|
|
+import { ElScrollbar } from 'element-plus'
|
|
|
+import feedback from '@/utils/feedback'
|
|
|
+import {useElabPaging} from "@/hooks/useElabPaging";
|
|
|
+import {queryBalanceRecordPage} from "@/api/membership";
|
|
|
+// const route = useRoute()
|
|
|
+const queryParams = reactive({
|
|
|
+ mobile: ''
|
|
|
+})
|
|
|
+const { pager, getLists, resetPage, resetParams } = useElabPaging({
|
|
|
+ fetchFun: queryBalanceRecordPage,
|
|
|
+ params: queryParams
|
|
|
+})
|
|
|
+const showOrderConsole = ref(false)
|
|
|
+const open = (item: any) => {
|
|
|
+ showOrderConsole.value = true
|
|
|
+ queryParams.userId = item.userId
|
|
|
+ getLists()
|
|
|
+}
|
|
|
+const beforeClose = () => {
|
|
|
+ showOrderConsole.value = false
|
|
|
+}
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ // initData()
|
|
|
+})
|
|
|
+defineExpose({
|
|
|
+ open
|
|
|
+})
|
|
|
+
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+</style>
|