|
@@ -16,7 +16,7 @@ const OrgCertify = Form.create()(React.createClass({
|
|
|
auditStatusOption: []
|
|
|
};
|
|
|
},
|
|
|
- loadData() {
|
|
|
+ loadData(uid) {
|
|
|
this.state.data = [];
|
|
|
this.setState({
|
|
|
loading: true
|
|
@@ -27,7 +27,7 @@ const OrgCertify = Form.create()(React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/orgDetail",
|
|
|
data: {
|
|
|
- uid: this.state.uid
|
|
|
+ uid: uid
|
|
|
},
|
|
|
success: function (data) {
|
|
|
let thisData = data.data;
|
|
@@ -74,6 +74,7 @@ const OrgCertify = Form.create()(React.createClass({
|
|
|
auditStatus: thisData.auditStatus,
|
|
|
process: thisData.process
|
|
|
});
|
|
|
+ this.props.form.resetFields();
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.setState({
|
|
@@ -88,12 +89,19 @@ const OrgCertify = Form.create()(React.createClass({
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
});
|
|
|
+ let licenceA = document.getElementById('licenceArea').value;
|
|
|
+ let licenceC = document.getElementById('licenceCity').value;
|
|
|
+ let licenceP = document.getElementById('licenceProvince').value;
|
|
|
+ let locationA = document.getElementById('locationArea').value;
|
|
|
+ let locationC = document.getElementById('locationCity').value;
|
|
|
+ let locationP = document.getElementById('locationProvince').value;
|
|
|
$.ajax({
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/updateOrgDetail",
|
|
|
data: {
|
|
|
+ uid: this.props.uid,
|
|
|
id: this.state.id,
|
|
|
contacts: values.contacts,
|
|
|
contactMobile: values.contactMobile,
|
|
@@ -118,7 +126,14 @@ const OrgCertify = Form.create()(React.createClass({
|
|
|
validationAmount: values.validationAmount, //打款金额
|
|
|
paymentDateFormattedDate: values.paymentDateFormattedDate ? values.paymentDateFormattedDate.format("YYYY-MM-DD") : undefined,
|
|
|
auditStatus: values.auditStatus,
|
|
|
- process: values.process
|
|
|
+ process: values.process,
|
|
|
+
|
|
|
+ licenceArea: licenceA,
|
|
|
+ licenceCity: licenceC,
|
|
|
+ licenceProvince: licenceP,
|
|
|
+ locationArea: locationA,
|
|
|
+ locationCity: locationC,
|
|
|
+ locationProvince: locationP
|
|
|
}
|
|
|
}).done(function (data) {
|
|
|
if (!data.error.length) {
|
|
@@ -154,13 +169,11 @@ const OrgCertify = Form.create()(React.createClass({
|
|
|
componentDidMount() {
|
|
|
addressInit('licenceProvince', 'licenceCity', 'licenceArea');
|
|
|
addressInit('locationProvince', 'locationCity', 'locationArea');
|
|
|
- this.state.uid = this.props.uid;
|
|
|
- this.loadData();
|
|
|
+ this.loadData(this.props.uid);
|
|
|
},
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
if (!this.props.visible && nextProps.visible) {
|
|
|
- this.state.uid = nextProps.uid;
|
|
|
- this.loadData();
|
|
|
+ this.loadData(nextProps.uid);
|
|
|
};
|
|
|
},
|
|
|
render() {
|