queryCustomer.jsx 124 KB

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