|
@@ -18,7 +18,7 @@ import {
|
|
|
Radio,
|
|
|
Group,
|
|
|
} from "antd";
|
|
|
-import $ from "jquery/src/ajax";
|
|
|
+// import $ from "jquery/src/ajax";
|
|
|
import "../userMangagement.less";
|
|
|
import "../billing.less";
|
|
|
import moment from "moment";
|
|
@@ -27,6 +27,7 @@ import Picture from "@/manageCenter/publicComponent/picture";
|
|
|
import ResolutionDetail from "@/resolutionDetail";
|
|
|
import quxiao from "../../../../../image/quxiao.png";
|
|
|
import tongguo from "../../../../../image/tongguo.png";
|
|
|
+import $ from 'jquery';
|
|
|
|
|
|
import OrderRiZi from "@/orderRiZi.jsx";
|
|
|
import {
|
|
@@ -1703,14 +1704,14 @@ const NewService = Form.create()(
|
|
|
theReplenishUrl = picArr.join(",");
|
|
|
}
|
|
|
if (this.props.userDetaile) {
|
|
|
- if (this.state.totalAmount === "") {
|
|
|
+ if (isNaN(parseInt(this.state.totalAmount))) {
|
|
|
message.warning("签单金额不能为空");
|
|
|
- this.refs.signFirstPayment.focus();
|
|
|
+ this.refs.totalAmountRef.focus();
|
|
|
return false;
|
|
|
}
|
|
|
- if (this.state.firstAmount === "") {
|
|
|
+ if (isNaN(parseInt(this.state.firstAmount))) {
|
|
|
message.warning("首付金额不能为空");
|
|
|
- this.refs.signFirstPayment.focus();
|
|
|
+ this.refs.firstAmountRef.focus();
|
|
|
return false;
|
|
|
}
|
|
|
if (moneyVerify(this.state.firstAmount)) {
|
|
@@ -1726,12 +1727,12 @@ const NewService = Form.create()(
|
|
|
}
|
|
|
if (!this.state.signDate) {
|
|
|
message.warning("签单日期不能为空");
|
|
|
- this.refs.signFirstPayment.focus();
|
|
|
+ $('.signDateRef input').focus()
|
|
|
return false;
|
|
|
}
|
|
|
if (!this.state.orderRemarks) {
|
|
|
message.warning("订单留言不能为空");
|
|
|
- this.refs.signFirstPayment.focus();
|
|
|
+ this.refs.orderRemarksRef.focus();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
@@ -4552,6 +4553,7 @@ const NewService = Form.create()(
|
|
|
label="合同签订时间"
|
|
|
>
|
|
|
<DatePicker
|
|
|
+ className='signDateRef'
|
|
|
style={{
|
|
|
marginTop: "2px",
|
|
|
// width: "240px",
|
|
@@ -4654,7 +4656,7 @@ const NewService = Form.create()(
|
|
|
>
|
|
|
<Input
|
|
|
placeholder="签单金额"
|
|
|
- ref="signTotalAmount"
|
|
|
+ ref="totalAmountRef"
|
|
|
value={this.state.totalAmount}
|
|
|
onChange={(e) => {
|
|
|
this.setState({
|
|
@@ -4672,7 +4674,7 @@ const NewService = Form.create()(
|
|
|
>
|
|
|
<Input
|
|
|
placeholder="请输入实签首款金额"
|
|
|
- ref="signFirstPayment"
|
|
|
+ ref="firstAmountRef"
|
|
|
value={this.state.firstAmount}
|
|
|
onChange={(e) => {
|
|
|
this.setState({
|
|
@@ -5076,6 +5078,7 @@ const NewService = Form.create()(
|
|
|
label="订单留言"
|
|
|
>
|
|
|
<Input
|
|
|
+ ref='orderRemarksRef'
|
|
|
type="textarea"
|
|
|
placeholder="请输入订单留言"
|
|
|
rows={4}
|