table.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. const table = {
  2. taskColumns: [
  3. {
  4. title: '操作',
  5. dataIndex: 'action',
  6. scopedSlots: { customRender: 'action' },
  7. },
  8. {
  9. title: '盘点任务编号',
  10. dataIndex: 'number',
  11. },
  12. {
  13. title: '盘点任务名称',
  14. dataIndex: 'taskName',
  15. },
  16. {
  17. title: '盘点类型',
  18. dataIndex: 'taskType',
  19. scopedSlots: { customRender: 'taskType' },
  20. },
  21. {
  22. title: '盘点仓库',
  23. dataIndex: 'depotName',
  24. },
  25. {
  26. title: '商品数量',
  27. dataIndex: 'materialCount',
  28. },
  29. {
  30. title: '盘点库位范围',
  31. dataIndex: 'positionRange',
  32. },
  33. {
  34. title: '创建人',
  35. dataIndex: 'createByName',
  36. },
  37. {
  38. title: '创建时间',
  39. dataIndex: 'createTime',
  40. },
  41. {
  42. title: '盘点负责人',
  43. dataIndex: 'creatorName',
  44. },
  45. {
  46. title: '盘点状态',
  47. dataIndex: 'taskStatus',
  48. scopedSlots: { customRender: 'taskStatus' },
  49. },
  50. {
  51. title: '完成时间',
  52. dataIndex: 'operTime',
  53. },
  54. ],
  55. goodsColums: [
  56. {
  57. title: '操作',
  58. dataIndex: 'action',
  59. align: 'center',
  60. width: 90,
  61. scopedSlots: { customRender: 'action' },
  62. },
  63. { dataIndex: 'id', title: 'id' },
  64. // { dataIndex: 'mBarCode', title: '条码', scopedSlots: { customRender: 'customBarCode' } },
  65. { dataIndex: 'batchNumber', title: '批次号' },
  66. { dataIndex: 'name', title: '名称', scopedSlots: { customRender: 'customName' } },
  67. { dataIndex: 'categoryName', title: '类别' },
  68. { dataIndex: 'standard', title: '规格' },
  69. { dataIndex: 'model', title: '型号' },
  70. { dataIndex: 'color', title: '颜色' },
  71. { dataIndex: 'brand', title: '品牌' },
  72. { dataIndex: 'supplierName', title: '供应商' },
  73. { dataIndex: 'unit', title: '单位' },
  74. { dataIndex: 'sku', title: '多属性' },
  75. { dataIndex: 'stock', title: '库存' },
  76. { dataIndex: 'productionDate', title: '生产日期' },
  77. { dataIndex: 'expiryNum', title: '保质期' },
  78. { dataIndex: 'barCode', title: '商品条码' },
  79. { dataIndex: 'depotId', title: '仓库名称' },
  80. { dataIndex: 'position', title: '仓库货架' },
  81. ],
  82. checkGoodsColumns: [
  83. { dataIndex: 'categoryName', title: '商品类别', scopedSlots: { customRender: 'categoryName' } },
  84. { dataIndex: 'name', title: '商品名称' },
  85. { dataIndex: 'systemSku', title: '系统SKU' },
  86. { dataIndex: 'batchNumber', title: '批次号' },
  87. { dataIndex: 'unit', title: '单位' },
  88. { dataIndex: 'productionDate', title: '生产日期' },
  89. { dataIndex: 'supplierName', title: '供应商' },
  90. { dataIndex: 'barCode', title: '商品条码' },
  91. { dataIndex: 'stock', title: '库存(最小单位)' },
  92. { dataIndex: 'depotId', title: '仓库名称' },
  93. { dataIndex: 'position', title: '仓库货架' },
  94. { dataIndex: 'newInventory', title: '实际库存' },
  95. { dataIndex: 'newPosition', title: '实际仓位货架' },
  96. { dataIndex: 'differenceCount', title: '差异数量' },
  97. { dataIndex: 'differenceReason', title: '差异原因' },
  98. {
  99. title: '操作',
  100. dataIndex: 'action',
  101. align: 'center',
  102. width: 90,
  103. scopedSlots: { customRender: 'action' },
  104. },
  105. ],
  106. }
  107. export default table