publicQuery.jsx 93 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415
  1. import React from 'react';
  2. import { Radio, Icon, Button, Cascader, Input, Select, Tabs, Spin, Popconfirm, Table, Switch, message, DatePicker, Modal, Upload, Form, Row, Col } from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import moment from 'moment';
  6. import './myClient.less';
  7. import { citySelect, provinceList, areaSelect } from '../../../NewDicProvinceList';
  8. const { Column, ColumnGroup } = Table;
  9. const TabPane = Tabs.TabPane;
  10. const monthFormat = 'YYYY/MM';
  11. import CustomerDetail from './myClientDesc.jsx';
  12. import QueryCustomer from './publicQueryOne.jsx';
  13. import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js';
  14. import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
  15. //图片组件
  16. const PicturesWalls = React.createClass({
  17. getInitialState() {
  18. return {
  19. previewVisible: false,
  20. previewImage: '',
  21. fileList: [],
  22. }
  23. },
  24. handleCancel() {
  25. this.setState({ previewVisible: false })
  26. },
  27. handlePreview(file) {
  28. this.setState({
  29. previewImage: file.url || file.thumbUrl,
  30. previewVisible: true,
  31. });
  32. },
  33. handleChange(info) {
  34. let fileList = info.fileList;
  35. this.setState({ fileList });
  36. this.props.fileList(fileList);
  37. },
  38. componentWillReceiveProps(nextProps) {
  39. this.state.fileList = nextProps.pictureUrl;
  40. },
  41. render() {
  42. const { previewVisible, previewImage, fileList } = this.state;
  43. const uploadButton = (
  44. <div>
  45. <Icon type="plus" />
  46. <div className="ant-upload-text">点击上传</div>
  47. </div>
  48. );
  49. return(
  50. <div style={{display:"inline-block"}}>
  51. <Upload
  52. action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
  53. data={{ 'sign': '' }}
  54. listType="picture-card"
  55. fileList={fileList}
  56. onPreview={this.handlePreview}
  57. onChange={this.handleChange} >
  58. {fileList.length >= 1 ? null : uploadButton}
  59. </Upload>
  60. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  61. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  62. </Modal>
  63. </div>
  64. );
  65. }
  66. });
  67. const PublicCustomer = Form.create()(React.createClass({
  68. loadData(pageNo) {
  69. this.state.data = [];
  70. this.setState({
  71. loading: true
  72. });
  73. $.ajax({
  74. method: "post",
  75. dataType: "json",
  76. crossDomain: false,
  77. url: globalConfig.context + '/api/admin/customer/listPublicOrganizationCustomer',
  78. data: {
  79. pageNo: pageNo || 1,
  80. pageSize: this.state.pagination.pageSize,
  81. type: this.state.typeSearch, //名称1
  82. name: this.state.nameSearch,
  83. shareType: this.state.shareTypeSearch,
  84. province: (this.state.addressSearch).length ? this.state.addressSearch[0] : this.state.provinceSearch,
  85. city: (this.state.addressSearch).length ? this.state.addressSearch[1] : '',
  86. //area: this.state.addressSearch?this.state.addressSearch[2].value:'',
  87. status: this.state.statusSearch,
  88. industry: this.state.industrySearch,
  89. businessAudit: this.state.serviceCertificationSearch,
  90. auditStatus: this.state.userCertificationSearch,
  91. currentMemberStatus: this.state.currentMemberStatusSearch,
  92. international: this.state.internationalSearch,
  93. lvl: this.state.lvlSearch,
  94. international: this.state.internationalSearch,
  95. societyTag: this.state.societyTagSearch,
  96. listed: this.state.listedSearch, //是否上市
  97. highTechZone: this.state.highTechZoneSearch, //是否高新
  98. startDate: this.state.releaseDate[0],
  99. endDate: this.state.releaseDate[1],
  100. },
  101. success: function(data) {
  102. let theArr = [];
  103. if(data.error.length || data.data.list == "") {
  104. if(data.error && data.error.length) {
  105. message.warning(data.error[0].message);
  106. };
  107. } else {
  108. for(let i = 0; i < data.data.list.length; i++) {
  109. let thisdata = data.data.list[i];
  110. theArr.push({
  111. key: i,
  112. id: thisdata.uid,
  113. type: thisdata.type,
  114. name: thisdata.name,
  115. status: thisdata.status,
  116. contacts: thisdata.contacts,
  117. contactMobile: thisdata.contactMobile,
  118. industry: thisdata.industry,
  119. createTime: thisdata.createTime,
  120. businessAudit: thisdata.businessAudit,
  121. auditStatus: thisdata.auditStatus,
  122. lvl: thisdata.lvl,
  123. shareType: thisdata.shareType,
  124. societyTag: thisdata.societyTag,
  125. currentMemberStatus: thisdata.currentMemberStatus,
  126. international: thisdata.international,
  127. listed: thisdata.listed,
  128. adminName: thisdata.adminName,
  129. highTechZone: thisdata.highTechZone,
  130. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  131. });
  132. };
  133. this.state.pagination.current = data.data.pageNo;
  134. this.state.pagination.total = data.data.totalCount;
  135. };
  136. if(!data.data.list.length){
  137. this.state.pagination.current=0;
  138. this.state.pagination.total=0;
  139. }
  140. this.setState({
  141. dataSource: theArr,
  142. pagination: this.state.pagination,
  143. selectedRowKeys:[]
  144. });
  145. }.bind(this),
  146. }).always(function() {
  147. this.setState({
  148. loading: false
  149. });
  150. }.bind(this));
  151. },
  152. getInitialState() {
  153. return {
  154. addressSearch: [],
  155. orgCodeUrl: [],
  156. companyLogoUrl: [],
  157. visible: false,
  158. searchMore: true,
  159. releaseDate: [],
  160. releaseDate: [],
  161. selectedRowKeys: [],
  162. selectedRowKey: [],
  163. selectedRows: [],
  164. loading: false,
  165. pagination: {
  166. defaultCurrent: 1,
  167. defaultPageSize: 10,
  168. showQuickJumper: true,
  169. pageSize: 10,
  170. onChange: function(page) {
  171. this.loadData(page);
  172. }.bind(this),
  173. showTotal: function(total) {
  174. return '共' + total + '条数据';
  175. }
  176. },
  177. paginations: {
  178. defaultCurrent: 1,
  179. defaultPageSize: 10,
  180. showQuickJumper: true,
  181. pageSize: 10,
  182. onChange: function(page) {
  183. this.loadVisit(page);
  184. }.bind(this),
  185. showTotal: function(total) {
  186. return '共' + total + '条数据';
  187. }
  188. },
  189. paginationsy: {
  190. defaultCurrent: 1,
  191. defaultPageSize: 10,
  192. showQuickJumper: true,
  193. pageSize: 10,
  194. onChange: function(page) {
  195. this.loadBfVisit(page, false);
  196. }.bind(this),
  197. showTotal: function(total) {
  198. return '共' + total + '条数据';
  199. }
  200. },
  201. paginationt: {
  202. defaultCurrent: 1,
  203. defaultPageSize: 10,
  204. showQuickJumper: true,
  205. pageSize: 10,
  206. onChange: function(page) {
  207. this.BusinessList(page, false);
  208. }.bind(this),
  209. showTotal: function(total) {
  210. return '共' + total + '条数据';
  211. }
  212. },
  213. //业务意向列表
  214. intentionList: [{
  215. title: '业务名称',
  216. dataIndex: 'businessGlossoryId',
  217. key: 'businessGlossoryId',
  218. render: (text, record, index) => {
  219. return adminData.isSuperAdmin ? <Select placeholder="选择业务名称" disabled={record.id?true:false} value={record.businessGlossoryId} onChange={(e) => { record.businessGlossoryId = e; this.setState({ data: this.state.data }); }}>
  220. {
  221. intentionalService.map(function (item) {
  222. return <Select.Option key={item.value} >{item.key}</Select.Option>
  223. })
  224. }
  225. </Select> : <span>{getCompanyIntention(text)}</span>
  226. }
  227. },
  228. {
  229. title: '最新进度',
  230. dataIndex: 'followSituation',
  231. key: 'followSituation',
  232. render: (text, record, index) => {
  233. return adminData.isSuperAdmin ? <Select placeholder="选择最新进度" value={record.followSituation} onChange={(e) => { record.followSituation = e; this.setState({ data: this.state.data }); }}>
  234. {
  235. newFollow.map(function (item) {
  236. return <Select.Option key={item.value} >{item.key}</Select.Option>
  237. })
  238. }
  239. </Select> : <span>{getfllowSituation(text)}</span>
  240. }
  241. }, {
  242. title: '最新状态',
  243. dataIndex: 'customerStatus',
  244. key: 'customerStatus',
  245. render: (text, record, index) => {
  246. return adminData.isSuperAdmin ? <Select value={record.customerStatus} placeholder="选择最新状态" onChange={(e) => { record.customerStatus = e; this.setState({ data: this.state.data }); }}>
  247. {
  248. customerStatus.map(function (item) {
  249. return <Select.Option key={item.value} >{item.key}</Select.Option>
  250. })
  251. }
  252. </Select> : <span>{getcustomerStatue(text)}</span>
  253. }
  254. }, {
  255. title: '跟进说明',
  256. dataIndex: 'remarks',
  257. key: 'remarks',
  258. render: (text, record, index) => {
  259. return adminData.isSuperAdmin ? <Input value={record.remarks} placeholder="跟进说明"
  260. onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
  261. style={{width:'120px'}}/> : <span>{text}</span>
  262. }
  263. }
  264. ],
  265. businessIntentionList: [{
  266. title: '意向时间',
  267. dataIndex: 'createTime',
  268. key: 'createTime'
  269. }, {
  270. title: '客户名称',
  271. dataIndex: 'identifyName',
  272. key: 'identifyName'
  273. }, {
  274. title: '业务名',
  275. dataIndex: 'businessName',
  276. key: 'businessName'
  277. }, {
  278. title: '营销员',
  279. dataIndex: 'adminName',
  280. key: 'adminName'
  281. }, {
  282. title: '业务意向进度',
  283. dataIndex: 'followSituation',
  284. key: 'followSituation',
  285. render: text => { return getfllowSituation(text) }
  286. }, {
  287. title: '客户状态',
  288. dataIndex: 'customerStatus',
  289. key: 'customerStatus',
  290. render: text => { return getcustomerStatue(text) }
  291. }, {
  292. title: '操作',
  293. dataIndex: 'ooo',
  294. key: 'ooo',
  295. render: (text, record) => { return(<Button onClick={(e)=>{this.businessIntentionDetails(record)}}>查看</Button>) }
  296. }],
  297. businessFollowList: [{
  298. title: '跟进时间',
  299. dataIndex: 'followTime',
  300. key: 'followTime',
  301. }, {
  302. title: '营销员',
  303. dataIndex: 'adminName',
  304. key: 'adminName',
  305. }, {
  306. title: '业务意向进度',
  307. dataIndex: 'followSituation',
  308. key: 'followSituation',
  309. render: text => { return getfllowSituation(text) }
  310. }, {
  311. title: '客户状态',
  312. dataIndex: 'customerStatus',
  313. key: 'customerStatus',
  314. render: text => { return getcustomerStatue(text) }
  315. },
  316. {
  317. title: '拜访方式',
  318. dataIndex: 'contactType',
  319. key: 'contactType',
  320. render: text => { return getContactType(text) }
  321. }, {
  322. title: '联系人',
  323. dataIndex: 'contacts',
  324. key: 'contacts',
  325. },
  326. {
  327. title: '联系电话',
  328. dataIndex: 'contactMobile',
  329. key: 'contactMobile',
  330. }, {
  331. title: '操作',
  332. dataIndex: 'ooo',
  333. key: 'ooo',
  334. render: (text, record) => { return(<Button onClick={(e)=>{this.businessFollowDetails(record)}}>查看</Button>) }
  335. }
  336. ],
  337. visitsList: [{
  338. title: '拜访时间',
  339. dataIndex: 'followTime',
  340. key: 'followTime'
  341. }, {
  342. title: '客户名称',
  343. dataIndex: 'identifyName',
  344. key: 'identifyName'
  345. }, {
  346. title: '拜访方式',
  347. dataIndex: 'contactType',
  348. key: 'contactType',
  349. render: text => { return getContactType(text) }
  350. }, {
  351. title: '联系人',
  352. dataIndex: 'contacts',
  353. key: 'contacts'
  354. }, {
  355. title: '联系电话',
  356. dataIndex: 'contactMobile',
  357. key: 'contactMobile'
  358. }, {
  359. title: '拜访人',
  360. dataIndex: 'adminName',
  361. key: 'adminName'
  362. }, {
  363. title: '拜访说明',
  364. dataIndex: 'result',
  365. key: 'result'
  366. }],
  367. ContactsLists: [{
  368. title: '姓名',
  369. dataIndex: 'name',
  370. key: 'name',
  371. render: (text, record, index) => {
  372. return adminData.isSuperAdmin ? <Input value={record.name} placeholder="姓名" key={record.id} required="required"
  373. onChange={(e) => { record.name = e.target.value;
  374. this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  375. }
  376. }, {
  377. title: '联系人部门',
  378. dataIndex: 'depatrment',
  379. key: 'depatrment',
  380. render: (text, record, index) => {
  381. return adminData.isSuperAdmin ? <Input value={record.depatrment} placeholder="联系人部门" key={record.id}
  382. onChange={(e) => { record.depatrment = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  383. }
  384. }, {
  385. title: '联系人职务',
  386. dataIndex: 'position',
  387. key: 'position',
  388. render: (text, record, index) => {
  389. return adminData.isSuperAdmin ? <Input value={record.position} placeholder="联系人职务" key={record.id}
  390. onChange={(e) => { record.position = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  391. }
  392. }, {
  393. title: '手机号码',
  394. dataIndex: 'mobile',
  395. key: 'mobile',
  396. render: (text, record, index) => {
  397. return adminData.isSuperAdmin ? <Input value={record.mobile} placeholder="手机号码" key={record.id} required="required"
  398. onChange={(e) => { record.mobile = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  399. }
  400. }, {
  401. title: '微信',
  402. dataIndex: 'wechat',
  403. key: 'wechat',
  404. render: (text, record, index) => {
  405. return adminData.isSuperAdmin ? <Input value={record.wechat} placeholder="微信" key={record.id}
  406. onChange={(e) => { record.wechat = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  407. }
  408. }, {
  409. title: '联系人QQ',
  410. dataIndex: 'qq',
  411. key: 'qq',
  412. render: (text, record, index) => {
  413. return adminData.isSuperAdmin ? <Input value={record.qq} placeholder="联系人QQ" key={record.id}
  414. onChange={(e) => { record.qq = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  415. }
  416. }, {
  417. title: '电子邮箱',
  418. dataIndex: 'email',
  419. key: 'email',
  420. render: (text, record, index) => {
  421. return adminData.isSuperAdmin ? <Input value={record.email} placeholder="电子邮箱" key={record.id}
  422. onChange={(e) => { record.email = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  423. }
  424. }
  425. ],
  426. columnsman: [{
  427. title: '姓名',
  428. dataIndex: 'name',
  429. key: 'name'
  430. }, {
  431. title: '手机号码',
  432. dataIndex: 'mobile',
  433. key: 'mobile'
  434. }],
  435. columns: [{
  436. title: '客户名称',
  437. dataIndex: 'name',
  438. key: 'name',
  439. }, {
  440. title: '地区',
  441. dataIndex: 'locationProvince',
  442. key: 'locationProvince',
  443. },
  444. {
  445. title: '行业',
  446. dataIndex: 'industry',
  447. key: 'industry',
  448. },
  449. {
  450. title: '社会性质',
  451. dataIndex: 'societyTag',
  452. key: 'societyTag',
  453. render: text => { return getSocialAttribute(text) }
  454. },
  455. {
  456. title: '公共客户',
  457. dataIndex: 'shareType',
  458. key: 'shareType',
  459. render: (text, record) => { return record.shareType == '1' ? <span>公共客户</span> : <span>个人客户</span> }
  460. },
  461. {
  462. title: '创建时间',
  463. dataIndex: 'createTime',
  464. key: 'createTime',
  465. },
  466. {
  467. title: '所属人',
  468. dataIndex: 'adminName',
  469. key: 'adminName',
  470. },
  471. {
  472. title: '业务认证',
  473. dataIndex: 'businessAudit',
  474. key: 'businessAudit',
  475. render: text => { return getCertification(text) }
  476. },
  477. {
  478. title: '实名认证',
  479. dataIndex: 'auditStatus',
  480. key: 'auditStatus',
  481. render: text => { return getAuditStatus(text) }
  482. },
  483. {
  484. title: '是否高新',
  485. dataIndex: 'highTechZone',
  486. key: 'highTechZone',
  487. render: text => { return getWhether(text) }
  488. },
  489. {
  490. title: '是否上市',
  491. dataIndex: 'listed',
  492. key: 'listed',
  493. render: text => { return getWhether(text) }
  494. },
  495. {
  496. title: '是否国际',
  497. dataIndex: 'international',
  498. key: 'international',
  499. render: text => { return getWhether(text) }
  500. },
  501. {
  502. title: '会员等级',
  503. dataIndex: 'lvl',
  504. key: 'lvl',
  505. render: text => { return getLvl(text) }
  506. },
  507. {
  508. title: '会员状态',
  509. dataIndex: 'currentMemberStatus',
  510. key: 'currentMemberStatus',
  511. render: text => { return getCurrentMember(text) }
  512. }
  513. ],
  514. data: [],
  515. dataman: [],
  516. dataSource: [],
  517. visitArrList: [],
  518. searchTime: [, ]
  519. };
  520. },
  521. //tab2获取联系人详情
  522. contactLists(ids) {
  523. this.setState({
  524. loading: true
  525. });
  526. $.ajax({
  527. method: "get",
  528. dataType: "json",
  529. crossDomain: false,
  530. url: globalConfig.context + '/api/admin/customer/findCustomerContacts',
  531. data: {
  532. uid: ids, //名称1
  533. },
  534. success: function(data) {
  535. let theArr = [];
  536. if(data.error.length || data.data.list == "") {
  537. if(data.error && data.error.length) {
  538. message.warning(data.error[0].message);
  539. };
  540. } else {
  541. for(let i = 0; i < data.data.length; i++) {
  542. let thisdata = data.data[i];
  543. theArr.push({
  544. id: thisdata.id,
  545. name: thisdata.name,
  546. mobile: thisdata.mobile,
  547. email: thisdata.email,
  548. qq: thisdata.qq,
  549. wechat: thisdata.wechat,
  550. depatrment: thisdata.depatrment,
  551. position: thisdata.position,
  552. });
  553. };
  554. };
  555. this.setState({
  556. contactList: theArr,
  557. });
  558. }.bind(this),
  559. }).always(function() {
  560. this.setState({
  561. loading: false
  562. });
  563. }.bind(this));
  564. },
  565. getOrgCodeUrl(e) {
  566. this.setState({ orgCodeUrl: e });
  567. },
  568. getCompanyLogoUrl(e) {
  569. this.setState({ companyLogoUrl: e });
  570. },
  571. componentWillMount() {
  572. //城市
  573. let Province = [];
  574. provinceList.map(function(item) {
  575. var id = String(item.id)
  576. Province.push(
  577. <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
  578. )
  579. });
  580. //行业
  581. let intentionalArr = [];
  582. industry.map(function(item) {
  583. intentionalArr.push(
  584. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  585. )
  586. });
  587. //会员等级
  588. let lvlArr = [];
  589. lvl.map(function(item) {
  590. lvlArr.push(
  591. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  592. )
  593. });
  594. //会员状态customerStatus
  595. let currentMemberArr = [];
  596. currentMember.map(function(item) {
  597. currentMemberArr.push(
  598. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  599. )
  600. });
  601. this.state.Provinces = Province;
  602. this.state.intentionalOption = intentionalArr;
  603. this.state.lvlArrOption = lvlArr;
  604. this.state.currentMemberArrOption = currentMemberArr;
  605. this.loadData();
  606. },
  607. search() {
  608. this.loadData();
  609. },
  610. reset() {
  611. this.state.internationalSearch = undefined;
  612. this.state.shareTypeSearch = undefined;
  613. this.state.typeSearch = undefined; //名称1
  614. this.state.nameSearch = '';
  615. this.state.addressSearch = [];
  616. this.state.provinceSearch = undefined;
  617. this.state.citySearch = undefined;
  618. this.state.statusSearch = undefined;
  619. this.state.contactsSearch = undefined;
  620. this.state.contactMobileSearch = undefined;
  621. this.state.industrySearch = undefined;
  622. this.state.serviceCertificationSearch = undefined;
  623. this.state.userCertificationSearch = undefined;
  624. this.state.currentMemberStatusSearch = undefined;
  625. this.state.lvlSearch = undefined;
  626. this.state.listedSearch = undefined;
  627. this.state.societyTagSearch = undefined;
  628. this.state.highTechZoneSearch = undefined;
  629. this.state.releaseDate[0] = undefined;
  630. this.state.releaseDate[1] = undefined;
  631. this.loadData();
  632. },
  633. searchSwitch() {
  634. this.setState({
  635. searchMore: !this.state.searchMore
  636. });
  637. },
  638. //整行点击
  639. tableRowClick(record, index) {
  640. this.state.RowData = record;
  641. this.detailsModalOk(record);
  642. this.setState({
  643. callnub:'1',
  644. selectedRowKeys: [],
  645. rowId: record.id,
  646. })
  647. },
  648. VisitRowClick(record, index) {
  649. this.state.keys = false;
  650. this.state.RowData = record;
  651. this.setState({
  652. selectedRowKeys: [],
  653. delectId: record.followId,
  654. })
  655. },
  656. //点击整行查看详情
  657. //查看基本详情基本信息
  658. loadInformation(record) {
  659. this.RowClick;
  660. $.ajax({
  661. method: "get",
  662. dataType: "json",
  663. crossDomain: false,
  664. url: globalConfig.context + '/api/admin/customer/findOrganizationCustomerDetail',
  665. data: {
  666. uid: record
  667. },
  668. success: function(data) {
  669. let thisData = data.data;
  670. if(!thisData) {
  671. if(data.error && data.error.length) {
  672. message.warning(data.error[0].message);
  673. };
  674. thisData = {};
  675. };
  676. let ProvinceCityArr = [];
  677. let ProvinceS = thisData.locationProvince; //getprovince
  678. let citys = thisData.locationCity;
  679. let Areas = thisData.locationArea;
  680. ProvinceCityArr.push(ProvinceS, citys, Areas);
  681. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  682. this.setState({
  683. InformationId: thisData.id,
  684. InformationUid: thisData.uid,
  685. identifyName: thisData.identifyName,
  686. listed: thisData.listed,
  687. highTechZone: thisData.highTechZone,
  688. orgCodeUrl: thisData.orgCodeUrl ? splitUrl(thisData.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [],
  689. companyLogoUrl: thisData.companyLogoUrl ? splitUrl(thisData.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],
  690. dataInformation: thisData,
  691. ProvinceCity: ProvinceCityArr,
  692. proviceCityArea: ProvinceS ? cityArea : '',
  693. industry: String(thisData.industry) == 'null' ? undefined : String(thisData.industry),
  694. international: thisData.international,
  695. societyTag: thisData.societyTag,
  696. introduction: thisData.introduction,
  697. postalAddress: thisData.postalAddress,
  698. contactsFixedTel: thisData.contactsFixedTel,
  699. contactsFax: thisData.contactsFax,
  700. registeredCapital: thisData.registeredCapital,
  701. enterpriseScale: thisData.enterpriseScale,
  702. legalPerson: thisData.legalPerson,
  703. legalPersonIdCard: thisData.legalPersonIdCard,
  704. legalPersonTel: thisData.legalPersonTel,
  705. legalPersonEmail: thisData.legalPersonEmail,
  706. businessScope: thisData.businessScope,
  707. orgCode: thisData.orgCode,
  708. investment: thisData.investment,
  709. auditStatus: thisData.auditStatus?String(thisData.auditStatus):undefined,
  710. businessAudit: thisData.businessAudit
  711. });
  712. }.bind(this),
  713. }).always(function() {
  714. this.setState({
  715. loading: false
  716. });
  717. }.bind(this));
  718. },
  719. //tab3账户信息请求数据
  720. httpAccount(record) {
  721. this.RowClick;
  722. $.ajax({
  723. method: "get",
  724. dataType: "json",
  725. crossDomain: false,
  726. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  727. data: {
  728. uid: record
  729. },
  730. success: function(data) {
  731. let thisData = data.data;
  732. if(!thisData) {
  733. if(data.error && data.error.length) {
  734. message.warning(data.error[0].message);
  735. };
  736. thisData = {};
  737. };
  738. let sourcecustomer = ''
  739. switch(String(thisData.source)) {
  740. case '0':
  741. sourcecustomer = '注册客户'
  742. break;
  743. case '1':
  744. sourcecustomer = '录入客户'
  745. break;
  746. }
  747. this.setState({
  748. Accountuid: thisData.id,
  749. mobile: thisData.mobile,
  750. nickname: thisData.nickname,
  751. email: thisData.email,
  752. type: getcustomerTyp(String(thisData.type)),
  753. source: sourcecustomer,
  754. isMember: thisData.isMember,
  755. currentMemberStatus: String(thisData.currentMemberStatus),
  756. lvl: String(thisData.lvl),
  757. status: String(thisData.status),
  758. createTimes: thisData.createTimes,
  759. });
  760. }.bind(this),
  761. }).always(function() {
  762. this.setState({
  763. loading: false
  764. });
  765. }.bind(this));
  766. },
  767. detailsModalOk(e) {
  768. this.setState({ modal5Visible: true }); //需要一个请求数据
  769. this.loadInformation(e.id);
  770. this.contactLists(e.id);
  771. this.httpAccount(e.id);
  772. this.loadBfVisit(1, e.id);
  773. this.BusinessList(1, e.id);
  774. },
  775. //点击消失函数
  776. detailsModal(e) {
  777. this.setState({
  778. modal5Visible: false
  779. });
  780. },
  781. //拜访modul函数
  782. visitOk(e) {
  783. this.setState({
  784. visitModul: false
  785. });
  786. this.loadVisit()
  787. },
  788. visitCancel(e) {
  789. this.setState({
  790. visitModul: false
  791. });
  792. },
  793. //当选择联系人的列表变化时,则执行
  794. hundleName(e) {
  795. let changNub = this.state.telNum[e];
  796. this.setState({
  797. nub: this.state.telNum[e],
  798. lastName: e,
  799. });
  800. },
  801. //添加新业务及单位客户详情新增
  802. addNew() {
  803. this.state.data.push({
  804. customerStatus: undefined,
  805. businessGlossoryId: undefined,
  806. followSituation: undefined,
  807. remarks: '',
  808. });
  809. this.setState({
  810. data: this.state.data
  811. })
  812. },
  813. //tab5进入修改时
  814. //进入修改时
  815. listFollowUp(e) {
  816. $.ajax({
  817. method: "get",
  818. dataType: "json",
  819. crossDomain: false,
  820. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  821. data: {
  822. ufbId: e
  823. },
  824. success: function(data) {
  825. let thedata = data.data;
  826. if(!thedata) {
  827. if(data.error && data.error.length) {
  828. message.warning(data.error[0].message);
  829. };
  830. thedata = {};
  831. };
  832. this.setState({
  833. businessGlossoryIds: thedata.businessGlossoryId,
  834. followSituations: thedata.followSituation,
  835. customerStatuss: thedata.customerStatus,
  836. followTimes: thedata.followTime,
  837. createTimes: thedata.createTime,
  838. identifyNames: thedata.identifyName,
  839. contactTypes: parseInt(thedata.contactType),
  840. results: thedata.result,
  841. remarkss: thedata.remarks,
  842. adminNames: thedata.adminName,
  843. contactss: thedata.contacts,
  844. contactMobiles: thedata.contactMobile,
  845. ufbId: thedata.ufbId,
  846. followIds: thedata.followId,
  847. });
  848. }.bind(this),
  849. }).always(function() {
  850. this.setState({
  851. loading: false
  852. });
  853. }.bind(this));
  854. },
  855. passworldOk(e) {
  856. this.setState({
  857. passworldModul: false
  858. });
  859. },
  860. passworldCancel(e) {
  861. this.setState({
  862. passworldModul: false
  863. });
  864. },
  865. //修改密码保存
  866. passworldSubmit(e) {
  867. e.preventDefault();
  868. this.passworldCancel()
  869. },
  870. //新增联系人
  871. addcontactModulOK() {
  872. this.setState({
  873. addcontactModul: false
  874. });
  875. },
  876. addcontactModulcancel() {
  877. this.setState({
  878. addcontactModul: false
  879. });
  880. },
  881. //点击新增详情
  882. newContacts() {
  883. this.state.newsex =undefined;
  884. this.state.newname ='';
  885. this.state.newmobile='';
  886. this.state.newwechat='';
  887. this.state.newqq='';
  888. this.state.newdepatrment='';
  889. this.state.newposition='';
  890. this.state.newemail='';
  891. this.setState({
  892. uids: this.state.uid,
  893. addcontactModul: true
  894. });
  895. },
  896. //新增联系人保存函数
  897. submitcontactman(e) {
  898. e.preventDefault();
  899. this.setState({
  900. loading: true
  901. })
  902. $.ajax({
  903. method: "post",
  904. dataType: "json",
  905. crossDomain: false,
  906. url: globalConfig.context + "/api/admin/customer/addOneContact",
  907. data: {
  908. uid: this.state.uids,
  909. name: this.state.newname,
  910. mobile: this.state.newmobile,
  911. email: this.state.newemail,
  912. wechat: this.state.newwechat,
  913. depatrment: this.state.newdepatrment,
  914. position: this.state.newposition,
  915. sex: this.state.newsex,
  916. qq: this.state.newqq
  917. },
  918. success: function(data) {
  919. if(!data.error.length) {
  920. this.addcontactModulOK()
  921. this.getNewWoman(this.state.uids)
  922. this.setState({
  923. loading: false,
  924. })
  925. } else {
  926. message.warning(data.error[0].message);
  927. };
  928. }.bind(this)
  929. });
  930. },
  931. //获取联系人下拉框
  932. getNewWoman(ids) {
  933. this.state.data = []
  934. $.ajax({
  935. method: "get",
  936. dataType: "json",
  937. crossDomain: false,
  938. url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
  939. data: {
  940. uid: ids,
  941. },
  942. success: function(data) {
  943. let theArr = [];
  944. let thedata = data.data;
  945. if(!thedata) {
  946. if(data.error && data.error.length) {
  947. message.warning(data.error[0].message);
  948. };
  949. thedata = {};
  950. };
  951. var telNum = [];
  952. var contactIds = [];
  953. thedata.map(function(item, index) {
  954. contactIds.push(thedata[index].id);
  955. telNum.push(thedata[index].mobile);
  956. });
  957. for(let item in data.data) {
  958. let theData = data.data[item];
  959. theArr.push(
  960. <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>
  961. );
  962. };
  963. this.setState({
  964. contactsIdArr: thedata,
  965. telNum: telNum,
  966. orderStatusOption: theArr,
  967. });
  968. }.bind(this),
  969. }).always(function() {
  970. this.setState({
  971. deletId: ids,
  972. loading: false
  973. });
  974. }.bind(this));
  975. },
  976. //拜访意向服务列表单个删除
  977. intentionDelet(e, index) {
  978. if(!this.state.keys) {
  979. let detId = this.state.followIds;
  980. if(e.id) {
  981. this.setState({
  982. selectedRowKeys: [],
  983. });
  984. $.ajax({
  985. method: "get",
  986. dataType: "json",
  987. crossDomain: false,
  988. url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",
  989. data: {
  990. ufbId: e.id
  991. }
  992. }).done(function(data) {
  993. if(!data.error.length) {
  994. message.success('删除成功');
  995. this.setState({
  996. loading: false,
  997. });
  998. } else {
  999. message.warning(data.error[0].message);
  1000. };
  1001. }.bind(this));
  1002. } else {
  1003. }
  1004. } else {
  1005. let deteluserBusinessList = (this.state.data).splice(index, 1)
  1006. this.setState({
  1007. selectedRowKeys: [],
  1008. });
  1009. }
  1010. },
  1011. //tab5意向业务
  1012. //意向业务查看列表单个详情
  1013. businessIntentionDetails(e) {
  1014. $.ajax({
  1015. method: "get",
  1016. dataType: "json",
  1017. crossDomain: false,
  1018. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  1019. data: {
  1020. businessId: e.businessId
  1021. },
  1022. success: function(data) {
  1023. let thisData = data.data;
  1024. if(!thisData) {
  1025. if(data.error && data.error.length) {
  1026. message.warning(data.error[0].message);
  1027. };
  1028. thisData = {};
  1029. };
  1030. this.setState({
  1031. businessGlossoryId: thisData.businessGlossoryId,
  1032. identifyName: thisData.identifyName,
  1033. uid: thisData.uid,
  1034. businessId: thisData.businessId,
  1035. followSituation: thisData.followSituation,
  1036. customerStatus: thisData.customerStatus,
  1037. createTime: thisData.createTime,
  1038. followTime: thisData.followTime,
  1039. adminName: thisData.adminName,
  1040. remarks: thisData.remarks,
  1041. result: thisData.result,
  1042. });
  1043. }.bind(this),
  1044. }).always(function() {
  1045. this.loadVisit();
  1046. this.setState({
  1047. loading: false
  1048. });
  1049. }.bind(this));
  1050. this.setState({
  1051. businessModul: true
  1052. })
  1053. },
  1054. //查看跟进记录列表
  1055. loadVisit(pageNo) {
  1056. this.setState({
  1057. loading: true
  1058. });
  1059. $.ajax({
  1060. method: "get",
  1061. dataType: "json",
  1062. crossDomain: false,
  1063. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1064. data: {
  1065. pageNo: pageNo || 1,
  1066. pageSize: this.state.paginations.pageSize,
  1067. uid: this.state.rowId, //名称1
  1068. businessGlossoryId: this.state.businessGlossoryId,
  1069. },
  1070. success: function(data) {
  1071. let theArr = [];
  1072. if(data.error.length || data.data.list == "") {
  1073. if(data.error && data.error.length) {
  1074. message.warning(data.error[0].message);
  1075. };
  1076. } else {
  1077. for(let i = 0; i < data.data.list.length; i++) {
  1078. let thisdata = data.data.list[i];
  1079. theArr.push({
  1080. followId: thisdata.followId,
  1081. followTime: thisdata.followTime,
  1082. identifyName: thisdata.identifyName,
  1083. contacts: thisdata.contacts,
  1084. contactMobile: thisdata.contactMobile,
  1085. result: thisdata.result,
  1086. ufbId: thisdata.ufbId,
  1087. adminName: thisdata.adminName,
  1088. followSituation: thisdata.followSituation,
  1089. customerStatus: thisdata.customerStatus,
  1090. contactType: thisdata.contactType
  1091. });
  1092. };
  1093. this.state.paginations.current = data.data.pageNo;
  1094. this.state.paginations.total = data.data.totalCount;
  1095. };
  1096. this.setState({
  1097. visitArrList: theArr,
  1098. paginations: this.state.paginations
  1099. });
  1100. }.bind(this),
  1101. }).always(function() {
  1102. this.setState({
  1103. loading: false
  1104. });
  1105. }.bind(this));
  1106. },
  1107. //tab3拜访记录
  1108. loadBfVisit(pageNo, uids) {
  1109. this.setState({
  1110. loading: true
  1111. });
  1112. $.ajax({
  1113. method: "get",
  1114. dataType: "json",
  1115. crossDomain: false,
  1116. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1117. data: {
  1118. pageNo: pageNo || 1,
  1119. pageSize: this.state.paginationsy.pageSize,
  1120. uid: uids ? uids : this.state.rowId, //名称1
  1121. },
  1122. success: function(data) {
  1123. let theArr = [];
  1124. if(data.error.length || data.data.list == "") {
  1125. if(data.error && data.error.length) {
  1126. message.warning(data.error[0].message);
  1127. };
  1128. } else {
  1129. for(let i = 0; i < data.data.list.length; i++) {
  1130. let thisdata = data.data.list[i];
  1131. theArr.push({
  1132. followId: thisdata.followId,
  1133. followTime: thisdata.followTime,
  1134. identifyName: thisdata.identifyName,
  1135. contacts: thisdata.contacts,
  1136. contactMobile: thisdata.contactMobile,
  1137. result: thisdata.result,
  1138. ufbId: thisdata.ufbId,
  1139. adminName: thisdata.adminName,
  1140. followSituation: thisdata.followSituation,
  1141. customerStatus: thisdata.customerStatus,
  1142. contactType: thisdata.contactType
  1143. });
  1144. };
  1145. this.state.paginationsy.current = data.data.pageNo;
  1146. this.state.paginationsy.total = data.data.totalCount;
  1147. };
  1148. this.setState({
  1149. visitArrList: theArr,
  1150. paginationsy: this.state.paginationsy
  1151. });
  1152. }.bind(this),
  1153. }).always(function() {
  1154. this.setState({
  1155. loading: false
  1156. });
  1157. }.bind(this));
  1158. },
  1159. businessIntentionOk() {
  1160. this.setState({
  1161. businessGlossoryId: '',
  1162. businessModul: false
  1163. })
  1164. },
  1165. businessIntentionCancel() {
  1166. this.setState({
  1167. businessGlossoryId: '',
  1168. businessModul: false
  1169. })
  1170. },
  1171. //业务跟进查看跟多
  1172. businessFollowDetails(e) {
  1173. this.listFollowUp(e.ufbId)
  1174. this.setState({
  1175. businessFollowModul: true
  1176. })
  1177. },
  1178. businessFollowOk(e) {
  1179. this.setState({
  1180. businessFollowModul: false
  1181. })
  1182. },
  1183. businessFollowCancel(e) {
  1184. this.setState({
  1185. businessFollowModul: false
  1186. })
  1187. },
  1188. //详情tab切换数据处理
  1189. callback(e) {
  1190. if(e == '1') {
  1191. this.loadInformation(this.state.rowId)
  1192. }
  1193. if(e == '2') {
  1194. this.contactLists(this.state.rowId)
  1195. }
  1196. if(e == '3') {
  1197. this.httpAccount(this.state.rowId)
  1198. }
  1199. if(e == '4') {
  1200. this.loadBfVisit(1, this.state.rowId);
  1201. }
  1202. if(e == '5') {
  1203. this.BusinessList(1, this.state.rowId);
  1204. }
  1205. if(e == '6') {
  1206. }
  1207. if(e == '7') {
  1208. }
  1209. if(e == '8') {
  1210. }
  1211. if(e == '9') {
  1212. }
  1213. this.setState({
  1214. callnub: e,
  1215. })
  1216. },
  1217. //tab5业务意向
  1218. BusinessList(pageNo, uids) {
  1219. this.setState({
  1220. loading: true
  1221. });
  1222. $.ajax({
  1223. method: "post",
  1224. dataType: "json",
  1225. crossDomain: false,
  1226. url: globalConfig.context + '/api/admin/customer/listBusiness',
  1227. data: {
  1228. pageNo: pageNo || 1,
  1229. pageSize: this.state.paginationt.pageSize,
  1230. uid: uids ? uids : this.state.rowId
  1231. },
  1232. success: function(data) {
  1233. let theArr = [];
  1234. if(data.error.length || data.data.list == "") {
  1235. if(data.error && data.error.length) {
  1236. message.warning(data.error[0].message);
  1237. };
  1238. } else {
  1239. for(let i = 0; i < data.data.list.length; i++) {
  1240. let thisdata = data.data.list[i];
  1241. theArr.push({
  1242. key: i,
  1243. businessId: thisdata.businessId,
  1244. businessName: thisdata.businessName,
  1245. identifyName: thisdata.identifyName,
  1246. followSituation: thisdata.followSituation,
  1247. customerStatus: thisdata.customerStatus,
  1248. adminName: thisdata.adminName,
  1249. createTime: thisdata.createTime
  1250. });
  1251. };
  1252. this.state.paginationt.current = data.data.pageNo;
  1253. this.state.paginationt.total = data.data.totalCount;
  1254. };
  1255. this.setState({
  1256. dataBusiness: theArr,
  1257. paginationt: this.state.paginationt
  1258. });
  1259. }.bind(this),
  1260. }).always(function() {
  1261. this.setState({
  1262. loading: false
  1263. });
  1264. }.bind(this));
  1265. },
  1266. componentWillReceiveProps(nextProps) {
  1267. if(!this.props.visible && nextProps.visible) {
  1268. if(nextProps.data && nextProps.data.id) {
  1269. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1270. };
  1271. this.state.data = {};
  1272. this.state.companyLogoUrl = [];
  1273. this.state.orgCodeUrl = [];
  1274. this.loadData(null);
  1275. };
  1276. },
  1277. render() {
  1278. const FormItem = Form.Item
  1279. const rowSelection = {
  1280. selectedRowKeys: this.state.selectedRowKeys,
  1281. onChange: (selectedRowKeys, selectedRows) => {
  1282. this.setState({
  1283. selectedRows: selectedRows.slice(-1),
  1284. selectedRowKeys: selectedRowKeys.slice(-1)
  1285. });
  1286. },
  1287. onSelect: (recordt, selected, selectedRows) => {
  1288. this.setState({
  1289. recordt: recordt.id
  1290. })
  1291. },
  1292. };
  1293. const rowSelections = {
  1294. selectedRowKeys: this.state.selectedRowKey,
  1295. onChange: (selectedRowKey, selectedRow) => {
  1296. this.setState({
  1297. selectedRow: selectedRow.slice(-1),
  1298. selectedRowKey: selectedRowKey.slice(-1)
  1299. });
  1300. },
  1301. onSelect: (records, selected, selectedRow) => {
  1302. this.setState({
  1303. selectedRow: selectedRow.slice(-1),
  1304. records: records.id,
  1305. })
  1306. },
  1307. };
  1308. const hasSelected = this.state.selectedRowKeys.length > 0;
  1309. const { RangePicker } = DatePicker;
  1310. const { getFieldDecorator } = this.props.form;
  1311. const formItemLayout = {
  1312. labelCol: { span: 8 },
  1313. wrapperCol: { span: 14 },
  1314. };
  1315. //const theDatak = this.state.datak || {};
  1316. const theInformation = this.state.dataInformation || {}
  1317. const contactsOption = "";
  1318. const formItemLayput = {
  1319. labelCol: { span: 10 },
  1320. wrapperCol: { span: 14 },
  1321. };
  1322. const contacts = this.state.contacts || '';
  1323. return(
  1324. <div className="user-content" >
  1325. <div className="content-title">
  1326. <span>单位客户查询</span>
  1327. </div>
  1328. <div className="user-search">
  1329. <Input placeholder="客户名称"
  1330. value={this.state.nameSearch}
  1331. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1332. <Select placeholder="省"
  1333. style={{ width: 80 }}
  1334. value={this.state.provinceSearch}
  1335. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1336. {this.state.Provinces}
  1337. </Select>
  1338. <span style={{marginRight:'10px'}}>
  1339. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  1340. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1341. </span>
  1342. <span style={{marginRight:'10px'}}>客户类型:</span>
  1343. <Select placeholder="选择客户类型"
  1344. style={{ width: 100 }}
  1345. value={this.state.shareTypeSearch}
  1346. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  1347. <Select.Option value="" >所有客户</Select.Option>
  1348. <Select.Option value="1" >公共客户</Select.Option>
  1349. </Select>
  1350. <Button type="primary" onClick={this.search}>搜索</Button>
  1351. <Button onClick={this.reset}>重置</Button>
  1352. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  1353. <div className='clearfix' style={{marginTop:'5px'}}>
  1354. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1355. <RangePicker
  1356. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1357. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1358. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1359. <Select placeholder="账户状态"
  1360. style={{ width: 100 }}
  1361. value={this.state.statusSearch}
  1362. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  1363. <Select.Option value="0" >正常</Select.Option>
  1364. <Select.Option value="2" >锁定</Select.Option>
  1365. </Select>
  1366. <Select placeholder="行业"
  1367. style={{ width: 100 }}
  1368. value={this.state.industrySearch}
  1369. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  1370. {this.state.intentionalOption}
  1371. </Select>
  1372. <span>认证:</span>
  1373. <Select placeholder="业务认证"
  1374. style={{ width: 100 }}
  1375. value={this.state.serviceCertificationSearch}
  1376. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  1377. <Select.Option value="0" >未认证</Select.Option>
  1378. <Select.Option value="1" >已认证</Select.Option>
  1379. </Select>
  1380. <Select placeholder="实名认证"
  1381. style={{ width: 100 }}
  1382. value={this.state.userCertificationSearch}
  1383. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  1384. {
  1385. auditStatusL.map(function (item) {
  1386. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1387. })
  1388. }
  1389. </Select>
  1390. <span>国际:</span>
  1391. <Select placeholder="国际"
  1392. style={{ width: 100 }}
  1393. value={this.state.internationalSearch}
  1394. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  1395. <Select.Option value="0" >否</Select.Option>
  1396. <Select.Option value="1" >是</Select.Option>
  1397. </Select>
  1398. <span>高新:</span>
  1399. <Select placeholder="高新"
  1400. style={{ width: 100 }}
  1401. value={this.state.highTechZoneSearch}
  1402. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  1403. <Select.Option value="0" >否</Select.Option>
  1404. <Select.Option value="1" >是</Select.Option>
  1405. </Select>
  1406. <span>上市:</span>
  1407. <Select placeholder="上市"
  1408. style={{ width: 100 }}
  1409. value={this.state.listedSearch}
  1410. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  1411. <Select.Option value="0" >否</Select.Option>
  1412. <Select.Option value="1" >是</Select.Option>
  1413. </Select>
  1414. <span>会员:</span>
  1415. <Select placeholder="会员等级"
  1416. style={{ width: 100 }}
  1417. value={this.state.lvlSearch}
  1418. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  1419. {this.state.lvlArrOption}
  1420. </Select>
  1421. <Select placeholder="会员状态"
  1422. style={{ width: 100 }}
  1423. value={this.state.currentMemberStatusSearch}
  1424. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  1425. {this.state.currentMemberArrOption}
  1426. </Select>
  1427. <Select placeholder="社会性质"
  1428. style={{ width: 100 }}
  1429. value={this.state.societyTagSearch}
  1430. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  1431. {
  1432. socialAttribute.map(function (item) {
  1433. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1434. })
  1435. }
  1436. </Select>
  1437. </div>
  1438. </div>
  1439. </div>
  1440. <div className="patent-table">
  1441. <Spin spinning={this.state.loading}>
  1442. <Table columns={this.state.columns}
  1443. dataSource={this.state.dataSource}
  1444. rowSelection={rowSelection}
  1445. pagination={this.state.pagination}
  1446. onRowClick={this.tableRowClick}
  1447. />
  1448. </Spin>
  1449. </div>
  1450. <Modal
  1451. className="customeDetails"
  1452. title="单位客户详情"
  1453. width='1200px'
  1454. visible={this.state.modal5Visible}
  1455. onOk={this.detailsModal}
  1456. onCancel={this.detailsModal}
  1457. footer=''
  1458. >
  1459. <Tabs defaultActiveKey="1" onChange={this.callback} activeKey={this.state.callnub}>
  1460. <TabPane tab="基本信息" key="1">
  1461. {adminData.isSuperAdmin?<Form horizontal id="demand-form">
  1462. <Spin spinning={this.state.loading}>
  1463. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1464. <FormItem className="half-item"
  1465. labelCol={{ span: 4 }}
  1466. wrapperCol={{ span: 18 }}
  1467. label="客户名称"
  1468. >
  1469. <span>{theInformation.identifyName}</span>
  1470. </FormItem>
  1471. </div>
  1472. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1473. <FormItem className="half-item"
  1474. labelCol={{ span: 4 }}
  1475. wrapperCol={{ span: 18 }}
  1476. label="行业">
  1477. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  1478. onChange={(e)=>{this.setState({industry:e})}}>
  1479. {
  1480. industry.map(function (item) {
  1481. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1482. })
  1483. }
  1484. </Select>
  1485. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1486. </FormItem>
  1487. <FormItem className="half-item"
  1488. labelCol={{ span: 4 }}
  1489. wrapperCol={{ span: 18 }}
  1490. label="社会属性"
  1491. >
  1492. <Select placeholder="客户社会属性(必填项)" value={this.state.societyTag} style={{width:'300px'}}
  1493. onChange={(e)=>{this.setState({societyTag:e})}}>
  1494. {
  1495. socialAttribute.map(function (item) {
  1496. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1497. })
  1498. }
  1499. </Select>
  1500. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1501. </FormItem>
  1502. <FormItem className="half-item"
  1503. labelCol={{ span: 4 }}
  1504. wrapperCol={{ span: 18 }}
  1505. label="省-市-区"
  1506. >
  1507. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  1508. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  1509. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1510. </FormItem>
  1511. <FormItem className="half-item"
  1512. labelCol={{ span: 4 }}
  1513. wrapperCol={{ span: 18 }}
  1514. label="通信地址"
  1515. >
  1516. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1517. onChange={(e)=>{this.setState({postalAddress:e.target.value})}}/>
  1518. </FormItem>
  1519. <FormItem className="half-item"
  1520. labelCol={{ span: 4 }}
  1521. wrapperCol={{ span: 18 }}
  1522. label="固定电话"
  1523. >
  1524. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1525. onChange={(e)=>{this.setState({contactsFixedTel:e.target.value})}}/>
  1526. </FormItem>
  1527. <FormItem className="half-item"
  1528. labelCol={{ span: 4 }}
  1529. wrapperCol={{ span: 18 }}
  1530. label="客户传真"
  1531. >
  1532. <Input placeholder="客户传真" value={this.state.contactsFax}
  1533. onChange={(e)=>{this.setState({contactsFax:e.target.value})}}/>
  1534. </FormItem>
  1535. <FormItem className="half-item"
  1536. labelCol={{ span: 4 }}
  1537. wrapperCol={{ span: 18 }}
  1538. label="注册资本"
  1539. >
  1540. <Input placeholder="注册资本" value={this.state.registeredCapital}
  1541. onChange={(e)=>{this.setState({registeredCapital:e.target.value})}}/>
  1542. </FormItem>
  1543. <FormItem className="half-item"
  1544. labelCol={{ span: 4 }}
  1545. wrapperCol={{ span: 18 }}
  1546. label="单位规模"
  1547. >
  1548. <Input placeholder="单位规模" value={this.state.enterpriseScale}
  1549. onChange={(e)=>{this.setState({enterpriseScale:e.target.value})}}/>
  1550. </FormItem>
  1551. <FormItem className="half-item"
  1552. labelCol={{ span: 4 }}
  1553. wrapperCol={{ span: 18 }}
  1554. label="法人名称"
  1555. >
  1556. <Input placeholder="法人名称" value={this.state.legalPerson}
  1557. onChange={(e)=>{this.setState({legalPerson:e.target.value})}}/>
  1558. </FormItem>
  1559. <FormItem className="half-item"
  1560. labelCol={{ span: 4 }}
  1561. wrapperCol={{ span: 18 }}
  1562. label="身份证号码"
  1563. >
  1564. <Input placeholder="法人身份证号码" value={this.state.legalPersonIdCard}
  1565. onChange={(e)=>{this.setState({legalPersonIdCard:e.target.value})}}/>
  1566. </FormItem>
  1567. <FormItem className="half-item"
  1568. labelCol={{ span: 4 }}
  1569. wrapperCol={{ span: 18 }}
  1570. label="法人电话"
  1571. >
  1572. <Input placeholder="法人电话" value={this.state.legalPersonTel}
  1573. onChange={(e)=>{this.setState({legalPersonTel:e.target.value})}}/>
  1574. </FormItem>
  1575. <FormItem className="half-item"
  1576. labelCol={{ span: 4 }}
  1577. wrapperCol={{ span: 18 }}
  1578. label="电子邮箱"
  1579. >
  1580. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1581. onChange={(e)=>{this.setState({legalPersonEmail:e.target.value})}}/>
  1582. </FormItem>
  1583. <FormItem className="half-item"
  1584. labelCol={{ span: 4 }}
  1585. wrapperCol={{ span: 18 }}
  1586. label="机构代码"
  1587. >
  1588. <Input placeholder="社会同意机构代码" value={this.state.orgCode}
  1589. onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
  1590. </FormItem>
  1591. <FormItem className="half-item"
  1592. labelCol={{ span: 4 }}
  1593. wrapperCol={{ span: 18 }}
  1594. label="实名认证"
  1595. >
  1596. {adminData.isSuperAdmin?<Select placeholder="实名认证"
  1597. value={this.state.auditStatus}
  1598. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  1599. {
  1600. auditStatusL.map(function (item) {
  1601. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1602. })
  1603. }
  1604. </Select>:<span>{getAuditStatus(this.state.auditStatus)}</span>}
  1605. </FormItem>
  1606. <div className="clearfix">
  1607. <FormItem className="half-item"
  1608. labelCol={{ span: 4 }}
  1609. wrapperCol={{ span: 18 }}
  1610. label="业务认证"
  1611. >
  1612. {adminData.isSuperAdmin?<Radio.Group value={this.state.businessAudit} onChange={(e) => {
  1613. this.setState({ businessAudit: e.target.value })
  1614. }}>
  1615. <Radio value={0}>未认证</Radio>
  1616. <Radio value={1}>已认证</Radio>
  1617. </Radio.Group>:<span>{this.state.businessAudit?'是':'否'}</span>}
  1618. </FormItem>
  1619. <FormItem className="half-item"
  1620. labelCol={{ span: 4 }}
  1621. wrapperCol={{ span: 18 }}
  1622. label="高新"
  1623. >
  1624. <Radio.Group value={this.state.highTechZone} onChange={(e) => {
  1625. this.setState({highTechZone:e.target.value})
  1626. }}>
  1627. <Radio value={0}>否</Radio>
  1628. <Radio value={1}>是</Radio>
  1629. </Radio.Group>
  1630. </FormItem>
  1631. <FormItem className="half-item"
  1632. labelCol={{ span: 4 }}
  1633. wrapperCol={{ span: 18 }}
  1634. label="上市"
  1635. >
  1636. <Radio.Group value={this.state.listed} onChange={(e) => {
  1637. this.setState({listed:e.target.value })
  1638. }}>
  1639. <Radio value={0}>否</Radio>
  1640. <Radio value={1}>是</Radio>
  1641. </Radio.Group>
  1642. </FormItem>
  1643. <FormItem className="half-item"
  1644. labelCol={{ span: 4 }}
  1645. wrapperCol={{ span: 18 }}
  1646. label="国际化"
  1647. >
  1648. <Radio.Group value={this.state.international} onChange={(e) => {
  1649. this.setState({international:e.target.value })
  1650. }}>
  1651. <Radio value={0}>否</Radio>
  1652. <Radio value={1}>是</Radio>
  1653. </Radio.Group>
  1654. </FormItem>
  1655. </div>
  1656. <div className="clearfix pictures">
  1657. <FormItem
  1658. labelCol={{ span: 4 }}
  1659. wrapperCol={{ span: 18 }}
  1660. label="机构证(PIC)" >
  1661. <PicturesWalls
  1662. pictureSign="PIC"
  1663. fileList={this.getOrgCodeUrl}
  1664. pictureUrl={this.state.orgCodeUrl} />
  1665. <p>图片建议:图片要清晰。</p>
  1666. </FormItem>
  1667. <FormItem
  1668. labelCol={{ span: 4 }}
  1669. wrapperCol={{ span: 18 }}
  1670. label="单位logo" >
  1671. <PicturesWalls
  1672. pictureSign="logo"
  1673. fileList={this.getCompanyLogoUrl}
  1674. pictureUrl={this.state.companyLogoUrl} />
  1675. <p>图片建议:图片要清晰。</p>
  1676. </FormItem>
  1677. </div>
  1678. <div className="clearfix">
  1679. <FormItem
  1680. labelCol={{ span: 2 }}
  1681. wrapperCol={{ span: 18 }}
  1682. label="业务范围" >
  1683. <Input type="textarea" rows={4} value={this.state.businessScope}
  1684. onChange={(e)=>{this.setState({businessScope:e.target.value})}}/>
  1685. </FormItem>
  1686. <FormItem
  1687. labelCol={{ span: 2 }}
  1688. wrapperCol={{ span: 18 }}
  1689. label="单位简介" >
  1690. <Input type="textarea" rows={4} value={this.state.introduction}
  1691. onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
  1692. </FormItem>
  1693. </div>
  1694. </div>
  1695. </Spin>
  1696. </Form> :<Form horizontal id="demand-form">
  1697. <Spin spinning={this.state.loading}>
  1698. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1699. <FormItem className="half-item"
  1700. labelCol={{ span: 4 }}
  1701. wrapperCol={{ span: 18 }}
  1702. label="客户名称"
  1703. >
  1704. <span>{theInformation.identifyName}</span>
  1705. </FormItem>
  1706. </div>
  1707. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1708. <FormItem className="half-item"
  1709. labelCol={{ span: 4 }}
  1710. wrapperCol={{ span: 18 }}
  1711. label="行业"
  1712. >
  1713. <span>{getIndustry(String(theInformation.industry))}</span>
  1714. </FormItem>
  1715. <FormItem className="half-item"
  1716. labelCol={{ span: 4 }}
  1717. wrapperCol={{ span: 18 }}
  1718. label="社会属性"
  1719. >
  1720. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  1721. </FormItem>
  1722. <FormItem className="half-item"
  1723. labelCol={{ span: 4 }}
  1724. wrapperCol={{ span: 18 }}
  1725. label="省-市-区"
  1726. >
  1727. <span>{this.state.proviceCityArea}</span>
  1728. </FormItem>
  1729. <FormItem className="half-item"
  1730. labelCol={{ span: 4 }}
  1731. wrapperCol={{ span: 18 }}
  1732. label="通信地址"
  1733. >
  1734. <span>{theInformation.postalAddress}</span>
  1735. </FormItem>
  1736. <FormItem className="half-item"
  1737. labelCol={{ span: 4 }}
  1738. wrapperCol={{ span: 18 }}
  1739. label="固定电话"
  1740. >
  1741. <span>{theInformation.contactsFixedTel}</span>
  1742. </FormItem>
  1743. <FormItem className="half-item"
  1744. labelCol={{ span: 4 }}
  1745. wrapperCol={{ span: 18 }}
  1746. label="客户传真"
  1747. >
  1748. <span>{theInformation.contactsFax}</span>
  1749. </FormItem>
  1750. <FormItem className="half-item"
  1751. labelCol={{ span: 4 }}
  1752. wrapperCol={{ span: 18 }}
  1753. label="注册资本"
  1754. >
  1755. <span>{theInformation.registeredCapital}</span>
  1756. </FormItem>
  1757. <FormItem className="half-item"
  1758. labelCol={{ span: 4 }}
  1759. wrapperCol={{ span: 18 }}
  1760. label="单位规模"
  1761. >
  1762. <span>{theInformation.enterpriseScale}</span>
  1763. </FormItem>
  1764. <FormItem className="half-item"
  1765. labelCol={{ span: 4 }}
  1766. wrapperCol={{ span: 18 }}
  1767. label="法人名称"
  1768. >
  1769. <span>{theInformation.legalPerson}</span>
  1770. </FormItem>
  1771. <FormItem className="half-item"
  1772. labelCol={{ span: 4 }}
  1773. wrapperCol={{ span: 18 }}
  1774. label="身份证号码"
  1775. >
  1776. <span>{theInformation.legalPersonIdCard}</span>
  1777. </FormItem>
  1778. <FormItem className="half-item"
  1779. labelCol={{ span: 4 }}
  1780. wrapperCol={{ span: 18 }}
  1781. label="法人电话"
  1782. >
  1783. <span>{theInformation.legalPersonTel}</span>
  1784. </FormItem>
  1785. <FormItem className="half-item"
  1786. labelCol={{ span: 4 }}
  1787. wrapperCol={{ span: 18 }}
  1788. label="电子邮箱"
  1789. >
  1790. <span>{theInformation.legalPersonEmail}</span>
  1791. </FormItem>
  1792. <FormItem className="half-item"
  1793. labelCol={{ span: 4 }}
  1794. wrapperCol={{ span: 18 }}
  1795. label="投资机构"
  1796. >
  1797. <span>{this.state.investment?'是':'否'}</span>
  1798. </FormItem>
  1799. <FormItem className="half-item"
  1800. labelCol={{ span: 4 }}
  1801. wrapperCol={{ span: 18 }}
  1802. label="高新"
  1803. >
  1804. <span>{this.state.highTechZone?'是':'否'}</span>
  1805. </FormItem>
  1806. <FormItem className="half-item"
  1807. labelCol={{ span: 4 }}
  1808. wrapperCol={{ span: 18 }}
  1809. label="上市"
  1810. >
  1811. <span>{this.state.listed?'是':'否'}</span>
  1812. </FormItem>
  1813. <FormItem className="half-item"
  1814. labelCol={{ span: 4 }}
  1815. wrapperCol={{ span: 18 }}
  1816. label="国际化"
  1817. >
  1818. <span>{this.state.international?'是':'否'}</span>
  1819. </FormItem>
  1820. <FormItem className="half-item"
  1821. labelCol={{ span: 4 }}
  1822. wrapperCol={{ span: 18 }}
  1823. label="机构代码"
  1824. >
  1825. <span>{theInformation.orgCode}</span>
  1826. </FormItem>
  1827. <div className="clearfix pictures">
  1828. <FormItem
  1829. labelCol={{ span: 4 }}
  1830. wrapperCol={{ span: 18 }}
  1831. label="机构证(PIC)" >
  1832. <div className="clearfix">
  1833. <Upload className="demandDetailShow-upload"
  1834. listType="picture-card"
  1835. fileList={this.state.orgCodeUrl}
  1836. onPreview={(file) => {
  1837. this.setState({
  1838. previewImage: file.url || file.thumbUrl,
  1839. previewVisible: true,
  1840. });
  1841. }} >
  1842. </Upload>
  1843. <Modal maskClosable={false} footer={null}
  1844. visible={this.state.previewVisible}
  1845. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1846. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  1847. </Modal>
  1848. </div>
  1849. </FormItem>
  1850. <FormItem
  1851. labelCol={{ span: 4 }}
  1852. wrapperCol={{ span: 18 }}
  1853. label="单位logo" >
  1854. <div className="clearfix">
  1855. <Upload className="demandDetailShow-upload"
  1856. listType="picture-card"
  1857. fileList={this.state.companyLogoUrl}
  1858. onPreview={(file) => {
  1859. this.setState({
  1860. previewImage: file.url || file.thumbUrl,
  1861. previewVisible: true,
  1862. });
  1863. }} >
  1864. </Upload>
  1865. <Modal maskClosable={false} footer={null}
  1866. visible={this.state.previewVisible}
  1867. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1868. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  1869. </Modal>
  1870. </div>
  1871. </FormItem>
  1872. </div>
  1873. <div className="clearfix">
  1874. <FormItem
  1875. labelCol={{ span: 2 }}
  1876. wrapperCol={{ span: 18 }}
  1877. label="业务范围" >
  1878. <span>{theInformation.businessScope}</span>
  1879. </FormItem>
  1880. <FormItem
  1881. labelCol={{ span: 2 }}
  1882. wrapperCol={{ span: 18 }}
  1883. label="单位简介" >
  1884. <span>{theInformation.introduction}</span>
  1885. </FormItem>
  1886. </div>
  1887. </div>
  1888. </Spin>
  1889. </Form>}
  1890. </TabPane>
  1891. <TabPane tab="联系人信息" key="2">
  1892. <div className="clearfix">
  1893. <Spin spinning={this.state.loading}>
  1894. <Form horizontal id="demand-form" >
  1895. <Table
  1896. pagination={false}
  1897. columns={this.state.ContactsLists}
  1898. dataSource={this.state.contactList}
  1899. />
  1900. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  1901. </div>
  1902. </Form>
  1903. </Spin>
  1904. </div>
  1905. </TabPane>
  1906. <TabPane tab="账户信息" key="3">
  1907. <div className="clearfix">
  1908. <Form horizontal id="demand-form" >
  1909. <Spin spinning={this.state.loading} >
  1910. <div className="clearfix">
  1911. <FormItem className="half-item"
  1912. {...formItemLayout}
  1913. label="注册手机号" >
  1914. {adminData.isSuperAdmin?<div><Input value={this.state.mobile} disabled onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  1915. </div>:<span>{this.state.mobile}</span>}
  1916. </FormItem>
  1917. <FormItem className="half-item"
  1918. {...formItemLayout}
  1919. label="注册用户名" >
  1920. {adminData.isSuperAdmin?<Input value={this.state.nickname}
  1921. onChange={(e) => { this.setState({ nickname: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  1922. </FormItem>
  1923. <FormItem className="half-item"
  1924. {...formItemLayout}
  1925. label="注册邮箱" >
  1926. {adminData.isSuperAdmin?<Input value={this.state.email}
  1927. onChange={(e) => { this.setState({ email: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  1928. </FormItem>
  1929. </div>
  1930. <FormItem className="half-item"
  1931. {...formItemLayout}
  1932. label="客户来源" >
  1933. <span>{this.state.source}</span>
  1934. </FormItem>
  1935. <FormItem className="half-item"
  1936. {...formItemLayout}
  1937. label="客户类型" >
  1938. <span>{this.state.type}</span>
  1939. </FormItem>
  1940. <FormItem className="half-item"
  1941. {...formItemLayout}
  1942. label="创建时间" >
  1943. <span>{this.state.createTimes}</span>
  1944. </FormItem>
  1945. <FormItem className="half-item"
  1946. {...formItemLayout}
  1947. label="账户状态"
  1948. >
  1949. {adminData.isSuperAdmin?<Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  1950. {
  1951. statuslist.map(function (item) {
  1952. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1953. })
  1954. }
  1955. </Select>:<span>{getStatuslist(this.state.status)}</span>}
  1956. </FormItem>
  1957. <div className="clearfix">
  1958. <FormItem className="half-item"
  1959. {...formItemLayout}
  1960. label="会员"
  1961. >
  1962. {adminData.isSuperAdmin?<Radio.Group value={this.state.isMember} onChange={(e) => {
  1963. this.setState({ isMember: e.target.value })
  1964. }}>
  1965. <Radio value={0}>否</Radio>
  1966. <Radio value={1}>是</Radio>
  1967. </Radio.Group>:<span>{this.state.isMember?'是':'否'}</span>}
  1968. </FormItem>
  1969. <FormItem className="half-item"
  1970. {...formItemLayout}
  1971. label="会员等级"
  1972. >
  1973. {adminData.isSuperAdmin?<Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  1974. {
  1975. lvl.map(function (item) {
  1976. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1977. })
  1978. }
  1979. </Select>:<span>{getLvl(this.state.lvl)}</span>}
  1980. </FormItem>
  1981. <FormItem className="half-item"
  1982. {...formItemLayout}
  1983. label="会员状态"
  1984. >
  1985. {adminData.isSuperAdmin?<Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  1986. {
  1987. currentMember.map(function (item) {
  1988. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1989. })
  1990. }
  1991. </Select>:<span>{getCurrentMember(this.state.currentMemberStatus)}</span>}
  1992. </FormItem>
  1993. </div>
  1994. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  1995. </div>
  1996. </Spin>
  1997. </Form>
  1998. </div>
  1999. </TabPane>
  2000. <TabPane tab="客户拜访" key="4">
  2001. <div className="clearfix">
  2002. <Spin spinning={this.state.loading}>
  2003. <Table
  2004. pagination={false}
  2005. columns={this.state.visitsList}
  2006. dataSource={this.state.visitArrList}
  2007. onRowClick={this.VisitRowClick}
  2008. />
  2009. </Spin>
  2010. </div>
  2011. </TabPane>
  2012. <TabPane tab="业务意向" key="5">
  2013. <div className="clearfix">
  2014. <Spin spinning={this.state.loading}>
  2015. <Table
  2016. pagination={this.state.paginationt}
  2017. columns={this.state.businessIntentionList}
  2018. dataSource={this.state.dataBusiness}
  2019. />
  2020. </Spin>
  2021. </div>
  2022. </TabPane>
  2023. <TabPane tab="业务订单" key="6">
  2024. </TabPane>
  2025. <TabPane tab="技术需求" key="7">
  2026. </TabPane>
  2027. <TabPane tab="技术成果" key="8">
  2028. </TabPane>
  2029. <TabPane tab="技术专家" key="9">
  2030. </TabPane>
  2031. </Tabs>
  2032. </Modal>
  2033. <Modal
  2034. className="customeDetails"
  2035. footer=''
  2036. title="拜访详情"
  2037. width='1000px'
  2038. visible={this.state.visitModul}
  2039. onOk={this.visitOk}
  2040. onCancel={this.visitCancel}
  2041. >
  2042. <Form horizontal id="demand-form" >
  2043. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  2044. <div className="clearfix">
  2045. <FormItem className="half-item"
  2046. {...formItemLayout}
  2047. label="拜访方式" >
  2048. <Radio.Group value={this.state.contactType} onChange={(e) => {
  2049. this.setState({ contactType: e.target.value })
  2050. }}>
  2051. <Radio value={0}>外出</Radio>
  2052. <Radio value={1}>电话</Radio>
  2053. <Radio value={2}>QQ</Radio>
  2054. <Radio value={3}>微信</Radio>
  2055. <Radio value={4}>邮箱</Radio>
  2056. </Radio.Group>
  2057. </FormItem>
  2058. <FormItem className="half-item"
  2059. {...formItemLayout}
  2060. >
  2061. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  2062. </FormItem>
  2063. <div className="clearfix">
  2064. <FormItem className="half-item"
  2065. {...formItemLayout}
  2066. label="客户名称"
  2067. >
  2068. <span>{this.state.identifyName}</span>
  2069. </FormItem>
  2070. <FormItem className="half-item"
  2071. {...formItemLayout}
  2072. label="拜访人"
  2073. >
  2074. <span>{this.state.adminName}</span>
  2075. </FormItem>
  2076. <FormItem className="half-item"
  2077. {...formItemLayout}
  2078. label="当前联系人"
  2079. >
  2080. <span>{this.state.contacts}</span>
  2081. </FormItem>
  2082. {this.state.contacts?<span></span>:
  2083. <FormItem className="half-item"
  2084. {...formItemLayout}
  2085. label="联系人"
  2086. >
  2087. <Select placeholder="选择联系人" style={{ width: 140 }}
  2088. value={this.state.lastName}
  2089. onChange={this.hundleName}>
  2090. {this.state.orderStatusOption}
  2091. </Select>
  2092. </FormItem>
  2093. }
  2094. <FormItem className="half-item"
  2095. {...formItemLayout}
  2096. label="拜访时间"
  2097. >
  2098. <span>{this.state.followTime}</span>
  2099. </FormItem>
  2100. <FormItem className="half-item"
  2101. {...formItemLayout}
  2102. label="联系电话"
  2103. >
  2104. <span>{this.state.nub}</span>
  2105. </FormItem>
  2106. </div>
  2107. <div className="clearfix">
  2108. <FormItem
  2109. labelCol={{ span: 4 }}
  2110. wrapperCol={{ span: 16 }}
  2111. label="拜访备注" >
  2112. <Input type="textarea" rows={4} value={this.state.result}
  2113. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  2114. </FormItem>
  2115. </div>
  2116. <div className="clearfix">
  2117. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  2118. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2119. <Spin spinning={this.state.loading}>
  2120. <Table
  2121. rowKey={record => record.id}
  2122. pagination={false}
  2123. columns={this.state.intentionList}
  2124. dataSource={this.state.data}
  2125. />
  2126. </Spin>
  2127. </div>
  2128. </div>
  2129. </div>
  2130. </Spin>:<Spin spinning={this.state.loading}>
  2131. <div className="clearfix">
  2132. <FormItem className="half-item"
  2133. {...formItemLayout}
  2134. label="拜访方式" >
  2135. <span>{getContactType(String(this.state.contactType))}</span>
  2136. </FormItem>
  2137. <div className="clearfix">
  2138. <FormItem className="half-item"
  2139. {...formItemLayout}
  2140. label="客户名称"
  2141. >
  2142. <span>{this.state.identifyName}</span>
  2143. </FormItem>
  2144. <FormItem className="half-item"
  2145. {...formItemLayout}
  2146. label="拜访人"
  2147. >
  2148. <span>{this.state.adminName}</span>
  2149. </FormItem>
  2150. <FormItem className="half-item"
  2151. {...formItemLayout}
  2152. label="当前联系人"
  2153. >
  2154. <span>{this.state.contacts}</span>
  2155. </FormItem>
  2156. <FormItem className="half-item"
  2157. {...formItemLayout}
  2158. label="拜访时间"
  2159. >
  2160. <span>{this.state.followTime}</span>
  2161. </FormItem>
  2162. <FormItem className="half-item"
  2163. {...formItemLayout}
  2164. label="联系电话"
  2165. >
  2166. <span>{this.state.nub}</span>
  2167. </FormItem>
  2168. </div>
  2169. <div className="clearfix">
  2170. <FormItem
  2171. labelCol={{ span: 4 }}
  2172. wrapperCol={{ span: 16 }}
  2173. label="拜访备注" >
  2174. <span>{this.state.result}</span>
  2175. </FormItem>
  2176. </div>
  2177. <div className="clearfix">
  2178. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2179. <Spin spinning={this.state.loading}>
  2180. <Table
  2181. rowKey={record => record.id}
  2182. pagination={false}
  2183. columns={this.state.intentionList}
  2184. dataSource={this.state.data}
  2185. />
  2186. </Spin>
  2187. </div>
  2188. </div>
  2189. </div>
  2190. </Spin>}
  2191. </Form>
  2192. </Modal>
  2193. <Modal
  2194. footer=''
  2195. title="业务意向详情"
  2196. width='1000px'
  2197. visible={this.state.businessModul}
  2198. onOk={this.businessIntentionOk}
  2199. onCancel={this.businessIntentionCancel}
  2200. >
  2201. <div className="clearfix">
  2202. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  2203. <Spin spinning={this.state.loading}>
  2204. <div className="clearfix">
  2205. <FormItem className="half-item"
  2206. {...formItemLayout}
  2207. label="意向业务名称" >
  2208. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  2209. </FormItem>
  2210. <FormItem className="half-item"
  2211. {...formItemLayout}
  2212. label="意向时间" >
  2213. <span>{this.state.createTime}</span>
  2214. </FormItem>
  2215. <FormItem className="half-item"
  2216. {...formItemLayout}
  2217. label="客户名称" >
  2218. <span>{this.state.identifyName}</span>
  2219. </FormItem>
  2220. <FormItem className="half-item"
  2221. {...formItemLayout}
  2222. label="营销员" >
  2223. <span>{this.state.adminName}</span>
  2224. </FormItem>
  2225. <FormItem className="half-item"
  2226. {...formItemLayout}
  2227. label="意向业务进度" >
  2228. <span>{getfllowSituation(this.state.followSituation)}</span>
  2229. </FormItem>
  2230. <FormItem className="half-item"
  2231. {...formItemLayout}
  2232. label="业务客户状态" >
  2233. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  2234. </FormItem>
  2235. </div>
  2236. <div className="clearfix">
  2237. <FormItem className="half-item"
  2238. {...formItemLayout}
  2239. label="业务意向说明" >
  2240. <span>{this.state.remarks}</span>
  2241. </FormItem>
  2242. </div>
  2243. <div className="clearfix">
  2244. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  2245. <div className="clearfix">
  2246. <Spin spinning={this.state.loading}>
  2247. <Table
  2248. pagination={this.state.paginations}
  2249. columns={this.state.businessFollowList}
  2250. dataSource={this.state.visitArrList}
  2251. />
  2252. </Spin>
  2253. </div>
  2254. </div>
  2255. </Spin>
  2256. </Form>
  2257. </div>
  2258. </Modal>
  2259. <Modal
  2260. footer=''
  2261. title="业务跟进详情"
  2262. width='600px'
  2263. visible={this.state.businessFollowModul}
  2264. onOk={this.businessFollowOk}
  2265. onCancel={this.businessFollowCancel}
  2266. >
  2267. <div className="clearfix">
  2268. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  2269. <Spin spinning={this.state.loading}>
  2270. <div className="clearfix">
  2271. <FormItem className="half-item"
  2272. {...formItemLayout}
  2273. label="意向业务名称" >
  2274. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  2275. </FormItem>
  2276. <FormItem className="half-item"
  2277. {...formItemLayout}
  2278. label="意向时间" >
  2279. <span>{this.state.createTimes}</span>
  2280. </FormItem>
  2281. <FormItem className="half-item"
  2282. {...formItemLayout}
  2283. label="客户名称" >
  2284. <span>{this.state.identifyNames}</span>
  2285. </FormItem>
  2286. <FormItem className="half-item"
  2287. {...formItemLayout}
  2288. label="营销员" >
  2289. <span>{this.state.adminNames}</span>
  2290. </FormItem>
  2291. <FormItem className="half-item"
  2292. {...formItemLayout}
  2293. label="意向业务进度" >
  2294. <span>{getfllowSituation(this.state.followSituations)}</span>
  2295. </FormItem>
  2296. <FormItem className="half-item"
  2297. {...formItemLayout}
  2298. label="业务客户状态" >
  2299. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  2300. </FormItem>
  2301. </div>
  2302. <div className="clearfix">
  2303. <FormItem className="half-item"
  2304. {...formItemLayout}
  2305. label="业务意向说明" >
  2306. <span>{this.state.remarkss}</span>
  2307. </FormItem>
  2308. </div>
  2309. <div className="clearfix">
  2310. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  2311. <FormItem className="half-item"
  2312. {...formItemLayout}
  2313. label="拜访方式" >
  2314. <span>{getContactType(this.state.contactTypes)}</span>
  2315. </FormItem>
  2316. <FormItem className="half-item"
  2317. {...formItemLayout}
  2318. label="联系人" >
  2319. <span>{this.state.contactss}</span>
  2320. </FormItem>
  2321. <FormItem className="half-item"
  2322. {...formItemLayout}
  2323. label="联系电话" >
  2324. <span>{this.state.contactMobiles}</span>
  2325. </FormItem>
  2326. <FormItem className="half-item"
  2327. {...formItemLayout}
  2328. label="拜访时间" >
  2329. <span>{this.state.followTimes}</span>
  2330. </FormItem>
  2331. <FormItem className="half-item"
  2332. {...formItemLayout}
  2333. label="拜访人" >
  2334. <span>{this.state.adminNames}</span>
  2335. </FormItem>
  2336. <div className="clearfix">
  2337. <FormItem className="half-item"
  2338. {...formItemLayout}
  2339. label="拜访备注" >
  2340. <span>{this.state.results}</span>
  2341. </FormItem>
  2342. </div>
  2343. </div>
  2344. </Spin>
  2345. </Form>
  2346. </div>
  2347. </Modal>
  2348. </div >
  2349. );
  2350. }
  2351. }));
  2352. const Tablees=Form.create()(React.createClass({
  2353. //详情tab切换数据处理
  2354. callbacks(e) {
  2355. this.setState({
  2356. callnubs: e,
  2357. })
  2358. if(e == '1') {
  2359. }
  2360. if(e == '2') {
  2361. }
  2362. },
  2363. getInitialState() {
  2364. return {
  2365. callnubs: "1",
  2366. }
  2367. },
  2368. render() {
  2369. return(
  2370. <div className="clearfix" style={{marginTop:'0px',marginLeft:'20px'}}>
  2371. <Tabs onChange={this.callbacks} type="card" activeKey={this.state.callnubs} style={{paddingLeft:'15px',paddingRight:'15px',marginRight:'20px'}}>
  2372. <TabPane tab="个人客户" key="1" >
  2373. <QueryCustomer />
  2374. </TabPane>
  2375. <TabPane tab="单位客户" key="2">
  2376. <PublicCustomer />
  2377. </TabPane>
  2378. </Tabs>
  2379. </div>
  2380. );
  2381. }
  2382. }));
  2383. export default Tablees;