dengzhiguo před 6 roky
rodič
revize
7d3876127c

+ 7 - 15
js/component/manageCenter/customer/NEW/crm/crm.jsx

@@ -1,5 +1,5 @@
 import React from 'react';
-import { Radio, Icon, Button, AutoComplete,Cascader,Input, Select, Spin, Popconfirm, Table, Switch, message, DatePicker, Upload, Form ,Modal,Tabs} from 'antd';
+import { Radio, Icon, Button, AutoComplete,Cascader,Input, Select, Spin, Popconfirm, Table, Switch, message, DatePicker, Upload, Form ,Modal,Tabs,Card } from 'antd';
 import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
 import moment from 'moment';
@@ -845,6 +845,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 					       <div>
 					       		<Form layout="horizontal" onSubmit={this.newSubmit} id="demand-form">
 					                <Spin spinning={this.state.loading}>
+					                	<div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>基本信息</div>
 						               	<div className="clearfix" >
 					                    	<FormItem className="half-item"
 							                     {...formItemLayout}
@@ -892,7 +893,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 					                           label="省-市-区"
 					                          > 
 					                            <Cascader options={areaSelect()}  value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'95%'}}
-													onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
+													onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }}  />
 													<span style={{color:'red',marginLeft:'5px'}}>*</span>
 						                    </FormItem>
 						                    <FormItem className="half-item" 
@@ -900,7 +901,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 							                        label="注册资本"
 					                           	 >
 						                            <Input placeholder="注册资本" style={{width:'90%'}} value={this.state.registeredCapital} onChange={(e) => {
-								                        this.setState({ registeredCapital:  e.target.value })}}/>万
+								                        this.setState({ registeredCapital:  e.target.value }) }} />万
 								                    <span style={{color:'red',marginLeft:'5px'}}>*</span>
 						                    </FormItem>
 						                    <div className='clearfix'>
@@ -913,16 +914,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 							                   		<span style={{color:'red',marginLeft:'5px'}}>*</span>
 							                   </FormItem>
 						                    </div>
-						                    <div className='clearfix'>
-							                    <FormItem
-							                        labelCol={{ span:4 }}
-							                        wrapperCol={{ span: 20 }}
-							                        label="已有知识产权" >
-							                            <Input type="textarea" rows={2} value={this.state.intellectualProperty} style={{width:'95%'}}
-													onChange={(e,pre) => { this.setState({ intellectualProperty: e.target.value })}}/>
-							                    	<span style={{color:'red',marginLeft:'5px'}}>*</span>
-							                    </FormItem>
-						                    </div>
+						                    <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>企业资料</div>
 						                    <FormItem className="half-item"
 							                    	 {...formItemLayout}
 							                         label="通信地址"
