|
@@ -152,11 +152,11 @@ const Unit = React.createClass({
|
|
|
}
|
|
|
thisData = {};
|
|
|
}
|
|
|
- let ProvinceCityArr = [];
|
|
|
- let ProvinceS = thisData.locationProvince; //getprovince
|
|
|
- let citys = thisData.locationCity;
|
|
|
- let Areas = thisData.locationArea;
|
|
|
- ProvinceCityArr.push(ProvinceS, citys, Areas);
|
|
|
+ // let ProvinceCityArr = [];
|
|
|
+ // let ProvinceS = thisData.locationProvince; //getprovince
|
|
|
+ // let citys = thisData.locationCity;
|
|
|
+ // let Areas = thisData.locationArea;
|
|
|
+ // ProvinceCityArr.push(ProvinceS, citys, Areas);
|
|
|
this.setState({
|
|
|
InformationId: thisData.id,
|
|
|
InformationUid: thisData.uid,
|
|
@@ -170,7 +170,7 @@ const Unit = React.createClass({
|
|
|
? splitUrl(thisData.companyLogoUrl, ',', globalConfig.avatarHost + '/upload')
|
|
|
: [],
|
|
|
dataInformation: thisData,
|
|
|
- ProvinceCity: ProvinceCityArr[0] != null ? ProvinceCityArr : undefined,
|
|
|
+ //ProvinceCity: ProvinceCityArr[0] != null ? ProvinceCityArr : undefined,
|
|
|
industry: String(thisData.industry) == 'null' ? undefined : String(thisData.industry),
|
|
|
societyTag: thisData.societyTag || undefined,
|
|
|
introduction: thisData.introduction,
|
|
@@ -183,7 +183,9 @@ const Unit = React.createClass({
|
|
|
legalPersonTel: thisData.legalPersonTel,
|
|
|
legalPersonEmail: thisData.legalPersonEmail,
|
|
|
businessScope: thisData.businessScope,
|
|
|
- orgCode: thisData.orgCode
|
|
|
+ orgCode: thisData.orgCode,
|
|
|
+ type:thisData.type,
|
|
|
+ authentication:thisData.authentication
|
|
|
});
|
|
|
}.bind(this)
|
|
|
}).always(
|
|
@@ -207,7 +209,6 @@ const Unit = React.createClass({
|
|
|
},
|
|
|
//基本信息提交
|
|
|
newSubmit(e) {
|
|
|
- e.preventDefault();
|
|
|
if(!this.state.identifyName){
|
|
|
message.warning('请填写单位名称!');
|
|
|
return;
|
|
@@ -220,10 +221,10 @@ const Unit = React.createClass({
|
|
|
message.warning('请选择社会性质!');
|
|
|
return false;
|
|
|
}
|
|
|
- if (!this.state.ProvinceCity.length) {
|
|
|
- message.warning('请选择省-市-区!');
|
|
|
- return false;
|
|
|
- }
|
|
|
+ // if (!this.state.ProvinceCity) {
|
|
|
+ // message.warning('请选择省-市-区!');
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
if (isNaN(this.state.registeredCapital)) {
|
|
|
message.warning('注册资本只能输入数字!');
|
|
|
return false;
|
|
@@ -263,7 +264,7 @@ const Unit = React.createClass({
|
|
|
$.ajax({
|
|
|
method: 'post',
|
|
|
dataType: 'json',
|
|
|
- url: globalConfig.context + '/api/admin/customer/updateOrganizationCustomer',
|
|
|
+ url: globalConfig.context + '/api/user/updateOrganizationDetail',
|
|
|
data: {
|
|
|
id: this.state.InformationId,
|
|
|
uid: this.state.InformationUid,
|
|
@@ -272,9 +273,9 @@ const Unit = React.createClass({
|
|
|
introduction: this.state.introduction,
|
|
|
unitName: this.state.unitName,
|
|
|
industry: this.state.industry,
|
|
|
- locationProvince: this.state.ProvinceCity[0], //省-
|
|
|
- locationCity: this.state.ProvinceCity[1], //市
|
|
|
- locationArea: this.state.ProvinceCity[2], //区
|
|
|
+ // locationProvince: this.state.ProvinceCity[0], //省-
|
|
|
+ // locationCity: this.state.ProvinceCity[1], //市
|
|
|
+ // locationArea: this.state.ProvinceCity[2], //区
|
|
|
postalAddress: this.state.postalAddress,
|
|
|
fixedTel: this.state.fixedTel,
|
|
|
contactsFax: this.state.contactsFax,
|
|
@@ -292,7 +293,9 @@ const Unit = React.createClass({
|
|
|
introduction: this.state.introduction,
|
|
|
companyLogoUrl: thecompanyLogoUrl != 0 ? thecompanyLogoUrl : '',
|
|
|
orgCodeUrl: theorgCodeUrl != 0 ? theorgCodeUrl : '',
|
|
|
- auditStatus: this.state.auditStatus
|
|
|
+ auditStatus: this.state.auditStatus,
|
|
|
+ authentication:this.state.authentication,
|
|
|
+ type:this.state.type
|
|
|
}
|
|
|
}).done(
|
|
|
function(data) {
|
|
@@ -300,14 +303,41 @@ const Unit = React.createClass({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success('保存成功!');
|
|
|
- this.loadInformation()
|
|
|
+ if(this.state.type!='1'){
|
|
|
+ message.warning('企业认证成功,1s后回到首页.')
|
|
|
+ setTimeout(()=>{
|
|
|
+ window.location.href = globalConfig.context + "/user/account/index.html";
|
|
|
+ },1000)
|
|
|
+ }else{
|
|
|
+ message.success('保存成功');
|
|
|
+ this.loadInformation();
|
|
|
+ }
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
|
}
|
|
|
}.bind(this)
|
|
|
);
|
|
|
},
|
|
|
+ subFun(){
|
|
|
+ if(this.state.type=='0'||this.state.type=='1'){
|
|
|
+ this.newSubmit()
|
|
|
+ }else{
|
|
|
+ this.setState({
|
|
|
+ visible:true
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleOk(){
|
|
|
+ this.newSubmit();
|
|
|
+ this.setState({
|
|
|
+ visible:false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleCancel(){
|
|
|
+ this.setState({
|
|
|
+ visible:false
|
|
|
+ })
|
|
|
+ },
|
|
|
componentWillMount() {
|
|
|
this.loadInformation();
|
|
|
},
|
|
@@ -321,7 +351,7 @@ const Unit = React.createClass({
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<Row style={{ marginBottom: 20 }}>
|
|
|
<Col offset={2} span={4}>
|
|
|
- <h4>单位资料</h4>
|
|
|
+ <h4 style={{fontSize:20}}>企业资料</h4>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<div className="clearfix" style={{ paddingLeft: '60px' }}>
|
|
@@ -329,7 +359,7 @@ const Unit = React.createClass({
|
|
|
className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
- label="单位名称"
|
|
|
+ label="企业名称"
|
|
|
>
|
|
|
<Input
|
|
|
style={{width:'90%'}}
|
|
@@ -337,7 +367,7 @@ const Unit = React.createClass({
|
|
|
onChange={(e) => {
|
|
|
this.setState({ identifyName: e.target.value });
|
|
|
}}
|
|
|
- placeholder="请输入单位名称"
|
|
|
+ placeholder="请输入企业名称"
|
|
|
/>
|
|
|
<span className="color-red"> * </span>
|
|
|
</FormItem>
|
|
@@ -365,7 +395,7 @@ const Unit = React.createClass({
|
|
|
label="社会属性"
|
|
|
>
|
|
|
<Select
|
|
|
- placeholder="客户社会属性(必填项)"
|
|
|
+ placeholder="客户社会属性"
|
|
|
value={this.state.societyTag}
|
|
|
style={{width:'90%'}}
|
|
|
onChange={(e) => {
|
|
@@ -378,7 +408,7 @@ const Unit = React.createClass({
|
|
|
</Select>
|
|
|
<span className="color-red"> * </span>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ {/* <FormItem
|
|
|
className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
@@ -394,7 +424,7 @@ const Unit = React.createClass({
|
|
|
}}
|
|
|
/>
|
|
|
<span className="color-red"> * </span>
|
|
|
- </FormItem>
|
|
|
+ </FormItem> */}
|
|
|
<FormItem
|
|
|
className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
@@ -456,10 +486,10 @@ const Unit = React.createClass({
|
|
|
className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
- label="单位规模"
|
|
|
+ label="企业规模"
|
|
|
>
|
|
|
<Input
|
|
|
- placeholder="单位规模"
|
|
|
+ placeholder="企业规模"
|
|
|
value={this.state.enterpriseScale}
|
|
|
maxLength="1"
|
|
|
onChange={(e) => {
|
|
@@ -579,7 +609,7 @@ const Unit = React.createClass({
|
|
|
className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
- label="单位logo"
|
|
|
+ label="企业logo"
|
|
|
>
|
|
|
<PicturesWall
|
|
|
pictureSign="logo"
|
|
@@ -610,13 +640,13 @@ const Unit = React.createClass({
|
|
|
className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
- label="单位简介"
|
|
|
+ label="企业简介"
|
|
|
>
|
|
|
<Input
|
|
|
type="textarea"
|
|
|
rows={4}
|
|
|
value={this.state.introduction}
|
|
|
- placeholder="请输入单位简介"
|
|
|
+ placeholder="请输入企业简介"
|
|
|
onChange={(e) => {
|
|
|
this.setState({ introduction: e.target.value });
|
|
|
}}
|
|
@@ -625,7 +655,7 @@ const Unit = React.createClass({
|
|
|
</div>
|
|
|
<Row style={{ marginBottom: 20 ,marginTop:10}}>
|
|
|
<Col offset={2} span={4}>
|
|
|
- <Button size="large" className="set-submit" type="primary" htmlType="submit">
|
|
|
+ <Button size="large" className="set-submit" type="primary" onClick={this.subFun} >
|
|
|
保存
|
|
|
</Button>
|
|
|
</Col>
|
|
@@ -634,6 +664,13 @@ const Unit = React.createClass({
|
|
|
</div>
|
|
|
</Spin>
|
|
|
</Form>
|
|
|
+ <Modal
|
|
|
+ visible={this.state.visible}
|
|
|
+ onOk={this.handleOk}
|
|
|
+ onCancel={this.handleCancel}
|
|
|
+ >
|
|
|
+ <p>是否申请企业用户认证?</p>
|
|
|
+ </Modal>
|
|
|
</div>
|
|
|
);
|
|
|
}
|