BaseShipArchiveAccessories.data.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import {BasicColumn} from '/@/components/Table';
  2. import {FormSchema} from '/@/components/Table';
  3. import { rules} from '/@/utils/helper/validator';
  4. import { render } from '/@/utils/common/renderUtils';
  5. import { getWeekMonthQuarterYear } from '/@/utils';
  6. //列表数据
  7. export const columns: BasicColumn[] = [
  8. {
  9. title: '配件类型(accessory type)',
  10. align:"center",
  11. dataIndex: 'accessoryType',
  12. key: 'accessoryType'
  13. },
  14. {
  15. title: '规格(specifications)',
  16. align:"center",
  17. dataIndex: 'specifications',
  18. key: 'specifications'
  19. },
  20. {
  21. title: '型号(model)',
  22. align:"center",
  23. dataIndex: 'model',
  24. key: 'model'
  25. },
  26. {
  27. title: '序列号(serial number)',
  28. align:"center",
  29. dataIndex: 'serialNumber',
  30. key: 'serialNumber'
  31. },
  32. /* {
  33. title: '备注',
  34. align:"center",
  35. dataIndex: 'notes',
  36. key: 'notes'
  37. },
  38. {
  39. title: '附件',
  40. align:"center",
  41. dataIndex: 'attachs',
  42. key: 'attachs'
  43. }, */
  44. ];
  45. //查询数据
  46. export const searchFormSchema: FormSchema[] = [
  47. ];
  48. //表单数据
  49. export const formSchema: FormSchema[] = [
  50. {
  51. label: '主表主键(船舶档案)',
  52. field: 'headId',
  53. component: 'Input',
  54. show: false
  55. },
  56. {
  57. label: '配件类型(accessory type)',
  58. field: 'accessoryType',
  59. component: 'Input',
  60. },
  61. {
  62. label: '规格(specifications)',
  63. field: 'specifications',
  64. component: 'Input',
  65. },
  66. {
  67. label: '型号(model)',
  68. field: 'model',
  69. component: 'Input',
  70. },
  71. {
  72. label: '序列号(serial number)',
  73. field: 'serialNumber',
  74. component: 'InputNumber',
  75. },
  76. {
  77. label: '备注(notes)',
  78. field: 'notes',
  79. component: 'Input',
  80. },
  81. {
  82. label: '附件(upload)',
  83. field: 'attachs',
  84. component: 'Input',
  85. },
  86. // TODO 主键隐藏字段,目前写死为ID
  87. {
  88. label: '',
  89. field: 'id',
  90. component: 'Input',
  91. show: false
  92. },
  93. ];
  94. // 高级查询数据
  95. export const superQuerySchema = {
  96. status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',},
  97. headId: {title: '主表主键(船舶档案)',order: 2,view: 'text', type: 'string',},
  98. accessoryType: {title: '配件类型',order: 3,view: 'text', type: 'string',},
  99. specifications: {title: '规格',order: 4,view: 'text', type: 'string',},
  100. model: {title: '型号',order: 5,view: 'text', type: 'string',},
  101. serialNumber: {title: '序列号',order: 6,view: 'number', type: 'number',},
  102. notes: {title: '备注',order: 7,view: 'text', type: 'string',},
  103. attachs: {title: '附件',order: 8,view: 'text', type: 'string',},
  104. };
  105. /**
  106. * 流程表单调用这个方法获取formSchema
  107. * @param param
  108. */
  109. export function getBpmFormSchema(_formData): FormSchema[]{
  110. // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
  111. return formSchema;
  112. }