|
@@ -3063,9 +3063,9 @@ const NewService = Form.create()(
|
|
|
});
|
|
|
} else {
|
|
|
this.setState({
|
|
|
- listFlag: true,
|
|
|
- hetongFlag: true,
|
|
|
- listCuiFlag: true,
|
|
|
+ hetongFlag: false,
|
|
|
+ listFlag: false,
|
|
|
+ listCuiFlag: false,
|
|
|
tuiKuanFlag: false,
|
|
|
displayList: false,
|
|
|
});
|
|
@@ -3723,90 +3723,135 @@ const NewService = Form.create()(
|
|
|
this.setState({
|
|
|
loading: true,
|
|
|
});
|
|
|
- if (this.state.typeChange == 0) {
|
|
|
- $.ajax({
|
|
|
- method: "post",
|
|
|
- dataType: "json",
|
|
|
- crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
|
|
|
- data: {
|
|
|
- orderNo: this.state.orderNo, //订单编号
|
|
|
- processState: 1,
|
|
|
- status: 1,
|
|
|
- startRemarks: this.state.startRemarks,
|
|
|
- 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,
|
|
|
- depName: this.state.depName,
|
|
|
- type: this.state.typeChange,
|
|
|
- contractPictureUrl: this.state.isNew
|
|
|
- ? newContractUrl : undefined,//合同替换件
|
|
|
- },
|
|
|
- }).done(
|
|
|
- function (data) {
|
|
|
- this.setState({
|
|
|
- loading: false,
|
|
|
- });
|
|
|
- if (!data.error.length) {
|
|
|
- message.success("发起变更成功");
|
|
|
- this.handleCancelclose();
|
|
|
- } else {
|
|
|
- message.warning(data.error[0].message);
|
|
|
- this.setState({
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ method: "post",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
|
|
|
+ data: {
|
|
|
+ orderNo: this.state.orderNo, //订单编号
|
|
|
+ processState: 0,
|
|
|
+ status: 0,
|
|
|
+ startRemarks: this.state.startRemarks,
|
|
|
+ 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,
|
|
|
+ depName: this.state.depName,
|
|
|
+ type: this.state.typeChange,
|
|
|
+ contractPictureUrl: this.state.isNew
|
|
|
+ ? newContractUrl : undefined,//合同替换件
|
|
|
+ },
|
|
|
+ }).done(
|
|
|
+ function (data) {
|
|
|
+ this.setState({
|
|
|
+ loading: false,
|
|
|
+ });
|
|
|
+ if (!data.error.length) {
|
|
|
+ message.success("发起变更草稿");
|
|
|
+ this.setState(
|
|
|
+ {
|
|
|
+ isCaoGao: true,
|
|
|
loading: false,
|
|
|
- });
|
|
|
- }
|
|
|
- }.bind(this)
|
|
|
- );
|
|
|
- } else {
|
|
|
- $.ajax({
|
|
|
- method: "post",
|
|
|
- dataType: "json",
|
|
|
- crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
|
|
|
- data: {
|
|
|
- orderNo: this.state.orderNo, //订单编号
|
|
|
- processState: 0,
|
|
|
- status: 0,
|
|
|
- startRemarks: this.state.startRemarks,
|
|
|
- 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,
|
|
|
- depName: this.state.depName,
|
|
|
- type: this.state.typeChange,
|
|
|
- contractPictureUrl: this.state.isNew
|
|
|
- ? newContractUrl : undefined,//合同替换件
|
|
|
- },
|
|
|
- }).done(
|
|
|
- function (data) {
|
|
|
- this.setState({
|
|
|
- loading: false,
|
|
|
- });
|
|
|
- if (!data.error.length) {
|
|
|
- message.success("发起变更草稿");
|
|
|
- this.setState(
|
|
|
- {
|
|
|
- isCaoGao: true,
|
|
|
- loading: false,
|
|
|
- },
|
|
|
- () => {
|
|
|
- this.callback("2");
|
|
|
- }
|
|
|
- );
|
|
|
- } else {
|
|
|
- message.warning(data.error[0].message);
|
|
|
- }
|
|
|
- }.bind(this)
|
|
|
- );
|
|
|
- }
|
|
|
+ },
|
|
|
+ () => {
|
|
|
+ this.callback("2");
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ }.bind(this)
|
|
|
+ );
|
|
|
+
|
|
|
+ // if (this.state.typeChange == 0) {
|
|
|
+ // $.ajax({
|
|
|
+ // method: "post",
|
|
|
+ // dataType: "json",
|
|
|
+ // crossDomain: false,
|
|
|
+ // url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
|
|
|
+ // data: {
|
|
|
+ // orderNo: this.state.orderNo, //订单编号
|
|
|
+ // processState: 1,
|
|
|
+ // status: 1,
|
|
|
+ // startRemarks: this.state.startRemarks,
|
|
|
+ // 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,
|
|
|
+ // depName: this.state.depName,
|
|
|
+ // type: this.state.typeChange,
|
|
|
+ // contractPictureUrl: this.state.isNew
|
|
|
+ // ? newContractUrl : undefined,//合同替换件
|
|
|
+ // },
|
|
|
+ // }).done(
|
|
|
+ // function (data) {
|
|
|
+ // this.setState({
|
|
|
+ // loading: false,
|
|
|
+ // });
|
|
|
+ // if (!data.error.length) {
|
|
|
+ // message.success("发起变更成功");
|
|
|
+ // this.handleCancelclose();
|
|
|
+ // } else {
|
|
|
+ // message.warning(data.error[0].message);
|
|
|
+ // this.setState({
|
|
|
+ // loading: false,
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // }.bind(this)
|
|
|
+ // );
|
|
|
+ // } else {
|
|
|
+ // $.ajax({
|
|
|
+ // method: "post",
|
|
|
+ // dataType: "json",
|
|
|
+ // crossDomain: false,
|
|
|
+ // url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
|
|
|
+ // data: {
|
|
|
+ // orderNo: this.state.orderNo, //订单编号
|
|
|
+ // processState: 0,
|
|
|
+ // status: 0,
|
|
|
+ // startRemarks: this.state.startRemarks,
|
|
|
+ // 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,
|
|
|
+ // depName: this.state.depName,
|
|
|
+ // type: this.state.typeChange,
|
|
|
+ // contractPictureUrl: this.state.isNew
|
|
|
+ // ? newContractUrl : undefined,//合同替换件
|
|
|
+ // },
|
|
|
+ // }).done(
|
|
|
+ // function (data) {
|
|
|
+ // this.setState({
|
|
|
+ // loading: false,
|
|
|
+ // });
|
|
|
+ // if (!data.error.length) {
|
|
|
+ // message.success("发起变更草稿");
|
|
|
+ // this.setState(
|
|
|
+ // {
|
|
|
+ // isCaoGao: true,
|
|
|
+ // loading: false,
|
|
|
+ // },
|
|
|
+ // () => {
|
|
|
+ // this.callback("2");
|
|
|
+ // }
|
|
|
+ // );
|
|
|
+ // } else {
|
|
|
+ // message.warning(data.error[0].message);
|
|
|
+ // }
|
|
|
+ // }.bind(this)
|
|
|
+ // );
|
|
|
+ // }
|
|
|
},
|
|
|
|
|
|
reset() {
|
|
@@ -7426,9 +7471,9 @@ const NewService = Form.create()(
|
|
|
});
|
|
|
} else {
|
|
|
this.setState({
|
|
|
- listFlag: true,
|
|
|
- hetongFlag: true,
|
|
|
- listCuiFlag: true,
|
|
|
+ hetongFlag: false,
|
|
|
+ listFlag: false,
|
|
|
+ listCuiFlag: false,
|
|
|
tuiKuanFlag: false,
|
|
|
displayList: false,
|
|
|
});
|
|
@@ -7578,7 +7623,7 @@ const NewService = Form.create()(
|
|
|
项目业务
|
|
|
</span>
|
|
|
<span style={{ color: "red" }}>
|
|
|
- (注:项目删除后,此项目的全部节点、全部工时,全部被删除,请谨慎删除!双击可修改对应金额数量!)
|
|
|
+ (注:项目删除后,此项目的全部节点、全部工时,全部被删除,请谨慎删除!)
|
|
|
</span>
|
|
|
<Button
|
|
|
type="primary"
|
|
@@ -7773,11 +7818,12 @@ const NewService = Form.create()(
|
|
|
}
|
|
|
}}
|
|
|
>
|
|
|
- {this.state.isCaoGao
|
|
|
+ {/* {this.state.isCaoGao
|
|
|
? "发起变更申请"
|
|
|
: this.state.typeChange == 0
|
|
|
? "发起变更申请"
|
|
|
- : "下一步"}
|
|
|
+ : "下一步"} */}
|
|
|
+ {this.state.isCaoGao ? "发起变更申请" : "下一步"}
|
|
|
</Button>
|
|
|
</div>
|
|
|
{/* ) : (
|
|
@@ -7958,6 +8004,16 @@ const NewService = Form.create()(
|
|
|
style={{ height: "auto" }}
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
+ label="首付款(万元)"
|
|
|
+ >
|
|
|
+ <span>{this.state.detailChange.firstAmount}</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ style={{ height: "auto" }}
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
label="变更原因"
|
|
|
>
|
|
|
<span>{this.state.detailChange.remarksC}</span>
|