expertRelease.jsx 123 KB

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