|
@@ -2927,6 +2927,12 @@ const NewService = Form.create()(
|
|
message.warning("请选择变更类型")
|
|
message.warning("请选择变更类型")
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
|
|
+ if(this.state.typeChange == 0 || this.state.typeChange == 1 || this.state.typeChange == 3) {
|
|
|
|
+ if(this.state.settlementAmount < this.state.changeAmount) {
|
|
|
|
+ message.warning("退款金额大于已收款金额")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (this.state.processStatus != 5 && this.state.processStatus != 6) {
|
|
if (this.state.processStatus != 5 && this.state.processStatus != 6) {
|
|
message.warning("当前订单流程不能发起变更!");
|
|
message.warning("当前订单流程不能发起变更!");
|
|
return false;
|
|
return false;
|
|
@@ -2936,11 +2942,11 @@ const NewService = Form.create()(
|
|
// console.log(this.state.changeAmount);
|
|
// console.log(this.state.changeAmount);
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (this.state.remarksC.trim() == "") {
|
|
|
|
|
|
+ if (this.state.remarksC == "") {
|
|
message.warning("请正确填写变更原因");
|
|
message.warning("请正确填写变更原因");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (this.state.startRemarks.trim() == "") {
|
|
|
|
|
|
+ if (this.state.startRemarks == "") {
|
|
message.warning("请正确填写备注信息");
|
|
message.warning("请正确填写备注信息");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -3433,6 +3439,16 @@ const NewService = Form.create()(
|
|
message.warning("请选择变更类型");
|
|
message.warning("请选择变更类型");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+ if (
|
|
|
|
+ this.state.typeChange == 0 ||
|
|
|
|
+ this.state.typeChange == 1 ||
|
|
|
|
+ this.state.typeChange == 3
|
|
|
|
+ ) {
|
|
|
|
+ if (this.state.settlementAmount < this.state.changeAmount) {
|
|
|
|
+ message.warning("退款金额大于已收款金额");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (this.state.processStatus != 5 && this.state.processStatus != 6) {
|
|
if (this.state.processStatus != 5 && this.state.processStatus != 6) {
|
|
message.warning("当前订单流程不能发起变更!");
|
|
message.warning("当前订单流程不能发起变更!");
|
|
return false;
|
|
return false;
|
|
@@ -3441,11 +3457,11 @@ const NewService = Form.create()(
|
|
message.warning("申请退款金额不能为空!");
|
|
message.warning("申请退款金额不能为空!");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (this.state.remarksC.trim() == "") {
|
|
|
|
|
|
+ if (this.state.remarksC == "") {
|
|
message.warning("请正确填写变更原因");
|
|
message.warning("请正确填写变更原因");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (this.state.startRemarks.trim() == "") {
|
|
|
|
|
|
+ if (this.state.startRemarks == "") {
|
|
message.warning("请正确填写备注信息");
|
|
message.warning("请正确填写备注信息");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|