expertManage.jsx 123 KB

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