organizationManages.jsx 117 KB

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