outCommon.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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: 'modelType'
  9. },
  10. {
  11. label: '规格',
  12. prop: 'specification'
  13. },
  14. {
  15. label: '牌号',
  16. prop: 'brandNum'
  17. }
  18. ]
  19. case 5:
  20. return [{
  21. label: '牌号',
  22. prop: 'brandNum'
  23. },
  24. {
  25. label: '型号',
  26. prop: 'model'
  27. },
  28. {
  29. label: '模孔数量',
  30. prop: 'dieHoleNum'
  31. },
  32. {
  33. label: '芯棒直径',
  34. prop: 'mandrelDiameter'
  35. },
  36. {
  37. label: '收缩系数',
  38. prop: 'shrinkEffictive',
  39. },
  40. ]
  41. case 7:
  42. return [{
  43. label: '规格',
  44. prop: 'specifications'
  45. },
  46. {
  47. label: '材质',
  48. prop: 'materialQuality',
  49. },
  50. ]
  51. case 8: //'舟皿'
  52. return [{
  53. label: '规格',
  54. prop: 'specifications'
  55. },
  56. {
  57. label: '型号',
  58. prop: 'modelType'
  59. },
  60. {
  61. label: '槽数',
  62. prop: 'slotNum'
  63. },
  64. ]
  65. case 10:
  66. return []
  67. case 14:
  68. return []
  69. }
  70. return []
  71. }