@@ -1031,8 +1023,8 @@ const IntentionCustomer = Form.create()(React.createClass({
 							                            <p>建议:图片要清晰。</p>
 							                    </FormItem>
 							                </div> 
-							                <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>签单客户信息完善</div>
-							                <div className='clearfix' >
+							                <div style={{fontSize:'18px',marginLeft:'50px',marginTop:'15px',marginBottom:'10px',color:"red",fontWeight:"bold"}}>重要资料</div>
+							               	<div className='clearfix' >
 						                    	<FormItem className="half-item"
 								                    	 {...formItemLayout}
 								                         label="上年度销售额"

+ 27 - 27
js/component/manageCenter/customer/NEW/crm/crmAll.jsx

@@ -768,7 +768,7 @@ const IntentionCustomer = Form.create()(React.createClass({
                     <span>客户资料管理</span>
                 </div>
                 <div className="user-search">                    
-                    <Input placeholder="客户名称"
+                    <Input placeholder="客户名称"  
                         value={this.state.nameSearch}
                         onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />    
                     <Select placeholder="省"
@@ -837,7 +837,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 					                          {...formItemLayout}
 					                         label="行业">
 											    <Select placeholder="选择行业" value={this.state.industry}  style={{width:'95%'}}
-											    				onChange={(e)=>{this.setState({industry:e})}}>
+											    				onChange={(e)=>{this.setState({industry:e})}} disabled={true}>
 				                                      {
 				                                        industry.map(function (item) {
 				                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
@@ -851,7 +851,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 					                           label="社会属性"
 					                           > 
 												    <Select placeholder="客户社会属性" value={this.state.societyTag}  style={{width:'95%'}}
-											    				onChange={(e)=>{this.setState({societyTag:e})}}> 
+											    				onChange={(e)=>{this.setState({societyTag:e})}} disabled={true}> 
 				                                     {
 				                                        socialAttribute.map(function (item) {
 				                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
@@ -865,7 +865,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 					                           label="省-市-区"
 					                          > 
 					                            <Cascader options={areaSelect()}  value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'95%'}}
-													onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
+													onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} disabled={true}/>
 													<span style={{color:'red',marginLeft:'5px'}}>*</span>
 						                    </FormItem>
 						                    <FormItem className="half-item" 
@@ -873,7 +873,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 							                        label="注册资本"
 					                           	 >
 						                            <Input placeholder="注册资本" style={{width:'90%'}} value={this.state.registeredCapital} onChange={(e) => {
-								                        this.setState({ registeredCapital:  e.target.value })}}/>万
+								                        this.setState({ registeredCapital:  e.target.value })}} disabled={true}/>万
 								                    <span style={{color:'red',marginLeft:'5px'}}>*</span>
 						                    </FormItem>
 						                    <div className='clearfix'>
@@ -882,7 +882,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 							                        wrapperCol={{ span: 20 }}
 							                        label="公司主营产品" >
 							                        <Input type="textarea" rows={2} value={this.state.businessScope}  style={{width:'95%'}}
-													onChange={(e,pre) => { this.setState({ businessScope: e.target.value })}}/>
+													onChange={(e,pre) => { this.setState({ businessScope: e.target.value })}} disabled={true}/>
 							                   		<span style={{color:'red',marginLeft:'5px'}}>*</span>
 							                   </FormItem>
 						                    </div>
@@ -892,7 +892,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 							                        wrapperCol={{ span: 20 }}
 							                        label="已有知识产权情况" >
 							                            <Input type="textarea" rows={2} value={this.state.intellectualProperty} style={{width:'95%'}}
-													onChange={(e,pre) => { this.setState({ intellectualProperty: e.target.value })}}/>
+													onChange={(e,pre) => { this.setState({ intellectualProperty: e.target.value })}} disabled={true}/>
 							                    	<span style={{color:'red',marginLeft:'5px'}}>*</span>
 							                    </FormItem>
 						                    </div>
@@ -901,21 +901,21 @@ const IntentionCustomer = Form.create()(React.createClass({
 							                         label="通信地址"
 						                            >
 						                                <Input placeholder="客户通信地址" value={this.state.postalAddress} 
-													onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
+													onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }} disabled={true}/>
 						                    </FormItem>
 						                    <FormItem className="half-item"
 							                    	 {...formItemLayout}
 							                         label="固定电话"
 						                            >
 						                                <Input placeholder="客户固定电话" value={this.state.contactsFixedTel} 
-													onChange={(e) => { this.setState({ contactsFixedTel: e.target.value }) }}/>
+													onChange={(e) => { this.setState({ contactsFixedTel: e.target.value }) }} disabled={true}/>
 						                    </FormItem>
 						                    <FormItem className="half-item"
 							                    	 {...formItemLayout}
 							                         label="客户传真"
 						                            >
 						                                <Input placeholder="客户传真" value={this.state.contactsFax} 
-													onChange={(e) => { this.setState({ contactsFax: e.target.value })}}/>
+													onChange={(e) => { this.setState({ contactsFax: e.target.value })}} disabled={true}/>
 						                    </FormItem>
 						                    
 						                    <FormItem className="half-item" 
@@ -923,56 +923,56 @@ const IntentionCustomer = Form.create()(React.createClass({
 							                        label="企业人数"
 					                           	 >
 						                            <Input placeholder="单位规模" value={this.state.enterpriseScale} onChange={(e) => {
-								                        this.setState({ enterpriseScale:  e.target.value })}}/>
+								                        this.setState({ enterpriseScale:  e.target.value })}} disabled={true}/>
 						                    </FormItem>
 						                    <FormItem className="half-item" 
 							                    	 {...formItemLayout}
 							                        label="法人名称"
 					                           	 >
 						                            <Input placeholder="法人名称" value={this.state.legalPerson} onChange={(e) => {
-								                        this.setState({ legalPerson:  e.target.value })}}/>
+								                        this.setState({ legalPerson:  e.target.value })}} disabled={true}/>
 						                    </FormItem>
 					                   		<FormItem className="half-item" 
 							                    	 {...formItemLayout}
 							                        label="法人身份证"
 					                           	 >
 						                            <Input placeholder="法人身份证" value={this.state.legalPersonIdCard} onChange={(e) => {
-								                        this.setState({ legalPersonIdCard:  e.target.value })}}/>
+								                        this.setState({ legalPersonIdCard:  e.target.value })}} disabled={true}/>
 						                    </FormItem>
 											<FormItem className="half-item" 
 							                    	 {...formItemLayout}
 							                        label="主要联系人"
 					                           	 >
 						                            <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
-								                        this.setState({ contacts:  e.target.value })}}/>
+								                        this.setState({ contacts:  e.target.value })}} disabled={true}/>
 						                    </FormItem>
 						                    <FormItem className="half-item" 
 							                    	 {...formItemLayout}
 							                        label="主要联系人号码"
 					                           	 >
 						                            <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
-								                        this.setState({ contactMobile:  e.target.value })}}/>
+								                        this.setState({ contactMobile:  e.target.value })}} disabled={true}/>
 						                    </FormItem>
 						                    <FormItem className="half-item" 
 							                    	 {...formItemLayout}
 							                        label="法人电话"
 					                           	 >
 						                            <Input placeholder="法人电话" value={this.state.legalPersonTel} onChange={(e) => {
-								                        this.setState({ legalPersonTel:  e.target.value })}}/>
+								                        this.setState({ legalPersonTel:  e.target.value })}} disabled={true}/>
 						                    </FormItem>
 						                    <FormItem className="half-item"
 							                    	 {...formItemLayout}
 							                         label="法人电子邮箱"
 						                            >
 						                                <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail} 
