|
|
@ -9,6 +9,7 @@ import { |
|
|
|
Row, |
|
|
|
Col, |
|
|
|
Divider, |
|
|
|
InputNumber |
|
|
|
} from "antd"; |
|
|
|
import moment from "moment"; |
|
|
|
function TimePart(props) { |
|
|
@ -37,7 +38,6 @@ function TimePart(props) { |
|
|
|
"status": "disable", |
|
|
|
"key": "821170365" |
|
|
|
} |
|
|
|
console.log(disable); |
|
|
|
const valueChange = (value, all) => { |
|
|
|
all.key = itemKey; |
|
|
|
if (all.time_part) { |
|
|
@ -194,18 +194,20 @@ function TimePart(props) { |
|
|
|
<> |
|
|
|
<Input.Group compact> |
|
|
|
<Form.Item name="time_before" label="前:"> |
|
|
|
<Input addonAfter={"分钟"} /> |
|
|
|
<InputNumber min={0} addonAfter={"分钟"} /> |
|
|
|
</Form.Item> |
|
|
|
<div className="wenzi">,</div> |
|
|
|
<Form.Item name="time_before_money" noStyle> |
|
|
|
<Input |
|
|
|
<InputNumber |
|
|
|
min={0} |
|
|
|
addonAfter={"元"} |
|
|
|
style={{ width: "20%" }} |
|
|
|
/> |
|
|
|
</Form.Item> |
|
|
|
<div className="wenzi">/</div> |
|
|
|
<Form.Item name="time_before_minute" noStyle> |
|
|
|
<Input |
|
|
|
<InputNumber |
|
|
|
min={0} |
|
|
|
addonAfter={"分钟"} |
|
|
|
style={{ width: "20%" }} |
|
|
|
/> |
|
|
@ -213,18 +215,20 @@ function TimePart(props) { |
|
|
|
</Input.Group> |
|
|
|
<Input.Group compact> |
|
|
|
<Form.Item name="time_before" label="满:"> |
|
|
|
<Input addonAfter={"分钟"} disabled /> |
|
|
|
<InputNumber min={0} addonAfter={"分钟"} disabled /> |
|
|
|
</Form.Item> |
|
|
|
<div className="wenzi">,</div> |
|
|
|
<Form.Item name="time_after_money" noStyle> |
|
|
|
<Input |
|
|
|
<InputNumber |
|
|
|
min={0} |
|
|
|
addonAfter={"元"} |
|
|
|
style={{ width: "20%" }} |
|
|
|
/> |
|
|
|
</Form.Item> |
|
|
|
<div className="wenzi">/</div> |
|
|
|
<Form.Item name="time_after_minute" noStyle> |
|
|
|
<Input |
|
|
|
<InputNumber |
|
|
|
min={0} |
|
|
|
addonAfter={"分钟"} |
|
|
|
style={{ width: "20%" }} |
|
|
|
/> |
|
|
@ -236,18 +240,18 @@ function TimePart(props) { |
|
|
|
return ( |
|
|
|
<Input.Group compact> |
|
|
|
<Form.Item name="unit" noStyle> |
|
|
|
<Input addonAfter={"元"} style={{ width: "20%" }} /> |
|
|
|
<InputNumber min={0} addonAfter={"元"} style={{ width: "20%" }} /> |
|
|
|
</Form.Item> |
|
|
|
<div className="wenzi">/</div> |
|
|
|
<Form.Item name="period" noStyle> |
|
|
|
<Input addonAfter={"分钟"} style={{ width: "20%" }} /> |
|
|
|
<InputNumber min={0} addonAfter={"分钟"} style={{ width: "20%" }} /> |
|
|
|
</Form.Item> |
|
|
|
</Input.Group> |
|
|
|
); |
|
|
|
case 1: |
|
|
|
return ( |
|
|
|
<Form.Item name="unit"> |
|
|
|
<Input addonAfter={"元/次"} style={{ width: "20%" }} /> |
|
|
|
<InputNumber min={0} addonAfter={"元/次"} style={{ width: "20%" }} /> |
|
|
|
</Form.Item> |
|
|
|
); |
|
|
|
} |
|
|
@ -261,14 +265,15 @@ function TimePart(props) { |
|
|
|
return ( |
|
|
|
(getFieldValue("type") === 0 || |
|
|
|
getFieldValue("type") === 2) && ( |
|
|
|
<Col span={24}> |
|
|
|
<Col span={24} style={{ display: "flex" }}> |
|
|
|
<Form.Item |
|
|
|
label="时段最高收费金额" |
|
|
|
name="limit" |
|
|
|
rules={[{ required: true }]} |
|
|
|
> |
|
|
|
<Input /> |
|
|
|
<InputNumber min={0} addonAfter={"元"} /> |
|
|
|
</Form.Item> |
|
|
|
<div style={{ lineHeight: '32px', marginLeft: '10px' }}>“0”表示没有最高限额</div> |
|
|
|
</Col> |
|
|
|
) |
|
|
|
); |
|
|
|