|
|
|
@ -176,7 +176,7 @@ function getFields(props) {
|
|
|
|
|
item(
|
|
|
|
|
'title',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name='title' label={t('Title')} {...fieldProps.title} rules={[{ required: true }]}>
|
|
|
|
|
<Form.Item name='title' label={t('Title')} {...fieldProps.title} rules={[{ required: true }]} tooltip={t('FormTooltip.Title')}>
|
|
|
|
|
<Input allowClear {...fieldComProps.title} {...styleProps} {...editableProps('title')} />
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
fieldProps?.title?.col || midCol
|
|
|
|
@ -184,7 +184,7 @@ function getFields(props) {
|
|
|
|
|
item(
|
|
|
|
|
'code',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name='code' label={t('Code')} {...fieldProps.code} rules={[{ required: true }]}>
|
|
|
|
|
<Form.Item name='code' label={t('Code')} {...fieldProps.code} rules={[{ required: true }]} tooltip={t('FormTooltip.Code')}>
|
|
|
|
|
<Input allowClear {...fieldComProps.code} {...styleProps} {...editableProps('code')} />
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
fieldProps?.code?.col || midCol
|
|
|
|
@ -192,7 +192,7 @@ function getFields(props) {
|
|
|
|
|
item(
|
|
|
|
|
'city',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name='city' label={t('City')} {...fieldProps.city}>
|
|
|
|
|
<Form.Item name='city' label={t('City')} {...fieldProps.city} tooltip={t('FormTooltip.City')}>
|
|
|
|
|
<CitySelector {...styleProps} {...editableProps('city_id')} />
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
fieldProps?.city?.col || midCol
|
|
|
|
@ -208,7 +208,7 @@ function getFields(props) {
|
|
|
|
|
item(
|
|
|
|
|
'duration',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name='duration' label={t('Duration')} {...fieldProps.duration}>
|
|
|
|
|
<Form.Item name='duration' label={t('Duration')} {...fieldProps.duration} tooltip={t('FormTooltip.Duration')}>
|
|
|
|
|
<InputNumber suffix={'H'} max={24} {...styleProps} {...editableProps('duration')} />
|
|
|
|
|
{/* <Input allowClear {...fieldComProps.duration} suffix={'H'} /> */}
|
|
|
|
|
</Form.Item>,
|
|
|
|
@ -217,7 +217,7 @@ function getFields(props) {
|
|
|
|
|
item(
|
|
|
|
|
'km',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name='km' label={t('KM')} {...fieldProps.km}>
|
|
|
|
|
<Form.Item name='km' label={t('KM')} {...fieldProps.km} tooltip={t('FormTooltip.KM')}>
|
|
|
|
|
<InputNumber suffix={'KM'} min={0.1} {...styleProps} {...editableProps('km')} />
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
fieldProps?.km?.col || midCol
|
|
|
|
@ -225,7 +225,7 @@ function getFields(props) {
|
|
|
|
|
item(
|
|
|
|
|
'recommends_rate',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name='recommends_rate' label={t('RecommendsRate')} {...fieldProps.recommends_rate}>
|
|
|
|
|
<Form.Item name='recommends_rate' label={t('RecommendsRate')} {...fieldProps.recommends_rate} tooltip={t('FormTooltip.RecommendsRate')}>
|
|
|
|
|
{/* <Input placeholder={t('RecommendsRate')} allowClear /> */}
|
|
|
|
|
<Select
|
|
|
|
|
{...styleProps}
|
|
|
|
@ -250,6 +250,7 @@ function getFields(props) {
|
|
|
|
|
name='display_to_c'
|
|
|
|
|
label={t('DisplayToC')}
|
|
|
|
|
{...fieldProps.display_to_c}
|
|
|
|
|
tooltip={t('FormTooltip.DisplayToC')}
|
|
|
|
|
// rules={[
|
|
|
|
|
// () => ({
|
|
|
|
|
// validator(_, value) {
|
|
|
|
@ -283,7 +284,7 @@ function getFields(props) {
|
|
|
|
|
item(
|
|
|
|
|
'open_weekdays',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name='open_weekdays' label={t('OpenWeekdays')} {...fieldProps.open_weekdays}>
|
|
|
|
|
<Form.Item name='open_weekdays' label={t('OpenWeekdays')} {...fieldProps.open_weekdays} tooltip={t('FormTooltip.OpenWeekdays')}>
|
|
|
|
|
<Checkbox.Group options={dataSets.weekdays} {...styleProps} {...editableProps('open_weekdays')} />
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
fieldProps?.open_weekdays?.col || 24
|
|
|
|
@ -291,7 +292,7 @@ function getFields(props) {
|
|
|
|
|
item(
|
|
|
|
|
'remarks',
|
|
|
|
|
99,
|
|
|
|
|
<Form.Item name='remarks' label={t('Remarks')} {...fieldProps.remarks}>
|
|
|
|
|
<Form.Item name='remarks' label={t('Remarks')} {...fieldProps.remarks} tooltip={t('FormTooltip.Remarks')}>
|
|
|
|
|
<Input.TextArea allowClear rows={2} maxLength={2000} {...fieldComProps.remarks} {...styleProps} {...editableProps('remarks')} />
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
fieldProps?.remarks?.col || 24
|
|
|
|
|