companyCustomer.jsx 133 KB

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