expertReview.jsx 123 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286
  1. import React from 'react';
  2. import { Radio, Icon, Button, Cascader, Input, Select, Tabs, Spin, Popconfirm, Table, Switch, message, DatePicker, Modal, Upload, Form, Row, Col } from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import moment from 'moment';
  6. import './myClient.less';
  7. import { citySelect, provinceList, areaSelect } from '../../../areaList';
  8. import {getProvinceList} from '../../../addressList';
  9. const { Column, ColumnGroup } = Table;
  10. const TabPane = Tabs.TabPane;
  11. const monthFormat = 'YYYY/MM';
  12. import CustomerDetail from './myClientDesc.jsx';
  13. import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js';
  14. import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
  15. //图片组件
  16. const PicturesWall = React.createClass({
  17. getInitialState() {
  18. return {
  19. previewVisible: false,
  20. previewImage: '',
  21. fileList: [],
  22. }
  23. },
  24. handleCancel() {
  25. this.setState({ previewVisible: false })
  26. },
  27. handlePreview(file) {
  28. this.setState({
  29. previewImage: file.url || file.thumbUrl,
  30. previewVisible: true,
  31. });
  32. },
  33. handleChange(info) {
  34. let fileList = info.fileList;
  35. this.setState({ fileList });
  36. this.props.fileList(fileList);
  37. },
  38. componentWillReceiveProps(nextProps) {
  39. this.state.fileList = nextProps.pictureUrl;
  40. },
  41. render() {
  42. const { previewVisible, previewImage, fileList } = this.state;
  43. const uploadButton = (
  44. <div>
  45. <Icon type="plus" />
  46. <div className="ant-upload-text">点击上传</div>
  47. </div>
  48. );
  49. return(
  50. <div style={{display:"inline-block"}}>
  51. <Upload
  52. action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
  53. data={{ 'sign': '' }}
  54. listType="picture-card"
  55. fileList={fileList}
  56. onPreview={this.handlePreview}
  57. onChange={this.handleChange} >
  58. {fileList.length >= 1 ? null : uploadButton}
  59. </Upload>
  60. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  61. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  62. </Modal>
  63. </div>
  64. );
  65. }
  66. });
  67. const QueryCustomer = Form.create()(React.createClass({
  68. loadData(pageNo, apiUrl) {
  69. this.state.data = [];
  70. this.setState({
  71. loading: true
  72. });
  73. $.ajax({
  74. method: "post",
  75. dataType: "json",
  76. crossDomain: false,
  77. url: globalConfig.context + '/api/admin/customer/listAllPersonalCustomer',
  78. data: {
  79. pageNo: pageNo || 1,
  80. pageSize: this.state.pagination.pageSize,
  81. expertAudit:1,
  82. type: this.state.typeSearch, //名称1
  83. name: this.state.nameSearch,
  84. province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  85. city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  86. status: this.state.statusSearch,
  87. industry: this.state.industrySearch,
  88. businessAudit: this.state.serviceCertificationSearch,
  89. auditStatus: this.state.userCertificationSearch,
  90. currentMemberStatus: this.state.currentMemberStatusSearch,
  91. lvl: this.state.lvlSearch,
  92. listed: this.state.listedSearch, //是否上市
  93. highTechZone: this.state.highTechZoneSearch, //是否高新
  94. startDate: this.state.releaseDate[0],
  95. endDate: this.state.releaseDate[1],
  96. isMember: this.state.isMemberSearch,
  97. international: this.state.internationalSearch,
  98. celebrity: this.state.celebritySearch,
  99. expert: this.state.expertSearch,
  100. industry: this.state.industrySearch,
  101. shareType: this.state.shareTypeSearch,
  102. },
  103. success: function(data) {
  104. let theArr = [];
  105. if(data.error.length || data.data.list == "") {
  106. if(data.error && data.error.length) {
  107. message.warning(data.error[0].message);
  108. };
  109. } else {
  110. for(let i = 0; i < data.data.list.length; i++) {
  111. let thisdata = data.data.list[i];
  112. theArr.push({
  113. key: i,
  114. id: thisdata.uid,
  115. type: thisdata.type,
  116. name: thisdata.name,
  117. status: thisdata.status,
  118. contacts: thisdata.contacts,
  119. contactMobile: thisdata.contactMobile,
  120. industry: thisdata.industry,
  121. createTime: thisdata.createTime,
  122. businessAudit: thisdata.businessAudit,
  123. auditStatus: thisdata.auditStatus,
  124. lvl: thisdata.lvl,
  125. shareType: thisdata.shareType,
  126. isMember: thisdata.isMember,
  127. consultant: thisdata.consultant,
  128. societyTag: thisdata.societyTag,
  129. currentMemberStatus: thisdata.currentMemberStatus,
  130. international: thisdata.international,
  131. listed: thisdata.listed,
  132. international: thisdata.international,
  133. expert: thisdata.expert,
  134. celebrity: thisdata.celebrity,
  135. adminName: thisdata.adminName,
  136. highTechZone: thisdata.highTechZone,
  137. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  138. });
  139. };
  140. this.state.pagination.current = data.data.pageNo ;
  141. this.state.pagination.total = data.data.totalCount ;
  142. };
  143. if(!data.data.list.length){
  144. this.state.pagination.current=0
  145. this.state.pagination.total=0
  146. }
  147. this.setState({
  148. dataSource: theArr,
  149. pagination: this.state.pagination,
  150. selectedRowKeys:[]
  151. });
  152. }.bind(this),
  153. }).always(function() {
  154. this.setState({
  155. loading: false
  156. });
  157. }.bind(this));
  158. },
  159. //点击出现函数
  160. setModal2VisibleOk(e) {
  161. this.setState({
  162. modal2Visible: true
  163. });
  164. },
  165. //点击消失函数
  166. setModal2Visiblecancel(e) {
  167. this.setState({
  168. modal2Visible: false
  169. });
  170. },
  171. getPictureUrl(e) {
  172. this.setState({ pictureUrl: e });
  173. },
  174. handleOk(e) {
  175. this.setState({
  176. visible: false,
  177. });
  178. },
  179. handleCancel(e) {
  180. this.setState({
  181. visible: false,
  182. });
  183. },
  184. getInitialState() {
  185. return {
  186. addressSearch: [],
  187. positiveIdUrl: [],
  188. oppositeIdUrl: [],
  189. headPortraitUrl: [],
  190. visible: false,
  191. searchMore: true,
  192. releaseDate: [],
  193. releaseDate: [],
  194. selectedRowKeys: [],
  195. selectedRowKey: [],
  196. selectedRows: [],
  197. loading: false,
  198. pagination: {
  199. defaultCurrent: 1,
  200. defaultPageSize: 10,
  201. showQuickJumper: true,
  202. pageSize: 10,
  203. onChange: function(page) {
  204. this.loadData(page);
  205. }.bind(this),
  206. showTotal: function(total) {
  207. return '共' + total + '条数据';
  208. }
  209. },
  210. paginations: {
  211. defaultCurrent: 1,
  212. defaultPageSize: 10,
  213. showQuickJumper: true,
  214. pageSize: 10,
  215. onChange: function(page) {
  216. this.loadVisit(page);
  217. }.bind(this),
  218. showTotal: function(total) {
  219. return '共' + total + '条数据';
  220. }
  221. },
  222. paginationsy: {
  223. defaultCurrent: 1,
  224. defaultPageSize: 10,
  225. showQuickJumper: true,
  226. pageSize: 10,
  227. onChange: function(page) {
  228. this.loadBfVisit(page, false);
  229. }.bind(this),
  230. showTotal: function(total) {
  231. return '共' + total + '条数据';
  232. }
  233. },
  234. paginationt: {
  235. defaultCurrent: 1,
  236. defaultPageSize: 10,
  237. showQuickJumper: true,
  238. pageSize: 10,
  239. onChange: function(page) {
  240. this.BusinessList(page, false);
  241. }.bind(this),
  242. showTotal: function(total) {
  243. return '共' + total + '条数据';
  244. }
  245. },
  246. //业务意向列表
  247. intentionList: [{
  248. title: '业务名称',
  249. dataIndex: 'businessGlossoryId',
  250. key: 'businessGlossoryId',
  251. render: (text, record, index) => {
  252. return adminData.isSuperAdmin ? <Select placeholder="选择业务名称" disabled={record.id?true:false} value={record.businessGlossoryId} onChange={(e) => { record.businessGlossoryId = e; this.setState({ data: this.state.data }); }}>
  253. {
  254. intentionalService.map(function (item) {
  255. return <Select.Option key={item.value} >{item.key}</Select.Option>
  256. })
  257. }
  258. </Select> : <span>{getCompanyIntention(text)}</span>
  259. }
  260. },
  261. {
  262. title: '最新进度',
  263. dataIndex: 'followSituation',
  264. key: 'followSituation',
  265. render: (text, record, index) => {
  266. return adminData.isSuperAdmin ? <Select placeholder="选择最新进度" value={record.followSituation} onChange={(e) => { record.followSituation = e; this.setState({ data: this.state.data }); }}>
  267. {
  268. newFollow.map(function (item) {
  269. return <Select.Option key={item.value} >{item.key}</Select.Option>
  270. })
  271. }
  272. </Select> : <span>{getfllowSituation(text)}</span>
  273. }
  274. }, {
  275. title: '最新状态',
  276. dataIndex: 'customerStatus',
  277. key: 'customerStatus',
  278. render: (text, record, index) => {
  279. return adminData.isSuperAdmin ? <Select value={record.customerStatus} placeholder="选择最新状态" onChange={(e) => { record.customerStatus = e; this.setState({ data: this.state.data }); }}>
  280. {
  281. customerStatus.map(function (item) {
  282. return <Select.Option key={item.value} >{item.key}</Select.Option>
  283. })
  284. }
  285. </Select> : <span>{getcustomerStatue(text)}</span>
  286. }
  287. }, {
  288. title: '跟进说明',
  289. dataIndex: 'remarks',
  290. key: 'remarks',
  291. render: (text, record, index) => {
  292. return adminData.isSuperAdmin ? <Input value={record.remarks} placeholder="跟进说明"
  293. onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
  294. style={{width:'120px'}}/> : <span>{text}</span>
  295. }
  296. }
  297. ],
  298. businessIntentionList: [{
  299. title: '意向时间',
  300. dataIndex: 'createTime',
  301. key: 'createTime'
  302. }, {
  303. title: '客户姓名',
  304. dataIndex: 'identifyName',
  305. key: 'identifyName'
  306. }, {
  307. title: '业务名',
  308. dataIndex: 'businessName',
  309. key: 'businessName'
  310. }, {
  311. title: '营销员',
  312. dataIndex: 'adminName',
  313. key: 'adminName'
  314. }, {
  315. title: '业务意向进度',
  316. dataIndex: 'followSituation',
  317. key: 'followSituation',
  318. render: text => { return getfllowSituation(text) }
  319. }, {
  320. title: '客户状态',
  321. dataIndex: 'customerStatus',
  322. key: 'customerStatus',
  323. render: text => { return getcustomerStatue(text) }
  324. }],
  325. businessFollowList: [{
  326. title: '跟进时间',
  327. dataIndex: 'followTime',
  328. key: 'followTime',
  329. }, {
  330. title: '营销员',
  331. dataIndex: 'adminName',
  332. key: 'adminName',
  333. }, {
  334. title: '业务意向进度',
  335. dataIndex: 'followSituation',
  336. key: 'followSituation',
  337. render: text => { return getfllowSituation(text) }
  338. }, {
  339. title: '客户状态',
  340. dataIndex: 'customerStatus',
  341. key: 'customerStatus',
  342. render: text => { return getcustomerStatue(text) }
  343. },
  344. {
  345. title: '拜访方式',
  346. dataIndex: 'contactType',
  347. key: 'contactType',
  348. render: text => { return getContactType(text) }
  349. }, {
  350. title: '联系人',
  351. dataIndex: 'contacts',
  352. key: 'contacts',
  353. },
  354. {
  355. title: '联系电话',
  356. dataIndex: 'contactMobile',
  357. key: 'contactMobile',
  358. }
  359. ],
  360. visitsList: [{
  361. title: '拜访时间',
  362. dataIndex: 'followTime',
  363. key: 'followTime'
  364. }, {
  365. title: '客户姓名',
  366. dataIndex: 'identifyName',
  367. key: 'identifyName'
  368. }, {
  369. title: '拜访方式',
  370. dataIndex: 'contactType',
  371. key: 'contactType',
  372. render: text => { return getContactType(text) }
  373. }, {
  374. title: '联系人',
  375. dataIndex: 'contacts',
  376. key: 'contacts'
  377. }, {
  378. title: '联系电话',
  379. dataIndex: 'contactMobile',
  380. key: 'contactMobile'
  381. }, {
  382. title: '拜访人',
  383. dataIndex: 'adminName',
  384. key: 'adminName'
  385. }, {
  386. title: '拜访说明',
  387. dataIndex: 'result',
  388. key: 'result',
  389. render: text => {
  390. return <span style={{width:'150px',display:'inline-block',overflow:'hidden'}}>{text}</span>
  391. }
  392. }],
  393. ContactsLists: [{
  394. title: '姓名',
  395. dataIndex: 'name',
  396. key: 'name',
  397. render: (text, record, index) => {
  398. return adminData.isSuperAdmin ? <Input value={record.name} placeholder="姓名" key={record.id}
  399. onChange={(e) => { record.name = e.target.value;
  400. this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  401. }
  402. }, {
  403. title: '联系人部门',
  404. dataIndex: 'depatrment',
  405. key: 'depatrment',
  406. render: (text, record, index) => {
  407. return adminData.isSuperAdmin ? <Input value={record.depatrment} placeholder="联系人部门" key={record.id}
  408. onChange={(e) => { record.depatrment = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  409. }
  410. }, {
  411. title: '联系人职务',
  412. dataIndex: 'position',
  413. key: 'position',
  414. render: (text, record, index) => {
  415. return adminData.isSuperAdmin ? <Input value={record.position} placeholder="联系人职务" key={record.id}
  416. onChange={(e) => { record.position = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  417. }
  418. }, {
  419. title: '手机号码',
  420. dataIndex: 'mobile',
  421. key: 'mobile',
  422. render: (text, record, index) => {
  423. return adminData.isSuperAdmin ? <Input value={record.mobile} placeholder="手机号码" key={record.id}
  424. onChange={(e) => { record.mobile = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  425. }
  426. }, {
  427. title: '微信',
  428. dataIndex: 'wechat',
  429. key: 'wechat',
  430. render: (text, record, index) => {
  431. return adminData.isSuperAdmin ? <Input value={record.wechat} placeholder="微信" key={record.id}
  432. onChange={(e) => { record.wechat = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  433. }
  434. }, {
  435. title: '联系人QQ',
  436. dataIndex: 'qq',
  437. key: 'qq',
  438. render: (text, record, index) => {
  439. return adminData.isSuperAdmin ? <Input value={record.qq} placeholder="联系人QQ" key={record.id}
  440. onChange={(e) => { record.qq = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  441. }
  442. }, {
  443. title: '电子邮箱',
  444. dataIndex: 'email',
  445. key: 'email',
  446. render: (text, record, index) => {
  447. return adminData.isSuperAdmin ? <Input value={record.email} placeholder="电子邮箱" key={record.id}
  448. onChange={(e) => { record.email = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  449. }
  450. }
  451. ],
  452. columnsman: [{
  453. title: '姓名',
  454. dataIndex: 'name',
  455. key: 'name'
  456. }, {
  457. title: '手机号码',
  458. dataIndex: 'mobile',
  459. key: 'mobile'
  460. }],
  461. columns: [{
  462. title: '客户姓名',
  463. dataIndex: 'name',
  464. key: 'name',
  465. }, {
  466. title: '地区',
  467. dataIndex: 'locationProvince',
  468. key: 'locationProvince',
  469. },
  470. {
  471. title: '公共客户',
  472. dataIndex: 'shareType',
  473. key: 'shareType',
  474. render: (text, record) => { return record.shareType == '1' ? <span>公共客户</span> : <span>个人客户</span> }
  475. },
  476. {
  477. title: '行业',
  478. dataIndex: 'industry',
  479. key: 'industry',
  480. },
  481. {
  482. title: '社会性质',
  483. dataIndex: 'societyTag',
  484. key: 'societyTag',
  485. render: text => { return getSocialAttribute(text) }
  486. },
  487. {
  488. title: '创建时间',
  489. dataIndex: 'createTime',
  490. key: 'createTime',
  491. },{
  492. title: '所属人',
  493. dataIndex: 'adminName',
  494. key: 'adminName',
  495. },
  496. {
  497. title: '业务认证',
  498. dataIndex: 'businessAudit',
  499. key: 'businessAudit',
  500. render: text => { return getCertification(text) }
  501. },
  502. {
  503. title: '实名认证',
  504. dataIndex: 'auditStatus',
  505. key: 'auditStatus',
  506. render: text => { return getAuditStatus(text) }
  507. },
  508. {
  509. title: '是否专家',
  510. dataIndex: 'expert',
  511. key: 'expert',
  512. render: text => { return getWhether(text) }
  513. },
  514. {
  515. title: '是否会员',
  516. dataIndex: 'isMember',
  517. key: 'isMember',
  518. render: text => { return getWhether(text) }
  519. },
  520. {
  521. title: '是否国际',
  522. dataIndex: 'international',
  523. key: 'international',
  524. render: text => { return getWhether(text) }
  525. },
  526. {
  527. title: '会员等级',
  528. dataIndex: 'lvl',
  529. key: 'lvl',
  530. render: text => { return getLvl(text) }
  531. },
  532. {
  533. title: '会员状态',
  534. dataIndex: 'currentMemberStatus',
  535. key: 'currentMemberStatus',
  536. render: text => { return getCurrentMember(text) }
  537. },
  538. {
  539. title: '状态',
  540. dataIndex: 'status',
  541. key: 'status',
  542. render: text => { return getStatuslist(text) }
  543. }
  544. ],
  545. data: [],
  546. dataman: [],
  547. dataSource: [],
  548. visitArrList: [],
  549. searchTime: [, ]
  550. };
  551. },
  552. //更多操作
  553. ModalOperation() {
  554. this.setState({
  555. visible: true,
  556. });
  557. },
  558. //tab2获取联系人详情
  559. contactLists(ids) {
  560. this.setState({
  561. loading: true
  562. });
  563. $.ajax({
  564. method: "get",
  565. dataType: "json",
  566. crossDomain: false,
  567. url: globalConfig.context + '/api/admin/customer/findCustomerContacts',
  568. data: {
  569. uid: ids, //名称1
  570. },
  571. success: function(data) {
  572. let theArr = [];
  573. if(data.error.length || data.data.list == "") {
  574. if(data.error && data.error.length) {
  575. message.warning(data.error[0].message);
  576. };
  577. } else {
  578. for(let i = 0; i < data.data.length; i++) {
  579. let thisdata = data.data[i];
  580. theArr.push({
  581. id: thisdata.id,
  582. name: thisdata.name,
  583. mobile: thisdata.mobile,
  584. email: thisdata.email,
  585. qq: thisdata.qq,
  586. wechat: thisdata.wechat,
  587. depatrment: thisdata.depatrment,
  588. position: thisdata.position,
  589. });
  590. };
  591. };
  592. this.setState({
  593. contactList: theArr,
  594. });
  595. }.bind(this),
  596. }).always(function() {
  597. this.setState({
  598. loading: false
  599. });
  600. }.bind(this));
  601. },
  602. //刷新新增拜访记录刷新
  603. deletelist(e) {
  604. $.ajax({
  605. method: "get",
  606. dataType: "json",
  607. url: globalConfig.context + '/api/admin/customer/toAddFollow',
  608. data: {
  609. uid: e,
  610. },
  611. success: function(data) {
  612. let listArr = [];
  613. let thedata = data.data;
  614. if(!thedata) {
  615. if(data.error && data.error.length) {
  616. message.warning(data.error[0].message);
  617. };
  618. thedata = {};
  619. };
  620. for(let i = 0; i < data.data.userBusinessList.length; i++) {
  621. let thisdata = data.data.userBusinessList[i];
  622. listArr.push({
  623. id: thisdata.id,
  624. businessGlossoryId: String(thisdata.businessGlossoryId),
  625. followSituation: String(thisdata.followSituation),
  626. customerStatus: String(thisdata.customerStatus),
  627. remarks: thisdata.remarks,
  628. });
  629. };
  630. this.setState({
  631. contacts: thedata.contacts,
  632. uid: thedata.uid,
  633. data: listArr,
  634. identifyName: thedata.identifyName,
  635. followTime: thedata.followTime,
  636. businessGlossoryId: thedata.businessGlossoryId,
  637. followSituation: thedata.followSituation,
  638. customerStatus: thedata.customerStatus,
  639. remarks: thedata.remarks,
  640. });
  641. }.bind(this),
  642. }).always(function() {
  643. this.setState({
  644. loading: false
  645. });
  646. }.bind(this));
  647. },
  648. //拜访记录删除
  649. visitDelet(e) {
  650. this.setState({
  651. loading: true
  652. });
  653. $.ajax({
  654. method: "get",
  655. dataType: "json",
  656. crossDomain: false,
  657. url: globalConfig.context + "/api/admin/customer/deleteFollow",
  658. data: {
  659. followId: e.followId, //删除的ID
  660. }
  661. }).done(function(data) {
  662. if(!data.error.length) {
  663. message.success('删除成功!');
  664. this.setState({
  665. loading: false,
  666. });
  667. } else {
  668. message.warning(data.error[0].message);
  669. };
  670. this.loadVisit();
  671. }.bind(this));
  672. },
  673. //进入修改拜访记录
  674. visitModify(e) {
  675. this.setState({
  676. visitModul: true,
  677. loading: true
  678. });
  679. $.ajax({
  680. method: "get",
  681. dataType: "json",
  682. url: globalConfig.context + '/api/admin/customer/toUpdateFollow',
  683. data: {
  684. followId: e,
  685. },
  686. success: function(data) {
  687. let theArr = [];
  688. let thedata = data.data;
  689. if(!thedata) {
  690. if(data.error && data.error.length) {
  691. message.warning(data.error[0].message);
  692. };
  693. thedata = {};
  694. };
  695. for(let i = 0; i < data.data.userBusinessList.length; i++) {
  696. let thisdata = data.data.userBusinessList[i];
  697. theArr.push({
  698. id: thisdata.id,
  699. businessGlossoryId: String(thisdata.businessGlossoryId),
  700. followSituation: String(thisdata.followSituation),
  701. customerStatus: String(thisdata.customerStatus),
  702. remarks: thisdata.remarks,
  703. });
  704. };
  705. this.setState({
  706. followIds: thedata.followId,
  707. contacts: thedata.contacts,
  708. uid: thedata.uid,
  709. data: theArr,
  710. nub: thedata.contactMobile,
  711. result: thedata.result,
  712. contactType: parseInt(thedata.contactType),
  713. identifyName: thedata.identifyName,
  714. followTime: thedata.followTime,
  715. businessGlossoryId: thedata.businessGlossoryId,
  716. followSituation: thedata.followSituation,
  717. customerStatus: thedata.customerStatus,
  718. adminName: thedata.adminName,
  719. });
  720. }.bind(this),
  721. }).always(function() {
  722. this.setState({
  723. loading: false
  724. });
  725. }.bind(this));
  726. },
  727. //审核专家通过功能
  728. delectRow() {
  729. let deletedIds;
  730. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  731. let rowItem = this.state.selectedRows[idx];
  732. if(rowItem.id) {
  733. deletedIds = rowItem.id;
  734. };
  735. };
  736. this.setState({
  737. selectedRowKeys: [],
  738. });
  739. $.ajax({
  740. method: "get",
  741. dataType: "json",
  742. crossDomain: false,
  743. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  744. data: {
  745. uid: deletedIds,
  746. },
  747. success: function(data) {
  748. let thisData = data.data;
  749. console.log(thisData);
  750. $.ajax({
  751. method: "post",
  752. dataType: "json",
  753. crossDomain: false,
  754. url: globalConfig.context + "/api/admin/customer/updatePersonalCustomer",
  755. data: {
  756. uid: deletedIds, //审核通过的ID
  757. id:thisData.id,
  758. expertAudit:2,
  759. }
  760. }).done(function(data) {
  761. if(!data.error.length) {
  762. message.success('已成功通过该专家申请!');
  763. this.setState({
  764. loading: false,
  765. });
  766. } else {
  767. message.warning(data.error[0].message);
  768. };
  769. this.loadData();
  770. }.bind(this));
  771. }.bind(this),
  772. })
  773. },
  774. //审核专家不通过功能
  775. delectRows() {
  776. let deletedIds;
  777. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  778. let rowItem = this.state.selectedRows[idx];
  779. if(rowItem.id) {
  780. deletedIds = rowItem.id;
  781. };
  782. };
  783. this.setState({
  784. selectedRowKeys: [],
  785. });
  786. $.ajax({
  787. method: "get",
  788. dataType: "json",
  789. crossDomain: false,
  790. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  791. data: {
  792. uid: deletedIds,
  793. },
  794. success: function(data) {
  795. let thisData = data.data;
  796. console.log(thisData);
  797. $.ajax({
  798. method: "post",
  799. dataType: "json",
  800. crossDomain: false,
  801. url: globalConfig.context + "/api/admin/customer/updatePersonalCustomer",
  802. data: {
  803. uid: deletedIds, //审核通过的ID
  804. id:thisData.id,
  805. expertAudit:2,
  806. }
  807. }).done(function(data) {
  808. if(!data.error.length) {
  809. message.success('已成功驳回该专家申请!');
  810. this.setState({
  811. loading: false,
  812. });
  813. } else {
  814. message.warning(data.error[0].message);
  815. };
  816. this.loadData();
  817. }.bind(this));
  818. }.bind(this),
  819. })
  820. },
  821. //领取
  822. changeRow(e) {
  823. this.setState({
  824. loading: true,
  825. selectedRowKeys: [],
  826. });
  827. $.ajax({
  828. method: "get",
  829. dataType: "json",
  830. crossDomain: false,
  831. url: globalConfig.context + "/api/admin/customer/receiveCustomer",
  832. data: {
  833. uid: e.id,
  834. }
  835. }).done(function(data) {
  836. if(!data.error.length) {
  837. message.success('已领取!');
  838. this.setState({
  839. loading: false,
  840. });
  841. } else {
  842. message.warning(data.error[0].message);
  843. };
  844. this.loadData();
  845. }.bind(this));
  846. },
  847. getHeadPortraitUrl(e) {
  848. this.setState({ headPortraitUrl: e });
  849. },
  850. getPositiveIdUrl(e) {
  851. this.setState({ positiveIdUrl: e });
  852. },
  853. getOppositeIdUrl(e) {
  854. this.setState({ oppositeIdUrl: e });
  855. },
  856. componentWillMount() {
  857. //城市
  858. let areaArr= getProvinceList();
  859. let Citys=citySelect(areaArr);
  860. let Areas=areaSelect(areaArr);
  861. this.setState({
  862. City: Citys,
  863. Area: Areas
  864. });
  865. let Province = [];
  866. areaArr.map(function(item) {
  867. var id = String(item.id)
  868. Province.push(
  869. <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
  870. )
  871. });
  872. //行业
  873. let intentionalArr = [];
  874. industry.map(function(item) {
  875. intentionalArr.push(
  876. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  877. )
  878. });
  879. //会员等级
  880. let lvlArr = [];
  881. lvl.map(function(item) {
  882. lvlArr.push(
  883. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  884. )
  885. });
  886. //会员状态customerStatus
  887. let currentMemberArr = [];
  888. currentMember.map(function(item) {
  889. currentMemberArr.push(
  890. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  891. )
  892. });
  893. //客户状态
  894. let customerStatusArr = [];
  895. customerStatus.map(function(item) {
  896. customerStatusArr.push(
  897. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  898. )
  899. });
  900. this.state.Provinces = Province;
  901. this.state.intentionalOption = intentionalArr;
  902. this.state.lvlArrOption = lvlArr;
  903. this.state.currentMemberArrOption = currentMemberArr;
  904. this.state.customerStatusArrOption = customerStatusArr;
  905. this.loadData();
  906. },
  907. search() {
  908. this.loadData();
  909. },
  910. reset() {
  911. this.state.expertSearch = undefined;
  912. this.state.celebritySearch = undefined;
  913. this.state.shareTypeSearch = undefined;
  914. this.state.typeSearch = undefined; //名称1
  915. this.state.nameSearch = '';
  916. this.state.addressSearch = [];
  917. this.state.provinceSearch = undefined;
  918. this.state.citySearch = undefined;
  919. this.state.statusSearch = undefined;
  920. this.state.contactsSearch = undefined;
  921. this.state.contactMobileSearch = undefined;
  922. this.state.industrySearch = undefined;
  923. this.state.serviceCertificationSearch = undefined;
  924. this.state.userCertificationSearch = undefined;
  925. this.state.currentMemberStatusSearch = undefined;
  926. this.state.lvlSearch = undefined;
  927. this.state.listedSearch = undefined;
  928. this.state.highTechZoneSearch = undefined;
  929. this.state.releaseDate[0] = undefined;
  930. this.state.releaseDate[1] = undefined;
  931. this.loadData();
  932. },
  933. searchSwitch() {
  934. this.setState({
  935. searchMore: !this.state.searchMore
  936. });
  937. },
  938. //详情保存函数
  939. detailsSubmint() {
  940. this.setState({
  941. modal5Visible: false,
  942. })
  943. },
  944. //整行点击
  945. tableRowClick(record, index) {
  946. this.state.RowData = record;
  947. this.detailsModalOk(record);
  948. this.loadInformation(record.id)
  949. this.httpAccount(record.id);
  950. this.loadBfVisit(1, record.id);
  951. this.BusinessList(1, record.id);
  952. this.contactLists(record.id);
  953. this.setState({
  954. callnub:'1',
  955. selectedRowKeys: [],
  956. rowId: record.id,
  957. })
  958. },
  959. VisitRowClick(record, index) {
  960. this.state.keys = false;
  961. this.state.RowData = record;
  962. this.visitModify(record.followId);
  963. this.setState({
  964. selectedRowKeys: [],
  965. delectId: record.followId,
  966. })
  967. },
  968. //基本信息提交
  969. newSubmit(e) {
  970. e.preventDefault();
  971. if(!this.state.industry) {
  972. message.warning('请选择行业');
  973. return false;
  974. };
  975. if(!this.state.societyTag) {
  976. message.warning('请选择社会性质');
  977. return false;
  978. };
  979. if(!this.state.ProvinceCity[1]) {
  980. message.warning('请选择地区');
  981. return false;
  982. };
  983. var reg=/^[1-9]\d*$|^0$/;
  984. if(this.state.consultationPrice){
  985. if(this.state.consultationPrice.length>6) {
  986. message.warning('咨询费用不超过6位数');
  987. this.refs.consul.focus();
  988. return false;
  989. };
  990. if(!reg.test(this.state.consultationPrice)){
  991. message.warning('咨询费用只能输入数字 ');
  992. this.refs.consul.focus();
  993. return false;
  994. }
  995. }
  996. this.setState({
  997. selectedRowKeys: [],
  998. });
  999. this.props.form.validateFields((err, values) => {
  1000. let theorgCodeUrl = [];
  1001. if(this.state.headPortraitUrl.length) {
  1002. let picArr = [];
  1003. this.state.headPortraitUrl.map(function(item) {
  1004. if ( item.response && item.response.data && item.response.data.length ){
  1005. picArr.push(item.response.data);
  1006. }
  1007. });
  1008. theorgCodeUrl = picArr.join(",");
  1009. };
  1010. let thecompanyLogoUrl = [];
  1011. if(this.state.positiveIdUrl.length) {
  1012. let picArr = [];
  1013. this.state.positiveIdUrl.map(function(item) {
  1014. if ( item.response && item.response.data && item.response.data.length ){
  1015. picArr.push(item.response.data);
  1016. }
  1017. });
  1018. thecompanyLogoUrl = picArr.join(",");
  1019. };
  1020. let thecompanyLogoUrls = [];
  1021. if(this.state.oppositeIdUrl.length) {
  1022. let picArr = [];
  1023. this.state.oppositeIdUrl.map(function(item) {
  1024. if ( item.response && item.response.data && item.response.data.length ){
  1025. picArr.push(item.response.data);
  1026. }
  1027. });
  1028. thecompanyLogoUrls = picArr.join(",");
  1029. };
  1030. if(!err) {
  1031. let years = [];
  1032. let yearMonth = new Date(this.state.yearMonth).toLocaleDateString();
  1033. years = yearMonth.split('/');
  1034. this.setState({
  1035. loading: true
  1036. });
  1037. $.ajax({
  1038. method: "post",
  1039. dataType: "json",
  1040. url: globalConfig.context + '/api/admin/customer/updatePersonalCustomer',
  1041. data: {
  1042. id: this.state.InformationId,
  1043. uid: this.state.InformationUid,
  1044. societyTag: this.state.societyTag,
  1045. identifyName: this.state.identifyName,
  1046. industry: this.state.industry,
  1047. dateOfBirthYear: years[0], //出生年
  1048. dateOfBirthMonth: years[1], //出生月
  1049. province: (this.state.ProvinceCity)[0], //省-
  1050. city: (this.state.ProvinceCity)[1], //市
  1051. area: (this.state.ProvinceCity)[2], //区
  1052. sex: this.state.sex,
  1053. expert: this.state.expert,
  1054. celebrity: this.state.celebrity,
  1055. international: this.state.international,
  1056. fixedTel: this.state.fixedTel,
  1057. consultationPrice: this.state.consultationPrice,
  1058. qq: this.state.qq,
  1059. contacts: this.state.contacts,
  1060. contactMobile: this.state.contactMobile,
  1061. idNumber: this.state.idNumber,
  1062. email: this.state.email,
  1063. isMember: this.state.isMember,
  1064. consultant: this.state.consultant,
  1065. postalAddress: this.state.postalAddress,
  1066. introduction: this.state.introduction,
  1067. positiveIdUrl: thecompanyLogoUrl,
  1068. oppositeIdUrl: thecompanyLogoUrls,
  1069. headPortraitUrl: theorgCodeUrl,
  1070. investment: this.state.investment,
  1071. professionalTitle: this.state.professionalTitle,
  1072. workUnit: this.state.workUnit,
  1073. education: this.state.education,
  1074. graduateSchool: this.state.graduateSchool,
  1075. majorCategory: this.state.majorCategory,
  1076. qualification: this.state.qualification,
  1077. businessAudit:this.state.businessAudit,
  1078. auditStatus:this.state.auditStatus
  1079. }
  1080. }).done(function(data) {
  1081. this.setState({
  1082. loading: false
  1083. });
  1084. if(!data.error.length) {
  1085. message.success('保存成功!');
  1086. this.detailsModal()
  1087. this.loadData();
  1088. } else {
  1089. message.warning(data.error[0].message);
  1090. }
  1091. }.bind(this));
  1092. }
  1093. })
  1094. },
  1095. //点击整行查看详情
  1096. //查看基本详情基本信息
  1097. loadInformation(record) {
  1098. this.RowClick;
  1099. $.ajax({
  1100. method: "get",
  1101. dataType: "json",
  1102. crossDomain: false,
  1103. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  1104. data: {
  1105. uid: record
  1106. },
  1107. success: function(data) {
  1108. let thisData = data.data;
  1109. if(!thisData) {
  1110. if(data.error && data.error.length) {
  1111. message.warning(data.error[0].message);
  1112. };
  1113. thisData = {};
  1114. };
  1115. let ProvinceCityArr = [];
  1116. let ProvinceS = thisData.province; //getprovince
  1117. let citys = thisData.city;
  1118. let Areas = thisData.area;
  1119. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1120. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  1121. let month = thisData.dateOfBirthYear ? thisData.dateOfBirthYear + '/' + thisData.dateOfBirthMonth : false;
  1122. this.setState({
  1123. proviceCityArea: ProvinceS ? cityArea : '',
  1124. InformationId: thisData.id,
  1125. InformationUid: thisData.uid,
  1126. identifyName: thisData.identifyName,
  1127. listed: thisData.listed,
  1128. highTechZone: thisData.highTechZone,
  1129. consultant: thisData.consultant,
  1130. headPortraitUrl: thisData.headPortraitUrl ? splitUrl(thisData.headPortraitUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1131. positiveIdUrl: thisData.positiveIdUrl ? splitUrl(thisData.positiveIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1132. oppositeIdUrl: thisData.oppositeIdUrl ? splitUrl(thisData.oppositeIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1133. dataInformation: thisData,
  1134. idNumber: thisData.idNumber,
  1135. ProvinceCity: ProvinceCityArr,
  1136. industry: String(thisData.industry),
  1137. societyTag: thisData.societyTag,
  1138. sex: thisData.sex,
  1139. contacts: thisData.contacts,
  1140. contactMobile: thisData.contactMobile,
  1141. yearMonth: month,
  1142. postalAddress: thisData.postalAddress,
  1143. fixedTel: thisData.fixedTel,
  1144. consultationPrice: thisData.consultationPrice,
  1145. email: thisData.email,
  1146. qq: thisData.qq,
  1147. introduction: thisData.introduction,
  1148. expert: thisData.expert,
  1149. celebrity: thisData.celebrity,
  1150. international: thisData.international,
  1151. investment: thisData.investment,
  1152. professionalTitle: thisData.professionalTitle,
  1153. workUnit: thisData.workUnit,
  1154. education: thisData.education,
  1155. graduateSchool: thisData.graduateSchool,
  1156. majorCategory: thisData.majorCategory,
  1157. qualification: thisData.qualification,
  1158. businessAudit:thisData.businessAudit,
  1159. auditStatus:thisData.auditStatus?String(thisData.auditStatus):undefined,
  1160. });
  1161. }.bind(this),
  1162. }).always(function() {
  1163. this.setState({
  1164. loading: false
  1165. });
  1166. }.bind(this));
  1167. },
  1168. //tab3账户信息请求数据
  1169. httpAccount(record) {
  1170. this.RowClick;
  1171. $.ajax({
  1172. method: "get",
  1173. dataType: "json",
  1174. crossDomain: false,
  1175. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  1176. data: {
  1177. uid: record
  1178. },
  1179. success: function(data) {
  1180. let thisData = data.data;
  1181. if(!thisData) {
  1182. if(data.error && data.error.length) {
  1183. message.warning(data.error[0].message);
  1184. };
  1185. thisData = {};
  1186. };
  1187. let sourcecustomer = ''
  1188. switch(String(thisData.source)) {
  1189. case '0':
  1190. sourcecustomer = '注册客户'
  1191. break;
  1192. case '1':
  1193. sourcecustomer = '录入客户'
  1194. break;
  1195. }
  1196. this.setState({
  1197. Accountuid: thisData.id,
  1198. mobile: thisData.mobile,
  1199. nickname: thisData.nickname,
  1200. email: thisData.email,
  1201. type: getcustomerTyp(String(thisData.type)),
  1202. source: sourcecustomer,
  1203. isMember: thisData.isMember,
  1204. currentMemberStatus: String(thisData.currentMemberStatus),
  1205. lvl: String(thisData.lvl),
  1206. status: String(thisData.status),
  1207. createTimes: thisData.createTimes,
  1208. });
  1209. }.bind(this),
  1210. }).always(function() {
  1211. this.setState({
  1212. loading: false
  1213. });
  1214. }.bind(this));
  1215. },
  1216. detailsModalOk(e) {
  1217. this.setState({ modal5Visible: true }); //需要一个请求数据
  1218. },
  1219. //点击消失函数
  1220. detailsModal(e) {
  1221. this.setState({
  1222. modal5Visible: false
  1223. });
  1224. },
  1225. //拜访modul函数
  1226. visitOk(e) {
  1227. this.setState({
  1228. visitModul: false
  1229. });
  1230. this.loadVisit()
  1231. },
  1232. visitCancel(e) {
  1233. this.setState({
  1234. visitModul: false
  1235. });
  1236. },
  1237. //拜访保存函数
  1238. visitSubmit(e) {
  1239. e.preventDefault();
  1240. if(this.state.contactType == undefined) {
  1241. message.warning('请选择拜访方式')
  1242. return false;
  1243. };
  1244. if(this.state.keys) {
  1245. if(this.state.lastName == undefined) {
  1246. message.warning('请选择联系人')
  1247. return false;
  1248. }
  1249. };
  1250. this.setState({
  1251. selectedRowKeys: [],
  1252. });
  1253. this.setState({
  1254. loading: true
  1255. });
  1256. let contactsId = '';
  1257. if(this.state.keys) {
  1258. let conts = this.state.lastName;
  1259. contactsId = this.state.contactsIdArr[conts].id;
  1260. }
  1261. //新增
  1262. $.ajax({
  1263. method: "post",
  1264. dataType: "json",
  1265. url: this.state.keys ? globalConfig.context + '/api/admin/customer/addFollow' : globalConfig.context + '/api/admin/customer/updateFollow',
  1266. data: this.state.keys ? {
  1267. userBusinessList: JSON.stringify(this.state.data),
  1268. uid: this.state.uid,
  1269. ocbId: contactsId,
  1270. contactType: this.state.contactType,
  1271. result: this.state.result,
  1272. followTime: this.state.followTime,
  1273. } : {
  1274. followId: this.state.followIds,
  1275. userBusinessList: JSON.stringify(this.state.data),
  1276. uid: this.state.uid,
  1277. contactType: this.state.contactType,
  1278. result: this.state.result,
  1279. followTime: this.state.followTime,
  1280. }
  1281. }).done(function(data) {
  1282. this.setState({
  1283. loading: false
  1284. });
  1285. if(!data.error.length) {
  1286. message.success('保存成功!');
  1287. this.loadVisit(); //
  1288. this.loadData();
  1289. this.visitCancel();
  1290. } else {
  1291. message.warning(data.error[0].message);
  1292. }
  1293. }.bind(this));
  1294. },
  1295. //当选择联系人的列表变化时,则执行
  1296. hundleName(e) {
  1297. let changNub = this.state.telNum[e];
  1298. this.setState({
  1299. nub: this.state.telNum[e],
  1300. lastName: e,
  1301. });
  1302. },
  1303. //添加新业务及单位客户详情新增
  1304. addNew() {
  1305. this.state.data.push({
  1306. customerStatus: undefined,
  1307. businessGlossoryId: undefined,
  1308. followSituation: undefined,
  1309. remarks: '',
  1310. });
  1311. this.setState({
  1312. data: this.state.data
  1313. })
  1314. },
  1315. //tab2新增联系人
  1316. addcontact() {
  1317. this.state.contactList.push({
  1318. id: null,
  1319. name: '',
  1320. mobile: '',
  1321. email: '',
  1322. qq: '',
  1323. wechat: '',
  1324. depatrment: '',
  1325. position: '',
  1326. });
  1327. this.setState({
  1328. contactList: this.state.contactList
  1329. })
  1330. },
  1331. //tab5进入修改时
  1332. //进入修改时
  1333. listFollowUp(e) {
  1334. $.ajax({
  1335. method: "get",
  1336. dataType: "json",
  1337. crossDomain: false,
  1338. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  1339. data: {
  1340. ufbId: e
  1341. },
  1342. success: function(data) {
  1343. let thedata = data.data;
  1344. if(!thedata) {
  1345. if(data.error && data.error.length) {
  1346. message.warning(data.error[0].message);
  1347. };
  1348. thedata = {};
  1349. };
  1350. this.setState({
  1351. businessGlossoryIds: thedata.businessGlossoryId,
  1352. followSituations: thedata.followSituation,
  1353. customerStatuss: thedata.customerStatus,
  1354. followTimes: thedata.followTime,
  1355. createTimes: thedata.createTime,
  1356. identifyNames: thedata.identifyName,
  1357. contactTypes: parseInt(thedata.contactType),
  1358. results: thedata.result,
  1359. remarkss: thedata.remarks,
  1360. adminNames: thedata.adminName,
  1361. contactss: thedata.contacts,
  1362. contactMobiles: thedata.contactMobile,
  1363. ufbId: thedata.ufbId,
  1364. followIds: thedata.followId,
  1365. });
  1366. }.bind(this),
  1367. }).always(function() {
  1368. this.setState({
  1369. loading: false
  1370. });
  1371. }.bind(this));
  1372. },
  1373. //修改密码Modul
  1374. modifyPassworld() {
  1375. this.setState({
  1376. passworldModul: true
  1377. });
  1378. },
  1379. passworldOk(e) {
  1380. this.setState({
  1381. passworldModul: false
  1382. });
  1383. },
  1384. passworldCancel(e) {
  1385. this.setState({
  1386. passworldModul: false
  1387. });
  1388. },
  1389. //修改密码保存
  1390. passworldSubmit(e) {
  1391. e.preventDefault();
  1392. this.passworldCancel()
  1393. },
  1394. //新增联系人
  1395. addcontactModulOK() {
  1396. this.setState({
  1397. addcontactModul: false
  1398. });
  1399. },
  1400. addcontactModulcancel() {
  1401. this.setState({
  1402. addcontactModul: false
  1403. });
  1404. },
  1405. //点击新增详情
  1406. newContacts() {
  1407. this.state.newsex =undefined;
  1408. this.state.newname ='';
  1409. this.state.newmobile='';
  1410. this.state.newwechat='';
  1411. this.state.newqq='';
  1412. this.state.newdepatrment='';
  1413. this.state.newposition='';
  1414. this.state.newemail='';
  1415. this.setState({
  1416. uids: this.state.uid,
  1417. addcontactModul: true
  1418. });
  1419. },
  1420. //新增联系人保存函数
  1421. submitcontactman() {
  1422. this.setState({
  1423. loading: true
  1424. })
  1425. $.ajax({
  1426. method: "post",
  1427. dataType: "json",
  1428. crossDomain: false,
  1429. url: globalConfig.context + "/api/admin/customer/addOneContact",
  1430. data: {
  1431. uid: this.state.uids,
  1432. name: this.state.newname,
  1433. mobile: this.state.newmobile,
  1434. email: this.state.newemail,
  1435. wechat: this.state.newwechat,
  1436. depatrment: this.state.newdepatrment,
  1437. position: this.state.newposition,
  1438. sex: this.state.newsex,
  1439. qq: this.state.newqq
  1440. },
  1441. success: function(data) {
  1442. if(!data.error.length) {
  1443. this.addcontactModulOK()
  1444. this.getNewWoman(this.state.uids)
  1445. this.setState({
  1446. loading: false,
  1447. })
  1448. } else {
  1449. message.warning(data.error[0].message);
  1450. };
  1451. }.bind(this)
  1452. });
  1453. },
  1454. //获取联系人下拉框
  1455. getNewWoman(ids) {
  1456. this.state.data = []
  1457. $.ajax({
  1458. method: "get",
  1459. dataType: "json",
  1460. crossDomain: false,
  1461. url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
  1462. data: {
  1463. uid: ids,
  1464. },
  1465. success: function(data) {
  1466. let theArr = [];
  1467. let thedata = data.data;
  1468. if(!thedata) {
  1469. if(data.error && data.error.length) {
  1470. message.warning(data.error[0].message);
  1471. };
  1472. thedata = {};
  1473. };
  1474. var telNum = [];
  1475. var contactIds = [];
  1476. thedata.map(function(item, index) {
  1477. contactIds.push(thedata[index].id);
  1478. telNum.push(thedata[index].mobile);
  1479. });
  1480. for(let item in data.data) {
  1481. let theData = data.data[item];
  1482. theArr.push(
  1483. <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>
  1484. );
  1485. };
  1486. this.setState({
  1487. contactsIdArr: thedata,
  1488. telNum: telNum,
  1489. orderStatusOption: theArr,
  1490. });
  1491. }.bind(this),
  1492. }).always(function() {
  1493. this.setState({
  1494. deletId: ids,
  1495. loading: false
  1496. });
  1497. }.bind(this));
  1498. },
  1499. //拜访意向服务列表单个删除
  1500. intentionDelet(e, index) {
  1501. if(!this.state.keys) {
  1502. let detId = this.state.followIds;
  1503. if(e.id) {
  1504. this.setState({
  1505. selectedRowKeys: [],
  1506. });
  1507. $.ajax({
  1508. method: "get",
  1509. dataType: "json",
  1510. crossDomain: false,
  1511. url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",
  1512. data: {
  1513. ufbId: e.id
  1514. }
  1515. }).done(function(data) {
  1516. if(!data.error.length) {
  1517. message.success('删除成功');
  1518. this.setState({
  1519. loading: false,
  1520. });
  1521. } else {
  1522. message.warning(data.error[0].message);
  1523. };
  1524. this.visitModify(detId);
  1525. }.bind(this));
  1526. } else {
  1527. this.visitModify(detId);
  1528. }
  1529. } else {
  1530. let deteluserBusinessList = (this.state.data).splice(index, 1)
  1531. this.setState({
  1532. selectedRowKeys: [],
  1533. });
  1534. }
  1535. },
  1536. //tab5意向业务
  1537. //意向业务查看列表单个详情
  1538. businessIntentionDetails(e) {
  1539. $.ajax({
  1540. method: "get",
  1541. dataType: "json",
  1542. crossDomain: false,
  1543. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  1544. data: {
  1545. businessId: e.businessId
  1546. },
  1547. success: function(data) {
  1548. let thisData = data.data;
  1549. if(!thisData) {
  1550. if(data.error && data.error.length) {
  1551. message.warning(data.error[0].message);
  1552. };
  1553. thisData = {};
  1554. };
  1555. this.setState({
  1556. businessGlossoryId: thisData.businessGlossoryId,
  1557. identifyName: thisData.identifyName,
  1558. uid: thisData.uid,
  1559. businessId: thisData.businessId,
  1560. followSituation: thisData.followSituation,
  1561. customerStatus: thisData.customerStatus,
  1562. createTime: thisData.createTime,
  1563. followTime: thisData.followTime,
  1564. adminName: thisData.adminName,
  1565. remarks: thisData.remarks,
  1566. result: thisData.result,
  1567. });
  1568. }.bind(this),
  1569. }).always(function() {
  1570. this.loadVisit();
  1571. this.setState({
  1572. loading: false
  1573. });
  1574. }.bind(this));
  1575. this.setState({
  1576. businessModul: true
  1577. })
  1578. },
  1579. //查看跟进记录列表
  1580. loadVisit(pageNo) {
  1581. this.setState({
  1582. loading: true
  1583. });
  1584. $.ajax({
  1585. method: "get",
  1586. dataType: "json",
  1587. crossDomain: false,
  1588. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1589. data: {
  1590. pageNo: pageNo || 1,
  1591. pageSize: this.state.paginations.pageSize,
  1592. uid: this.state.rowId, //名称1
  1593. businessGlossoryId: this.state.businessGlossoryId,
  1594. },
  1595. success: function(data) {
  1596. let theArr = [];
  1597. if(data.error.length || data.data.list == "") {
  1598. if(data.error && data.error.length) {
  1599. message.warning(data.error[0].message);
  1600. };
  1601. } else {
  1602. for(let i = 0; i < data.data.list.length; i++) {
  1603. let thisdata = data.data.list[i];
  1604. theArr.push({
  1605. followId: thisdata.followId,
  1606. followTime: thisdata.followTime,
  1607. identifyName: thisdata.identifyName,
  1608. contacts: thisdata.contacts,
  1609. contactMobile: thisdata.contactMobile,
  1610. result: thisdata.result,
  1611. ufbId: thisdata.ufbId,
  1612. adminName: thisdata.adminName,
  1613. followSituation: thisdata.followSituation,
  1614. customerStatus: thisdata.customerStatus,
  1615. contactType: thisdata.contactType
  1616. });
  1617. };
  1618. this.state.paginations.current = data.data.pageNo;
  1619. this.state.paginations.total = data.data.totalCount;
  1620. };
  1621. this.setState({
  1622. visitArrList: theArr,
  1623. paginations: this.state.paginations
  1624. });
  1625. }.bind(this),
  1626. }).always(function() {
  1627. this.setState({
  1628. loading: false
  1629. });
  1630. }.bind(this));
  1631. },
  1632. //tab3拜访记录
  1633. loadBfVisit(pageNo, ids) {
  1634. this.setState({
  1635. loading: true
  1636. });
  1637. $.ajax({
  1638. method: "get",
  1639. dataType: "json",
  1640. crossDomain: false,
  1641. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1642. data: {
  1643. pageNo: pageNo || 1,
  1644. pageSize: this.state.paginationsy.pageSize,
  1645. uid: ids ? ids : this.state.rowId, //名称1
  1646. },
  1647. success: function(data) {
  1648. let theArr = [];
  1649. if(data.error.length || data.data.list == "") {
  1650. if(data.error && data.error.length) {
  1651. message.warning(data.error[0].message);
  1652. };
  1653. } else {
  1654. for(let i = 0; i < data.data.list.length; i++) {
  1655. let thisdata = data.data.list[i];
  1656. theArr.push({
  1657. followId: thisdata.followId,
  1658. followTime: thisdata.followTime,
  1659. identifyName: thisdata.identifyName,
  1660. contacts: thisdata.contacts,
  1661. contactMobile: thisdata.contactMobile,
  1662. result: thisdata.result,
  1663. ufbId: thisdata.ufbId,
  1664. adminName: thisdata.adminName,
  1665. followSituation: thisdata.followSituation,
  1666. customerStatus: thisdata.customerStatus,
  1667. contactType: thisdata.contactType
  1668. });
  1669. };
  1670. this.state.paginationsy.current = data.data.pageNo;
  1671. this.state.paginationsy.total = data.data.totalCount;
  1672. };
  1673. this.setState({
  1674. visitArrList: theArr,
  1675. paginationsy: this.state.paginationsy
  1676. });
  1677. }.bind(this),
  1678. }).always(function() {
  1679. this.setState({
  1680. loading: false
  1681. });
  1682. }.bind(this));
  1683. },
  1684. businessIntentionOk() {
  1685. this.setState({
  1686. businessGlossoryId: '',
  1687. businessModul: false
  1688. })
  1689. },
  1690. businessIntentionCancel() {
  1691. this.setState({
  1692. businessGlossoryId: '',
  1693. businessModul: false
  1694. })
  1695. },
  1696. //业务跟进查看跟多
  1697. businessFollowDetails(e) {
  1698. this.listFollowUp(e.ufbId)
  1699. this.setState({
  1700. businessFollowModul: true
  1701. })
  1702. },
  1703. businessFollowOk(e) {
  1704. this.setState({
  1705. businessFollowModul: false
  1706. })
  1707. },
  1708. businessFollowCancel(e) {
  1709. this.setState({
  1710. businessFollowModul: false
  1711. })
  1712. },
  1713. //tab2联系人保存
  1714. contactSave() {
  1715. let err = '';
  1716. let contactArr = this.state.contactList;
  1717. contactArr.map(function(item) {
  1718. if(!item.name) {
  1719. err = '客户姓名不能为空!';
  1720. }
  1721. if(!item.mobile) {
  1722. err = '手机号码不能为空!';
  1723. }
  1724. return err;
  1725. })
  1726. if(err) {
  1727. message.warning(err)
  1728. return false;
  1729. };
  1730. $.ajax({
  1731. url: globalConfig.context + '/api/admin/customer/updateCustomerContacts',
  1732. method: 'post',
  1733. data: {
  1734. uid: this.state.rowId,
  1735. contactList: JSON.stringify(this.state.contactList)
  1736. }
  1737. }).done(function(data) {
  1738. this.setState({
  1739. loading: false
  1740. });
  1741. if(!data.error.length) {
  1742. message.success('保存成功!');
  1743. this.detailsModal()
  1744. this.loadData();
  1745. } else {
  1746. message.warning(data.error[0].message);
  1747. }
  1748. }.bind(this));
  1749. },
  1750. //详情tab切换数据处理
  1751. callback(e) {
  1752. if(e == '1') {
  1753. this.loadInformation(this.state.rowId)
  1754. }
  1755. if(e == '2') {
  1756. this.contactLists(this.state.rowId)
  1757. }
  1758. if(e == '3') {
  1759. this.httpAccount(this.state.rowId)
  1760. }
  1761. if(e == '4') {
  1762. this.loadBfVisit(1, this.state.rowId);
  1763. }
  1764. if(e == '5') {
  1765. this.BusinessList(1, this.state.rowId);
  1766. }
  1767. if(e == '6') {
  1768. }
  1769. if(e == '7') {
  1770. }
  1771. if(e == '8') {
  1772. }
  1773. if(e == '9') {
  1774. }
  1775. this.setState({
  1776. callnub: e,
  1777. })
  1778. },
  1779. //账户信息保存
  1780. accountSave(e) {
  1781. e.preventDefault();
  1782. this.state.data = [];
  1783. this.setState({
  1784. selectedRowKeys: [],
  1785. });
  1786. this.setState({
  1787. loading: true
  1788. });
  1789. $.ajax({
  1790. method: "post",
  1791. dataType: "json",
  1792. url: globalConfig.context + '/api/admin/customer/updateUserAccount',
  1793. data: {
  1794. id: this.state.Accountuid,
  1795. mobile: this.state.mobile,
  1796. nickname: this.state.nickname,
  1797. email: this.state.email,
  1798. isMember: this.state.isMember,
  1799. currentMemberStatus: this.state.currentMemberStatus,
  1800. lvl: this.state.lvl,
  1801. status: this.state.status,
  1802. }
  1803. }).done(function(data) {
  1804. this.setState({
  1805. loading: false
  1806. });
  1807. if(!data.error.length) {
  1808. message.success('保存成功!');
  1809. this.detailsModal();
  1810. this.loadData();
  1811. } else {
  1812. message.warning(data.error[0].message);
  1813. }
  1814. }.bind(this));
  1815. },
  1816. //tab2删除
  1817. confirmDelet(e) {
  1818. this.setState({
  1819. loading: true
  1820. });
  1821. if(e.id) {
  1822. $.ajax({
  1823. method: "get",
  1824. dataType: "json",
  1825. crossDomain: false,
  1826. url: globalConfig.context + "/api/admin/customer/deleteOneContact",
  1827. data: {
  1828. ocbId: e.id, //删除的ID
  1829. }
  1830. }).done(function(data) {
  1831. if(!data.error.length) {
  1832. message.success('删除成功!');
  1833. this.setState({
  1834. loading: false,
  1835. });
  1836. } else {
  1837. message.warning(data.error[0].message);
  1838. };
  1839. this.contactLists(this.state.rowId);
  1840. }.bind(this));
  1841. } else {
  1842. this.contactLists(this.state.rowId);
  1843. }
  1844. },
  1845. //tab5业务意向
  1846. BusinessList(pageNo, uids) {
  1847. this.setState({
  1848. loading: true
  1849. });
  1850. $.ajax({
  1851. method: "post",
  1852. dataType: "json",
  1853. crossDomain: false,
  1854. url: globalConfig.context + '/api/admin/customer/listBusiness',
  1855. data: {
  1856. pageNo: pageNo || 1,
  1857. pageSize: this.state.paginationt.pageSize,
  1858. uid: uids ? uids : this.state.rowId
  1859. },
  1860. success: function(data) {
  1861. let theArr = [];
  1862. if(data.error.length || data.data.list == "") {
  1863. if(data.error && data.error.length) {
  1864. message.warning(data.error[0].message);
  1865. };
  1866. } else {
  1867. for(let i = 0; i < data.data.list.length; i++) {
  1868. let thisdata = data.data.list[i];
  1869. theArr.push({
  1870. key: i,
  1871. businessId: thisdata.businessId,
  1872. businessName: thisdata.businessName,
  1873. identifyName: thisdata.identifyName,
  1874. followSituation: thisdata.followSituation,
  1875. customerStatus: thisdata.customerStatus,
  1876. adminName: thisdata.adminName,
  1877. createTime: thisdata.createTime
  1878. });
  1879. };
  1880. this.state.paginationt.current = data.data.pageNo;
  1881. this.state.paginationt.total = data.data.totalCount;
  1882. };
  1883. this.setState({
  1884. dataBusiness: theArr,
  1885. paginationt: this.state.paginationt
  1886. });
  1887. }.bind(this),
  1888. }).always(function() {
  1889. this.setState({
  1890. loading: false
  1891. });
  1892. }.bind(this));
  1893. },
  1894. componentWillReceiveProps(nextProps) {
  1895. if(!this.props.visible && nextProps.visible) {
  1896. if(nextProps.data && nextProps.data.id) {
  1897. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1898. };
  1899. this.state.data = {};
  1900. this.state.companyLogoUrl = [];
  1901. this.state.orgCodeUrl = [];
  1902. };
  1903. },
  1904. render() {
  1905. const FormItem = Form.Item
  1906. const rowSelection = {
  1907. selectedRowKeys: this.state.selectedRowKeys,
  1908. onChange: (selectedRowKeys, selectedRows) => {
  1909. this.setState({
  1910. selectedRows: selectedRows.slice(-1),
  1911. selectedRowKeys: selectedRowKeys.slice(-1)
  1912. });
  1913. },
  1914. onSelect: (recordt, selected, selectedRows) => {
  1915. this.setState({
  1916. recordt: recordt.id
  1917. })
  1918. },
  1919. };
  1920. const rowSelections = {
  1921. selectedRowKeys: this.state.selectedRowKey,
  1922. onChange: (selectedRowKey, selectedRow) => {
  1923. this.setState({
  1924. selectedRow: selectedRow.slice(-1),
  1925. selectedRowKey: selectedRowKey.slice(-1)
  1926. });
  1927. },
  1928. onSelect: (records, selected, selectedRow) => {
  1929. this.setState({
  1930. selectedRow: selectedRow.slice(-1),
  1931. records: records.id,
  1932. })
  1933. },
  1934. };
  1935. const hasSelected = this.state.selectedRowKeys.length > 0;
  1936. const { RangePicker, MonthPicker } = DatePicker;
  1937. const { getFieldDecorator } = this.props.form;
  1938. const formItemLayout = {
  1939. labelCol: { span: 8 },
  1940. wrapperCol: { span: 14 },
  1941. };
  1942. const theInformation = this.state.dataInformation || {}
  1943. const contactsOption = "";
  1944. const formItemLayput = {
  1945. labelCol: { span: 10 },
  1946. wrapperCol: { span: 14 },
  1947. };
  1948. const contacts = this.state.contacts || '';
  1949. return(
  1950. <div className="user-content" >
  1951. <div className="content-title">
  1952. <span>专家申请审核</span>
  1953. </div>
  1954. <div className="user-search">
  1955. <Input placeholder="客户姓名"
  1956. value={this.state.nameSearch}
  1957. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1958. <Select placeholder="省"
  1959. style={{ width: 80 }}
  1960. value={this.state.provinceSearch}
  1961. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1962. {this.state.Provinces}
  1963. </Select>
  1964. <span style={{marginRight:'10px'}}>
  1965. <Cascader options={this.state.City} value={this.state.addressSearch} placeholder="选择城市"
  1966. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1967. </span>
  1968. <span style={{marginRight:'10px'}}>客户类型:</span>
  1969. <Select placeholder="选择客户类型"
  1970. style={{ width: 100 }}
  1971. value={this.state.shareTypeSearch}
  1972. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  1973. <Select.Option value="" >所有客户</Select.Option>
  1974. <Select.Option value="1" >公共客户</Select.Option>
  1975. </Select>
  1976. <Button type="primary" onClick={this.search}>搜索</Button>
  1977. <Button onClick={this.reset}>重置</Button>
  1978. {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  1979. disabled={!hasSelected}
  1980. onClick={this.delectRow}>审核通过</Button>:''}
  1981. {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  1982. disabled={!hasSelected}
  1983. onClick={this.delectRows}>审核不通过</Button>:''}
  1984. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  1985. <div className='clearfix' style={{marginTop:'5px'}}>
  1986. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1987. <RangePicker
  1988. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1989. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1990. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1991. <Select placeholder="客户状态"
  1992. style={{ width: 100 }}
  1993. value={this.state.statusSearch}
  1994. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  1995. <Select.Option value="0" >正常</Select.Option>
  1996. <Select.Option value="2" >锁定</Select.Option>
  1997. </Select>
  1998. <Select placeholder="行业"
  1999. style={{ width: 100 }}
  2000. value={this.state.industrySearch}
  2001. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  2002. {this.state.intentionalOption}
  2003. </Select>
  2004. <span>认证:</span>
  2005. <Select placeholder="业务认证"
  2006. style={{ width: 100 }}
  2007. value={this.state.serviceCertificationSearch}
  2008. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  2009. <Select.Option value="0" >未认证</Select.Option>
  2010. <Select.Option value="1" >已认证</Select.Option>
  2011. </Select>
  2012. <Select placeholder="实名认证"
  2013. style={{ width: 100 }}
  2014. value={this.state.userCertificationSearch}
  2015. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  2016. {
  2017. auditStatusL.map(function (item) {
  2018. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2019. })
  2020. }
  2021. </Select>
  2022. <span>专家:</span>
  2023. <Select placeholder="专家"
  2024. style={{ width: 60 }}
  2025. value={this.state.expertSearch}
  2026. onChange={(e) => { this.setState({ expertSearch: e }) }}>
  2027. <Select.Option value="0" >否</Select.Option>
  2028. <Select.Option value="1" >是</Select.Option>
  2029. </Select>
  2030. <span>明星:</span>
  2031. <Select placeholder="明星"
  2032. style={{ width: 60 }}
  2033. value={this.state.celebritySearch}
  2034. onChange={(e) => { this.setState({ celebritySearch: e }) }}>
  2035. <Select.Option value="0" >否</Select.Option>
  2036. <Select.Option value="1" >是</Select.Option>
  2037. </Select>
  2038. <span>国际:</span>
  2039. <Select placeholder="国际"
  2040. style={{ width: 60 }}
  2041. value={this.state.internationalSearch}
  2042. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2043. <Select.Option value="0" >否</Select.Option>
  2044. <Select.Option value="1" >是</Select.Option>
  2045. </Select>
  2046. <span>会员:</span>
  2047. <Select placeholder="会员等级"
  2048. style={{ width: 100 }}
  2049. value={this.state.lvlSearch}
  2050. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2051. {this.state.lvlArrOption}
  2052. </Select>
  2053. <Select placeholder="会员状态"
  2054. style={{ width: 100 }}
  2055. value={this.state.currentMemberStatusSearch}
  2056. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2057. {this.state.currentMemberArrOption}
  2058. </Select>
  2059. </div>
  2060. </div>
  2061. </div>
  2062. <div className="patent-table">
  2063. <Spin spinning={this.state.loading}>
  2064. <Table columns={this.state.columns}
  2065. dataSource={this.state.dataSource}
  2066. rowSelection={rowSelection}
  2067. pagination={this.state.pagination}
  2068. onRowClick={this.tableRowClick}
  2069. />
  2070. </Spin>
  2071. </div>
  2072. <Modal
  2073. className="customeDetails"
  2074. title="个人客户详情"
  2075. width='1200px'
  2076. visible={this.state.modal5Visible}
  2077. onOk={this.detailsModal}
  2078. onCancel={this.detailsModal}
  2079. footer=''
  2080. >
  2081. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  2082. <TabPane tab="基本信息" key="1">
  2083. {adminData.isSuperAdmin?<Form horizontal onSubmit={this.newSubmit} id="demand-form">
  2084. <Spin spinning={this.state.loading}>
  2085. <div className="clearfix" >
  2086. <FormItem className="half-item"
  2087. {...formItemLayout}
  2088. label="客户姓名"
  2089. >
  2090. <span>{theInformation.identifyName}</span>
  2091. </FormItem>
  2092. </div>
  2093. <div className="clearfix" >
  2094. <FormItem className="half-item"
  2095. {...formItemLayout}
  2096. label="行业">
  2097. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  2098. onChange={(e)=>{this.setState({industry:e})}}>
  2099. {
  2100. industry.map(function (item) {
  2101. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2102. })
  2103. }
  2104. </Select>
  2105. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2106. </FormItem>
  2107. <FormItem className="half-item"
  2108. {...formItemLayout}
  2109. label="社会属性"
  2110. >
  2111. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'300px'}}
  2112. onChange={(e)=>{this.setState({societyTag:e})}}>
  2113. {
  2114. socialAttribute.map(function (item) {
  2115. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2116. })
  2117. }
  2118. </Select>
  2119. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2120. </FormItem>
  2121. <FormItem className="half-item"
  2122. {...formItemLayout}
  2123. label="省-市-区"
  2124. >
  2125. <Cascader options={this.state.Area} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  2126. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  2127. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2128. </FormItem>
  2129. <FormItem className="half-item"
  2130. {...formItemLayout}
  2131. label="出生日期"
  2132. >
  2133. {!this.state.yearMonth?<MonthPicker placeholder="选择出生年月" value={this.state.yearMonth||null} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2134. :<MonthPicker value={moment(this.state.yearMonth, monthFormat)} format={monthFormat} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2135. }
  2136. </FormItem>
  2137. <FormItem className="half-item"
  2138. {...formItemLayout}
  2139. label="身份证号码"
  2140. >
  2141. <Input placeholder="身份证号码" value={this.state.idNumber} onChange={(e) => {
  2142. this.setState({ idNumber: e.target.value })}}/>
  2143. </FormItem>
  2144. <FormItem className="half-item"
  2145. {...formItemLayout}
  2146. label="主要联系人"
  2147. >
  2148. <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
  2149. this.setState({ contacts: e.target.value })}}/>
  2150. </FormItem>
  2151. <FormItem className="half-item"
  2152. {...formItemLayout}
  2153. label="主要联系人号码"
  2154. >
  2155. <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
  2156. this.setState({ contactMobile: e.target.value })}}/>
  2157. </FormItem>
  2158. <FormItem className="half-item"
  2159. {...formItemLayout}
  2160. label="职称名字"
  2161. >
  2162. <Input placeholder="职称名字" value={this.state.professionalTitle} onChange={(e) => {
  2163. this.setState({ professionalTitle: e.target.value })}}/>
  2164. </FormItem>
  2165. <FormItem className="half-item"
  2166. {...formItemLayout}
  2167. label="就业单位"
  2168. >
  2169. <Input placeholder="就业单位" value={this.state.workUnit} onChange={(e) => {
  2170. this.setState({ workUnit: e.target.value })}}/>
  2171. </FormItem>
  2172. <FormItem className="half-item"
  2173. {...formItemLayout}
  2174. label="学历"
  2175. >
  2176. <Input placeholder="学历" value={this.state.education} onChange={(e) => {
  2177. this.setState({ education: e.target.value })}}/>
  2178. </FormItem>
  2179. <FormItem className="half-item"
  2180. {...formItemLayout}
  2181. label="毕业院校"
  2182. >
  2183. <Input placeholder="学历" value={this.state.graduateSchool} onChange={(e) => {
  2184. this.setState({ graduateSchool: e.target.value })}}/>
  2185. </FormItem>
  2186. <FormItem className="half-item"
  2187. {...formItemLayout}
  2188. label="专业类别"
  2189. >
  2190. <Input placeholder="专业类别" value={this.state.majorCategory} onChange={(e) => {
  2191. this.setState({ majorCategory: e.target.value })}}/>
  2192. </FormItem>
  2193. <FormItem className="half-item"
  2194. {...formItemLayout}
  2195. label="职业资格"
  2196. >
  2197. <Input placeholder="职业资格" value={this.state.qualification} onChange={(e) => {
  2198. this.setState({ qualification: e.target.value })}}/>
  2199. </FormItem>
  2200. <FormItem className="half-item"
  2201. {...formItemLayout}
  2202. label="通信地址"
  2203. >
  2204. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  2205. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  2206. </FormItem>
  2207. <FormItem className="half-item"
  2208. {...formItemLayout}
  2209. label="固定电话"
  2210. >
  2211. <Input placeholder="客户固定电话" value={this.state.fixedTel}
  2212. onChange={(e) => { this.setState({ fixedTel: e.target.value }) }}/>
  2213. </FormItem>
  2214. <FormItem className="half-item"
  2215. {...formItemLayout}
  2216. label="客户QQ"
  2217. >
  2218. <Input placeholder="客户QQ" value={this.state.qq}
  2219. onChange={(e) => { this.setState({ qq: e.target.value })}}/>
  2220. </FormItem>
  2221. <FormItem className="half-item"
  2222. {...formItemLayout}
  2223. label="电子邮箱"
  2224. >
  2225. <Input placeholder="客户电子邮箱" value={this.state.email}
  2226. onChange={(e) => {this.setState({email: e.target.value })}}/>
  2227. </FormItem>
  2228. <FormItem className="half-item"
  2229. {...formItemLayout}
  2230. label="咨询费用"
  2231. >
  2232. <Input ref='consul' placeholder="输入数字且不超过6位" value={this.state.consultationPrice}
  2233. onChange={(e) => {this.setState({consultationPrice: e.target.value })}}/>
  2234. </FormItem>
  2235. <FormItem className="half-item"
  2236. {...formItemLayout}
  2237. label="实名认证"
  2238. >
  2239. <Select placeholder="实名认证"
  2240. value={this.state.auditStatus}
  2241. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  2242. {
  2243. auditStatusL.map(function (item) {
  2244. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2245. })
  2246. }
  2247. </Select>
  2248. </FormItem>
  2249. <div className='clearfix'>
  2250. <FormItem
  2251. labelCol={{ span: 4 }}
  2252. wrapperCol={{ span: 18 }}
  2253. label="客户简介" >
  2254. <Input type="textarea" rows={4} value={this.state.introduction}
  2255. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  2256. </FormItem>
  2257. </div>
  2258. <div className="clearfix">
  2259. <FormItem className="half-item"
  2260. {...formItemLayout}
  2261. label="业务认证"
  2262. >
  2263. <Radio.Group value={this.state.businessAudit} onChange={(e) => {
  2264. this.setState({ businessAudit: e.target.value })
  2265. }}>
  2266. <Radio value={0}>未认证</Radio>
  2267. <Radio value={1}>已认证</Radio>
  2268. </Radio.Group>
  2269. </FormItem>
  2270. <FormItem className="half-item"
  2271. {...formItemLayout}
  2272. label="国际化"
  2273. >
  2274. <Radio.Group value={this.state.international} onChange={(e) => {
  2275. this.setState({ international: e.target.value })
  2276. }}>
  2277. <Radio value={0}>否</Radio>
  2278. <Radio value={1}>是</Radio>
  2279. </Radio.Group>
  2280. </FormItem>
  2281. <FormItem className="half-item"
  2282. {...formItemLayout}
  2283. label="性别"
  2284. >
  2285. <Radio.Group value={this.state.sex} onChange={(e) => {
  2286. this.setState({sex:e.target.value})
  2287. }}>
  2288. <Radio value={'男'}>男</Radio>
  2289. <Radio value={'女'}>女</Radio>
  2290. </Radio.Group>
  2291. </FormItem>
  2292. </div>
  2293. <div className="clearfix pictures">
  2294. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2295. labelCol={{ span: 8 }}
  2296. wrapperCol={{ span: 10 }}
  2297. label="身份证正面" >
  2298. <PicturesWall
  2299. pictureSign="ID"
  2300. fileList={this.getPositiveIdUrl}
  2301. pictureUrl={this.state.positiveIdUrl} />
  2302. <p>建议:图片要清晰。</p>
  2303. </FormItem>
  2304. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2305. labelCol={{ span: 8 }}
  2306. wrapperCol={{ span: 10 }}
  2307. label="身份证反面" >
  2308. <PicturesWall
  2309. pictureSign="ID"
  2310. fileList={this.getOppositeIdUrl}
  2311. pictureUrl={this.state.oppositeIdUrl} />
  2312. <p>建议:图片要清晰。</p>
  2313. </FormItem>
  2314. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2315. labelCol={{ span: 8 }}
  2316. wrapperCol={{ span: 10 }}
  2317. label="客户照片" >
  2318. <PicturesWall
  2319. pictureSign="portrait"
  2320. fileList={this.getHeadPortraitUrl}
  2321. pictureUrl={this.state.headPortraitUrl} />
  2322. <p>建议:图片要清晰。</p>
  2323. </FormItem>
  2324. </div>
  2325. </div>
  2326. </Spin>
  2327. </Form>:
  2328. <Form horizontal id="demand-form">
  2329. <Spin spinning={this.state.loading}>
  2330. <div className="clearfix" >
  2331. <FormItem className="half-item"
  2332. {...formItemLayout}
  2333. label="客户姓名"
  2334. >
  2335. <span>{theInformation.identifyName}</span>
  2336. </FormItem>
  2337. </div>
  2338. <div className="clearfix" >
  2339. <FormItem className="half-item"
  2340. {...formItemLayout}
  2341. label="行业"
  2342. >
  2343. <span>{getIndustryType(this.state.industry)}</span>
  2344. </FormItem>
  2345. <FormItem className="half-item"
  2346. {...formItemLayout}
  2347. label="社会属性"
  2348. >
  2349. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  2350. </FormItem>
  2351. <FormItem className="half-item"
  2352. {...formItemLayout}
  2353. label="业务认证"
  2354. >
  2355. <span>{parseInt(this.state.businessAudit)?'已认证':'未认证'}</span>
  2356. </FormItem>
  2357. <FormItem className="half-item"
  2358. {...formItemLayout}
  2359. label="实名认证"
  2360. >
  2361. <span>{getAuditStatus(this.state.auditStatus)}</span>
  2362. </FormItem>
  2363. <FormItem className="half-item"
  2364. {...formItemLayout}
  2365. label="专家"
  2366. >
  2367. <span>{parseInt(this.state.expert)?'是':'否'}</span>
  2368. </FormItem>
  2369. <FormItem className="half-item"
  2370. {...formItemLayout}
  2371. label="明星"
  2372. >
  2373. <span>{parseInt(this.state.celebrity)?'是':'否'}</span>
  2374. </FormItem>
  2375. <FormItem className="half-item"
  2376. {...formItemLayout}
  2377. label="会员"
  2378. >
  2379. <span>{parseInt(this.state.isMember)?'是':'否'}</span>
  2380. </FormItem>
  2381. <FormItem className="half-item"
  2382. {...formItemLayout}
  2383. label="咨询师"
  2384. >
  2385. <span>{parseInt(this.state.consultant)?'是':'否'}</span>
  2386. </FormItem>
  2387. <FormItem className="half-item"
  2388. {...formItemLayout}
  2389. label="国际化"
  2390. >
  2391. <span>{parseInt(this.state.international)?'是':'否'}</span>
  2392. </FormItem>
  2393. <FormItem className="half-item"
  2394. {...formItemLayout}
  2395. label="性别"
  2396. >
  2397. <span>{this.state.sex}</span>
  2398. </FormItem>
  2399. <FormItem className="half-item"
  2400. {...formItemLayout}
  2401. label="出生日期"
  2402. >
  2403. <span>{this.state.yearMonth}</span>
  2404. </FormItem>
  2405. <FormItem className="half-item"
  2406. {...formItemLayout}
  2407. label="身份证号码"
  2408. >
  2409. <span>{theInformation.legalPersonIdCard}</span>
  2410. </FormItem>
  2411. <FormItem className="half-item"
  2412. {...formItemLayout}
  2413. label="主要联系人"
  2414. >
  2415. <span>{theInformation.contacts}</span>
  2416. </FormItem>
  2417. <FormItem className="half-item"
  2418. {...formItemLayout}
  2419. label="主要联系人号码"
  2420. >
  2421. <span>{theInformation.contactMobile}</span>
  2422. </FormItem>
  2423. <FormItem className="half-item"
  2424. {...formItemLayout}
  2425. label="省-市-区"
  2426. >
  2427. <span>{this.state.proviceCityArea}</span>
  2428. </FormItem>
  2429. <FormItem className="half-item"
  2430. {...formItemLayout}
  2431. label="投资机构"
  2432. >
  2433. <span>{this.state.investment?'是':'否'}</span>
  2434. </FormItem>
  2435. <FormItem className="half-item"
  2436. {...formItemLayout}
  2437. label="职称名字"
  2438. >
  2439. <span>{this.state.professionalTitle}</span>
  2440. </FormItem>
  2441. <FormItem className="half-item"
  2442. {...formItemLayout}
  2443. label="就业单位"
  2444. >
  2445. <span>{this.state.workUnit}</span>
  2446. </FormItem>
  2447. <FormItem className="half-item"
  2448. {...formItemLayout}
  2449. label="学历"
  2450. >
  2451. <span>{this.state.education}</span>
  2452. </FormItem>
  2453. <FormItem className="half-item"
  2454. {...formItemLayout}
  2455. label="毕业院校"
  2456. >
  2457. <span>{this.state.graduateSchool}</span>
  2458. </FormItem>
  2459. <FormItem className="half-item"
  2460. {...formItemLayout}
  2461. label="专业类别"
  2462. >
  2463. <span>{this.state.majorCategory}</span>
  2464. </FormItem>
  2465. <FormItem className="half-item"
  2466. {...formItemLayout}
  2467. label="职业资格"
  2468. >
  2469. <span>{this.state.qualification}</span>
  2470. </FormItem>
  2471. <FormItem className="half-item"
  2472. {...formItemLayout}
  2473. label="通信地址"
  2474. >
  2475. <span>{theInformation.postalAddress}</span>
  2476. </FormItem>
  2477. <FormItem className="half-item"
  2478. {...formItemLayout}
  2479. label="手机号码"
  2480. >
  2481. <span>{theInformation.modile}</span>
  2482. </FormItem>
  2483. <FormItem className="half-item"
  2484. {...formItemLayout}
  2485. label="客户传真"
  2486. >
  2487. <span>{theInformation.contactsFax}</span>
  2488. </FormItem>
  2489. <FormItem className="half-item"
  2490. {...formItemLayout}
  2491. label="固定电话"
  2492. >
  2493. <span>{theInformation.contactsFixedTel}</span>
  2494. </FormItem>
  2495. <FormItem className="half-item"
  2496. {...formItemLayout}
  2497. label="客户QQ"
  2498. >
  2499. <span>{theInformation.qq}</span>
  2500. </FormItem>
  2501. <FormItem className="half-item"
  2502. {...formItemLayout}
  2503. label="电子邮箱"
  2504. >
  2505. <span>{theInformation.email}</span>
  2506. </FormItem>
  2507. <FormItem className="half-item"
  2508. {...formItemLayout}
  2509. label="咨询费用"
  2510. >
  2511. <span>{theInformation.consultationPrice}</span>
  2512. </FormItem>
  2513. <div className='clearfix'>
  2514. <FormItem
  2515. labelCol={{ span: 4 }}
  2516. wrapperCol={{ span: 18 }}
  2517. label="客户简介" >
  2518. <span>{theInformation.introduction}</span>
  2519. </FormItem>
  2520. </div>
  2521. <div className="clearfix pictures">
  2522. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2523. labelCol={{ span: 8 }}
  2524. wrapperCol={{ span: 10 }}
  2525. label="身份证正面" >
  2526. <div className="clearfix">
  2527. <Upload className="demandDetailShow-upload"
  2528. listType="picture-card"
  2529. fileList={this.state.orgCodeUrl}
  2530. onPreview={(file) => {
  2531. this.setState({
  2532. previewImage: file.url || file.thumbUrl,
  2533. previewVisible: true,
  2534. });
  2535. }} >
  2536. </Upload>
  2537. <Modal maskClosable={false} footer={null}
  2538. visible={this.state.previewVisible}
  2539. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2540. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  2541. </Modal>
  2542. </div>
  2543. </FormItem>
  2544. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2545. labelCol={{ span: 8 }}
  2546. wrapperCol={{ span: 10 }}
  2547. label="身份证反面" >
  2548. <div className="clearfix">
  2549. <Upload className="demandDetailShow-upload"
  2550. listType="picture-card"
  2551. fileList={this.state.companyLogoUrl}
  2552. onPreview={(file) => {
  2553. this.setState({
  2554. previewImage: file.url || file.thumbUrl,
  2555. previewVisible: true,
  2556. });
  2557. }} >
  2558. </Upload>
  2559. <Modal maskClosable={false} footer={null}
  2560. visible={this.state.previewVisible}
  2561. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2562. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  2563. </Modal>
  2564. </div>
  2565. </FormItem>
  2566. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2567. labelCol={{ span: 8 }}
  2568. wrapperCol={{ span: 10 }}
  2569. label="客户照片" >
  2570. <div className="clearfix">
  2571. <Upload className="demandDetailShow-upload"
  2572. listType="picture-card"
  2573. fileList={this.state.companyLogoUrls}
  2574. onPreview={(file) => {
  2575. this.setState({
  2576. previewImage: file.url || file.thumbUrl,
  2577. previewVisible: true,
  2578. });
  2579. }} >
  2580. </Upload>
  2581. <Modal maskClosable={false} footer={null}
  2582. visible={this.state.previewVisible}
  2583. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2584. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrls || ''} />
  2585. </Modal>
  2586. </div>
  2587. </FormItem>
  2588. </div>
  2589. </div>
  2590. </Spin>
  2591. </Form>
  2592. }
  2593. </TabPane>
  2594. <TabPane tab="联系人信息" key="2">
  2595. <div className="clearfix" style={{display:adminData.isSuperAdmin?'block':'none'}}>
  2596. <Button className="ContactsList" type="primary" onClick={this.addcontact}>新增</Button>
  2597. </div>
  2598. <div className="clearfix">
  2599. <Spin spinning={this.state.loading}>
  2600. <Form horizontal id="demand-form" onSubmit={this.contactSave} >
  2601. <Table
  2602. pagination={false}
  2603. columns={this.state.ContactsLists}
  2604. dataSource={this.state.contactList}
  2605. />
  2606. </Form>
  2607. </Spin>
  2608. </div>
  2609. </TabPane>
  2610. <TabPane tab="账户信息" key="3">
  2611. <div className="clearfix">
  2612. {adminData.isSuperAdmin?<Form horizontal id="demand-form" onSubmit={this.accountSave} >
  2613. <Spin spinning={this.state.loading} >
  2614. <FormItem className="half-item"
  2615. {...formItemLayout}
  2616. label="注册手机号" >
  2617. <Input value={this.state.mobile} disabled
  2618. onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  2619. <Button onClick={this.modifyPassworld}>修改密码</Button>
  2620. </FormItem>
  2621. <FormItem className="half-item"
  2622. {...formItemLayout}
  2623. label="注册用户名" >
  2624. <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
  2625. </FormItem>
  2626. <FormItem className="half-item"
  2627. {...formItemLayout}
  2628. label="注册邮箱" >
  2629. <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
  2630. </FormItem>
  2631. <div className="clearfix">
  2632. <FormItem className="half-item"
  2633. {...formItemLayout}
  2634. label="客户来源" >
  2635. <span>{this.state.source}</span>
  2636. </FormItem>
  2637. <FormItem className="half-item"
  2638. {...formItemLayout}
  2639. label="客户类型" >
  2640. <span>{this.state.type}</span>
  2641. </FormItem>
  2642. <FormItem className="half-item"
  2643. {...formItemLayout}
  2644. label="创建时间" >
  2645. <span>{this.state.createTimes}</span>
  2646. </FormItem>
  2647. <FormItem className="half-item"
  2648. {...formItemLayout}
  2649. label="账户状态"
  2650. >
  2651. <Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  2652. {
  2653. statuslist.map(function (item) {
  2654. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2655. })
  2656. }
  2657. </Select>
  2658. </FormItem>
  2659. </div>
  2660. <div className="clearfix">
  2661. <FormItem className="half-item"
  2662. {...formItemLayout}
  2663. label="会员"
  2664. >
  2665. <Radio.Group value={this.state.isMember} onChange={(e) => {
  2666. this.setState({ isMember: e.target.value })
  2667. }}>
  2668. <Radio value={0}>否</Radio>
  2669. <Radio value={1}>是</Radio>
  2670. </Radio.Group>
  2671. </FormItem>
  2672. <FormItem className="half-item"
  2673. {...formItemLayout}
  2674. label="会员等级"
  2675. >
  2676. <Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  2677. {
  2678. lvl.map(function (item) {
  2679. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2680. })
  2681. }
  2682. </Select>
  2683. </FormItem>
  2684. <FormItem className="half-item"
  2685. {...formItemLayout}
  2686. label="会员状态"
  2687. >
  2688. <Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  2689. {
  2690. currentMember.map(function (item) {
  2691. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2692. })
  2693. }
  2694. </Select>
  2695. </FormItem>
  2696. </div>
  2697. </Spin>
  2698. </Form> :
  2699. <Form horizontal id="demand-form" >
  2700. <Spin spinning={this.state.loading} >
  2701. <FormItem className="half-item"
  2702. {...formItemLayout}
  2703. label="注册手机号" >
  2704. <span>{this.state.mobile}</span>
  2705. </FormItem>
  2706. <FormItem className="half-item"
  2707. {...formItemLayout}
  2708. label="注册用户名" >
  2709. <span>{this.state.nickname}</span>
  2710. </FormItem>
  2711. <FormItem className="half-item"
  2712. {...formItemLayout}
  2713. label="注册邮箱" >
  2714. <span>{this.state.email}</span>
  2715. </FormItem>
  2716. <div className="clearfix">
  2717. <FormItem className="half-item"
  2718. {...formItemLayout}
  2719. label="客户来源" >
  2720. <span>{this.state.source}</span>
  2721. </FormItem>
  2722. <FormItem className="half-item"
  2723. {...formItemLayout}
  2724. label="客户类型" >
  2725. <span>{this.state.type}</span>
  2726. </FormItem>
  2727. <FormItem className="half-item"
  2728. {...formItemLayout}
  2729. label="创建时间" >
  2730. <span>{this.state.createTimes}</span>
  2731. </FormItem>
  2732. <FormItem className="half-item"
  2733. {...formItemLayout}
  2734. label="账户状态"
  2735. >
  2736. <span>{getStatuslist(this.state.status)}</span>
  2737. </FormItem>
  2738. </div>
  2739. <div className="clearfix">
  2740. <FormItem className="half-item"
  2741. {...formItemLayout}
  2742. label="专家"
  2743. >
  2744. <span>{this.state.isMembers?'是':'否'}</span>
  2745. </FormItem>
  2746. <FormItem className="half-item"
  2747. {...formItemLayout}
  2748. label="明星"
  2749. >
  2750. <span>{this.state.star?'是':'否'}</span>
  2751. </FormItem>
  2752. <FormItem className="half-item"
  2753. {...formItemLayout}
  2754. label="会员"
  2755. >
  2756. <span>{this.state.isMember?'是':'否'}</span>
  2757. </FormItem>
  2758. <FormItem className="half-item"
  2759. {...formItemLayout}
  2760. label="会员等级"
  2761. >
  2762. <span>{getLvl(this.state.lvl)}</span>
  2763. </FormItem>
  2764. <FormItem className="half-item"
  2765. {...formItemLayout}
  2766. label="会员状态"
  2767. >
  2768. <span>{getCurrentMember(this.state.currentMemberStatus)}</span>
  2769. </FormItem>
  2770. </div>
  2771. <FormItem className="half-item"
  2772. {...formItemLayout}
  2773. label="业务认证"
  2774. >
  2775. <span>{this.state.serviceCertification?'已认证':'未认证'}</span>
  2776. </FormItem>
  2777. <FormItem className="half-item"
  2778. {...formItemLayout}
  2779. label="实名认证"
  2780. >
  2781. <span>{getAuditStatus(this.state.userCertification)}</span>
  2782. </FormItem>
  2783. </Spin>
  2784. </Form>
  2785. }
  2786. </div>
  2787. </TabPane>
  2788. <TabPane tab="客户拜访" key="4">
  2789. <div className="clearfix">
  2790. <Spin spinning={this.state.loading}>
  2791. <Table
  2792. pagination={false}
  2793. columns={this.state.visitsList}
  2794. dataSource={this.state.visitArrList}
  2795. onRowClick={this.VisitRowClick}
  2796. />
  2797. </Spin>
  2798. </div>
  2799. </TabPane>
  2800. <TabPane tab="业务意向" key="5">
  2801. <div className="clearfix">
  2802. <Spin spinning={this.state.loading}>
  2803. <Table
  2804. pagination={this.state.paginationt}
  2805. columns={this.state.businessIntentionList}
  2806. dataSource={this.state.dataBusiness}
  2807. />
  2808. </Spin>
  2809. </div>
  2810. </TabPane>
  2811. <TabPane tab="业务订单" key="6">
  2812. </TabPane>
  2813. <TabPane tab="技术需求" key="7">
  2814. </TabPane>
  2815. <TabPane tab="技术成果" key="8">
  2816. </TabPane>
  2817. <TabPane tab="技术专家" key="9">
  2818. </TabPane>
  2819. </Tabs>
  2820. </Modal>
  2821. <Modal
  2822. className="customeDetails"
  2823. footer=''
  2824. title="拜访详情"
  2825. width='1000px'
  2826. visible={this.state.visitModul}
  2827. onOk={this.visitOk}
  2828. onCancel={this.visitCancel}
  2829. >
  2830. <Form horizontal id="demand-form" onSubmit={this.visitSubmit}>
  2831. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  2832. <div className="clearfix">
  2833. <FormItem className="half-item"
  2834. {...formItemLayout}
  2835. label="拜访方式" >
  2836. <Radio.Group value={this.state.contactType} onChange={(e) => {
  2837. this.setState({ contactType: e.target.value })
  2838. }}>
  2839. <Radio value={0}>外出</Radio>
  2840. <Radio value={1}>电话</Radio>
  2841. <Radio value={2}>QQ</Radio>
  2842. <Radio value={3}>微信</Radio>
  2843. <Radio value={4}>邮箱</Radio>
  2844. </Radio.Group>
  2845. </FormItem>
  2846. <FormItem className="half-item"
  2847. {...formItemLayout}
  2848. >
  2849. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  2850. </FormItem>
  2851. <div className="clearfix">
  2852. <FormItem className="half-item"
  2853. {...formItemLayout}
  2854. label="客户姓名"
  2855. >
  2856. <span>{this.state.identifyName}</span>
  2857. </FormItem>
  2858. <FormItem className="half-item"
  2859. {...formItemLayout}
  2860. label="拜访人"
  2861. >
  2862. <span>{this.state.adminName}</span>
  2863. </FormItem>
  2864. <FormItem className="half-item"
  2865. {...formItemLayout}
  2866. label="当前联系人"
  2867. >
  2868. <span>{this.state.contacts}</span>
  2869. </FormItem>
  2870. {this.state.contacts?<span></span>:
  2871. <FormItem className="half-item"
  2872. {...formItemLayout}
  2873. label="联系人"
  2874. >
  2875. <Select placeholder="选择联系人" style={{ width: 140 }}
  2876. value={this.state.lastName}
  2877. onChange={this.hundleName}>
  2878. {this.state.orderStatusOption}
  2879. </Select>
  2880. </FormItem>
  2881. }
  2882. <FormItem className="half-item"
  2883. {...formItemLayout}
  2884. label="拜访时间"
  2885. >
  2886. <span>{this.state.followTime}</span>
  2887. </FormItem>
  2888. <FormItem className="half-item"
  2889. {...formItemLayout}
  2890. label="联系电话"
  2891. >
  2892. <span>{this.state.nub}</span>
  2893. </FormItem>
  2894. </div>
  2895. <div className="clearfix">
  2896. <FormItem
  2897. labelCol={{ span: 4 }}
  2898. wrapperCol={{ span: 16 }}
  2899. label="拜访备注" >
  2900. <Input type="textarea" rows={4} value={this.state.result}
  2901. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  2902. </FormItem>
  2903. </div>
  2904. <div className="clearfix">
  2905. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  2906. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2907. <Spin spinning={this.state.loading}>
  2908. <Table
  2909. rowKey={record => record.id}
  2910. pagination={false}
  2911. columns={this.state.intentionList}
  2912. dataSource={this.state.data}
  2913. />
  2914. </Spin>
  2915. </div>
  2916. </div>
  2917. </div>
  2918. </Spin>:<Spin spinning={this.state.loading}>
  2919. <div className="clearfix">
  2920. <FormItem className="half-item"
  2921. {...formItemLayout}
  2922. label="拜访方式" >
  2923. <span>{getContactType(String(this.state.contactType))}</span>
  2924. </FormItem>
  2925. <div className="clearfix">
  2926. <FormItem className="half-item"
  2927. {...formItemLayout}
  2928. label="客户姓名"
  2929. >
  2930. <span>{this.state.identifyName}</span>
  2931. </FormItem>
  2932. <FormItem className="half-item"
  2933. {...formItemLayout}
  2934. label="拜访人"
  2935. >
  2936. <span>{this.state.adminName}</span>
  2937. </FormItem>
  2938. <FormItem className="half-item"
  2939. {...formItemLayout}
  2940. label="当前联系人"
  2941. >
  2942. <span>{this.state.contacts}</span>
  2943. </FormItem>
  2944. <FormItem className="half-item"
  2945. {...formItemLayout}
  2946. label="拜访时间"
  2947. >
  2948. <span>{this.state.followTime}</span>
  2949. </FormItem>
  2950. <FormItem className="half-item"
  2951. {...formItemLayout}
  2952. label="联系电话"
  2953. >
  2954. <span>{this.state.nub}</span>
  2955. </FormItem>
  2956. </div>
  2957. <div className="clearfix">
  2958. <FormItem
  2959. labelCol={{ span: 4 }}
  2960. wrapperCol={{ span: 16 }}
  2961. label="拜访备注" >
  2962. <span>{this.state.result}</span>
  2963. </FormItem>
  2964. </div>
  2965. <div className="clearfix">
  2966. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2967. <Spin spinning={this.state.loading}>
  2968. <Table
  2969. rowKey={record => record.id}
  2970. pagination={false}
  2971. columns={this.state.intentionList}
  2972. dataSource={this.state.data}
  2973. />
  2974. </Spin>
  2975. </div>
  2976. </div>
  2977. </div>
  2978. </Spin>}
  2979. </Form>
  2980. </Modal>
  2981. <Modal
  2982. footer=''
  2983. title="修改密码"
  2984. width='600px'
  2985. visible={this.state.passworldModul}
  2986. onOk={this.passworldOk}
  2987. onCancel={this.passworldCancel}
  2988. >
  2989. <div className="clearfix">
  2990. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  2991. <Spin spinning={this.state.loading}>
  2992. <div className="clearfix">
  2993. <FormItem className="half-item"
  2994. {...formItemLayout}
  2995. label="原密码" >
  2996. <Input type="password" value={this.state.companyNamet1} onChange={(e) => { this.setState({ companyNamet1: e.target.value }); }} required="required" />
  2997. </FormItem>
  2998. </div>
  2999. <div className="clearfix">
  3000. <FormItem className="half-item"
  3001. {...formItemLayout}
  3002. label="新密码" >
  3003. <Input type="password" value={this.state.companyName1} onChange={(e) => { this.setState({ companyName1: e.target.value }); }} required="required" />
  3004. </FormItem>
  3005. </div>
  3006. <div className="clearfix">
  3007. <FormItem className="half-item"
  3008. {...formItemLayout}
  3009. label="确认密码" >
  3010. <Input type="password" value={this.state.companyNam1} onChange={(e) => { this.setState({ companyNam1: e.target.value }); }} required="required" />
  3011. </FormItem>
  3012. </div>
  3013. </Spin>
  3014. </Form>
  3015. </div>
  3016. </Modal>
  3017. <Modal
  3018. footer=''
  3019. width='800px'
  3020. title="新增联系人"
  3021. visible={this.state.addcontactModul}
  3022. onOk={this.addcontactModulOK}
  3023. onCancel={this.addcontactModulcancel}
  3024. >
  3025. <Form horizontal onSubmit={this.submitcontactman} id="demand-form">
  3026. <Spin spinning={this.state.loading}>
  3027. <Row>
  3028. <FormItem
  3029. labelCol={{ span: 3 }}
  3030. wrapperCol={{ span: 14 }}
  3031. label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
  3032. <Radio.Group value={this.state.newsex} onChange={(e) => {
  3033. this.setState({ newsex: e.target.value })
  3034. }}>
  3035. <Radio value='男'>男</Radio>
  3036. <Radio value='女'>女</Radio>
  3037. </Radio.Group>
  3038. </FormItem>
  3039. </Row>
  3040. <Row style={{ paddingLeft:'50px' }}>
  3041. <Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>
  3042. <Col span={8}>
  3043. <Input value={this.state.newname} required="required"
  3044. onChange={(e) => { this.setState({ newname: e.target.value }) }} />
  3045. </Col>
  3046. <Col span={2} style={{ marginLeft: '50px' }}><span style={{color:'red'}}>*</span>手机:</Col>
  3047. <Col span={8}>
  3048. <Input value={this.state.newmobile} required="required"
  3049. onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />
  3050. </Col>
  3051. </Row>
  3052. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3053. <Col span={2}>微信:</Col>
  3054. <Col span={8}>
  3055. <Input value={this.state.newwechat}
  3056. onChange={(e) => { this.setState({ newwechat: e.target.value }) }} />
  3057. </Col>
  3058. <Col span={2} style={{ marginLeft: '50px' }}>Q Q:</Col>
  3059. <Col span={8}>
  3060. <Input value={this.state.newqq}
  3061. onChange={(e) => { this.setState({ newqq: e.target.value }) }} />
  3062. </Col>
  3063. </Row>
  3064. <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
  3065. <Col span={2}>部门:</Col>
  3066. <Col span={8}>
  3067. <Input value={this.state.newdepatrment}
  3068. onChange={(e) => { this.setState({ newdepatrment: e.target.value }) }} />
  3069. </Col>
  3070. <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
  3071. <Col span={8}>
  3072. <Input value={this.state.newposition}
  3073. onChange={(e) => { this.setState({ newposition: e.target.value }) }} />
  3074. </Col>
  3075. </Row>
  3076. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3077. <Col span={2}>邮箱:</Col>
  3078. <Col span={8}>
  3079. <Input value={this.state.newemail}
  3080. onChange={(e) => { this.setState({ newemail: e.target.value }) }} />
  3081. </Col>
  3082. </Row>
  3083. <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
  3084. </Row>
  3085. </Spin>
  3086. </Form>
  3087. </Modal>
  3088. <Modal
  3089. footer=''
  3090. title="业务意向详情"
  3091. width='1000px'
  3092. visible={this.state.businessModul}
  3093. onOk={this.businessIntentionOk}
  3094. onCancel={this.businessIntentionCancel}
  3095. >
  3096. <div className="clearfix">
  3097. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3098. <Spin spinning={this.state.loading}>
  3099. <div className="clearfix">
  3100. <FormItem className="half-item"
  3101. {...formItemLayout}
  3102. label="意向业务名称" >
  3103. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  3104. </FormItem>
  3105. <FormItem className="half-item"
  3106. {...formItemLayout}
  3107. label="意向时间" >
  3108. <span>{this.state.createTime}</span>
  3109. </FormItem>
  3110. <FormItem className="half-item"
  3111. {...formItemLayout}
  3112. label="客户姓名" >
  3113. <span>{this.state.identifyName}</span>
  3114. </FormItem>
  3115. <FormItem className="half-item"
  3116. {...formItemLayout}
  3117. label="营销员" >
  3118. <span>{this.state.adminName}</span>
  3119. </FormItem>
  3120. <FormItem className="half-item"
  3121. {...formItemLayout}
  3122. label="意向业务进度" >
  3123. <span>{getfllowSituation(this.state.followSituation)}</span>
  3124. </FormItem>
  3125. <FormItem className="half-item"
  3126. {...formItemLayout}
  3127. label="业务客户状态" >
  3128. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  3129. </FormItem>
  3130. </div>
  3131. <div className="clearfix">
  3132. <FormItem className="half-item"
  3133. {...formItemLayout}
  3134. label="业务意向说明" >
  3135. <span>{this.state.remarks}</span>
  3136. </FormItem>
  3137. </div>
  3138. <div className="clearfix">
  3139. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  3140. <div className="clearfix">
  3141. <Spin spinning={this.state.loading}>
  3142. <Table
  3143. pagination={this.state.paginations}
  3144. columns={this.state.businessFollowList}
  3145. dataSource={this.state.visitArrList}
  3146. />
  3147. </Spin>
  3148. </div>
  3149. </div>
  3150. </Spin>
  3151. </Form>
  3152. </div>
  3153. </Modal>
  3154. <Modal
  3155. footer=''
  3156. title="业务跟进详情"
  3157. width='600px'
  3158. visible={this.state.businessFollowModul}
  3159. onOk={this.businessFollowOk}
  3160. onCancel={this.businessFollowCancel}
  3161. >
  3162. <div className="clearfix">
  3163. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3164. <Spin spinning={this.state.loading}>
  3165. <div className="clearfix">
  3166. <FormItem className="half-item"
  3167. {...formItemLayout}
  3168. label="意向业务名称" >
  3169. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  3170. </FormItem>
  3171. <FormItem className="half-item"
  3172. {...formItemLayout}
  3173. label="意向时间" >
  3174. <span>{this.state.createTimes}</span>
  3175. </FormItem>
  3176. <FormItem className="half-item"
  3177. {...formItemLayout}
  3178. label="客户姓名" >
  3179. <span>{this.state.identifyNames}</span>
  3180. </FormItem>
  3181. <FormItem className="half-item"
  3182. {...formItemLayout}
  3183. label="营销员" >
  3184. <span>{this.state.adminNames}</span>
  3185. </FormItem>
  3186. <FormItem className="half-item"
  3187. {...formItemLayout}
  3188. label="意向业务进度" >
  3189. <span>{getfllowSituation(this.state.followSituations)}</span>
  3190. </FormItem>
  3191. <FormItem className="half-item"
  3192. {...formItemLayout}
  3193. label="业务客户状态" >
  3194. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  3195. </FormItem>
  3196. </div>
  3197. <div className="clearfix">
  3198. <FormItem className="half-item"
  3199. {...formItemLayout}
  3200. label="业务意向说明" >
  3201. <span>{this.state.remarkss}</span>
  3202. </FormItem>
  3203. </div>
  3204. <div className="clearfix">
  3205. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  3206. <FormItem className="half-item"
  3207. {...formItemLayout}
  3208. label="拜访方式" >
  3209. <span>{getContactType(this.state.contactTypes)}</span>
  3210. </FormItem>
  3211. <FormItem className="half-item"
  3212. {...formItemLayout}
  3213. label="联系人" >
  3214. <span>{this.state.contactss}</span>
  3215. </FormItem>
  3216. <FormItem className="half-item"
  3217. {...formItemLayout}
  3218. label="联系电话" >
  3219. <span>{this.state.contactMobiles}</span>
  3220. </FormItem>
  3221. <FormItem className="half-item"
  3222. {...formItemLayout}
  3223. label="拜访时间" >
  3224. <span>{this.state.followTimes}</span>
  3225. </FormItem>
  3226. <FormItem className="half-item"
  3227. {...formItemLayout}
  3228. label="拜访人" >
  3229. <span>{this.state.adminNames}</span>
  3230. </FormItem>
  3231. <div className="clearfix">
  3232. <FormItem className="half-item"
  3233. {...formItemLayout}
  3234. label="拜访备注" >
  3235. <span>{this.state.results}</span>
  3236. </FormItem>
  3237. </div>
  3238. </div>
  3239. </Spin>
  3240. </Form>
  3241. </div>
  3242. </Modal>
  3243. </div >
  3244. );
  3245. }
  3246. }));
  3247. export default QueryCustomer;