queryCustomer.jsx 127 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334
  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. selectedRowKeys: [],
  950. rowId: record.id,
  951. })
  952. },
  953. VisitRowClick(record, index) {
  954. this.state.keys = false;
  955. this.state.RowData = record;
  956. this.visitModify(record.followId);
  957. this.setState({
  958. selectedRowKeys: [],
  959. delectId: record.followId,
  960. })
  961. },
  962. //基本信息提交
  963. newSubmit(e) {
  964. e.preventDefault();
  965. if(!this.state.industry) {
  966. message.warning('请选择行业');
  967. return false;
  968. };
  969. if(!this.state.societyTag) {
  970. message.warning('请选择社会性质');
  971. return false;
  972. };
  973. if(!this.state.ProvinceCity[1]) {
  974. message.warning('请选择地区');
  975. return false;
  976. };
  977. var reg=/^[1-9]\d*$|^0$/;
  978. if(this.state.consultationPrice){
  979. if(this.state.consultationPrice.length>6) {
  980. message.warning('咨询费用不超过6位数');
  981. this.refs.consul.focus();
  982. return false;
  983. };
  984. if(!reg.test(this.state.consultationPrice)){
  985. message.warning('咨询费用只能输入数字 ');
  986. this.refs.consul.focus();
  987. return false;
  988. }
  989. }
  990. this.setState({
  991. selectedRowKeys: [],
  992. });
  993. this.props.form.validateFields((err, values) => {
  994. let theorgCodeUrl = [];
  995. if(this.state.headPortraitUrl.length) {
  996. let picArr = [];
  997. this.state.headPortraitUrl.map(function(item) {
  998. if ( item.response && item.response.data && item.response.data.length ){
  999. picArr.push(item.response.data);
  1000. }
  1001. });
  1002. theorgCodeUrl = picArr.join(",");
  1003. };
  1004. let thecompanyLogoUrl = [];
  1005. if(this.state.positiveIdUrl.length) {
  1006. let picArr = [];
  1007. this.state.positiveIdUrl.map(function(item) {
  1008. if ( item.response && item.response.data && item.response.data.length ){
  1009. picArr.push(item.response.data);
  1010. }
  1011. });
  1012. thecompanyLogoUrl = picArr.join(",");
  1013. };
  1014. let thecompanyLogoUrls = [];
  1015. if(this.state.oppositeIdUrl.length) {
  1016. let picArr = [];
  1017. this.state.oppositeIdUrl.map(function(item) {
  1018. if ( item.response && item.response.data && item.response.data.length ){
  1019. picArr.push(item.response.data);
  1020. }
  1021. });
  1022. thecompanyLogoUrls = picArr.join(",");
  1023. };
  1024. if(!err) {
  1025. let years = [];
  1026. let yearMonth = new Date(this.state.yearMonth).toLocaleDateString();
  1027. years = yearMonth.split('/');
  1028. this.setState({
  1029. loading: true
  1030. });
  1031. $.ajax({
  1032. method: "post",
  1033. dataType: "json",
  1034. url: globalConfig.context + '/api/admin/customer/updatePersonalCustomer',
  1035. data: {
  1036. id: this.state.InformationId,
  1037. uid: this.state.InformationUid,
  1038. societyTag: this.state.societyTag,
  1039. identifyName: this.state.identifyName,
  1040. industry: this.state.industry,
  1041. dateOfBirthYear: years[0], //出生年
  1042. dateOfBirthMonth: years[1], //出生月
  1043. province: (this.state.ProvinceCity)[0], //省-
  1044. city: (this.state.ProvinceCity)[1], //市
  1045. area: (this.state.ProvinceCity)[2], //区
  1046. sex: this.state.sex,
  1047. expert: this.state.expert,
  1048. celebrity: this.state.celebrity,
  1049. international: this.state.international,
  1050. fixedTel: this.state.fixedTel,
  1051. consultationPrice: this.state.consultationPrice,
  1052. qq: this.state.qq,
  1053. contacts: this.state.contacts,
  1054. contactMobile: this.state.contactMobile,
  1055. idNumber: this.state.idNumber,
  1056. email: this.state.email,
  1057. isMember: this.state.isMember,
  1058. consultant: this.state.consultant,
  1059. postalAddress: this.state.postalAddress,
  1060. introduction: this.state.introduction,
  1061. positiveIdUrl: thecompanyLogoUrl,
  1062. oppositeIdUrl: thecompanyLogoUrls,
  1063. headPortraitUrl: theorgCodeUrl,
  1064. investment: this.state.investment,
  1065. professionalTitle: this.state.professionalTitle,
  1066. workUnit: this.state.workUnit,
  1067. education: this.state.education,
  1068. graduateSchool: this.state.graduateSchool,
  1069. majorCategory: this.state.majorCategory,
  1070. qualification: this.state.qualification,
  1071. businessAudit:this.state.businessAudit,
  1072. auditStatus:this.state.auditStatus
  1073. }
  1074. }).done(function(data) {
  1075. this.setState({
  1076. loading: false
  1077. });
  1078. if(!data.error.length) {
  1079. message.success('保存成功!');
  1080. this.detailsModal()
  1081. this.loadData();
  1082. } else {
  1083. message.warning(data.error[0].message);
  1084. }
  1085. }.bind(this));
  1086. }
  1087. })
  1088. },
  1089. //点击整行查看详情
  1090. //查看基本详情基本信息
  1091. loadInformation(record) {
  1092. this.RowClick;
  1093. $.ajax({
  1094. method: "get",
  1095. dataType: "json",
  1096. crossDomain: false,
  1097. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  1098. data: {
  1099. uid: record
  1100. },
  1101. success: function(data) {
  1102. let thisData = data.data;
  1103. if(!thisData) {
  1104. if(data.error && data.error.length) {
  1105. message.warning(data.error[0].message);
  1106. };
  1107. thisData = {};
  1108. };
  1109. let ProvinceCityArr = [];
  1110. let ProvinceS = thisData.province; //getprovince
  1111. let citys = thisData.city;
  1112. let Areas = thisData.area;
  1113. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1114. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  1115. let month = thisData.dateOfBirthYear ? thisData.dateOfBirthYear + '/' + thisData.dateOfBirthMonth : false;
  1116. this.setState({
  1117. proviceCityArea: ProvinceS ? cityArea : '',
  1118. InformationId: thisData.id,
  1119. InformationUid: thisData.uid,
  1120. identifyName: thisData.identifyName,
  1121. listed: thisData.listed,
  1122. highTechZone: thisData.highTechZone,
  1123. consultant: thisData.consultant,
  1124. headPortraitUrl: thisData.headPortraitUrl ? splitUrl(thisData.headPortraitUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1125. positiveIdUrl: thisData.positiveIdUrl ? splitUrl(thisData.positiveIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1126. oppositeIdUrl: thisData.oppositeIdUrl ? splitUrl(thisData.oppositeIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1127. dataInformation: thisData,
  1128. idNumber: thisData.idNumber,
  1129. ProvinceCity: ProvinceCityArr,
  1130. industry: String(thisData.industry),
  1131. societyTag: thisData.societyTag,
  1132. sex: thisData.sex,
  1133. contacts: thisData.contacts,
  1134. contactMobile: thisData.contactMobile,
  1135. yearMonth: month,
  1136. postalAddress: thisData.postalAddress,
  1137. fixedTel: thisData.fixedTel,
  1138. consultationPrice: thisData.consultationPrice,
  1139. email: thisData.email,
  1140. qq: thisData.qq,
  1141. introduction: thisData.introduction,
  1142. expert: thisData.expert,
  1143. celebrity: thisData.celebrity,
  1144. international: thisData.international,
  1145. investment: thisData.investment,
  1146. professionalTitle: thisData.professionalTitle,
  1147. workUnit: thisData.workUnit,
  1148. education: thisData.education,
  1149. graduateSchool: thisData.graduateSchool,
  1150. majorCategory: thisData.majorCategory,
  1151. qualification: thisData.qualification,
  1152. businessAudit:thisData.businessAudit,
  1153. auditStatus:thisData.auditStatus?String(thisData.auditStatus):undefined,
  1154. });
  1155. }.bind(this),
  1156. }).always(function() {
  1157. this.setState({
  1158. loading: false
  1159. });
  1160. }.bind(this));
  1161. },
  1162. //tab3账户信息请求数据
  1163. httpAccount(record) {
  1164. this.RowClick;
  1165. $.ajax({
  1166. method: "get",
  1167. dataType: "json",
  1168. crossDomain: false,
  1169. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  1170. data: {
  1171. uid: record
  1172. },
  1173. success: function(data) {
  1174. let thisData = data.data;
  1175. if(!thisData) {
  1176. if(data.error && data.error.length) {
  1177. message.warning(data.error[0].message);
  1178. };
  1179. thisData = {};
  1180. };
  1181. let sourcecustomer = ''
  1182. switch(String(thisData.source)) {
  1183. case '0':
  1184. sourcecustomer = '注册客户'
  1185. break;
  1186. case '1':
  1187. sourcecustomer = '录入客户'
  1188. break;
  1189. }
  1190. this.setState({
  1191. Accountuid: thisData.id,
  1192. mobile: thisData.mobile,
  1193. nickname: thisData.nickname,
  1194. email: thisData.email,
  1195. type: getcustomerTyp(String(thisData.type)),
  1196. source: sourcecustomer,
  1197. isMember: thisData.isMember,
  1198. currentMemberStatus: String(thisData.currentMemberStatus),
  1199. lvl: String(thisData.lvl),
  1200. status: String(thisData.status),
  1201. createTimes: thisData.createTimes,
  1202. });
  1203. }.bind(this),
  1204. }).always(function() {
  1205. this.setState({
  1206. loading: false
  1207. });
  1208. }.bind(this));
  1209. },
  1210. detailsModalOk(e) {
  1211. this.setState({ modal5Visible: true }); //需要一个请求数据
  1212. },
  1213. //点击消失函数
  1214. detailsModal(e) {
  1215. this.setState({
  1216. modal5Visible: false
  1217. });
  1218. },
  1219. //拜访modul函数
  1220. visitOk(e) {
  1221. this.setState({
  1222. visitModul: false
  1223. });
  1224. this.loadVisit()
  1225. },
  1226. visitCancel(e) {
  1227. this.setState({
  1228. visitModul: false
  1229. });
  1230. },
  1231. //拜访保存函数
  1232. visitSubmit(e) {
  1233. e.preventDefault();
  1234. if(this.state.contactType == undefined) {
  1235. message.warning('请选择拜访方式')
  1236. return false;
  1237. };
  1238. if(this.state.keys) {
  1239. if(this.state.lastName == undefined) {
  1240. message.warning('请选择联系人')
  1241. return false;
  1242. }
  1243. };
  1244. this.setState({
  1245. selectedRowKeys: [],
  1246. });
  1247. this.setState({
  1248. loading: true
  1249. });
  1250. let contactsId = '';
  1251. if(this.state.keys) {
  1252. let conts = this.state.lastName;
  1253. contactsId = this.state.contactsIdArr[conts].id;
  1254. }
  1255. //新增
  1256. $.ajax({
  1257. method: "post",
  1258. dataType: "json",
  1259. url: this.state.keys ? globalConfig.context + '/api/admin/customer/addFollow' : globalConfig.context + '/api/admin/customer/updateFollow',
  1260. data: this.state.keys ? {
  1261. userBusinessList: JSON.stringify(this.state.data),
  1262. uid: this.state.uid,
  1263. ocbId: contactsId,
  1264. contactType: this.state.contactType,
  1265. result: this.state.result,
  1266. followTime: this.state.followTime,
  1267. } : {
  1268. followId: this.state.followIds,
  1269. userBusinessList: JSON.stringify(this.state.data),
  1270. uid: this.state.uid,
  1271. contactType: this.state.contactType,
  1272. result: this.state.result,
  1273. followTime: this.state.followTime,
  1274. }
  1275. }).done(function(data) {
  1276. this.setState({
  1277. loading: false
  1278. });
  1279. if(!data.error.length) {
  1280. message.success('保存成功!');
  1281. this.loadVisit(); //
  1282. this.loadData();
  1283. this.visitCancel();
  1284. } else {
  1285. message.warning(data.error[0].message);
  1286. }
  1287. }.bind(this));
  1288. },
  1289. //当选择联系人的列表变化时,则执行
  1290. hundleName(e) {
  1291. let changNub = this.state.telNum[e];
  1292. this.setState({
  1293. nub: this.state.telNum[e],
  1294. lastName: e,
  1295. });
  1296. },
  1297. //添加新业务及单位客户详情新增
  1298. addNew() {
  1299. this.state.data.push({
  1300. customerStatus: undefined,
  1301. businessGlossoryId: undefined,
  1302. followSituation: undefined,
  1303. remarks: '',
  1304. });
  1305. this.setState({
  1306. data: this.state.data
  1307. })
  1308. },
  1309. //tab2新增联系人
  1310. addcontact() {
  1311. this.state.contactList.push({
  1312. id: null,
  1313. name: '',
  1314. mobile: '',
  1315. email: '',
  1316. qq: '',
  1317. wechat: '',
  1318. depatrment: '',
  1319. position: '',
  1320. });
  1321. this.setState({
  1322. contactList: this.state.contactList
  1323. })
  1324. },
  1325. //tab5进入修改时
  1326. //进入修改时
  1327. listFollowUp(e) {
  1328. $.ajax({
  1329. method: "get",
  1330. dataType: "json",
  1331. crossDomain: false,
  1332. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  1333. data: {
  1334. ufbId: e
  1335. },
  1336. success: function(data) {
  1337. let thedata = data.data;
  1338. if(!thedata) {
  1339. if(data.error && data.error.length) {
  1340. message.warning(data.error[0].message);
  1341. };
  1342. thedata = {};
  1343. };
  1344. this.setState({
  1345. businessGlossoryIds: thedata.businessGlossoryId,
  1346. followSituations: thedata.followSituation,
  1347. customerStatuss: thedata.customerStatus,
  1348. followTimes: thedata.followTime,
  1349. createTimes: thedata.createTime,
  1350. identifyNames: thedata.identifyName,
  1351. contactTypes: parseInt(thedata.contactType),
  1352. results: thedata.result,
  1353. remarkss: thedata.remarks,
  1354. adminNames: thedata.adminName,
  1355. contactss: thedata.contacts,
  1356. contactMobiles: thedata.contactMobile,
  1357. ufbId: thedata.ufbId,
  1358. followIds: thedata.followId,
  1359. });
  1360. }.bind(this),
  1361. }).always(function() {
  1362. this.setState({
  1363. loading: false
  1364. });
  1365. }.bind(this));
  1366. },
  1367. //修改密码Modul
  1368. modifyPassworld() {
  1369. this.setState({
  1370. passworldModul: true
  1371. });
  1372. },
  1373. passworldOk(e) {
  1374. this.setState({
  1375. passworldModul: false
  1376. });
  1377. },
  1378. passworldCancel(e) {
  1379. this.setState({
  1380. passworldModul: false
  1381. });
  1382. },
  1383. //修改密码保存
  1384. passworldSubmit(e) {
  1385. e.preventDefault();
  1386. this.passworldCancel()
  1387. },
  1388. //新增联系人
  1389. addcontactModulOK() {
  1390. this.setState({
  1391. addcontactModul: false
  1392. });
  1393. },
  1394. addcontactModulcancel() {
  1395. this.setState({
  1396. addcontactModul: false
  1397. });
  1398. },
  1399. //点击新增详情
  1400. newContacts() {
  1401. this.state.newsex =undefined;
  1402. this.state.newname ='';
  1403. this.state.newmobile='';
  1404. this.state.newwechat='';
  1405. this.state.newqq='';
  1406. this.state.newdepatrment='';
  1407. this.state.newposition='';
  1408. this.state.newemail='';
  1409. this.setState({
  1410. uids: this.state.uid,
  1411. addcontactModul: true
  1412. });
  1413. },
  1414. //新增联系人保存函数
  1415. submitcontactman() {
  1416. this.setState({
  1417. loading: true
  1418. })
  1419. $.ajax({
  1420. method: "post",
  1421. dataType: "json",
  1422. crossDomain: false,
  1423. url: globalConfig.context + "/api/admin/customer/addOneContact",
  1424. data: {
  1425. uid: this.state.uids,
  1426. name: this.state.newname,
  1427. mobile: this.state.newmobile,
  1428. email: this.state.newemail,
  1429. wechat: this.state.newwechat,
  1430. depatrment: this.state.newdepatrment,
  1431. position: this.state.newposition,
  1432. sex: this.state.newsex,
  1433. qq: this.state.newqq
  1434. },
  1435. success: function(data) {
  1436. if(!data.error.length) {
  1437. this.addcontactModulOK()
  1438. this.getNewWoman(this.state.uids)
  1439. this.setState({
  1440. loading: false,
  1441. })
  1442. } else {
  1443. message.warning(data.error[0].message);
  1444. };
  1445. }.bind(this)
  1446. });
  1447. },
  1448. //获取联系人下拉框
  1449. getNewWoman(ids) {
  1450. this.state.data = []
  1451. $.ajax({
  1452. method: "get",
  1453. dataType: "json",
  1454. crossDomain: false,
  1455. url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
  1456. data: {
  1457. uid: ids,
  1458. },
  1459. success: function(data) {
  1460. let theArr = [];
  1461. let thedata = data.data;
  1462. if(!thedata) {
  1463. if(data.error && data.error.length) {
  1464. message.warning(data.error[0].message);
  1465. };
  1466. thedata = {};
  1467. };
  1468. var telNum = [];
  1469. var contactIds = [];
  1470. thedata.map(function(item, index) {
  1471. contactIds.push(thedata[index].id);
  1472. telNum.push(thedata[index].mobile);
  1473. });
  1474. for(let item in data.data) {
  1475. let theData = data.data[item];
  1476. theArr.push(
  1477. <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>
  1478. );
  1479. };
  1480. this.setState({
  1481. contactsIdArr: thedata,
  1482. telNum: telNum,
  1483. orderStatusOption: theArr,
  1484. });
  1485. }.bind(this),
  1486. }).always(function() {
  1487. this.setState({
  1488. deletId: ids,
  1489. loading: false
  1490. });
  1491. }.bind(this));
  1492. },
  1493. //拜访意向服务列表单个删除
  1494. intentionDelet(e, index) {
  1495. if(!this.state.keys) {
  1496. let detId = this.state.followIds;
  1497. if(e.id) {
  1498. this.setState({
  1499. selectedRowKeys: [],
  1500. });
  1501. $.ajax({
  1502. method: "get",
  1503. dataType: "json",
  1504. crossDomain: false,
  1505. url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",
  1506. data: {
  1507. ufbId: e.id
  1508. }
  1509. }).done(function(data) {
  1510. if(!data.error.length) {
  1511. message.success('删除成功');
  1512. this.setState({
  1513. loading: false,
  1514. });
  1515. } else {
  1516. message.warning(data.error[0].message);
  1517. };
  1518. this.visitModify(detId);
  1519. }.bind(this));
  1520. } else {
  1521. this.visitModify(detId);
  1522. }
  1523. } else {
  1524. let deteluserBusinessList = (this.state.data).splice(index, 1)
  1525. this.setState({
  1526. selectedRowKeys: [],
  1527. });
  1528. }
  1529. },
  1530. //tab5意向业务
  1531. //意向业务查看列表单个详情
  1532. businessIntentionDetails(e) {
  1533. $.ajax({
  1534. method: "get",
  1535. dataType: "json",
  1536. crossDomain: false,
  1537. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  1538. data: {
  1539. businessId: e.businessId
  1540. },
  1541. success: function(data) {
  1542. let thisData = data.data;
  1543. if(!thisData) {
  1544. if(data.error && data.error.length) {
  1545. message.warning(data.error[0].message);
  1546. };
  1547. thisData = {};
  1548. };
  1549. this.setState({
  1550. businessGlossoryId: thisData.businessGlossoryId,
  1551. identifyName: thisData.identifyName,
  1552. uid: thisData.uid,
  1553. businessId: thisData.businessId,
  1554. followSituation: thisData.followSituation,
  1555. customerStatus: thisData.customerStatus,
  1556. createTime: thisData.createTime,
  1557. followTime: thisData.followTime,
  1558. adminName: thisData.adminName,
  1559. remarks: thisData.remarks,
  1560. result: thisData.result,
  1561. });
  1562. }.bind(this),
  1563. }).always(function() {
  1564. this.loadVisit();
  1565. this.setState({
  1566. loading: false
  1567. });
  1568. }.bind(this));
  1569. this.setState({
  1570. businessModul: true
  1571. })
  1572. },
  1573. //查看跟进记录列表
  1574. loadVisit(pageNo) {
  1575. this.setState({
  1576. loading: true
  1577. });
  1578. $.ajax({
  1579. method: "get",
  1580. dataType: "json",
  1581. crossDomain: false,
  1582. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1583. data: {
  1584. pageNo: pageNo || 1,
  1585. pageSize: this.state.paginations.pageSize,
  1586. uid: this.state.rowId, //名称1
  1587. businessGlossoryId: this.state.businessGlossoryId,
  1588. },
  1589. success: function(data) {
  1590. let theArr = [];
  1591. if(data.error.length || data.data.list == "") {
  1592. if(data.error && data.error.length) {
  1593. message.warning(data.error[0].message);
  1594. };
  1595. } else {
  1596. for(let i = 0; i < data.data.list.length; i++) {
  1597. let thisdata = data.data.list[i];
  1598. theArr.push({
  1599. followId: thisdata.followId,
  1600. followTime: thisdata.followTime,
  1601. identifyName: thisdata.identifyName,
  1602. contacts: thisdata.contacts,
  1603. contactMobile: thisdata.contactMobile,
  1604. result: thisdata.result,
  1605. ufbId: thisdata.ufbId,
  1606. adminName: thisdata.adminName,
  1607. followSituation: thisdata.followSituation,
  1608. customerStatus: thisdata.customerStatus,
  1609. contactType: thisdata.contactType
  1610. });
  1611. };
  1612. this.state.paginations.current = data.data.pageNo;
  1613. this.state.paginations.total = data.data.totalCount;
  1614. };
  1615. this.setState({
  1616. visitArrList: theArr,
  1617. paginations: this.state.paginations
  1618. });
  1619. }.bind(this),
  1620. }).always(function() {
  1621. this.setState({
  1622. loading: false
  1623. });
  1624. }.bind(this));
  1625. },
  1626. //tab3拜访记录
  1627. loadBfVisit(pageNo, ids) {
  1628. this.setState({
  1629. loading: true
  1630. });
  1631. $.ajax({
  1632. method: "get",
  1633. dataType: "json",
  1634. crossDomain: false,
  1635. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1636. data: {
  1637. pageNo: pageNo || 1,
  1638. pageSize: this.state.paginationsy.pageSize,
  1639. uid: ids ? ids : this.state.rowId, //名称1
  1640. },
  1641. success: function(data) {
  1642. let theArr = [];
  1643. if(data.error.length || data.data.list == "") {
  1644. if(data.error && data.error.length) {
  1645. message.warning(data.error[0].message);
  1646. };
  1647. } else {
  1648. for(let i = 0; i < data.data.list.length; i++) {
  1649. let thisdata = data.data.list[i];
  1650. theArr.push({
  1651. followId: thisdata.followId,
  1652. followTime: thisdata.followTime,
  1653. identifyName: thisdata.identifyName,
  1654. contacts: thisdata.contacts,
  1655. contactMobile: thisdata.contactMobile,
  1656. result: thisdata.result,
  1657. ufbId: thisdata.ufbId,
  1658. adminName: thisdata.adminName,
  1659. followSituation: thisdata.followSituation,
  1660. customerStatus: thisdata.customerStatus,
  1661. contactType: thisdata.contactType
  1662. });
  1663. };
  1664. this.state.paginationsy.current = data.data.pageNo;
  1665. this.state.paginationsy.total = data.data.totalCount;
  1666. };
  1667. this.setState({
  1668. visitArrList: theArr,
  1669. paginationsy: this.state.paginationsy
  1670. });
  1671. }.bind(this),
  1672. }).always(function() {
  1673. this.setState({
  1674. loading: false
  1675. });
  1676. }.bind(this));
  1677. },
  1678. businessIntentionOk() {
  1679. this.setState({
  1680. businessGlossoryId: '',
  1681. businessModul: false
  1682. })
  1683. },
  1684. businessIntentionCancel() {
  1685. this.setState({
  1686. businessGlossoryId: '',
  1687. businessModul: false
  1688. })
  1689. },
  1690. //业务跟进查看跟多
  1691. businessFollowDetails(e) {
  1692. this.listFollowUp(e.ufbId)
  1693. this.setState({
  1694. businessFollowModul: true
  1695. })
  1696. },
  1697. businessFollowOk(e) {
  1698. this.setState({
  1699. businessFollowModul: false
  1700. })
  1701. },
  1702. businessFollowCancel(e) {
  1703. this.setState({
  1704. businessFollowModul: false
  1705. })
  1706. },
  1707. //tab2联系人保存
  1708. contactSave() {
  1709. let err = '';
  1710. let contactArr = this.state.contactList;
  1711. contactArr.map(function(item) {
  1712. if(!item.name) {
  1713. err = '客户姓名不能为空!';
  1714. }
  1715. if(!item.mobile) {
  1716. err = '手机号码不能为空!';
  1717. }
  1718. return err;
  1719. })
  1720. if(err) {
  1721. message.warning(err)
  1722. return false;
  1723. };
  1724. $.ajax({
  1725. url: globalConfig.context + '/api/admin/customer/updateCustomerContacts',
  1726. method: 'post',
  1727. data: {
  1728. uid: this.state.rowId,
  1729. contactList: JSON.stringify(this.state.contactList)
  1730. }
  1731. }).done(function(data) {
  1732. this.setState({
  1733. loading: false
  1734. });
  1735. if(!data.error.length) {
  1736. message.success('保存成功!');
  1737. this.detailsModal()
  1738. this.loadData();
  1739. } else {
  1740. message.warning(data.error[0].message);
  1741. }
  1742. }.bind(this));
  1743. },
  1744. //详情tab切换数据处理
  1745. callback(e) {
  1746. if(e == 1) {
  1747. this.loadInformation(this.state.rowId)
  1748. }
  1749. if(e == 2) {
  1750. this.contactLists(this.state.rowId)
  1751. }
  1752. if(e == 3) {
  1753. this.httpAccount(this.state.rowId)
  1754. }
  1755. if(e == 4) {
  1756. this.loadBfVisit(1, this.state.rowId);
  1757. }
  1758. if(e == 5) {
  1759. this.BusinessList(1, this.state.rowId);
  1760. }
  1761. if(e == 6) {
  1762. }
  1763. if(e == 7) {
  1764. }
  1765. if(e == 8) {
  1766. }
  1767. if(e == 9) {
  1768. }
  1769. },
  1770. //账户信息保存
  1771. accountSave(e) {
  1772. e.preventDefault();
  1773. this.state.data = [];
  1774. this.setState({
  1775. selectedRowKeys: [],
  1776. });
  1777. this.setState({
  1778. loading: true
  1779. });
  1780. $.ajax({
  1781. method: "post",
  1782. dataType: "json",
  1783. url: globalConfig.context + '/api/admin/customer/updateUserAccount',
  1784. data: {
  1785. id: this.state.Accountuid,
  1786. mobile: this.state.mobile,
  1787. nickname: this.state.nickname,
  1788. email: this.state.email,
  1789. isMember: this.state.isMember,
  1790. currentMemberStatus: this.state.currentMemberStatus,
  1791. lvl: this.state.lvl,
  1792. status: this.state.status,
  1793. }
  1794. }).done(function(data) {
  1795. this.setState({
  1796. loading: false
  1797. });
  1798. if(!data.error.length) {
  1799. message.success('保存成功!');
  1800. this.detailsModal();
  1801. this.loadData();
  1802. } else {
  1803. message.warning(data.error[0].message);
  1804. }
  1805. }.bind(this));
  1806. },
  1807. //tab2删除
  1808. confirmDelet(e) {
  1809. this.setState({
  1810. loading: true
  1811. });
  1812. if(e.id) {
  1813. $.ajax({
  1814. method: "get",
  1815. dataType: "json",
  1816. crossDomain: false,
  1817. url: globalConfig.context + "/api/admin/customer/deleteOneContact",
  1818. data: {
  1819. ocbId: e.id, //删除的ID
  1820. }
  1821. }).done(function(data) {
  1822. if(!data.error.length) {
  1823. message.success('删除成功!');
  1824. this.setState({
  1825. loading: false,
  1826. });
  1827. } else {
  1828. message.warning(data.error[0].message);
  1829. };
  1830. this.contactLists(this.state.rowId);
  1831. }.bind(this));
  1832. } else {
  1833. this.contactLists(this.state.rowId);
  1834. }
  1835. },
  1836. //tab5业务意向
  1837. BusinessList(pageNo, uids) {
  1838. this.setState({
  1839. loading: true
  1840. });
  1841. $.ajax({
  1842. method: "post",
  1843. dataType: "json",
  1844. crossDomain: false,
  1845. url: globalConfig.context + '/api/admin/customer/listBusiness',
  1846. data: {
  1847. pageNo: pageNo || 1,
  1848. pageSize: this.state.paginationt.pageSize,
  1849. uid: uids ? uids : this.state.rowId
  1850. },
  1851. success: function(data) {
  1852. let theArr = [];
  1853. if(data.error.length || data.data.list == "") {
  1854. if(data.error && data.error.length) {
  1855. message.warning(data.error[0].message);
  1856. };
  1857. } else {
  1858. for(let i = 0; i < data.data.list.length; i++) {
  1859. let thisdata = data.data.list[i];
  1860. theArr.push({
  1861. key: i,
  1862. businessId: thisdata.businessId,
  1863. businessName: thisdata.businessName,
  1864. identifyName: thisdata.identifyName,
  1865. followSituation: thisdata.followSituation,
  1866. customerStatus: thisdata.customerStatus,
  1867. adminName: thisdata.adminName,
  1868. createTime: thisdata.createTime
  1869. });
  1870. };
  1871. this.state.paginationt.current = data.data.pageNo;
  1872. this.state.paginationt.total = data.data.totalCount;
  1873. };
  1874. this.setState({
  1875. dataBusiness: theArr,
  1876. paginationt: this.state.paginationt
  1877. });
  1878. }.bind(this),
  1879. }).always(function() {
  1880. this.setState({
  1881. loading: false
  1882. });
  1883. }.bind(this));
  1884. },
  1885. componentWillReceiveProps(nextProps) {
  1886. if(!this.props.visible && nextProps.visible) {
  1887. if(nextProps.data && nextProps.data.id) {
  1888. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1889. };
  1890. this.state.data = {};
  1891. this.state.companyLogoUrl = [];
  1892. this.state.orgCodeUrl = [];
  1893. };
  1894. },
  1895. render() {
  1896. const FormItem = Form.Item
  1897. const rowSelection = {
  1898. selectedRowKeys: this.state.selectedRowKeys,
  1899. onChange: (selectedRowKeys, selectedRows) => {
  1900. this.setState({
  1901. selectedRows: selectedRows.slice(-1),
  1902. selectedRowKeys: selectedRowKeys.slice(-1)
  1903. });
  1904. },
  1905. onSelect: (recordt, selected, selectedRows) => {
  1906. this.setState({
  1907. recordt: recordt.id
  1908. })
  1909. },
  1910. };
  1911. const rowSelections = {
  1912. selectedRowKeys: this.state.selectedRowKey,
  1913. onChange: (selectedRowKey, selectedRow) => {
  1914. this.setState({
  1915. selectedRow: selectedRow.slice(-1),
  1916. selectedRowKey: selectedRowKey.slice(-1)
  1917. });
  1918. },
  1919. onSelect: (records, selected, selectedRow) => {
  1920. this.setState({
  1921. selectedRow: selectedRow.slice(-1),
  1922. records: records.id,
  1923. })
  1924. },
  1925. };
  1926. const hasSelected = this.state.selectedRowKeys.length > 0;
  1927. const { RangePicker, MonthPicker } = DatePicker;
  1928. const { getFieldDecorator } = this.props.form;
  1929. const formItemLayout = {
  1930. labelCol: { span: 8 },
  1931. wrapperCol: { span: 14 },
  1932. };
  1933. const theInformation = this.state.dataInformation || {}
  1934. const contactsOption = "";
  1935. const formItemLayput = {
  1936. labelCol: { span: 10 },
  1937. wrapperCol: { span: 14 },
  1938. };
  1939. const contacts = this.state.contacts || '';
  1940. return(
  1941. <div className="user-content" >
  1942. <div className="content-title">
  1943. <span>我的客户</span>
  1944. </div>
  1945. <div className="user-search">
  1946. <Input placeholder="客户姓名"
  1947. value={this.state.nameSearch}
  1948. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1949. <Select placeholder="省"
  1950. style={{ width: 80 }}
  1951. value={this.state.provinceSearch}
  1952. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1953. {this.state.Provinces}
  1954. </Select>
  1955. <span style={{marginRight:'10px'}}>
  1956. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  1957. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1958. </span>
  1959. <span style={{marginRight:'10px'}}>客户类型:</span>
  1960. <Select placeholder="选择客户类型"
  1961. style={{ width: 100 }}
  1962. value={this.state.shareTypeSearch}
  1963. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  1964. <Select.Option value="" >所有客户</Select.Option>
  1965. <Select.Option value="1" >公共客户</Select.Option>
  1966. </Select>
  1967. <Button type="primary" onClick={this.search}>搜索</Button>
  1968. <Button onClick={this.reset}>重置</Button>
  1969. {adminData.isSuperAdmin?<Button type='danger' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  1970. disabled={!hasSelected}
  1971. onClick={this.delectRow}>删除<Icon type="minus" />
  1972. </Button>:''}
  1973. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  1974. <div className='clearfix' style={{marginTop:'5px'}}>
  1975. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1976. <RangePicker
  1977. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1978. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1979. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1980. <Select placeholder="客户状态"
  1981. style={{ width: 100 }}
  1982. value={this.state.statusSearch}
  1983. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  1984. <Select.Option value="0" >正常</Select.Option>
  1985. <Select.Option value="2" >锁定</Select.Option>
  1986. </Select>
  1987. <Select placeholder="行业"
  1988. style={{ width: 100 }}
  1989. value={this.state.industrySearch}
  1990. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  1991. {this.state.intentionalOption}
  1992. </Select>
  1993. <span>认证:</span>
  1994. <Select placeholder="业务认证"
  1995. style={{ width: 100 }}
  1996. value={this.state.serviceCertificationSearch}
  1997. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  1998. <Select.Option value="0" >未认证</Select.Option>
  1999. <Select.Option value="1" >已认证</Select.Option>
  2000. </Select>
  2001. <Select placeholder="实名认证"
  2002. style={{ width: 100 }}
  2003. value={this.state.userCertificationSearch}
  2004. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  2005. {
  2006. auditStatusL.map(function (item) {
  2007. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2008. })
  2009. }
  2010. </Select>
  2011. <span>专家:</span>
  2012. <Select placeholder="专家"
  2013. style={{ width: 60 }}
  2014. value={this.state.expertSearch}
  2015. onChange={(e) => { this.setState({ expertSearch: e }) }}>
  2016. <Select.Option value="0" >否</Select.Option>
  2017. <Select.Option value="1" >是</Select.Option>
  2018. </Select>
  2019. <span>明星:</span>
  2020. <Select placeholder="明星"
  2021. style={{ width: 60 }}
  2022. value={this.state.celebritySearch}
  2023. onChange={(e) => { this.setState({ celebritySearch: e }) }}>
  2024. <Select.Option value="0" >否</Select.Option>
  2025. <Select.Option value="1" >是</Select.Option>
  2026. </Select>
  2027. <span>国际:</span>
  2028. <Select placeholder="国际"
  2029. style={{ width: 60 }}
  2030. value={this.state.internationalSearch}
  2031. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2032. <Select.Option value="0" >否</Select.Option>
  2033. <Select.Option value="1" >是</Select.Option>
  2034. </Select>
  2035. <span>会员:</span>
  2036. <Select placeholder="会员等级"
  2037. style={{ width: 100 }}
  2038. value={this.state.lvlSearch}
  2039. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2040. {this.state.lvlArrOption}
  2041. </Select>
  2042. <Select placeholder="会员状态"
  2043. style={{ width: 100 }}
  2044. value={this.state.currentMemberStatusSearch}
  2045. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2046. {this.state.currentMemberArrOption}
  2047. </Select>
  2048. </div>
  2049. </div>
  2050. </div>
  2051. <div className="patent-table">
  2052. <Spin spinning={this.state.loading}>
  2053. <Table columns={this.state.columns}
  2054. dataSource={this.state.dataSource}
  2055. rowSelection={rowSelection}
  2056. pagination={this.state.pagination}
  2057. onRowClick={this.tableRowClick}
  2058. />
  2059. </Spin>
  2060. </div>
  2061. <Modal
  2062. className="customeDetails"
  2063. title="单位客户详情"
  2064. width='1200px'
  2065. visible={this.state.modal5Visible}
  2066. onOk={this.detailsModal}
  2067. onCancel={this.detailsModal}
  2068. footer=''
  2069. >
  2070. <Tabs defaultActiveKey="1" onChange={this.callback}>
  2071. <TabPane tab="基本信息" key="1">
  2072. {adminData.isSuperAdmin?<Form horizontal onSubmit={this.newSubmit} id="demand-form">
  2073. <Spin spinning={this.state.loading}>
  2074. <div className="clearfix" >
  2075. <FormItem className="half-item"
  2076. {...formItemLayout}
  2077. label="客户姓名"
  2078. >
  2079. <span>{theInformation.identifyName}</span>
  2080. </FormItem>
  2081. </div>
  2082. <div className="clearfix" >
  2083. <FormItem className="half-item"
  2084. {...formItemLayout}
  2085. label="行业">
  2086. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  2087. onChange={(e)=>{this.setState({industry:e})}}>
  2088. {
  2089. industry.map(function (item) {
  2090. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2091. })
  2092. }
  2093. </Select>
  2094. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2095. </FormItem>
  2096. <FormItem className="half-item"
  2097. {...formItemLayout}
  2098. label="社会属性"
  2099. >
  2100. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'300px'}}
  2101. onChange={(e)=>{this.setState({societyTag:e})}}>
  2102. {
  2103. socialAttribute.map(function (item) {
  2104. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2105. })
  2106. }
  2107. </Select>
  2108. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2109. </FormItem>
  2110. <FormItem className="half-item"
  2111. {...formItemLayout}
  2112. label="省-市-区"
  2113. >
  2114. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  2115. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  2116. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2117. </FormItem>
  2118. <FormItem className="half-item"
  2119. {...formItemLayout}
  2120. label="出生日期"
  2121. >
  2122. {!this.state.yearMonth?<MonthPicker placeholder="选择出生年月" value={this.state.yearMonth||null} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2123. :<MonthPicker value={moment(this.state.yearMonth, monthFormat)} format={monthFormat} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2124. }
  2125. </FormItem>
  2126. <FormItem className="half-item"
  2127. {...formItemLayout}
  2128. label="身份证号码"
  2129. >
  2130. <Input placeholder="身份证号码" value={this.state.idNumber} onChange={(e) => {
  2131. this.setState({ idNumber: e.target.value })}}/>
  2132. </FormItem>
  2133. <FormItem className="half-item"
  2134. {...formItemLayout}
  2135. label="主要联系人"
  2136. >
  2137. <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
  2138. this.setState({ contacts: e.target.value })}}/>
  2139. </FormItem>
  2140. <FormItem className="half-item"
  2141. {...formItemLayout}
  2142. label="主要联系人号码"
  2143. >
  2144. <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
  2145. this.setState({ contactMobile: e.target.value })}}/>
  2146. </FormItem>
  2147. <FormItem className="half-item"
  2148. {...formItemLayout}
  2149. label="职称名字"
  2150. >
  2151. <Input placeholder="职称名字" value={this.state.professionalTitle} onChange={(e) => {
  2152. this.setState({ professionalTitle: e.target.value })}}/>
  2153. </FormItem>
  2154. <FormItem className="half-item"
  2155. {...formItemLayout}
  2156. label="就业单位"
  2157. >
  2158. <Input placeholder="就业单位" value={this.state.workUnit} onChange={(e) => {
  2159. this.setState({ workUnit: e.target.value })}}/>
  2160. </FormItem>
  2161. <FormItem className="half-item"
  2162. {...formItemLayout}
  2163. label="学历"
  2164. >
  2165. <Input placeholder="学历" value={this.state.education} onChange={(e) => {
  2166. this.setState({ education: e.target.value })}}/>
  2167. </FormItem>
  2168. <FormItem className="half-item"
  2169. {...formItemLayout}
  2170. label="毕业院校"
  2171. >
  2172. <Input placeholder="学历" value={this.state.graduateSchool} onChange={(e) => {
  2173. this.setState({ graduateSchool: e.target.value })}}/>
  2174. </FormItem>
  2175. <FormItem className="half-item"
  2176. {...formItemLayout}
  2177. label="专业类别"
  2178. >
  2179. <Input placeholder="专业类别" value={this.state.majorCategory} onChange={(e) => {
  2180. this.setState({ majorCategory: e.target.value })}}/>
  2181. </FormItem>
  2182. <FormItem className="half-item"
  2183. {...formItemLayout}
  2184. label="职业资格"
  2185. >
  2186. <Input placeholder="职业资格" value={this.state.qualification} onChange={(e) => {
  2187. this.setState({ qualification: e.target.value })}}/>
  2188. </FormItem>
  2189. <FormItem className="half-item"
  2190. {...formItemLayout}
  2191. label="通信地址"
  2192. >
  2193. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  2194. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  2195. </FormItem>
  2196. <FormItem className="half-item"
  2197. {...formItemLayout}
  2198. label="固定电话"
  2199. >
  2200. <Input placeholder="客户固定电话" value={this.state.fixedTel}
  2201. onChange={(e) => { this.setState({ fixedTel: e.target.value }) }}/>
  2202. </FormItem>
  2203. <FormItem className="half-item"
  2204. {...formItemLayout}
  2205. label="客户QQ"
  2206. >
  2207. <Input placeholder="客户QQ" value={this.state.qq}
  2208. onChange={(e) => { this.setState({ qq: e.target.value })}}/>
  2209. </FormItem>
  2210. <FormItem className="half-item"
  2211. {...formItemLayout}
  2212. label="电子邮箱"
  2213. >
  2214. <Input placeholder="客户电子邮箱" value={this.state.email}
  2215. onChange={(e) => {this.setState({email: e.target.value })}}/>
  2216. </FormItem>
  2217. <FormItem className="half-item"
  2218. {...formItemLayout}
  2219. label="咨询费用"
  2220. >
  2221. <Input ref='consul' placeholder="输入数字且不超过6位" value={this.state.consultationPrice}
  2222. onChange={(e) => {this.setState({consultationPrice: e.target.value })}}/>
  2223. </FormItem>
  2224. <FormItem className="half-item"
  2225. {...formItemLayout}
  2226. label="实名认证"
  2227. >
  2228. <Select placeholder="实名认证"
  2229. value={this.state.auditStatus}
  2230. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  2231. {
  2232. auditStatusL.map(function (item) {
  2233. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2234. })
  2235. }
  2236. </Select>
  2237. </FormItem>
  2238. <div className='clearfix'>
  2239. <FormItem
  2240. labelCol={{ span: 4 }}
  2241. wrapperCol={{ span: 18 }}
  2242. label="客户简介" >
  2243. <Input type="textarea" rows={4} value={this.state.introduction}
  2244. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  2245. </FormItem>
  2246. </div>
  2247. <div className="clearfix">
  2248. <FormItem className="half-item"
  2249. {...formItemLayout}
  2250. label="业务认证"
  2251. >
  2252. <Radio.Group value={this.state.businessAudit} onChange={(e) => {
  2253. this.setState({ businessAudit: e.target.value })
  2254. }}>
  2255. <Radio value={0}>未认证</Radio>
  2256. <Radio value={1}>已认证</Radio>
  2257. </Radio.Group>
  2258. </FormItem>
  2259. <FormItem className="half-item"
  2260. {...formItemLayout}
  2261. label="投资机构"
  2262. >
  2263. <Radio.Group value={this.state.investment} onChange={(e) => {
  2264. this.setState({ investment: e.target.value })
  2265. }}>
  2266. <Radio value={0}>否</Radio>
  2267. <Radio value={1}>是</Radio>
  2268. </Radio.Group>
  2269. </FormItem>
  2270. <FormItem className="half-item"
  2271. {...formItemLayout}
  2272. label="专家"
  2273. >
  2274. <Radio.Group value={this.state.expert} onChange={(e) => {
  2275. this.setState({ expert: e.target.value })
  2276. }}>
  2277. <Radio value={0}>否</Radio>
  2278. <Radio value={1}>是</Radio>
  2279. </Radio.Group>
  2280. </FormItem>
  2281. <FormItem className="half-item"
  2282. {...formItemLayout}
  2283. label="明星"
  2284. >
  2285. <Radio.Group value={this.state.celebrity} onChange={(e) => {
  2286. this.setState({ celebrity: e.target.value })
  2287. }}>
  2288. <Radio value={0}>否</Radio>
  2289. <Radio value={1}>是</Radio>
  2290. </Radio.Group>
  2291. </FormItem>
  2292. <FormItem className="half-item"
  2293. {...formItemLayout}
  2294. label="咨询师"
  2295. >
  2296. <Radio.Group value={this.state.consultant} onChange={(e) => {
  2297. this.setState({ consultant: e.target.value })
  2298. }}>
  2299. <Radio value={0}>否</Radio>
  2300. <Radio value={1}>是</Radio>
  2301. </Radio.Group>
  2302. </FormItem>
  2303. <FormItem className="half-item"
  2304. {...formItemLayout}
  2305. label="国际化"
  2306. >
  2307. <Radio.Group value={this.state.international} onChange={(e) => {
  2308. this.setState({ international: e.target.value })
  2309. }}>
  2310. <Radio value={0}>否</Radio>
  2311. <Radio value={1}>是</Radio>
  2312. </Radio.Group>
  2313. </FormItem>
  2314. <FormItem className="half-item"
  2315. {...formItemLayout}
  2316. label="性别"
  2317. >
  2318. <Radio.Group value={this.state.sex} onChange={(e) => {
  2319. this.setState({sex:e.target.value})
  2320. }}>
  2321. <Radio value={'男'}>男</Radio>
  2322. <Radio value={'女'}>女</Radio>
  2323. </Radio.Group>
  2324. </FormItem>
  2325. </div>
  2326. <div className="clearfix pictures">
  2327. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2328. labelCol={{ span: 8 }}
  2329. wrapperCol={{ span: 10 }}
  2330. label="身份证正面" >
  2331. <PicturesWall
  2332. pictureSign="ID"
  2333. fileList={this.getPositiveIdUrl}
  2334. pictureUrl={this.state.positiveIdUrl} />
  2335. <p>建议:图片要清晰。</p>
  2336. </FormItem>
  2337. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2338. labelCol={{ span: 8 }}
  2339. wrapperCol={{ span: 10 }}
  2340. label="身份证反面" >
  2341. <PicturesWall
  2342. pictureSign="ID"
  2343. fileList={this.getOppositeIdUrl}
  2344. pictureUrl={this.state.oppositeIdUrl} />
  2345. <p>建议:图片要清晰。</p>
  2346. </FormItem>
  2347. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2348. labelCol={{ span: 8 }}
  2349. wrapperCol={{ span: 10 }}
  2350. label="客户照片" >
  2351. <PicturesWall
  2352. pictureSign="portrait"
  2353. fileList={this.getHeadPortraitUrl}
  2354. pictureUrl={this.state.headPortraitUrl} />
  2355. <p>建议:图片要清晰。</p>
  2356. </FormItem>
  2357. </div>
  2358. <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'146px',marginBottom:'30px'}}>保存</Button>
  2359. <Button className="set-submit" type="ghost" onClick={this.detailsModal}>取消</Button>
  2360. </div>
  2361. </Spin>
  2362. </Form>:
  2363. <Form horizontal id="demand-form">
  2364. <Spin spinning={this.state.loading}>
  2365. <div className="clearfix" >
  2366. <FormItem className="half-item"
  2367. {...formItemLayout}
  2368. label="客户姓名"
  2369. >
  2370. <span>{theInformation.identifyName}</span>
  2371. </FormItem>
  2372. </div>
  2373. <div className="clearfix" >
  2374. <FormItem className="half-item"
  2375. {...formItemLayout}
  2376. label="行业"
  2377. >
  2378. <span>{getIndustryType(this.state.industry)}</span>
  2379. </FormItem>
  2380. <FormItem className="half-item"
  2381. {...formItemLayout}
  2382. label="社会属性"
  2383. >
  2384. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  2385. </FormItem>
  2386. <FormItem className="half-item"
  2387. {...formItemLayout}
  2388. label="业务认证"
  2389. >
  2390. <span>{parseInt(this.state.businessAudit)?'已认证':'未认证'}</span>
  2391. </FormItem>
  2392. <FormItem className="half-item"
  2393. {...formItemLayout}
  2394. label="实名认证"
  2395. >
  2396. <span>{getAuditStatus(this.state.auditStatus)}</span>
  2397. </FormItem>
  2398. <FormItem className="half-item"
  2399. {...formItemLayout}
  2400. label="专家"
  2401. >
  2402. <span>{parseInt(this.state.expert)?'是':'否'}</span>
  2403. </FormItem>
  2404. <FormItem className="half-item"
  2405. {...formItemLayout}
  2406. label="明星"
  2407. >
  2408. <span>{parseInt(this.state.celebrity)?'是':'否'}</span>
  2409. </FormItem>
  2410. <FormItem className="half-item"
  2411. {...formItemLayout}
  2412. label="会员"
  2413. >
  2414. <span>{parseInt(this.state.isMember)?'是':'否'}</span>
  2415. </FormItem>
  2416. <FormItem className="half-item"
  2417. {...formItemLayout}
  2418. label="咨询师"
  2419. >
  2420. <span>{parseInt(this.state.consultant)?'是':'否'}</span>
  2421. </FormItem>
  2422. <FormItem className="half-item"
  2423. {...formItemLayout}
  2424. label="国际化"
  2425. >
  2426. <span>{parseInt(this.state.international)?'是':'否'}</span>
  2427. </FormItem>
  2428. <FormItem className="half-item"
  2429. {...formItemLayout}
  2430. label="性别"
  2431. >
  2432. <span>{this.state.sex}</span>
  2433. </FormItem>
  2434. <FormItem className="half-item"
  2435. {...formItemLayout}
  2436. label="出生日期"
  2437. >
  2438. <span>{this.state.yearMonth}</span>
  2439. </FormItem>
  2440. <FormItem className="half-item"
  2441. {...formItemLayout}
  2442. label="身份证号码"
  2443. >
  2444. <span>{theInformation.legalPersonIdCard}</span>
  2445. </FormItem>
  2446. <FormItem className="half-item"
  2447. {...formItemLayout}
  2448. label="主要联系人"
  2449. >
  2450. <span>{theInformation.contacts}</span>
  2451. </FormItem>
  2452. <FormItem className="half-item"
  2453. {...formItemLayout}
  2454. label="主要联系人号码"
  2455. >
  2456. <span>{theInformation.contactMobile}</span>
  2457. </FormItem>
  2458. <FormItem className="half-item"
  2459. {...formItemLayout}
  2460. label="省-市-区"
  2461. >
  2462. <span>{this.state.proviceCityArea}</span>
  2463. </FormItem>
  2464. <FormItem className="half-item"
  2465. {...formItemLayout}
  2466. label="投资机构"
  2467. >
  2468. <span>{this.state.investment?'是':'否'}</span>
  2469. </FormItem>
  2470. <FormItem className="half-item"
  2471. {...formItemLayout}
  2472. label="职称名字"
  2473. >
  2474. <span>{this.state.professionalTitle}</span>
  2475. </FormItem>
  2476. <FormItem className="half-item"
  2477. {...formItemLayout}
  2478. label="就业单位"
  2479. >
  2480. <span>{this.state.workUnit}</span>
  2481. </FormItem>
  2482. <FormItem className="half-item"
  2483. {...formItemLayout}
  2484. label="学历"
  2485. >
  2486. <span>{this.state.education}</span>
  2487. </FormItem>
  2488. <FormItem className="half-item"
  2489. {...formItemLayout}
  2490. label="毕业院校"
  2491. >
  2492. <span>{this.state.graduateSchool}</span>
  2493. </FormItem>
  2494. <FormItem className="half-item"
  2495. {...formItemLayout}
  2496. label="专业类别"
  2497. >
  2498. <span>{this.state.majorCategory}</span>
  2499. </FormItem>
  2500. <FormItem className="half-item"
  2501. {...formItemLayout}
  2502. label="职业资格"
  2503. >
  2504. <span>{this.state.qualification}</span>
  2505. </FormItem>
  2506. <FormItem className="half-item"
  2507. {...formItemLayout}
  2508. label="通信地址"
  2509. >
  2510. <span>{theInformation.postalAddress}</span>
  2511. </FormItem>
  2512. <FormItem className="half-item"
  2513. {...formItemLayout}
  2514. label="手机号码"
  2515. >
  2516. <span>{theInformation.modile}</span>
  2517. </FormItem>
  2518. <FormItem className="half-item"
  2519. {...formItemLayout}
  2520. label="客户传真"
  2521. >
  2522. <span>{theInformation.contactsFax}</span>
  2523. </FormItem>
  2524. <FormItem className="half-item"
  2525. {...formItemLayout}
  2526. label="固定电话"
  2527. >
  2528. <span>{theInformation.contactsFixedTel}</span>
  2529. </FormItem>
  2530. <FormItem className="half-item"
  2531. {...formItemLayout}
  2532. label="客户QQ"
  2533. >
  2534. <span>{theInformation.qq}</span>
  2535. </FormItem>
  2536. <FormItem className="half-item"
  2537. {...formItemLayout}
  2538. label="电子邮箱"
  2539. >
  2540. <span>{theInformation.email}</span>
  2541. </FormItem>
  2542. <FormItem className="half-item"
  2543. {...formItemLayout}
  2544. label="咨询费用"
  2545. >
  2546. <span>{theInformation.consultationPrice}</span>
  2547. </FormItem>
  2548. <div className='clearfix'>
  2549. <FormItem
  2550. labelCol={{ span: 4 }}
  2551. wrapperCol={{ span: 18 }}
  2552. label="客户简介" >
  2553. <span>{theInformation.introduction}</span>
  2554. </FormItem>
  2555. </div>
  2556. <div className="clearfix pictures">
  2557. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2558. labelCol={{ span: 8 }}
  2559. wrapperCol={{ span: 10 }}
  2560. label="身份证正面" >
  2561. <div className="clearfix">
  2562. <Upload className="demandDetailShow-upload"
  2563. listType="picture-card"
  2564. fileList={this.state.orgCodeUrl}
  2565. onPreview={(file) => {
  2566. this.setState({
  2567. previewImage: file.url || file.thumbUrl,
  2568. previewVisible: true,
  2569. });
  2570. }} >
  2571. </Upload>
  2572. <Modal maskClosable={false} footer={null}
  2573. visible={this.state.previewVisible}
  2574. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2575. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  2576. </Modal>
  2577. </div>
  2578. </FormItem>
  2579. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2580. labelCol={{ span: 8 }}
  2581. wrapperCol={{ span: 10 }}
  2582. label="身份证反面" >
  2583. <div className="clearfix">
  2584. <Upload className="demandDetailShow-upload"
  2585. listType="picture-card"
  2586. fileList={this.state.companyLogoUrl}
  2587. onPreview={(file) => {
  2588. this.setState({
  2589. previewImage: file.url || file.thumbUrl,
  2590. previewVisible: true,
  2591. });
  2592. }} >
  2593. </Upload>
  2594. <Modal maskClosable={false} footer={null}
  2595. visible={this.state.previewVisible}
  2596. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2597. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  2598. </Modal>
  2599. </div>
  2600. </FormItem>
  2601. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2602. labelCol={{ span: 8 }}
  2603. wrapperCol={{ span: 10 }}
  2604. label="客户照片" >
  2605. <div className="clearfix">
  2606. <Upload className="demandDetailShow-upload"
  2607. listType="picture-card"
  2608. fileList={this.state.companyLogoUrls}
  2609. onPreview={(file) => {
  2610. this.setState({
  2611. previewImage: file.url || file.thumbUrl,
  2612. previewVisible: true,
  2613. });
  2614. }} >
  2615. </Upload>
  2616. <Modal maskClosable={false} footer={null}
  2617. visible={this.state.previewVisible}
  2618. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2619. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrls || ''} />
  2620. </Modal>
  2621. </div>
  2622. </FormItem>
  2623. </div>
  2624. </div>
  2625. </Spin>
  2626. </Form>
  2627. }
  2628. </TabPane>
  2629. <TabPane tab="联系人信息" key="2">
  2630. <div className="clearfix" style={{display:adminData.isSuperAdmin?'block':'none'}}>
  2631. <Button className="ContactsList" type="primary" onClick={this.addcontact}>新增</Button>
  2632. </div>
  2633. <div className="clearfix">
  2634. <Spin spinning={this.state.loading}>
  2635. <Form horizontal id="demand-form" onSubmit={this.contactSave} >
  2636. <Table
  2637. pagination={false}
  2638. columns={this.state.ContactsLists}
  2639. dataSource={this.state.contactList}
  2640. />
  2641. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  2642. <Button type="primary" htmlType="submit" style={{fontSize:'16px',margin:'20px 25px 40px 120px'}}>保存</Button>
  2643. <Button type="ghost" onClick={this.detailsModal} style={{fontSize:'18px'}}>取消</Button>
  2644. </div>
  2645. </Form>
  2646. </Spin>
  2647. </div>
  2648. </TabPane>
  2649. <TabPane tab="账户信息" key="3">
  2650. <div className="clearfix">
  2651. {adminData.isSuperAdmin?<Form horizontal id="demand-form" onSubmit={this.accountSave} >
  2652. <Spin spinning={this.state.loading} >
  2653. <FormItem className="half-item"
  2654. {...formItemLayout}
  2655. label="注册手机号" >
  2656. <Input value={this.state.mobile} disabled
  2657. onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  2658. <Button onClick={this.modifyPassworld}>修改密码</Button>
  2659. </FormItem>
  2660. <FormItem className="half-item"
  2661. {...formItemLayout}
  2662. label="注册用户名" >
  2663. <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
  2664. </FormItem>
  2665. <FormItem className="half-item"
  2666. {...formItemLayout}
  2667. label="注册邮箱" >
  2668. <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
  2669. </FormItem>
  2670. <div className="clearfix">
  2671. <FormItem className="half-item"
  2672. {...formItemLayout}
  2673. label="客户来源" >
  2674. <span>{this.state.source}</span>
  2675. </FormItem>
  2676. <FormItem className="half-item"
  2677. {...formItemLayout}
  2678. label="客户类型" >
  2679. <span>{this.state.type}</span>
  2680. </FormItem>
  2681. <FormItem className="half-item"
  2682. {...formItemLayout}
  2683. label="创建时间" >
  2684. <span>{this.state.createTimes}</span>
  2685. </FormItem>
  2686. <FormItem className="half-item"
  2687. {...formItemLayout}
  2688. label="账户状态"
  2689. >
  2690. <Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  2691. {
  2692. statuslist.map(function (item) {
  2693. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2694. })
  2695. }
  2696. </Select>
  2697. </FormItem>
  2698. </div>
  2699. <div className="clearfix">
  2700. <FormItem className="half-item"
  2701. {...formItemLayout}
  2702. label="会员"
  2703. >
  2704. <Radio.Group value={this.state.isMember} onChange={(e) => {
  2705. this.setState({ isMember: e.target.value })
  2706. }}>
  2707. <Radio value={0}>否</Radio>
  2708. <Radio value={1}>是</Radio>
  2709. </Radio.Group>
  2710. </FormItem>
  2711. <FormItem className="half-item"
  2712. {...formItemLayout}
  2713. label="会员等级"
  2714. >
  2715. <Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  2716. {
  2717. lvl.map(function (item) {
  2718. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2719. })
  2720. }
  2721. </Select>
  2722. </FormItem>
  2723. <FormItem className="half-item"
  2724. {...formItemLayout}
  2725. label="会员状态"
  2726. >
  2727. <Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  2728. {
  2729. currentMember.map(function (item) {
  2730. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2731. })
  2732. }
  2733. </Select>
  2734. </FormItem>
  2735. </div>
  2736. <div className="clearfix">
  2737. <Button className='saveBtn' type="primary" htmlType="submit">保存</Button>
  2738. <Button type="ghost" onClick={this.detailsModal}>取消</Button>
  2739. </div>
  2740. </Spin>
  2741. </Form> :
  2742. <Form horizontal id="demand-form" >
  2743. <Spin spinning={this.state.loading} >
  2744. <FormItem className="half-item"
  2745. {...formItemLayout}
  2746. label="注册手机号" >
  2747. <span>{this.state.mobile}</span>
  2748. </FormItem>
  2749. <FormItem className="half-item"
  2750. {...formItemLayout}
  2751. label="注册用户名" >
  2752. <span>{this.state.nickname}</span>
  2753. </FormItem>
  2754. <FormItem className="half-item"
  2755. {...formItemLayout}
  2756. label="注册邮箱" >
  2757. <span>{this.state.email}</span>
  2758. </FormItem>
  2759. <div className="clearfix">
  2760. <FormItem className="half-item"
  2761. {...formItemLayout}
  2762. label="客户来源" >
  2763. <span>{this.state.source}</span>
  2764. </FormItem>
  2765. <FormItem className="half-item"
  2766. {...formItemLayout}
  2767. label="客户类型" >
  2768. <span>{this.state.type}</span>
  2769. </FormItem>
  2770. <FormItem className="half-item"
  2771. {...formItemLayout}
  2772. label="创建时间" >
  2773. <span>{this.state.createTimes}</span>
  2774. </FormItem>
  2775. <FormItem className="half-item"
  2776. {...formItemLayout}
  2777. label="账户状态"
  2778. >
  2779. <span>{getStatuslist(this.state.status)}</span>
  2780. </FormItem>
  2781. </div>
  2782. <div className="clearfix">
  2783. <FormItem className="half-item"
  2784. {...formItemLayout}
  2785. label="专家"
  2786. >
  2787. <span>{this.state.isMembers?'是':'否'}</span>
  2788. </FormItem>
  2789. <FormItem className="half-item"
  2790. {...formItemLayout}
  2791. label="明星"
  2792. >
  2793. <span>{this.state.star?'是':'否'}</span>
  2794. </FormItem>
  2795. <FormItem className="half-item"
  2796. {...formItemLayout}
  2797. label="会员"
  2798. >
  2799. <span>{this.state.isMember?'是':'否'}</span>
  2800. </FormItem>
  2801. <FormItem className="half-item"
  2802. {...formItemLayout}
  2803. label="会员等级"
  2804. >
  2805. <span>{getLvl(this.state.lvl)}</span>
  2806. </FormItem>
  2807. <FormItem className="half-item"
  2808. {...formItemLayout}
  2809. label="会员状态"
  2810. >
  2811. <span>{getCurrentMember(this.state.currentMemberStatus)}</span>
  2812. </FormItem>
  2813. </div>
  2814. <FormItem className="half-item"
  2815. {...formItemLayout}
  2816. label="业务认证"
  2817. >
  2818. <span>{this.state.serviceCertification?'已认证':'未认证'}</span>
  2819. </FormItem>
  2820. <FormItem className="half-item"
  2821. {...formItemLayout}
  2822. label="实名认证"
  2823. >
  2824. <span>{getAuditStatus(this.state.userCertification)}</span>
  2825. </FormItem>
  2826. </Spin>
  2827. </Form>
  2828. }
  2829. </div>
  2830. </TabPane>
  2831. <TabPane tab="客户拜访" key="4">
  2832. <div className="clearfix">
  2833. <Spin spinning={this.state.loading}>
  2834. <Table
  2835. pagination={false}
  2836. columns={this.state.visitsList}
  2837. dataSource={this.state.visitArrList}
  2838. onRowClick={this.VisitRowClick}
  2839. />
  2840. </Spin>
  2841. </div>
  2842. </TabPane>
  2843. <TabPane tab="业务意向" key="5">
  2844. <div className="clearfix">
  2845. <Spin spinning={this.state.loading}>
  2846. <Table
  2847. pagination={this.state.paginationt}
  2848. columns={this.state.businessIntentionList}
  2849. dataSource={this.state.dataBusiness}
  2850. />
  2851. </Spin>
  2852. </div>
  2853. </TabPane>
  2854. <TabPane tab="业务订单" key="6">
  2855. </TabPane>
  2856. <TabPane tab="技术需求" key="7">
  2857. </TabPane>
  2858. <TabPane tab="技术成果" key="8">
  2859. </TabPane>
  2860. <TabPane tab="技术专家" key="9">
  2861. </TabPane>
  2862. </Tabs>
  2863. </Modal>
  2864. <Modal
  2865. className="customeDetails"
  2866. footer=''
  2867. title="拜访详情"
  2868. width='1000px'
  2869. visible={this.state.visitModul}
  2870. onOk={this.visitOk}
  2871. onCancel={this.visitCancel}
  2872. >
  2873. <Form horizontal id="demand-form" onSubmit={this.visitSubmit}>
  2874. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  2875. <div className="clearfix">
  2876. <FormItem className="half-item"
  2877. {...formItemLayout}
  2878. label="拜访方式" >
  2879. <Radio.Group value={this.state.contactType} onChange={(e) => {
  2880. this.setState({ contactType: e.target.value })
  2881. }}>
  2882. <Radio value={0}>外出</Radio>
  2883. <Radio value={1}>电话</Radio>
  2884. <Radio value={2}>QQ</Radio>
  2885. <Radio value={3}>微信</Radio>
  2886. <Radio value={4}>邮箱</Radio>
  2887. </Radio.Group>
  2888. </FormItem>
  2889. <FormItem className="half-item"
  2890. {...formItemLayout}
  2891. >
  2892. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  2893. </FormItem>
  2894. <div className="clearfix">
  2895. <FormItem className="half-item"
  2896. {...formItemLayout}
  2897. label="客户姓名"
  2898. >
  2899. <span>{this.state.identifyName}</span>
  2900. </FormItem>
  2901. <FormItem className="half-item"
  2902. {...formItemLayout}
  2903. label="拜访人"
  2904. >
  2905. <span>{this.state.adminName}</span>
  2906. </FormItem>
  2907. <FormItem className="half-item"
  2908. {...formItemLayout}
  2909. label="当前联系人"
  2910. >
  2911. <span>{this.state.contacts}</span>
  2912. </FormItem>
  2913. {this.state.contacts?<span></span>:
  2914. <FormItem className="half-item"
  2915. {...formItemLayout}
  2916. label="联系人"
  2917. >
  2918. <Select placeholder="选择联系人" style={{ width: 140 }}
  2919. value={this.state.lastName}
  2920. onChange={this.hundleName}>
  2921. {this.state.orderStatusOption}
  2922. </Select>
  2923. </FormItem>
  2924. }
  2925. <FormItem className="half-item"
  2926. {...formItemLayout}
  2927. label="拜访时间"
  2928. >
  2929. <span>{this.state.followTime}</span>
  2930. </FormItem>
  2931. <FormItem className="half-item"
  2932. {...formItemLayout}
  2933. label="联系电话"
  2934. >
  2935. <span>{this.state.nub}</span>
  2936. </FormItem>
  2937. </div>
  2938. <div className="clearfix">
  2939. <FormItem
  2940. labelCol={{ span: 4 }}
  2941. wrapperCol={{ span: 16 }}
  2942. label="拜访备注" >
  2943. <Input type="textarea" rows={4} value={this.state.result}
  2944. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  2945. </FormItem>
  2946. </div>
  2947. <div className="clearfix">
  2948. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  2949. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2950. <Spin spinning={this.state.loading}>
  2951. <Table
  2952. rowKey={record => record.id}
  2953. pagination={false}
  2954. columns={this.state.intentionList}
  2955. dataSource={this.state.data}
  2956. />
  2957. </Spin>
  2958. </div>
  2959. </div>
  2960. </div>
  2961. <Button type="primary" size="large" htmlType="submit" style={{margin:'15px 35px 35px 120px'}}>保存</Button>
  2962. <Button size="large" onClick={this.visitCancel}>取消</Button>
  2963. </Spin>:<Spin spinning={this.state.loading}>
  2964. <div className="clearfix">
  2965. <FormItem className="half-item"
  2966. {...formItemLayout}
  2967. label="拜访方式" >
  2968. <span>{getContactType(String(this.state.contactType))}</span>
  2969. </FormItem>
  2970. <div className="clearfix">
  2971. <FormItem className="half-item"
  2972. {...formItemLayout}
  2973. label="客户姓名"
  2974. >
  2975. <span>{this.state.identifyName}</span>
  2976. </FormItem>
  2977. <FormItem className="half-item"
  2978. {...formItemLayout}
  2979. label="拜访人"
  2980. >
  2981. <span>{this.state.adminName}</span>
  2982. </FormItem>
  2983. <FormItem className="half-item"
  2984. {...formItemLayout}
  2985. label="当前联系人"
  2986. >
  2987. <span>{this.state.contacts}</span>
  2988. </FormItem>
  2989. <FormItem className="half-item"
  2990. {...formItemLayout}
  2991. label="拜访时间"
  2992. >
  2993. <span>{this.state.followTime}</span>
  2994. </FormItem>
  2995. <FormItem className="half-item"
  2996. {...formItemLayout}
  2997. label="联系电话"
  2998. >
  2999. <span>{this.state.nub}</span>
  3000. </FormItem>
  3001. </div>
  3002. <div className="clearfix">
  3003. <FormItem
  3004. labelCol={{ span: 4 }}
  3005. wrapperCol={{ span: 16 }}
  3006. label="拜访备注" >
  3007. <span>{this.state.result}</span>
  3008. </FormItem>
  3009. </div>
  3010. <div className="clearfix">
  3011. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  3012. <Spin spinning={this.state.loading}>
  3013. <Table
  3014. rowKey={record => record.id}
  3015. pagination={false}
  3016. columns={this.state.intentionList}
  3017. dataSource={this.state.data}
  3018. />
  3019. </Spin>
  3020. </div>
  3021. </div>
  3022. </div>
  3023. </Spin>}
  3024. </Form>
  3025. </Modal>
  3026. <Modal
  3027. footer=''
  3028. title="修改密码"
  3029. width='600px'
  3030. visible={this.state.passworldModul}
  3031. onOk={this.passworldOk}
  3032. onCancel={this.passworldCancel}
  3033. >
  3034. <div className="clearfix">
  3035. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3036. <Spin spinning={this.state.loading}>
  3037. <div className="clearfix">
  3038. <FormItem className="half-item"
  3039. {...formItemLayout}
  3040. label="原密码" >
  3041. <Input type="password" value={this.state.companyNamet1} onChange={(e) => { this.setState({ companyNamet1: e.target.value }); }} required="required" />
  3042. </FormItem>
  3043. </div>
  3044. <div className="clearfix">
  3045. <FormItem className="half-item"
  3046. {...formItemLayout}
  3047. label="新密码" >
  3048. <Input type="password" value={this.state.companyName1} onChange={(e) => { this.setState({ companyName1: e.target.value }); }} required="required" />
  3049. </FormItem>
  3050. </div>
  3051. <div className="clearfix">
  3052. <FormItem className="half-item"
  3053. {...formItemLayout}
  3054. label="确认密码" >
  3055. <Input type="password" value={this.state.companyNam1} onChange={(e) => { this.setState({ companyNam1: e.target.value }); }} required="required" />
  3056. </FormItem>
  3057. </div>
  3058. <Button type="primary" size="large" htmlType="submit" style={{margin:'15px 15px 20px 95px'}}>保存</Button>
  3059. <Button size="large" onClick={this.passworldCancel}>取消</Button>
  3060. </Spin>
  3061. </Form>
  3062. </div>
  3063. </Modal>
  3064. <Modal
  3065. footer=''
  3066. width='800px'
  3067. title="新增联系人"
  3068. visible={this.state.addcontactModul}
  3069. onOk={this.addcontactModulOK}
  3070. onCancel={this.addcontactModulcancel}
  3071. >
  3072. <Form horizontal onSubmit={this.submitcontactman} id="demand-form">
  3073. <Spin spinning={this.state.loading}>
  3074. <Row>
  3075. <FormItem
  3076. labelCol={{ span: 3 }}
  3077. wrapperCol={{ span: 14 }}
  3078. label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
  3079. <Radio.Group value={this.state.newsex} onChange={(e) => {
  3080. this.setState({ newsex: e.target.value })
  3081. }}>
  3082. <Radio value='男'>男</Radio>
  3083. <Radio value='女'>女</Radio>
  3084. </Radio.Group>
  3085. </FormItem>
  3086. </Row>
  3087. <Row style={{ paddingLeft:'50px' }}>
  3088. <Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>
  3089. <Col span={8}>
  3090. <Input value={this.state.newname} required="required"
  3091. onChange={(e) => { this.setState({ newname: e.target.value }) }} />
  3092. </Col>
  3093. <Col span={2} style={{ marginLeft: '50px' }}><span style={{color:'red'}}>*</span>手机:</Col>
  3094. <Col span={8}>
  3095. <Input value={this.state.newmobile} required="required"
  3096. onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />
  3097. </Col>
  3098. </Row>
  3099. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3100. <Col span={2}>微信:</Col>
  3101. <Col span={8}>
  3102. <Input value={this.state.newwechat}
  3103. onChange={(e) => { this.setState({ newwechat: e.target.value }) }} />
  3104. </Col>
  3105. <Col span={2} style={{ marginLeft: '50px' }}>Q Q:</Col>
  3106. <Col span={8}>
  3107. <Input value={this.state.newqq}
  3108. onChange={(e) => { this.setState({ newqq: e.target.value }) }} />
  3109. </Col>
  3110. </Row>
  3111. <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
  3112. <Col span={2}>部门:</Col>
  3113. <Col span={8}>
  3114. <Input value={this.state.newdepatrment}
  3115. onChange={(e) => { this.setState({ newdepatrment: e.target.value }) }} />
  3116. </Col>
  3117. <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
  3118. <Col span={8}>
  3119. <Input value={this.state.newposition}
  3120. onChange={(e) => { this.setState({ newposition: e.target.value }) }} />
  3121. </Col>
  3122. </Row>
  3123. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3124. <Col span={2}>邮箱:</Col>
  3125. <Col span={8}>
  3126. <Input value={this.state.newemail}
  3127. onChange={(e) => { this.setState({ newemail: e.target.value }) }} />
  3128. </Col>
  3129. </Row>
  3130. <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
  3131. <Button className="set-submit" type="primary" htmlType="submit" id="change_keep" style={{marginLeft:'60px'}}>保存</Button>
  3132. <Button className="set-submit" type="ghost" onClick={this.addcontactModulcancel} id='change_rem'>取消</Button>
  3133. </Row>
  3134. </Spin>
  3135. </Form>
  3136. </Modal>
  3137. <Modal
  3138. footer=''
  3139. title="业务意向详情"
  3140. width='1000px'
  3141. visible={this.state.businessModul}
  3142. onOk={this.businessIntentionOk}
  3143. onCancel={this.businessIntentionCancel}
  3144. >
  3145. <div className="clearfix">
  3146. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3147. <Spin spinning={this.state.loading}>
  3148. <div className="clearfix">
  3149. <FormItem className="half-item"
  3150. {...formItemLayout}
  3151. label="意向业务名称" >
  3152. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  3153. </FormItem>
  3154. <FormItem className="half-item"
  3155. {...formItemLayout}
  3156. label="意向时间" >
  3157. <span>{this.state.createTime}</span>
  3158. </FormItem>
  3159. <FormItem className="half-item"
  3160. {...formItemLayout}
  3161. label="客户姓名" >
  3162. <span>{this.state.identifyName}</span>
  3163. </FormItem>
  3164. <FormItem className="half-item"
  3165. {...formItemLayout}
  3166. label="营销员" >
  3167. <span>{this.state.adminName}</span>
  3168. </FormItem>
  3169. <FormItem className="half-item"
  3170. {...formItemLayout}
  3171. label="意向业务进度" >
  3172. <span>{getfllowSituation(this.state.followSituation)}</span>
  3173. </FormItem>
  3174. <FormItem className="half-item"
  3175. {...formItemLayout}
  3176. label="业务客户状态" >
  3177. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  3178. </FormItem>
  3179. </div>
  3180. <div className="clearfix">
  3181. <FormItem className="half-item"
  3182. {...formItemLayout}
  3183. label="业务意向说明" >
  3184. <span>{this.state.remarks}</span>
  3185. </FormItem>
  3186. </div>
  3187. <div className="clearfix">
  3188. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  3189. <div className="clearfix">
  3190. <Spin spinning={this.state.loading}>
  3191. <Table
  3192. pagination={this.state.paginations}
  3193. columns={this.state.businessFollowList}
  3194. dataSource={this.state.visitArrList}
  3195. />
  3196. </Spin>
  3197. </div>
  3198. </div>
  3199. </Spin>
  3200. </Form>
  3201. </div>
  3202. </Modal>
  3203. <Modal
  3204. footer=''
  3205. title="业务跟进详情"
  3206. width='600px'
  3207. visible={this.state.businessFollowModul}
  3208. onOk={this.businessFollowOk}
  3209. onCancel={this.businessFollowCancel}
  3210. >
  3211. <div className="clearfix">
  3212. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3213. <Spin spinning={this.state.loading}>
  3214. <div className="clearfix">
  3215. <FormItem className="half-item"
  3216. {...formItemLayout}
  3217. label="意向业务名称" >
  3218. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  3219. </FormItem>
  3220. <FormItem className="half-item"
  3221. {...formItemLayout}
  3222. label="意向时间" >
  3223. <span>{this.state.createTimes}</span>
  3224. </FormItem>
  3225. <FormItem className="half-item"
  3226. {...formItemLayout}
  3227. label="客户姓名" >
  3228. <span>{this.state.identifyNames}</span>
  3229. </FormItem>
  3230. <FormItem className="half-item"
  3231. {...formItemLayout}
  3232. label="营销员" >
  3233. <span>{this.state.adminNames}</span>
  3234. </FormItem>
  3235. <FormItem className="half-item"
  3236. {...formItemLayout}
  3237. label="意向业务进度" >
  3238. <span>{getfllowSituation(this.state.followSituations)}</span>
  3239. </FormItem>
  3240. <FormItem className="half-item"
  3241. {...formItemLayout}
  3242. label="业务客户状态" >
  3243. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  3244. </FormItem>
  3245. </div>
  3246. <div className="clearfix">
  3247. <FormItem className="half-item"
  3248. {...formItemLayout}
  3249. label="业务意向说明" >
  3250. <span>{this.state.remarkss}</span>
  3251. </FormItem>
  3252. </div>
  3253. <div className="clearfix">
  3254. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  3255. <FormItem className="half-item"
  3256. {...formItemLayout}
  3257. label="拜访方式" >
  3258. <span>{getContactType(this.state.contactTypes)}</span>
  3259. </FormItem>
  3260. <FormItem className="half-item"
  3261. {...formItemLayout}
  3262. label="联系人" >
  3263. <span>{this.state.contactss}</span>
  3264. </FormItem>
  3265. <FormItem className="half-item"
  3266. {...formItemLayout}
  3267. label="联系电话" >
  3268. <span>{this.state.contactMobiles}</span>
  3269. </FormItem>
  3270. <FormItem className="half-item"
  3271. {...formItemLayout}
  3272. label="拜访时间" >
  3273. <span>{this.state.followTimes}</span>
  3274. </FormItem>
  3275. <FormItem className="half-item"
  3276. {...formItemLayout}
  3277. label="拜访人" >
  3278. <span>{this.state.adminNames}</span>
  3279. </FormItem>
  3280. <div className="clearfix">
  3281. <FormItem className="half-item"
  3282. {...formItemLayout}
  3283. label="拜访备注" >
  3284. <span>{this.state.results}</span>
  3285. </FormItem>
  3286. </div>
  3287. </div>
  3288. </Spin>
  3289. </Form>
  3290. </div>
  3291. </Modal>
  3292. </div >
  3293. );
  3294. }
  3295. }));
  3296. export default QueryCustomer;