|
@@ -40,7 +40,21 @@ class TypeForm extends React.Component {
|
40
|
40
|
}
|
41
|
41
|
|
42
|
42
|
values.buildingTypeName = this.props.type.buildingTypeName
|
43
|
|
- console.log('valuesvaluesvaluesvalues: ', values)
|
|
43
|
+ if(values["startPrice"] === "") {
|
|
44
|
+ values["startPrice"] = null
|
|
45
|
+ }
|
|
46
|
+ if(values["endPrice"] === "") {
|
|
47
|
+ values["endPrice"] = null
|
|
48
|
+ }
|
|
49
|
+
|
|
50
|
+ console.log(values["startPrice"] != null && values["endPrice"] != null ,"222")
|
|
51
|
+ if(values["startPrice"] != null && values["endPrice"] != null && values["startPrice"] > values["endPrice"]){
|
|
52
|
+ notification['warn']({
|
|
53
|
+ message: "最低价不得高于最高价!",
|
|
54
|
+ description: '',
|
|
55
|
+ })
|
|
56
|
+ return
|
|
57
|
+ }
|
44
|
58
|
this.props.onSuccess(values)
|
45
|
59
|
}
|
46
|
60
|
});
|