|
@@ -446,7 +446,8 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
activityPrice:this.state.editActivityPrice,//活动价
|
|
|
activityFlag:this.state.editActivityFlag,//活动生效标识
|
|
|
memberPrice:this.state.editMemberPrice,//项目ID
|
|
|
- status:this.state.editStatus,//项目状态
|
|
|
+ status:this.state.editStatus,//项目状态
|
|
|
+ type: this.state.typeStatus,//项目分类
|
|
|
country:isCountry,//是否全国
|
|
|
province:pro?pro:'',//省
|
|
|
city:city?city:'',//市
|
|
@@ -524,7 +525,14 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
ProvinceCity.push(parseInt(thisdata.city));
|
|
|
ProvinceCity.push(parseInt(thisdata.district));
|
|
|
}
|
|
|
-
|
|
|
+ let str = ""
|
|
|
+ if(thisdata.type == 0) {
|
|
|
+ str = "通用"
|
|
|
+ }else if(thisdata.type == 1) {
|
|
|
+ str = "专利"
|
|
|
+ }else if(thisdata.type == 2) {
|
|
|
+ str = "软著"
|
|
|
+ }
|
|
|
theArr.push({
|
|
|
editId: thisdata.id,//每一条记录的ID
|
|
|
editName:thisdata.bname,//项目名称
|
|
@@ -540,7 +548,9 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
editOffset: thisdata.offset,//最低折扣
|
|
|
editMemberPrice: thisdata.memberPrice,//会员价
|
|
|
editActivityFlag:thisdata.activityFlag,//活动生效标识
|
|
|
- editStatus:thisdata.status,//品类状态
|
|
|
+ editStatus:thisdata.status,//品类状态
|
|
|
+ typeStr: str,
|
|
|
+ typeStatus: thisdata.type,
|
|
|
editCreateId:thisdata.createName,//创建人
|
|
|
editTime:thisdata.createTimeFormattedDate,//创建时间
|
|
|
editIntroduce:thisdata.introduce,//服务内容
|
|
@@ -551,34 +561,56 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
orgCodeUrl: thisdata.minLogo ? splitUrl(thisdata.minLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
cditCompanyLogoUrl: thisdata.maxLogo ? splitUrl(thisdata.maxLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
});
|
|
|
- };
|
|
|
+ };
|
|
|
+ let str = ""
|
|
|
+ if(thisdata.type == 0) {
|
|
|
+ str = "通用"
|
|
|
+ }else if(thisdata.type == 1) {
|
|
|
+ str = "专利"
|
|
|
+ }else if(thisdata.type == 2) {
|
|
|
+ str = "软著"
|
|
|
+ }
|
|
|
this.setState({
|
|
|
- editId: thisdata.id,//每一条记录的ID
|
|
|
- editName:thisdata.bname,//项目名称
|
|
|
- editCname: thisdata.cname,//项目分类
|
|
|
- editCid: thisdata.cid,//项目分类
|
|
|
- editCountry: thisdata.country,//是否全国
|
|
|
- editProvince: thisdata.province,//省
|
|
|
- editCity: thisdata.city,//市
|
|
|
- editDistrict: thisdata.district,//区
|
|
|
- editPrice: thisdata.price,//市场价
|
|
|
- firstPayment:thisdata.firstPayment,
|
|
|
- editActivityPrice: thisdata.activityPrice,//活动价
|
|
|
- editOffset: thisdata.offset,//最低折扣
|
|
|
- editMemberPrice: thisdata.memberPrice,//会员价
|
|
|
- editActivityFlag:thisdata.activityFlag,//活动生效标识
|
|
|
- editStatus:thisdata.status,//品类状态
|
|
|
- editCreateId:thisdata.createName,//创建人
|
|
|
- editTime:thisdata.createTimeFormattedDate,//创建时间
|
|
|
- editIntroduce:thisdata.introduce,//服务内容
|
|
|
- editProjectUrl:thisdata.projectUrl,//项目地址
|
|
|
- editValueEffect:thisdata.valueEffect,//价值及作用
|
|
|
- editClientSize:thisdata.clientSize,//基本条件
|
|
|
- editBoutique:thisdata.boutique,//是否精品
|
|
|
- orgCodeUrl: thisdata.minLogo ? splitUrl(thisdata.minLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
- companyLogoUrl: thisdata.maxLogo ? splitUrl(thisdata.maxLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
- editDataSource: theArr,
|
|
|
- ProvinceCity:ProvinceCity,
|
|
|
+ editId: thisdata.id, //每一条记录的ID
|
|
|
+ editName: thisdata.bname, //项目名称
|
|
|
+ editCname: thisdata.cname, //项目分类
|
|
|
+ editCid: thisdata.cid, //项目分类
|
|
|
+ editCountry: thisdata.country, //是否全国
|
|
|
+ editProvince: thisdata.province, //省
|
|
|
+ editCity: thisdata.city, //市
|
|
|
+ editDistrict: thisdata.district, //区
|
|
|
+ editPrice: thisdata.price, //市场价
|
|
|
+ firstPayment: thisdata.firstPayment,
|
|
|
+ editActivityPrice: thisdata.activityPrice, //活动价
|
|
|
+ editOffset: thisdata.offset, //最低折扣
|
|
|
+ editMemberPrice: thisdata.memberPrice, //会员价
|
|
|
+ editActivityFlag: thisdata.activityFlag, //活动生效标识
|
|
|
+ editStatus: thisdata.status, //品类状态
|
|
|
+ typeStr: str,
|
|
|
+ typeStatus: thisdata.type,
|
|
|
+ editCreateId: thisdata.createName, //创建人
|
|
|
+ editTime: thisdata.createTimeFormattedDate, //创建时间
|
|
|
+ editIntroduce: thisdata.introduce, //服务内容
|
|
|
+ editProjectUrl: thisdata.projectUrl, //项目地址
|
|
|
+ editValueEffect: thisdata.valueEffect, //价值及作用
|
|
|
+ editClientSize: thisdata.clientSize, //基本条件
|
|
|
+ editBoutique: thisdata.boutique, //是否精品
|
|
|
+ orgCodeUrl: thisdata.minLogo
|
|
|
+ ? splitUrl(
|
|
|
+ thisdata.minLogo,
|
|
|
+ ",",
|
|
|
+ globalConfig.avatarHost + "/upload"
|
|
|
+ )
|
|
|
+ : [],
|
|
|
+ companyLogoUrl: thisdata.maxLogo
|
|
|
+ ? splitUrl(
|
|
|
+ thisdata.maxLogo,
|
|
|
+ ",",
|
|
|
+ globalConfig.avatarHost + "/upload"
|
|
|
+ )
|
|
|
+ : [],
|
|
|
+ editDataSource: theArr,
|
|
|
+ ProvinceCity: ProvinceCity
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
@@ -1493,6 +1525,30 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
}
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
+ label="项目分类"
|
|
|
+ >
|
|
|
+ <Select placeholder="项目分类" value={this.state.typeStr} style={{width:'94%'}}
|
|
|
+ onChange={(e)=>{
|
|
|
+ let str = ""
|
|
|
+ if(e == 0) {
|
|
|
+ str = "通用"
|
|
|
+ }else if(e == 1) {
|
|
|
+ str = "专利"
|
|
|
+ }else if(e == 2) {
|
|
|
+ str = "软著"
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ typeStatus: e,
|
|
|
+ typeStr: str
|
|
|
+ });}}>
|
|
|
+ <Select.Option key={0} >通用</Select.Option>
|
|
|
+ <Select.Option key={1} >专利</Select.Option>
|
|
|
+ <Select.Option key={2} >软著</Select.Option>
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|