|
@@ -2970,6 +2970,7 @@ const NewService = Form.create()(
|
|
|
changeId: thisdata.id,
|
|
|
typeChange: thisdata.type,
|
|
|
totalAmount: thisdata.totalAmount,
|
|
|
+ firstAmount: thisdata.firstAmount,
|
|
|
settlementAmount: thisdata.settlementAmount,
|
|
|
changeAmount: thisdata.changeAmount,
|
|
|
remarksC: thisdata.remarks,
|
|
@@ -3648,6 +3649,18 @@ const NewService = Form.create()(
|
|
|
message.warning("请选择变更类型");
|
|
|
return false;
|
|
|
}
|
|
|
+ if (this.state.totalAmount === "") {
|
|
|
+ message.warning("合同金额不能为空!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (this.state.firstAmount === "") {
|
|
|
+ message.warning("首付款金额不能为空!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (this.state.totalAmount < this.state.firstAmount) {
|
|
|
+ message.warning("首付款不能大于合同额!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (
|
|
|
this.state.typeChange == 0 ||
|
|
|
this.state.typeChange == 1 ||
|
|
@@ -3723,6 +3736,7 @@ const NewService = Form.create()(
|
|
|
remarks: this.state.remarksC,
|
|
|
voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
|
|
|
totalAmount: this.state.totalAmount,
|
|
|
+ firstAmount: this.state.firstAmount,
|
|
|
settlementAmount: this.state.settlementAmount,
|
|
|
changeAmount: this.state.changeAmount,
|
|
|
applicant: this.state.salesmanName,
|
|
@@ -3761,6 +3775,7 @@ const NewService = Form.create()(
|
|
|
remarks: this.state.remarksC,
|
|
|
voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
|
|
|
totalAmount: this.state.totalAmount,
|
|
|
+ firstAmount: this.state.firstAmount,
|
|
|
settlementAmount: this.state.settlementAmount,
|
|
|
changeAmount: this.state.changeAmount,
|
|
|
applicant: this.state.salesmanName,
|
|
@@ -4310,6 +4325,18 @@ const NewService = Form.create()(
|
|
|
message.warning("请选择变更类型");
|
|
|
return false;
|
|
|
}
|
|
|
+ if (this.state.totalAmount === "") {
|
|
|
+ message.warning("合同金额不能为空!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (this.state.firstAmount === "") {
|
|
|
+ message.warning("首付款金额不能为空!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (this.state.totalAmount < this.state.firstAmount) {
|
|
|
+ message.warning("首付款不能大于合同额!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (
|
|
|
this.state.typeChange == 0 ||
|
|
|
this.state.typeChange == 1 ||
|
|
@@ -4382,7 +4409,8 @@ const NewService = Form.create()(
|
|
|
startRemarks: this.state.startRemarks,
|
|
|
remarks: this.state.remarksC,
|
|
|
voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
|
|
|
- totalAmount: this.state.totalAmount,
|
|
|
+ totalAmount: this.state.totalAmount,//合同额
|
|
|
+ firstAmount: this.state.firstAmount,//首付款
|
|
|
settlementAmount: this.state.settlementAmount,
|
|
|
changeAmount: this.state.changeAmount,
|
|
|
applicant: this.state.salesmanName,
|
|
@@ -7487,6 +7515,24 @@ const NewService = Form.create()(
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
+ label="首付款(万元)"
|
|
|
+ >
|
|
|
+ <Input
|
|
|
+ placeholder="请输入首付款"
|
|
|
+ disabled={this.state.hetongFlag}
|
|
|
+ ref="signTotalAmount"
|
|
|
+ value={this.state.firstAmount}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({
|
|
|
+ firstAmount: e.target.value,
|
|
|
+ });
|
|
|
+ }}
|
|
|
+ style={{ width: "240px" }}
|
|
|
+ />
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
label="已收款(万元)"
|
|
|
>
|
|
|
<span>
|