|
|
@@ -80,7 +80,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
data: {
|
|
|
pageNo: pageNo || 1,
|
|
|
pageSize: this.state.pagination.pageSize,
|
|
|
- type: this.state.typeSearch, //名称1
|
|
|
+ type: this.state.typeSearch, //名称1
|
|
|
name: this.state.nameSearch,
|
|
|
province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
|
|
|
city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
|
|
|
@@ -284,7 +284,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
dataIndex: 'remarks',
|
|
|
key: 'remarks',
|
|
|
render: (text, record, index) => {
|
|
|
- return <Input value={record.remarks} placeholder="跟进说明"
|
|
|
+ return <Input value={record.remarks} placeholder="跟进说明"
|
|
|
onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
|
|
|
style={{width:'120px'}}/>
|
|
|
}
|
|
|
@@ -421,7 +421,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
key: 'name',
|
|
|
render: (text, record, index) => {
|
|
|
return <Input value={record.name} placeholder="姓名(必填项)" key={record.id} required="required"
|
|
|
- onChange={(e) => { record.name = e.target.value;
|
|
|
+ onChange={(e) => { record.name = e.target.value;
|
|
|
this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/>
|
|
|
}
|
|
|
}, {
|
|
|
@@ -486,7 +486,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
dataIndex: 'dels',
|
|
|
key: 'dels',
|
|
|
render: (text, record, index) => {
|
|
|
- return <div>{adminData.isSuperAdmin ?
|
|
|
+ return <div>{adminData.isSuperAdmin ?
|
|
|
<Popconfirm title="是否删除?" onConfirm={(e)=>{this.confirmDelet(record)}} okText="删除" cancelText="不删除">
|
|
|
<Button style={{marginRight:'10px',color:'#ffffff',background:'#f00',border:'none'}}>删除</Button>
|
|
|
</Popconfirm>
|
|
|
@@ -582,7 +582,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
key: 'abc',
|
|
|
render: (text, record, index) => {
|
|
|
return <div>
|
|
|
- <Button onClick={(e) =>{ e.stopPropagation(), this.visit(record)}} type="primary">拜访</Button>
|
|
|
+ <Button onClick={(e) =>{ e.stopPropagation(), this.visit(record)}} type="primary">拜访</Button>
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
@@ -606,7 +606,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
url: globalConfig.context + "/api/admin/customer/updateMainContact",
|
|
|
data: {
|
|
|
uid:this.state.rowId,
|
|
|
- ocbId: record.id
|
|
|
+ ocbId: record.id
|
|
|
}
|
|
|
}).done(function(data) {
|
|
|
if(!data.error.length) {
|
|
|
@@ -744,7 +744,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/customer/deleteFollow",
|
|
|
data: {
|
|
|
- followId: e.followId, //删除的ID
|
|
|
+ followId: e.followId, //删除的ID
|
|
|
}
|
|
|
}).done(function(data) {
|
|
|
if(!data.error.length) {
|
|
|
@@ -758,7 +758,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
this.loadVisit();
|
|
|
}.bind(this));
|
|
|
},
|
|
|
- //进入修改拜访记录
|
|
|
+ //进入修改拜访记录
|
|
|
visitModify(e) {
|
|
|
this.setState({
|
|
|
visitModul: true,
|
|
|
@@ -864,7 +864,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/customer/deleteCustomer",
|
|
|
data: {
|
|
|
- uid: deletedIds, //删除的ID
|
|
|
+ uid: deletedIds, //删除的ID
|
|
|
}
|
|
|
}).done(function(data) {
|
|
|
if(!data.error.length) {
|
|
|
@@ -946,7 +946,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
reset() {
|
|
|
this.state.isMemberSearch = undefined;
|
|
|
this.state.internationalSearch = undefined;
|
|
|
- this.state.typeSearch = undefined; //名称1
|
|
|
+ this.state.typeSearch = undefined; //名称1
|
|
|
this.state.nameSearch = '';
|
|
|
this.state.addressSearch = [];
|
|
|
this.state.provinceSearch = undefined;
|
|
|
@@ -1833,7 +1833,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context + "/api/admin/customer/deleteOneContact",
|
|
|
data: {
|
|
|
- ocbId: e.id, //删除的ID
|
|
|
+ ocbId: e.id, //删除的ID
|
|
|
}
|
|
|
}).done(function(data) {
|
|
|
if(!data.error.length) {
|
|
|
@@ -1901,7 +1901,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
}.bind(this));
|
|
|
},
|
|
|
//指定转交人自动补全
|
|
|
- supervisor(e){
|
|
|
+ supervisor(e){
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
@@ -1910,23 +1910,23 @@ const MyClient = Form.create()(React.createClass({
|
|
|
data:{
|
|
|
adminName:e
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
+ success: function (data) {
|
|
|
let thedata=data.data;
|
|
|
if (!thedata) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- thedata = {};
|
|
|
- };
|
|
|
+ };
|
|
|
+ thedata = {};
|
|
|
+ };
|
|
|
this.setState({
|
|
|
- customerArr:thedata,
|
|
|
+ customerArr:thedata,
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
- }.bind(this));
|
|
|
+ }.bind(this));
|
|
|
},
|
|
|
//上级主管输入框失去焦点是判断客户是否存在
|
|
|
selectAuto(value,options){
|
|
|
@@ -1942,7 +1942,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
if (item.name == e.toString()) {
|
|
|
theType = item.id;
|
|
|
}
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
this.setState({
|
|
|
theTypes:theType
|
|
|
@@ -1951,8 +1951,8 @@ const MyClient = Form.create()(React.createClass({
|
|
|
//值改变时请求客户名称
|
|
|
httpChange(e){
|
|
|
if(e.length>=1){
|
|
|
- this.supervisor(e);
|
|
|
- }
|
|
|
+ this.supervisor(e);
|
|
|
+ }
|
|
|
this.setState({
|
|
|
auto:e
|
|
|
})
|
|
|
@@ -1968,7 +1968,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
let rowItem = this.state.selectedRows[idx];
|
|
|
if(rowItem.id) {
|
|
|
changeIds = rowItem.id;
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
};
|
|
|
$.ajax({
|
|
|
@@ -1978,7 +1978,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
url: globalConfig.context + "/api/admin/customer/transferToOther",
|
|
|
data: {
|
|
|
uid: changeIds, //这一行数据的ID
|
|
|
- aid: this.state.theTypes, //指定转交人的ID
|
|
|
+ aid: this.state.theTypes, //指定转交人的ID
|
|
|
}
|
|
|
}).done(function(data) {
|
|
|
if(!data.error.length) {
|
|
|
@@ -2060,29 +2060,29 @@ const MyClient = Form.create()(React.createClass({
|
|
|
)
|
|
|
return(
|
|
|
<div className="user-content" >
|
|
|
- <div className="content-title">
|
|
|
+ <div className="content-title">
|
|
|
<span>我的单位客户</span>
|
|
|
</div>
|
|
|
- <div className="user-search">
|
|
|
+ <div className="user-search">
|
|
|
<Input placeholder="客户名称"
|
|
|
value={this.state.nameSearch}
|
|
|
- onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
|
|
|
+ onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
|
|
|
<Select placeholder="省"
|
|
|
style={{ width: 80 }}
|
|
|
value={this.state.provinceSearch}
|
|
|
onChange={(e) => {this.setState({ provinceSearch: e});}}>
|
|
|
{this.state.Provinces}
|
|
|
- </Select>
|
|
|
- <span style={{marginRight:'10px'}}>
|
|
|
+ </Select>
|
|
|
+ <span style={{marginRight:'10px'}}>
|
|
|
<Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
|
|
|
- onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
|
|
|
+ onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
|
|
|
</span>
|
|
|
<Button type="primary" onClick={this.search}>搜索</Button>
|
|
|
- <Button onClick={this.reset}>重置</Button>
|
|
|
+ <Button onClick={this.reset}>重置</Button>
|
|
|
<Button onClick={() => { window.open(globalConfig.context + '/api/admin/customer/downloadTemplate?type=1') }} style={{display:'none'}}>下载批量导入模板</Button>
|
|
|
- <Upload
|
|
|
+ <Upload
|
|
|
name="file"
|
|
|
- action={globalConfig.context + "/api/admin/customer/uploadExcel"}
|
|
|
+ action={globalConfig.context + "/api/admin/customer/uploadExcel"}
|
|
|
beforeUpload={beforeUploadFile}
|
|
|
showUploadList={false}
|
|
|
onChange={(info) => {
|
|
|
@@ -2102,10 +2102,10 @@ const MyClient = Form.create()(React.createClass({
|
|
|
};
|
|
|
}} >
|
|
|
<Button style={{display:'none'}}> 上传批量内容</Button>
|
|
|
- </Upload>
|
|
|
+ </Upload>
|
|
|
{adminData.isSuperAdmin?<Popconfirm title="是否删除?" onConfirm={this.delectRow} okText="是" cancelText="否">
|
|
|
<Button type="danger" style={{marginLeft:'10px'}}
|
|
|
- disabled={!hasSelected}
|
|
|
+ disabled={!hasSelected}
|
|
|
>删除<Icon type="minus" />
|
|
|
</Button>
|
|
|
</Popconfirm>:''
|
|
|
@@ -2126,18 +2126,18 @@ const MyClient = Form.create()(React.createClass({
|
|
|
disabled={!hasSelected}
|
|
|
>
|
|
|
<Input />
|
|
|
- </AutoComplete>
|
|
|
- <Button type="primary" onClick={this.changeAssigner} disabled={!hasSelected} >转交</Button>
|
|
|
+ </AutoComplete>
|
|
|
+ <Button type="primary" onClick={this.changeAssigner} disabled={!hasSelected} >转交</Button>
|
|
|
<Button type='primary' disabled={!hasSelected}
|
|
|
onClick={this.changeRow}>转为公共客户<Icon /></Button>
|
|
|
<span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
|
|
|
- <Button type="primary" className="addButton" onClick={this.addClick}>新增客户<Icon type="plus" /></Button>
|
|
|
+ <Button type="primary" className="addButton" onClick={this.addClick}>新增客户<Icon type="plus" /></Button>
|
|
|
<div className='clearfix' style={{marginTop:'5px'}}>
|
|
|
- <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
|
|
|
+ <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
|
|
|
<RangePicker
|
|
|
value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
|
|
|
this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
|
|
|
- onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
|
|
|
+ onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
|
|
|
<Select placeholder="账户状态"
|
|
|
style={{ width: 100 }}
|
|
|
value={this.state.statusSearch}
|
|
|
@@ -2204,34 +2204,35 @@ const MyClient = Form.create()(React.createClass({
|
|
|
})
|
|
|
}
|
|
|
</Select>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div className="patent-table">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<Table columns={this.state.columns}
|
|
|
- dataSource={this.state.dataSource}
|
|
|
+ dataSource={this.state.dataSource}
|
|
|
rowSelection={rowSelection}
|
|
|
- pagination={this.state.pagination}
|
|
|
+ pagination={this.state.pagination}
|
|
|
onRowClick={this.tableRowClick}
|
|
|
/>
|
|
|
</Spin>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<CustomerDetail
|
|
|
- data={this.state.RowData}
|
|
|
+ data={this.state.RowData}
|
|
|
showDesc={this.state.showDesc}
|
|
|
- closeDesc={this.closeDesc}
|
|
|
+ closeDesc={this.closeDesc}
|
|
|
newmodal={this.newmodal}
|
|
|
/>
|
|
|
- <Modal
|
|
|
- className="customeDetails"
|
|
|
+ <Modal
|
|
|
+ maskClosable={false}
|
|
|
+ className="customeDetails"
|
|
|
title="单位客户详情"
|
|
|
width='1300px'
|
|
|
visible={this.state.modal5Visible}
|
|
|
onOk={this.detailsModal}
|
|
|
onCancel={this.detailsModal}
|
|
|
footer=''
|
|
|
- >
|
|
|
+ >
|
|
|
<Tabs onChange={this.callback} activeKey={this.state.callnub}>
|
|
|
<TabPane tab="基本信息" key="1">
|
|
|
<Form horizontal onSubmit={this.newSubmit} id="demand-form">
|
|
|
@@ -2246,7 +2247,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix" style={{paddingLeft:'60px'}}>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="行业">
|
|
|
@@ -2260,11 +2261,11 @@ const MyClient = Form.create()(React.createClass({
|
|
|
</Select>
|
|
|
<span style={{color:'red',marginLeft:'15px'}}>*</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="社会属性"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="客户社会属性(必填项)" value={this.state.societyTag} style={{width:'300px'}}
|
|
|
onChange={(e)=>{this.setState({societyTag:e})}}>
|
|
|
{
|
|
|
@@ -2275,11 +2276,11 @@ const MyClient = Form.create()(React.createClass({
|
|
|
</Select>
|
|
|
<span style={{color:'red',marginLeft:'15px'}}>*</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="省-市-区"
|
|
|
- >
|
|
|
+ >
|
|
|
<Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
|
|
|
onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
|
|
|
<span style={{color:'red',marginLeft:'15px'}}>*</span>
|
|
|
@@ -2289,7 +2290,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="通信地址"
|
|
|
>
|
|
|
- <Input placeholder="客户通信地址" value={this.state.postalAddress}
|
|
|
+ <Input placeholder="客户通信地址" value={this.state.postalAddress}
|
|
|
onChange={(e)=>{this.setState({postalAddress:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
@@ -2297,7 +2298,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="固定电话"
|
|
|
>
|
|
|
- <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
|
|
|
+ <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
|
|
|
onChange={(e)=>{this.setState({contactsFixedTel:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
@@ -2305,7 +2306,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="客户传真"
|
|
|
>
|
|
|
- <Input placeholder="客户传真" value={this.state.contactsFax}
|
|
|
+ <Input placeholder="客户传真" value={this.state.contactsFax}
|
|
|
onChange={(e)=>{this.setState({contactsFax:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
@@ -2329,7 +2330,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="法人名称"
|
|
|
>
|
|
|
- <Input placeholder="法人名称" value={this.state.legalPerson}
|
|
|
+ <Input placeholder="法人名称" value={this.state.legalPerson}
|
|
|
onChange={(e)=>{this.setState({legalPerson:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
@@ -2337,10 +2338,10 @@ const MyClient = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="身份证号码"
|
|
|
>
|
|
|
- <Input placeholder="法人身份证号码" value={this.state.legalPersonIdCard}
|
|
|
+ <Input placeholder="法人身份证号码" value={this.state.legalPersonIdCard}
|
|
|
onChange={(e)=>{this.setState({legalPersonIdCard:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="主要联系人"
|
|
|
@@ -2348,7 +2349,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
|
|
|
this.setState({ contacts: e.target.value })}}/>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="主要联系人号码"
|
|
|
@@ -2360,8 +2361,8 @@ const MyClient = Form.create()(React.createClass({
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="法人电话"
|
|
|
- >
|
|
|
- <Input placeholder="法人电话" value={this.state.legalPersonTel}
|
|
|
+ >
|
|
|
+ <Input placeholder="法人电话" value={this.state.legalPersonTel}
|
|
|
onChange={(e)=>{this.setState({legalPersonTel:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
@@ -2369,7 +2370,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="电子邮箱"
|
|
|
>
|
|
|
- <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
|
|
|
+ <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
|
|
|
onChange={(e)=>{this.setState({legalPersonEmail:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
@@ -2377,7 +2378,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="机构代码"
|
|
|
>
|
|
|
- <Input placeholder="社会同意机构代码" value={this.state.orgCode}
|
|
|
+ <Input placeholder="社会同意机构代码" value={this.state.orgCode}
|
|
|
onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<div className="clearfix">
|
|
|
@@ -2444,54 +2445,54 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<FormItem
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
- label="单位logo" >
|
|
|
+ label="单位logo" >
|
|
|
<PicturesWall
|
|
|
pictureSign="logo"
|
|
|
fileList={this.getCompanyLogoUrl}
|
|
|
pictureUrl={this.state.companyLogoUrl} />
|
|
|
<p>图片建议:图片要清晰。</p>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem
|
|
|
labelCol={{ span: 2 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="业务范围" >
|
|
|
- <Input type="textarea" rows={4} value={this.state.businessScope}
|
|
|
+ <Input type="textarea" rows={4} value={this.state.businessScope}
|
|
|
onChange={(e)=>{this.setState({businessScope:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
<FormItem
|
|
|
labelCol={{ span: 2 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="单位简介" >
|
|
|
- <Input type="textarea" rows={4} value={this.state.introduction}
|
|
|
- onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
|
|
|
+ <Input type="textarea" rows={4} value={this.state.introduction}
|
|
|
+ onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'90px',marginBottom:'30px'}}>保存</Button>
|
|
|
+ <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'90px',marginBottom:'30px'}}>保存</Button>
|
|
|
<Button className="set-submit" type="ghost" onClick={this.detailsModal}>取消</Button>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</Spin>
|
|
|
- </Form>
|
|
|
+ </Form>
|
|
|
</TabPane>
|
|
|
<TabPane tab="联系人信息" key="2">
|
|
|
<div className="clearfix" >
|
|
|
- <Button className="ContactsList" type="primary" onClick={this.addcontact}>新增</Button>
|
|
|
+ <Button className="ContactsList" type="primary" onClick={this.addcontact}>新增</Button>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<Form horizontal id="demand-form" onSubmit={this.contactSave} >
|
|
|
- <Table
|
|
|
+ <Table
|
|
|
pagination={false}
|
|
|
- columns={this.state.ContactsLists}
|
|
|
+ columns={this.state.ContactsLists}
|
|
|
dataSource={this.state.contactList}
|
|
|
/>
|
|
|
<div className="clearfix">
|
|
|
- <Button type="primary" htmlType="submit" style={{fontSize:'16px',margin:'20px 25px 40px 120px'}}>保存</Button>
|
|
|
+ <Button type="primary" htmlType="submit" style={{fontSize:'16px',margin:'20px 25px 40px 120px'}}>保存</Button>
|
|
|
<Button type="ghost" onClick={this.detailsModal} style={{fontSize:'18px'}}>取消</Button>
|
|
|
</div>
|
|
|
- </Form>
|
|
|
- </Spin>
|
|
|
+ </Form>
|
|
|
+ </Spin>
|
|
|
</div>
|
|
|
</TabPane>
|
|
|
<TabPane tab="账户信息" key="3">
|
|
|
@@ -2508,33 +2509,33 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="注册用户名" >
|
|
|
- <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
|
|
|
+ <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="注册邮箱" >
|
|
|
- <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
|
|
|
+ <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
|
|
|
</FormItem>
|
|
|
<div className="clearfix">
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="客户来源" >
|
|
|
- <span>{this.state.source}</span>
|
|
|
+ <span>{this.state.source}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="客户类型" >
|
|
|
- <span>{this.state.type}</span>
|
|
|
+ <span>{this.state.type}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="创建时间" >
|
|
|
- <span>{this.state.createTimes}</span>
|
|
|
+ <span>{this.state.createTimes}</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="账户状态"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
|
|
|
{
|
|
|
statuslist.map(function (item) {
|
|
|
@@ -2548,7 +2549,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="会员"
|
|
|
- >
|
|
|
+ >
|
|
|
<Radio.Group value={this.state.isMember} onChange={(e) => {
|
|
|
this.setState({ isMember: e.target.value })
|
|
|
}}>
|
|
|
@@ -2556,10 +2557,10 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<Radio value={1}>是</Radio>
|
|
|
</Radio.Group>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="会员等级"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
|
|
|
{
|
|
|
lvl.map(function (item) {
|
|
|
@@ -2568,10 +2569,10 @@ const MyClient = Form.create()(React.createClass({
|
|
|
}
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="会员状态"
|
|
|
- >
|
|
|
+ >
|
|
|
<Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
|
|
|
{
|
|
|
currentMember.map(function (item) {
|
|
|
@@ -2582,59 +2583,60 @@ const MyClient = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <Button className='saveBtn' type="primary" htmlType="submit">保存</Button>
|
|
|
+ <Button className='saveBtn' type="primary" htmlType="submit">保存</Button>
|
|
|
<Button type="ghost" onClick={this.detailsModal}>取消</Button>
|
|
|
</div>
|
|
|
</Spin>
|
|
|
- </Form>
|
|
|
+ </Form>
|
|
|
</div>
|
|
|
</TabPane>
|
|
|
<TabPane tab="客户拜访" key="4">
|
|
|
<div className="clearfix">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
- <Table
|
|
|
+ <Table
|
|
|
pagination={false}
|
|
|
- columns={this.state.visitsList}
|
|
|
+ columns={this.state.visitsList}
|
|
|
dataSource={this.state.visitArrList}
|
|
|
onRowClick={this.VisitRowClick}
|
|
|
/>
|
|
|
- </Spin>
|
|
|
- </div>
|
|
|
- </TabPane>
|
|
|
+ </Spin>
|
|
|
+ </div>
|
|
|
+ </TabPane>
|
|
|
<TabPane tab="业务意向" key="5">
|
|
|
<div className="clearfix">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
- <Table
|
|
|
+ <Table
|
|
|
pagination={this.state.paginationt}
|
|
|
- columns={this.state.businessIntentionList}
|
|
|
+ columns={this.state.businessIntentionList}
|
|
|
dataSource={this.state.dataBusiness}
|
|
|
/>
|
|
|
- </Spin>
|
|
|
- </div>
|
|
|
+ </Spin>
|
|
|
+ </div>
|
|
|
</TabPane>
|
|
|
<TabPane tab="业务订单" key="6">
|
|
|
-
|
|
|
+
|
|
|
</TabPane>
|
|
|
<TabPane tab="技术需求" key="7">
|
|
|
-
|
|
|
+
|
|
|
</TabPane>
|
|
|
<TabPane tab="技术成果" key="8">
|
|
|
-
|
|
|
+
|
|
|
</TabPane>
|
|
|
<TabPane tab="技术专家" key="9">
|
|
|
-
|
|
|
+
|
|
|
</TabPane>
|
|
|
</Tabs>
|
|
|
</Modal>
|
|
|
- <Modal
|
|
|
+ <Modal
|
|
|
+ maskClosable={false}
|
|
|
className="customeDetails"
|
|
|
footer=''
|
|
|
title="拜访详情"
|
|
|
width='1000px'
|
|
|
visible={this.state.visitModul}
|
|
|
onOk={this.visitOk}
|
|
|
- onCancel={this.visitCancel}
|
|
|
- >
|
|
|
+ onCancel={this.visitCancel}
|
|
|
+ >
|
|
|
<Form horizontal id="demand-form" onSubmit={this.visitSubmit}>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="clearfix">
|
|
|
@@ -2642,7 +2644,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="拜访方式" >
|
|
|
<Radio.Group value={this.state.contactType} onChange={(e) => {
|
|
|
- this.setState({ contactType: e.target.value })
|
|
|
+ this.setState({ contactType: e.target.value })
|
|
|
}}>
|
|
|
<Radio value={0}>外出</Radio>
|
|
|
<Radio value={1}>电话</Radio>
|
|
|
@@ -2705,7 +2707,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 16 }}
|
|
|
label="拜访备注" >
|
|
|
- <Input type="textarea" rows={4} value={this.state.result}
|
|
|
+ <Input type="textarea" rows={4} value={this.state.result}
|
|
|
onChange={(e)=>{this.setState({result:e.target.value})}}/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
@@ -2713,29 +2715,30 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<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'}}>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
- <Table
|
|
|
+ <Table
|
|
|
rowKey={record => record.id}
|
|
|
pagination={false}
|
|
|
- columns={this.state.intentionList}
|
|
|
+ columns={this.state.intentionList}
|
|
|
dataSource={this.state.data}
|
|
|
/>
|
|
|
- </Spin>
|
|
|
- </div>
|
|
|
+ </Spin>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<Button type="primary" size="large" htmlType="submit" style={{margin:'15px 35px 35px 120px'}}>保存</Button>
|
|
|
<Button size="large" onClick={this.visitCancel}>取消</Button>
|
|
|
</Spin>
|
|
|
</Form>
|
|
|
- </Modal>
|
|
|
- <Modal
|
|
|
+ </Modal>
|
|
|
+ <Modal
|
|
|
+ maskClosable={false}
|
|
|
footer=''
|
|
|
title="修改密码"
|
|
|
width='600px'
|
|
|
visible={this.state.passworldModul}
|
|
|
onOk={this.passworldOk}
|
|
|
- onCancel={this.passworldCancel}
|
|
|
- >
|
|
|
+ onCancel={this.passworldCancel}
|
|
|
+ >
|
|
|
<div className="clearfix">
|
|
|
<Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
@@ -2743,52 +2746,53 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="原密码" >
|
|
|
- <Input type="password" value={this.state.companyNamet1} onChange={(e) => { this.setState({ companyNamet1: e.target.value }); }} required="required" />
|
|
|
+ <Input type="password" value={this.state.companyNamet1} onChange={(e) => { this.setState({ companyNamet1: e.target.value }); }} required="required" />
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="新密码" >
|
|
|
- <Input type="password" value={this.state.companyName1} onChange={(e) => { this.setState({ companyName1: e.target.value }); }} required="required" />
|
|
|
+ <Input type="password" value={this.state.companyName1} onChange={(e) => { this.setState({ companyName1: e.target.value }); }} required="required" />
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="确认密码" >
|
|
|
- <Input type="password" value={this.state.companyNam1} onChange={(e) => { this.setState({ companyNam1: e.target.value }); }} required="required" />
|
|
|
+ <Input type="password" value={this.state.companyNam1} onChange={(e) => { this.setState({ companyNam1: e.target.value }); }} required="required" />
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<Button type="primary" size="large" htmlType="submit" style={{margin:'15px 15px 20px 95px'}}>保存</Button>
|
|
|
<Button size="large" onClick={this.passworldCancel}>取消</Button>
|
|
|
</Spin>
|
|
|
- </Form>
|
|
|
- </div>
|
|
|
+ </Form>
|
|
|
+ </div>
|
|
|
</Modal>
|
|
|
<Modal
|
|
|
+ maskClosable={false}
|
|
|
footer=''
|
|
|
width='800px'
|
|
|
title="新增联系人"
|
|
|
visible={this.state.addcontactModul}
|
|
|
onOk={this.addcontactModulOK}
|
|
|
- onCancel={this.addcontactModulcancel}
|
|
|
+ onCancel={this.addcontactModulcancel}
|
|
|
>
|
|
|
<Form horizontal onSubmit={this.submitcontactman} id="demand-form">
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
- <Row>
|
|
|
- <FormItem
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <Row>
|
|
|
+ <FormItem
|
|
|
labelCol={{ span: 3 }}
|
|
|
wrapperCol={{ span: 14 }}
|
|
|
label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
|
|
|
<Radio.Group value={this.state.newsex} onChange={(e) => {
|
|
|
- this.setState({ newsex: e.target.value })
|
|
|
+ this.setState({ newsex: e.target.value })
|
|
|
}}>
|
|
|
<Radio value='男'>男</Radio>
|
|
|
<Radio value='女'>女</Radio>
|
|
|
</Radio.Group>
|
|
|
- </FormItem>
|
|
|
- </Row>
|
|
|
+ </FormItem>
|
|
|
+ </Row>
|
|
|
<Row style={{ paddingLeft:'50px' }}>
|
|
|
<Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>
|
|
|
<Col span={8}>
|
|
|
@@ -2800,7 +2804,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<Input value={this.state.newmobile} required="required"
|
|
|
onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />
|
|
|
</Col>
|
|
|
-
|
|
|
+
|
|
|
</Row>
|
|
|
<Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
|
|
|
<Col span={2}>微信:</Col>
|
|
|
@@ -2825,8 +2829,8 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<Input value={this.state.newposition}
|
|
|
onChange={(e) => { this.setState({ newposition: e.target.value }) }} />
|
|
|
</Col>
|
|
|
- </Row>
|
|
|
- <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
|
|
|
+ </Row>
|
|
|
+ <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
|
|
|
<Col span={2}>邮箱:</Col>
|
|
|
<Col span={8}>
|
|
|
<Input value={this.state.newemail}
|
|
|
@@ -2838,16 +2842,17 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<Button className="set-submit" type="ghost" onClick={this.addcontactModulcancel} id='change_rem'>取消</Button>
|
|
|
</Row>
|
|
|
</Spin>
|
|
|
- </Form>
|
|
|
+ </Form>
|
|
|
</Modal>
|
|
|
- <Modal
|
|
|
+ <Modal
|
|
|
+ maskClosable={false}
|
|
|
footer=''
|
|
|
title="业务意向详情"
|
|
|
width='1000px'
|
|
|
visible={this.state.businessModul}
|
|
|
onOk={this.businessIntentionOk}
|
|
|
- onCancel={this.businessIntentionCancel}
|
|
|
- >
|
|
|
+ onCancel={this.businessIntentionCancel}
|
|
|
+ >
|
|
|
<div className="clearfix">
|
|
|
<Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
@@ -2894,26 +2899,27 @@ const MyClient = Form.create()(React.createClass({
|
|
|
<div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
|
|
|
<div className="clearfix">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
- <Table
|
|
|
+ <Table
|
|
|
pagination={this.state.paginations}
|
|
|
- columns={this.state.businessFollowList}
|
|
|
+ columns={this.state.businessFollowList}
|
|
|
dataSource={this.state.visitArrList}
|
|
|
/>
|
|
|
- </Spin>
|
|
|
- </div>
|
|
|
+ </Spin>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</Spin>
|
|
|
- </Form>
|
|
|
- </div>
|
|
|
+ </Form>
|
|
|
+ </div>
|
|
|
</Modal>
|
|
|
- <Modal
|
|
|
+ <Modal
|
|
|
+ maskClosable={false}
|
|
|
footer=''
|
|
|
title="业务跟进详情"
|
|
|
width='600px'
|
|
|
visible={this.state.businessFollowModul}
|
|
|
onOk={this.businessFollowOk}
|
|
|
- onCancel={this.businessFollowCancel}
|
|
|
- >
|
|
|
+ onCancel={this.businessFollowCancel}
|
|
|
+ >
|
|
|
<div className="clearfix">
|
|
|
<Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
@@ -2982,7 +2988,7 @@ const MyClient = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="拜访人" >
|
|
|
<span>{this.state.adminNames}</span>
|
|
|
- </FormItem>
|
|
|
+ </FormItem>
|
|
|
<div className="clearfix">
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
@@ -2992,11 +2998,11 @@ const MyClient = Form.create()(React.createClass({
|
|
|
</div>
|
|
|
</div>
|
|
|
</Spin>
|
|
|
- </Form>
|
|
|
- </div>
|
|
|
+ </Form>
|
|
|
+ </div>
|
|
|
</Modal>
|
|
|
</div >
|
|
|
);
|
|
|
}
|
|
|
}));
|
|
|
-export default MyClient;
|
|
|
+export default MyClient;
|