billTraceInfo.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <basic-container>
  3. <avue-crud :option="option" v-model="form">
  4. </avue-crud>
  5. </basic-container>
  6. </template>
  7. <script>
  8. import {getDetail} from "@/api/ldt_bills/billtrace"
  9. export default {
  10. data() {
  11. return {
  12. billId: null,
  13. form: {},
  14. option: {
  15. group: [
  16. {
  17. label: "付款流水",
  18. prop: "bills",
  19. icon: "el-icon-info",
  20. column: [
  21. {
  22. label: "订单号",
  23. prop: "id"
  24. },
  25. ]
  26. },
  27. {
  28. label: "积分流水",
  29. prop: "pointBills",
  30. icon: "",
  31. column: [
  32. {
  33. label: "订单号",
  34. prop: "id"
  35. },
  36. ]
  37. },
  38. {
  39. label: "余额流水",
  40. prop: "balanceBills",
  41. icon: "",
  42. column: [
  43. {
  44. label: "订单号",
  45. prop: "id"
  46. },
  47. ]
  48. },
  49. {
  50. label: "平台流水",
  51. prop: "platformBills",
  52. icon: "",
  53. column: [
  54. {
  55. label: "订单号",
  56. prop: "id"
  57. },
  58. ]
  59. },
  60. {
  61. label: "冻结流水",
  62. prop: "frozenRec",
  63. icon: "",
  64. column: [
  65. {
  66. label: "订单号",
  67. prop: "id"
  68. },
  69. ]
  70. },
  71. ]
  72. },
  73. }
  74. },
  75. mounted() {
  76. this.init();
  77. },
  78. methods: {
  79. init() {
  80. this.billId = this.$route.params.billId;
  81. getDetail(this.billId).then((res) => {
  82. const data = res.data.data;
  83. this.form = data.bills;
  84. });
  85. },
  86. }
  87. }
  88. </script>
  89. <style scoped>
  90. </style>