liting2017 6 years ago
parent
commit
26a159fbb7

+ 3 - 49
js/component/manageCenter/customer/NEW/intentionCustomer/intentionDetail/detail/account.jsx

@@ -4,7 +4,7 @@ import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
 import $ from 'jquery/src/ajax';
 const FormItem =Form.Item;
 const FormItem =Form.Item;
 import {statuslist,lvl,currentMember} from '@/dataDic.js';
 import {statuslist,lvl,currentMember} from '@/dataDic.js';
-import {getcustomerTyp} from '@/tools.js';
+import {getcustomerTyp,getCustomerSource} from '@/tools.js';
 const Account =React.createClass({
 const Account =React.createClass({
 	httpAccount(record) {
 	httpAccount(record) {
 		$.ajax({
 		$.ajax({
@@ -23,22 +23,13 @@ const Account =React.createClass({
 					};
 					};
 					thisData = {};
 					thisData = {};
 				};
 				};
-				let sourcecustomer = ''
-				switch(String(thisData.source)) {
-					case '0':
-						sourcecustomer = '注册客户'
-						break;
-					case '1':
-						sourcecustomer = '录入客户'
-						break;
-				}
 				this.setState({
 				this.setState({
 					Accountuid: thisData.id,
 					Accountuid: thisData.id,
 					mobile: thisData.mobile,
 					mobile: thisData.mobile,
 					nickname: thisData.nickname,
 					nickname: thisData.nickname,
 					email: thisData.email,
 					email: thisData.email,
 					type: getcustomerTyp(String(thisData.type)),
 					type: getcustomerTyp(String(thisData.type)),
-					source: sourcecustomer,
+					source: thisData.source,
 					isMember: thisData.isMember,
 					isMember: thisData.isMember,
 					currentMemberStatus: String(thisData.currentMemberStatus),
 					currentMemberStatus: String(thisData.currentMemberStatus),
 					lvl: String(thisData.lvl),
 					lvl: String(thisData.lvl),
@@ -132,7 +123,7 @@ const Account =React.createClass({
 		                    <FormItem className="half-item"
 		                    <FormItem className="half-item"
 		                            {...formItemLayout}
 		                            {...formItemLayout}
 		                            label="客户来源" >
 		                            label="客户来源" >
-		                            <span>{this.state.source}</span>   
+		                            <span>{getCustomerSource(this.state.source)}</span>   
 		                    </FormItem>
 		                    </FormItem>
 		                    <FormItem className="half-item"
 		                    <FormItem className="half-item"
 		                            {...formItemLayout}
 		                            {...formItemLayout}
@@ -157,43 +148,6 @@ const Account =React.createClass({
                               </Select>
                               </Select>
 	                   		</FormItem>
 	                   		</FormItem>
 	                   	</div>
 	                   	</div>
-                   		<div className="clearfix">
-				            <FormItem className="half-item"
-				                {...formItemLayout}
-		                        label="会员"
-				            > 
-		                   		 <Radio.Group value={this.state.isMember} onChange={(e) => {
-				                        this.setState({ isMember:  e.target.value })
-				                    }}>
-				                        <Radio value={0}>否</Radio>
-				                        <Radio value={1}>是</Radio>
-				                  </Radio.Group>
-				            </FormItem>
-				            <FormItem className="half-item" 
-		                          {...formItemLayout}
-		                           label="会员等级"
-		                         > 
-							    <Select placeholder="客户状态" value={this.state.lvl}  onChange={(e) => { this.setState({ lvl: e }); }} >
-                                 {
-                                    lvl.map(function (item) {
-                                        return <Select.Option key={item.value} >{item.key}</Select.Option>
-                                    })
-                                 }
-                               </Select>
-	                   		</FormItem>
-	                   		<FormItem className="half-item" 
-	                           {...formItemLayout}
-	                           label="会员状态"
-	                         > 
-							    <Select placeholder="会员状态" value={this.state.currentMemberStatus}  onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
-                                {
-                                    currentMember.map(function (item) {
-                                        return <Select.Option key={item.value} >{item.key}</Select.Option>
-                                    })
-                                }
-                                </Select>
-	                   		</FormItem>
-	                   	</div>
 			            <div className="clearfix">
 			            <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>
                             <Button  type="ghost" onClick={this.detailsModal}>取消</Button>

+ 0 - 12
js/component/manageCenter/customer/NEW/intentionCustomer/intentionDetail/detail/basic.jsx

@@ -407,18 +407,6 @@ const Basic = React.createClass({
 							    				onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
 							    				onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
 		                    </FormItem>
 		                    </FormItem>
 				           <div className="clearfix">
 				           <div className="clearfix">
-					        <FormItem className="half-item"
-		                   			 labelCol={{ span: 4 }}
-	                            wrapperCol={{ span: 18 }}
-			                           label="业务认证"
-		                   		>
-			                   		 <Radio.Group value={this.state.businessAudit} onChange={(e) => {
-					                        this.setState({ businessAudit:  e.target.value })
-					                    }}>
-					                        <Radio value={0}>未认证</Radio>
-					                        <Radio value={1}>已认证</Radio>
-					                  </Radio.Group>
-					        </FormItem>
 	                   		<FormItem className="half-item"
 	                   		<FormItem className="half-item"
                    		   		labelCol={{ span: 4 }}
                    		   		labelCol={{ span: 4 }}
 	                            wrapperCol={{ span: 18 }}
 	                            wrapperCol={{ span: 18 }}

+ 9 - 11
js/component/manageCenter/customer/NEW/intentionCustomer/intentionDetail/detail/basicPerson.jsx

@@ -293,6 +293,15 @@ const Basic = React.createClass({
 	detailsModal() {
 	detailsModal() {
 		this.props.closeDetail(false, false)
 		this.props.closeDetail(false, false)
 	},
 	},
+	getHeadPortraitUrl(e) {
+		this.setState({ headPortraitUrl: e });
+	},
+	getPositiveIdUrl(e) {
+		this.setState({ positiveIdUrl: e });
+	},
+	getOppositeIdUrl(e) {
+		this.setState({ oppositeIdUrl: e });
+	},
 	componentWillMount() {
 	componentWillMount() {
 		this.loadInformation(this.props.data.id)
 		this.loadInformation(this.props.data.id)
 	},
 	},
@@ -471,17 +480,6 @@ const Basic = React.createClass({
 			                    </FormItem>
 			                    </FormItem>
 			                </div>
 			                </div>
 		                    <div className="clearfix">
 		                    <div className="clearfix">
-		                        <FormItem className="half-item"
-			                   			 {...formItemLayout}
-				                           label="业务认证"
-			                   		>
-				                   		 <Radio.Group value={this.state.businessAudit} onChange={(e) => {
-						                        this.setState({ businessAudit:  e.target.value })
-						                    }}>
-						                        <Radio value={0}>未认证</Radio>
-						                        <Radio value={1}>已认证</Radio>
-						                  </Radio.Group>
-						        </FormItem>
 						        <FormItem className="half-item"
 						        <FormItem className="half-item"
 					                {...formItemLayout}
 					                {...formItemLayout}
 			                        label="国际化"
 			                        label="国际化"

+ 3 - 49
js/component/manageCenter/customer/NEW/signCustomer/intentionDetail/detail/account.jsx

@@ -4,7 +4,7 @@ import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
 import $ from 'jquery/src/ajax';
 const FormItem =Form.Item;
 const FormItem =Form.Item;
 import {statuslist,lvl,currentMember} from '@/dataDic.js';
 import {statuslist,lvl,currentMember} from '@/dataDic.js';
-import {getcustomerTyp} from '@/tools.js';
+import {getcustomerTyp,getCustomerSource} from '@/tools.js';
 const Account =React.createClass({
 const Account =React.createClass({
 	httpAccount(record) {
 	httpAccount(record) {
 		this.RowClick;
 		this.RowClick;
@@ -24,22 +24,13 @@ const Account =React.createClass({
 					};
 					};
 					thisData = {};
 					thisData = {};
 				};
 				};
-				let sourcecustomer = ''
-				switch(String(thisData.source)) {
-					case '0':
-						sourcecustomer = '注册客户'
-						break;
-					case '1':
-						sourcecustomer = '录入客户'
-						break;
-				}
 				this.setState({
 				this.setState({
 					Accountuid: thisData.id,
 					Accountuid: thisData.id,
 					mobile: thisData.mobile,
 					mobile: thisData.mobile,
 					nickname: thisData.nickname,
 					nickname: thisData.nickname,
 					email: thisData.email,
 					email: thisData.email,
 					type: getcustomerTyp(String(thisData.type)),
 					type: getcustomerTyp(String(thisData.type)),
-					source: sourcecustomer,
+					source: thisData.source,
 					isMember: thisData.isMember,
 					isMember: thisData.isMember,
 					currentMemberStatus: String(thisData.currentMemberStatus),
 					currentMemberStatus: String(thisData.currentMemberStatus),
 					lvl: String(thisData.lvl),
 					lvl: String(thisData.lvl),
@@ -134,7 +125,7 @@ const Account =React.createClass({
 		                    <FormItem className="half-item"
 		                    <FormItem className="half-item"
 		                            {...formItemLayout}
 		                            {...formItemLayout}
 		                            label="客户来源" >
 		                            label="客户来源" >
-		                            <span>{this.state.source}</span>   
+		                            <span>{getCustomerSource(this.state.source)}</span>   
 		                    </FormItem>
 		                    </FormItem>
 		                    <FormItem className="half-item"
 		                    <FormItem className="half-item"
 		                            {...formItemLayout}
 		                            {...formItemLayout}
@@ -159,43 +150,6 @@ const Account =React.createClass({
                               </Select>
                               </Select>
 	                   		</FormItem>
 	                   		</FormItem>
 	                   	</div>
 	                   	</div>
-                   		<div className="clearfix">
-				            <FormItem className="half-item"
-				                {...formItemLayout}
-		                        label="会员"
-				            > 
-		                   		 <Radio.Group value={this.state.isMember} onChange={(e) => {
-				                        this.setState({ isMember:  e.target.value })
-				                    }}>
-				                        <Radio value={0}>否</Radio>
-				                        <Radio value={1}>是</Radio>
-				                  </Radio.Group>
-				            </FormItem>
-				            <FormItem className="half-item" 
-		                          {...formItemLayout}
-		                           label="会员等级"
-		                         > 
-							    <Select placeholder="客户状态" value={this.state.lvl}  onChange={(e) => { this.setState({ lvl: e }); }} >
-                                 {
-                                    lvl.map(function (item) {
-                                        return <Select.Option key={item.value} >{item.key}</Select.Option>
-                                    })
-                                 }
-                               </Select>
-	                   		</FormItem>
-	                   		<FormItem className="half-item" 
-	                           {...formItemLayout}
-	                           label="会员状态"
-	                         > 
-							    <Select placeholder="会员状态" value={this.state.currentMemberStatus}  onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
-                                {
-                                    currentMember.map(function (item) {
-                                        return <Select.Option key={item.value} >{item.key}</Select.Option>
-                                    })
-                                }
-                                </Select>
-	                   		</FormItem>
-	                   	</div>
 			            <div className="clearfix">
 			            <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>
                             <Button  type="ghost" onClick={this.detailsModal}>取消</Button>

+ 0 - 13
js/component/manageCenter/customer/NEW/signCustomer/intentionDetail/detail/basic.jsx

@@ -97,7 +97,6 @@ const Basic = React.createClass({
 				let citys = thisData.locationCity;
 				let citys = thisData.locationCity;
 				let Areas = thisData.locationArea;
 				let Areas = thisData.locationArea;
 				ProvinceCityArr.push(ProvinceS, citys, Areas);
 				ProvinceCityArr.push(ProvinceS, citys, Areas);
-				console.log(ProvinceCityArr)
 				this.setState({
 				this.setState({
 					InformationId: thisData.id,
 					InformationId: thisData.id,
 					InformationUid: thisData.uid,
 					InformationUid: thisData.uid,
@@ -408,18 +407,6 @@ const Basic = React.createClass({
 							    				onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
 							    				onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
 		                    </FormItem>
 		                    </FormItem>
 				           <div className="clearfix">
 				           <div className="clearfix">
-					        <FormItem className="half-item"
-		                   			 labelCol={{ span: 4 }}
-	                            wrapperCol={{ span: 18 }}
-			                           label="业务认证"
-		                   		>
-			                   		 <Radio.Group value={this.state.businessAudit} onChange={(e) => {
-					                        this.setState({ businessAudit:  e.target.value })
-					                    }}>
-					                        <Radio value={0}>未认证</Radio>
-					                        <Radio value={1}>已认证</Radio>
-					                  </Radio.Group>
-					        </FormItem>
 	                   		<FormItem className="half-item"
 	                   		<FormItem className="half-item"
                    		   		labelCol={{ span: 4 }}
                    		   		labelCol={{ span: 4 }}
 	                            wrapperCol={{ span: 18 }}
 	                            wrapperCol={{ span: 18 }}

+ 9 - 11
js/component/manageCenter/customer/NEW/signCustomer/intentionDetail/detail/basicPerson.jsx

@@ -293,6 +293,15 @@ const Basic = React.createClass({
 	detailsModal() {
 	detailsModal() {
 		this.props.closeDetail(false, false)
 		this.props.closeDetail(false, false)
 	},
 	},
+	getHeadPortraitUrl(e) {
+		this.setState({ headPortraitUrl: e });
+	},
+	getPositiveIdUrl(e) {
+		this.setState({ positiveIdUrl: e });
+	},
+	getOppositeIdUrl(e) {
+		this.setState({ oppositeIdUrl: e });
+	},
 	componentWillMount() {
 	componentWillMount() {
 		this.loadInformation(this.props.data.id)
 		this.loadInformation(this.props.data.id)
 	},
 	},
@@ -471,17 +480,6 @@ const Basic = React.createClass({
 			                    </FormItem>
 			                    </FormItem>
 			                </div>
 			                </div>
 		                    <div className="clearfix">
 		                    <div className="clearfix">
-		                        <FormItem className="half-item"
-			                   			 {...formItemLayout}
-				                           label="业务认证"
-			                   		>
-				                   		 <Radio.Group value={this.state.businessAudit} onChange={(e) => {
-						                        this.setState({ businessAudit:  e.target.value })
-						                    }}>
-						                        <Radio value={0}>未认证</Radio>
-						                        <Radio value={1}>已认证</Radio>
-						                  </Radio.Group>
-						        </FormItem>
 						        <FormItem className="half-item"
 						        <FormItem className="half-item"
 					                {...formItemLayout}
 					                {...formItemLayout}
 			                        label="国际化"
 			                        label="国际化"

+ 15 - 1
js/component/tools.js

@@ -72,7 +72,8 @@ import {
     taskStatus,
     taskStatus,
     publishStatus,
     publishStatus,
     changeState,
     changeState,
-    distributeState
+    distributeState,
+    customerSource
 } from './dataDic.js';
 } from './dataDic.js';
 
 
 import { provinceList} from './NewDicProvinceList.js';
 import { provinceList} from './NewDicProvinceList.js';
@@ -1355,5 +1356,18 @@ module.exports = {
             });
             });
             return theType;
             return theType;
         }
         }
+	},
+	//客户来源
+	getCustomerSource:function(e){
+   		if (e||e==0) {
+   			let str=e.toString()
+            let theType = '';
+            customerSource.map(function (item) {
+                if (item.value == str) {
+                    theType = item.key;
+                };
+            });
+            return theType;
+        }
 	}
 	}
 }
 }