import React from 'react'; import { Radio, Icon, Button, Cascader, Input, Select, Tabs, Spin, Popconfirm, Table, Switch, message, DatePicker, Modal, Upload, Form, Row, Col } from 'antd'; import ajax from 'jquery/src/ajax/xhr.js'; import $ from 'jquery/src/ajax'; import moment from 'moment'; import './myClient.less'; import { citySelect, provinceList, areaSelect } from '../../../areaList'; import {getProvinceList} from '../../../addressList'; const { Column, ColumnGroup } = Table; const TabPane = Tabs.TabPane; const monthFormat = 'YYYY/MM'; import CustomerDetail from './myClientDesc.jsx'; import QueryCustomer from './publicQueryOne.jsx'; import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js'; import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js'; //图片组件 const PicturesWalls = React.createClass({ getInitialState() { return { previewVisible: false, previewImage: '', fileList: [], } }, handleCancel() { this.setState({ previewVisible: false }) }, handlePreview(file) { this.setState({ previewImage: file.url || file.thumbUrl, previewVisible: true, }); }, handleChange(info) { let fileList = info.fileList; this.setState({ fileList }); this.props.fileList(fileList); }, componentWillReceiveProps(nextProps) { this.state.fileList = nextProps.pictureUrl; }, render() { const { previewVisible, previewImage, fileList } = this.state; const uploadButton = (
点击上传
); return(
{fileList.length >= 1 ? null : uploadButton} example
); } }); const PublicCustomer = Form.create()(React.createClass({ loadData(pageNo) { this.state.data = []; this.setState({ loading: true }); $.ajax({ method: "post", dataType: "json", crossDomain: false, url: globalConfig.context + '/api/admin/customer/listPublicOrganizationCustomer', data: { pageNo: pageNo || 1, pageSize: this.state.pagination.pageSize, type: this.state.typeSearch, //名称1 name: this.state.nameSearch, shareType: this.state.shareTypeSearch, province: (this.state.addressSearch).length ? this.state.addressSearch[0] : this.state.provinceSearch, city: (this.state.addressSearch).length ? this.state.addressSearch[1] : '', //area: this.state.addressSearch?this.state.addressSearch[2].value:'', status: this.state.statusSearch, industry: this.state.industrySearch, businessAudit: this.state.serviceCertificationSearch, auditStatus: this.state.userCertificationSearch, currentMemberStatus: this.state.currentMemberStatusSearch, international: this.state.internationalSearch, lvl: this.state.lvlSearch, societyTag: this.state.societyTagSearch, listed: this.state.listedSearch, //是否上市 highTechZone: this.state.highTechZoneSearch, //是否高新 startDate: this.state.releaseDate[0], endDate: this.state.releaseDate[1], }, success: function(data) { let theArr = []; if(data.error.length || 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.uid, type: thisdata.type, name: thisdata.name, status: thisdata.status, contacts: thisdata.contacts, contactMobile: thisdata.contactMobile, industry: thisdata.industry, createTime: thisdata.createTime, businessAudit: thisdata.businessAudit, auditStatus: thisdata.auditStatus, lvl: thisdata.lvl, shareType: thisdata.shareType, societyTag: thisdata.societyTag, currentMemberStatus: thisdata.currentMemberStatus, international: thisdata.international, listed: thisdata.listed, adminName: thisdata.adminName, highTechZone: thisdata.highTechZone, locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--' }); }; this.state.pagination.current = data.data.pageNo; this.state.pagination.total = data.data.totalCount; }; if(data.data&&data.data.list&&!data.data.list.length){ this.state.pagination.current=0; this.state.pagination.total=0; } this.setState({ dataSource: theArr, pagination: this.state.pagination, selectedRowKeys:[] }); }.bind(this), }).always(function() { this.setState({ loading: false }); }.bind(this)); }, getInitialState() { return { addressSearch: [], orgCodeUrl: [], companyLogoUrl: [], visible: false, searchMore: true, releaseDate: [], selectedRowKeys: [], selectedRowKey: [], selectedRows: [], loading: false, pagination: { defaultCurrent: 1, defaultPageSize: 10, showQuickJumper: true, pageSize: 10, onChange: function(page) { this.loadData(page); }.bind(this), showTotal: function(total) { return '共' + total + '条数据'; } }, paginations: { defaultCurrent: 1, defaultPageSize: 10, showQuickJumper: true, pageSize: 10, onChange: function(page) { this.loadVisit(page); }.bind(this), showTotal: function(total) { return '共' + total + '条数据'; } }, paginationsy: { defaultCurrent: 1, defaultPageSize: 10, showQuickJumper: true, pageSize: 10, onChange: function(page) { this.loadBfVisit(page, false); }.bind(this), showTotal: function(total) { return '共' + total + '条数据'; } }, paginationt: { defaultCurrent: 1, defaultPageSize: 10, showQuickJumper: true, pageSize: 10, onChange: function(page) { this.BusinessList(page, false); }.bind(this), showTotal: function(total) { return '共' + total + '条数据'; } }, //业务意向列表 intentionList: [{ title: '业务名称', dataIndex: 'businessGlossoryId', key: 'businessGlossoryId', render: (text, record, index) => { return adminData.isSuperAdmin ? : {getCompanyIntention(text)} } }, { title: '最新进度', dataIndex: 'followSituation', key: 'followSituation', render: (text, record, index) => { return adminData.isSuperAdmin ? : {getfllowSituation(text)} } }, { title: '最新状态', dataIndex: 'customerStatus', key: 'customerStatus', render: (text, record, index) => { return adminData.isSuperAdmin ? : {getcustomerStatue(text)} } }, { title: '跟进说明', dataIndex: 'remarks', key: 'remarks', render: (text, record, index) => { return adminData.isSuperAdmin ? { record.remarks = e.target.value; this.setState({ data: this.state.data }); }} style={{width:'120px'}}/> : {text} } } ], businessIntentionList: [{ title: '意向时间', dataIndex: 'createTime', key: 'createTime' }, { title: '客户名称', dataIndex: 'identifyName', key: 'identifyName' }, { title: '业务名', dataIndex: 'businessName', key: 'businessName' }, { title: '营销员', dataIndex: 'adminName', key: 'adminName' }, { title: '业务意向进度', dataIndex: 'followSituation', key: 'followSituation', render: text => { return getfllowSituation(text) } }, { title: '客户状态', dataIndex: 'customerStatus', key: 'customerStatus', render: text => { return getcustomerStatue(text) } }, { title: '操作', dataIndex: 'ooo', key: 'ooo', render: (text, record) => { return() } }], businessFollowList: [{ title: '跟进时间', dataIndex: 'followTime', key: 'followTime', }, { title: '营销员', dataIndex: 'adminName', key: 'adminName', }, { title: '业务意向进度', dataIndex: 'followSituation', key: 'followSituation', render: text => { return getfllowSituation(text) } }, { title: '客户状态', dataIndex: 'customerStatus', key: 'customerStatus', render: text => { return getcustomerStatue(text) } }, { title: '拜访方式', dataIndex: 'contactType', key: 'contactType', render: text => { return getContactType(text) } }, { title: '联系人', dataIndex: 'contacts', key: 'contacts', }, { title: '联系电话', dataIndex: 'contactMobile', key: 'contactMobile', }, { title: '操作', dataIndex: 'ooo', key: 'ooo', render: (text, record) => { return() } } ], visitsList: [{ title: '拜访时间', dataIndex: 'followTime', key: 'followTime' }, { title: '客户名称', dataIndex: 'identifyName', key: 'identifyName' }, { title: '拜访方式', dataIndex: 'contactType', key: 'contactType', render: text => { return getContactType(text) } }, { title: '联系人', dataIndex: 'contacts', key: 'contacts' }, { title: '联系电话', dataIndex: 'contactMobile', key: 'contactMobile' }, { title: '拜访人', dataIndex: 'adminName', key: 'adminName' }, { title: '拜访说明', dataIndex: 'result', key: 'result' }], ContactsLists: [{ title: '姓名', dataIndex: 'name', key: 'name', render: (text, record, index) => { return adminData.isSuperAdmin ? { record.name = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : {text} } }, { title: '联系人部门', dataIndex: 'depatrment', key: 'depatrment', render: (text, record, index) => { return adminData.isSuperAdmin ? { record.depatrment = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : {text} } }, { title: '联系人职务', dataIndex: 'position', key: 'position', render: (text, record, index) => { return adminData.isSuperAdmin ? { record.position = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : {text} } }, { title: '手机号码', dataIndex: 'mobile', key: 'mobile', render: (text, record, index) => { return adminData.isSuperAdmin ? { record.mobile = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : {text} } }, { title: '微信', dataIndex: 'wechat', key: 'wechat', render: (text, record, index) => { return adminData.isSuperAdmin ? { record.wechat = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : {text} } }, { title: '联系人QQ', dataIndex: 'qq', key: 'qq', render: (text, record, index) => { return adminData.isSuperAdmin ? { record.qq = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : {text} } }, { title: '电子邮箱', dataIndex: 'email', key: 'email', render: (text, record, index) => { return adminData.isSuperAdmin ? { record.email = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : {text} } } ], columnsman: [{ title: '姓名', dataIndex: 'name', key: 'name' }, { title: '手机号码', dataIndex: 'mobile', key: 'mobile' }], columns: [{ title: '客户名称', dataIndex: 'name', key: 'name', }, { title: '地区', dataIndex: 'locationProvince', key: 'locationProvince', }, { title: '行业', dataIndex: 'industry', key: 'industry', }, { title: '社会性质', dataIndex: 'societyTag', key: 'societyTag', render: text => { return getSocialAttribute(text) } }, { title: '公共客户', dataIndex: 'shareType', key: 'shareType', render: (text, record) => { return record.shareType == '1' ? 公共客户 : 个人客户 } }, { title: '创建时间', dataIndex: 'createTime', key: 'createTime', }, { title: '所属人', dataIndex: 'adminName', key: 'adminName', }, { title: '业务认证', dataIndex: 'businessAudit', key: 'businessAudit', render: text => { return getCertification(text) } }, { title: '实名认证', dataIndex: 'auditStatus', key: 'auditStatus', render: text => { return getAuditStatus(text) } }, { title: '是否高新', dataIndex: 'highTechZone', key: 'highTechZone', render: text => { return getWhether(text) } }, { title: '是否上市', dataIndex: 'listed', key: 'listed', render: text => { return getWhether(text) } }, { title: '是否国际', dataIndex: 'international', key: 'international', render: text => { return getWhether(text) } }, { title: '会员等级', dataIndex: 'lvl', key: 'lvl', render: text => { return getLvl(text) } }, { title: '会员状态', dataIndex: 'currentMemberStatus', key: 'currentMemberStatus', render: text => { return getCurrentMember(text) } } ], data: [], dataman: [], dataSource: [], visitArrList: [], searchTime: [, ] }; }, //tab2获取联系人详情 contactLists(ids) { this.setState({ loading: true }); $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + '/api/admin/customer/findCustomerContacts', data: { uid: ids, //名称1 }, success: function(data) { let theArr = []; if(data.error.length || data.data.list == "") { if(data.error && data.error.length) { message.warning(data.error[0].message); }; } else { for(let i = 0; i < data.data.length; i++) { let thisdata = data.data[i]; theArr.push({ id: thisdata.id, name: thisdata.name, mobile: thisdata.mobile, email: thisdata.email, qq: thisdata.qq, wechat: thisdata.wechat, depatrment: thisdata.depatrment, position: thisdata.position, }); }; }; this.setState({ contactList: theArr, }); }.bind(this), }).always(function() { this.setState({ loading: false }); }.bind(this)); }, getOrgCodeUrl(e) { this.setState({ orgCodeUrl: e }); }, getCompanyLogoUrl(e) { this.setState({ companyLogoUrl: e }); }, componentWillMount() { let areaArr= getProvinceList(); let Citys=citySelect(areaArr); let Areas=areaSelect(areaArr); this.setState({ City: Citys, Area: Areas }); //城市 let Province = []; areaArr.map(function(item) { var id = String(item.id) Province.push( {item.name} ) }); //行业 let intentionalArr = []; industry.map(function(item) { intentionalArr.push( {item.key} ) }); //会员等级 let lvlArr = []; lvl.map(function(item) { lvlArr.push( {item.key} ) }); //会员状态customerStatus let currentMemberArr = []; currentMember.map(function(item) { currentMemberArr.push( {item.key} ) }); this.state.Provinces = Province; this.state.intentionalOption = intentionalArr; this.state.lvlArrOption = lvlArr; this.state.currentMemberArrOption = currentMemberArr; this.loadData(); }, search() { this.loadData(); }, reset() { this.state.internationalSearch = undefined; this.state.shareTypeSearch = undefined; this.state.typeSearch = undefined; //名称1 this.state.nameSearch = ''; this.state.addressSearch = []; this.state.provinceSearch = undefined; this.state.citySearch = undefined; this.state.statusSearch = undefined; this.state.contactsSearch = undefined; this.state.contactMobileSearch = undefined; this.state.industrySearch = undefined; this.state.serviceCertificationSearch = undefined; this.state.userCertificationSearch = undefined; this.state.currentMemberStatusSearch = undefined; this.state.lvlSearch = undefined; this.state.listedSearch = undefined; this.state.societyTagSearch = undefined; this.state.highTechZoneSearch = undefined; this.state.releaseDate[0] = undefined; this.state.releaseDate[1] = undefined; this.loadData(); }, searchSwitch() { this.setState({ searchMore: !this.state.searchMore }); }, //整行点击 tableRowClick(record, index) { this.state.RowData = record; this.detailsModalOk(record); this.setState({ callnub:'1', selectedRowKeys: [], rowId: record.id, }) }, VisitRowClick(record, index) { this.state.keys = false; this.state.RowData = record; this.setState({ selectedRowKeys: [], delectId: record.followId, }) }, //点击整行查看详情 //查看基本详情基本信息 loadInformation(record) { this.RowClick; $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + '/api/admin/customer/findOrganizationCustomerDetail', data: { uid: record }, success: function(data) { let thisData = data.data; if(!thisData) { if(data.error && data.error.length) { message.warning(data.error[0].message); }; thisData = {}; }; let ProvinceCityArr = []; let ProvinceS = thisData.locationProvince; //getprovince let citys = thisData.locationCity; let Areas = thisData.locationArea; ProvinceCityArr.push(ProvinceS, citys, Areas); let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas) this.setState({ InformationId: thisData.id, InformationUid: thisData.uid, identifyName: thisData.identifyName, listed: thisData.listed, highTechZone: thisData.highTechZone, orgCodeUrl: thisData.orgCodeUrl ? splitUrl(thisData.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [], companyLogoUrl: thisData.companyLogoUrl ? splitUrl(thisData.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [], dataInformation: thisData, ProvinceCity: ProvinceCityArr, proviceCityArea: ProvinceS ? cityArea : '', industry: String(thisData.industry) == 'null' ? undefined : String(thisData.industry), international: thisData.international, societyTag: thisData.societyTag, introduction: thisData.introduction, postalAddress: thisData.postalAddress, contactsFixedTel: thisData.contactsFixedTel, contactsFax: thisData.contactsFax, registeredCapital: thisData.registeredCapital, enterpriseScale: thisData.enterpriseScale, legalPerson: thisData.legalPerson, legalPersonIdCard: thisData.legalPersonIdCard, legalPersonTel: thisData.legalPersonTel, legalPersonEmail: thisData.legalPersonEmail, businessScope: thisData.businessScope, orgCode: thisData.orgCode, investment: thisData.investment, auditStatus: thisData.auditStatus?String(thisData.auditStatus):undefined, businessAudit: thisData.businessAudit }); }.bind(this), }).always(function() { this.setState({ loading: false }); }.bind(this)); }, //tab3账户信息请求数据 httpAccount(record) { this.RowClick; $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + '/api/admin/customer/findUserAccountDetail', data: { uid: record }, success: function(data) { let thisData = data.data; if(!thisData) { if(data.error && data.error.length) { message.warning(data.error[0].message); }; thisData = {}; }; let sourcecustomer = '' switch(String(thisData.source)) { case '0': sourcecustomer = '注册客户' break; case '1': sourcecustomer = '录入客户' break; } this.setState({ Accountuid: thisData.id, mobile: thisData.mobile, nickname: thisData.nickname, email: thisData.email, type: getcustomerTyp(String(thisData.type)), source: sourcecustomer, isMember: thisData.isMember, currentMemberStatus: String(thisData.currentMemberStatus), lvl: String(thisData.lvl), status: String(thisData.status), createTimes: thisData.createTimes, }); }.bind(this), }).always(function() { this.setState({ loading: false }); }.bind(this)); }, detailsModalOk(e) { this.setState({ modal5Visible: true }); //需要一个请求数据 this.loadInformation(e.id); this.contactLists(e.id); this.httpAccount(e.id); this.loadBfVisit(1, e.id); this.BusinessList(1, e.id); }, //点击消失函数 detailsModal(e) { this.setState({ modal5Visible: false }); }, //拜访modul函数 visitOk(e) { this.setState({ visitModul: false }); this.loadVisit() }, visitCancel(e) { this.setState({ visitModul: false }); }, //当选择联系人的列表变化时,则执行 hundleName(e) { let changNub = this.state.telNum[e]; this.setState({ nub: this.state.telNum[e], lastName: e, }); }, //添加新业务及单位客户详情新增 addNew() { this.state.data.push({ customerStatus: undefined, businessGlossoryId: undefined, followSituation: undefined, remarks: '', }); this.setState({ data: this.state.data }) }, //tab5进入修改时 //进入修改时 listFollowUp(e) { $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness", data: { ufbId: e }, success: function(data) { let thedata = data.data; if(!thedata) { if(data.error && data.error.length) { message.warning(data.error[0].message); }; thedata = {}; }; this.setState({ businessGlossoryIds: thedata.businessGlossoryId, followSituations: thedata.followSituation, customerStatuss: thedata.customerStatus, followTimes: thedata.followTime, createTimes: thedata.createTime, identifyNames: thedata.identifyName, contactTypes: parseInt(thedata.contactType), results: thedata.result, remarkss: thedata.remarks, adminNames: thedata.adminName, contactss: thedata.contacts, contactMobiles: thedata.contactMobile, ufbId: thedata.ufbId, followIds: thedata.followId, }); }.bind(this), }).always(function() { this.setState({ loading: false }); }.bind(this)); }, passworldOk(e) { this.setState({ passworldModul: false }); }, passworldCancel(e) { this.setState({ passworldModul: false }); }, //修改密码保存 passworldSubmit(e) { e.preventDefault(); this.passworldCancel() }, //新增联系人 addcontactModulOK() { this.setState({ addcontactModul: false }); }, addcontactModulcancel() { this.setState({ addcontactModul: false }); }, //点击新增详情 newContacts() { this.state.newsex =undefined; this.state.newname =''; this.state.newmobile=''; this.state.newwechat=''; this.state.newqq=''; this.state.newdepatrment=''; this.state.newposition=''; this.state.newemail=''; this.setState({ uids: this.state.uid, addcontactModul: true }); }, //获取联系人下拉框 getNewWoman(ids) { this.state.data = [] $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + "/api/admin/customer/findCustomerContacts", data: { uid: ids, }, success: function(data) { let theArr = []; let thedata = data.data; if(!thedata) { if(data.error && data.error.length) { message.warning(data.error[0].message); }; thedata = {}; }; var telNum = []; var contactIds = []; thedata.map(function(item, index) { contactIds.push(thedata[index].id); telNum.push(thedata[index].mobile); }); for(let item in data.data) { let theData = data.data[item]; theArr.push( {theData.name} ); }; this.setState({ contactsIdArr: thedata, telNum: telNum, orderStatusOption: theArr, }); }.bind(this), }).always(function() { this.setState({ deletId: ids, loading: false }); }.bind(this)); }, //拜访意向服务列表单个删除 intentionDelet(e, index) { if(!this.state.keys) { let detId = this.state.followIds; if(e.id) { this.setState({ selectedRowKeys: [], }); $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness", data: { ufbId: e.id } }).done(function(data) { if(!data.error.length) { message.success('删除成功'); this.setState({ loading: false, }); } else { message.warning(data.error[0].message); }; }.bind(this)); } else { } } else { let deteluserBusinessList = (this.state.data).splice(index, 1) this.setState({ selectedRowKeys: [], }); } }, //tab5意向业务 //意向业务查看列表单个详情 businessIntentionDetails(e) { $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + '/api/admin/customer/toUpdateBusiness', data: { businessId: e.businessId }, success: function(data) { let thisData = data.data; if(!thisData) { if(data.error && data.error.length) { message.warning(data.error[0].message); }; thisData = {}; }; this.setState({ businessGlossoryId: thisData.businessGlossoryId, identifyName: thisData.identifyName, uid: thisData.uid, businessId: thisData.businessId, followSituation: thisData.followSituation, customerStatus: thisData.customerStatus, createTime: thisData.createTime, followTime: thisData.followTime, adminName: thisData.adminName, remarks: thisData.remarks, result: thisData.result, }); }.bind(this), }).always(function() { this.loadVisit(); this.setState({ loading: false }); }.bind(this)); this.setState({ businessModul: true }) }, //查看跟进记录列表 loadVisit(pageNo) { this.setState({ loading: true }); $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + '/api/admin/customer/listFollowHistory', data: { pageNo: pageNo || 1, pageSize: this.state.paginations.pageSize, uid: this.state.rowId, //名称1 businessGlossoryId: this.state.businessGlossoryId, }, success: function(data) { let theArr = []; if(data.error.length || 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({ followId: thisdata.followId, followTime: thisdata.followTime, identifyName: thisdata.identifyName, contacts: thisdata.contacts, contactMobile: thisdata.contactMobile, result: thisdata.result, ufbId: thisdata.ufbId, adminName: thisdata.adminName, followSituation: thisdata.followSituation, customerStatus: thisdata.customerStatus, contactType: thisdata.contactType }); }; this.state.paginations.current = data.data.pageNo; this.state.paginations.total = data.data.totalCount; }; this.setState({ visitArrList: theArr, paginations: this.state.paginations }); }.bind(this), }).always(function() { this.setState({ loading: false }); }.bind(this)); }, //tab3拜访记录 loadBfVisit(pageNo, uids) { this.setState({ loading: true }); $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + '/api/admin/customer/listFollowHistory', data: { pageNo: pageNo || 1, pageSize: this.state.paginationsy.pageSize, uid: uids ? uids : this.state.rowId, //名称1 }, success: function(data) { let theArr = []; if(data.error.length || 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({ followId: thisdata.followId, followTime: thisdata.followTime, identifyName: thisdata.identifyName, contacts: thisdata.contacts, contactMobile: thisdata.contactMobile, result: thisdata.result, ufbId: thisdata.ufbId, adminName: thisdata.adminName, followSituation: thisdata.followSituation, customerStatus: thisdata.customerStatus, contactType: thisdata.contactType }); }; this.state.paginationsy.current = data.data.pageNo; this.state.paginationsy.total = data.data.totalCount; }; this.setState({ visitArrList: theArr, paginationsy: this.state.paginationsy }); }.bind(this), }).always(function() { this.setState({ loading: false }); }.bind(this)); }, businessIntentionOk() { this.setState({ businessGlossoryId: '', businessModul: false }) }, businessIntentionCancel() { this.setState({ businessGlossoryId: '', businessModul: false }) }, //业务跟进查看跟多 businessFollowDetails(e) { this.listFollowUp(e.ufbId) this.setState({ businessFollowModul: true }) }, businessFollowOk(e) { this.setState({ businessFollowModul: false }) }, businessFollowCancel(e) { this.setState({ businessFollowModul: false }) }, //详情tab切换数据处理 callback(e) { if(e == '1') { this.loadInformation(this.state.rowId) } if(e == '2') { this.contactLists(this.state.rowId) } if(e == '3') { this.httpAccount(this.state.rowId) } if(e == '4') { this.loadBfVisit(1, this.state.rowId); } if(e == '5') { this.BusinessList(1, this.state.rowId); } if(e == '6') { } if(e == '7') { } if(e == '8') { } if(e == '9') { } this.setState({ callnub: e, }) }, //tab5业务意向 BusinessList(pageNo, uids) { this.setState({ loading: true }); $.ajax({ method: "post", dataType: "json", crossDomain: false, url: globalConfig.context + '/api/admin/customer/listBusiness', data: { pageNo: pageNo || 1, pageSize: this.state.paginationt.pageSize, uid: uids ? uids : this.state.rowId }, success: function(data) { let theArr = []; if(data.error.length || 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, businessId: thisdata.businessId, businessName: thisdata.businessName, identifyName: thisdata.identifyName, followSituation: thisdata.followSituation, customerStatus: thisdata.customerStatus, adminName: thisdata.adminName, createTime: thisdata.createTime }); }; this.state.paginationt.current = data.data.pageNo; this.state.paginationt.total = data.data.totalCount; }; this.setState({ dataBusiness: theArr, paginationt: this.state.paginationt }); }.bind(this), }).always(function() { this.setState({ loading: false }); }.bind(this)); }, componentWillReceiveProps(nextProps) { if(!this.props.visible && nextProps.visible) { if(nextProps.data && nextProps.data.id) { this.loadData(nextProps.data.id, nextProps.detailApiUrl); }; this.state.data = {}; this.state.companyLogoUrl = []; this.state.orgCodeUrl = []; this.loadData(null); }; }, render() { const FormItem = Form.Item const rowSelection = { selectedRowKeys: this.state.selectedRowKeys, onChange: (selectedRowKeys, selectedRows) => { this.setState({ selectedRows: selectedRows.slice(-1), selectedRowKeys: selectedRowKeys.slice(-1) }); }, onSelect: (recordt, selected, selectedRows) => { this.setState({ recordt: recordt.id }) }, }; const rowSelections = { selectedRowKeys: this.state.selectedRowKey, onChange: (selectedRowKey, selectedRow) => { this.setState({ selectedRow: selectedRow.slice(-1), selectedRowKey: selectedRowKey.slice(-1) }); }, onSelect: (records, selected, selectedRow) => { this.setState({ selectedRow: selectedRow.slice(-1), records: records.id, }) }, }; const hasSelected = this.state.selectedRowKeys.length > 0; const { RangePicker } = DatePicker; const { getFieldDecorator } = this.props.form; const formItemLayout = { labelCol: { span: 8 }, wrapperCol: { span: 14 }, }; //const theDatak = this.state.datak || {}; const theInformation = this.state.dataInformation || {} const contactsOption = ""; const formItemLayput = { labelCol: { span: 10 }, wrapperCol: { span: 14 }, }; const contacts = this.state.contacts || ''; return(
单位客户查询
{ this.setState({ nameSearch: e.target.value }); }} /> { this.setState({ addressSearch: e }) }} /> 客户类型: 更多搜索
{ this.setState({ releaseDate: dataString }); }} /> 认证: 国际: 高新: 上市: 会员:
{adminData.isSuperAdmin?
{theInformation.identifyName}
* * { this.setState({ ProvinceCity: e }) }} /> * {this.setState({postalAddress:e.target.value})}}/> {this.setState({contactsFixedTel:e.target.value})}}/> {this.setState({contactsFax:e.target.value})}}/> {this.setState({registeredCapital:e.target.value})}}/> {this.setState({enterpriseScale:e.target.value})}}/> {this.setState({legalPerson:e.target.value})}}/> {this.setState({legalPersonIdCard:e.target.value})}}/> {this.setState({legalPersonTel:e.target.value})}}/> {this.setState({legalPersonEmail:e.target.value})}}/> {this.setState({orgCode:e.target.value})}}/> {adminData.isSuperAdmin?:{getAuditStatus(this.state.auditStatus)}}
{adminData.isSuperAdmin? { this.setState({ businessAudit: e.target.value }) }}> 未认证 已认证 :{this.state.businessAudit?'是':'否'}} { this.setState({highTechZone:e.target.value}) }}> { this.setState({listed:e.target.value }) }}> { this.setState({international:e.target.value }) }}>

