傅行帆 5 years ago
parent
commit
fb80e0eb95
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/pages/building/list/add/components/buildingProjectType.jsx

+ 3
- 3
src/pages/building/list/add/components/buildingProjectType.jsx View File

54
           })
54
           })
55
           return
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
           notification['warn']({
58
           notification['warn']({
59
             message: "最低价不得高于最高价!",
59
             message: "最低价不得高于最高价!",
60
             description: '',
60
             description: '',
102
                 )}
102
                 )}
103
               </Form.Item>
103
               </Form.Item>
104
             <Form.Item label="价格区间" help='最高价与最低价一致时,只展示一个'>
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
             </Form.Item>
107
             </Form.Item>
108
             <Form.Item label="销售状态" >
108
             <Form.Item label="销售状态" >
109
             {getFieldDecorator('marketStatus')(
109
             {getFieldDecorator('marketStatus')(