dengzhiguo пре 7 година
родитељ
комит
301fa95c36

+ 68 - 0
js/component/dataDic.js

@@ -996,6 +996,38 @@ module.exports = {
             key: "已面签"
         },
     ],
+    //最新跟进反
+    newFollowOn:[
+   		{
+            value: "已发项目介绍资料",
+            key: "0"
+        }, {
+            value: "已约面谈",
+            key: "1"
+        },
+        {
+            value: "已发合同计划书",
+            key: "2"
+        }, {
+            value: "已报价",
+            key: "3"
+        },
+        {
+            value: "已发合同",
+            key: "4"
+        },
+        {
+            value: "已签合同",
+            key: "5"
+        }, {
+            value: "面谈中",
+            key: "6"
+        },
+        {
+            value: "已面签",
+            key: "7"
+        },
+    ],
      //客户状态
     customerStatus:[
         {
@@ -1055,6 +1087,42 @@ module.exports = {
             key: "科技项目"
         }
     ],
+    //意向服务反
+    intentionalServiceOn:[
+        {
+            value: "高企认定",
+            key: "0"
+        }, {
+            value: "软件著作权",
+            key: "1"
+        },
+        {
+            value: "发明专利",
+            key: "2"
+        },
+        {
+            value: "实用型新型专利",
+            key: "3"
+        }, {
+            value: "软件著作权",
+            key: "4"
+        },
+        {
+            value: "外观专利",
+            key: "5"
+        },
+         {
+            value: "科技需求",
+            key: "6"
+        }, {
+            value: "科技成果",
+            key: "7"
+        },
+        {
+            value: "科技项目",
+            key: "8"
+        }
+    ],
     //客户标签
     tag:[
         {

Разлика између датотеке није приказан због своје велике величине
+ 837 - 197
js/component/manageCenter/customer/myClient.jsx


+ 29 - 38
js/component/manageCenter/customer/myClientDesc.jsx

@@ -183,6 +183,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
                 if (thisData.ownerId) {
                     this.getContactsList(thisData.ownerId);
                 };
+                console.log(thisData);
             }.bind(this),
         }).always(function () {
             this.setState({
@@ -354,7 +355,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
         const formItemLayout = {
             labelCol: { span: 8 },
             wrapperCol: { span: 14 },
-        };
+        };     
         return (
             <Form horizontal onSubmit={this.handleSubmit} id="demand-form">
                 <Spin spinning={this.state.loading}>
@@ -364,11 +365,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
                             label="客户类型5555" >
                             <span>{theData._shareType}</span>
                         </FormItem>
-                        <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="编号" >
-                            <span>{theData.id}</span>
-                        </FormItem>
+                       
                         <div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>基本资料:</div>	
                		</div>
                   {/* <FormItem className="half-item"
@@ -382,12 +379,8 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                 </FormItem> */} 
                     <FormItem className="half-item"
 	                            {...formItemLayout}
-	                            label="跟单人" >
-	                            {getFieldDecorator('ownerId', {
-	                                initialValue: theData.ownerId
-	                            })(
-	                                <Input />
-	                                )}
+	                            label="跟单人" >	                            
+	                            <span>{theData.adminName}</span>	                               
 	                        </FormItem>
 	                
                     <div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>公司资料:</div>	                    		                           	                                                       	                                               
@@ -446,7 +439,8 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                            {...formItemLayout}
 	                            label="最新跟进" >
 	                            {getFieldDecorator('followSituation', {
-	                                initialValue: theData.followSituation
+	                            	rules: [{ required: true, message: '此项为必填项!' }],
+	                                initialValue: getfllowSituation(theData.followSituation)
 	                            })(
 	                                <Select placeholder="选择跟进进度" style={{ width: 160 }} >
 	                                    {
@@ -461,7 +455,8 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                            {...formItemLayout}
 	                            label="客户状态" >
 	                            {getFieldDecorator('customerStatus', {
-	                                initialValue: theData.customerStatus
+	                            	rules: [{ required: true, message: '此项为必填项!' }],
+	                                initialValue: getcustomerStatue(theData.customerStatus)
 	                            })(
 	                                <Select placeholder="选择客户状态" style={{ width: 160 }} >
 	                                    {
@@ -478,7 +473,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
 		                            {getFieldDecorator('adress', {		                            	
 		                                initialValue: theData.adress
 		                            })(
-		                                <Input />
+		                                <Input type="text" rows={1}/>
 		                                )}
 		                    </FormItem>		             
                      <div  className="clearfix">		                        
@@ -499,11 +494,11 @@ const AchievementDetailShow = Form.create()(React.createClass({
                     <FormItem className="half-item"
 	                            {...formItemLayout}
 	                            label="姓名" >
-	                            {getFieldDecorator('name', {
+	                            {getFieldDecorator('contactName', {
 	                                rules: [{ required: true, message: '此项为必填项!' }],
-	                                initialValue: theData.name
+	                                initialValue: theData.contactName
 	                            })(
-	                                <Input />
+	                                <Input type="text" rows={1}/>
 	                                )}
 	                        </FormItem>
                      <FormItem className="half-item"
@@ -511,10 +506,9 @@ const AchievementDetailShow = Form.create()(React.createClass({
                                 label="性别" >
                                 {getFieldDecorator('sex', {
                                 	rules: [{ required: true, message: '此项为必填项!' }],
-                                    initialValue:getsex(theData.sex)
-
+                                    initialValue:theData.sex
                                 })(
-                                    <Radio.Group>
+                                    <Radio.Group onChange={(e) => { this.setState({ radios: e.target.value }); }}>
                                         <Radio value="0">男</Radio>
                                         <Radio value="1">女</Radio>
                                     </Radio.Group>
@@ -527,7 +521,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                            	rules: [{ required: true, message: '此项为必填项!' }],
 	                                initialValue: theData.telNum 
 	                            })(
-	                                <Input />
+	                                <Input type="text" rows={1}/>
 	                                )}
 	                        </FormItem>
 	                 <FormItem className="half-item"
@@ -536,7 +530,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                            {getFieldDecorator('mobile', {	                              
 	                                initialValue: theData.mobile
 	                            })(
-	                                <Input />
+	                                <Input type="text" rows={1}/>
 	                                )}
 	                        </FormItem>        
 	                <FormItem className="half-item"
@@ -545,7 +539,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                            {getFieldDecorator('qq', {	                              
 	                                initialValue: theData.qq
 	                            })(
-	                                <Input />
+	                                <Input type="text" rows={1}/>
 	                                )}
 	                        </FormItem>
 	                        <FormItem className="half-item"
@@ -554,7 +548,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                            {getFieldDecorator('email', {	                              
 	                                initialValue: theData.email
 	                            })(
-	                                <Input />
+	                                <Input type="text" rows={1}/>
 	                                )}
 	                        </FormItem>
 	                        <FormItem className="half-item"
@@ -563,7 +557,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                            {getFieldDecorator('wechat', {	                              
 	                                initialValue: theData.wechat
 	                            })(
-	                                <Input />
+	                                <Input type="text" rows={1}/>
 	                                )}
 	                        </FormItem>
 	                        <FormItem className="half-item"
@@ -572,7 +566,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                            {getFieldDecorator('depatrment', {	                              
 	                                initialValue: theData.depatrment
 	                            })(
-	                                <Input />
+	                                <Input type="text" rows={1}/>
 	                                )}
 	                        </FormItem>
 	                        <FormItem className="half-item"
@@ -581,15 +575,15 @@ const AchievementDetailShow = Form.create()(React.createClass({
 	                            {getFieldDecorator('customerPosition', {	                              
 	                                initialValue: theData.customerPosition
 	                            })(
-	                                <Input />
+	                                <Input type="text" rows={1}/>
 	                                )}
 	                        </FormItem>
 	               
  					</div>        
-	                <FormItem wrapperCol={{ span: 12, offset: 4 }}>
-                       <Button className="set-submit" type="primary" htmlType="submit" id="change_keep">保存</Button>
-                       <Button className="set-submit" type="ghost" onClick={this.props.closeDesc} id='change_rem'>取消</Button>
-                    </FormItem>    
+	              	<div className="clearfix" style={{paddingLeft:"200px",marginBottom:"20px"}}>
+                       <Button className="set-submit" type="primary" htmlType="submit" id="change_keep" style={{marginTop:"20px"}}>保存</Button>
+                       <Button className="set-submit" type="ghost" onClick={this.props.closeDesc} id='change_rem' style={{marginTop:"20px"}}>取消</Button>
+                  	</div>
                     
                   {/*  <FormItem wrapperCol={{ span: 12, offset: 4 }}>
                         {theData.auditStatus == 2 ? <Button className="set-submit" type="primary" htmlType="submit">保存</Button> : <span></span>}
@@ -880,7 +874,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
                     <div className="clearfix">
                     	<FormItem className="half-item"
 		                            {...formItemLayout}
-		                            label="客户类型11111" >
+		                            label="客户类型" >
 		                            {getFieldDecorator('customerTyp', {
 		                                rules: [{ required: true, message: '此项为必填项!' }],
 		                                initialValue: theData.customerTyp
@@ -891,11 +885,6 @@ const AchievementDetailForm = Form.create()(React.createClass({
 		                                </Select>
 		                                )}
 		                </FormItem>
-		                <FormItem className="half-item"
-                            {...formItemLayout}
-                            label="编号" >
-                            <span>{theData.id}</span>
-                        </FormItem>
                     	<div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>基本资料:</div>	                    	                       
                         <div>	                    	
 		                 {/*  <FormItem className="half-item"
@@ -984,6 +973,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
 	                            {...formItemLayout}
 	                            label="最新跟进" >
 	                            {getFieldDecorator('followSituation', {
+	                            	rules: [{ required: true, message: '此项为必填项!' }],
 	                                initialValue: getfllowSituation(theData.followSituation)
 	                            })(
 	                                <Select placeholder="选择跟进进度" style={{ width: 160 }} >
@@ -999,6 +989,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
 	                            {...formItemLayout}
 	                            label="客户状态" >
 	                            {getFieldDecorator('customerStatus', {
+	                            	rules: [{ required: true, message: '此项为必填项!' }],
 	                                initialValue: getcustomerStatue(theData.customerStatus)
 	                            })(
 	                                <Select placeholder="选择客户状态" style={{ width: 160 }} >

+ 27 - 1
js/component/tools.js

@@ -38,7 +38,9 @@ import {
     newFollow,
     sex,
     tag,
-    contact
+    contact,
+    intentionalServiceOn,
+    newFollowOn
 } from './dataDic.js';
 module.exports = {
     splitUrl: function (string, i, url) {
@@ -707,6 +709,18 @@ module.exports = {
             return theType;
         }
     },
+    //意向服务反
+	getCompanyIntentionOn: function (e) {
+         if (e) {
+            let theType = '';
+            intentionalServiceOn.map(function (item) {
+                if (item.value == e) {
+                    theType = item.key;
+                };
+            });
+            return theType;
+        }
+    },
     //客户标签
     tag: function (e) {
          if (e) {
@@ -731,6 +745,18 @@ module.exports = {
             return theType;
         }
     },
+     //最新跟进反
+	getfllowSituationOn: function (e) {
+         if (e) {
+            let theType = '';
+            newFollowOn.map(function (item) {
+                if (item.value == e) {
+                    theType = item.key;
+                };
+            });
+            return theType;
+        }
+    },
      //性别
 	getsex: function (e) {
          if (e) {