content.config.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import { ContentConfig } from "/@/components/PageContent";
  2. import { httpList, httpDelete } from "/@/api/purchase/orderPay";
  3. import dayjs from "dayjs";
  4. import { h } from "vue";
  5. import { ElTag } from "element-plus";
  6. import { paymentOptions } from "./configs";
  7. const columns = [
  8. {
  9. type: "selection",
  10. minWidth: 55,
  11. align: "left",
  12. hide: ({ checkList }) => !checkList.includes("勾选列")
  13. },
  14. {
  15. label: "序号",
  16. type: "index",
  17. minWidth: 60,
  18. align: "left",
  19. hide: ({ checkList }) => !checkList.includes("序号列")
  20. },
  21. {
  22. label: "对账编号",
  23. prop: "payNo",
  24. minWidth: 180,
  25. align: "left"
  26. },
  27. {
  28. label: "供应商编号",
  29. prop: "supplierNo",
  30. minWidth: 180,
  31. align: "left"
  32. },
  33. // {
  34. // label: "供应商名称",
  35. // prop: "supplierName",
  36. // minWidth: 180,
  37. // align: "left"
  38. // },
  39. {
  40. label: "业务公司名称",
  41. prop: "companyName",
  42. minWidth: 180
  43. },
  44. {
  45. label: "总额款",
  46. prop: "total_fee",
  47. minWidth: 180
  48. },
  49. {
  50. label: "已付款金额",
  51. prop: "apay_fee",
  52. minWidth: 180,
  53. align: "left"
  54. },
  55. {
  56. label: "待付款金额",
  57. prop: "dpay_fee",
  58. minWidth: 180,
  59. align: "left"
  60. },
  61. {
  62. label: "已回票金额",
  63. prop: "ainv_fee",
  64. minWidth: 180,
  65. align: "left"
  66. },
  67. {
  68. label: "未回票金额",
  69. prop: "winv_fee",
  70. minWidth: 180,
  71. align: "left"
  72. },
  73. {
  74. label: "状态",
  75. prop: "dstatus",
  76. minWidth: 120,
  77. cellRenderer: ({ row, props }) =>
  78. h(
  79. ElTag,
  80. {
  81. size: props.size
  82. },
  83. {
  84. default: () =>
  85. paymentOptions.find(s => row.dstatus === s.value)?.label
  86. }
  87. )
  88. },
  89. {
  90. label: "申请时间",
  91. minWidth: 180,
  92. prop: "createTime",
  93. formatter: ({ createTime }) =>
  94. dayjs(createTime).format("YYYY-MM-DD HH:mm:ss")
  95. },
  96. {
  97. label: "操作",
  98. fixed: "right",
  99. width: 100,
  100. slot: "operation"
  101. }
  102. ];
  103. const contentConfig: ContentConfig = {
  104. title: "采购付款",
  105. columns,
  106. deleteProp: "dzNo",
  107. apis: {
  108. httpList,
  109. httpDelete
  110. }
  111. };
  112. export default contentConfig;