|
@@ -125,8 +125,9 @@ const DemandDetailForm = Form.create()(
|
|
|
message.warning('请输入正确的市场价');
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.state.keyword) {
|
|
|
- message.warning('请输入关键字');
|
|
|
+
|
|
|
+ if(this.state.summary&&(this.state.summary).length>40){
|
|
|
+ message.warning('项目营销说明字数不得超过40个字。');
|
|
|
return;
|
|
|
}
|
|
|
if(this.state.advertisement&&(this.state.advertisement).length>30){
|
|
@@ -173,6 +174,7 @@ const DemandDetailForm = Form.create()(
|
|
|
categoryId: this.state.categoryId[1], //业务品类
|
|
|
price: this.state.price, //市场价
|
|
|
advertisement:this.state.advertisement,//项目营销说明
|
|
|
+ summary:this.state.summary,//项目简介
|
|
|
activityPrice: this.state.activityPrice ? this.state.activityPrice : '0', //最低折扣
|
|
|
memberPrice: this.state.memberPrice ? this.state.memberPrice : '0', //会员价
|
|
|
offset: this.state.offset ? this.state.offset : '0',
|
|
@@ -242,14 +244,15 @@ const DemandDetailForm = Form.create()(
|
|
|
this.setState({
|
|
|
id: thisdata.id, //业务名称
|
|
|
name: thisdata.name, //业务名称
|
|
|
- keyword:this.state.keyword, //关键字
|
|
|
+ keyword:thisdata.keyword, //关键字
|
|
|
tagTxt:tagTxt.join(' - '),
|
|
|
tagArr:tagArr,
|
|
|
categoryId: categoryIdArr, //业务品类
|
|
|
number: thisdata.number,
|
|
|
auditInfo:thisdata.auditInfo,
|
|
|
price: thisdata.price, //市场价
|
|
|
- advertisement:thisdata.advertisement,
|
|
|
+ advertisement:thisdata.advertisement,//项目营销说明
|
|
|
+ summary:thisdata.summary,//项目简介
|
|
|
activityPrice: thisdata.activityPrice ? thisdata.activityPrice : '', //最低折扣
|
|
|
memberPrice: thisdata.memberPrice ? thisdata.memberPrice : '', //会员价
|
|
|
offset: thisdata.offset ? thisdata.offset : '',
|
|
@@ -371,6 +374,10 @@ const DemandDetailForm = Form.create()(
|
|
|
message.warning('请输入正确的市场价');
|
|
|
return;
|
|
|
}
|
|
|
+ if(this.state.summary&&(this.state.summary).length>40){
|
|
|
+ message.warning('项目营销说明字数不得超过40个字。');
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(this.state.advertisement&&(this.state.advertisement).length>30){
|
|
|
message.warning('项目营销说明字数不得超过30个字.');
|
|
|
return;
|
|
@@ -410,6 +417,7 @@ const DemandDetailForm = Form.create()(
|
|
|
categoryId: this.state.categoryId[1], //业务品类
|
|
|
price: this.state.price, //市场价
|
|
|
advertisement:this.state.advertisement,//项目营销说明
|
|
|
+ summary:this.state.summary,//项目简介
|
|
|
activityPrice: this.state.activityPrice ? this.state.activityPrice : '0', //最低折扣
|
|
|
memberPrice: this.state.memberPrice ? this.state.memberPrice : '0', //会员价
|
|
|
offset: this.state.offset ? this.state.offset : '0',
|
|
@@ -449,6 +457,7 @@ const DemandDetailForm = Form.create()(
|
|
|
this.loadData(nextProps.data.id);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
render() {
|
|
|
const FormItem = Form.Item;
|
|
@@ -644,7 +653,7 @@ const DemandDetailForm = Form.create()(
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label={
|
|
|
<span>
|
|
|
- <strong style={{ color: 'red' }}>*</strong>关键字
|
|
|
+ 关键字
|
|
|
</span>
|
|
|
}
|
|
|
>
|
|
@@ -693,6 +702,19 @@ const DemandDetailForm = Form.create()(
|
|
|
</FormItem>:''}
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
+ <FormItem labelCol={{ span: 4 }} wrapperCol={{ span: 12 }} label="项目简介">
|
|
|
+ <Input
|
|
|
+ type="textarea"
|
|
|
+ rows={4}
|
|
|
+ placeholder="请输入项目简介"
|
|
|
+ value={this.state.summary}
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ summary: e.target.value });
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
<FormItem labelCol={{ span: 4 }} wrapperCol={{ span: 12 }} label="项目营销说明">
|
|
|
<Input
|
|
|
type="textarea"
|
|
@@ -705,7 +727,7 @@ const DemandDetailForm = Form.create()(
|
|
|
/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <div className="clearfix">
|
|
|
+ {/*<div className="clearfix">
|
|
|
<FormItem labelCol={{ span: 4 }} wrapperCol={{ span: 12 }} label="业务项目价值及作用">
|
|
|
<Input
|
|
|
type="textarea"
|
|
@@ -730,10 +752,10 @@ const DemandDetailForm = Form.create()(
|
|
|
}}
|
|
|
/>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>*/}
|
|
|
<div className="clearfix">
|
|
|
<FormItem labelCol={{ span: 4 }} wrapperCol={{ span: 16 }} label='业务项目服务内容'>
|
|
|
- <Editors textContent={this.state.introduce}
|
|
|
+ <Editors textContent={this.state.introduce} placeholder="业务项目客户基本条件"
|
|
|
uploadUrl={'/api/user/demand/uploadPicture'}
|
|
|
uploadSign={'demand_picture'}
|
|
|
handleRichText={(value) => { this.state.introduce = value; }}
|