|
@@ -20,7 +20,7 @@ import {
|
|
|
} from 'antd';
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
import moment from 'moment';
|
|
|
-import { boutique, tepi, jiedian, salesList,cuiJieDian } from '@/dataDic.js';
|
|
|
+import { boutique, tepi, jiedian, salesList, cuiJieDian } from '@/dataDic.js';
|
|
|
import {
|
|
|
getLiquidationStatus,
|
|
|
getProcessStatus,
|
|
@@ -1407,10 +1407,7 @@ const IntentionCustomer = Form.create()(
|
|
|
},
|
|
|
//重新提交
|
|
|
examOk() {
|
|
|
- if (this.state.flag) return;
|
|
|
- this.setState({
|
|
|
- flag: true,
|
|
|
- });
|
|
|
+ // if (this.state.flag) return;
|
|
|
let theorgCodeUrl = [];
|
|
|
if (this.state.orgCodeUrl.length) {
|
|
|
let picArr = [];
|
|
@@ -1458,39 +1455,24 @@ const IntentionCustomer = Form.create()(
|
|
|
return
|
|
|
}
|
|
|
if (moneyVerify(this.state.totalAmount)) {
|
|
|
- this.setState({
|
|
|
- flag: false,
|
|
|
- });
|
|
|
return;
|
|
|
}
|
|
|
if (moneyVerify(this.state.firstAmount)) {
|
|
|
- this.setState({
|
|
|
- flag: false,
|
|
|
- });
|
|
|
return;
|
|
|
}
|
|
|
if (!this.state.totalAmount) {
|
|
|
message.warning("签单金额不能为空");
|
|
|
this.refs.signFirstPayment.focus();
|
|
|
- this.setState({
|
|
|
- flag: false,
|
|
|
- });
|
|
|
return false;
|
|
|
}
|
|
|
if (!this.state.firstAmount) {
|
|
|
message.warning("首付金额不能为空");
|
|
|
this.refs.signFirstPayment.focus();
|
|
|
- this.setState({
|
|
|
- flag: false,
|
|
|
- });
|
|
|
return false;
|
|
|
}
|
|
|
if (!theorgCodeUrl) {
|
|
|
message.warning("企业负责人不能为空");
|
|
|
this.refs.signFirstPayment.focus();
|
|
|
- this.setState({
|
|
|
- flag: false,
|
|
|
- });
|
|
|
return false;
|
|
|
}
|
|
|
if (
|
|
@@ -1498,9 +1480,6 @@ const IntentionCustomer = Form.create()(
|
|
|
this.state.approval == "特批驳回"
|
|
|
) {
|
|
|
message.warning("特批状态不正确,请重新填写");
|
|
|
- this.setState({
|
|
|
- flag: false,
|
|
|
- });
|
|
|
return false;
|
|
|
}
|
|
|
const arr = this.state.contactListNew || [];
|
|
@@ -1513,9 +1492,6 @@ const IntentionCustomer = Form.create()(
|
|
|
message.warning(
|
|
|
"非特批存在填写催款节点首付时间的情况,请删除后重新填写保存"
|
|
|
);
|
|
|
- this.setState({
|
|
|
- flag: false,
|
|
|
- });
|
|
|
return false;
|
|
|
} else if (
|
|
|
arr[i].dunType == 1 &&
|
|
@@ -1525,19 +1501,20 @@ const IntentionCustomer = Form.create()(
|
|
|
message.warning(
|
|
|
"特批存在首付催款节点未填写时间的情况,请删除后重新填写保存"
|
|
|
);
|
|
|
- this.setState({
|
|
|
- flag: false,
|
|
|
- });
|
|
|
return false;
|
|
|
}
|
|
|
if (!this.state.contactListNew[i].id) {
|
|
|
message.warning("请保存催款节点");
|
|
|
- this.setState({
|
|
|
- flag: false,
|
|
|
- });
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
+ if (!this.state.salesType) {
|
|
|
+ message.warning("请选择销售类型!");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ flag: true,
|
|
|
+ });
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -1586,9 +1563,8 @@ const IntentionCustomer = Form.create()(
|
|
|
}.bind(this)
|
|
|
);
|
|
|
},
|
|
|
- //重新提交
|
|
|
+ //订单作废
|
|
|
examOks() {
|
|
|
- if (this.state.flag) return;
|
|
|
this.setState({
|
|
|
flag: true,
|
|
|
});
|
|
@@ -1618,6 +1594,7 @@ const IntentionCustomer = Form.create()(
|
|
|
function () {
|
|
|
this.setState({
|
|
|
loading: false,
|
|
|
+ flag: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
@@ -2083,7 +2060,7 @@ const IntentionCustomer = Form.create()(
|
|
|
{...formItemLayout}
|
|
|
label="销售类型"
|
|
|
>
|
|
|
- <span>{(["私有客户", "签单客户"][this.state.userType] || " ") + "-" +
|
|
|
+ <span>{(["私有客户-", "签单客户-"][this.state.userType] || " ") +
|
|
|
(salesList[this.state.salesType] || "")}</span>
|
|
|
<UpdateSales
|
|
|
orderNo={this.state.orderNo}
|
|
@@ -2595,6 +2572,7 @@ const IntentionCustomer = Form.create()(
|
|
|
onClick={this.examOk}
|
|
|
style={{ marginLeft: "200px" }}
|
|
|
htmlType="submit"
|
|
|
+ loading={this.state.flag}
|
|
|
>
|
|
|
重新提交
|
|
|
</Button>
|
|
@@ -2604,6 +2582,7 @@ const IntentionCustomer = Form.create()(
|
|
|
onClick={this.examOks}
|
|
|
style={{ marginLeft: "50px" }}
|
|
|
htmlType="submit"
|
|
|
+ loading={this.state.flag}
|
|
|
>
|
|
|
订单作废
|
|
|
</Button>
|