|
@@ -359,12 +359,13 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
labelCol: { span: 8 },
|
|
labelCol: { span: 8 },
|
|
wrapperCol: { span: 14 },
|
|
wrapperCol: { span: 14 },
|
|
};
|
|
};
|
|
- const selectOption=[];
|
|
|
|
- intentionalService.map(function (item) {
|
|
|
|
- selectOption.push(
|
|
|
|
- <Select.Option key={item.id}>{item.name}</Select.Option>
|
|
|
|
- )
|
|
|
|
- });
|
|
|
|
|
|
+ //意向服务多选
|
|
|
|
+// const selectOption=[];
|
|
|
|
+// intentionalService.map(function (item) {
|
|
|
|
+// selectOption.push(
|
|
|
|
+// <Select.Option key={item.id}>{item.name}</Select.Option>
|
|
|
|
+// )
|
|
|
|
+// });
|
|
return (
|
|
return (
|
|
<Form horizontal onSubmit={this.handleSubmit} id="demand-form">
|
|
<Form horizontal onSubmit={this.handleSubmit} id="demand-form">
|
|
<Spin spinning={this.state.loading}>
|
|
<Spin spinning={this.state.loading}>
|
|
@@ -412,41 +413,21 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
})(
|
|
})(
|
|
<Input />
|
|
<Input />
|
|
)}
|
|
)}
|
|
- </FormItem>
|
|
|
|
- {/*<FormItem className="half-item"
|
|
|
|
- {...formItemLayout}
|
|
|
|
- label="意向服务" >
|
|
|
|
- {getFieldDecorator('companyIntention', {
|
|
|
|
- rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem className="half-item"
|
|
|
|
+ {...formItemLayout}
|
|
|
|
+ label="意向服务" >
|
|
|
|
+ {getFieldDecorator('companyIntention', {
|
|
initialValue: theData.companyIntention
|
|
initialValue: theData.companyIntention
|
|
})(
|
|
})(
|
|
- <Select placeholder="选择服务类型" >
|
|
|
|
|
|
+ <Select placeholder="选择意向服务" style={{ width: 160 }} >
|
|
{
|
|
{
|
|
intentionalService.map(function (item) {
|
|
intentionalService.map(function (item) {
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
})
|
|
})
|
|
}
|
|
}
|
|
</Select>
|
|
</Select>
|
|
- )}
|
|
|
|
- </FormItem>*/}
|
|
|
|
- <FormItem className="half-item"
|
|
|
|
- {...formItemLayout}
|
|
|
|
- label="意向服务" >
|
|
|
|
- <Select
|
|
|
|
- multiple
|
|
|
|
- style={{ width: '80%' }}
|
|
|
|
- placeholder="选择服务类型"
|
|
|
|
- filterOption={(input, option) => { return option.props.children.indexOf(input) >= 0 }}
|
|
|
|
- value={this.state.companyIntention}
|
|
|
|
- onChange={(pids) => {
|
|
|
|
- this.state.companyIntention = pids;
|
|
|
|
- this.setState({
|
|
|
|
- companyIntention: this.state.companyIntention
|
|
|
|
- })
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- {selectOption}
|
|
|
|
- </Select>
|
|
|
|
|
|
+ )}
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
@@ -611,16 +592,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
<div className="clearfix" style={{paddingLeft:"200px",marginBottom:"20px"}}>
|
|
<div className="clearfix" style={{paddingLeft:"200px",marginBottom:"20px"}}>
|
|
<Button className="set-submit" type="primary" htmlType="submit" id="change_keep" style={{marginTop:"20px"}}>保存</Button>
|
|
<Button className="set-submit" type="primary" htmlType="submit" id="change_keep" style={{marginTop:"20px"}}>保存</Button>
|
|
<Button className="set-submit" type="ghost" onClick={this.props.closeDesc} id='change_rem' style={{marginTop:"20px"}}>取消</Button>
|
|
<Button className="set-submit" type="ghost" onClick={this.props.closeDesc} id='change_rem' style={{marginTop:"20px"}}>取消</Button>
|
|
- </div>
|
|
|
|
-
|
|
|
|
- {/* <FormItem wrapperCol={{ span: 12, offset: 4 }}>
|
|
|
|
- {theData.auditStatus == 2 ? <Button className="set-submit" type="primary" htmlType="submit">保存</Button> : <span></span>}
|
|
|
|
- {theData.auditStatus == 3 ? <Button className="set-submit" type="primary" onClick={() => { this.modifyBroker(); }}>保存</Button> : <span></span>}
|
|
|
|
- <Button className="set-submit" type="ghost" onClick={this.props.closeDesc}>取消</Button> */}
|
|
|
|
- {/*{window.showAuditStatus ? <Button className="set-submit" loading={this.state.buttonLoading} type="primary" onClick={this.buildMatchList}>生成匹配列表</Button> : <span></span>}*/}
|
|
|
|
- {/* </FormItem>
|
|
|
|
- */}
|
|
|
|
-
|
|
|
|
|
|
+ </div>
|
|
</Spin>
|
|
</Spin>
|
|
</Form >
|
|
</Form >
|
|
)
|
|
)
|
|
@@ -814,14 +786,15 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
});
|
|
});
|
|
theMaturityPictureUrl = picArr.join(",");
|
|
theMaturityPictureUrl = picArr.join(",");
|
|
};
|
|
};
|
|
- let companyMore = [];
|
|
|
|
- if (values.companyIntention.length) {
|
|
|
|
- let companyList = [];
|
|
|
|
- values.companyIntention.map(function (item) {
|
|
|
|
- companyList.push(item);
|
|
|
|
- });
|
|
|
|
- companyMore = companyList.join(",");
|
|
|
|
- };
|
|
|
|
|
|
+ //意向服务多选
|
|
|
|
+// let companyMore = [];
|
|
|
|
+// if (values.companyIntention.length) {
|
|
|
|
+// let companyList = [];
|
|
|
|
+// values.companyIntention.map(function (item) {
|
|
|
|
+// companyList.push(item);
|
|
|
|
+// });
|
|
|
|
+// companyMore = companyList.join(",");
|
|
|
|
+// };
|
|
console.log(values.companyIntention)
|
|
console.log(values.companyIntention)
|
|
if (!err) {
|
|
if (!err) {
|
|
this.setState({
|
|
this.setState({
|
|
@@ -840,7 +813,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
|
|
|
companyName: values.companyName,//公司名称 1
|
|
companyName: values.companyName,//公司名称 1
|
|
companyIndustry: values.companyIndustry,//公司行业
|
|
companyIndustry: values.companyIndustry,//公司行业
|
|
- companyIntention: companyMore,//公司意向1
|
|
|
|
|
|
+ companyIntention: values.companyIntention,//公司意向1
|
|
tag: values.tag,
|
|
tag: values.tag,
|
|
locationProvince: values.locationProvince,//省份1
|
|
locationProvince: values.locationProvince,//省份1
|
|
adress: values.adress,//详细地址1
|
|
adress: values.adress,//详细地址1
|
|
@@ -922,7 +895,8 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
})(
|
|
})(
|
|
<Select placeholder="选择客户类型" style={{ width: 160 }} >
|
|
<Select placeholder="选择客户类型" style={{ width: 160 }} >
|
|
<Select.Option value="0" >个人客户</Select.Option>
|
|
<Select.Option value="0" >个人客户</Select.Option>
|
|
- <Select.Option value="1" >公司客户</Select.Option>
|
|
|
|
|
|
+ <Select.Option value="1" >公司客户</Select.Option>
|
|
|
|
+ <Select.Option value="2" >团体单位</Select.Option>
|
|
</Select>
|
|
</Select>
|
|
)}
|
|
)}
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -938,21 +912,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
<DatePicker />
|
|
<DatePicker />
|
|
)}
|
|
)}
|
|
|
|
|
|
- </FormItem>
|
|
|
|
- {/* <FormItem className="half-item" style={{marginLeft:'-160px'}}
|
|
|
|
- {...formItemLayout}
|
|
|
|
- label="" >
|
|
|
|
-
|
|
|
|
- </FormItem> */}
|
|
|
|
- {/* <FormItem className="half-item"
|
|
|
|
- {...formItemLayout}
|
|
|
|
- label="跟单人" >
|
|
|
|
- {getFieldDecorator('ownerId', {
|
|
|
|
- initialValue: theData.ownerId
|
|
|
|
- })(
|
|
|
|
- <Input />
|
|
|
|
- )}
|
|
|
|
- </FormItem> */}
|
|
|
|
|
|
+ </FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>公司资料:</div>
|
|
<div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>公司资料:</div>
|
|
<div>
|
|
<div>
|
|
@@ -1053,27 +1013,16 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
label="意向服务" >
|
|
label="意向服务" >
|
|
{getFieldDecorator('companyIntention', {
|
|
{getFieldDecorator('companyIntention', {
|
|
rules: [{ required: true, message: '此项为必填项!' }],
|
|
rules: [{ required: true, message: '此项为必填项!' }],
|
|
-
|
|
|
|
|
|
+ initialValue: theData.companyIntention
|
|
})(
|
|
})(
|
|
- <Select
|
|
|
|
- multiple
|
|
|
|
- style={{width:'600px'}}
|
|
|
|
- placeholder="选择服务类型"
|
|
|
|
- filterOption={(input, option) => { return option.props.children.indexOf(input) >= 0 }}
|
|
|
|
- value={this.state.companyIntention}
|
|
|
|
- onChange={(pids) => {
|
|
|
|
- this.state.companyIntention = pids;
|
|
|
|
- this.setState({
|
|
|
|
- companyIntention: this.state.companyIntention
|
|
|
|
- })
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- {
|
|
|
|
- intentionalService.map(function (item) {
|
|
|
|
- return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- </Select>)}
|
|
|
|
|
|
+ <Select placeholder="选择意向服务" style={{ width: 160 }} >
|
|
|
|
+ {
|
|
|
|
+ intentionalService.map(function (item) {
|
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ </Select>
|
|
|
|
+ )}
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|