|
@@ -3,6 +3,7 @@ import {Button, DatePicker, Icon, Input, message, Select, Spin, Table, Tabs, Tag
|
|
|
import {ChooseList} from "../../order/orderNew/chooseList";
|
|
|
import FollowUpDetails from './followUpDetails';
|
|
|
import CorrespondingDetails from './correspondingDetails';
|
|
|
+import OrderItemStatus from '../../../../component/common/orderItemStatus';
|
|
|
import $ from "jquery";
|
|
|
|
|
|
import {ShowModal} from "@/tools";
|
|
@@ -35,23 +36,20 @@ class FollowUp extends Component{
|
|
|
title: "状态",
|
|
|
dataIndex: "deleteSign",
|
|
|
key: "deleteSign",
|
|
|
- width:90,
|
|
|
+ width:80,
|
|
|
fixed:'left',
|
|
|
render: (text) => {
|
|
|
//0=正常, 1=作废, 2=锁定, 3=变更中
|
|
|
- return <Tag color="#f50">{
|
|
|
- text === 0 ? '正常' :
|
|
|
- text === 1 ? '作废' :
|
|
|
- text === 2 ? '锁定' :
|
|
|
- text === 3 ? '变更中' : '未知'
|
|
|
- }</Tag>
|
|
|
+ return <div>
|
|
|
+ <OrderItemStatus deleteSign={text}/>
|
|
|
+ </div>
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
title: "订单部门",
|
|
|
dataIndex: "depName",
|
|
|
key: "depName",
|
|
|
- width: 130,
|
|
|
+ width: 160,
|
|
|
fixed:'left',
|
|
|
},
|
|
|
{
|
|
@@ -159,7 +157,7 @@ class FollowUp extends Component{
|
|
|
key: "addWechat",
|
|
|
width: 100,
|
|
|
render: (text,record) => {
|
|
|
- let str = text === 1 ? '是('+record.wechat+')' : text === 0 ? '否' : '未知';
|
|
|
+ let str = text === 1 ? '是('+record.wechat+')' : text === 0 ? '否' : '';
|
|
|
return (
|
|
|
<Tooltip placement="topLeft" title={str}>
|
|
|
<div style={{
|
|
@@ -184,7 +182,7 @@ class FollowUp extends Component{
|
|
|
text === 3 ? '否,企业不打算申报/注销' :
|
|
|
text === 4 ? '否,客户考虑中,无报价' :
|
|
|
text === 5 ? '否,客户考虑中,已报价' :
|
|
|
- text === 6 ? '是,已续签/复审,续签时间、续签项目('+record.renewalTimes+')' : '未知'
|
|
|
+ text === 6 ? '是,已续签/复审,续签时间、续签项目('+record.renewalTimes+')' : ''
|
|
|
return (
|
|
|
<Tooltip placement="topLeft" title={str}>
|
|
|
<div style={{
|
|
@@ -274,6 +272,7 @@ class FollowUp extends Component{
|
|
|
this.search = this.search.bind(this);
|
|
|
this.reset = this.reset.bind(this);
|
|
|
this.departmentList = this.departmentList.bind(this);
|
|
|
+ this.download = this.download.bind(this);
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
@@ -337,10 +336,28 @@ class FollowUp extends Component{
|
|
|
this.state.pagination.current = 0;
|
|
|
this.state.pagination.total = 0;
|
|
|
}
|
|
|
+ let obj = {
|
|
|
+ userName:this.state.customerName || undefined,
|
|
|
+ depId:this.state.depId || undefined,
|
|
|
+ addWechat:this.state.addWechat || undefined,
|
|
|
+ renewal:this.state.renewal || undefined,
|
|
|
+ startFollowTimes:this.state.releaseDate[0] || undefined,
|
|
|
+ endFollowTimes:this.state.releaseDate[1] || undefined,
|
|
|
+ startSignTimes:this.state.signTimes[0] || undefined,
|
|
|
+ endSignTimes:this.state.signTimes[1] || undefined,
|
|
|
+ }
|
|
|
+ let arr = Object.keys(obj);
|
|
|
+ let str = '?';
|
|
|
+ for(let i of arr){
|
|
|
+ if(obj[i]){
|
|
|
+ str+=i+'='+obj[i]+'&'
|
|
|
+ }
|
|
|
+ }
|
|
|
this.setState({
|
|
|
dataSource: theArr,
|
|
|
page: data.data.pageNo,
|
|
|
pagination: this.state.pagination,
|
|
|
+ downloadSrc:str,
|
|
|
});
|
|
|
}
|
|
|
}.bind(this),
|
|
@@ -404,7 +421,7 @@ class FollowUp extends Component{
|
|
|
download() {
|
|
|
window.location.href =
|
|
|
globalConfig.context +
|
|
|
- "/api/admin/userServiceExport"
|
|
|
+ "/api/admin/userServiceExport" + this.state.downloadSrc
|
|
|
}
|
|
|
|
|
|
render() {
|
|
@@ -533,6 +550,7 @@ class FollowUp extends Component{
|
|
|
dataSource={this.state.dataSource}
|
|
|
pagination={this.state.pagination}
|
|
|
scroll={{ x: "max-content", y: 0 }}
|
|
|
+ bordered
|
|
|
onRowClick={(record)=>{
|
|
|
this.setState({
|
|
|
visible:true,
|
|
@@ -552,6 +570,8 @@ class FollowUp extends Component{
|
|
|
visible:false,
|
|
|
orderNo:'',
|
|
|
uid:'',
|
|
|
+ },()=>{
|
|
|
+ this.loadData(this.state.page);
|
|
|
})
|
|
|
}}/> : ''}
|
|
|
{this.state.detailsVisible ?
|