identityAudits.jsx 238 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512
  1. import React from 'react';
  2. import { Radio, Icon, Button, Cascader, Input, Select, Tabs, Spin, Popconfirm, Table, Switch, message, DatePicker, Modal, Upload, Form, Row, Col } from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import moment from 'moment';
  6. import './myClient.less';
  7. import { citySelect, provinceList, areaSelect } from '../../../NewDicProvinceList';
  8. const { Column, ColumnGroup } = Table;
  9. const TabPane = Tabs.TabPane;
  10. const monthFormat = 'YYYY/MM';
  11. import CustomerDetail from './myClientDesc.jsx';
  12. import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js';
  13. import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
  14. //图片组件
  15. const PicturesWall = React.createClass({
  16. getInitialState() {
  17. return {
  18. previewVisible: false,
  19. previewImage: '',
  20. fileList: [],
  21. }
  22. },
  23. handleCancel() {
  24. this.setState({ previewVisible: false })
  25. },
  26. handlePreview(file) {
  27. this.setState({
  28. previewImage: file.url || file.thumbUrl,
  29. previewVisible: true,
  30. });
  31. },
  32. handleChange(info) {
  33. let fileList = info.fileList;
  34. this.setState({ fileList });
  35. this.props.fileList(fileList);
  36. },
  37. componentWillReceiveProps(nextProps) {
  38. this.state.fileList = nextProps.pictureUrl;
  39. },
  40. render() {
  41. const { previewVisible, previewImage, fileList } = this.state;
  42. const uploadButton = (
  43. <div>
  44. <Icon type="plus" />
  45. <div className="ant-upload-text">点击上传</div>
  46. </div>
  47. );
  48. return(
  49. <div style={{display:"inline-block"}}>
  50. <Upload
  51. action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
  52. data={{ 'sign': '' }}
  53. listType="picture-card"
  54. fileList={fileList}
  55. onPreview={this.handlePreview}
  56. onChange={this.handleChange} >
  57. {fileList.length >= 1 ? null : uploadButton}
  58. </Upload>
  59. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  60. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  61. </Modal>
  62. </div>
  63. );
  64. }
  65. });
  66. const QueryCustomer = Form.create()(React.createClass({
  67. loadData(pageNo, apiUrl) {
  68. this.state.data = [];
  69. this.setState({
  70. loading: true
  71. });
  72. $.ajax({
  73. method: "post",
  74. dataType: "json",
  75. crossDomain: false,
  76. url: globalConfig.context + '/api/admin/customer/listAllPersonalCustomer',
  77. data: {
  78. pageNo: pageNo || 1,
  79. pageSize: this.state.pagination.pageSize,
  80. auditStatus: 1,
  81. type: this.state.typeSearch, //名称1
  82. name: this.state.nameSearch,
  83. province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  84. city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  85. status: this.state.statusSearch,
  86. industry: this.state.industrySearch,
  87. businessAudit: this.state.serviceCertificationSearch,
  88. currentMemberStatus: this.state.currentMemberStatusSearch,
  89. lvl: this.state.lvlSearch,
  90. listed: this.state.listedSearch, //是否上市
  91. highTechZone: this.state.highTechZoneSearch, //是否高新
  92. startDate: this.state.releaseDate[0],
  93. endDate: this.state.releaseDate[1],
  94. isMember: this.state.isMemberSearch,
  95. international: this.state.internationalSearch,
  96. celebrity: this.state.celebritySearch,
  97. expert: this.state.expertSearch,
  98. industry: this.state.industrySearch,
  99. shareType: this.state.shareTypeSearch,
  100. },
  101. success: function(data) {
  102. let theArr = [];
  103. if(data.error.length || data.data.list == "") {
  104. if(data.error && data.error.length) {
  105. message.warning(data.error[0].message);
  106. };
  107. } else {
  108. for(let i = 0; i < data.data.list.length; i++) {
  109. let thisdata = data.data.list[i];
  110. theArr.push({
  111. key: i,
  112. id: thisdata.uid,
  113. type: thisdata.type,
  114. name: thisdata.name,
  115. status: thisdata.status,
  116. contacts: thisdata.contacts,
  117. contactMobile: thisdata.contactMobile,
  118. industry: thisdata.industry,
  119. createTime: thisdata.createTime,
  120. businessAudit: thisdata.businessAudit,
  121. auditStatus: thisdata.auditStatus,
  122. lvl: thisdata.lvl,
  123. shareType: thisdata.shareType,
  124. isMember: thisdata.isMember,
  125. consultant: thisdata.consultant,
  126. societyTag: thisdata.societyTag,
  127. currentMemberStatus: thisdata.currentMemberStatus,
  128. international: thisdata.international,
  129. listed: thisdata.listed,
  130. international: thisdata.international,
  131. expert: thisdata.expert,
  132. celebrity: thisdata.celebrity,
  133. adminName: thisdata.adminName,
  134. highTechZone: thisdata.highTechZone,
  135. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  136. });
  137. };
  138. this.state.pagination.current = data.data.pageNo ;
  139. this.state.pagination.total = data.data.totalCount ;
  140. };
  141. if(!data.data.list.length){
  142. this.state.pagination.current=0
  143. this.state.pagination.total=0
  144. }
  145. this.setState({
  146. dataSource: theArr,
  147. pagination: this.state.pagination,
  148. selectedRowKeys:[]
  149. });
  150. }.bind(this),
  151. }).always(function() {
  152. this.setState({
  153. loading: false
  154. });
  155. }.bind(this));
  156. },
  157. //点击出现函数
  158. setModal2VisibleOk(e) {
  159. this.setState({
  160. modal2Visible: true
  161. });
  162. },
  163. //点击消失函数
  164. setModal2Visiblecancel(e) {
  165. this.setState({
  166. modal2Visible: false
  167. });
  168. },
  169. getPictureUrl(e) {
  170. this.setState({ pictureUrl: e });
  171. },
  172. handleOk(e) {
  173. this.setState({
  174. visible: false,
  175. });
  176. },
  177. handleCancel(e) {
  178. this.setState({
  179. visible: false,
  180. });
  181. },
  182. getInitialState() {
  183. return {
  184. addressSearch: [],
  185. positiveIdUrl: [],
  186. oppositeIdUrl: [],
  187. headPortraitUrl: [],
  188. visible: false,
  189. callnubs:"1",
  190. searchMore: true,
  191. releaseDate: [],
  192. releaseDate: [],
  193. selectedRowKeys: [],
  194. selectedRowKey: [],
  195. selectedRows: [],
  196. loading: false,
  197. pagination: {
  198. defaultCurrent: 1,
  199. defaultPageSize: 10,
  200. showQuickJumper: true,
  201. pageSize: 10,
  202. onChange: function(page) {
  203. this.loadData(page);
  204. }.bind(this),
  205. showTotal: function(total) {
  206. return '共' + total + '条数据';
  207. }
  208. },
  209. paginations: {
  210. defaultCurrent: 1,
  211. defaultPageSize: 10,
  212. showQuickJumper: true,
  213. pageSize: 10,
  214. onChange: function(page) {
  215. this.loadVisit(page);
  216. }.bind(this),
  217. showTotal: function(total) {
  218. return '共' + total + '条数据';
  219. }
  220. },
  221. paginationsy: {
  222. defaultCurrent: 1,
  223. defaultPageSize: 10,
  224. showQuickJumper: true,
  225. pageSize: 10,
  226. onChange: function(page) {
  227. this.loadBfVisit(page, false);
  228. }.bind(this),
  229. showTotal: function(total) {
  230. return '共' + total + '条数据';
  231. }
  232. },
  233. paginationt: {
  234. defaultCurrent: 1,
  235. defaultPageSize: 10,
  236. showQuickJumper: true,
  237. pageSize: 10,
  238. onChange: function(page) {
  239. this.BusinessList(page, false);
  240. }.bind(this),
  241. showTotal: function(total) {
  242. return '共' + total + '条数据';
  243. }
  244. },
  245. //业务意向列表
  246. intentionList: [{
  247. title: '业务名称',
  248. dataIndex: 'businessGlossoryId',
  249. key: 'businessGlossoryId',
  250. render: (text, record, index) => {
  251. return adminData.isSuperAdmin ? <Select placeholder="选择业务名称" disabled={record.id?true:false} value={record.businessGlossoryId} onChange={(e) => { record.businessGlossoryId = e; this.setState({ data: this.state.data }); }}>
  252. {
  253. intentionalService.map(function (item) {
  254. return <Select.Option key={item.value} >{item.key}</Select.Option>
  255. })
  256. }
  257. </Select> : <span>{getCompanyIntention(text)}</span>
  258. }
  259. },
  260. {
  261. title: '最新进度',
  262. dataIndex: 'followSituation',
  263. key: 'followSituation',
  264. render: (text, record, index) => {
  265. return adminData.isSuperAdmin ? <Select placeholder="选择最新进度" value={record.followSituation} onChange={(e) => { record.followSituation = e; this.setState({ data: this.state.data }); }}>
  266. {
  267. newFollow.map(function (item) {
  268. return <Select.Option key={item.value} >{item.key}</Select.Option>
  269. })
  270. }
  271. </Select> : <span>{getfllowSituation(text)}</span>
  272. }
  273. }, {
  274. title: '最新状态',
  275. dataIndex: 'customerStatus',
  276. key: 'customerStatus',
  277. render: (text, record, index) => {
  278. return adminData.isSuperAdmin ? <Select value={record.customerStatus} placeholder="选择最新状态" onChange={(e) => { record.customerStatus = e; this.setState({ data: this.state.data }); }}>
  279. {
  280. customerStatus.map(function (item) {
  281. return <Select.Option key={item.value} >{item.key}</Select.Option>
  282. })
  283. }
  284. </Select> : <span>{getcustomerStatue(text)}</span>
  285. }
  286. }, {
  287. title: '跟进说明',
  288. dataIndex: 'remarks',
  289. key: 'remarks',
  290. render: (text, record, index) => {
  291. return adminData.isSuperAdmin ? <Input value={record.remarks} placeholder="跟进说明"
  292. onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
  293. style={{width:'120px'}}/> : <span>{text}</span>
  294. }
  295. }
  296. ],
  297. businessIntentionList: [{
  298. title: '意向时间',
  299. dataIndex: 'createTime',
  300. key: 'createTime'
  301. }, {
  302. title: '客户姓名',
  303. dataIndex: 'identifyName',
  304. key: 'identifyName'
  305. }, {
  306. title: '业务名',
  307. dataIndex: 'businessName',
  308. key: 'businessName'
  309. }, {
  310. title: '营销员',
  311. dataIndex: 'adminName',
  312. key: 'adminName'
  313. }, {
  314. title: '业务意向进度',
  315. dataIndex: 'followSituation',
  316. key: 'followSituation',
  317. render: text => { return getfllowSituation(text) }
  318. }, {
  319. title: '客户状态',
  320. dataIndex: 'customerStatus',
  321. key: 'customerStatus',
  322. render: text => { return getcustomerStatue(text) }
  323. }, {
  324. title: '操作',
  325. dataIndex: 'ooo',
  326. key: 'ooo',
  327. render: (text, record) => { return(<Button onClick={(e)=>{this.businessIntentionDetails(record)}}>查看</Button>) }
  328. }],
  329. businessFollowList: [{
  330. title: '跟进时间',
  331. dataIndex: 'followTime',
  332. key: 'followTime',
  333. }, {
  334. title: '营销员',
  335. dataIndex: 'adminName',
  336. key: 'adminName',
  337. }, {
  338. title: '业务意向进度',
  339. dataIndex: 'followSituation',
  340. key: 'followSituation',
  341. render: text => { return getfllowSituation(text) }
  342. }, {
  343. title: '客户状态',
  344. dataIndex: 'customerStatus',
  345. key: 'customerStatus',
  346. render: text => { return getcustomerStatue(text) }
  347. },
  348. {
  349. title: '拜访方式',
  350. dataIndex: 'contactType',
  351. key: 'contactType',
  352. render: text => { return getContactType(text) }
  353. }, {
  354. title: '联系人',
  355. dataIndex: 'contacts',
  356. key: 'contacts',
  357. },
  358. {
  359. title: '联系电话',
  360. dataIndex: 'contactMobile',
  361. key: 'contactMobile',
  362. }, {
  363. title: '操作',
  364. dataIndex: 'ooo',
  365. key: 'ooo',
  366. render: (text, record) => { return(<Button onClick={(e)=>{this.businessFollowDetails(record)}}>查看</Button>) }
  367. }
  368. ],
  369. visitsList: [{
  370. title: '拜访时间',
  371. dataIndex: 'followTime',
  372. key: 'followTime'
  373. }, {
  374. title: '客户姓名',
  375. dataIndex: 'identifyName',
  376. key: 'identifyName'
  377. }, {
  378. title: '拜访方式',
  379. dataIndex: 'contactType',
  380. key: 'contactType',
  381. render: text => { return getContactType(text) }
  382. }, {
  383. title: '联系人',
  384. dataIndex: 'contacts',
  385. key: 'contacts'
  386. }, {
  387. title: '联系电话',
  388. dataIndex: 'contactMobile',
  389. key: 'contactMobile'
  390. }, {
  391. title: '拜访人',
  392. dataIndex: 'adminName',
  393. key: 'adminName'
  394. }, {
  395. title: '拜访说明',
  396. dataIndex: 'result',
  397. key: 'result',
  398. render: text => {
  399. return <span style={{width:'150px',display:'inline-block',overflow:'hidden'}}>{text}</span>
  400. }
  401. }],
  402. ContactsLists: [{
  403. title: '姓名',
  404. dataIndex: 'name',
  405. key: 'name',
  406. render: (text, record, index) => {
  407. return adminData.isSuperAdmin ? <Input value={record.name} placeholder="姓名" key={record.id}
  408. onChange={(e) => { record.name = e.target.value;
  409. this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  410. }
  411. }, {
  412. title: '联系人部门',
  413. dataIndex: 'depatrment',
  414. key: 'depatrment',
  415. render: (text, record, index) => {
  416. return adminData.isSuperAdmin ? <Input value={record.depatrment} placeholder="联系人部门" key={record.id}
  417. onChange={(e) => { record.depatrment = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  418. }
  419. }, {
  420. title: '联系人职务',
  421. dataIndex: 'position',
  422. key: 'position',
  423. render: (text, record, index) => {
  424. return adminData.isSuperAdmin ? <Input value={record.position} placeholder="联系人职务" key={record.id}
  425. onChange={(e) => { record.position = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  426. }
  427. }, {
  428. title: '手机号码',
  429. dataIndex: 'mobile',
  430. key: 'mobile',
  431. render: (text, record, index) => {
  432. return adminData.isSuperAdmin ? <Input value={record.mobile} placeholder="手机号码" key={record.id}
  433. onChange={(e) => { record.mobile = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  434. }
  435. }, {
  436. title: '微信',
  437. dataIndex: 'wechat',
  438. key: 'wechat',
  439. render: (text, record, index) => {
  440. return adminData.isSuperAdmin ? <Input value={record.wechat} placeholder="微信" key={record.id}
  441. onChange={(e) => { record.wechat = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  442. }
  443. }, {
  444. title: '联系人QQ',
  445. dataIndex: 'qq',
  446. key: 'qq',
  447. render: (text, record, index) => {
  448. return adminData.isSuperAdmin ? <Input value={record.qq} placeholder="联系人QQ" key={record.id}
  449. onChange={(e) => { record.qq = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  450. }
  451. }, {
  452. title: '电子邮箱',
  453. dataIndex: 'email',
  454. key: 'email',
  455. render: (text, record, index) => {
  456. return adminData.isSuperAdmin ? <Input value={record.email} placeholder="电子邮箱" key={record.id}
  457. onChange={(e) => { record.email = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  458. }
  459. }
  460. ],
  461. columnsman: [{
  462. title: '姓名',
  463. dataIndex: 'name',
  464. key: 'name'
  465. }, {
  466. title: '手机号码',
  467. dataIndex: 'mobile',
  468. key: 'mobile'
  469. }],
  470. columns: [{
  471. title: '客户姓名',
  472. dataIndex: 'name',
  473. key: 'name',
  474. }, {
  475. title: '地区',
  476. dataIndex: 'locationProvince',
  477. key: 'locationProvince',
  478. },
  479. {
  480. title: '公共客户',
  481. dataIndex: 'shareType',
  482. key: 'shareType',
  483. render: (text, record) => { return record.shareType == '1' ? <span>公共客户</span> : <span>个人客户</span> }
  484. },
  485. {
  486. title: '行业',
  487. dataIndex: 'industry',
  488. key: 'industry',
  489. },
  490. {
  491. title: '社会性质',
  492. dataIndex: 'societyTag',
  493. key: 'societyTag',
  494. render: text => { return getSocialAttribute(text) }
  495. },
  496. {
  497. title: '创建时间',
  498. dataIndex: 'createTime',
  499. key: 'createTime',
  500. },{
  501. title: '所属人',
  502. dataIndex: 'adminName',
  503. key: 'adminName',
  504. },
  505. {
  506. title: '业务认证',
  507. dataIndex: 'businessAudit',
  508. key: 'businessAudit',
  509. render: text => { return getCertification(text) }
  510. },
  511. {
  512. title: '实名认证',
  513. dataIndex: 'auditStatus',
  514. key: 'auditStatus',
  515. render: text => { return getAuditStatus(text) }
  516. },
  517. {
  518. title: '是否专家',
  519. dataIndex: 'expert',
  520. key: 'expert',
  521. render: text => { return getWhether(text) }
  522. },
  523. {
  524. title: '是否会员',
  525. dataIndex: 'isMember',
  526. key: 'isMember',
  527. render: text => { return getWhether(text) }
  528. },
  529. {
  530. title: '是否国际',
  531. dataIndex: 'international',
  532. key: 'international',
  533. render: text => { return getWhether(text) }
  534. },
  535. {
  536. title: '会员等级',
  537. dataIndex: 'lvl',
  538. key: 'lvl',
  539. render: text => { return getLvl(text) }
  540. },
  541. {
  542. title: '会员状态',
  543. dataIndex: 'currentMemberStatus',
  544. key: 'currentMemberStatus',
  545. render: text => { return getCurrentMember(text) }
  546. },
  547. {
  548. title: '状态',
  549. dataIndex: 'status',
  550. key: 'status',
  551. render: text => { return getStatuslist(text) }
  552. }
  553. ],
  554. data: [],
  555. dataman: [],
  556. dataSource: [],
  557. visitArrList: [],
  558. searchTime: [, ]
  559. };
  560. },
  561. //更多操作
  562. ModalOperation() {
  563. this.setState({
  564. visible: true,
  565. });
  566. },
  567. //tab2获取联系人详情
  568. contactLists(ids) {
  569. this.setState({
  570. loading: true
  571. });
  572. $.ajax({
  573. method: "get",
  574. dataType: "json",
  575. crossDomain: false,
  576. url: globalConfig.context + '/api/admin/customer/findCustomerContacts',
  577. data: {
  578. uid: ids, //名称1
  579. },
  580. success: function(data) {
  581. let theArr = [];
  582. if(data.error.length || data.data.list == "") {
  583. if(data.error && data.error.length) {
  584. message.warning(data.error[0].message);
  585. };
  586. } else {
  587. for(let i = 0; i < data.data.length; i++) {
  588. let thisdata = data.data[i];
  589. theArr.push({
  590. id: thisdata.id,
  591. name: thisdata.name,
  592. mobile: thisdata.mobile,
  593. email: thisdata.email,
  594. qq: thisdata.qq,
  595. wechat: thisdata.wechat,
  596. depatrment: thisdata.depatrment,
  597. position: thisdata.position,
  598. });
  599. };
  600. };
  601. this.setState({
  602. contactList: theArr,
  603. });
  604. }.bind(this),
  605. }).always(function() {
  606. this.setState({
  607. loading: false
  608. });
  609. }.bind(this));
  610. },
  611. //刷新新增拜访记录刷新
  612. deletelist(e) {
  613. $.ajax({
  614. method: "get",
  615. dataType: "json",
  616. url: globalConfig.context + '/api/admin/customer/toAddFollow',
  617. data: {
  618. uid: e,
  619. },
  620. success: function(data) {
  621. let listArr = [];
  622. let thedata = data.data;
  623. if(!thedata) {
  624. if(data.error && data.error.length) {
  625. message.warning(data.error[0].message);
  626. };
  627. thedata = {};
  628. };
  629. for(let i = 0; i < data.data.userBusinessList.length; i++) {
  630. let thisdata = data.data.userBusinessList[i];
  631. listArr.push({
  632. id: thisdata.id,
  633. businessGlossoryId: String(thisdata.businessGlossoryId),
  634. followSituation: String(thisdata.followSituation),
  635. customerStatus: String(thisdata.customerStatus),
  636. remarks: thisdata.remarks,
  637. });
  638. };
  639. this.setState({
  640. contacts: thedata.contacts,
  641. uid: thedata.uid,
  642. data: listArr,
  643. identifyName: thedata.identifyName,
  644. followTime: thedata.followTime,
  645. businessGlossoryId: thedata.businessGlossoryId,
  646. followSituation: thedata.followSituation,
  647. customerStatus: thedata.customerStatus,
  648. remarks: thedata.remarks,
  649. });
  650. }.bind(this),
  651. }).always(function() {
  652. this.setState({
  653. loading: false
  654. });
  655. }.bind(this));
  656. },
  657. //拜访记录删除
  658. visitDelet(e) {
  659. this.setState({
  660. loading: true
  661. });
  662. $.ajax({
  663. method: "get",
  664. dataType: "json",
  665. crossDomain: false,
  666. url: globalConfig.context + "/api/admin/customer/deleteFollow",
  667. data: {
  668. followId: e.followId, //删除的ID
  669. }
  670. }).done(function(data) {
  671. if(!data.error.length) {
  672. message.success('删除成功!');
  673. this.setState({
  674. loading: false,
  675. });
  676. } else {
  677. message.warning(data.error[0].message);
  678. };
  679. this.loadVisit();
  680. }.bind(this));
  681. },
  682. //进入修改拜访记录
  683. visitModify(e) {
  684. this.setState({
  685. visitModul: true,
  686. loading: true
  687. });
  688. $.ajax({
  689. method: "get",
  690. dataType: "json",
  691. url: globalConfig.context + '/api/admin/customer/toUpdateFollow',
  692. data: {
  693. followId: e,
  694. },
  695. success: function(data) {
  696. let theArr = [];
  697. let thedata = data.data;
  698. if(!thedata) {
  699. if(data.error && data.error.length) {
  700. message.warning(data.error[0].message);
  701. };
  702. thedata = {};
  703. };
  704. for(let i = 0; i < data.data.userBusinessList.length; i++) {
  705. let thisdata = data.data.userBusinessList[i];
  706. theArr.push({
  707. id: thisdata.id,
  708. businessGlossoryId: String(thisdata.businessGlossoryId),
  709. followSituation: String(thisdata.followSituation),
  710. customerStatus: String(thisdata.customerStatus),
  711. remarks: thisdata.remarks,
  712. });
  713. };
  714. this.setState({
  715. followIds: thedata.followId,
  716. contacts: thedata.contacts,
  717. uid: thedata.uid,
  718. data: theArr,
  719. nub: thedata.contactMobile,
  720. result: thedata.result,
  721. contactType: parseInt(thedata.contactType),
  722. identifyName: thedata.identifyName,
  723. followTime: thedata.followTime,
  724. businessGlossoryId: thedata.businessGlossoryId,
  725. followSituation: thedata.followSituation,
  726. customerStatus: thedata.customerStatus,
  727. adminName: thedata.adminName,
  728. });
  729. }.bind(this),
  730. }).always(function() {
  731. this.setState({
  732. loading: false
  733. });
  734. }.bind(this));
  735. },
  736. //审核专家通过功能
  737. delectRow() {
  738. let deletedIds;
  739. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  740. let rowItem = this.state.selectedRows[idx];
  741. if(rowItem.id) {
  742. deletedIds = rowItem.id;
  743. };
  744. };
  745. this.setState({
  746. selectedRowKeys: [],
  747. });
  748. $.ajax({
  749. method: "get",
  750. dataType: "json",
  751. crossDomain: false,
  752. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  753. data: {
  754. uid: deletedIds,
  755. },
  756. success: function(data) {
  757. let thisData = data.data;
  758. console.log(thisData);
  759. $.ajax({
  760. method: "post",
  761. dataType: "json",
  762. crossDomain: false,
  763. url: globalConfig.context + "/api/admin/customer/updatePersonalCustomer",
  764. data: {
  765. uid: deletedIds, //审核通过的ID
  766. id:thisData.id,
  767. auditStatus:5,
  768. }
  769. }).done(function(data) {
  770. if(!data.error.length) {
  771. message.success('已成功通过实名认证申请!');
  772. this.setState({
  773. loading: false,
  774. });
  775. } else {
  776. message.warning(data.error[0].message);
  777. };
  778. this.loadData();
  779. }.bind(this));
  780. }.bind(this),
  781. })
  782. },
  783. //审核专家不通过功能
  784. delectRows() {
  785. let deletedIds;
  786. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  787. let rowItem = this.state.selectedRows[idx];
  788. if(rowItem.id) {
  789. deletedIds = rowItem.id;
  790. };
  791. };
  792. this.setState({
  793. selectedRowKeys: [],
  794. });
  795. $.ajax({
  796. method: "get",
  797. dataType: "json",
  798. crossDomain: false,
  799. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  800. data: {
  801. uid: deletedIds,
  802. },
  803. success: function(data) {
  804. let thisData = data.data;
  805. console.log(thisData);
  806. $.ajax({
  807. method: "post",
  808. dataType: "json",
  809. crossDomain: false,
  810. url: globalConfig.context + "/api/admin/customer/updatePersonalCustomer",
  811. data: {
  812. uid: deletedIds, //审核通过的ID
  813. id:thisData.id,
  814. auditStatus:4,
  815. }
  816. }).done(function(data) {
  817. if(!data.error.length) {
  818. message.success('已成功驳回实名认证申请!');
  819. this.setState({
  820. loading: false,
  821. });
  822. } else {
  823. message.warning(data.error[0].message);
  824. };
  825. this.loadData();
  826. }.bind(this));
  827. }.bind(this),
  828. })
  829. },
  830. //领取
  831. changeRow(e) {
  832. this.setState({
  833. loading: true,
  834. selectedRowKeys: [],
  835. });
  836. $.ajax({
  837. method: "get",
  838. dataType: "json",
  839. crossDomain: false,
  840. url: globalConfig.context + "/api/admin/customer/receiveCustomer",
  841. data: {
  842. uid: e.id,
  843. }
  844. }).done(function(data) {
  845. if(!data.error.length) {
  846. message.success('已领取!');
  847. this.setState({
  848. loading: false,
  849. });
  850. } else {
  851. message.warning(data.error[0].message);
  852. };
  853. this.loadData();
  854. }.bind(this));
  855. },
  856. getHeadPortraitUrl(e) {
  857. this.setState({ headPortraitUrl: e });
  858. },
  859. getPositiveIdUrl(e) {
  860. this.setState({ positiveIdUrl: e });
  861. },
  862. getOppositeIdUrl(e) {
  863. this.setState({ oppositeIdUrl: e });
  864. },
  865. componentWillMount() {
  866. //城市
  867. let Province = [];
  868. provinceList.map(function(item) {
  869. var id = String(item.id)
  870. Province.push(
  871. <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
  872. )
  873. });
  874. //行业
  875. let intentionalArr = [];
  876. industry.map(function(item) {
  877. intentionalArr.push(
  878. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  879. )
  880. });
  881. //会员等级
  882. let lvlArr = [];
  883. lvl.map(function(item) {
  884. lvlArr.push(
  885. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  886. )
  887. });
  888. //会员状态customerStatus
  889. let currentMemberArr = [];
  890. currentMember.map(function(item) {
  891. currentMemberArr.push(
  892. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  893. )
  894. });
  895. //客户状态
  896. let customerStatusArr = [];
  897. customerStatus.map(function(item) {
  898. customerStatusArr.push(
  899. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  900. )
  901. });
  902. this.state.Provinces = Province;
  903. this.state.intentionalOption = intentionalArr;
  904. this.state.lvlArrOption = lvlArr;
  905. this.state.currentMemberArrOption = currentMemberArr;
  906. this.state.customerStatusArrOption = customerStatusArr;
  907. this.loadData();
  908. },
  909. search() {
  910. this.loadData();
  911. },
  912. reset() {
  913. this.state.expertSearch = undefined;
  914. this.state.celebritySearch = undefined;
  915. this.state.shareTypeSearch = undefined;
  916. this.state.typeSearch = undefined; //名称1
  917. this.state.nameSearch = '';
  918. this.state.addressSearch = [];
  919. this.state.provinceSearch = undefined;
  920. this.state.citySearch = undefined;
  921. this.state.statusSearch = undefined;
  922. this.state.contactsSearch = undefined;
  923. this.state.contactMobileSearch = undefined;
  924. this.state.industrySearch = undefined;
  925. this.state.serviceCertificationSearch = undefined;
  926. this.state.userCertificationSearch = undefined;
  927. this.state.currentMemberStatusSearch = undefined;
  928. this.state.lvlSearch = undefined;
  929. this.state.listedSearch = undefined;
  930. this.state.highTechZoneSearch = undefined;
  931. this.state.releaseDate[0] = undefined;
  932. this.state.releaseDate[1] = undefined;
  933. this.loadData();
  934. },
  935. searchSwitch() {
  936. this.setState({
  937. searchMore: !this.state.searchMore
  938. });
  939. },
  940. //详情保存函数
  941. detailsSubmint() {
  942. this.setState({
  943. modal5Visible: false,
  944. })
  945. },
  946. //整行点击
  947. tableRowClick(record, index) {
  948. this.state.RowData = record;
  949. this.detailsModalOk(record);
  950. this.loadInformation(record.id)
  951. this.httpAccount(record.id);
  952. this.loadBfVisit(1, record.id);
  953. this.BusinessList(1, record.id);
  954. this.contactLists(record.id);
  955. this.setState({
  956. callnub:'1',
  957. selectedRowKeys: [],
  958. rowId: record.id,
  959. })
  960. },
  961. VisitRowClick(record, index) {
  962. this.state.keys = false;
  963. this.state.RowData = record;
  964. this.visitModify(record.followId);
  965. this.setState({
  966. selectedRowKeys: [],
  967. delectId: record.followId,
  968. })
  969. },
  970. //基本信息提交
  971. newSubmit(e) {
  972. e.preventDefault();
  973. if(!this.state.industry) {
  974. message.warning('请选择行业');
  975. return false;
  976. };
  977. if(!this.state.societyTag) {
  978. message.warning('请选择社会性质');
  979. return false;
  980. };
  981. if(!this.state.ProvinceCity[1]) {
  982. message.warning('请选择地区');
  983. return false;
  984. };
  985. var reg=/^[1-9]\d*$|^0$/;
  986. if(this.state.consultationPrice){
  987. if(this.state.consultationPrice.length>6) {
  988. message.warning('咨询费用不超过6位数');
  989. this.refs.consul.focus();
  990. return false;
  991. };
  992. if(!reg.test(this.state.consultationPrice)){
  993. message.warning('咨询费用只能输入数字 ');
  994. this.refs.consul.focus();
  995. return false;
  996. }
  997. }
  998. this.setState({
  999. selectedRowKeys: [],
  1000. });
  1001. this.props.form.validateFields((err, values) => {
  1002. let theorgCodeUrl = [];
  1003. if(this.state.headPortraitUrl.length) {
  1004. let picArr = [];
  1005. this.state.headPortraitUrl.map(function(item) {
  1006. if ( item.response && item.response.data && item.response.data.length ){
  1007. picArr.push(item.response.data);
  1008. }
  1009. });
  1010. theorgCodeUrl = picArr.join(",");
  1011. };
  1012. let thecompanyLogoUrl = [];
  1013. if(this.state.positiveIdUrl.length) {
  1014. let picArr = [];
  1015. this.state.positiveIdUrl.map(function(item) {
  1016. if ( item.response && item.response.data && item.response.data.length ){
  1017. picArr.push(item.response.data);
  1018. }
  1019. });
  1020. thecompanyLogoUrl = picArr.join(",");
  1021. };
  1022. let thecompanyLogoUrls = [];
  1023. if(this.state.oppositeIdUrl.length) {
  1024. let picArr = [];
  1025. this.state.oppositeIdUrl.map(function(item) {
  1026. if ( item.response && item.response.data && item.response.data.length ){
  1027. picArr.push(item.response.data);
  1028. }
  1029. });
  1030. thecompanyLogoUrls = picArr.join(",");
  1031. };
  1032. if(!err) {
  1033. let years = [];
  1034. let yearMonth = new Date(this.state.yearMonth).toLocaleDateString();
  1035. years = yearMonth.split('/');
  1036. this.setState({
  1037. loading: true
  1038. });
  1039. $.ajax({
  1040. method: "post",
  1041. dataType: "json",
  1042. url: globalConfig.context + '/api/admin/customer/updatePersonalCustomer',
  1043. data: {
  1044. id: this.state.InformationId,
  1045. uid: this.state.InformationUid,
  1046. societyTag: this.state.societyTag,
  1047. identifyName: this.state.identifyName,
  1048. industry: this.state.industry,
  1049. dateOfBirthYear: years[0], //出生年
  1050. dateOfBirthMonth: years[1], //出生月
  1051. province: (this.state.ProvinceCity)[0], //省-
  1052. city: (this.state.ProvinceCity)[1], //市
  1053. area: (this.state.ProvinceCity)[2], //区
  1054. sex: this.state.sex,
  1055. expert: this.state.expert,
  1056. celebrity: this.state.celebrity,
  1057. international: this.state.international,
  1058. fixedTel: this.state.fixedTel,
  1059. consultationPrice: this.state.consultationPrice,
  1060. qq: this.state.qq,
  1061. contacts: this.state.contacts,
  1062. contactMobile: this.state.contactMobile,
  1063. idNumber: this.state.idNumber,
  1064. email: this.state.email,
  1065. isMember: this.state.isMember,
  1066. consultant: this.state.consultant,
  1067. postalAddress: this.state.postalAddress,
  1068. introduction: this.state.introduction,
  1069. positiveIdUrl: thecompanyLogoUrl,
  1070. oppositeIdUrl: thecompanyLogoUrls,
  1071. headPortraitUrl: theorgCodeUrl,
  1072. investment: this.state.investment,
  1073. professionalTitle: this.state.professionalTitle,
  1074. workUnit: this.state.workUnit,
  1075. education: this.state.education,
  1076. graduateSchool: this.state.graduateSchool,
  1077. majorCategory: this.state.majorCategory,
  1078. qualification: this.state.qualification,
  1079. businessAudit:this.state.businessAudit,
  1080. auditStatus:this.state.auditStatus
  1081. }
  1082. }).done(function(data) {
  1083. this.setState({
  1084. loading: false
  1085. });
  1086. if(!data.error.length) {
  1087. message.success('保存成功!');
  1088. this.detailsModal()
  1089. this.loadData();
  1090. } else {
  1091. message.warning(data.error[0].message);
  1092. }
  1093. }.bind(this));
  1094. }
  1095. })
  1096. },
  1097. //点击整行查看详情
  1098. //查看基本详情基本信息
  1099. loadInformation(record) {
  1100. this.RowClick;
  1101. $.ajax({
  1102. method: "get",
  1103. dataType: "json",
  1104. crossDomain: false,
  1105. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  1106. data: {
  1107. uid: record
  1108. },
  1109. success: function(data) {
  1110. let thisData = data.data;
  1111. if(!thisData) {
  1112. if(data.error && data.error.length) {
  1113. message.warning(data.error[0].message);
  1114. };
  1115. thisData = {};
  1116. };
  1117. let ProvinceCityArr = [];
  1118. let ProvinceS = thisData.province; //getprovince
  1119. let citys = thisData.city;
  1120. let Areas = thisData.area;
  1121. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1122. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  1123. let month = thisData.dateOfBirthYear ? thisData.dateOfBirthYear + '/' + thisData.dateOfBirthMonth : false;
  1124. this.setState({
  1125. proviceCityArea: ProvinceS ? cityArea : '',
  1126. InformationId: thisData.id,
  1127. InformationUid: thisData.uid,
  1128. identifyName: thisData.identifyName,
  1129. listed: thisData.listed,
  1130. highTechZone: thisData.highTechZone,
  1131. consultant: thisData.consultant,
  1132. headPortraitUrl: thisData.headPortraitUrl ? splitUrl(thisData.headPortraitUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1133. positiveIdUrl: thisData.positiveIdUrl ? splitUrl(thisData.positiveIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1134. oppositeIdUrl: thisData.oppositeIdUrl ? splitUrl(thisData.oppositeIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  1135. dataInformation: thisData,
  1136. idNumber: thisData.idNumber,
  1137. ProvinceCity: ProvinceCityArr,
  1138. industry: String(thisData.industry),
  1139. societyTag: thisData.societyTag,
  1140. sex: thisData.sex,
  1141. contacts: thisData.contacts,
  1142. contactMobile: thisData.contactMobile,
  1143. yearMonth: month,
  1144. postalAddress: thisData.postalAddress,
  1145. fixedTel: thisData.fixedTel,
  1146. consultationPrice: thisData.consultationPrice,
  1147. email: thisData.email,
  1148. qq: thisData.qq,
  1149. introduction: thisData.introduction,
  1150. expert: thisData.expert,
  1151. celebrity: thisData.celebrity,
  1152. international: thisData.international,
  1153. investment: thisData.investment,
  1154. professionalTitle: thisData.professionalTitle,
  1155. workUnit: thisData.workUnit,
  1156. education: thisData.education,
  1157. graduateSchool: thisData.graduateSchool,
  1158. majorCategory: thisData.majorCategory,
  1159. qualification: thisData.qualification,
  1160. businessAudit:thisData.businessAudit,
  1161. auditStatus:thisData.auditStatus?String(thisData.auditStatus):undefined,
  1162. });
  1163. }.bind(this),
  1164. }).always(function() {
  1165. this.setState({
  1166. loading: false
  1167. });
  1168. }.bind(this));
  1169. },
  1170. //tab3账户信息请求数据
  1171. httpAccount(record) {
  1172. this.RowClick;
  1173. $.ajax({
  1174. method: "get",
  1175. dataType: "json",
  1176. crossDomain: false,
  1177. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  1178. data: {
  1179. uid: record
  1180. },
  1181. success: function(data) {
  1182. let thisData = data.data;
  1183. if(!thisData) {
  1184. if(data.error && data.error.length) {
  1185. message.warning(data.error[0].message);
  1186. };
  1187. thisData = {};
  1188. };
  1189. let sourcecustomer = ''
  1190. switch(String(thisData.source)) {
  1191. case '0':
  1192. sourcecustomer = '注册客户'
  1193. break;
  1194. case '1':
  1195. sourcecustomer = '录入客户'
  1196. break;
  1197. }
  1198. this.setState({
  1199. Accountuid: thisData.id,
  1200. mobile: thisData.mobile,
  1201. nickname: thisData.nickname,
  1202. email: thisData.email,
  1203. type: getcustomerTyp(String(thisData.type)),
  1204. source: sourcecustomer,
  1205. isMember: thisData.isMember,
  1206. currentMemberStatus: String(thisData.currentMemberStatus),
  1207. lvl: String(thisData.lvl),
  1208. status: String(thisData.status),
  1209. createTimes: thisData.createTimes,
  1210. });
  1211. }.bind(this),
  1212. }).always(function() {
  1213. this.setState({
  1214. loading: false
  1215. });
  1216. }.bind(this));
  1217. },
  1218. detailsModalOk(e) {
  1219. this.setState({ modal5Visible: true }); //需要一个请求数据
  1220. },
  1221. //点击消失函数
  1222. detailsModal(e) {
  1223. this.setState({
  1224. modal5Visible: false
  1225. });
  1226. },
  1227. //拜访modul函数
  1228. visitOk(e) {
  1229. this.setState({
  1230. visitModul: false
  1231. });
  1232. this.loadVisit()
  1233. },
  1234. visitCancel(e) {
  1235. this.setState({
  1236. visitModul: false
  1237. });
  1238. },
  1239. //拜访保存函数
  1240. visitSubmit(e) {
  1241. e.preventDefault();
  1242. if(this.state.contactType == undefined) {
  1243. message.warning('请选择拜访方式')
  1244. return false;
  1245. };
  1246. if(this.state.keys) {
  1247. if(this.state.lastName == undefined) {
  1248. message.warning('请选择联系人')
  1249. return false;
  1250. }
  1251. };
  1252. this.setState({
  1253. selectedRowKeys: [],
  1254. });
  1255. this.setState({
  1256. loading: true
  1257. });
  1258. let contactsId = '';
  1259. if(this.state.keys) {
  1260. let conts = this.state.lastName;
  1261. contactsId = this.state.contactsIdArr[conts].id;
  1262. }
  1263. //新增
  1264. $.ajax({
  1265. method: "post",
  1266. dataType: "json",
  1267. url: this.state.keys ? globalConfig.context + '/api/admin/customer/addFollow' : globalConfig.context + '/api/admin/customer/updateFollow',
  1268. data: this.state.keys ? {
  1269. userBusinessList: JSON.stringify(this.state.data),
  1270. uid: this.state.uid,
  1271. ocbId: contactsId,
  1272. contactType: this.state.contactType,
  1273. result: this.state.result,
  1274. followTime: this.state.followTime,
  1275. } : {
  1276. followId: this.state.followIds,
  1277. userBusinessList: JSON.stringify(this.state.data),
  1278. uid: this.state.uid,
  1279. contactType: this.state.contactType,
  1280. result: this.state.result,
  1281. followTime: this.state.followTime,
  1282. }
  1283. }).done(function(data) {
  1284. this.setState({
  1285. loading: false
  1286. });
  1287. if(!data.error.length) {
  1288. message.success('保存成功!');
  1289. this.loadVisit(); //
  1290. this.loadData();
  1291. this.visitCancel();
  1292. } else {
  1293. message.warning(data.error[0].message);
  1294. }
  1295. }.bind(this));
  1296. },
  1297. //当选择联系人的列表变化时,则执行
  1298. hundleName(e) {
  1299. let changNub = this.state.telNum[e];
  1300. this.setState({
  1301. nub: this.state.telNum[e],
  1302. lastName: e,
  1303. });
  1304. },
  1305. //添加新业务及单位客户详情新增
  1306. addNew() {
  1307. this.state.data.push({
  1308. customerStatus: undefined,
  1309. businessGlossoryId: undefined,
  1310. followSituation: undefined,
  1311. remarks: '',
  1312. });
  1313. this.setState({
  1314. data: this.state.data
  1315. })
  1316. },
  1317. //tab2新增联系人
  1318. addcontact() {
  1319. this.state.contactList.push({
  1320. id: null,
  1321. name: '',
  1322. mobile: '',
  1323. email: '',
  1324. qq: '',
  1325. wechat: '',
  1326. depatrment: '',
  1327. position: '',
  1328. });
  1329. this.setState({
  1330. contactList: this.state.contactList
  1331. })
  1332. },
  1333. //tab5进入修改时
  1334. //进入修改时
  1335. listFollowUp(e) {
  1336. $.ajax({
  1337. method: "get",
  1338. dataType: "json",
  1339. crossDomain: false,
  1340. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  1341. data: {
  1342. ufbId: e
  1343. },
  1344. success: function(data) {
  1345. let thedata = data.data;
  1346. if(!thedata) {
  1347. if(data.error && data.error.length) {
  1348. message.warning(data.error[0].message);
  1349. };
  1350. thedata = {};
  1351. };
  1352. this.setState({
  1353. businessGlossoryIds: thedata.businessGlossoryId,
  1354. followSituations: thedata.followSituation,
  1355. customerStatuss: thedata.customerStatus,
  1356. followTimes: thedata.followTime,
  1357. createTimes: thedata.createTime,
  1358. identifyNames: thedata.identifyName,
  1359. contactTypes: parseInt(thedata.contactType),
  1360. results: thedata.result,
  1361. remarkss: thedata.remarks,
  1362. adminNames: thedata.adminName,
  1363. contactss: thedata.contacts,
  1364. contactMobiles: thedata.contactMobile,
  1365. ufbId: thedata.ufbId,
  1366. followIds: thedata.followId,
  1367. });
  1368. }.bind(this),
  1369. }).always(function() {
  1370. this.setState({
  1371. loading: false
  1372. });
  1373. }.bind(this));
  1374. },
  1375. //修改密码Modul
  1376. modifyPassworld() {
  1377. this.setState({
  1378. passworldModul: true
  1379. });
  1380. },
  1381. passworldOk(e) {
  1382. this.setState({
  1383. passworldModul: false
  1384. });
  1385. },
  1386. passworldCancel(e) {
  1387. this.setState({
  1388. passworldModul: false
  1389. });
  1390. },
  1391. //修改密码保存
  1392. passworldSubmit(e) {
  1393. e.preventDefault();
  1394. this.passworldCancel()
  1395. },
  1396. //新增联系人
  1397. addcontactModulOK() {
  1398. this.setState({
  1399. addcontactModul: false
  1400. });
  1401. },
  1402. addcontactModulcancel() {
  1403. this.setState({
  1404. addcontactModul: false
  1405. });
  1406. },
  1407. //点击新增详情
  1408. newContacts() {
  1409. this.state.newsex =undefined;
  1410. this.state.newname ='';
  1411. this.state.newmobile='';
  1412. this.state.newwechat='';
  1413. this.state.newqq='';
  1414. this.state.newdepatrment='';
  1415. this.state.newposition='';
  1416. this.state.newemail='';
  1417. this.setState({
  1418. uids: this.state.uid,
  1419. addcontactModul: true
  1420. });
  1421. },
  1422. //新增联系人保存函数
  1423. submitcontactman() {
  1424. this.setState({
  1425. loading: true
  1426. })
  1427. $.ajax({
  1428. method: "post",
  1429. dataType: "json",
  1430. crossDomain: false,
  1431. url: globalConfig.context + "/api/admin/customer/addOneContact",
  1432. data: {
  1433. uid: this.state.uids,
  1434. name: this.state.newname,
  1435. mobile: this.state.newmobile,
  1436. email: this.state.newemail,
  1437. wechat: this.state.newwechat,
  1438. depatrment: this.state.newdepatrment,
  1439. position: this.state.newposition,
  1440. sex: this.state.newsex,
  1441. qq: this.state.newqq
  1442. },
  1443. success: function(data) {
  1444. if(!data.error.length) {
  1445. this.addcontactModulOK()
  1446. this.getNewWoman(this.state.uids)
  1447. this.setState({
  1448. loading: false,
  1449. })
  1450. } else {
  1451. message.warning(data.error[0].message);
  1452. };
  1453. }.bind(this)
  1454. });
  1455. },
  1456. //获取联系人下拉框
  1457. getNewWoman(ids) {
  1458. this.state.data = []
  1459. $.ajax({
  1460. method: "get",
  1461. dataType: "json",
  1462. crossDomain: false,
  1463. url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
  1464. data: {
  1465. uid: ids,
  1466. },
  1467. success: function(data) {
  1468. let theArr = [];
  1469. let thedata = data.data;
  1470. if(!thedata) {
  1471. if(data.error && data.error.length) {
  1472. message.warning(data.error[0].message);
  1473. };
  1474. thedata = {};
  1475. };
  1476. var telNum = [];
  1477. var contactIds = [];
  1478. thedata.map(function(item, index) {
  1479. contactIds.push(thedata[index].id);
  1480. telNum.push(thedata[index].mobile);
  1481. });
  1482. for(let item in data.data) {
  1483. let theData = data.data[item];
  1484. theArr.push(
  1485. <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>
  1486. );
  1487. };
  1488. this.setState({
  1489. contactsIdArr: thedata,
  1490. telNum: telNum,
  1491. orderStatusOption: theArr,
  1492. });
  1493. }.bind(this),
  1494. }).always(function() {
  1495. this.setState({
  1496. deletId: ids,
  1497. loading: false
  1498. });
  1499. }.bind(this));
  1500. },
  1501. //拜访意向服务列表单个删除
  1502. intentionDelet(e, index) {
  1503. if(!this.state.keys) {
  1504. let detId = this.state.followIds;
  1505. if(e.id) {
  1506. this.setState({
  1507. selectedRowKeys: [],
  1508. });
  1509. $.ajax({
  1510. method: "get",
  1511. dataType: "json",
  1512. crossDomain: false,
  1513. url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",
  1514. data: {
  1515. ufbId: e.id
  1516. }
  1517. }).done(function(data) {
  1518. if(!data.error.length) {
  1519. message.success('删除成功');
  1520. this.setState({
  1521. loading: false,
  1522. });
  1523. } else {
  1524. message.warning(data.error[0].message);
  1525. };
  1526. this.visitModify(detId);
  1527. }.bind(this));
  1528. } else {
  1529. this.visitModify(detId);
  1530. }
  1531. } else {
  1532. let deteluserBusinessList = (this.state.data).splice(index, 1)
  1533. this.setState({
  1534. selectedRowKeys: [],
  1535. });
  1536. }
  1537. },
  1538. //tab5意向业务
  1539. //意向业务查看列表单个详情
  1540. businessIntentionDetails(e) {
  1541. $.ajax({
  1542. method: "get",
  1543. dataType: "json",
  1544. crossDomain: false,
  1545. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  1546. data: {
  1547. businessId: e.businessId
  1548. },
  1549. success: function(data) {
  1550. let thisData = data.data;
  1551. if(!thisData) {
  1552. if(data.error && data.error.length) {
  1553. message.warning(data.error[0].message);
  1554. };
  1555. thisData = {};
  1556. };
  1557. this.setState({
  1558. businessGlossoryId: thisData.businessGlossoryId,
  1559. identifyName: thisData.identifyName,
  1560. uid: thisData.uid,
  1561. businessId: thisData.businessId,
  1562. followSituation: thisData.followSituation,
  1563. customerStatus: thisData.customerStatus,
  1564. createTime: thisData.createTime,
  1565. followTime: thisData.followTime,
  1566. adminName: thisData.adminName,
  1567. remarks: thisData.remarks,
  1568. result: thisData.result,
  1569. });
  1570. }.bind(this),
  1571. }).always(function() {
  1572. this.loadVisit();
  1573. this.setState({
  1574. loading: false
  1575. });
  1576. }.bind(this));
  1577. this.setState({
  1578. businessModul: true
  1579. })
  1580. },
  1581. //查看跟进记录列表
  1582. loadVisit(pageNo) {
  1583. this.setState({
  1584. loading: true
  1585. });
  1586. $.ajax({
  1587. method: "get",
  1588. dataType: "json",
  1589. crossDomain: false,
  1590. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1591. data: {
  1592. pageNo: pageNo || 1,
  1593. pageSize: this.state.paginations.pageSize,
  1594. uid: this.state.rowId, //名称1
  1595. businessGlossoryId: this.state.businessGlossoryId,
  1596. },
  1597. success: function(data) {
  1598. let theArr = [];
  1599. if(data.error.length || data.data.list == "") {
  1600. if(data.error && data.error.length) {
  1601. message.warning(data.error[0].message);
  1602. };
  1603. } else {
  1604. for(let i = 0; i < data.data.list.length; i++) {
  1605. let thisdata = data.data.list[i];
  1606. theArr.push({
  1607. followId: thisdata.followId,
  1608. followTime: thisdata.followTime,
  1609. identifyName: thisdata.identifyName,
  1610. contacts: thisdata.contacts,
  1611. contactMobile: thisdata.contactMobile,
  1612. result: thisdata.result,
  1613. ufbId: thisdata.ufbId,
  1614. adminName: thisdata.adminName,
  1615. followSituation: thisdata.followSituation,
  1616. customerStatus: thisdata.customerStatus,
  1617. contactType: thisdata.contactType
  1618. });
  1619. };
  1620. this.state.paginations.current = data.data.pageNo;
  1621. this.state.paginations.total = data.data.totalCount;
  1622. };
  1623. this.setState({
  1624. visitArrList: theArr,
  1625. paginations: this.state.paginations
  1626. });
  1627. }.bind(this),
  1628. }).always(function() {
  1629. this.setState({
  1630. loading: false
  1631. });
  1632. }.bind(this));
  1633. },
  1634. //tab3拜访记录
  1635. loadBfVisit(pageNo, ids) {
  1636. this.setState({
  1637. loading: true
  1638. });
  1639. $.ajax({
  1640. method: "get",
  1641. dataType: "json",
  1642. crossDomain: false,
  1643. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1644. data: {
  1645. pageNo: pageNo || 1,
  1646. pageSize: this.state.paginationsy.pageSize,
  1647. uid: ids ? ids : this.state.rowId, //名称1
  1648. },
  1649. success: function(data) {
  1650. let theArr = [];
  1651. if(data.error.length || data.data.list == "") {
  1652. if(data.error && data.error.length) {
  1653. message.warning(data.error[0].message);
  1654. };
  1655. } else {
  1656. for(let i = 0; i < data.data.list.length; i++) {
  1657. let thisdata = data.data.list[i];
  1658. theArr.push({
  1659. followId: thisdata.followId,
  1660. followTime: thisdata.followTime,
  1661. identifyName: thisdata.identifyName,
  1662. contacts: thisdata.contacts,
  1663. contactMobile: thisdata.contactMobile,
  1664. result: thisdata.result,
  1665. ufbId: thisdata.ufbId,
  1666. adminName: thisdata.adminName,
  1667. followSituation: thisdata.followSituation,
  1668. customerStatus: thisdata.customerStatus,
  1669. contactType: thisdata.contactType
  1670. });
  1671. };
  1672. this.state.paginationsy.current = data.data.pageNo;
  1673. this.state.paginationsy.total = data.data.totalCount;
  1674. };
  1675. this.setState({
  1676. visitArrList: theArr,
  1677. paginationsy: this.state.paginationsy
  1678. });
  1679. }.bind(this),
  1680. }).always(function() {
  1681. this.setState({
  1682. loading: false
  1683. });
  1684. }.bind(this));
  1685. },
  1686. businessIntentionOk() {
  1687. this.setState({
  1688. businessGlossoryId: '',
  1689. businessModul: false
  1690. })
  1691. },
  1692. businessIntentionCancel() {
  1693. this.setState({
  1694. businessGlossoryId: '',
  1695. businessModul: false
  1696. })
  1697. },
  1698. //业务跟进查看跟多
  1699. businessFollowDetails(e) {
  1700. this.listFollowUp(e.ufbId)
  1701. this.setState({
  1702. businessFollowModul: true
  1703. })
  1704. },
  1705. businessFollowOk(e) {
  1706. this.setState({
  1707. businessFollowModul: false
  1708. })
  1709. },
  1710. businessFollowCancel(e) {
  1711. this.setState({
  1712. businessFollowModul: false
  1713. })
  1714. },
  1715. //tab2联系人保存
  1716. contactSave() {
  1717. let err = '';
  1718. let contactArr = this.state.contactList;
  1719. contactArr.map(function(item) {
  1720. if(!item.name) {
  1721. err = '客户姓名不能为空!';
  1722. }
  1723. if(!item.mobile) {
  1724. err = '手机号码不能为空!';
  1725. }
  1726. return err;
  1727. })
  1728. if(err) {
  1729. message.warning(err)
  1730. return false;
  1731. };
  1732. $.ajax({
  1733. url: globalConfig.context + '/api/admin/customer/updateCustomerContacts',
  1734. method: 'post',
  1735. data: {
  1736. uid: this.state.rowId,
  1737. contactList: JSON.stringify(this.state.contactList)
  1738. }
  1739. }).done(function(data) {
  1740. this.setState({
  1741. loading: false
  1742. });
  1743. if(!data.error.length) {
  1744. message.success('保存成功!');
  1745. this.detailsModal()
  1746. this.loadData();
  1747. } else {
  1748. message.warning(data.error[0].message);
  1749. }
  1750. }.bind(this));
  1751. },
  1752. //详情tab切换数据处理
  1753. callback(e) {
  1754. this.setState({
  1755. callnub: e,
  1756. })
  1757. if(e == '1') {
  1758. this.loadInformation(this.state.rowId)
  1759. }
  1760. if(e == '2') {
  1761. this.contactLists(this.state.rowId)
  1762. }
  1763. if(e == '3') {
  1764. this.httpAccount(this.state.rowId)
  1765. }
  1766. if(e == '4') {
  1767. this.loadBfVisit(1, this.state.rowId);
  1768. }
  1769. if(e == '5') {
  1770. this.BusinessList(1, this.state.rowId);
  1771. }
  1772. if(e == '6') {
  1773. }
  1774. if(e == '7') {
  1775. }
  1776. if(e == '8') {
  1777. }
  1778. if(e == '9') {
  1779. }
  1780. },
  1781. //详情tab切换数据处理
  1782. callbacks(e) {
  1783. this.setState({
  1784. callnubs: e,
  1785. })
  1786. if(e == '1') {
  1787. console.log(this.state.callnubs);
  1788. }
  1789. if(e == '2') {
  1790. console.log(this.state.callnubs);
  1791. }
  1792. },
  1793. //账户信息保存
  1794. accountSave(e) {
  1795. e.preventDefault();
  1796. this.state.data = [];
  1797. this.setState({
  1798. selectedRowKeys: [],
  1799. });
  1800. this.setState({
  1801. loading: true
  1802. });
  1803. $.ajax({
  1804. method: "post",
  1805. dataType: "json",
  1806. url: globalConfig.context + '/api/admin/customer/updateUserAccount',
  1807. data: {
  1808. id: this.state.Accountuid,
  1809. mobile: this.state.mobile,
  1810. nickname: this.state.nickname,
  1811. email: this.state.email,
  1812. isMember: this.state.isMember,
  1813. currentMemberStatus: this.state.currentMemberStatus,
  1814. lvl: this.state.lvl,
  1815. status: this.state.status,
  1816. }
  1817. }).done(function(data) {
  1818. this.setState({
  1819. loading: false
  1820. });
  1821. if(!data.error.length) {
  1822. message.success('保存成功!');
  1823. this.detailsModal();
  1824. this.loadData();
  1825. } else {
  1826. message.warning(data.error[0].message);
  1827. }
  1828. }.bind(this));
  1829. },
  1830. //tab2删除
  1831. confirmDelet(e) {
  1832. this.setState({
  1833. loading: true
  1834. });
  1835. if(e.id) {
  1836. $.ajax({
  1837. method: "get",
  1838. dataType: "json",
  1839. crossDomain: false,
  1840. url: globalConfig.context + "/api/admin/customer/deleteOneContact",
  1841. data: {
  1842. ocbId: e.id, //删除的ID
  1843. }
  1844. }).done(function(data) {
  1845. if(!data.error.length) {
  1846. message.success('删除成功!');
  1847. this.setState({
  1848. loading: false,
  1849. });
  1850. } else {
  1851. message.warning(data.error[0].message);
  1852. };
  1853. this.contactLists(this.state.rowId);
  1854. }.bind(this));
  1855. } else {
  1856. this.contactLists(this.state.rowId);
  1857. }
  1858. },
  1859. //tab5业务意向
  1860. BusinessList(pageNo, uids) {
  1861. this.setState({
  1862. loading: true
  1863. });
  1864. $.ajax({
  1865. method: "post",
  1866. dataType: "json",
  1867. crossDomain: false,
  1868. url: globalConfig.context + '/api/admin/customer/listBusiness',
  1869. data: {
  1870. pageNo: pageNo || 1,
  1871. pageSize: this.state.paginationt.pageSize,
  1872. uid: uids ? uids : this.state.rowId
  1873. },
  1874. success: function(data) {
  1875. let theArr = [];
  1876. if(data.error.length || data.data.list == "") {
  1877. if(data.error && data.error.length) {
  1878. message.warning(data.error[0].message);
  1879. };
  1880. } else {
  1881. for(let i = 0; i < data.data.list.length; i++) {
  1882. let thisdata = data.data.list[i];
  1883. theArr.push({
  1884. key: i,
  1885. businessId: thisdata.businessId,
  1886. businessName: thisdata.businessName,
  1887. identifyName: thisdata.identifyName,
  1888. followSituation: thisdata.followSituation,
  1889. customerStatus: thisdata.customerStatus,
  1890. adminName: thisdata.adminName,
  1891. createTime: thisdata.createTime
  1892. });
  1893. };
  1894. this.state.paginationt.current = data.data.pageNo;
  1895. this.state.paginationt.total = data.data.totalCount;
  1896. };
  1897. this.setState({
  1898. dataBusiness: theArr,
  1899. paginationt: this.state.paginationt
  1900. });
  1901. }.bind(this),
  1902. }).always(function() {
  1903. this.setState({
  1904. loading: false
  1905. });
  1906. }.bind(this));
  1907. },
  1908. componentWillReceiveProps(nextProps) {
  1909. if(!this.props.visible && nextProps.visible) {
  1910. if(nextProps.data && nextProps.data.id) {
  1911. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1912. };
  1913. this.state.data = {};
  1914. this.state.companyLogoUrl = [];
  1915. this.state.orgCodeUrl = [];
  1916. };
  1917. },
  1918. render() {
  1919. const FormItem = Form.Item
  1920. const rowSelection = {
  1921. selectedRowKeys: this.state.selectedRowKeys,
  1922. onChange: (selectedRowKeys, selectedRows) => {
  1923. this.setState({
  1924. selectedRows: selectedRows.slice(-1),
  1925. selectedRowKeys: selectedRowKeys.slice(-1)
  1926. });
  1927. },
  1928. onSelect: (recordt, selected, selectedRows) => {
  1929. this.setState({
  1930. recordt: recordt.id
  1931. })
  1932. },
  1933. };
  1934. const rowSelections = {
  1935. selectedRowKeys: this.state.selectedRowKey,
  1936. onChange: (selectedRowKey, selectedRow) => {
  1937. this.setState({
  1938. selectedRow: selectedRow.slice(-1),
  1939. selectedRowKey: selectedRowKey.slice(-1)
  1940. });
  1941. },
  1942. onSelect: (records, selected, selectedRow) => {
  1943. this.setState({
  1944. selectedRow: selectedRow.slice(-1),
  1945. records: records.id,
  1946. })
  1947. },
  1948. };
  1949. const hasSelected = this.state.selectedRowKeys.length > 0;
  1950. const { RangePicker, MonthPicker } = DatePicker;
  1951. const { getFieldDecorator } = this.props.form;
  1952. const formItemLayout = {
  1953. labelCol: { span: 8 },
  1954. wrapperCol: { span: 14 },
  1955. };
  1956. const theInformation = this.state.dataInformation || {}
  1957. const contactsOption = "";
  1958. const formItemLayput = {
  1959. labelCol: { span: 10 },
  1960. wrapperCol: { span: 14 },
  1961. };
  1962. const contacts = this.state.contacts || '';
  1963. return(
  1964. <div className="user-content" >
  1965. <div className="content-title" style={this.state.callnubs=="2"?{"display":"none"}:{}}>
  1966. <span>个人客户实名认证</span>
  1967. </div>
  1968. <div className="user-search" style={this.state.callnubs=="2"?{"display":"none"}:{}}>
  1969. <Input placeholder="客户姓名"
  1970. value={this.state.nameSearch}
  1971. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1972. <Select placeholder="省"
  1973. style={{ width: 80 }}
  1974. value={this.state.provinceSearch}
  1975. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1976. {this.state.Provinces}
  1977. </Select>
  1978. <span style={{marginRight:'10px'}}>
  1979. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  1980. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1981. </span>
  1982. <span style={{marginRight:'10px'}}>客户类型:</span>
  1983. <Select placeholder="选择客户类型"
  1984. style={{ width: 100 }}
  1985. value={this.state.shareTypeSearch}
  1986. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  1987. <Select.Option value="" >所有客户</Select.Option>
  1988. <Select.Option value="1" >公共客户</Select.Option>
  1989. </Select>
  1990. <Button type="primary" onClick={this.search}>搜索</Button>
  1991. <Button onClick={this.reset}>重置</Button>
  1992. {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  1993. disabled={!hasSelected}
  1994. onClick={this.delectRow}>审核通过</Button>:''}
  1995. {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  1996. disabled={!hasSelected}
  1997. onClick={this.delectRows}>审核不通过</Button>:''}
  1998. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  1999. <div className='clearfix' style={{marginTop:'5px'}}>
  2000. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  2001. <RangePicker
  2002. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  2003. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  2004. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  2005. <Select placeholder="客户状态"
  2006. style={{ width: 100 }}
  2007. value={this.state.statusSearch}
  2008. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  2009. <Select.Option value="0" >正常</Select.Option>
  2010. <Select.Option value="2" >锁定</Select.Option>
  2011. </Select>
  2012. <Select placeholder="行业"
  2013. style={{ width: 100 }}
  2014. value={this.state.industrySearch}
  2015. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  2016. {this.state.intentionalOption}
  2017. </Select>
  2018. <span>认证:</span>
  2019. <Select placeholder="业务认证"
  2020. style={{ width: 100 }}
  2021. value={this.state.serviceCertificationSearch}
  2022. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  2023. <Select.Option value="0" >未认证</Select.Option>
  2024. <Select.Option value="1" >已认证</Select.Option>
  2025. </Select>
  2026. <span>专家:</span>
  2027. <Select placeholder="专家"
  2028. style={{ width: 60 }}
  2029. value={this.state.expertSearch}
  2030. onChange={(e) => { this.setState({ expertSearch: e }) }}>
  2031. <Select.Option value="0" >否</Select.Option>
  2032. <Select.Option value="1" >是</Select.Option>
  2033. </Select>
  2034. <span>明星:</span>
  2035. <Select placeholder="明星"
  2036. style={{ width: 60 }}
  2037. value={this.state.celebritySearch}
  2038. onChange={(e) => { this.setState({ celebritySearch: e }) }}>
  2039. <Select.Option value="0" >否</Select.Option>
  2040. <Select.Option value="1" >是</Select.Option>
  2041. </Select>
  2042. <span>国际:</span>
  2043. <Select placeholder="国际"
  2044. style={{ width: 60 }}
  2045. value={this.state.internationalSearch}
  2046. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  2047. <Select.Option value="0" >否</Select.Option>
  2048. <Select.Option value="1" >是</Select.Option>
  2049. </Select>
  2050. <span>会员:</span>
  2051. <Select placeholder="会员等级"
  2052. style={{ width: 100 }}
  2053. value={this.state.lvlSearch}
  2054. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  2055. {this.state.lvlArrOption}
  2056. </Select>
  2057. <Select placeholder="会员状态"
  2058. style={{ width: 100 }}
  2059. value={this.state.currentMemberStatusSearch}
  2060. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  2061. {this.state.currentMemberArrOption}
  2062. </Select>
  2063. </div>
  2064. </div>
  2065. </div>
  2066. <div className="patent-table" style={this.state.callnubs=="2"?{"display":"none"}:{}}>
  2067. <Spin spinning={this.state.loading}>
  2068. <Table columns={this.state.columns}
  2069. dataSource={this.state.dataSource}
  2070. rowSelection={rowSelection}
  2071. pagination={this.state.pagination}
  2072. onRowClick={this.tableRowClick}
  2073. />
  2074. </Spin>
  2075. </div>
  2076. <Modal
  2077. className="customeDetails"
  2078. title="个人客户详情"
  2079. width='1200px'
  2080. visible={this.state.modal5Visible}
  2081. onOk={this.detailsModal}
  2082. onCancel={this.detailsModal}
  2083. footer=''
  2084. >
  2085. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  2086. <TabPane tab="基本信息" key="1">
  2087. {adminData.isSuperAdmin?<Form horizontal onSubmit={this.newSubmit} id="demand-form">
  2088. <Spin spinning={this.state.loading}>
  2089. <div className="clearfix" >
  2090. <FormItem className="half-item"
  2091. {...formItemLayout}
  2092. label="客户姓名"
  2093. >
  2094. <span>{theInformation.identifyName}</span>
  2095. </FormItem>
  2096. </div>
  2097. <div className="clearfix" >
  2098. <FormItem className="half-item"
  2099. {...formItemLayout}
  2100. label="行业">
  2101. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  2102. onChange={(e)=>{this.setState({industry:e})}}>
  2103. {
  2104. industry.map(function (item) {
  2105. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2106. })
  2107. }
  2108. </Select>
  2109. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2110. </FormItem>
  2111. <FormItem className="half-item"
  2112. {...formItemLayout}
  2113. label="社会属性"
  2114. >
  2115. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'300px'}}
  2116. onChange={(e)=>{this.setState({societyTag:e})}}>
  2117. {
  2118. socialAttribute.map(function (item) {
  2119. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2120. })
  2121. }
  2122. </Select>
  2123. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2124. </FormItem>
  2125. <FormItem className="half-item"
  2126. {...formItemLayout}
  2127. label="省-市-区"
  2128. >
  2129. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  2130. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  2131. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  2132. </FormItem>
  2133. <FormItem className="half-item"
  2134. {...formItemLayout}
  2135. label="出生日期"
  2136. >
  2137. {!this.state.yearMonth?<MonthPicker placeholder="选择出生年月" value={this.state.yearMonth||null} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2138. :<MonthPicker value={moment(this.state.yearMonth, monthFormat)} format={monthFormat} onChange={(time) => {this.setState({yearMonth: time});}}/>
  2139. }
  2140. </FormItem>
  2141. <FormItem className="half-item"
  2142. {...formItemLayout}
  2143. label="身份证号码"
  2144. >
  2145. <Input placeholder="身份证号码" value={this.state.idNumber} onChange={(e) => {
  2146. this.setState({ idNumber: e.target.value })}}/>
  2147. </FormItem>
  2148. <FormItem className="half-item"
  2149. {...formItemLayout}
  2150. label="主要联系人"
  2151. >
  2152. <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
  2153. this.setState({ contacts: e.target.value })}}/>
  2154. </FormItem>
  2155. <FormItem className="half-item"
  2156. {...formItemLayout}
  2157. label="主要联系人号码"
  2158. >
  2159. <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
  2160. this.setState({ contactMobile: e.target.value })}}/>
  2161. </FormItem>
  2162. <FormItem className="half-item"
  2163. {...formItemLayout}
  2164. label="职称名字"
  2165. >
  2166. <Input placeholder="职称名字" value={this.state.professionalTitle} onChange={(e) => {
  2167. this.setState({ professionalTitle: e.target.value })}}/>
  2168. </FormItem>
  2169. <FormItem className="half-item"
  2170. {...formItemLayout}
  2171. label="就业单位"
  2172. >
  2173. <Input placeholder="就业单位" value={this.state.workUnit} onChange={(e) => {
  2174. this.setState({ workUnit: e.target.value })}}/>
  2175. </FormItem>
  2176. <FormItem className="half-item"
  2177. {...formItemLayout}
  2178. label="学历"
  2179. >
  2180. <Input placeholder="学历" value={this.state.education} onChange={(e) => {
  2181. this.setState({ education: e.target.value })}}/>
  2182. </FormItem>
  2183. <FormItem className="half-item"
  2184. {...formItemLayout}
  2185. label="毕业院校"
  2186. >
  2187. <Input placeholder="学历" value={this.state.graduateSchool} onChange={(e) => {
  2188. this.setState({ graduateSchool: e.target.value })}}/>
  2189. </FormItem>
  2190. <FormItem className="half-item"
  2191. {...formItemLayout}
  2192. label="专业类别"
  2193. >
  2194. <Input placeholder="专业类别" value={this.state.majorCategory} onChange={(e) => {
  2195. this.setState({ majorCategory: e.target.value })}}/>
  2196. </FormItem>
  2197. <FormItem className="half-item"
  2198. {...formItemLayout}
  2199. label="职业资格"
  2200. >
  2201. <Input placeholder="职业资格" value={this.state.qualification} onChange={(e) => {
  2202. this.setState({ qualification: e.target.value })}}/>
  2203. </FormItem>
  2204. <FormItem className="half-item"
  2205. {...formItemLayout}
  2206. label="通信地址"
  2207. >
  2208. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  2209. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  2210. </FormItem>
  2211. <FormItem className="half-item"
  2212. {...formItemLayout}
  2213. label="固定电话"
  2214. >
  2215. <Input placeholder="客户固定电话" value={this.state.fixedTel}
  2216. onChange={(e) => { this.setState({ fixedTel: e.target.value }) }}/>
  2217. </FormItem>
  2218. <FormItem className="half-item"
  2219. {...formItemLayout}
  2220. label="客户QQ"
  2221. >
  2222. <Input placeholder="客户QQ" value={this.state.qq}
  2223. onChange={(e) => { this.setState({ qq: e.target.value })}}/>
  2224. </FormItem>
  2225. <FormItem className="half-item"
  2226. {...formItemLayout}
  2227. label="电子邮箱"
  2228. >
  2229. <Input placeholder="客户电子邮箱" value={this.state.email}
  2230. onChange={(e) => {this.setState({email: e.target.value })}}/>
  2231. </FormItem>
  2232. <FormItem className="half-item"
  2233. {...formItemLayout}
  2234. label="咨询费用"
  2235. >
  2236. <Input ref='consul' placeholder="输入数字且不超过6位" value={this.state.consultationPrice}
  2237. onChange={(e) => {this.setState({consultationPrice: e.target.value })}}/>
  2238. </FormItem>
  2239. <FormItem className="half-item"
  2240. {...formItemLayout}
  2241. label="实名认证"
  2242. >
  2243. <Select placeholder="实名认证"
  2244. value={this.state.auditStatus}
  2245. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  2246. {
  2247. auditStatusL.map(function (item) {
  2248. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2249. })
  2250. }
  2251. </Select>
  2252. </FormItem>
  2253. <div className='clearfix'>
  2254. <FormItem
  2255. labelCol={{ span: 4 }}
  2256. wrapperCol={{ span: 18 }}
  2257. label="客户简介" >
  2258. <Input type="textarea" rows={4} value={this.state.introduction}
  2259. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  2260. </FormItem>
  2261. </div>
  2262. <div className="clearfix">
  2263. <FormItem className="half-item"
  2264. {...formItemLayout}
  2265. label="业务认证"
  2266. >
  2267. <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>
  2273. </FormItem>
  2274. <FormItem className="half-item"
  2275. {...formItemLayout}
  2276. label="专家"
  2277. >
  2278. <Radio.Group value={this.state.expert} onChange={(e) => {
  2279. this.setState({ expert: e.target.value })
  2280. }}>
  2281. <Radio value={0}>否</Radio>
  2282. <Radio value={1}>是</Radio>
  2283. </Radio.Group>
  2284. </FormItem>
  2285. <FormItem className="half-item"
  2286. {...formItemLayout}
  2287. label="明星"
  2288. >
  2289. <Radio.Group value={this.state.expert} onChange={(e) => {
  2290. this.setState({ expert: e.target.value })
  2291. }}>
  2292. <Radio value={2}>是</Radio>
  2293. </Radio.Group>
  2294. </FormItem>
  2295. <FormItem className="half-item"
  2296. {...formItemLayout}
  2297. label="国际化"
  2298. >
  2299. <Radio.Group value={this.state.international} onChange={(e) => {
  2300. this.setState({ international: e.target.value })
  2301. }}>
  2302. <Radio value={0}>否</Radio>
  2303. <Radio value={1}>是</Radio>
  2304. </Radio.Group>
  2305. </FormItem>
  2306. <FormItem className="half-item"
  2307. {...formItemLayout}
  2308. label="性别"
  2309. >
  2310. <Radio.Group value={this.state.sex} onChange={(e) => {
  2311. this.setState({sex:e.target.value})
  2312. }}>
  2313. <Radio value={'男'}>男</Radio>
  2314. <Radio value={'女'}>女</Radio>
  2315. </Radio.Group>
  2316. </FormItem>
  2317. </div>
  2318. <div className="clearfix pictures">
  2319. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2320. labelCol={{ span: 8 }}
  2321. wrapperCol={{ span: 10 }}
  2322. label="身份证正面" >
  2323. <PicturesWall
  2324. pictureSign="ID"
  2325. fileList={this.getPositiveIdUrl}
  2326. pictureUrl={this.state.positiveIdUrl} />
  2327. <p>建议:图片要清晰。</p>
  2328. </FormItem>
  2329. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2330. labelCol={{ span: 8 }}
  2331. wrapperCol={{ span: 10 }}
  2332. label="身份证反面" >
  2333. <PicturesWall
  2334. pictureSign="ID"
  2335. fileList={this.getOppositeIdUrl}
  2336. pictureUrl={this.state.oppositeIdUrl} />
  2337. <p>建议:图片要清晰。</p>
  2338. </FormItem>
  2339. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2340. labelCol={{ span: 8 }}
  2341. wrapperCol={{ span: 10 }}
  2342. label="客户照片" >
  2343. <PicturesWall
  2344. pictureSign="portrait"
  2345. fileList={this.getHeadPortraitUrl}
  2346. pictureUrl={this.state.headPortraitUrl} />
  2347. <p>建议:图片要清晰。</p>
  2348. </FormItem>
  2349. </div>
  2350. </div>
  2351. </Spin>
  2352. </Form>:
  2353. <Form horizontal id="demand-form">
  2354. <Spin spinning={this.state.loading}>
  2355. <div className="clearfix" >
  2356. <FormItem className="half-item"
  2357. {...formItemLayout}
  2358. label="客户姓名"
  2359. >
  2360. <span>{theInformation.identifyName}</span>
  2361. </FormItem>
  2362. </div>
  2363. <div className="clearfix" >
  2364. <FormItem className="half-item"
  2365. {...formItemLayout}
  2366. label="行业"
  2367. >
  2368. <span>{getIndustryType(this.state.industry)}</span>
  2369. </FormItem>
  2370. <FormItem className="half-item"
  2371. {...formItemLayout}
  2372. label="社会属性"
  2373. >
  2374. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  2375. </FormItem>
  2376. <FormItem className="half-item"
  2377. {...formItemLayout}
  2378. label="业务认证"
  2379. >
  2380. <span>{parseInt(this.state.businessAudit)?'已认证':'未认证'}</span>
  2381. </FormItem>
  2382. <FormItem className="half-item"
  2383. {...formItemLayout}
  2384. label="实名认证"
  2385. >
  2386. <span>{getAuditStatus(this.state.auditStatus)}</span>
  2387. </FormItem>
  2388. <FormItem className="half-item"
  2389. {...formItemLayout}
  2390. label="专家"
  2391. >
  2392. <span>{parseInt(this.state.expert)?'是':'否'}</span>
  2393. </FormItem>
  2394. <FormItem className="half-item"
  2395. {...formItemLayout}
  2396. label="明星"
  2397. >
  2398. <span>{parseInt(this.state.celebrity)?'是':'否'}</span>
  2399. </FormItem>
  2400. <FormItem className="half-item"
  2401. {...formItemLayout}
  2402. label="会员"
  2403. >
  2404. <span>{parseInt(this.state.isMember)?'是':'否'}</span>
  2405. </FormItem>
  2406. <FormItem className="half-item"
  2407. {...formItemLayout}
  2408. label="咨询师"
  2409. >
  2410. <span>{parseInt(this.state.consultant)?'是':'否'}</span>
  2411. </FormItem>
  2412. <FormItem className="half-item"
  2413. {...formItemLayout}
  2414. label="国际化"
  2415. >
  2416. <span>{parseInt(this.state.international)?'是':'否'}</span>
  2417. </FormItem>
  2418. <FormItem className="half-item"
  2419. {...formItemLayout}
  2420. label="性别"
  2421. >
  2422. <span>{this.state.sex}</span>
  2423. </FormItem>
  2424. <FormItem className="half-item"
  2425. {...formItemLayout}
  2426. label="出生日期"
  2427. >
  2428. <span>{this.state.yearMonth}</span>
  2429. </FormItem>
  2430. <FormItem className="half-item"
  2431. {...formItemLayout}
  2432. label="身份证号码"
  2433. >
  2434. <span>{theInformation.legalPersonIdCard}</span>
  2435. </FormItem>
  2436. <FormItem className="half-item"
  2437. {...formItemLayout}
  2438. label="主要联系人"
  2439. >
  2440. <span>{theInformation.contacts}</span>
  2441. </FormItem>
  2442. <FormItem className="half-item"
  2443. {...formItemLayout}
  2444. label="主要联系人号码"
  2445. >
  2446. <span>{theInformation.contactMobile}</span>
  2447. </FormItem>
  2448. <FormItem className="half-item"
  2449. {...formItemLayout}
  2450. label="省-市-区"
  2451. >
  2452. <span>{this.state.proviceCityArea}</span>
  2453. </FormItem>
  2454. <FormItem className="half-item"
  2455. {...formItemLayout}
  2456. label="投资机构"
  2457. >
  2458. <span>{this.state.investment?'是':'否'}</span>
  2459. </FormItem>
  2460. <FormItem className="half-item"
  2461. {...formItemLayout}
  2462. label="职称名字"
  2463. >
  2464. <span>{this.state.professionalTitle}</span>
  2465. </FormItem>
  2466. <FormItem className="half-item"
  2467. {...formItemLayout}
  2468. label="就业单位"
  2469. >
  2470. <span>{this.state.workUnit}</span>
  2471. </FormItem>
  2472. <FormItem className="half-item"
  2473. {...formItemLayout}
  2474. label="学历"
  2475. >
  2476. <span>{this.state.education}</span>
  2477. </FormItem>
  2478. <FormItem className="half-item"
  2479. {...formItemLayout}
  2480. label="毕业院校"
  2481. >
  2482. <span>{this.state.graduateSchool}</span>
  2483. </FormItem>
  2484. <FormItem className="half-item"
  2485. {...formItemLayout}
  2486. label="专业类别"
  2487. >
  2488. <span>{this.state.majorCategory}</span>
  2489. </FormItem>
  2490. <FormItem className="half-item"
  2491. {...formItemLayout}
  2492. label="职业资格"
  2493. >
  2494. <span>{this.state.qualification}</span>
  2495. </FormItem>
  2496. <FormItem className="half-item"
  2497. {...formItemLayout}
  2498. label="通信地址"
  2499. >
  2500. <span>{theInformation.postalAddress}</span>
  2501. </FormItem>
  2502. <FormItem className="half-item"
  2503. {...formItemLayout}
  2504. label="手机号码"
  2505. >
  2506. <span>{theInformation.modile}</span>
  2507. </FormItem>
  2508. <FormItem className="half-item"
  2509. {...formItemLayout}
  2510. label="客户传真"
  2511. >
  2512. <span>{theInformation.contactsFax}</span>
  2513. </FormItem>
  2514. <FormItem className="half-item"
  2515. {...formItemLayout}
  2516. label="固定电话"
  2517. >
  2518. <span>{theInformation.contactsFixedTel}</span>
  2519. </FormItem>
  2520. <FormItem className="half-item"
  2521. {...formItemLayout}
  2522. label="客户QQ"
  2523. >
  2524. <span>{theInformation.qq}</span>
  2525. </FormItem>
  2526. <FormItem className="half-item"
  2527. {...formItemLayout}
  2528. label="电子邮箱"
  2529. >
  2530. <span>{theInformation.email}</span>
  2531. </FormItem>
  2532. <FormItem className="half-item"
  2533. {...formItemLayout}
  2534. label="咨询费用"
  2535. >
  2536. <span>{theInformation.consultationPrice}</span>
  2537. </FormItem>
  2538. <div className='clearfix'>
  2539. <FormItem
  2540. labelCol={{ span: 4 }}
  2541. wrapperCol={{ span: 18 }}
  2542. label="客户简介" >
  2543. <span>{theInformation.introduction}</span>
  2544. </FormItem>
  2545. </div>
  2546. <div className="clearfix pictures">
  2547. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  2548. labelCol={{ span: 8 }}
  2549. wrapperCol={{ span: 10 }}
  2550. label="身份证正面" >
  2551. <div className="clearfix">
  2552. <Upload className="demandDetailShow-upload"
  2553. listType="picture-card"
  2554. fileList={this.state.orgCodeUrl}
  2555. onPreview={(file) => {
  2556. this.setState({
  2557. previewImage: file.url || file.thumbUrl,
  2558. previewVisible: true,
  2559. });
  2560. }} >
  2561. </Upload>
  2562. <Modal maskClosable={false} footer={null}
  2563. visible={this.state.previewVisible}
  2564. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2565. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  2566. </Modal>
  2567. </div>
  2568. </FormItem>
  2569. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  2570. labelCol={{ span: 8 }}
  2571. wrapperCol={{ span: 10 }}
  2572. label="身份证反面" >
  2573. <div className="clearfix">
  2574. <Upload className="demandDetailShow-upload"
  2575. listType="picture-card"
  2576. fileList={this.state.companyLogoUrl}
  2577. onPreview={(file) => {
  2578. this.setState({
  2579. previewImage: file.url || file.thumbUrl,
  2580. previewVisible: true,
  2581. });
  2582. }} >
  2583. </Upload>
  2584. <Modal maskClosable={false} footer={null}
  2585. visible={this.state.previewVisible}
  2586. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2587. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  2588. </Modal>
  2589. </div>
  2590. </FormItem>
  2591. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  2592. labelCol={{ span: 8 }}
  2593. wrapperCol={{ span: 10 }}
  2594. label="客户照片" >
  2595. <div className="clearfix">
  2596. <Upload className="demandDetailShow-upload"
  2597. listType="picture-card"
  2598. fileList={this.state.companyLogoUrls}
  2599. onPreview={(file) => {
  2600. this.setState({
  2601. previewImage: file.url || file.thumbUrl,
  2602. previewVisible: true,
  2603. });
  2604. }} >
  2605. </Upload>
  2606. <Modal maskClosable={false} footer={null}
  2607. visible={this.state.previewVisible}
  2608. onCancel={() => { this.setState({ previewVisible: false }) }}>
  2609. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrls || ''} />
  2610. </Modal>
  2611. </div>
  2612. </FormItem>
  2613. </div>
  2614. </div>
  2615. </Spin>
  2616. </Form>
  2617. }
  2618. </TabPane>
  2619. <TabPane tab="联系人信息" key="2">
  2620. <div className="clearfix">
  2621. <Spin spinning={this.state.loading}>
  2622. <Form horizontal id="demand-form" onSubmit={this.contactSave} >
  2623. <Table
  2624. pagination={false}
  2625. columns={this.state.ContactsLists}
  2626. dataSource={this.state.contactList}
  2627. />
  2628. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  2629. </div>
  2630. </Form>
  2631. </Spin>
  2632. </div>
  2633. </TabPane>
  2634. <TabPane tab="账户信息" key="3">
  2635. <div className="clearfix">
  2636. {adminData.isSuperAdmin?<Form horizontal id="demand-form" onSubmit={this.accountSave} >
  2637. <Spin spinning={this.state.loading} >
  2638. <FormItem className="half-item"
  2639. {...formItemLayout}
  2640. label="注册手机号" >
  2641. <Input value={this.state.mobile} disabled
  2642. onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  2643. </FormItem>
  2644. <FormItem className="half-item"
  2645. {...formItemLayout}
  2646. label="注册用户名" >
  2647. <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
  2648. </FormItem>
  2649. <FormItem className="half-item"
  2650. {...formItemLayout}
  2651. label="注册邮箱" >
  2652. <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
  2653. </FormItem>
  2654. <div className="clearfix">
  2655. <FormItem className="half-item"
  2656. {...formItemLayout}
  2657. label="客户来源" >
  2658. <span>{this.state.source}</span>
  2659. </FormItem>
  2660. <FormItem className="half-item"
  2661. {...formItemLayout}
  2662. label="客户类型" >
  2663. <span>{this.state.type}</span>
  2664. </FormItem>
  2665. <FormItem className="half-item"
  2666. {...formItemLayout}
  2667. label="创建时间" >
  2668. <span>{this.state.createTimes}</span>
  2669. </FormItem>
  2670. <FormItem className="half-item"
  2671. {...formItemLayout}
  2672. label="账户状态"
  2673. >
  2674. <Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  2675. {
  2676. statuslist.map(function (item) {
  2677. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2678. })
  2679. }
  2680. </Select>
  2681. </FormItem>
  2682. </div>
  2683. <div className="clearfix">
  2684. <FormItem className="half-item"
  2685. {...formItemLayout}
  2686. label="会员"
  2687. >
  2688. <Radio.Group value={this.state.isMember} onChange={(e) => {
  2689. this.setState({ isMember: e.target.value })
  2690. }}>
  2691. <Radio value={0}>否</Radio>
  2692. <Radio value={1}>是</Radio>
  2693. </Radio.Group>
  2694. </FormItem>
  2695. <FormItem className="half-item"
  2696. {...formItemLayout}
  2697. label="会员等级"
  2698. >
  2699. <Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  2700. {
  2701. lvl.map(function (item) {
  2702. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2703. })
  2704. }
  2705. </Select>
  2706. </FormItem>
  2707. <FormItem className="half-item"
  2708. {...formItemLayout}
  2709. label="会员状态"
  2710. >
  2711. <Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  2712. {
  2713. currentMember.map(function (item) {
  2714. return <Select.Option key={item.value} >{item.key}</Select.Option>
  2715. })
  2716. }
  2717. </Select>
  2718. </FormItem>
  2719. </div>
  2720. </Spin>
  2721. </Form> :
  2722. <Form horizontal id="demand-form" >
  2723. <Spin spinning={this.state.loading} >
  2724. <FormItem className="half-item"
  2725. {...formItemLayout}
  2726. label="注册手机号" >
  2727. <span>{this.state.mobile}</span>
  2728. </FormItem>
  2729. <FormItem className="half-item"
  2730. {...formItemLayout}
  2731. label="注册用户名" >
  2732. <span>{this.state.nickname}</span>
  2733. </FormItem>
  2734. <FormItem className="half-item"
  2735. {...formItemLayout}
  2736. label="注册邮箱" >
  2737. <span>{this.state.email}</span>
  2738. </FormItem>
  2739. <div className="clearfix">
  2740. <FormItem className="half-item"
  2741. {...formItemLayout}
  2742. label="客户来源" >
  2743. <span>{this.state.source}</span>
  2744. </FormItem>
  2745. <FormItem className="half-item"
  2746. {...formItemLayout}
  2747. label="客户类型" >
  2748. <span>{this.state.type}</span>
  2749. </FormItem>
  2750. <FormItem className="half-item"
  2751. {...formItemLayout}
  2752. label="创建时间" >
  2753. <span>{this.state.createTimes}</span>
  2754. </FormItem>
  2755. <FormItem className="half-item"
  2756. {...formItemLayout}
  2757. label="账户状态"
  2758. >
  2759. <span>{getStatuslist(this.state.status)}</span>
  2760. </FormItem>
  2761. </div>
  2762. <div className="clearfix">
  2763. <FormItem className="half-item"
  2764. {...formItemLayout}
  2765. label="专家"
  2766. >
  2767. <span>{this.state.isMembers?'是':'否'}</span>
  2768. </FormItem>
  2769. <FormItem className="half-item"
  2770. {...formItemLayout}
  2771. label="明星"
  2772. >
  2773. <span>{this.state.star?'是':'否'}</span>
  2774. </FormItem>
  2775. <FormItem className="half-item"
  2776. {...formItemLayout}
  2777. label="会员"
  2778. >
  2779. <span>{this.state.isMember?'是':'否'}</span>
  2780. </FormItem>
  2781. <FormItem className="half-item"
  2782. {...formItemLayout}
  2783. label="会员等级"
  2784. >
  2785. <span>{getLvl(this.state.lvl)}</span>
  2786. </FormItem>
  2787. <FormItem className="half-item"
  2788. {...formItemLayout}
  2789. label="会员状态"
  2790. >
  2791. <span>{getCurrentMember(this.state.currentMemberStatus)}</span>
  2792. </FormItem>
  2793. </div>
  2794. <FormItem className="half-item"
  2795. {...formItemLayout}
  2796. label="业务认证"
  2797. >
  2798. <span>{this.state.serviceCertification?'已认证':'未认证'}</span>
  2799. </FormItem>
  2800. <FormItem className="half-item"
  2801. {...formItemLayout}
  2802. label="实名认证"
  2803. >
  2804. <span>{getAuditStatus(this.state.userCertification)}</span>
  2805. </FormItem>
  2806. </Spin>
  2807. </Form>
  2808. }
  2809. </div>
  2810. </TabPane>
  2811. <TabPane tab="客户拜访" key="4">
  2812. <div className="clearfix">
  2813. <Spin spinning={this.state.loading}>
  2814. <Table
  2815. pagination={false}
  2816. columns={this.state.visitsList}
  2817. dataSource={this.state.visitArrList}
  2818. onRowClick={this.VisitRowClick}
  2819. />
  2820. </Spin>
  2821. </div>
  2822. </TabPane>
  2823. <TabPane tab="业务意向" key="5">
  2824. <div className="clearfix">
  2825. <Spin spinning={this.state.loading}>
  2826. <Table
  2827. pagination={this.state.paginationt}
  2828. columns={this.state.businessIntentionList}
  2829. dataSource={this.state.dataBusiness}
  2830. />
  2831. </Spin>
  2832. </div>
  2833. </TabPane>
  2834. <TabPane tab="业务订单" key="6">
  2835. </TabPane>
  2836. <TabPane tab="技术需求" key="7">
  2837. </TabPane>
  2838. <TabPane tab="技术成果" key="8">
  2839. </TabPane>
  2840. <TabPane tab="技术专家" key="9">
  2841. </TabPane>
  2842. </Tabs>
  2843. </Modal>
  2844. <Modal
  2845. className="customeDetails"
  2846. footer=''
  2847. title="拜访详情"
  2848. width='1000px'
  2849. visible={this.state.visitModul}
  2850. onOk={this.visitOk}
  2851. onCancel={this.visitCancel}
  2852. >
  2853. <Form horizontal id="demand-form" onSubmit={this.visitSubmit}>
  2854. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  2855. <div className="clearfix">
  2856. <FormItem className="half-item"
  2857. {...formItemLayout}
  2858. label="拜访方式" >
  2859. <Radio.Group value={this.state.contactType} onChange={(e) => {
  2860. this.setState({ contactType: e.target.value })
  2861. }}>
  2862. <Radio value={0}>外出</Radio>
  2863. <Radio value={1}>电话</Radio>
  2864. <Radio value={2}>QQ</Radio>
  2865. <Radio value={3}>微信</Radio>
  2866. <Radio value={4}>邮箱</Radio>
  2867. </Radio.Group>
  2868. </FormItem>
  2869. <FormItem className="half-item"
  2870. {...formItemLayout}
  2871. >
  2872. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  2873. </FormItem>
  2874. <div className="clearfix">
  2875. <FormItem className="half-item"
  2876. {...formItemLayout}
  2877. label="客户姓名"
  2878. >
  2879. <span>{this.state.identifyName}</span>
  2880. </FormItem>
  2881. <FormItem className="half-item"
  2882. {...formItemLayout}
  2883. label="拜访人"
  2884. >
  2885. <span>{this.state.adminName}</span>
  2886. </FormItem>
  2887. <FormItem className="half-item"
  2888. {...formItemLayout}
  2889. label="当前联系人"
  2890. >
  2891. <span>{this.state.contacts}</span>
  2892. </FormItem>
  2893. {this.state.contacts?<span></span>:
  2894. <FormItem className="half-item"
  2895. {...formItemLayout}
  2896. label="联系人"
  2897. >
  2898. <Select placeholder="选择联系人" style={{ width: 140 }}
  2899. value={this.state.lastName}
  2900. onChange={this.hundleName}>
  2901. {this.state.orderStatusOption}
  2902. </Select>
  2903. </FormItem>
  2904. }
  2905. <FormItem className="half-item"
  2906. {...formItemLayout}
  2907. label="拜访时间"
  2908. >
  2909. <span>{this.state.followTime}</span>
  2910. </FormItem>
  2911. <FormItem className="half-item"
  2912. {...formItemLayout}
  2913. label="联系电话"
  2914. >
  2915. <span>{this.state.nub}</span>
  2916. </FormItem>
  2917. </div>
  2918. <div className="clearfix">
  2919. <FormItem
  2920. labelCol={{ span: 4 }}
  2921. wrapperCol={{ span: 16 }}
  2922. label="拜访备注" >
  2923. <Input type="textarea" rows={4} value={this.state.result}
  2924. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  2925. </FormItem>
  2926. </div>
  2927. <div className="clearfix">
  2928. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  2929. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2930. <Spin spinning={this.state.loading}>
  2931. <Table
  2932. rowKey={record => record.id}
  2933. pagination={false}
  2934. columns={this.state.intentionList}
  2935. dataSource={this.state.data}
  2936. />
  2937. </Spin>
  2938. </div>
  2939. </div>
  2940. </div>
  2941. </Spin>:<Spin spinning={this.state.loading}>
  2942. <div className="clearfix">
  2943. <FormItem className="half-item"
  2944. {...formItemLayout}
  2945. label="拜访方式" >
  2946. <span>{getContactType(String(this.state.contactType))}</span>
  2947. </FormItem>
  2948. <div className="clearfix">
  2949. <FormItem className="half-item"
  2950. {...formItemLayout}
  2951. label="客户姓名"
  2952. >
  2953. <span>{this.state.identifyName}</span>
  2954. </FormItem>
  2955. <FormItem className="half-item"
  2956. {...formItemLayout}
  2957. label="拜访人"
  2958. >
  2959. <span>{this.state.adminName}</span>
  2960. </FormItem>
  2961. <FormItem className="half-item"
  2962. {...formItemLayout}
  2963. label="当前联系人"
  2964. >
  2965. <span>{this.state.contacts}</span>
  2966. </FormItem>
  2967. <FormItem className="half-item"
  2968. {...formItemLayout}
  2969. label="拜访时间"
  2970. >
  2971. <span>{this.state.followTime}</span>
  2972. </FormItem>
  2973. <FormItem className="half-item"
  2974. {...formItemLayout}
  2975. label="联系电话"
  2976. >
  2977. <span>{this.state.nub}</span>
  2978. </FormItem>
  2979. </div>
  2980. <div className="clearfix">
  2981. <FormItem
  2982. labelCol={{ span: 4 }}
  2983. wrapperCol={{ span: 16 }}
  2984. label="拜访备注" >
  2985. <span>{this.state.result}</span>
  2986. </FormItem>
  2987. </div>
  2988. <div className="clearfix">
  2989. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2990. <Spin spinning={this.state.loading}>
  2991. <Table
  2992. rowKey={record => record.id}
  2993. pagination={false}
  2994. columns={this.state.intentionList}
  2995. dataSource={this.state.data}
  2996. />
  2997. </Spin>
  2998. </div>
  2999. </div>
  3000. </div>
  3001. </Spin>}
  3002. </Form>
  3003. </Modal>
  3004. <Modal
  3005. footer=''
  3006. title="修改密码"
  3007. width='600px'
  3008. visible={this.state.passworldModul}
  3009. onOk={this.passworldOk}
  3010. onCancel={this.passworldCancel}
  3011. >
  3012. <div className="clearfix">
  3013. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3014. <Spin spinning={this.state.loading}>
  3015. <div className="clearfix">
  3016. <FormItem className="half-item"
  3017. {...formItemLayout}
  3018. label="原密码" >
  3019. <Input type="password" value={this.state.companyNamet1} onChange={(e) => { this.setState({ companyNamet1: e.target.value }); }} required="required" />
  3020. </FormItem>
  3021. </div>
  3022. <div className="clearfix">
  3023. <FormItem className="half-item"
  3024. {...formItemLayout}
  3025. label="新密码" >
  3026. <Input type="password" value={this.state.companyName1} onChange={(e) => { this.setState({ companyName1: e.target.value }); }} required="required" />
  3027. </FormItem>
  3028. </div>
  3029. <div className="clearfix">
  3030. <FormItem className="half-item"
  3031. {...formItemLayout}
  3032. label="确认密码" >
  3033. <Input type="password" value={this.state.companyNam1} onChange={(e) => { this.setState({ companyNam1: e.target.value }); }} required="required" />
  3034. </FormItem>
  3035. </div>
  3036. </Spin>
  3037. </Form>
  3038. </div>
  3039. </Modal>
  3040. <Modal
  3041. footer=''
  3042. width='800px'
  3043. title="新增联系人"
  3044. visible={this.state.addcontactModul}
  3045. onOk={this.addcontactModulOK}
  3046. onCancel={this.addcontactModulcancel}
  3047. >
  3048. <Form horizontal onSubmit={this.submitcontactman} id="demand-form">
  3049. <Spin spinning={this.state.loading}>
  3050. <Row>
  3051. <FormItem
  3052. labelCol={{ span: 3 }}
  3053. wrapperCol={{ span: 14 }}
  3054. label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
  3055. <Radio.Group value={this.state.newsex} onChange={(e) => {
  3056. this.setState({ newsex: e.target.value })
  3057. }}>
  3058. <Radio value='男'>男</Radio>
  3059. <Radio value='女'>女</Radio>
  3060. </Radio.Group>
  3061. </FormItem>
  3062. </Row>
  3063. <Row style={{ paddingLeft:'50px' }}>
  3064. <Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>
  3065. <Col span={8}>
  3066. <Input value={this.state.newname} required="required"
  3067. onChange={(e) => { this.setState({ newname: e.target.value }) }} />
  3068. </Col>
  3069. <Col span={2} style={{ marginLeft: '50px' }}><span style={{color:'red'}}>*</span>手机:</Col>
  3070. <Col span={8}>
  3071. <Input value={this.state.newmobile} required="required"
  3072. onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />
  3073. </Col>
  3074. </Row>
  3075. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3076. <Col span={2}>微信:</Col>
  3077. <Col span={8}>
  3078. <Input value={this.state.newwechat}
  3079. onChange={(e) => { this.setState({ newwechat: e.target.value }) }} />
  3080. </Col>
  3081. <Col span={2} style={{ marginLeft: '50px' }}>Q Q:</Col>
  3082. <Col span={8}>
  3083. <Input value={this.state.newqq}
  3084. onChange={(e) => { this.setState({ newqq: e.target.value }) }} />
  3085. </Col>
  3086. </Row>
  3087. <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
  3088. <Col span={2}>部门:</Col>
  3089. <Col span={8}>
  3090. <Input value={this.state.newdepatrment}
  3091. onChange={(e) => { this.setState({ newdepatrment: e.target.value }) }} />
  3092. </Col>
  3093. <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
  3094. <Col span={8}>
  3095. <Input value={this.state.newposition}
  3096. onChange={(e) => { this.setState({ newposition: e.target.value }) }} />
  3097. </Col>
  3098. </Row>
  3099. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  3100. <Col span={2}>邮箱:</Col>
  3101. <Col span={8}>
  3102. <Input value={this.state.newemail}
  3103. onChange={(e) => { this.setState({ newemail: e.target.value }) }} />
  3104. </Col>
  3105. </Row>
  3106. <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
  3107. </Row>
  3108. </Spin>
  3109. </Form>
  3110. </Modal>
  3111. <Modal
  3112. footer=''
  3113. title="业务意向详情"
  3114. width='1000px'
  3115. visible={this.state.businessModul}
  3116. onOk={this.businessIntentionOk}
  3117. onCancel={this.businessIntentionCancel}
  3118. >
  3119. <div className="clearfix">
  3120. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3121. <Spin spinning={this.state.loading}>
  3122. <div className="clearfix">
  3123. <FormItem className="half-item"
  3124. {...formItemLayout}
  3125. label="意向业务名称" >
  3126. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  3127. </FormItem>
  3128. <FormItem className="half-item"
  3129. {...formItemLayout}
  3130. label="意向时间" >
  3131. <span>{this.state.createTime}</span>
  3132. </FormItem>
  3133. <FormItem className="half-item"
  3134. {...formItemLayout}
  3135. label="客户姓名" >
  3136. <span>{this.state.identifyName}</span>
  3137. </FormItem>
  3138. <FormItem className="half-item"
  3139. {...formItemLayout}
  3140. label="营销员" >
  3141. <span>{this.state.adminName}</span>
  3142. </FormItem>
  3143. <FormItem className="half-item"
  3144. {...formItemLayout}
  3145. label="意向业务进度" >
  3146. <span>{getfllowSituation(this.state.followSituation)}</span>
  3147. </FormItem>
  3148. <FormItem className="half-item"
  3149. {...formItemLayout}
  3150. label="业务客户状态" >
  3151. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  3152. </FormItem>
  3153. </div>
  3154. <div className="clearfix">
  3155. <FormItem className="half-item"
  3156. {...formItemLayout}
  3157. label="业务意向说明" >
  3158. <span>{this.state.remarks}</span>
  3159. </FormItem>
  3160. </div>
  3161. <div className="clearfix">
  3162. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  3163. <div className="clearfix">
  3164. <Spin spinning={this.state.loading}>
  3165. <Table
  3166. pagination={this.state.paginations}
  3167. columns={this.state.businessFollowList}
  3168. dataSource={this.state.visitArrList}
  3169. />
  3170. </Spin>
  3171. </div>
  3172. </div>
  3173. </Spin>
  3174. </Form>
  3175. </div>
  3176. </Modal>
  3177. <Modal
  3178. footer=''
  3179. title="业务跟进详情"
  3180. width='600px'
  3181. visible={this.state.businessFollowModul}
  3182. onOk={this.businessFollowOk}
  3183. onCancel={this.businessFollowCancel}
  3184. >
  3185. <div className="clearfix">
  3186. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  3187. <Spin spinning={this.state.loading}>
  3188. <div className="clearfix">
  3189. <FormItem className="half-item"
  3190. {...formItemLayout}
  3191. label="意向业务名称" >
  3192. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  3193. </FormItem>
  3194. <FormItem className="half-item"
  3195. {...formItemLayout}
  3196. label="意向时间" >
  3197. <span>{this.state.createTimes}</span>
  3198. </FormItem>
  3199. <FormItem className="half-item"
  3200. {...formItemLayout}
  3201. label="客户姓名" >
  3202. <span>{this.state.identifyNames}</span>
  3203. </FormItem>
  3204. <FormItem className="half-item"
  3205. {...formItemLayout}
  3206. label="营销员" >
  3207. <span>{this.state.adminNames}</span>
  3208. </FormItem>
  3209. <FormItem className="half-item"
  3210. {...formItemLayout}
  3211. label="意向业务进度" >
  3212. <span>{getfllowSituation(this.state.followSituations)}</span>
  3213. </FormItem>
  3214. <FormItem className="half-item"
  3215. {...formItemLayout}
  3216. label="业务客户状态" >
  3217. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  3218. </FormItem>
  3219. </div>
  3220. <div className="clearfix">
  3221. <FormItem className="half-item"
  3222. {...formItemLayout}
  3223. label="业务意向说明" >
  3224. <span>{this.state.remarkss}</span>
  3225. </FormItem>
  3226. </div>
  3227. <div className="clearfix">
  3228. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  3229. <FormItem className="half-item"
  3230. {...formItemLayout}
  3231. label="拜访方式" >
  3232. <span>{getContactType(this.state.contactTypes)}</span>
  3233. </FormItem>
  3234. <FormItem className="half-item"
  3235. {...formItemLayout}
  3236. label="联系人" >
  3237. <span>{this.state.contactss}</span>
  3238. </FormItem>
  3239. <FormItem className="half-item"
  3240. {...formItemLayout}
  3241. label="联系电话" >
  3242. <span>{this.state.contactMobiles}</span>
  3243. </FormItem>
  3244. <FormItem className="half-item"
  3245. {...formItemLayout}
  3246. label="拜访时间" >
  3247. <span>{this.state.followTimes}</span>
  3248. </FormItem>
  3249. <FormItem className="half-item"
  3250. {...formItemLayout}
  3251. label="拜访人" >
  3252. <span>{this.state.adminNames}</span>
  3253. </FormItem>
  3254. <div className="clearfix">
  3255. <FormItem className="half-item"
  3256. {...formItemLayout}
  3257. label="拜访备注" >
  3258. <span>{this.state.results}</span>
  3259. </FormItem>
  3260. </div>
  3261. </div>
  3262. </Spin>
  3263. </Form>
  3264. </div>
  3265. </Modal>
  3266. </div >
  3267. );
  3268. }
  3269. }));
  3270. //图片组件
  3271. const PicturesWalls = React.createClass({
  3272. getInitialState() {
  3273. return {
  3274. previewVisible: false,
  3275. previewImage: '',
  3276. fileList: [],
  3277. }
  3278. },
  3279. handleCancel() {
  3280. this.setState({ previewVisible: false })
  3281. },
  3282. handlePreview(file) {
  3283. this.setState({
  3284. previewImage: file.url || file.thumbUrl,
  3285. previewVisible: true,
  3286. });
  3287. },
  3288. handleChange(info) {
  3289. let fileList = info.fileList;
  3290. this.setState({ fileList });
  3291. this.props.fileList(fileList);
  3292. },
  3293. componentWillReceiveProps(nextProps) {
  3294. this.state.fileList = nextProps.pictureUrl;
  3295. },
  3296. render() {
  3297. const { previewVisible, previewImage, fileList } = this.state;
  3298. const uploadButton = (
  3299. <div>
  3300. <Icon type="plus" />
  3301. <div className="ant-upload-text">点击上传</div>
  3302. </div>
  3303. );
  3304. return(
  3305. <div style={{display:"inline-block"}}>
  3306. <Upload
  3307. action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
  3308. data={{ 'sign': '' }}
  3309. listType="picture-card"
  3310. fileList={fileList}
  3311. onPreview={this.handlePreview}
  3312. onChange={this.handleChange} >
  3313. {fileList.length >= 1 ? null : uploadButton}
  3314. </Upload>
  3315. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  3316. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  3317. </Modal>
  3318. </div>
  3319. );
  3320. }
  3321. });
  3322. const PublicCustomer = Form.create()(React.createClass({
  3323. loadData(pageNo) {
  3324. this.state.data = [];
  3325. this.setState({
  3326. loading: true
  3327. });
  3328. $.ajax({
  3329. method: "post",
  3330. dataType: "json",
  3331. crossDomain: false,
  3332. url: globalConfig.context + '/api/admin/customer/listAllOrganizationCustomer',
  3333. data: {
  3334. pageNo: pageNo || 1,
  3335. pageSize: this.state.pagination.pageSize,
  3336. auditStatus:1,
  3337. type: this.state.typeSearch, //名称1
  3338. name: this.state.nameSearch,
  3339. shareType: this.state.shareTypeSearch,
  3340. province: (this.state.addressSearch).length ? this.state.addressSearch[0] : this.state.provinceSearch,
  3341. city: (this.state.addressSearch).length ? this.state.addressSearch[1] : '',
  3342. //area: this.state.addressSearch?this.state.addressSearch[2].value:'',
  3343. status: this.state.statusSearch,
  3344. industry: this.state.industrySearch,
  3345. businessAudit: this.state.serviceCertificationSearch,
  3346. currentMemberStatus: this.state.currentMemberStatusSearch,
  3347. international: this.state.internationalSearch,
  3348. lvl: this.state.lvlSearch,
  3349. international: this.state.internationalSearch,
  3350. societyTag: this.state.societyTagSearch,
  3351. listed: this.state.listedSearch, //是否上市
  3352. highTechZone: this.state.highTechZoneSearch, //是否高新
  3353. startDate: this.state.releaseDate[0],
  3354. endDate: this.state.releaseDate[1],
  3355. },
  3356. success: function(data) {
  3357. let theArr = [];
  3358. if(data.error.length || data.data.list == "") {
  3359. if(data.error && data.error.length) {
  3360. message.warning(data.error[0].message);
  3361. };
  3362. } else {
  3363. for(let i = 0; i < data.data.list.length; i++) {
  3364. let thisdata = data.data.list[i];
  3365. theArr.push({
  3366. key: i,
  3367. id: thisdata.uid,
  3368. type: thisdata.type,
  3369. name: thisdata.name,
  3370. status: thisdata.status,
  3371. contacts: thisdata.contacts,
  3372. contactMobile: thisdata.contactMobile,
  3373. industry: thisdata.industry,
  3374. createTime: thisdata.createTime,
  3375. businessAudit: thisdata.businessAudit,
  3376. auditStatus: thisdata.auditStatus,
  3377. lvl: thisdata.lvl,
  3378. shareType: thisdata.shareType,
  3379. societyTag: thisdata.societyTag,
  3380. currentMemberStatus: thisdata.currentMemberStatus,
  3381. international: thisdata.international,
  3382. listed: thisdata.listed,
  3383. adminName: thisdata.adminName,
  3384. highTechZone: thisdata.highTechZone,
  3385. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  3386. });
  3387. };
  3388. this.state.pagination.current = data.data.pageNo;
  3389. this.state.pagination.total = data.data.totalCount;
  3390. };
  3391. if(!data.data.list.length){
  3392. this.state.pagination.current=0;
  3393. this.state.pagination.total=0;
  3394. }
  3395. this.setState({
  3396. dataSource: theArr,
  3397. pagination: this.state.pagination,
  3398. selectedRowKeys:[]
  3399. });
  3400. }.bind(this),
  3401. }).always(function() {
  3402. this.setState({
  3403. loading: false
  3404. });
  3405. }.bind(this));
  3406. },
  3407. //点击出现函数
  3408. setModal2VisibleOk(e) {
  3409. this.setState({
  3410. modal2Visible: true
  3411. });
  3412. },
  3413. //点击消失函数
  3414. setModal2Visiblecancel(e) {
  3415. this.setState({
  3416. modal2Visible: false
  3417. });
  3418. },
  3419. getPictureUrl(e) {
  3420. this.setState({ pictureUrl: e });
  3421. },
  3422. handleOk(e) {
  3423. this.setState({
  3424. visible: false,
  3425. });
  3426. },
  3427. handleCancel(e) {
  3428. this.setState({
  3429. visible: false,
  3430. });
  3431. },
  3432. getInitialState() {
  3433. return {
  3434. addressSearch: [],
  3435. orgCodeUrl: [],
  3436. companyLogoUrl: [],
  3437. visible: false,
  3438. searchMore: true,
  3439. releaseDate: [],
  3440. releaseDate: [],
  3441. selectedRowKeys: [],
  3442. selectedRowKey: [],
  3443. selectedRows: [],
  3444. loading: false,
  3445. pagination: {
  3446. defaultCurrent: 1,
  3447. defaultPageSize: 10,
  3448. showQuickJumper: true,
  3449. pageSize: 10,
  3450. onChange: function(page) {
  3451. this.loadData(page);
  3452. }.bind(this),
  3453. showTotal: function(total) {
  3454. return '共' + total + '条数据';
  3455. }
  3456. },
  3457. paginations: {
  3458. defaultCurrent: 1,
  3459. defaultPageSize: 10,
  3460. showQuickJumper: true,
  3461. pageSize: 10,
  3462. onChange: function(page) {
  3463. this.loadVisit(page);
  3464. }.bind(this),
  3465. showTotal: function(total) {
  3466. return '共' + total + '条数据';
  3467. }
  3468. },
  3469. paginationsy: {
  3470. defaultCurrent: 1,
  3471. defaultPageSize: 10,
  3472. showQuickJumper: true,
  3473. pageSize: 10,
  3474. onChange: function(page) {
  3475. this.loadBfVisit(page, false);
  3476. }.bind(this),
  3477. showTotal: function(total) {
  3478. return '共' + total + '条数据';
  3479. }
  3480. },
  3481. paginationt: {
  3482. defaultCurrent: 1,
  3483. defaultPageSize: 10,
  3484. showQuickJumper: true,
  3485. pageSize: 10,
  3486. onChange: function(page) {
  3487. this.BusinessList(page, false);
  3488. }.bind(this),
  3489. showTotal: function(total) {
  3490. return '共' + total + '条数据';
  3491. }
  3492. },
  3493. //业务意向列表
  3494. intentionList: [{
  3495. title: '业务名称',
  3496. dataIndex: 'businessGlossoryId',
  3497. key: 'businessGlossoryId',
  3498. render: (text, record, index) => {
  3499. return adminData.isSuperAdmin ? <Select placeholder="选择业务名称" disabled={record.id?true:false} value={record.businessGlossoryId} onChange={(e) => { record.businessGlossoryId = e; this.setState({ data: this.state.data }); }}>
  3500. {
  3501. intentionalService.map(function (item) {
  3502. return <Select.Option key={item.value} >{item.key}</Select.Option>
  3503. })
  3504. }
  3505. </Select> : <span>{getCompanyIntention(text)}</span>
  3506. }
  3507. },
  3508. {
  3509. title: '最新进度',
  3510. dataIndex: 'followSituation',
  3511. key: 'followSituation',
  3512. render: (text, record, index) => {
  3513. return adminData.isSuperAdmin ? <Select placeholder="选择最新进度" value={record.followSituation} onChange={(e) => { record.followSituation = e; this.setState({ data: this.state.data }); }}>
  3514. {
  3515. newFollow.map(function (item) {
  3516. return <Select.Option key={item.value} >{item.key}</Select.Option>
  3517. })
  3518. }
  3519. </Select> : <span>{getfllowSituation(text)}</span>
  3520. }
  3521. }, {
  3522. title: '最新状态',
  3523. dataIndex: 'customerStatus',
  3524. key: 'customerStatus',
  3525. render: (text, record, index) => {
  3526. return adminData.isSuperAdmin ? <Select value={record.customerStatus} placeholder="选择最新状态" onChange={(e) => { record.customerStatus = e; this.setState({ data: this.state.data }); }}>
  3527. {
  3528. customerStatus.map(function (item) {
  3529. return <Select.Option key={item.value} >{item.key}</Select.Option>
  3530. })
  3531. }
  3532. </Select> : <span>{getcustomerStatue(text)}</span>
  3533. }
  3534. }, {
  3535. title: '跟进说明',
  3536. dataIndex: 'remarks',
  3537. key: 'remarks',
  3538. render: (text, record, index) => {
  3539. return adminData.isSuperAdmin ? <Input value={record.remarks} placeholder="跟进说明"
  3540. onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
  3541. style={{width:'120px'}}/> : <span>{text}</span>
  3542. }
  3543. }
  3544. ],
  3545. businessIntentionList: [{
  3546. title: '意向时间',
  3547. dataIndex: 'createTime',
  3548. key: 'createTime'
  3549. }, {
  3550. title: '客户名称',
  3551. dataIndex: 'identifyName',
  3552. key: 'identifyName'
  3553. }, {
  3554. title: '业务名',
  3555. dataIndex: 'businessName',
  3556. key: 'businessName'
  3557. }, {
  3558. title: '营销员',
  3559. dataIndex: 'adminName',
  3560. key: 'adminName'
  3561. }, {
  3562. title: '业务意向进度',
  3563. dataIndex: 'followSituation',
  3564. key: 'followSituation',
  3565. render: text => { return getfllowSituation(text) }
  3566. }, {
  3567. title: '客户状态',
  3568. dataIndex: 'customerStatus',
  3569. key: 'customerStatus',
  3570. render: text => { return getcustomerStatue(text) }
  3571. }, {
  3572. title: '操作',
  3573. dataIndex: 'ooo',
  3574. key: 'ooo',
  3575. render: (text, record) => { return(<Button onClick={(e)=>{this.businessIntentionDetails(record)}}>查看</Button>) }
  3576. }],
  3577. businessFollowList: [{
  3578. title: '跟进时间',
  3579. dataIndex: 'followTime',
  3580. key: 'followTime',
  3581. }, {
  3582. title: '营销员',
  3583. dataIndex: 'adminName',
  3584. key: 'adminName',
  3585. }, {
  3586. title: '业务意向进度',
  3587. dataIndex: 'followSituation',
  3588. key: 'followSituation',
  3589. render: text => { return getfllowSituation(text) }
  3590. }, {
  3591. title: '客户状态',
  3592. dataIndex: 'customerStatus',
  3593. key: 'customerStatus',
  3594. render: text => { return getcustomerStatue(text) }
  3595. },
  3596. {
  3597. title: '拜访方式',
  3598. dataIndex: 'contactType',
  3599. key: 'contactType',
  3600. render: text => { return getContactType(text) }
  3601. }, {
  3602. title: '联系人',
  3603. dataIndex: 'contacts',
  3604. key: 'contacts',
  3605. },
  3606. {
  3607. title: '联系电话',
  3608. dataIndex: 'contactMobile',
  3609. key: 'contactMobile',
  3610. }, {
  3611. title: '操作',
  3612. dataIndex: 'ooo',
  3613. key: 'ooo',
  3614. render: (text, record) => { return(<Button onClick={(e)=>{this.businessFollowDetails(record)}}>查看</Button>) }
  3615. }
  3616. ],
  3617. visitsList: [{
  3618. title: '拜访时间',
  3619. dataIndex: 'followTime',
  3620. key: 'followTime'
  3621. }, {
  3622. title: '客户名称',
  3623. dataIndex: 'identifyName',
  3624. key: 'identifyName'
  3625. }, {
  3626. title: '拜访方式',
  3627. dataIndex: 'contactType',
  3628. key: 'contactType',
  3629. render: text => { return getContactType(text) }
  3630. }, {
  3631. title: '联系人',
  3632. dataIndex: 'contacts',
  3633. key: 'contacts'
  3634. }, {
  3635. title: '联系电话',
  3636. dataIndex: 'contactMobile',
  3637. key: 'contactMobile'
  3638. }, {
  3639. title: '拜访人',
  3640. dataIndex: 'adminName',
  3641. key: 'adminName'
  3642. }, {
  3643. title: '拜访说明',
  3644. dataIndex: 'result',
  3645. key: 'result'
  3646. }],
  3647. ContactsLists: [{
  3648. title: '姓名',
  3649. dataIndex: 'name',
  3650. key: 'name',
  3651. render: (text, record, index) => {
  3652. return adminData.isSuperAdmin ? <Input value={record.name} placeholder="姓名" key={record.id} required="required"
  3653. onChange={(e) => { record.name = e.target.value;
  3654. this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  3655. }
  3656. }, {
  3657. title: '联系人部门',
  3658. dataIndex: 'depatrment',
  3659. key: 'depatrment',
  3660. render: (text, record, index) => {
  3661. return adminData.isSuperAdmin ? <Input value={record.depatrment} placeholder="联系人部门" key={record.id}
  3662. onChange={(e) => { record.depatrment = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  3663. }
  3664. }, {
  3665. title: '联系人职务',
  3666. dataIndex: 'position',
  3667. key: 'position',
  3668. render: (text, record, index) => {
  3669. return adminData.isSuperAdmin ? <Input value={record.position} placeholder="联系人职务" key={record.id}
  3670. onChange={(e) => { record.position = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  3671. }
  3672. }, {
  3673. title: '手机号码',
  3674. dataIndex: 'mobile',
  3675. key: 'mobile',
  3676. render: (text, record, index) => {
  3677. return adminData.isSuperAdmin ? <Input value={record.mobile} placeholder="手机号码" key={record.id} required="required"
  3678. onChange={(e) => { record.mobile = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  3679. }
  3680. }, {
  3681. title: '微信',
  3682. dataIndex: 'wechat',
  3683. key: 'wechat',
  3684. render: (text, record, index) => {
  3685. return adminData.isSuperAdmin ? <Input value={record.wechat} placeholder="微信" key={record.id}
  3686. onChange={(e) => { record.wechat = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  3687. }
  3688. }, {
  3689. title: '联系人QQ',
  3690. dataIndex: 'qq',
  3691. key: 'qq',
  3692. render: (text, record, index) => {
  3693. return adminData.isSuperAdmin ? <Input value={record.qq} placeholder="联系人QQ" key={record.id}
  3694. onChange={(e) => { record.qq = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  3695. }
  3696. }, {
  3697. title: '电子邮箱',
  3698. dataIndex: 'email',
  3699. key: 'email',
  3700. render: (text, record, index) => {
  3701. return adminData.isSuperAdmin ? <Input value={record.email} placeholder="电子邮箱" key={record.id}
  3702. onChange={(e) => { record.email = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  3703. }
  3704. }
  3705. ],
  3706. columnsman: [{
  3707. title: '姓名',
  3708. dataIndex: 'name',
  3709. key: 'name'
  3710. }, {
  3711. title: '手机号码',
  3712. dataIndex: 'mobile',
  3713. key: 'mobile'
  3714. }],
  3715. columns: [{
  3716. title: '客户名称',
  3717. dataIndex: 'name',
  3718. key: 'name',
  3719. }, {
  3720. title: '地区',
  3721. dataIndex: 'locationProvince',
  3722. key: 'locationProvince',
  3723. },
  3724. {
  3725. title: '行业',
  3726. dataIndex: 'industry',
  3727. key: 'industry',
  3728. },
  3729. {
  3730. title: '社会性质',
  3731. dataIndex: 'societyTag',
  3732. key: 'societyTag',
  3733. render: text => { return getSocialAttribute(text) }
  3734. },
  3735. {
  3736. title: '公共客户',
  3737. dataIndex: 'shareType',
  3738. key: 'shareType',
  3739. render: (text, record) => { return record.shareType == '1' ? <span>公共客户</span> : <span>个人客户</span> }
  3740. },
  3741. {
  3742. title: '创建时间',
  3743. dataIndex: 'createTime',
  3744. key: 'createTime',
  3745. },
  3746. {
  3747. title: '所属人',
  3748. dataIndex: 'adminName',
  3749. key: 'adminName',
  3750. },
  3751. {
  3752. title: '业务认证',
  3753. dataIndex: 'businessAudit',
  3754. key: 'businessAudit',
  3755. render: text => { return getCertification(text) }
  3756. },
  3757. {
  3758. title: '实名认证',
  3759. dataIndex: 'auditStatus',
  3760. key: 'auditStatus',
  3761. render: text => { return getAuditStatus(text) }
  3762. },
  3763. {
  3764. title: '是否高新',
  3765. dataIndex: 'highTechZone',
  3766. key: 'highTechZone',
  3767. render: text => { return getWhether(text) }
  3768. },
  3769. {
  3770. title: '是否上市',
  3771. dataIndex: 'listed',
  3772. key: 'listed',
  3773. render: text => { return getWhether(text) }
  3774. },
  3775. {
  3776. title: '是否国际',
  3777. dataIndex: 'international',
  3778. key: 'international',
  3779. render: text => { return getWhether(text) }
  3780. },
  3781. {
  3782. title: '会员等级',
  3783. dataIndex: 'lvl',
  3784. key: 'lvl',
  3785. render: text => { return getLvl(text) }
  3786. },
  3787. {
  3788. title: '会员状态',
  3789. dataIndex: 'currentMemberStatus',
  3790. key: 'currentMemberStatus',
  3791. render: text => { return getCurrentMember(text) }
  3792. }
  3793. ],
  3794. data: [],
  3795. dataman: [],
  3796. dataSource: [],
  3797. visitArrList: [],
  3798. searchTime: [, ]
  3799. };
  3800. },
  3801. //更多操作
  3802. ModalOperation() {
  3803. this.setState({
  3804. visible: true,
  3805. });
  3806. },
  3807. //tab2获取联系人详情
  3808. contactLists(ids) {
  3809. this.setState({
  3810. loading: true
  3811. });
  3812. $.ajax({
  3813. method: "get",
  3814. dataType: "json",
  3815. crossDomain: false,
  3816. url: globalConfig.context + '/api/admin/customer/findCustomerContacts',
  3817. data: {
  3818. uid: ids, //名称1
  3819. },
  3820. success: function(data) {
  3821. let theArr = [];
  3822. if(data.error.length || data.data.list == "") {
  3823. if(data.error && data.error.length) {
  3824. message.warning(data.error[0].message);
  3825. };
  3826. } else {
  3827. for(let i = 0; i < data.data.length; i++) {
  3828. let thisdata = data.data[i];
  3829. theArr.push({
  3830. id: thisdata.id,
  3831. name: thisdata.name,
  3832. mobile: thisdata.mobile,
  3833. email: thisdata.email,
  3834. qq: thisdata.qq,
  3835. wechat: thisdata.wechat,
  3836. depatrment: thisdata.depatrment,
  3837. position: thisdata.position,
  3838. });
  3839. };
  3840. };
  3841. this.setState({
  3842. contactList: theArr,
  3843. });
  3844. }.bind(this),
  3845. }).always(function() {
  3846. this.setState({
  3847. loading: false
  3848. });
  3849. }.bind(this));
  3850. },
  3851. //刷新新增拜访记录刷新
  3852. deletelist(e) {
  3853. $.ajax({
  3854. method: "get",
  3855. dataType: "json",
  3856. url: globalConfig.context + '/api/admin/customer/toAddFollow',
  3857. data: {
  3858. uid: e,
  3859. },
  3860. success: function(data) {
  3861. let listArr = [];
  3862. let thedata = data.data;
  3863. if(!thedata) {
  3864. if(data.error && data.error.length) {
  3865. message.warning(data.error[0].message);
  3866. };
  3867. thedata = {};
  3868. };
  3869. for(let i = 0; i < data.data.userBusinessList.length; i++) {
  3870. let thisdata = data.data.userBusinessList[i];
  3871. listArr.push({
  3872. id: thisdata.id,
  3873. businessGlossoryId: String(thisdata.businessGlossoryId),
  3874. followSituation: String(thisdata.followSituation),
  3875. customerStatus: String(thisdata.customerStatus),
  3876. remarks: thisdata.remarks,
  3877. });
  3878. };
  3879. this.setState({
  3880. contacts: thedata.contacts,
  3881. uid: thedata.uid,
  3882. data: listArr,
  3883. identifyName: thedata.identifyName,
  3884. followTime: thedata.followTime,
  3885. businessGlossoryId: thedata.businessGlossoryId,
  3886. followSituation: thedata.followSituation,
  3887. customerStatus: thedata.customerStatus,
  3888. remarks: thedata.remarks,
  3889. });
  3890. }.bind(this),
  3891. }).always(function() {
  3892. this.setState({
  3893. loading: false
  3894. });
  3895. }.bind(this));
  3896. },
  3897. //进入新增拜访记录
  3898. visit(e) {
  3899. this.state.keys = true;
  3900. this.getNewWoman(e.id);
  3901. this.deletelist(e.id)
  3902. this.setState({
  3903. result: '',
  3904. contactType: undefined,
  3905. visitModul: true,
  3906. loading: true
  3907. });
  3908. },
  3909. //拜访记录删除
  3910. visitDelet(e) {
  3911. this.setState({
  3912. loading: true
  3913. });
  3914. $.ajax({
  3915. method: "get",
  3916. dataType: "json",
  3917. crossDomain: false,
  3918. url: globalConfig.context + "/api/admin/customer/deleteFollow",
  3919. data: {
  3920. followId: e.followId, //删除的ID
  3921. }
  3922. }).done(function(data) {
  3923. if(!data.error.length) {
  3924. message.success('删除成功!');
  3925. this.setState({
  3926. loading: false,
  3927. });
  3928. } else {
  3929. message.warning(data.error[0].message);
  3930. };
  3931. this.loadVisit();
  3932. }.bind(this));
  3933. },
  3934. //进入修改拜访记录
  3935. visitModify(e) {
  3936. this.setState({
  3937. visitModul: true,
  3938. loading: true
  3939. });
  3940. $.ajax({
  3941. method: "get",
  3942. dataType: "json",
  3943. url: globalConfig.context + '/api/admin/customer/toUpdateFollow',
  3944. data: {
  3945. followId: e,
  3946. },
  3947. success: function(data) {
  3948. let theArr = [];
  3949. let thedata = data.data;
  3950. if(!thedata) {
  3951. if(data.error && data.error.length) {
  3952. message.warning(data.error[0].message);
  3953. };
  3954. thedata = {};
  3955. };
  3956. for(let i = 0; i < data.data.userBusinessList.length; i++) {
  3957. let thisdata = data.data.userBusinessList[i];
  3958. theArr.push({
  3959. id: thisdata.id,
  3960. businessGlossoryId: String(thisdata.businessGlossoryId),
  3961. followSituation: String(thisdata.followSituation),
  3962. customerStatus: String(thisdata.customerStatus),
  3963. remarks: thisdata.remarks,
  3964. });
  3965. };
  3966. this.setState({
  3967. followIds: thedata.followId,
  3968. contacts: thedata.contacts,
  3969. uid: thedata.uid,
  3970. data: theArr,
  3971. nub: thedata.contactMobile,
  3972. result: thedata.result,
  3973. contactType: parseInt(thedata.contactType),
  3974. identifyName: thedata.identifyName,
  3975. followTime: thedata.followTime,
  3976. businessGlossoryId: thedata.businessGlossoryId,
  3977. followSituation: thedata.followSituation,
  3978. customerStatus: thedata.customerStatus,
  3979. adminName: thedata.adminName,
  3980. });
  3981. }.bind(this),
  3982. }).always(function() {
  3983. this.setState({
  3984. loading: false
  3985. });
  3986. }.bind(this));
  3987. },
  3988. //审核实名认证通过功能
  3989. delectRow() {
  3990. let deletedIds;
  3991. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  3992. let rowItem = this.state.selectedRows[idx];
  3993. if(rowItem.id) {
  3994. deletedIds = rowItem.id;
  3995. };
  3996. };
  3997. this.setState({
  3998. selectedRowKeys: [],
  3999. });
  4000. $.ajax({
  4001. method: "get",
  4002. dataType: "json",
  4003. crossDomain: false,
  4004. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  4005. data: {
  4006. uid: deletedIds,
  4007. },
  4008. success: function(data) {
  4009. let thisData = data.data;
  4010. console.log(thisData);
  4011. $.ajax({
  4012. method: "post",
  4013. dataType: "json",
  4014. crossDomain: false,
  4015. url: globalConfig.context + "/api/admin/customer/updatePersonalCustomer",
  4016. data: {
  4017. uid: deletedIds, //审核通过的ID
  4018. id:thisData.id,
  4019. auditStatus:5,
  4020. }
  4021. }).done(function(data) {
  4022. if(!data.error.length) {
  4023. message.success('已成功通过实名认证申请!');
  4024. this.setState({
  4025. loading: false,
  4026. });
  4027. } else {
  4028. message.warning(data.error[0].message);
  4029. };
  4030. this.loadData();
  4031. }.bind(this));
  4032. }.bind(this),
  4033. })
  4034. },
  4035. //审核专家不通过功能
  4036. delectRows() {
  4037. let deletedIds;
  4038. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  4039. let rowItem = this.state.selectedRows[idx];
  4040. if(rowItem.id) {
  4041. deletedIds = rowItem.id;
  4042. };
  4043. };
  4044. this.setState({
  4045. selectedRowKeys: [],
  4046. });
  4047. $.ajax({
  4048. method: "get",
  4049. dataType: "json",
  4050. crossDomain: false,
  4051. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  4052. data: {
  4053. uid: deletedIds,
  4054. },
  4055. success: function(data) {
  4056. let thisData = data.data;
  4057. console.log(thisData);
  4058. $.ajax({
  4059. method: "post",
  4060. dataType: "json",
  4061. crossDomain: false,
  4062. url: globalConfig.context + "/api/admin/customer/updatePersonalCustomer",
  4063. data: {
  4064. uid: deletedIds, //审核通过的ID
  4065. id:thisData.id,
  4066. auditStatus:4,
  4067. }
  4068. }).done(function(data) {
  4069. if(!data.error.length) {
  4070. message.success('已成功驳回实名认证申请!');
  4071. this.setState({
  4072. loading: false,
  4073. });
  4074. } else {
  4075. message.warning(data.error[0].message);
  4076. };
  4077. this.loadData();
  4078. }.bind(this));
  4079. }.bind(this),
  4080. })
  4081. },
  4082. //指定转交人的点击函数
  4083. showModa() {
  4084. this.setState({
  4085. visible: true,
  4086. });
  4087. this.setState({
  4088. selectedRowKey: [],
  4089. });
  4090. this.setState({
  4091. selectedRowKeys: this.state.selectedRowKeys,
  4092. });
  4093. let changeIds;
  4094. let adminName;
  4095. let customerStatus;
  4096. let companyIntention;
  4097. let followSituation;
  4098. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  4099. let rowItem = this.state.selectedRows[idx];
  4100. if(rowItem.id) {
  4101. changeIds = rowItem.id;
  4102. adminName = rowItem.adminName;
  4103. customerStatus = rowItem.customerStatus;
  4104. companyIntention = rowItem.companyIntention;
  4105. followSituation = rowItem.followSituation;
  4106. };
  4107. };
  4108. $.ajax({
  4109. method: "post",
  4110. dataType: "json",
  4111. crossDomain: false,
  4112. url: globalConfig.context + "/api/admin/customer/findAdmin",
  4113. data: {
  4114. id: changeIds, //这一行数据的ID
  4115. beforeCompanyIntention: companyIntention, //意向服务
  4116. beforeCustomerStatus: customerStatus, //客户状态
  4117. beforeFollowSituation: followSituation, //最新跟进状态
  4118. beforeAdminName: adminName, //跟进人
  4119. }
  4120. }).done(function(data) {
  4121. if(data.error && data.error.length) {
  4122. message.warning(data.error[0].message);
  4123. } else {
  4124. let theAssigne = [];
  4125. if(!data.data) {
  4126. if(data.error && data.error.length) {
  4127. message.warning(data.error[0].message);
  4128. };
  4129. } else {
  4130. for(let i = 0; i < data.data.length; i++) {
  4131. let thisdata = data.data[i];
  4132. //处理数据 进行循环
  4133. theAssigne.push({
  4134. name: thisdata.name,
  4135. id: thisdata.id,
  4136. ids: thisdata.cid,
  4137. mobile: thisdata.mobile,
  4138. adminName: thisdata.beforeAdminName,
  4139. customerStatus: thisdata.beforeCustomerStatus,
  4140. companyIntention: thisdata.beforeCompanyIntention,
  4141. followSituation: thisdata.beforeFollowSituation,
  4142. });
  4143. };
  4144. };
  4145. this.setState({
  4146. dataman: theAssigne,
  4147. paginations: false
  4148. });
  4149. }
  4150. }.bind(this));
  4151. },
  4152. //选择了指定人之后的保存点击函数,需要修改函数
  4153. changeAssigner(e) {
  4154. e.preventDefault();
  4155. this.setState({
  4156. visible: false,
  4157. });
  4158. this.setState({
  4159. selectedRowKeys: [],
  4160. });
  4161. let datt = this.state.selectedRow;
  4162. $.ajax({
  4163. method: "post",
  4164. dataType: "json",
  4165. crossDomain: false,
  4166. url: globalConfig.context + "/api/admin/customer/transferCustomer",
  4167. data: {
  4168. id: datt[0].ids, //这一行数据的ID
  4169. aid: datt[0].id, //指定转交人的ID
  4170. beforeAdminName: datt[0].adminName, //之前的跟进人
  4171. adminName: datt[0].name, //转交的跟进人
  4172. }
  4173. }).done(function(data) {
  4174. if(!data.error.length) {
  4175. message.success('转交成功!');
  4176. this.setState({
  4177. loading: false,
  4178. });
  4179. } else {
  4180. message.warning(data.error[0].message);
  4181. };
  4182. this.loadData();
  4183. }.bind(this));
  4184. },
  4185. //领取
  4186. changeRow(uids) {
  4187. this.setState({
  4188. loading: true,
  4189. selectedRowKeys: [],
  4190. });
  4191. $.ajax({
  4192. method: "get",
  4193. dataType: "json",
  4194. crossDomain: false,
  4195. url: globalConfig.context + "/api/admin/customer/receiveCustomer",
  4196. data: {
  4197. uid: uids.id,
  4198. }
  4199. }).done(function(data) {
  4200. if(!data.error.length) {
  4201. message.success('领取成功!');
  4202. this.setState({
  4203. loading: false,
  4204. });
  4205. } else {
  4206. message.warning(data.error[0].message);
  4207. };
  4208. this.loadData();
  4209. }.bind(this));
  4210. },
  4211. getOrgCodeUrl(e) {
  4212. this.setState({ orgCodeUrl: e });
  4213. },
  4214. getCompanyLogoUrl(e) {
  4215. this.setState({ companyLogoUrl: e });
  4216. },
  4217. componentWillMount() {
  4218. //城市
  4219. let Province = [];
  4220. provinceList.map(function(item) {
  4221. var id = String(item.id)
  4222. Province.push(
  4223. <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
  4224. )
  4225. });
  4226. //行业
  4227. let intentionalArr = [];
  4228. industry.map(function(item) {
  4229. intentionalArr.push(
  4230. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  4231. )
  4232. });
  4233. //会员等级
  4234. let lvlArr = [];
  4235. lvl.map(function(item) {
  4236. lvlArr.push(
  4237. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  4238. )
  4239. });
  4240. //会员状态customerStatus
  4241. let currentMemberArr = [];
  4242. currentMember.map(function(item) {
  4243. currentMemberArr.push(
  4244. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  4245. )
  4246. });
  4247. this.state.Provinces = Province;
  4248. this.state.intentionalOption = intentionalArr;
  4249. this.state.lvlArrOption = lvlArr;
  4250. this.state.currentMemberArrOption = currentMemberArr;
  4251. this.loadData();
  4252. },
  4253. search() {
  4254. this.loadData();
  4255. },
  4256. reset() {
  4257. this.state.internationalSearch = undefined;
  4258. this.state.shareTypeSearch = undefined;
  4259. this.state.typeSearch = undefined; //名称1
  4260. this.state.nameSearch = '';
  4261. this.state.addressSearch = [];
  4262. this.state.provinceSearch = undefined;
  4263. this.state.citySearch = undefined;
  4264. this.state.statusSearch = undefined;
  4265. this.state.contactsSearch = undefined;
  4266. this.state.contactMobileSearch = undefined;
  4267. this.state.industrySearch = undefined;
  4268. this.state.serviceCertificationSearch = undefined;
  4269. this.state.userCertificationSearch = undefined;
  4270. this.state.currentMemberStatusSearch = undefined;
  4271. this.state.lvlSearch = undefined;
  4272. this.state.listedSearch = undefined;
  4273. this.state.societyTagSearch = undefined;
  4274. this.state.highTechZoneSearch = undefined;
  4275. this.state.releaseDate[0] = undefined;
  4276. this.state.releaseDate[1] = undefined;
  4277. this.loadData();
  4278. },
  4279. searchSwitch() {
  4280. this.setState({
  4281. searchMore: !this.state.searchMore
  4282. });
  4283. },
  4284. //详情保存函数
  4285. detailsSubmint() {
  4286. this.setState({
  4287. modal5Visible: false,
  4288. })
  4289. },
  4290. //整行点击
  4291. tableRowClick(record, index) {
  4292. this.state.RowData = record;
  4293. this.detailsModalOk(record);
  4294. this.setState({
  4295. callnub:'1',
  4296. selectedRowKeys: [],
  4297. rowId: record.id,
  4298. })
  4299. },
  4300. VisitRowClick(record, index) {
  4301. this.state.keys = false;
  4302. this.state.RowData = record;
  4303. this.visitModify(record.followId);
  4304. this.setState({
  4305. selectedRowKeys: [],
  4306. delectId: record.followId,
  4307. })
  4308. },
  4309. //基本信息提交
  4310. newSubmit(e) {
  4311. e.preventDefault();
  4312. if(!this.state.industry) {
  4313. message.warning('请选择行业');
  4314. return false;
  4315. };
  4316. if(!this.state.societyTag) {
  4317. message.warning('请选择社会性质');
  4318. return false;
  4319. };
  4320. if(!this.state.ProvinceCity[1]) {
  4321. message.warning('请选择地区');
  4322. return false;
  4323. };
  4324. this.state.data = [];
  4325. this.setState({
  4326. selectedRowKeys: [],
  4327. });
  4328. this.props.form.validateFields((err, values) => {
  4329. let theorgCodeUrl = [];
  4330. if(this.state.orgCodeUrl.length) {
  4331. let picArr = [];
  4332. this.state.orgCodeUrl.map(function(item) {
  4333. if ( item.response && item.response.data && item.response.data.length ){
  4334. picArr.push(item.response.data);
  4335. }
  4336. });
  4337. theorgCodeUrl = picArr.join(",");
  4338. };
  4339. let thecompanyLogoUrl = [];
  4340. if(this.state.companyLogoUrl.length) {
  4341. let picArr = [];
  4342. this.state.companyLogoUrl.map(function(item) {
  4343. if ( item.response && item.response.data && item.response.data.length ){
  4344. picArr.push(item.response.data);
  4345. }
  4346. });
  4347. thecompanyLogoUrl = picArr.join(",");
  4348. };
  4349. if(!err) {
  4350. this.setState({
  4351. loading: true
  4352. });
  4353. $.ajax({
  4354. method: "post",
  4355. dataType: "json",
  4356. url: globalConfig.context + '/api/admin/customer/updateOrganizationCustomer',
  4357. data: {
  4358. id: this.state.InformationId,
  4359. uid: this.state.InformationUid,
  4360. societyTag: this.state.societyTag,
  4361. introduction: this.state.introduction,
  4362. unitName: this.state.unitName,
  4363. industry: this.state.industry,
  4364. locationProvince: (this.state.ProvinceCity)[0], //省-
  4365. locationCity: (this.state.ProvinceCity)[1], //市
  4366. locationArea: (this.state.ProvinceCity)[2], //区
  4367. postalAddress: this.state.postalAddress,
  4368. contactsFixedTel: this.state.contactsFixedTel,
  4369. contactsFax: this.state.contactsFax,
  4370. registeredCapital: this.state.registeredCapital,
  4371. enterpriseScale: this.state.enterpriseScale,
  4372. legalPerson: this.state.legalPerson,
  4373. international: this.state.international,
  4374. legalPersonIdCard: this.state.legalPersonIdCard,
  4375. legalPersonTel: this.state.legalPersonTel,
  4376. legalPersonEmail: this.state.legalPersonEmail,
  4377. highTechZone: this.state.highTechZone,
  4378. listed: this.state.listed,
  4379. orgCode: this.state.orgCode,
  4380. businessScope: this.state.businessScope,
  4381. introduction: this.state.introduction,
  4382. companyLogoUrl: thecompanyLogoUrl,
  4383. orgCodeUrl: theorgCodeUrl,
  4384. investment: this.state.investment,
  4385. auditStatus: this.state.auditStatus,
  4386. businessAudit: this.state.businessAudit
  4387. }
  4388. }).done(function(data) {
  4389. this.setState({
  4390. loading: false
  4391. });
  4392. if(!data.error.length) {
  4393. message.success('保存成功!');
  4394. this.detailsModal()
  4395. this.loadData();
  4396. } else {
  4397. message.warning(data.error[0].message);
  4398. }
  4399. }.bind(this));
  4400. }
  4401. })
  4402. },
  4403. //点击整行查看详情
  4404. //查看基本详情基本信息
  4405. loadInformation(record) {
  4406. this.RowClick;
  4407. $.ajax({
  4408. method: "get",
  4409. dataType: "json",
  4410. crossDomain: false,
  4411. url: globalConfig.context + '/api/admin/customer/findOrganizationCustomerDetail',
  4412. data: {
  4413. uid: record
  4414. },
  4415. success: function(data) {
  4416. let thisData = data.data;
  4417. if(!thisData) {
  4418. if(data.error && data.error.length) {
  4419. message.warning(data.error[0].message);
  4420. };
  4421. thisData = {};
  4422. };
  4423. let ProvinceCityArr = [];
  4424. let ProvinceS = thisData.locationProvince; //getprovince
  4425. let citys = thisData.locationCity;
  4426. let Areas = thisData.locationArea;
  4427. ProvinceCityArr.push(ProvinceS, citys, Areas);
  4428. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  4429. this.setState({
  4430. InformationId: thisData.id,
  4431. InformationUid: thisData.uid,
  4432. identifyName: thisData.identifyName,
  4433. listed: thisData.listed,
  4434. highTechZone: thisData.highTechZone,
  4435. orgCodeUrl: thisData.orgCodeUrl ? splitUrl(thisData.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [],
  4436. companyLogoUrl: thisData.companyLogoUrl ? splitUrl(thisData.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],
  4437. dataInformation: thisData,
  4438. ProvinceCity: ProvinceCityArr,
  4439. proviceCityArea: ProvinceS ? cityArea : '',
  4440. industry: String(thisData.industry) == 'null' ? undefined : String(thisData.industry),
  4441. international: thisData.international,
  4442. societyTag: thisData.societyTag,
  4443. introduction: thisData.introduction,
  4444. postalAddress: thisData.postalAddress,
  4445. contactsFixedTel: thisData.contactsFixedTel,
  4446. contactsFax: thisData.contactsFax,
  4447. registeredCapital: thisData.registeredCapital,
  4448. enterpriseScale: thisData.enterpriseScale,
  4449. legalPerson: thisData.legalPerson,
  4450. legalPersonIdCard: thisData.legalPersonIdCard,
  4451. legalPersonTel: thisData.legalPersonTel,
  4452. legalPersonEmail: thisData.legalPersonEmail,
  4453. businessScope: thisData.businessScope,
  4454. orgCode: thisData.orgCode,
  4455. investment: thisData.investment,
  4456. auditStatus: thisData.auditStatus?String(thisData.auditStatus):undefined,
  4457. businessAudit: thisData.businessAudit
  4458. });
  4459. }.bind(this),
  4460. }).always(function() {
  4461. this.setState({
  4462. loading: false
  4463. });
  4464. }.bind(this));
  4465. },
  4466. //tab3账户信息请求数据
  4467. httpAccount(record) {
  4468. this.RowClick;
  4469. $.ajax({
  4470. method: "get",
  4471. dataType: "json",
  4472. crossDomain: false,
  4473. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  4474. data: {
  4475. uid: record
  4476. },
  4477. success: function(data) {
  4478. let thisData = data.data;
  4479. if(!thisData) {
  4480. if(data.error && data.error.length) {
  4481. message.warning(data.error[0].message);
  4482. };
  4483. thisData = {};
  4484. };
  4485. let sourcecustomer = ''
  4486. switch(String(thisData.source)) {
  4487. case '0':
  4488. sourcecustomer = '注册客户'
  4489. break;
  4490. case '1':
  4491. sourcecustomer = '录入客户'
  4492. break;
  4493. }
  4494. this.setState({
  4495. Accountuid: thisData.id,
  4496. mobile: thisData.mobile,
  4497. nickname: thisData.nickname,
  4498. email: thisData.email,
  4499. type: getcustomerTyp(String(thisData.type)),
  4500. source: sourcecustomer,
  4501. isMember: thisData.isMember,
  4502. currentMemberStatus: String(thisData.currentMemberStatus),
  4503. lvl: String(thisData.lvl),
  4504. status: String(thisData.status),
  4505. createTimes: thisData.createTimes,
  4506. });
  4507. }.bind(this),
  4508. }).always(function() {
  4509. this.setState({
  4510. loading: false
  4511. });
  4512. }.bind(this));
  4513. },
  4514. detailsModalOk(e) {
  4515. this.setState({ modal5Visible: true }); //需要一个请求数据
  4516. this.loadInformation(e.id);
  4517. this.contactLists(e.id);
  4518. this.httpAccount(e.id);
  4519. this.loadBfVisit(1, e.id);
  4520. this.BusinessList(1, e.id);
  4521. },
  4522. //点击消失函数
  4523. detailsModal(e) {
  4524. this.setState({
  4525. modal5Visible: false
  4526. });
  4527. },
  4528. //拜访modul函数
  4529. visitOk(e) {
  4530. this.setState({
  4531. visitModul: false
  4532. });
  4533. this.loadVisit()
  4534. },
  4535. visitCancel(e) {
  4536. this.setState({
  4537. visitModul: false
  4538. });
  4539. },
  4540. //拜访保存函数
  4541. visitSubmit(e) {
  4542. e.preventDefault();
  4543. let GlossoryId;
  4544. this.state.data.map(function(item) {
  4545. if(!item.businessGlossoryId) {
  4546. GlossoryId = true
  4547. }
  4548. })
  4549. if(this.state.contactType == undefined) {
  4550. message.warning('请选择拜访方式')
  4551. return false;
  4552. };
  4553. if(this.state.keys) {
  4554. if(this.state.lastName == undefined) {
  4555. message.warning('请选择联系人')
  4556. return false;
  4557. }
  4558. };
  4559. if(GlossoryId) {
  4560. message.warning("请选择业务名称!")
  4561. return false;
  4562. };
  4563. this.setState({
  4564. selectedRowKeys: [],
  4565. });
  4566. this.setState({
  4567. loading: true
  4568. });
  4569. let contactsId = '';
  4570. if(this.state.keys) {
  4571. let conts = this.state.lastName;
  4572. contactsId = this.state.contactsIdArr[conts].id;
  4573. }
  4574. //新增
  4575. $.ajax({
  4576. method: "post",
  4577. dataType: "json",
  4578. url: this.state.keys ? globalConfig.context + '/api/admin/customer/addFollow' : globalConfig.context + '/api/admin/customer/updateFollow',
  4579. data: this.state.keys ? {
  4580. userBusinessList: JSON.stringify(this.state.data),
  4581. uid: this.state.uid,
  4582. ocbId: contactsId,
  4583. contactType: this.state.contactType,
  4584. result: this.state.result,
  4585. followTime: this.state.followTime,
  4586. } : {
  4587. followId: this.state.followIds,
  4588. userBusinessList: JSON.stringify(this.state.data),
  4589. uid: this.state.uid,
  4590. contactType: this.state.contactType,
  4591. result: this.state.result,
  4592. followTime: this.state.followTime,
  4593. }
  4594. }).done(function(data) {
  4595. this.setState({
  4596. loading: false
  4597. });
  4598. if(!data.error.length) {
  4599. message.success('保存成功!');
  4600. this.loadVisit(); //
  4601. this.loadData();
  4602. this.visitCancel();
  4603. } else {
  4604. message.warning(data.error[0].message);
  4605. }
  4606. }.bind(this));
  4607. },
  4608. //当选择联系人的列表变化时,则执行
  4609. hundleName(e) {
  4610. let changNub = this.state.telNum[e];
  4611. this.setState({
  4612. nub: this.state.telNum[e],
  4613. lastName: e,
  4614. });
  4615. },
  4616. //添加新业务及单位客户详情新增
  4617. addNew() {
  4618. this.state.data.push({
  4619. customerStatus: undefined,
  4620. businessGlossoryId: undefined,
  4621. followSituation: undefined,
  4622. remarks: '',
  4623. });
  4624. this.setState({
  4625. data: this.state.data
  4626. })
  4627. },
  4628. //tab2新增联系人
  4629. addcontact() {
  4630. this.state.contactList.push({
  4631. id: null,
  4632. name: '',
  4633. mobile: '',
  4634. email: '',
  4635. qq: '',
  4636. wechat: '',
  4637. depatrment: '',
  4638. position: '',
  4639. });
  4640. this.setState({
  4641. contactList: this.state.contactList
  4642. })
  4643. },
  4644. //tab5进入修改时
  4645. //进入修改时
  4646. listFollowUp(e) {
  4647. $.ajax({
  4648. method: "get",
  4649. dataType: "json",
  4650. crossDomain: false,
  4651. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  4652. data: {
  4653. ufbId: e
  4654. },
  4655. success: function(data) {
  4656. let thedata = data.data;
  4657. if(!thedata) {
  4658. if(data.error && data.error.length) {
  4659. message.warning(data.error[0].message);
  4660. };
  4661. thedata = {};
  4662. };
  4663. this.setState({
  4664. businessGlossoryIds: thedata.businessGlossoryId,
  4665. followSituations: thedata.followSituation,
  4666. customerStatuss: thedata.customerStatus,
  4667. followTimes: thedata.followTime,
  4668. createTimes: thedata.createTime,
  4669. identifyNames: thedata.identifyName,
  4670. contactTypes: parseInt(thedata.contactType),
  4671. results: thedata.result,
  4672. remarkss: thedata.remarks,
  4673. adminNames: thedata.adminName,
  4674. contactss: thedata.contacts,
  4675. contactMobiles: thedata.contactMobile,
  4676. ufbId: thedata.ufbId,
  4677. followIds: thedata.followId,
  4678. });
  4679. }.bind(this),
  4680. }).always(function() {
  4681. this.setState({
  4682. loading: false
  4683. });
  4684. }.bind(this));
  4685. },
  4686. //修改密码Modul
  4687. modifyPassworld() {
  4688. this.setState({
  4689. passworldModul: true
  4690. });
  4691. },
  4692. passworldOk(e) {
  4693. this.setState({
  4694. passworldModul: false
  4695. });
  4696. },
  4697. passworldCancel(e) {
  4698. this.setState({
  4699. passworldModul: false
  4700. });
  4701. },
  4702. //修改密码保存
  4703. passworldSubmit(e) {
  4704. e.preventDefault();
  4705. this.passworldCancel()
  4706. },
  4707. //新增联系人
  4708. addcontactModulOK() {
  4709. this.setState({
  4710. addcontactModul: false
  4711. });
  4712. },
  4713. addcontactModulcancel() {
  4714. this.setState({
  4715. addcontactModul: false
  4716. });
  4717. },
  4718. //点击新增详情
  4719. newContacts() {
  4720. this.state.newsex =undefined;
  4721. this.state.newname ='';
  4722. this.state.newmobile='';
  4723. this.state.newwechat='';
  4724. this.state.newqq='';
  4725. this.state.newdepatrment='';
  4726. this.state.newposition='';
  4727. this.state.newemail='';
  4728. this.setState({
  4729. uids: this.state.uid,
  4730. addcontactModul: true
  4731. });
  4732. },
  4733. //新增联系人保存函数
  4734. submitcontactman(e) {
  4735. e.preventDefault();
  4736. this.setState({
  4737. loading: true
  4738. })
  4739. $.ajax({
  4740. method: "post",
  4741. dataType: "json",
  4742. crossDomain: false,
  4743. url: globalConfig.context + "/api/admin/customer/addOneContact",
  4744. data: {
  4745. uid: this.state.uids,
  4746. name: this.state.newname,
  4747. mobile: this.state.newmobile,
  4748. email: this.state.newemail,
  4749. wechat: this.state.newwechat,
  4750. depatrment: this.state.newdepatrment,
  4751. position: this.state.newposition,
  4752. sex: this.state.newsex,
  4753. qq: this.state.newqq
  4754. },
  4755. success: function(data) {
  4756. if(!data.error.length) {
  4757. this.addcontactModulOK()
  4758. this.getNewWoman(this.state.uids)
  4759. this.setState({
  4760. loading: false,
  4761. })
  4762. } else {
  4763. message.warning(data.error[0].message);
  4764. };
  4765. }.bind(this)
  4766. });
  4767. },
  4768. //获取联系人下拉框
  4769. getNewWoman(ids) {
  4770. this.state.data = []
  4771. $.ajax({
  4772. method: "get",
  4773. dataType: "json",
  4774. crossDomain: false,
  4775. url: globalConfig.context + "/api/admin/customer/findCustomerContacts",
  4776. data: {
  4777. uid: ids,
  4778. },
  4779. success: function(data) {
  4780. let theArr = [];
  4781. let thedata = data.data;
  4782. if(!thedata) {
  4783. if(data.error && data.error.length) {
  4784. message.warning(data.error[0].message);
  4785. };
  4786. thedata = {};
  4787. };
  4788. var telNum = [];
  4789. var contactIds = [];
  4790. thedata.map(function(item, index) {
  4791. contactIds.push(thedata[index].id);
  4792. telNum.push(thedata[index].mobile);
  4793. });
  4794. for(let item in data.data) {
  4795. let theData = data.data[item];
  4796. theArr.push(
  4797. <Select.Option value={item} key={theData.name}>{theData.name}</Select.Option>
  4798. );
  4799. };
  4800. this.setState({
  4801. contactsIdArr: thedata,
  4802. telNum: telNum,
  4803. orderStatusOption: theArr,
  4804. });
  4805. }.bind(this),
  4806. }).always(function() {
  4807. this.setState({
  4808. deletId: ids,
  4809. loading: false
  4810. });
  4811. }.bind(this));
  4812. },
  4813. //拜访意向服务列表单个删除
  4814. intentionDelet(e, index) {
  4815. if(!this.state.keys) {
  4816. let detId = this.state.followIds;
  4817. if(e.id) {
  4818. this.setState({
  4819. selectedRowKeys: [],
  4820. });
  4821. $.ajax({
  4822. method: "get",
  4823. dataType: "json",
  4824. crossDomain: false,
  4825. url: globalConfig.context + "/api/admin/customer/deleteFollowOneBusiness",
  4826. data: {
  4827. ufbId: e.id
  4828. }
  4829. }).done(function(data) {
  4830. if(!data.error.length) {
  4831. message.success('删除成功');
  4832. this.setState({
  4833. loading: false,
  4834. });
  4835. } else {
  4836. message.warning(data.error[0].message);
  4837. };
  4838. this.visitModify(detId);
  4839. }.bind(this));
  4840. } else {
  4841. this.visitModify(detId);
  4842. }
  4843. } else {
  4844. let deteluserBusinessList = (this.state.data).splice(index, 1)
  4845. this.setState({
  4846. selectedRowKeys: [],
  4847. });
  4848. }
  4849. },
  4850. //tab5意向业务
  4851. //意向业务查看列表单个详情
  4852. businessIntentionDetails(e) {
  4853. $.ajax({
  4854. method: "get",
  4855. dataType: "json",
  4856. crossDomain: false,
  4857. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  4858. data: {
  4859. businessId: e.businessId
  4860. },
  4861. success: function(data) {
  4862. let thisData = data.data;
  4863. if(!thisData) {
  4864. if(data.error && data.error.length) {
  4865. message.warning(data.error[0].message);
  4866. };
  4867. thisData = {};
  4868. };
  4869. this.setState({
  4870. businessGlossoryId: thisData.businessGlossoryId,
  4871. identifyName: thisData.identifyName,
  4872. uid: thisData.uid,
  4873. businessId: thisData.businessId,
  4874. followSituation: thisData.followSituation,
  4875. customerStatus: thisData.customerStatus,
  4876. createTime: thisData.createTime,
  4877. followTime: thisData.followTime,
  4878. adminName: thisData.adminName,
  4879. remarks: thisData.remarks,
  4880. result: thisData.result,
  4881. });
  4882. }.bind(this),
  4883. }).always(function() {
  4884. this.loadVisit();
  4885. this.setState({
  4886. loading: false
  4887. });
  4888. }.bind(this));
  4889. this.setState({
  4890. businessModul: true
  4891. })
  4892. },
  4893. //查看跟进记录列表
  4894. loadVisit(pageNo) {
  4895. this.setState({
  4896. loading: true
  4897. });
  4898. $.ajax({
  4899. method: "get",
  4900. dataType: "json",
  4901. crossDomain: false,
  4902. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  4903. data: {
  4904. pageNo: pageNo || 1,
  4905. pageSize: this.state.paginations.pageSize,
  4906. uid: this.state.rowId, //名称1
  4907. businessGlossoryId: this.state.businessGlossoryId,
  4908. },
  4909. success: function(data) {
  4910. let theArr = [];
  4911. if(data.error.length || data.data.list == "") {
  4912. if(data.error && data.error.length) {
  4913. message.warning(data.error[0].message);
  4914. };
  4915. } else {
  4916. for(let i = 0; i < data.data.list.length; i++) {
  4917. let thisdata = data.data.list[i];
  4918. theArr.push({
  4919. followId: thisdata.followId,
  4920. followTime: thisdata.followTime,
  4921. identifyName: thisdata.identifyName,
  4922. contacts: thisdata.contacts,
  4923. contactMobile: thisdata.contactMobile,
  4924. result: thisdata.result,
  4925. ufbId: thisdata.ufbId,
  4926. adminName: thisdata.adminName,
  4927. followSituation: thisdata.followSituation,
  4928. customerStatus: thisdata.customerStatus,
  4929. contactType: thisdata.contactType
  4930. });
  4931. };
  4932. this.state.paginations.current = data.data.pageNo;
  4933. this.state.paginations.total = data.data.totalCount;
  4934. };
  4935. this.setState({
  4936. visitArrList: theArr,
  4937. paginations: this.state.paginations
  4938. });
  4939. }.bind(this),
  4940. }).always(function() {
  4941. this.setState({
  4942. loading: false
  4943. });
  4944. }.bind(this));
  4945. },
  4946. //tab3拜访记录
  4947. loadBfVisit(pageNo, uids) {
  4948. this.setState({
  4949. loading: true
  4950. });
  4951. $.ajax({
  4952. method: "get",
  4953. dataType: "json",
  4954. crossDomain: false,
  4955. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  4956. data: {
  4957. pageNo: pageNo || 1,
  4958. pageSize: this.state.paginationsy.pageSize,
  4959. uid: uids ? uids : this.state.rowId, //名称1
  4960. },
  4961. success: function(data) {
  4962. let theArr = [];
  4963. if(data.error.length || data.data.list == "") {
  4964. if(data.error && data.error.length) {
  4965. message.warning(data.error[0].message);
  4966. };
  4967. } else {
  4968. for(let i = 0; i < data.data.list.length; i++) {
  4969. let thisdata = data.data.list[i];
  4970. theArr.push({
  4971. followId: thisdata.followId,
  4972. followTime: thisdata.followTime,
  4973. identifyName: thisdata.identifyName,
  4974. contacts: thisdata.contacts,
  4975. contactMobile: thisdata.contactMobile,
  4976. result: thisdata.result,
  4977. ufbId: thisdata.ufbId,
  4978. adminName: thisdata.adminName,
  4979. followSituation: thisdata.followSituation,
  4980. customerStatus: thisdata.customerStatus,
  4981. contactType: thisdata.contactType
  4982. });
  4983. };
  4984. this.state.paginationsy.current = data.data.pageNo;
  4985. this.state.paginationsy.total = data.data.totalCount;
  4986. };
  4987. this.setState({
  4988. visitArrList: theArr,
  4989. paginationsy: this.state.paginationsy
  4990. });
  4991. }.bind(this),
  4992. }).always(function() {
  4993. this.setState({
  4994. loading: false
  4995. });
  4996. }.bind(this));
  4997. },
  4998. businessIntentionOk() {
  4999. this.setState({
  5000. businessGlossoryId: '',
  5001. businessModul: false
  5002. })
  5003. },
  5004. businessIntentionCancel() {
  5005. this.setState({
  5006. businessGlossoryId: '',
  5007. businessModul: false
  5008. })
  5009. },
  5010. //业务跟进查看跟多
  5011. businessFollowDetails(e) {
  5012. this.listFollowUp(e.ufbId)
  5013. this.setState({
  5014. businessFollowModul: true
  5015. })
  5016. },
  5017. businessFollowOk(e) {
  5018. this.setState({
  5019. businessFollowModul: false
  5020. })
  5021. },
  5022. businessFollowCancel(e) {
  5023. this.setState({
  5024. businessFollowModul: false
  5025. })
  5026. },
  5027. //tab2联系人保存
  5028. contactSave(e) {
  5029. e.preventDefault();
  5030. this.setState({
  5031. loading: true
  5032. });
  5033. $.ajax({
  5034. url: globalConfig.context + '/api/admin/customer/updateCustomerContacts',
  5035. method: 'post',
  5036. data: {
  5037. uid: this.state.rowId,
  5038. contactList: JSON.stringify(this.state.contactList)
  5039. }
  5040. }).done(function(data) {
  5041. this.setState({
  5042. loading: false
  5043. });
  5044. if(!data.error.length) {
  5045. message.success('保存成功!');
  5046. this.detailsModal()
  5047. this.loadData();
  5048. } else {
  5049. message.warning(data.error[0].message);
  5050. }
  5051. }.bind(this));
  5052. },
  5053. //详情tab切换数据处理
  5054. callback(e) {
  5055. if(e == '1') {
  5056. this.loadInformation(this.state.rowId)
  5057. }
  5058. if(e == '2') {
  5059. this.contactLists(this.state.rowId)
  5060. }
  5061. if(e == '3') {
  5062. this.httpAccount(this.state.rowId)
  5063. }
  5064. if(e == '4') {
  5065. this.loadBfVisit(1, this.state.rowId);
  5066. }
  5067. if(e == '5') {
  5068. this.BusinessList(1, this.state.rowId);
  5069. }
  5070. if(e == '6') {
  5071. }
  5072. if(e == '7') {
  5073. }
  5074. if(e == '8') {
  5075. }
  5076. if(e == '9') {
  5077. }
  5078. this.setState({
  5079. callnub: e,
  5080. })
  5081. },
  5082. //账户信息保存
  5083. accountSave(e) {
  5084. e.preventDefault();
  5085. if(!this.state.mobile) {
  5086. message.warning('手机号码不能为空!')
  5087. return false;
  5088. }
  5089. this.state.data = [];
  5090. this.setState({
  5091. selectedRowKeys: [],
  5092. });
  5093. this.setState({
  5094. loading: true
  5095. });
  5096. $.ajax({
  5097. method: "post",
  5098. dataType: "json",
  5099. url: globalConfig.context + '/api/admin/customer/updateUserAccount',
  5100. data: {
  5101. id: this.state.Accountuid,
  5102. mobile: this.state.mobile,
  5103. nickname: this.state.nickname,
  5104. email: this.state.email,
  5105. isMember: this.state.isMember,
  5106. currentMemberStatus: this.state.currentMemberStatus,
  5107. lvl: this.state.lvl,
  5108. status: this.state.status,
  5109. }
  5110. }).done(function(data) {
  5111. this.setState({
  5112. loading: false
  5113. });
  5114. if(!data.error.length) {
  5115. message.success('保存成功!');
  5116. this.detailsModal();
  5117. this.loadData();
  5118. } else {
  5119. message.warning(data.error[0].message);
  5120. }
  5121. }.bind(this));
  5122. },
  5123. //tab2删除
  5124. confirmDelet(e) {
  5125. this.setState({
  5126. loading: true
  5127. });
  5128. if(e.id) {
  5129. $.ajax({
  5130. method: "get",
  5131. dataType: "json",
  5132. crossDomain: false,
  5133. url: globalConfig.context + "/api/admin/customer/deleteOneContact",
  5134. data: {
  5135. ocbId: e.id, //删除的ID
  5136. }
  5137. }).done(function(data) {
  5138. if(!data.error.length) {
  5139. message.success('删除成功!');
  5140. this.setState({
  5141. loading: false,
  5142. });
  5143. } else {
  5144. message.warning(data.error[0].message);
  5145. };
  5146. this.contactLists(this.state.rowId);
  5147. }.bind(this));
  5148. } else {
  5149. this.contactLists(this.state.rowId);
  5150. }
  5151. },
  5152. //tab5业务意向
  5153. BusinessList(pageNo, uids) {
  5154. this.setState({
  5155. loading: true
  5156. });
  5157. $.ajax({
  5158. method: "post",
  5159. dataType: "json",
  5160. crossDomain: false,
  5161. url: globalConfig.context + '/api/admin/customer/listBusiness',
  5162. data: {
  5163. pageNo: pageNo || 1,
  5164. pageSize: this.state.paginationt.pageSize,
  5165. uid: uids ? uids : this.state.rowId
  5166. },
  5167. success: function(data) {
  5168. let theArr = [];
  5169. if(data.error.length || data.data.list == "") {
  5170. if(data.error && data.error.length) {
  5171. message.warning(data.error[0].message);
  5172. };
  5173. } else {
  5174. for(let i = 0; i < data.data.list.length; i++) {
  5175. let thisdata = data.data.list[i];
  5176. theArr.push({
  5177. key: i,
  5178. businessId: thisdata.businessId,
  5179. businessName: thisdata.businessName,
  5180. identifyName: thisdata.identifyName,
  5181. followSituation: thisdata.followSituation,
  5182. customerStatus: thisdata.customerStatus,
  5183. adminName: thisdata.adminName,
  5184. createTime: thisdata.createTime
  5185. });
  5186. };
  5187. this.state.paginationt.current = data.data.pageNo;
  5188. this.state.paginationt.total = data.data.totalCount;
  5189. };
  5190. this.setState({
  5191. dataBusiness: theArr,
  5192. paginationt: this.state.paginationt
  5193. });
  5194. }.bind(this),
  5195. }).always(function() {
  5196. this.setState({
  5197. loading: false
  5198. });
  5199. }.bind(this));
  5200. },
  5201. componentWillReceiveProps(nextProps) {
  5202. if(!this.props.visible && nextProps.visible) {
  5203. if(nextProps.data && nextProps.data.id) {
  5204. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  5205. };
  5206. this.state.data = {};
  5207. this.state.companyLogoUrl = [];
  5208. this.state.orgCodeUrl = [];
  5209. this.loadData(null);
  5210. };
  5211. },
  5212. render() {
  5213. const FormItem = Form.Item
  5214. const rowSelection = {
  5215. selectedRowKeys: this.state.selectedRowKeys,
  5216. onChange: (selectedRowKeys, selectedRows) => {
  5217. this.setState({
  5218. selectedRows: selectedRows.slice(-1),
  5219. selectedRowKeys: selectedRowKeys.slice(-1)
  5220. });
  5221. },
  5222. onSelect: (recordt, selected, selectedRows) => {
  5223. this.setState({
  5224. recordt: recordt.id
  5225. })
  5226. },
  5227. };
  5228. const rowSelections = {
  5229. selectedRowKeys: this.state.selectedRowKey,
  5230. onChange: (selectedRowKey, selectedRow) => {
  5231. this.setState({
  5232. selectedRow: selectedRow.slice(-1),
  5233. selectedRowKey: selectedRowKey.slice(-1)
  5234. });
  5235. },
  5236. onSelect: (records, selected, selectedRow) => {
  5237. this.setState({
  5238. selectedRow: selectedRow.slice(-1),
  5239. records: records.id,
  5240. })
  5241. },
  5242. };
  5243. const hasSelected = this.state.selectedRowKeys.length > 0;
  5244. const { RangePicker } = DatePicker;
  5245. const { getFieldDecorator } = this.props.form;
  5246. const formItemLayout = {
  5247. labelCol: { span: 8 },
  5248. wrapperCol: { span: 14 },
  5249. };
  5250. //const theDatak = this.state.datak || {};
  5251. const theInformation = this.state.dataInformation || {}
  5252. const contactsOption = "";
  5253. const formItemLayput = {
  5254. labelCol: { span: 10 },
  5255. wrapperCol: { span: 14 },
  5256. };
  5257. const contacts = this.state.contacts || '';
  5258. return(
  5259. <div className="user-content" >
  5260. <div className="content-title">
  5261. <span>单位客户实名认证</span>
  5262. </div>
  5263. <div className="user-search">
  5264. <Input placeholder="客户名称"
  5265. value={this.state.nameSearch}
  5266. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  5267. <Select placeholder="省"
  5268. style={{ width: 80 }}
  5269. value={this.state.provinceSearch}
  5270. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  5271. {this.state.Provinces}
  5272. </Select>
  5273. <span style={{marginRight:'10px'}}>
  5274. <Cascader options={citySelect()} value={this.state.addressSearch} placeholder="选择城市"
  5275. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  5276. </span>
  5277. <span style={{marginRight:'10px'}}>客户类型:</span>
  5278. <Select placeholder="选择客户类型"
  5279. style={{ width: 100 }}
  5280. value={this.state.shareTypeSearch}
  5281. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  5282. <Select.Option value="" >所有客户</Select.Option>
  5283. <Select.Option value="1" >公共客户</Select.Option>
  5284. </Select>
  5285. <Button type="primary" onClick={this.search}>搜索</Button>
  5286. <Button onClick={this.reset}>重置</Button>
  5287. {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  5288. disabled={!hasSelected}
  5289. onClick={this.delectRow}>审核通过</Button>:''}
  5290. {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  5291. disabled={!hasSelected}
  5292. onClick={this.delectRows}>审核不通过</Button>:''}
  5293. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  5294. <div className='clearfix' style={{marginTop:'5px'}}>
  5295. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  5296. <RangePicker
  5297. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  5298. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  5299. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  5300. <Select placeholder="账户状态"
  5301. style={{ width: 100 }}
  5302. value={this.state.statusSearch}
  5303. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  5304. <Select.Option value="0" >正常</Select.Option>
  5305. <Select.Option value="2" >锁定</Select.Option>
  5306. </Select>
  5307. <Select placeholder="行业"
  5308. style={{ width: 100 }}
  5309. value={this.state.industrySearch}
  5310. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  5311. {this.state.intentionalOption}
  5312. </Select>
  5313. <span>认证:</span>
  5314. <Select placeholder="业务认证"
  5315. style={{ width: 100 }}
  5316. value={this.state.serviceCertificationSearch}
  5317. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  5318. <Select.Option value="0" >未认证</Select.Option>
  5319. <Select.Option value="1" >已认证</Select.Option>
  5320. </Select>
  5321. <span>国际:</span>
  5322. <Select placeholder="国际"
  5323. style={{ width: 100 }}
  5324. value={this.state.internationalSearch}
  5325. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  5326. <Select.Option value="0" >否</Select.Option>
  5327. <Select.Option value="1" >是</Select.Option>
  5328. </Select>
  5329. <span>高新:</span>
  5330. <Select placeholder="高新"
  5331. style={{ width: 100 }}
  5332. value={this.state.highTechZoneSearch}
  5333. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  5334. <Select.Option value="0" >否</Select.Option>
  5335. <Select.Option value="1" >是</Select.Option>
  5336. </Select>
  5337. <span>上市:</span>
  5338. <Select placeholder="上市"
  5339. style={{ width: 100 }}
  5340. value={this.state.listedSearch}
  5341. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  5342. <Select.Option value="0" >否</Select.Option>
  5343. <Select.Option value="1" >是</Select.Option>
  5344. </Select>
  5345. <span>会员:</span>
  5346. <Select placeholder="会员等级"
  5347. style={{ width: 100 }}
  5348. value={this.state.lvlSearch}
  5349. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  5350. {this.state.lvlArrOption}
  5351. </Select>
  5352. <Select placeholder="会员状态"
  5353. style={{ width: 100 }}
  5354. value={this.state.currentMemberStatusSearch}
  5355. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  5356. {this.state.currentMemberArrOption}
  5357. </Select>
  5358. <Select placeholder="社会性质"
  5359. style={{ width: 100 }}
  5360. value={this.state.societyTagSearch}
  5361. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  5362. {
  5363. socialAttribute.map(function (item) {
  5364. return <Select.Option key={item.value} >{item.key}</Select.Option>
  5365. })
  5366. }
  5367. </Select>
  5368. </div>
  5369. </div>
  5370. </div>
  5371. <div className="patent-table">
  5372. <Spin spinning={this.state.loading}>
  5373. <Table columns={this.state.columns}
  5374. dataSource={this.state.dataSource}
  5375. rowSelection={rowSelection}
  5376. pagination={this.state.pagination}
  5377. onRowClick={this.tableRowClick}
  5378. />
  5379. </Spin>
  5380. </div>
  5381. <Modal
  5382. className="customeDetails"
  5383. title="单位客户详情"
  5384. width='1200px'
  5385. visible={this.state.modal5Visible}
  5386. onOk={this.detailsModal}
  5387. onCancel={this.detailsModal}
  5388. footer=''
  5389. >
  5390. <Tabs defaultActiveKey="1" onChange={this.callback} activeKey={this.state.callnub}>
  5391. <TabPane tab="基本信息" key="1">
  5392. {adminData.isSuperAdmin?<Form horizontal onSubmit={this.newSubmit} id="demand-form">
  5393. <Spin spinning={this.state.loading}>
  5394. <div className="clearfix" style={{paddingLeft:'60px'}}>
  5395. <FormItem className="half-item"
  5396. labelCol={{ span: 4 }}
  5397. wrapperCol={{ span: 18 }}
  5398. label="客户名称"
  5399. >
  5400. <span>{theInformation.identifyName}</span>
  5401. </FormItem>
  5402. </div>
  5403. <div className="clearfix" style={{paddingLeft:'60px'}}>
  5404. <FormItem className="half-item"
  5405. labelCol={{ span: 4 }}
  5406. wrapperCol={{ span: 18 }}
  5407. label="行业">
  5408. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  5409. onChange={(e)=>{this.setState({industry:e})}}>
  5410. {
  5411. industry.map(function (item) {
  5412. return <Select.Option key={item.value} >{item.key}</Select.Option>
  5413. })
  5414. }
  5415. </Select>
  5416. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  5417. </FormItem>
  5418. <FormItem className="half-item"
  5419. labelCol={{ span: 4 }}
  5420. wrapperCol={{ span: 18 }}
  5421. label="社会属性"
  5422. >
  5423. <Select placeholder="客户社会属性(必填项)" value={this.state.societyTag} style={{width:'300px'}}
  5424. onChange={(e)=>{this.setState({societyTag:e})}}>
  5425. {
  5426. socialAttribute.map(function (item) {
  5427. return <Select.Option key={item.value} >{item.key}</Select.Option>
  5428. })
  5429. }
  5430. </Select>
  5431. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  5432. </FormItem>
  5433. <FormItem className="half-item"
  5434. labelCol={{ span: 4 }}
  5435. wrapperCol={{ span: 18 }}
  5436. label="省-市-区"
  5437. >
  5438. <Cascader options={areaSelect()} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  5439. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  5440. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  5441. </FormItem>
  5442. <FormItem className="half-item"
  5443. labelCol={{ span: 4 }}
  5444. wrapperCol={{ span: 18 }}
  5445. label="通信地址"
  5446. >
  5447. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  5448. onChange={(e)=>{this.setState({postalAddress:e.target.value})}}/>
  5449. </FormItem>
  5450. <FormItem className="half-item"
  5451. labelCol={{ span: 4 }}
  5452. wrapperCol={{ span: 18 }}
  5453. label="固定电话"
  5454. >
  5455. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  5456. onChange={(e)=>{this.setState({contactsFixedTel:e.target.value})}}/>
  5457. </FormItem>
  5458. <FormItem className="half-item"
  5459. labelCol={{ span: 4 }}
  5460. wrapperCol={{ span: 18 }}
  5461. label="客户传真"
  5462. >
  5463. <Input placeholder="客户传真" value={this.state.contactsFax}
  5464. onChange={(e)=>{this.setState({contactsFax:e.target.value})}}/>
  5465. </FormItem>
  5466. <FormItem className="half-item"
  5467. labelCol={{ span: 4 }}
  5468. wrapperCol={{ span: 18 }}
  5469. label="注册资本"
  5470. >
  5471. <Input placeholder="注册资本" value={this.state.registeredCapital}
  5472. onChange={(e)=>{this.setState({registeredCapital:e.target.value})}}/>
  5473. </FormItem>
  5474. <FormItem className="half-item"
  5475. labelCol={{ span: 4 }}
  5476. wrapperCol={{ span: 18 }}
  5477. label="单位规模"
  5478. >
  5479. <Input placeholder="单位规模" value={this.state.enterpriseScale}
  5480. onChange={(e)=>{this.setState({enterpriseScale:e.target.value})}}/>
  5481. </FormItem>
  5482. <FormItem className="half-item"
  5483. labelCol={{ span: 4 }}
  5484. wrapperCol={{ span: 18 }}
  5485. label="法人名称"
  5486. >
  5487. <Input placeholder="法人名称" value={this.state.legalPerson}
  5488. onChange={(e)=>{this.setState({legalPerson:e.target.value})}}/>
  5489. </FormItem>
  5490. <FormItem className="half-item"
  5491. labelCol={{ span: 4 }}
  5492. wrapperCol={{ span: 18 }}
  5493. label="身份证号码"
  5494. >
  5495. <Input placeholder="法人身份证号码" value={this.state.legalPersonIdCard}
  5496. onChange={(e)=>{this.setState({legalPersonIdCard:e.target.value})}}/>
  5497. </FormItem>
  5498. <FormItem className="half-item"
  5499. labelCol={{ span: 4 }}
  5500. wrapperCol={{ span: 18 }}
  5501. label="法人电话"
  5502. >
  5503. <Input placeholder="法人电话" value={this.state.legalPersonTel}
  5504. onChange={(e)=>{this.setState({legalPersonTel:e.target.value})}}/>
  5505. </FormItem>
  5506. <FormItem className="half-item"
  5507. labelCol={{ span: 4 }}
  5508. wrapperCol={{ span: 18 }}
  5509. label="电子邮箱"
  5510. >
  5511. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  5512. onChange={(e)=>{this.setState({legalPersonEmail:e.target.value})}}/>
  5513. </FormItem>
  5514. <FormItem className="half-item"
  5515. labelCol={{ span: 4 }}
  5516. wrapperCol={{ span: 18 }}
  5517. label="机构代码"
  5518. >
  5519. <Input placeholder="社会同意机构代码" value={this.state.orgCode}
  5520. onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
  5521. </FormItem>
  5522. <FormItem className="half-item"
  5523. labelCol={{ span: 4 }}
  5524. wrapperCol={{ span: 18 }}
  5525. label="实名认证"
  5526. >
  5527. {adminData.isSuperAdmin?<Select placeholder="实名认证"
  5528. value={this.state.auditStatus}
  5529. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  5530. {
  5531. auditStatusL.map(function (item) {
  5532. return <Select.Option key={item.value} >{item.key}</Select.Option>
  5533. })
  5534. }
  5535. </Select>:<span>{getAuditStatus(this.state.auditStatus)}</span>}
  5536. </FormItem>
  5537. <div className="clearfix">
  5538. <FormItem className="half-item"
  5539. labelCol={{ span: 4 }}
  5540. wrapperCol={{ span: 18 }}
  5541. label="业务认证"
  5542. >
  5543. {adminData.isSuperAdmin?<Radio.Group value={this.state.businessAudit} onChange={(e) => {
  5544. this.setState({ businessAudit: e.target.value })
  5545. }}>
  5546. <Radio value={0}>未认证</Radio>
  5547. <Radio value={1}>已认证</Radio>
  5548. </Radio.Group>:<span>{this.state.businessAudit?'是':'否'}</span>}
  5549. </FormItem>
  5550. <FormItem className="half-item"
  5551. labelCol={{ span: 4 }}
  5552. wrapperCol={{ span: 18 }}
  5553. label="高新"
  5554. >
  5555. <Radio.Group value={this.state.highTechZone} onChange={(e) => {
  5556. this.setState({highTechZone:e.target.value})
  5557. }}>
  5558. <Radio value={0}>否</Radio>
  5559. <Radio value={1}>是</Radio>
  5560. </Radio.Group>
  5561. </FormItem>
  5562. <FormItem className="half-item"
  5563. labelCol={{ span: 4 }}
  5564. wrapperCol={{ span: 18 }}
  5565. label="上市"
  5566. >
  5567. <Radio.Group value={this.state.listed} onChange={(e) => {
  5568. this.setState({listed:e.target.value })
  5569. }}>
  5570. <Radio value={0}>否</Radio>
  5571. <Radio value={1}>是</Radio>
  5572. </Radio.Group>
  5573. </FormItem>
  5574. <FormItem className="half-item"
  5575. labelCol={{ span: 4 }}
  5576. wrapperCol={{ span: 18 }}
  5577. label="国际化"
  5578. >
  5579. <Radio.Group value={this.state.international} onChange={(e) => {
  5580. this.setState({international:e.target.value })
  5581. }}>
  5582. <Radio value={0}>否</Radio>
  5583. <Radio value={1}>是</Radio>
  5584. </Radio.Group>
  5585. </FormItem>
  5586. </div>
  5587. <div className="clearfix pictures">
  5588. <FormItem
  5589. labelCol={{ span: 4 }}
  5590. wrapperCol={{ span: 18 }}
  5591. label="机构证(PIC)" >
  5592. <PicturesWalls
  5593. pictureSign="PIC"
  5594. fileList={this.getOrgCodeUrl}
  5595. pictureUrl={this.state.orgCodeUrl} />
  5596. <p>图片建议:图片要清晰。</p>
  5597. </FormItem>
  5598. <FormItem
  5599. labelCol={{ span: 4 }}
  5600. wrapperCol={{ span: 18 }}
  5601. label="单位logo" >
  5602. <PicturesWalls
  5603. pictureSign="logo"
  5604. fileList={this.getCompanyLogoUrl}
  5605. pictureUrl={this.state.companyLogoUrl} />
  5606. <p>图片建议:图片要清晰。</p>
  5607. </FormItem>
  5608. </div>
  5609. <div className="clearfix">
  5610. <FormItem
  5611. labelCol={{ span: 2 }}
  5612. wrapperCol={{ span: 18 }}
  5613. label="业务范围" >
  5614. <Input type="textarea" rows={4} value={this.state.businessScope}
  5615. onChange={(e)=>{this.setState({businessScope:e.target.value})}}/>
  5616. </FormItem>
  5617. <FormItem
  5618. labelCol={{ span: 2 }}
  5619. wrapperCol={{ span: 18 }}
  5620. label="单位简介" >
  5621. <Input type="textarea" rows={4} value={this.state.introduction}
  5622. onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
  5623. </FormItem>
  5624. </div>
  5625. </div>
  5626. </Spin>
  5627. </Form> :<Form horizontal id="demand-form">
  5628. <Spin spinning={this.state.loading}>
  5629. <div className="clearfix" style={{paddingLeft:'60px'}}>
  5630. <FormItem className="half-item"
  5631. labelCol={{ span: 4 }}
  5632. wrapperCol={{ span: 18 }}
  5633. label="客户名称"
  5634. >
  5635. <span>{theInformation.identifyName}</span>
  5636. </FormItem>
  5637. </div>
  5638. <div className="clearfix" style={{paddingLeft:'60px'}}>
  5639. <FormItem className="half-item"
  5640. labelCol={{ span: 4 }}
  5641. wrapperCol={{ span: 18 }}
  5642. label="行业"
  5643. >
  5644. <span>{getIndustry(String(theInformation.industry))}</span>
  5645. </FormItem>
  5646. <FormItem className="half-item"
  5647. labelCol={{ span: 4 }}
  5648. wrapperCol={{ span: 18 }}
  5649. label="社会属性"
  5650. >
  5651. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  5652. </FormItem>
  5653. <FormItem className="half-item"
  5654. labelCol={{ span: 4 }}
  5655. wrapperCol={{ span: 18 }}
  5656. label="省-市-区"
  5657. >
  5658. <span>{this.state.proviceCityArea}</span>
  5659. </FormItem>
  5660. <FormItem className="half-item"
  5661. labelCol={{ span: 4 }}
  5662. wrapperCol={{ span: 18 }}
  5663. label="通信地址"
  5664. >
  5665. <span>{theInformation.postalAddress}</span>
  5666. </FormItem>
  5667. <FormItem className="half-item"
  5668. labelCol={{ span: 4 }}
  5669. wrapperCol={{ span: 18 }}
  5670. label="固定电话"
  5671. >
  5672. <span>{theInformation.contactsFixedTel}</span>
  5673. </FormItem>
  5674. <FormItem className="half-item"
  5675. labelCol={{ span: 4 }}
  5676. wrapperCol={{ span: 18 }}
  5677. label="客户传真"
  5678. >
  5679. <span>{theInformation.contactsFax}</span>
  5680. </FormItem>
  5681. <FormItem className="half-item"
  5682. labelCol={{ span: 4 }}
  5683. wrapperCol={{ span: 18 }}
  5684. label="注册资本"
  5685. >
  5686. <span>{theInformation.registeredCapital}</span>
  5687. </FormItem>
  5688. <FormItem className="half-item"
  5689. labelCol={{ span: 4 }}
  5690. wrapperCol={{ span: 18 }}
  5691. label="单位规模"
  5692. >
  5693. <span>{theInformation.enterpriseScale}</span>
  5694. </FormItem>
  5695. <FormItem className="half-item"
  5696. labelCol={{ span: 4 }}
  5697. wrapperCol={{ span: 18 }}
  5698. label="法人名称"
  5699. >
  5700. <span>{theInformation.legalPerson}</span>
  5701. </FormItem>
  5702. <FormItem className="half-item"
  5703. labelCol={{ span: 4 }}
  5704. wrapperCol={{ span: 18 }}
  5705. label="身份证号码"
  5706. >
  5707. <span>{theInformation.legalPersonIdCard}</span>
  5708. </FormItem>
  5709. <FormItem className="half-item"
  5710. labelCol={{ span: 4 }}
  5711. wrapperCol={{ span: 18 }}
  5712. label="法人电话"
  5713. >
  5714. <span>{theInformation.legalPersonTel}</span>
  5715. </FormItem>
  5716. <FormItem className="half-item"
  5717. labelCol={{ span: 4 }}
  5718. wrapperCol={{ span: 18 }}
  5719. label="电子邮箱"
  5720. >
  5721. <span>{theInformation.legalPersonEmail}</span>
  5722. </FormItem>
  5723. <FormItem className="half-item"
  5724. labelCol={{ span: 4 }}
  5725. wrapperCol={{ span: 18 }}
  5726. label="投资机构"
  5727. >
  5728. <span>{this.state.investment?'是':'否'}</span>
  5729. </FormItem>
  5730. <FormItem className="half-item"
  5731. labelCol={{ span: 4 }}
  5732. wrapperCol={{ span: 18 }}
  5733. label="高新"
  5734. >
  5735. <span>{this.state.highTechZone?'是':'否'}</span>
  5736. </FormItem>
  5737. <FormItem className="half-item"
  5738. labelCol={{ span: 4 }}
  5739. wrapperCol={{ span: 18 }}
  5740. label="上市"
  5741. >
  5742. <span>{this.state.listed?'是':'否'}</span>
  5743. </FormItem>
  5744. <FormItem className="half-item"
  5745. labelCol={{ span: 4 }}
  5746. wrapperCol={{ span: 18 }}
  5747. label="国际化"
  5748. >
  5749. <span>{this.state.international?'是':'否'}</span>
  5750. </FormItem>
  5751. <FormItem className="half-item"
  5752. labelCol={{ span: 4 }}
  5753. wrapperCol={{ span: 18 }}
  5754. label="机构代码"
  5755. >
  5756. <span>{theInformation.orgCode}</span>
  5757. </FormItem>
  5758. <div className="clearfix pictures">
  5759. <FormItem
  5760. labelCol={{ span: 4 }}
  5761. wrapperCol={{ span: 18 }}
  5762. label="机构证(PIC)" >
  5763. <div className="clearfix">
  5764. <Upload className="demandDetailShow-upload"
  5765. listType="picture-card"
  5766. fileList={this.state.orgCodeUrl}
  5767. onPreview={(file) => {
  5768. this.setState({
  5769. previewImage: file.url || file.thumbUrl,
  5770. previewVisible: true,
  5771. });
  5772. }} >
  5773. </Upload>
  5774. <Modal maskClosable={false} footer={null}
  5775. visible={this.state.previewVisible}
  5776. onCancel={() => { this.setState({ previewVisible: false }) }}>
  5777. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  5778. </Modal>
  5779. </div>
  5780. </FormItem>
  5781. <FormItem
  5782. labelCol={{ span: 4 }}
  5783. wrapperCol={{ span: 18 }}
  5784. label="单位logo" >
  5785. <div className="clearfix">
  5786. <Upload className="demandDetailShow-upload"
  5787. listType="picture-card"
  5788. fileList={this.state.companyLogoUrl}
  5789. onPreview={(file) => {
  5790. this.setState({
  5791. previewImage: file.url || file.thumbUrl,
  5792. previewVisible: true,
  5793. });
  5794. }} >
  5795. </Upload>
  5796. <Modal maskClosable={false} footer={null}
  5797. visible={this.state.previewVisible}
  5798. onCancel={() => { this.setState({ previewVisible: false }) }}>
  5799. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  5800. </Modal>
  5801. </div>
  5802. </FormItem>
  5803. </div>
  5804. <div className="clearfix">
  5805. <FormItem
  5806. labelCol={{ span: 2 }}
  5807. wrapperCol={{ span: 18 }}
  5808. label="业务范围" >
  5809. <span>{theInformation.businessScope}</span>
  5810. </FormItem>
  5811. <FormItem
  5812. labelCol={{ span: 2 }}
  5813. wrapperCol={{ span: 18 }}
  5814. label="单位简介" >
  5815. <span>{theInformation.introduction}</span>
  5816. </FormItem>
  5817. </div>
  5818. </div>
  5819. </Spin>
  5820. </Form>}
  5821. </TabPane>
  5822. <TabPane tab="联系人信息" key="2">
  5823. <div className="clearfix">
  5824. <Spin spinning={this.state.loading}>
  5825. <Form horizontal id="demand-form" onSubmit={this.contactSave} >
  5826. <Table
  5827. pagination={false}
  5828. columns={this.state.ContactsLists}
  5829. dataSource={this.state.contactList}
  5830. />
  5831. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  5832. </div>
  5833. </Form>
  5834. </Spin>
  5835. </div>
  5836. </TabPane>
  5837. <TabPane tab="账户信息" key="3">
  5838. <div className="clearfix">
  5839. <Form horizontal id="demand-form" onSubmit={this.accountSave} >
  5840. <Spin spinning={this.state.loading} >
  5841. <div className="clearfix">
  5842. <FormItem className="half-item"
  5843. {...formItemLayout}
  5844. label="注册手机号" >
  5845. {adminData.isSuperAdmin?<div><Input value={this.state.mobile} disabled onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  5846. </div>:<span>{this.state.mobile}</span>}
  5847. </FormItem>
  5848. <FormItem className="half-item"
  5849. {...formItemLayout}
  5850. label="注册用户名" >
  5851. {adminData.isSuperAdmin?<Input value={this.state.nickname}
  5852. onChange={(e) => { this.setState({ nickname: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  5853. </FormItem>
  5854. <FormItem className="half-item"
  5855. {...formItemLayout}
  5856. label="注册邮箱" >
  5857. {adminData.isSuperAdmin?<Input value={this.state.email}
  5858. onChange={(e) => { this.setState({ email: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  5859. </FormItem>
  5860. </div>
  5861. <FormItem className="half-item"
  5862. {...formItemLayout}
  5863. label="客户来源" >
  5864. <span>{this.state.source}</span>
  5865. </FormItem>
  5866. <FormItem className="half-item"
  5867. {...formItemLayout}
  5868. label="客户类型" >
  5869. <span>{this.state.type}</span>
  5870. </FormItem>
  5871. <FormItem className="half-item"
  5872. {...formItemLayout}
  5873. label="创建时间" >
  5874. <span>{this.state.createTimes}</span>
  5875. </FormItem>
  5876. <FormItem className="half-item"
  5877. {...formItemLayout}
  5878. label="账户状态"
  5879. >
  5880. {adminData.isSuperAdmin?<Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  5881. {
  5882. statuslist.map(function (item) {
  5883. return <Select.Option key={item.value} >{item.key}</Select.Option>
  5884. })
  5885. }
  5886. </Select>:<span>{getStatuslist(this.state.status)}</span>}
  5887. </FormItem>
  5888. <div className="clearfix">
  5889. <FormItem className="half-item"
  5890. {...formItemLayout}
  5891. label="会员"
  5892. >
  5893. {adminData.isSuperAdmin?<Radio.Group value={this.state.isMember} onChange={(e) => {
  5894. this.setState({ isMember: e.target.value })
  5895. }}>
  5896. <Radio value={0}>否</Radio>
  5897. <Radio value={1}>是</Radio>
  5898. </Radio.Group>:<span>{this.state.isMember?'是':'否'}</span>}
  5899. </FormItem>
  5900. <FormItem className="half-item"
  5901. {...formItemLayout}
  5902. label="会员等级"
  5903. >
  5904. {adminData.isSuperAdmin?<Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  5905. {
  5906. lvl.map(function (item) {
  5907. return <Select.Option key={item.value} >{item.key}</Select.Option>
  5908. })
  5909. }
  5910. </Select>:<span>{getLvl(this.state.lvl)}</span>}
  5911. </FormItem>
  5912. <FormItem className="half-item"
  5913. {...formItemLayout}
  5914. label="会员状态"
  5915. >
  5916. {adminData.isSuperAdmin?<Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  5917. {
  5918. currentMember.map(function (item) {
  5919. return <Select.Option key={item.value} >{item.key}</Select.Option>
  5920. })
  5921. }
  5922. </Select>:<span>{getCurrentMember(this.state.currentMemberStatus)}</span>}
  5923. </FormItem>
  5924. </div>
  5925. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  5926. </div>
  5927. </Spin>
  5928. </Form>
  5929. </div>
  5930. </TabPane>
  5931. <TabPane tab="客户拜访" key="4">
  5932. <div className="clearfix">
  5933. <Spin spinning={this.state.loading}>
  5934. <Table
  5935. pagination={false}
  5936. columns={this.state.visitsList}
  5937. dataSource={this.state.visitArrList}
  5938. onRowClick={this.VisitRowClick}
  5939. />
  5940. </Spin>
  5941. </div>
  5942. </TabPane>
  5943. <TabPane tab="业务意向" key="5">
  5944. <div className="clearfix">
  5945. <Spin spinning={this.state.loading}>
  5946. <Table
  5947. pagination={this.state.paginationt}
  5948. columns={this.state.businessIntentionList}
  5949. dataSource={this.state.dataBusiness}
  5950. />
  5951. </Spin>
  5952. </div>
  5953. </TabPane>
  5954. <TabPane tab="业务订单" key="6">
  5955. </TabPane>
  5956. <TabPane tab="技术需求" key="7">
  5957. </TabPane>
  5958. <TabPane tab="技术成果" key="8">
  5959. </TabPane>
  5960. <TabPane tab="技术专家" key="9">
  5961. </TabPane>
  5962. </Tabs>
  5963. </Modal>
  5964. <Modal
  5965. className="customeDetails"
  5966. footer=''
  5967. title="拜访详情"
  5968. width='1000px'
  5969. visible={this.state.visitModul}
  5970. onOk={this.visitOk}
  5971. onCancel={this.visitCancel}
  5972. >
  5973. <Form horizontal id="demand-form" onSubmit={this.visitSubmit}>
  5974. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  5975. <div className="clearfix">
  5976. <FormItem className="half-item"
  5977. {...formItemLayout}
  5978. label="拜访方式" >
  5979. <Radio.Group value={this.state.contactType} onChange={(e) => {
  5980. this.setState({ contactType: e.target.value })
  5981. }}>
  5982. <Radio value={0}>外出</Radio>
  5983. <Radio value={1}>电话</Radio>
  5984. <Radio value={2}>QQ</Radio>
  5985. <Radio value={3}>微信</Radio>
  5986. <Radio value={4}>邮箱</Radio>
  5987. </Radio.Group>
  5988. </FormItem>
  5989. <FormItem className="half-item"
  5990. {...formItemLayout}
  5991. >
  5992. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  5993. </FormItem>
  5994. <div className="clearfix">
  5995. <FormItem className="half-item"
  5996. {...formItemLayout}
  5997. label="客户名称"
  5998. >
  5999. <span>{this.state.identifyName}</span>
  6000. </FormItem>
  6001. <FormItem className="half-item"
  6002. {...formItemLayout}
  6003. label="拜访人"
  6004. >
  6005. <span>{this.state.adminName}</span>
  6006. </FormItem>
  6007. <FormItem className="half-item"
  6008. {...formItemLayout}
  6009. label="当前联系人"
  6010. >
  6011. <span>{this.state.contacts}</span>
  6012. </FormItem>
  6013. {this.state.contacts?<span></span>:
  6014. <FormItem className="half-item"
  6015. {...formItemLayout}
  6016. label="联系人"
  6017. >
  6018. <Select placeholder="选择联系人" style={{ width: 140 }}
  6019. value={this.state.lastName}
  6020. onChange={this.hundleName}>
  6021. {this.state.orderStatusOption}
  6022. </Select>
  6023. </FormItem>
  6024. }
  6025. <FormItem className="half-item"
  6026. {...formItemLayout}
  6027. label="拜访时间"
  6028. >
  6029. <span>{this.state.followTime}</span>
  6030. </FormItem>
  6031. <FormItem className="half-item"
  6032. {...formItemLayout}
  6033. label="联系电话"
  6034. >
  6035. <span>{this.state.nub}</span>
  6036. </FormItem>
  6037. </div>
  6038. <div className="clearfix">
  6039. <FormItem
  6040. labelCol={{ span: 4 }}
  6041. wrapperCol={{ span: 16 }}
  6042. label="拜访备注" >
  6043. <Input type="textarea" rows={4} value={this.state.result}
  6044. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  6045. </FormItem>
  6046. </div>
  6047. <div className="clearfix">
  6048. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  6049. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  6050. <Spin spinning={this.state.loading}>
  6051. <Table
  6052. rowKey={record => record.id}
  6053. pagination={false}
  6054. columns={this.state.intentionList}
  6055. dataSource={this.state.data}
  6056. />
  6057. </Spin>
  6058. </div>
  6059. </div>
  6060. </div>
  6061. </Spin>:<Spin spinning={this.state.loading}>
  6062. <div className="clearfix">
  6063. <FormItem className="half-item"
  6064. {...formItemLayout}
  6065. label="拜访方式" >
  6066. <span>{getContactType(String(this.state.contactType))}</span>
  6067. </FormItem>
  6068. <div className="clearfix">
  6069. <FormItem className="half-item"
  6070. {...formItemLayout}
  6071. label="客户名称"
  6072. >
  6073. <span>{this.state.identifyName}</span>
  6074. </FormItem>
  6075. <FormItem className="half-item"
  6076. {...formItemLayout}
  6077. label="拜访人"
  6078. >
  6079. <span>{this.state.adminName}</span>
  6080. </FormItem>
  6081. <FormItem className="half-item"
  6082. {...formItemLayout}
  6083. label="当前联系人"
  6084. >
  6085. <span>{this.state.contacts}</span>
  6086. </FormItem>
  6087. <FormItem className="half-item"
  6088. {...formItemLayout}
  6089. label="拜访时间"
  6090. >
  6091. <span>{this.state.followTime}</span>
  6092. </FormItem>
  6093. <FormItem className="half-item"
  6094. {...formItemLayout}
  6095. label="联系电话"
  6096. >
  6097. <span>{this.state.nub}</span>
  6098. </FormItem>
  6099. </div>
  6100. <div className="clearfix">
  6101. <FormItem
  6102. labelCol={{ span: 4 }}
  6103. wrapperCol={{ span: 16 }}
  6104. label="拜访备注" >
  6105. <span>{this.state.result}</span>
  6106. </FormItem>
  6107. </div>
  6108. <div className="clearfix">
  6109. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  6110. <Spin spinning={this.state.loading}>
  6111. <Table
  6112. rowKey={record => record.id}
  6113. pagination={false}
  6114. columns={this.state.intentionList}
  6115. dataSource={this.state.data}
  6116. />
  6117. </Spin>
  6118. </div>
  6119. </div>
  6120. </div>
  6121. </Spin>}
  6122. </Form>
  6123. </Modal>
  6124. <Modal
  6125. footer=''
  6126. title="修改密码"
  6127. width='600px'
  6128. visible={this.state.passworldModul}
  6129. onOk={this.passworldOk}
  6130. onCancel={this.passworldCancel}
  6131. >
  6132. <div className="clearfix">
  6133. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  6134. <Spin spinning={this.state.loading}>
  6135. <div className="clearfix">
  6136. <FormItem className="half-item"
  6137. {...formItemLayout}
  6138. label="原密码" >
  6139. <Input type="password" value={this.state.companyNamet1} onChange={(e) => { this.setState({ companyNamet1: e.target.value }); }} required="required" />
  6140. </FormItem>
  6141. </div>
  6142. <div className="clearfix">
  6143. <FormItem className="half-item"
  6144. {...formItemLayout}
  6145. label="新密码" >
  6146. <Input type="password" value={this.state.companyName1} onChange={(e) => { this.setState({ companyName1: e.target.value }); }} required="required" />
  6147. </FormItem>
  6148. </div>
  6149. <div className="clearfix">
  6150. <FormItem className="half-item"
  6151. {...formItemLayout}
  6152. label="确认密码" >
  6153. <Input type="password" value={this.state.companyNam1} onChange={(e) => { this.setState({ companyNam1: e.target.value }); }} required="required" />
  6154. </FormItem>
  6155. </div>
  6156. </Spin>
  6157. </Form>
  6158. </div>
  6159. </Modal>
  6160. <Modal
  6161. footer=''
  6162. width='800px'
  6163. title="新增联系人"
  6164. visible={this.state.addcontactModul}
  6165. onOk={this.addcontactModulOK}
  6166. onCancel={this.addcontactModulcancel}
  6167. >
  6168. <Form horizontal onSubmit={this.submitcontactman} id="demand-form">
  6169. <Spin spinning={this.state.loading}>
  6170. <Row>
  6171. <FormItem
  6172. labelCol={{ span: 3 }}
  6173. wrapperCol={{ span: 14 }}
  6174. label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
  6175. <Radio.Group value={this.state.newsex} onChange={(e) => {
  6176. this.setState({ newsex: e.target.value })
  6177. }}>
  6178. <Radio value='男'>男</Radio>
  6179. <Radio value='女'>女</Radio>
  6180. </Radio.Group>
  6181. </FormItem>
  6182. </Row>
  6183. <Row style={{ paddingLeft:'50px' }}>
  6184. <Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>
  6185. <Col span={8}>
  6186. <Input value={this.state.newname} required="required"
  6187. onChange={(e) => { this.setState({ newname: e.target.value }) }} />
  6188. </Col>
  6189. <Col span={2} style={{ marginLeft: '50px' }}><span style={{color:'red'}}>*</span>手机:</Col>
  6190. <Col span={8}>
  6191. <Input value={this.state.newmobile} required="required"
  6192. onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />
  6193. </Col>
  6194. </Row>
  6195. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  6196. <Col span={2}>微信:</Col>
  6197. <Col span={8}>
  6198. <Input value={this.state.newwechat}
  6199. onChange={(e) => { this.setState({ newwechat: e.target.value }) }} />
  6200. </Col>
  6201. <Col span={2} style={{ marginLeft: '50px' }}>Q Q:</Col>
  6202. <Col span={8}>
  6203. <Input value={this.state.newqq}
  6204. onChange={(e) => { this.setState({ newqq: e.target.value }) }} />
  6205. </Col>
  6206. </Row>
  6207. <Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
  6208. <Col span={2}>部门:</Col>
  6209. <Col span={8}>
  6210. <Input value={this.state.newdepatrment}
  6211. onChange={(e) => { this.setState({ newdepatrment: e.target.value }) }} />
  6212. </Col>
  6213. <Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
  6214. <Col span={8}>
  6215. <Input value={this.state.newposition}
  6216. onChange={(e) => { this.setState({ newposition: e.target.value }) }} />
  6217. </Col>
  6218. </Row>
  6219. <Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
  6220. <Col span={2}>邮箱:</Col>
  6221. <Col span={8}>
  6222. <Input value={this.state.newemail}
  6223. onChange={(e) => { this.setState({ newemail: e.target.value }) }} />
  6224. </Col>
  6225. </Row>
  6226. <Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
  6227. </Row>
  6228. </Spin>
  6229. </Form>
  6230. </Modal>
  6231. <Modal
  6232. footer=''
  6233. title="业务意向详情"
  6234. width='1000px'
  6235. visible={this.state.businessModul}
  6236. onOk={this.businessIntentionOk}
  6237. onCancel={this.businessIntentionCancel}
  6238. >
  6239. <div className="clearfix">
  6240. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  6241. <Spin spinning={this.state.loading}>
  6242. <div className="clearfix">
  6243. <FormItem className="half-item"
  6244. {...formItemLayout}
  6245. label="意向业务名称" >
  6246. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  6247. </FormItem>
  6248. <FormItem className="half-item"
  6249. {...formItemLayout}
  6250. label="意向时间" >
  6251. <span>{this.state.createTime}</span>
  6252. </FormItem>
  6253. <FormItem className="half-item"
  6254. {...formItemLayout}
  6255. label="客户名称" >
  6256. <span>{this.state.identifyName}</span>
  6257. </FormItem>
  6258. <FormItem className="half-item"
  6259. {...formItemLayout}
  6260. label="营销员" >
  6261. <span>{this.state.adminName}</span>
  6262. </FormItem>
  6263. <FormItem className="half-item"
  6264. {...formItemLayout}
  6265. label="意向业务进度" >
  6266. <span>{getfllowSituation(this.state.followSituation)}</span>
  6267. </FormItem>
  6268. <FormItem className="half-item"
  6269. {...formItemLayout}
  6270. label="业务客户状态" >
  6271. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  6272. </FormItem>
  6273. </div>
  6274. <div className="clearfix">
  6275. <FormItem className="half-item"
  6276. {...formItemLayout}
  6277. label="业务意向说明" >
  6278. <span>{this.state.remarks}</span>
  6279. </FormItem>
  6280. </div>
  6281. <div className="clearfix">
  6282. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  6283. <div className="clearfix">
  6284. <Spin spinning={this.state.loading}>
  6285. <Table
  6286. pagination={this.state.paginations}
  6287. columns={this.state.businessFollowList}
  6288. dataSource={this.state.visitArrList}
  6289. />
  6290. </Spin>
  6291. </div>
  6292. </div>
  6293. </Spin>
  6294. </Form>
  6295. </div>
  6296. </Modal>
  6297. <Modal
  6298. footer=''
  6299. title="业务跟进详情"
  6300. width='600px'
  6301. visible={this.state.businessFollowModul}
  6302. onOk={this.businessFollowOk}
  6303. onCancel={this.businessFollowCancel}
  6304. >
  6305. <div className="clearfix">
  6306. <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
  6307. <Spin spinning={this.state.loading}>
  6308. <div className="clearfix">
  6309. <FormItem className="half-item"
  6310. {...formItemLayout}
  6311. label="意向业务名称" >
  6312. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  6313. </FormItem>
  6314. <FormItem className="half-item"
  6315. {...formItemLayout}
  6316. label="意向时间" >
  6317. <span>{this.state.createTimes}</span>
  6318. </FormItem>
  6319. <FormItem className="half-item"
  6320. {...formItemLayout}
  6321. label="客户名称" >
  6322. <span>{this.state.identifyNames}</span>
  6323. </FormItem>
  6324. <FormItem className="half-item"
  6325. {...formItemLayout}
  6326. label="营销员" >
  6327. <span>{this.state.adminNames}</span>
  6328. </FormItem>
  6329. <FormItem className="half-item"
  6330. {...formItemLayout}
  6331. label="意向业务进度" >
  6332. <span>{getfllowSituation(this.state.followSituations)}</span>
  6333. </FormItem>
  6334. <FormItem className="half-item"
  6335. {...formItemLayout}
  6336. label="业务客户状态" >
  6337. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  6338. </FormItem>
  6339. </div>
  6340. <div className="clearfix">
  6341. <FormItem className="half-item"
  6342. {...formItemLayout}
  6343. label="业务意向说明" >
  6344. <span>{this.state.remarkss}</span>
  6345. </FormItem>
  6346. </div>
  6347. <div className="clearfix">
  6348. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  6349. <FormItem className="half-item"
  6350. {...formItemLayout}
  6351. label="拜访方式" >
  6352. <span>{getContactType(this.state.contactTypes)}</span>
  6353. </FormItem>
  6354. <FormItem className="half-item"
  6355. {...formItemLayout}
  6356. label="联系人" >
  6357. <span>{this.state.contactss}</span>
  6358. </FormItem>
  6359. <FormItem className="half-item"
  6360. {...formItemLayout}
  6361. label="联系电话" >
  6362. <span>{this.state.contactMobiles}</span>
  6363. </FormItem>
  6364. <FormItem className="half-item"
  6365. {...formItemLayout}
  6366. label="拜访时间" >
  6367. <span>{this.state.followTimes}</span>
  6368. </FormItem>
  6369. <FormItem className="half-item"
  6370. {...formItemLayout}
  6371. label="拜访人" >
  6372. <span>{this.state.adminNames}</span>
  6373. </FormItem>
  6374. <div className="clearfix">
  6375. <FormItem className="half-item"
  6376. {...formItemLayout}
  6377. label="拜访备注" >
  6378. <span>{this.state.results}</span>
  6379. </FormItem>
  6380. </div>
  6381. </div>
  6382. </Spin>
  6383. </Form>
  6384. </div>
  6385. </Modal>
  6386. </div >
  6387. );
  6388. }
  6389. }));
  6390. const Tablees=Form.create()(React.createClass({
  6391. //详情tab切换数据处理
  6392. callbacks(e) {
  6393. this.setState({
  6394. callnubs: e,
  6395. })
  6396. if(e == '1') {
  6397. }
  6398. if(e == '2') {
  6399. }
  6400. },
  6401. getInitialState() {
  6402. return {
  6403. callnubs: "1",
  6404. }
  6405. },
  6406. render() {
  6407. return(
  6408. <div className="clearfix" style={{marginTop:'0px',marginLeft:'20px'}}>
  6409. <Tabs onChange={this.callbacks} type="card" activeKey={this.state.callnubs} style={{paddingLeft:'15px',paddingRight:'15px',marginRight:'20px'}}>
  6410. <TabPane tab="个人客户" key="1" >
  6411. <QueryCustomer />
  6412. </TabPane>
  6413. <TabPane tab="单位客户" key="2">
  6414. <PublicCustomer />
  6415. </TabPane>
  6416. </Tabs>
  6417. </div>
  6418. );
  6419. }
  6420. }));
  6421. export default Tablees;