publicManagesOne.jsx 126 KB

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