outCommon.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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: 'codeNumber'
  31. },
  32. {
  33. label: '已压制次数',
  34. prop: '',
  35. formatter(row) {
  36. return row.extInfo.startCyTimes || 0
  37. }
  38. },
  39. {
  40. label: '最大压制次数',
  41. prop: '',
  42. formatter(row) {
  43. return row.extInfo.maxCyTimes
  44. }
  45. },
  46. ]
  47. case 7:
  48. return [{
  49. label: '规格',
  50. prop: 'specifications'
  51. },
  52. {
  53. label: '材质',
  54. prop: 'materialQuality',
  55. },
  56. ]
  57. case 8: //'舟皿'
  58. return [{
  59. label: '规格',
  60. prop: 'specifications'
  61. },
  62. {
  63. label: '型号',
  64. prop: 'modelType'
  65. },
  66. {
  67. label: '槽数',
  68. prop: 'slotNum'
  69. },
  70. ]
  71. case 10:
  72. return []
  73. case 14:
  74. return []
  75. }
  76. return []
  77. }