queryCustomer.jsx 122 KB

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