BaseShipArchive.data.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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: '客户名称(customer name)',
  20. align:"center",
  21. dataIndex: 'relateCustomer'
  22. },
  23. ];
  24. //查询数据
  25. export const searchFormSchema: FormSchema[] = [
  26. {
  27. label: "IMO",
  28. field: 'imo',
  29. component: 'Input',
  30. // labelWidth: 150,
  31. //colProps: {span: 6},
  32. },
  33. {
  34. label: "船名称(ship name)",
  35. field: 'shipName',
  36. labelWidth: 150,
  37. component: 'Input',
  38. //colProps: {span: 6},
  39. },
  40. {
  41. label: '客户名称(customer name)',
  42. field: 'relateCustomer',
  43. component: 'Input',
  44. labelWidth: 180,
  45. },
  46. {
  47. label: "hull number",
  48. field: 'hullNumber',
  49. component: 'Input',
  50. //colProps: {span: 6},
  51. },
  52. {
  53. label: "船厂(ship factory)",
  54. field: 'shipFactory',
  55. component: 'JSelectMultiple',
  56. labelWidth: 150,
  57. componentProps:{
  58. dictCode:"ship_factory"
  59. },
  60. //colProps: {span: 6},
  61. },
  62. {
  63. label: "造船日期(ship date)",
  64. field: "shipDate",
  65. component: 'RangePicker',
  66. labelWidth: 150,
  67. componentProps: {
  68. valueType: 'Date',
  69. showTime:true
  70. },
  71. //colProps: {span: 6},
  72. },
  73. {
  74. label: "船类型(ship type)",
  75. field: 'shipType',
  76. component: 'JSelectMultiple',
  77. labelWidth: 180,
  78. componentProps:{
  79. dictCode:"ship_type"
  80. },
  81. //colProps: {span: 6},
  82. },
  83. {
  84. label: "状态(status)",
  85. field: 'status',
  86. component: 'JSelectMultiple',
  87. componentProps:{
  88. dictCode:"valid_status"
  89. },
  90. //colProps: {span: 6},
  91. },
  92. ];