expertRelease.jsx 124 KB

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