liting2017 7 anni fa
parent
commit
e1e7cc6446

+ 3 - 6
js/component/manageCenter/customer/myClient.jsx

@@ -84,7 +84,7 @@ const AchievementList = Form.create()(React.createClass({
               	locationProvince:this.state.locationProvincet,//地区
 				customerStatus:this.state.customerStatust,//客户状态1
 				contactName:this.state.contactNamet,//联系人姓名1							
-				contactTel:this.state.contactTelt,//联系人手机
+				//contactTel:this.state.contactTelt,//联系人手机
 				companyIntention:this.state.companyIntentiont,//意向服务
                 followSituation:this.state.followSituationt,//最新跟进进度		
             },
@@ -1679,7 +1679,7 @@ const AchievementList = Form.create()(React.createClass({
         this.state.locationProvincet  = undefined;
         this.state.customerStatust  = undefined;
         this.state.contactNamet   = undefined;
-        this.state.contactTelt = undefined;
+        //this.state.contactTelt = '';
         this.state.contactNamet = undefined;  
         this.state.releaseDatet = [];
         this.loadData(); 
@@ -1843,10 +1843,7 @@ const AchievementList = Form.create()(React.createClass({
 	                    <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>                    			                  
 			                <Input placeholder="联系人姓名" style={{width:'140px',marginRight:'10px'}}
 			                    value={this.state.contactNamet}
-			                    onChange={(e) => { this.setState({ contactNamet: e.target.value }); }} /> 
-			                <Input placeholder="手机号码" style={{width:'140px',marginRight:'10px'}}
-			                    value={this.state.contactTelt }
-			                    onChange={(e) => { this.setState({ contactTelt: e.target.value }); }} />
+			                    onChange={(e) => { this.setState({ contactNamet: e.target.value }); }} /> 			               
 			            </div>  
 		            </div>
                 </div>                                               

+ 19 - 10
js/component/manageCenter/customer/teamCustomer.jsx

@@ -32,8 +32,9 @@ const Teamcustomer = React.createClass({
 				contactTel:this.state.contactTelt,//联系人手机
 				companyIntention:this.state.companyIntentiont,//意向服务
                 followSituation:this.state.followSituationt,//最新跟进进度
-				//releaseDateStartDate: this.state.releaseDate[0],
-                //releaseDateEndDate: this.state.releaseDate[1],			
+				startDate: this.state.releaseDate[0],
+                endDate: this.state.releaseDate[1],	
+                adminName: this.state.adminNamet, //名称1  
             },
             success: function (data) {            	
                 let theArr = [];
@@ -179,7 +180,7 @@ const Teamcustomer = React.createClass({
                 <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
             )
         });   
-				let auditArr = [];
+		let auditArr = [];
         cityArr.map(function (item) {
             auditArr.push(
                 <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
@@ -188,7 +189,7 @@ const Teamcustomer = React.createClass({
         this.state.customerStatuarr = theArr;               
         this.state.intentionalOption = intentionalArr;
         this.state.newOption = newArr;
-        this.state.auditStatusOption = auditArr;
+        this.state.auditStatusOption = auditArr;    
         
         if (window.location.search) {
             let theObj = getSearchUrl(window.location.search);
@@ -212,7 +213,8 @@ const Teamcustomer = React.createClass({
     },
     reset() {
       	this.state.customerTypet=undefined;
-      	this.state.companyNamet='';   
+      	this.state.companyNamet=''; 
+      	this.state.adminNamet='';
         this.state.id = undefined;
         this.state.shareTypet = undefined;
         this.state.companyIntentiont  = undefined;
@@ -220,9 +222,8 @@ const Teamcustomer = React.createClass({
         this.state.locationProvincet  = undefined;
         this.state.customerStatust = undefined;
         this.state.contactNamet   = undefined;
-        this.state.contactTelt = undefined;
-        this.state.contactNamet = undefined;  
-        this.state.releaseDatet = [];
+        this.state.contactTelt = undefined;  
+        this.state.releaseDate = [];
         this.loadData(); 
     },
     searchSwitch() {
@@ -264,8 +265,16 @@ const Teamcustomer = React.createClass({
                             value={this.state.locationProvincet}
                             onChange={(e) => { this.setState({ locationProvincet: e }) }}>
                             {this.state.auditStatusOption}
-                    </Select>                   
-                    <Button type="primary" onClick={this.search}>搜索</Button>
+                    </Select>  
+                    <Input placeholder="跟单人"
+                        value={this.state.adminNamet}
+                        onChange={(e) => { this.setState({ adminNamet: e.target.value }); }} /> 
+                    <span>发布时间 : </span>
+                    <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 }); }} />
+                    <Button type="primary" onClick={this.search} style={{marginLeft:'30px'}}>搜索</Button>
                     <Button onClick={this.reset}>重置</Button>                     
                 </div>
                 <div className="patent-table">