liting2017 7 years ago
parent
commit
6f897c77b8

+ 172 - 33
js/component/manageCenter/customer/companyCustomer.jsx

@@ -8,9 +8,6 @@ const { Column, ColumnGroup } = Table;
 import { orderStatusList,cityArr,customerStatus,intentionalService,newFollow} from '../../dataDic.js';
 import { beforeUploadFile,getOrderStatus, getSearchUrl,getcustomerTyp,getcityArr,getcustomerStatue,getCompanyIntention,getfllowSituation,getsex} from '../../tools.js';
 
-
-
-
 //查询功能和初始列表
 const PublicCustomer = React.createClass({
     loadData(pageNo, detailApiUrl) {    	
@@ -26,13 +23,13 @@ const PublicCustomer = React.createClass({
             data: {
                 pageNo: pageNo || 1,
                 pageSize: this.state.pagination.pageSize,               
-                companyName: this.state.companyName, //名称1                
-				customerType: this.state.customerType, //客户类型1
-              	locationProvince:this.state.locationProvince,//地区
+                companyName: this.state.companyNamet, //名称1                
+				customerType: this.state.customerTypet, //客户类型1
+              	locationProvince:this.state.locationProvincet,//地区
 				customerStatus:this.state.customerStatust,//客户状态1
-				contactName:this.state.contactName,//联系人姓名1							
-				contactTel:this.state.contactTel,//联系人手机
-				companyIntention:this.state.companyIntention,//意向服务
+				contactName:this.state.contactNamet,//联系人姓名1							
+				contactTel:this.state.contactTelt,//联系人手机
+				companyIntention:this.state.companyIntentiont,//意向服务
                 followSituation:this.state.followSituationt,//最新跟进进度
 				//releaseDateStartDate: this.state.releaseDate[0],
                 //releaseDateEndDate: this.state.releaseDate[1],			
@@ -289,6 +286,11 @@ const PublicCustomer = React.createClass({
 	    	modal3Visible:false
 	    });	   	    
 	},
+	setModal4Visiblecancel(e) {
+	    this.setState({ 
+	    	modal4Visible:false
+	    });	   	    
+	},
    
     closeDesc(e, s) {
         this.state.showDesc = e;
@@ -300,18 +302,18 @@ const PublicCustomer = React.createClass({
         this.loadData();
     },
     reset() {
-    	this.state.companyName='';  
-    	this.state.customerType=undefined;
+    	this.state.companyNamet='';  
+    	this.state.customerTypet=undefined;
         this.state.id = undefined;
-        this.state.shareType = undefined;
-        this.state.companyIntention  = undefined;
-        this.state.followSituation  = undefined;
-        this.state.locationProvince  = undefined;
-        this.state.customerStatus  = undefined;
-        this.state.contactName   = undefined;
-        this.state.contactTel = undefined;
-        this.state.contactName = undefined;  
-        this.state.releaseDate = [];
+        this.state.shareTypet = undefined;
+        this.state.companyIntentiont  = undefined;
+        this.state.followSituationt  = undefined;
+        this.state.locationProvincet  = undefined;
+        this.state.customerStatust  = undefined;
+        this.state.contactNamet   = undefined;
+        this.state.contactTelt = undefined;
+        this.state.contactNamet = undefined;  
+        this.state.releaseDatet = [];
         this.loadData(); 
     },
     searchSwitch() {
@@ -380,6 +382,74 @@ const PublicCustomer = React.createClass({
 	    	 visible1:false
 	    });	   	    
 	},
+	
+	setModal4VisibleOk(e) {		
+		this.setState({ modal4Visible:true });			  
+        this.state.data = [];
+        this.setState({
+            loading: true
+        });  
+        let deletedIds=this.state.rowId; 
+         for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
+            let rowItem = this.state.selectedRows[idx];                          
+            if (rowItem.id) {
+                deletedIds=rowItem.id;               
+            };            
+        };       
+        $.ajax({
+            method: "get",
+            dataType: "json",
+            crossDomain: false,          
+            url:globalConfig.context + '/api/admin/customer/listCustomerLog',
+            data: {
+                  customerId:deletedIds                 	
+            },
+            success: function (data) {            	
+                let theArr = [];
+                let theWomanID=[];
+                let theFollowID=[];
+                if (!data.data) {
+                    if (data.error && data.error.length) {
+                        message.warning(data.error[0].message);
+                    };                   
+                } else {  
+                		data.data.map(function (item,index) {	
+							theWomanID.push(data.data[index].contactId);					          
+						});	
+						data.data.map(function (item,index) {	
+							theFollowID.push(data.data[index].followId);					          
+						});
+                    for (let i = 0; i < data.data.length; i++) {
+                        let thisdata = data.data[i];
+                        theArr.push({
+                        		key:i,                            
+                                operatorName:thisdata.operatorName,//操作员姓名
+                                operatorType:thisdata.operatorType,//操作类型
+                                operatorTime:thisdata.operatorTime,//操作时间
+                                beforeCustomerStatus:thisdata.beforeCustomerStatus,//修改前客户状态
+                                afterCustomerStatus:thisdata.afterCustomerStatus,//修改后客户状态
+                                beforeCustomerIntention:thisdata.beforeCustomerIntention,//修改前客户意向
+                                afterCustomerIntention:thisdata.afterCustomerIntention,//修改后客户意向
+                                beforeFollowSituation:thisdata.beforeFollowSituation,//修改前跟进进度
+                                afterFollowSituation:thisdata.afterFollowSituation,//修改后跟进进度
+                                beforeAdminName:thisdata.beforeAdminName,//修改前跟进人
+                                afterAdminName:thisdata.afterAdminName,//修改后跟进人                                                                                                                                           
+                        });
+                    };                   
+                };               
+                this.setState({//导出数据
+                    journal: theArr, 
+                    theWomanID:theWomanID,
+                    theFollowID:theFollowID,
+                });
+            }.bind(this),
+        }).always(function () {
+            this.setState({
+                loading: false
+            });
+        }.bind(this));
+    }, 
+	
 	//点击查看跟进记录,点击最新跟进的第一个按钮(跟进状态)执行的函数,将会出现很多跟进列表
 	setModal3VisibleOk(e) {		
 		this.setState({ modal3Visible:true });			  
@@ -466,18 +536,18 @@ const PublicCustomer = React.createClass({
                 </div>
                 <div className="user-search">                    
                     <Input placeholder="公司名称"
-                        value={this.state.companyName}
-                        onChange={(e) => { this.setState({ companyName: e.target.value }); }} /> 
+                        value={this.state.companyNamet}
+                        onChange={(e) => { this.setState({ companyNamet: e.target.value }); }} /> 
                     <Select placeholder="客户类型" style={{ width: 120 }}
-                            value={this.state.customerType }
-                            onChange={(e) => { this.setState({ customerType : e }) }}>
+                            value={this.state.customerTypet }
+                            onChange={(e) => { this.setState({ customerTypet : e }) }}>
                             <Select.Option value="0" >个人客户</Select.Option>
                             <Select.Option value="1" >公司客户</Select.Option>
                     </Select>     
                     <Select placeholder="意向服务"
                             style={{ width: 160 }}
-                            value={this.state.companyIntention}
-                            onChange={(e) => { this.setState({ companyIntention: e }) }}>
+                            value={this.state.companyIntentiont}
+                            onChange={(e) => { this.setState({ companyIntentiont: e }) }}>
                             {this.state.intentionalOption}
                     </Select>
                     <Select placeholder="跟进进度"
@@ -488,8 +558,8 @@ const PublicCustomer = React.createClass({
                     </Select>
                     <Select placeholder="地区"
                             style={{ width: 160 }}
-                            value={this.state.locationProvince}
-                            onChange={(e) => { this.setState({ locationProvince: e }) }}>
+                            value={this.state.locationProvincet}
+                            onChange={(e) => { this.setState({ locationProvincet: e }) }}>
                             {this.state.auditStatusOption}
                     </Select>
                     <Select placeholder="客户状态" style={{ width: 120 }}
@@ -498,16 +568,17 @@ const PublicCustomer = React.createClass({
                             {this.state.customerStatuarr}
                     </Select>
                     <Button type="primary" onClick={this.search}>搜索</Button>
-                    <Button onClick={this.reset}>重置</Button> 
+                    <Button onClick={this.reset}>重置</Button>
+                    <Button onClick={this.setModal4VisibleOk} style={{marginRight:'10px'}}  disabled={!hasSelected}>查看日志</Button>
                     <Button onClick={this.setModal3VisibleOk} style={{marginRight:'10px'}}  disabled={!hasSelected}>查看跟进记录</Button>
                     <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
                     <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>                    			                  
 		                <Input placeholder="联系人姓名" style={{width:'140px',marginRight:'10px'}}
-		                    value={this.state.contactName}
-		                    onChange={(e) => { this.setState({ contactName: e.target.value }); }} /> 
+		                    value={this.state.contactNamet}
+		                    onChange={(e) => { this.setState({ contactNamet: e.target.value }); }} /> 
 		                <Input placeholder="手机号码" style={{width:'140px',marginRight:'10px'}}
-		                    value={this.state.contactTel }
-		                    onChange={(e) => { this.setState({ contactTel: e.target.value }); }} />                          
+		                    value={this.state.contactTelt }
+		                    onChange={(e) => { this.setState({ contactTelt: e.target.value }); }} />                          
                     </div>
                 </div>
                 <div className="patent-table">
@@ -611,6 +682,74 @@ const PublicCustomer = React.createClass({
 						</Table>
 			        </Spin>	
 				</Modal>
+				<Modal
+				      footer=''
+			          title="日志记录列表"
+			          width='1400px'
+			          visible={this.state.modal4Visible}
+			          onOk={this.setModal4Visiblecancel}
+			          onCancel={this.setModal4Visiblecancel}							          							          
+			        >	
+			          <Spin spinning={this.state.loading}>	
+						    <Table dataSource={this.state.journal} >												    
+						      <Column
+						        title="操作员姓名"
+						        dataIndex="operatorName"
+						        key="operatorName"
+						      />
+						      <Column
+						        title="操作类型"
+						        dataIndex="operatorType"
+						        key="operatorType"						       						        							       
+						      />													    
+						    <Column
+						      title="操作时间"
+						      dataIndex="operatorTime"
+						      key="operatorTime"
+						    />
+						    <Column
+						      title="修改前客户状态"
+						      dataIndex="beforeCustomerStatus"
+						      key="beforeCustomerStatus"
+						    />
+						    <Column
+						      title="修改后客户状态"
+						      dataIndex="afterCustomerStatus"
+						      key="afterCustomerStatus"
+						    />
+						   <Column
+						      title="修改前客户意向"
+						      dataIndex="beforeCustomerIntention"
+						      key="beforeCustomerIntention"							     									      
+							/>
+						    <Column
+						      title="修改后客户意向"
+						      dataIndex="afterCustomerIntention"
+						      key="afterCustomerIntention"							     									      
+							/>						   
+						    <Column
+						      title="修改前跟进进度"
+						      dataIndex="beforeFollowSituation"
+						      key="beforeFollowSituation"							     									      
+							/>
+						    <Column
+						      title="修改后跟进进度"
+						      dataIndex="afterFollowSituation"
+						      key="afterFollowSituation"							     									      
+							/>
+						     <Column
+						      title="修改前跟进人"
+						      dataIndex="beforeAdminName"
+						      key="beforeAdminName"							     									      
+							/>
+						    <Column
+						      title="修改后跟进人"
+						      dataIndex="afterAdminName"
+						      key="afterAdminName"							     									      
+							/>
+						</Table>
+			        </Spin>	
+				</Modal>
             </div >
         );
     }

+ 80 - 77
js/component/manageCenter/customer/myClient.jsx

@@ -77,15 +77,7 @@ const AchievementList = Form.create()(React.createClass({
             url:globalConfig.context + '/api/admin/customer/listPrivateCustomer',
             data: {
  				pageNo: pageNo || 1,
-                pageSize: this.state.pagination.pageSize,               
-//              companyName: this.state.companyName, //名称1                
-//				customerType: this.state.customerType, //客户类型1
-//            	locationProvince:this.state.locationProvince,//地区
-//				customerStatus:this.state.customerStatus,//客户状态1
-//				contactName:this.state.contactName,//联系人姓名1							
-//				contactTel:this.state.contactTel,//联系人手机
-//				companyIntention:this.state.companyIntention,//意向服务
-//              followSituation:this.state.followSituation,//最新跟进进度		
+                pageSize: this.state.pagination.pageSize,                	
             },
             success: function (data) {            	
                 let theArr = [];
@@ -147,14 +139,14 @@ const AchievementList = Form.create()(React.createClass({
             data: {
  				pageNo: pageNo || 1,
                 pageSize: this.state.pagination.pageSize,               
-                companyName: this.state.companyName, //名称1                
-				customerType: this.state.customerType, //客户类型1
-              	locationProvince:this.state.locationProvince,//地区
-				customerStatus:this.state.customerStatus,//客户状态1
-				contactName:this.state.contactName,//联系人姓名1							
-				contactTel:this.state.contactTel,//联系人手机
-				companyIntention:this.state.companyIntention,//意向服务
-                followSituation:this.state.followSituation,//最新跟进进度		
+                companyName: this.state.companyNamet, //名称1                
+				customerType: this.state.customerTypet, //客户类型1
+              	locationProvince:this.state.locationProvincet,//地区
+				customerStatus:this.state.customerStatust,//客户状态1
+				contactName:this.state.contactNamet,//联系人姓名1							
+				contactTel:this.state.contactTelt,//联系人手机
+				companyIntention:this.state.companyIntentiont,//意向服务
+                followSituation:this.state.followSituationt,//最新跟进进度		
             },
             success: function (data) {            	
                 let theArr = [];
@@ -339,10 +331,20 @@ const AchievementList = Form.create()(React.createClass({
         this.getNewWoman(deletedIds);        
 	},
 	//点击出现函数
-	setModal2VisibleOk(e) {
+	setModal2VisibleOk(e) {		
 	    this.setState({ 
-	    	modal2Visible:true
-	    });  
+	    	modal2Visible:true	    	
+	    });	    
+    	this.state.hotst=undefined;
+    	this.state.hott=undefined;
+    	this.state.paymentIdt='';
+    	this.state.entIdt='';
+    	this.state.payt='';
+    	this.state.paymt='';
+    	this.state.paytIdtt='';
+    	this.state.paentIdt='';
+    	this.state.payIdt='';
+    	this.state.emailst='';
 	},
 	//点击消失函数
 	setModal2Visiblecancel(e) {
@@ -897,16 +899,16 @@ const AchievementList = Form.create()(React.createClass({
                     url: globalConfig.context + '/api/admin/customer/addContacter',
                     data: {
                         cid: deletedIds,//编号id
-                        sex:this.state.hot,//性别
-                        primaryFlg:this.state.hots,//是否是主要联系人
-                        name:this.state.paymentId,//联系人姓名
-                        mobile:this.state.paym,//座机
-                        telNum:this.state.pay,//电话
-                        qq:this.state.entId,//qq
-                       	wechat:this.state.payId,//微信
-                       	customerPosition:this.state.paentId,//职位
-                       	depatrment:this.state.paytId,//部门
-                       	email:this.state.emails,//邮箱                  
+                        sex:this.state.hott,//性别
+                        primaryFlg:this.state.hotst,//是否是主要联系人
+                        name:this.state.paymentIdt,//联系人姓名
+                        mobile:this.state.paymt,//座机
+                        telNum:this.state.payt,//电话
+                        qq:this.state.entIdt,//qq
+                       	wechat:this.state.payIdtt,//微信
+                       	customerPosition:this.state.paentIdt,//职位
+                       	depatrment:this.state.paytIdt,//部门
+                       	email:this.state.emailst,//邮箱                  
                     }
                 }).done(function (data) {                	
                     this.setState({
@@ -918,6 +920,7 @@ const AchievementList = Form.create()(React.createClass({
                     } else {
                         message.warning(data.error[0].message);
                     }
+                    this.setModal1VisibleOk();
                     //this.loadData();
                 }.bind(this));
             }
@@ -1755,8 +1758,8 @@ const AchievementList = Form.create()(React.createClass({
 								                        labelCol={{ span: 4 }}
 								                        wrapperCol={{ span: 14 }}
 								                        label="是否是主要联系人:"  style={{marginRight:'10px'}}>
-								                        <Radio.Group value={this.state.hots} onChange={(e) => {
-										                    this.setState({ hots: e.target.value })
+								                        <Radio.Group value={this.state.hotst} onChange={(e) => {
+										                    this.setState({ hotst: e.target.value })
 										                    }}>
 										                        <Radio value={0}>是</Radio>
 										                        <Radio value={1}>否</Radio>
@@ -1766,8 +1769,8 @@ const AchievementList = Form.create()(React.createClass({
 									                        labelCol={{ span: 4 }}
 									                        wrapperCol={{ span: 14 }}
 									                        label="性别:"  style={{marginRight:'10px',marginTop: '-15px'}}>
-									                        <Radio.Group value={this.state.hot} onChange={(e) => {
-											                    this.setState({ hot: e.target.value })
+									                        <Radio.Group value={this.state.hott} onChange={(e) => {
+											                    this.setState({ hott: e.target.value })
 											                    }}>
 											                        <Radio value={0}>男</Radio>
 											                        <Radio value={1}>女</Radio>
@@ -1777,50 +1780,50 @@ const AchievementList = Form.create()(React.createClass({
 											        <Row style={{ paddingLeft:'50px' }}>
 								                        <Col span={2}>姓名:</Col>
 						                                <Col span={8}>
-						                                    <Input value={this.state.paymentId}
-						                                        onChange={(e) => { this.setState({ paymentId: e.target.value }) }} />
+						                                    <Input value={this.state.paymentIdt}
+						                                        onChange={(e) => { this.setState({ paymentIdt: e.target.value }) }} />
 						                                </Col>
 						                                <Col span={2} style={{ marginLeft: '50px' }}>QQ号:</Col>
 						                                <Col span={8}>
-						                                    <Input value={this.state.entId}
-						                                        onChange={(e) => { this.setState({ entId: e.target.value }) }} />
+						                                    <Input value={this.state.entIdt}
+						                                        onChange={(e) => { this.setState({ entIdt: e.target.value }) }} />
 						                                </Col>
 					                                </Row>
 								                    <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
 								                        <Col span={2}>手机号:</Col>
 						                                <Col span={8}>
-						                                    <Input value={this.state.pay}
-						                                        onChange={(e) => { this.setState({ pay: e.target.value }) }} />
+						                                    <Input value={this.state.payt}
+						                                        onChange={(e) => { this.setState({ payt: e.target.value }) }} />
 						                                </Col>
 						                                <Col span={2} style={{ marginLeft: '50px' }}>座机号:</Col>
 						                                <Col span={8}>
-						                                    <Input value={this.state.paym}
-						                                        onChange={(e) => { this.setState({ paym: e.target.value }) }} />
+						                                    <Input value={this.state.paymt}
+						                                        onChange={(e) => { this.setState({ paymt: e.target.value }) }} />
 						                                </Col>
 					                                </Row>
 	
 					                                <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
 								                        		<Col span={2}>部门:</Col>
 						                                <Col span={8}>
-						                                    <Input value={this.state.paytId}
-						                                        onChange={(e) => { this.setState({ paytId: e.target.value }) }} />
+						                                    <Input value={this.state.paytIdtt}
+						                                        onChange={(e) => { this.setState({ paytIdtt: e.target.value }) }} />
 						                                </Col>
 						                                <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
 						                                <Col span={8}>
-						                                    <Input value={this.state.paentId}
-						                                        onChange={(e) => { this.setState({ paentId: e.target.value }) }} />
+						                                    <Input value={this.state.paentIdt}
+						                                        onChange={(e) => { this.setState({ paentIdt: e.target.value }) }} />
 						                                </Col>
 					                                </Row>	
 					                                <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>						                       
 						                                 <Col span={2}>微信号:</Col>
 						                                	<Col span={8}>
-						                                    <Input value={this.state.payId}
-						                                        onChange={(e) => { this.setState({ payId: e.target.value }) }} />
+						                                    <Input value={this.state.payIdt}
+						                                        onChange={(e) => { this.setState({ payIdt: e.target.value }) }} />
 						                                </Col>
 						                                <Col span={2} style={{ marginLeft: '50px' }}>邮箱:</Col>
 						                                <Col span={8}>
-						                                    <Input value={this.state.emails}
-						                                        onChange={(e) => { this.setState({ emails: e.target.value }) }} />
+						                                    <Input value={this.state.emailst}
+						                                        onChange={(e) => { this.setState({ emailst: e.target.value }) }} />
 						                                </Col>
 					                                </Row>
 					                                <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
@@ -2145,18 +2148,18 @@ const AchievementList = Form.create()(React.createClass({
         this.loadData1();
     },
     reset() {
-    	this.state.companyName='';  
-    	this.state.customerType = undefined;
+    	this.state.companyNamet='';  
+    	this.state.customerTypet = undefined;
         this.state.id = undefined;
-        this.state.shareType = undefined;
-        this.state.companyIntention  = undefined;
-        this.state.followSituation  = undefined;
-        this.state.locationProvince  = undefined;
-        this.state.customerStatus  = undefined;
-        this.state.contactName   = undefined;
-        this.state.contactTel = undefined;
-        this.state.contactName = undefined;  
-        this.state.releaseDate = [];
+        this.state.shareTypet = undefined;
+        this.state.companyIntentiont  = undefined;
+        this.state.followSituationt  = undefined;
+        this.state.locationProvincet  = undefined;
+        this.state.customerStatust  = undefined;
+        this.state.contactNamet   = undefined;
+        this.state.contactTelt = undefined;
+        this.state.contactNamet = undefined;  
+        this.state.releaseDatet = [];
         this.loadData(); 
     },
     searchSwitch() {
@@ -2193,35 +2196,35 @@ const AchievementList = Form.create()(React.createClass({
                 </div>
                 <div className="user-search">                    
                     <Input placeholder="公司名称"
-                        value={this.state.companyName}
-                        onChange={(e) => { this.setState({ companyName: e.target.value }); }} /> 
+                        value={this.state.companyNamet}
+                        onChange={(e) => { this.setState({ companyNamet: e.target.value }); }} /> 
                     <Select placeholder="客户类型" style={{ width: 120 }}
-                            value={this.state.customerType }
-                            onChange={(e) => { this.setState({ customerType : e }) }}>
+                            value={this.state.customerTypet }
+                            onChange={(e) => { this.setState({ customerTypet : e }) }}>
                             <Select.Option value="0" >个人客户</Select.Option>
                             <Select.Option value="1" >公司客户</Select.Option>
                     </Select>     
                     <Select placeholder="意向服务"
                             style={{ width: 160 }}
-                            value={this.state.companyIntention}
-                            onChange={(e) => { this.setState({ companyIntention: e }) }}>
+                            value={this.state.companyIntentiont}
+                            onChange={(e) => { this.setState({ companyIntentiont: e }) }}>
                             {this.state.intentionalOption}
                     </Select>
                     <Select placeholder="跟进进度"
                             style={{ width: 160 }}
-                            value={this.state.followSituation}
-                            onChange={(e) => { this.setState({ followSituation: e }) }}>
+                            value={this.state.followSituationt}
+                            onChange={(e) => { this.setState({ followSituationt: e }) }}>
                             {this.state.newOption}
                     </Select>
                     <Select placeholder="地区"
                             style={{ width: 160 }}
-                            value={this.state.locationProvince}
-                            onChange={(e) => { this.setState({ locationProvince: e }) }}>
+                            value={this.state.locationProvincet}
+                            onChange={(e) => { this.setState({ locationProvincet: e }) }}>
                             {this.state.auditStatusOption}
                     </Select>
                     <Select placeholder="客户状态" style={{ width: 120 }}
-                            value={this.state.customerStatus}
-                            onChange={(e) => { this.setState({customerStatus: e }) }}>                           
+                            value={this.state.customerStatust}
+                            onChange={(e) => { this.setState({customerStatust: e }) }}>                           
                             {this.state.customerStatuarr}
                     </Select>
                     <Button type="primary" onClick={this.search}>搜索</Button>
@@ -2259,11 +2262,11 @@ const AchievementList = Form.create()(React.createClass({
                     <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
                     <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>                    			                  
 		                <Input placeholder="联系人姓名" style={{width:'140px',marginRight:'10px'}}
-		                    value={this.state.contactName}
-		                    onChange={(e) => { this.setState({ contactName: e.target.value }); }} /> 
+		                    value={this.state.contactNamet}
+		                    onChange={(e) => { this.setState({ contactNamet: e.target.value }); }} /> 
 		                <Input placeholder="手机号码" style={{width:'140px',marginRight:'10px'}}
-		                    value={this.state.contactTel }
-		                    onChange={(e) => { this.setState({ contactTel: e.target.value }); }} />
+		                    value={this.state.contactTelt }
+		                    onChange={(e) => { this.setState({ contactTelt: e.target.value }); }} />
 		            </div>        
                 </div>                                               
                 <div className="patent-table">

+ 25 - 24
js/component/manageCenter/customer/publicCustomer.jsx

@@ -22,14 +22,14 @@ const PublicCustomer = React.createClass({
             data: {
                 pageNo: pageNo || 1,
                 pageSize: this.state.pagination.pageSize,               
-                companyName: this.state.companyName, //名称1                
-				customerType: this.state.customerType, //客户类型1
-              	locationProvince:this.state.locationProvince,//地区
-				customerStatus:this.state.customerStatus,//客户状态1
-				contactName:this.state.contactName,//联系人姓名1							
-				contactTel:this.state.contactTel,//联系人手机
-				companyIntention:this.state.companyIntention,//意向服务
-                followSituation:this.state.followSituation,//最新跟进进度
+                companyName: this.state.companyNamet, //名称1                
+				customerType: this.state.customerTypet, //客户类型1
+              	locationProvince:this.state.locationProvincet,//地区
+				customerStatus:this.state.customerStatust,//客户状态1
+				contactName:this.state.contactNamet,//联系人姓名1							
+				contactTel:this.state.contactTelt,//联系人手机
+				companyIntention:this.state.companyIntentiont,//意向服务
+                followSituation:this.state.followSituationt,//最新跟进进度
 				//releaseDateStartDate: this.state.releaseDate[0],
                 //releaseDateEndDate: this.state.releaseDate[1],			
             },
@@ -292,17 +292,18 @@ const PublicCustomer = React.createClass({
         this.loadData();
     },
     reset() {
-    	this.state.companyName='';   
+    	this.state.companyNamet='';   
         this.state.id = undefined;
-        this.state.shareType = undefined;
-        this.state.companyIntention  = undefined;
-        this.state.followSituation  = undefined;
-        this.state.locationProvince  = undefined;
-        this.state.customerStatus  = undefined;
-        this.state.contactName   = undefined;
-        this.state.contactTel = undefined;
-        this.state.contactName = undefined;  
-        this.state.releaseDate = [];
+        this.state.customerTypet = undefined;
+        this.state.shareTypet = undefined;
+        this.state.companyIntentiont  = undefined;
+        this.state.followSituationt  = undefined;
+        this.state.locationProvincet  = undefined;
+        this.state.customerStatust  = undefined;
+        this.state.contactNamet  = undefined;
+        this.state.contactTelt = undefined;
+        this.state.contactNamet = undefined;  
+        this.state.releaseDatet = [];
         this.loadData(); 
     },
     searchSwitch() {
@@ -330,18 +331,18 @@ const PublicCustomer = React.createClass({
                 </div>
                 <div className="user-search">                    
                     <Input placeholder="公司名称"
-                        value={this.state.companyName}
-                        onChange={(e) => { this.setState({ companyName: e.target.value }); }} /> 
+                        value={this.state.companyNamet}
+                        onChange={(e) => { this.setState({ companyNamet: e.target.value }); }} /> 
                     <Select placeholder="客户类型" style={{ width: 120 }}
-                            value={this.state.customerType }
-                            onChange={(e) => { this.setState({ customerType : e }) }}>
+                            value={this.state.customerTypet }
+                            onChange={(e) => { this.setState({ customerTypet : e }) }}>
                             <Select.Option value="0" >个人客户</Select.Option>
                             <Select.Option value="1" >公司客户</Select.Option>
                     </Select>                        
                     <Select placeholder="地区"
                             style={{ width: 160 }}
-                            value={this.state.locationProvince}
-                            onChange={(e) => { this.setState({ locationProvince: e }) }}>
+                            value={this.state.locationProvincet}
+                            onChange={(e) => { this.setState({ locationProvincet: e }) }}>
                             {this.state.auditStatusOption}
                     </Select>                    
                     <Button type="primary" onClick={this.search}>搜索</Button>

+ 25 - 25
js/component/manageCenter/customer/teamCustomer.jsx

@@ -24,14 +24,14 @@ const Teamcustomer = React.createClass({
             data: {
                 pageNo: pageNo || 1,
                 pageSize: this.state.pagination.pageSize,               
-                companyName: this.state.companyName, //名称1                
-				        customerType: this.state.customerType, //客户类型1
-              	locationProvince:this.state.locationProvince,//地区
-								customerStatus:this.state.customerStatus,//客户状态1
-								contactName:this.state.contactName,//联系人姓名1							
-								contactTel:this.state.contactTel,//联系人手机
-								companyIntention:this.state.companyIntention,//意向服务
-                followSituation:this.state.followSituation,//最新跟进进度
+                companyName: this.state.companyNamet, //名称1                
+				customerType: this.state.customerTypet, //客户类型1
+              	locationProvince:this.state.locationProvincet,//地区
+				customerStatus:this.state.customerStatust,//客户状态1
+				contactName:this.state.contactNamet,//联系人姓名1							
+				contactTel:this.state.contactTelt,//联系人手机
+				companyIntention:this.state.companyIntentiont,//意向服务
+                followSituation:this.state.followSituationt,//最新跟进进度
 				//releaseDateStartDate: this.state.releaseDate[0],
                 //releaseDateEndDate: this.state.releaseDate[1],			
             },
@@ -211,18 +211,18 @@ const Teamcustomer = React.createClass({
         this.loadData();
     },
     reset() {
-      	this.state.customerType=undefined;
-      	this.state.companyName='';   
+      	this.state.customerTypet=undefined;
+      	this.state.companyNamet='';   
         this.state.id = undefined;
-        this.state.shareType = undefined;
-        this.state.companyIntention  = undefined;
-        this.state.followSituation  = undefined;
-        this.state.locationProvince  = undefined;
-        this.state.customerStatus  = undefined;
-        this.state.contactName   = undefined;
-        this.state.contactTel = undefined;
-        this.state.contactName = undefined;  
-        this.state.releaseDate = [];
+        this.state.shareTypet = undefined;
+        this.state.companyIntentiont  = undefined;
+        this.state.followSituationt  = undefined;
+        this.state.locationProvincet  = undefined;
+        this.state.customerStatust = undefined;
+        this.state.contactNamet   = undefined;
+        this.state.contactTelt = undefined;
+        this.state.contactNamet = undefined;  
+        this.state.releaseDatet = [];
         this.loadData(); 
     },
     searchSwitch() {
@@ -250,18 +250,18 @@ const Teamcustomer = React.createClass({
                 </div>
                 <div className="user-search">                    
                     <Input placeholder="公司名称"
-                        value={this.state.companyName}
-                        onChange={(e) => { this.setState({ companyName: e.target.value }); }} /> 
+                        value={this.state.companyNamet}
+                        onChange={(e) => { this.setState({ companyNamet: e.target.value }); }} /> 
                     <Select placeholder="客户类型" style={{ width: 120 }}
-                            value={this.state.customerType }
-                            onChange={(e) => { this.setState({ customerType : e }) }}>
+                            value={this.state.customerTypet }
+                            onChange={(e) => { this.setState({ customerTypet : e }) }}>
                             <Select.Option value="0" >个人客户</Select.Option>
                             <Select.Option value="1" >公司客户</Select.Option>
                     </Select>                        
                     <Select placeholder="地区"
                             style={{ width: 160 }}
-                            value={this.state.locationProvince}
-                            onChange={(e) => { this.setState({ locationProvince: e }) }}>
+                            value={this.state.locationProvincet}
+                            onChange={(e) => { this.setState({ locationProvincet: e }) }}>
                             {this.state.auditStatusOption}
                     </Select>                   
                     <Button type="primary" onClick={this.search}>搜索</Button>