tables.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import type { TableColumnProps } from '@/types/basic-table';
  2. // 基础表格样式配置
  3. export const TABLE_OPTIONS = {
  4. emptyText: '暂无数据',
  5. loading: true,
  6. maxHeight: 'calc(70vh - 150px)',
  7. };
  8. export const INVENTORY_TABLE_COLUMNS: TableColumnProps[] = [
  9. {
  10. label: '编号',
  11. type: 'index',
  12. align: 'center',
  13. width: '80px',
  14. },
  15. {
  16. label: '物品名称',
  17. prop: 'itemName',
  18. align: 'left',
  19. minWidth: '120px',
  20. },
  21. {
  22. label: '入库日期',
  23. prop: 'warehouseDate',
  24. align: 'left',
  25. minWidth: '120px',
  26. },
  27. {
  28. label: '物品数量',
  29. prop: 'itemQuantity',
  30. align: 'center',
  31. minWidth: '120px',
  32. },
  33. {
  34. label: '经办人',
  35. prop: 'handler',
  36. align: 'left',
  37. minWidth: '120px',
  38. },
  39. {
  40. label: '备注',
  41. prop: 'remarks',
  42. align: 'left',
  43. minWidth: '150px',
  44. },
  45. {
  46. label: '状态',
  47. prop: 'status',
  48. slot: 'status',
  49. align: 'center',
  50. minWidth: '100px',
  51. },
  52. {
  53. label: '操作',
  54. prop: 'action',
  55. slot: 'action',
  56. fixed: 'right',
  57. width: '180px',
  58. align: 'left',
  59. },
  60. ];