|  | @@ -1,5 +1,5 @@
 | 
	
		
			
				|  |  |  import React from 'react';
 | 
	
		
			
				|  |  | -import { Radio, Icon, Button, Input, Select, Spin, Table, Switch, message, DatePicker, Modal, Upload } from 'antd';
 | 
	
		
			
				|  |  | +import {Form, Radio, Icon, Button, Input, Select, Spin, Table, Switch, message, DatePicker, Modal, Upload } from 'antd';
 | 
	
		
			
				|  |  |  import ajax from 'jquery/src/ajax/xhr.js';
 | 
	
		
			
				|  |  |  import $ from 'jquery/src/ajax';
 | 
	
		
			
				|  |  |  import moment from 'moment';
 | 
	
	
		
			
				|  | @@ -103,6 +103,123 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          }.bind(this));
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    mateLoadData(pageNo, apiUrl) {
 | 
	
		
			
				|  |  | +    	let demandId ='';
 | 
	
		
			
				|  |  | +        for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
 | 
	
		
			
				|  |  | +            let rowItem = this.state.selectedRows[idx];
 | 
	
		
			
				|  |  | +            if (rowItem.id) {
 | 
	
		
			
				|  |  | +                demandId=rowItem.id;
 | 
	
		
			
				|  |  | +            };
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +        this.setState({
 | 
	
		
			
				|  |  | +            loading: true
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +        $.ajax({
 | 
	
		
			
				|  |  | +            method: "get",
 | 
	
		
			
				|  |  | +            dataType: "json",
 | 
	
		
			
				|  |  | +            crossDomain: false,
 | 
	
		
			
				|  |  | +            url: globalConfig.context + '/api/admin/demand/listDemandFollow',
 | 
	
		
			
				|  |  | +            data: {
 | 
	
		
			
				|  |  | +            	id:demandId,
 | 
	
		
			
				|  |  | +                pageNo: pageNo || 1,
 | 
	
		
			
				|  |  | +                pageSize: this.state.matepagination.pageSize,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            success: function (data) {
 | 
	
		
			
				|  |  | +                let theArr = [];
 | 
	
		
			
				|  |  | +                if (!data.data || !data.data.list) {
 | 
	
		
			
				|  |  | +                    if (data.error && data.error.length) {
 | 
	
		
			
				|  |  | +                        message.warning(data.error[0].message);
 | 
	
		
			
				|  |  | +                    };
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    for (let i = 0; i < data.data.list.length; i++) {
 | 
	
		
			
				|  |  | +                        let thisdata = data.data.list[i];
 | 
	
		
			
				|  |  | +                        theArr.push({
 | 
	
		
			
				|  |  | +                            key: i,//序列号
 | 
	
		
			
				|  |  | +                            id: thisdata.id,//匹配跟进ID
 | 
	
		
			
				|  |  | +                            demandId: thisdata.demandId,//需求ID
 | 
	
		
			
				|  |  | +                            organization: thisdata.organization,//匹配机构
 | 
	
		
			
				|  |  | +                            contacts: thisdata.contacts,//联系人
 | 
	
		
			
				|  |  | +                            contactMobile: thisdata.contactMobile,//联系方式
 | 
	
		
			
				|  |  | +                            result: thisdata.result,//跟进结果
 | 
	
		
			
				|  |  | +                            lastFollowTime: thisdata.lastFollowTime,//最新跟进时间
 | 
	
		
			
				|  |  | +                            sources: thisdata.sources,//来源
 | 
	
		
			
				|  |  | +                            name: thisdata.name,//需求名称
 | 
	
		
			
				|  |  | +                            employerName: thisdata.employerName,//需求公司名称
 | 
	
		
			
				|  |  | +                            employerContactsMobile: thisdata.employerContactsMobile,//需求联系方式
 | 
	
		
			
				|  |  | +                            employerContactsMailbox: thisdata.employerContactsMailbox,//需求联系邮箱
 | 
	
		
			
				|  |  | +                            createTime: thisdata.createTime,//录入时间
 | 
	
		
			
				|  |  | +                            createTimeFormattedDate: thisdata.createTimeFormattedDate,//录入时间转格式
 | 
	
		
			
				|  |  | +                            lastFollowTimeFormattedDate: thisdata.lastFollowTimeFormattedDate,//跟进时间转格式
 | 
	
		
			
				|  |  | +                            adminName: thisdata.adminName,//录入人
 | 
	
		
			
				|  |  | +                            remark:thisdata.remark,//备注
 | 
	
		
			
				|  |  | +                        });
 | 
	
		
			
				|  |  | +                    };
 | 
	
		
			
				|  |  | +                    this.state.matepagination.current = data.data.pageNo;
 | 
	
		
			
				|  |  | +                    this.state.matepagination.total = data.data.totalCount;
 | 
	
		
			
				|  |  | +                };
 | 
	
		
			
				|  |  | +               	this.setState({
 | 
	
		
			
				|  |  | +                    mateDataSource: theArr,
 | 
	
		
			
				|  |  | +                    matepagination: this.state.matepagination,
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +            }.bind(this),
 | 
	
		
			
				|  |  | +        }).always(function () {
 | 
	
		
			
				|  |  | +            this.setState({
 | 
	
		
			
				|  |  | +                loading: false
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +        }.bind(this));
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    lookLoadData(pageNo, apiUrl) {
 | 
	
		
			
				|  |  | +        let rowItem = '';
 | 
	
		
			
				|  |  | +        for (let idx = 0; idx < this.state.mateselectedRows.length; idx++) {
 | 
	
		
			
				|  |  | +            rowItem = this.state.mateselectedRows[idx];
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +        this.setState({
 | 
	
		
			
				|  |  | +            loading: true,
 | 
	
		
			
				|  |  | +            mateselectedRowKeys: [],
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +        $.ajax({
 | 
	
		
			
				|  |  | +            method: "get",
 | 
	
		
			
				|  |  | +            dataType: "json",
 | 
	
		
			
				|  |  | +            crossDomain: false,
 | 
	
		
			
				|  |  | +            url: globalConfig.context + '/api/admin/demand/listDemandFollowDetail',
 | 
	
		
			
				|  |  | +            data: {
 | 
	
		
			
				|  |  | +            	pageNo: pageNo || 1,
 | 
	
		
			
				|  |  | +                pageSize: this.state.lookpagination.pageSize,
 | 
	
		
			
				|  |  | +            	id:rowItem.id
 | 
	
		
			
				|  |  | +               },
 | 
	
		
			
				|  |  | +            success: function (data) {
 | 
	
		
			
				|  |  | +                let theArr = [];
 | 
	
		
			
				|  |  | +                if (!data.data || !data.data.list) {
 | 
	
		
			
				|  |  | +                    if (data.error && data.error.length) {
 | 
	
		
			
				|  |  | +                        message.warning(data.error[0].message);
 | 
	
		
			
				|  |  | +                    };
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    for (let i = 0; i < data.data.list.length; i++) {
 | 
	
		
			
				|  |  | +                        let thisdata = data.data.list[i];
 | 
	
		
			
				|  |  | +                        theArr.push({
 | 
	
		
			
				|  |  | +                            key: i,
 | 
	
		
			
				|  |  | +                            id: thisdata.id,//跟进情况ID
 | 
	
		
			
				|  |  | +                            demandFollowId: thisdata.demandFollowId,//匹配跟进ID
 | 
	
		
			
				|  |  | +                            remarks: thisdata.remarks,//跟进情况
 | 
	
		
			
				|  |  | +                            result: thisdata.result,//跟进结果
 | 
	
		
			
				|  |  | +                            createTime: thisdata.createTime,//跟进时间
 | 
	
		
			
				|  |  | +                            createTimeFormattedDate: thisdata.createTimeFormattedDate,//录入时间转格式
 | 
	
		
			
				|  |  | +                        });
 | 
	
		
			
				|  |  | +                    };
 | 
	
		
			
				|  |  | +                    this.state.pagination.current = data.data.pageNo;
 | 
	
		
			
				|  |  | +                    this.state.pagination.total = data.data.totalCount;
 | 
	
		
			
				|  |  | +                };
 | 
	
		
			
				|  |  | +                this.setState({
 | 
	
		
			
				|  |  | +                    lookDataSource: theArr,
 | 
	
		
			
				|  |  | +                    pagination: this.state.pagination
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +            }.bind(this),
 | 
	
		
			
				|  |  | +        }).always(function () {
 | 
	
		
			
				|  |  | +            this.setState({
 | 
	
		
			
				|  |  | +                loading: false
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +        }.bind(this));
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      getInitialState() {
 | 
	
		
			
				|  |  |          return {
 | 
	
		
			
				|  |  |              searchMore: true,
 | 
	
	
		
			
				|  | @@ -111,6 +228,7 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |              releaseDate: [],
 | 
	
		
			
				|  |  |              releaseDateS: [],
 | 
	
		
			
				|  |  |              selectedRowKeys: [],
 | 
	
		
			
				|  |  | +            mateselectedRowKeys: [],
 | 
	
		
			
				|  |  |              selectedRows: [],
 | 
	
		
			
				|  |  |              loading: false,
 | 
	
		
			
				|  |  |              pagination: {
 | 
	
	
		
			
				|  | @@ -125,6 +243,30 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |                      return '共' + total + '条数据';
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  | +            matepagination: {
 | 
	
		
			
				|  |  | +                defaultCurrent: 1,
 | 
	
		
			
				|  |  | +                defaultPageSize: 10,
 | 
	
		
			
				|  |  | +                showQuickJumper: true,
 | 
	
		
			
				|  |  | +                pageSize: 10,
 | 
	
		
			
				|  |  | +                onChange: function (page) {
 | 
	
		
			
				|  |  | +                    this.mateLoadData(page);
 | 
	
		
			
				|  |  | +                }.bind(this),
 | 
	
		
			
				|  |  | +                showTotal: function (total) {
 | 
	
		
			
				|  |  | +                    return '共' + total + '条数据';
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            lookpagination: {
 | 
	
		
			
				|  |  | +                defaultCurrent: 1,
 | 
	
		
			
				|  |  | +                defaultPageSize: 10,
 | 
	
		
			
				|  |  | +                showQuickJumper: true,
 | 
	
		
			
				|  |  | +                pageSize: 10,
 | 
	
		
			
				|  |  | +                onChange: function (page) {
 | 
	
		
			
				|  |  | +                    this.lookLoadData(page);
 | 
	
		
			
				|  |  | +                }.bind(this),
 | 
	
		
			
				|  |  | +                showTotal: function (total) {
 | 
	
		
			
				|  |  | +                    return '共' + total + '条数据';
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  |              columns: [
 | 
	
		
			
				|  |  |                  {
 | 
	
		
			
				|  |  |                      title: '编号',
 | 
	
	
		
			
				|  | @@ -218,6 +360,79 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              ],
 | 
	
		
			
				|  |  |              dataSource: [],
 | 
	
		
			
				|  |  | +            searchTime: [],
 | 
	
		
			
				|  |  | +            mateColumns: [
 | 
	
		
			
				|  |  | +                {
 | 
	
		
			
				|  |  | +                    title: '企业名称',
 | 
	
		
			
				|  |  | +                    dataIndex: 'employerName',
 | 
	
		
			
				|  |  | +                    key: 'employerName',
 | 
	
		
			
				|  |  | +                }, {
 | 
	
		
			
				|  |  | +                    title: '需求名称',
 | 
	
		
			
				|  |  | +                    dataIndex: 'name',
 | 
	
		
			
				|  |  | +                    key: 'name',
 | 
	
		
			
				|  |  | +                },
 | 
	
		
			
				|  |  | +                 {
 | 
	
		
			
				|  |  | +                    title: '联系人',
 | 
	
		
			
				|  |  | +                    dataIndex: 'employerContactsMobile',
 | 
	
		
			
				|  |  | +                    key: 'employerContactsMobile',
 | 
	
		
			
				|  |  | +                },{
 | 
	
		
			
				|  |  | +                    title: '匹配机构',
 | 
	
		
			
				|  |  | +                    dataIndex: 'organization',
 | 
	
		
			
				|  |  | +                    key: 'organization',
 | 
	
		
			
				|  |  | +                },{
 | 
	
		
			
				|  |  | +                    title: '成果联系人',
 | 
	
		
			
				|  |  | +                    dataIndex: 'contacts',
 | 
	
		
			
				|  |  | +                    key: 'contacts',
 | 
	
		
			
				|  |  | +                },{
 | 
	
		
			
				|  |  | +                    title: '成果方联系方式',
 | 
	
		
			
				|  |  | +                    dataIndex: 'contactMobile',
 | 
	
		
			
				|  |  | +                    key: 'contactMobile',
 | 
	
		
			
				|  |  | +                },{
 | 
	
		
			
				|  |  | +                    title: '跟进结果',
 | 
	
		
			
				|  |  | +                    dataIndex: 'result',
 | 
	
		
			
				|  |  | +                    key: 'result',
 | 
	
		
			
				|  |  | +                    render: text => {
 | 
	
		
			
				|  |  | +                        switch (text) {
 | 
	
		
			
				|  |  | +                            case 0:
 | 
	
		
			
				|  |  | +                                return <span>跟进中</span>;
 | 
	
		
			
				|  |  | +                            case 1:
 | 
	
		
			
				|  |  | +                                return <span>已匹配</span>;
 | 
	
		
			
				|  |  | +                            
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                },{
 | 
	
		
			
				|  |  | +                    title: '最新跟进时间',
 | 
	
		
			
				|  |  | +                    dataIndex: 'lastFollowTimeFormattedDate',
 | 
	
		
			
				|  |  | +                    key: 'lastFollowTimeFormattedDate',
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            ],
 | 
	
		
			
				|  |  | +            mateDataSource: [],
 | 
	
		
			
				|  |  | +            searchTime: [],
 | 
	
		
			
				|  |  | +            lookColumns: [
 | 
	
		
			
				|  |  | +                 {
 | 
	
		
			
				|  |  | +                    title: '跟进时间',
 | 
	
		
			
				|  |  | +                    dataIndex: 'createTimeFormattedDate',
 | 
	
		
			
				|  |  | +                    key: 'createTimeFormattedDate',
 | 
	
		
			
				|  |  | +                },{
 | 
	
		
			
				|  |  | +                    title: '跟进结果',
 | 
	
		
			
				|  |  | +                    dataIndex: 'result',
 | 
	
		
			
				|  |  | +                    key: 'result',
 | 
	
		
			
				|  |  | +                    render: text => {
 | 
	
		
			
				|  |  | +                        switch (text) {
 | 
	
		
			
				|  |  | +                            case 0:
 | 
	
		
			
				|  |  | +                                return <span>跟进中</span>;
 | 
	
		
			
				|  |  | +                            case 1:
 | 
	
		
			
				|  |  | +                                return <span>已匹配</span>;
 | 
	
		
			
				|  |  | +                            
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                },{
 | 
	
		
			
				|  |  | +                    title: '跟进情况',
 | 
	
		
			
				|  |  | +                    dataIndex: 'remarks',
 | 
	
		
			
				|  |  | +                    key: 'remarks',
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            ],
 | 
	
		
			
				|  |  | +            lookDataSource: [],
 | 
	
		
			
				|  |  |              searchTime: []
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -285,6 +500,7 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          }.bind(this));
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    
 | 
	
		
			
				|  |  |      componentWillMount() {
 | 
	
		
			
				|  |  |          let theArr = [];
 | 
	
		
			
				|  |  |          demandTypeList.map(function (item) {
 | 
	
	
		
			
				|  | @@ -328,14 +544,14 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      tableRowClick(record, index) {
 | 
	
		
			
				|  |  | -    	
 | 
	
		
			
				|  |  | -        this.state.RowData = record;
 | 
	
		
			
				|  |  | +    	this.state.RowData = record;
 | 
	
		
			
				|  |  |          if(index!=undefined){
 | 
	
		
			
				|  |  |          	this.setState({
 | 
	
		
			
				|  |  |             	 showDesc: true
 | 
	
		
			
				|  |  |          	});
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    //删除需求
 | 
	
		
			
				|  |  |      delectRow() {
 | 
	
		
			
				|  |  |          let deletedIds = [];
 | 
	
		
			
				|  |  |          for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
 | 
	
	
		
			
				|  | @@ -368,6 +584,241 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |              this.loadData();
 | 
	
		
			
				|  |  |          }.bind(this));
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    //删除匹配记录
 | 
	
		
			
				|  |  | +    delect(e) {
 | 
	
		
			
				|  |  | +        let rowItem = '';
 | 
	
		
			
				|  |  | +        for (let idx = 0; idx < this.state.mateselectedRows.length; idx++) {
 | 
	
		
			
				|  |  | +            rowItem = this.state.mateselectedRows[idx];
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +        this.setState({
 | 
	
		
			
				|  |  | +            mateselectedRowKeys: [],
 | 
	
		
			
				|  |  | +         });
 | 
	
		
			
				|  |  | +        $.ajax({
 | 
	
		
			
				|  |  | +            method: "get",
 | 
	
		
			
				|  |  | +            dataType: "json",
 | 
	
		
			
				|  |  | +            crossDomain: false,
 | 
	
		
			
				|  |  | +            url: globalConfig.context + "/api/admin/demand/deleteDemandFollow",
 | 
	
		
			
				|  |  | +            data: {
 | 
	
		
			
				|  |  | +                id: rowItem.id
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }).done(function (data) {
 | 
	
		
			
				|  |  | +            if (!data.error.length) {
 | 
	
		
			
				|  |  | +                message.success('删除成功!');
 | 
	
		
			
				|  |  | +                this.setState({
 | 
	
		
			
				|  |  | +                    loading: false,
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                message.warning(data.error[0].message);
 | 
	
		
			
				|  |  | +            };
 | 
	
		
			
				|  |  | +            this.mateLoadData();
 | 
	
		
			
				|  |  | +        }.bind(this));
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    mate(){
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		matevisible: true 
 | 
	
		
			
				|  |  | +    	});
 | 
	
		
			
				|  |  | +    	this.mateLoadData();
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    mateNo(){
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		matevisible: false 
 | 
	
		
			
				|  |  | +    	})
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //点开新增或者匹配记录详情的时候发送请求获取上面的内容
 | 
	
		
			
				|  |  | +    mateTop(e){
 | 
	
		
			
				|  |  | +    	let demandId ='';
 | 
	
		
			
				|  |  | +        for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
 | 
	
		
			
				|  |  | +            let rowItem = this.state.selectedRows[idx];
 | 
	
		
			
				|  |  | +            if (rowItem.id) {
 | 
	
		
			
				|  |  | +                demandId=rowItem.id;
 | 
	
		
			
				|  |  | +            };
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +        this.setState({
 | 
	
		
			
				|  |  | +            loading: true
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +        $.ajax({
 | 
	
		
			
				|  |  | +            method: "get",
 | 
	
		
			
				|  |  | +            dataType: "json",
 | 
	
		
			
				|  |  | +            crossDomain: false,
 | 
	
		
			
				|  |  | +            url: globalConfig.context + '/api/admin/demand/DemandFollowDetails',
 | 
	
		
			
				|  |  | +            data: {
 | 
	
		
			
				|  |  | +            	id:demandId,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            success: function (data) {
 | 
	
		
			
				|  |  | +            	console.log(data.data);
 | 
	
		
			
				|  |  | +            	this.setState({
 | 
	
		
			
				|  |  | +            		mademandId:data.data.id,//录入人
 | 
	
		
			
				|  |  | +                    adminName: data.data.techBrokerId,//录入人
 | 
	
		
			
				|  |  | +                    createTime: data.data.createTime,//录入时间
 | 
	
		
			
				|  |  | +                    employerName: data.data.employerName,//公司名称
 | 
	
		
			
				|  |  | +                    name: data.data.name,//需求名称
 | 
	
		
			
				|  |  | +                    employerContactsMobile:data.data.employerContactsMobile,//联系人电话
 | 
	
		
			
				|  |  | +                    employerContactsMailbox:data.data.employerContactsMailbox,//联系人邮箱
 | 
	
		
			
				|  |  | +                    createTimeFormattedDate:data.data.createTimeFormattedDate,//录入时间转格式
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +            }.bind(this),
 | 
	
		
			
				|  |  | +        }).always(function () {
 | 
	
		
			
				|  |  | +            this.setState({
 | 
	
		
			
				|  |  | +                loading: false
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +        }.bind(this));
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //点击新增
 | 
	
		
			
				|  |  | +    addmate(e){
 | 
	
		
			
				|  |  | +    	
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		addmatevisible: true 
 | 
	
		
			
				|  |  | +    	});
 | 
	
		
			
				|  |  | +    	this.matereset();
 | 
	
		
			
				|  |  | +    	this.mateTop();
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //修改一条匹配记录
 | 
	
		
			
				|  |  | +    addmateSubmits(e){
 | 
	
		
			
				|  |  | +    	e.preventDefault();	
 | 
	
		
			
				|  |  | +    	this.setState({
 | 
	
		
			
				|  |  | +            loading: true
 | 
	
		
			
				|  |  | +        }); 
 | 
	
		
			
				|  |  | +        $.ajax({
 | 
	
		
			
				|  |  | +            method: "post",
 | 
	
		
			
				|  |  | +            dataType: "json",
 | 
	
		
			
				|  |  | +            crossDomain: false,
 | 
	
		
			
				|  |  | +            url:globalConfig.context + '/api/admin/demand/updateDemandFollow',
 | 
	
		
			
				|  |  | +            data:{
 | 
	
		
			
				|  |  | +            	id:this.state.mademandIds,//需求ID
 | 
	
		
			
				|  |  | +            	contactMobile:this.state.mateContactMobile,//成果方联系方式
 | 
	
		
			
				|  |  | +            	contacts:this.state.mateContacts,//成果联系人
 | 
	
		
			
				|  |  | +            	organization:this.state.mateOrganization,//匹配机构
 | 
	
		
			
				|  |  | +            	sources:this.state.mateSources,//来源
 | 
	
		
			
				|  |  | +            	remark:this.state.mateRemark,//备注
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }).done(function (data) { 
 | 
	
		
			
				|  |  | +            this.setState({
 | 
	
		
			
				|  |  | +                loading: false
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            if (!data.error.length) {
 | 
	
		
			
				|  |  | +                message.success('修改匹配跟进成功!'); 
 | 
	
		
			
				|  |  | +               this.mateLoadData();
 | 
	
		
			
				|  |  | +               this.addmateNo();
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                message.warning(data.error[0].message);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }.bind(this));
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //新增一条匹配记录
 | 
	
		
			
				|  |  | +    addmateSubmit(e){
 | 
	
		
			
				|  |  | +    	e.preventDefault();	
 | 
	
		
			
				|  |  | +    	this.setState({
 | 
	
		
			
				|  |  | +            loading: true
 | 
	
		
			
				|  |  | +        }); 
 | 
	
		
			
				|  |  | +        $.ajax({
 | 
	
		
			
				|  |  | +            method: "post",
 | 
	
		
			
				|  |  | +            dataType: "json",
 | 
	
		
			
				|  |  | +            crossDomain: false,
 | 
	
		
			
				|  |  | +            url:globalConfig.context + '/api/admin/demand/addDemandFollow',
 | 
	
		
			
				|  |  | +            data:{
 | 
	
		
			
				|  |  | +            	demandId:this.state.mademandId,//需求ID
 | 
	
		
			
				|  |  | +            	contactMobile:this.state.mateContactMobile,//成果方联系方式
 | 
	
		
			
				|  |  | +            	contacts:this.state.mateContacts,//成果联系人
 | 
	
		
			
				|  |  | +            	organization:this.state.mateOrganization,//匹配机构
 | 
	
		
			
				|  |  | +            	sources:this.state.mateSources,//来源
 | 
	
		
			
				|  |  | +            	remark:this.state.mateRemark,//备注
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }).done(function (data) { 
 | 
	
		
			
				|  |  | +            this.setState({
 | 
	
		
			
				|  |  | +                loading: false
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            if (!data.error.length) {
 | 
	
		
			
				|  |  | +                message.success('新增匹配跟进成功!'); 
 | 
	
		
			
				|  |  | +               this.mateLoadData();
 | 
	
		
			
				|  |  | +               this.addmateNo();
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                message.warning(data.error[0].message);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }.bind(this));
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //新增跟进记录
 | 
	
		
			
				|  |  | +    addhandleSubmit(e){
 | 
	
		
			
				|  |  | +    	e.preventDefault();	
 | 
	
		
			
				|  |  | +    	let rowItem = '';
 | 
	
		
			
				|  |  | +        for (let idx = 0; idx < this.state.mateselectedRows.length; idx++) {
 | 
	
		
			
				|  |  | +            rowItem = this.state.mateselectedRows[idx];
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +       	this.setState({
 | 
	
		
			
				|  |  | +    		mateselectedRowKeys: [],
 | 
	
		
			
				|  |  | +            loading: true
 | 
	
		
			
				|  |  | +        }); 
 | 
	
		
			
				|  |  | +        $.ajax({
 | 
	
		
			
				|  |  | +            method: "post",
 | 
	
		
			
				|  |  | +            dataType: "json",
 | 
	
		
			
				|  |  | +            crossDomain: false,
 | 
	
		
			
				|  |  | +            url:globalConfig.context + '/api/admin/demand/addDemandFollowDetail',
 | 
	
		
			
				|  |  | +            data:{
 | 
	
		
			
				|  |  | +            	demandFollowId:rowItem.id,//需求跟进ID
 | 
	
		
			
				|  |  | +            	createTimeFormattedDate:this.state.RowData.addcreateTime,//跟进时间
 | 
	
		
			
				|  |  | +            	result:this.state.addresult,//跟进结果
 | 
	
		
			
				|  |  | +            	remarks:this.state.addremarks,//跟进情况
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }).done(function (data) { 
 | 
	
		
			
				|  |  | +            this.setState({
 | 
	
		
			
				|  |  | +                loading: false
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            if (!data.error.length) {
 | 
	
		
			
				|  |  | +                message.success('最新跟进添加成功成功!'); 
 | 
	
		
			
				|  |  | +                this.addmateNo1();
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                message.warning(data.error[0].message);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }.bind(this));
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //点开详情
 | 
	
		
			
				|  |  | +    mateTableRowClick(record, index){
 | 
	
		
			
				|  |  | +    	console.log(record);
 | 
	
		
			
				|  |  | +    	this.mateTop();
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		addmatevisibles: true,
 | 
	
		
			
				|  |  | +    		mateOrganization:record.organization,//匹配机构
 | 
	
		
			
				|  |  | +    		mateSources:record.sources,//来源
 | 
	
		
			
				|  |  | +    		mateContacts:record.contacts,//成果联系人
 | 
	
		
			
				|  |  | +    		mateContactMobile:record.contactMobile,//联系人电话
 | 
	
		
			
				|  |  | +    		mateRemark:record.remark,//备注
 | 
	
		
			
				|  |  | +    		mademandIds:record.id,//该条匹配跟进的ID
 | 
	
		
			
				|  |  | +    	});
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    addmateNos(){
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		addmatevisibles: false 
 | 
	
		
			
				|  |  | +    	})
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    addmateNo(){
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		addmatevisible: false 
 | 
	
		
			
				|  |  | +    	})
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    addmate1(){
 | 
	
		
			
				|  |  | +    	
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		addmatevisible1: true 
 | 
	
		
			
				|  |  | +    	});
 | 
	
		
			
				|  |  | +    	this.lookreset();
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    addmateNo1(){
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		addmatevisible1: false 
 | 
	
		
			
				|  |  | +    	});
 | 
	
		
			
				|  |  | +    	this.mateLoadData();
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    lookmate(){
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		lookvisible: true 
 | 
	
		
			
				|  |  | +    	});
 | 
	
		
			
				|  |  | +    	this.lookLoadData();
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    lookmateNo(){
 | 
	
		
			
				|  |  | +    	this.setState({ 
 | 
	
		
			
				|  |  | +    		lookvisible: false 
 | 
	
		
			
				|  |  | +    	})
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      addClick() {
 | 
	
		
			
				|  |  |          this.state.RowData = {};
 | 
	
		
			
				|  |  |          this.setState({
 | 
	
	
		
			
				|  | @@ -403,6 +854,19 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |          this.state.releaseDateS = [];
 | 
	
		
			
				|  |  |          this.loadData();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    matereset(){
 | 
	
		
			
				|  |  | +    	this.state.mateContactMobile = undefined;//成果方联系方式
 | 
	
		
			
				|  |  | +    	this.state.mateContacts = undefined;//成果联系人
 | 
	
		
			
				|  |  | +    	this.state.mateOrganization = undefined;//匹配机构
 | 
	
		
			
				|  |  | +    	this.state.mateSources = undefined;//来源
 | 
	
		
			
				|  |  | +    	this.state.mateRemark = undefined;//备注
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //点击新增跟进记录是清空里面的内容
 | 
	
		
			
				|  |  | +    lookreset(){
 | 
	
		
			
				|  |  | +    	this.state.RowData.addcreateTime = undefined;
 | 
	
		
			
				|  |  | +    	this.state.addresult = '';
 | 
	
		
			
				|  |  | +    	this.state.addremarks = undefined;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      searchSwitch() {
 | 
	
		
			
				|  |  |          this.setState({
 | 
	
		
			
				|  |  |              searchMore: !this.state.searchMore
 | 
	
	
		
			
				|  | @@ -418,8 +882,19 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  | +        const materowSelection = {
 | 
	
		
			
				|  |  | +            selectedRowKeys: this.state.mateselectedRowKeys,
 | 
	
		
			
				|  |  | +            onChange: (mateselectedRowKeys, mateselectedRows) => {
 | 
	
		
			
				|  |  | +                this.setState({
 | 
	
		
			
				|  |  | +                    mateselectedRows: mateselectedRows.slice(-1),
 | 
	
		
			
				|  |  | +                    mateselectedRowKeys: mateselectedRowKeys.slice(-1)
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  |          const hasSelected = this.state.selectedRowKeys.length > 0;
 | 
	
		
			
				|  |  | +        const matehasSelected= this.state.mateselectedRowKeys.length > 0;
 | 
	
		
			
				|  |  |          const { RangePicker } = DatePicker;
 | 
	
		
			
				|  |  | +        const FormItem = Form.Item
 | 
	
		
			
				|  |  |          return (
 | 
	
		
			
				|  |  |              <div className="user-content" >
 | 
	
		
			
				|  |  |                  <div className="content-title">
 | 
	
	
		
			
				|  | @@ -476,6 +951,9 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |                      <Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
 | 
	
		
			
				|  |  |                          disabled={!hasSelected}
 | 
	
		
			
				|  |  |                          onClick={this.delectRow}>删除<Icon type="minus" /></Button>
 | 
	
		
			
				|  |  | +                    <Button type="primary"
 | 
	
		
			
				|  |  | +                        disabled={!hasSelected}
 | 
	
		
			
				|  |  | +                        onClick={this.mate}>匹配跟进<Icon type="minus" /></Button>
 | 
	
		
			
				|  |  |                      <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
 | 
	
		
			
				|  |  |                      <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
 | 
	
		
			
				|  |  |                      	<Radio.Group value={this.state.boutique} onChange={(e) => {
 | 
	
	
		
			
				|  | @@ -555,6 +1033,334 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |                              onRowClick={this.tableRowClick} />
 | 
	
		
			
				|  |  |                      </Spin>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  | +                <div className="patent-desc">
 | 
	
		
			
				|  |  | +                    <Modal maskClosable={false} visible={this.state.matevisible}
 | 
	
		
			
				|  |  | +                        onOk={this.checkPatentProcess} onCancel={this.mateNo}
 | 
	
		
			
				|  |  | +                        width='1000px'
 | 
	
		
			
				|  |  | +                        title='匹配跟进'                       
 | 
	
		
			
				|  |  | +                        footer=''
 | 
	
		
			
				|  |  | +                        className="admin-desc-content">
 | 
	
		
			
				|  |  | +                         <Form horizontal  id="add-form">
 | 
	
		
			
				|  |  | +			                <Spin spinning={this.state.loading}>
 | 
	
		
			
				|  |  | +				                <div className="clearfix" >
 | 
	
		
			
				|  |  | +							        <Button className="ContactsList" type="primary" onClick={this.addmate} style={{float:'left',marginBottom:'10px',marginRight:'20px'}}>新增</Button>
 | 
	
		
			
				|  |  | +							        <Button className="ContactsList" type="primary" onClick={this.addmate1} style={{float:'left',marginBottom:'10px',marginRight:'20px'}} disabled={!matehasSelected}>添加跟进情况</Button>
 | 
	
		
			
				|  |  | +							        <Button className="ContactsList" type="primary" onClick={this.lookmate} style={{float:'left',marginBottom:'10px',marginRight:'20px'}} disabled={!matehasSelected}>查看跟进情况</Button>
 | 
	
		
			
				|  |  | +							        <Button className="ContactsList"  onClick={this.delect} style={{float:'left',marginBottom:'10px',marginRight:'20px'}} disabled={!matehasSelected}>删除</Button>
 | 
	
		
			
				|  |  | +						        </div>
 | 
	
		
			
				|  |  | +			                    <div className="clearfix">
 | 
	
		
			
				|  |  | +	                			  <Spin spinning={this.state.loading}>
 | 
	
		
			
				|  |  | +	                			     <Form horizontal id="demand-form" onSubmit={this.contactSave} >
 | 
	
		
			
				|  |  | +								      <Table 
 | 
	
		
			
				|  |  | +						            	 pagination={this.state.matepagination}
 | 
	
		
			
				|  |  | +						            	 columns={this.state.mateColumns} 
 | 
	
		
			
				|  |  | +						            	 dataSource={this.state.mateDataSource}
 | 
	
		
			
				|  |  | +						            	 rowSelection={materowSelection}
 | 
	
		
			
				|  |  | +						            	 onRowClick={this.mateTableRowClick}
 | 
	
		
			
				|  |  | +						            	 />
 | 
	
		
			
				|  |  | +						            </Form> 
 | 
	
		
			
				|  |  | +								   </Spin> 
 | 
	
		
			
				|  |  | +								</div>
 | 
	
		
			
				|  |  | +			                </Spin>
 | 
	
		
			
				|  |  | +			            </Form >
 | 
	
		
			
				|  |  | +                    </Modal>
 | 
	
		
			
				|  |  | +            	</div>
 | 
	
		
			
				|  |  | +            	<div className="patent-desc">
 | 
	
		
			
				|  |  | +                    <Modal maskClosable={false} visible={this.state.addmatevisible}
 | 
	
		
			
				|  |  | +                        onOk={this.checkPatentProcess} onCancel={this.addmateNo}
 | 
	
		
			
				|  |  | +                        width='1000px'
 | 
	
		
			
				|  |  | +                        title='新增匹配跟进'                       
 | 
	
		
			
				|  |  | +                        footer=''
 | 
	
		
			
				|  |  | +                        className="admin-desc-content">
 | 
	
		
			
				|  |  | +                         <Form horizontal onSubmit={this.addmateSubmit} id="add-form">
 | 
	
		
			
				|  |  | +			                <Spin spinning={this.state.loading}>
 | 
	
		
			
				|  |  | +				                <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="录入人:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.adminName}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="录入时间:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.createTimeFormattedDate}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +				                <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="企业名称:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.employerName}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="需求名称:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.name}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +				                <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="联系人联络方式:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.employerContactsMobile}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="联系人邮箱:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.employerContactsMailbox}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +				                <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="匹配机构:" >
 | 
	
		
			
				|  |  | +			                    	    <Input placeholder="机构名称" value={this.state.mateOrganization} style={{width:'94%'}}
 | 
	
		
			
				|  |  | +			                                onChange={(e)=>{this.setState({mateOrganization:e.target.value})}} required="required"/>
 | 
	
		
			
				|  |  | +			                           	<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem  className="half-item"
 | 
	
		
			
				|  |  | +				                    	labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +			                           label="匹配来源:"
 | 
	
		
			
				|  |  | +		                               > 
 | 
	
		
			
				|  |  | +		                                <Input placeholder="匹配来源" value={this.state.mateSources} style={{width:'94%'}}
 | 
	
		
			
				|  |  | +			                                onChange={(e)=>{this.setState({mateSources:e.target.value})}} />
 | 
	
		
			
				|  |  | +			                        </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +	                   		    <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="成果联系人:" >
 | 
	
		
			
				|  |  | +			                    	    <Input placeholder="联系人名称" value={this.state.mateContacts} style={{width:'94%'}}
 | 
	
		
			
				|  |  | +			                                onChange={(e)=>{this.setState({mateContacts:e.target.value})}} required="required"/>
 | 
	
		
			
				|  |  | +			                           	<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem  className="half-item"
 | 
	
		
			
				|  |  | +				                    	labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +			                           label="成果方联系方式:"
 | 
	
		
			
				|  |  | +		                               > 
 | 
	
		
			
				|  |  | +		                                <Input placeholder="联系方式" value={this.state.mateContactMobile} style={{width:'94%'}}
 | 
	
		
			
				|  |  | +			                                onChange={(e)=>{this.setState({mateContactMobile:e.target.value})}} required="required"/>
 | 
	
		
			
				|  |  | +			                           	<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
 | 
	
		
			
				|  |  | +		                   		    </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +				                <div className="clearfix">
 | 
	
		
			
				|  |  | +		                   		    <FormItem
 | 
	
		
			
				|  |  | +				                        labelCol={{ span: 4 }}
 | 
	
		
			
				|  |  | +				                        wrapperCol={{ span: 18 }}
 | 
	
		
			
				|  |  | +				                        label="备注:" >					                        
 | 
	
		
			
				|  |  | +				                        <Input type="textarea" rows={4} placeholder="匹配情况备注" value={this.state.mateRemark}
 | 
	
		
			
				|  |  | +                           				 	onChange={(e) => { this.setState({ mateRemark: e.target.value }) }} style={{width:'95%'}}/>					                           
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                </div>  
 | 
	
		
			
				|  |  | +				                <div className="clearfix">
 | 
	
		
			
				|  |  | +	                			  <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'190px',marginBottom:'20px'}}>保存</Button>  
 | 
	
		
			
				|  |  | +			                      <Button className="set-submit" type="ghost" onClick={this.addmateNo} style={{marginLeft:'100px',marginBottom:'20px'}}>取消</Button>
 | 
	
		
			
				|  |  | +				                </div>
 | 
	
		
			
				|  |  | +			                </Spin>
 | 
	
		
			
				|  |  | +			            </Form >
 | 
	
		
			
				|  |  | +                    </Modal>
 | 
	
		
			
				|  |  | +            	</div>
 | 
	
		
			
				|  |  | +            	<div className="patent-desc">
 | 
	
		
			
				|  |  | +                    <Modal maskClosable={false} visible={this.state.addmatevisibles}
 | 
	
		
			
				|  |  | +                        onOk={this.checkPatentProcess} onCancel={this.addmateNos}
 | 
	
		
			
				|  |  | +                        width='1000px'
 | 
	
		
			
				|  |  | +                        title='匹配跟进详情'                       
 | 
	
		
			
				|  |  | +                        footer=''
 | 
	
		
			
				|  |  | +                        className="admin-desc-content">
 | 
	
		
			
				|  |  | +                         <Form horizontal onSubmit={this.addmateSubmits} id="add-form">
 | 
	
		
			
				|  |  | +			                <Spin spinning={this.state.loading}>
 | 
	
		
			
				|  |  | +				                <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="录入人:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.adminName}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="录入时间:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.createTimeFormattedDate}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +				                <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="企业名称:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.employerName}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="需求名称:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.name}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +				                <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="联系人联络方式:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.employerContactsMobile}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="联系人邮箱:" >
 | 
	
		
			
				|  |  | +			                    	     	<span>{this.state.employerContactsMailbox}</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +				                <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="匹配机构:" >
 | 
	
		
			
				|  |  | +			                    	    <Input placeholder="机构名称" value={this.state.mateOrganization} style={{width:'94%'}}
 | 
	
		
			
				|  |  | +			                                onChange={(e)=>{this.setState({mateOrganization:e.target.value})}} required="required"/>
 | 
	
		
			
				|  |  | +			                           	<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem  className="half-item"
 | 
	
		
			
				|  |  | +				                    	labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +			                           label="匹配来源:"
 | 
	
		
			
				|  |  | +		                               > 
 | 
	
		
			
				|  |  | +		                                <Input placeholder="匹配来源" value={this.state.mateSources} style={{width:'94%'}}
 | 
	
		
			
				|  |  | +			                                onChange={(e)=>{this.setState({mateSources:e.target.value})}} />
 | 
	
		
			
				|  |  | +			                        </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +	                   		    <div className="clearfix" style={{paddingLeft:'60px'}}>
 | 
	
		
			
				|  |  | +			                    	<FormItem className="half-item"
 | 
	
		
			
				|  |  | +				                            labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        	wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +				                            label="成果联系人:" >
 | 
	
		
			
				|  |  | +			                    	    <Input placeholder="联系人名称" value={this.state.mateContacts} style={{width:'94%'}}
 | 
	
		
			
				|  |  | +			                                onChange={(e)=>{this.setState({mateContacts:e.target.value})}} required="required"/>
 | 
	
		
			
				|  |  | +			                           	<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                    <FormItem  className="half-item"
 | 
	
		
			
				|  |  | +				                    	labelCol={{ span: 6 }}
 | 
	
		
			
				|  |  | +				                        wrapperCol={{ span: 12 }}
 | 
	
		
			
				|  |  | +			                           label="成果方联系方式:"
 | 
	
		
			
				|  |  | +		                               > 
 | 
	
		
			
				|  |  | +		                                <Input placeholder="联系方式" value={this.state.mateContactMobile} style={{width:'94%'}}
 | 
	
		
			
				|  |  | +			                                onChange={(e)=>{this.setState({mateContactMobile:e.target.value})}} required="required"/>
 | 
	
		
			
				|  |  | +			                           	<span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
 | 
	
		
			
				|  |  | +		                   		    </FormItem>
 | 
	
		
			
				|  |  | +	                   		    </div>
 | 
	
		
			
				|  |  | +				                <div className="clearfix">
 | 
	
		
			
				|  |  | +		                   		    <FormItem
 | 
	
		
			
				|  |  | +				                        labelCol={{ span: 4 }}
 | 
	
		
			
				|  |  | +				                        wrapperCol={{ span: 18 }}
 | 
	
		
			
				|  |  | +				                        label="备注:" >					                        
 | 
	
		
			
				|  |  | +				                        <Input type="textarea" rows={4} placeholder="匹配情况备注" value={this.state.mateRemark}
 | 
	
		
			
				|  |  | +                           				 	onChange={(e) => { this.setState({ mateRemark: e.target.value }) }} style={{width:'95%'}}/>					                           
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                </div>  
 | 
	
		
			
				|  |  | +				                <div className="clearfix">
 | 
	
		
			
				|  |  | +	                			  <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'190px',marginBottom:'20px'}}>保存</Button>  
 | 
	
		
			
				|  |  | +			                      <Button className="set-submit" type="ghost" onClick={this.addmateNos} style={{marginLeft:'100px',marginBottom:'20px'}}>取消</Button>
 | 
	
		
			
				|  |  | +				                </div>
 | 
	
		
			
				|  |  | +			                </Spin>
 | 
	
		
			
				|  |  | +			            </Form >
 | 
	
		
			
				|  |  | +                    </Modal>
 | 
	
		
			
				|  |  | +            	</div>
 | 
	
		
			
				|  |  | +                <div className="patent-desc">
 | 
	
		
			
				|  |  | +                    <Modal maskClosable={false} visible={this.state.addmatevisible1}
 | 
	
		
			
				|  |  | +                        onOk={this.checkPatentProcess} onCancel={this.addmateNo1}
 | 
	
		
			
				|  |  | +                        width='600px'
 | 
	
		
			
				|  |  | +                        title='跟进情况添加'                       
 | 
	
		
			
				|  |  | +                        footer=''
 | 
	
		
			
				|  |  | +                        className="admin-desc-content">
 | 
	
		
			
				|  |  | +                         <Form horizontal onSubmit={this.addhandleSubmit} id="add-form">
 | 
	
		
			
				|  |  | +			                <Spin spinning={this.state.loading}>
 | 
	
		
			
				|  |  | +			                    <div className="clearfix">
 | 
	
		
			
				|  |  | +	                                <FormItem
 | 
	
		
			
				|  |  | +				                        labelCol={{ span: 5 }}
 | 
	
		
			
				|  |  | +				                        wrapperCol={{ span: 16 }}
 | 
	
		
			
				|  |  | +				                        label="跟进时间" >		
 | 
	
		
			
				|  |  | +	                                    <DatePicker 
 | 
	
		
			
				|  |  | +	                                    	style={{'width':'95%'}}
 | 
	
		
			
				|  |  | +	                                        format="YYYY-MM-DD"
 | 
	
		
			
				|  |  | +	                                        placeholder="选择跟进时间"
 | 
	
		
			
				|  |  | +	                                        value={this.state.RowData.addcreateTime ? moment(this.state.RowData.addcreateTime, "YYYY-MM-DD") : undefined}
 | 
	
		
			
				|  |  | +	                                        onChange={(t, str) => {
 | 
	
		
			
				|  |  | +	                                            this.state.RowData.addcreateTime = str;
 | 
	
		
			
				|  |  | +	                                            this.setState({ RowData: this.state.RowData});
 | 
	
		
			
				|  |  | +	                                        }} />
 | 
	
		
			
				|  |  | +	                                    <span style={{color:'red',marginLeft:'5px'}}>*</span>
 | 
	
		
			
				|  |  | +	                                </FormItem>
 | 
	
		
			
				|  |  | +	                            </div>   
 | 
	
		
			
				|  |  | +	                            <div className="clearfix">
 | 
	
		
			
				|  |  | +				                    	<FormItem 
 | 
	
		
			
				|  |  | +				                         	labelCol={{ span: 5 }}
 | 
	
		
			
				|  |  | +					                        wrapperCol={{ span: 16 }}
 | 
	
		
			
				|  |  | +				                           	label="跟进结果"
 | 
	
		
			
				|  |  | +				                         > 
 | 
	
		
			
				|  |  | +											 <Select placeholder="请选择跟进结果"
 | 
	
		
			
				|  |  | +					                            value={this.state.addresult}
 | 
	
		
			
				|  |  | +					                            style={{'width':'95%'}}
 | 
	
		
			
				|  |  | +					                            onChange={(e) => { this.setState({ addresult: e }) }}>
 | 
	
		
			
				|  |  | +					                            <Select.Option value="0" >跟进中</Select.Option>
 | 
	
		
			
				|  |  | +					                            <Select.Option value="1" >已匹配</Select.Option>
 | 
	
		
			
				|  |  | +					                         </Select>
 | 
	
		
			
				|  |  | +					                         <span style={{color:'red',marginLeft:'5px'}}>*</span>
 | 
	
		
			
				|  |  | +				                   		 </FormItem>
 | 
	
		
			
				|  |  | +				                    </div>
 | 
	
		
			
				|  |  | +			                   	<div className="clearfix">
 | 
	
		
			
				|  |  | +		                   		    <FormItem
 | 
	
		
			
				|  |  | +				                        labelCol={{ span: 5 }}
 | 
	
		
			
				|  |  | +				                        wrapperCol={{ span: 16 }}
 | 
	
		
			
				|  |  | +				                        label="跟进情况" >					                        
 | 
	
		
			
				|  |  | +				                        <Input type="textarea" rows={4} placeholder="跟进情况记录" value={this.state.addremarks}
 | 
	
		
			
				|  |  | +                           				 	onChange={(e) => { this.setState({ addremarks: e.target.value }) }} style={{width:'95%'}}/>					                           
 | 
	
		
			
				|  |  | +				                    	<span style={{color:'red',marginLeft:'5px'}}>*</span>
 | 
	
		
			
				|  |  | +				                    </FormItem>
 | 
	
		
			
				|  |  | +				                </div>    
 | 
	
		
			
				|  |  | +			                    <FormItem wrapperCol={{ span: 12, offset: 7 }}>
 | 
	
		
			
				|  |  | +			                        <Button className="set-submit" type="primary" htmlType="submit">保存</Button>  
 | 
	
		
			
				|  |  | +			                        <Button className="set-submit" type="ghost" onClick={this.addmateNo1} style={{marginLeft:'100px'}}>取消</Button>
 | 
	
		
			
				|  |  | +			                    </FormItem> 
 | 
	
		
			
				|  |  | +			                </Spin>
 | 
	
		
			
				|  |  | +			            </Form >
 | 
	
		
			
				|  |  | +                    </Modal>
 | 
	
		
			
				|  |  | +            	 </div>	 
 | 
	
		
			
				|  |  | +            	 <div className="patent-desc">
 | 
	
		
			
				|  |  | +                    <Modal maskClosable={false} visible={this.state.lookvisible}
 | 
	
		
			
				|  |  | +                        onOk={this.checkPatentProcess} onCancel={this.lookmateNo}
 | 
	
		
			
				|  |  | +                        width='600px'
 | 
	
		
			
				|  |  | +                        title='跟进情况列表'                       
 | 
	
		
			
				|  |  | +                        footer=''
 | 
	
		
			
				|  |  | +                        className="admin-desc-content">
 | 
	
		
			
				|  |  | +                         <Form horizontal onSubmit={this.addhandleSubmit} id="add-form">
 | 
	
		
			
				|  |  | +			                <Spin spinning={this.state.loading}>
 | 
	
		
			
				|  |  | +			                    <div className="clearfix">
 | 
	
		
			
				|  |  | +	                			  <Spin spinning={this.state.loading}>
 | 
	
		
			
				|  |  | +	                			     <Form horizontal id="demand-form" onSubmit={this.contactSave} >
 | 
	
		
			
				|  |  | +								      <Table 
 | 
	
		
			
				|  |  | +						            	 pagination={this.state.lookpagination}
 | 
	
		
			
				|  |  | +						            	 columns={this.state.lookColumns} 
 | 
	
		
			
				|  |  | +						            	 dataSource={this.state.lookDataSource}
 | 
	
		
			
				|  |  | +						            	 rowSelection={rowSelection}
 | 
	
		
			
				|  |  | +						            	 onRowClick={this.lookTableRowClick}
 | 
	
		
			
				|  |  | +						            	 />
 | 
	
		
			
				|  |  | +						            </Form> 
 | 
	
		
			
				|  |  | +								   </Spin> 
 | 
	
		
			
				|  |  | +								</div>
 | 
	
		
			
				|  |  | +			                </Spin>
 | 
	
		
			
				|  |  | +			            </Form >
 | 
	
		
			
				|  |  | +                    </Modal>
 | 
	
		
			
				|  |  | +            	 </div>
 | 
	
		
			
				|  |  |                  <TechDemandDesc
 | 
	
		
			
				|  |  |                      data={this.state.RowData}
 | 
	
		
			
				|  |  |                      detailApiUrl={this.props['data-detailApiUrl']}
 | 
	
	
		
			
				|  | @@ -564,6 +1370,7 @@ const DemandList = React.createClass({
 | 
	
		
			
				|  |  |                      showDesc={this.state.showDesc}
 | 
	
		
			
				|  |  |                      closeDesc={this.closeDesc} />
 | 
	
		
			
				|  |  |              </div >
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  |          );
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  });
 |