user_bond.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <div v-loading="loading" style="padding: 20px">
  3. <div style="margin-bottom: 10px">
  4. <el-input v-model="search.uid" size="small" style="width: 200px" placeholder="用户的UID"></el-input>
  5. <el-button size="small" @click="search_" type="primary">搜索</el-button>
  6. <el-button size="small" @click="show_child_page('user_bond_fk_add',{})" type="primary">扣保证金</el-button>
  7. <div class="flex_1" />
  8. </div>
  9. <div style="width: 100%">
  10. <el-table row-key="id" :data="list">
  11. <el-table-column prop="order_no" fixed width="170px" label="UID">
  12. <template slot-scope="scope">
  13. <a style="color: #006eff" target="_blank" :href="scope.row.user_info.link">{{scope.row.uid}}</a>
  14. </template>
  15. </el-table-column>
  16. <el-table-column prop="money" label="保证金">
  17. <template slot-scope="scope">
  18. <span style="cursor: pointer" @click="show_pub_log(scope.row.uid)">{{scope.row.money}}</span>
  19. </template>
  20. </el-table-column>
  21. <el-table-column prop="cz_money" label="充值总金额"></el-table-column>
  22. <el-table-column prop="tk_money" label="退款总金额"></el-table-column>
  23. <el-table-column prop="fk_money" label="罚款总金额"></el-table-column>
  24. <el-table-column prop="lasttime" label="最后充值时间"></el-table-column>
  25. </el-table>
  26. </div>
  27. <el-pagination
  28. background
  29. style="margin-top: 10px"
  30. layout="total,prev, pager, next"
  31. :current-page="search.page"
  32. @current-change="page_event"
  33. :page-size="search.pagesize"
  34. :total="search.total">
  35. </el-pagination>
  36. <pub_log v-if="drawer_obj.pub_log" :back="this" :pro="drawer_obj.id" action="i_user_bond"></pub_log>
  37. <user_bond_fk_add v-if="child_page.type=='user_bond_fk_add'" :back="this" :pro="child_page.id"></user_bond_fk_add>
  38. </div>
  39. </template>
  40. <script>
  41. import user_bond_fk_add from '@/components/user_bond/user_bond_fk_add';
  42. import pub_log from '@/components/drawer/pub_log';
  43. export default {
  44. props: {
  45. status: {},
  46. role: {},
  47. invoice_type:{}
  48. },
  49. components: {user_bond_fk_add,pub_log},
  50. data() {
  51. return {
  52. loading: true,
  53. pay_type:"",
  54. drawer_obj:{
  55. user_settlement:false,
  56. user_invoice_add:false,
  57. id:0,
  58. pub_log:false,
  59. config:false,
  60. obj:{},
  61. },
  62. search: {
  63. pagesize: 10,
  64. total: 0,
  65. status:1,
  66. name: "",
  67. invoice_type:[],
  68. is_sx_js:true
  69. },
  70. child_page:{
  71. type:"",
  72. obj:{}
  73. }
  74. };
  75. },
  76. computed: {},
  77. watch: {},
  78. created() {
  79. this.search.status=this.status;
  80. this.search.invoice_type=this.invoice_type;
  81. },
  82. mounted() {
  83. this.getList();
  84. },
  85. methods: {
  86. show_child_page(type,obj)
  87. {
  88. this.child_page.type=type;
  89. this.child_page.obj=obj;
  90. },
  91. show_config()
  92. {
  93. this.drawer_obj.id = 0;
  94. this.drawer_obj.config = true;
  95. },
  96. show_pub_log(id)
  97. {
  98. this.drawer_obj.id = id;
  99. this.drawer_obj.pub_log = true;
  100. },
  101. async getList() {
  102. this.loading = true;
  103. this.drawer = false;
  104. let data=this.search;
  105. data.act="";
  106. let res = await this.$post("/uapi/pub/info/user/user_bond/admin_list", this.search);
  107. this.loading = false;
  108. if (res.status == 1) {
  109. this.list = res.data.list;
  110. this.search.total = res.data.total;
  111. this.payMoney=res.data.payMoney;
  112. }
  113. },
  114. page_event(page) {
  115. this.search.page = page;
  116. this.getList();
  117. },
  118. getData_(id) {
  119. this.search.status = id;
  120. this.search.page=0;
  121. this.getList();
  122. },
  123. search_() {
  124. this.search.page = 0;
  125. this.getList();
  126. },
  127. }
  128. };
  129. </script>
  130. <style scoped>
  131. .el-tag {
  132. cursor: pointer;
  133. }
  134. </style>