|
@@ -54,7 +54,7 @@ class TypeForm extends React.Component {
|
54
|
54
|
})
|
55
|
55
|
return
|
56
|
56
|
}
|
57
|
|
- if(values["startPrice"] != null && values["endPrice"] != null && values["startPrice"] > values["endPrice"]){
|
|
57
|
+ if(values["startPrice"] != null && values["endPrice"] != null && Number(values["startPrice"]) > Number(values["endPrice"])){
|
58
|
58
|
notification['warn']({
|
59
|
59
|
message: "最低价不得高于最高价!",
|
60
|
60
|
description: '',
|
|
@@ -102,8 +102,8 @@ class TypeForm extends React.Component {
|
102
|
102
|
)}
|
103
|
103
|
</Form.Item>
|
104
|
104
|
<Form.Item label="价格区间" help='最高价与最低价一致时,只展示一个'>
|
105
|
|
- {getFieldDecorator('startPrice')(<Input placeholder="最低价" style={{width: '60px'}} maxLength="9" onChange={e => this.onChange(e, 'startPrice')} />)} --
|
106
|
|
- {getFieldDecorator('endPrice')(<Input placeholder="最高价" style={{width: '60px'}} maxLength="9" onChange={e => this.onChange(e, 'endPrice')} />)}{this.props.type.priceType === "average" ? "元/㎡" : "万元/套"}
|
|
105
|
+ {getFieldDecorator('startPrice')(<Input type="number" placeholder="最低价" style={{width: '60px'}} maxLength="9" onChange={e => this.onChange(e, 'startPrice')} />)} --
|
|
106
|
+ {getFieldDecorator('endPrice')(<Input type="number" placeholder="最高价" style={{width: '60px'}} maxLength="9" onChange={e => this.onChange(e, 'endPrice')} />)}{this.props.type.priceType === "average" ? "元/㎡" : "万元/套"}
|
107
|
107
|
</Form.Item>
|
108
|
108
|
<Form.Item label="销售状态" >
|
109
|
109
|
{getFieldDecorator('marketStatus')(
|