BaseShipArchiveAccessories.data.ts 2.8 KB

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