publicManagesOne.jsx 126 KB

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