dengzhiguo 7 years ago
parent
commit
2679196021

+ 7 - 6
js/component/manageCenter/customer/content.jsx

@@ -20,14 +20,15 @@ class Content extends Component {
         };
     }
     getKey(key) {
-        switch (key) {          
+        switch (key) {   
+        	
             case 'myClient':
                 require.ensure([], () => {
                     const TechAchievement = require('./myClient').default;
                     this.setState({
-                        component: TechAchievement,
+                        component: TechAchievement ,  
                         listApiUrl: '/api/admin/achievement/orgList',
-                        detailApiUrl: '/api/admin/customer/findCustomer'
+                        detailApiUrl: '/api/admin/achievement/orgDetail'
                     });
                 });
                 break;           
@@ -35,9 +36,9 @@ class Content extends Component {
                 require.ensure([], () => {
                     const AchievementOrder = require('./publicCustomer').default;
                     this.setState({
-                        component: AchievementOrder,
-                        listApiUrl: '/api/admin/portal/order/userAchievementOrderList',
-                        detailApiUrl: '/api/admin/achievement/userDetail'
+                        component:AchievementOrder,
+                        listApiUrl: '/api/admin/achievement/orgList',
+                        detailApiUrl: '/api/admin/achievement/orgDetail'
                     });
                 });
                 break;

+ 33 - 32
js/component/manageCenter/customer/myClient.jsx

@@ -71,24 +71,24 @@ const AchievementList = React.createClass({
             });
         }.bind(this));
     }, 
-	showModal(){
-	    this.setState({
-	      visible: true,
-	    });
-	},
-    handleOk(e){	   
-	    this.setState({
-	      visible: false,
-	    });
-	},
-	handleCancel(e){	   
-	    this.setState({
-	      visible: false,
-	    });
-	},
+//	showModal(){
+//	    this.setState({
+//	      visible: true,
+//	    });
+//	},
+//  handleOk(e){	   
+//	    this.setState({
+//	      visible: false,
+//	    });
+//	},
+//	handleCancel(e){	   
+//	    this.setState({
+//	      visible: false,
+//	    });
+//	},
     getInitialState() {
         return {
-        	visible: false ,
+        	//visible: false ,
             searchMore: true,
             searchType: 0,
             validityPeriodDate: [],
@@ -149,22 +149,23 @@ const AchievementList = React.createClass({
                     title: '最新跟进',
                     dataIndex: 'fllowSituation',
                     key: 'fllowSituation',
-                    render: text => { 
-                    	return
-	                    	<div>
-	                    		<Button type="primary" onClick={this.showModal}>{getfllowSituation(text)}<Icon type="plus" /></Button>
-								    <Modal
-							          title="修改"
-							          visible={this.state.visible}
-							          onOk={this.handleOk}
-							          onCancel={this.handleCancel}							          							          
-							        >
-							          <p>Some contents...</p>
-							          <p>Some contents...</p>
-							          <p>Some contents...</p>
-							        </Modal>
-	                    	</div>                    		                    	                    	
-                    	}
+                    render: text => { return getfllowSituation(text) }
+//                  render: text => { 
+//                  	return
+//	                    	<div>
+//	                    		<Button type="primary" onClick={this.showModal}>{getfllowSituation(text)}<Icon type="plus" /></Button>
+//								    <Modal
+//							          title="修改"
+//							          visible={this.state.visible}
+//							          onOk={this.handleOk}
+//							          onCancel={this.handleCancel}							          							          
+//							        >
+//							          <p>Some contents...</p>
+//							          <p>Some contents...</p>
+//							          <p>Some contents...</p>
+//							        </Modal>
+//	                    	</div>                    		                    	                    	
+//                  	}
                  },
                 {
                     title: '跟单人',

+ 1 - 1
js/component/manageCenter/customer/myClientDesc.jsx

@@ -802,7 +802,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
                     method: "POST",
                     dataType: "json",
                     crossDomain: false,
-                    url: this.props.data.id ?  globalConfig.context + '/api/admin/customer/update' : globalConfig.context + '/api/admin/customer/addCustomer',
+                    url: this.props.data.id ?  globalConfig.context + '/api/admin/customer/updCustomer' : globalConfig.context + '/api/admin/customer/addCustomer',
                     data: {
                         id: this.props.data.id, //编号
                         customerTyp :values.customerTyp ,//客户信息  1                       

+ 4 - 4
js/component/manageCenter/customer/publicCustomer.jsx

@@ -43,7 +43,7 @@ const AchievementDetail = React.createClass({
                             status: thisdata.status,
                             comment: thisdata.comment,
                             operator: thisdata.operator,
-                            recordTimeFormattedDate: thisdata.recordTimeFormattedDate                           
+                            recordTimeFormattedDate: thisdata.recordTimeFormattedDate                //传回来的值           可能要改
                         });
                     };
                 };
@@ -74,7 +74,7 @@ const AchievementDetail = React.createClass({
                 loading: false
             });
             if (!data.error.length) {
-                message.success('保存成功!');
+                message.success('领取成功!');
                 this.handleOk();
             } else {
                 message.warning(data.error[0].message);
@@ -197,7 +197,7 @@ const AchievementDetail = React.createClass({
     },
 });
 
-
+//查询功能和初始列表
 const AchievementOrderList = React.createClass({
     loadData(pageNo, apiUrl) {
         this.state.data = [];
@@ -327,7 +327,7 @@ const AchievementOrderList = React.createClass({
                 }
             ],
             dataSource: [],
-            searchTime: [,]
+            searchTime: [],
         };
     },
     componentWillMount() {