user_bond_order_fk.vue 3.7 KB

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