content.config.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import { ContentConfig } from "/@/components/PageContent";
  2. import { httpList } from "/@/api/InvoiceSales/capitalClaim";
  3. import dayjs from "dayjs";
  4. import { h } from "vue";
  5. import { ElTag } from "element-plus";
  6. import { capital_status } from "./configs";
  7. import { CAPITAL_STATUS } from "/@/utils/details/tragelog";
  8. const columns = [
  9. // {
  10. // type: "selection",
  11. // width: 55,
  12. // hide: ({ checkList }) => !checkList.includes("勾选列")
  13. // },
  14. // {
  15. // label: "序号",
  16. // type: "index",
  17. // width: 70,
  18. // hide: ({ checkList }) => !checkList.includes("序号列")
  19. // },
  20. {
  21. type: "expand",
  22. slot: "expand"
  23. },
  24. {
  25. label: "资金编号",
  26. prop: "tradNo",
  27. width: 140
  28. },
  29. {
  30. label: "状态",
  31. prop: "status",
  32. width: 100,
  33. cellRenderer: ({ row, props }) =>
  34. h(
  35. ElTag,
  36. {
  37. size: props.size
  38. },
  39. {
  40. default: () => {
  41. const status = row.logNo ? CAPITAL_STATUS : capital_status;
  42. return (
  43. status.find(s => String(row.status) === String(s.value))?.label ||
  44. "--"
  45. );
  46. }
  47. }
  48. )
  49. },
  50. {
  51. label: "收入金额",
  52. prop: "total_fee",
  53. width: 120
  54. },
  55. {
  56. label: "未认领金额",
  57. prop: "balance",
  58. width: 120
  59. },
  60. {
  61. label: "已认领金额",
  62. prop: "used_fee",
  63. width: 120
  64. },
  65. {
  66. label: "收款公司账户",
  67. prop: "trade_in_account",
  68. width: 145
  69. },
  70. {
  71. label: "交易行名",
  72. prop: "trade_bank",
  73. width: 160
  74. },
  75. {
  76. label: "付款单位账号",
  77. prop: "trade_account",
  78. width: 160
  79. },
  80. {
  81. label: "付款单位名称",
  82. prop: "trade_out",
  83. width: 160
  84. },
  85. {
  86. label: "交易时间",
  87. prop: "trade_time",
  88. width: 140
  89. },
  90. {
  91. label: "收款公司编号",
  92. prop: "companyNo",
  93. width: 145
  94. },
  95. {
  96. label: "收款公司名称",
  97. prop: "trade_in",
  98. width: 145
  99. },
  100. {
  101. label: "操作",
  102. fixed: "right",
  103. width: 60,
  104. slot: "operation"
  105. }
  106. ];
  107. const contentConfig: ContentConfig = {
  108. title: "资金认领管理",
  109. columns,
  110. isTree: true,
  111. apis: {
  112. httpList
  113. }
  114. };
  115. export default contentConfig;