|
@@ -1,5 +1,5 @@
|
|
import React from 'react';
|
|
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 ajax from 'jquery/src/ajax/xhr.js';
|
|
import $ from 'jquery/src/ajax';
|
|
import $ from 'jquery/src/ajax';
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
@@ -103,6 +103,119 @@ const DemandList = React.createClass({
|
|
});
|
|
});
|
|
}.bind(this));
|
|
}.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,//录入时间
|
|
|
|
+ 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
|
|
|
|
+ });
|
|
|
|
+ $.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,//跟进时间
|
|
|
|
+ });
|
|
|
|
+ };
|
|
|
|
+ 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() {
|
|
getInitialState() {
|
|
return {
|
|
return {
|
|
searchMore: true,
|
|
searchMore: true,
|
|
@@ -111,6 +224,7 @@ const DemandList = React.createClass({
|
|
releaseDate: [],
|
|
releaseDate: [],
|
|
releaseDateS: [],
|
|
releaseDateS: [],
|
|
selectedRowKeys: [],
|
|
selectedRowKeys: [],
|
|
|
|
+ mateselectedRowKeys: [],
|
|
selectedRows: [],
|
|
selectedRows: [],
|
|
loading: false,
|
|
loading: false,
|
|
pagination: {
|
|
pagination: {
|
|
@@ -125,6 +239,30 @@ const DemandList = React.createClass({
|
|
return '共' + total + '条数据';
|
|
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: [
|
|
columns: [
|
|
{
|
|
{
|
|
title: '编号',
|
|
title: '编号',
|
|
@@ -218,6 +356,79 @@ const DemandList = React.createClass({
|
|
}
|
|
}
|
|
],
|
|
],
|
|
dataSource: [],
|
|
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: 'lastFollowTime',
|
|
|
|
+ key: 'lastFollowTime',
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ mateDataSource: [],
|
|
|
|
+ searchTime: [],
|
|
|
|
+ lookColumns: [
|
|
|
|
+ {
|
|
|
|
+ title: '跟进时间',
|
|
|
|
+ dataIndex: 'createTime',
|
|
|
|
+ key: 'createTime',
|
|
|
|
+ },{
|
|
|
|
+ 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: []
|
|
searchTime: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -285,6 +496,7 @@ const DemandList = React.createClass({
|
|
});
|
|
});
|
|
}.bind(this));
|
|
}.bind(this));
|
|
},
|
|
},
|
|
|
|
+
|
|
componentWillMount() {
|
|
componentWillMount() {
|
|
let theArr = [];
|
|
let theArr = [];
|
|
demandTypeList.map(function (item) {
|
|
demandTypeList.map(function (item) {
|
|
@@ -336,6 +548,7 @@ const DemandList = React.createClass({
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ //删除需求
|
|
delectRow() {
|
|
delectRow() {
|
|
let deletedIds = [];
|
|
let deletedIds = [];
|
|
for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
|
|
for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
|
|
@@ -368,6 +581,233 @@ const DemandList = React.createClass({
|
|
this.loadData();
|
|
this.loadData();
|
|
}.bind(this));
|
|
}.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) {
|
|
|
|
+ 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,//联系人邮箱
|
|
|
|
+ });
|
|
|
|
+ }.bind(this),
|
|
|
|
+ }).always(function () {
|
|
|
|
+ this.setState({
|
|
|
|
+ loading: false
|
|
|
|
+ });
|
|
|
|
+ }.bind(this));
|
|
|
|
+ },
|
|
|
|
+ //点击新增
|
|
|
|
+ addmate(e){
|
|
|
|
+ this.setState({
|
|
|
|
+ addmatevisible: true
|
|
|
|
+ });
|
|
|
|
+ this.mateTop();
|
|
|
|
+ },
|
|
|
|
+ //新增一条匹配记录
|
|
|
|
+ addmateSubmits(e){
|
|
|
|
+ e.preventDefault();
|
|
|
|
+ this.setState({
|
|
|
|
+ loading: true
|
|
|
|
+ });
|
|
|
|
+ $.ajax({
|
|
|
|
+ method: "post",
|
|
|
|
+ dataType: "json",
|
|
|
|
+ crossDomain: false,
|
|
|
|
+ url:globalConfig.context + '/api/admin/demand/addDemandFollow',
|
|
|
|
+ data:{
|
|
|
|
+ id: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));
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ //修改一条匹配记录
|
|
|
|
+ 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){
|
|
|
|
+ this.mateTop();
|
|
|
|
+ this.setState({
|
|
|
|
+ addmatevisibles: true,
|
|
|
|
+ mateOrganization:record.organization,//匹配机构
|
|
|
|
+ mateSources:record.sources,//来源
|
|
|
|
+ mateContacts:record.contacts,//成果联系人
|
|
|
|
+ mateContactMobile:record.contactMobile,//联系人电话
|
|
|
|
+ mateRemark:record.remark,//备注
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ addmateNos(){
|
|
|
|
+ this.setState({
|
|
|
|
+ addmatevisibles: false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ addmateNo(){
|
|
|
|
+ this.setState({
|
|
|
|
+ addmatevisible: false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ addmate1(){
|
|
|
|
+ this.setState({
|
|
|
|
+ addmatevisible1: true
|
|
|
|
+ });
|
|
|
|
+ this.mateLoadData();
|
|
|
|
+ },
|
|
|
|
+ addmateNo1(){
|
|
|
|
+ this.setState({
|
|
|
|
+ addmatevisible1: false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ lookmate(){
|
|
|
|
+ this.setState({
|
|
|
|
+ lookvisible: true
|
|
|
|
+ });
|
|
|
|
+ this.lookLoadData();
|
|
|
|
+ },
|
|
|
|
+ lookmateNo(){
|
|
|
|
+ this.setState({
|
|
|
|
+ lookvisible: false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
addClick() {
|
|
addClick() {
|
|
this.state.RowData = {};
|
|
this.state.RowData = {};
|
|
this.setState({
|
|
this.setState({
|
|
@@ -418,8 +858,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 hasSelected = this.state.selectedRowKeys.length > 0;
|
|
|
|
+ const matehasSelected= this.state.mateselectedRowKeys.length > 0;
|
|
const { RangePicker } = DatePicker;
|
|
const { RangePicker } = DatePicker;
|
|
|
|
+ const FormItem = Form.Item
|
|
return (
|
|
return (
|
|
<div className="user-content" >
|
|
<div className="user-content" >
|
|
<div className="content-title">
|
|
<div className="content-title">
|
|
@@ -476,6 +927,9 @@ const DemandList = React.createClass({
|
|
<Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
|
|
<Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
|
|
disabled={!hasSelected}
|
|
disabled={!hasSelected}
|
|
onClick={this.delectRow}>删除<Icon type="minus" /></Button>
|
|
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>
|
|
<span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
|
|
<div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
|
|
<div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
|
|
<Radio.Group value={this.state.boutique} onChange={(e) => {
|
|
<Radio.Group value={this.state.boutique} onChange={(e) => {
|
|
@@ -555,6 +1009,334 @@ const DemandList = React.createClass({
|
|
onRowClick={this.tableRowClick} />
|
|
onRowClick={this.tableRowClick} />
|
|
</Spin>
|
|
</Spin>
|
|
</div>
|
|
</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.createTime}</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})}} required="required"/>
|
|
|
|
+ </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.createTime}</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})}} required="required"/>
|
|
|
|
+ </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
|
|
<TechDemandDesc
|
|
data={this.state.RowData}
|
|
data={this.state.RowData}
|
|
detailApiUrl={this.props['data-detailApiUrl']}
|
|
detailApiUrl={this.props['data-detailApiUrl']}
|
|
@@ -564,6 +1346,7 @@ const DemandList = React.createClass({
|
|
showDesc={this.state.showDesc}
|
|
showDesc={this.state.showDesc}
|
|
closeDesc={this.closeDesc} />
|
|
closeDesc={this.closeDesc} />
|
|
</div >
|
|
</div >
|
|
|
|
+
|
|
);
|
|
);
|
|
}
|
|
}
|
|
});
|
|
});
|