liting2017 7 years ago
parent
commit
639b4182d1

+ 8 - 0
js/component/manageCenter/customer/customerData/companyCustomer.jsx

@@ -1450,6 +1450,14 @@ const PublicCustomer = Form.create()(React.createClass({
 	},
 	//点击新增详情
 	newContacts() {
+		this.state.newsex =undefined;
+		this.state.newname ='';
+		this.state.newmobile='';
+		this.state.newwechat='';
+		this.state.newqq='';
+		this.state.newdepatrment='';
+		this.state.newposition='';
+		this.state.newemail='';
 		this.setState({
 			uids: this.state.uid,
 			addcontactModul: true

+ 10 - 2
js/component/manageCenter/customer/customerData/myClient.jsx

@@ -9,7 +9,7 @@ const { Column, ColumnGroup } = Table;
 const TabPane = Tabs.TabPane;
 import CustomerDetail from './myClientDesc.jsx';
 import { socialAttribute, industry, newFollow, auditStatusL, lvl, currentMember, cityArr, statuslist, customerStatus, intentionalService, sex } from '../../../dataDic.js';
-import { getCompanyIntention, splitUrl,getIndustry, getStatuslist, getAuditStatus, getContactType, getSocialAttribute, getfllowSituation, beforeUploadFile, getWhether, getcityArr, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
+import { getCompanyIntention, splitUrl, getIndustry, getStatuslist, getAuditStatus, getContactType, getSocialAttribute, getfllowSituation, beforeUploadFile, getWhether, getcityArr, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
 
 //图片组件
 const PicturesWall = React.createClass({
@@ -1117,7 +1117,7 @@ const MyClient = Form.create()(React.createClass({
 					businessScope: thisData.businessScope,
 					orgCode: thisData.orgCode,
 					investment: thisData.investment,
-					auditStatus: thisData.auditStatus?String(thisData.auditStatus):undefined,
+					auditStatus: thisData.auditStatus ? String(thisData.auditStatus) : undefined,
 					businessAudit: thisData.businessAudit
 				});
 			}.bind(this),
@@ -1377,6 +1377,14 @@ const MyClient = Form.create()(React.createClass({
 	},
 	//点击新增详情
 	newContacts() {
+		this.state.newsex = undefined;
+		this.state.newname = '';
+		this.state.newmobile = '';
+		this.state.newwechat = '';
+		this.state.newqq = '';
+		this.state.newdepatrment = '';
+		this.state.newposition = '';
+		this.state.newemail = '';
 		this.setState({
 			uids: this.state.uid,
 			addcontactModul: true

+ 14 - 1
js/component/manageCenter/customer/customerService/myBusiness.jsx

@@ -501,10 +501,22 @@ const MyBusiness = Form.create()(React.createClass({
 	},
 	//点击新增详情
 	newContacts(){
+		if(this.state.uids||this.state.khId){
+		this.state.newsex =undefined;
+		this.state.newname ='';
+		this.state.newmobile='';
+		this.state.newwechat='';
+		this.state.newqq='';
+		this.state.newdepatrment='';
+		this.state.newposition='';
+		this.state.newemail='';
 		this.setState({
-			uids:this.state.uids,
+			uids:this.state.uids?this.state.uids:this.state.khId,
 	    	addcontactModul:true
 	   });
+		  }else{
+		  	 message.warning('请输入客户名称')
+		  }
 	},
 	//新增联系人保存函数
 	submitcontactman(){
@@ -768,6 +780,7 @@ const MyBusiness = Form.create()(React.createClass({
                     thedata = {}; 
               }; 
 					this.setState({
+						uids:thedata.id,
 						customerArr:thedata,	
                     });
 				}.bind(this),

File diff suppressed because it is too large
+ 1915 - 1909
js/component/manageCenter/customer/individualCustomer/individualCustomer.jsx


+ 23 - 0
js/component/manageCenter/customer/individualCustomer/queryCustomer.jsx

@@ -1039,6 +1039,7 @@ const QueryCustomer = Form.create()(React.createClass({
 						professionalTitle: this.state.professionalTitle,
 						workUnit: this.state.workUnit,
 						education: this.state.education,
+						graduateSchool: this.state.graduateSchool,
 						majorCategory: this.state.majorCategory,
 						qualification: this.state.qualification,
 						businessAudit:this.state.businessAudit,
@@ -1117,6 +1118,7 @@ const QueryCustomer = Form.create()(React.createClass({
 					professionalTitle: thisData.professionalTitle,
 					workUnit: thisData.workUnit,
 					education: thisData.education,
+					graduateSchool: thisData.graduateSchool,
 					majorCategory: thisData.majorCategory,
 					qualification: thisData.qualification,
 					businessAudit:thisData.businessAudit,
@@ -1371,6 +1373,14 @@ const QueryCustomer = Form.create()(React.createClass({
 	},
 	//点击新增详情
 	newContacts() {
+		this.state.newsex =undefined;
+		this.state.newname ='';
+		this.state.newmobile='';
+		this.state.newwechat='';
+		this.state.newqq='';
+		this.state.newdepatrment='';
+		this.state.newposition='';
+		this.state.newemail='';
 		this.setState({
 			uids: this.state.uid,
 			addcontactModul: true
@@ -2146,6 +2156,13 @@ const QueryCustomer = Form.create()(React.createClass({
 							                    </FormItem>
 							                    <FormItem className="half-item" 
 								                    	 {...formItemLayout}
+								                        label="毕业院校"
+						                           	 >
+							                            <Input placeholder="学历" value={this.state.graduateSchool} onChange={(e) => {
+									                        this.setState({ graduateSchool:  e.target.value })}}/>
+							                    </FormItem>
+							                    <FormItem className="half-item" 
+								                    	 {...formItemLayout}
 								                        label="专业类别"
 						                           	 >
 							                            <Input placeholder="专业类别" value={this.state.majorCategory} onChange={(e) => {
@@ -2438,6 +2455,12 @@ const QueryCustomer = Form.create()(React.createClass({
 						                    </FormItem>
 						                    <FormItem className="half-item" 
 							                    	 {...formItemLayout}
+							                        label="毕业院校"
+					                           	 >
+						                    		 <span>{this.state.graduateSchool}</span> 
+						                    </FormItem>
+						                    <FormItem className="half-item" 
+							                    	 {...formItemLayout}
 							                        label="专业类别"
 					                           	 >
 						                   		 <span>{this.state.majorCategory}</span> 

+ 1 - 0
js/component/manageCenter/customer/statistics/followStatistics.jsx

@@ -92,6 +92,7 @@ const FollowStatistics = React.createClass({
 		return {
 			releaseDate: [],
 			loading: false,
+			callnub:'1',
 			pagination: {
 				defaultCurrent: 1,
 				defaultPageSize: 10,