companyCustomer.jsx 118 KB

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