publicManages.jsx 119 KB

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