|
@@ -338,7 +338,6 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
thedata = {};
|
|
|
};
|
|
|
var contactIds=[];
|
|
|
- //for (let item in data.data) {
|
|
|
for(var i=0;i<data.data.length;i++){
|
|
|
let theData = data.data[i];
|
|
|
theArr.push(
|
|
@@ -362,6 +361,15 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
//编辑部门,保存
|
|
|
edithandleSubmit(e){
|
|
|
e.preventDefault();
|
|
|
+ let offsetText;
|
|
|
+ if(this.state.editOffset){
|
|
|
+ if(this.state.editOffset>10||this.state.editOffset<0){
|
|
|
+ message.warning('最低折扣请输入0到10之间的数字');
|
|
|
+ return false;
|
|
|
+ }else{
|
|
|
+ offsetText=this.state.editOffset/10;
|
|
|
+ }
|
|
|
+ }
|
|
|
this.props.form.validateFields((err, values) => {
|
|
|
let theorgCodeUrl = [];
|
|
|
if(this.state.orgCodeUrl.length) {
|
|
@@ -414,7 +422,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
cid:superText,//项目业务品类
|
|
|
bname:this.state.editName,//业务项目名称
|
|
|
price:this.state.editPrice,//市场价
|
|
|
- offset:this.state.editOffset,//最低折扣
|
|
|
+ offset:offsetText,//最低折扣
|
|
|
activityPrice:this.state.editActivityPrice,//活动价
|
|
|
activityFlag:this.state.editActivityFlag,//活动生效标识
|
|
|
memberPrice:this.state.editMemberPrice,//项目ID
|
|
@@ -509,8 +517,8 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
editIntroduce:thisdata.introduce,//服务内容
|
|
|
editValueEffect:thisdata.valueEffect,//价值及作用
|
|
|
editClientSize:thisdata.clientSize,//基本条件
|
|
|
- orgCodeUrl: thisdata.minLogo ? splitUrl(thisData.minLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
- cditCompanyLogoUrl: thisdata.maxLogo ? splitUrl(thisData.maxLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
+ orgCodeUrl: thisdata.minLogo ? splitUrl(thisdata.minLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
+ cditCompanyLogoUrl: thisdata.maxLogo ? splitUrl(thisdata.maxLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
|
|
|
});
|
|
|
};
|
|
@@ -534,8 +542,8 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
editIntroduce:thisdata.introduce,//服务内容
|
|
|
editValueEffect:thisdata.valueEffect,//价值及作用
|
|
|
editClientSize:thisdata.clientSize,//基本条件
|
|
|
- orgCodeUrl: thisdata.minLogo ? splitUrl(thisData.minLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
- companyLogoUrl: thisdata.maxLogo ? splitUrl(thisData.maxLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
+ orgCodeUrl: thisdata.minLogo ? splitUrl(thisdata.minLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
+ companyLogoUrl: thisdata.maxLogo ? splitUrl(thisdata.maxLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
editDataSource: theArr,
|
|
|
ProvinceCity:ProvinceCity,
|
|
|
});
|
|
@@ -1175,7 +1183,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
</div>
|
|
|
<FormItem wrapperCol={{ span: 12, offset: 7 }}>
|
|
|
<Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
- <Button className="set-submit" type="ghost" onClick={this.formathandleCancel} style={{marginLeft:'50px'}}>取消</Button>
|
|
|
+ <Button className="set-submit" type="ghost" onClick={this.formathandleCancel} style={{marginLeft:'15px'}}>取消</Button>
|
|
|
</FormItem>
|
|
|
</Spin>
|
|
|
</Form >
|