|
@@ -25,11 +25,13 @@ const AMForm = (props) => {
|
25
|
25
|
|
26
|
26
|
function submitData(e) {
|
27
|
27
|
e.preventDefault();
|
|
28
|
+
|
28
|
29
|
validateFields((err, values) => {
|
29
|
30
|
if (err) {
|
30
|
31
|
console.error(err);
|
31
|
32
|
return;
|
32
|
33
|
}
|
|
34
|
+ console.log(values,'-----values-----')
|
33
|
35
|
values.buildingId = props.buildingId;
|
34
|
36
|
values.startTime = values.time[0]
|
35
|
37
|
values.endTime = values.time[1]
|
|
@@ -88,7 +90,7 @@ const AMForm = (props) => {
|
88
|
90
|
{ required: true, message: '请填写面积' },
|
89
|
91
|
{ validator: validMinNum },
|
90
|
92
|
],
|
91
|
|
- })(<InputNumber min={0} precision={0.01} step={1} placeholder="请填写建筑面积" addonAfter="㎡"/>)}
|
|
93
|
+ })(<InputNumber min={0} precision={2} step={0.01} placeholder="请填写建筑面积" addonAfter="㎡"/>)}
|
92
|
94
|
</Form.Item>
|
93
|
95
|
<Form.Item label="时间">
|
94
|
96
|
{getFieldDecorator('time', {
|
|
@@ -106,21 +108,21 @@ const AMForm = (props) => {
|
106
|
108
|
rules: [
|
107
|
109
|
{ required: true, message: '请填写原始价' },
|
108
|
110
|
],
|
109
|
|
- })(<InputNumber min={0} precision={0.01} step={1} placeholder="请填写原始总价" addonAfter="元"/>)}
|
|
111
|
+ })(<InputNumber min={0} precision={2} step={1} placeholder="请填写原始总价" addonAfter="元"/>)}
|
110
|
112
|
</Form.Item>
|
111
|
113
|
<Form.Item label="现价">
|
112
|
114
|
{getFieldDecorator('currentPrice', {
|
113
|
115
|
rules: [
|
114
|
116
|
{ required: true, message: '请填写现价' },
|
115
|
117
|
],
|
116
|
|
- })(<InputNumber min={0} precision={0.01} step={1} placeholder="请填写现总价" addonAfter="元"/>)}
|
|
118
|
+ })(<InputNumber min={0} precision={2} step={1} placeholder="请填写现总价" addonAfter="元"/>)}
|
117
|
119
|
</Form.Item>
|
118
|
120
|
<Form.Item label="节省价">
|
119
|
121
|
{getFieldDecorator('thriftPrice', {
|
120
|
122
|
rules: [
|
121
|
123
|
{ required: true, message: '请填写节省价' },
|
122
|
124
|
],
|
123
|
|
- })(<InputNumber min={0} precision={0.01} step={1} placeholder="请填写节省总价" addonAfter="元"/>)}
|
|
125
|
+ })(<InputNumber min={0} precision={2} step={1} placeholder="请填写节省总价" addonAfter="元"/>)}
|
124
|
126
|
</Form.Item>
|
125
|
127
|
<Form.Item label=" " colon={false} style={{marginTop: '2em'}}>
|
126
|
128
|
<AuthButton name="building.special.edit">
|