personalManages.jsx 124 KB

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