common.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. export const tableHeader = selectEquiType => {
  2. // model => model specifications => specificationss
  3. // 1:物料;4:生产设备; 5:模具;6:备品备件; 7:周转车;8:舟皿;9:产品;10:消耗材料,11:干燥区,12.质检,13.包装材料,14.工装夹具 ,15.刀具 ,99.其他
  4. switch (+selectEquiType) {
  5. case 1:
  6. return [{
  7. label: '型号',
  8. prop: 'model'
  9. },
  10. {
  11. label: '规格',
  12. prop: 'specifications'
  13. }
  14. ]
  15. case 5:
  16. return [{
  17. label: '牌号',
  18. prop: 'brandNum'
  19. },
  20. {
  21. label: '型号',
  22. prop: 'model'
  23. },
  24. {
  25. label: '模孔数量',
  26. prop: 'dieHoleNum'
  27. },
  28. {
  29. label: '芯棒直径',
  30. prop: 'mandrelDiameter'
  31. },
  32. {
  33. label: '收缩系数',
  34. prop: 'shrinkEffictive',
  35. },
  36. ]
  37. case 7:
  38. return [{
  39. label: '规格',
  40. prop: 'specifications'
  41. },
  42. {
  43. label: '材质',
  44. prop: 'materialQuality',
  45. },
  46. ]
  47. case 8: //'舟皿'
  48. return [{
  49. label: '规格',
  50. prop: 'specifications'
  51. },
  52. {
  53. label: '型号',
  54. prop: 'modelType'
  55. },
  56. {
  57. label: '槽数',
  58. prop: 'slotNum'
  59. },
  60. ]
  61. case 10:
  62. return []
  63. case 14:
  64. return []
  65. }
  66. return []
  67. }