columns.tsx 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. import { ref } from "vue";
  2. export function useColumns() {
  3. const xsColumns = ref([
  4. {
  5. label: "业务编号",
  6. prop: "invNo",
  7. width: "180px"
  8. },
  9. {
  10. label: "业务类型",
  11. slot: "type",
  12. width: "100px"
  13. },
  14. {
  15. label: "上传方式",
  16. prop: "open_type",
  17. slot: "open_type",
  18. width: "100px"
  19. },
  20. {
  21. label: "状态",
  22. prop: "status",
  23. slot: "status",
  24. width: "180px"
  25. },
  26. {
  27. label: "发票类型",
  28. prop: "inv_type",
  29. slot: "inv_type",
  30. width: "160px"
  31. },
  32. {
  33. label: "买方公司名称",
  34. width: "180px",
  35. prop: "buyer_title"
  36. },
  37. {
  38. label: "卖方公司名称",
  39. width: "180px",
  40. prop: "seller_title"
  41. },
  42. {
  43. label: "发票号码",
  44. width: "100px",
  45. prop: "inv_number"
  46. },
  47. {
  48. label: "发票代码",
  49. width: "100px",
  50. prop: "inv_code"
  51. },
  52. {
  53. label: "发票总金额",
  54. prop: "inv_value",
  55. width: "120px"
  56. },
  57. {
  58. label: "创建时间",
  59. prop: "addtime",
  60. minWidth: "100px"
  61. }
  62. ]);
  63. const cgColumns = ref([
  64. {
  65. prop: "hpNo",
  66. label: "对账回票申请",
  67. width: "180px"
  68. },
  69. {
  70. label: "业务类型",
  71. width: "100px",
  72. slot: "type"
  73. },
  74. {
  75. label: "上传方式",
  76. prop: "open_type",
  77. slot: "open_type",
  78. width: "100px"
  79. },
  80. {
  81. label: "状态",
  82. prop: "status",
  83. slot: "status",
  84. width: "180px"
  85. },
  86. {
  87. label: "发票类型",
  88. prop: "type",
  89. slot: "inv_type",
  90. width: "180px"
  91. },
  92. {
  93. label: "买方公司名称",
  94. prop: "buyer_name",
  95. width: "180px"
  96. },
  97. {
  98. label: "卖方公司名称",
  99. width: "180px",
  100. prop: "seller_name"
  101. },
  102. {
  103. label: "发票号码",
  104. width: "100px",
  105. prop: "checkNumber"
  106. },
  107. {
  108. label: "发票代码",
  109. width: "120px",
  110. prop: "invoiceCode"
  111. },
  112. {
  113. label: "发票总金额",
  114. width: "100px",
  115. prop: "subtotal_amount"
  116. },
  117. {
  118. label: "创建时间",
  119. minWidth: "120px",
  120. prop: "addtime"
  121. }
  122. ]);
  123. return {
  124. xsColumns,
  125. cgColumns
  126. };
  127. }