administrative.penalty.detail.config.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. interface OptionsType {
  2. label: string;
  3. value: string;
  4. }
  5. const modalConfig = {
  6. pageName: 'lonm',
  7. addTitle: '行政处罚通报信息模型',
  8. editTitle: '行政处罚通报信息模型',
  9. detailTitle: '行政处罚通报信息模型',
  10. labelWidth: '200px',
  11. formRules: {
  12. notificationStandards: [{ required: true, message: '请选择通报标准或具体行为列举', trigger: 'change' }],
  13. scopeInspection: [{ required: true, message: '请选择检查范围', trigger: 'change' }],
  14. cfcbz: [{ required: true, message: '请选择初复查标志', trigger: 'change' }],
  15. cbzl: [{ required: true, message: '请选择船舶种类', trigger: 'change' }],
  16. position: [{ required: true, message: '请选择所属职位', trigger: 'change' }],
  17. // contactNumber: [
  18. // { required: true, message: '输入正确的联系电话', trigger: 'change' },
  19. // {
  20. // validator: (_, val, cb) => {
  21. // const digits = (val || '').replace(/\D/g, '');
  22. // if (!/^1[3-9]\d{9}$/.test(digits)) {
  23. // cb(new Error('请输入正确的 11 位联系电话'));
  24. // } else {
  25. // cb();
  26. // }
  27. // },
  28. // trigger: 'blur',
  29. // },
  30. // ],
  31. msgRecipient: [{ required: true, message: '请选择短信接收人', trigger: 'change' }],
  32. },
  33. pageListParams: {
  34. type: 1,
  35. id: 1,
  36. },
  37. formItems: [
  38. {
  39. label: '通报标准或具体行为列举',
  40. prop: 'notification_standards',
  41. type: 'select',
  42. span: 24,
  43. multiple: true,
  44. placeholder: '请选择通报标准或具体行为列举',
  45. },
  46. {
  47. label: '处罚决定时间',
  48. prop: 'penalty_decision_time',
  49. type: 'select',
  50. span: 12,
  51. multiple: false,
  52. options: [] as OptionsType[],
  53. placeholder: '请选择处罚决定时间',
  54. },
  55. // {
  56. // label: '案件状态',
  57. // prop: 'case_status',
  58. // type: 'select',
  59. // multiple: false,
  60. // disabled: true,
  61. // span: 12,
  62. // options: [] as OptionsType[],
  63. // placeholder: '请选择案件状态',
  64. // },
  65. {
  66. label: '水域类别',
  67. prop: 'water_category',
  68. type: 'select',
  69. multiple: true,
  70. span: 12,
  71. options: [] as OptionsType[],
  72. placeholder: '请选择水域类别',
  73. },
  74. {
  75. label: '船舶种类',
  76. prop: 'shipType',
  77. type: 'select',
  78. multiple: true,
  79. span: 12,
  80. options: [] as OptionsType[],
  81. placeholder: '请选择船舶种类',
  82. },
  83. // {
  84. // label: '海内河船',
  85. // prop: 'maritime_and_river_vessels',
  86. // type: 'select',
  87. // multiple: true,
  88. // span: 12,
  89. // options: [] as OptionsType[],
  90. // placeholder: '请选择海内河船',
  91. // },
  92. // {
  93. // label: '省际客船',
  94. // prop: 'interprovincial_passenger_ships',
  95. // type: 'select',
  96. // multiple: true,
  97. // span: 12,
  98. // options: [] as OptionsType[],
  99. // placeholder: '请选择省际客船',
  100. // },
  101. {
  102. label: '海上案号和案由',
  103. prop: 'maritime_case_number_cause_of_action',
  104. type: 'select',
  105. multiple: true,
  106. span: 24,
  107. options: [] as OptionsType[],
  108. placeholder: '请选择海上案号和案由',
  109. },
  110. {
  111. label: '内河案号和案由',
  112. prop: 'inland_river_case_number_cause_of_action',
  113. type: 'select',
  114. multiple: true,
  115. span: 24,
  116. options: [] as OptionsType[],
  117. placeholder: '请选择内河案号和案由',
  118. },
  119. {
  120. label: '违法事实及证据信息',
  121. prop: 'illegal_facts_and_evidence_info',
  122. type: 'textarea',
  123. span: 24,
  124. placeholder: '请输入违法事实及证据信息',
  125. },
  126. {
  127. label: '业务规则识别',
  128. prop: 'business_rule_recognition',
  129. type: 'textarea',
  130. span: 24,
  131. placeholder: '请输入业务规则识别',
  132. },
  133. {
  134. label: '业务规则识别样例',
  135. prop: 'business_rule_recognition_demo',
  136. type: 'textarea',
  137. span: 24,
  138. placeholder: '请输入业务规则识别样例',
  139. },
  140. ],
  141. };
  142. export default modalConfig;