companyCustomer.jsx 118 KB

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