companyCustomer.jsx 118 KB

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