import React,{Component} from 'react';
import {
AutoComplete,
Button,
Cascader,
DatePicker,
Icon,
Input,
message,
Modal,
Select,
Spin,
Table,
Tabs,
Tag
} from "antd";
import { citySelect, provinceList } from '@/NewDicProvinceList';
import {getSocialAttribute, beforeUploadFile, getLevel, ShowModal} from "@/tools.js";
import moment from "moment";
import $ from "jquery/src/ajax";
import IntentionDetail from "../../NEW/intentionCustomer/intentionDetail/intentionDetail";
const {TabPane} = Tabs;
const { RangePicker } = DatePicker;
class CustomerFollow extends Component{
constructor(props) {
super(props);
this.state={
nameSearch: '',
provinceSearch: '',
addressSearch: '',
level: '',
releaseDate: [],
selectedRowKeys: [],
provinces: [],
dataSource: [],
categoryArr: [],
modalName: '',
modalVisible: false,
basicState: false,
contactState: false,
rowData: {},
pagination: {
defaultCurrent: 1,
defaultPageSize: 10,
showQuickJumper: true,
pageSize: 10,
onChange: function (page) {
this.loadData(page);
}.bind(this),
showTotal: function (total) {
return "共" + total + "条数据";
},
},
columns: [
{
title: "客户名称",
dataIndex: "name",
key: "name",
},
{
title: "地区",
dataIndex: "locationProvince",
key: "locationProvince",
},
{
title: "联系人",
dataIndex: "contacts",
key: "contacts",
},
{
title: "联系电话",
dataIndex: "contactMobile",
key: "contactMobile",
},
{
title: "社会性质",
dataIndex: "societyTag",
key: "societyTag",
render: (text) => {
return getSocialAttribute(text);
},
},
{
title: "客户初始时间",
dataIndex: "transferTime",
key: "transferTime",
},
{
title: "剩余私有天数",
dataIndex: "surplusFollowTime",
key: "surplusFollowTime",
},
{
title: "剩余签单天数",
dataIndex: "surplusSignTime",
key: "surplusSignTime",
},
{
title: "最新跟进时间",
dataIndex: "lastFollowTime",
key: "lastFollowTime",
},
{
title: "客户等级",
dataIndex: "level",
key: "level",
render: (text) => {
if(text === 0) {
return