|
@@ -159,7 +159,7 @@ const Expert = React.createClass({
|
|
|
? splitUrl(thisData.consultantCertificateUrl, ',', globalConfig.avatarHost + '/upload')
|
|
|
: [],
|
|
|
data: thisData,
|
|
|
- lawState: thisData.consultantType,
|
|
|
+ lawState: thisData.consultantType=='4'?true:false,
|
|
|
ProvinceCity: ProvinceCityArr[0] != null ? ProvinceCityArr : undefined,
|
|
|
yearMonth: month,
|
|
|
workUnit: thisData.workUnit || '',
|
|
@@ -271,7 +271,8 @@ const Expert = React.createClass({
|
|
|
auditStatus: this.state.auditStatus || '0'
|
|
|
};
|
|
|
if (this.state.authenticationState == '0') {
|
|
|
- (dataList.expert = '1'), (dataList.workUnit = values.workUnit);
|
|
|
+ dataList.expert = '1';
|
|
|
+ dataList.workUnit = values.workUnit;
|
|
|
dataList.professionalTitle = values.professionalTitle;
|
|
|
dataList.qualification = values.qualification;
|
|
|
dataList.majorCategory = values.majorCategory;
|
|
@@ -283,6 +284,8 @@ const Expert = React.createClass({
|
|
|
dataList.expert = '2';
|
|
|
dataList.typicalCase = values.adviserType == '4' ? values.typicalCase : '';
|
|
|
dataList.workUnit1 = values.adviserType == '4' ? values.workUnit1 : '';
|
|
|
+ dataList.honer = values.adviserType == '4' ? values.honer : '';
|
|
|
+ dataList.goodAtIndustry = values.adviserType == '4' ? values.goodAtIndustry : '';
|
|
|
dataList.consultantCertificateUrl = values.adviserType == '4' && lawUrls.length != 0 ? lawUrls : ''; //法律职业资格证
|
|
|
dataList.consultantType = values.adviserType; //顾问类型
|
|
|
dataList.headPortraitUrl = theorgCodeUrl.length != 0 ? theorgCodeUrl : ''; //顾问照片
|
|
@@ -323,10 +326,10 @@ const Expert = React.createClass({
|
|
|
message.warning(this.state.authenticationState == '1' ? '请上传顾问照片!' : '请上传专家照片');
|
|
|
return;
|
|
|
}
|
|
|
-// if(!(this.state.lawUrl.length)){
|
|
|
-// message.warning('请上传您的律师职业资格证!');
|
|
|
-// return;
|
|
|
-// }
|
|
|
+ if(values.adviserType=='4'&&!(this.state.lawUrl.length)){
|
|
|
+ message.warning('请上传您的律师职业资格证!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(!(this.state.oppositeIdUrl.length)||!(this.state.positiveIdUrl.length)){
|
|
|
message.warning('请上传您的身份证正反照片!');
|
|
|
return;
|
|
@@ -618,6 +621,27 @@ const Expert = React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="职称">
|
|
|
+ {getFieldDecorator('honer', {
|
|
|
+ initialValue: theData.honer
|
|
|
+ })(<Input placeholder="请填写您的职称" />)}
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 10 }} label="擅长行业">
|
|
|
+ {getFieldDecorator('goodAtIndustry', {
|
|
|
+ initialValue: theData.goodAtIndustry,
|
|
|
+ })(
|
|
|
+ <Input
|
|
|
+ type="textarea"
|
|
|
+ rows={4}
|
|
|
+ maxLength={10000}
|
|
|
+ placeholder="填写您擅长的行业"
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
<FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 10 }} label="典型案例">
|
|
|
{getFieldDecorator('typicalCase', {
|
|
|
initialValue: theData.typicalCase,
|
|
@@ -640,6 +664,7 @@ const Expert = React.createClass({
|
|
|
<div className="clearfix pictures">
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
+ className="half-item"
|
|
|
className="picWidth"
|
|
|
labelCol={{ span: 9 }}
|
|
|
wrapperCol={{ span: 10 }}
|
|
@@ -660,6 +685,7 @@ const Expert = React.createClass({
|
|
|
</FormItem>
|
|
|
{this.state.lawState && this.state.authenticationState == '1' ? (
|
|
|
<FormItem
|
|
|
+ className="half-item"
|
|
|
className="picWidth"
|
|
|
labelCol={{ span: 9 }}
|
|
|
wrapperCol={{ span: 10 }}
|
|
@@ -744,7 +770,7 @@ const Expert = React.createClass({
|
|
|
</FormItem>
|
|
|
|
|
|
<div className="clearfix">
|
|
|
- <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 13 }} label="专家照片">
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 13 }} label="专家照片">
|
|
|
<Upload
|
|
|
className="demandDetailShow-upload"
|
|
|
listType="picture-card"
|
|
@@ -846,6 +872,16 @@ const Expert = React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
+ <FormItem className="half-item" {...formItemLayout} label="职称">
|
|
|
+ <span>{theData.honer}</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 10 }} label="擅长行业">
|
|
|
+ <span>{theData.goodAtIndustry}</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
<FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 10 }} label="典型案例">
|
|
|
<span>{theData.typicalCase}</span>
|
|
|
</FormItem>
|
|
@@ -855,7 +891,7 @@ const Expert = React.createClass({
|
|
|
''
|
|
|
)}
|
|
|
<div className="clearfix">
|
|
|
- <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 10 }} label="顾问照片">
|
|
|
+ <FormItem className="picWidth" labelCol={{ span: 9 }} wrapperCol={{ span: 10 }} label="顾问照片">
|
|
|
<Upload
|
|
|
className="demandDetailShow-upload"
|
|
|
listType="picture-card"
|
|
@@ -879,7 +915,7 @@ const Expert = React.createClass({
|
|
|
</Modal>
|
|
|
</FormItem>
|
|
|
{theData.consultantType == '4' && (
|
|
|
- <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 10 }} label="律师职业资格证">
|
|
|
+ <FormItem className="picWidth" labelCol={{ span: 9 }} wrapperCol={{ span: 10 }} label="律师职业资格证">
|
|
|
<Upload
|
|
|
className="demandDetailShow-upload"
|
|
|
listType="picture-card"
|