|
@@ -1744,7 +1744,6 @@ const NewService = Form.create()(
|
|
|
this.refs.signFirstPayment.focus();
|
|
|
return false;
|
|
|
}
|
|
|
- } else {
|
|
|
}
|
|
|
const arr = this.state.contactListNew || [];
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
@@ -2886,8 +2885,8 @@ const NewService = Form.create()(
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
- if (!this.state.commodityPrice) {
|
|
|
- message.warning("请输入金额!");
|
|
|
+ if(isNaN(parseFloat(this.state.commodityPrice))){
|
|
|
+ message.warning("请输入正确的金额!");
|
|
|
this.refs.commodityPrice.focus();
|
|
|
return false;
|
|
|
}
|
|
@@ -2952,6 +2951,10 @@ const NewService = Form.create()(
|
|
|
costReduction: record.costReduction,
|
|
|
officialCost: record.officialCost,
|
|
|
});
|
|
|
+ }else{
|
|
|
+ this.setState({
|
|
|
+ displayFees: "none",
|
|
|
+ });
|
|
|
}
|
|
|
this.setState({
|
|
|
jid: record.id, //项目ID
|
|
@@ -2968,8 +2971,8 @@ const NewService = Form.create()(
|
|
|
//修改项目详情
|
|
|
tabRowSave(e) {
|
|
|
e.preventDefault();
|
|
|
- if (!this.state.commodityPrice) {
|
|
|
- message.warning("金额不能为空!");
|
|
|
+ if(isNaN(parseFloat(this.state.commodityPrice))){
|
|
|
+ message.warning("请输入正确的金额!");
|
|
|
return false;
|
|
|
}
|
|
|
let reg = /^([0]|[1-9][0-9]*)$/;
|