content.config.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. import { ContentConfig } from "/@/components/PageContent";
  2. import { httpList, httpAdd } from "/@/api/InvoiceSales/refund";
  3. import { h } from "vue";
  4. import { ElTag } from "element-plus";
  5. import { RETRUN_STATUS } from "/@/utils/details/refund";
  6. import { refund_type } from "./search.config";
  7. import {
  8. xs_order_source_options,
  9. xs_order_type_options
  10. } from "/@/utils/status";
  11. const columns = [
  12. // {
  13. // type: "selection",
  14. // width: 40,
  15. // align: "center",
  16. // hide: ({ checkList }) => !checkList.includes("勾选列")
  17. // },
  18. // {
  19. // label: "序号",
  20. // type: "index",
  21. // width: 70,
  22. // hide: ({ checkList }) => !checkList.includes("序号列")
  23. // },
  24. {
  25. label: "退款编码",
  26. prop: "returnCode",
  27. width: "150px"
  28. },
  29. {
  30. label: "资金认领编码",
  31. prop: "logNo",
  32. width: 150
  33. },
  34. {
  35. label: "销售订单编码",
  36. prop: "orderCode",
  37. width: "150px"
  38. },
  39. {
  40. label: "资金编码",
  41. prop: "tradNo",
  42. width: 150
  43. },
  44. {
  45. label: "退款金额",
  46. width: "110px",
  47. prop: "cancel_fee"
  48. },
  49. // {
  50. // label: "退款类型",
  51. // prop: "status",
  52. // width: "160px",
  53. // cellRenderer: ({ row }) => {
  54. // return h(ElTag, null, {
  55. // default: () =>
  56. // refund_type.find(s => s.value === String(row.type))?.label || "--"
  57. // });
  58. // }
  59. // },
  60. {
  61. label: "状态",
  62. prop: "status",
  63. width: 100,
  64. cellRenderer: ({ row }) => {
  65. return h(ElTag, null, {
  66. default: () =>
  67. RETRUN_STATUS.find(s => s.value === String(row.status))?.label || "--"
  68. });
  69. }
  70. },
  71. {
  72. label: "订单来源",
  73. prop: "qrdSource",
  74. width: "100px",
  75. cellRenderer({ row }) {
  76. return h(ElTag, null, {
  77. default: () =>
  78. xs_order_source_options.find(s => s.value === row.qrdSource)?.label
  79. });
  80. }
  81. },
  82. {
  83. label: "商品类型",
  84. prop: "qrdType",
  85. width: "100px",
  86. cellRenderer({ row }) {
  87. return h(ElTag, null, {
  88. default: () =>
  89. xs_order_type_options.find(s => s.value === row.qrdType)?.label
  90. });
  91. }
  92. },
  93. {
  94. label: "商品编码",
  95. prop: "goodNo",
  96. width: "150px"
  97. },
  98. {
  99. label: "商品名称",
  100. prop: "goodName",
  101. minWidth: "160px"
  102. },
  103. {
  104. label: "平台名称",
  105. prop: "platName",
  106. width: "100px"
  107. },
  108. {
  109. label: "客户编码",
  110. width: "150px",
  111. prop: "companyNo"
  112. },
  113. {
  114. label: "客户名称",
  115. width: "180px",
  116. prop: "customerName"
  117. },
  118. {
  119. label: "申请人",
  120. prop: "apply_name",
  121. width: "80px"
  122. },
  123. {
  124. label: "添加时间",
  125. prop: "addtime",
  126. width: "140px"
  127. },
  128. {
  129. label: "操作",
  130. fixed: "right",
  131. width: 50,
  132. slot: "operation"
  133. }
  134. ];
  135. const contentConfig: ContentConfig = {
  136. title: "退款申请管理",
  137. superUserNoAction: true,
  138. columns,
  139. apis: {
  140. httpList,
  141. httpAdd
  142. }
  143. };
  144. export default contentConfig;