companyCustomer.jsx 118 KB

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