expertReview.jsx 123 KB

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