user_settlement.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <el-drawer
  3. title="关联订单"
  4. size="60%"
  5. :append-to-body="false"
  6. :destroy-on-close="true"
  7. :visible="true"
  8. :modal-append-to-body="false"
  9. :before-close="handleClose"
  10. :wrapperClosable="false"
  11. ref="drawer_close">
  12. <div v-loading="loading" style="padding: 20px" class="block">
  13. <el-table row-key="id" :data="list">
  14. <el-table-column prop="title" label="关联项目">
  15. <template slot-scope="scope">
  16. <a :href="scope.row.link" style="color: #006eff" target="_blank">{{scope.row.title}}</a>
  17. </template>
  18. </el-table-column>
  19. <el-table-column prop="money" label="应付金额">
  20. <template slot-scope="scope">
  21. <span>{{scope.row.y_money}}</span>
  22. </template>
  23. </el-table-column>
  24. <el-table-column prop="sf_money" label="实付金额">
  25. <template slot-scope="scope">
  26. <span>{{scope.row.sf_money}}</span>
  27. </template>
  28. </el-table-column>
  29. <el-table-column prop="sf_money" label="结算费率">
  30. <template slot-scope="scope">
  31. <span>{{scope.row.js_rate}}</span>
  32. </template>
  33. </el-table-column>
  34. <el-table-column prop="status" label="开票类型">
  35. <template slot-scope="scope">
  36. <span>{{scope.row.invoice_type_text}}</span>
  37. </template>
  38. </el-table-column>
  39. <el-table-column prop="status" label="订单状态">
  40. <template slot-scope="scope">
  41. <span>{{scope.row.status_text}}</span>
  42. </template>
  43. </el-table-column>
  44. </el-table>
  45. </div>
  46. </el-drawer>
  47. </template>
  48. <script>
  49. export default {
  50. props: {
  51. action: {
  52. },
  53. pro: {
  54. },
  55. back:{
  56. type:Object
  57. },
  58. },
  59. data() {
  60. return {
  61. search: {
  62. pagesize: 15,
  63. page:0,
  64. total:0,
  65. },
  66. loading:true,
  67. list: []
  68. };
  69. },
  70. computed: {},
  71. watch: {},
  72. created() {},
  73. mounted() {
  74. this.getList();
  75. },
  76. methods: {
  77. handleClose:function()
  78. {
  79. this.back.drawer_obj.user_settlement=false;
  80. this.back.drawer_obj.id="";
  81. },
  82. async getList() {
  83. this.loading = true;
  84. let data = this.search;
  85. data.user_invoice_id = this.pro;
  86. let res = await this.$post("/uapi/pub/info/user/user_settlement/admin_list",data);
  87. this.loading = false;
  88. if (res.status == 1) {
  89. this.list = res.data.list;
  90. this.search.total = res.data.total;
  91. }
  92. },
  93. page_event(page) {
  94. this.search.page = page;
  95. this.getList();
  96. },
  97. }
  98. };
  99. </script>
  100. <style scoped>
  101. .el-tag {
  102. cursor: pointer;
  103. }
  104. </style>