queryCustomer.jsx 122 KB

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