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