queryCustomer.jsx 127 KB

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