publicManages.jsx 119 KB

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