-													onChange={(e) => {this.setState({legalPersonEmail: e.target.value })}}/>
+													onChange={(e) => {this.setState({legalPersonEmail: e.target.value })}} disabled={true}/>
 						                    </FormItem>
 						                    <FormItem className="half-item" 
 							                    	 {...formItemLayout}
 							                        label="社会统一信用机构代码"
 					                           	 >
 						                            <Input placeholder="社会统一信用机构代码" value={this.state.orgCode} onChange={(e) => {
-								                        this.setState({ orgCode:  e.target.value })}}/>
+								                        this.setState({ orgCode:  e.target.value })}} disabled={true}/>
 						                    </FormItem>
 						                     <div className='clearfix'>
 							                    <FormItem
@@ -980,7 +980,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 							                        wrapperCol={{ span: 18 }}
 							                        label="客户简介" >
 							                            <Input type="textarea" rows={3} value={this.state.introduction} 
-													onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
+													onChange={(e,pre) => { this.setState({ introduction: e.target.value })}} disabled={true}/>
 							                    </FormItem>
 						                    </div>
 						                    
@@ -1011,28 +1011,28 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                         label="上年度销售额"
 							                            >
 							                                <Input ref='consul' placeholder="请输入上年度销售额" value={this.state.yearSalesAmount} style={{width:'95%'}}
-														onChange={(e) => {this.setState({yearSalesAmount: e.target.value })}}/>万
+														onChange={(e) => {this.setState({yearSalesAmount: e.target.value })}} disabled={true}/>万
 							                    </FormItem>
 							                    <FormItem className="half-item"
 								                    	 {...formItemLayout}
 								                         label="上年度研发费用"
 							                            >
 							                                <Input ref='consul' placeholder="请输入上年度研发费用" value={this.state.lastYearResearchAmount} style={{width:'95%'}}
