queryCustomer.jsx 124 KB

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