|
@@ -117,8 +117,8 @@ const MyClient = Form.create()(React.createClass({
|
|
pageSize: this.state.pagination.pageSize,
|
|
pageSize: this.state.pagination.pageSize,
|
|
type: this.state.typeSearch, //名称1
|
|
type: this.state.typeSearch, //名称1
|
|
name:this.state.nameSearch,
|
|
name:this.state.nameSearch,
|
|
- province:this.state.addressSearch?this.state.addressSearch[0].value:this.state.provinceSearch,
|
|
|
|
- city: this.state.addressSearch?this.state.addressSearch[1].value:'',
|
|
|
|
|
|
+ province:this.state.addressSearch?this.state.addressSearch[0]:this.state.provinceSearch,
|
|
|
|
+ city: this.state.addressSearch?this.state.addressSearch[1]:'',
|
|
//area: this.state.addressSearch?this.state.addressSearch[2].value:'',
|
|
//area: this.state.addressSearch?this.state.addressSearch[2].value:'',
|
|
status:this.state.statusSearch,
|
|
status:this.state.statusSearch,
|
|
industry:this.state.industrySearch,
|
|
industry:this.state.industrySearch,
|
|
@@ -157,7 +157,7 @@ const MyClient = Form.create()(React.createClass({
|
|
international:thisdata.international,
|
|
international:thisdata.international,
|
|
listed:thisdata.listed,
|
|
listed:thisdata.listed,
|
|
highTechZone:thisdata.highTechZone,
|
|
highTechZone:thisdata.highTechZone,
|
|
- locationProvince:thisdata.province+'-'+thisdata.city+'-'+thisdata.area
|
|
|
|
|
|
+ locationProvince:thisdata.province?thisdata.province+'-'+thisdata.city||''+'-'+thisdata.area :'--'
|
|
});
|
|
});
|
|
};
|
|
};
|
|
this.state.pagination.current = data.data.pageNo;
|
|
this.state.pagination.current = data.data.pageNo;
|
|
@@ -229,19 +229,20 @@ const MyClient = Form.create()(React.createClass({
|
|
//业务意向列表
|
|
//业务意向列表
|
|
intentionList:[{
|
|
intentionList:[{
|
|
title: '高新',
|
|
title: '高新',
|
|
- dataIndex: 'name',
|
|
|
|
|
|
+ dataIndex: 'id',
|
|
|
|
+ key:'id',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
- return <Select value={record.name} onChange={(e) => { record.name=e; this.setState({ data: this.state.data }); }}>
|
|
|
|
|
|
+ return <Select value={record.id} onChange={(e) => { record.id=e; this.setState({ data: this.state.data }); }}>
|
|
<Select.Option value="0" >否</Select.Option>
|
|
<Select.Option value="0" >否</Select.Option>
|
|
<Select.Option value="1" >是</Select.Option>
|
|
<Select.Option value="1" >是</Select.Option>
|
|
</Select>
|
|
</Select>
|
|
}
|
|
}
|
|
},{
|
|
},{
|
|
title: '最新进度',
|
|
title: '最新进度',
|
|
- dataIndex: 'mobile2',
|
|
|
|
- key: 'mobile2',
|
|
|
|
|
|
+ dataIndex: 'businessGlossoryId',
|
|
|
|
+ key: 'businessGlossoryId',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
- return <Select value={record.mobile2} onChange={(e) => { record.mobile2 = e; this.setState({ data: this.state.data }); }}>
|
|
|
|
|
|
+ return <Select value={record.businessGlossoryId} onChange={(e) => { record.businessGlossoryId = e; this.setState({ data: this.state.data }); }}>
|
|
{
|
|
{
|
|
newFollow.map(function (item) {
|
|
newFollow.map(function (item) {
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -251,10 +252,10 @@ const MyClient = Form.create()(React.createClass({
|
|
}
|
|
}
|
|
},{
|
|
},{
|
|
title: '最新状态',
|
|
title: '最新状态',
|
|
- dataIndex: 'mobile3',
|
|
|
|
- key: 'mobile3',
|
|
|
|
|
|
+ dataIndex: 'followSituation',
|
|
|
|
+ key: 'followSituation',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
- return <Select value={record.mobile3} onChange={(e) => { record.mobile3 = e; this.setState({ data: this.state.data }); }}>
|
|
|
|
|
|
+ return <Select value={record.followSituation} onChange={(e) => { record.followSituation = e; this.setState({ data: this.state.data }); }}>
|
|
{
|
|
{
|
|
customerStatus.map(function (item) {
|
|
customerStatus.map(function (item) {
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -264,11 +265,11 @@ const MyClient = Form.create()(React.createClass({
|
|
}
|
|
}
|
|
},{
|
|
},{
|
|
title: '跟进说明',
|
|
title: '跟进说明',
|
|
- dataIndex: 'mobile4',
|
|
|
|
- key: 'mobile4',
|
|
|
|
|
|
+ dataIndex: 'remarks',
|
|
|
|
+ key: 'remarks',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
- return <Input value={record.mobile4}
|
|
|
|
- onChange={(e) => { record.mobile4 = e.target.value; this.setState({ data: this.state.data }); }}
|
|
|
|
|
|
+ return <Input value={record.customerStatus}
|
|
|
|
+ onChange={(e) => { record.customerStatus = e.target.value; this.setState({ data: this.state.data }); }}
|
|
style={{width:'120px'}}/>
|
|
style={{width:'120px'}}/>
|
|
}
|
|
}
|
|
},{
|
|
},{
|
|
@@ -277,7 +278,6 @@ const MyClient = Form.create()(React.createClass({
|
|
key: 'rrr',
|
|
key: 'rrr',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
return <div>
|
|
return <div>
|
|
- <Button type="primary" onClick={(e)=>{this.intentionModify(record)}} style={{marginRight:'10px'}}>保存</Button>
|
|
|
|
<Popconfirm title="是否删除?" onConfirm={(e)=>{this.intentionDelet(record)}} okText="删除" cancelText="不删除">
|
|
<Popconfirm title="是否删除?" onConfirm={(e)=>{this.intentionDelet(record)}} okText="删除" cancelText="不删除">
|
|
<Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}}>删除</Button>
|
|
<Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}}>删除</Button>
|
|
</Popconfirm>
|
|
</Popconfirm>
|
|
@@ -388,9 +388,8 @@ const MyClient = Form.create()(React.createClass({
|
|
key: 'ttt',
|
|
key: 'ttt',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
return <div>
|
|
return <div>
|
|
- <Button type="primary" onClick={(e)=>{this.visitModify(record)}} style={{marginRight:'10px'}}>修改</Button>
|
|
|
|
<Popconfirm title="是否删除?" onConfirm={(e)=>{this.visitDelet(record)}} okText="删除" cancelText="不删除">
|
|
<Popconfirm title="是否删除?" onConfirm={(e)=>{this.visitDelet(record)}} okText="删除" cancelText="不删除">
|
|
- <Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}}>删除</Button>
|
|
|
|
|
|
+ <Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}} onClick={(e)=>{e.stopPropagation()}}>删除</Button>
|
|
</Popconfirm>
|
|
</Popconfirm>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
@@ -574,6 +573,7 @@ const MyClient = Form.create()(React.createClass({
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
],
|
|
|
|
+ data:[],
|
|
dataman:[],
|
|
dataman:[],
|
|
dataSource: [],
|
|
dataSource: [],
|
|
visitArrList:[],
|
|
visitArrList:[],
|
|
@@ -587,12 +587,113 @@ const MyClient = Form.create()(React.createClass({
|
|
visible: true,
|
|
visible: true,
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //拜访
|
|
|
|
- visit(e){
|
|
|
|
|
|
+ //进入新增拜访记录
|
|
|
|
+ visit(e){
|
|
|
|
+ this.getNewWoman(e.uid);
|
|
this.setState({
|
|
this.setState({
|
|
- visitModul:true
|
|
|
|
- })
|
|
|
|
- console.log(e)
|
|
|
|
|
|
+ visitModul:true,
|
|
|
|
+ loading: true
|
|
|
|
+ });
|
|
|
|
+ $.ajax({
|
|
|
|
+ method: "get",
|
|
|
|
+ dataType: "json",
|
|
|
|
+ url:globalConfig.context + '/api/admin/customer/toAddFollow',
|
|
|
|
+ data: {
|
|
|
|
+ uid: e.uid,
|
|
|
|
+ },
|
|
|
|
+ success: function (data) {
|
|
|
|
+ let theArr = [];
|
|
|
|
+ let thedata=data.data;
|
|
|
|
+ if (!thedata) {
|
|
|
|
+ if (data.error && data.error.length) {
|
|
|
|
+ message.warning(data.error[0].message);
|
|
|
|
+ };
|
|
|
|
+ thedata = {};
|
|
|
|
+ };
|
|
|
|
+ this.setState({
|
|
|
|
+ uid:thedata.uid,
|
|
|
|
+ data:thedata.list || [],
|
|
|
|
+ identityName:thedata.identityName,
|
|
|
|
+ followTime:thedata.followTime,
|
|
|
|
+ businessGlossoryId:thedata.businessGlossoryId,
|
|
|
|
+ followSituation:thedata.followSituation,
|
|
|
|
+ customerStatus:thedata.customerStatus,
|
|
|
|
+ remarks:thedata.remarks,
|
|
|
|
+ });
|
|
|
|
+ }.bind(this),
|
|
|
|
+ }).always(function () {
|
|
|
|
+ this.setState({
|
|
|
|
+ loading: false
|
|
|
|
+ });
|
|
|
|
+ }.bind(this));
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ //拜访记录删除
|
|
|
|
+ visitDelet(e){
|
|
|
|
+ if(e){
|
|
|
|
+ $.ajax({
|
|
|
|
+ method: "get",
|
|
|
|
+ dataType: "json",
|
|
|
|
+ crossDomain: false,
|
|
|
|
+ url: globalConfig.context + "/api/admin/customer/deleteCustomer",
|
|
|
|
+ data: {
|
|
|
|
+ id: e.followId,//删除的ID
|
|
|
|
+ }
|
|
|
|
+ }).done(function (data) {
|
|
|
|
+ if (!data.error.length) {
|
|
|
|
+ message.success('删除成功!');
|
|
|
|
+ this.setState({
|
|
|
|
+ loading: false,
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ message.warning(data.error[0].message);
|
|
|
|
+ };
|
|
|
|
+ this.visitModify(e.followId);
|
|
|
|
+ }.bind(this));
|
|
|
|
+ }else{
|
|
|
|
+ this.visitModify(this.state.delectId);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //进入修改拜访记录
|
|
|
|
+ visitModify(e){
|
|
|
|
+ this.getNewWoman(e);
|
|
|
|
+ this.setState({
|
|
|
|
+ visitModul:true,
|
|
|
|
+ loading: true
|
|
|
|
+ });
|
|
|
|
+ $.ajax({
|
|
|
|
+ method: "get",
|
|
|
|
+ dataType: "json",
|
|
|
|
+ url:globalConfig.context + '/api/admin/customer/toUpdateFollow',
|
|
|
|
+ data: {
|
|
|
|
+ followId: e,
|
|
|
|
+ },
|
|
|
|
+ success: function (data) {
|
|
|
|
+ let theArr = [];
|
|
|
|
+ let thedata=data.data;
|
|
|
|
+ if (!thedata) {
|
|
|
|
+ if (data.error && data.error.length) {
|
|
|
|
+ message.warning(data.error[0].message);
|
|
|
|
+ };
|
|
|
|
+ thedata = {};
|
|
|
|
+ };
|
|
|
|
+ this.setState({
|
|
|
|
+ data:thedata.userBusinessList || [],
|
|
|
|
+ followId:thedata.followId,
|
|
|
|
+ identityName:thedata.identityName,
|
|
|
|
+ uid:thedata.uid,
|
|
|
|
+ contacts:thedata.contacts,//当前联系人
|
|
|
|
+ contactType:thedata.contactType,
|
|
|
|
+ result:thedata.result,
|
|
|
|
+ followTime:thedata.followTime,
|
|
|
|
+ adminName:thedata.adminName,
|
|
|
|
+ });
|
|
|
|
+ }.bind(this),
|
|
|
|
+ }).always(function () {
|
|
|
|
+ this.setState({
|
|
|
|
+ loading: false
|
|
|
|
+ });
|
|
|
|
+ }.bind(this));
|
|
},
|
|
},
|
|
|
|
|
|
//列表删除功能
|
|
//列表删除功能
|
|
@@ -843,7 +944,8 @@ const MyClient = Form.create()(React.createClass({
|
|
},
|
|
},
|
|
reset() {
|
|
reset() {
|
|
this.state.typeSearch=undefined; //名称1
|
|
this.state.typeSearch=undefined; //名称1
|
|
- this.state.nameSearch='';
|
|
|
|
|
|
+ this.state.nameSearch='';
|
|
|
|
+ this.state.addressSearch=[];
|
|
this.state.provinceSearch=undefined;
|
|
this.state.provinceSearch=undefined;
|
|
this.state.citySearch=undefined;
|
|
this.state.citySearch=undefined;
|
|
this.state.statusSearch=undefined;
|
|
this.state.statusSearch=undefined;
|
|
@@ -881,6 +983,14 @@ const MyClient = Form.create()(React.createClass({
|
|
rowId:record.id,
|
|
rowId:record.id,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ VisitRowClick(record, index) {
|
|
|
|
+ this.state.RowData = record;
|
|
|
|
+ this.visitModify(record.id);
|
|
|
|
+ this.setState({
|
|
|
|
+ selectedRowKeys:[],
|
|
|
|
+ delectId:record.id,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
//基本信息提交
|
|
//基本信息提交
|
|
newSubmit(e){
|
|
newSubmit(e){
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
@@ -908,7 +1018,8 @@ const MyClient = Form.create()(React.createClass({
|
|
if (!err) {
|
|
if (!err) {
|
|
this.setState({
|
|
this.setState({
|
|
loading: true
|
|
loading: true
|
|
- });
|
|
|
|
|
|
+ });
|
|
|
|
+ console.log(this.state.ProvinceCity)
|
|
$.ajax({
|
|
$.ajax({
|
|
method: "post",
|
|
method: "post",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
@@ -920,9 +1031,9 @@ const MyClient = Form.create()(React.createClass({
|
|
introduction:values.introduction,
|
|
introduction:values.introduction,
|
|
unitName:this.state.unitName,
|
|
unitName:this.state.unitName,
|
|
industry:this.state.industry,
|
|
industry:this.state.industry,
|
|
- locationProvince:values.ProvinceCity?values.ProvinceCity[0]:'',//省-
|
|
|
|
- locationCity:values.ProvinceCity?values.ProvinceCity[1]:'',//市
|
|
|
|
- locationArea:values.ProvinceCity?values.ProvinceCity[2]:'',//区
|
|
|
|
|
|
+ locationProvince:(this.state.ProvinceCity)[0],//省-
|
|
|
|
+ locationCity:(this.state.ProvinceCity)[1],//市
|
|
|
|
+ locationArea:(this.state.ProvinceCity)[2],//区
|
|
postalAddress:values.postalAddress,
|
|
postalAddress:values.postalAddress,
|
|
contactsFixedTel:values.contactsFixedTel,
|
|
contactsFixedTel:values.contactsFixedTel,
|
|
contactsFax:values.contactsFax,
|
|
contactsFax:values.contactsFax,
|
|
@@ -979,8 +1090,7 @@ const MyClient = Form.create()(React.createClass({
|
|
let ProvinceS=getprovince(thisData.locationProvince);
|
|
let ProvinceS=getprovince(thisData.locationProvince);
|
|
let citys=getprovince(thisData.locationCity);
|
|
let citys=getprovince(thisData.locationCity);
|
|
let Areas=getprovince(thisData.locationArea);
|
|
let Areas=getprovince(thisData.locationArea);
|
|
- ProvinceCityArr.push(ProvinceS,citys,Areas)
|
|
|
|
- console.log(ProvinceCityArr)
|
|
|
|
|
|
+ ProvinceCityArr.push(ProvinceS,citys,Areas);
|
|
this.setState({
|
|
this.setState({
|
|
InformationId:thisData.id,
|
|
InformationId:thisData.id,
|
|
InformationUid:thisData.uid,
|
|
InformationUid:thisData.uid,
|
|
@@ -991,8 +1101,9 @@ const MyClient = Form.create()(React.createClass({
|
|
companyLogoUrl: thisData.companyLogoUrl ? splitUrl(thisData.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
companyLogoUrl: thisData.companyLogoUrl ? splitUrl(thisData.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
dataInformation:thisData,
|
|
dataInformation:thisData,
|
|
ProvinceCity:ProvinceCityArr,
|
|
ProvinceCity:ProvinceCityArr,
|
|
- industry:(thisData.industry).toString(),
|
|
|
|
- });
|
|
|
|
|
|
+ industry:thisData.industry,
|
|
|
|
+ });
|
|
|
|
+
|
|
}.bind(this),
|
|
}.bind(this),
|
|
}).always(function () {
|
|
}).always(function () {
|
|
this.setState({
|
|
this.setState({
|
|
@@ -1062,7 +1173,7 @@ const MyClient = Form.create()(React.createClass({
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//拜访modul函数
|
|
//拜访modul函数
|
|
- visitOk(e) {
|
|
|
|
|
|
+ visitOk(e) {
|
|
this.setState({
|
|
this.setState({
|
|
visitModul:false
|
|
visitModul:false
|
|
});
|
|
});
|
|
@@ -1073,10 +1184,56 @@ const MyClient = Form.create()(React.createClass({
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//拜访保存函数
|
|
//拜访保存函数
|
|
- visitSubmit(){
|
|
|
|
- this.setState({
|
|
|
|
- visitModul:false,
|
|
|
|
|
|
+ visitSubmit(e){
|
|
|
|
+ e.preventDefault();
|
|
|
|
+ this.state.data=[];
|
|
|
|
+ this.setState({
|
|
|
|
+ selectedRowKeys: [],
|
|
|
|
+ });
|
|
|
|
+ this.setState({
|
|
|
|
+ loading: true
|
|
|
|
+ });
|
|
|
|
+ let conName=this.state.lastname;
|
|
|
|
+ let ocbIds='';
|
|
|
|
+ this.state.orderStatusOption.map(function(item){
|
|
|
|
+ if(item.name==conName){
|
|
|
|
+ ocbIds=item.ocbId
|
|
|
|
+ }
|
|
|
|
+ return ocbIds;
|
|
})
|
|
})
|
|
|
|
+ //新增
|
|
|
|
+ $.ajax({
|
|
|
|
+ method: "get",
|
|
|
|
+ dataType: "json",
|
|
|
|
+ url:this.state.contacts?globalConfig.context + '/api/admin/customer/addFollow':globalConfig.context + '/api/admin/customer/updateFollow',
|
|
|
|
+ data: this.state.contacts?{
|
|
|
|
+ userBusinessList:JSON.stringify(this.state.data),
|
|
|
|
+ uid: this.state.Accountuid,
|
|
|
|
+ ocbId: ocbIds,
|
|
|
|
+ result: this.state.result,
|
|
|
|
+ followTime: this.state.followTime,
|
|
|
|
+ }:{
|
|
|
|
+ userBusinessList:JSON.stringify(this.state.data),
|
|
|
|
+ uid: this.state.Accountuid,
|
|
|
|
+ ocbId: ocbIds,
|
|
|
|
+ result: this.state.result,
|
|
|
|
+ followTime: this.state.followTime,
|
|
|
|
+ userBusinessList: this.state.userBusinessList,
|
|
|
|
+ contactType:this.state.contactType
|
|
|
|
+ }
|
|
|
|
+ }).done(function (data) {
|
|
|
|
+ this.setState({
|
|
|
|
+ loading: false
|
|
|
|
+ });
|
|
|
|
+ if (!data.error.length) {
|
|
|
|
+ message.success('保存成功!');
|
|
|
|
+ this.loadVisit(); //
|
|
|
|
+ this.loadData();
|
|
|
|
+ this.visitCancel()
|
|
|
|
+ } else {
|
|
|
|
+ message.warning(data.error[0].message);
|
|
|
|
+ }
|
|
|
|
+ }.bind(this));
|
|
},
|
|
},
|
|
//根据获取的联系人获取到电话号码函数
|
|
//根据获取的联系人获取到电话号码函数
|
|
hundleName(e){
|
|
hundleName(e){
|
|
@@ -1086,6 +1243,17 @@ const MyClient = Form.create()(React.createClass({
|
|
nub:changNub.mobile
|
|
nub:changNub.mobile
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //添加新业务及单位客户详情新增
|
|
|
|
+ addNew() {
|
|
|
|
+ this.state.data.push({
|
|
|
|
+ id: null,
|
|
|
|
+ name: '',
|
|
|
|
+ url: ''
|
|
|
|
+ });
|
|
|
|
+ this.setState({
|
|
|
|
+ data: this.state.data
|
|
|
|
+ })
|
|
|
|
+ },
|
|
//tab中列表点击修改拜访详情
|
|
//tab中列表点击修改拜访详情
|
|
//获取拜访详情ajax
|
|
//获取拜访详情ajax
|
|
loadVisit(pageNo) {
|
|
loadVisit(pageNo) {
|
|
@@ -1094,7 +1262,7 @@ const MyClient = Form.create()(React.createClass({
|
|
loading: true
|
|
loading: true
|
|
});
|
|
});
|
|
$.ajax({
|
|
$.ajax({
|
|
- method: "post",
|
|
|
|
|
|
+ method: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
url:globalConfig.context + '/api/admin/customer/listFollowHistory',
|
|
url:globalConfig.context + '/api/admin/customer/listFollowHistory',
|
|
@@ -1137,23 +1305,7 @@ const MyClient = Form.create()(React.createClass({
|
|
});
|
|
});
|
|
}.bind(this));
|
|
}.bind(this));
|
|
},
|
|
},
|
|
- visitModify(e){
|
|
|
|
- this.setState({
|
|
|
|
- visitModul:true,
|
|
|
|
- })
|
|
|
|
- this.getNewWoman(e);
|
|
|
|
- },
|
|
|
|
- //拜访记录删除
|
|
|
|
- visitDelet(e){
|
|
|
|
- console.log(e)
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- //顶部搜索省份函数
|
|
|
|
- onChange(value, selectedOptions) {
|
|
|
|
- this.setState({
|
|
|
|
- addressSearch:selectedOptions
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
//修改密码Modul
|
|
//修改密码Modul
|
|
modifyPassworld(){
|
|
modifyPassworld(){
|
|
this.setState({
|
|
this.setState({
|
|
@@ -1204,27 +1356,28 @@ const MyClient = Form.create()(React.createClass({
|
|
method: "get",
|
|
method: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url: globalConfig.context + "/api/admin/customer/findCustomerUserList",
|
|
|
|
|
|
+ url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
|
|
data:{
|
|
data:{
|
|
- uid:ids.id,
|
|
|
|
|
|
+ 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({
|
|
|
|
- telNumArr:thedata,
|
|
|
|
- orderStatusOption: theArr,
|
|
|
|
- });
|
|
|
|
|
|
+ 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({
|
|
|
|
+ telNumArr:thedata,
|
|
|
|
+ orderStatusOption: theArr,
|
|
|
|
+ });
|
|
}.bind(this),
|
|
}.bind(this),
|
|
}).always(function () {
|
|
}).always(function () {
|
|
this.setState({
|
|
this.setState({
|
|
@@ -1420,7 +1573,8 @@ const MyClient = Form.create()(React.createClass({
|
|
const formItemLayput = {
|
|
const formItemLayput = {
|
|
labelCol: { span: 10 },
|
|
labelCol: { span: 10 },
|
|
wrapperCol: { span: 14 },
|
|
wrapperCol: { span: 14 },
|
|
- };
|
|
|
|
|
|
+ };
|
|
|
|
+ const contacts=this.state.contacts || '';
|
|
return (
|
|
return (
|
|
<div className="user-content" >
|
|
<div className="user-content" >
|
|
<div className="content-title">
|
|
<div className="content-title">
|
|
@@ -1437,11 +1591,8 @@ const MyClient = Form.create()(React.createClass({
|
|
{this.state.Provinces}
|
|
{this.state.Provinces}
|
|
</Select>
|
|
</Select>
|
|
<span style={{marginRight:'10px'}}>
|
|
<span style={{marginRight:'10px'}}>
|
|
- {getFieldDecorator('addressSearch', {
|
|
|
|
- initialValue: this.state.addressSearch
|
|
|
|
- })(
|
|
|
|
- <Cascader options={citySelect()} placeholder="详细地址" onChange={this.onChange}/>
|
|
|
|
- )}
|
|
|
|
|
|
+ <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
|
|
|
|
+ onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
|
|
</span>
|
|
</span>
|
|
<Button type="primary" onClick={this.search}>搜索</Button>
|
|
<Button type="primary" onClick={this.search}>搜索</Button>
|
|
<Button onClick={this.reset}>重置</Button>
|
|
<Button onClick={this.reset}>重置</Button>
|
|
@@ -1631,7 +1782,7 @@ const MyClient = Form.create()(React.createClass({
|
|
<div className="clearfix" style={{paddingLeft:'60px'}}>
|
|
<div className="clearfix" style={{paddingLeft:'60px'}}>
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
labelCol={{ span: 4 }}
|
|
labelCol={{ span: 4 }}
|
|
- wrapperCol={{ span: 18 }}
|
|
|
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
label="行业"
|
|
label="行业"
|
|
>
|
|
>
|
|
<Select placeholder="选择行业" value={this.state.industry} onChange={(e) => {
|
|
<Select placeholder="选择行业" value={this.state.industry} onChange={(e) => {
|
|
@@ -1664,12 +1815,9 @@ const MyClient = Form.create()(React.createClass({
|
|
labelCol={{ span: 4 }}
|
|
labelCol={{ span: 4 }}
|
|
wrapperCol={{ span: 18 }}
|
|
wrapperCol={{ span: 18 }}
|
|
label="省-市-区"
|
|
label="省-市-区"
|
|
- >
|
|
|
|
- {getFieldDecorator('ProvinceCity', {
|
|
|
|
- initialValue: this.state.ProvinceCity
|
|
|
|
- })(
|
|
|
|
- <Cascader options={areaSelect()} placeholder="省-市-区" />
|
|
|
|
- )}
|
|
|
|
|
|
+ >
|
|
|
|
+ <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市"
|
|
|
|
+ onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
labelCol={{ span: 4 }}
|
|
labelCol={{ span: 4 }}
|
|
@@ -1857,7 +2005,7 @@ const MyClient = Form.create()(React.createClass({
|
|
</TabPane>
|
|
</TabPane>
|
|
<TabPane tab="联系人信息" key="2">
|
|
<TabPane tab="联系人信息" key="2">
|
|
<div className="clearfix" >
|
|
<div className="clearfix" >
|
|
- <Button className="ContactsList" type="primary" onClick={this.addContact}>新增</Button>
|
|
|
|
|
|
+ <Button className="ContactsList" type="primary" onClick={this.addNew}>新增</Button>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
<Spin spinning={this.state.loading}>
|
|
<Spin spinning={this.state.loading}>
|
|
@@ -1989,7 +2137,8 @@ const MyClient = Form.create()(React.createClass({
|
|
<Table
|
|
<Table
|
|
pagination={this.state.paginations}
|
|
pagination={this.state.paginations}
|
|
columns={this.state.visitsList}
|
|
columns={this.state.visitsList}
|
|
- dataSource={data}
|
|
|
|
|
|
+ dataSource={this.state.data}
|
|
|
|
+ onRowClick={this.VisitRowClick}
|
|
/>
|
|
/>
|
|
</Spin>
|
|
</Spin>
|
|
</div>
|
|
</div>
|
|
@@ -2029,14 +2178,14 @@ const MyClient = Form.create()(React.createClass({
|
|
onOk={this.visitOk}
|
|
onOk={this.visitOk}
|
|
onCancel={this.visitCancel}
|
|
onCancel={this.visitCancel}
|
|
>
|
|
>
|
|
- <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
|
|
|
|
|
|
+ <Form horizontal id="demand-form" onSubmit={this.visitSubmit}>
|
|
<Spin spinning={this.state.loading}>
|
|
<Spin spinning={this.state.loading}>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
label="拜访方式" >
|
|
label="拜访方式" >
|
|
- <Radio.Group value={this.state.styles} onChange={(e) => {
|
|
|
|
- this.setState({ styles: e.target.value })
|
|
|
|
|
|
+ <Radio.Group value={this.state.contactType} onChange={(e) => {
|
|
|
|
+ this.setState({ contactType: e.target.value })
|
|
}}>
|
|
}}>
|
|
<Radio value={0}>外出</Radio>
|
|
<Radio value={0}>外出</Radio>
|
|
<Radio value={1}>电话</Radio>
|
|
<Radio value={1}>电话</Radio>
|
|
@@ -2055,19 +2204,19 @@ const MyClient = Form.create()(React.createClass({
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
label="客户名称"
|
|
label="客户名称"
|
|
>
|
|
>
|
|
- <span>{this.state.name}</span>
|
|
|
|
|
|
+ <span>{this.state.identityName}</span>
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
label="拜访人"
|
|
label="拜访人"
|
|
>
|
|
>
|
|
- <span>{this.state.baifangren}</span>
|
|
|
|
|
|
+ <span>{this.state.adminName}</span>
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
label="当前联系人"
|
|
label="当前联系人"
|
|
>
|
|
>
|
|
- <span>{this.state.lianxiren}</span>
|
|
|
|
|
|
+ <span>{contacts}</span>
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
@@ -2084,7 +2233,7 @@ const MyClient = Form.create()(React.createClass({
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
label="拜访时间"
|
|
label="拜访时间"
|
|
>
|
|
>
|
|
- <span>{this.state.baifangren}</span>
|
|
|
|
|
|
+ <span>{this.state.followTime}</span>
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
@@ -2098,21 +2247,21 @@ const MyClient = Form.create()(React.createClass({
|
|
labelCol={{ span: 4 }}
|
|
labelCol={{ span: 4 }}
|
|
wrapperCol={{ span: 16 }}
|
|
wrapperCol={{ span: 16 }}
|
|
label="拜访备注" >
|
|
label="拜访备注" >
|
|
- {getFieldDecorator('introduction', {
|
|
|
|
- initialValue: theInformation.introduction
|
|
|
|
|
|
+ {getFieldDecorator('result', {
|
|
|
|
+ initialValue: this.state.result
|
|
})(
|
|
})(
|
|
<Input type="textarea" rows={4} />
|
|
<Input type="textarea" rows={4} />
|
|
)}
|
|
)}
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
- <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addBusiness} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
|
|
|
|
|
|
+ <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
|
|
<div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
|
|
<div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
|
|
<Spin spinning={this.state.loading}>
|
|
<Spin spinning={this.state.loading}>
|
|
<Table
|
|
<Table
|
|
- pagination={this.state.paginations}
|
|
|
|
|
|
+ pagination={false}
|
|
columns={this.state.intentionList}
|
|
columns={this.state.intentionList}
|
|
- dataSource={data}
|
|
|
|
|
|
+ dataSource={this.state.data}
|
|
/>
|
|
/>
|
|
</Spin>
|
|
</Spin>
|
|
</div>
|
|
</div>
|