图片建议:图片要清晰。

图片建议:图片要清晰。

{this.setState({businessScope:e.target.value})}}/> {this.setState({introduction:e.target.value})}}/>
:
{theInformation.identifyName}
{getIndustry(String(theInformation.industry))} {getSocialAttribute(theInformation.societyTag)} {this.state.proviceCityArea} {theInformation.postalAddress} {theInformation.contactsFixedTel} {theInformation.contactsFax} {theInformation.registeredCapital} {theInformation.enterpriseScale} {theInformation.legalPerson} {theInformation.legalPersonIdCard} {theInformation.legalPersonTel} {theInformation.legalPersonEmail} {this.state.investment?'是':'否'} {this.state.highTechZone?'是':'否'} {this.state.listed?'是':'否'} {this.state.international?'是':'否'} {theInformation.orgCode}
{ this.setState({ previewImage: file.url || file.thumbUrl, previewVisible: true, }); }} > { this.setState({ previewVisible: false }) }}>
{ this.setState({ previewImage: file.url || file.thumbUrl, previewVisible: true, }); }} > { this.setState({ previewVisible: false }) }}>
{theInformation.businessScope} {theInformation.introduction}
}
{adminData.isSuperAdmin?
{ this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
:{this.state.mobile}}
{adminData.isSuperAdmin? { this.setState({ nickname: e.target.value }); }} />:{this.state.nickname}} {adminData.isSuperAdmin? { this.setState({ email: e.target.value }); }} />:{this.state.nickname}}
{this.state.source} {this.state.type} {this.state.createTimes} {adminData.isSuperAdmin?:{getStatuslist(this.state.status)}}
{adminData.isSuperAdmin? { this.setState({ isMember: e.target.value }) }}> :{this.state.isMember?'是':'否'}} {adminData.isSuperAdmin?:{getLvl(this.state.lvl)}} {adminData.isSuperAdmin?:{getCurrentMember(this.state.currentMemberStatus)}}
{adminData.isSuperAdmin?
{ this.setState({ contactType: e.target.value }) }}> 外出 电话 QQ 微信 邮箱
{this.state.identifyName} {this.state.adminName} {this.state.contacts} {this.state.contacts?: } {this.state.followTime} {this.state.nub}
{this.setState({result:e.target.value})}}/>
业务意向
record.id} pagination={false} columns={this.state.intentionList} dataSource={this.state.data} /> :
{getContactType(String(this.state.contactType))}
{this.state.identifyName} {this.state.adminName} {this.state.contacts} {this.state.followTime} {this.state.nub}
{this.state.result}
record.id} pagination={false} columns={this.state.intentionList} dataSource={this.state.data} /> }
{getCompanyIntention(this.state.businessGlossoryId)} {this.state.createTime} {this.state.identifyName} {this.state.adminName} {getfllowSituation(this.state.followSituation)} {getcustomerStatue(this.state.customerStatus)}
{this.state.remarks}
业务跟进
{getCompanyIntention(this.state.businessGlossoryIds)} {this.state.createTimes} {this.state.identifyNames} {this.state.adminNames} {getfllowSituation(this.state.followSituations)} {getcustomerStatue(this.state.customerStatuss)}
{this.state.remarkss}
拜访情况
{getContactType(this.state.contactTypes)} {this.state.contactss} {this.state.contactMobiles} {this.state.followTimes} {this.state.adminNames}
{this.state.results}
); } })); const Tablees=Form.create()(React.createClass({ //详情tab切换数据处理 callbacks(e) { this.setState({ callnubs: e, }) if(e == '1') { } if(e == '2') { } }, getInitialState() { return { callnubs: "1", } }, render() { return(
); } })); export default Tablees;