-														onChange={(e) => {this.setState({lastYearResearchAmount: e.target.value })}}/>万
+														onChange={(e) => {this.setState({lastYearResearchAmount: e.target.value })}} disabled={true}/>万
 							                    </FormItem>
 							                    <FormItem className="half-item"
 								                    	 {...formItemLayout}
 								                         label="上年度总资产情况"
 							                            >
 							                                <Input ref='consul' placeholder="上年度总资产情况" value={this.state.assets} style={{width:'95%'}}
-														onChange={(e) => {this.setState({assets: e.target.value })}}/>万
+														onChange={(e) => {this.setState({assets: e.target.value })}} disabled={true}/>万
 							                    </FormItem>
 							                    <FormItem className="half-item" 
 						                            {...formItemLayout}
 						                           label="客户信用等级"
 						                           > 
 													    <Select placeholder="客户信用等级" value={this.state.creditRating}  
-												    				onChange={(e)=>{this.setState({creditRating:e})}}> 
+												    				onChange={(e)=>{this.setState({creditRating:e})}} disabled={true}> 
 					                                     {
 					                                        slcRedit.map(function (item) {
 					                                            return <Select.Option key={item.value} >{item.key}</Select.Option>
@@ -1046,7 +1046,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                        wrapperCol={{ span: 19 }}
 								                        label="核心技术" >
 								                            <Input type="textarea" rows={3} value={this.state.coreTechnology} 
-														onChange={(e,pre) => { this.setState({ coreTechnology: e.target.value })}}/>
+														onChange={(e,pre) => { this.setState({ coreTechnology: e.target.value })}} disabled={true}/>
 								                    </FormItem>
 							                    </div>
 							                    <div className='clearfix'>
@@ -1055,7 +1055,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                        wrapperCol={{ span: 19 }}
 								                        label="企业资质情况" >
 								                            <Input type="textarea" rows={3} value={this.state.qualification} placeholder="请按如下格式填写:资质名称+获得时间+拥有人+发证机构"
-														onChange={(e,pre) => { this.setState({ qualification: e.target.value })}}/>
+														onChange={(e,pre) => { this.setState({ qualification: e.target.value })}} disabled={true}/>
 								                    </FormItem>
 							                    </div>
 							                    <div className='clearfix'>
@@ -1064,7 +1064,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                        wrapperCol={{ span: 19 }}
 								                        label="客户已做项目" >
 								                            <Input type="textarea" rows={3} value={this.state.accomplishSituation} placeholder="请按如下格式填写:项目类型+主管部门+申报时间+立项情况+验收情况"
-														onChange={(e,pre) => { this.setState({ accomplishSituation: e.target.value })}}/>
+														onChange={(e,pre) => { this.setState({ accomplishSituation: e.target.value })}} disabled={true}/>
 								                    </FormItem>
 							                    </div>
 							                    <div className='clearfix'>
@@ -1073,7 +1073,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 								                        wrapperCol={{ span: 19 }}
 								                        label="企业高企合作情况" >
 								                            <Input type="textarea" rows={3} value={this.state.cooperationSituation} 
-														onChange={(e,pre) => { this.setState({ cooperationSituation: e.target.value })}}/>
+														onChange={(e,pre) => { this.setState({ cooperationSituation: e.target.value })}} disabled={true}/>
 								                    </FormItem>
 							                    </div>
 						                    </div>

+ 3 - 2
js/component/manageCenter/servicesManage/projectOrder/projectManagement/projectManageDetaile.jsx

@@ -499,7 +499,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
     	this.state.departmenttList=undefined;
     	this.state.financeNameSearch='';
     	this.state.lvRadio=2;
-    	this.contactList();
+    	//this.contactList();
     },
     distributionCancel(){
     	this.setState({
@@ -870,7 +870,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
 		this.state.departmenttList=undefined;
     	this.state.financeNameSearch='';
     	this.state.lvRadio=2;
-		this.contactList();
+		//this.contactList();
 	},
 	/* -----变更操作开始----- */
 	//新建变更
@@ -1044,6 +1044,7 @@ const MySettlementDetaile = Form.create()(React.createClass({
 				lvRadio:e.target.value,
 				lvState:true
 			})
+			this.contactList();
 		}
 	},