KtLetter.vue 331 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741
  1. <template>
  2. <div class="body">
  3. <div class="Enclosure flex f-c back" v-if="isLetter">
  4. <div class="home flex j-s a-c">
  5. <div class="flex j-s a-c">
  6. <img src="../../../../src/icon/归属信息.png" alt class="icon-img" />
  7. <span style="margin-left:10px;">归属信息</span>
  8. </div>
  9. </div>
  10. <el-form class="demo-ruleForm" :model="userform" ref="userform" label-width="130px" size="small"
  11. style="margin-top: 15px" disabled label-position="top">
  12. <el-row type="flex" justify="space-between">
  13. <el-col :span="5">
  14. <el-form-item label="业务员">
  15. <el-input v-model="userform.name"></el-input>
  16. </el-form-item>
  17. </el-col>
  18. <el-col :span="5">
  19. <el-form-item label="工号">
  20. <el-input v-model="userform.id" type="text"></el-input>
  21. </el-form-item>
  22. </el-col>
  23. <el-col :span="5">
  24. <el-form-item label="工号类型">
  25. <el-select v-model="userform.usertype" >
  26. <el-option label="业务员" value="A"></el-option>
  27. <el-option label="代理人" value="B"></el-option>
  28. </el-select>
  29. </el-form-item>
  30. </el-col>
  31. <el-col :span="5">
  32. <el-form-item label="归属">
  33. <el-input v-model="deptName"></el-input>
  34. </el-form-item>
  35. </el-col>
  36. </el-row>
  37. </el-form>
  38. </div>
  39. <div class="Enclosure flex f-c back" v-if="isLetter">
  40. <div class="home flex j-s a-c">
  41. <div class="flex j-s a-c">
  42. <img src="../../../../src/icon/快速查询.png" alt class="icon-img" />
  43. <span style="margin-left: 10px">快速查询</span>
  44. </div>
  45. <el-button size="small" type="primary" @click="continuousquery()">
  46. <i class="el-icon-search" style="margin-right: 1px"></i>
  47. 续保查询
  48. </el-button>
  49. </div>
  50. <el-form class="demo-ruleForm" :model="attributionform" ref="continuousform" label-width="130px" size="small"
  51. style="margin-top: 15px" label-position="top">
  52. <el-row>
  53. <el-col :span="5">
  54. <el-form-item label="保险公司" prop="companyId">
  55. <el-select v-model="attributionform.companyId" placeholder="请选择保险公司" @change="continuousChange">
  56. <el-option v-for="(item, index) in continuousCompanyList" :key="index" :label="item.namesimple"
  57. :value="item.id"></el-option>
  58. </el-select>
  59. </el-form-item>
  60. </el-col>
  61. <el-col :span="5" :offset="1" v-for="(domain, index) in attributionform.configure" :key="domain.index">
  62. <el-form-item :label="domain.label" :prop="'configure.' + index + '.value'" :rules="{
  63. required: true,
  64. message: domain.label + '不能为空',
  65. trigger: 'blur',
  66. }">
  67. <el-input v-model="domain.value" :type="domain.type"></el-input>
  68. </el-form-item>
  69. </el-col>
  70. </el-row>
  71. </el-form>
  72. </div>
  73. <div class="Enclosure flex f-c back">
  74. <div class="home flex j-s a-c">
  75. <div class="flex j-s a-c color" id="Car">
  76. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" />
  77. <span style="margin-left:10px;">车辆信息</span>
  78. </div>
  79. <el-button size="small" type="primary" @click="uploadcardialogVisible = true">
  80. <i class="el-icon-camera-solid" style="margin-right:1px;"></i>
  81. 证件识别
  82. </el-button>
  83. </div>
  84. <el-form class="demo-ruleForm" :model="carInfo" ref="carInfo" :rules="rules" label-width="130px" size="small"
  85. label-position="top" style="margin-top: 15px">
  86. <el-row style="flex-wrap: wrap; display: flex;">
  87. <el-col :span="5">
  88. <el-form-item label="车牌" :prop="licenseplate ? 'licenseNo' : ''">
  89. <div style="display: flex;">
  90. <el-input style="width: 75%;margin-right:13px" v-model="carInfo.licenseNo" placeholder="请输入车牌号"
  91. :disabled="!licenseplate"></el-input>
  92. <el-checkbox v-model="licenseplate">已上牌</el-checkbox>
  93. </div>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="5" :offset="1">
  97. <el-form-item label="车辆识别代码" prop="frameNo">
  98. <el-input placeholder="请输入车辆识别码" v-model="carInfo.frameNo" maxlength="17" type="text" show-word-limit>
  99. <el-button slot="append" type="primary" icon="el-icon-search" @click="toChooseVin(carInfo.frameNo)"
  100. style="color: #fff;background-color:#D42426;border-color:#D42426;"></el-button>
  101. </el-input>
  102. </el-form-item>
  103. </el-col>
  104. <el-col :span="5" :offset="1">
  105. <el-form-item label="品牌型号" prop="modelcname">
  106. <el-input v-model="carInfo.modelcname" placeholder="请输入品牌型号" type="text">
  107. <el-button slot="append" icon="el-icon-search" type="primary"
  108. @click="toChooseVehicleType(carInfo.modelcname)"
  109. style="color: #fff;background-color:#D42426;border-color:#D42426;border-top:none"></el-button>
  110. </el-input>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :span="5" :offset="1">
  114. <el-form-item label="发动机号" prop="engineNo">
  115. <el-input v-model="carInfo.engineNo" placeholder="请输入发动机号"></el-input>
  116. </el-form-item>
  117. </el-col>
  118. <el-col :span="5">
  119. <el-form-item label="年款" prop="caryear">
  120. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.caryear" placeholder="请输入年款"></el-input>
  121. </el-form-item>
  122. </el-col>
  123. <el-col :span="5" :offset="1">
  124. <el-form-item label="座位数" prop="seatCount">
  125. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.seatCount" placeholder="请输入座位数">
  126. <el-button slot="append">座</el-button>
  127. </el-input>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="5" :offset="1">
  131. <el-form-item label="整备质量" prop="completeKerbMass">
  132. <el-input v-model="carInfo.completeKerbMass" placeholder="请输入整备质量">
  133. <el-button slot="append">千克(KG)</el-button>
  134. </el-input>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :span="5" :offset="1">
  138. <el-form-item label="核定载质量" prop="limitLoad">
  139. <el-input v-model="carInfo.limitLoad" placeholder="请输入核定载质量">
  140. <el-button slot="append">千克(KG)</el-button>
  141. </el-input>
  142. </el-form-item>
  143. </el-col>
  144. <el-col :span="5">
  145. <el-form-item label="排量" prop="enginedesc">
  146. <el-input v-model="carInfo.enginedesc" placeholder="请输入排量">
  147. <el-button slot="append">升(L)</el-button>
  148. </el-input>
  149. </el-form-item>
  150. </el-col>
  151. <el-col :span="5" :offset="1">
  152. <el-form-item label="功率" prop="powerScale">
  153. <el-input v-model="carInfo.powerScale" placeholder="请输入功率">
  154. <el-button slot="append">千瓦(KW)</el-button>
  155. </el-input>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="5" :offset="1">
  159. <el-form-item label="新车购置价" prop="purchasePrice">
  160. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.purchasePrice" placeholder="请输入新车购置价">
  161. <el-button slot="append">元</el-button>
  162. </el-input>
  163. </el-form-item>
  164. </el-col>
  165. <el-col :span="5" :offset="1">
  166. <el-form-item label="使用性质" prop="carnature">
  167. <el-select v-model="carInfo.carnature" placeholder="请选择使用性质" @change="natureFun">
  168. <el-option :label="item.dictTag" :value="item.dictValue"
  169. v-for="(item, index) in natureOfVehicleUseoptions" :key="index"></el-option>
  170. </el-select>
  171. </el-form-item>
  172. </el-col>
  173. <el-col :span="5">
  174. <el-form-item label="车辆用途" prop="vehicleUse">
  175. <el-select v-if="carInfo.carnature == '02'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途">
  176. <el-option :label="item.dictTag" :value="item.dictValue"
  177. v-for="(item, index) in outOfBusinessVehicleUseoptions" :key="index"></el-option>
  178. </el-select>
  179. <el-select v-if="carInfo.carnature == '01'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途">
  180. <el-option :label="item.dictTag" :value="item.dictValue"
  181. v-for="(item, index) in businessVehicleUseoptions" :key="index"></el-option>
  182. </el-select>
  183. </el-form-item>
  184. </el-col>
  185. <el-col :span="5" :offset="1">
  186. <el-form-item label="车辆类型" prop="cartype">
  187. <el-select v-model="carInfo.cartype" placeholder="请选择车辆种类" filterable clearable>
  188. <el-option :label="item.dictValue + item.dictTag" :value="item.dictValue"
  189. v-for="(item, index) in trafficManagementVehicleTypeoptions" :key="index"></el-option>
  190. </el-select>
  191. </el-form-item>
  192. </el-col>
  193. <el-col :span="5" :offset="1">
  194. <el-form-item label="车辆种类" prop="cimodelclass">
  195. <el-select v-model="carInfo.cimodelclass" placeholder="请选择车辆种类" clearable>
  196. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in vehicleTypeoptions"
  197. :key="index"></el-option>
  198. </el-select>
  199. </el-form-item>
  200. </el-col>
  201. <el-col :span="5" :offset="1">
  202. <el-form-item label="能源种类" prop="energyType">
  203. <el-select v-model="carInfo.energyType" placeholder="请选择能源种类">
  204. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in energyTypeoptions"
  205. :key="index"></el-option>
  206. </el-select>
  207. </el-form-item>
  208. </el-col>
  209. <el-col :span="5">
  210. <el-form-item label="注册日期" prop="registerDate">
  211. <el-date-picker v-dateFormat v-model="carInfo.registerDate" :picker-options="pickerOptions"
  212. value-format="yyyy-MM-dd" type="date" placeholder="选择注册日期" placement="bottom-start"></el-date-picker>
  213. </el-form-item>
  214. </el-col>
  215. <el-col :span="5" :offset="1">
  216. <el-form-item label="发证日期" prop="issueDate">
  217. <el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
  218. placeholder="选择发证日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  219. </el-form-item>
  220. </el-col>
  221. <el-col :span="5" :offset="1" v-if="transferDateShow">
  222. <el-form-item label="转移登记日期" prop="transferDate">
  223. <el-date-picker v-dateFormat v-model="carInfo.transferDate" :picker-options="pickerOptions" type="date"
  224. placeholder="选择日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  225. </el-form-item>
  226. </el-col>
  227. </el-row>
  228. </el-form>
  229. </div>
  230. <div class="Enclosure flex f-c back">
  231. <div class="home flex j-s a-c">
  232. <div class="flex j-s a-c color" id="CheZhu">
  233. <img src="../../../../src/icon/车主信息.png" alt class="icon-img" />
  234. <span style="margin-left:10px;">车主信息</span>
  235. </div>
  236. <el-button size="small" type="primary" @click="uploaduser(2)">
  237. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>证件识别
  238. </el-button>
  239. </div>
  240. <el-form class="demo-ruleForm" :model="ownerInfo" ref="ownerInfo" :rules="rules" label-width="130px" size="small"
  241. style="margin-top: 15px" label-position="top">
  242. <el-row style="flex-wrap: wrap; display: flex;">
  243. <el-col :span="5">
  244. <el-form-item label="车主姓名" prop="name">
  245. <el-input v-model="ownerInfo.name" placeholder="请输入车主姓名"></el-input>
  246. </el-form-item>
  247. </el-col>
  248. <el-col :span="5" :offset="1">
  249. <el-form-item label="证件类型" prop="identifyType">
  250. <el-select v-model="ownerInfo.identifyType" placeholder="身份证" disabled>
  251. <el-option label="身份证" value="01"></el-option>
  252. </el-select>
  253. </el-form-item>
  254. </el-col>
  255. <el-col :span="5" :offset="1">
  256. <el-form-item label="证件号码" prop="identifyNumber">
  257. <el-input v-model="ownerInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  258. show-word-limit @blur="identifyblur('ownerInfo')"></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="5" :offset="1">
  262. <el-form-item label="年龄" prop="age">
  263. <el-input v-model="ownerInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  264. </el-form-item>
  265. </el-col>
  266. <el-col :span="5">
  267. <el-form-item label="性别" prop="gender">
  268. <el-select @change="genderChange" v-model="ownerInfo.gender" placeholder="请选择性别">
  269. <el-option label="男" value="男"></el-option>
  270. <el-option label="女" value="女"></el-option>
  271. </el-select>
  272. </el-form-item>
  273. </el-col>
  274. <el-col :span="5" :offset="1">
  275. <el-form-item label="车主手机号" prop="mobile">
  276. <el-input v-model="ownerInfo.mobile" placeholder="请输入车主手机号" type="text" maxlength="11"
  277. @paste.native="handlePaste($event, 'ownerInfo')" show-word-limit></el-input>
  278. </el-form-item>
  279. </el-col>
  280. <el-col :span="5" :offset="1">
  281. <el-form-item label="地址" prop="addr">
  282. <el-input v-model="ownerInfo.addr" placeholder="请输入地址" type="text"></el-input>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :span="5" :offset="1">
  286. <el-form-item label="有效期起期" prop="identifyValidDate">
  287. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidDate" value-format="yyyy-MM-dd"
  288. :picker-options="pickerOptions" type="date" placeholder="选择注册日期"
  289. placement="bottom-start"></el-date-picker>
  290. </el-form-item>
  291. </el-col>
  292. <el-col :span="5">
  293. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  294. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidEndDate" type="date" value-format="yyyy-MM-dd"
  295. placeholder="选择有效期" placement="bottom-start" style="width: calc(100% - 40px);"></el-date-picker>
  296. <div class="insure-long-term" @click="insureLongterm('ownerInfo')">长期</div>
  297. </el-form-item>
  298. </el-col>
  299. <el-col :span="5" :offset="1">
  300. <el-form-item label="电子邮箱" prop="email">
  301. <el-input v-model="ownerInfo.email" placeholder="请输入电子邮箱"></el-input>
  302. </el-form-item>
  303. </el-col>
  304. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="iscCrownerShow">
  305. <el-form-item label="省市区:">
  306. <el-cascader v-model="ownerInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  307. </el-form-item>
  308. </el-col>-->
  309. </el-row>
  310. </el-form>
  311. </div>
  312. <div class="Enclosure flex f-c back">
  313. <div class="home flex j-s a-c">
  314. <div class="flex j-s a-c">
  315. <img src="../../../../src/icon/投保人信息.png" alt class="icon-img" />
  316. <span style="margin-left:10px;">投保人信息</span>
  317. </div>
  318. <div class="flex a-c j-c">
  319. <div style="font-size:12px;margin:0 10px;">
  320. 同车主
  321. <el-switch v-model="tbczcarShow" active-color="#D42426" @change="tbczcarShowChange()"></el-switch>
  322. </div>
  323. <el-button size="small" type="primary" @click="uploaduser(3)">
  324. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  325. 证件识别
  326. </el-button>
  327. </div>
  328. </div>
  329. <el-form v-show="!tbczcarShow" class="demo-ruleForm" :model="policyHolderInfo" ref="policyHolderInfo" :rules="rules"
  330. label-width="130px" size="small " style="margin-top: 15px" label-position="top">
  331. <el-row style="flex-wrap: wrap; display: flex;">
  332. <el-col :span="5">
  333. <el-form-item label="投保人姓名" prop="name">
  334. <el-input v-model="policyHolderInfo.name" placeholder="请输入投保人姓名"></el-input>
  335. </el-form-item>
  336. </el-col>
  337. <el-col :span="5" :offset="1">
  338. <el-form-item label="证件类型" prop="identifyType">
  339. <el-select v-model="policyHolderInfo.identifyType" placeholder="身份证" disabled>
  340. <el-option label="身份证" value="01"></el-option>
  341. </el-select>
  342. </el-form-item>
  343. </el-col>
  344. <el-col :span="5" :offset="1">
  345. <el-form-item label="证件号码" prop="identifyNumber">
  346. <el-input v-model="policyHolderInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  347. show-word-limit @blur="identifyblur('policyHolderInfo')"></el-input>
  348. </el-form-item>
  349. </el-col>
  350. <el-col :span="5" :offset="1">
  351. <el-form-item label="年龄" prop="age">
  352. <el-input v-model="policyHolderInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  353. </el-form-item>
  354. </el-col>
  355. <el-col :span="5">
  356. <el-form-item label="性别" prop="gender">
  357. <el-select v-model="policyHolderInfo.gender" placeholder="请选择性别">
  358. <el-option label="男" value="男"></el-option>
  359. <el-option label="女" value="女"></el-option>
  360. </el-select>
  361. </el-form-item>
  362. </el-col>
  363. <el-col :span="5" :offset="1">
  364. <el-form-item label="投保人手机号" prop="mobile">
  365. <el-input v-model="policyHolderInfo.mobile" placeholder="请输入投保人手机号" maxlength="11" type="text"
  366. @paste.native="handlePaste($event, 'policyHolderInfo')" show-word-limit></el-input>
  367. </el-form-item>
  368. </el-col>
  369. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  370. <el-form-item label="省市区:">
  371. <el-cascader v-model="selectedOptions2" :options="areaOptions"
  372. @change="event => areahandleChange(event, 'policyHolderInfo')"></el-cascader>
  373. </el-form-item>
  374. </el-col>-->
  375. <el-col :span="5" :offset="1">
  376. <el-form-item label="地址" prop="addr">
  377. <el-input v-model="policyHolderInfo.addr" placeholder="请输入地址" type="text"></el-input>
  378. </el-form-item>
  379. </el-col>
  380. <el-col :span="5" :offset="1">
  381. <el-form-item label="有效期起期" prop="identifyValidDate">
  382. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidDate" value-format="yyyy-MM-dd"
  383. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  384. </el-form-item>
  385. </el-col>
  386. <el-col :span="5">
  387. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  388. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidEndDate" type="date"
  389. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  390. style="width: calc(100% - 40px);"></el-date-picker>
  391. <div class="insure-long-term" @click="insureLongterm('policyHolderInfo')">长期</div>
  392. </el-form-item>
  393. </el-col>
  394. <el-col :span="5" :offset="1">
  395. <el-form-item label="电子邮箱" prop="email">
  396. <el-input v-model="policyHolderInfo.email" placeholder="请输入电子邮箱"></el-input>
  397. </el-form-item>
  398. </el-col>
  399. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isApplicantShow">
  400. <el-form-item label="省市区:">
  401. <el-cascader v-model="policyHolderInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  402. </el-form-item>
  403. </el-col>-->
  404. </el-row>
  405. </el-form>
  406. </div>
  407. <div class="Enclosure flex f-c back">
  408. <div class="home flex j-s a-c">
  409. <div class="flex j-s a-c">
  410. <img src="../../../../src/icon/被投保人信息.png" alt class="icon-img" />
  411. <span style="margin-left:10px;">被保人信息</span>
  412. </div>
  413. <div class="flex j-s a-c">
  414. <div style="font-size:12px;margin:0 10px;">
  415. 同投保人
  416. <el-switch v-model="bbtbcarShow" active-color="#D42426" @change="bbtbcarShowChange()"></el-switch>
  417. </div>
  418. <div style="font-size:12px;margin:0 10px;">
  419. 同车主
  420. <el-switch v-model="bbczcarShow" active-color="#D42426" @change="bbczcarShowChange()"></el-switch>
  421. </div>
  422. <el-button size="small" type="primary" @click="uploaduser(4)">
  423. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  424. 证件识别
  425. </el-button>
  426. </div>
  427. </div>
  428. <el-form v-show="!bbtbcarShow && !bbczcarShow" class="demo-ruleForm" :model="insuredPersonInfo"
  429. ref="insuredPersonInfo" :rules="rules" label-width="130px" size="small" style="margin-top: 15px"
  430. label-position="top">
  431. <el-row style="flex-wrap: wrap; display: flex;">
  432. <el-col :span="5">
  433. <el-form-item label="被保人姓名" prop="name">
  434. <el-input v-model="insuredPersonInfo.name" placeholder="请输入被保人姓名"></el-input>
  435. </el-form-item>
  436. </el-col>
  437. <el-col :span="5" :offset="1">
  438. <el-form-item label="证件类型" prop="identifyType">
  439. <el-select v-model="insuredPersonInfo.identifyType" placeholder="身份证" disabled>
  440. <el-option label="身份证" value="01"></el-option>
  441. </el-select>
  442. </el-form-item>
  443. </el-col>
  444. <el-col :span="5" :offset="1">
  445. <el-form-item label="证件号码" prop="identifyNumber">
  446. <el-input v-model="insuredPersonInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  447. show-word-limit @blur="identifyblur('insuredPersonInfo')"></el-input>
  448. </el-form-item>
  449. </el-col>
  450. <el-col :span="5" :offset="1">
  451. <el-form-item label="年龄" prop="age">
  452. <el-input v-model="insuredPersonInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  453. </el-form-item>
  454. </el-col>
  455. <el-col :span="5">
  456. <el-form-item label="性别" prop="gender">
  457. <el-select v-model="insuredPersonInfo.gender" placeholder="请选择性别">
  458. <el-option label="男" value="男"></el-option>
  459. <el-option label="女" value="女"></el-option>
  460. </el-select>
  461. </el-form-item>
  462. </el-col>
  463. <el-col :span="5" :offset="1">
  464. <el-form-item label="被保人手机号" prop="mobile">
  465. <el-input v-model="insuredPersonInfo.mobile" placeholder="请输入被保人手机号" maxlength="11" type="text"
  466. @paste.native="handlePaste($event, 'insuredPersonInfo')" show-word-limit></el-input>
  467. </el-form-item>
  468. </el-col>
  469. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  470. <el-form-item label="省市区:">
  471. <el-cascader v-model="selectedOptions3" :options="areaOptions"
  472. @change="event => areahandleChange(event, 'insuredPersonInfo')"></el-cascader>
  473. </el-form-item>
  474. </el-col>-->
  475. <el-col :span="5" :offset="1">
  476. <el-form-item label="地址" prop="addr">
  477. <el-input v-model="insuredPersonInfo.addr" placeholder="请输入地址" type="text"></el-input>
  478. </el-form-item>
  479. </el-col>
  480. <el-col :span="5" :offset="1">
  481. <el-form-item label="有效期起期" prop="identifyValidDate">
  482. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidDate" value-format="yyyy-MM-dd"
  483. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  484. </el-form-item>
  485. </el-col>
  486. <el-col :span="5">
  487. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  488. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidEndDate" type="date"
  489. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  490. style="width: calc(100% - 40px);"></el-date-picker>
  491. <div class="insure-long-term" @click="insureLongterm('insuredPersonInfo')">长期</div>
  492. </el-form-item>
  493. </el-col>
  494. <el-col :span="5" :offset="1">
  495. <el-form-item label="电子邮箱" prop="email">
  496. <el-input v-model="insuredPersonInfo.email" placeholder="请输入电子邮箱"></el-input>
  497. </el-form-item>
  498. </el-col>
  499. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isInsuredShow">
  500. <el-form-item label="省市区:">
  501. <el-cascader v-model="insuredPersonInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  502. </el-form-item>
  503. </el-col>-->
  504. </el-row>
  505. </el-form>
  506. </div>
  507. <div class="Enclosure flex f-c back">
  508. <div class="home flex j-s a-c">
  509. <div class="flex j-s a-c color" id="insurance">
  510. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" />
  511. <span style="margin-left:10px;">投保信息</span>
  512. <el-switch style="margin:0 10px 0 30px;" @change="immediatelyChange" v-model="immediatelyValue"
  513. active-color="#D42426"></el-switch>
  514. <span style="font-weight:normal;font-size: 13px;">即时投保</span>
  515. </div>
  516. </div>
  517. <el-form class="back demo-ruleForm" :inline="true" :model="Carinsurance" label-width="150px" size="small"
  518. style="margin-top: 15px" label-position="top">
  519. <div class="flex j-start a-c">
  520. <div class="flex j-c a-start">
  521. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="jqchecked"
  522. @change="jqcheckedChange"></el-checkbox>
  523. <div class="flex f-c a-c">
  524. <el-form-item label="交强险起保日期" prop="identifyNumber">
  525. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqstartDate" @change="jqChange"
  526. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  527. </el-form-item>
  528. <el-form-item label="交强险终保日期" prop="identifyNumber">
  529. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqendDate" type="datetime"
  530. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  531. </el-form-item>
  532. </div>
  533. </div>
  534. <div class="flex f-c a-c synchronous" style="margin: 0 50px;" @click="synchronization">
  535. <span style="font-size:12px;">同步</span>
  536. </div>
  537. <div class="flex j-c a-start">
  538. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="sychecked"
  539. @change="sycheckedChange"></el-checkbox>
  540. <div class="flex f-c a-c">
  541. <el-form-item label="商业险起保日期" prop="name">
  542. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="systartDate" @change="syChange"
  543. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  544. </el-form-item>
  545. <el-form-item label="商业险终保日期" prop="name">
  546. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="syendDate" type="datetime"
  547. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  548. </el-form-item>
  549. </div>
  550. </div>
  551. </div>
  552. </el-form>
  553. </div>
  554. <div class="Enclosure flex f-c back">
  555. <div class="home flex j-s a-c">
  556. <div class="flex j-s a-c color" id="insurance">
  557. <img src="../../../../src/icon/车船税.png" alt class="icon-img" />
  558. <span style="margin-left:10px;">车船税</span>
  559. </div>
  560. </div>
  561. <el-form class="demo-ruleForm" :model="vehicleAndVesselTaxForm" ref="vehicleAndVesselTaxForm" :rules="rules"
  562. label-width="160px" size="small" style="margin-top: 15px" label-position="top">
  563. <el-row style="flex-wrap: wrap; display: flex;">
  564. <el-col :span="5">
  565. <el-form-item label="纳税类型:" prop="taxRelifFlag">
  566. <el-select @change="taxRelifFlagChange" v-model="vehicleAndVesselTaxForm.taxRelifFlag" placeholder="纳税类型">
  567. <el-option v-for="(item, index) in taxRelifFlagoptions" :key="index" :label="item.dictTag"
  568. :value="item.dictValue"></el-option>
  569. </el-select>
  570. </el-form-item>
  571. </el-col>
  572. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  573. <el-form-item label="纳税人识别号:" prop="identifyNumber">
  574. <el-input v-model="vehicleAndVesselTaxForm.identifyNumber" placeholder="请输入纳税人识别号" type="text"></el-input>
  575. </el-form-item>
  576. </el-col>
  577. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  578. <el-form-item label="纳税人名称:" prop="taxpayerName">
  579. <el-input v-model="vehicleAndVesselTaxForm.taxpayerName" placeholder="请输入纳税人名称" type="text"></el-input>
  580. </el-form-item>
  581. </el-col>
  582. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  583. <el-form-item label="证件类型:" prop="taxpayerIdentifier">
  584. <el-select v-model="vehicleAndVesselTaxForm.taxpayerIdentifier" placeholder="证件类型" clearable>
  585. <el-option v-for="(item, index) in taxpayerIdentifieroptions" :key="index" :label="item.dictTag"
  586. :value="item.dictValue"></el-option>
  587. </el-select>
  588. </el-form-item>
  589. </el-col>
  590. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
  591. :span="5" :offset="1">
  592. <el-form-item label="减免税凭证号:" prop="extendChar2">
  593. <el-input v-model="vehicleAndVesselTaxForm.extendChar2" placeholder="请输入减免税凭证号" type="text"></el-input>
  594. </el-form-item>
  595. </el-col>
  596. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  597. <el-form-item label="完税凭证号:" prop="paidFreeCertificate">
  598. <el-input v-model="vehicleAndVesselTaxForm.paidFreeCertificate" placeholder="请输入完税凭证号"
  599. type="text"></el-input>
  600. </el-form-item>
  601. </el-col>
  602. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
  603. :span="5" :offset="1">
  604. <el-form-item label="减免税原因:" prop="relifReason">
  605. <el-select v-model="vehicleAndVesselTaxForm.relifReason" placeholder="减免税原因" clearable>
  606. <el-option v-for="(item, index) in relifReasonoptions" :key="index" :label="item.dictTag"
  607. :value="item.dictValue"></el-option>
  608. </el-select>
  609. </el-form-item>
  610. </el-col>
  611. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5" :offset="1">
  612. <el-form-item label="税务机关代码:" prop="taxComCode">
  613. <el-input v-model="vehicleAndVesselTaxForm.taxComCode" placeholder="请输入税务机关代码" type="text"></el-input>
  614. </el-form-item>
  615. </el-col>
  616. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5"
  617. :offset="vehicleAndVesselTaxForm.taxRelifFlag == 4 ? 1 : 0">
  618. <el-form-item label="税务机关名称:" prop="taxComName">
  619. <el-input v-model="vehicleAndVesselTaxForm.taxComName" placeholder="请输入税务机关名称" type="text"></el-input>
  620. </el-form-item>
  621. </el-col>
  622. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5">
  623. <el-form-item label="完税凭证填发日期:" prop="taxDocumentDate">
  624. <el-date-picker v-dateFormat v-model="vehicleAndVesselTaxForm.taxDocumentDate" value-format="yyyy-MM-dd"
  625. type="date" placeholder="完税凭证填发日期" placement="bottom-start"></el-date-picker>
  626. </el-form-item>
  627. </el-col>
  628. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  629. <el-form-item label="完税凭证地区:" prop="taxPaidAreaCode">
  630. <el-select v-model="vehicleAndVesselTaxForm.taxPaidAreaCode" placeholder="完税凭证地区" clearable>
  631. <el-option v-for="(item, index) in provinceSelect" :key="index" :label="item.name"
  632. :value="item.code"></el-option>
  633. </el-select>
  634. </el-form-item>
  635. </el-col>
  636. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 3" :span="5" :offset="1">
  637. <el-form-item label="减税比例:" prop="taxRelief">
  638. <el-input v-model="vehicleAndVesselTaxForm.taxRelief" placeholder="请输入0~1的数值" type="text"></el-input>
  639. </el-form-item>
  640. </el-col>
  641. </el-row>
  642. </el-form>
  643. </div>
  644. <div class="Enclosure flex f-c back">
  645. <div class="home flex j-s a-c back">
  646. <div class="flex j-s a-c" id="more">
  647. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" />
  648. <span style="margin-left:15px;width: 120px">险别选择</span>
  649. <el-select size="small" style="width:70%" v-model="packageValue" placeholder="请选择套餐" @change="packageChange">
  650. <el-option v-for="item in packageOptions" :key="item.id" :label="item.title" :value="item.id"></el-option>
  651. </el-select>
  652. </div>
  653. </div>
  654. <div class="flex f-c more">
  655. <div class="flex j-s a-c more-title back">
  656. <div style="width:590px;padding-left:100px;" class="flex j-s a-c">
  657. <span>险别</span>
  658. <span>保额(元)</span>
  659. </div>
  660. </div>
  661. <div class="flex a-c more-data back" v-for="(insureitem, insureindex) in insureList" :key="insureindex">
  662. <div style="width:700px;padding-left: 100px;" class="flex j-s a-c">
  663. <div style="width:auto;">
  664. <span style="text-align:center;">
  665. {{ insureitem.kindName }}
  666. <el-input
  667. v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'"
  668. v-model="sumseatCount" style="width:40px;margin:0 5px;" size="small" placeholder disabled></el-input>
  669. <span
  670. v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'">座</span>
  671. </span>
  672. </div>
  673. <el-select v-if="insureitem.amtList" filterable v-model="insureitem.amount" placeholder="请选择"
  674. @change="insureitemChange" size="small" style="width: 300px;">
  675. <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
  676. :key="index"></el-option>
  677. </el-select>
  678. <span v-else>
  679. <el-input-number size="small" style="width: 280px;margin-right:10px" v-model="insureitem.amount"
  680. :min="0"></el-input-number>次
  681. </span>
  682. </div>
  683. </div>
  684. <!-- <div style="margin:0 auto;font-size: 14px;cursor: pointer;margin-top:15px;">
  685. <span v-show="insureMore" @click="selectMore(insureList.length)">
  686. 查看更多
  687. <i class="el-icon-arrow-down"></i>
  688. </span>
  689. <span v-show="!insureMore" @click="packup()">
  690. 收起
  691. <i class="el-icon-arrow-up"></i>
  692. </span>
  693. </div>-->
  694. </div>
  695. </div>
  696. <div class="Enclosure flex f-c back">
  697. <div class="home flex j-s">
  698. <div class="flex j-s a-c" id="company">
  699. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" />
  700. <span style="margin-left:10px;">保险公司</span>
  701. <div class="csstool">
  702. <span>是否过户车</span>
  703. <el-switch @change="transferFlagChange" v-model="carInfo.transferFlag" active-color="#D42426"></el-switch>
  704. </div>
  705. <div class="csstool">
  706. <span>商业险是否过户</span>
  707. <el-switch v-model="carInfo.transferFlagBi" active-color="#D42426"></el-switch>
  708. </div>
  709. <div class="csstool">
  710. <span>是否脱保</span>
  711. <el-switch v-model="carInfo.outOfInsurance" active-color="#D42426"></el-switch>
  712. </div>
  713. <div class="csstool">
  714. <span>是否二手车</span>
  715. <el-switch v-model="carInfo.usedCar" active-color="#D42426"></el-switch>
  716. </div>
  717. </div>
  718. <div class="flex j-c a-c">
  719. <el-button v-show="imageUploadShow" size="small" type="primary" @click="imageUpload()">
  720. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  721. 影像上传
  722. </el-button>
  723. </div>
  724. </div>
  725. <div>
  726. <div class="companyhead">
  727. <el-row>
  728. <el-col :span="1">
  729. <el-checkbox style="margin:0 10px 0 10px" @change="handleCheckAllChange"></el-checkbox>
  730. <span style="font-size:14px;">全选</span>
  731. </el-col>
  732. <el-col :span="2" style="margin: 0 42px 0 35px;">
  733. <span>保险公司</span>
  734. </el-col>
  735. <el-col :span="5">
  736. <span>报价协议</span>
  737. </el-col>
  738. <el-col :span="3">
  739. <span>报价结果</span>
  740. </el-col>
  741. <el-col :span="3">
  742. <span>交强险</span>
  743. </el-col>
  744. <el-col :span="3">
  745. <span>车船税</span>
  746. </el-col>
  747. <el-col :span="3">
  748. <span>商业险</span>
  749. </el-col>
  750. <el-col :span="2">
  751. <span>驾意险</span>
  752. </el-col>
  753. </el-row>
  754. </div>
  755. <div class="coll">
  756. <div v-loading.fullscreen.lock="loading" class="hovers" v-for="(reslistitem, reslistindex) in totalCompanyList"
  757. :key="reslistindex">
  758. <el-row>
  759. <el-col :span="1" style="margin-left: 20px;">
  760. <el-checkbox v-model="reslistitem.checked"
  761. @change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex)"></el-checkbox>
  762. </el-col>
  763. <el-col :span="3">
  764. <img :src="reslistitem.logo" alt
  765. style="width:30px; height:30px;vertical-align: middle;margin-left:20px" />
  766. <span>{{ reslistitem.namesimple }}</span>
  767. </el-col>
  768. <el-col :span="5">
  769. <el-select size="small" v-if="reslistitem.isTaxSource && reslistitem.isTaxSource == '1'" :disabled="true"
  770. placeholder="默认" style="width: 230px;" v-model="isTaxSourceModel" :clearable="true"></el-select>
  771. <el-select size="small" v-else :disabled="!reslistitem.checked" v-model="reslistitem.agreementId"
  772. placeholder="请选择协议" style="width: 230px;" :clearable="true"
  773. @change="val => agreementChange(val, reslistitem.agreement, reslistindex, reslistitem)">
  774. <div v-for="(agreementitem, agreementindex ) in reslistitem.agreement" :key="agreementindex">
  775. <div
  776. v-if="agreementitem.licenseNo && agreementitem.licenseNo.length > 0 && carInfo.licenseNo.length > 0 ? agreementitem.licenseNo.includes(carInfo.licenseNo.slice(0, 2)) : 'true'">
  777. <el-option :label="agreementitem.agreementName" :value="agreementitem.id"
  778. :disabled="agreementitem.disabled"></el-option>
  779. </div>
  780. </div>
  781. </el-select>
  782. </el-col>
  783. <el-col :span="3">
  784. <div v-show="reslistitem.quoteCode == '0'">
  785. <span>未报价</span>
  786. </div>
  787. <div v-show="reslistitem.quoteCode == '1'">
  788. <i style="color:#D42426" class="el-icon-loading"></i>
  789. </div>
  790. <div class="dis f-c" v-show="reslistitem.quoteCode == '200'">
  791. <span style="color:#D42426;font-weight:bold;">
  792. ¥{{
  793. reslistitem.result.sumPermium
  794. }}
  795. </span>
  796. <span style="font-size: 13px;color:#2D4D89" class="m-top-5" >优惠:{{reslistitem.result.sumExportFee}}</span>
  797. </div>
  798. </el-col>
  799. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  800. <div class="dis f-c">
  801. <span style="color:#D42426;font-weight:bold;">
  802. ¥{{
  803. reslistitem.result.jqPremium }}
  804. </span>
  805. <span v-if="reslistitem.result.jqPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5" >优惠:{{reslistitem.result.jqExportFee}}</span>
  806. </div>
  807. </el-col>
  808. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  809. <span style="color:#D42426;font-weight:bold;">
  810. ¥{{
  811. reslistitem.result.taxAmount }}
  812. </span>
  813. </el-col>
  814. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  815. <div class="dis f-c">
  816. <span style="color:#D42426;font-weight:bold;">
  817. ¥{{
  818. reslistitem.result.syPremium }}
  819. </span>
  820. <span v-if="reslistitem.result.syPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5" >优惠:{{reslistitem.result.syExportFee}}</span>
  821. </div>
  822. </el-col>
  823. <el-col :span="2" v-if="reslistitem.quoteCode == '200'" style="">
  824. <div class="dis f-c">
  825. <span style="color:#D42426;font-weight:bold;">
  826. {{
  827. reslistitem.result.jyPremium ? '¥' + reslistitem.result.jyPremium : '无' }}
  828. </span>
  829. <span v-if="reslistitem.result.jyPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5" >优惠:{{reslistitem.result.noExportFee}}</span>
  830. </div>
  831. </el-col>
  832. <el-col :span="24"
  833. v-show="reslistitem.quoteCode == '200' && reslistitem.result.feeNoDescription">
  834. <div class="flex offer-time" style="color:#D42426">
  835. <span>该车未匹配费用,不建议投保!</span>
  836. <el-tooltip class="item" effect="dark" content="优惠匹配错误信息" placement="top">
  837. <i class="el-icon-s-goods" @click="open3(reslistitem.namesimple+'优惠信息', reslistitem.result.feeNoDescription)"
  838. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  839. :disabled="reslistitem.quoteCode == '200' && reslistitem.result.feeNoDescription"
  840. ></i>
  841. </el-tooltip>
  842. </div>
  843. </el-col>
  844. <el-col :span="24"
  845. v-show="(reslistitem.quoteCode != '200') && (reslistitem.quoteCode != '0') && (reslistitem.quoteCode != '1')">
  846. <div class="flex j-s offer-time" style="color:#D42426">{{ reslistitem.msg.length > 500 ?
  847. reslistitem.msg.slice(0, 500) : reslistitem.msg }}</div>
  848. </el-col>
  849. </el-row>
  850. <div class="flex j-s offer-time" v-if="reslistitem.quoteCode == '200'">
  851. <div style="line-height: 25px;">
  852. 保险期限:
  853. <span v-show="reslistitem.result.startDateJq">
  854. 【交强险】
  855. <span>
  856. {{ reslistitem.result.startDateJq }} -
  857. {{ reslistitem.result.endDateJq }}
  858. </span>
  859. </span>
  860. <span v-show="reslistitem.result.startDateSy" style="margin-left: 20px;">
  861. 【商业险】
  862. <span>
  863. {{ reslistitem.result.startDateSy }} -
  864. {{ reslistitem.result.endDateSy }}
  865. </span>
  866. </span>
  867. <span @click="syncData(reslistitem.result)">
  868. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  869. <i style="color:red" class="el-icon-time"></i>
  870. </el-tooltip>
  871. </span>
  872. <div>
  873. <span v-show="reslistitem.result.JqExportFee">
  874. 交强出口费用<span>{{ reslistitem.result.JqExportFee }}</span>
  875. </span>
  876. <span v-show="reslistitem.result.syExportFee">
  877. 商业出口费用<span>{{ reslistitem.result.syExportFee }}</span>
  878. </span>
  879. <span v-show="reslistitem.result.noExportFee">
  880. 非车出口费用<span> {{ reslistitem.result.noExportFee }}</span>
  881. </span>
  882. </div>
  883. <div>
  884. <span v-if="reslistitem.namesimple == '永诚财险'">
  885. 光博分:
  886. <span>
  887. {{ reslistitem.result.ilogPreUdwMess ?
  888. reslistitem.result.ilogPreUdwMess : '无' }}
  889. </span>
  890. </span>
  891. <span v-else>
  892. 评分:
  893. <span>
  894. {{ reslistitem.result.ilogPreUdwMess ?
  895. reslistitem.result.ilogPreUdwMess : '无' }}
  896. </span>
  897. </span>
  898. <span v-if="reslistitem.result.jqScore" class="marginL">
  899. 交强类型评分:
  900. <span>{{ reslistitem.result.jqScore }}</span>
  901. </span>
  902. <span v-if="reslistitem.result.syScore" class="marginL">
  903. 商业类型评分:
  904. <span>{{ reslistitem.result.syScore }}</span>
  905. </span>
  906. <span v-if="reslistitem.result.lossRation" class="marginL">
  907. 总赔付率:
  908. <span>{{ reslistitem.result.lossRation }}</span>
  909. </span>
  910. <span v-if="reslistitem.result.jqLossRation" class="marginL">
  911. 交强赔付率:
  912. <span>{{ reslistitem.result.jqLossRation }}</span>
  913. </span>
  914. <span v-if="reslistitem.result.syLossRation" class="marginL">
  915. 商业赔付率:
  916. <span>{{ reslistitem.result.syLossRation }}</span>
  917. </span>
  918. <span v-if="reslistitem.result.totalAdjustRate" class="marginL">
  919. 自主定价系数:
  920. <span>{{ reslistitem.result.totalAdjustRate }}</span>
  921. </span>
  922. <span v-if="reslistitem.result.jgAdjustRate" class="marginL">
  923. 交强折扣系数:
  924. <span>{{ reslistitem.result.jgAdjustRate }}</span>
  925. </span>
  926. <span v-if="reslistitem.result.syAdjustRate" class="marginL">
  927. 商业折扣系数:
  928. <span>{{ reslistitem.result.syAdjustRate }}</span>
  929. </span>
  930. <span v-if="reslistitem.result.accidentInfoStr" class="marginL">
  931. 出险信息:
  932. <span>
  933. {{
  934. reslistitem.result.accidentInfoStr }}
  935. </span>
  936. </span>
  937. <span v-if="reslistitem.namesimple == '紫金财险' && reslistitem.result.ubiPredictedInfoScore"
  938. class="marginL">
  939. 紫金能源车(鼎然-车辆风险评分):
  940. <span>{{ reslistitem.result.ubiPredictedInfoScore }}</span>
  941. </span>
  942. <span v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '1'">真单交</span>
  943. <span v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '0'">假单交</span>
  944. </div>
  945. </div>
  946. <div style="text-align: right;">
  947. <div style="color:#2D4D89; ">
  948. <el-tooltip class="item" effect="dark" content="上年信息" placement="top">
  949. <i class="el-icon-chat-dot-round" @click="open2(reslistitem.namesimple, reslistitem.lastYearMsg)"
  950. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  951. :disabled="reslistitem.namesimple == '众安财险' && reslistitem.result.tips == '需要验车'"
  952. v-show="(reslistitem.quoteCode == '200' && reslistitem.lastYearMsg)"></i>
  953. </el-tooltip>
  954. <el-tooltip class="item" effect="dark" content="预核保信息" placement="top">
  955. <i class="el-icon-chat-dot-round"
  956. @click="openPredictInfo(reslistitem.namesimple, reslistitem.predictInfo)"
  957. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  958. v-show="(reslistitem.quoteCode == '200' && reslistitem.predictInfo && reslistitem.predictInfo.length > 0 && reslistitem.namesimple == '中国人寿')"></i>
  959. </el-tooltip>
  960. <el-button :disabled="reslistitem.namesimple == '众安财险' && reslistitem.result.tips == '需要验车'"
  961. v-show="reslistitem.quoteCode == '200' && !('editStatus' in reslistitem.result)" type="text"
  962. size="small" style="color:#2D4D89;font-size:14px" @click="hbsubmitdialog(reslistitem)">下单</el-button>
  963. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
  964. style="color:#2D4D89;font-size:14px "
  965. @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
  966. </div>
  967. <div>
  968. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small" style="font-size:14px "
  969. @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
  970. <el-button type="text" size="small" style="font-size:14px "
  971. @click="Payment(reslistitem.result.companyId, reslistitem.namesimple)"
  972. v-show="reslistitem.orderstatus == '2' && !('editStatus' in reslistitem.result)">付款码</el-button>
  973. </div>
  974. </div>
  975. </div>
  976. <template>
  977. <!-- <div style="margin:20px 0 0 100px;" v-if="reslistitem.checked && reslistitem.agreementId"> -->
  978. <span v-if="reslistitem.checked && reslistitem.agreementId && reslistitem.underwritingDescription"
  979. style="margin:20px 20px 0 100px;display: inline-block">{{ reslistitem.underwritingDescription }}</span>
  980. <!-- </div> -->
  981. </template>
  982. <template v-if="reslistitem.namesimple == '恒邦财险' && reslistitem.checked && reslistitem.agreementId">
  983. <div class="flex f-c Driving-risk">
  984. <div class="dis a-c" style="margin:15px 0">
  985. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  986. <el-select style="width: 250px;margin-right:60px" filterable size="small" clearable v-model="insuranceHB"
  987. placeholder="未选择" @clear="clearAccidentFormHB" @change="hengbangInsuranceChange">
  988. <el-option v-for="(item, index) in hengbangInsuranceData" :key="index" :label="item.programname"
  989. :value="item.programcode"></el-option>
  990. </el-select>
  991. 保费: <b>{{ hengbangaccidentalDrivingVo.sumgrosspremium || 0}}&ensp;元</b>
  992. </div>
  993. <el-table size="small" :data="HBInsuranceData" border v-if="insuranceHB" @row-click="HBDrivingChange"
  994. ref="RsTable" highlight-current-row
  995. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  996. <el-table-column prop="kindname" label="险种名称" align="center"></el-table-column>
  997. <el-table-column prop="kindunitinsured" label="险种金额" align="center"></el-table-column>
  998. <!-- <el-table-column prop="sumgrosspremium" label="保费 (元)/每份" align="center">
  999. <template slot-scope="scope">
  1000. <span>¥{{ scope.row.sumgrosspremium }}</span>
  1001. </template>
  1002. </el-table-column>
  1003. <el-table-column label="份数" align="center">
  1004. <template slot-scope="scope">
  1005. <span>{{ scope.row.quantity }}</span>
  1006. </template>
  1007. </el-table-column> -->
  1008. </el-table>
  1009. </div>
  1010. </template>
  1011. <template v-if="reslistitem.namesimple == '华农财险' && reslistitem.checked && reslistitem.agreementId">
  1012. <div class="flex f-c Driving-risk">
  1013. <el-form :inline="true" :model="accidentFormHN" class="demo-form-inline"
  1014. style="font-weight:bold;margin-top:15px" size="small">
  1015. <el-form-item label="意外险类型:" style="margin-right:30px;">
  1016. <el-select clearable v-model="accidentFormHN.accidentType" placeholder="未选择"
  1017. @clear="clearAccidentFormHN" @change="huanongInsuranceChange">
  1018. <el-option v-for="(item, index) in huanongInsuranceData" :key="index" :label="item.planName"
  1019. :value="item.planCode"></el-option>
  1020. </el-select>
  1021. </el-form-item>
  1022. <el-form-item label="选择份数" style="margin-right:30px;">
  1023. <el-input-number v-model="accidentFormHN.allQuantity" :min="1"
  1024. controls-position="right"></el-input-number>
  1025. <!-- <span style="margin-left: 5px;">份</span> -->
  1026. </el-form-item>
  1027. </el-form>
  1028. <el-table v-if="accidentFormHN.accidentType" size="small" :data="HNInsuranceData" border ref="expandTable"
  1029. highlight-current-row
  1030. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1031. <el-table-column prop="dutyName" label="保险责任" align="center"></el-table-column>
  1032. <el-table-column prop="unitAmount" label="保额" align="center">
  1033. <template slot-scope="scope">
  1034. <el-input v-model="scope.row.unitAmount" placeholder="请输入内容" size="small" disabled></el-input>
  1035. </template>
  1036. </el-table-column>
  1037. </el-table>
  1038. </div>
  1039. </template>
  1040. <template v-if="reslistitem.namesimple == '太平财险' && reslistitem.checked && reslistitem.agreementId">
  1041. <div class="flex f-c Driving-risk">
  1042. <div class="dis a-c" style="margin:15px 0">
  1043. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1044. <el-select style="width: 250px;margin-right:60px" filterable size="small" clearable v-model="insuranceTP"
  1045. placeholder="未选择" @clear="clearAccidentFormTP" @change="taipingInsuranceChange">
  1046. <el-option v-for="(item, index) in taipingInsuranceData" :key="index" :label="item.rationName"
  1047. :value="item.rationType"></el-option>
  1048. </el-select>
  1049. 每份价税合计: <b>{{ taipingaccidentalDrivingVo.price || 0}}&ensp;元</b>
  1050. </div>
  1051. <el-table size="small" :data="TPInsuranceData" border v-if="insuranceTP" ref="RsTable"
  1052. highlight-current-row
  1053. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1054. <el-table-column prop="kindName" label="险种名称" align="center"></el-table-column>
  1055. <el-table-column prop="insured" label="险种金额" align="center"></el-table-column>
  1056. <!-- <el-table-column prop="rationName" label="投保产品" align="center"></el-table-column>
  1057. <el-table-column label="投保份数" align="center" prop="quantity">
  1058. <template>
  1059. <span>1</span>
  1060. </template>
  1061. </el-table-column>
  1062. <el-table-column prop="price" label="每份价税合计" align="center"></el-table-column>
  1063. <el-table-column prop="endSeatNum" label="最大座位数" align="center"></el-table-column> -->
  1064. </el-table>
  1065. </div>
  1066. </template>
  1067. <template v-if="reslistitem.namesimple == '安盛天平' && reslistitem.checked && reslistitem.agreementId">
  1068. <div class="flex f-c Driving-risk">
  1069. <div class="dis a-c" style="margin-top:15px">
  1070. <span style="margin-right:15px;font-weight:bold;">意外险类型</span>
  1071. <el-select style="width: 250px;" size="small" clearable v-model="anshengInsurancetype" placeholder="未选择"
  1072. @clear="clearAccidentFormAS" @change="anshengInsuranceChange">
  1073. <el-option v-for="(item, index) in anshengInsuranceData" :key="index"
  1074. :label="item.planCode + ' ' + item.planChineseName" :value="item.planCode"></el-option>
  1075. </el-select>
  1076. </div>
  1077. <el-table size="small" :data="anshengInsuranceData1" border v-if="anshengInsurancetype" ref="RsTable"
  1078. highlight-current-row
  1079. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1080. <el-table-column align="center" width="55" label="选择">
  1081. <template slot-scope="scope">
  1082. <el-radio class="radio" v-model="AStemplateSelection" :label="scope.row.productCode"
  1083. @click.native.stop.prevent="ASDrivingRadio(scope.row)">&nbsp;</el-radio>
  1084. </template>
  1085. </el-table-column>
  1086. <el-table-column prop="productName" label="方案名称" align="center"></el-table-column>
  1087. <el-table-column prop="productCode" label="方案代码" align="center"></el-table-column>
  1088. <el-table-column label="份数" align="center">
  1089. <template slot-scope="scope">
  1090. <span>{{ scope.row.quantity }}</span>
  1091. </template>
  1092. </el-table-column>
  1093. </el-table>
  1094. </div>
  1095. </template>
  1096. <template v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId">
  1097. <div style="margin:15px 0 15px 100px">
  1098. <span>商业险折扣:</span>
  1099. <el-input style="width:220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount"
  1100. placeholder="请输入内容"
  1101. @input="reslistitem.discount = reslistitem.discount.replace(/[^\d.]/g, '')"></el-input>
  1102. </div>
  1103. <div class="flex f-c Driving-risk">
  1104. <div class="dis a-c">
  1105. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1106. <el-select style="width: 250px;" filterable size="small" clearable v-model="insuranceRS"
  1107. placeholder="未选择" @clear="clearAccidentFormRS" @change="renshouInsuranceChange">
  1108. <el-option v-for="(item, index) in renshouInsuranceData" :key="index" :label="item.productName"
  1109. :value="item.id"></el-option>
  1110. </el-select>
  1111. </div>
  1112. <el-table size="small" :data="RSInsuranceData" border v-if="insuranceRS" @row-click="RSDrivingChange"
  1113. ref="RsTable" highlight-current-row
  1114. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1115. <el-table-column prop="productName" label="方案名称" align="center"></el-table-column>
  1116. <el-table-column prop="totalPremium" label="保费 (元)起" align="center">
  1117. <template slot-scope="scope">
  1118. <span>¥{{ scope.row.totalPremium }}</span>
  1119. </template>
  1120. </el-table-column>
  1121. <el-table-column label="份数" align="center">
  1122. <template slot-scope="scope">
  1123. <span>{{ scope.row.quantity }}</span>
  1124. </template>
  1125. </el-table-column>
  1126. </el-table>
  1127. </div>
  1128. </template>
  1129. <template v-if="reslistitem.namesimple == '众安财险' && reslistitem.checked && reslistitem.agreementId">
  1130. <div class="flex f-c Driving-risk">
  1131. <div class="dis a-c" style="margin:15px 0">
  1132. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1133. <el-select style="width: 250px;" filterable size="small" clearable v-model="insuranceZA"
  1134. placeholder="未选择" @clear="clearAccidentFormZA" @change="zhonganInsuranceChange">
  1135. <el-option v-for="(item, index) in zhonganInsuranceData" :key="index" :label="item.name"
  1136. :value="item.combination"></el-option>
  1137. </el-select>
  1138. <!-- 保费: <b>{{ zhonganaccidentalDrivingVo.sumgrosspremium || 0}}&ensp;元</b> -->
  1139. </div>
  1140. <el-table size="small" :data="ZRInsuranceData" border v-if="insuranceZA" @row-click="ZADrivingChange"
  1141. ref="RsTable" highlight-current-row
  1142. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1143. <el-table-column prop="liabilityName" label="险种名称" align="center"></el-table-column>
  1144. <el-table-column prop="amountLabel" label="险种金额" align="center"></el-table-column>
  1145. </el-table>
  1146. </div>
  1147. </template>
  1148. <template v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId">
  1149. <div style="margin:15px 0 15px 100px">
  1150. <span>自主定价系数:</span>
  1151. <el-input style="width:220px" size="small" v-model="reslistitem.coefficient"
  1152. placeholder="请输入内容"></el-input>
  1153. </div>
  1154. <div class="flex f-c Driving-risk">
  1155. <div class="dis a-c" style="margin-bottom:15px">
  1156. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1157. <el-select style="width: 250px;" filterable multiple size="small" clearable v-model="insuranceZJ"
  1158. placeholder="未选择" @clear="clearAccidentFormZJ" @change="zijinInsuranceChange">
  1159. <el-option v-for="(item, index) in ziJinInsuranceData" :key="index" :label="item.projectName"
  1160. :value="item.projectCode"></el-option>
  1161. </el-select>
  1162. </div>
  1163. <el-table size="small" :data="ZJInsuranceData" border v-if="insuranceZJ" @select="CheckboxChange"
  1164. filterable ref="expandTable" highlight-current-row
  1165. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1166. <el-table-column type="selection" width="55"></el-table-column>
  1167. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  1168. <el-table-column prop="sumAmount" label="总保额 (元)/每份" align="center"></el-table-column>
  1169. <el-table-column prop="sumPremium" label="保费 (元)/每份" align="center">
  1170. <template slot-scope="scope">
  1171. <span>¥{{ scope.row.sumPremium }}</span>
  1172. </template>
  1173. </el-table-column>
  1174. <el-table-column prop="quantity" label="份数" align="center">
  1175. <template slot-scope="scope">
  1176. <el-input-number v-model="scope.row.quantity" :min="1" :max="scope.row.maxQuantity" size="small"
  1177. controls-position="right"></el-input-number>
  1178. </template>
  1179. </el-table-column>
  1180. <el-table-column prop="Totalprice" label="总保费 (元)" align="center">
  1181. <template slot-scope="scope">
  1182. <span v-if="scope.row.quantity">{{ scope.row.sumPremium * scope.row.quantity }}</span>
  1183. <span v-else>{{ scope.row.sumPremium }}</span>
  1184. </template>
  1185. </el-table-column>
  1186. </el-table>
  1187. </div>
  1188. </template>
  1189. <template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId">
  1190. <div class="flex f-c Driving-risk">
  1191. <el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small"
  1192. style="font-weight:bold;margin-top:15px">
  1193. <el-form-item label="意外险类型" style="margin-right:30px;">
  1194. <el-select clearable v-model="accidentForm.accidentType" placeholder="未选择" @clear="clearAccidentForm"
  1195. @change="ywxxxchange">
  1196. <el-option v-for="(item, index) in accidentDataList" :key="index" :label="item.name"
  1197. :value="item.code"></el-option>
  1198. </el-select>
  1199. </el-form-item>
  1200. <el-form-item label="选择份数" style="margin-right:50px;">
  1201. <el-input-number v-model="accidentForm.fen" @change="numberCopieschange" :min="1"
  1202. controls-position="right"></el-input-number>
  1203. <!-- <span style="margin-left: 5px;">份</span> -->
  1204. </el-form-item>
  1205. <el-form-item label="保费:">
  1206. <span>{{ accidentForm.premium }}&ensp;元</span>
  1207. </el-form-item>
  1208. </el-form>
  1209. <el-table v-if="accidentForm.accidentType" size="small" :data="accidenttableData" border ref="expandTable"
  1210. highlight-current-row
  1211. :header-cell-style="{ background: '#F7F7F9', fontWeight: '700', color: '#333333' }">
  1212. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1213. <el-table-column prop="seatSum" label="每座保额 (元)/每份" align="center"></el-table-column>
  1214. <el-table-column prop="carSum" label="每车保额 (元)/每份" align="center"></el-table-column>
  1215. <el-table-column prop="premium" label="责任保费 (元)/每份" align="center"></el-table-column>
  1216. </el-table>
  1217. </div>
  1218. </template>
  1219. <template v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId">
  1220. <!-- <div style="margin:10px 0 0 100px;">
  1221. <span style="margin-right:20px"> {{reslistitem.underwritingDescription}}</span>-->
  1222. <el-button type="text" @click="contributingGuoRen(reslistitem.agreementId)">选择特约</el-button>
  1223. <!-- </div> -->
  1224. <div class="flex f-c Driving-risk">
  1225. <el-form :inline="true" :model="guoRenaccidentForm" class="demo-form-inline" size="small">
  1226. <el-form-item label="意外险类型" style="margin-right:30px;">
  1227. <el-select clearable placeholder="未选择" @clear="clearAccidentFormGr" @change="grcxchange"
  1228. v-model="guoRenaccidentForm.goodsCode">
  1229. <el-option v-for="(item, index) in guoRenaccidentDataList" :key="index" :label="item.goodDesc"
  1230. :value="item.goodId"></el-option>
  1231. </el-select>
  1232. </el-form-item>
  1233. <el-form-item label=" ">
  1234. <el-select clearable v-model="guoRenaccidentForm.prodCode" v-loading="accidentLoading"
  1235. @change="grcxchangeChild">
  1236. <el-option v-for="(item, index) in guoRenaccidentDataListChild" :key="item.prodCode"
  1237. :label="item.prodCName" :value="item.prodCode"></el-option>
  1238. </el-select>
  1239. </el-form-item>
  1240. <el-form-item label="选择份数" style="margin-right:30px;">
  1241. <el-input-number v-model="guoRenaccidentForm.quantity" :min="1" controls-position="right"
  1242. @change="numberCopieschangeGR"></el-input-number>
  1243. <!-- <span style="margin-left: 5px;">份</span> -->
  1244. </el-form-item>
  1245. <el-form-item label="保费:">
  1246. <span>{{ guoRenaccidentForm.premium }}&ensp;元</span>
  1247. </el-form-item>
  1248. </el-form>
  1249. <el-table v-if="guoRenaccidentForm.prodCode" size="small" :data="guoRenaccidenttableData" border
  1250. ref="expandTable" highlight-current-row
  1251. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1252. <el-table-column prop="liabName" label="保险责任" align="center"></el-table-column>
  1253. <el-table-column prop="liabAmount" label="保额 (元)" align="center"></el-table-column>
  1254. <el-table-column prop="liabPremium" label="保费 (元)" align="center">
  1255. <template slot-scope="scope">¥{{ scope.row.liabPremium }}</template>
  1256. </el-table-column>
  1257. </el-table>
  1258. </div>
  1259. </template>
  1260. <template v-if="reslistitem.namesimple == '中煤财险' && reslistitem.checked && reslistitem.agreementId">
  1261. <div class="flex f-c Driving-risk accident-style zmDriving">
  1262. <el-form :inline="true" :model="accidentFormZM" class="demo-form-inline" size="small"
  1263. style="font-weight:bold;margin-top:15px">
  1264. <el-form-item label="意外险类型" style="margin-right:30px;">
  1265. <el-select style="width: 250px;" size="small" clearable v-model="zhongmeiInsurancetype"
  1266. placeholder="未选择" @clear="numberCopieschangeZM" @change="zhongmeiInsuranceChange">
  1267. <el-option v-for="(item, index) in zhongmeiInsuranceData" :key="index" :label="item.rideRiskName"
  1268. :value="item.rideRiskCode"></el-option>
  1269. </el-select>
  1270. </el-form-item>
  1271. <el-form-item label="选择份数" style="margin-right:30px;">
  1272. <el-input-number v-model="accidentFormZM.quantity" @change="numberCopieschangeZM" :min="1"
  1273. controls-position="right" :max="accidentFormZM.maxQuantity"></el-input-number>
  1274. <!-- <span style="margin-left: 5px;">份</span> -->
  1275. </el-form-item>
  1276. <el-form-item label="保费:">
  1277. <span>{{ accidentFormZM.unitPremium }}&ensp;元</span>
  1278. </el-form-item>
  1279. </el-form>
  1280. <el-table size="small" :data="zhongmeiInsuranceDataDetail" border ref="ZmMultipleTable"
  1281. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1282. <el-table-column prop="insurName" label="保险责任名称" align="center"></el-table-column>
  1283. <el-table-column prop="amountName" label="保险责任对应保额" align="center"></el-table-column>
  1284. <!-- <el-table-column label="份数" align="center">
  1285. <template slot-scope="scope">
  1286. <div @click.stop>
  1287. <el-input-number
  1288. v-model="scope.row.quantity"
  1289. @change="ZMhandleChange"
  1290. :min="1"
  1291. :max="Number(scope.row.insuredNumLimit)"
  1292. controls-position="right"
  1293. ></el-input-number>
  1294. </div>
  1295. </template>
  1296. </el-table-column>-->
  1297. </el-table>
  1298. </div>
  1299. </template>
  1300. <template v-if="reslistitem.namesimple == '大家财险' && reslistitem.checked && reslistitem.agreementId">
  1301. <div class="flex f-c Driving-risk">
  1302. <div class="dis a-c" style="margin-top:15px">
  1303. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1304. <el-select style="width: 250px;" filterable size="small" clearable v-model="insuranceDJ"
  1305. placeholder="未选择" @clear="clearAccidentFormDJ" @change="dajiaInsuranceChange">
  1306. <el-option v-for="(item, index) in dajiaInsuranceData" :key="index" :label="item.productName"
  1307. :value="item.id"></el-option>
  1308. </el-select>
  1309. </div>
  1310. <el-table size="small" :data="DJInsuranceData" border v-if="insuranceDJ" @row-click="DJDrivingChange"
  1311. ref="RsTable" highlight-current-row
  1312. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1313. <el-table-column prop="cvrgName" label="保险责任名称" align="center"></el-table-column>
  1314. <el-table-column prop="cvrgPrm" label="保费 (元)/每份" align="center">
  1315. <template slot-scope="scope">¥{{ scope.row.cvrgPrm }}</template>
  1316. </el-table-column>
  1317. </el-table>
  1318. </div>
  1319. </template>
  1320. <template v-if="reslistitem.namesimple == '渤海财险' && reslistitem.checked && reslistitem.agreementId">
  1321. <div class="flex f-c Driving-risk" style="margin-top:15px">
  1322. <el-form :inline="true" :model="boHaiaccidentForm" class="demo-form-inline" size="small">
  1323. <el-form-item label="意外险类型" style="margin-right:30px;">
  1324. <el-select clearable placeholder="未选择" @clear="clearAccidentFormBh" @change="bhcxchange"
  1325. v-model="boHaiaccidentForm.packageCode">
  1326. <el-option v-for="(item, index) in boHaiaccidentDataList" :key="index" :label="item.packageName"
  1327. :value="item.packageCode"></el-option>
  1328. </el-select>
  1329. </el-form-item>
  1330. <el-form-item label="选择份数" style="margin-right:30px;">
  1331. <el-input-number v-model="boHaiaccidentForm.copies" :min="1"
  1332. controls-position="right"></el-input-number>
  1333. </el-form-item>
  1334. <el-form-item label="保费:">
  1335. <span>{{ boHaiaccidentForm.premium * boHaiaccidentForm.copies }}&ensp;元</span>
  1336. </el-form-item>
  1337. </el-form>
  1338. <el-table v-if="boHaiaccidentForm.packageCode" size="small" :data="boHaiaccidenttableData" border
  1339. v-loading="accidentLoadingbh" ref="expandTable" highlight-current-row
  1340. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1341. <el-table-column prop="coverageName" label="保险责任名称" align="center"></el-table-column>
  1342. <el-table-column prop="insuredAmount" label="保额 (元)" align="center">
  1343. <template slot-scope="scope">¥{{ scope.row.insuredAmount }}</template>
  1344. </el-table-column>
  1345. </el-table>
  1346. </div>
  1347. </template>
  1348. </div>
  1349. </div>
  1350. </div>
  1351. </div>
  1352. <div class="Enclosure flex f-c" v-if="isLetter">
  1353. <div class="home flex j-s a-c back">
  1354. <div class="flex j-s a-c color">
  1355. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  1356. <span style="margin-left:10px;">报价历史</span>
  1357. <div v-if="orderno">
  1358. <el-radio-group v-model="historyRadio" style="margin-left:30px;" @input="RadioHistoryChange"
  1359. v-for="item in insOrderStatusoptions" :key="item.dictValue">
  1360. <el-radio :label="item.dictValue">{{ item.dictTag }}</el-radio>
  1361. </el-radio-group>
  1362. </div>
  1363. </div>
  1364. </div>
  1365. <div style="padding:20px;">
  1366. <el-table size="small" :data="HistoryList" height="250" border style="width: 100%" v-loading="loading"
  1367. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row>
  1368. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  1369. <el-table-column prop="username" label="业务员" align="center">
  1370. <template slot-scope="scope">
  1371. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  1372. </template>
  1373. </el-table-column>
  1374. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  1375. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  1376. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  1377. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  1378. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  1379. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  1380. <el-table-column prop="orderstatus" label="状态" align="center">
  1381. <template slot-scope="scope">
  1382. <el-tag style="color:#33A08D;border-color:#33A08D;background: rgba(51,160,141,0.1);"
  1383. v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'" size="small">{{ scope.row.orderstatus |
  1384. cap }}</el-tag>
  1385. <el-tag type="danger" style="border-color:#E75B5D ;" v-else-if="scope.row.orderstatus == '3'"
  1386. size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1387. <el-tag v-else style="color:#2D4D89 ;border-color:#2D4D89 ;background: rgba(45, 77, 137,0.1);"
  1388. size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1389. </template>
  1390. </el-table-column>
  1391. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  1392. <template slot-scope="scope">
  1393. <el-button type="text" style="color:#2D4D89 " size="small"
  1394. @click="qoutedetail(scope.row.id)">查看详情</el-button>
  1395. <el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
  1396. <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
  1397. @click="Payment(scope.row.id, scope.row)">付款码</el-button>
  1398. <el-button size="mini" type="text"
  1399. v-if="(scope.row.orderstatus == '1' || scope.row.orderstatus == '2' || scope.row.orderstatus == '4') && ['紫金财险'].includes(scope.row.inscompany)"
  1400. @click="cancelorder(scope.row)">撤单</el-button>
  1401. <el-button type="text" size="mini" style="color:#2D4D89 " v-if="scope.row.orderstatus == '2'"
  1402. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  1403. </template>
  1404. </el-table-column>
  1405. </el-table>
  1406. </div>
  1407. </div>
  1408. <!-- 查看详情 -->
  1409. <detailsDialog ref="detailsDialog" :orderInfo="queryOrders" :Feepermissions="false"></detailsDialog>
  1410. <el-dialog title="车型选择" :visible.sync="chexingdialogVisible" width="1300px">
  1411. <el-form :inline="true" class="demo-form-inline" size="small">
  1412. <el-form-item label="厂牌型号">
  1413. <el-input v-model="carInfo.modelcname" placeholder="厂牌型号" style="width:500px;"></el-input>
  1414. </el-form-item>
  1415. <el-form-item>
  1416. <el-button type="primary" size="small" @click="toChooseVehicleType(carInfo.modelcname)">查询</el-button>
  1417. </el-form-item>
  1418. </el-form>
  1419. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1420. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row
  1421. @row-dblclick="reslistCurrentChange">
  1422. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1423. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1424. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1425. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1426. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1427. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1428. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1429. </el-table>
  1430. </el-dialog>
  1431. <el-dialog title="车辆识别代码" :visible.sync="sbdmdialogVisible" width="1300px">
  1432. <el-form :inline="true" class="demo-form-inline" size="small">
  1433. <el-form-item label="车辆识别代码">
  1434. <el-input v-model="carInfo.frameNo" placeholder="车辆识别代码" style="width:500px;"></el-input>
  1435. </el-form-item>
  1436. <el-form-item>
  1437. <el-button type="primary" size="small" @click="toChooseVin(carInfo.frameNo)">查询</el-button>
  1438. </el-form-item>
  1439. </el-form>
  1440. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1441. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row
  1442. @row-dblclick="reslistCurrentChange">
  1443. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1444. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1445. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1446. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1447. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1448. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1449. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1450. </el-table>
  1451. </el-dialog>
  1452. <!--第一种 二维码 -->
  1453. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  1454. <div class="ORcodebody" v-watermark="userform.id || userId" >
  1455. <div slot="title" class="dialog-title">
  1456. <span>扫码付款</span>
  1457. </div>
  1458. <div class="ORcode">
  1459. <div style="padding:13px;position: relative;">
  1460. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
  1461. <div v-else id="qrcode" ref="qrcode"></div>
  1462. </div>
  1463. </div>
  1464. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  1465. <div style="font-size:32px;text-align: center;color:#D42426;margin-top:20px">
  1466. <span style="font-size:24px;font-weight:bold">¥</span>
  1467. {{ sumpremium }}
  1468. </div>
  1469. <div class="ORtitle">
  1470. <div>
  1471. <span>保险公司:</span>
  1472. <span>{{ inscompany }}</span>
  1473. </div>
  1474. <div>
  1475. <span>车牌号:</span>
  1476. <span>{{ licenseNo }}</span>
  1477. </div>
  1478. <div>
  1479. <span>投保人:</span>
  1480. <span>{{ applyName }}</span>
  1481. </div>
  1482. <!-- <div>
  1483. <span style="color:#f75c00">总金额:</span>
  1484. <span style="color:#f75c00">{{ sumpremium }}</span>
  1485. </div>-->
  1486. <div v-show="jqpremium">
  1487. <span>交强:</span>
  1488. <span>{{ jqpremium }}</span>
  1489. </div>
  1490. <div v-show="sypremium">
  1491. <span>商业:</span>
  1492. <span>{{ sypremium }}</span>
  1493. </div>
  1494. <div v-show="taxamount">
  1495. <span>车船税:</span>
  1496. <span>{{ taxamount }}</span>
  1497. </div>
  1498. <div v-show="jqstartdate">
  1499. <span>交强险起保日期:</span>
  1500. <span>{{ jqstartdate }}</span>
  1501. </div>
  1502. <div v-show="systartdate">
  1503. <span>商业险起保日期:</span>
  1504. <span>{{ systartdate }}</span>
  1505. </div>
  1506. <div v-if="jypremium">
  1507. <span>非车险:</span>
  1508. <span>{{ jypremium }}</span>
  1509. </div>
  1510. </div>
  1511. <!-- <div class="display">
  1512. <el-button size="small" style="width:100px;" @click="codedialogVisible = false">关闭</el-button>
  1513. </div>-->
  1514. </div>
  1515. <span slot="footer" class="dialog-footer display">
  1516. <el-button size="small" style="width:100px;border-color:#D42426;color:#D42426 "
  1517. @click="codedialogVisible = false">关闭</el-button>
  1518. </span>
  1519. </el-dialog>
  1520. <!--第二种 二维码 -->
  1521. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh" title="扫码付款">
  1522. <div class="flex j-s">
  1523. <div class="scan-code">
  1524. <div style="font-weight: bold;">
  1525. 总金额:
  1526. <span style="color:#2D4D89 ">{{ sumpremium }}</span>
  1527. </div>
  1528. <div>交强险:{{ jqpremium }}</div>
  1529. <div>车船税:{{ taxamount }}</div>
  1530. <div>商业险:{{ sypremium }}</div>
  1531. <div>非车险:{{ jypremium }}</div>
  1532. </div>
  1533. <div>
  1534. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
  1535. <div v-else id="qrcode" ref="qrcode"></div>
  1536. </div>
  1537. <div class="scan-code">
  1538. <div>保险公司:{{ inscompany }}</div>
  1539. <div>车牌号:{{ licenseNo }}</div>
  1540. <div>投保人:{{ applyName }}</div>
  1541. <div>交强险起保日期:{{ jqstartdate }}</div>
  1542. <div>商业险起保日期:{{ systartdate }}</div>
  1543. </div>
  1544. </div>
  1545. <span slot="footer" class="dialog-footer">
  1546. <el-button size="small" style="width:100px;background: #EAEDF1;border-color:#EAEDF1;color:#2D4D89 "
  1547. @click="codedialogVisiblePro = false">关闭</el-button>
  1548. </span>
  1549. </el-dialog>
  1550. <el-dialog :visible.sync="uploadcardialogVisible" width="960px" style="padding:10px 20px;box-sizing: border-box;"
  1551. @open="closeDialog(0)">
  1552. <div slot="title" class="dialog-title">
  1553. <span>行驶证识别</span>
  1554. </div>
  1555. <el-row :gutter="20">
  1556. <div class="bodys1">
  1557. <div>
  1558. <div class="flex a-c">
  1559. <div class="OCR" style="text-align:center;">行驶证主页</div>
  1560. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1561. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carfrontChange">
  1562. <img v-show="carfrontImg" :src="carfrontImg" style="width:100%;height:100%" />
  1563. <img v-show="!carfrontImg" src="../../../../static/carfront.png" style="width:100%;height:100%" />
  1564. <span class="slot" v-show="carfrontImg" @click.stop>
  1565. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carfrontImg)"></i>
  1566. <i class="el-icon-delete" @click.stop="handleRemove('carfrontImg')"></i>
  1567. </span>
  1568. </el-upload>
  1569. </div>
  1570. </div>
  1571. <div class="flex a-c">
  1572. <div class="OCR" style="text-align:center;">行驶证副页</div>
  1573. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1574. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carbackChange">
  1575. <img v-show="carbackImg" :src="carbackImg" style="width:100%;height:100%" />
  1576. <img v-show="!carbackImg" src="../../../../static/carback.png" style="width:100%;height:100%" />
  1577. <span class="slot" v-show="carbackImg" @click.stop>
  1578. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carbackImg)"></i>
  1579. <i class="el-icon-delete" @click.stop="handleRemove('carbackImg')"></i>
  1580. </span>
  1581. </el-upload>
  1582. </div>
  1583. </div>
  1584. </div>
  1585. <div style="text-align:center;">
  1586. <el-form :model="carform" label-width="130px" size="small">
  1587. <el-form-item label="所有人">
  1588. <el-input v-model="carform.carOwner" autocomplete="off"></el-input>
  1589. </el-form-item>
  1590. <el-form-item label="车牌号">
  1591. <el-input v-model="carform.licenseNo" autocomplete="off"></el-input>
  1592. </el-form-item>
  1593. <el-form-item label="车架号">
  1594. <el-input v-model="carform.frameNo" autocomplete="off"></el-input>
  1595. </el-form-item>
  1596. <el-form-item label="品牌型号">
  1597. <el-input v-model="carform.modelcname" autocomplete="off"></el-input>
  1598. </el-form-item>
  1599. <el-form-item label="发动机号">
  1600. <el-input v-model="carform.engineNo" autocomplete="off"></el-input>
  1601. </el-form-item>
  1602. <el-form-item label="总质量">
  1603. <el-input v-model="carform.grossMass" autocomplete="off"></el-input>
  1604. </el-form-item>
  1605. <el-form-item label="整备质量">
  1606. <el-input v-model="carform.unladenMass" autocomplete="off"></el-input>
  1607. </el-form-item>
  1608. <el-form-item label="核定载质量">
  1609. <el-input v-model="carform.limitLoad" autocomplete="off"></el-input>
  1610. </el-form-item>
  1611. <el-form-item label="核定载客数">
  1612. <el-input v-model="carform.approvedPassengersCapacity" autocomplete="off"></el-input>
  1613. </el-form-item>
  1614. <el-form-item label="注册日期">
  1615. <el-input v-model="carform.registerDate" autocomplete="off"></el-input>
  1616. </el-form-item>
  1617. <el-form-item label="发证日期">
  1618. <el-input v-model="carform.issueDate" autocomplete="off"></el-input>
  1619. </el-form-item>
  1620. </el-form>
  1621. </div>
  1622. </div>
  1623. </el-row>
  1624. <span slot="footer" class="dialog-footer">
  1625. <el-button type="primary" @click="CarOCRdiscern()" size="small">识 别</el-button>
  1626. <el-button type="primary" @click="CarOCRconfirm()" size="small">确 认</el-button>
  1627. </span>
  1628. </el-dialog>
  1629. <el-dialog :visible.sync="uploaduserdialogVisible" width="960px" style="padding:10px 20px;box-sizing: border-box;"
  1630. @open="closeDialog(userIndex)">
  1631. <el-tabs v-model="activeName">
  1632. <el-tab-pane label="身份证识别" name="1">
  1633. <el-row :gutter="20">
  1634. <div class="bodys1">
  1635. <div>
  1636. <div class="flex">
  1637. <div class="OCR" style="text-align:center;">身份证主页</div>
  1638. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1639. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1640. :on-change="userfrontChange">
  1641. <img v-show="userfrontImg" :src="userfrontImg" style="width:100%;height:100%" />
  1642. <img v-show="!userfrontImg" src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1643. <span class="slot" v-show="userfrontImg" @click.stop>
  1644. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userfrontImg)"></i>
  1645. <i class="el-icon-delete" @click.stop="handleRemove('userfrontImg')"></i>
  1646. </span>
  1647. </el-upload>
  1648. </div>
  1649. </div>
  1650. <div class="flex">
  1651. <div class="OCR" style="text-align:center;">身份证副页</div>
  1652. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1653. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1654. :on-change="userbackChange">
  1655. <img v-show="userbackImg" :src="userbackImg" style="width:100%;height:100%" />
  1656. <img v-show="!userbackImg" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1657. <span class="slot" v-show="userbackImg" @click.stop>
  1658. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userbackImg)"></i>
  1659. <i class="el-icon-delete" @click.stop="handleRemove('userbackImg')"></i>
  1660. </span>
  1661. </el-upload>
  1662. </div>
  1663. </div>
  1664. </div>
  1665. <div style="text-align:center;">
  1666. <el-form :model="ownerInfoform" label-width="130px" size="small">
  1667. <el-form-item label="姓名">
  1668. <el-input v-model="ownerInfoform.name" autocomplete="off"></el-input>
  1669. </el-form-item>
  1670. <el-form-item label="性别">
  1671. <el-input v-model="ownerInfoform.gender" autocomplete="off"></el-input>
  1672. </el-form-item>
  1673. <el-form-item label="证件类型">
  1674. <el-input v-model="ownerInfoform.identifyType" autocomplete="off"></el-input>
  1675. </el-form-item>
  1676. <el-form-item label="证件号码">
  1677. <el-input v-model="ownerInfoform.identifyNumber" autocomplete="off"></el-input>
  1678. </el-form-item>
  1679. <el-form-item label="车主手机号">
  1680. <el-input v-model="ownerInfoform.mobile" autocomplete="off"></el-input>
  1681. </el-form-item>
  1682. <el-form-item label="地址">
  1683. <el-input v-model="ownerInfoform.addr" autocomplete="off"></el-input>
  1684. </el-form-item>
  1685. <el-form-item label="有效期起期">
  1686. <el-input disabled v-model="ownerInfoform.identifyValidDate" autocomplete="off"></el-input>
  1687. </el-form-item>
  1688. <el-form-item label="有效期止期">
  1689. <el-input disabled v-model="ownerInfoform.identifyValidEndDate" autocomplete="off"></el-input>
  1690. </el-form-item>
  1691. <el-form-item label="电子邮箱">
  1692. <el-input v-model="ownerInfoform.email" autocomplete="off"></el-input>
  1693. </el-form-item>
  1694. </el-form>
  1695. </div>
  1696. </div>
  1697. </el-row>
  1698. </el-tab-pane>
  1699. <el-tab-pane label="营业执照" name="2">
  1700. <el-row :gutter="20">
  1701. <div class="bodys1">
  1702. <div>
  1703. <div class="flex">
  1704. <div class="OCR" style="text-align:center;">营业执照</div>
  1705. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1706. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1707. :on-change="userfrontChange">
  1708. <img v-show="businessImg" :src="businessImg" style="width:100%;height:100%" />
  1709. <img v-show="!businessImg" src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1710. <span class="slot" v-show="businessImg" @click.stop>
  1711. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(businessImg)"></i>
  1712. <i class="el-icon-delete" @click.stop="handleRemove('businessImg')"></i>
  1713. </span>
  1714. </el-upload>
  1715. </div>
  1716. </div>
  1717. </div>
  1718. <div style="text-align:center;">
  1719. <el-form :model="ownerInfoform" label-width="130px" size="small">
  1720. <el-form-item label="单位名称">
  1721. <el-input autocomplete="off"></el-input>
  1722. </el-form-item>
  1723. <el-form-item label="法人">
  1724. <el-input autocomplete="off"></el-input>
  1725. </el-form-item>
  1726. <el-form-item label="社会信用代码">
  1727. <el-input autocomplete="off"></el-input>
  1728. </el-form-item>
  1729. <el-form-item label="地址">
  1730. <el-input autocomplete="off"></el-input>
  1731. </el-form-item>
  1732. <el-form-item label="经营范围">
  1733. <el-input autocomplete="off"></el-input>
  1734. </el-form-item>
  1735. <el-form-item label="注册资本">
  1736. <el-input autocomplete="off"></el-input>
  1737. </el-form-item>
  1738. </el-form>
  1739. </div>
  1740. </div>
  1741. </el-row>
  1742. </el-tab-pane>
  1743. </el-tabs>
  1744. <span slot="footer" class="dialog-footer">
  1745. <el-button type="primary" @click="userOCRdiscern()" size="small">识 别</el-button>
  1746. <el-button type="primary" @click="userOCRconfirm()" size="small">确 认</el-button>
  1747. </span>
  1748. </el-dialog>
  1749. <el-dialog :visible.sync="imageUploaddialogVisible" width="1070px">
  1750. <div slot="title" class="dialog-title">
  1751. <span>影像上传</span>
  1752. </div>
  1753. <el-row>
  1754. <el-col :span="3">
  1755. <div class="tab-style">
  1756. <li class="liMenu" :class="idx == tabLiIndex ? 'tabLi-style' : ''" @click="tabLiScroll(item.scroll, idx)"
  1757. v-for="(item, idx) in tabLimenu" :key="idx">{{ item.name }}</li>
  1758. </div>
  1759. </el-col>
  1760. <el-col :span="21" style="height:320px;overflow-y: auto;">
  1761. <div class="flex" id="vehicle">
  1762. <div class="aaa">
  1763. <span>1.行驶证主页</span>
  1764. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1765. :on-change="file => drivingupload(file, 'imageList1', 'imgList1', 'C01')" :file-list="imgList1"
  1766. ref="upload1" :class="{ styleB: imgList1.length == 1 }">
  1767. <img v-show="imgList1.length == 0" src="../../../../static/carfront.png" style="width:100%;height:100%" />
  1768. <div slot="file" slot-scope="{file}" v-if="imgList1.length > 0">
  1769. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1770. <span class="el-upload-list__item-actions">
  1771. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList1')">
  1772. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1773. <i class="el-icon-delete"></i>
  1774. </span>
  1775. </span>
  1776. </div>
  1777. </el-upload>
  1778. </div>
  1779. <div class="aaa">
  1780. <span>2.行驶证副页</span>
  1781. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1782. :on-change="file => drivingupload(file, 'imageList1', 'imgList2', 'D01')" :file-list="imgList2"
  1783. ref="upload2" :class="{ styleB: imgList2.length === 1 }">
  1784. <img v-show="imgList2.length == 0" src="../../../../static/carback.png" style="width:100%;height:100%" />
  1785. <div slot="file" slot-scope="{file}">
  1786. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1787. <span class="el-upload-list__item-actions">
  1788. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList2')">
  1789. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1790. <i class="el-icon-delete"></i>
  1791. </span>
  1792. </span>
  1793. </div>
  1794. </el-upload>
  1795. </div>
  1796. <div class="aaa">
  1797. <span>1.新车合格证</span>
  1798. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1799. :on-change="file => drivingupload(file, 'imageList5', 'imgList9', 'XC00')" :file-list="imgList9" multiple
  1800. ref="upload3" :class="{ styleB: imgList9.length === 1 }">
  1801. <img v-show="imgList9.length == 0" src="../../../../static/userfront.png"
  1802. style="width:100%;height:100%" />
  1803. <div slot="file" slot-scope="{file}">
  1804. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1805. <span class="el-upload-list__item-actions">
  1806. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList9')">
  1807. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1808. <i class="el-icon-delete"></i>
  1809. </span>
  1810. </span>
  1811. </div>
  1812. </el-upload>
  1813. </div>
  1814. <div class="aaa">
  1815. <span>2.购车发票</span>
  1816. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1817. :on-change="file => drivingupload(file, 'imageList5', 'imgList10', 'GC00')" :file-list="imgList10"
  1818. multiple ref="upload4" :class="{ styleB: imgList10.length === 1 }">
  1819. <img v-show="imgList10.length == 0" src="../../../../static/userfront.png"
  1820. style="width:100%;height:100%" />
  1821. <div slot="file" slot-scope="{file}">
  1822. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1823. <span class="el-upload-list__item-actions">
  1824. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList10')">
  1825. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1826. <i class="el-icon-delete"></i>
  1827. </span>
  1828. </span>
  1829. </div>
  1830. </el-upload>
  1831. </div>
  1832. </div>
  1833. <div class="flex" id="owner">
  1834. <div class="aaa">
  1835. <span>1.车主身份证(正面)</span>
  1836. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1837. :on-change="file => drivingupload(file, 'imageList2', 'imgList3', 'C02')" :file-list="imgList3" multiple
  1838. ref="upload3" :class="{ styleB: imgList3.length === 1 }">
  1839. <img v-show="imgList3.length == 0" src="../../../../static/userfront.png"
  1840. style="width:100%;height:100%" />
  1841. <div slot="file" slot-scope="{file}">
  1842. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1843. <span class="el-upload-list__item-actions">
  1844. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList3')">
  1845. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1846. <i class="el-icon-delete"></i>
  1847. </span>
  1848. </span>
  1849. </div>
  1850. </el-upload>
  1851. </div>
  1852. <div class="aaa">
  1853. <span>2.车主身份证(反面)</span>
  1854. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1855. :on-change="file => drivingupload(file, 'imageList2', 'imgList4', 'D02')" :file-list="imgList4" multiple
  1856. ref="upload4" :class="{ styleB: imgList4.length === 1 }">
  1857. <img v-show="imgList4.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1858. <div slot="file" slot-scope="{file}">
  1859. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1860. <span class="el-upload-list__item-actions">
  1861. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1862. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1863. <i class="el-icon-delete"></i>
  1864. </span>
  1865. </span>
  1866. </div>
  1867. </el-upload>
  1868. </div>
  1869. <div class="aaa">
  1870. <span>3.营业执照</span>
  1871. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1872. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1873. <div slot="file" slot-scope="{file}">
  1874. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1875. <span class="el-upload-list__item-actions">
  1876. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1877. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1878. <i class="el-icon-delete"></i>
  1879. </span>
  1880. </span>
  1881. </div>
  1882. </el-upload>
  1883. </div>
  1884. </div>
  1885. <div class="flex" id="applicant">
  1886. <div class="aaa">
  1887. <span>1.投保人身份证(正面)</span>
  1888. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1889. :on-change="file => drivingupload(file, 'imageList3', 'imgList5', 'C03')" :file-list="imgList5" multiple
  1890. ref="upload5" :class="{ styleB: imgList5.length === 1 }">
  1891. <img v-show="imgList5.length == 0" src="../../../../static/userfront.png"
  1892. style="width:100%;height:100%" />
  1893. <div slot="file" slot-scope="{file}">
  1894. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1895. <span class="el-upload-list__item-actions">
  1896. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList5')">
  1897. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1898. <i class="el-icon-delete"></i>
  1899. </span>
  1900. </span>
  1901. </div>
  1902. </el-upload>
  1903. </div>
  1904. <div class="aaa">
  1905. <span>2.投保人身份证(反面)</span>
  1906. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1907. :on-change="file => drivingupload(file, 'imageList3', 'imgList6', 'D03')" :file-list="imgList6" multiple
  1908. ref="upload6" :class="{ styleB: imgList6.length === 1 }">
  1909. <img v-show="imgList6.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1910. <div slot="file" slot-scope="{file}">
  1911. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1912. <span class="el-upload-list__item-actions">
  1913. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList6')">
  1914. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1915. <i class="el-icon-delete"></i>
  1916. </span>
  1917. </span>
  1918. </div>
  1919. </el-upload>
  1920. </div>
  1921. <div class="aaa">
  1922. <span>3.营业执照</span>
  1923. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1924. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1925. <div slot="file" slot-scope="{file}">
  1926. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1927. <span class="el-upload-list__item-actions">
  1928. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1929. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1930. <i class="el-icon-delete"></i>
  1931. </span>
  1932. </span>
  1933. </div>
  1934. </el-upload>
  1935. </div>
  1936. </div>
  1937. <div class="flex">
  1938. <div class="aaa">
  1939. <span id="insured">1.被保人身份证(正面)</span>
  1940. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1941. :on-change="file => drivingupload(file, 'imageList4', 'imgList7', 'C04')" :file-list="imgList7" multiple
  1942. ref="upload7" :class="{ styleB: imgList7.length === 1 }">
  1943. <img v-show="imgList7.length == 0" src="../../../../static/userfront.png"
  1944. style="width:100%;height:100%" />
  1945. <div slot="file" slot-scope="{file}">
  1946. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1947. <span class="el-upload-list__item-actions">
  1948. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList7')">
  1949. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1950. <i class="el-icon-delete"></i>
  1951. </span>
  1952. </span>
  1953. </div>
  1954. </el-upload>
  1955. </div>
  1956. <div class="aaa">
  1957. <span>2.被保人身份证(反面)</span>
  1958. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1959. :on-change="file => drivingupload(file, 'imageList4', 'imgList8', 'D04')" :file-list="imgList8" multiple
  1960. ref="upload8" :class="{ styleB: imgList8.length === 1 }">
  1961. <img v-show="imgList8.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1962. <div slot="file" slot-scope="{file}">
  1963. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1964. <span class="el-upload-list__item-actions">
  1965. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList8')">
  1966. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1967. <i class="el-icon-delete"></i>
  1968. </span>
  1969. </span>
  1970. </div>
  1971. </el-upload>
  1972. </div>
  1973. <div class="aaa">
  1974. <span>3.营业执照</span>
  1975. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1976. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1977. <div slot="file" slot-scope="{file}">
  1978. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1979. <span class="el-upload-list__item-actions">
  1980. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1981. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1982. <i class="el-icon-delete"></i>
  1983. </span>
  1984. </span>
  1985. </div>
  1986. </el-upload>
  1987. </div>
  1988. </div>
  1989. <div class="flex" id="relationship">
  1990. <div class="aaa">
  1991. <span>1.关系证明</span>
  1992. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1993. :on-change="file => drivingupload(file, 'imageList5', 'imgList11', 'GX00')" :file-list="imgList11"
  1994. multiple ref="upload3" :class="{ styleB: imgList11.length === 1 }">
  1995. <img v-show="imgList11.length == 0" src="../../../../static/userfront.png"
  1996. style="width:100%;height:100%" />
  1997. <div slot="file" slot-scope="{file}">
  1998. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1999. <span class="el-upload-list__item-actions">
  2000. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList11')">
  2001. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2002. <i class="el-icon-delete"></i>
  2003. </span>
  2004. </span>
  2005. </div>
  2006. </el-upload>
  2007. </div>
  2008. </div>
  2009. </el-col>
  2010. </el-row>
  2011. <span slot="footer" class="dialog-footer">
  2012. <el-button size="small" @click="imageUploaddialogVisible = false">取 消</el-button>
  2013. <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
  2014. </span>
  2015. </el-dialog>
  2016. <div v-if="isLetter" class="flex j-c a-c" :class="{
  2017. 'footer': true,
  2018. 'shadow': !isBottom
  2019. }">
  2020. <el-button size="small" @click="add()">录下一单</el-button>
  2021. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  2022. </div>
  2023. <div v-else style="text-align: center">
  2024. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  2025. </div>
  2026. <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter">
  2027. <div>
  2028. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" @click="handleScroll('Car')" />
  2029. </div>
  2030. <div>
  2031. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" @click="handleScroll('insurance')" />
  2032. </div>
  2033. <div>
  2034. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" @click="handleScroll('more')" />
  2035. </div>
  2036. <div>
  2037. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" @click="handleScroll('company')" />
  2038. </div>
  2039. </div>
  2040. <el-dialog title="核保信息" :visible.sync="underwritingdialogVisible" width="30%">
  2041. <div class="flex j-s f-c">
  2042. <div style="font-size: 18px;color: #D42426;font-weight:700;padding: 10px 30px;" v-if="orderstatus == '2'">
  2043. 订单状态:已核保待缴费</div>
  2044. </div>
  2045. <span slot="footer" class="dialog-footer" v-if="orderstatus == '2'">
  2046. <el-button style="width: 100px;" type="primary" size="small"
  2047. @click="Payment(companyId, queryOrders.inscompany)">缴费二维码</el-button>
  2048. </span>
  2049. </el-dialog>
  2050. <el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
  2051. <div class="flex a-c u-f-sa" v-if="renewalCodeJqImg">
  2052. <span>交强转保确认码</span>
  2053. <div class="flex a-c f-c">
  2054. <img :src="renewalCodeJqImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2055. <el-input v-model="renewalCodeJq" placeholder="请输入确认码" style="width: 150px"></el-input>
  2056. </div>
  2057. </div>
  2058. <div class="flex a-c u-f-sa" v-if="renewalCodeSyImg">
  2059. <span>商业转保确认码</span>
  2060. <div class="flex a-c f-c">
  2061. <img :src="renewalCodeSyImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2062. <el-input v-model="renewalCodeSy" placeholder="请输入确认码" style="width: 150px"></el-input>
  2063. </div>
  2064. </div>
  2065. <span slot="footer" class="dialog-footer">
  2066. <el-button size="small" @click="renewalCodedialogVisible = false">取 消</el-button>
  2067. <el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
  2068. </span>
  2069. </el-dialog>
  2070. <el-dialog :title="contributingState ? '选择特约' : '提交核保'" :visible.sync="hbsubmitdialogVisible" width="1200px">
  2071. <div style="margin-bottom: 20px;font-weight: bold;">特约选择</div>
  2072. <el-table size="small" :data="zijinengageListData" border v-loading="contributingLoading"
  2073. @select="zijinengageChange" @select-all="zijinengageChangeAll" ref="expandTablePro" highlight-current-row
  2074. @cell-dblclick="zijincellDblclick" :cell-class-name="tableCellClassName"
  2075. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  2076. <el-table-column type="selection" width="55"></el-table-column>
  2077. <el-table-column prop="clauseCode" :width="80" label="特约代码" align="center"></el-table-column>
  2078. <el-table-column v-if="contributingState" :width="100" prop="riskName" label="特约险种"
  2079. align="center"></el-table-column>
  2080. <el-table-column prop="clauseName" label="特约名称" align="center"></el-table-column>
  2081. <el-table-column prop="clauseContent" label="特约内容">
  2082. <template slot-scope="scope">
  2083. <el-input @blur="hideInput" size="small" type="textarea" :ref="scope.row.index + ',' + scope.column.index"
  2084. v-model="scope.row.clauseContent"
  2085. v-if="scope.row.index + ',' + scope.column.index == currentCell && scope.row.modifyFlag == '1'"></el-input>
  2086. <span v-else>{{ scope.row.clauseContent }}</span>
  2087. </template>
  2088. </el-table-column>
  2089. </el-table>
  2090. <span slot="footer" class="dialog-footer">
  2091. <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
  2092. <el-button v-if="contributingState" size="small" type="primary"
  2093. @click="hbsubmitdialogVisible = false">确定</el-button>
  2094. <el-button v-else size="small" type="primary" @click="hbsubmit">提交核保</el-button>
  2095. </span>
  2096. </el-dialog>
  2097. <!-- 报价单 -->
  2098. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  2099. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  2100. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
  2101. <el-dialog :visible.sync="redictInfodialogVisible" width="70%">
  2102. <el-table :data="redictInfoMsg" style="width: 100%">
  2103. <el-table-column prop="description" label="审核意见"></el-table-column>
  2104. <el-table-column prop="opinion" label="备注"></el-table-column>
  2105. </el-table>
  2106. </el-dialog>
  2107. </div>
  2108. </template>
  2109. <script>
  2110. let _self;
  2111. import QRCode from "qrcodejs2";
  2112. import Cookies from "js-cookie";
  2113. import CommonUtil from "@/utils/comutil.js";
  2114. import {
  2115. getAgeByIdCard,
  2116. searchkey,
  2117. addressCode,
  2118. getGenderByIdCard
  2119. } from "@/utils/validate.js";
  2120. import citydata from "@/assets/js/citydata.js";
  2121. // import yongchengData from '../../assets/js/yongchengData';
  2122. import { regionData, codeToText } from "element-china-area-data";
  2123. import { base64ToPath } from "@/common/image-tools-base64.js";
  2124. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  2125. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  2126. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  2127. export default {
  2128. inject: ["reload"],
  2129. name: "qrCode",
  2130. data() {
  2131. var checkpurchasePrice = (rule, value, callback) => {
  2132. if (!value) {
  2133. callback(new Error("新车购置价不能为空"));
  2134. } else if (value == 0) {
  2135. callback(new Error("新车购置价不能为零"));
  2136. } else {
  2137. callback();
  2138. }
  2139. };
  2140. var checkframeNo = (rule, value, callback) => {
  2141. if (value.length < 17) {
  2142. callback(new Error("车架号不足17位"));
  2143. } else if (
  2144. value.indexOf("I") != "-1" ||
  2145. value.indexOf("O") != "-1" ||
  2146. value.indexOf("Q") != "-1"
  2147. ) {
  2148. callback(new Error("车架号不能包含(I O Q)三个字母"));
  2149. } else {
  2150. callback();
  2151. }
  2152. };
  2153. var carPhoneValid = (rule, value, callback) => {
  2154. const plateNumber = /^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1})$/;
  2155. if (!value) {
  2156. callback(new Error("请输入车牌号"));
  2157. } else if (plateNumber.test(value)) {
  2158. callback();
  2159. } else {
  2160. callback(new Error("请输入正确的车牌号"));
  2161. }
  2162. };
  2163. return {
  2164. watermarkedImage:'',
  2165. redictInfoMsg: [],
  2166. redictInfodialogVisible: false,
  2167. qrcodeWidth: "180",
  2168. qrcodeHeight: "180",
  2169. activeName: "1",
  2170. isTaxSourceModel: "",
  2171. tabLiIndex: 0,
  2172. tabLimenu: [
  2173. {
  2174. name: "车辆信息",
  2175. scroll: "vehicle"
  2176. },
  2177. {
  2178. name: "车主信息",
  2179. scroll: "owner"
  2180. },
  2181. {
  2182. name: "投保人信息",
  2183. scroll: "applicant"
  2184. },
  2185. {
  2186. name: "被保人信息",
  2187. scroll: "insured"
  2188. },
  2189. {
  2190. name: "关系证明",
  2191. scroll: "relationship"
  2192. }
  2193. ],
  2194. packageValue: "",
  2195. packageOptions: [],
  2196. zhongmeiInsurancetype: "", //中煤驾意险产品选中值
  2197. zhongmeiInsuranceData: [], //中煤驾意险产品列表数据
  2198. zhongmeiInsuranceDataDetail: [], //中煤驾意险产品明细方案数据
  2199. zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
  2200. currentCell: null,
  2201. feeDetailInfo: [], //费用明细信息
  2202. immediatelyValue: false,
  2203. isRetractZJ: false,
  2204. isRetractHB: false,
  2205. isRetractZM: false,
  2206. isRetractASTP: false,
  2207. isRetractZA: false,
  2208. isRetractYC: false,
  2209. isRetractRS: false,
  2210. templateSelection: "",
  2211. AStemplateSelection: "",
  2212. iscCrownerShow: false,
  2213. isApplicantShow: false,
  2214. isInsuredShow: false,
  2215. formInline: {},
  2216. anshengInsurancetype: "", //安盛
  2217. anshengInsuranceData: [], //安盛驾意险
  2218. anshengInsuranceData1: [], //安盛驾意险
  2219. anshengaccidentalDrivingVo: {}, //安盛驾意险
  2220. insuranceHB: "", //恒邦
  2221. hengbangInsuranceData: [], //恒邦驾意险
  2222. HBInsuranceData: [],
  2223. hengbangaccidentalDrivingVo: {}, //恒邦驾意险
  2224. insuranceHN: "", //华农
  2225. huanongInsuranceData: [], //华农驾意险
  2226. HNInsuranceData: [],
  2227. huanongaccidentalDrivingVo: {}, //华农驾意险
  2228. renshouaccidentalDrivingVo: {}, //人寿意外险
  2229. renshouInsuranceData: [], //-人寿意外险list
  2230. ziJinInsuranceData: [], //-紫金意外险list
  2231. zhonganInsuranceData: [], //众安驾意险
  2232. zhonganaccidentalDrivingVo: {}, //众安驾意险
  2233. ZJInsuranceData: [],
  2234. insuranceZJ: "",
  2235. accidentalDrivingVo: [], //-紫金意外险传参
  2236. zijinengageListData: [], //紫金特约
  2237. zijinengageList: [], //紫金特约
  2238. // ------------紫金意外险
  2239. insuranceRS: "", //人寿
  2240. RSInsuranceData: [],
  2241. insuranceZA: "", //众安
  2242. ZRInsuranceData: [],
  2243. insuranceTP: "", //太平
  2244. taipingInsuranceData: [], //太平驾意险
  2245. TPDrivingChangeInsuranceData: [],
  2246. taipingaccidentalDrivingVo: {}, //太平驾意险
  2247. licenseplate: true,
  2248. calculateLoading: false, //保费计算按钮 节流
  2249. accidentForm: {
  2250. fen: "1",
  2251. premium: 0
  2252. }, //永诚意外险内容
  2253. accidentFormHN: {
  2254. allQuantity: "1"
  2255. }, //华农意外险内容
  2256. accidentDataList: [], //永诚意外险
  2257. guoRenaccidentDataList: [], //国任意外险
  2258. guoRenaccidenttableData: [],
  2259. guoRenaccidentDataListChild: [],
  2260. insuranceDJ: "",
  2261. dajiaInsuranceData: [], //大家意外险
  2262. DJInsuranceData: [],
  2263. dajiaaccidentalDrivingVo: {},
  2264. accidenttableData: [],
  2265. accidentLoading: false,
  2266. guoRenaccidentLoading: false,
  2267. contributingLoading: false,
  2268. guoRenaccidentPremium: "",
  2269. guoRenaccidentForm: {
  2270. quantity: "1",
  2271. premium: 0
  2272. }, //国任意外险内容
  2273. accidentFormZM: {
  2274. quantity: "1",
  2275. unitPremium: 0
  2276. }, //中煤意外险内容
  2277. boHaiaccidentDataList: [], //渤海意外险
  2278. boHaiaccidentForm: {
  2279. copies: "1",
  2280. policyNum: 0
  2281. },
  2282. accidentLoadingbh: false,
  2283. boHaiaccidenttableData: [],
  2284. accidentPremium: "",
  2285. accidentPremiumGr: "",
  2286. accidentPremiumZM: "",
  2287. contributingState: false, //是否为国任特约
  2288. pickerOptions: {
  2289. disabledDate(time) {
  2290. //若选择的日期小于当前日期(包含今天)
  2291. return time.getTime() > Date.now();
  2292. //若选择的日期大于当前日期(不包含今天): time.getTime() < Date.now()
  2293. //若选择的日期小于当前日期(不包含今天): time.getTime() > Date.now() - 8.64e7
  2294. //若选择的日期小于等于当前日期(包含今天): time.getTime() > Date.now()
  2295. }
  2296. },
  2297. attributionform: {
  2298. //续保查询数据
  2299. configure: [],
  2300. companyId: ""
  2301. },
  2302. continuousAction: [], //续保配置项
  2303. //永诚转保确认码
  2304. cqryCdeJq: "",
  2305. cqryCdeSy: "",
  2306. renewalCodeJq: "", //交强确认码
  2307. renewalCodeSy: "", //商业确认码
  2308. renewalCodeJqImg: "", //交强图片
  2309. renewalCodeSyImg: "", //商业图片
  2310. //-----------------
  2311. showViewer: false,
  2312. transferDateShow: false, //转移登记日期
  2313. yonganchecked: false, //永安驾意险
  2314. renbaochecked: false, //人保驾意险
  2315. zhongmeichecked: false, //中煤驾意险
  2316. hengbangchecked: false, //恒邦驾意险
  2317. yongchengchecked: false, //永诚驾意险
  2318. yonganDrivinglist: [],
  2319. renbaoDrivinglist: [],
  2320. zhongmeiDrivinglist: [],
  2321. hengbangDrivinglist: [],
  2322. yongchengDrivinglist: [],
  2323. tbczcarShow: true, //投保人同车主
  2324. bbczcarShow: false, //被保人同车主
  2325. bbtbcarShow: true, //被保人同投保人
  2326. imageUploadShow: true, //上传影像显示
  2327. ProViewImg: "", //预览图片
  2328. carfrontImg: "", //行驶证正面
  2329. carbackImg: "", //行驶证背面
  2330. userfrontImg: "", //身份证正面
  2331. userbackImg: "", //身份证背面
  2332. businessImg: "",
  2333. CarFrontFile: "", //车正面文件流
  2334. CarBackFile: "", //车背面文件流
  2335. C02File: "",
  2336. D02File: "",
  2337. C03File: "",
  2338. D03File: "",
  2339. C04File: "",
  2340. D04File: "",
  2341. userIndex: 1, //区分三种人员
  2342. TabName: "car", //默认选项卡
  2343. value1: "",
  2344. chexingdialogVisible: false, //车型选择 显示/隐藏
  2345. sbdmdialogVisible: false, //车型车辆识别代码选择 显示/隐藏
  2346. codedialogVisible: false, //二维码 显示/隐藏
  2347. codedialogVisiblePro: false,
  2348. uploadcardialogVisible: false, //行驶证识别 显示/隐藏
  2349. uploaduserdialogVisible: false, //身份证识别 显示/隐藏
  2350. imageUploaddialogVisible: false, //影像上传 显示/隐藏
  2351. underwritingdialogVisible: false, //核保信息 显示/隐藏
  2352. renewalCodedialogVisible: false, //转保确认码输入
  2353. hbsubmitdialogVisible: false, //核保弹框
  2354. Carinsurance: {
  2355. jqinsurance: "1", //交强险
  2356. syinsurance: "1" //商业险
  2357. },
  2358. jqchecked: true,
  2359. sychecked: false,
  2360. jqstartDate: "", //交强时间
  2361. jqendDate: "", //交强时间
  2362. systartDate: "", //商业时间
  2363. syendDate: "", //商业时间
  2364. loading: false, //加载事件
  2365. reslist: [], //车型列表
  2366. userId: "", //出单工号
  2367. carInfo: {
  2368. powerScale: "", ///功率
  2369. licenseNo: "", //车牌号
  2370. brandName: "", //车辆品牌型号
  2371. vinNo: "", //车架号
  2372. engineNo: "", //发动机号
  2373. modelCode: "", //车型编码
  2374. seatCount: null, //核定载客量 核定载人数
  2375. purchasePrice: null, //新车购置价最低,行业实际价值,协商价值
  2376. carBrand: "", //车型品牌
  2377. ciCarName: "", //行业车型名称
  2378. ciModelCode: "", //行业车型编码
  2379. completeKerbMass: "", //整备质量
  2380. exhaustScale: "", //排量
  2381. factory: "", //工厂名称
  2382. factoryid: "", //工厂编码
  2383. frameNo: "", //车架号
  2384. licenseTypeCode: "02", //号牌种类
  2385. vehicleclass: "", //车辆类型
  2386. familyName: "", //车型
  2387. modelcname: "", //车型名称
  2388. powertypecode: "", //燃料类型编码
  2389. vehicleweight: "", //总质量
  2390. limitLoad: "", //核定载质量
  2391. caryear: null, //年款
  2392. cimodelclass: "A0", //车辆种类
  2393. energyType: "0", //能源类型
  2394. enginedesc: "", //排量
  2395. registerDate: "", //注册日期
  2396. issueDate: "", //发证日期
  2397. transferFlag: 0, //过户标志
  2398. transferFlagBi: false, //商业险是否过户
  2399. transferDate: "", //过户日期
  2400. loanStatus: 0, //贷款标志
  2401. firstBeneMan: "", //第一受益人
  2402. noLicenseFlag: false, //是否新车
  2403. cartype: "", //客车A0 货车H0
  2404. carnature: "02", //使用性质
  2405. vehicleUse: "05",
  2406. property: "1" //所属性质 1个人 2企业 3个人
  2407. },
  2408. carform: {
  2409. carOwner: "", //车主
  2410. licenseNo: "", //车牌号
  2411. modelcname: "", //车辆品牌型号
  2412. frameNo: "", //车架号
  2413. engineNo: "", //发动机号
  2414. registerDate: "", //注册日期
  2415. issueDate: "", //发证日期
  2416. grossMass: "", //总质量
  2417. unladenMass: "", //整备质量
  2418. limitLoad: "", //核定载质量
  2419. approvedPassengersCapacity: "" //核定载客数
  2420. },
  2421. ownerInfoform: {
  2422. name: "",
  2423. identifyType: "",
  2424. identifyNumber: "",
  2425. age: "", //年龄
  2426. gender: "", //性别
  2427. addr: "",
  2428. email: "",
  2429. mobile: "",
  2430. identifyValidDate: "", //有效期起期
  2431. identifyValidEndDate: "" //有效期止期
  2432. // province: "",//省
  2433. // city: "",//市
  2434. // county: "",//县
  2435. },
  2436. riskList: [], //险种大类信息
  2437. kindList: [], //商业险险别
  2438. ownerInfo: {
  2439. //车主
  2440. name: "", //姓名
  2441. identifyType: "01", //身份证类型
  2442. identifyNumber: "", //身份证号
  2443. age: "", //年龄
  2444. gender: "", //性别
  2445. addr: "", //地址
  2446. email: "", //邮箱
  2447. mobile: "", //电话
  2448. identifyValidDate: "", //有效期起期
  2449. identifyValidEndDate: "", //有效期止期
  2450. // province: "",//省
  2451. // city: "",//市
  2452. // county: "",//县
  2453. provinceData: [] //省市区
  2454. },
  2455. policyHolderInfo: {
  2456. //投保人
  2457. name: "", //姓名
  2458. identifyType: "01", //身份证类型
  2459. identifyNumber: "", //身份证号
  2460. age: "", //年龄
  2461. gender: "", //性别
  2462. addr: "", //地址
  2463. email: "", //邮箱
  2464. mobile: "", //电话
  2465. identifyValidDate: "", //有效期起期
  2466. identifyValidEndDate: "", //有效期止期
  2467. // province: "",//省
  2468. // city: "",//市
  2469. // county: "",//县
  2470. provinceData: [] //省市区
  2471. },
  2472. insuredPersonInfo: {
  2473. //被保人
  2474. name: "", //姓名
  2475. identifyType: "01", //身份证类型
  2476. identifyNumber: "", //身份证号
  2477. age: "", //年龄
  2478. gender: "", //性别
  2479. addr: "", //地址
  2480. email: "", //邮箱
  2481. mobile: "", //电话
  2482. identifyValidDate: "", //有效期起期
  2483. identifyValidEndDate: "", //有效期止期
  2484. provinceData: [] //省市区
  2485. // province: "",//省
  2486. // city: "",//市
  2487. // county: "",//县
  2488. },
  2489. //车船税form
  2490. vehicleAndVesselTaxForm: {
  2491. taxRelifFlag: "1", //类型
  2492. identifyNumber: "", //纳税人识别号
  2493. taxpayerIdentifier: "01", //纳税人证件类型
  2494. taxpayerName: "", //纳税人名称
  2495. extendChar2: "", //减免税凭证号
  2496. paidFreeCertificate: "", //完税凭证号
  2497. relifReason: "", //减免税原因
  2498. taxComCode: "", //税务机关代码
  2499. taxComName: "", ///税务机关名称
  2500. taxDocumentDate: "", //完税日期
  2501. taxPaidAreaCode: "", //完税凭证地区代码
  2502. taxRelief: "" //减税比例
  2503. },
  2504. //车辆用途列表
  2505. vehicleList: [],
  2506. //能源种类列表
  2507. rules: {
  2508. extendChar2: [
  2509. { required: true, message: "请输入减免税凭证号", trigger: "blur" }
  2510. ],
  2511. paidFreeCertificate: [
  2512. { required: true, message: "请输入完税凭证号", trigger: "blur" }
  2513. ],
  2514. relifReason: [
  2515. { required: true, message: "请输入减免税原因", trigger: "blur" }
  2516. ],
  2517. taxComCode: [
  2518. { required: true, message: "请输入税务机关代码", trigger: "blur" }
  2519. ],
  2520. taxComName: [
  2521. { required: true, message: "请输入税务机关名称", trigger: "blur" }
  2522. ],
  2523. taxDocumentDate: [
  2524. { required: true, message: "请输入完税日期", trigger: "blur" }
  2525. ],
  2526. taxPaidAreaCode: [
  2527. { required: true, message: "请选择完税地区", trigger: "blur" }
  2528. ],
  2529. taxRelief: [
  2530. { required: true, message: "请输入减税比例", trigger: "blur" }
  2531. ],
  2532. taxpayerName: [
  2533. { required: true, message: "请输入纳税人名称", trigger: "blur" }
  2534. ],
  2535. taxpayerIdentifier: [
  2536. { required: true, message: "请选择证件类型", trigger: "blur" }
  2537. ],
  2538. taxRelifFlag: [
  2539. { required: true, message: "请选择纳税类型", trigger: "blur" }
  2540. ],
  2541. energyType: [
  2542. { required: true, message: "请选择能源种类", trigger: "blur" }
  2543. ],
  2544. cimodelclass: [
  2545. { required: true, message: "请选择车辆种类", trigger: "blur" }
  2546. ],
  2547. carnature: [
  2548. { required: true, message: "请选择使用性质", trigger: "blur" }
  2549. ],
  2550. cartype: [
  2551. { required: true, message: "请选择车辆类型", trigger: "blur" }
  2552. ],
  2553. vehicleUse: [
  2554. { required: true, message: "请选择车辆用途", trigger: "blur" }
  2555. ],
  2556. brandName: [
  2557. { required: true, message: "请填写品牌型号", trigger: "blur" }
  2558. ],
  2559. licenseNo: [
  2560. { max: 8, message: "最多八个字符", trigger: "blur" },
  2561. { required: true, validator: carPhoneValid, trigger: "blur" }
  2562. ],
  2563. frameNo: [{ validator: checkframeNo, trigger: "blur" }],
  2564. engineNo: [
  2565. { required: true, message: "请填写发动机号", trigger: "blur" }
  2566. ],
  2567. purchasePrice: [
  2568. { required: true, validator: checkpurchasePrice, trigger: "blur" }
  2569. ],
  2570. registerDate: [
  2571. { required: true, message: "请选择注册时间", trigger: "blur" }
  2572. ],
  2573. issueDate: [
  2574. { required: true, message: "请选择发证日期", trigger: "blur" }
  2575. ],
  2576. transferDate: [
  2577. { required: true, message: "请选择转移登记日期", trigger: "blur" }
  2578. ],
  2579. seatCount: [
  2580. { required: true, message: "请输入座位数", trigger: "blur" }
  2581. ],
  2582. completeKerbMass: [
  2583. { required: true, message: "请输入整备质量", trigger: "blur" }
  2584. ],
  2585. name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
  2586. // identifyNumber: [
  2587. // { required: true, message: "请填写证件号", trigger: "blur" },
  2588. // { min: 18, max: 18, message: "长度在18个字符", trigger: "blur" },
  2589. // {
  2590. // pattern: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9xX]$/,
  2591. // message: "请输入正确的证件号",
  2592. // trigger: "blur"
  2593. // }
  2594. // ],
  2595. identifyValidDate: [
  2596. { required: true, message: "请选择起期", trigger: "blur" }
  2597. ],
  2598. identifyValidEndDate: [
  2599. { required: true, message: "请选择止期", trigger: "blur" }
  2600. ],
  2601. addr: [
  2602. { required: true, message: "请填写地址", trigger: "blur" },
  2603. { min: 8, message: "最少8个字符", trigger: "blur" }
  2604. ],
  2605. mobile: [
  2606. { required: true, message: "请填写手机号", trigger: "blur" },
  2607. { min: 11, max: 11, message: "长度在11个字符", trigger: "blur" },
  2608. {
  2609. pattern: /^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\d{8}$/,
  2610. message: "请输入正确的手机号",
  2611. trigger: "blur"
  2612. }
  2613. ],
  2614. email: [
  2615. { min: 10, max: 20, message: "最少10个字符", trigger: "blur" },
  2616. {
  2617. pattern: /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
  2618. message: "请输入正确的邮箱",
  2619. trigger: "blur"
  2620. }
  2621. ]
  2622. },
  2623. CIInsureList: {
  2624. //交强险
  2625. amount: "1",
  2626. amountDesc: "投保",
  2627. amtList: [
  2628. {
  2629. label: "不投保",
  2630. value: "0"
  2631. },
  2632. {
  2633. label: "投保",
  2634. value: "1"
  2635. }
  2636. ],
  2637. kindCode: "0507",
  2638. kindName: "交强险",
  2639. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  2640. },
  2641. BIInsureList: {
  2642. //商业险
  2643. amount: "0",
  2644. amountDesc: "投保",
  2645. amtList: [
  2646. {
  2647. label: "不投保",
  2648. value: "0"
  2649. },
  2650. {
  2651. label: "投保",
  2652. value: "1"
  2653. }
  2654. ],
  2655. kindCode: "0510",
  2656. kindName: "商业险",
  2657. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  2658. },
  2659. insureList: [
  2660. {
  2661. amount: "0",
  2662. amountDesc: "投保",
  2663. coveragePremium: 0,
  2664. amtList: [
  2665. {
  2666. label: "不投保",
  2667. value: "0"
  2668. },
  2669. {
  2670. label: "投保",
  2671. value: "1"
  2672. }
  2673. ],
  2674. kindCode: "A",
  2675. isMainRisk: true,
  2676. kindName: "机动车损失险",
  2677. desc:
  2678. "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。"
  2679. },
  2680. {
  2681. amount: "0",
  2682. amountDesc: "不投保",
  2683. coveragePremium: 0,
  2684. amtList: [
  2685. {
  2686. label: "不投保",
  2687. value: "0"
  2688. },
  2689. {
  2690. label: "10万",
  2691. value: "100000"
  2692. },
  2693. {
  2694. label: "15万",
  2695. value: "150000"
  2696. },
  2697. {
  2698. label: "20万",
  2699. value: "200000"
  2700. },
  2701. {
  2702. label: "30万",
  2703. value: "300000"
  2704. },
  2705. {
  2706. label: "50万",
  2707. value: "500000"
  2708. },
  2709. {
  2710. label: "100万",
  2711. value: "1000000"
  2712. },
  2713. {
  2714. label: "150万",
  2715. value: "1500000"
  2716. },
  2717. {
  2718. label: "200万",
  2719. value: "2000000"
  2720. },
  2721. {
  2722. label: "250万",
  2723. value: "2500000"
  2724. },
  2725. {
  2726. label: "300万",
  2727. value: "3000000"
  2728. },
  2729. {
  2730. label: "400万",
  2731. value: "4000000"
  2732. },
  2733. {
  2734. label: "500万",
  2735. value: "5000000"
  2736. },
  2737. {
  2738. label: "600万",
  2739. value: "6000000"
  2740. },
  2741. {
  2742. label: "800万",
  2743. value: "8000000"
  2744. },
  2745. {
  2746. label: "1000万",
  2747. value: "10000000"
  2748. }
  2749. ],
  2750. kindCode: "B",
  2751. isMainRisk: true,
  2752. kindName: "第三者责任险",
  2753. desc:
  2754. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。"
  2755. },
  2756. {
  2757. amount: "0",
  2758. amountDesc: "1万",
  2759. coveragePremium: 0,
  2760. amtList: [
  2761. {
  2762. label: "不投保",
  2763. value: "0"
  2764. },
  2765. {
  2766. label: "1万",
  2767. value: "10000"
  2768. },
  2769. {
  2770. label: "2万",
  2771. value: "20000"
  2772. },
  2773. {
  2774. label: "3万",
  2775. value: "30000"
  2776. },
  2777. {
  2778. label: "4万",
  2779. value: "40000"
  2780. },
  2781. {
  2782. label: "5万",
  2783. value: "50000"
  2784. },
  2785. {
  2786. label: "6万",
  2787. value: "60000"
  2788. },
  2789. {
  2790. label: "7万",
  2791. value: "70000"
  2792. },
  2793. {
  2794. label: "8万",
  2795. value: "80000"
  2796. },
  2797. {
  2798. label: "9万",
  2799. value: "90000"
  2800. },
  2801. {
  2802. label: "10万",
  2803. value: "100000"
  2804. },
  2805. {
  2806. label: "15万",
  2807. value: "150000"
  2808. },
  2809. {
  2810. label: "20万",
  2811. value: "200000"
  2812. },
  2813. {
  2814. label: "25万",
  2815. value: "250000"
  2816. },
  2817. {
  2818. label: "30万",
  2819. value: "300000"
  2820. },
  2821. {
  2822. label: "35万",
  2823. value: "350000"
  2824. },
  2825. {
  2826. label: "40万",
  2827. value: "400000"
  2828. },
  2829. {
  2830. label: "45万",
  2831. value: "450000"
  2832. },
  2833. {
  2834. label: "50万",
  2835. value: "500000"
  2836. }
  2837. ],
  2838. kindCode: "D3",
  2839. isMainRisk: true,
  2840. kindName: "司机责任险",
  2841. desc:
  2842. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  2843. },
  2844. {
  2845. amount: "0",
  2846. amountDesc: "1万",
  2847. coveragePremium: 0,
  2848. amtList: [
  2849. {
  2850. label: "不投保",
  2851. value: "0"
  2852. },
  2853. {
  2854. label: "1万",
  2855. value: "10000"
  2856. },
  2857. {
  2858. label: "2万",
  2859. value: "20000"
  2860. },
  2861. {
  2862. label: "3万",
  2863. value: "30000"
  2864. },
  2865. {
  2866. label: "4万",
  2867. value: "40000"
  2868. },
  2869. {
  2870. label: "5万",
  2871. value: "50000"
  2872. },
  2873. {
  2874. label: "6万",
  2875. value: "60000"
  2876. },
  2877. {
  2878. label: "7万",
  2879. value: "70000"
  2880. },
  2881. {
  2882. label: "8万",
  2883. value: "80000"
  2884. },
  2885. {
  2886. label: "9万",
  2887. value: "90000"
  2888. },
  2889. {
  2890. label: "10万",
  2891. value: "100000"
  2892. },
  2893. {
  2894. label: "15万",
  2895. value: "150000"
  2896. },
  2897. {
  2898. label: "20万",
  2899. value: "200000"
  2900. },
  2901. {
  2902. label: "25万",
  2903. value: "250000"
  2904. },
  2905. {
  2906. label: "30万",
  2907. value: "300000"
  2908. },
  2909. {
  2910. label: "35万",
  2911. value: "350000"
  2912. },
  2913. {
  2914. label: "40万",
  2915. value: "400000"
  2916. },
  2917. {
  2918. label: "45万",
  2919. value: "450000"
  2920. },
  2921. {
  2922. label: "50万",
  2923. value: "500000"
  2924. }
  2925. ],
  2926. kindCode: "D4",
  2927. isMainRisk: true,
  2928. kindName: "乘客责任险",
  2929. desc:
  2930. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  2931. },
  2932. {
  2933. amount: "0",
  2934. amountDesc: "不投保",
  2935. coveragePremium: 0,
  2936. amtList: [
  2937. {
  2938. label: "不投保",
  2939. value: "0"
  2940. },
  2941. {
  2942. label: "2千",
  2943. value: "2000"
  2944. },
  2945. {
  2946. label: "5千",
  2947. value: "5000"
  2948. },
  2949. {
  2950. label: "1万",
  2951. value: "10000"
  2952. },
  2953. {
  2954. label: "2万",
  2955. value: "20000"
  2956. }
  2957. ],
  2958. desc:
  2959. "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
  2960. isMainRisk: false,
  2961. kindCode: "L",
  2962. kindName: "车身划痕险",
  2963. mainRiskCodeList: "A"
  2964. },
  2965. {
  2966. amount: "0",
  2967. amountDesc: "不投保",
  2968. coveragePremium: 0,
  2969. amtList: [
  2970. {
  2971. label: "不投保",
  2972. value: "0"
  2973. },
  2974. {
  2975. label: "5%",
  2976. value: "5"
  2977. },
  2978. {
  2979. label: "10%",
  2980. value: "10"
  2981. },
  2982. {
  2983. label: "15%",
  2984. value: "15"
  2985. },
  2986. {
  2987. label: "20%",
  2988. value: "20"
  2989. }
  2990. ],
  2991. desc:
  2992. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  2993. isMainRisk: false,
  2994. kindCode: "MJ1",
  2995. kindName: "绝对免赔率特约险(车损)",
  2996. mainRiskCodeList: "A"
  2997. },
  2998. {
  2999. amount: "0",
  3000. amountDesc: "不投保",
  3001. coveragePremium: 0,
  3002. amtList: [
  3003. {
  3004. label: "不投保",
  3005. value: "0"
  3006. },
  3007. {
  3008. label: "5%",
  3009. value: "5"
  3010. },
  3011. {
  3012. label: "10%",
  3013. value: "10"
  3014. },
  3015. {
  3016. label: "15%",
  3017. value: "15"
  3018. },
  3019. {
  3020. label: "20%",
  3021. value: "20"
  3022. }
  3023. ],
  3024. desc:
  3025. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3026. isMainRisk: false,
  3027. kindCode: "MJ2",
  3028. kindName: "绝对免赔率特约险(三者)",
  3029. mainRiskCodeList: "B"
  3030. },
  3031. {
  3032. amount: "0",
  3033. amountDesc: "不投保",
  3034. coveragePremium: 0,
  3035. amtList: [
  3036. {
  3037. label: "不投保",
  3038. value: "0"
  3039. },
  3040. {
  3041. label: "5%",
  3042. value: "5"
  3043. },
  3044. {
  3045. label: "10%",
  3046. value: "10"
  3047. },
  3048. {
  3049. label: "15%",
  3050. value: "15"
  3051. },
  3052. {
  3053. label: "20%",
  3054. value: "20"
  3055. }
  3056. ],
  3057. desc:
  3058. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3059. isMainRisk: false,
  3060. kindCode: "MJ3",
  3061. kindName: "绝对免赔率特约险(司机)",
  3062. mainRiskCodeList: "D3"
  3063. },
  3064. {
  3065. amount: "0",
  3066. amountDesc: "不投保",
  3067. coveragePremium: 0,
  3068. amtList: [
  3069. {
  3070. label: "不投保",
  3071. value: "0"
  3072. },
  3073. {
  3074. label: "5%",
  3075. value: "5"
  3076. },
  3077. {
  3078. label: "10%",
  3079. value: "10"
  3080. },
  3081. {
  3082. label: "15%",
  3083. value: "15"
  3084. },
  3085. {
  3086. label: "20%",
  3087. value: "20"
  3088. }
  3089. ],
  3090. desc:
  3091. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3092. isMainRisk: false,
  3093. kindCode: "MJ4",
  3094. kindName: "绝对免赔率特约险(乘客)",
  3095. mainRiskCodeList: "D4"
  3096. },
  3097. {
  3098. amount: "0",
  3099. amountDesc: "不投保",
  3100. coveragePremium: 0,
  3101. amtList: [
  3102. {
  3103. label: "不投保",
  3104. value: "0"
  3105. },
  3106. {
  3107. label: "1万",
  3108. value: "10000"
  3109. },
  3110. {
  3111. label: "2万",
  3112. value: "20000"
  3113. },
  3114. {
  3115. label: "4万",
  3116. value: "40000"
  3117. },
  3118. {
  3119. label: "5万",
  3120. value: "50000"
  3121. },
  3122. {
  3123. label: "8万",
  3124. value: "80000"
  3125. },
  3126. {
  3127. label: "10万",
  3128. value: "100000"
  3129. },
  3130. {
  3131. label: "20万",
  3132. value: "200000"
  3133. },
  3134. {
  3135. label: "30万",
  3136. value: "300000"
  3137. },
  3138. {
  3139. label: "50万",
  3140. value: "500000"
  3141. },
  3142. {
  3143. label: "100万",
  3144. value: "1000000"
  3145. },
  3146. {
  3147. label: "200万",
  3148. value: "2000000"
  3149. },
  3150. {
  3151. label: "300万",
  3152. value: "3000000"
  3153. }
  3154. ],
  3155. kindCode: "SY_FJ_YBW1",
  3156. isMainRisk: true,
  3157. kindName: "附加医保-三者",
  3158. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3159. },
  3160. {
  3161. amount: "0",
  3162. amountDesc: "不投保",
  3163. coveragePremium: 0,
  3164. amtList: [
  3165. {
  3166. label: "不投保",
  3167. value: "0"
  3168. },
  3169. {
  3170. label: "1万",
  3171. value: "10000"
  3172. },
  3173. {
  3174. label: "2万",
  3175. value: "20000"
  3176. },
  3177. {
  3178. label: "5万",
  3179. value: "50000"
  3180. },
  3181. {
  3182. label: "10万",
  3183. value: "100000"
  3184. }
  3185. ],
  3186. kindCode: "SY_FJ_YBW2",
  3187. isMainRisk: true,
  3188. kindName: "附加医保-座位险(乘客)",
  3189. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3190. },
  3191. {
  3192. amount: "0",
  3193. amountDesc: "不投保",
  3194. coveragePremium: 0,
  3195. amtList: [
  3196. {
  3197. label: "不投保",
  3198. value: "0"
  3199. },
  3200. {
  3201. label: "1万",
  3202. value: "10000"
  3203. },
  3204. {
  3205. label: "2万",
  3206. value: "20000"
  3207. },
  3208. {
  3209. label: "5万",
  3210. value: "50000"
  3211. },
  3212. {
  3213. label: "10万",
  3214. value: "100000"
  3215. }
  3216. ],
  3217. kindCode: "SY_FJ_YBW3",
  3218. isMainRisk: true,
  3219. kindName: "附加医保-座位险(司机)",
  3220. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3221. },
  3222. {
  3223. amount: "0",
  3224. amountDesc: "不投保",
  3225. coveragePremium: 0,
  3226. amtList: [
  3227. {
  3228. label: "不投保",
  3229. value: "0"
  3230. },
  3231. {
  3232. label: "50万",
  3233. value: "500000"
  3234. },
  3235. {
  3236. label: "100万",
  3237. value: "1000000"
  3238. },
  3239. {
  3240. label: "150万",
  3241. value: "1500000"
  3242. },
  3243. {
  3244. label: "200万",
  3245. value: "2000000"
  3246. },
  3247. {
  3248. label: "250万",
  3249. value: "2500000"
  3250. },
  3251. {
  3252. label: "300万",
  3253. value: "3000000"
  3254. },
  3255. {
  3256. label: "500万",
  3257. value: "5000000"
  3258. },
  3259. {
  3260. label: "1000万",
  3261. value: "10000000"
  3262. }
  3263. ],
  3264. desc:
  3265. "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
  3266. isMainRisk: false,
  3267. kindCode: "BD",
  3268. kindName: "法定节假日限额翻倍险",
  3269. mainRiskCodeList: "B"
  3270. },
  3271. {
  3272. amount: "0",
  3273. amountDesc: "不投保",
  3274. coveragePremium: 0,
  3275. amtList: [
  3276. {
  3277. label: "不投保",
  3278. value: "0"
  3279. },
  3280. {
  3281. label: "2次",
  3282. value: "2"
  3283. },
  3284. {
  3285. label: "7次",
  3286. value: "7"
  3287. },
  3288. {
  3289. label: "12次",
  3290. value: "12"
  3291. },
  3292. {
  3293. label: "17次",
  3294. value: "17"
  3295. },
  3296. {
  3297. label: "22次",
  3298. value: "22"
  3299. }
  3300. ],
  3301. desc: "道路救援服务特约条款",
  3302. isMainRisk: false,
  3303. kindCode: "TY1",
  3304. kindName: "道路救援服务特约条款"
  3305. },
  3306. {
  3307. amount: "0",
  3308. amountDesc: "不投保",
  3309. coveragePremium: 0,
  3310. desc: "车辆安全检测特约条款",
  3311. isMainRisk: false,
  3312. kindCode: "TY2",
  3313. kindName: "车辆安全检测特约条款"
  3314. },
  3315. {
  3316. amount: "0",
  3317. amountDesc: "不投保",
  3318. coveragePremium: 0,
  3319. desc: "代为驾驶服务特约条款",
  3320. isMainRisk: false,
  3321. kindCode: "TY3",
  3322. kindName: "代为驾驶服务特约条款"
  3323. },
  3324. {
  3325. amount: "0",
  3326. amountDesc: "不投保",
  3327. coveragePremium: 0,
  3328. desc: "代为送检服务特约条款",
  3329. isMainRisk: false,
  3330. kindCode: "TY4",
  3331. kindName: "代为送检服务特约条款"
  3332. }
  3333. ],
  3334. totalCompanyList: [], //报价保险公司
  3335. continuousCompanyList: [], //续保保险公司
  3336. quoteno: "", //报价号
  3337. orderno: "", //订单号
  3338. queryOrders: {
  3339. extendInfo: {},
  3340. carinfo: {},
  3341. ownerinfo: {},
  3342. applyinfo: {},
  3343. insureinfo: {}
  3344. }, //核保详情
  3345. inscompany: "", //保险公司名称
  3346. licenseNo: "", //车牌号
  3347. applyName: "", //车主名字
  3348. orderstatus: "", //订单状态
  3349. sumpremium: "", //保费合计
  3350. jqpremium: "", //交强
  3351. sypremium: "", //商业
  3352. jypremium: "", //驾意险
  3353. taxamount: "", //车船税
  3354. jqstartdate: "", //交强时间
  3355. systartdate: "", //商业时间
  3356. mobile: "", //投保人手机号
  3357. //影像回显列表
  3358. imgList1: [],
  3359. imgList2: [],
  3360. imgList3: [],
  3361. imgList4: [],
  3362. imgList5: [],
  3363. imgList6: [],
  3364. imgList7: [],
  3365. imgList8: [],
  3366. imgList9: [],
  3367. imgList10: [],
  3368. imgList11: [],
  3369. //影像上传列表
  3370. imageList1: [],
  3371. imageList2: [],
  3372. imageList3: [],
  3373. imageList4: [],
  3374. imageList5: [],
  3375. // 是否禁用上传
  3376. uploadDisabled: false,
  3377. href: "",
  3378. pageRequest: {
  3379. //归属查询
  3380. pageNum: 1,
  3381. pageSize: 20,
  3382. columnFilters: {
  3383. deptId: {
  3384. name: "deptId",
  3385. value: "9"
  3386. },
  3387. containsSubDept: {
  3388. name: "containsSubDept",
  3389. value: 1
  3390. },
  3391. usertype: {
  3392. name: "usertype",
  3393. value: null
  3394. },
  3395. status: {
  3396. name: "status",
  3397. value: "1"
  3398. },
  3399. id: {
  3400. name: "id",
  3401. value: ""
  3402. },
  3403. name: {
  3404. name: "name",
  3405. value: ""
  3406. },
  3407. mobile: {
  3408. name: "mobile",
  3409. value: ""
  3410. }
  3411. }
  3412. },
  3413. userform: {},
  3414. qrcode: null,
  3415. paycodeimg: "", //展示二维码
  3416. ImageUrldialogVisible: false,
  3417. paramsEdit: "",
  3418. companyId: "",
  3419. apiType: "",
  3420. insureMore: true,
  3421. // insureLength: 5,
  3422. HistoryList: [], //历史记录数据
  3423. image1: "",
  3424. image2: "",
  3425. historyRadio: "888",
  3426. sumseatCount: "", // 投保险种座位数
  3427. deptName: "",
  3428. isBottom: true,
  3429. logoImg: "", //报价单保险公司logo图
  3430. vehicleTypeoptions: [], //车辆种类
  3431. trafficManagementVehicleTypeoptions: [], //车辆类型
  3432. energyTypeoptions: [], //能源种类
  3433. taxRelifFlagoptions: [], //车船税类型
  3434. taxpayerIdentifieroptions: [], //纳税人证件类型
  3435. relifReasonoptions: [], //减免税原因代码
  3436. relifReasonoptions: [], //减免税原因代码
  3437. provinceSelect: [],
  3438. natureOfVehicleUseoptions: [],
  3439. businessVehicleUseoptions: [],
  3440. outOfBusinessVehicleUseoptions: [],
  3441. insOrderStatusoptions: [],
  3442. lastCompanyId: "",
  3443. apiInterfaceName: 'generateOrder'
  3444. };
  3445. },
  3446. watch: {
  3447. "carInfo.licenseNo": {
  3448. handler(val) {
  3449. if (val) {
  3450. this.carInfo.licenseNo = val.toUpperCase();
  3451. }
  3452. },
  3453. deep: true
  3454. },
  3455. "carInfo.frameNo": {
  3456. handler(val) {
  3457. if (val) {
  3458. this.carInfo.frameNo = val.toUpperCase();
  3459. }
  3460. },
  3461. deep: true
  3462. },
  3463. "carInfo.enginedesc": {
  3464. handler(val) {
  3465. if (val) {
  3466. this.carInfo.enginedesc = val.replace(/[A-Za-z]/g, "");
  3467. }
  3468. },
  3469. deep: true
  3470. },
  3471. "ownerInfo.mobile": {
  3472. handler(val) {
  3473. if (val) {
  3474. this.ownerInfo.mobile = val.replace(/\s/g, "");
  3475. }
  3476. },
  3477. deep: true
  3478. },
  3479. "policyHolderInfo.mobile": {
  3480. handler(val) {
  3481. if (val) {
  3482. this.policyHolderInfo.mobile = val.replace(/\s/g, "");
  3483. }
  3484. },
  3485. deep: true
  3486. },
  3487. "insuredPersonInfo.mobile": {
  3488. handler(val) {
  3489. if (val) {
  3490. this.insuredPersonInfo.mobile = val.replace(/\s/g, "");
  3491. }
  3492. },
  3493. deep: true
  3494. },
  3495. "carInfo.engineNo": {
  3496. handler(val) {
  3497. if (val) {
  3498. this.carInfo.engineNo = val.replace(/[^\w-]/gi, "").toUpperCase();
  3499. }
  3500. },
  3501. deep: true
  3502. },
  3503. "carInfo.seatCount": {
  3504. handler(val) {
  3505. if (val) {
  3506. this.sumseatCount = val - 1;
  3507. }
  3508. },
  3509. deep: true
  3510. },
  3511. "policyHolderInfo.identifyNumber": {
  3512. handler(val) {
  3513. if (val) {
  3514. this.vehicleAndVesselTaxForm.identifyNumber = val;
  3515. }
  3516. },
  3517. deep: true
  3518. },
  3519. "policyHolderInfo.name": {
  3520. handler(val) {
  3521. if (val) {
  3522. this.vehicleAndVesselTaxForm.taxpayerName = val;
  3523. }
  3524. },
  3525. deep: true
  3526. }
  3527. },
  3528. props: {
  3529. isdisabled: {
  3530. type: Boolean,
  3531. default: true
  3532. },
  3533. isLetter: {
  3534. type: Boolean,
  3535. default: true
  3536. },
  3537. },
  3538. components: {
  3539. detailsDialog,
  3540. quotationDialog,
  3541. quotationDialogPro,
  3542. "el-image-viewer": () =>
  3543. import("element-ui/packages/image/src/image-viewer")
  3544. },
  3545. created() {
  3546. if (!this.isLetter) {
  3547. this.apiInterfaceName = 'ordergenerateOrder'
  3548. }
  3549. // this.commpanyList(); //获取保险公司
  3550. this.getDicType("taxRelifFlag"); //车船税类型
  3551. this.getDicType("taxpayerIdentifier"); //纳税人证件类型
  3552. this.getDicType("relifReason"); //减免税原因代码
  3553. this.getDicType("vehicleType"); //车辆种类
  3554. this.getDicType("trafficManagementVehicleType"); //车辆类型
  3555. this.getDicType("energyType"); //能源种类
  3556. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  3557. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  3558. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  3559. this.getDicType("insOrderStatus"); //状态
  3560. this.$api.letter.queryCompany().then(res => {
  3561. this.continuousCompanyList = res.data;
  3562. });
  3563. this.$api.letter.packageQuery().then(res => {
  3564. this.packageOptions = res.data;
  3565. });
  3566. localStorage.setItem("carInfo", JSON.stringify(this.carInfo));
  3567. localStorage.setItem("insureList", JSON.stringify(this.insureList));
  3568. //--归属信息获取--
  3569. var userId = Cookies.get("user");
  3570. if (userId == "admin") {
  3571. this.userId = "admin";
  3572. } else {
  3573. // this.userId = userId;
  3574. this.$api.user.getLoginUser().then(res => {
  3575. if (res.code == 200) {
  3576. this.userform = res.data;
  3577. this.$api.dept.getDeptById(res.data.deptId).then(res => {
  3578. this.deptName = res.data.name;
  3579. });
  3580. }
  3581. });
  3582. }
  3583. //--订单编辑回显--
  3584. // this.paramsEdit = this.$route.query.data; //接收参数
  3585. this.obtainProtocol(this.$route.query.data);
  3586. this.editingWay(this.$route.query.data)
  3587. },
  3588. mounted() {
  3589. this.onScroll();
  3590. window.addEventListener("scroll", this.onScroll);
  3591. },
  3592. destroyed() {
  3593. window.removeEventListener("scroll", this.onScroll);
  3594. },
  3595. beforeCreate() {
  3596. _self = this;
  3597. },
  3598. computed: {
  3599. issueDateOptions() {
  3600. return {
  3601. disabledDate: this.disabledDate
  3602. };
  3603. }
  3604. },
  3605. filters: {
  3606. cap(ele) {
  3607. return _self.insOrderStatusoptions.find(item => {
  3608. return item.dictValue === ele;
  3609. }).dictTag;
  3610. }
  3611. },
  3612. methods: {
  3613. editingWay(paramsEdit) {
  3614. if (paramsEdit) {
  3615. var _this = this;
  3616. this.jqchecked = false;
  3617. this.tbczcarShow = false;
  3618. this.bbtbcarShow = false;
  3619. this.bbczcarShow = false;
  3620. const {
  3621. carinfo,
  3622. ownerinfo,
  3623. applyinfo,
  3624. insureinfo,
  3625. quoteno,
  3626. orderno
  3627. } = paramsEdit;
  3628. _this.carInfo = carinfo;
  3629. if (_this.carInfo.carnature == "8A") {
  3630. _this.carInfo.carnature = "02";
  3631. _this.carInfo.vehicleUse = "05";
  3632. } else {
  3633. _this.carInfo.carnature;
  3634. _this.carInfo.vehicleUse;
  3635. }
  3636. _this.ownerInfo = ownerinfo;
  3637. _this.policyHolderInfo = applyinfo;
  3638. _this.insuredPersonInfo = insureinfo;
  3639. _this.quoteno = quoteno;
  3640. _this.orderno = orderno;
  3641. _this.tbczcarShow = applyinfo.owner;
  3642. _this.bbczcarShow = insureinfo.owner;
  3643. _this.bbtbcarShow = insureinfo.insuranceHolder;
  3644. _this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber);
  3645. _this.policyHolderInfo.age = getAgeByIdCard(
  3646. _this.policyHolderInfo.identifyNumber
  3647. );
  3648. _this.insuredPersonInfo.age = getAgeByIdCard(
  3649. _this.insuredPersonInfo.identifyNumber
  3650. );
  3651. if (paramsEdit.carinfo.transferFlag) {
  3652. this.transferDateShow = true;
  3653. }
  3654. paramsEdit.risk.map(ele => {
  3655. if (ele.riskCode == "0507") {
  3656. _this.jqchecked = true;
  3657. this.protocolJudge('0507', true)
  3658. // _this.jqstartDate = ele.startDate;
  3659. // _this.jqendDate = ele.endDate;
  3660. _this.jqstartDate = this.transformTime1();
  3661. _this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3662. } else if (ele.riskCode == "0510") {
  3663. _this.sychecked = true;
  3664. this.protocolJudge('0510', true)
  3665. // _this.systartDate = ele.startDate;
  3666. // _this.syendDate = ele.endDate;
  3667. _this.systartDate = this.transformTime1();
  3668. _this.syendDate = this.oneYearPast1(this.systartDate);
  3669. _this.insureList.map(eleA => {
  3670. paramsEdit.king.map(eleB => {
  3671. if (eleA.kindCode == eleB.kindCode) {
  3672. switch (eleB.kindCode) {
  3673. case "D4":
  3674. case "SY_FJ_YBW2":
  3675. eleA.amount = JSON.stringify(eleB.unitAmount);
  3676. break;
  3677. case "MJ1":
  3678. case "MJ2":
  3679. case "MJ3":
  3680. case "MJ4":
  3681. eleA.amount = eleB.deductibleRate;
  3682. case "A":
  3683. this.protocolJudge('A', true)
  3684. break;
  3685. default:
  3686. eleA.amount = JSON.stringify(eleB.amount);
  3687. }
  3688. }
  3689. });
  3690. });
  3691. }
  3692. });
  3693. // this.HistoryList = this.paramsEdit.insAreaCompanyList;
  3694. let params = {
  3695. orderNo: paramsEdit.orderno,
  3696. orderStatus: ""
  3697. };
  3698. this.$api.letter.queryQuoteHistory(params).then(res => {
  3699. res.data.forEach(item => {
  3700. if (item.accidentInfo) {
  3701. item.accidentInfo.constructor === Object
  3702. ? [item.accidentInfo]
  3703. : item.accidentInfo;
  3704. }
  3705. });
  3706. this.HistoryList = res.data;
  3707. });
  3708. //--获取影像信息--
  3709. _this.imageEcho(this.quoteno);
  3710. // this.commpanyList()
  3711. //--显示影像按钮--
  3712. _this.imageUploadShow = true;
  3713. } else {
  3714. this.jqstartDate = this.transformTime1();
  3715. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3716. this.systartDate = this.transformTime1();
  3717. this.syendDate = this.oneYearPast1(this.systartDate);
  3718. }
  3719. },
  3720. //手机号复制粘贴处理
  3721. handlePaste(e, mobileKey) {
  3722. e.preventDefault(); //阻止默认行为
  3723. const clipboardData = e.clipboardData || window.clipboardData; //获取剪切板内容
  3724. let pastedText = clipboardData.getData("text").replace(/\s+/g, ""); //获取纯文本并处理空格
  3725. // 截取前11个字符,以确保不会超过手机号长度限制
  3726. pastedText = pastedText.substring(0, 11);
  3727. // 使用Vue.nextTick确保更新发生在DOM更新之后
  3728. this.$nextTick(() => {
  3729. this[mobileKey].mobile = pastedText;
  3730. });
  3731. },
  3732. // licenseNoFun(data){
  3733. // if(data && this.carInfo.enginedesc){
  3734. // this.obtainProtocol()
  3735. // }
  3736. // },
  3737. // enginedescFun(data){
  3738. // if(data && this.carInfo.licenseNo){
  3739. // this.obtainProtocol()
  3740. // }
  3741. // },
  3742. packageChange(val) {
  3743. let arr = this.packageOptions.find(ele => ele.id == val).kind;
  3744. if (arr.length > 0) {
  3745. this.insureList.map(eleA => {
  3746. arr.map(eleB => {
  3747. if (eleA.kindCode == eleB.kindCode) {
  3748. switch (eleB.kindCode) {
  3749. case "D4":
  3750. case "SY_FJ_YBW2":
  3751. eleA.amount = JSON.stringify(eleB.unitAmount);
  3752. break;
  3753. case "MJ1":
  3754. case "MJ2":
  3755. case "MJ3":
  3756. case "MJ4":
  3757. eleA.amount = eleB.deductibleRate;
  3758. break;
  3759. case "TY2":
  3760. case "TY3":
  3761. case "TY4":
  3762. eleA.amount = eleB.serviceTimes;
  3763. break;
  3764. default:
  3765. eleA.amount = JSON.stringify(eleB.amount);
  3766. }
  3767. }
  3768. });
  3769. });
  3770. } else {
  3771. this.insureList.map(eleA => {
  3772. eleA.amount = "0";
  3773. });
  3774. }
  3775. },
  3776. capType(val) {
  3777. if (val == "0") {
  3778. return "success";
  3779. }
  3780. if (val == "1") {
  3781. return "warning";
  3782. }
  3783. if (val == "2" || val == "3" || val == "4") {
  3784. return "danger";
  3785. }
  3786. },
  3787. handleCheckAllChange(ele) {
  3788. this.totalCompanyList.forEach((val, index) => {
  3789. ele ? (val.checked = true) : (val.checked = false);
  3790. this.initchange(ele, val.id, val.cnName, index);
  3791. });
  3792. },
  3793. retractFun() {
  3794. this.isRetract = this.isRetract == false ? true : false;
  3795. },
  3796. //中煤意外险调整份数事件
  3797. ZMhandleChange(val) {
  3798. if (!val) {
  3799. this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3800. }
  3801. },
  3802. //中煤意外险选中对应意外险方案
  3803. ZMHandleSelectionChange(val) {
  3804. // if(val.length > 0&& val[0].quantity==undefined){
  3805. // this.$message({ message: "请先填写投保份数再勾选!", type: "error", });
  3806. // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3807. // return false;
  3808. // }
  3809. if (val.length > 1) {
  3810. this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3811. this.$refs.ZmMultipleTable[0].toggleRowSelection(val.pop()); //pop:最后一个
  3812. } else {
  3813. this.zhongmeiaccidentalDrivingVo = val[0]; //multipleSelection:当前选择的数组
  3814. }
  3815. },
  3816. //中煤意外险选中对应产品带出方案明细
  3817. zhongmeiInsuranceChange(index) {
  3818. //每次选中产品,清空之前选中的数据
  3819. this.zhongmeiaccidentalDrivingVo = {};
  3820. this.zhongmeiInsuranceDataDetail = [];
  3821. let data = this.zhongmeiInsuranceData.find(
  3822. val => val.rideRiskCode == index
  3823. );
  3824. //把返回的方案明细放入展示数据对象中
  3825. this.accidentFormZM = Object.assign(this.accidentFormZM, data);
  3826. this.accidentFormZM.quantity = "1";
  3827. this.accidentFormZM.maxQuantity = Number(data.maxQuantity);
  3828. if (data && data.accAmountView) {
  3829. this.accidentPremiumZM = data.unitPremium;
  3830. this.zhongmeiInsuranceDataDetail = data.accAmountView;
  3831. }
  3832. },
  3833. // 截图粘贴
  3834. copybjd() {
  3835. let that = this;
  3836. html2Canvas(document.getElementById("pdfContentsDiv"), {
  3837. allowTaint: true,
  3838. taintTest: false
  3839. }).then(function (canvas) {
  3840. let base64Data = "";
  3841. // let blob = null
  3842. base64Data = canvas.toDataURL("image/png", 1);
  3843. const date = new Date();
  3844. const saveInfo = {
  3845. download: date.getTime() + `.png`,
  3846. href: base64Data
  3847. };
  3848. const element = document.createElement("a");
  3849. element.style.display = "none";
  3850. for (const key in saveInfo) {
  3851. element.setAttribute(key, saveInfo[key]);
  3852. }
  3853. document.body.appendChild(element);
  3854. element.click();
  3855. setTimeout(() => {
  3856. document.body.removeChild(element);
  3857. }, 300);
  3858. // var format = 'image/png'
  3859. // //将Base64图片编码转换成blob
  3860. // var base64 = base64Data
  3861. // var code = window.atob(base64.split(',')[1])
  3862. // var aBuffer = new window.ArrayBuffer(code.length)
  3863. // var uBuffer = new window.Uint8Array(aBuffer)
  3864. // for (var i = 0; i < code.length; i++) {
  3865. // uBuffer[i] = code.charCodeAt(i) & 0xff
  3866. // }
  3867. // try {
  3868. // blob = new Blob([uBuffer], { type: format })
  3869. // } catch (e) {
  3870. // window.BlobBuilder =
  3871. // window.BlobBuilder ||
  3872. // window.WebKitBlobBuilder ||
  3873. // window.MozBlobBuilder ||
  3874. // window.MSBlobBuilder
  3875. // if (e.name == 'TypeError' && window.BlobBuilder) {
  3876. // var bb = new window.BlobBuilder()
  3877. // bb.append(uBuffer.buffer)
  3878. // blob = bb.getBlob('image/png')
  3879. // } else if (e.name == 'InvalidStateError') {
  3880. // blob = new Blob([aBuffer], { type: format })
  3881. // }
  3882. // }
  3883. // const clipboardItemInput = new ClipboardItem({
  3884. // 'image/png': blob,
  3885. // })
  3886. // that.$copyText({
  3887. // 'image/png': blob,
  3888. // }).then(
  3889. //   function(e) {
  3890. //     console.log("copy arguments e:", e);
  3891. //     alert("复制成功!");
  3892. //   },
  3893. //   function(e) {
  3894. //     console.log("copy arguments e:", e);
  3895. //     alert("复制失败!");
  3896. //   }
  3897. //   ),
  3898. // navigator.clipboard.write([clipboardItemInput])
  3899. // that.$message({
  3900. // message: '已截图并复制到粘贴板!',
  3901. // type: 'success'
  3902. // });
  3903. });
  3904. },
  3905. // 即时起保
  3906. immediatelyChange(e) {
  3907. if (e) {
  3908. this.immediatelyValue = true;
  3909. const date = new Date();
  3910. date.setHours(date.getHours() + 2);
  3911. date.setMinutes(0);
  3912. date.setSeconds(0);
  3913. this.jqstartDate = date;
  3914. this.jqendDate = this.oneYearPast1(date);
  3915. } else {
  3916. this.immediatelyValue = false;
  3917. this.jqstartDate = this.transformTime1();
  3918. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3919. }
  3920. },
  3921. // 使用性质方法
  3922. natureFun() {
  3923. if (this.carInfo.carnature == "01") {
  3924. this.carInfo.vehicleUse = "";
  3925. }
  3926. },
  3927. // 点击同步报价后的时间
  3928. syncData(item) {
  3929. this.jqstartDate = item.startDateJq ? item.startDateJq : this.jqstartDate;
  3930. this.jqendDate = item.endDateJq ? item.endDateJq : this.endDateJq;
  3931. this.systartDate = item.startDateSy ? item.startDateSy : this.systartDate;
  3932. this.syendDate = item.endDateSy ? item.endDateSy : this.syendDate;
  3933. },
  3934. //纳税类型事件
  3935. taxRelifFlagChange(val) {
  3936. if (val == 4) {
  3937. citydata.rawCitiesData.map(val => {
  3938. this.provinceSelect.push({
  3939. name: val.name,
  3940. code: val.code
  3941. });
  3942. return val;
  3943. });
  3944. }
  3945. },
  3946. //身份证前六位识别地区
  3947. // getAreaByCode(code) {
  3948. // let list = regionData;
  3949. // let provinceCode = code.substring(0, 2);
  3950. // let cityCode = code.substring(0, 4);
  3951. // let areaCode = code.substring(0, 6);
  3952. // // 获取省份信息
  3953. // let province = list.filter(function (item) {
  3954. // return item.value === provinceCode;
  3955. // });
  3956. // // 获取城市信息
  3957. // let city = province[0].children.filter(function (item) {
  3958. // return item.value === cityCode;
  3959. // });
  3960. // if (city.length > 0) {
  3961. // // 获取区/县信息
  3962. // let area = city[0].children.filter(function (item) {
  3963. // return item.value === areaCode;
  3964. // });
  3965. // return province[0].label + city[0].label + area[0].label;
  3966. // }
  3967. // },
  3968. //--数据字典 begin --
  3969. getDicType(type) {
  3970. this.$api.insCompany.dicType(type).then(res => {
  3971. if (res.code == 200) {
  3972. if (type == "insOrderStatus") {
  3973. let data = JSON.parse(JSON.stringify(res.data.ddList));
  3974. data.unshift({
  3975. dictTag: "全部",
  3976. dictValue: "888"
  3977. });
  3978. this[type + "options"] = data;
  3979. } else {
  3980. this[type + "options"] = res.data.ddList;
  3981. }
  3982. }
  3983. });
  3984. },
  3985. //身份证失去焦点
  3986. identifyblur(info) {
  3987. this[info].age = getAgeByIdCard(this[info].identifyNumber);
  3988. this[info].gender = getGenderByIdCard(this[info].identifyNumber);
  3989. },
  3990. //车主信息选择性别
  3991. genderChange(e) {
  3992. if (this.tbczcarShow) {
  3993. this.policyHolderInfo.gender = e;
  3994. } else if (this.bbczcarShow) {
  3995. this.insuredPersonInfo.gender = e;
  3996. }
  3997. },
  3998. //省市区
  3999. // areahandleChange(event, info) {
  4000. // console.log(event)
  4001. // if (event[0] != null && event[1] != null && event[2] != null) {
  4002. // this[info].province = codeToText[event[0]]
  4003. // this[info].city = codeToText[event[1]]
  4004. // this[info].county = codeToText[event[2]]
  4005. // }
  4006. // },
  4007. iconfftter(icon) {
  4008. return CommonUtil.getDataName({
  4009. dataList: this.global.insCompanyList,
  4010. value: "name",
  4011. label: "icon",
  4012. data: icon
  4013. });
  4014. },
  4015. disabledDate(time) {
  4016. let datetime = this.carInfo.registerDate;
  4017. return time.getTime() < new Date(datetime).getTime();
  4018. },
  4019. onScroll() {
  4020. // 变量scrollTop是滚动条滚动时,滚动条上端距离顶部的距离
  4021. var scrollTop =
  4022. document.documentElement.scrollTop || document.body.scrollTop;
  4023. // 变量windowHeight是可视区的高度
  4024. var windowHeight =
  4025. document.documentElement.clientHeight || document.body.clientHeight;
  4026. // 变量scrollHeight是滚动条的总高度(当前可滚动的页面的总高度)
  4027. var scrollHeight =
  4028. document.documentElement.scrollHeight || document.body.scrollHeight;
  4029. // 滚动条到底部
  4030. if (Math.ceil(scrollTop + windowHeight) >= scrollHeight) {
  4031. this.isBottom = true;
  4032. } else {
  4033. this.isBottom = false;
  4034. }
  4035. },
  4036. anshengInsuranceChange(index) {
  4037. let data = this.anshengInsuranceData.find(val => val.planCode == index);
  4038. this.anshengaccidentalDrivingVo.personFlag = data.personFlag;
  4039. this.anshengaccidentalDrivingVo.planChineseName = data.planChineseName;
  4040. this.anshengaccidentalDrivingVo.planCode = data.planCode;
  4041. this.anshengaccidentalDrivingVo.planSeries = data.planSeries;
  4042. this.anshengInsuranceData1 = [];
  4043. this.anshengInsuranceData1 = data.departmentProductList;
  4044. },
  4045. hengbangInsuranceChange(index) {
  4046. this.HBInsuranceData = this.hengbangInsuranceData.find(val => val.programcode == index).ggriskprogramdetailslist
  4047. if (this.HBInsuranceData.length) {
  4048. this.HBDrivingChange(this.hengbangInsuranceData.find(val => val.programcode == index));
  4049. }
  4050. },
  4051. huanongInsuranceChange(index) {
  4052. this.HNInsuranceData = this.huanongInsuranceData.find(
  4053. val => val.planCode == index
  4054. ).planSubInfo[0].riskInfo;
  4055. this.huanongaccidentalDrivingVo = Object.assign(
  4056. this.accidentFormHN,
  4057. this.huanongInsuranceData.find(val => val.planCode == index)
  4058. );
  4059. },
  4060. taipingInsuranceChange(index) {
  4061. this.TPInsuranceData = this.taipingInsuranceData.find(val => val.rationType == index).fCkindConfigList
  4062. if (this.TPInsuranceData && this.TPInsuranceData.length) {
  4063. this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.rationType == index);
  4064. }
  4065. },
  4066. zijinInsuranceChange(index) {
  4067. this.ZJInsuranceData = [];
  4068. this.$refs.expandTable[0].clearSelection();
  4069. index.forEach(item => {
  4070. this.ZJInsuranceData.push(
  4071. this.ziJinInsuranceData.find(val => val.projectCode == item)
  4072. );
  4073. });
  4074. this.ZJInsuranceData.forEach(item => {
  4075. this.$nextTick(() => {
  4076. this.$refs.expandTable[0].toggleRowSelection(item);
  4077. });
  4078. });
  4079. this.CheckboxChange(this.ZJInsuranceData);
  4080. },
  4081. renshouInsuranceChange(index) {
  4082. this.RSInsuranceData = [
  4083. this.renshouInsuranceData.find(val => val.id == index)
  4084. ];
  4085. if (index) {
  4086. this.RSDrivingChange(this.RSInsuranceData[0]);
  4087. }
  4088. },
  4089. async dajiaInsuranceChange(index) {
  4090. this.dajiaaccidentalDrivingVo = {};
  4091. let data = await this.$api.letter.accidentalDrivingInfo(index);
  4092. if (data.code == 200) {
  4093. this.dajiaaccidentalDrivingVo = {
  4094. rideRiskCode: index,
  4095. rideRiskName: this.dajiaInsuranceData.find(val => val.id == index)
  4096. .productName,
  4097. quantity: "1"
  4098. };
  4099. this.DJInsuranceData = data.data;
  4100. }
  4101. },
  4102. zhonganInsuranceChange(index) {
  4103. this.ZRInsuranceData = this.zhonganInsuranceData.find(val => val.combination == index).liabilityList
  4104. if (index) {
  4105. this.ZADrivingChange(this.zhonganInsuranceData.find(val => val.combination == index));
  4106. }
  4107. },
  4108. // 渤海选择意外险类型
  4109. async bhcxchange(index) {
  4110. if (index) {
  4111. this.accidentLoadingbh = true;
  4112. this.boHaiaccidentForm.copies = "1";
  4113. this.boHaiaccidentForm.premium = Number(
  4114. this.boHaiaccidentDataList.find(e => e.packageCode == index).premium
  4115. );
  4116. let data = await this.$api.letter.productDetailsQueryboHai({
  4117. packageCode: index,
  4118. productCode: this.boHaiaccidentDataList.find(
  4119. e => e.packageCode == index
  4120. ).productCode,
  4121. agreementId: this.boHaiaccidentForm.agreementId
  4122. });
  4123. if (data.code == 200 && data.data) {
  4124. this.accidentLoadingbh = false;
  4125. this.boHaiaccidenttableData = data.data;
  4126. } else {
  4127. this.$message.error(data.msg);
  4128. this.boHaiaccidenttableData = [];
  4129. }
  4130. }
  4131. },
  4132. // 国任选择意外险类型
  4133. async grcxchange(index) {
  4134. if (index) {
  4135. this.accidentLoading = true;
  4136. this.guoRenaccidentForm.quantity = "1";
  4137. this.guoRenaccidentForm.prodCode = "";
  4138. let data = await this.$api.letter.syncNonAutoInsGuoren({
  4139. goodsCode: index,
  4140. agreementId: this.guoRenaccidentForm.agreementId
  4141. });
  4142. if (data.code == 200) {
  4143. let num = 0;
  4144. data.data.forEach(item => {
  4145. num += Number(item.premium);
  4146. });
  4147. // this.accidentPremiumGr = num
  4148. this.accidentLoading = false;
  4149. this.guoRenaccidentDataListChild = data.data;
  4150. } else {
  4151. this.accidentLoading = false;
  4152. this.$message.error(data.msg);
  4153. this.guoRenaccidentDataListChild = [];
  4154. }
  4155. }
  4156. },
  4157. // 国任选择意外险子级类型
  4158. async grcxchangeChild(index) {
  4159. let list = this.guoRenaccidentDataListChild.find(
  4160. val => val.prodCode == index
  4161. );
  4162. this.guoRenaccidentForm = {
  4163. ...this.guoRenaccidentForm,
  4164. policyNum: Number(list.premium),
  4165. riskCode: list.riskCode,
  4166. amount: list.amount,
  4167. premium: Number(list.premium)
  4168. // appnum:Number(list.appnum)
  4169. };
  4170. this.guoRenaccidenttableData = list.prodCvgLiabList;
  4171. },
  4172. // 选择意外险类型
  4173. async ywxxxchange(index) {
  4174. if (!index) {
  4175. return;
  4176. }
  4177. this.accidentForm = Object.assign(
  4178. this.accidentForm,
  4179. this.accidentDataList.find(val => val.code == index)
  4180. );
  4181. this.accidentForm.fen = "1";
  4182. this.accidentLoading = true;
  4183. let data = await this.$api.letter.ycgainAccidentSchemeList({
  4184. companyCode: this.accidentForm.companyId,
  4185. code: index,
  4186. agreementId: this.accidentForm.agreementId,
  4187. seatNum: Number(this.carInfo.seatCount)
  4188. });
  4189. if (data.code == 200) {
  4190. let num = 0;
  4191. data.data.forEach(item => {
  4192. num += Number(item.premium);
  4193. });
  4194. this.accidentPremium = num;
  4195. this.accidentForm.premium = num;
  4196. this.accidentLoading = false;
  4197. this.accidenttableData = data.data;
  4198. }
  4199. },
  4200. numberCopieschange(index) {
  4201. this.accidentForm.premium = Number(this.accidentPremium) * index;
  4202. },
  4203. numberCopieschangeZM(index) {
  4204. this.accidentFormZM.unitPremium = Number(this.accidentPremiumZM) * index;
  4205. },
  4206. numberCopieschangeGR(index) {
  4207. this.guoRenaccidentForm.premium =
  4208. Number(this.guoRenaccidentForm.policyNum) * index;
  4209. },
  4210. continuousChange(id) {
  4211. this.continuousCompanyList.map(ele => {
  4212. if (ele.id == id) {
  4213. this.attributionform.configure = [];
  4214. ele.configure.map((ele, index) => {
  4215. this.attributionform.configure.push({
  4216. field: ele.field,
  4217. isEdit: ele.isEdit,
  4218. label: ele.label,
  4219. type: ele.type,
  4220. value: ""
  4221. });
  4222. });
  4223. }
  4224. });
  4225. },
  4226. //续保查询
  4227. continuousquery() {
  4228. this.$api.letter.queryRenewal(this.attributionform).then(res => {
  4229. if (res.code == "200") {
  4230. this.carInfo = res.data.carInfo;
  4231. this.ownerInfo = res.data.ownerInfo;
  4232. this.policyHolderInfo = res.data.policyHolderInfo;
  4233. this.insuredPersonInfo = res.data.insuredPersonInfo;
  4234. res.data.riskList.map(ele => {
  4235. if (ele.riskCode == "0507") {
  4236. this.jqchecked = true;
  4237. this.jqstartDate = ele.startDate;
  4238. this.jqendDate = ele.endDate;
  4239. } else if (ele.riskCode == "0510") {
  4240. this.sychecked = true;
  4241. this.systartDate = ele.startDate;
  4242. this.syendDate = ele.endDate;
  4243. }
  4244. county;
  4245. });
  4246. } else {
  4247. this.$message({
  4248. message: res.msg,
  4249. type: "error",
  4250. duration: 2000
  4251. });
  4252. }
  4253. });
  4254. },
  4255. //永诚转保
  4256. renewalCodeconfirm() {
  4257. this.renewalCodedialogVisible = false;
  4258. this.quote();
  4259. },
  4260. //报价轨迹查询
  4261. RadioHistoryChange(e) {
  4262. let params = {
  4263. orderNo: this.orderno,
  4264. orderStatus: e == 888 ? "" : e
  4265. };
  4266. this.$api.letter.queryQuoteHistory(params).then(res => {
  4267. res.data.forEach(item => {
  4268. if (item.accidentInfo) {
  4269. item.accidentInfo.constructor === Object
  4270. ? [item.accidentInfo]
  4271. : item.accidentInfo;
  4272. }
  4273. });
  4274. this.HistoryList = res.data;
  4275. });
  4276. },
  4277. protocolJudge(val, val1) {
  4278. if (val1) {
  4279. this.totalCompanyList.forEach(e => {
  4280. if (e.agreement.find(el => el.productsCode && el.productsCode.includes(val))) {
  4281. e.agreement.find(el => el.productsCode && el.productsCode.includes(val)).disabled = true
  4282. }
  4283. })
  4284. }
  4285. else {
  4286. this.totalCompanyList.forEach(e => {
  4287. if (e.agreement.find(el => el.productsCode && el.productsCode.includes(val))) {
  4288. e.agreement.find(el => el.productsCode && el.productsCode.includes(val)).disabled = false
  4289. }
  4290. })
  4291. }
  4292. },
  4293. async obtainProtocol(data) {
  4294. let res = {}
  4295. if (this.isLetter) {
  4296. res = await this.$api.letter.getAllAgreement()
  4297. }
  4298. else {
  4299. res = await this.$api.letter.getAllAgreementByUserId({ userId: this.userId })
  4300. }
  4301. if (res.code == 200) {
  4302. res.data.map(ele => {
  4303. ele["result"] = {};
  4304. ele["quoteCode"] = 0;
  4305. ele["checked"] = false;
  4306. ele["msg"] = "";
  4307. ele["lastYearMsg"] = "";
  4308. ele["agreementId"] = "";
  4309. ele["apiType"] = "";
  4310. ele["orderstatus"] = 0;
  4311. ele.coefficient = "";
  4312. // ele.agreementId = ele.agreement[0].id;
  4313. // ele.apiType = ele.agreement[0].apiType;
  4314. ele.underwritingDescription =
  4315. ele.agreement[0].underwritingDescription;
  4316. if (ele.isTaxSource && ele.isTaxSource == "1") {
  4317. ele.agreement.forEach(val => {
  4318. if (val.isTaxSource && val.isTaxSource == "1") {
  4319. ele.agreementId = val.id;
  4320. ele.apiType = val.apiType;
  4321. }
  4322. });
  4323. }
  4324. });
  4325. if (data) {
  4326. res.data.forEach((val, index) => {
  4327. data.insAreaCompanyEditingDtos.forEach(ele => {
  4328. if (val.namesimple == ele.inscompany) {
  4329. if (ele.inscompany == "中国人寿" && ele.companyId) {
  4330. this.lastCompanyId = ele.companyId;
  4331. }
  4332. res.data[index].quoteCode = 200;
  4333. res.data[index].result = ele;
  4334. }
  4335. });
  4336. });
  4337. }
  4338. }
  4339. res.data.forEach(e => {
  4340. e.agreement.forEach(el => el.disabled = false)
  4341. })
  4342. this.totalCompanyList = res.data;
  4343. },
  4344. //获取保险公司列表
  4345. // commpanyList() {
  4346. // this.$api.letter.gainAllowQuoteList("").then(res => {
  4347. // res.data.map(ele => {
  4348. // ele["result"] = {};
  4349. // ele["quoteCode"] = 0;
  4350. // ele["checked"] = false;
  4351. // ele["msg"] = "";
  4352. // ele["lastYearMsg"] = "";
  4353. // ele["agreementId"] = "";
  4354. // ele["apiType"] = "";
  4355. // ele["orderstatus"] = 0;
  4356. // ele.coefficient = "";
  4357. // // ele.agreementId = ele.agreement[0].id;
  4358. // ele.apiType = ele.agreement[0].apiType;
  4359. // ele.underwritingDescription =
  4360. // ele.agreement[0].underwritingDescription;
  4361. // });
  4362. // if (this.$route.query.data) {
  4363. // res.data.forEach((val, index) => {
  4364. // this.$route.query.data.insAreaCompanyEditingDtos.forEach(ele => {
  4365. // if (val.namesimple == ele.inscompany) {
  4366. // res.data[index].quoteCode = 200;
  4367. // res.data[index].result = ele;
  4368. // }
  4369. // });
  4370. // });
  4371. // }
  4372. // this.totalCompanyList = res.data;
  4373. // });
  4374. // },
  4375. Payment(id, item) {
  4376. this.carcode(id, item);
  4377. },
  4378. //选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
  4379. agreementChange(val, row, index, item) {
  4380. let obj = {};
  4381. obj = row.find(item => {
  4382. return item;
  4383. });
  4384. let selectRow = row.find(item => {
  4385. return item.id == val;
  4386. });
  4387. this.totalCompanyList[index].apiType = obj.apiType;
  4388. this.totalCompanyList[index].underwritingDescription = val
  4389. ? selectRow.underwritingDescription
  4390. : ""; //重新赋值修改选中协议承保描述
  4391. switch (item.namesimple) {
  4392. case "永诚财险":
  4393. this.accidentForm.agreementId = item.agreementId;
  4394. this.$api.letter
  4395. .ycgainAccidentList({
  4396. companyCode: item.id,
  4397. agreementId: item.agreementId,
  4398. seatNum: Number(this.carInfo.seatCount)
  4399. })
  4400. .then(res => {
  4401. if (res.code == 200) {
  4402. this.accidentDataList = res.data;
  4403. }
  4404. });
  4405. break;
  4406. case "国任财险":
  4407. this.guoRenaccidentForm.agreementId = item.agreementId;
  4408. this.$api.letter
  4409. .syncNonAutoInsGuoren({ agreementId: item.agreementId })
  4410. .then(res => {
  4411. if (res.code == 200) {
  4412. this.guoRenaccidentDataList = res.data;
  4413. } else {
  4414. this.guoRenaccidentDataList = [];
  4415. }
  4416. });
  4417. break;
  4418. case "渤海财险":
  4419. this.boHaiaccidentForm.agreementId = item.agreementId;
  4420. let policyHolderInfo = this.tbczcarShow
  4421. ? this.ownerInfo
  4422. : this.policyHolderInfo;
  4423. let productQueryVo = {
  4424. agreementId: item.agreementId,
  4425. carnature: this.carInfo.carnature,
  4426. cimodelclass: this.carInfo.cimodelclass,
  4427. exhaustScale: this.carInfo.enginedesc,
  4428. limitLoad: this.carInfo.limitLoad,
  4429. powerScale: this.carInfo.powerScale,
  4430. seatCount: this.carInfo.seatCount,
  4431. vehicleUse: this.carInfo.vehicleUse,
  4432. policyHolderInfo,
  4433. insuredPersonInfo: this.bbczcarShow
  4434. ? this.ownerInfo
  4435. : this.bbtbcarShow
  4436. ? policyHolderInfo
  4437. : this.insuredPersonInfo
  4438. };
  4439. this.$api.letter.productQueryboHai(productQueryVo).then(res => {
  4440. if (res.code == 200) {
  4441. this.boHaiaccidentDataList = res.data;
  4442. } else {
  4443. this.boHaiaccidentDataList = [];
  4444. }
  4445. });
  4446. break;
  4447. case "紫金财险":
  4448. this.$api.letter
  4449. .zijinqueryVehicleProducts({
  4450. agreementId: val,
  4451. seatCount: Number(this.carInfo.seatCount)
  4452. })
  4453. .then(res => {
  4454. if (res.code == 200) {
  4455. let data = res.data;
  4456. data.map(ele => {
  4457. ele.quantity = 1;
  4458. return ele;
  4459. });
  4460. this.ziJinInsuranceData = data;
  4461. } else {
  4462. this.$message.error(res.msg);
  4463. }
  4464. });
  4465. break;
  4466. case "中国人寿":
  4467. case "恒邦财险":
  4468. case "太平财险":
  4469. case "安盛天平":
  4470. case "华农财险":
  4471. case "众安财险":
  4472. this.$api.letter.pythongetDriving({ agreementId: val }).then(res => {
  4473. if (res.code == 200) {
  4474. let data = res.data;
  4475. data.map(ele => {
  4476. ele.quantity = 1;
  4477. return ele;
  4478. });
  4479. this[item.cnName + "InsuranceData"] = data;
  4480. }
  4481. });
  4482. break;
  4483. case "大家财险":
  4484. this.$api.letter
  4485. .dajiagetDriving({ agreementId: item.agreementId })
  4486. .then(res => {
  4487. if (res.code == 200) {
  4488. this.dajiaInsuranceData = res.data;
  4489. }
  4490. });
  4491. break;
  4492. default:
  4493. break;
  4494. }
  4495. },
  4496. CheckboxChange(select, row) {
  4497. this.accidentalDrivingVo = [];
  4498. select.map(val => {
  4499. this.accidentalDrivingVo.push(val);
  4500. return val;
  4501. });
  4502. },
  4503. //恒邦驾意险选择
  4504. HBDrivingChange(row) {
  4505. this.hengbangaccidentalDrivingVo = row;
  4506. },
  4507. //人寿驾意险选择
  4508. RSDrivingChange(row) {
  4509. this.renshouaccidentalDrivingVo = row;
  4510. },
  4511. //众安驾意险选择
  4512. ZADrivingChange(row) {
  4513. this.zhonganaccidentalDrivingVo = row;
  4514. },
  4515. RSDrivingRadio(row) {
  4516. this.RSDrivingChange(row);
  4517. },
  4518. HBDrivingRadio(row) {
  4519. this.HBDrivingChange(row);
  4520. },
  4521. //安盛驾意险选择
  4522. ASDrivingRadio(row) {
  4523. this.AStemplateSelection = row.productCode;
  4524. this.anshengaccidentalDrivingVo.productCode = row.productCode;
  4525. this.anshengaccidentalDrivingVo.productName = row.productName;
  4526. },
  4527. ZADrivingRadio(row) {
  4528. this.ZADrivingChange(row);
  4529. },
  4530. // 国任特约选择
  4531. contributingGuoRen(id) {
  4532. this.zijinengageListData = [];
  4533. this.contributingLoading = true;
  4534. this.contributingState = true;
  4535. this.hbsubmitdialogVisible = true;
  4536. this.$api.letter.guorenqueryClauseData({ agreementId: id }).then(res => {
  4537. this.contributingLoading = false;
  4538. res.data.forEach(val => {
  4539. val.clauseName = val.clauses;
  4540. val.clauseContent = val.clausesContext;
  4541. });
  4542. this.zijinengageListData = res.data;
  4543. });
  4544. },
  4545. //紫金特约选择
  4546. zijinengageChange(select, row) {
  4547. this.zijinengageList = [];
  4548. select.map(val => {
  4549. this.zijinengageList.push({
  4550. clauseCode: val.clauseCode,
  4551. clauseName: val.clauseName,
  4552. clauses: val.clauseContent,
  4553. riskCode: val.riskCode
  4554. });
  4555. return val;
  4556. });
  4557. },
  4558. zijinengageChangeAll(row) {
  4559. if (row) {
  4560. this.zijinengageChange(row);
  4561. } else {
  4562. this.$refs.expandTablePro.clearSelection();
  4563. this.zijinengageList = [];
  4564. }
  4565. },
  4566. //紫金特约内容编辑
  4567. zijincellDblclick(row, column) {
  4568. this.currentCell = row.index + "," + column.index;
  4569. if (
  4570. !["clauseContent"].includes(column.property) &&
  4571. row.modifyFlag == "1"
  4572. ) {
  4573. setTimeout(() => {
  4574. this.$refs[row.index + "," + column.index].focus();
  4575. });
  4576. }
  4577. },
  4578. tableCellClassName({ row, column, rowIndex, columnIndex }) {
  4579. row.index = rowIndex;
  4580. column.index = columnIndex;
  4581. },
  4582. hideInput() {
  4583. this.currentCell = null;
  4584. },
  4585. //勾选保险公司
  4586. initchange(e, code, name, index) {
  4587. if (e) {
  4588. let ins = this.totalCompanyList[index].namesimple;
  4589. // this.totalCompanyList[index].agreementId = "";
  4590. this.totalCompanyList[index].checked = e;
  4591. // this.totalCompanyList[index].agreementId = this.totalCompanyList[index].agreement[0].id;
  4592. this.totalCompanyList[
  4593. index
  4594. ].underwritingDescription = this.totalCompanyList[
  4595. index
  4596. ].agreement[0].underwritingDescription;
  4597. // if (this.carInfo.licenseNo.slice(0, 2) != '晋A' && ins == '中煤财险') {
  4598. // this.totalCompanyList[0].agreementId = this.totalCompanyList[0].agreement[1].id;
  4599. // }
  4600. switch (ins) {
  4601. case "永诚财险":
  4602. this.accidentForm.agreementId = this.totalCompanyList[
  4603. index
  4604. ].agreement[0].id;
  4605. this.$api.letter
  4606. .ycgainAccidentList({
  4607. companyCode: this.totalCompanyList[index].id,
  4608. agreementId: this.totalCompanyList[index].agreement[0].id,
  4609. seatNum: Number(this.carInfo.seatCount)
  4610. })
  4611. .then(res => {
  4612. if (res.code == 200) {
  4613. this.accidentDataList = res.data;
  4614. } else {
  4615. this.accidentDataList = [];
  4616. }
  4617. });
  4618. break;
  4619. case "国任财险":
  4620. this.guoRenaccidentForm.agreementId = this.totalCompanyList[
  4621. index
  4622. ].agreement[0].id;
  4623. this.$api.letter
  4624. .syncNonAutoInsGuoren({
  4625. goodsCode: "",
  4626. agreementId: this.totalCompanyList[index].agreement[0].id
  4627. })
  4628. .then(res => {
  4629. if (res.code == 200) {
  4630. this.guoRenaccidentDataList = res.data;
  4631. } else {
  4632. this.guoRenaccidentDataList = [];
  4633. }
  4634. });
  4635. break;
  4636. case "紫金财险":
  4637. this.$api.letter
  4638. .zijinqueryVehicleProducts({
  4639. agreementId: this.totalCompanyList[index].agreement[0].id,
  4640. seatCount: Number(this.carInfo.seatCount)
  4641. })
  4642. .then(res => {
  4643. if (res.code == 200) {
  4644. let data = res.data;
  4645. data.map(ele => {
  4646. ele.quantity = 1;
  4647. return ele;
  4648. });
  4649. this.ziJinInsuranceData = data;
  4650. } else {
  4651. this.$message.error(res.msg);
  4652. }
  4653. });
  4654. break;
  4655. case "安盛天平":
  4656. this.$api.letter
  4657. .pythongetDriving({
  4658. agreementId: this.totalCompanyList[index].agreement[0].id
  4659. })
  4660. .then(res => {
  4661. if (res.code == 200) {
  4662. let data = res.data;
  4663. data.map(ele => {
  4664. ele.departmentProductList.map(val => {
  4665. val.quantity = 1;
  4666. });
  4667. return ele;
  4668. });
  4669. this[name + "InsuranceData"] = data;
  4670. } else {
  4671. this.$message.error(res.msg);
  4672. }
  4673. });
  4674. break;
  4675. case "中国人寿":
  4676. case "恒邦财险":
  4677. case "太平财险":
  4678. case "华农财险":
  4679. case "众安财险":
  4680. this.$api.letter
  4681. .pythongetDriving({
  4682. agreementId: this.totalCompanyList[index].agreement[0].id
  4683. })
  4684. .then(res => {
  4685. if (res.code == 200) {
  4686. let data = res.data;
  4687. data.map(ele => {
  4688. ele.quantity = 1;
  4689. return ele;
  4690. });
  4691. this[name + "InsuranceData"] = data;
  4692. } else {
  4693. this.$message.error(res.msg);
  4694. }
  4695. });
  4696. break;
  4697. case "中煤财险":
  4698. this.accidentFormZM.agreementId = this.totalCompanyList[
  4699. index
  4700. ].agreement[0].id;
  4701. this.$api.letter
  4702. .zmGetDrivingPro({
  4703. agreementId: this.totalCompanyList[index].agreement[0].id,
  4704. seatNum: this.carInfo.seatCount
  4705. })
  4706. .then(res => {
  4707. if (res.code == 200) {
  4708. let data = res.data;
  4709. this[name + "InsuranceData"] = data;
  4710. } else {
  4711. this.$message.error(res.msg);
  4712. }
  4713. });
  4714. break;
  4715. case "大家财险":
  4716. this.$api.letter
  4717. .dajiagetDriving({
  4718. agreementId: this.totalCompanyList[index].agreement[0].id
  4719. })
  4720. .then(res => {
  4721. if (res.code == 200) {
  4722. this.dajiaInsuranceData = res.data;
  4723. } else {
  4724. this.$message.error(res.msg);
  4725. }
  4726. });
  4727. break;
  4728. default:
  4729. break;
  4730. }
  4731. } else {
  4732. }
  4733. },
  4734. clearAccidentForm() {
  4735. this.accidentForm = {};
  4736. this.accidentForm.fen = 1;
  4737. this.accidentForm.premium = 0;
  4738. },
  4739. clearAccidentFormGr() {
  4740. (this.guoRenaccidenttableData = []),
  4741. (this.guoRenaccidentDataListChild = []);
  4742. this.guoRenaccidentForm = {
  4743. quantity: "1",
  4744. premium: 0
  4745. };
  4746. },
  4747. clearAccidentFormBh() {
  4748. this.boHaiaccidenttableData = [];
  4749. this.boHaiaccidentForm = {
  4750. copies: "1",
  4751. premium: 0
  4752. };
  4753. // this.bohaiaccidentalDrivingVo={};
  4754. },
  4755. clearAccidentFormHN() {
  4756. this.huanongaccidentalDrivingVo = {};
  4757. },
  4758. clearAccidentFormHB() {
  4759. this.hengbangaccidentalDrivingVo = {};
  4760. },
  4761. clearAccidentFormTP() {
  4762. this.taipingaccidentalDrivingVo = {};
  4763. },
  4764. clearAccidentFormDJ() {
  4765. this.dajiaaccidentalDrivingVo = {};
  4766. },
  4767. clearAccidentFormZM() {
  4768. this.zhongmeiaccidentalDrivingVo = {};
  4769. },
  4770. clearAccidentFormZJ() {
  4771. this.accidentalDrivingVo = [];
  4772. },
  4773. clearAccidentFormZA() {
  4774. this.zhonganaccidentalDrivingVo = {};
  4775. },
  4776. clearAccidentFormRS() {
  4777. this.renshouaccidentalDrivingVo = {};
  4778. },
  4779. clearAccidentFormAS() {
  4780. this.anshengaccidentalDrivingVo = {};
  4781. },
  4782. //身份证有效期长期
  4783. insureLongterm(e) {
  4784. this[e].identifyValidEndDate = "9999-12-31";
  4785. },
  4786. //较强起保日期事件
  4787. jqChange(e) {
  4788. this.jqendDate = this.oneYearPast1(e);
  4789. },
  4790. //商业起保日期事件
  4791. syChange(e) {
  4792. this.syendDate = this.oneYearPast1(e);
  4793. },
  4794. // //查看更多
  4795. // selectMore(leg) {
  4796. // this.insureMore = false;
  4797. // this.insureLength = leg;
  4798. // },
  4799. // //收起
  4800. // packup() {
  4801. // this.insureMore = true;
  4802. // this.insureLength = 5;
  4803. // },
  4804. //险别选择框事件
  4805. insureitemChange(e) {
  4806. this.protocolJudge('A', e)
  4807. if (e != 0) {
  4808. this.sychecked = true;
  4809. this.systartDate = this.transformTime1();
  4810. this.syendDate = this.oneYearPast1(this.systartDate);
  4811. }
  4812. },
  4813. all() {
  4814. this.$refs.detailsDialog.setBackupVisible(true);
  4815. },
  4816. base64ToBlob(code) {
  4817. code = code.replace(/[\n\r]/g, "");
  4818. // atob() 方法用于解码使用 base-64 编码的字符串。
  4819. const raw = window.atob(code);
  4820. const rawLength = raw.length;
  4821. const uInt8Array = new Uint8Array(rawLength);
  4822. for (let i = 0; i < rawLength; ++i) {
  4823. uInt8Array[i] = raw.charCodeAt(i);
  4824. }
  4825. return new Blob([uInt8Array], { type: "application/pdf" });
  4826. },
  4827. viewPdf(content) {
  4828. if (!content) {
  4829. this.$message.error("暂无文件");
  4830. return;
  4831. }
  4832. const blob = this.base64ToBlob(content);
  4833. this.href = blob;
  4834. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  4835. window.navigator.msSaveOrOpenBlob(blob);
  4836. } else {
  4837. const fileURL = URL.createObjectURL(blob);
  4838. window.open(fileURL);
  4839. }
  4840. },
  4841. creatQrCode(text) {
  4842. if (this.qrcode) {
  4843. this.qrcode.clear();
  4844. this.qrcode.makeCode(text);
  4845. } else {
  4846. this.qrcode = new QRCode("qrcode", {
  4847. text: text,
  4848. width: this.qrcodeWidth,
  4849. height: this.qrcodeHeight,
  4850. colorDark: "#000000",
  4851. colorLight: "#ffffff",
  4852. correctLevel: QRCode.CorrectLevel.H
  4853. });
  4854. }
  4855. },
  4856. //人工核保
  4857. underwriting(id) {
  4858. let param = {
  4859. companyId: id
  4860. };
  4861. this.$api.letter.manualUnderwriting(param).then(res => {
  4862. if (res.code == "200") {
  4863. this.Payment(id);
  4864. }
  4865. });
  4866. },
  4867. jqcheckedChange(e) {
  4868. this.protocolJudge('0507', e)
  4869. if (e) {
  4870. this.jqstartDate = this.transformTime1();
  4871. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  4872. } else {
  4873. this.jqstartDate = "";
  4874. this.jqendDate = "";
  4875. }
  4876. },
  4877. sycheckedChange(e) {
  4878. this.protocolJudge('0510', e)
  4879. if (e) {
  4880. this.systartDate = this.transformTime1();
  4881. this.syendDate = this.oneYearPast1(this.systartDate);
  4882. } else {
  4883. this.systartDate = "";
  4884. this.syendDate = "";
  4885. }
  4886. },
  4887. //报价
  4888. quote() {
  4889. let starttime = new Date(this.carInfo.registerDate);
  4890. let endtime = new Date(this.carInfo.issueDate);
  4891. if (endtime < starttime) {
  4892. this.$message({ message: "发证日期早于初登日期", type: "error" });
  4893. return;
  4894. }
  4895. this.$refs["carInfo"].validate(valid => {
  4896. if (valid) {
  4897. var _this = this;
  4898. _this.$refs["ownerInfo"].validate(valid1 => {
  4899. if (valid1) {
  4900. if (_this.tbczcarShow == true) {
  4901. _this.policyHolderInfo = JSON.parse(
  4902. JSON.stringify(_this.ownerInfo)
  4903. );
  4904. }
  4905. if (_this.bbczcarShow == true) {
  4906. _this.insuredPersonInfo = JSON.parse(
  4907. JSON.stringify(_this.ownerInfo)
  4908. );
  4909. }
  4910. if (_this.bbtbcarShow == true) {
  4911. _this.insuredPersonInfo = JSON.parse(
  4912. JSON.stringify(_this.policyHolderInfo)
  4913. );
  4914. }
  4915. _this.carInfo.vinNo = _this.carInfo.frameNo;
  4916. _this.riskList = []; //险种大类
  4917. _this.kindList = []; //商业险险别
  4918. if (
  4919. (!_this.jqstartDate || !_this.jqendDate) &&
  4920. (!_this.systartDate || !_this.syendDate)
  4921. ) {
  4922. this.$message({ message: "投保日期不能为空", type: "warning" });
  4923. } else {
  4924. this.calculateLoading = true;
  4925. setInterval(() => {
  4926. this.calculateLoading = false;
  4927. }, 3000);
  4928. if (_this.jqchecked) {
  4929. //交强
  4930. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  4931. _this.jqendDate = this.transformTime(_this.jqendDate);
  4932. _this.riskList.push({
  4933. amount: "200000",
  4934. premium: "0",
  4935. riskCode: "0507",
  4936. endDate: _this.jqendDate,
  4937. startDate: _this.jqstartDate,
  4938. instantFlag: "0"
  4939. });
  4940. }
  4941. if (_this.sychecked) {
  4942. _this.systartDate = this.transformTime(_this.systartDate);
  4943. _this.syendDate = this.transformTime(_this.syendDate);
  4944. //商业
  4945. _this.riskList.push({
  4946. premium: "0",
  4947. riskCode: "0510",
  4948. quotePreceptCode: "",
  4949. quotePreceptName: "",
  4950. endDate: _this.syendDate,
  4951. startDate: _this.systartDate,
  4952. instantFlag: "0"
  4953. });
  4954. _this.insureList.map((ele, index) => {
  4955. if (
  4956. ele.amount != "0" &&
  4957. (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  4958. ) {
  4959. _this.kindList.push({
  4960. unitAmount: _this.insureList[index].amount,
  4961. kindCode: _this.insureList[index].kindCode,
  4962. kindName: _this.insureList[index].kindName
  4963. });
  4964. } else if (
  4965. ele.amount != "0" &&
  4966. (ele.kindCode == "MJ1" ||
  4967. ele.kindCode == "MJ2" ||
  4968. ele.kindCode == "MJ3" ||
  4969. ele.kindCode == "MJ4")
  4970. ) {
  4971. _this.kindList.push({
  4972. deductibleRate: _this.insureList[index].amount,
  4973. kindCode: _this.insureList[index].kindCode,
  4974. kindName: _this.insureList[index].kindName
  4975. });
  4976. } else if (
  4977. ele.amount != "0" &&
  4978. (ele.kindCode == "TY1" ||
  4979. ele.kindCode == "TY2" ||
  4980. ele.kindCode == "TY3" ||
  4981. ele.kindCode == "TY4")
  4982. ) {
  4983. _this.kindList.push({
  4984. serviceTimes: _this.insureList[index].amount,
  4985. kindCode: _this.insureList[index].kindCode,
  4986. kindName: _this.insureList[index].kindName
  4987. });
  4988. } else if (ele.amount != "0") {
  4989. _this.kindList.push({
  4990. amount: _this.insureList[index].amount,
  4991. kindCode: _this.insureList[index].kindCode,
  4992. kindName: _this.insureList[index].kindName
  4993. });
  4994. }
  4995. return ele;
  4996. });
  4997. } else {
  4998. _this.kindList = [];
  4999. }
  5000. // if (_this.orderno) {
  5001. this.OrderStageProcessing();
  5002. // } else {
  5003. // _this.$api.letter.getquote().then(res => {
  5004. // _this.quoteno = res.data; //获取报价号
  5005. // this.OrderStageProcessing();
  5006. // });
  5007. // }
  5008. }
  5009. } else {
  5010. document.getElementById("CheZhu").scrollIntoView();
  5011. _this.$message({ message: "请检查人员信息", type: "warning" });
  5012. }
  5013. });
  5014. } else {
  5015. document.getElementById("Car").scrollIntoView();
  5016. this.$message({ message: "请检查车辆信息", type: "warning" });
  5017. return false;
  5018. }
  5019. });
  5020. },
  5021. //动态函数
  5022. ToolClickFun(MethodName, Parameter, companyId, companyName) {
  5023. this[`${MethodName}`](Parameter, companyId, companyName);
  5024. },
  5025. //更新报价历史
  5026. QuotationHistory() {
  5027. let params = {
  5028. orderNo: this.orderno,
  5029. orderStatus: ""
  5030. };
  5031. this.$api.letter.queryQuoteHistory(params).then(res => {
  5032. res.data.forEach(item => {
  5033. if (item.accidentInfo) {
  5034. item.accidentInfo.constructor === Object
  5035. ? [item.accidentInfo]
  5036. : item.accidentInfo;
  5037. }
  5038. });
  5039. this.HistoryList = res.data;
  5040. });
  5041. },
  5042. open2(Name, Msg) {
  5043. this.$notify.info({
  5044. title: Name,
  5045. dangerouslyUseHTMLString: true,
  5046. type: "warning",
  5047. message:`<p>${Msg.replace(/\n/g, '<br>')}</p>`,
  5048. customClass: "customNotifyClass",
  5049. duration: 7000
  5050. });
  5051. },
  5052. open3(Name, Msg) {
  5053. this.$notify.info({
  5054. title: Name,
  5055. dangerouslyUseHTMLString: true,
  5056. type: "warning",
  5057. message:`<p>${Msg.replace(/\n/g, '<br>')}</p>`,
  5058. customClass: "customNotifyClass",
  5059. duration: 7000
  5060. });
  5061. },
  5062. openPredictInfo(Name, Msg) {
  5063. this.redictInfoMsg = Msg;
  5064. this.redictInfodialogVisible = true;
  5065. },
  5066. //订单生成前数据处理事件
  5067. OrderStageProcessing() {
  5068. if (this.tbczcarShow && this.imageList2.length > 0) {
  5069. //投保人同车主
  5070. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  5071. if (this.imageList3.length == 1) {
  5072. this.imageList3[0].imageType = "C03";
  5073. } else {
  5074. this.imageList3[0].imageType = "C03";
  5075. this.imageList3[1].imageType = "D03";
  5076. }
  5077. }
  5078. if (this.bbczcarShow && this.imageList2.length > 0) {
  5079. //被保人同车主
  5080. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  5081. if (this.imageList4.length == 1) {
  5082. this.imageList4[0].imageType = "C04";
  5083. } else {
  5084. this.imageList4[0].imageType = "C04";
  5085. this.imageList4[1].imageType = "D04";
  5086. }
  5087. }
  5088. if (this.bbtbcarShow && this.imageList3.length > 0) {
  5089. //被保人同投保人
  5090. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  5091. if (this.imageList4.length == 1) {
  5092. this.imageList4[0].imageType = "C04";
  5093. } else {
  5094. this.imageList4[0].imageType = "C04";
  5095. this.imageList4[1].imageType = "D04";
  5096. }
  5097. }
  5098. //日期长度<10处理
  5099. const formatDate = date => {
  5100. if (date.length < 10) {
  5101. return this.timeformat(date);
  5102. }
  5103. return date;
  5104. };
  5105. if (this.carInfo.registerDate.length < 10) {
  5106. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  5107. }
  5108. if (this.carInfo.issueDate.length < 10) {
  5109. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  5110. }
  5111. if (
  5112. this.carInfo.transferDate &&
  5113. this.carInfo.transferDate.length < 10 &&
  5114. this.carInfo.transferDate !== ""
  5115. ) {
  5116. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  5117. }
  5118. //日期长度<10处理
  5119. //提交身份证/驾驶证 ——————————————————
  5120. this.policyHolderInfo.owner = this.tbczcarShow;
  5121. this.insuredPersonInfo.owner = this.bbczcarShow;
  5122. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  5123. if (typeof this.ownerInfo.provinceData == "string") {
  5124. this.ownerInfo.provinceData = [];
  5125. }
  5126. if (typeof this.insuredPersonInfo.provinceData == "string") {
  5127. this.insuredPersonInfo.provinceData = [];
  5128. }
  5129. if (typeof this.policyHolderInfo.provinceData == "string") {
  5130. this.policyHolderInfo.provinceData = [];
  5131. }
  5132. let param = {
  5133. userId: this.userId,
  5134. quoteno: this.quoteno,
  5135. orderNo: this.orderno,
  5136. carInfo: this.carInfo,
  5137. insuredPersonInfo: this.insuredPersonInfo,
  5138. ownerInfo: this.ownerInfo,
  5139. policyHolderInfo: this.policyHolderInfo,
  5140. kindList: this.kindList,
  5141. riskList: this.riskList,
  5142. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5143. };
  5144. this.$api.letter[this.apiInterfaceName](param).then(res => {
  5145. if (res.code == "200") {
  5146. //上传图片
  5147. const mergedArray = [
  5148. ...this.imageList1,
  5149. ...this.imageList2,
  5150. ...this.imageList3,
  5151. ...this.imageList4,
  5152. ...this.imageList5
  5153. ];
  5154. if (mergedArray.length > 0) {
  5155. let imageparam = {
  5156. imageList: mergedArray,
  5157. quoteNo: res.data.quoteno
  5158. };
  5159. this.$api.letter.uploadImages(imageparam).then(responses => {
  5160. this.imageEcho(res.data.quoteno); // 获取图片
  5161. });
  5162. }
  5163. this.quoteno = res.data.quoteno;
  5164. this.orderno = res.data.orderno;
  5165. this.totalCompanyList.map((ele, index) => {
  5166. if (ele.checked) {
  5167. //动态调用报价接口
  5168. ele.quoteCode = 1;
  5169. ele.orderstatus = 0;
  5170. this.ToolClickFun(ele.cnName, index, ele.id, ele.namesimple);
  5171. }
  5172. });
  5173. } else if (res.code == 1001) {
  5174. this.$confirm("是否生成新订单?", "提示", {
  5175. confirmButtonText: "确定",
  5176. cancelButtonText: "取消",
  5177. type: "warning"
  5178. })
  5179. .then(() => {
  5180. this.orderno = "";
  5181. this.quoteno = "";
  5182. this.quote();
  5183. })
  5184. .catch(() => { });
  5185. } else {
  5186. this.$message({ message: res.msg, type: "warning" });
  5187. }
  5188. });
  5189. document.getElementById("company").scrollIntoView();
  5190. this.imageUploadShow = true;
  5191. },
  5192. //永安报价
  5193. yongan(num, id) {
  5194. let params = {
  5195. orderNo: this.orderno,
  5196. companyId: id,
  5197. agreementId: this.totalCompanyList[num].agreementId
  5198. };
  5199. this.$api.letter.yonganquote(params).then(res => {
  5200. this.totalCompanyList[num].msg = res.msg;
  5201. if (res.msg == "重复投保" && res.code == "501") {
  5202. if (!!res.data.jqStartDate && !res.data.syStartDate) {
  5203. this.jqstartDate = res.data.jqStartDate;
  5204. this.jqendDate = res.data.jqEndDate;
  5205. this.updateRiskDates(
  5206. "0507",
  5207. res.data.jqStartDate,
  5208. res.data.jqEndDate
  5209. );
  5210. let param = {
  5211. userId: this.userId,
  5212. quoteno: this.quoteno,
  5213. orderNo: this.orderno,
  5214. carInfo: this.carInfo,
  5215. insuredPersonInfo: this.insuredPersonInfo,
  5216. ownerInfo: this.ownerInfo,
  5217. policyHolderInfo: this.policyHolderInfo,
  5218. kindList: this.kindList,
  5219. riskList: this.riskList,
  5220. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5221. };
  5222. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5223. this.yongan(num, id);
  5224. });
  5225. } else if (!!res.data.syStartDate && !res.data.jqStartDate) {
  5226. this.systartDate = res.data.syStartDate;
  5227. this.syendDate = res.data.syEndDate;
  5228. this.updateRiskDates(
  5229. "0510",
  5230. res.data.syStartDate,
  5231. res.data.syEndDate
  5232. );
  5233. let param = {
  5234. userId: this.userId,
  5235. quoteno: this.quoteno,
  5236. orderNo: this.orderno,
  5237. carInfo: this.carInfo,
  5238. insuredPersonInfo: this.insuredPersonInfo,
  5239. ownerInfo: this.ownerInfo,
  5240. policyHolderInfo: this.policyHolderInfo,
  5241. kindList: this.kindList,
  5242. riskList: this.riskList,
  5243. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5244. };
  5245. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5246. this.yongan(num, id);
  5247. });
  5248. } else if (!!res.data.syStartDate && !!res.data.jqStartDate) {
  5249. this.jqstartDate = res.data.jqStartDate;
  5250. this.jqendDate = res.data.jqEndDate;
  5251. this.systartDate = res.data.syStartDate;
  5252. this.syendDate = res.data.syEndDate;
  5253. this.updateRiskDates(
  5254. "0507",
  5255. res.data.jqStartDate,
  5256. res.data.jqEndDate
  5257. );
  5258. this.updateRiskDates(
  5259. "0510",
  5260. res.data.syStartDate,
  5261. res.data.syEndDate
  5262. );
  5263. let param = {
  5264. userId: this.userId,
  5265. quoteno: this.quoteno,
  5266. orderNo: this.orderno,
  5267. carInfo: this.carInfo,
  5268. insuredPersonInfo: this.insuredPersonInfo,
  5269. ownerInfo: this.ownerInfo,
  5270. policyHolderInfo: this.policyHolderInfo,
  5271. kindList: this.kindList,
  5272. riskList: this.riskList,
  5273. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5274. };
  5275. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5276. this.yongan(num, id);
  5277. });
  5278. } else {
  5279. this.totalCompanyList[num].quoteCode = "3";
  5280. this.totalCompanyList[num].msg = "重复投保";
  5281. }
  5282. } else if (
  5283. res.code == "500" ||
  5284. res.code == "502" ||
  5285. res.code == "-9999"
  5286. ) {
  5287. this.totalCompanyList[num].quoteCode = "-9999";
  5288. this.totalCompanyList[num].msg = res.msg;
  5289. } else {
  5290. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5291. this.totalCompanyList[num].lastYearMsg = "";
  5292. let dat = res.data.warnMessageList;
  5293. dat.map(ele => {
  5294. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5295. });
  5296. }
  5297. this.totalCompanyList[num].quoteCode = 200;
  5298. this.totalCompanyList[num].result = res.data;
  5299. this.QuotationHistory();
  5300. }
  5301. });
  5302. },
  5303. updateRiskDates(riskCode, startDate, endDate) {
  5304. for (let i = 0; i < this.riskList.length; i++) {
  5305. if (this.riskList[i].riskCode == riskCode) {
  5306. this.riskList[i].startDate = startDate;
  5307. this.riskList[i].endDate = endDate;
  5308. }
  5309. }
  5310. },
  5311. //中煤报价
  5312. zhongmei(num, id) {
  5313. let accidentalDrivingVo = {};
  5314. // if(this.zhongmeiaccidentalDrivingVo){
  5315. // accidentalDrivingVo.rideRiskCode=this.zhongmeiaccidentalDrivingVo.schemeNo;
  5316. // accidentalDrivingVo.rideRiskName=this.zhongmeiaccidentalDrivingVo.schemeName;
  5317. // accidentalDrivingVo.quantity=this.zhongmeiaccidentalDrivingVo.quantity;
  5318. // }
  5319. if (this.accidentFormZM.rideRiskCode) {
  5320. accidentalDrivingVo = {
  5321. rideRiskCode: this.accidentFormZM.rideRiskCode,
  5322. rideRiskName: this.accidentFormZM.rideRiskName,
  5323. quantity: this.accidentFormZM.quantity
  5324. ? this.accidentFormZM.quantity
  5325. : "1"
  5326. };
  5327. }
  5328. let params = {
  5329. accidentalDrivingVo,
  5330. orderNo: this.orderno,
  5331. companyId: id,
  5332. agreementId: this.totalCompanyList[num].agreementId
  5333. };
  5334. this.$api.letter.zhongmeiquote(params).then(res => {
  5335. this.totalCompanyList[num].msg = res.msg;
  5336. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5337. this.totalCompanyList[num].quoteCode = "4";
  5338. this.totalCompanyList[num].msg = res.msg;
  5339. return;
  5340. } else if (
  5341. res.data == null &&
  5342. res.msg.indexOf("交强险平台返回") > -1 &&
  5343. res.msg.indexOf(";终保日期") > -1
  5344. ) {
  5345. this.totalCompanyList[num].lastYearMsg =
  5346. "<b>交强险</b><br>" +
  5347. res.msg.slice(
  5348. res.msg.indexOf("起保日期 "),
  5349. res.msg.indexOf("地区 山西。") + 6
  5350. );
  5351. let time =
  5352. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5353. this.jqstartDate = time;
  5354. this.jqendDate = this.oneYearPast1(time);
  5355. if (this.riskList.length > 0) {
  5356. for (let i = 0; i < this.riskList.length; i++) {
  5357. if (this.riskList[i].riskCode == "0507") {
  5358. this.riskList[i].startDate = time;
  5359. this.riskList[i].endDate = this.oneYearPast1(time);
  5360. }
  5361. }
  5362. }
  5363. let param = {
  5364. userId: this.userId,
  5365. quoteno: this.quoteno,
  5366. orderNo: this.orderno,
  5367. carInfo: this.carInfo,
  5368. insuredPersonInfo: this.insuredPersonInfo,
  5369. ownerInfo: this.ownerInfo,
  5370. policyHolderInfo: this.policyHolderInfo,
  5371. kindList: this.kindList,
  5372. riskList: this.riskList,
  5373. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5374. };
  5375. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5376. this.zhongmei(num, id);
  5377. });
  5378. } else if (!!res.data) {
  5379. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5380. this.totalCompanyList[num].lastYearMsg = "";
  5381. let dat = res.data.warnMessageList;
  5382. dat.map(ele => {
  5383. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5384. });
  5385. }
  5386. this.totalCompanyList[num].quoteCode = 200;
  5387. this.totalCompanyList[num].result = res.data;
  5388. this.QuotationHistory();
  5389. } else {
  5390. this.totalCompanyList[num].quoteCode = "3";
  5391. this.totalCompanyList[num].msg = res.msg;
  5392. return;
  5393. }
  5394. });
  5395. },
  5396. // 大家报价
  5397. dajia(num, id) {
  5398. // let accidentalDrivingVo=[]
  5399. // if(this.dajiaaccidentalDrivingVo){
  5400. // accidentalDrivingVo.rideRiskCode=this.dajiaaccidentalDrivingVo.schemeNo;
  5401. // accidentalDrivingVo.rideRiskName=this.dajiaaccidentalDrivingVo.cvrgName;
  5402. // accidentalDrivingVo.quantity=this.dajiaaccidentalDrivingVo.quantity;
  5403. // }
  5404. let params = {
  5405. accidentalDrivingVo: this.dajiaaccidentalDrivingVo,
  5406. orderNo: this.orderno,
  5407. companyId: id,
  5408. agreementId: this.totalCompanyList[num].agreementId
  5409. };
  5410. this.$api.letter.dajiaquote(params).then(res => {
  5411. this.totalCompanyList[num].msg = res.msg;
  5412. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5413. this.totalCompanyList[num].quoteCode = "4";
  5414. this.totalCompanyList[num].msg = res.msg;
  5415. return;
  5416. } else if (
  5417. res.data == null &&
  5418. res.msg.indexOf("交强险平台返回") > -1 &&
  5419. res.msg.indexOf(";终保日期") > -1
  5420. ) {
  5421. this.totalCompanyList[num].lastYearMsg =
  5422. "<b>交强险</b><br>" +
  5423. res.msg.slice(
  5424. res.msg.indexOf("起保日期 "),
  5425. res.msg.indexOf("地区 山西。") + 6
  5426. );
  5427. let time =
  5428. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5429. this.jqstartDate = time;
  5430. this.jqendDate = this.oneYearPast1(time);
  5431. if (this.riskList.length > 0) {
  5432. for (let i = 0; i < this.riskList.length; i++) {
  5433. if (this.riskList[i].riskCode == "0507") {
  5434. this.riskList[i].startDate = time;
  5435. this.riskList[i].endDate = this.oneYearPast1(time);
  5436. }
  5437. }
  5438. }
  5439. let param = {
  5440. userId: this.userId,
  5441. quoteno: this.quoteno,
  5442. orderNo: this.orderno,
  5443. carInfo: this.carInfo,
  5444. insuredPersonInfo: this.insuredPersonInfo,
  5445. ownerInfo: this.ownerInfo,
  5446. policyHolderInfo: this.policyHolderInfo,
  5447. kindList: this.kindList,
  5448. riskList: this.riskList,
  5449. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5450. };
  5451. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5452. this.dajia(num, id);
  5453. });
  5454. } else if (!!res.data) {
  5455. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5456. this.totalCompanyList[num].lastYearMsg = "";
  5457. let dat = res.data.warnMessageList;
  5458. dat.map(ele => {
  5459. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5460. });
  5461. }
  5462. this.totalCompanyList[num].quoteCode = 200;
  5463. this.totalCompanyList[num].result = res.data;
  5464. this.QuotationHistory();
  5465. } else {
  5466. this.totalCompanyList[num].quoteCode = "3";
  5467. this.totalCompanyList[num].msg = res.msg;
  5468. return;
  5469. }
  5470. });
  5471. },
  5472. //华泰报价
  5473. huatai(num, id) {
  5474. let params = {
  5475. orderNo: this.orderno,
  5476. companyId: id,
  5477. agreementId: this.totalCompanyList[num].agreementId
  5478. };
  5479. this.$api.letter.huataiquote(params).then(res => {
  5480. this.totalCompanyList[num].msg = res.msg;
  5481. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5482. this.totalCompanyList[num].quoteCode = "4";
  5483. this.totalCompanyList[num].msg = res.msg;
  5484. return;
  5485. } else if (
  5486. res.data == null &&
  5487. res.msg.indexOf("交强险平台返回") > -1 &&
  5488. res.msg.indexOf(";终保日期") > -1
  5489. ) {
  5490. //判断保司返回重复投保信息,进行默认赋值起终保日期,重新算费 后面联调需要调整
  5491. let time =
  5492. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5493. this.jqstartDate = time;
  5494. this.jqendDate = this.oneYearPast1(time);
  5495. this.systartDate = time;
  5496. this.syendDate = this.oneYearPast1(time);
  5497. if (this.riskList.length > 0) {
  5498. for (let i = 0; i < this.riskList.length; i++) {
  5499. if (this.riskList[i].riskCode == "0507") {
  5500. this.riskList[i].startDate = time;
  5501. this.riskList[i].endDate = this.oneYearPast1(time);
  5502. } else if (this.riskList[i].riskCode == "0510") {
  5503. this.riskList[i].startDate = time;
  5504. this.riskList[i].endDate = this.oneYearPast1(time);
  5505. }
  5506. }
  5507. }
  5508. let param = {
  5509. userId: this.userId,
  5510. quoteno: this.quoteno,
  5511. orderNo: this.orderno,
  5512. carInfo: this.carInfo,
  5513. insuredPersonInfo: this.insuredPersonInfo,
  5514. ownerInfo: this.ownerInfo,
  5515. policyHolderInfo: this.policyHolderInfo,
  5516. kindList: this.kindList,
  5517. riskList: this.riskList,
  5518. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5519. };
  5520. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5521. this.huatai(num, id);
  5522. });
  5523. } else if (!!res.data) {
  5524. this.totalCompanyList[num].quoteCode = 200;
  5525. this.totalCompanyList[num].result = res.data;
  5526. this.QuotationHistory();
  5527. } else {
  5528. this.totalCompanyList[num].quoteCode = "3";
  5529. this.totalCompanyList[num].msg = res.msg;
  5530. return;
  5531. }
  5532. });
  5533. },
  5534. //紫金报价
  5535. zijin(num, id) {
  5536. let params = {
  5537. accidentalDrivingVo: this.accidentalDrivingVo,
  5538. orderNo: this.orderno,
  5539. companyId: id,
  5540. agreementId: this.totalCompanyList[num].agreementId,
  5541. coefficient: this.totalCompanyList[num].coefficient
  5542. };
  5543. this.$api.letter.zijinquote(params).then(res => {
  5544. this.totalCompanyList[num].msg = res.msg;
  5545. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5546. this.totalCompanyList[num].quoteCode = "4";
  5547. this.totalCompanyList[num].msg = res.msg;
  5548. return;
  5549. } else if (
  5550. res.data == null &&
  5551. res.msg.indexOf("交强险平台返回") > -1 &&
  5552. res.msg.indexOf(";终保日期") > -1
  5553. ) {
  5554. let time =
  5555. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5556. this.jqstartDate = time;
  5557. this.jqendDate = this.oneYearPast1(time);
  5558. this.systartDate = time;
  5559. this.syendDate = this.oneYearPast1(time);
  5560. if (this.riskList.length > 0) {
  5561. for (let i = 0; i < this.riskList.length; i++) {
  5562. if (this.riskList[i].riskCode == "0507") {
  5563. this.riskList[i].startDate = time;
  5564. this.riskList[i].endDate = this.oneYearPast1(time);
  5565. } else if (this.riskList[i].riskCode == "0510") {
  5566. this.riskList[i].startDate = time;
  5567. this.riskList[i].endDate = this.oneYearPast1(time);
  5568. }
  5569. }
  5570. }
  5571. let param = {
  5572. userId: this.userId,
  5573. quoteno: this.quoteno,
  5574. orderNo: this.orderno,
  5575. carInfo: this.carInfo,
  5576. insuredPersonInfo: this.insuredPersonInfo,
  5577. ownerInfo: this.ownerInfo,
  5578. policyHolderInfo: this.policyHolderInfo,
  5579. kindList: this.kindList,
  5580. riskList: this.riskList,
  5581. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5582. };
  5583. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5584. this.zijin(num, id);
  5585. });
  5586. } else if (!!res.data) {
  5587. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5588. this.totalCompanyList[num].lastYearMsg = "";
  5589. let dat = res.data.warnMessageList;
  5590. dat.map(ele => {
  5591. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5592. });
  5593. }
  5594. this.totalCompanyList[num].quoteCode = 200;
  5595. this.totalCompanyList[num].result = res.data;
  5596. this.QuotationHistory();
  5597. } else {
  5598. this.totalCompanyList[num].quoteCode = "3";
  5599. this.totalCompanyList[num].msg = res.msg;
  5600. return;
  5601. }
  5602. });
  5603. },
  5604. //永诚报价
  5605. yongcheng(num, id) {
  5606. this.iscCrownerShow = false;
  5607. this.isInsuredShow = false;
  5608. this.isApplicantShow = false;
  5609. let accidentalDrivingVo = {};
  5610. if (this.accidentForm.code) {
  5611. let data = this.accidentDataList.find(
  5612. val => val.code == this.accidentForm.accidentType
  5613. );
  5614. accidentalDrivingVo = {
  5615. rideRiskCode: data.code ? data.code : "",
  5616. rideRiskName: data.name ? data.name : "",
  5617. quantity: this.accidentForm.fen ? this.accidentForm.fen : ""
  5618. };
  5619. }
  5620. let params = {
  5621. accidentalDrivingVo,
  5622. orderNo: this.orderno,
  5623. companyId: id,
  5624. cqryCdeJq: this.cqryCdeJq,
  5625. cqryCdeSy: this.cqryCdeSy,
  5626. renewalCodeJq: this.renewalCodeJq,
  5627. renewalCodeSy: this.renewalCodeSy,
  5628. agreementId: this.totalCompanyList[num].agreementId
  5629. };
  5630. this.$api.letter.yongchengquote(params).then(res => {
  5631. this.totalCompanyList[num].msg = res.msg;
  5632. if (
  5633. res.data == null &&
  5634. res.msg.indexOf("车险平台返回") > -1 &&
  5635. res.msg.indexOf(";终保日期") > -1
  5636. ) {
  5637. let time =
  5638. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5639. this.jqstartDate = time;
  5640. this.jqendDate = this.oneYearPast1(time);
  5641. if (this.riskList.length > 0) {
  5642. for (let i = 0; i < this.riskList.length; i++) {
  5643. if (this.riskList[i].riskCode == "0507") {
  5644. this.riskList[i].startDate = time;
  5645. this.riskList[i].endDate = this.oneYearPast1(time);
  5646. }
  5647. }
  5648. }
  5649. let param = {
  5650. userId: this.userId,
  5651. quoteno: this.quoteno,
  5652. orderNo: this.orderno,
  5653. carInfo: this.carInfo,
  5654. insuredPersonInfo: this.insuredPersonInfo,
  5655. ownerInfo: this.ownerInfo,
  5656. policyHolderInfo: this.policyHolderInfo,
  5657. kindList: this.kindList,
  5658. riskList: this.riskList,
  5659. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5660. };
  5661. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5662. this.yongcheng(num, id);
  5663. });
  5664. } else if (res.code == "200") {
  5665. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5666. this.totalCompanyList[num].lastYearMsg = "";
  5667. let dat = res.data.warnMessageList;
  5668. dat.map(ele => {
  5669. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5670. });
  5671. }
  5672. this.totalCompanyList[num].quoteCode = 200;
  5673. this.totalCompanyList[num].result = res.data;
  5674. this.QuotationHistory();
  5675. } else if (res.code == "101") {
  5676. this.totalCompanyList[num].quoteCode = "101";
  5677. this.totalCompanyList[num].msg = res.msg;
  5678. this.cqryCdeJq = res.data.cqryCdeJq;
  5679. this.cqryCdeSy = res.data.cqryCdeSy;
  5680. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  5681. let jqBase64 = `data:image/png;base64,${jq}`;
  5682. this.renewalCodeJqImg = jqBase64;
  5683. if (res.data.renewalCodeSy) {
  5684. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  5685. let syBase64 = `data:image/png;base64,${sy}`;
  5686. this.renewalCodeSyImg = syBase64;
  5687. }
  5688. this.renewalCodedialogVisible = true;
  5689. } else if (res.code == "500") {
  5690. // this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
  5691. // this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
  5692. // this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
  5693. // this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
  5694. // this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
  5695. // this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
  5696. this.totalCompanyList[num].quoteCode = "3";
  5697. this.totalCompanyList[num].msg = res.msg;
  5698. } else {
  5699. this.totalCompanyList[num].quoteCode = "3";
  5700. this.totalCompanyList[num].msg = res.msg;
  5701. return;
  5702. }
  5703. });
  5704. },
  5705. //国任报价
  5706. guoRen(num, id) {
  5707. let guoRenSpecialAgreementVo = [];
  5708. this.zijinengageList.forEach(val => {
  5709. guoRenSpecialAgreementVo.push({
  5710. clauses: val.clauseName,
  5711. clausesContext: val.clauses,
  5712. clauseCode: val.clauseCode,
  5713. riskCode: val.riskCode,
  5714. riskName: val.riskName
  5715. });
  5716. });
  5717. let accidentalDrivingVo = {};
  5718. if (this.guoRenaccidentForm.goodsCode) {
  5719. let goodsName = this.guoRenaccidentDataList.find(val => val.goodId == this.guoRenaccidentForm.goodsCode).goodDesc
  5720. accidentalDrivingVo = {
  5721. ...this.guoRenaccidentForm,
  5722. goodsName
  5723. };
  5724. }
  5725. let params = {
  5726. accidentalDrivingVo,
  5727. orderNo: this.orderno,
  5728. companyId: id,
  5729. cqryCdeJq: this.cqryCdeJq,
  5730. cqryCdeSy: this.cqryCdeSy,
  5731. renewalCodeJq: this.renewalCodeJq,
  5732. renewalCodeSy: this.renewalCodeSy,
  5733. agreementId: this.totalCompanyList[num].agreementId,
  5734. guoRenSpecialAgreementVo
  5735. };
  5736. this.$api.letter.guorenquote(params).then(res => {
  5737. this.totalCompanyList[num].msg = res.msg;
  5738. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5739. this.totalCompanyList[num].quoteCode = "4";
  5740. this.totalCompanyList[num].msg = res.msg;
  5741. return;
  5742. } else if (
  5743. res.data == null &&
  5744. res.msg.indexOf("车险平台返回") > -1 &&
  5745. res.msg.indexOf(";终保日期") > -1
  5746. ) {
  5747. let time =
  5748. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5749. this.jqstartDate = time;
  5750. this.jqendDate = this.oneYearPast1(time);
  5751. this.systartDate = time;
  5752. this.syendDate = this.oneYearPast1(time);
  5753. if (this.riskList.length > 0) {
  5754. for (let i = 0; i < this.riskList.length; i++) {
  5755. if (this.riskList[i].riskCode == "0507") {
  5756. this.riskList[i].startDate = time;
  5757. this.riskList[i].endDate = this.oneYearPast1(time);
  5758. } else if (this.riskList[i].riskCode == "0510") {
  5759. this.riskList[i].startDate = time;
  5760. this.riskList[i].endDate = this.oneYearPast1(time);
  5761. }
  5762. }
  5763. }
  5764. let param = {
  5765. userId: this.userId,
  5766. quoteno: this.quoteno,
  5767. orderNo: this.orderno,
  5768. carInfo: this.carInfo,
  5769. insuredPersonInfo: this.insuredPersonInfo,
  5770. ownerInfo: this.ownerInfo,
  5771. policyHolderInfo: this.policyHolderInfo,
  5772. kindList: this.kindList,
  5773. riskList: this.riskList,
  5774. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5775. };
  5776. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5777. this.guoRen(num, id);
  5778. });
  5779. } else if (res.code == "200") {
  5780. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5781. this.totalCompanyList[num].lastYearMsg = "";
  5782. let dat = res.data.warnMessageList;
  5783. dat.map(ele => {
  5784. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5785. });
  5786. }
  5787. this.totalCompanyList[num].quoteCode = 200;
  5788. this.totalCompanyList[num].result = res.data;
  5789. this.QuotationHistory();
  5790. } else if (res.code == "101") {
  5791. this.totalCompanyList[num].quoteCode = "101";
  5792. this.totalCompanyList[num].msg = res.msg;
  5793. this.cqryCdeJq = res.data.cqryCdeJq;
  5794. this.cqryCdeSy = res.data.cqryCdeSy;
  5795. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  5796. let jqBase64 = `data:image/png;base64,${jq}`;
  5797. this.renewalCodeJqImg = jqBase64;
  5798. if (res.data.renewalCodeSy) {
  5799. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  5800. let syBase64 = `data:image/png;base64,${sy}`;
  5801. this.renewalCodeSyImg = syBase64;
  5802. }
  5803. this.renewalCodedialogVisible = true;
  5804. } else {
  5805. this.totalCompanyList[num].quoteCode = "3";
  5806. this.totalCompanyList[num].msg = res.msg;
  5807. return;
  5808. }
  5809. });
  5810. },
  5811. //渤海报价
  5812. bohai(num, id) {
  5813. let accidentalDrivingVo = [];
  5814. if (this.boHaiaccidentForm.packageCode) {
  5815. accidentalDrivingVo = [
  5816. {
  5817. packageCode: this.boHaiaccidentForm.packageCode,
  5818. productCode: this.boHaiaccidentDataList.find(
  5819. e => e.packageCode == this.boHaiaccidentForm.packageCode
  5820. ).productCode,
  5821. copies: this.boHaiaccidentForm.copies
  5822. }
  5823. ];
  5824. }
  5825. let params = {
  5826. accidentalDrivingVo,
  5827. orderNo: this.orderno,
  5828. companyId: id,
  5829. cqryCdeJq: this.cqryCdeJq,
  5830. cqryCdeSy: this.cqryCdeSy,
  5831. renewalCodeJq: this.renewalCodeJq,
  5832. renewalCodeSy: this.renewalCodeSy,
  5833. agreementId: this.totalCompanyList[num].agreementId,
  5834. userId:this.userId
  5835. };
  5836. this.$api.letter.bohaiquote(params).then(res => {
  5837. this.totalCompanyList[num].msg = res.msg;
  5838. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5839. this.totalCompanyList[num].quoteCode = "4";
  5840. this.totalCompanyList[num].msg = res.msg;
  5841. return;
  5842. } else if (
  5843. res.data == null &&
  5844. res.msg.indexOf("车险平台返回") > -1 &&
  5845. res.msg.indexOf(";终保日期") > -1
  5846. ) {
  5847. let time =
  5848. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5849. this.jqstartDate = time;
  5850. this.jqendDate = this.oneYearPast1(time);
  5851. this.systartDate = time;
  5852. this.syendDate = this.oneYearPast1(time);
  5853. if (this.riskList.length > 0) {
  5854. for (let i = 0; i < this.riskList.length; i++) {
  5855. if (this.riskList[i].riskCode == "0507") {
  5856. this.riskList[i].startDate = time;
  5857. this.riskList[i].endDate = this.oneYearPast1(time);
  5858. } else if (this.riskList[i].riskCode == "0510") {
  5859. this.riskList[i].startDate = time;
  5860. this.riskList[i].endDate = this.oneYearPast1(time);
  5861. }
  5862. }
  5863. }
  5864. let param = {
  5865. userId: this.userId,
  5866. quoteno: this.quoteno,
  5867. orderNo: this.orderno,
  5868. carInfo: this.carInfo,
  5869. insuredPersonInfo: this.insuredPersonInfo,
  5870. ownerInfo: this.ownerInfo,
  5871. policyHolderInfo: this.policyHolderInfo,
  5872. kindList: this.kindList,
  5873. riskList: this.riskList,
  5874. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5875. };
  5876. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5877. this.bohai(num, id);
  5878. });
  5879. } else if (res.code == "200") {
  5880. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5881. this.totalCompanyList[num].lastYearMsg = "";
  5882. let dat = res.data.warnMessageList;
  5883. dat.map(ele => {
  5884. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5885. });
  5886. }
  5887. this.totalCompanyList[num].quoteCode = 200;
  5888. this.totalCompanyList[num].result = res.data;
  5889. this.QuotationHistory();
  5890. } else if (res.code == "101") {
  5891. this.totalCompanyList[num].quoteCode = "101";
  5892. this.totalCompanyList[num].msg = res.msg;
  5893. this.cqryCdeJq = res.data.cqryCdeJq;
  5894. this.cqryCdeSy = res.data.cqryCdeSy;
  5895. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  5896. let jqBase64 = `data:image/png;base64,${jq}`;
  5897. this.renewalCodeJqImg = jqBase64;
  5898. if (res.data.renewalCodeSy) {
  5899. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  5900. let syBase64 = `data:image/png;base64,${sy}`;
  5901. this.renewalCodeSyImg = syBase64;
  5902. }
  5903. this.renewalCodedialogVisible = true;
  5904. } else {
  5905. this.totalCompanyList[num].quoteCode = "3";
  5906. this.totalCompanyList[num].msg = res.msg;
  5907. return;
  5908. }
  5909. });
  5910. },
  5911. // 爬虫对接
  5912. quoteInsurance(num, id, namesimple, apiType) {
  5913. let api = apiType == 2 ? "pythonquote" : "anshengquote";
  5914. let ccidenttype = this.totalCompanyList[num].cnName;
  5915. let params = {
  5916. accidentalDrivingVo: this[ccidenttype + "accidentalDrivingVo"],
  5917. orderNo: this.orderno,
  5918. companyId: id,
  5919. userId:this.userId,
  5920. agreementId: this.totalCompanyList[num].agreementId
  5921. };
  5922. if (namesimple == "中国人寿" && this.lastCompanyId) {
  5923. params.discount = this.totalCompanyList[num].discount;
  5924. params.lastCompanyId = this.lastCompanyId;
  5925. }
  5926. this.$api.letter[api](params).then(res => {
  5927. this.totalCompanyList[num].msg = res.msg;
  5928. switch (namesimple) {
  5929. case "安盛天平":
  5930. case "中国人寿":
  5931. case "恒邦财险":
  5932. case "华农财险":
  5933. case "太平财险":
  5934. if (!!res.data) {
  5935. if (
  5936. res.data.warnMessageList &&
  5937. res.data.warnMessageList.length > 0
  5938. ) {
  5939. this.totalCompanyList[num].lastYearMsg = "";
  5940. let dat = res.data.warnMessageList;
  5941. dat.map(ele => {
  5942. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5943. });
  5944. }
  5945. if (res.data.predictInfo && res.data.predictInfo.length > 0) {
  5946. this.totalCompanyList[num].predictInfo = res.data.predictInfo;
  5947. }
  5948. this.totalCompanyList[num].quoteCode = 200;
  5949. this.totalCompanyList[num].result = res.data;
  5950. if (namesimple == "中国人寿" && res.data.companyId) {
  5951. this.lastCompanyId = res.data.companyId;
  5952. }
  5953. this.QuotationHistory();
  5954. } else {
  5955. this.totalCompanyList[num].quoteCode = "3";
  5956. this.totalCompanyList[num].msg = res.msg;
  5957. return;
  5958. }
  5959. break;
  5960. case "众安财险":
  5961. if (!!res.data) {
  5962. if (res.data.tips == "需要验车") {
  5963. this.$notify.error({
  5964. title: "通融单",
  5965. duration: 0,
  5966. dangerouslyUseHTMLString: true,
  5967. message: `<div> ${res.data.warnMessageList
  5968. .map(item => {
  5969. return `<p>${item}</p>`;
  5970. })
  5971. .join("")}
  5972. </div>`
  5973. });
  5974. }
  5975. if (
  5976. res.data.warnMessageList &&
  5977. res.data.warnMessageList.length > 0
  5978. ) {
  5979. this.totalCompanyList[num].lastYearMsg = "";
  5980. let dat = res.data.warnMessageList;
  5981. dat.map(ele => {
  5982. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5983. });
  5984. }
  5985. this.totalCompanyList[num].quoteCode = 200;
  5986. this.totalCompanyList[num].result = res.data;
  5987. this.QuotationHistory();
  5988. } else {
  5989. this.totalCompanyList[num].quoteCode = "3";
  5990. this.totalCompanyList[num].msg = res.msg;
  5991. return;
  5992. }
  5993. break;
  5994. default:
  5995. break;
  5996. }
  5997. });
  5998. },
  5999. //安盛天平
  6000. ansheng(num, id, namesimple) {
  6001. this.quoteInsurance(
  6002. num,
  6003. id,
  6004. namesimple,
  6005. this.totalCompanyList[num].apiType
  6006. );
  6007. },
  6008. //众安
  6009. zhongan(num, id, namesimple) {
  6010. this.quoteInsurance(
  6011. num,
  6012. id,
  6013. namesimple,
  6014. this.totalCompanyList[num].apiType
  6015. );
  6016. },
  6017. //人寿
  6018. renshou(num, id, namesimple) {
  6019. this.quoteInsurance(
  6020. num,
  6021. id,
  6022. namesimple,
  6023. this.totalCompanyList[num].apiType
  6024. );
  6025. },
  6026. //恒邦
  6027. hengbang(num, id, namesimple) {
  6028. this.quoteInsurance(
  6029. num,
  6030. id,
  6031. namesimple,
  6032. this.totalCompanyList[num].apiType
  6033. );
  6034. },
  6035. //太平
  6036. taiping(num, id, namesimple) {
  6037. this.quoteInsurance(
  6038. num,
  6039. id,
  6040. namesimple,
  6041. this.totalCompanyList[num].apiType
  6042. );
  6043. },
  6044. //华农
  6045. huanong(num, id, namesimple) {
  6046. this.quoteInsurance(
  6047. num,
  6048. id,
  6049. namesimple,
  6050. this.totalCompanyList[num].apiType
  6051. );
  6052. },
  6053. // 爬虫对接
  6054. qoutedetail(companyId) {
  6055. let params = {
  6056. companyId: companyId
  6057. };
  6058. this.$api.letter.getByCompanyId(params).then(res => {
  6059. if (res.code == "200") {
  6060. var data = res.data;
  6061. data.kindinfo.map((ele, index) => {
  6062. switch (ele.kindCode) {
  6063. case "A":
  6064. ele.amount = "投保";
  6065. break;
  6066. case "D4":
  6067. case "SY_FJ_YBW2":
  6068. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  6069. break;
  6070. case "MJ1":
  6071. case "MJ2":
  6072. case "MJ3":
  6073. case "MJ4":
  6074. ele.deductibleRate = ele.deductibleRate + "%";
  6075. break;
  6076. default:
  6077. ele.amount = this.toChinesNum(ele.amount);
  6078. }
  6079. return ele;
  6080. });
  6081. this.queryOrders = data;
  6082. //赋值费用信息
  6083. // this.feeDetailInfo=data.orderFeeResult;
  6084. }
  6085. });
  6086. this.$refs.detailsDialog.setBackupVisible(true);
  6087. },
  6088. imageUpload() {
  6089. this.imageUploaddialogVisible = true;
  6090. },
  6091. cancelorder(item) {
  6092. this.$api.letter.zijincancelorder({ companyId: item.id }).then(res => {
  6093. if (res.code == 200) {
  6094. this.$message({
  6095. message: res.msg,
  6096. type: "success"
  6097. });
  6098. this.QuotationHistory();
  6099. }
  6100. });
  6101. },
  6102. imageEcho(quotenos) {
  6103. //影像查询
  6104. this.$api.letter.findByQuoteNo(quotenos).then(res => {
  6105. if (res.code == "200") {
  6106. this.imageList1 = [];
  6107. this.imageList2 = [];
  6108. this.imageList3 = [];
  6109. this.imageList4 = [];
  6110. this.imageList5 = [];
  6111. this.imgList1 = [];
  6112. this.imgList2 = [];
  6113. this.imgList3 = [];
  6114. this.imgList4 = [];
  6115. this.imgList5 = [];
  6116. this.imgList6 = [];
  6117. this.imgList7 = [];
  6118. this.imgList8 = [];
  6119. this.imgList9 = [];
  6120. this.imgList10 = [];
  6121. this.imgList11 = [];
  6122. Object.keys(res.data).forEach(keys => {
  6123. if (res.data[keys].url) {
  6124. res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
  6125. switch (keys) {
  6126. case "C01":
  6127. this.imageList1.push({
  6128. imageId: res.data[keys].imageId,
  6129. imageType: res.data[keys].imageType
  6130. });
  6131. this.imgList1.push(res.data[keys]);
  6132. break;
  6133. case "D01":
  6134. this.imageList1.push({
  6135. imageId: res.data[keys].imageId,
  6136. imageType: res.data[keys].imageType
  6137. });
  6138. this.imgList2.push(res.data[keys]);
  6139. break;
  6140. case "C02":
  6141. this.imageList2.push({
  6142. imageId: res.data[keys].imageId,
  6143. imageType: res.data[keys].imageType
  6144. });
  6145. this.imgList3.push(res.data[keys]);
  6146. break;
  6147. case "D02":
  6148. this.imageList2.push({
  6149. imageId: res.data[keys].imageId,
  6150. imageType: res.data[keys].imageType
  6151. });
  6152. this.imgList4.push(res.data[keys]);
  6153. break;
  6154. case "C03":
  6155. this.imageList3.push({
  6156. imageId: res.data[keys].imageId,
  6157. imageType: res.data[keys].imageType
  6158. });
  6159. this.imgList5.push(res.data[keys]);
  6160. break;
  6161. case "D03":
  6162. this.imageList3.push({
  6163. imageId: res.data[keys].imageId,
  6164. imageType: res.data[keys].imageType
  6165. });
  6166. this.imgList6.push(res.data[keys]);
  6167. break;
  6168. case "C04":
  6169. this.imageList4.push({
  6170. imageId: res.data[keys].imageId,
  6171. imageType: res.data[keys].imageType
  6172. });
  6173. this.imgList7.push(res.data[keys]);
  6174. break;
  6175. case "D04":
  6176. this.imageList4.push({
  6177. imageId: res.data[keys].imageId,
  6178. imageType: res.data[keys].imageType
  6179. });
  6180. this.imgList8.push(res.data[keys]);
  6181. break;
  6182. case "XC00":
  6183. this.imageList5.push({
  6184. imageId: res.data[keys].imageId,
  6185. imageType: res.data[keys].imageType
  6186. });
  6187. this.imgList9.push(res.data[keys]);
  6188. break;
  6189. case "GC00":
  6190. this.imageList5.push({
  6191. imageId: res.data[keys].imageId,
  6192. imageType: res.data[keys].imageType
  6193. });
  6194. this.imgList10.push(res.data[keys]);
  6195. break;
  6196. case "GX00":
  6197. this.imageList5.push({
  6198. imageId: res.data[keys].imageId,
  6199. imageType: res.data[keys].imageType
  6200. });
  6201. this.imgList11.push(res.data[keys]);
  6202. break;
  6203. default:
  6204. break;
  6205. }
  6206. }
  6207. });
  6208. } else {
  6209. this.$message({ message: res.msg, type: "info" });
  6210. }
  6211. });
  6212. },
  6213. hbsubmitdialog(data) {
  6214. if (this.imageList1.length == 0 && this.imageList2.length == 0) {
  6215. this.$message({ message: "影像不全,先上传影像", type: "error" });
  6216. return;
  6217. }
  6218. this.companyId = data.result.companyId;
  6219. this.apiType = data.apiType;
  6220. this.hbsubmitdialogVisible = true;
  6221. this.contributingState = false;
  6222. if (data.namesimple == "紫金财险") {
  6223. this.$api.letter
  6224. .zijinqueryClauseData({ companyId: this.companyId })
  6225. .then(res => {
  6226. this.zijinengageListData = res.data;
  6227. });
  6228. }
  6229. if (data.namesimple == "华泰财险") {
  6230. this.zijinengageList = [];
  6231. this.$api.letter
  6232. .huataiqueryClauseData({ companyId: this.companyId })
  6233. .then(res => {
  6234. res.data.forEach(val => {
  6235. val.clauseCode = val.engageCode;
  6236. val.clauseName = val.engageTitle;
  6237. val.clauseContent = val.engageDetail;
  6238. val.clauses = val.engageDetail;
  6239. });
  6240. this.zijinengageListData = res.data;
  6241. this.zijinengageListData.forEach(val => {
  6242. this.$nextTick(() => {
  6243. if (val.optType == "2") {
  6244. this.zijinengageList.push(val);
  6245. this.$refs.expandTablePro.toggleRowSelection(val, true);
  6246. }
  6247. });
  6248. });
  6249. });
  6250. } else {
  6251. this.zijinengageListData = [];
  6252. }
  6253. // switch (data.namesimple) {
  6254. // case "紫金财险":
  6255. // this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
  6256. // this.zijinengageListData = res.data;
  6257. // });
  6258. // break;
  6259. // default:
  6260. // break;
  6261. // }
  6262. },
  6263. hbsubmit() {
  6264. this.hbsubmitdialogVisible = false;
  6265. this.contributingState = false;
  6266. this.$api.letter
  6267. .getByCompanyId({ companyId: this.companyId })
  6268. .then(async res => {
  6269. if (res.code == 200) {
  6270. var data = res.data;
  6271. this.queryOrders = data;
  6272. const loading = this.$loading({
  6273. lock: true,
  6274. text: "Loading",
  6275. spinner: "el-icon-loading",
  6276. background: "rgba(0, 0, 0, 0.7)"
  6277. });
  6278. switch (this.queryOrders.inscompany) {
  6279. case "永安财险":
  6280. let api = "";
  6281. api =
  6282. this.apiType == 2
  6283. ? "pythonsubmitImage"
  6284. : "insyongansubmitImage";
  6285. await this.$api.letter[api]({
  6286. companyId: this.companyId
  6287. }).then(res => {
  6288. if (res.code == "200") {
  6289. var _this = this;
  6290. let api1 = "";
  6291. api1 = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
  6292. this.$api.letter[api1]({
  6293. companyId: this.companyId
  6294. }).then(res => {
  6295. var _this = this;
  6296. if (res.code == "200") {
  6297. loading.close();
  6298. this.$message({
  6299. message: "核保成功",
  6300. type: "success"
  6301. });
  6302. this.QuotationHistory();
  6303. _this.$api.letter
  6304. .getByCompanyId({ companyId: this.companyId })
  6305. .then(res => {
  6306. _this.orderstatus = res.data.orderstatus; //订单状态
  6307. _this.underwritingdialogVisible = true;
  6308. let indexid = this.totalCompanyList.findIndex(
  6309. item =>
  6310. item.namesimple == this.queryOrders.inscompany
  6311. );
  6312. this.totalCompanyList[indexid].orderstatus =
  6313. res.data.orderstatus;
  6314. });
  6315. } else {
  6316. loading.close();
  6317. this.$message({
  6318. showClose: true,
  6319. message:
  6320. this.queryOrders.inscompany + "提核--:" + res.msg,
  6321. type: "error",
  6322. duration: 0
  6323. });
  6324. }
  6325. });
  6326. } else {
  6327. this.$message({
  6328. message: this.queryOrders.inscompany + "影像:" + res.msg,
  6329. type: "error",
  6330. duration: 7000
  6331. });
  6332. loading.close();
  6333. }
  6334. });
  6335. break;
  6336. case "中煤财险":
  6337. await this.$api.letter
  6338. .insZhongmeisubmitImage({
  6339. companyId: this.companyId
  6340. })
  6341. .then(res => {
  6342. if (res.code == "200") {
  6343. var _this = this;
  6344. _this.$api.letter
  6345. .Zhongmeiaudit({
  6346. companyId: this.companyId,
  6347. jqappoint: "",
  6348. syappoint: ""
  6349. })
  6350. .then(res => {
  6351. if (res.code == "200") {
  6352. loading.close();
  6353. _this.$message({
  6354. message: "核保成功",
  6355. type: "success"
  6356. });
  6357. this.QuotationHistory();
  6358. _this.$api.letter
  6359. .getByCompanyId({ companyId: this.companyId })
  6360. .then(res => {
  6361. _this.orderstatus = res.data.orderstatus; //订单状态
  6362. _this.underwritingdialogVisible = true;
  6363. let indexid = this.totalCompanyList.findIndex(
  6364. item =>
  6365. item.namesimple ==
  6366. this.queryOrders.inscompany
  6367. );
  6368. this.totalCompanyList[indexid].orderstatus =
  6369. res.data.orderstatus;
  6370. });
  6371. } else {
  6372. loading.close();
  6373. _this.$message({
  6374. showClose: true,
  6375. message:
  6376. this.queryOrders.inscompany +
  6377. "提核--:" +
  6378. res.msg,
  6379. type: "error",
  6380. duration: 0
  6381. });
  6382. _this.$api.letter
  6383. .getByCompanyId({ companyId: this.companyId })
  6384. .then(res => {
  6385. _this.orderstatus = res.data.orderstatus; //订单状态
  6386. });
  6387. }
  6388. });
  6389. } else {
  6390. this.$message({
  6391. message:
  6392. this.queryOrders.inscompany + "影像--:" + res.msg,
  6393. type: "error",
  6394. duration: 7000
  6395. });
  6396. loading.close();
  6397. }
  6398. });
  6399. break;
  6400. case "华泰财险":
  6401. await this.$api.letter
  6402. .insHuataisubmitImage({
  6403. companyId: this.companyId
  6404. })
  6405. .then(res => {
  6406. if (res.code == "200") {
  6407. var _this = this;
  6408. let engageList = [];
  6409. this.zijinengageList.forEach(val => {
  6410. engageList.push({
  6411. engageCode: val.clauseCode,
  6412. engageDetail: val.clauses,
  6413. engageTitle: val.clauseName,
  6414. riskCode: val.riskCode
  6415. });
  6416. });
  6417. _this.$api.letter
  6418. .huataiaudit({
  6419. companyId: this.companyId,
  6420. engageList
  6421. })
  6422. .then(res => {
  6423. if (res.code == "200") {
  6424. loading.close();
  6425. _this.$message({
  6426. message: "核保成功",
  6427. type: "success"
  6428. });
  6429. this.QuotationHistory();
  6430. _this.$api.letter
  6431. .getByCompanyId({ companyId: this.companyId })
  6432. .then(res => {
  6433. _this.orderstatus = res.data.orderstatus; //订单状态
  6434. _this.underwritingdialogVisible = true;
  6435. let indexid = this.totalCompanyList.findIndex(
  6436. item =>
  6437. item.namesimple ==
  6438. this.queryOrders.inscompany
  6439. );
  6440. this.totalCompanyList[indexid].orderstatus =
  6441. res.data.orderstatus;
  6442. });
  6443. } else {
  6444. loading.close();
  6445. _this.$message({
  6446. showClose: true,
  6447. message:
  6448. this.queryOrders.inscompany +
  6449. "提核--:" +
  6450. res.msg,
  6451. type: "error",
  6452. duration: 0
  6453. });
  6454. _this.$api.letter
  6455. .getByCompanyId({ companyId: this.companyId })
  6456. .then(res => {
  6457. _this.orderstatus = res.data.orderstatus; //订单状态
  6458. });
  6459. }
  6460. });
  6461. } else {
  6462. this.$message({
  6463. message:
  6464. this.queryOrders.inscompany + "影像--:" + res.msg,
  6465. type: "error",
  6466. duration: 7000
  6467. });
  6468. loading.close();
  6469. }
  6470. });
  6471. break;
  6472. case "紫金财险":
  6473. await this.$api.letter
  6474. .zijinsubmitImage({
  6475. companyId: this.companyId
  6476. })
  6477. .then(res => {
  6478. if (res.code == "200") {
  6479. var _this = this;
  6480. _this.$api.letter
  6481. .zijinaudit({
  6482. companyId: this.companyId,
  6483. engageList: this.zijinengageList
  6484. })
  6485. .then(res => {
  6486. if (res.code == "200") {
  6487. loading.close();
  6488. _this.$message({
  6489. message: "核保成功",
  6490. type: "success"
  6491. });
  6492. this.QuotationHistory();
  6493. _this.$api.letter
  6494. .getByCompanyId({ companyId: this.companyId })
  6495. .then(res => {
  6496. _this.orderstatus = res.data.orderstatus; //订单状态
  6497. _this.underwritingdialogVisible = true;
  6498. let indexid = this.totalCompanyList.findIndex(
  6499. item =>
  6500. item.namesimple ==
  6501. this.queryOrders.inscompany
  6502. );
  6503. this.totalCompanyList[indexid].orderstatus =
  6504. res.data.orderstatus;
  6505. });
  6506. } else {
  6507. loading.close();
  6508. _this.$message({
  6509. showClose: true,
  6510. dangerouslyUseHTMLString: true,
  6511. message:
  6512. this.queryOrders.inscompany +
  6513. "提核--:" +
  6514. res.msg,
  6515. type: "error",
  6516. duration: 0
  6517. });
  6518. _this.$api.letter
  6519. .getByCompanyId({ companyId: this.companyId })
  6520. .then(res => {
  6521. _this.orderstatus = res.data.orderstatus; //订单状态
  6522. });
  6523. }
  6524. });
  6525. } else {
  6526. this.$message({
  6527. message:
  6528. this.queryOrders.inscompany + "影像--:" + res.msg,
  6529. type: "error",
  6530. duration: 7000
  6531. });
  6532. loading.close();
  6533. }
  6534. });
  6535. break;
  6536. case "国任财险":
  6537. await this.$api.letter
  6538. .insguorensubmitImage({
  6539. companyId: this.companyId
  6540. })
  6541. .then(res => {
  6542. if (res.code == "200") {
  6543. var _this = this;
  6544. _this.$api.letter
  6545. .gunrenaudit({
  6546. companyId: this.companyId
  6547. })
  6548. .then(res => {
  6549. if (res.code == "200") {
  6550. loading.close();
  6551. _this.cqryCdeJq = "";
  6552. _this.cqryCdeSy = "";
  6553. _this.renewalCodeJq = "";
  6554. _this.renewalCodeSy = "";
  6555. this.$message({
  6556. message: "核保成功",
  6557. type: "success"
  6558. });
  6559. this.QuotationHistory();
  6560. _this.$api.letter
  6561. .getByCompanyId({ companyId: this.companyId })
  6562. .then(res => {
  6563. _this.orderstatus = res.data.orderstatus; //订单状态
  6564. _this.underwritingdialogVisible = true;
  6565. let indexid = this.totalCompanyList.findIndex(
  6566. item =>
  6567. item.namesimple ==
  6568. this.queryOrders.inscompany
  6569. );
  6570. this.totalCompanyList[indexid].orderstatus =
  6571. res.data.orderstatus;
  6572. });
  6573. } else {
  6574. loading.close();
  6575. this.$message({
  6576. showClose: true,
  6577. message: res.msg,
  6578. type: "error",
  6579. duration: 0
  6580. });
  6581. }
  6582. });
  6583. } else {
  6584. loading.close();
  6585. this.$message({
  6586. message: res.msg,
  6587. type: "error",
  6588. duration: 7000
  6589. });
  6590. }
  6591. });
  6592. break;
  6593. case "渤海财险":
  6594. await this.$api.letter
  6595. .insbohaisubmitImage({
  6596. companyId: this.companyId
  6597. })
  6598. .then(res => {
  6599. if (res.code == "200") {
  6600. var _this = this;
  6601. _this.$api.letter
  6602. .bohaiaudit({
  6603. companyId: this.companyId
  6604. })
  6605. .then(res => {
  6606. if (res.code == "200") {
  6607. loading.close();
  6608. _this.cqryCdeJq = "";
  6609. _this.cqryCdeSy = "";
  6610. _this.renewalCodeJq = "";
  6611. _this.renewalCodeSy = "";
  6612. this.$message({
  6613. message: "核保成功",
  6614. type: "success"
  6615. });
  6616. this.QuotationHistory();
  6617. _this.$api.letter
  6618. .getByCompanyId({ companyId: this.companyId })
  6619. .then(res => {
  6620. _this.orderstatus = res.data.orderstatus; //订单状态
  6621. _this.underwritingdialogVisible = true;
  6622. let indexid = this.totalCompanyList.findIndex(
  6623. item =>
  6624. item.namesimple ==
  6625. this.queryOrders.inscompany
  6626. );
  6627. this.totalCompanyList[indexid].orderstatus =
  6628. res.data.orderstatus;
  6629. });
  6630. } else {
  6631. loading.close();
  6632. this.$message({
  6633. showClose: true,
  6634. message: res.msg,
  6635. type: "error",
  6636. duration: 0
  6637. });
  6638. }
  6639. });
  6640. } else {
  6641. loading.close();
  6642. this.$message({
  6643. message: res.msg,
  6644. type: "error",
  6645. duration: 7000
  6646. });
  6647. }
  6648. });
  6649. break;
  6650. case "恒邦财险":
  6651. case "华农财险":
  6652. case "太平财险":
  6653. case "安盛天平":
  6654. case "众安财险":
  6655. case "中国人寿":
  6656. let hengbangapi = "";
  6657. hengbangapi =
  6658. this.apiType == 2
  6659. ? "pythonsubmitImage"
  6660. : "anshengsubmitImage";
  6661. await this.$api.letter[hengbangapi]({
  6662. subOrderNo: this.companyId
  6663. }).then(res => {
  6664. if (res.code == "200") {
  6665. var _this = this;
  6666. let hengbangapi1 = "";
  6667. hengbangapi1 =
  6668. this.apiType == 2 ? "pythonaudit" : "anshengaudit";
  6669. _this.$api.letter[hengbangapi1]({
  6670. subOrderNo: this.companyId
  6671. }).then(res => {
  6672. if (res.code == "200") {
  6673. loading.close();
  6674. this.$message({
  6675. message: "核保成功",
  6676. type: "success"
  6677. });
  6678. this.QuotationHistory();
  6679. _this.$api.letter
  6680. .getByCompanyId({ companyId: this.companyId })
  6681. .then(res => {
  6682. _this.orderstatus = res.data.orderstatus; //订单状态
  6683. _this.underwritingdialogVisible = true;
  6684. let indexid = this.totalCompanyList.findIndex(
  6685. item =>
  6686. item.namesimple == this.queryOrders.inscompany
  6687. );
  6688. this.totalCompanyList[indexid].orderstatus =
  6689. res.data.orderstatus;
  6690. });
  6691. } else {
  6692. loading.close();
  6693. this.$message({
  6694. showClose: true,
  6695. dangerouslyUseHTMLString: true,
  6696. message:
  6697. this.queryOrders.inscompany +
  6698. "提核--:" +
  6699. res.msg.replace(/\n/g, "<br><br>"),
  6700. type: "error",
  6701. duration: 0
  6702. });
  6703. }
  6704. });
  6705. } else {
  6706. loading.close();
  6707. this.$message({
  6708. message:
  6709. this.queryOrders.inscompany + "影像--:" + res.msg,
  6710. type: "error",
  6711. duration: 7000
  6712. });
  6713. }
  6714. });
  6715. break;
  6716. case "永诚财险":
  6717. await this.$api.letter
  6718. .insyongchengsubmitImage({
  6719. companyId: this.companyId
  6720. })
  6721. .then(res => {
  6722. if (res.code == "200") {
  6723. var _this = this;
  6724. _this.$api.letter
  6725. .yongchengaudit({
  6726. companyId: this.companyId
  6727. })
  6728. .then(res => {
  6729. if (res.code == "200") {
  6730. loading.close();
  6731. _this.cqryCdeJq = "";
  6732. _this.cqryCdeSy = "";
  6733. _this.renewalCodeJq = "";
  6734. _this.renewalCodeSy = "";
  6735. this.$message({
  6736. message: "核保成功",
  6737. type: "success"
  6738. });
  6739. this.QuotationHistory();
  6740. _this.$api.letter
  6741. .getByCompanyId({ companyId: this.companyId })
  6742. .then(res => {
  6743. _this.orderstatus = res.data.orderstatus; //订单状态
  6744. _this.underwritingdialogVisible = true;
  6745. let indexid = this.totalCompanyList.findIndex(
  6746. item =>
  6747. item.namesimple ==
  6748. this.queryOrders.inscompany
  6749. );
  6750. this.totalCompanyList[indexid].orderstatus =
  6751. res.data.orderstatus;
  6752. });
  6753. } else {
  6754. loading.close();
  6755. this.$message({
  6756. showClose: true,
  6757. message:
  6758. this.queryOrders.inscompany +
  6759. "提核--:" +
  6760. res.msg,
  6761. customClass: "customNotifyClass",
  6762. type: "error",
  6763. duration: 0
  6764. });
  6765. }
  6766. });
  6767. } else {
  6768. loading.close();
  6769. this.$message({
  6770. message:
  6771. this.queryOrders.inscompany + "影像--:" + res.msg,
  6772. type: "error",
  6773. duration: 7000
  6774. });
  6775. }
  6776. });
  6777. break;
  6778. case "大家财险":
  6779. await this.$api.letter
  6780. .dajiasubmitImage({
  6781. companyId: this.companyId
  6782. })
  6783. .then(res => {
  6784. if (res.code == "200") {
  6785. var _this = this;
  6786. _this.$api.letter
  6787. .dajiaaudit({
  6788. companyId: this.companyId
  6789. })
  6790. .then(res => {
  6791. if (res.code == "200") {
  6792. loading.close();
  6793. _this.cqryCdeJq = "";
  6794. _this.cqryCdeSy = "";
  6795. _this.renewalCodeJq = "";
  6796. _this.renewalCodeSy = "";
  6797. this.$message({
  6798. message: "核保成功",
  6799. type: "success"
  6800. });
  6801. this.QuotationHistory();
  6802. _this.$api.letter
  6803. .getByCompanyId({ companyId: this.companyId })
  6804. .then(res => {
  6805. _this.orderstatus = res.data.orderstatus; //订单状态
  6806. _this.underwritingdialogVisible = true;
  6807. let indexid = this.totalCompanyList.findIndex(
  6808. item =>
  6809. item.namesimple ==
  6810. this.queryOrders.inscompany
  6811. );
  6812. this.totalCompanyList[indexid].orderstatus =
  6813. res.data.orderstatus;
  6814. });
  6815. } else {
  6816. loading.close();
  6817. this.$message({
  6818. showClose: true,
  6819. message:
  6820. this.queryOrders.inscompany +
  6821. "提核--:" +
  6822. res.msg,
  6823. customClass: "customNotifyClass",
  6824. type: "error",
  6825. duration: 0
  6826. });
  6827. }
  6828. });
  6829. } else {
  6830. loading.close();
  6831. this.$message({
  6832. message:
  6833. this.queryOrders.inscompany + "影像--:" + res.msg,
  6834. type: "error",
  6835. duration: 7000
  6836. });
  6837. }
  6838. });
  6839. break;
  6840. }
  6841. }
  6842. });
  6843. },
  6844. //当前日期的次日
  6845. transformTime1() {
  6846. var date = new Date();
  6847. date.setFullYear(date.getFullYear());
  6848. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  6849. var strYear = date.getFullYear();
  6850. var strDay = date.getDate();
  6851. var strMonth = date.getMonth() + 1;
  6852. var hh = date.getHours();
  6853. if (hh < 10) {
  6854. hh = "0" + hh;
  6855. }
  6856. if (strMonth < 10) {
  6857. strMonth = "0" + strMonth;
  6858. }
  6859. if (strDay < 10) {
  6860. strDay = "0" + strDay;
  6861. }
  6862. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  6863. return datastr;
  6864. },
  6865. //传入日期的次日
  6866. transformTime2(time) {
  6867. var date = new Date(time);
  6868. date.setFullYear(date.getFullYear());
  6869. date.setTime(date.getTime() + 24 * 60 * 60 * 1000); //一年后的前一天
  6870. var strYear = date.getFullYear();
  6871. var strDay = date.getDate();
  6872. var strMonth = date.getMonth() + 1;
  6873. var hh = date.getHours();
  6874. if (hh < 10) {
  6875. hh = "0" + hh;
  6876. }
  6877. if (strMonth < 10) {
  6878. strMonth = "0" + strMonth;
  6879. }
  6880. if (strDay < 10) {
  6881. strDay = "0" + strDay;
  6882. }
  6883. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  6884. return datastr;
  6885. },
  6886. //时间转换
  6887. transformTime(date) {
  6888. var d = new Date(date);
  6889. var strYear = d.getFullYear();
  6890. var strMonth = d.getMonth() + 1;
  6891. var strDay = d.getDate();
  6892. var hh = d.getHours();
  6893. var minutes = d.getMinutes(); // 分
  6894. var Seconds = d.getSeconds();
  6895. if (hh < 10) {
  6896. hh = "0" + hh;
  6897. }
  6898. if (minutes < 10) {
  6899. minutes = "0" + minutes;
  6900. }
  6901. if (Seconds < 10) {
  6902. Seconds = "0" + Seconds;
  6903. }
  6904. if (strMonth < 10) {
  6905. strMonth = "0" + strMonth;
  6906. }
  6907. if (strDay < 10) {
  6908. strDay = "0" + strDay;
  6909. }
  6910. var datetime =
  6911. strYear +
  6912. "-" +
  6913. strMonth +
  6914. "-" +
  6915. strDay +
  6916. " " +
  6917. hh +
  6918. ":" +
  6919. minutes +
  6920. ":" +
  6921. Seconds;
  6922. return datetime;
  6923. },
  6924. timeformat(date) {
  6925. var d = new Date(date);
  6926. var strYear = d.getFullYear();
  6927. var strMonth = d.getMonth() + 1;
  6928. var strDay = d.getDate();
  6929. var hh = d.getHours();
  6930. if (hh < 10) {
  6931. hh = "0" + hh;
  6932. }
  6933. if (strMonth < 10) {
  6934. strMonth = "0" + strMonth;
  6935. }
  6936. if (strDay < 10) {
  6937. strDay = "0" + strDay;
  6938. }
  6939. var datetime = strYear + "-" + strMonth + "-" + strDay;
  6940. return datetime;
  6941. },
  6942. oneYearPast1(time) {
  6943. //明年减一秒
  6944. var date = new Date(time);
  6945. date.setSeconds(date.getSeconds() - 1);
  6946. date.setFullYear(date.getFullYear() + 1); //一年后
  6947. date.setTime(date.getTime()); //一年后的前一天
  6948. var strYear = date.getFullYear();
  6949. var strDay = date.getDate();
  6950. var strMonth = date.getMonth() + 1;
  6951. var hh = date.getHours();
  6952. var minutes = date.getMinutes(); // 分
  6953. var Seconds = date.getSeconds();
  6954. if (hh < 10) {
  6955. hh = "0" + hh;
  6956. }
  6957. if (minutes < 10) {
  6958. minutes = "0" + minutes;
  6959. }
  6960. if (Seconds < 10) {
  6961. Seconds = "0" + Seconds;
  6962. }
  6963. if (strMonth < 10) {
  6964. strMonth = "0" + strMonth;
  6965. }
  6966. if (strDay < 10) {
  6967. strDay = "0" + strDay;
  6968. }
  6969. var datastr =
  6970. strYear +
  6971. "-" +
  6972. strMonth +
  6973. "-" +
  6974. strDay +
  6975. " " +
  6976. hh +
  6977. ":" +
  6978. minutes +
  6979. ":" +
  6980. Seconds;
  6981. return datastr;
  6982. },
  6983. tbczcarShowChange() {
  6984. //投保人同车主
  6985. switch (this.tbczcarShow) {
  6986. case true:
  6987. this.policyHolderInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  6988. break;
  6989. default:
  6990. for (let key in this.policyHolderInfo) {
  6991. this.policyHolderInfo[key] = "";
  6992. this.policyHolderInfo.provinceData = [];
  6993. this.selectedOptions2 = [];
  6994. }
  6995. }
  6996. },
  6997. bbczcarShowChange() {
  6998. //被保人同车主
  6999. switch (this.bbczcarShow) {
  7000. case true:
  7001. this.bbtbcarShow = false;
  7002. this.insuredPersonInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  7003. break;
  7004. default:
  7005. for (let key in this.insuredPersonInfo) {
  7006. this.insuredPersonInfo[key] = "";
  7007. this.insuredPersonInfo.provinceData = [];
  7008. // this.selectedOptions3 = [];
  7009. }
  7010. }
  7011. },
  7012. bbtbcarShowChange() {
  7013. //被保人同投保人
  7014. switch (this.bbtbcarShow) {
  7015. case true:
  7016. this.bbczcarShow = false;
  7017. this.insuredPersonInfo = JSON.parse(
  7018. JSON.stringify(this.policyHolderInfo)
  7019. );
  7020. break;
  7021. default:
  7022. for (let key in this.insuredPersonInfo) {
  7023. this.insuredPersonInfo[key] = "";
  7024. this.insuredPersonInfo.provinceData = [];
  7025. }
  7026. }
  7027. },
  7028. //VIN查询
  7029. toChooseVin(cartype) {
  7030. if (cartype == "" || cartype == null) {
  7031. this.$message({
  7032. message: "请输入车架号",
  7033. type: "warning"
  7034. });
  7035. } else {
  7036. const loading = this.$loading({
  7037. lock: true,
  7038. text: "Loading",
  7039. spinner: "el-icon-loading",
  7040. background: "rgba(0, 0, 0, 0.7)"
  7041. });
  7042. this.$api.letter.insZhongmeiVIN(this.carInfo.frameNo).then(res => {
  7043. if (res.code == "200") {
  7044. this.reslist = res.data;
  7045. loading.close();
  7046. this.sbdmdialogVisible = true;
  7047. } else {
  7048. loading.close();
  7049. this.$message.error(res.msg);
  7050. }
  7051. });
  7052. }
  7053. },
  7054. // 撤销二维码
  7055. revokeCode(id) {
  7056. this.$api.letter.getRevokeQrCode(id).then(res => {
  7057. if (res.code == 200) {
  7058. this.$message({
  7059. message: res.msg,
  7060. type: "success"
  7061. });
  7062. this.QuotationHistory();
  7063. }
  7064. });
  7065. },
  7066. //品牌型号查询
  7067. toChooseVehicleType(cartype) {
  7068. if (cartype == "" || cartype == null) {
  7069. this.$message({
  7070. message: "请输入车型名称",
  7071. type: "warning"
  7072. });
  7073. } else {
  7074. const loading = this.$loading({
  7075. lock: true,
  7076. text: "Loading",
  7077. spinner: "el-icon-loading",
  7078. background: "rgba(0, 0, 0, 0.7)"
  7079. });
  7080. let param = {
  7081. modelName: cartype.replace(/[^u4e00-u9fa5|,]+/gi, "")
  7082. };
  7083. this.$api.letter.ModelsQuery(param).then(res => {
  7084. if (res.code == "200") {
  7085. loading.close();
  7086. this.reslist = res.data;
  7087. this.chexingdialogVisible = true;
  7088. } else {
  7089. loading.close();
  7090. this.$message.error(res.msg);
  7091. }
  7092. });
  7093. }
  7094. },
  7095. //车型列表双击选中事件
  7096. reslistCurrentChange(row, column, event) {
  7097. this.carInfo.brandName = row.brandCN; //品牌型号
  7098. this.carInfo.modelcname = row.modelName; //品牌型号
  7099. this.carInfo.caryear = row.marketYear; //年款
  7100. this.carInfo.seatCount = row.ratedPassengerCapacity; //座位数
  7101. this.carInfo.purchasePrice = row.replacementValue; //购置价
  7102. this.carInfo.modelCode = row.modelCode; //型号代码
  7103. this.carInfo.familyName = row.series; //系列
  7104. this.carInfo.enginedesc = row.displacement; //排量
  7105. this.carInfo.energyType = row.energyTypes
  7106. this.carInfo.powerScale = row.powerScale; //功率
  7107. this.chexingdialogVisible = false;
  7108. this.sbdmdialogVisible = false;
  7109. },
  7110. //是否过户事件
  7111. transferFlagChange(e) {
  7112. if (e) {
  7113. this.transferDateShow = true;
  7114. this.carInfo.transferDate = this.carInfo.issueDate;
  7115. } else {
  7116. this.transferDateShow = false;
  7117. this.carInfo.transferDate = "";
  7118. }
  7119. },
  7120. //影像上传
  7121. drivingupload(file, imageIdList, imgurl, type) {
  7122. let that = this;
  7123. let size = file.size / 1024 / 1024 < 5;
  7124. const isJPG =
  7125. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7126. if (!size) {
  7127. this.$message.error("上传图片大小不能超过 5MB!");
  7128. this[imgurl] = [];
  7129. return false;
  7130. }
  7131. if (!isJPG) {
  7132. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7133. this[imgurl] = [];
  7134. return false;
  7135. }
  7136. this[imgurl].push(file);
  7137. var file = file.raw;
  7138. const params = new FormData(); // 声明formData数据类型
  7139. params.append("multipartFile", file);
  7140. params.append("type", "image");
  7141. this.$api.letter.uploadFile(params).then(res => {
  7142. if (res.code == "200") {
  7143. if (this[imageIdList].some(v => v.imageType == type)) {
  7144. this[imageIdList].map(val => {
  7145. if (val.imageType == type) {
  7146. val.imageId = res.data.id;
  7147. }
  7148. });
  7149. } else {
  7150. this[imageIdList].push({
  7151. imageId: res.data.id,
  7152. imageType: type
  7153. });
  7154. }
  7155. }
  7156. });
  7157. },
  7158. handleRemove1(file, imageIdList, imgList) {
  7159. this[imageIdList].map((ele, index) => {
  7160. if (file.imageId === ele.imageId) {
  7161. this[imageIdList].splice(index, 1);
  7162. }
  7163. return ele;
  7164. });
  7165. if (file.imageId) {
  7166. this[imgList].map((ele, index) => {
  7167. if (file.imageId === ele.imageId) {
  7168. this[imgList].splice(index, 1);
  7169. }
  7170. return ele;
  7171. });
  7172. } else {
  7173. this[imgList].map((ele, index) => {
  7174. if (file.uid === ele.uid) {
  7175. this[imgList].splice(index, 1);
  7176. }
  7177. return ele;
  7178. });
  7179. }
  7180. },
  7181. compress(img, width, height, ratio) {
  7182. var canvas, ctx, img64;
  7183. canvas = document.createElement("canvas");
  7184. canvas.width = width;
  7185. canvas.height = height;
  7186. ctx = canvas.getContext("2d");
  7187. ctx.drawImage(img, 0, 0, width, height);
  7188. img64 = canvas.toDataURL("image/jpeg", ratio);
  7189. return img64;
  7190. },
  7191. base64ToFile(base64, fileName) {
  7192. let data = base64.split(",");
  7193. let type = data[0].match(/:(.*?);/)[1]; // let suffix = type.split('/')[1];
  7194. const bstr = window.atob(data[1]);
  7195. let n = bstr.length;
  7196. const u8arr = new Uint8Array(n);
  7197. while (n--) {
  7198. u8arr[n] = bstr.charCodeAt(n);
  7199. } // const file =  new File([u8arr], `${fileName}.${suffix}`, {
  7200. const file = new File([u8arr], `${fileName}`, {
  7201. type: type
  7202. });
  7203. return file;
  7204. },
  7205. carfrontChange(file) {
  7206. //选择行驶证正面
  7207. let that = this;
  7208. let size = file.size / 1024 / 1024 < 5;
  7209. const isJPG =
  7210. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7211. if (!size) {
  7212. this.$message.error("上传图片大小不能超过 5MB!");
  7213. return false;
  7214. }
  7215. if (!isJPG) {
  7216. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7217. return false;
  7218. }
  7219. // let name=file.raw.name
  7220. //       var image = new Image();
  7221. //       image.src = window.URL.createObjectURL(file.raw);
  7222. //       that.carfrontImg =  image.src
  7223. //       image.onload = function(){
  7224. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7225. // that.carfrontImg = image.src;
  7226. // const params = new FormData(); // 声明formData数据类型
  7227. // params.append("multipartFile", aaa);
  7228. // params.append("type", "image");
  7229. // that.$api.letter.uploadFile(params).then(res => {
  7230. // if (res.code == "200") {
  7231. // that.CarFrontFile = aaa;//文件流
  7232. // if (that.imageList1.some(v => v.imageType == 'C01')) {
  7233. // that.imageList1.map(val => {
  7234. // if (val.imageType == 'C01') {
  7235. // val.imageId = res.data.id;
  7236. // }
  7237. // })
  7238. // } else {
  7239. // that.imageList1.push({
  7240. // imageId: res.data.id,
  7241. // imageType: "C01",
  7242. // })
  7243. // }
  7244. // } else {
  7245. // that.$message({ message: res.msg, type: "warning" });
  7246. // }
  7247. // });
  7248. // }
  7249. var file = file.raw;
  7250. let files = window.URL.createObjectURL(file); //转临时路径
  7251. this.carfrontImg = files;
  7252. const params = new FormData(); // 声明formData数据类型
  7253. params.append("multipartFile", file);
  7254. params.append("type", "image");
  7255. this.$api.letter.uploadFile(params).then(res => {
  7256. if (res.code == "200") {
  7257. this.CarFrontFile = file; //文件流
  7258. if (this.imageList1.some(v => v.imageType == "C01")) {
  7259. this.imageList1.map(val => {
  7260. if (val.imageType == "C01") {
  7261. val.imageId = res.data.id;
  7262. }
  7263. });
  7264. } else {
  7265. this.imageList1.push({
  7266. imageId: res.data.id,
  7267. imageType: "C01"
  7268. });
  7269. }
  7270. } else {
  7271. this.$message({ message: res.msg, type: "warning" });
  7272. }
  7273. });
  7274. },
  7275. carbackChange(file) {
  7276. let that = this;
  7277. let size = file.size / 1024 / 1024 < 2;
  7278. const isJPG =
  7279. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7280. if (!size) {
  7281. this.$message.error("上传图片大小不能超过 5MB!");
  7282. return false;
  7283. }
  7284. if (!isJPG) {
  7285. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7286. return false;
  7287. }
  7288. // let name=file.raw.name
  7289. //       var image = new Image();
  7290. //       image.src = window.URL.createObjectURL(file.raw);
  7291. //       image.onload = function(){
  7292. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7293. // that.carbackImg = image.src;
  7294. // const params = new FormData(); // 声明formData数据类型
  7295. // params.append("multipartFile", aaa);
  7296. // params.append("type", "image");
  7297. // that.$api.letter.uploadFile(params).then(res => {
  7298. // if (res.code == "200") {
  7299. // that.CarBackFile = aaa;//文件流
  7300. // if (that.imageList1.some(v => v.imageType == 'D01')) {
  7301. // that.imageList1.map(val => {
  7302. // if (val.imageType == 'D01') {
  7303. // val.imageId = res.data.id;
  7304. // }
  7305. // })
  7306. // } else {
  7307. // that.imageList1.push({
  7308. // imageId: res.data.id,
  7309. // imageType: "D01",
  7310. // })
  7311. // }
  7312. // } else {
  7313. // that.$message({ message: res.msg, type: "warning" });
  7314. // }
  7315. // });
  7316. // }
  7317. //选择行驶证反面
  7318. var file = file.raw;
  7319. let files = window.URL.createObjectURL(file); //转临时路径
  7320. this.carbackImg = files;
  7321. const params = new FormData(); // 声明formData数据类型
  7322. params.append("multipartFile", file);
  7323. params.append("type", "image");
  7324. this.$api.letter.uploadFile(params).then(res => {
  7325. if (res.code == "200") {
  7326. this.CarBackFile = file;
  7327. if (this.imageList1.some(v => v.imageType == "D01")) {
  7328. this.imageList1.map(val => {
  7329. if (val.imageType == "D01") {
  7330. val.imageId = res.data.id;
  7331. }
  7332. });
  7333. } else {
  7334. this.imageList1.push({
  7335. imageId: res.data.id,
  7336. imageType: "D01"
  7337. });
  7338. }
  7339. } else {
  7340. this.$message({ message: res.msg, type: "warning" });
  7341. }
  7342. });
  7343. },
  7344. userfrontChange(file) {
  7345. let that = this;
  7346. let size = file.size / 1024 / 1024 < 5;
  7347. const isJPG =
  7348. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7349. if (!size) {
  7350. this.$message.error("上传图片大小不能超过 5MB!");
  7351. return false;
  7352. }
  7353. if (!isJPG) {
  7354. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7355. return false;
  7356. }
  7357. // let name=file.raw.name
  7358. //       var image = new Image();
  7359. //       image.src = window.URL.createObjectURL(file.raw);
  7360. //       image.onload = function(){
  7361. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7362. // that.userfrontImg = image.src;
  7363. // const params = new FormData(); // 声明formData数据类型
  7364. // params.append("multipartFile", aaa);
  7365. // params.append("type", "image");
  7366. // that.$api.letter.uploadFile(params).then(res => {
  7367. // if (res.code == "200") {
  7368. // let type = 'C0' + that.userIndex;
  7369. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  7370. // that['imageList' + that.userIndex].map(val => {
  7371. // if (val.imageType == type) {
  7372. // val.imageId = res.data.id;
  7373. // }
  7374. // })
  7375. // } else {
  7376. // that['imageList' + that.userIndex].push({
  7377. // imageId: res.data.id,
  7378. // imageType: type,
  7379. // })
  7380. // }
  7381. // that[type + 'File'] = aaa;
  7382. // } else {
  7383. // that.$message({ message: res.msg, type: "warning" });
  7384. // }
  7385. // });
  7386. // }
  7387. //选择身份证正面
  7388. var file = file.raw;
  7389. let files = window.URL.createObjectURL(file); //转链接
  7390. this.userfrontImg = files;
  7391. const params = new FormData(); // 声明formData数据类型
  7392. params.append("multipartFile", file);
  7393. params.append("type", "image");
  7394. this.$api.letter.uploadFile(params).then(res => {
  7395. if (res.code == "200") {
  7396. let type = "C0" + this.userIndex;
  7397. if (
  7398. this["imageList" + this.userIndex].some(v => v.imageType == type)
  7399. ) {
  7400. this["imageList" + this.userIndex].map(val => {
  7401. if (val.imageType == type) {
  7402. val.imageId = res.data.id;
  7403. }
  7404. });
  7405. } else {
  7406. this["imageList" + this.userIndex].push({
  7407. imageId: res.data.id,
  7408. imageType: type
  7409. });
  7410. }
  7411. this[type + "File"] = file;
  7412. } else {
  7413. this.$message({ message: res.msg, type: "warning" });
  7414. }
  7415. });
  7416. },
  7417. userbackChange(file) {
  7418. let that = this;
  7419. let size = file.size / 1024 / 1024 < 5;
  7420. const isJPG =
  7421. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7422. if (!size) {
  7423. this.$message.error("上传图片大小不能超过 5MB!");
  7424. return false;
  7425. }
  7426. if (!isJPG) {
  7427. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7428. return false;
  7429. }
  7430. // let name=file.raw.name
  7431. //       var image = new Image();
  7432. //       image.src = window.URL.createObjectURL(file.raw);
  7433. //       image.onload = function(){
  7434. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7435. // that.userbackImg = image.src;
  7436. // const params = new FormData(); // 声明formData数据类型
  7437. // params.append("multipartFile", aaa);
  7438. // params.append("type", "image");
  7439. // that.$api.letter.uploadFile(params).then(res => {
  7440. // if (res.code == "200") {
  7441. // let type = 'D0' + that.userIndex;
  7442. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  7443. // that['imageList' + that.userIndex].map(val => {
  7444. // if (val.imageType == type) {
  7445. // val.imageId = res.data.id;
  7446. // }
  7447. // })
  7448. // } else {
  7449. // that['imageList' + that.userIndex].push({
  7450. // imageId: res.data.id,
  7451. // imageType: type,
  7452. // })
  7453. // }
  7454. // that[type + 'File'] = aaa;
  7455. // } else {
  7456. // that.$message({ message: res.msg, type: "warning" });
  7457. // }
  7458. // });
  7459. // }
  7460. //选择身份证背面
  7461. var file = file.raw;
  7462. let files = window.URL.createObjectURL(file); //转链接
  7463. this.userbackImg = files;
  7464. const params = new FormData(); // 声明formData数据类型
  7465. params.append("multipartFile", file);
  7466. params.append("type", "image");
  7467. this.$api.letter.uploadFile(params).then(res => {
  7468. if (res.code == "200") {
  7469. let type = "D0" + this.userIndex;
  7470. if (
  7471. this["imageList" + this.userIndex].some(v => v.imageType == type)
  7472. ) {
  7473. this["imageList" + this.userIndex].map(val => {
  7474. if (val.imageType == type) {
  7475. val.imageId = res.data.id;
  7476. }
  7477. });
  7478. } else {
  7479. this["imageList" + this.userIndex].push({
  7480. imageId: res.data.id,
  7481. imageType: type
  7482. });
  7483. }
  7484. this[type + "File"] = file;
  7485. } else {
  7486. this.$message({ message: res.msg, type: "warning" });
  7487. }
  7488. });
  7489. },
  7490. CarOCRdiscern() {
  7491. //car识别
  7492. const loading = this.$loading({
  7493. lock: true,
  7494. text: "Loading",
  7495. spinner: "el-icon-loading",
  7496. background: "rgba(0, 0, 0, 0.7)"
  7497. });
  7498. const params = new FormData(); // 声明formData数据类型
  7499. params.append("image1", this.CarFrontFile);
  7500. params.append("image2", this.CarBackFile);
  7501. this.$api.letter.drivingPermit(params).then(res => {
  7502. loading.close();
  7503. if (res.msg == "201") {
  7504. this.$message({ message: "请正确选择驾驶证", type: "warning" });
  7505. }
  7506. var carInfo = res.data.carInfo;
  7507. console.log(carInfo);
  7508. if (carInfo.issueDate) {
  7509. carInfo.issueDate =
  7510. carInfo.issueDate.substring(0, 4) +
  7511. "-" +
  7512. carInfo.issueDate.substring(4, 6) +
  7513. "-" +
  7514. carInfo.issueDate.substring(6, 8);
  7515. }
  7516. if (carInfo.registerDate) {
  7517. carInfo.registerDate =
  7518. carInfo.registerDate.substring(0, 4) +
  7519. "-" +
  7520. carInfo.registerDate.substring(4, 6) +
  7521. "-" +
  7522. carInfo.registerDate.substring(6, 8);
  7523. }
  7524. this.carform.carOwner = carInfo.carOwner; //车主
  7525. this.carform.licenseNo = carInfo.plateNo; //车牌号
  7526. this.carform.modelcname = carInfo.backOcrID; //品牌型号
  7527. this.carform.frameNo = carInfo.vin; //车架号
  7528. this.carform.engineNo = carInfo.engine; //发动机号
  7529. this.carform.registerDate = carInfo.registerDate; //车牌号
  7530. this.carform.issueDate = carInfo.issueDate; //车牌号
  7531. this.carform.grossMass = carInfo.grossMass; //总质量
  7532. this.carform.unladenMass = carInfo.unladenMass; //整备质量
  7533. this.carform.limitLoad = carInfo.limitLoad; //核定载质量
  7534. this.carform.category = carInfo.category; //车辆类型
  7535. this.carform.carnature = carInfo.useNature; //使用性质
  7536. this.carform.vehicleUse = carInfo.vehicleUse; //车辆用途
  7537. this.carform.plateType = carInfo.plateType; //车辆种类
  7538. this.carform.approvedPassengersCapacity =
  7539. carInfo.approvedPassengersCapacity; //核定载客数
  7540. });
  7541. },
  7542. CarOCRconfirm() {
  7543. //传参 carnature
  7544. this.ownerInfo.name = this.carform.carOwner; //车主
  7545. this.carInfo.cartype = "K33";
  7546. this.carInfo.licenseNo = this.carform.licenseNo; //车牌号
  7547. this.carInfo.modelcname = this.carform.modelcname; //品牌型号
  7548. this.carInfo.vinNo = this.carform.frameNo; //车架号
  7549. this.carInfo.frameNo = this.carform.frameNo; //车架号
  7550. this.carInfo.engineNo = this.carform.engineNo; //发动机号
  7551. this.carInfo.seatCount = this.carform.approvedPassengersCapacity; //核定载客数
  7552. this.carInfo.vehicleweight = this.carform.grossMass; //总质量
  7553. this.carInfo.completeKerbMass = this.carform.unladenMass; //整备质量
  7554. this.carInfo.limitLoad = this.carform.limitLoad; //核定载质量
  7555. this.carInfo.cartype = this.carform.category; //车辆类型
  7556. this.carInfo.carnature = this.carform.carnature
  7557. ? this.carform.carnature
  7558. : "02"; //使用性质
  7559. this.carInfo.vehicleUse = this.carform.vehicleUse
  7560. ? this.carform.vehicleUse
  7561. : "05"; //车辆用途
  7562. this.carInfo.cimodelclass = this.carform.plateType; //车辆种类
  7563. if (this.timeformat(this.carform.registerDate) != "NaN-NaN-NaN") {
  7564. this.carInfo.registerDate = this.carform.registerDate; //车牌号
  7565. }
  7566. if (this.timeformat(this.carform.issueDate) != "NaN-NaN-NaN") {
  7567. this.carInfo.issueDate = this.carform.issueDate; //车牌号
  7568. }
  7569. this.uploadcardialogVisible = false;
  7570. },
  7571. handleRemove(e) {
  7572. //删除图片
  7573. this[e] = "";
  7574. switch (this.userIndex) {
  7575. case 0:
  7576. this.carfrontImg = "";
  7577. this.carbackImg = "";
  7578. this.CarFrontFile = ""; // 行驶证正面base64
  7579. this.CarBackFile = ""; // 行驶证背面base64
  7580. break;
  7581. case 2:
  7582. this.userfrontImg = "";
  7583. this.userbackImg = "";
  7584. this.C02File = ""; // 车主正面base64
  7585. this.D02File = ""; // 车主背面base64
  7586. break;
  7587. case 3:
  7588. this.userfrontImg = "";
  7589. this.userbackImg = "";
  7590. this.C03File = ""; // 投保人正面base64
  7591. this.D03File = ""; // 投保人背面base64
  7592. break;
  7593. case 4:
  7594. this.userfrontImg = "";
  7595. this.userbackImg = "";
  7596. this.C04File = ""; // 被保人正面base64
  7597. this.D04File = ""; // 被保人背面base64
  7598. break;
  7599. default:
  7600. }
  7601. },
  7602. //预览图片
  7603. handlePictureCardPreview(img) {
  7604. this.ProViewImg = img;
  7605. this.showViewer = true;
  7606. },
  7607. // 关闭查看器
  7608. closeViewer() {
  7609. this.showViewer = false;
  7610. },
  7611. uploaduser(index) {
  7612. this.userIndex = index;
  7613. this.uploaduserdialogVisible = true;
  7614. },
  7615. userOCRdiscern() {
  7616. //OCR识别
  7617. switch (this.userIndex) {
  7618. case 2:
  7619. const params1 = new FormData(); // 声明formData数据类型
  7620. params1.append("image1", this.C02File);
  7621. params1.append("image2", this.D02File);
  7622. this.userOCRjoggle(params1);
  7623. break;
  7624. case 3:
  7625. const params2 = new FormData(); // 声明formData数据类型
  7626. params2.append("image1", this.C03File);
  7627. params2.append("image2", this.D03File);
  7628. this.userOCRjoggle(params2);
  7629. break;
  7630. case 4:
  7631. const params3 = new FormData(); // 声明formData数据类型
  7632. params3.append("image1", this.C04File);
  7633. params3.append("image2", this.D04File);
  7634. this.userOCRjoggle(params3);
  7635. break;
  7636. default:
  7637. }
  7638. },
  7639. userOCRjoggle(param) {
  7640. const loading = this.$loading({
  7641. lock: true,
  7642. text: "Loading",
  7643. spinner: "el-icon-loading",
  7644. background: "rgba(0, 0, 0, 0.7)"
  7645. });
  7646. this.$api.letter.idCard(param).then(res => {
  7647. loading.close();
  7648. if (res.msg == "201") {
  7649. this.$message({ message: "请正确选择身份证", type: "warning" });
  7650. }
  7651. var customerInfo = res.data.customerInfo;
  7652. if (customerInfo) {
  7653. this.ownerInfoform.name = customerInfo.name;
  7654. if (customerInfo.identifyType == "01") {
  7655. this.ownerInfoform.identifyType = "身份证";
  7656. } else {
  7657. this.ownerInfoform.identifyType = "";
  7658. }
  7659. this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;
  7660. this.ownerInfoform.gender = customerInfo.identifyIssuedCom;
  7661. this.ownerInfoform.addr = customerInfo.addr;
  7662. if (customerInfo.identifyNumber) {
  7663. this.ownerInfoform.age = getAgeByIdCard(
  7664. customerInfo.identifyNumber
  7665. );
  7666. }
  7667. if (
  7668. customerInfo.identifyValidDate ||
  7669. customerInfo.identifyValidEndDate
  7670. ) {
  7671. this.ownerInfoform.identifyValidDate =
  7672. customerInfo.identifyValidDate.substring(0, 4) +
  7673. "-" +
  7674. customerInfo.identifyValidDate.substring(4, 6) +
  7675. "-" +
  7676. customerInfo.identifyValidDate.substring(6, 8);
  7677. this.ownerInfoform.identifyValidEndDate =
  7678. customerInfo.identifyValidEndDate.substring(0, 4) +
  7679. "-" +
  7680. customerInfo.identifyValidEndDate.substring(4, 6) +
  7681. "-" +
  7682. customerInfo.identifyValidEndDate.substring(6, 8);
  7683. if (customerInfo.identifyValidEndDate == "长期") {
  7684. this.ownerInfoform.identifyValidEndDate = "9999-12-31";
  7685. }
  7686. }
  7687. // let values = addressCode(this.ownerInfoform.addr);
  7688. // this.ownerInfoform.province = codeToText[values[0]]
  7689. // this.ownerInfoform.city = codeToText[values[1]]
  7690. // this.ownerInfoform.county = codeToText[values[2]]
  7691. }
  7692. });
  7693. },
  7694. userOCRconfirm() {
  7695. //传参
  7696. switch (this.userIndex) {
  7697. case 2:
  7698. // this.selectedOptions1 = addressCode(this.ownerInfoform.addr);
  7699. this.ownerInfo = JSON.parse(JSON.stringify(this.ownerInfoform));
  7700. break;
  7701. case 3:
  7702. // this.selectedOptions2 = addressCode(this.ownerInfoform.addr);
  7703. this.policyHolderInfo = JSON.parse(
  7704. JSON.stringify(this.ownerInfoform)
  7705. );
  7706. break;
  7707. case 4:
  7708. // this.selectedOptions3 = addressCode(this.ownerInfoform.addr);
  7709. this.insuredPersonInfo = JSON.parse(
  7710. JSON.stringify(this.ownerInfoform)
  7711. );
  7712. break;
  7713. }
  7714. this.uploaduserdialogVisible = false;
  7715. },
  7716. closeDialog(index) {
  7717. // 0:车辆 1:车主 2:投保人 3:被保人
  7718. switch (index) {
  7719. case 0:
  7720. this.carfrontImg = "";
  7721. this.carbackImg = "";
  7722. this.CarFrontFile = ""; // 行驶证正面base64
  7723. this.CarBackFile = ""; // 行驶证背面base64
  7724. Object.keys(this.carform).forEach(key => {
  7725. this.carform[key] = "";
  7726. });
  7727. break;
  7728. case 2:
  7729. this.userfrontImg = "";
  7730. this.userbackImg = "";
  7731. this.C02File = ""; // 车主正面base64
  7732. this.D02File = ""; // 车主背面base64
  7733. Object.keys(this.ownerInfoform).forEach(key => {
  7734. this.ownerInfoform[key] = "";
  7735. });
  7736. break;
  7737. case 3:
  7738. this.userfrontImg = "";
  7739. this.userbackImg = "";
  7740. this.C03File = ""; // 投保人正面base64
  7741. this.D03File = ""; // 投保人背面base64
  7742. Object.keys(this.ownerInfoform).forEach(key => {
  7743. this.ownerInfoform[key] = "";
  7744. });
  7745. break;
  7746. case 4:
  7747. this.userfrontImg = "";
  7748. this.userbackImg = "";
  7749. this.C04File = ""; // 被保人正面base64
  7750. this.D04File = ""; // 被保人背面base64
  7751. Object.keys(this.ownerInfoform).forEach(key => {
  7752. this.ownerInfoform[key] = "";
  7753. });
  7754. break;
  7755. case 5:
  7756. this.businessImg = "";
  7757. // this.C04File = ''; // 被保人正面base64
  7758. // this.D04File = ''; // 被保人背面base64
  7759. // Object.keys(this.ownerInfoform).forEach((key) => {
  7760. // this.ownerInfoform[key] = '';
  7761. // });
  7762. break;
  7763. default:
  7764. }
  7765. },
  7766. bjdpreview(id) {
  7767. let params = {
  7768. companyId: id
  7769. };
  7770. this.$api.letter.getByCompanyId(params).then(res => {
  7771. if (res.code == "200") {
  7772. var data = res.data;
  7773. if (data.kindinfo != null) {
  7774. data.kindinfo.map((ele, index) => {
  7775. switch (ele.kindCode) {
  7776. case "A":
  7777. if (ele.amount == 1) {
  7778. ele.amount = "投保";
  7779. } else {
  7780. ele.amount = ele.amount;
  7781. }
  7782. break;
  7783. case "D4":
  7784. case "SY_FJ_YBW2":
  7785. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  7786. break;
  7787. case "MJ1":
  7788. case "MJ2":
  7789. case "MJ3":
  7790. case "MJ4":
  7791. ele.deductibleRate = ele.deductibleRate + "%";
  7792. break;
  7793. default:
  7794. ele.amount = this.toChinesNum(ele.amount);
  7795. }
  7796. return ele;
  7797. });
  7798. }
  7799. data.logoImg = this.iconfftter(res.data.inscompany);
  7800. this.queryOrders = data;
  7801. this.$api.letter.getThemeByUserId().then(res => {
  7802. if (res.code==200) {
  7803. if(res.data.themeCode=='GD'){
  7804. this.$refs.quotationDialogPro.setBackupVisible(true);
  7805. }
  7806. else {
  7807. this.$refs.quotationDialog.setBackupVisible(true);
  7808. }
  7809. }
  7810. })
  7811. // if (
  7812. // this.$store.state.user.roles.managementSource &&
  7813. // this.$store.state.user.roles.managementSource == "3"
  7814. // ) {
  7815. // this.$refs.quotationDialogPro.setBackupVisible(true);
  7816. // } else {
  7817. // this.$refs.quotationDialog.setBackupVisible(true);
  7818. // }
  7819. }
  7820. });
  7821. },
  7822. //返回上一步
  7823. Back() { },
  7824. carcode(id, item) {
  7825. this.$api.letter.getQrCode(id).then(res => {
  7826. if (res.code == "200") {
  7827. this.inscompany = res.data.inscompany; //保险公司
  7828. this.sumpremium = res.data.sumpremium; //总价
  7829. this.licenseNo = res.data.cPlateNo; //车牌号
  7830. this.applyName = res.data.cInsuredNme; //车主
  7831. this.jqpremium = res.data.jqpremium; //交强
  7832. this.sypremium = res.data.sypremium; //商业
  7833. this.taxamount = res.data.taxamount; //车船税
  7834. this.jypremium = res.data.jypremium; //驾意险
  7835. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  7836. this.systartdate = res.data.syStartDate; //商业起保日期
  7837. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  7838. this.$nextTick(() => {
  7839. if (item.inscompany == "太平财险") {
  7840. let anresult = res.data.qrCodeUrl.replace(/[\r\n]/g, "");
  7841. let animgBase64 = `data:image/png;base64,${anresult}`;
  7842. base64ToPath(animgBase64).then(path => {
  7843. this.paycodeimg = path;
  7844. });
  7845. } else {
  7846. this.creatQrCode(res.data.qrCodeUrl);
  7847. }
  7848. });
  7849. this.$api.letter.getThemeByUserId().then(res => {
  7850. if (res.code==200) {
  7851. if(res.data.themeCode=='GD'){
  7852. this.codedialogVisiblePro = true;
  7853. this.qrcodeWidth = "154";
  7854. this.qrcodeHeight = "154";
  7855. }
  7856. else {
  7857. this.codedialogVisible = true;
  7858. }
  7859. }
  7860. })
  7861. } else {
  7862. this.$message({ message: res.msg, type: "warning" });
  7863. }
  7864. });
  7865. },
  7866. //同步
  7867. synchronization() {
  7868. this.systartDate = this.jqstartDate;
  7869. this.syendDate = this.jqendDate;
  7870. },
  7871. //影像上传
  7872. uploadinformation() {
  7873. // //上传图片
  7874. const mergedArray = [
  7875. ...this.imageList1,
  7876. ...this.imageList2,
  7877. ...this.imageList3,
  7878. ...this.imageList4,
  7879. ...this.imageList5
  7880. ];
  7881. let imageparam = {
  7882. imageList: mergedArray,
  7883. quoteNo: this.quoteno
  7884. };
  7885. this.$api.letter.uploadImages(imageparam).then(responses => {
  7886. if (responses.code == "200") {
  7887. this.imageEcho(this.quoteno);
  7888. this.$message({ message: responses.msg, type: "success" });
  7889. } else {
  7890. this.$message({ message: responses.msg, type: "error" });
  7891. }
  7892. });
  7893. this.imageUploaddialogVisible = false;
  7894. },
  7895. add() {
  7896. this.obtainProtocol();
  7897. if (this.isLetter) {
  7898. this.$router.push({ path: "/letter/letter" });
  7899. }
  7900. for (let key in this.ownerInfo) {
  7901. this.ownerInfo[key] = "";
  7902. }
  7903. for (let key in this.policyHolderInfo) {
  7904. this.policyHolderInfo[key] = "";
  7905. }
  7906. for (let key in this.insuredPersonInfo) {
  7907. this.insuredPersonInfo[key] = "";
  7908. }
  7909. this.vehicleAndVesselTaxForm = {
  7910. taxRelifFlag: "1",
  7911. taxpayerIdentifier: "01"
  7912. };
  7913. this.ownerInfo.provinceData = [];
  7914. this.insuredPersonInfo.provinceData = [];
  7915. this.policyHolderInfo.provinceData = [];
  7916. this.carInfo = JSON.parse(localStorage.getItem("carInfo"));
  7917. this.insureList = JSON.parse(localStorage.getItem("insureList"));
  7918. this.sychecked = false;
  7919. this.yonganchecked = false;
  7920. this.zhongmeichecked = false;
  7921. this.transferDateShow = false;
  7922. (this.tbczcarShow = true), //投保人同车主
  7923. // this.bbczcarShow = false, //被保人同车主
  7924. (this.bbtbcarShow = true), //被保人同投保人
  7925. (this.imageList1 = []);
  7926. this.imageList2 = [];
  7927. this.imageList3 = [];
  7928. this.imageList4 = [];
  7929. this.imgList1 = [];
  7930. this.imgList2 = [];
  7931. this.imgList3 = [];
  7932. this.imgList4 = [];
  7933. this.imgList5 = [];
  7934. this.imgList6 = [];
  7935. this.imgList7 = [];
  7936. this.imgList8 = [];
  7937. // 清空保险公司选中的意外险
  7938. this.insuranceZJ = "";
  7939. this.insuranceZA = "";
  7940. this.insuranceHB = "";
  7941. this.insuranceTP = "";
  7942. this.insuranceHN = "";
  7943. this.insuranceRS = "";
  7944. this.insuranceDJ = "";
  7945. this.accidentForm = {
  7946. fen: "1",
  7947. premium: 0
  7948. };
  7949. this.accidentFormHN = {
  7950. allQuantity: "1",
  7951. };
  7952. this.hengbangaccidentalDrivingVo = {};
  7953. this.huanongaccidentalDrivingVo = {};
  7954. this.taipingaccidentalDrivingVo = {};
  7955. this.zhongmeiaccidentalDrivingVo = {};
  7956. this.accidentalDrivingVo = [];
  7957. this.zhonganaccidentalDrivingVo = {};
  7958. this.renshouaccidentalDrivingVo = {};
  7959. this.anshengaccidentalDrivingVo = {};
  7960. this.dajiaaccidentalDrivingVo = {};
  7961. // this.selectedOptions1 = [];
  7962. // this.selectedOptions2 = [];
  7963. // this.selectedOptions3 = [];
  7964. this.orderno = "";
  7965. this.quoteno = "";
  7966. this.lastCompanyId = "";
  7967. this.HistoryList = [];
  7968. this.jqstartDate = this.transformTime1();
  7969. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  7970. this.systartDate = this.transformTime1();
  7971. this.syendDate = this.oneYearPast1(this.jqstartDate);
  7972. },
  7973. toChinesNum(num) {
  7974. if (num.toString().length == 4) {
  7975. let overQian = Math.floor(num / 1000);
  7976. let result = overQian + "千";
  7977. return result;
  7978. } else {
  7979. let overWan = Math.floor(num / 10000);
  7980. let result = overWan + "万";
  7981. return result;
  7982. }
  7983. },
  7984. reportDrop(event) {
  7985. event.preventDefault();
  7986. event.stopPropagation();
  7987. },
  7988. tabLiScroll(id, idx) {
  7989. this.tabLiIndex = idx;
  7990. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  7991. },
  7992. handleScroll(id) {
  7993. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  7994. }
  7995. }
  7996. };
  7997. </script>
  7998. <style>
  7999. /* .customNotifyClass {
  8000. word-break: break-all;
  8001. width: 600px;
  8002. } */
  8003. </style>
  8004. <style lang="scss" scoped>
  8005. .marginL {
  8006. margin-left: 10px;
  8007. }
  8008. .el-notification {
  8009. width: 600px;
  8010. }
  8011. .styleB .el-upload--picture-card {
  8012. // display: none;
  8013. opacity: 0;
  8014. }
  8015. .ORcodebody {
  8016. height: auto;
  8017. background-color: #fff;
  8018. //background: url(../../../assets/image/group.png) #fff;
  8019. padding: 16px;
  8020. }
  8021. .csstool {
  8022. font-weight: 600;
  8023. color: #606266;
  8024. font-size: 14px;
  8025. margin: 0 20px;
  8026. span {
  8027. margin-right: 5px;
  8028. }
  8029. }
  8030. .ORcode {
  8031. width: 100%;
  8032. height: auto;
  8033. display: flex;
  8034. justify-content: center;
  8035. align-items: center;
  8036. padding: 30px;
  8037. box-sizing: border-box;
  8038. &>div {
  8039. width: 176px;
  8040. height: 176px;
  8041. border: 1px solid var(--themeColor);
  8042. border-radius: 5px;
  8043. }
  8044. }
  8045. .ORtitle {
  8046. width: 100%;
  8047. padding-bottom: 20px;
  8048. box-sizing: border-box;
  8049. &>div {
  8050. width: 100%;
  8051. margin: 10px 0;
  8052. font-size: 14px;
  8053. &>span {
  8054. &:nth-child(1) {
  8055. color: #868b98;
  8056. text-align: end;
  8057. width: 150px;
  8058. }
  8059. &:nth-child(2) {
  8060. color: #333333;
  8061. }
  8062. }
  8063. }
  8064. }
  8065. .Risk {
  8066. width: 100%;
  8067. height: auto;
  8068. display: flex;
  8069. flex-direction: column;
  8070. align-items: center;
  8071. font-size: 12px;
  8072. }
  8073. .dis {
  8074. display: flex;
  8075. }
  8076. .align {
  8077. align-items: center;
  8078. }
  8079. .jus {
  8080. justify-content: space-between;
  8081. }
  8082. .shangyexian {
  8083. padding-left: 100px;
  8084. }
  8085. .headertotal {
  8086. padding: 30px;
  8087. }
  8088. .my-label {
  8089. background: #e1f3d8;
  8090. }
  8091. .my-content {
  8092. background: #fde2e2;
  8093. color: aqua;
  8094. }
  8095. .el-button--mini {
  8096. padding: 5px;
  8097. }
  8098. #qqq {
  8099. background-color: #111;
  8100. width: 300px;
  8101. height: 300px;
  8102. margin: 0 auto;
  8103. position: relative;
  8104. }
  8105. #qrCode {
  8106. display: inline-block;
  8107. margin: 0 auto;
  8108. position: relative;
  8109. top: 15%;
  8110. img {
  8111. width: 200px;
  8112. height: 200px;
  8113. background-color: #fff;
  8114. padding: 6px;
  8115. }
  8116. }
  8117. .code {
  8118. box-sizing: border-box;
  8119. display: flex;
  8120. flex-direction: column;
  8121. justify-content: space-between;
  8122. align-items: center;
  8123. &>span {
  8124. margin-bottom: 10px;
  8125. }
  8126. }
  8127. .code_name {
  8128. width: 350px;
  8129. display: flex;
  8130. justify-content: space-between;
  8131. align-items: center;
  8132. font-weight: bold;
  8133. &>span {
  8134. &:nth-child(1) {
  8135. color: #979797;
  8136. width: 120px;
  8137. text-align: right;
  8138. }
  8139. &:nth-child(2) {
  8140. color: #2d2d2d;
  8141. width: 120px;
  8142. text-align: left;
  8143. }
  8144. }
  8145. }
  8146. .header {
  8147. font-size: 18px;
  8148. font-weight: bold;
  8149. }
  8150. .body {
  8151. border-top: none;
  8152. padding-bottom: 100px;
  8153. box-sizing: border-box;
  8154. }
  8155. .u-f-ac {
  8156. -webkit-box-align: center;
  8157. align-items: center;
  8158. padding: 10px;
  8159. }
  8160. .bodyTitle {
  8161. height: 45px;
  8162. background: #f3f3f3;
  8163. border: 1px solid #dddddd;
  8164. line-height: 45px;
  8165. padding: 0 20px;
  8166. box-sizing: border-box;
  8167. }
  8168. .start {
  8169. justify-content: flex-start;
  8170. }
  8171. .end {
  8172. justify-content: flex-end;
  8173. }
  8174. .descriptions {
  8175. padding: 20px;
  8176. box-sizing: border-box;
  8177. display: flex;
  8178. flex-direction: column;
  8179. }
  8180. .bodys {
  8181. display: flex;
  8182. justify-content: space-between;
  8183. align-items: center;
  8184. flex-wrap: wrap;
  8185. }
  8186. .bodys1 {
  8187. display: flex;
  8188. justify-content: center;
  8189. align-items: center;
  8190. flex-wrap: wrap;
  8191. }
  8192. .widths {
  8193. width: 230px;
  8194. }
  8195. .widths1 {
  8196. width: 300px;
  8197. }
  8198. .back {
  8199. color: #333333;
  8200. // font-weight: 700;
  8201. }
  8202. .home {
  8203. // padding-left: 10px;
  8204. box-sizing: border-box;
  8205. padding-bottom: 10px;
  8206. border-bottom: 1px solid #eef1f6;
  8207. &>span {
  8208. margin-right: 10px;
  8209. }
  8210. }
  8211. .hovers {
  8212. margin: 10px 0;
  8213. cursor: pointer;
  8214. padding: 10px 0;
  8215. box-sizing: border-box;
  8216. border-bottom: 1px solid #f2f2f2;
  8217. .offer-time {
  8218. margin: 20px 0 0px 100px;
  8219. padding: 10px;
  8220. background: rgba(45, 77, 137, 0.06);
  8221. &>span {
  8222. margin: 0 10px;
  8223. }
  8224. }
  8225. }
  8226. /* 内容待定 */
  8227. .coll {
  8228. font-size: 14px;
  8229. }
  8230. .display {
  8231. display: flex;
  8232. justify-content: center;
  8233. align-items: center;
  8234. box-sizing: border-box;
  8235. }
  8236. .black {
  8237. color: #000;
  8238. }
  8239. .gray {
  8240. color: #999;
  8241. }
  8242. .OCR {
  8243. font-weight: bold;
  8244. color: #333;
  8245. margin: 20px;
  8246. }
  8247. .slot {
  8248. position: absolute;
  8249. width: 100%;
  8250. height: 100%;
  8251. left: 0;
  8252. top: 0;
  8253. cursor: default;
  8254. text-align: center;
  8255. color: #fff;
  8256. opacity: 0;
  8257. font-size: 20px;
  8258. background-color: rgba(0, 0, 0, 0.5);
  8259. transition: opacity 0.3s;
  8260. display: flex;
  8261. justify-content: center;
  8262. align-items: center;
  8263. &>i {
  8264. margin: 10px;
  8265. color: #fff;
  8266. font-size: 30px;
  8267. font-weight: bold;
  8268. cursor: pointer;
  8269. }
  8270. &:hover {
  8271. opacity: 1;
  8272. }
  8273. }
  8274. .companyhead {
  8275. width: 100%;
  8276. margin: 0 auto;
  8277. padding: 15px 10px;
  8278. color: #333;
  8279. font-weight: bold;
  8280. font-size: 14px;
  8281. background-color: #f7f7f9;
  8282. }
  8283. .footer {
  8284. width: calc(100% - 200px);
  8285. position: fixed;
  8286. bottom: 0;
  8287. right: 0;
  8288. background-color: #fff;
  8289. z-index: 9;
  8290. padding: 20px;
  8291. box-sizing: border-box;
  8292. box-shadow: 0 0 1px 0 #ccc;
  8293. transition: all 0.3s, box-shadow 0.5s;
  8294. &.shadow {
  8295. box-shadow: 0 -10px 10px -10px #ccc;
  8296. }
  8297. }
  8298. .Enclosure {
  8299. width: 100%;
  8300. background-color: #fff;
  8301. padding: 20px;
  8302. box-sizing: border-box;
  8303. margin-bottom: 15px;
  8304. border-radius: 6px;
  8305. border: 1px solid #ebeef5;
  8306. transition: all 0.2s ease-in-out;
  8307. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  8308. }
  8309. .icon-img {
  8310. display: block;
  8311. width: 30px;
  8312. height: 30px;
  8313. }
  8314. .Anchor-link {
  8315. width: 40px;
  8316. background-color: #fff;
  8317. box-shadow: #ccc 0 0px 3px 0;
  8318. border-radius: 6px;
  8319. position: fixed;
  8320. top: 50%;
  8321. right: 0;
  8322. z-index: 99;
  8323. div {
  8324. margin: 5px;
  8325. border-bottom: 1px solid #f2f2f2;
  8326. cursor: pointer;
  8327. display: block;
  8328. }
  8329. }
  8330. .color {
  8331. padding-top: 150px;
  8332. margin-top: -150px;
  8333. }
  8334. .more {
  8335. width: 100%;
  8336. padding: 20px;
  8337. box-sizing: border-box;
  8338. }
  8339. .more-title {
  8340. padding: 15px 10px;
  8341. background-color: #f7f7f9;
  8342. // border-bottom: 1px solid #e3e3e3;
  8343. font-size: 14px;
  8344. }
  8345. .more-data {
  8346. padding: 10px;
  8347. border-bottom: 1px solid #f2f2f2;
  8348. color: #d42426;
  8349. font-size: 14px;
  8350. }
  8351. .Driving-risk {
  8352. padding-left: 100px;
  8353. // padding-top:20px
  8354. }
  8355. .checkbox {
  8356. transform: scale(1.2);
  8357. margin-right: 20px;
  8358. line-height: 32px;
  8359. }
  8360. .insure-long-term {
  8361. display: inline-flex;
  8362. padding-left: 8px;
  8363. padding-right: 8px;
  8364. background: var(--themeColor);
  8365. color: #fff;
  8366. font-size: 12px;
  8367. margin-left: -5px;
  8368. border-radius: 0px 5px 5px 0px;
  8369. cursor: pointer;
  8370. }
  8371. .textareaSty {
  8372. width: 160px;
  8373. height: 210px;
  8374. border: 1px solid #d2d2d2;
  8375. border-radius: 4px;
  8376. img {
  8377. width: 50px;
  8378. height: 50px;
  8379. }
  8380. }
  8381. .image-title {
  8382. width: 100px;
  8383. height: 30px;
  8384. color: #fff;
  8385. text-align: center;
  8386. line-height: 30px;
  8387. font-weight: bold;
  8388. margin-bottom: 15px;
  8389. background: #fc4a1a;
  8390. background: #f2994a;
  8391. /* fallback for old browsers */
  8392. background: -webkit-linear-gradient(to left, #f2c94c, #f2994a);
  8393. /* Chrome 10-25, Safari 5.1-6 */
  8394. background: linear-gradient(to left, #f2c94c, #f2994a);
  8395. /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  8396. }
  8397. .aaa /deep/ {
  8398. margin-bottom: 20px;
  8399. margin-right: 50px;
  8400. span {
  8401. display: inline-block;
  8402. margin-bottom: 10px;
  8403. }
  8404. .el-upload .el-upload-dragger {
  8405. width: 180px;
  8406. height: 120px;
  8407. border: 1px dashed #c0ccda;
  8408. padding: 0;
  8409. }
  8410. .el-upload-list--picture-card .el-upload-list__item {
  8411. width: 180px;
  8412. height: 120px;
  8413. }
  8414. .el-upload-list__item:first-child {
  8415. margin-top: 0;
  8416. }
  8417. }
  8418. .jyxStyle>span {
  8419. display: inline-block;
  8420. text-align: center;
  8421. }
  8422. .tab-style {
  8423. width: 110px;
  8424. li {
  8425. text-align: right;
  8426. padding-right: 20px;
  8427. line-height: 40px;
  8428. cursor: pointer;
  8429. box-sizing: border-box;
  8430. border-right: 1px solid #e2e5eb;
  8431. }
  8432. li:focus {
  8433. background: rgba(212, 36, 38, 0.1);
  8434. border-right: 2px solid var(--themeColor);
  8435. color: var(--themeColor);
  8436. }
  8437. }
  8438. .tabLi-style {
  8439. background: rgba(212, 36, 38, 0.1);
  8440. border-right: 2px solid var(--themeColor);
  8441. color: var(--themeColor);
  8442. }
  8443. .scan-code {
  8444. div {
  8445. margin-top: 10px;
  8446. }
  8447. }
  8448. /* 清除图片上传动画bug */
  8449. /deep/ {
  8450. .proSaomazhifucodeClass .el-dialog__header {
  8451. background: rgba(45, 77, 137, 0.1);
  8452. font-weight: bold;
  8453. }
  8454. .proSaomazhifucodeClass .el-dialog__footer {
  8455. border-top: 1px solid #eef1f6;
  8456. }
  8457. .el-upload-list__item {
  8458. transition: none !important;
  8459. }
  8460. .el-checkbox__input {
  8461. &.is-checked {
  8462. .el-checkbox__inner {
  8463. background-color: #d42426;
  8464. border-color: #d42426;
  8465. }
  8466. }
  8467. }
  8468. .el-checkbox__inner {
  8469. border: 1px solid var(--themeColor);
  8470. &:hover {
  8471. border-color: var(--themeColorHover);
  8472. }
  8473. &:focus {
  8474. border-color: var(--themeColor);
  8475. }
  8476. }
  8477. .el-upload .el-upload-dragger {
  8478. height: 250px;
  8479. width: 400px;
  8480. border: 1px dashed #ced4da;
  8481. }
  8482. .el-upload--picture-card {
  8483. width: 180px;
  8484. height: 120px;
  8485. }
  8486. .el-upload-list__item {
  8487. width: 180px;
  8488. height: 120px;
  8489. margin: 0 !important;
  8490. display: block !important;
  8491. }
  8492. .el-upload-list--picture-card .el-upload-list__item-thumbnail {
  8493. width: 180px;
  8494. height: 120px;
  8495. }
  8496. // .el-button--warning {
  8497. // color: #fff;
  8498. // background-color: #D42426;
  8499. // border-color: #D42426;
  8500. // &:hover {
  8501. // color: #fff;
  8502. // background-color: #ee6f00ce;
  8503. // border-color: #ee6f00ce;
  8504. // }
  8505. // }
  8506. .el-descriptions-item__label {
  8507. &:not(.is-bordered-label) {
  8508. color: #333;
  8509. }
  8510. }
  8511. // .el-radio__input.is-checked + .el-radio__label {
  8512. // color: #ff7000;
  8513. // }
  8514. // .el-radio__input.is-checked .el-radio__inner {
  8515. // border-color: #ff7000;
  8516. // background: #ff7000;
  8517. // }
  8518. // .el-radio__inner {
  8519. // &:hover {
  8520. // border-color: #ff7000;
  8521. // }
  8522. // }
  8523. // .el-input--small .el-icon-date {
  8524. // color: #ee6f00ce;
  8525. // }
  8526. .el-select {
  8527. width: 100%;
  8528. }
  8529. .el-date-editor.el-input {
  8530. width: 100%;
  8531. }
  8532. .el-cascader--small {
  8533. width: 100%;
  8534. }
  8535. .styleB {
  8536. height: 128px;
  8537. }
  8538. .styleB .el-upload--picture-card {
  8539. display: none;
  8540. }
  8541. .saomazhifucodeClass .el-dialog__body,
  8542. .saomazhifucodeClass .el-dialog__header,
  8543. .saomazhifucodeClass .el-dialog__footer {
  8544. padding: 0;
  8545. background: #f4e9e9;
  8546. }
  8547. .saomazhifucodeClass .el-dialog__body {
  8548. padding: 15px;
  8549. }
  8550. .saomazhifucodeClass .el-dialog__footer {
  8551. background: #f4e9e9;
  8552. padding-bottom: 15px;
  8553. }
  8554. .saomazhifucodeClass .el-dialog__headerbtn {
  8555. margin-top: 10px;
  8556. }
  8557. .zmDriving {
  8558. thead .el-table-column--selection .cell {
  8559. display: none !important;
  8560. }
  8561. }
  8562. .synchronous {
  8563. width: 75px;
  8564. height: 45px;
  8565. line-height: 45px;
  8566. color: #fff;
  8567. cursor: pointer;
  8568. background: url(../../../../src/icon/Union2.png) no-repeat 100%;
  8569. }
  8570. .synchronous:hover {
  8571. background: url(../../../../src/icon/Union1.png) no-repeat 100%;
  8572. }
  8573. .line_style {
  8574. margin-top: 20px;
  8575. }
  8576. .el-input-group__append {
  8577. vertical-align: baseline;
  8578. }
  8579. }
  8580. </style>