|
@@ -137,7 +137,7 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
data: {
|
|
|
pageNo: pageNo || 1,
|
|
|
pageSize: this.state.pagination.pageSize,
|
|
|
- businessId: this.state.businessIdS, //业务意向
|
|
|
+ businessGlossoryId: this.state.businessIdS, //业务意向
|
|
|
identifyName:this.state.identifyNameS,
|
|
|
followSituation:this.state.followSituationS,
|
|
|
customerStatus:this.state.customerStatusS,
|
|
@@ -307,7 +307,7 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
title: '客户状态',
|
|
|
dataIndex: 'customerStatus',
|
|
|
key: 'customerStatus',
|
|
|
- render: text => { return getcustomerStatue(text) }
|
|
|
+ render: text => { return getcustomerStatue(text) }
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|
|
@@ -315,7 +315,7 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
key: 'abc',
|
|
|
render: (text, record, index) => {
|
|
|
return <div>
|
|
|
- <Button onClick={(e) =>{ e.stopPropagation(), this.addClick(record); }} type="primary" style={{marginRight:'10px'}}>跟进</Button>
|
|
|
+ <Button onClick={(e) =>{ e.stopPropagation(), this.addModify(record); }} type="primary" style={{marginRight:'10px'}}>跟进</Button>
|
|
|
<Button onClick={(e) =>{ e.stopPropagation(), this.followStop(record) }} type="primary">停止</Button>
|
|
|
</div>
|
|
|
}
|
|
@@ -401,10 +401,11 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
this.state.customerStatusArrOption = customerStatusArr;
|
|
|
this.loadData();
|
|
|
},
|
|
|
-
|
|
|
+ //新建
|
|
|
addClick() {
|
|
|
- this.state.followSituation=undefined;
|
|
|
- this.state.customerStatus=undefined;
|
|
|
+ this.state.businessGlossoryId=undefined;
|
|
|
+ this.state.followSituation='0';
|
|
|
+ this.state.customerStatus='0';
|
|
|
this.state.contactType=undefined;
|
|
|
this.state.remarks='';
|
|
|
this.state.result='';
|
|
@@ -412,14 +413,24 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
this.setState({
|
|
|
showDesc: true,
|
|
|
});
|
|
|
+ },
|
|
|
+ //跟进
|
|
|
+ addModify(e) {
|
|
|
+ this.addTime();
|
|
|
+ this.HttpFollowUp(e.businessId)
|
|
|
+ this.setState({
|
|
|
+ showDesc: true,
|
|
|
+ });
|
|
|
},
|
|
|
addClickOk(){
|
|
|
this.setState({
|
|
|
+ businessId:'',
|
|
|
showDesc: false,
|
|
|
});
|
|
|
},
|
|
|
addClickCancel(){
|
|
|
this.setState({
|
|
|
+ businessId:'',
|
|
|
showDesc: false,
|
|
|
});
|
|
|
},
|
|
@@ -450,79 +461,51 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
//基本信息提交
|
|
|
newSubmit(e){
|
|
|
e.preventDefault();
|
|
|
- this.state.data=[];
|
|
|
this.setState({
|
|
|
selectedRowKeys: [],
|
|
|
});
|
|
|
this.props.form.validateFields((err, values) => {
|
|
|
- let theorgCodeUrl = [];
|
|
|
- if (this.state.orgCodeUrl.length) {
|
|
|
- let picArr = [];
|
|
|
- this.state.orgCodeUrl.map(function (item) {
|
|
|
- picArr.push(item.response.data);
|
|
|
- });
|
|
|
- theorgCodeUrl = picArr.join(",");
|
|
|
- };
|
|
|
- let thecompanyLogoUrl = [];
|
|
|
- if (this.state.companyLogoUrl.length) {
|
|
|
- let picArr = [];
|
|
|
- this.state.companyLogoUrl.map(function (item) {
|
|
|
- picArr.push(item.response.data);
|
|
|
- });
|
|
|
- thecompanyLogoUrl = picArr.join(",");
|
|
|
- };
|
|
|
if (!err) {
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
});
|
|
|
$.ajax({
|
|
|
- method: "post",
|
|
|
+ method: "get",
|
|
|
dataType: "json",
|
|
|
- url:globalConfig.context + '/api/admin/customer/updateOrganizationCustomer',
|
|
|
+ url:globalConfig.context + '/api/admin/customer/toUpdateBusiness',
|
|
|
data: {
|
|
|
- id:this.state.InformationId,
|
|
|
- uid: this.state.InformationUid,
|
|
|
- societyTag:values.societyTag,
|
|
|
- introduction:values.introduction,
|
|
|
- unitName:this.state.unitName,
|
|
|
- industry:this.state.industry,
|
|
|
- locationProvince:values.ProvinceCity?values.ProvinceCity[0]:'',//省-
|
|
|
- locationCity:values.ProvinceCity?values.ProvinceCity[1]:'',//市
|
|
|
- locationArea:values.ProvinceCity?values.ProvinceCity[2]:'',//区
|
|
|
- postalAddress:values.postalAddress,
|
|
|
- contactsFixedTel:values.contactsFixedTel,
|
|
|
- contactsFax:values.contactsFax,
|
|
|
- registeredCapital:values.registeredCapital,
|
|
|
- enterpriseScale:values.enterpriseScale,
|
|
|
- legalPerson:values.legalPerson,
|
|
|
- legalPersonIdCard:values.legalPersonIdCard,
|
|
|
- legalPersonTel:values.legalPersonTel,
|
|
|
- legalPersonEmail:values.legalPersonEmail,
|
|
|
- highTechZone:this.state.highTechZone,
|
|
|
- listed:this.state.listed,
|
|
|
- orgCode:values.orgCode,
|
|
|
- businessScope:values.businessScope,
|
|
|
- introduction:values.introduction,
|
|
|
- companyLogoUrl:thecompanyLogoUrl,
|
|
|
- orgCodeUrl:theorgCodeUrl,
|
|
|
+ businessId:this.state.rowId
|
|
|
}
|
|
|
- }).done(function (data) {
|
|
|
- this.setState({
|
|
|
- loading: false
|
|
|
- });
|
|
|
- if (!data.error.length) {
|
|
|
- message.success('保存成功!');
|
|
|
- this.detailsModal()
|
|
|
- } else {
|
|
|
+ }).done(function (data) {
|
|
|
+ let thisData=data.data;
|
|
|
+ if (!thisData) {
|
|
|
+ if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
- }
|
|
|
- }.bind(this));
|
|
|
- }
|
|
|
- })
|
|
|
+ };
|
|
|
+ thisData = {};
|
|
|
+ };
|
|
|
+ this.setState({
|
|
|
+ businessId:thisData.businessId,
|
|
|
+ identifyName:thisData.identifyName,
|
|
|
+ businessGlossoryId:thisData.businessGlossoryId,
|
|
|
+ followSituation:thisData.followSituation,
|
|
|
+ customerStatus:thisData.customerStatus,
|
|
|
+ createTime:thisData.createTime,
|
|
|
+ adminName:thisData.adminName,
|
|
|
+ remarks:thisData.remarks,
|
|
|
+ });
|
|
|
+ }.bind(this),
|
|
|
+ ).always(function () {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ }.bind(this));
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
//查看基本详情基本信息
|
|
|
- loadInformation(record){
|
|
|
- this.RowClick;
|
|
|
+ loadInformation(record){
|
|
|
+ console.log(record)
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
@@ -543,7 +526,6 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
let ProvinceS=getprovince(thisData.locationProvince);
|
|
|
let citys=getprovince(thisData.locationCity);
|
|
|
let Areas=getprovince(thisData.locationArea);
|
|
|
- console.log(getprovince(800))
|
|
|
ProvinceCityArr.push(ProvinceS,citys,Areas)
|
|
|
|
|
|
console.log(ProvinceCityArr)
|
|
@@ -557,7 +539,7 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
companyLogoUrl: thisData.companyLogoUrl ? splitUrl(thisData.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
dataInformation:thisData,
|
|
|
ProvinceCity:ProvinceCityArr,
|
|
|
- industry:(thisData.industry).toString(),
|
|
|
+ industry:thisData.industry,
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
@@ -647,7 +629,7 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
|
}
|
|
|
- this.getNewWoman(this.state.khId);
|
|
|
+ this.getNewWoman(this.state.khId);
|
|
|
}.bind(this));
|
|
|
}
|
|
|
});
|
|
@@ -664,25 +646,25 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
uid:ids,
|
|
|
},
|
|
|
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.map(function (item,index) {
|
|
|
- theArr.push(<Select.Option value={index}>{item.name}</Select.Option>)
|
|
|
- });
|
|
|
- let telNum=thedata.telNum;
|
|
|
-
|
|
|
- this.setState({
|
|
|
- lastname:thedata[0].name,
|
|
|
- telNumArr:thedata,
|
|
|
- nub:thedata[0].mobile,
|
|
|
- orderStatusOption: theArr,
|
|
|
- });
|
|
|
+ let theArr = [];
|
|
|
+ let thedata=data.data;
|
|
|
+ if (!thedata) {
|
|
|
+ if (data.error && data.error.length) {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ };
|
|
|
+ thedata.map(function (item,index) {
|
|
|
+ theArr.push(<Select.Option value={index}>{item.name}</Select.Option>)
|
|
|
+ });
|
|
|
+ let telNum=thedata.telNum;
|
|
|
+
|
|
|
+ this.setState({
|
|
|
+ lastname:thedata[0].name||'',
|
|
|
+ telNumArr:thedata,
|
|
|
+ nub:thedata[0].mobile,
|
|
|
+ orderStatusOption: theArr,
|
|
|
+ });
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.setState({
|
|
@@ -708,12 +690,15 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
});
|
|
|
let thed='';
|
|
|
let conts=this.state.lastname;
|
|
|
- this.state.orderStatusOption.map(function(itam){
|
|
|
+ if(this.state.orderStatusOption){
|
|
|
+ this.state.orderStatusOption.map(function(itam){
|
|
|
if(itam.name==conts){
|
|
|
thed=itam.ocbId
|
|
|
}
|
|
|
return thed;
|
|
|
})
|
|
|
+ }
|
|
|
+
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -727,7 +712,7 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
createTime:this.state.createYear+''+this.state.creatMent,
|
|
|
contactType: this.state.contactType,
|
|
|
ocbId: thed,
|
|
|
- followTime:'2017-10-11'+' '+'00:00:00',
|
|
|
+ followTime:this.state.followTime,
|
|
|
remarks: this.state.remarks,
|
|
|
result: this.state.result,
|
|
|
}
|
|
@@ -736,9 +721,10 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
loading: false
|
|
|
});
|
|
|
if (!data.error.length) {
|
|
|
- message.success('保存成功!');
|
|
|
+ message.success('保存成功!');
|
|
|
this.addClickCancel();
|
|
|
- this.loadData();
|
|
|
+ this.loadData();
|
|
|
+ this.state.businessId='';
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
|
}
|
|
@@ -770,12 +756,10 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
// });
|
|
|
let creatMent=thedata.createTime.substr(10,9);
|
|
|
let createYear=thedata.createTime.substr(0,10);
|
|
|
-
|
|
|
this.setState({
|
|
|
creatMent:creatMent,
|
|
|
createYear:createYear,
|
|
|
- creatMents:thedata.creatMent,
|
|
|
- createYears:thedata.createYear,
|
|
|
+ followTime:thedata.followTime,
|
|
|
adminName: thedata.adminName,
|
|
|
});
|
|
|
}.bind(this),
|
|
@@ -803,8 +787,7 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
message.warning(data.error[0].message);
|
|
|
};
|
|
|
thedata = {};
|
|
|
- };
|
|
|
- console.log(thedata)
|
|
|
+ };
|
|
|
this.setState({
|
|
|
customerArr:thedata,
|
|
|
});
|
|
@@ -854,6 +837,40 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
return message.warning('当前客户名不存在')
|
|
|
};
|
|
|
},
|
|
|
+ //点击跟进时数据处理
|
|
|
+ HttpFollowUp(e){
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + "/api/admin/customer/toFollowOneBusiness",
|
|
|
+ data:{
|
|
|
+ businessId:e
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ let thedata=data.data;
|
|
|
+ if (!thedata) {
|
|
|
+ if (data.error && data.error.length) {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ };
|
|
|
+ this.setState({
|
|
|
+ businessId:thedata.businessId,
|
|
|
+ businessGlossoryId:thedata.businessGlossoryId,
|
|
|
+ followSituation:thedata.followSituation,
|
|
|
+ customerStatus:thedata.customerStatus,
|
|
|
+ createTime:thedata.createTime,
|
|
|
+ identifyName:thedata.identifyName,
|
|
|
+ remarks:thedata.remarks,
|
|
|
+ });
|
|
|
+ }.bind(this),
|
|
|
+ }).always(function () {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
if (!this.props.visible && nextProps.visible) {
|
|
|
if (nextProps.data && nextProps.data.id) {
|
|
@@ -865,6 +882,7 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
};
|
|
|
},
|
|
|
tableRowClick(record, index) {
|
|
|
+ console.log(record)
|
|
|
this.state.RowData = record;
|
|
|
console.log(record)
|
|
|
this.detailsModalOk(record);
|
|
@@ -929,8 +947,9 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
const formItemLayput = {
|
|
|
labelCol: { span: 10 },
|
|
|
wrapperCol: { span: 14 },
|
|
|
- };
|
|
|
- const dataSources=this.state.customerArr || []
|
|
|
+ };
|
|
|
+ const businessIds=this.state.businessId||'';
|
|
|
+ const dataSources=this.state.customerArr || [];
|
|
|
const options = dataSources.map((group) =>
|
|
|
<Option key={group.id} value={group.name}>{group.name}</Option>
|
|
|
)
|
|
@@ -1004,19 +1023,42 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
<Form horizontal id="demand-form" onSubmit={this.addSubmit}>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
+ {businessIds!=''?<div><FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="业务意向名称"
|
|
|
+ >
|
|
|
+ <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ >
|
|
|
+ <Button type="primary" onClick={this.newContacts} style={{marginLeft:'160px'}}>添加新联系人</Button>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="意向时间"
|
|
|
+ >
|
|
|
+ <span>{this.state.createTime}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="客户名称"
|
|
|
+ >
|
|
|
+ <span>{this.state.businessGlossoryId}</span>
|
|
|
+ </FormItem></div>
|
|
|
+ :<div><FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="业务意向名称"
|
|
|
>
|
|
|
- <Select placeholder="服务意向名称" value={this.state.businessGlossoryId} onChange={(e) => {
|
|
|
- this.setState({businessGlossoryId:e})}} style={{width:'150px'}}>
|
|
|
- {
|
|
|
- intentionalService.map(function (item) {
|
|
|
- return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
- })
|
|
|
- }
|
|
|
- </Select>
|
|
|
- </FormItem>
|
|
|
+ <Select placeholder="服务意向名称" value={this.state.businessGlossoryId} onChange={(e) => {
|
|
|
+ this.setState({businessGlossoryId:e})}} style={{width:'150px'}}>
|
|
|
+ {
|
|
|
+ intentionalService.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
>
|
|
@@ -1025,72 +1067,64 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="意向时间" >
|
|
|
- { /*{getFieldDecorator('createYear', {
|
|
|
- initialValue: this.state.createYear
|
|
|
- })(
|
|
|
- <DatePicker />
|
|
|
- )}
|
|
|
- {getFieldDecorator('creatMent', {
|
|
|
- initialValue: this.state.creatMent
|
|
|
- })(
|
|
|
- <TimePicker />
|
|
|
- )}*/}
|
|
|
<DatePicker placeholder="更新日期" value={moment(this.state.createYear,'YYYY-MM-DD')} onChange={(time) => {this.setState({createYear: time});}}/>
|
|
|
- <TimePicker placeholder="更新时间" value={moment(this.state.creatMent, 'HH:mm:ss')} onChange={(time) => { this.setState({creatMent: time}); }}/>
|
|
|
+ <TimePicker placeholder="更新时间" value={moment(this.state.creatMent, 'HH:mm:ss')} onChange={(time) => { this.setState({creatMent: time}); }}/>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="客户名称"
|
|
|
+ >
|
|
|
+ <AutoComplete
|
|
|
+ className="certain-category-search"
|
|
|
+ dropdownClassName="certain-category-search-dropdown"
|
|
|
+ dropdownMatchSelectWidth={false}
|
|
|
+ dropdownStyle={{ width: 300 }}
|
|
|
+ size="large"
|
|
|
+ style={{ width: '100%' }}
|
|
|
+ dataSource={options}
|
|
|
+ placeholder="输入名称"
|
|
|
+ optionLabelProp="value"
|
|
|
+ onChange={this.httpChange}
|
|
|
+ onSelect={this.autoChange}
|
|
|
+ filterOption={true}
|
|
|
+ onBlur={this.blurChange}
|
|
|
+ >
|
|
|
+ <Input />
|
|
|
+ </AutoComplete>
|
|
|
+ </FormItem></div>
|
|
|
+
|
|
|
+}
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="客户名称"
|
|
|
+ label="营销员"
|
|
|
>
|
|
|
- <AutoComplete
|
|
|
- className="certain-category-search"
|
|
|
- dropdownClassName="certain-category-search-dropdown"
|
|
|
- dropdownMatchSelectWidth={false}
|
|
|
- dropdownStyle={{ width: 300 }}
|
|
|
- size="large"
|
|
|
- style={{ width: '100%' }}
|
|
|
- dataSource={options}
|
|
|
- placeholder="输入名称"
|
|
|
- optionLabelProp="value"
|
|
|
- onChange={this.httpChange}
|
|
|
- onSelect={this.autoChange}
|
|
|
- filterOption={true}
|
|
|
- onBlur={this.blurChange}
|
|
|
- >
|
|
|
- <Input />
|
|
|
- </AutoComplete>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="营销员"
|
|
|
- >
|
|
|
- <span>{this.state.adminName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="业务意向进度"
|
|
|
- >
|
|
|
- <Select placeholder="业务意向进度" value={this.state.followSituation}
|
|
|
- onChange={(e) => { this.setState({ followSituation: e }) }}>
|
|
|
- {
|
|
|
- intentionalService.map(function (item) {
|
|
|
- return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
- })
|
|
|
- }
|
|
|
- </Select>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="业务客户状态"
|
|
|
- >
|
|
|
- <Select placeholder="业务客户状态" value={this.state.customerStatus}
|
|
|
- onChange={(e) => { this.setState({ customerStatus: e }) }}>
|
|
|
+ <span>{this.state.adminName}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="业务意向进度"
|
|
|
+ >
|
|
|
+ <Select placeholder="业务意向进度" value={this.state.followSituation}
|
|
|
+ onChange={(e) => { this.setState({ followSituation: e }) }}>
|
|
|
{
|
|
|
intentionalService.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
})
|
|
|
}
|
|
|
- </Select>
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="业务客户状态"
|
|
|
+ >
|
|
|
+ <Select placeholder="业务客户状态" value={this.state.customerStatus}
|
|
|
+ onChange={(e) => { this.setState({ customerStatus: e }) }}>
|
|
|
+ {
|
|
|
+ customerStatus.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
</FormItem>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
@@ -1118,36 +1152,38 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
</Radio.Group>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
+
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="联系人"
|
|
|
+ >
|
|
|
+ <Select placeholder="联系人姓名" style={{ width: 140 }}
|
|
|
+ value={this.state.lastname}
|
|
|
+ onChange={this.hundleName}>
|
|
|
+ {this.state.orderStatusOption}
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
+
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="联系电话"
|
|
|
+ >
|
|
|
+ <span>{this.state.nub}</span>
|
|
|
+ </FormItem>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="联系人"
|
|
|
- >
|
|
|
- <Select placeholder="联系人姓名" style={{ width: 140 }}
|
|
|
- value={this.state.lastname}
|
|
|
- onChange={this.hundleName}>
|
|
|
- {this.state.orderStatusOption}
|
|
|
- </Select>
|
|
|
- </FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="联系电话"
|
|
|
- >
|
|
|
- <span>{this.state.nub}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="拜访时间" >
|
|
|
- <DatePicker placeholder="更新日期" value={moment(this.state.createYears,'YYYY-MM-DD')} onChange={(time) => {this.setState({createYears: time});}}/>
|
|
|
- <TimePicker placeholder="更新时间" value={moment(this.state.creatMents, 'HH:mm:ss')} onChange={(time) => { this.setState({creatMents: time}); }}/>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
label="拜访人"
|
|
|
>
|
|
|
<span>{this.state.adminName}</span>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="拜访时间" >
|
|
|
+ <span>{this.state.followTime}</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
@@ -1179,34 +1215,34 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="业务意向名称"
|
|
|
>
|
|
|
- <span>{theInformation.unitName}</span>
|
|
|
+ <span>{getCompanyIntention(theInformation.businessGlossoryId)}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="意向时间"
|
|
|
>
|
|
|
- <span>{theInformation.unitName}</span>
|
|
|
+ <span>{theInformation.createTime}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="客户名称"
|
|
|
>
|
|
|
- <span>{theInformation.unitName}</span>
|
|
|
+ <span>{theInformation.identifyName}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="营销员"
|
|
|
>
|
|
|
- <span>{theInformation.unitName}</span>
|
|
|
+ <span>{theInformation.adminName}</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="业务意向进度"
|
|
|
>
|
|
|
<Select placeholder="业务意向进度" value={this.state.followSituation}
|
|
|
onChange={(e) => { this.setState({ followSituation: e }) }}>
|
|
|
{
|
|
|
- intentionalService.map(function (item) {
|
|
|
+ newFollow.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
})
|
|
|
}
|
|
@@ -1216,7 +1252,7 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="业务客户状态"
|
|
|
>
|
|
|
- <Select placeholder="业务客户状态" value={this.state.customerStatus}
|
|
|
+ <Select placeholder="业务客户状态" value={this.state.customerStatus}
|
|
|
onChange={(e) => { this.setState({ customerStatus: e }) }}>
|
|
|
{
|
|
|
intentionalService.map(function (item) {
|