Sfoglia il codice sorgente

个人提现记录

YY 2 anni fa
parent
commit
5f0288e311

+ 6 - 0
src/router/module/platmanag.js

@@ -11,6 +11,12 @@ export default [
     meta: { title: '平台管理-用户管理-流水' },
     component: () => import('@/views/platmanag/user/detail.vue'),
   },
+  {
+    path: '/platmanag/user/record',
+    name: 'platmanag_user_record',
+    meta: { title: '平台管理-用户管理-提现记录' },
+    component: () => import('@/views/platmanag/user/record.vue'),
+  },
   {
     path: '/platmanag/goodsTags',
     name: 'platmanag_goodsTags',

+ 6 - 0
src/views/platmanag/user/detail.vue

@@ -16,6 +16,9 @@
             可提现金额:<span style="color: red">{{ info.canGet }}</span
             >元
           </el-col>
+          <el-col :span="24">
+            <el-button type="success" @click="toRecord()"> 提现记录 </el-button>
+          </el-col>
         </el-col>
         <el-col :span="24" class="two">
           <data-table :fields="fields" :opera="opera" @query="search" :data="list" :total="total" @view="toView">
@@ -105,6 +108,9 @@ export default {
         this.$router.push({ path: `/platmanag/order`, query: { source_id: data.source_id } });
       }
     },
+    toRecord() {
+      this.$router.push({ path: `/platmanag/user/record`, query: { id: this.id } });
+    },
     // 查询其他信息
     async searchOther() {
       let res;

+ 115 - 0
src/views/platmanag/user/record.vue

@@ -0,0 +1,115 @@
+<template>
+  <div id="card-1">
+    <el-row>
+      <el-col :span="24" class="main">
+        <el-col :span="24" style="margin: 0 0 10px 0">
+          <el-col :span="2"><el-button type="primary" size="mini" @click="toBack()">返回</el-button></el-col>
+        </el-col>
+        <el-col :span="24" class="one"> <span>提现申请记录</span> </el-col>
+        <el-col :span="24" class="four">
+          <data-table :fields="fields" @query="search" :data="list" :total="total"> </data-table>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+const _ = require('lodash');
+const moment = require('moment');
+import { mapState, createNamespacedHelpers } from 'vuex';
+const { mapActions } = createNamespacedHelpers('cashOut');
+const { mapActions: dictData } = createNamespacedHelpers('dictData');
+export default {
+  name: 'card-1',
+  props: {},
+  components: {},
+  data: function () {
+    const that = this;
+    return {
+      list: [],
+      total: 0,
+      fields: [
+        { label: '申请人', model: 'customer.name' },
+        { label: '提现金额', model: 'money' },
+        { label: '银行卡号', model: 'card', showTip: false },
+        { label: '银行卡所属', model: 'card_name' },
+        { label: '所属银行', model: 'card_bank' },
+        { label: '申请时间', model: 'apply_time' },
+        {
+          label: '审核状态',
+          model: 'status',
+          format: (i) => {
+            let data = this.statusList.find((f) => f.value == i);
+            if (data) return data.label;
+            else return '暂无';
+          },
+        },
+        { label: '审核处理人', model: 'deal_person.name' },
+        { label: '审核时间', model: 'exam_time' },
+      ],
+      statusList: [],
+    };
+  },
+  async created() {
+    await this.search();
+    await this.searchOther();
+  },
+  methods: {
+    ...dictData({ dictQuery: 'query' }),
+    ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
+    // 查询
+    async search({ skip = 0, limit = this.$limit, ...info } = {}) {
+      let condition = _.cloneDeep(this.searchForm);
+      info.customer = this.id;
+      let res = await this.query({ skip, limit, ...condition, ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, 'list', res.data);
+        this.$set(this, 'total', res.total);
+      }
+    },
+    // 返回
+    toBack() {
+      window.history.go('-1');
+    },
+    // 查询其他信息
+    async searchOther() {
+      let res;
+      // 提现审核状态
+      res = await this.dictQuery({ code: 'withdrawal_exam_status' });
+      if (this.$checkRes(res)) this.$set(this, `statusList`, res.data);
+    },
+  },
+  computed: {
+    ...mapState(['user']),
+    id() {
+      return this.$route.query.id;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  watch: {
+    test: {
+      deep: true,
+      immediate: true,
+      handler(val) {},
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.one {
+  margin: 0 0 10px 0;
+
+  span:nth-child(1) {
+    font-size: 20px;
+    font-weight: 700;
+    margin-right: 10px;
+  }
+}
+.two {
+  margin: 0 0 10px 0;
+}
+</style>