|
@@ -405,7 +405,7 @@ const DemandDetailShow = Form.create()(React.createClass({
|
|
|
</div>
|
|
|
</FormItem>
|
|
|
</div> :<div></div>}
|
|
|
- {this.state.switchValue ? <div>
|
|
|
+ <div>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="雇主名称" >
|
|
@@ -418,6 +418,16 @@ const DemandDetailShow = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
+ label="需求联系人" >
|
|
|
+ <span>{theData.contacts}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="需求联系人电话" >
|
|
|
+ <span>{theData.contactMobile}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="电子邮箱" >
|
|
|
<span>{theData.employerContactsMailbox}</span>
|
|
|
</FormItem>
|
|
@@ -426,36 +436,34 @@ const DemandDetailShow = Form.create()(React.createClass({
|
|
|
label="通讯地址" >
|
|
|
<span>{theData.employerAddress}</span>
|
|
|
</FormItem>
|
|
|
- </div> : <div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="雇主名称" >
|
|
|
- <span>{theData.username}</span>
|
|
|
- </FormItem>
|
|
|
- {this.props.data.dataCategory ? <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="联系人" >
|
|
|
- <span>{this.state.contactsObj[theData.contacts]}</span>
|
|
|
- </FormItem> : <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="联系人" >
|
|
|
- <span>{theData.contactsName}</span>
|
|
|
- </FormItem>}
|
|
|
- </div>}
|
|
|
- <div className="clearfix">
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="负责人" >
|
|
|
<span>{this.props.techBrodersObj[theData.techBrokerId]}</span>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div className="clearfix">
|
|
|
-
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="发布时间" >
|
|
|
<span>{theData.releaseDateFormattedDate}</span>
|
|
|
</FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="信息来源" >
|
|
|
+ {(() => {
|
|
|
+ switch (theData.infoSources) {
|
|
|
+ case "0":
|
|
|
+ return <span>平台采集</span>;
|
|
|
+ case "1":
|
|
|
+ return <span>客户发布</span>;
|
|
|
+ case "2":
|
|
|
+ return <span>批量导入</span>;
|
|
|
+ case "3":
|
|
|
+ return <span>三方对接</span>;
|
|
|
+ }
|
|
|
+ })()}
|
|
|
+ </FormItem>
|
|
|
</div>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
@@ -499,24 +507,7 @@ const DemandDetailShow = Form.create()(React.createClass({
|
|
|
})()}
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="信息来源" >
|
|
|
- {(() => {
|
|
|
- switch (theData.infoSources) {
|
|
|
- case "0":
|
|
|
- return <span>平台采集</span>;
|
|
|
- case "1":
|
|
|
- return <span>客户发布</span>;
|
|
|
- case "2":
|
|
|
- return <span>批量导入</span>;
|
|
|
- case "3":
|
|
|
- return <span>三方对接</span>;
|
|
|
- }
|
|
|
- })()}
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
+
|
|
|
<FormItem
|
|
|
labelCol={{ span: 3 }}
|
|
|
wrapperCol={{ span: 20 }}
|
|
@@ -867,17 +858,19 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
costEscrow: values.costEscrow,
|
|
|
budgetCost: values.budgetCost,
|
|
|
//
|
|
|
- switchSign: this.state.switchValue ? 1 : 0,
|
|
|
+ switchSign: 1,
|
|
|
//
|
|
|
employerId: !this.state.switchValue ? (this.state.dataSourceObj ? this.state.dataSourceObj[values.employerId] : this.props.data.employerId) : null,
|
|
|
- contacts: !this.state.switchValue ? values.contacts : null,
|
|
|
+
|
|
|
//自定义
|
|
|
- employerName: this.state.switchValue ? values.employerName : null,
|
|
|
- urgentDays: this.state.switchValue ? values.urgentDays : null,
|
|
|
- urgentMoney: this.state.switchValue ? values.urgentMoney : null,
|
|
|
- employerAddress: this.state.switchValue ? values.employerAddress : null,
|
|
|
- employerContactsMobile: this.state.switchValue ? values.employerContactsMobile : null,
|
|
|
- employerContactsMailbox: this.state.switchValue ? values.employerContactsMailbox : null,
|
|
|
+ contacts:values.contacts,
|
|
|
+ contactMobile:values.contactMobile,
|
|
|
+ employerName:values.employerName ,
|
|
|
+ urgentDays:values.urgentDays,
|
|
|
+ urgentMoney:values.urgentMoney ,
|
|
|
+ employerAddress:values.employerAddress,
|
|
|
+ employerContactsMobile:values.employerContactsMobile,
|
|
|
+ employerContactsMailbox:values.employerContactsMailbox ,
|
|
|
//
|
|
|
releaseStatus: values.releaseStatus,
|
|
|
principalId: values.principalId,
|
|
@@ -1042,11 +1035,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
|
|
|
</div> :<div></div>}
|
|
|
- <FormItem style={{ marginBottom: '10px' }} labelCol={{ span: 3 }}
|
|
|
- label="自定义雇主" >
|
|
|
- <Switch checked={this.state.switchValue} onChange={(e) => { this.setState({ switchValue: e }); }} />
|
|
|
- </FormItem>
|
|
|
- {this.state.switchValue ? <div className="clearfix" >
|
|
|
+ <div className="clearfix" >
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="雇主名称" >
|
|
@@ -1058,7 +1047,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="联系电话" >
|
|
|
+ label="雇主电话" >
|
|
|
{getFieldDecorator('employerContactsMobile', {
|
|
|
initialValue: theData.employerContactsMobile
|
|
|
})(
|
|
@@ -1067,6 +1056,24 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
+ label="需求联系人" >
|
|
|
+ {getFieldDecorator('contacts', {
|
|
|
+ initialValue: theData.contacts
|
|
|
+ })(
|
|
|
+ <Input />
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="需求联系人电话" >
|
|
|
+ {getFieldDecorator('contactMobile', {
|
|
|
+ initialValue: theData.contactMobile
|
|
|
+ })(
|
|
|
+ <Input />
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="电子邮箱" >
|
|
|
{getFieldDecorator('employerContactsMailbox', {
|
|
|
initialValue: theData.employerContactsMailbox
|
|
@@ -1083,39 +1090,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
<Input />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- </div> : <div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="雇主名称" >
|
|
|
- {getFieldDecorator('employerId', {
|
|
|
- initialValue: theData.username || ''
|
|
|
- })(
|
|
|
- <AutoComplete
|
|
|
- dataSource={this.state.dataSource}
|
|
|
- style={{ width: 200 }}
|
|
|
- onSearch={this.state.therottleSearch}
|
|
|
- placeholder="雇主名称"
|
|
|
- onSelect={(e) => {
|
|
|
- this.getContactsList(this.state.dataSourceObj[e]);
|
|
|
- }} />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- {this.props.detailApiUrl.indexOf('org') >= 0 ? <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="联系人" >
|
|
|
- {getFieldDecorator('contacts', {
|
|
|
- initialValue: theData.contacts
|
|
|
- })(
|
|
|
- <Select style={{ width: 260 }}
|
|
|
- placeholder="请选择联系人"
|
|
|
- notFoundContent="未获取到联系人列表"
|
|
|
- showSearch
|
|
|
- filterOption={companySearch}>
|
|
|
- {this.state.contactsOption}
|
|
|
- </Select>
|
|
|
- )}
|
|
|
- </FormItem> : <div></div>}
|
|
|
- </div>}
|
|
|
+ </div>
|
|
|
<div className="clearfix">
|
|
|
{theData.techBrokerId ? <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
@@ -1171,11 +1146,10 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
visible={this.props.visible} />
|
|
|
</FormItem>
|
|
|
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 3 }}
|
|
|
- wrapperCol={{ span: 20 }}
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="需求类别" >
|
|
|
- <Select placeholder="选择需求类别" style={{ width: 120 }}
|
|
|
+ <Select placeholder="选择需求类别"
|
|
|
value={this.state.dataCategory}
|
|
|
onChange={(e) => { this.setState({ dataCategory: e }) }}>
|
|
|
<Select.Option value="0" >个人</Select.Option>
|
|
@@ -1183,15 +1157,14 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
</Select>
|
|
|
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 3 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
label="行业类别" >
|
|
|
{getFieldDecorator('industryCategory', {
|
|
|
rules: [{ type: 'array', required: true, message: '此项为必填项!' }],
|
|
|
initialValue: [theData.industryCategoryA, theData.industryCategoryB]
|
|
|
})(
|
|
|
- <Cascader style={{ width: 300 }} options={IndustryObject} placeholder="请选择一个行业" />
|
|
|
+ <Cascader options={IndustryObject} placeholder="请选择一个行业" />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
@@ -1222,7 +1195,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
initialValue: theData.demandType
|
|
|
})(
|
|
|
- <Select style={{ width: 160 }} placeholder="请选择需求类型">
|
|
|
+ <Select placeholder="请选择需求类型">
|
|
|
{this.props.demandTypeOption}
|
|
|
</Select>
|
|
|
)}
|