expertRelease.jsx 124 KB

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