BaseShipArchive.data.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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: '唯一编号(IMO)',
  10. align:"center",
  11. dataIndex: 'imo'
  12. },
  13. {
  14. title: '船名称(ship name)',
  15. align:"center",
  16. dataIndex: 'shipName'
  17. },
  18. {
  19. title: 'hull number',
  20. align:"center",
  21. dataIndex: 'hullNumber'
  22. },
  23. {
  24. title: '船类型(ship type)',
  25. align:"center",
  26. dataIndex: 'shipType_dictText'
  27. },
  28. {
  29. title: '船厂(ship factory)',
  30. align:"center",
  31. dataIndex: 'shipFactory_dictText'
  32. },
  33. {
  34. title: '造船日期(ship date)',
  35. align:"center",
  36. dataIndex: 'shipDate'
  37. },
  38. {
  39. title: '关联客户(relate customer)',
  40. align:"center",
  41. dataIndex: 'relateCustomer'
  42. },
  43. ];
  44. //查询数据
  45. export const searchFormSchema: FormSchema[] = [
  46. {
  47. label: "唯一编号(IMO)",
  48. field: 'imo',
  49. component: 'Input',
  50. //colProps: {span: 6},
  51. },
  52. {
  53. label: "船名称(ship name)",
  54. field: 'shipName',
  55. component: 'Input',
  56. //colProps: {span: 6},
  57. },
  58. {
  59. label: '关联客户(relate customer)',
  60. field: 'relateCustomer',
  61. component: 'Input',
  62. },
  63. {
  64. label: "hull number",
  65. field: 'hullNumber',
  66. component: 'Input',
  67. //colProps: {span: 6},
  68. },
  69. {
  70. label: "船厂(ship factory)",
  71. field: 'shipFactory',
  72. component: 'JSelectMultiple',
  73. componentProps:{
  74. },
  75. //colProps: {span: 6},
  76. },
  77. {
  78. label: "造船日期(ship date)",
  79. field: "shipDate",
  80. component: 'RangePicker',
  81. componentProps: {
  82. valueType: 'Date',
  83. showTime:true
  84. },
  85. //colProps: {span: 6},
  86. },
  87. {
  88. label: "船类型(ship type)",
  89. field: 'shipType',
  90. component: 'JSelectMultiple',
  91. componentProps:{
  92. },
  93. //colProps: {span: 6},
  94. },
  95. {
  96. label: "状态(status)",
  97. field: 'status',
  98. component: 'JSelectMultiple',
  99. componentProps:{
  100. },
  101. //colProps: {span: 6},
  102. },
  103. ];
  104. //表单数据
  105. export const formSchema: FormSchema[] = [
  106. {
  107. label: '唯一编号(IMO)',
  108. field: 'imo',
  109. component: 'Input',
  110. },
  111. {
  112. label: '船名称(ship name)',
  113. field: 'shipName',
  114. component: 'Input',
  115. },
  116. {
  117. label: 'hull number',
  118. field: 'hullNumber',
  119. component: 'Input',
  120. },
  121. {
  122. label: '船类型(ship type)',
  123. field: 'shipType',
  124. component: 'JDictSelectTag',
  125. componentProps:{
  126. dictCode:""
  127. },
  128. },
  129. {
  130. label: '船厂(ship factory)',
  131. field: 'shipFactory',
  132. component: 'JDictSelectTag',
  133. componentProps:{
  134. dictCode:""
  135. },
  136. },
  137. {
  138. label: '造船日期(ship date)',
  139. field: 'shipDate',
  140. component: 'DatePicker',
  141. componentProps: {
  142. showTime: true,
  143. valueFormat: 'YYYY-MM-DD HH:mm:ss'
  144. },
  145. },
  146. {
  147. label: '状态(1-启用,0-停用)',
  148. field: 'status',
  149. component: 'JDictSelectTag',
  150. componentProps:{
  151. dictCode:""
  152. },
  153. },
  154. // TODO 主键隐藏字段,目前写死为ID
  155. {
  156. label: '',
  157. field: 'id',
  158. component: 'Input',
  159. show: false
  160. },
  161. ];
  162. // 高级查询数据
  163. export const superQuerySchema = {
  164. status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',dictCode: '',},
  165. imo: {title: '唯一编号',order: 2,view: 'text', type: 'string',},
  166. shipName: {title: '船名称',order: 3,view: 'text', type: 'string',},
  167. hullNumber: {title: 'hull number',order: 4,view: 'text', type: 'string',},
  168. shipType: {title: '船类型',order: 5,view: 'list', type: 'string',dictCode: '',},
  169. shipFactory: {title: '船厂',order: 6,view: 'list', type: 'string',dictCode: '',},
  170. shipDate: {title: '造船日期',order: 7,view: 'datetime', type: 'string',},
  171. notes: {title: '备注',order: 8,view: 'text', type: 'string',},
  172. };
  173. /**
  174. * 流程表单调用这个方法获取formSchema
  175. * @param param
  176. */
  177. export function getBpmFormSchema(_formData): FormSchema[]{
  178. // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
  179. return formSchema;
  180. }