queryCustomer.jsx 124 KB

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