columns.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import { render } from "nprogress";
  2. import { cg_order_type_options, statusList } from "/@/utils/status";
  3. import { h } from "vue";
  4. import { ElTag } from "element-plus";
  5. export const goodColumns = [
  6. {
  7. span: 12,
  8. field: 'seller_name',
  9. label: '销售方公司'
  10. },
  11. {
  12. span: 12,
  13. field: 'buyer_name',
  14. label: '购买方公司'
  15. },
  16. {
  17. span: 12,
  18. field: 'goodName',
  19. label: '订单商品名称'
  20. },
  21. {
  22. span: 12,
  23. field: 'inv_good_name',
  24. label: '发票商品名称'
  25. },
  26. {
  27. span: 6,
  28. label: '商品类型',
  29. render(_, { good_type }){
  30. return h(ElTag, { size: 'small' }, {
  31. default: () => cg_order_type_options.find(item => item.value == good_type)?.label || '--'
  32. })
  33. }
  34. },
  35. {
  36. span: 6,
  37. field: 'good_code',
  38. label: '商品代码'
  39. },
  40. {
  41. span: 6,
  42. field: 'spec',
  43. label: '规格'
  44. },
  45. {
  46. span: 6,
  47. field: 'unit',
  48. label: '单位'
  49. },
  50. {
  51. span: 6,
  52. field: 'unit_price',
  53. label: '税前单价'
  54. },
  55. {
  56. span: 6,
  57. field: 'subunit_price',
  58. label: '税后单价'
  59. },
  60. {
  61. span: 6,
  62. field: 'unit_weight',
  63. label: '重量'
  64. },
  65. {
  66. span: 6,
  67. field: 'spectral',
  68. label: '分光'
  69. },
  70. {
  71. field: 'cat_name',
  72. label: '进项类目',
  73. span: 24
  74. }
  75. ]