|
@@ -35,7 +35,7 @@ const PicturesWall = React.createClass({
|
|
|
this.props.fileList(fileList);
|
|
|
},
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
- this.state.fileList = nextProps.pictureUrl;
|
|
|
+ this.state.fileList = nextProps.pictureUrl;
|
|
|
},
|
|
|
render() {
|
|
|
const { previewVisible, previewImage, fileList } = this.state;
|
|
@@ -70,7 +70,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
loadData(pageNo, apiUrl) {
|
|
|
this.state.data = [];
|
|
|
this.setState({
|
|
|
- loading: true,
|
|
|
+ listLoading: true,
|
|
|
ispage:pageNo,
|
|
|
});
|
|
|
let nameText=this.state.SuperArr;
|
|
@@ -148,7 +148,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
arrProvinceCity:ProvinceCity,
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
this.state.pagination.current = data.data.pageNo;
|
|
|
this.state.pagination.total = data.data.totalCount;
|
|
|
};
|
|
@@ -159,7 +159,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.setState({
|
|
|
- loading: false
|
|
|
+ listLoading: false
|
|
|
});
|
|
|
}.bind(this));
|
|
|
},
|
|
@@ -333,7 +333,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
this.selectSuperId();
|
|
|
},
|
|
|
//获取上级品类
|
|
|
- selectSuperId() {
|
|
|
+ selectSuperId() {
|
|
|
this.state.data = []
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -343,15 +343,15 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
data:{
|
|
|
flag:0,
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function (data) {
|
|
|
let theArr = [];
|
|
|
let thedata=data.data;
|
|
|
if (!thedata) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- thedata = {};
|
|
|
- };
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ };
|
|
|
var contactIds=[];
|
|
|
for(var i=0;i<data.data.length;i++){
|
|
|
let theData = data.data[i];
|
|
@@ -359,12 +359,12 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Select.Option value={i.toString()} key={theData.cname}>{theData.cname}</Select.Option>
|
|
|
);
|
|
|
};
|
|
|
- this.setState({
|
|
|
+ this.setState({
|
|
|
SuperArr:thedata,
|
|
|
- contactsOption: theArr,
|
|
|
+ contactsOption: theArr,
|
|
|
orderStatusOptions:data.data,
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.loadData(this.state.ispage);
|
|
@@ -375,7 +375,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
},
|
|
|
//编辑部门,保存
|
|
|
edithandleSubmit(e){
|
|
|
- e.preventDefault();
|
|
|
+ e.preventDefault();
|
|
|
let offsetText;
|
|
|
if(this.state.editOffset){
|
|
|
if(this.state.editOffset>10||this.state.editOffset<0){
|
|
@@ -406,7 +406,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
});
|
|
|
thecompanyLogoUrl = picArr.join(",");
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
if(!err) {
|
|
|
this.setState({
|
|
|
loading: true
|
|
@@ -448,25 +448,25 @@ 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,//项目状态
|
|
|
country:isCountry,//是否全国
|
|
|
province:pro?pro:'',//省
|
|
|
city:city?city:'',//市
|
|
|
district:dis?dis:'',//区
|
|
|
minLogo:theorgCodeUrl,
|
|
|
maxLogo:thecompanyLogoUrl,
|
|
|
- introduce:this.state.editIntroduce,//项目介绍
|
|
|
+ introduce:this.state.editIntroduce,//项目介绍
|
|
|
projectUrl:this.state.editProjectUrl,//项目地址
|
|
|
valueEffect:this.state.editValueEffect,//项目价值及作用
|
|
|
- clientSize:this.state.editClientSize,//项目基本条件
|
|
|
+ clientSize:this.state.editClientSize,//项目基本条件
|
|
|
boutique:this.state.editBoutique,
|
|
|
}
|
|
|
- }).done(function (data) {
|
|
|
+ }).done(function (data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success('保存成功!');
|
|
|
+ message.success('保存成功!');
|
|
|
this.edithandleCancel();
|
|
|
this.selectSuperId();
|
|
|
} else {
|
|
@@ -474,7 +474,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
}
|
|
|
}.bind(this));
|
|
|
}
|
|
|
- })
|
|
|
+ })
|
|
|
},
|
|
|
//规格列表整行点击
|
|
|
formatTableRowClick(record, index){
|
|
@@ -489,7 +489,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
formatActivityPrice:record.formatActivityPrice,//活动价
|
|
|
formatActivityFlag:record.formatActivityFlag,//活动生效标识
|
|
|
formatMemberPrice:record.formatMemberPrice,//会员价
|
|
|
- formatStatus:record.formatStatus.toString(),//项目状态
|
|
|
+ formatStatus:record.formatStatus.toString(),//项目状态
|
|
|
});
|
|
|
},
|
|
|
//项目列表整行点击
|
|
@@ -526,7 +526,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
ProvinceCity.push(parseInt(thisdata.city));
|
|
|
ProvinceCity.push(parseInt(thisdata.district));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
theArr.push({
|
|
|
editId: thisdata.id,//每一条记录的ID
|
|
|
editName:thisdata.bname,//项目名称
|
|
@@ -541,7 +541,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
editOffset: thisdata.offset,//最低折扣
|
|
|
editMemberPrice: thisdata.memberPrice,//会员价
|
|
|
editActivityFlag:thisdata.activityFlag,//活动生效标识
|
|
|
- editStatus:thisdata.status,//品类状态
|
|
|
+ editStatus:thisdata.status,//品类状态
|
|
|
editCreateId:thisdata.createName,//创建人
|
|
|
editTime:thisdata.createTimeFormattedDate,//创建时间
|
|
|
editIntroduce:thisdata.introduce,//服务内容
|
|
@@ -551,8 +551,8 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
editBoutique:thisdata.boutique,//是否精品
|
|
|
orgCodeUrl: thisdata.minLogo ? splitUrl(thisdata.minLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
cditCompanyLogoUrl: thisdata.maxLogo ? splitUrl(thisdata.maxLogo, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
-
|
|
|
- });
|
|
|
+
|
|
|
+ });
|
|
|
};
|
|
|
this.setState({
|
|
|
editId: thisdata.id,//每一条记录的ID
|
|
@@ -568,7 +568,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
editOffset: thisdata.offset,//最低折扣
|
|
|
editMemberPrice: thisdata.memberPrice,//会员价
|
|
|
editActivityFlag:thisdata.activityFlag,//活动生效标识
|
|
|
- editStatus:thisdata.status,//品类状态
|
|
|
+ editStatus:thisdata.status,//品类状态
|
|
|
editCreateId:thisdata.createName,//创建人
|
|
|
editTime:thisdata.createTimeFormattedDate,//创建时间
|
|
|
editIntroduce:thisdata.introduce,//服务内容
|
|
@@ -608,11 +608,11 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
offsetText=this.state.formatOffset;
|
|
|
}
|
|
|
}
|
|
|
- this.props.form.validateFields((err, values) => {
|
|
|
+ this.props.form.validateFields((err, values) => {
|
|
|
if (!err) {
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
- });
|
|
|
+ });
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -626,14 +626,14 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
activityPrice:this.state.formatActivityPrice,//活动价
|
|
|
activityFlag:this.state.formatActivityFlag,//活动生效标识
|
|
|
memberPrice:this.state.formatMemberPrice,//会员价
|
|
|
- status:this.state.formatStatus,//项目状态
|
|
|
+ status:this.state.formatStatus,//项目状态
|
|
|
}
|
|
|
- }).done(function (data) {
|
|
|
+ }).done(function (data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success('修改规格成功!');
|
|
|
+ message.success('修改规格成功!');
|
|
|
this.formatLoadData();
|
|
|
this.editformathandleCancel();
|
|
|
} else {
|
|
@@ -655,11 +655,11 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
offsetText=this.state.formatOffset;
|
|
|
}
|
|
|
}
|
|
|
- this.props.form.validateFields((err, values) => {
|
|
|
+ this.props.form.validateFields((err, values) => {
|
|
|
if (!err) {
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
- });
|
|
|
+ });
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -673,14 +673,14 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
activityPrice:this.state.formatActivityPrice,//活动价
|
|
|
activityFlag:this.state.formatActivityFlag,//活动生效标识
|
|
|
memberPrice:this.state.formatMemberPrice,//会员价
|
|
|
- status:this.state.formatStatus,//项目状态
|
|
|
+ status:this.state.formatStatus,//项目状态
|
|
|
}
|
|
|
- }).done(function (data) {
|
|
|
+ }).done(function (data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success('新增规格成功!');
|
|
|
+ message.success('新增规格成功!');
|
|
|
this.formathandleCancel();
|
|
|
this.formatLoadData();
|
|
|
} else {
|
|
@@ -692,7 +692,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
},
|
|
|
//新增一个项目,保存
|
|
|
addhandleSubmit(e){
|
|
|
- e.preventDefault();
|
|
|
+ e.preventDefault();
|
|
|
if(!this.state.categoryName){
|
|
|
message.warning('请输入项目名称');
|
|
|
return false;
|
|
@@ -719,11 +719,11 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
isCountry=1;
|
|
|
pro='';
|
|
|
}
|
|
|
- this.props.form.validateFields((err, values) => {
|
|
|
+ this.props.form.validateFields((err, values) => {
|
|
|
if (!err) {
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
- });
|
|
|
+ });
|
|
|
//上级组织字典
|
|
|
let nameText=this.state.SuperArr;
|
|
|
let superText=nameText[parseInt(this.state.addCid)].id;
|
|
@@ -741,12 +741,12 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
city:city,//市
|
|
|
district:dis,//区
|
|
|
}
|
|
|
- }).done(function (data) {
|
|
|
+ }).done(function (data) {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success('新增项目成功!');
|
|
|
+ message.success('新增项目成功!');
|
|
|
this.handleCancel();
|
|
|
this.selectSuperId();
|
|
|
} else {
|
|
@@ -918,18 +918,18 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
this.setState({ visible: false })
|
|
|
},
|
|
|
edithandleCancel(e) {
|
|
|
- this.setState({
|
|
|
- editvisible: false
|
|
|
+ this.setState({
|
|
|
+ editvisible: false
|
|
|
});
|
|
|
},
|
|
|
formathandleCancel(e) {
|
|
|
- this.setState({
|
|
|
- formatvisible: false
|
|
|
+ this.setState({
|
|
|
+ formatvisible: false
|
|
|
});
|
|
|
},
|
|
|
editformathandleCancel(e) {
|
|
|
- this.setState({
|
|
|
- editformatvisible: false
|
|
|
+ this.setState({
|
|
|
+ editformatvisible: false
|
|
|
});
|
|
|
},
|
|
|
search() {
|
|
@@ -942,7 +942,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
this.state.ressSearch= undefined;//省市区清零
|
|
|
this.state.activityFlag = undefined;//活动生效清零
|
|
|
this.state.status = undefined;//项目状态清零
|
|
|
- this.loadData();
|
|
|
+ this.loadData();
|
|
|
},
|
|
|
//新增部分的清零
|
|
|
addReset(){
|
|
@@ -960,7 +960,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
this.state.formatMemberPrice = '';//会员价清零
|
|
|
this.state.formatActivityFlag = undefined;//活动生效标识清零
|
|
|
this.state.formatStatus= undefined;//项目状态清零
|
|
|
- this.formatLoadData();
|
|
|
+ this.formatLoadData();
|
|
|
},
|
|
|
//详情tab切换数据处理
|
|
|
callback(e) {
|
|
@@ -968,7 +968,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
callnub: e,
|
|
|
})
|
|
|
if(e == 1) {
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
if(e == 2) {
|
|
|
this.formatLoadData();
|
|
@@ -1011,7 +1011,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
const hasSelected = this.state.selectedRowKeys.length > 0;
|
|
|
const { RangePicker } = DatePicker;
|
|
|
-
|
|
|
+
|
|
|
return (
|
|
|
<div className="user-content" >
|
|
|
<div className="content-title">
|
|
@@ -1034,7 +1034,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Button onClick={this.reset} style={{marginRight:'10px'}}>重置</Button>
|
|
|
<Popconfirm title="是否停用?" onConfirm={this.blockRow} okText="是" cancelText="否">
|
|
|
<Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px',display:'none'}}
|
|
|
- disabled={!hasSelected}
|
|
|
+ disabled={!hasSelected}
|
|
|
>停用<Icon type="minus" />
|
|
|
</Button>
|
|
|
</Popconfirm>
|
|
@@ -1042,15 +1042,15 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<div className="search-more" style={this.state.searchMore ? { display: 'none' } : {display: 'block'}}>
|
|
|
<span style={{marginRight:'10px',marginBottom:'10px'}}>
|
|
|
<Cascader options={provinceSelect()} style={{marginLeft:10}} value={this.state.ressSearch} placeholder="选择省份"
|
|
|
- onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
|
|
|
+ onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
|
|
|
</span>
|
|
|
- <span style={{marginRight:'10px',marginBottom:'10px'}}>
|
|
|
+ <span style={{marginRight:'10px',marginBottom:'10px'}}>
|
|
|
<Cascader options={citySelect()} value={this.state.ressSearch} placeholder="选择城市"
|
|
|
- onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
|
|
|
+ onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
|
|
|
</span>
|
|
|
<span style={{marginRight:'10px'}}>
|
|
|
<Cascader options={areaSelect()} value={this.state.ressSearch} placeholder="选择地区"
|
|
|
- onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
|
|
|
+ onChange={(e,pre) => { this.setState({ ressSearch: e }) }} />
|
|
|
</span>
|
|
|
<Select placeholder="活动生效标识"
|
|
|
style={{width:'150px',marginRight:'10px',marginBottom:'10px'}}
|
|
@@ -1066,7 +1066,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Select.Option value="0" >正常</Select.Option>
|
|
|
<Select.Option value="1" >停用</Select.Option>
|
|
|
</Select>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</TabPane>
|
|
|
<TabPane tab="更改表格显示数据" key="3">
|
|
@@ -1082,7 +1082,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
</TabPane>
|
|
|
</Tabs>
|
|
|
<div className="patent-table">
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
+ <Spin spinning={this.state.listLoading}>
|
|
|
<Table columns={
|
|
|
this.state.changeList
|
|
|
? this.state.changeList
|
|
@@ -1091,16 +1091,16 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
dataSource={this.state.dataSource}
|
|
|
rowSelection={rowSelection}
|
|
|
pagination={this.state.pagination}
|
|
|
- onRowClick={this.tableRowClick}
|
|
|
+ onRowClick={this.tableRowClick}
|
|
|
current={this.state.aa}/>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div className="patent-desc">
|
|
|
<Modal maskClosable={false} visible={this.state.visible}
|
|
|
onOk={this.checkPatentProcess} onCancel={this.handleCancel}
|
|
|
width='400px'
|
|
|
- title='新增业务项目'
|
|
|
+ title='新增业务项目'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form horizontal onSubmit={this.addhandleSubmit} id="demand-form">
|
|
@@ -1116,24 +1116,24 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="业务品类"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="请选择业务品类" value={this.state.addCid} onChange={(e)=>{this.setState({addCid:e})}}
|
|
|
notFoundContent="未获取到业务品类列表" style={{width:'94%'}} required="required">
|
|
|
{this.state.contactsOption}
|
|
|
- </Select>
|
|
|
+ </Select>
|
|
|
<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="是否精品"
|
|
|
- >
|
|
|
+ >
|
|
|
<Radio.Group value={this.state.boutique} onChange={(e) => {
|
|
|
this.setState({ boutique: e.target.value })
|
|
|
}}>
|
|
@@ -1143,33 +1143,33 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="省"
|
|
|
- >
|
|
|
+ >
|
|
|
<Cascader options={provinceSelect()} value={this.state.ProvinceCity} placeholder="选择省" style={{width:'94%'}}
|
|
|
onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
|
<span style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="省-市"
|
|
|
- >
|
|
|
+ >
|
|
|
<Cascader options={citySelect()} value={this.state.ProvinceCity} placeholder="选择市" style={{width:'94%'}}
|
|
|
onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
|
<span style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="省-市-区"
|
|
|
- >
|
|
|
+ >
|
|
|
<Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择区" style={{width:'94%'}}
|
|
|
onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
|
<span style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
@@ -1183,13 +1183,13 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Modal maskClosable={false} visible={this.state.formatvisible}
|
|
|
onOk={this.checkPatentProcess} onCancel={this.formathandleCancel}
|
|
|
width='400px'
|
|
|
- title='新增项目规格'
|
|
|
+ title='新增项目规格'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form horizontal onSubmit={this.formathandleSubmit} id="demand-form">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="项目名称"
|
|
@@ -1212,7 +1212,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Input placeholder="市场价" value={this.state.formatPrice} style={{width:'94%'}}
|
|
|
onChange={(e)=>{this.setState({formatPrice:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="活动价"
|
|
@@ -1220,7 +1220,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Input placeholder="活动价" value={this.state.formatActivityPrice} style={{width:'94%'}}
|
|
|
onChange={(e)=>{this.setState({formatActivityPrice:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="最低折扣"
|
|
@@ -1228,7 +1228,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Input placeholder="最低折扣" value={this.state.formatOffset} style={{width:'94%'}}
|
|
|
onChange={(e)=>{this.setState({formatOffset:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="会员价"
|
|
@@ -1236,13 +1236,13 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Input placeholder="会员价" value={this.state.formatMemberPrice} style={{width:'94%'}}
|
|
|
onChange={(e)=>{this.setState({formatMemberPrice:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="活动生效"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="活动生效" value={this.state.formatActivityFlag} style={{width:'94%'}}
|
|
|
- onChange={(e)=>{this.setState({formatActivityFlag:e})}}>
|
|
|
+ onChange={(e)=>{this.setState({formatActivityFlag:e})}}>
|
|
|
{
|
|
|
gameState.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -1250,13 +1250,13 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
}
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="项目状态"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="项目状态" value={this.state.formatStatus} style={{width:'94%'}}
|
|
|
- onChange={(e)=>{this.setState({formatStatus:e})}}>
|
|
|
+ onChange={(e)=>{this.setState({formatStatus:e})}}>
|
|
|
{
|
|
|
conditionOrganization.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -1273,7 +1273,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Modal maskClosable={false} visible={this.state.editformatvisible}
|
|
|
onOk={this.checkPatentProcess} onCancel={this.editformathandleCancel}
|
|
|
width='400px'
|
|
|
- title='编辑项目规格'
|
|
|
+ title='编辑项目规格'
|
|
|
footer=''
|
|
|
className="admin-desc-content">
|
|
|
<Form horizontal onSubmit={this.editformathandleSubmit} id="demand-form">
|
|
@@ -1289,7 +1289,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix" >
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="创建人"
|
|
@@ -1304,7 +1304,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Input placeholder="市场价" value={this.state.formatPrice} style={{width:'94%'}}
|
|
|
onChange={(e)=>{this.setState({formatPrice:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="活动价"
|
|
@@ -1312,7 +1312,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Input placeholder="活动价" value={this.state.formatActivityPrice} style={{width:'94%'}}
|
|
|
onChange={(e)=>{this.setState({formatActivityPrice:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="最低折扣"
|
|
@@ -1320,7 +1320,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Input placeholder="最低折扣" value={this.state.formatOffset} style={{width:'94%'}}
|
|
|
onChange={(e)=>{this.setState({formatOffset:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="会员价"
|
|
@@ -1328,13 +1328,13 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<Input placeholder="会员价" value={this.state.formatMemberPrice} style={{width:'94%'}}
|
|
|
onChange={(e)=>{this.setState({formatMemberPrice:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="活动生效"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="活动生效" value={this.state.formatActivityFlag} style={{width:'94%'}}
|
|
|
- onChange={(e)=>{this.setState({formatActivityFlag:e})}}>
|
|
|
+ onChange={(e)=>{this.setState({formatActivityFlag:e})}}>
|
|
|
{
|
|
|
gameState.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -1342,13 +1342,13 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
}
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
- <FormItem
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="项目状态"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="项目状态" value={this.state.formatStatus} style={{width:'94%'}}
|
|
|
- onChange={(e)=>{this.setState({formatStatus:e})}}>
|
|
|
+ onChange={(e)=>{this.setState({formatStatus:e})}}>
|
|
|
{
|
|
|
conditionOrganization.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -1357,23 +1357,23 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<FormItem wrapperCol={{ span: 12, offset: 7 }}>
|
|
|
- </FormItem>
|
|
|
+ </FormItem>
|
|
|
</Spin>
|
|
|
</Form >
|
|
|
</Modal>
|
|
|
</div>
|
|
|
<div className="patent-desc">
|
|
|
- <Modal
|
|
|
- className="customeDetails"
|
|
|
+ <Modal
|
|
|
+ className="customeDetails"
|
|
|
title="业务项目"
|
|
|
width='1000px'
|
|
|
visible={this.state.editvisible}
|
|
|
onOk={this.edithandleCancel}
|
|
|
onCancel={this.edithandleCancel}
|
|
|
footer=''
|
|
|
- >
|
|
|
+ >
|
|
|
<Tabs defaultActiveKey="1" onChange={this.callback} activeKey={this.state.callnub}>
|
|
|
<TabPane tab="业务项目基本资料" key="1">
|
|
|
<Form horizontal onSubmit={this.edithandleSubmit} id="demand-form">
|
|
@@ -1391,11 +1391,11 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="业务品类"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="请选择业务品类" value={this.state.editCname} onChange={(e)=>{this.setState({editCname:e})}}
|
|
|
notFoundContent="未获取到业务品类列表" style={{width:'94%'}} required="required">
|
|
|
{this.state.contactsOption}
|
|
|
- </Select>
|
|
|
+ </Select>
|
|
|
<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
</FormItem>
|
|
|
</div>
|
|
@@ -1404,34 +1404,34 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="省"
|
|
|
- >
|
|
|
+ >
|
|
|
<Cascader options={provinceSelect()} value={this.state.ProvinceCity} placeholder="选择省" style={{width:'94%'}}
|
|
|
onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
|
<span style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="省-市"
|
|
|
- >
|
|
|
+ >
|
|
|
<Cascader options={citySelect()} value={this.state.ProvinceCity} placeholder="选择市" style={{width:'94%'}}
|
|
|
onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
|
<span style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="省-市-区"
|
|
|
- >
|
|
|
+ >
|
|
|
<Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择区" style={{width:'94%'}}
|
|
|
onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
|
<span style={{color:'red',marginLeft:'5px'}}>*</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="是否精品"
|
|
|
- >
|
|
|
+ >
|
|
|
<Radio.Group value={this.state.editBoutique} onChange={(e) => {
|
|
|
this.setState({ editBoutique: e.target.value })
|
|
|
}}>
|
|
@@ -1477,9 +1477,9 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="活动生效"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="活动生效" value={this.state.editActivityFlag} style={{width:'94%'}}
|
|
|
- onChange={(e)=>{this.setState({editActivityFlag:e})}}>
|
|
|
+ onChange={(e)=>{this.setState({editActivityFlag:e})}}>
|
|
|
{
|
|
|
gameState.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -1491,9 +1491,9 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
label="项目状态"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="项目状态" value={this.state.editStatus} style={{width:'94%'}}
|
|
|
- onChange={(e)=>{this.setState({editStatus:e})}}>
|
|
|
+ onChange={(e)=>{this.setState({editStatus:e})}}>
|
|
|
{
|
|
|
conditionOrganization.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -1520,38 +1520,38 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
- label="项目地址" >
|
|
|
+ label="项目地址" >
|
|
|
<Input type="textarea" rows={1} placeholder="业务项目服务内容" value={this.state.editProjectUrl}
|
|
|
- onChange={(e) => { this.setState({ editProjectUrl: e.target.value }) }}/>
|
|
|
+ onChange={(e) => { this.setState({ editProjectUrl: e.target.value }) }}/>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
- label="业务项目服务内容" >
|
|
|
+ label="业务项目服务内容" >
|
|
|
<Input type="textarea" rows={4} placeholder="业务项目服务内容" value={this.state.editIntroduce}
|
|
|
- onChange={(e) => { this.setState({ editIntroduce: e.target.value }) }}/>
|
|
|
+ onChange={(e) => { this.setState({ editIntroduce: e.target.value }) }}/>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
- label="业务项目价值及作用" >
|
|
|
+ label="业务项目价值及作用" >
|
|
|
<Input type="textarea" rows={4} placeholder="业务项目价值及作用" value={this.state.editValueEffect}
|
|
|
- onChange={(e) => { this.setState({ editValueEffect: e.target.value }) }}/>
|
|
|
+ onChange={(e) => { this.setState({ editValueEffect: e.target.value }) }}/>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
- label="业务项目客户基本条件" >
|
|
|
+ label="业务项目客户基本条件" >
|
|
|
<Input type="textarea" rows={4} placeholder="业务项目客户基本条件" value={this.state.editClientSize}
|
|
|
- onChange={(e) => { this.setState({ editClientSize: e.target.value }) }}/>
|
|
|
+ onChange={(e) => { this.setState({ editClientSize: e.target.value }) }}/>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div className="clearfix pictures" style={{"marginBottom":"60px"}}>
|
|
|
<FormItem className="half-item"
|
|
|
labelCol={{ span: 8 }}
|
|
@@ -1567,7 +1567,7 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
- label="业务项目图标" >
|
|
|
+ label="业务项目图标" >
|
|
|
<PicturesWall
|
|
|
domId={'businessQuery2'}
|
|
|
pictureSign="business_project_max_picture"
|
|
@@ -1575,37 +1575,37 @@ const BusinessProject=Form.create()(React.createClass({
|
|
|
pictureUrl={this.state.companyLogoUrl} />
|
|
|
<p>图片建议:图片要清晰。(200*200)</p>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</Spin>
|
|
|
- </Form>
|
|
|
+ </Form>
|
|
|
</TabPane>
|
|
|
<TabPane tab="业务项目规格" key="2">
|
|
|
<div className="clearfix" >
|
|
|
-
|
|
|
+
|
|
|
<Popconfirm title="是否停用?" onConfirm={this.blockRowSize} okText="是" cancelText="否" >
|
|
|
<Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px',display:'none'}}
|
|
|
- disabled={!hasSelected}
|
|
|
+ disabled={!hasSelected}
|
|
|
>停用<Icon type="minus" />
|
|
|
</Button>
|
|
|
- </Popconfirm>
|
|
|
+ </Popconfirm>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<Form horizontal id="demand-form" onSubmit={this.contactSave} >
|
|
|
- <Table
|
|
|
+ <Table
|
|
|
pagination={this.state.formatPagination}
|
|
|
- columns={this.state.ContactsLists}
|
|
|
+ columns={this.state.ContactsLists}
|
|
|
dataSource={this.state.formatDataSource}
|
|
|
rowSelection={rowSelection}
|
|
|
onRowClick={this.formatTableRowClick}
|
|
|
/>
|
|
|
- </Form>
|
|
|
- </Spin>
|
|
|
+ </Form>
|
|
|
+ </Spin>
|
|
|
</div>
|
|
|
</TabPane>
|
|
|
</Tabs>
|
|
|
</Modal>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
);
|