companyCustomer.jsx 118 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190
  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. callnub:'1',
  1023. selectedRowKeys: [],
  1024. rowId: record.id,
  1025. })
  1026. },
  1027. VisitRowClick(record, index) {
  1028. this.state.keys = false;
  1029. this.state.RowData = record;
  1030. this.visitModify(record.followId);
  1031. this.setState({
  1032. selectedRowKeys: [],
  1033. delectId: record.followId,
  1034. })
  1035. },
  1036. //基本信息提交
  1037. newSubmit(e) {
  1038. e.preventDefault();
  1039. if(!this.state.industry) {
  1040. message.warning('请选择行业');
  1041. return false;
  1042. };
  1043. if(!this.state.societyTag) {
  1044. message.warning('请选择社会性质');
  1045. return false;
  1046. };
  1047. if(!this.state.ProvinceCity[1]) {
  1048. message.warning('请选择地区');
  1049. return false;
  1050. };
  1051. this.state.data = [];
  1052. this.setState({
  1053. selectedRowKeys: [],
  1054. });
  1055. this.props.form.validateFields((err, values) => {
  1056. let theorgCodeUrl = [];
  1057. if(this.state.orgCodeUrl.length) {
  1058. let picArr = [];
  1059. this.state.orgCodeUrl.map(function(item) {
  1060. if ( item.response && item.response.data && item.response.data.length ){
  1061. picArr.push(item.response.data);
  1062. }
  1063. });
  1064. theorgCodeUrl = picArr.join(",");
  1065. };
  1066. let thecompanyLogoUrl = [];
  1067. if(this.state.companyLogoUrl.length) {
  1068. let picArr = [];
  1069. this.state.companyLogoUrl.map(function(item) {
  1070. if ( item.response && item.response.data && item.response.data.length ){
  1071. picArr.push(item.response.data);
  1072. }
  1073. });
  1074. thecompanyLogoUrl = picArr.join(",");
  1075. };
  1076. if(!err) {
  1077. this.setState({
  1078. loading: true
  1079. });
  1080. $.ajax({
  1081. method: "post",
  1082. dataType: "json",
  1083. url: globalConfig.context + '/api/admin/customer/updateOrganizationCustomer',
  1084. data: {
  1085. id: this.state.InformationId,
  1086. uid: this.state.InformationUid,
  1087. societyTag: this.state.societyTag,
  1088. introduction: this.state.introduction,
  1089. unitName: this.state.unitName,
  1090. industry: this.state.industry,
  1091. locationProvince: (this.state.ProvinceCity)[0], //省-
  1092. locationCity: (this.state.ProvinceCity)[1], //市
  1093. locationArea: (this.state.ProvinceCity)[2], //区
  1094. postalAddress: this.state.postalAddress,
  1095. contactsFixedTel: this.state.contactsFixedTel,
  1096. contactsFax: this.state.contactsFax,
  1097. registeredCapital: this.state.registeredCapital,
  1098. enterpriseScale: this.state.enterpriseScale,
  1099. legalPerson: this.state.legalPerson,
  1100. international: this.state.international,
  1101. legalPersonIdCard: this.state.legalPersonIdCard,
  1102. legalPersonTel: this.state.legalPersonTel,
  1103. legalPersonEmail: this.state.legalPersonEmail,
  1104. highTechZone: this.state.highTechZone,
  1105. listed: this.state.listed,
  1106. orgCode: this.state.orgCode,
  1107. businessScope: this.state.businessScope,
  1108. introduction: this.state.introduction,
  1109. companyLogoUrl: thecompanyLogoUrl,
  1110. orgCodeUrl: theorgCodeUrl,
  1111. investment: this.state.investment,
  1112. auditStatus: this.state.auditStatus,
  1113. businessAudit: this.state.businessAudit
  1114. }
  1115. }).done(function(data) {
  1116. this.setState({
  1117. loading: false
  1118. });
  1119. if(!data.error.length) {
  1120. message.success('保存成功!');
  1121. this.detailsModal()
  1122. this.loadData();
  1123. } else {
  1124. message.warning(data.error[0].message);
  1125. }
  1126. }.bind(this));
  1127. }
  1128. })
  1129. },
  1130. //点击整行查看详情
  1131. //查看基本详情基本信息
  1132. loadInformation(record) {
  1133. this.RowClick;
  1134. $.ajax({
  1135. method: "get",
  1136. dataType: "json",
  1137. crossDomain: false,
  1138. url: globalConfig.context + '/api/admin/customer/findOrganizationCustomerDetail',
  1139. data: {
  1140. uid: record
  1141. },
  1142. success: function(data) {
  1143. let thisData = data.data;
  1144. if(!thisData) {
  1145. if(data.error && data.error.length) {
  1146. message.warning(data.error[0].message);
  1147. };
  1148. thisData = {};
  1149. };
  1150. let ProvinceCityArr = [];
  1151. let ProvinceS = thisData.locationProvince; //getprovince
  1152. let citys = thisData.locationCity;
  1153. let Areas = thisData.locationArea;
  1154. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1155. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  1156. this.setState({
  1157. InformationId: thisData.id,
  1158. InformationUid: thisData.uid,
  1159. identifyName: thisData.identifyName,
  1160. listed: thisData.listed,
  1161. highTechZone: thisData.highTechZone,
  1162. orgCodeUrl: thisData.orgCodeUrl ? splitUrl(thisData.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1163. companyLogoUrl: thisData.companyLogoUrl ? splitUrl(thisData.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1164. dataInformation: thisData,
  1165. ProvinceCity: ProvinceCityArr,
  1166. proviceCityArea: ProvinceS ? cityArea : '',
  1167. industry: String(thisData.industry) == 'null' ? undefined : String(thisData.industry),
  1168. international: thisData.international,
  1169. societyTag: thisData.societyTag,
  1170. introduction: thisData.introduction,
  1171. postalAddress: thisData.postalAddress,
  1172. contactsFixedTel: thisData.contactsFixedTel,
  1173. contactsFax: thisData.contactsFax,
  1174. registeredCapital: thisData.registeredCapital,
  1175. enterpriseScale: thisData.enterpriseScale,
  1176. legalPerson: thisData.legalPerson,
  1177. legalPersonIdCard: thisData.legalPersonIdCard,
  1178. legalPersonTel: thisData.legalPersonTel,
  1179. legalPersonEmail: thisData.legalPersonEmail,
  1180. businessScope: thisData.businessScope,
  1181. orgCode: thisData.orgCode,
  1182. investment: thisData.investment,
  1183. auditStatus: thisData.auditStatus?String(thisData.auditStatus):undefined,
  1184. businessAudit: thisData.businessAudit
  1185. });
  1186. }.bind(this),
  1187. }).always(function() {
  1188. this.setState({
  1189. loading: false
  1190. });
  1191. }.bind(this));
  1192. },
  1193. //tab3账户信息请求数据
  1194. httpAccount(record) {
  1195. this.RowClick;
  1196. $.ajax({
  1197. method: "get",
  1198. dataType: "json",
  1199. crossDomain: false,
  1200. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  1201. data: {
  1202. uid: record
  1203. },
  1204. success: function(data) {
  1205. let thisData = data.data;
  1206. if(!thisData) {
  1207. if(data.error && data.error.length) {
  1208. message.warning(data.error[0].message);
  1209. };
  1210. thisData = {};
  1211. };
  1212. let sourcecustomer = ''
  1213. switch(String(thisData.source)) {
  1214. case '0':
  1215. sourcecustomer = '注册客户'
  1216. break;
  1217. case '1':
  1218. sourcecustomer = '录入客户'
  1219. break;
  1220. }
  1221. this.setState({
  1222. Accountuid: thisData.id,
  1223. mobile: thisData.mobile,
  1224. nickname: thisData.nickname,
  1225. email: thisData.email,
  1226. type: getcustomerTyp(String(thisData.type)),
  1227. source: sourcecustomer,
  1228. isMember: thisData.isMember,
  1229. currentMemberStatus: String(thisData.currentMemberStatus),
  1230. lvl: String(thisData.lvl),
  1231. status: String(thisData.status),
  1232. createTimes: thisData.createTimes,
  1233. });
  1234. }.bind(this),
  1235. }).always(function() {
  1236. this.setState({
  1237. loading: false
  1238. });
  1239. }.bind(this));
  1240. },
  1241. detailsModalOk(e) {
  1242. this.setState({ modal5Visible: true }); //需要一个请求数据
  1243. this.loadInformation(e.id);
  1244. this.contactLists(e.id);
  1245. this.httpAccount(e.id);
  1246. this.loadBfVisit(1, e.id);
  1247. this.BusinessList(1, e.id);
  1248. },
  1249. //点击消失函数
  1250. detailsModal(e) {
  1251. this.setState({
  1252. modal5Visible: false
  1253. });
  1254. },
  1255. //拜访modul函数
  1256. visitOk(e) {
  1257. this.setState({
  1258. visitModul: false
  1259. });
  1260. this.loadVisit()
  1261. },
  1262. visitCancel(e) {
  1263. this.setState({
  1264. visitModul: false
  1265. });
  1266. },
  1267. //拜访保存函数
  1268. visitSubmit(e) {
  1269. e.preventDefault();
  1270. let GlossoryId;
  1271. this.state.data.map(function(item) {
  1272. if(!item.businessGlossoryId) {
  1273. GlossoryId = true
  1274. }
  1275. })
  1276. if(this.state.contactType == undefined) {
  1277. message.warning('请选择拜访方式')
  1278. return false;
  1279. };
  1280. if(this.state.keys) {
  1281. if(this.state.lastName == undefined) {
  1282. message.warning('请选择联系人')
  1283. return false;
  1284. }
  1285. };
  1286. if(GlossoryId) {
  1287. message.warning("请选择业务名称!")
  1288. return false;
  1289. };
  1290. this.setState({
  1291. selectedRowKeys: [],
  1292. });
  1293. this.setState({
  1294. loading: true
  1295. });
  1296. let contactsId = '';
  1297. if(this.state.keys) {
  1298. let conts = this.state.lastName;
  1299. contactsId = this.state.contactsIdArr[conts].id;
  1300. }
  1301. //新增
  1302. $.ajax({
  1303. method: "post",
  1304. dataType: "json",
  1305. url: this.state.keys ? globalConfig.context + '/api/admin/customer/addFollow' : globalConfig.context + '/api/admin/customer/updateFollow',
  1306. data: this.state.keys ? {
  1307. userBusinessList: JSON.stringify(this.state.data),
  1308. uid: this.state.uid,
  1309. ocbId: contactsId,
  1310. contactType: this.state.contactType,
  1311. result: this.state.result,
  1312. followTime: this.state.followTime,
  1313. } : {
  1314. followId: this.state.followIds,
  1315. userBusinessList: JSON.stringify(this.state.data),
  1316. uid: this.state.uid,
  1317. contactType: this.state.contactType,
  1318. result: this.state.result,
  1319. followTime: this.state.followTime,
  1320. }
  1321. }).done(function(data) {
  1322. this.setState({
  1323. loading: false
  1324. });
  1325. if(!data.error.length) {
  1326. message.success('保存成功!');
  1327. this.loadVisit(); //
  1328. this.loadData();
  1329. this.visitCancel();
  1330. } else {
  1331. message.warning(data.error[0].message);
  1332. }
  1333. }.bind(this));
  1334. },
  1335. //当选择联系人的列表变化时,则执行
  1336. hundleName(e) {
  1337. let changNub = this.state.telNum[e];
  1338. this.setState({
  1339. nub: this.state.telNum[e],
  1340. lastName: e,
  1341. });
  1342. },
  1343. //添加新业务及单位客户详情新增
  1344. addNew() {
  1345. this.state.data.push({
  1346. customerStatus: undefined,
  1347. businessGlossoryId: undefined,
  1348. followSituation: undefined,
  1349. remarks: '',
  1350. });
  1351. this.setState({
  1352. data: this.state.data
  1353. })
  1354. },
  1355. //tab2新增联系人
  1356. addcontact() {
  1357. this.state.contactList.push({
  1358. id: null,
  1359. name: '',
  1360. mobile: '',
  1361. email: '',
  1362. qq: '',
  1363. wechat: '',
  1364. depatrment: '',
  1365. position: '',
  1366. });
  1367. this.setState({
  1368. contactList: this.state.contactList
  1369. })
  1370. },
  1371. //tab5进入修改时
  1372. //进入修改时
  1373. listFollowUp(e) {
  1374. $.ajax({
  1375. method: "get",
  1376. dataType: "json",
  1377. crossDomain: false,
  1378. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  1379. data: {
  1380. ufbId: e
  1381. },
  1382. success: function(data) {
  1383. let thedata = data.data;
  1384. if(!thedata) {
  1385. if(data.error && data.error.length) {
  1386. message.warning(data.error[0].message);
  1387. };
  1388. thedata = {};
  1389. };
  1390. this.setState({
  1391. businessGlossoryIds: thedata.businessGlossoryId,
  1392. followSituations: thedata.followSituation,
  1393. customerStatuss: thedata.customerStatus,
  1394. followTimes: thedata.followTime,
  1395. createTimes: thedata.createTime,
  1396. identifyNames: thedata.identifyName,
  1397. contactTypes: parseInt(thedata.contactType),
  1398. results: thedata.result,
  1399. remarkss: thedata.remarks,
  1400. adminNames: thedata.adminName,
  1401. contactss: thedata.contacts,
  1402. contactMobiles: thedata.contactMobile,
  1403. ufbId: thedata.ufbId,
  1404. followIds: thedata.followId,
  1405. });
  1406. }.bind(this),
  1407. }).always(function() {
  1408. this.setState({
  1409. loading: false
  1410. });
  1411. }.bind(this));
  1412. },
  1413. //修改密码Modul
  1414. modifyPassworld() {
  1415. this.setState({
  1416. passworldModul: true
  1417. });
  1418. },
  1419. passworldOk(e) {
  1420. this.setState({
  1421. passworldModul: false
  1422. });
  1423. },
  1424. passworldCancel(e) {
  1425. this.setState({
  1426. passworldModul: false
  1427. });
  1428. },
  1429. //修改密码保存
  1430. passworldSubmit(e) {
  1431. e.preventDefault();
  1432. this.passworldCancel()
  1433. },
  1434. //新增联系人
  1435. addcontactModulOK() {
  1436. this.setState({
  1437. addcontactModul: false
  1438. });
  1439. },
  1440. addcontactModulcancel() {
  1441. this.setState({
  1442. addcontactModul: false
  1443. });
  1444. },
  1445. //点击新增详情
  1446. newContacts() {
  1447. this.state.newsex =undefined;
  1448. this.state.newname ='';
  1449. this.state.newmobile='';
  1450. this.state.newwechat='';
  1451. this.state.newqq='';
  1452. this.state.newdepatrment='';
  1453. this.state.newposition='';
  1454. this.state.newemail='';
  1455. this.setState({
  1456. uids: this.state.uid,
  1457. addcontactModul: true
  1458. });
  1459. },
  1460. //新增联系人保存函数
  1461. submitcontactman(e) {
  1462. e.preventDefault();
  1463. this.setState({
  1464. loading: true
  1465. })
  1466. $.ajax({
  1467. method: "post",
  1468. dataType: "json",
  1469. crossDomain: false,
  1470. url: globalConfig.context + "/api/admin/customer/addOneContact",
  1471. data: {
  1472. uid: this.state.uids,
  1473. name: this.state.newname,
  1474. mobile: this.state.newmobile,
  1475. email: this.state.newemail,
  1476. wechat: this.state.newwechat,
  1477. depatrment: this.state.newdepatrment,
  1478. position: this.state.newposition,
  1479. sex: this.state.newsex,
  1480. qq: this.state.newqq
  1481. },
  1482. success: function(data) {
  1483. if(!data.error.length) {
  1484. this.addcontactModulOK()
  1485. this.getNewWoman(this.state.uids)
  1486. this.setState({
  1487. loading: false,
  1488. })
  1489. } else {
  1490. message.warning(data.error[0].message);
  1491. };
  1492. }.bind(this)
  1493. });
  1494. },
  1495. //获取联系人下拉框
  1496. getNewWoman(ids) {
  1497. this.state.data = []
  1498. $.ajax({
  1499. method: "get",
  1500. dataType: "json",
  1501. crossDomain: false,
  1502. url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
  1503. data: {
  1504. uid: ids,
  1505. },
  1506. success: function(data) {
  1507. let theArr = [];
  1508. let thedata = data.data;
  1509. if(!thedata) {
  1510. if(data.error && data.error.length) {
  1511. message.warning(data.error[0].message);
  1512. };
  1513. thedata = {};
  1514. };
  1515. var telNum = [];
  1516. var contactIds = [];
  1517. thedata.map(function(item, index) {
  1518. contactIds.push(thedata[index].id);
  1519. telNum.push(thedata[index].mobile);
  1520. });
  1521. for(let item in data.data) {
  1522. let theData = data.data[item];
  1523. theArr.push(
  1524. <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>
  1525. );
  1526. };
  1527. this.setState({
  1528. contactsIdArr: thedata,
  1529. telNum: telNum,
  1530. orderStatusOption: theArr,
  1531. });
  1532. }.bind(this),
  1533. }).always(function() {
  1534. this.setState({
  1535. deletId: ids,
  1536. loading: false
  1537. });
  1538. }.bind(this));
  1539. },
  1540. //拜访意向服务列表单个删除
  1541. intentionDelet(e, index) {
  1542. if(!this.state.keys) {
  1543. let detId = this.state.followIds;
  1544. if(e.id) {
  1545. this.setState({
  1546. selectedRowKeys: [],
  1547. });
  1548. $.ajax({
  1549. method: "get",
  1550. dataType: "json",
  1551. crossDomain: false,
  1552. url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",
  1553. data: {
  1554. ufbId: e.id
  1555. }
  1556. }).done(function(data) {
  1557. if(!data.error.length) {
  1558. message.success('删除成功');
  1559. this.setState({
  1560. loading: false,
  1561. });
  1562. } else {
  1563. message.warning(data.error[0].message);
  1564. };
  1565. this.visitModify(detId);
  1566. }.bind(this));
  1567. } else {
  1568. this.visitModify(detId);
  1569. }
  1570. } else {
  1571. let deteluserBusinessList = (this.state.data).splice(index, 1)
  1572. this.setState({
  1573. selectedRowKeys: [],
  1574. });
  1575. }
  1576. },
  1577. //tab5意向业务
  1578. //意向业务查看列表单个详情
  1579. businessIntentionDetails(e) {
  1580. $.ajax({
  1581. method: "get",
  1582. dataType: "json",
  1583. crossDomain: false,
  1584. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  1585. data: {
  1586. businessId: e.businessId
  1587. },
  1588. success: function(data) {
  1589. let thisData = data.data;
  1590. if(!thisData) {
  1591. if(data.error && data.error.length) {
  1592. message.warning(data.error[0].message);
  1593. };
  1594. thisData = {};
  1595. };
  1596. this.setState({
  1597. businessGlossoryId: thisData.businessGlossoryId,
  1598. identifyName: thisData.identifyName,
  1599. uid: thisData.uid,
  1600. businessId: thisData.businessId,
  1601. followSituation: thisData.followSituation,
  1602. customerStatus: thisData.customerStatus,
  1603. createTime: thisData.createTime,
  1604. followTime: thisData.followTime,
  1605. adminName: thisData.adminName,
  1606. remarks: thisData.remarks,
  1607. result: thisData.result,
  1608. });
  1609. }.bind(this),
  1610. }).always(function() {
  1611. this.loadVisit();
  1612. this.setState({
  1613. loading: false
  1614. });
  1615. }.bind(this));
  1616. this.setState({
  1617. businessModul: true
  1618. })
  1619. },
  1620. //查看跟进记录列表
  1621. loadVisit(pageNo) {
  1622. this.setState({
  1623. loading: true
  1624. });
  1625. $.ajax({
  1626. method: "get",
  1627. dataType: "json",
  1628. crossDomain: false,
  1629. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1630. data: {
  1631. pageNo: pageNo || 1,
  1632. pageSize: this.state.paginations.pageSize,
  1633. uid: this.state.rowId, //名称1
  1634. businessGlossoryId: this.state.businessGlossoryId,
  1635. },
  1636. success: function(data) {
  1637. let theArr = [];
  1638. if(data.error.length || data.data.list == "") {
  1639. if(data.error && data.error.length) {
  1640. message.warning(data.error[0].message);
  1641. };
  1642. } else {
  1643. for(let i = 0; i < data.data.list.length; i++) {
  1644. let thisdata = data.data.list[i];
  1645. theArr.push({
  1646. followId: thisdata.followId,
  1647. followTime: thisdata.followTime,
  1648. identifyName: thisdata.identifyName,
  1649. contacts: thisdata.contacts,
  1650. contactMobile: thisdata.contactMobile,
  1651. result: thisdata.result,
  1652. ufbId: thisdata.ufbId,
  1653. adminName: thisdata.adminName,
  1654. followSituation: thisdata.followSituation,
  1655. customerStatus: thisdata.customerStatus,
  1656. contactType: thisdata.contactType
  1657. });
  1658. };
  1659. this.state.paginations.current = data.data.pageNo;
  1660. this.state.paginations.total = data.data.totalCount;
  1661. };
  1662. this.setState({
  1663. visitArrList: theArr,
  1664. paginations: this.state.paginations
  1665. });
  1666. }.bind(this),
  1667. }).always(function() {
  1668. this.setState({
  1669. loading: false
  1670. });
  1671. }.bind(this));
  1672. },
  1673. //tab3拜访记录
  1674. loadBfVisit(pageNo, uids) {
  1675. this.setState({
  1676. loading: true
  1677. });
  1678. $.ajax({
  1679. method: "get",
  1680. dataType: "json",
  1681. crossDomain: false,
  1682. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1683. data: {
  1684. pageNo: pageNo || 1,
  1685. pageSize: this.state.paginationsy.pageSize,
  1686. uid: uids ? uids : this.state.rowId, //名称1
  1687. },
  1688. success: function(data) {
  1689. let theArr = [];
  1690. if(data.error.length || data.data.list == "") {
  1691. if(data.error && data.error.length) {
  1692. message.warning(data.error[0].message);
  1693. };
  1694. } else {
  1695. for(let i = 0; i < data.data.list.length; i++) {
  1696. let thisdata = data.data.list[i];
  1697. theArr.push({
  1698. followId: thisdata.followId,
  1699. followTime: thisdata.followTime,
  1700. identifyName: thisdata.identifyName,
  1701. contacts: thisdata.contacts,
  1702. contactMobile: thisdata.contactMobile,
  1703. result: thisdata.result,
  1704. ufbId: thisdata.ufbId,
  1705. adminName: thisdata.adminName,
  1706. followSituation: thisdata.followSituation,
  1707. customerStatus: thisdata.customerStatus,
  1708. contactType: thisdata.contactType
  1709. });
  1710. };
  1711. this.state.paginationsy.current = data.data.pageNo;
  1712. this.state.paginationsy.total = data.data.totalCount;
  1713. };
  1714. this.setState({
  1715. visitArrList: theArr,
  1716. paginationsy: this.state.paginationsy
  1717. });
  1718. }.bind(this),
  1719. }).always(function() {
  1720. this.setState({
  1721. loading: false
  1722. });
  1723. }.bind(this));
  1724. },
  1725. businessIntentionOk() {
  1726. this.setState({
  1727. businessGlossoryId: '',
  1728. businessModul: false
  1729. })
  1730. },
  1731. businessIntentionCancel() {
  1732. this.setState({
  1733. businessGlossoryId: '',
  1734. businessModul: false
  1735. })
  1736. },
  1737. //业务跟进查看跟多
  1738. businessFollowDetails(e) {
  1739. this.listFollowUp(e.ufbId)
  1740. this.setState({
  1741. businessFollowModul: true
  1742. })
  1743. },
  1744. businessFollowOk(e) {
  1745. this.setState({
  1746. businessFollowModul: false
  1747. })
  1748. },
  1749. businessFollowCancel(e) {
  1750. this.setState({
  1751. businessFollowModul: false
  1752. })
  1753. },
  1754. //tab2联系人保存
  1755. contactSave(e) {
  1756. e.preventDefault();
  1757. this.setState({
  1758. loading: true
  1759. });
  1760. $.ajax({
  1761. url: globalConfig.context + '/api/admin/customer/updateCustomerContacts',
  1762. method: 'post',
  1763. data: {
  1764. uid: this.state.rowId,
  1765. contactList: JSON.stringify(this.state.contactList)
  1766. }
  1767. }).done(function(data) {
  1768. this.setState({
  1769. loading: false
  1770. });
  1771. if(!data.error.length) {
  1772. message.success('保存成功!');
  1773. this.detailsModal()
  1774. this.loadData();
  1775. } else {
  1776. message.warning(data.error[0].message);
  1777. }
  1778. }.bind(this));
  1779. },
  1780. //详情tab切换数据处理
  1781. callback(e) {
  1782. if(e == '1') {
  1783. this.loadInformation(this.state.rowId)
  1784. }
  1785. if(e == '2') {
  1786. this.contactLists(this.state.rowId)
  1787. }
  1788. if(e == '3') {
  1789. this.httpAccount(this.state.rowId)
  1790. }
  1791. if(e == '4') {
  1792. this.loadBfVisit(1, this.state.rowId);
  1793. }
  1794. if(e == '5') {
  1795. this.BusinessList(1, this.state.rowId);
  1796. }
  1797. if(e == '6') {
  1798. }
  1799. if(e == '7') {
  1800. }
  1801. if(e == '8') {
  1802. }
  1803. if(e == '9') {
  1804. }
  1805. this.setState({
  1806. callnub: e,
  1807. })
  1808. },
  1809. //账户信息保存
  1810. accountSave(e) {
  1811. e.preventDefault();
  1812. if(!this.state.mobile) {
  1813. message.warning('手机号码不能为空!')
  1814. return false;
  1815. }
  1816. this.state.data = [];
  1817. this.setState({
  1818. selectedRowKeys: [],
  1819. });
  1820. this.setState({
  1821. loading: true
  1822. });
  1823. $.ajax({
  1824. method: "post",
  1825. dataType: "json",
  1826. url: globalConfig.context + '/api/admin/customer/updateUserAccount',
  1827. data: {
  1828. id: this.state.Accountuid,
  1829. mobile: this.state.mobile,
  1830. nickname: this.state.nickname,
  1831. email: this.state.email,
  1832. isMember: this.state.isMember,
  1833. currentMemberStatus: this.state.currentMemberStatus,
  1834. lvl: this.state.lvl,
  1835. status: this.state.status,
  1836. }
  1837. }).done(function(data) {
  1838. this.setState({
  1839. loading: false
  1840. });
  1841. if(!data.error.length) {
  1842. message.success('保存成功!');
  1843. this.detailsModal();
  1844. this.loadData();
  1845. } else {
  1846. message.warning(data.error[0].message);
  1847. }
  1848. }.bind(this));
  1849. },
  1850. //tab2删除
  1851. confirmDelet(e) {
  1852. this.setState({
  1853. loading: true
  1854. });
  1855. if(e.id) {
  1856. $.ajax({
  1857. method: "get",
  1858. dataType: "json",
  1859. crossDomain: false,
  1860. url: globalConfig.context + "/api/admin/customer/deleteOneContact",
  1861. data: {
  1862. ocbId: e.id, //删除的ID
  1863. }
  1864. }).done(function(data) {
  1865. if(!data.error.length) {
  1866. message.success('删除成功!');
  1867. this.setState({
  1868. loading: false,
  1869. });
  1870. } else {
  1871. message.warning(data.error[0].message);
  1872. };
  1873. this.contactLists(this.state.rowId);
  1874. }.bind(this));
  1875. } else {
  1876. this.contactLists(this.state.rowId);
  1877. }
  1878. },
  1879. //tab5业务意向
  1880. BusinessList(pageNo, uids) {
  1881. this.setState({
  1882. loading: true
  1883. });
  1884. $.ajax({
  1885. method: "post",
  1886. dataType: "json",
  1887. crossDomain: false,
  1888. url: globalConfig.context + '/api/admin/customer/listBusiness',
  1889. data: {
  1890. pageNo: pageNo || 1,
  1891. pageSize: this.state.paginationt.pageSize,
  1892. uid: uids ? uids : this.state.rowId
  1893. },
  1894. success: function(data) {
  1895. let theArr = [];
  1896. if(data.error.length || data.data.list == "") {
  1897. if(data.error && data.error.length) {
  1898. message.warning(data.error[0].message);
  1899. };
  1900. } else {
  1901. for(let i = 0; i < data.data.list.length; i++) {
  1902. let thisdata = data.data.list[i];
  1903. theArr.push({
  1904. key: i,
  1905. businessId: thisdata.businessId,
  1906. businessName: thisdata.businessName,
  1907. identifyName: thisdata.identifyName,
  1908. followSituation: thisdata.followSituation,
  1909. customerStatus: thisdata.customerStatus,
  1910. adminName: thisdata.adminName,
  1911. createTime: thisdata.createTime
  1912. });
  1913. };
  1914. this.state.paginationt.current = data.data.pageNo;
  1915. this.state.paginationt.total = data.data.totalCount;
  1916. };
  1917. this.setState({
  1918. dataBusiness: theArr,
  1919. paginationt: this.state.paginationt
  1920. });
  1921. }.bind(this),
  1922. }).always(function() {
  1923. this.setState({
  1924. loading: false
  1925. });
  1926. }.bind(this));
  1927. },
  1928. componentWillReceiveProps(nextProps) {
  1929. if(!this.props.visible && nextProps.visible) {
  1930. if(nextProps.data && nextProps.data.id) {
  1931. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1932. };
  1933. this.state.data = {};
  1934. this.state.companyLogoUrl = [];
  1935. this.state.orgCodeUrl = [];
  1936. this.loadData(null);
  1937. };
  1938. },
  1939. render() {
  1940. const FormItem = Form.Item
  1941. const rowSelection = {
  1942. selectedRowKeys: this.state.selectedRowKeys,
  1943. onChange: (selectedRowKeys, selectedRows) => {
  1944. this.setState({
  1945. selectedRows: selectedRows.slice(-1),
  1946. selectedRowKeys: selectedRowKeys.slice(-1)
  1947. });
  1948. },
  1949. onSelect: (recordt, selected, selectedRows) => {
  1950. this.setState({
  1951. recordt: recordt.id
  1952. })
  1953. },
  1954. };
  1955. const rowSelections = {
  1956. selectedRowKeys: this.state.selectedRowKey,
  1957. onChange: (selectedRowKey, selectedRow) => {
  1958. this.setState({
  1959. selectedRow: selectedRow.slice(-1),
  1960. selectedRowKey: selectedRowKey.slice(-1)
  1961. });
  1962. },
  1963. onSelect: (records, selected, selectedRow) => {
  1964. this.setState({
  1965. selectedRow: selectedRow.slice(-1),
  1966. records: records.id,
  1967. })
  1968. },
  1969. };
  1970. const hasSelected = this.state.selectedRowKeys.length > 0;
  1971. const { RangePicker } = DatePicker;
  1972. const { getFieldDecorator } = this.props.form;
  1973. const formItemLayout = {
  1974. labelCol: { span: 8 },
  1975. wrapperCol: { span: 14 },
  1976. };
  1977. //const theDatak = this.state.datak || {};
  1978. const theInformation = this.state.dataInformation || {}
  1979. const contactsOption = "";
  1980. const formItemLayput = {
  1981. labelCol: { span: 10 },
  1982. wrapperCol: { span: 14 },
  1983. };
  1984. const contacts = this.state.contacts || '';
  1985. return(
  1986. <div className="user-content" >
  1987. <div className="content-title">
  1988. <span>我的客户</span>
  1989. </div>
  1990. <div className="user-search">
  1991. <Input placeholder="客户名称"
  1992. value={this.state.nameSearch}
  1993. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1994. <Select placeholder="省"
  1995. style={{ width: 80 }}
  1996. value={this.state.provinceSearch}
  1997. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1998. {this.state.Provinces}
  1999. </Select>
  2000. <span style={{marginRight:'10px'}}>
  2001. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  2002. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  2003. </span>
  2004. <span style={{marginRight:'10px'}}>客户类型:</span>
  2005. <Select placeholder="选择客户类型"
  2006. style={{ width: 100 }}
  2007. value={this.state.shareTypeSearch}
  2008. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  2009. <Select.Option value="" >所有客户</Select.Option>
  2010. <Select.Option value="1" >公共客户</Select.Option>
  2011. </Select>
  2012. <Button type="primary" onClick={this.search}>搜索</Button>
  2013. <Button onClick={this.reset}>重置</Button>
  2014. {adminData.isSuperAdmin?<Button type='danger' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  2015. disabled={!hasSelected}
  2016. onClick={this.delectRow}>删除<Icon type="minus" />
  2017. </Button>:''}
  2018. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  2019. <div className='clearfix' style={{marginTop:'5px'}}>
  2020. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  2021. <RangePicker
  2022. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  2023. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  2024. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  2025. <Select placeholder="账户状态"
  2026. style={{ width: 100 }}
  2027. value={this.state.statusSearch}
  2028. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  2029. <Select.Option value="0" >正常</Select.Option>
  2030. <Select.Option value="2" >锁定</Select.Option>
  2031. </Select>
  2032. <Select placeholder="行业"
  2033. style={{ width: 100 }}
  2034. value={this.state.industrySearch}
  2035. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  2036. {this.state.intentionalOption}
  2037. </Select>
  2038. <span>认证:</span>
  2039. <Select placeholder="业务认证"
  2040. style={{ width: 100 }}
  2041. value={this.state.serviceCertificationSearch}
  2042. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  2043. <Select.Option value="0" >未认证</Select.Option>
  2044. <Select.Option value="1" >已认证</Select.Option>
  2045. </Select>
  2046. <Select placeholder="实名认证"
  2047. style={{ width: 100 }}
  2048. value={this.state.userCertificationSearch}
  2049. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  2050. {
  2051. auditStatusL.map(function (item) {
  2052. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2053. })
  2054. }
  2055. </Select>
  2056. <span>国际:</span>
  2057. <Select placeholder="国际"
  2058. style={{ width: 100 }}
  2059. value={this.state.internationalSearch}
  2060. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2061. <Select.Option value="0" >否</Select.Option>
  2062. <Select.Option value="1" >是</Select.Option>
  2063. </Select>
  2064. <span>高新:</span>
  2065. <Select placeholder="高新"
  2066. style={{ width: 100 }}
  2067. value={this.state.highTechZoneSearch}
  2068. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  2069. <Select.Option value="0" >否</Select.Option>
  2070. <Select.Option value="1" >是</Select.Option>
  2071. </Select>
  2072. <span>上市:</span>
  2073. <Select placeholder="上市"
  2074. style={{ width: 100 }}
  2075. value={this.state.listedSearch}
  2076. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  2077. <Select.Option value="0" >否</Select.Option>
  2078. <Select.Option value="1" >是</Select.Option>
  2079. </Select>
  2080. <span>会员:</span>
  2081. <Select placeholder="会员等级"
  2082. style={{ width: 100 }}
  2083. value={this.state.lvlSearch}
  2084. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2085. {this.state.lvlArrOption}
  2086. </Select>
  2087. <Select placeholder="会员状态"
  2088. style={{ width: 100 }}
  2089. value={this.state.currentMemberStatusSearch}
  2090. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2091. {this.state.currentMemberArrOption}
  2092. </Select>
  2093. <Select placeholder="社会性质"
  2094. style={{ width: 100 }}
  2095. value={this.state.societyTagSearch}
  2096. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  2097. {
  2098. socialAttribute.map(function (item) {
  2099. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2100. })
  2101. }
  2102. </Select>
  2103. </div>
  2104. </div>
  2105. </div>
  2106. <div className="patent-table">
  2107. <Spin spinning={this.state.loading}>
  2108. <Table columns={this.state.columns}
  2109. dataSource={this.state.dataSource}
  2110. rowSelection={rowSelection}
  2111. pagination={this.state.pagination}
  2112. onRowClick={this.tableRowClick}
  2113. />
  2114. </Spin>
  2115. </div>
  2116. <Modal
  2117. className="customeDetails"
  2118. title="单位客户详情"
  2119. width='1200px'
  2120. visible={this.state.modal5Visible}
  2121. onOk={this.detailsModal}
  2122. onCancel={this.detailsModal}
  2123. footer=''
  2124. >
  2125. <Tabs defaultActiveKey="1" onChange={this.callback} activeKey={this.state.callnub}>
  2126. <TabPane tab="基本信息" key="1">
  2127. {adminData.isSuperAdmin?<Form horizontal onSubmit={this.newSubmit} id="demand-form">
  2128. <Spin spinning={this.state.loading}>
  2129. <div className="clearfix" style={{paddingLeft:'60px'}}>
  2130. <FormItem className="half-item"
  2131. labelCol={{ span: 4 }}
  2132. wrapperCol={{ span: 18 }}
  2133. label="客户名称"
  2134. >
  2135. <span>{theInformation.identifyName}</span>
  2136. </FormItem>
  2137. </div>
  2138. <div className="clearfix" style={{paddingLeft:'60px'}}>
  2139. <FormItem className="half-item"
  2140. labelCol={{ span: 4 }}
  2141. wrapperCol={{ span: 18 }}
  2142. label="行业">
  2143. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  2144. onChange={(e)=>{this.setState({industry:e})}}>
  2145. {
  2146. industry.map(function (item) {
  2147. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2148. })
  2149. }
  2150. </Select>
  2151. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2152. </FormItem>
  2153. <FormItem className="half-item"
  2154. labelCol={{ span: 4 }}
  2155. wrapperCol={{ span: 18 }}
  2156. label="社会属性"
  2157. >
  2158. <Select placeholder="客户社会属性(必填项)" value={this.state.societyTag} style={{width:'300px'}}
  2159. onChange={(e)=>{this.setState({societyTag:e})}}>
  2160. {
  2161. socialAttribute.map(function (item) {
  2162. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2163. })
  2164. }
  2165. </Select>
  2166. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2167. </FormItem>
  2168. <FormItem className="half-item"
  2169. labelCol={{ span: 4 }}
  2170. wrapperCol={{ span: 18 }}
  2171. label="省-市-区"
  2172. >
  2173. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  2174. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  2175. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2176. </FormItem>
  2177. <FormItem className="half-item"
  2178. labelCol={{ span: 4 }}
  2179. wrapperCol={{ span: 18 }}
  2180. label="通信地址"
  2181. >
  2182. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  2183. onChange={(e)=>{this.setState({postalAddress:e.target.value})}}/>
  2184. </FormItem>
  2185. <FormItem className="half-item"
  2186. labelCol={{ span: 4 }}
  2187. wrapperCol={{ span: 18 }}
  2188. label="固定电话"
  2189. >
  2190. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  2191. onChange={(e)=>{this.setState({contactsFixedTel:e.target.value})}}/>
  2192. </FormItem>
  2193. <FormItem className="half-item"
  2194. labelCol={{ span: 4 }}
  2195. wrapperCol={{ span: 18 }}
  2196. label="客户传真"
  2197. >
  2198. <Input placeholder="客户传真" value={this.state.contactsFax}
  2199. onChange={(e)=>{this.setState({contactsFax:e.target.value})}}/>
  2200. </FormItem>
  2201. <FormItem className="half-item"
  2202. labelCol={{ span: 4 }}
  2203. wrapperCol={{ span: 18 }}
  2204. label="注册资本"
  2205. >
  2206. <Input placeholder="注册资本" value={this.state.registeredCapital}
  2207. onChange={(e)=>{this.setState({registeredCapital:e.target.value})}}/>
  2208. </FormItem>
  2209. <FormItem className="half-item"
  2210. labelCol={{ span: 4 }}
  2211. wrapperCol={{ span: 18 }}
  2212. label="单位规模"
  2213. >
  2214. <Input placeholder="单位规模" value={this.state.enterpriseScale}
  2215. onChange={(e)=>{this.setState({enterpriseScale:e.target.value})}}/>
  2216. </FormItem>
  2217. <FormItem className="half-item"
  2218. labelCol={{ span: 4 }}
  2219. wrapperCol={{ span: 18 }}
  2220. label="法人名称"
  2221. >
  2222. <Input placeholder="法人名称" value={this.state.legalPerson}
  2223. onChange={(e)=>{this.setState({legalPerson:e.target.value})}}/>
  2224. </FormItem>
  2225. <FormItem className="half-item"
  2226. labelCol={{ span: 4 }}
  2227. wrapperCol={{ span: 18 }}
  2228. label="身份证号码"
  2229. >
  2230. <Input placeholder="法人身份证号码" value={this.state.legalPersonIdCard}
  2231. onChange={(e)=>{this.setState({legalPersonIdCard:e.target.value})}}/>
  2232. </FormItem>
  2233. <FormItem className="half-item"
  2234. labelCol={{ span: 4 }}
  2235. wrapperCol={{ span: 18 }}
  2236. label="法人电话"
  2237. >
  2238. <Input placeholder="法人电话" value={this.state.legalPersonTel}
  2239. onChange={(e)=>{this.setState({legalPersonTel:e.target.value})}}/>
  2240. </FormItem>
  2241. <FormItem className="half-item"
  2242. labelCol={{ span: 4 }}
  2243. wrapperCol={{ span: 18 }}
  2244. label="电子邮箱"
  2245. >
  2246. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  2247. onChange={(e)=>{this.setState({legalPersonEmail:e.target.value})}}/>
  2248. </FormItem>
  2249. <FormItem className="half-item"
  2250. labelCol={{ span: 4 }}
  2251. wrapperCol={{ span: 18 }}
  2252. label="机构代码"
  2253. >
  2254. <Input placeholder="社会同意机构代码" value={this.state.orgCode}
  2255. onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
  2256. </FormItem>
  2257. <FormItem className="half-item"
  2258. labelCol={{ span: 4 }}
  2259. wrapperCol={{ span: 18 }}
  2260. label="实名认证"
  2261. >
  2262. {adminData.isSuperAdmin?<Select placeholder="实名认证"
  2263. value={this.state.auditStatus}
  2264. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  2265. {
  2266. auditStatusL.map(function (item) {
  2267. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2268. })
  2269. }
  2270. </Select>:<span>{getAuditStatus(this.state.auditStatus)}</span>}
  2271. </FormItem>
  2272. <div className="clearfix">
  2273. <FormItem className="half-item"
  2274. labelCol={{ span: 4 }}
  2275. wrapperCol={{ span: 18 }}
  2276. label="业务认证"
  2277. >
  2278. {adminData.isSuperAdmin?<Radio.Group value={this.state.businessAudit} onChange={(e) => {
  2279. this.setState({ businessAudit: e.target.value })
  2280. }}>
  2281. <Radio value={0}>未认证</Radio>
  2282. <Radio value={1}>已认证</Radio>
  2283. </Radio.Group>:<span>{this.state.businessAudit?'是':'否'}</span>}
  2284. </FormItem>
  2285. <FormItem className="half-item"
  2286. labelCol={{ span: 4 }}
  2287. wrapperCol={{ span: 18 }}
  2288. label="投资机构"
  2289. >
  2290. <Radio.Group value={this.state.investment} onChange={(e) => {
  2291. this.setState({investment:e.target.value})
  2292. }}>
  2293. <Radio value={0}>否</Radio>
  2294. <Radio value={1}>是</Radio>
  2295. </Radio.Group>
  2296. </FormItem>
  2297. <FormItem className="half-item"
  2298. labelCol={{ span: 4 }}
  2299. wrapperCol={{ span: 18 }}
  2300. label="高新"
  2301. >
  2302. <Radio.Group value={this.state.highTechZone} onChange={(e) => {
  2303. this.setState({highTechZone:e.target.value})
  2304. }}>
  2305. <Radio value={0}>否</Radio>
  2306. <Radio value={1}>是</Radio>
  2307. </Radio.Group>
  2308. </FormItem>
  2309. <FormItem className="half-item"
  2310. labelCol={{ span: 4 }}
  2311. wrapperCol={{ span: 18 }}
  2312. label="上市"
  2313. >
  2314. <Radio.Group value={this.state.listed} onChange={(e) => {
  2315. this.setState({listed:e.target.value })
  2316. }}>
  2317. <Radio value={0}>否</Radio>
  2318. <Radio value={1}>是</Radio>
  2319. </Radio.Group>
  2320. </FormItem>
  2321. <FormItem className="half-item"
  2322. labelCol={{ span: 4 }}
  2323. wrapperCol={{ span: 18 }}
  2324. label="国际化"
  2325. >
  2326. <Radio.Group value={this.state.international} onChange={(e) => {
  2327. this.setState({international:e.target.value })
  2328. }}>
  2329. <Radio value={0}>否</Radio>
  2330. <Radio value={1}>是</Radio>
  2331. </Radio.Group>
  2332. </FormItem>
  2333. </div>
  2334. <div className="clearfix pictures">
  2335. <FormItem
  2336. labelCol={{ span: 4 }}
  2337. wrapperCol={{ span: 18 }}
  2338. label="机构证(PIC)" >
  2339. <PicturesWall
  2340. pictureSign="PIC"
  2341. fileList={this.getOrgCodeUrl}
  2342. pictureUrl={this.state.orgCodeUrl} />
  2343. <p>图片建议:图片要清晰。</p>
  2344. </FormItem>
  2345. <FormItem
  2346. labelCol={{ span: 4 }}
  2347. wrapperCol={{ span: 18 }}
  2348. label="单位logo" >
  2349. <PicturesWall
  2350. pictureSign="logo"
  2351. fileList={this.getCompanyLogoUrl}
  2352. pictureUrl={this.state.companyLogoUrl} />
  2353. <p>图片建议:图片要清晰。</p>
  2354. </FormItem>
  2355. </div>
  2356. <div className="clearfix">
  2357. <FormItem
  2358. labelCol={{ span: 2 }}
  2359. wrapperCol={{ span: 18 }}
  2360. label="业务范围" >
  2361. <Input type="textarea" rows={4} value={this.state.businessScope}
  2362. onChange={(e)=>{this.setState({businessScope:e.target.value})}}/>
  2363. </FormItem>
  2364. <FormItem
  2365. labelCol={{ span: 2 }}
  2366. wrapperCol={{ span: 18 }}
  2367. label="单位简介" >
  2368. <Input type="textarea" rows={4} value={this.state.introduction}
  2369. onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
  2370. </FormItem>
  2371. </div>
  2372. <Button className="set-submit" type="primary" htmlType="submit" style={{marginLeft:'90px',marginBottom:'30px'}}>保存</Button>
  2373. <Button className="set-submit" type="ghost" onClick={this.detailsModal}>取消</Button>
  2374. </div>
  2375. </Spin>
  2376. </Form> :<Form horizontal id="demand-form">
  2377. <Spin spinning={this.state.loading}>
  2378. <div className="clearfix" style={{paddingLeft:'60px'}}>
  2379. <FormItem className="half-item"
  2380. labelCol={{ span: 4 }}
  2381. wrapperCol={{ span: 18 }}
  2382. label="客户名称"
  2383. >
  2384. <span>{theInformation.identifyName}</span>
  2385. </FormItem>
  2386. </div>
  2387. <div className="clearfix" style={{paddingLeft:'60px'}}>
  2388. <FormItem className="half-item"
  2389. labelCol={{ span: 4 }}
  2390. wrapperCol={{ span: 18 }}
  2391. label="行业"
  2392. >
  2393. <span>{getIndustry(String(theInformation.industry))}</span>
  2394. </FormItem>
  2395. <FormItem className="half-item"
  2396. labelCol={{ span: 4 }}
  2397. wrapperCol={{ span: 18 }}
  2398. label="社会属性"
  2399. >
  2400. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  2401. </FormItem>
  2402. <FormItem className="half-item"
  2403. labelCol={{ span: 4 }}
  2404. wrapperCol={{ span: 18 }}
  2405. label="省-市-区"
  2406. >
  2407. <span>{this.state.proviceCityArea}</span>
  2408. </FormItem>
  2409. <FormItem className="half-item"
  2410. labelCol={{ span: 4 }}
  2411. wrapperCol={{ span: 18 }}
  2412. label="通信地址"
  2413. >
  2414. <span>{theInformation.postalAddress}</span>
  2415. </FormItem>
  2416. <FormItem className="half-item"
  2417. labelCol={{ span: 4 }}
  2418. wrapperCol={{ span: 18 }}
  2419. label="固定电话"
  2420. >
  2421. <span>{theInformation.contactsFixedTel}</span>
  2422. </FormItem>
  2423. <FormItem className="half-item"
  2424. labelCol={{ span: 4 }}
  2425. wrapperCol={{ span: 18 }}
  2426. label="客户传真"
  2427. >
  2428. <span>{theInformation.contactsFax}</span>
  2429. </FormItem>
  2430. <FormItem className="half-item"
  2431. labelCol={{ span: 4 }}
  2432. wrapperCol={{ span: 18 }}
  2433. label="注册资本"
  2434. >
  2435. <span>{theInformation.registeredCapital}</span>
  2436. </FormItem>
  2437. <FormItem className="half-item"
  2438. labelCol={{ span: 4 }}
  2439. wrapperCol={{ span: 18 }}
  2440. label="单位规模"
  2441. >
  2442. <span>{theInformation.enterpriseScale}</span>
  2443. </FormItem>
  2444. <FormItem className="half-item"
  2445. labelCol={{ span: 4 }}
  2446. wrapperCol={{ span: 18 }}
  2447. label="法人名称"
  2448. >
  2449. <span>{theInformation.legalPerson}</span>
  2450. </FormItem>
  2451. <FormItem className="half-item"
  2452. labelCol={{ span: 4 }}
  2453. wrapperCol={{ span: 18 }}
  2454. label="身份证号码"
  2455. >
  2456. <span>{theInformation.legalPersonIdCard}</span>
  2457. </FormItem>
  2458. <FormItem className="half-item"
  2459. labelCol={{ span: 4 }}
  2460. wrapperCol={{ span: 18 }}
  2461. label="法人电话"
  2462. >
  2463. <span>{theInformation.legalPersonTel}</span>
  2464. </FormItem>
  2465. <FormItem className="half-item"
  2466. labelCol={{ span: 4 }}
  2467. wrapperCol={{ span: 18 }}
  2468. label="电子邮箱"
  2469. >
  2470. <span>{theInformation.legalPersonEmail}</span>
  2471. </FormItem>
  2472. <FormItem className="half-item"
  2473. labelCol={{ span: 4 }}
  2474. wrapperCol={{ span: 18 }}
  2475. label="投资机构"
  2476. >
  2477. <span>{this.state.investment?'是':'否'}</span>
  2478. </FormItem>
  2479. <FormItem className="half-item"
  2480. labelCol={{ span: 4 }}
  2481. wrapperCol={{ span: 18 }}
  2482. label="高新"
  2483. >
  2484. <span>{this.state.highTechZone?'是':'否'}</span>
  2485. </FormItem>
  2486. <FormItem className="half-item"
  2487. labelCol={{ span: 4 }}
  2488. wrapperCol={{ span: 18 }}
  2489. label="上市"
  2490. >
  2491. <span>{this.state.listed?'是':'否'}</span>
  2492. </FormItem>
  2493. <FormItem className="half-item"
  2494. labelCol={{ span: 4 }}
  2495. wrapperCol={{ span: 18 }}
  2496. label="国际化"
  2497. >
  2498. <span>{this.state.international?'是':'否'}</span>
  2499. </FormItem>
  2500. <FormItem className="half-item"
  2501. labelCol={{ span: 4 }}
  2502. wrapperCol={{ span: 18 }}
  2503. label="机构代码"
  2504. >
  2505. <span>{theInformation.orgCode}</span>
  2506. </FormItem>
  2507. <div className="clearfix pictures">
  2508. <FormItem
  2509. labelCol={{ span: 4 }}
  2510. wrapperCol={{ span: 18 }}
  2511. label="机构证(PIC)" >
  2512. <div className="clearfix">
  2513. <Upload className="demandDetailShow-upload"
  2514. listType="picture-card"
  2515. fileList={this.state.orgCodeUrl}
  2516. onPreview={(file) => {
  2517. this.setState({
  2518. previewImage: file.url || file.thumbUrl,
  2519. previewVisible: true,
  2520. });
  2521. }} >
  2522. </Upload>
  2523. <Modal maskClosable={false} footer={null}
  2524. visible={this.state.previewVisible}
  2525. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2526. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  2527. </Modal>
  2528. </div>
  2529. </FormItem>
  2530. <FormItem
  2531. labelCol={{ span: 4 }}
  2532. wrapperCol={{ span: 18 }}
  2533. label="单位logo" >
  2534. <div className="clearfix">
  2535. <Upload className="demandDetailShow-upload"
  2536. listType="picture-card"
  2537. fileList={this.state.companyLogoUrl}
  2538. onPreview={(file) => {
  2539. this.setState({
  2540. previewImage: file.url || file.thumbUrl,
  2541. previewVisible: true,
  2542. });
  2543. }} >
  2544. </Upload>
  2545. <Modal maskClosable={false} footer={null}
  2546. visible={this.state.previewVisible}
  2547. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2548. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  2549. </Modal>
  2550. </div>
  2551. </FormItem>
  2552. </div>
  2553. <div className="clearfix">
  2554. <FormItem
  2555. labelCol={{ span: 2 }}
  2556. wrapperCol={{ span: 18 }}
  2557. label="业务范围" >
  2558. <span>{theInformation.businessScope}</span>
  2559. </FormItem>
  2560. <FormItem
  2561. labelCol={{ span: 2 }}
  2562. wrapperCol={{ span: 18 }}
  2563. label="单位简介" >
  2564. <span>{theInformation.introduction}</span>
  2565. </FormItem>
  2566. </div>
  2567. </div>
  2568. </Spin>
  2569. </Form>}
  2570. </TabPane>
  2571. <TabPane tab="联系人信息" key="2">
  2572. <div className="clearfix" >
  2573. <Button className="ContactsList" type="primary" onClick={this.addcontact} style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>新增</Button>
  2574. </div>
  2575. <div className="clearfix">
  2576. <Spin spinning={this.state.loading}>
  2577. <Form horizontal id="demand-form" onSubmit={this.contactSave} >
  2578. <Table
  2579. pagination={false}
  2580. columns={this.state.ContactsLists}
  2581. dataSource={this.state.contactList}
  2582. />
  2583. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  2584. <Button type="primary" htmlType="submit" style={{fontSize:'16px',margin:'20px 25px 40px 120px'}}>保存</Button>
  2585. <Button type="ghost" onClick={this.detailsModal} style={{fontSize:'18px'}}>取消</Button>
  2586. </div>
  2587. </Form>
  2588. </Spin>
  2589. </div>
  2590. </TabPane>
  2591. <TabPane tab="账户信息" key="3">
  2592. <div className="clearfix">
  2593. <Form horizontal id="demand-form" onSubmit={this.accountSave} >
  2594. <Spin spinning={this.state.loading} >
  2595. <div className="clearfix">
  2596. <FormItem className="half-item"
  2597. {...formItemLayout}
  2598. label="注册手机号" >
  2599. {adminData.isSuperAdmin?<div><Input value={this.state.mobile} disabled onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  2600. <Button onClick={this.modifyPassworld}>修改密码</Button></div>:<span>{this.state.mobile}</span>}
  2601. </FormItem>
  2602. <FormItem className="half-item"
  2603. {...formItemLayout}
  2604. label="注册用户名" >
  2605. {adminData.isSuperAdmin?<Input value={this.state.nickname}
  2606. onChange={(e) => { this.setState({ nickname: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  2607. </FormItem>
  2608. <FormItem className="half-item"
  2609. {...formItemLayout}
  2610. label="注册邮箱" >
  2611. {adminData.isSuperAdmin?<Input value={this.state.email}
  2612. onChange={(e) => { this.setState({ email: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  2613. </FormItem>
  2614. </div>
  2615. <FormItem className="half-item"
  2616. {...formItemLayout}
  2617. label="客户来源" >
  2618. <span>{this.state.source}</span>
  2619. </FormItem>
  2620. <FormItem className="half-item"
  2621. {...formItemLayout}
  2622. label="客户类型" >
  2623. <span>{this.state.type}</span>
  2624. </FormItem>
  2625. <FormItem className="half-item"
  2626. {...formItemLayout}
  2627. label="创建时间" >
  2628. <span>{this.state.createTimes}</span>
  2629. </FormItem>
  2630. <FormItem className="half-item"
  2631. {...formItemLayout}
  2632. label="账户状态"
  2633. >
  2634. {adminData.isSuperAdmin?<Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  2635. {
  2636. statuslist.map(function (item) {
  2637. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2638. })
  2639. }
  2640. </Select>:<span>{getStatuslist(this.state.status)}</span>}
  2641. </FormItem>
  2642. <div className="clearfix">
  2643. <FormItem className="half-item"
  2644. {...formItemLayout}
  2645. label="会员"
  2646. >
  2647. {adminData.isSuperAdmin?<Radio.Group value={this.state.isMember} onChange={(e) => {
  2648. this.setState({ isMember: e.target.value })
  2649. }}>
  2650. <Radio value={0}>否</Radio>
  2651. <Radio value={1}>是</Radio>
  2652. </Radio.Group>:<span>{this.state.isMember?'是':'否'}</span>}
  2653. </FormItem>
  2654. <FormItem className="half-item"
  2655. {...formItemLayout}
  2656. label="会员等级"
  2657. >
  2658. {adminData.isSuperAdmin?<Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  2659. {
  2660. lvl.map(function (item) {
  2661. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2662. })
  2663. }
  2664. </Select>:<span>{getLvl(this.state.lvl)}</span>}
  2665. </FormItem>
  2666. <FormItem className="half-item"
  2667. {...formItemLayout}
  2668. label="会员状态"
  2669. >
  2670. {adminData.isSuperAdmin?<Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  2671. {
  2672. currentMember.map(function (item) {
  2673. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2674. })
  2675. }
  2676. </Select>:<span>{getCurrentMember(this.state.currentMemberStatus)}</span>}
  2677. </FormItem>
  2678. </div>
  2679. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  2680. <Button className='saveBtn' type="primary" htmlType="submit">保存</Button>
  2681. <Button type="ghost" onClick={this.detailsModal}>取消</Button>
  2682. </div>
  2683. </Spin>
  2684. </Form>
  2685. </div>
  2686. </TabPane>
  2687. <TabPane tab="客户拜访" key="4">
  2688. <div className="clearfix">
  2689. <Spin spinning={this.state.loading}>
  2690. <Table
  2691. pagination={false}
  2692. columns={this.state.visitsList}
  2693. dataSource={this.state.visitArrList}
  2694. onRowClick={this.VisitRowClick}
  2695. />
  2696. </Spin>
  2697. </div>
  2698. </TabPane>
  2699. <TabPane tab="业务意向" key="5">
  2700. <div className="clearfix">
  2701. <Spin spinning={this.state.loading}>
  2702. <Table
  2703. pagination={this.state.paginationt}
  2704. columns={this.state.businessIntentionList}
  2705. dataSource={this.state.dataBusiness}
  2706. />
  2707. </Spin>
  2708. </div>
  2709. </TabPane>
  2710. <TabPane tab="业务订单" key="6">
  2711. </TabPane>
  2712. <TabPane tab="技术需求" key="7">
  2713. </TabPane>
  2714. <TabPane tab="技术成果" key="8">
  2715. </TabPane>
  2716. <TabPane tab="技术专家" key="9">
  2717. </TabPane>
  2718. </Tabs>
  2719. </Modal>
  2720. <Modal
  2721. className="customeDetails"
  2722. footer=''
  2723. title="拜访详情"
  2724. width='1000px'
  2725. visible={this.state.visitModul}
  2726. onOk={this.visitOk}
  2727. onCancel={this.visitCancel}
  2728. >
  2729. <Form horizontal id="demand-form" onSubmit={this.visitSubmit}>
  2730. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  2731. <div className="clearfix">
  2732. <FormItem className="half-item"
  2733. {...formItemLayout}
  2734. label="拜访方式" >
  2735. <Radio.Group value={this.state.contactType} onChange={(e) => {
  2736. this.setState({ contactType: e.target.value })
  2737. }}>
  2738. <Radio value={0}>外出</Radio>
  2739. <Radio value={1}>电话</Radio>
  2740. <Radio value={2}>QQ</Radio>
  2741. <Radio value={3}>微信</Radio>
  2742. <Radio value={4}>邮箱</Radio>
  2743. </Radio.Group>
  2744. </FormItem>
  2745. <FormItem className="half-item"
  2746. {...formItemLayout}
  2747. >
  2748. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  2749. </FormItem>
  2750. <div className="clearfix">
  2751. <FormItem className="half-item"
  2752. {...formItemLayout}
  2753. label="客户名称"
  2754. >
  2755. <span>{this.state.identifyName}</span>
  2756. </FormItem>
  2757. <FormItem className="half-item"
  2758. {...formItemLayout}
  2759. label="拜访人"
  2760. >
  2761. <span>{this.state.adminName}</span>
  2762. </FormItem>
  2763. <FormItem className="half-item"
  2764. {...formItemLayout}
  2765. label="当前联系人"
  2766. >
  2767. <span>{this.state.contacts}</span>
  2768. </FormItem>
  2769. {this.state.contacts?<span></span>:
  2770. <FormItem className="half-item"
  2771. {...formItemLayout}
  2772. label="联系人"
  2773. >
  2774. <Select placeholder="选择联系人" style={{ width: 140 }}
  2775. value={this.state.lastName}
  2776. onChange={this.hundleName}>
  2777. {this.state.orderStatusOption}
  2778. </Select>
  2779. </FormItem>
  2780. }
  2781. <FormItem className="half-item"
  2782. {...formItemLayout}
  2783. label="拜访时间"
  2784. >
  2785. <span>{this.state.followTime}</span>
  2786. </FormItem>
  2787. <FormItem className="half-item"
  2788. {...formItemLayout}
  2789. label="联系电话"
  2790. >
  2791. <span>{this.state.nub}</span>
  2792. </FormItem>
  2793. </div>
  2794. <div className="clearfix">
  2795. <FormItem
  2796. labelCol={{ span: 4 }}
  2797. wrapperCol={{ span: 16 }}
  2798. label="拜访备注" >
  2799. <Input type="textarea" rows={4} value={this.state.result}
  2800. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  2801. </FormItem>
  2802. </div>
  2803. <div className="clearfix">
  2804. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  2805. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2806. <Spin spinning={this.state.loading}>
  2807. <Table
  2808. rowKey={record => record.id}
  2809. pagination={false}
  2810. columns={this.state.intentionList}
  2811. dataSource={this.state.data}
  2812. />
  2813. </Spin>
  2814. </div>
  2815. </div>
  2816. </div>
  2817. <Button type="primary" size="large" htmlType="submit" style={{margin:'15px 35px 35px 120px'}}>保存</Button>
  2818. <Button size="large" onClick={this.visitCancel}>取消</Button>
  2819. </Spin>:<Spin spinning={this.state.loading}>
  2820. <div className="clearfix">
  2821. <FormItem className="half-item"
  2822. {...formItemLayout}
  2823. label="拜访方式" >
  2824. <span>{getContactType(String(this.state.contactType))}</span>
  2825. </FormItem>
  2826. <div className="clearfix">
  2827. <FormItem className="half-item"
  2828. {...formItemLayout}
  2829. label="客户名称"
  2830. >
  2831. <span>{this.state.identifyName}</span>
  2832. </FormItem>
  2833. <FormItem className="half-item"
  2834. {...formItemLayout}
  2835. label="拜访人"
  2836. >
  2837. <span>{this.state.adminName}</span>
  2838. </FormItem>
  2839. <FormItem className="half-item"
  2840. {...formItemLayout}
  2841. label="当前联系人"
  2842. >
  2843. <span>{this.state.contacts}</span>
  2844. </FormItem>
  2845. <FormItem className="half-item"
  2846. {...formItemLayout}
  2847. label="拜访时间"
  2848. >
  2849. <span>{this.state.followTime}</span>
  2850. </FormItem>
  2851. <FormItem className="half-item"
  2852. {...formItemLayout}
  2853. label="联系电话"
  2854. >
  2855. <span>{this.state.nub}</span>
  2856. </FormItem>
  2857. </div>
  2858. <div className="clearfix">
  2859. <FormItem
  2860. labelCol={{ span: 4 }}
  2861. wrapperCol={{ span: 16 }}
  2862. label="拜访备注" >
  2863. <span>{this.state.result}</span>
  2864. </FormItem>
  2865. </div>
  2866. <div className="clearfix">
  2867. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2868. <Spin spinning={this.state.loading}>
  2869. <Table
  2870. rowKey={record => record.id}
  2871. pagination={false}
  2872. columns={this.state.intentionList}
  2873. dataSource={this.state.data}
  2874. />
  2875. </Spin>
  2876. </div>
  2877. </div>
  2878. </div>
  2879. </Spin>}
  2880. </Form>
  2881. </Modal>
  2882. <Modal
  2883. footer=''
  2884. title="修改密码"
  2885. width='600px'
  2886. visible={this.state.passworldModul}
  2887. onOk={this.passworldOk}
  2888. onCancel={this.passworldCancel}
  2889. >
  2890. <div className="clearfix">
  2891. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  2892. <Spin spinning={this.state.loading}>
  2893. <div className="clearfix">
  2894. <FormItem className="half-item"
  2895. {...formItemLayout}
  2896. label="原密码" >
  2897. <Input type="password" value={this.state.companyNamet1} onChange={(e) => { this.setState({ companyNamet1: e.target.value }); }} required="required" />
  2898. </FormItem>
  2899. </div>
  2900. <div className="clearfix">
  2901. <FormItem className="half-item"
  2902. {...formItemLayout}
  2903. label="新密码" >
  2904. <Input type="password" value={this.state.companyName1} onChange={(e) => { this.setState({ companyName1: e.target.value }); }} required="required" />
  2905. </FormItem>
  2906. </div>
  2907. <div className="clearfix">
  2908. <FormItem className="half-item"
  2909. {...formItemLayout}
  2910. label="确认密码" >
  2911. <Input type="password" value={this.state.companyNam1} onChange={(e) => { this.setState({ companyNam1: e.target.value }); }} required="required" />
  2912. </FormItem>
  2913. </div>
  2914. <Button type="primary" size="large" htmlType="submit" style={{margin:'15px 15px 20px 95px'}}>保存</Button>
  2915. <Button size="large" onClick={this.passworldCancel}>取消</Button>
  2916. </Spin>
  2917. </Form>
  2918. </div>
  2919. </Modal>
  2920. <Modal
  2921. footer=''
  2922. width='800px'
  2923. title="新增联系人"
  2924. visible={this.state.addcontactModul}
  2925. onOk={this.addcontactModulOK}
  2926. onCancel={this.addcontactModulcancel}
  2927. >
  2928. <Form horizontal onSubmit={this.submitcontactman} id="demand-form">
  2929. <Spin spinning={this.state.loading}>
  2930. <Row>
  2931. <FormItem
  2932. labelCol={{ span: 3 }}
  2933. wrapperCol={{ span: 14 }}
  2934. label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
  2935. <Radio.Group value={this.state.newsex} onChange={(e) => {
  2936. this.setState({ newsex: e.target.value })
  2937. }}>
  2938. <Radio value='男'>男</Radio>
  2939. <Radio value='女'>女</Radio>
  2940. </Radio.Group>
  2941. </FormItem>
  2942. </Row>
  2943. <Row style={{ paddingLeft:'50px' }}>
  2944. <Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>
  2945. <Col span={8}>
  2946. <Input value={this.state.newname} required="required"
  2947. onChange={(e) => { this.setState({ newname: e.target.value }) }} />
  2948. </Col>
  2949. <Col span={2} style={{ marginLeft: '50px' }}><span style={{color:'red'}}>*</span>手机:</Col>
  2950. <Col span={8}>
  2951. <Input value={this.state.newmobile} required="required"
  2952. onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />
  2953. </Col>
  2954. </Row>
  2955. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  2956. <Col span={2}>微信:</Col>
  2957. <Col span={8}>
  2958. <Input value={this.state.newwechat}
  2959. onChange={(e) => { this.setState({ newwechat: e.target.value }) }} />
  2960. </Col>
  2961. <Col span={2} style={{ marginLeft: '50px' }}>Q Q:</Col>
  2962. <Col span={8}>
  2963. <Input value={this.state.newqq}
  2964. onChange={(e) => { this.setState({ newqq: e.target.value }) }} />
  2965. </Col>
  2966. </Row>
  2967. <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
  2968. <Col span={2}>部门:</Col>
  2969. <Col span={8}>
  2970. <Input value={this.state.newdepatrment}
  2971. onChange={(e) => { this.setState({ newdepatrment: e.target.value }) }} />
  2972. </Col>
  2973. <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
  2974. <Col span={8}>
  2975. <Input value={this.state.newposition}
  2976. onChange={(e) => { this.setState({ newposition: e.target.value }) }} />
  2977. </Col>
  2978. </Row>
  2979. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  2980. <Col span={2}>邮箱:</Col>
  2981. <Col span={8}>
  2982. <Input value={this.state.newemail}
  2983. onChange={(e) => { this.setState({ newemail: e.target.value }) }} />
  2984. </Col>
  2985. </Row>
  2986. <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
  2987. <Button className="set-submit" type="primary" htmlType="submit" id="change_keep" style={{marginLeft:'60px'}}>保存</Button>
  2988. <Button className="set-submit" type="ghost" onClick={this.addcontactModulcancel} id='change_rem'>取消</Button>
  2989. </Row>
  2990. </Spin>
  2991. </Form>
  2992. </Modal>
  2993. <Modal
  2994. footer=''
  2995. title="业务意向详情"
  2996. width='1000px'
  2997. visible={this.state.businessModul}
  2998. onOk={this.businessIntentionOk}
  2999. onCancel={this.businessIntentionCancel}
  3000. >
  3001. <div className="clearfix">
  3002. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3003. <Spin spinning={this.state.loading}>
  3004. <div className="clearfix">
  3005. <FormItem className="half-item"
  3006. {...formItemLayout}
  3007. label="意向业务名称" >
  3008. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  3009. </FormItem>
  3010. <FormItem className="half-item"
  3011. {...formItemLayout}
  3012. label="意向时间" >
  3013. <span>{this.state.createTime}</span>
  3014. </FormItem>
  3015. <FormItem className="half-item"
  3016. {...formItemLayout}
  3017. label="客户名称" >
  3018. <span>{this.state.identifyName}</span>
  3019. </FormItem>
  3020. <FormItem className="half-item"
  3021. {...formItemLayout}
  3022. label="营销员" >
  3023. <span>{this.state.adminName}</span>
  3024. </FormItem>
  3025. <FormItem className="half-item"
  3026. {...formItemLayout}
  3027. label="意向业务进度" >
  3028. <span>{getfllowSituation(this.state.followSituation)}</span>
  3029. </FormItem>
  3030. <FormItem className="half-item"
  3031. {...formItemLayout}
  3032. label="业务客户状态" >
  3033. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  3034. </FormItem>
  3035. </div>
  3036. <div className="clearfix">
  3037. <FormItem className="half-item"
  3038. {...formItemLayout}
  3039. label="业务意向说明" >
  3040. <span>{this.state.remarks}</span>
  3041. </FormItem>
  3042. </div>
  3043. <div className="clearfix">
  3044. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  3045. <div className="clearfix">
  3046. <Spin spinning={this.state.loading}>
  3047. <Table
  3048. pagination={this.state.paginations}
  3049. columns={this.state.businessFollowList}
  3050. dataSource={this.state.visitArrList}
  3051. />
  3052. </Spin>
  3053. </div>
  3054. </div>
  3055. </Spin>
  3056. </Form>
  3057. </div>
  3058. </Modal>
  3059. <Modal
  3060. footer=''
  3061. title="业务跟进详情"
  3062. width='600px'
  3063. visible={this.state.businessFollowModul}
  3064. onOk={this.businessFollowOk}
  3065. onCancel={this.businessFollowCancel}
  3066. >
  3067. <div className="clearfix">
  3068. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3069. <Spin spinning={this.state.loading}>
  3070. <div className="clearfix">
  3071. <FormItem className="half-item"
  3072. {...formItemLayout}
  3073. label="意向业务名称" >
  3074. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  3075. </FormItem>
  3076. <FormItem className="half-item"
  3077. {...formItemLayout}
  3078. label="意向时间" >
  3079. <span>{this.state.createTimes}</span>
  3080. </FormItem>
  3081. <FormItem className="half-item"
  3082. {...formItemLayout}
  3083. label="客户名称" >
  3084. <span>{this.state.identifyNames}</span>
  3085. </FormItem>
  3086. <FormItem className="half-item"
  3087. {...formItemLayout}
  3088. label="营销员" >
  3089. <span>{this.state.adminNames}</span>
  3090. </FormItem>
  3091. <FormItem className="half-item"
  3092. {...formItemLayout}
  3093. label="意向业务进度" >
  3094. <span>{getfllowSituation(this.state.followSituations)}</span>
  3095. </FormItem>
  3096. <FormItem className="half-item"
  3097. {...formItemLayout}
  3098. label="业务客户状态" >
  3099. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  3100. </FormItem>
  3101. </div>
  3102. <div className="clearfix">
  3103. <FormItem className="half-item"
  3104. {...formItemLayout}
  3105. label="业务意向说明" >
  3106. <span>{this.state.remarkss}</span>
  3107. </FormItem>
  3108. </div>
  3109. <div className="clearfix">
  3110. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  3111. <FormItem className="half-item"
  3112. {...formItemLayout}
  3113. label="拜访方式" >
  3114. <span>{getContactType(this.state.contactTypes)}</span>
  3115. </FormItem>
  3116. <FormItem className="half-item"
  3117. {...formItemLayout}
  3118. label="联系人" >
  3119. <span>{this.state.contactss}</span>
  3120. </FormItem>
  3121. <FormItem className="half-item"
  3122. {...formItemLayout}
  3123. label="联系电话" >
  3124. <span>{this.state.contactMobiles}</span>
  3125. </FormItem>
  3126. <FormItem className="half-item"
  3127. {...formItemLayout}
  3128. label="拜访时间" >
  3129. <span>{this.state.followTimes}</span>
  3130. </FormItem>
  3131. <FormItem className="half-item"
  3132. {...formItemLayout}
  3133. label="拜访人" >
  3134. <span>{this.state.adminNames}</span>
  3135. </FormItem>
  3136. <div className="clearfix">
  3137. <FormItem className="half-item"
  3138. {...formItemLayout}
  3139. label="拜访备注" >
  3140. <span>{this.state.results}</span>
  3141. </FormItem>
  3142. </div>
  3143. </div>
  3144. </Spin>
  3145. </Form>
  3146. </div>
  3147. </Modal>
  3148. </div >
  3149. );
  3150. }
  3151. }));
  3152. export default PublicCustomer