KtLetter.vue 430 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605
  1. <template>
  2. <div class="body">
  3. <div class="Enclosure flex f-c back" v-if="isLetter == '1'">
  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 == '1'">
  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)" style="
  100. color: #fff;
  101. background-color: #d42426;
  102. border-color: #d42426;
  103. "></el-button>
  104. </el-input>
  105. </el-form-item>
  106. </el-col>
  107. <el-col :span="5" :offset="1">
  108. <el-form-item label="品牌型号" prop="modelcname">
  109. <el-input v-model="carInfo.modelcname" placeholder="请输入品牌型号" type="text">
  110. <el-button slot="append" icon="el-icon-search" type="primary"
  111. @click="toChooseVehicleType(carInfo.modelcname)" style="
  112. color: #fff;
  113. background-color: #d42426;
  114. border-color: #d42426;
  115. border-top: none;
  116. "></el-button>
  117. </el-input>
  118. </el-form-item>
  119. </el-col>
  120. <el-col :span="5" :offset="1">
  121. <el-form-item label="发动机号" prop="engineNo">
  122. <el-input v-model="carInfo.engineNo" placeholder="请输入发动机号"></el-input>
  123. </el-form-item>
  124. </el-col>
  125. <el-col :span="5">
  126. <el-form-item label="年款" prop="caryear">
  127. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.caryear" placeholder="请输入年款"></el-input>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="5" :offset="1">
  131. <el-form-item label="座位数" prop="seatCount">
  132. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.seatCount" placeholder="请输入座位数">
  133. <el-button slot="append">座</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="completeKerbMass">
  139. <el-input v-model="carInfo.completeKerbMass" placeholder="请输入整备质量">
  140. <el-button slot="append">千克(KG)</el-button>
  141. </el-input>
  142. </el-form-item>
  143. </el-col>
  144. <el-col :span="5" :offset="1">
  145. <el-form-item label="核定载质量" prop="limitLoad">
  146. <el-input v-model="carInfo.limitLoad" placeholder="请输入核定载质量">
  147. <el-button slot="append">千克(KG)</el-button>
  148. </el-input>
  149. </el-form-item>
  150. </el-col>
  151. <el-col :span="5">
  152. <el-form-item label="排量" prop="enginedesc">
  153. <el-input v-model="carInfo.enginedesc" placeholder="请输入排量">
  154. <el-button slot="append">升(L)</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="powerScale">
  160. <el-input v-model="carInfo.powerScale" placeholder="请输入功率">
  161. <el-button slot="append">千瓦(KW)</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="purchasePrice">
  167. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.purchasePrice" placeholder="请输入新车购置价">
  168. <el-button slot="append">元</el-button>
  169. </el-input>
  170. </el-form-item>
  171. </el-col>
  172. <el-col :span="5" :offset="1">
  173. <el-form-item label="使用性质" prop="carnature">
  174. <el-select v-model="carInfo.carnature" placeholder="请选择使用性质" @change="natureFun">
  175. <el-option :label="item.dictTag" :value="item.dictValue"
  176. v-for="(item, index) in natureOfVehicleUseoptions" :key="index"></el-option>
  177. </el-select>
  178. </el-form-item>
  179. </el-col>
  180. <el-col :span="5">
  181. <el-form-item label="车辆用途" prop="vehicleUse">
  182. <el-select v-if="carInfo.carnature == '02'" v-model="carInfo.vehicleUse" @change="vehicleUseChange" placeholder="请选择使车辆用途">
  183. <el-option :label="item.dictTag" :value="item.dictValue"
  184. v-for="(item, index) in outOfBusinessVehicleUseoptions" :key="index"></el-option>
  185. </el-select>
  186. <el-select v-if="carInfo.carnature == '01'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途">
  187. <el-option :label="item.dictTag" :value="item.dictValue"
  188. v-for="(item, index) in businessVehicleUseoptions" :key="index"></el-option>
  189. </el-select>
  190. </el-form-item>
  191. </el-col>
  192. <el-col :span="5" :offset="1">
  193. <el-form-item label="车辆类型" prop="cartype">
  194. <el-select v-model="carInfo.cartype" placeholder="请选择车辆种类" filterable clearable>
  195. <el-option :label="item.dictValue + item.dictTag" :value="item.dictValue"
  196. v-for="(item, index) in trafficManagementVehicleTypeoptions" :key="index"></el-option>
  197. </el-select>
  198. </el-form-item>
  199. </el-col>
  200. <el-col :span="5" :offset="1">
  201. <el-form-item label="车辆种类" prop="cimodelclass">
  202. <el-select v-model="carInfo.cimodelclass" placeholder="请选择车辆种类" clearable>
  203. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in vehicleTypeoptions"
  204. :key="index"></el-option>
  205. </el-select>
  206. </el-form-item>
  207. </el-col>
  208. <el-col :span="5" :offset="1">
  209. <el-form-item label="能源种类" prop="energyType">
  210. <el-select v-model="carInfo.energyType" placeholder="请选择能源种类">
  211. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in energyTypeoptions"
  212. :key="index"></el-option>
  213. </el-select>
  214. </el-form-item>
  215. </el-col>
  216. <el-col :span="5">
  217. <el-form-item label="所属性质 " prop="property">
  218. <el-select v-model="carInfo.property" placeholder="请选择所属性质" @change="getCompanyListProperty">
  219. <el-option :label="item.label" :value="item.value" v-for="(item, index) in propertyoptions"
  220. :key="index" :disabled="propertyDisable(item)"></el-option>
  221. </el-select>
  222. </el-form-item>
  223. </el-col>
  224. <el-col :span="5" :offset="1">
  225. <el-form-item label="注册日期" prop="registerDate">
  226. <el-date-picker v-dateFormat v-model="carInfo.registerDate" :picker-options="pickerOptions"
  227. value-format="yyyy-MM-dd" type="date" placeholder="选择注册日期" placement="bottom-start"></el-date-picker>
  228. </el-form-item>
  229. </el-col>
  230. <el-col :span="5" :offset="1">
  231. <el-form-item label="发证日期" prop="issueDate">
  232. <el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
  233. placeholder="选择发证日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  234. </el-form-item>
  235. </el-col>
  236. <el-col :span="5" :offset="1" v-if="transferDateShow">
  237. <el-form-item label="转移登记日期" prop="transferDate">
  238. <el-date-picker v-dateFormat v-model="carInfo.transferDate" :picker-options="pickerOptions" type="date"
  239. placeholder="选择日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  240. </el-form-item>
  241. </el-col>
  242. </el-row>
  243. </el-form>
  244. </div>
  245. <div class="Enclosure flex f-c back">
  246. <div class="home flex j-s a-c">
  247. <div class="flex j-s a-c color" id="CheZhu">
  248. <img src="../../../../src/icon/车主信息.png" alt class="icon-img" />
  249. <span style="margin-left: 10px">车主信息</span>
  250. </div>
  251. <el-button size="small" type="primary" @click="uploaduser(2)">
  252. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>证件识别
  253. </el-button>
  254. </div>
  255. <el-form class="demo-ruleForm" :model="ownerInfo" ref="ownerInfo" :rules="rules" label-width="130px" size="small"
  256. style="margin-top: 15px" label-position="top">
  257. <el-row style="flex-wrap: wrap; display: flex">
  258. <el-col :span="5">
  259. <el-form-item label="车主姓名" prop="name">
  260. <el-input v-model="ownerInfo.name" placeholder="请输入车主姓名"></el-input>
  261. </el-form-item>
  262. </el-col>
  263. <el-col :span="5" :offset="1">
  264. <el-form-item label="车主类型" >
  265. <el-select v-model="ownerInfo.property" placeholder="车主类型" @change="propertyTpe('ownerInfo')" >
  266. <el-option label="法人" value="0" :disabled="carInfo.property=='1'"></el-option>
  267. <el-option label="个人" value="1" :disabled="carInfo.property=='2'"></el-option>
  268. </el-select>
  269. </el-form-item>
  270. </el-col>
  271. <el-col :span="5" :offset="1">
  272. <el-form-item label="证件类型" prop="identifyType">
  273. <el-select v-model="ownerInfo.identifyType" placeholder="身份证" disabled>
  274. <el-option label="身份证" value="01"></el-option>
  275. <el-option label="统一社会信用代码" value="10"></el-option>
  276. </el-select>
  277. </el-form-item>
  278. </el-col>
  279. <el-col :span="5" :offset="1" v-if="ownerInfo.property=='1'">
  280. <el-form-item label="证件号码" prop="identifyNumber">
  281. <el-input v-model="ownerInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  282. show-word-limit @blur="identifyblur('ownerInfo')"></el-input>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :span="5" :offset="1" v-if="ownerInfo.property=='0'">
  286. <el-form-item label="证件号码" prop="organizationCode">
  287. <el-input v-model="ownerInfo.organizationCode" placeholder="请输入证件号码" type="text" maxlength="18"
  288. show-word-limit ></el-input>
  289. </el-form-item>
  290. </el-col>
  291. <el-col :span="5" v-if="ownerInfo.property=='0'">
  292. <el-form-item label="注册资金" prop="registeredCapital">
  293. <el-input v-model="ownerInfo.registeredCapital" placeholder="请输入注册资金" type="text"
  294. show-word-limit >
  295. <el-button slot="append">万元</el-button>
  296. </el-input>
  297. </el-form-item>
  298. </el-col>
  299. <el-col :span="5" v-if="ownerInfo.property=='1'">
  300. <el-form-item label="年龄" prop="age">
  301. <el-input v-model="ownerInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  302. </el-form-item>
  303. </el-col>
  304. <el-col :span="5" :offset="1" v-if="ownerInfo.property=='1'">
  305. <el-form-item label="性别" prop="gender" v-if="ownerInfo.property=='1'">
  306. <el-select @change="genderChange" v-model="ownerInfo.gender" placeholder="请选择性别">
  307. <el-option label="男" value="男"></el-option>
  308. <el-option label="女" value="女"></el-option>
  309. </el-select>
  310. </el-form-item>
  311. </el-col>
  312. <el-col :span="5" :offset="1">
  313. <el-form-item label="车主手机号" prop="mobile">
  314. <el-input v-model="ownerInfo.mobile" placeholder="请输入车主手机号" type="text" maxlength="11"
  315. @paste.native="handlePaste($event, 'ownerInfo')" show-word-limit></el-input>
  316. </el-form-item>
  317. </el-col>
  318. <el-col :span="5" :offset="1" v-if="ownerInfo.property=='0'">
  319. <el-form-item label="车主联系人">
  320. <el-input v-model="ownerInfo.legalPerson" placeholder="请输入车主联系人" type="text" maxlength="5" ></el-input>
  321. </el-form-item>
  322. </el-col>
  323. <el-col :span="5" :offset="1" v-if="ownerInfo.property=='0'">
  324. <el-form-item label="省市区" >
  325. <el-cascader v-model="selectedOptions1" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"
  326. @change="event => areahandleChange(event, 'ownerInfo')" ></el-cascader>
  327. </el-form-item>
  328. </el-col>
  329. <el-col :span="5" :offset="ownerInfo.property=='1'?1:0">
  330. <el-form-item label="地址" prop="addr">
  331. <el-input v-model="ownerInfo.addr" placeholder="请输入地址" type="text"></el-input>
  332. </el-form-item>
  333. </el-col>
  334. <el-col :span="5" :offset="ownerInfo.property=='1'?0:1">
  335. <el-form-item label="有效期起期" prop="identifyValidDate">
  336. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidDate" value-format="yyyy-MM-dd"
  337. :picker-options="pickerOptions" type="date" placeholder="选择有效期起期"
  338. placement="bottom-start"></el-date-picker>
  339. </el-form-item>
  340. </el-col>
  341. <el-col :span="5" :offset="1">
  342. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  343. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidEndDate" type="date" value-format="yyyy-MM-dd"
  344. placeholder="有效期止期" placement="bottom-start" style="width: calc(100% - 40px)"></el-date-picker>
  345. <div class="insure-long-term" @click="insureLongterm('ownerInfo')">
  346. 长期
  347. </div>
  348. </el-form-item>
  349. </el-col>
  350. <el-col :span="5" :offset="1">
  351. <el-form-item label="电子邮箱" prop="email">
  352. <el-input v-model="ownerInfo.email" placeholder="请输入电子邮箱"></el-input>
  353. </el-form-item>
  354. </el-col>
  355. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="iscCrownerShow">
  356. <el-form-item label="省市区:">
  357. <el-cascader v-model="ownerInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  358. </el-form-item>
  359. </el-col>-->
  360. </el-row>
  361. </el-form>
  362. </div>
  363. <div class="Enclosure flex f-c back">
  364. <div class="home flex j-s a-c">
  365. <div class="flex j-s a-c" id="toubaor">
  366. <img src="../../../../src/icon/投保人信息.png" alt class="icon-img" />
  367. <span style="margin-left: 10px">投保人信息</span>
  368. </div>
  369. <div class="flex a-c j-c">
  370. <div style="font-size: 12px; margin: 0 10px">
  371. 同车主
  372. <el-switch v-model="tbczcarShow" active-color="#D42426" @change="tbczcarShowChange()"></el-switch>
  373. </div>
  374. <el-button size="small" type="primary" @click="uploaduser(3)">
  375. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  376. 证件识别
  377. </el-button>
  378. </div>
  379. </div>
  380. <el-form v-show="!tbczcarShow" class="demo-ruleForm" :model="policyHolderInfo" ref="policyHolderInfo" :rules="rules"
  381. label-width="130px" size="small " style="margin-top: 15px" label-position="top">
  382. <el-row style="flex-wrap: wrap; display: flex">
  383. <el-col :span="5">
  384. <el-form-item label="投保人姓名" prop="name">
  385. <el-input v-model="policyHolderInfo.name" placeholder="请输入投保人姓名"></el-input>
  386. </el-form-item>
  387. </el-col>
  388. <el-col :span="5" :offset="1">
  389. <el-form-item label="投保人类型" prop="property">
  390. <el-select v-model="policyHolderInfo.property" placeholder="投保人类型" @change="propertyTpe('policyHolderInfo')" >
  391. <el-option label="个人" value="1"></el-option>
  392. <el-option label="法人" value="0"></el-option>
  393. </el-select>
  394. </el-form-item>
  395. </el-col>
  396. <el-col :span="5" :offset="1">
  397. <el-form-item label="证件类型" prop="identifyType">
  398. <el-select v-model="policyHolderInfo.identifyType" placeholder="身份证" disabled>
  399. <el-option label="身份证" value="01"></el-option>
  400. <el-option label="统一社会信用代码" value="10"></el-option>
  401. </el-select>
  402. </el-form-item>
  403. </el-col>
  404. <el-col :span="5" :offset="1" v-if="policyHolderInfo.property=='0'">
  405. <el-form-item label="证件号码" prop="organizationCode">
  406. <el-input v-model="policyHolderInfo.organizationCode" placeholder="请输入证件号码" type="text" maxlength="18"
  407. show-word-limit @blur="identifyblur('policyHolderInfo')"></el-input>
  408. </el-form-item>
  409. </el-col>
  410. <el-col :span="5" :offset="1" v-if="policyHolderInfo.property=='1'">
  411. <el-form-item label="证件号码" prop="identifyNumber">
  412. <el-input v-model="policyHolderInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  413. show-word-limit @blur="identifyblur('policyHolderInfo')"></el-input>
  414. </el-form-item>
  415. </el-col>
  416. <el-col :span="5" v-if="policyHolderInfo.property=='0'">
  417. <el-form-item label="注册资金" prop="registeredCapital">
  418. <el-input v-model="policyHolderInfo.registeredCapital" placeholder="请输入注册资金" type="text"
  419. show-word-limit >
  420. <el-button slot="append">万元</el-button>
  421. </el-input>
  422. </el-form-item>
  423. </el-col>
  424. <el-col :span="5" v-if="policyHolderInfo.property=='1'">
  425. <el-form-item label="年龄" prop="age">
  426. <el-input v-model="policyHolderInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  427. </el-form-item>
  428. </el-col>
  429. <el-col :span="5" :offset="1" v-if="policyHolderInfo.property=='1'">
  430. <el-form-item label="性别" prop="gender" >
  431. <el-select v-model="policyHolderInfo.gender" placeholder="请选择性别">
  432. <el-option label="男" value="男"></el-option>
  433. <el-option label="女" value="女"></el-option>
  434. </el-select>
  435. </el-form-item>
  436. </el-col>
  437. <el-col :span="5" :offset="1">
  438. <el-form-item label="投保人手机号" prop="mobile">
  439. <el-input v-model="policyHolderInfo.mobile" placeholder="请输入投保人手机号" maxlength="11" type="text"
  440. @paste.native="handlePaste($event, 'policyHolderInfo')" show-word-limit></el-input>
  441. </el-form-item>
  442. </el-col>
  443. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  444. <el-form-item label="省市区:">
  445. <el-cascader v-model="selectedOptions2" :options="areaOptions"
  446. @change="event => areahandleChange(event, 'policyHolderInfo')"></el-cascader>
  447. </el-form-item>
  448. </el-col>-->
  449. <el-col :span="5" :offset="1" v-if="policyHolderInfo.property=='0'">
  450. <el-form-item label="投保人联系人">
  451. <el-input v-model="policyHolderInfo.legalPerson" placeholder="请输入投保人联系人" type="text" maxlength="5" ></el-input>
  452. </el-form-item>
  453. </el-col>
  454. <el-col :span="5" :offset="1" v-if="policyHolderInfo.property=='0'">
  455. <el-form-item label="省市区">
  456. <el-cascader v-model="selectedOptions2" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"
  457. @change="event => areahandleChange(event, 'policyHolderInfo')"></el-cascader>
  458. </el-form-item>
  459. </el-col>
  460. <el-col :span="5" :offset="policyHolderInfo.property=='1'?1:0">
  461. <el-form-item label="地址" prop="addr">
  462. <el-input v-model="policyHolderInfo.addr" placeholder="请输入地址" type="text"></el-input>
  463. </el-form-item>
  464. </el-col>
  465. <el-col :span="5" :offset="policyHolderInfo.property=='1'?0:1">
  466. <el-form-item label="有效期起期" prop="identifyValidDate">
  467. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidDate" value-format="yyyy-MM-dd"
  468. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  469. </el-form-item>
  470. </el-col>
  471. <el-col :span="5" :offset="1" >
  472. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  473. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidEndDate" type="date"
  474. value-format="yyyy-MM-dd" placeholder="有效期止期" placement="bottom-start"
  475. style="width: calc(100% - 40px)"></el-date-picker>
  476. <div class="insure-long-term" @click="insureLongterm('policyHolderInfo')">
  477. 长期
  478. </div>
  479. </el-form-item>
  480. </el-col>
  481. <el-col :span="5" :offset="1">
  482. <el-form-item label="电子邮箱" prop="email">
  483. <el-input v-model="policyHolderInfo.email" placeholder="请输入电子邮箱"></el-input>
  484. </el-form-item>
  485. </el-col>
  486. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isApplicantShow">
  487. <el-form-item label="省市区:">
  488. <el-cascader v-model="policyHolderInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  489. </el-form-item>
  490. </el-col>-->
  491. </el-row>
  492. </el-form>
  493. </div>
  494. <div class="Enclosure flex f-c back">
  495. <div class="home flex j-s a-c">
  496. <div class="flex j-s a-c">
  497. <img src="../../../../src/icon/被投保人信息.png" alt class="icon-img" />
  498. <span style="margin-left: 10px">被保人信息</span>
  499. </div>
  500. <div class="flex j-s a-c">
  501. <div style="font-size: 12px; margin: 0 10px">
  502. 同投保人
  503. <el-switch v-model="bbtbcarShow" active-color="#D42426" @change="bbtbcarShowChange()"></el-switch>
  504. </div>
  505. <div style="font-size: 12px; margin: 0 10px">
  506. 同车主
  507. <el-switch v-model="bbczcarShow" active-color="#D42426" @change="bbczcarShowChange()"></el-switch>
  508. </div>
  509. <el-button size="small" type="primary" @click="uploaduser(4)">
  510. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  511. 证件识别
  512. </el-button>
  513. </div>
  514. </div>
  515. <el-form v-show="!bbtbcarShow && !bbczcarShow" class="demo-ruleForm" :model="insuredPersonInfo"
  516. ref="insuredPersonInfo" :rules="rules" label-width="130px" size="small" style="margin-top: 15px"
  517. label-position="top">
  518. <el-row style="flex-wrap: wrap; display: flex">
  519. <el-col :span="5">
  520. <el-form-item label="被保人姓名" prop="name">
  521. <el-input v-model="insuredPersonInfo.name" placeholder="请输入被保人姓名"></el-input>
  522. </el-form-item>
  523. </el-col>
  524. <el-col :span="5" :offset="1">
  525. <el-form-item label="被保人类型" prop="property">
  526. <el-select v-model="insuredPersonInfo.property" placeholder="投保人类型" @change="propertyTpe('insuredPersonInfo')" >
  527. <el-option label="个人" value="1"></el-option>
  528. <el-option label="法人" value="0"></el-option>
  529. </el-select>
  530. </el-form-item>
  531. </el-col>
  532. <el-col :span="5" :offset="1">
  533. <el-form-item label="证件类型" prop="identifyType">
  534. <el-select v-model="insuredPersonInfo.identifyType" placeholder="身份证" disabled>
  535. <el-option label="身份证" value="01"></el-option>
  536. <el-option label="统一社会信用代码" value="10"></el-option>
  537. </el-select>
  538. </el-form-item>
  539. </el-col>
  540. <el-col :span="5" :offset="1" v-if="insuredPersonInfo.property=='1'">
  541. <el-form-item label="证件号码" prop="identifyNumber">
  542. <el-input v-model="insuredPersonInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  543. show-word-limit @blur="identifyblur('insuredPersonInfo')"></el-input>
  544. </el-form-item>
  545. </el-col>
  546. <el-col :span="5" :offset="1" v-if="insuredPersonInfo.property=='0'">
  547. <el-form-item label="证件号码" prop="organizationCode">
  548. <el-input v-model="insuredPersonInfo.organizationCode" placeholder="请输入证件号码" type="text" maxlength="18"
  549. show-word-limit @blur="identifyblur('insuredPersonInfo')"></el-input>
  550. </el-form-item>
  551. </el-col>
  552. <el-col :span="5" v-if="insuredPersonInfo.property=='0'">
  553. <el-form-item label="注册资金" prop="registeredCapital">
  554. <el-input v-model="insuredPersonInfo.registeredCapital" placeholder="请输入注册资金" type="text"
  555. show-word-limit >
  556. <el-button slot="append">万元</el-button>
  557. </el-input>
  558. </el-form-item>
  559. </el-col>
  560. <el-col :span="5" v-if="insuredPersonInfo.property=='1'">
  561. <el-form-item label="年龄" prop="age">
  562. <el-input v-model="insuredPersonInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  563. </el-form-item>
  564. </el-col>
  565. <el-col :span="5" :offset="1" v-if="insuredPersonInfo.property=='1'">
  566. <el-form-item label="性别" prop="gender">
  567. <el-select v-model="insuredPersonInfo.gender" placeholder="请选择性别">
  568. <el-option label="男" value="男"></el-option>
  569. <el-option label="女" value="女"></el-option>
  570. </el-select>
  571. </el-form-item>
  572. </el-col>
  573. <el-col :span="5" :offset="1">
  574. <el-form-item label="被保人手机号" prop="mobile">
  575. <el-input v-model="insuredPersonInfo.mobile" placeholder="请输入被保人手机号" maxlength="11" type="text"
  576. @paste.native="handlePaste($event, 'insuredPersonInfo')" show-word-limit></el-input>
  577. </el-form-item>
  578. </el-col>
  579. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  580. <el-form-item label="省市区:">
  581. <el-cascader v-model="selectedOptions3" :options="areaOptions"
  582. @change="event => areahandleChange(event, 'insuredPersonInfo')"></el-cascader>
  583. </el-form-item>
  584. </el-col>-->
  585. <el-col :span="5" :offset="1" v-if="insuredPersonInfo.property=='0'">
  586. <el-form-item label="被保人联系人">
  587. <el-input v-model="insuredPersonInfo.legalPerson" placeholder="请输入被保人联系人" type="text" maxlength="5" ></el-input>
  588. </el-form-item>
  589. </el-col>
  590. <el-col :span="5" :offset="1" v-if="insuredPersonInfo.property=='0'">
  591. <el-form-item label="省市区">
  592. <el-cascader v-model="selectedOptions2" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"
  593. @change="event => areahandleChange(event, 'insuredPersonInfo')"></el-cascader>
  594. </el-form-item>
  595. </el-col>
  596. <el-col :span="5" :offset="insuredPersonInfo.property=='1'?1:0">
  597. <el-form-item label="地址" prop="addr">
  598. <el-input v-model="insuredPersonInfo.addr" placeholder="请输入地址" type="text"></el-input>
  599. </el-form-item>
  600. </el-col>
  601. <el-col :span="5" :offset="insuredPersonInfo.property=='1'?0:1">
  602. <el-form-item label="有效期起期" prop="identifyValidDate">
  603. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidDate" value-format="yyyy-MM-dd"
  604. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  605. </el-form-item>
  606. </el-col>
  607. <el-col :span="5" :offset="1">
  608. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  609. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidEndDate" type="date"
  610. value-format="yyyy-MM-dd" placeholder="有效期止期" placement="bottom-start"
  611. style="width: calc(100% - 40px)"></el-date-picker>
  612. <div class="insure-long-term" @click="insureLongterm('insuredPersonInfo')">
  613. 长期
  614. </div>
  615. </el-form-item>
  616. </el-col>
  617. <el-col :span="5" :offset="1">
  618. <el-form-item label="电子邮箱" prop="email">
  619. <el-input v-model="insuredPersonInfo.email" placeholder="请输入电子邮箱"></el-input>
  620. </el-form-item>
  621. </el-col>
  622. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isInsuredShow">
  623. <el-form-item label="省市区:">
  624. <el-cascader v-model="insuredPersonInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  625. </el-form-item>
  626. </el-col>-->
  627. </el-row>
  628. </el-form>
  629. </div>
  630. <div class="Enclosure flex f-c back">
  631. <div class="home flex j-s a-c">
  632. <div class="flex j-s a-c color" id="insurance">
  633. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" />
  634. <span style="margin-left: 10px">投保信息</span>
  635. <el-switch style="margin: 0 10px 0 30px" @change="immediatelyChange" v-model="immediatelyValue"
  636. active-color="#D42426"></el-switch>
  637. <span style="font-weight: normal; font-size: 13px">即时投保</span>
  638. </div>
  639. </div>
  640. <el-form class="back demo-ruleForm" :inline="true" :model="Carinsurance" label-width="150px" size="small"
  641. style="margin-top: 15px" label-position="top">
  642. <div class="flex j-start a-c">
  643. <div class="flex j-c a-start">
  644. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="jqchecked"
  645. @change="jqcheckedChange"></el-checkbox>
  646. <div class="flex f-c a-c">
  647. <el-form-item label="交强险起保日期" prop="identifyNumber">
  648. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqstartDate" @change="jqChange"
  649. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  650. </el-form-item>
  651. <el-form-item label="交强险终保日期" prop="identifyNumber">
  652. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqendDate" type="datetime"
  653. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  654. </el-form-item>
  655. </div>
  656. </div>
  657. <div class="flex f-c a-c synchronous" style="margin: 0 50px" @click="synchronization">
  658. <span style="font-size: 12px">同步</span>
  659. </div>
  660. <div class="flex j-c a-start">
  661. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="sychecked"
  662. @change="sycheckedChange"></el-checkbox>
  663. <div class="flex f-c a-c">
  664. <el-form-item label="商业险起保日期" prop="name">
  665. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="systartDate" @change="syChange"
  666. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  667. </el-form-item>
  668. <el-form-item label="商业险终保日期" prop="name">
  669. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="syendDate" type="datetime"
  670. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  671. </el-form-item>
  672. </div>
  673. </div>
  674. </div>
  675. </el-form>
  676. </div>
  677. <div class="Enclosure flex f-c back">
  678. <div class="home flex j-s a-c">
  679. <div class="flex j-s a-c color" id="insurance">
  680. <img src="../../../../src/icon/车船税.png" alt class="icon-img" />
  681. <span style="margin-left: 10px">车船税</span>
  682. </div>
  683. </div>
  684. <el-form class="demo-ruleForm" :model="vehicleAndVesselTaxForm" ref="vehicleAndVesselTaxForm" :rules="rules"
  685. label-width="160px" size="small" style="margin-top: 15px" label-position="top">
  686. <el-row style="flex-wrap: wrap; display: flex">
  687. <el-col :span="5">
  688. <el-form-item label="纳税类型:" prop="taxRelifFlag">
  689. <el-select @change="taxRelifFlagChange" v-model="vehicleAndVesselTaxForm.taxRelifFlag" placeholder="纳税类型">
  690. <el-option v-for="(item, index) in taxRelifFlagoptions" :key="index" :label="item.dictTag"
  691. :value="item.dictValue"></el-option>
  692. </el-select>
  693. </el-form-item>
  694. </el-col>
  695. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1&& policyHolderInfo.property=='1'" :span="5" :offset="1">
  696. <el-form-item label="纳税人识别号:" prop="identifyNumber">
  697. <el-input v-model="vehicleAndVesselTaxForm.identifyNumber" placeholder="请输入纳税人识别号" type="text"></el-input>
  698. </el-form-item>
  699. </el-col>
  700. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1 && policyHolderInfo.property=='0'" :span="5" :offset="1">
  701. <el-form-item label="纳税人识别号:" prop="organizationCode">
  702. <el-input v-model="vehicleAndVesselTaxForm.organizationCode" placeholder="请输入纳税人识别号" type="text"></el-input>
  703. </el-form-item>
  704. </el-col>
  705. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  706. <el-form-item label="纳税人名称:" prop="taxpayerName">
  707. <el-input v-model="vehicleAndVesselTaxForm.taxpayerName" placeholder="请输入纳税人名称" type="text"></el-input>
  708. </el-form-item>
  709. </el-col>
  710. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  711. <el-form-item label="证件类型:" prop="taxpayerIdentifier">
  712. <el-select v-model="vehicleAndVesselTaxForm.taxpayerIdentifier" placeholder="证件类型" clearable>
  713. <el-option v-for="(item, index) in taxpayerIdentifieroptions" :key="index" :label="item.dictTag"
  714. :value="item.dictValue"></el-option>
  715. </el-select>
  716. </el-form-item>
  717. </el-col>
  718. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 ||
  719. vehicleAndVesselTaxForm.taxRelifFlag == 3
  720. " :span="5" :offset="1">
  721. <el-form-item label="减免税凭证号:" prop="extendChar2">
  722. <el-input v-model="vehicleAndVesselTaxForm.extendChar2" placeholder="请输入减免税凭证号" type="text"></el-input>
  723. </el-form-item>
  724. </el-col>
  725. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  726. <el-form-item label="完税凭证号:" prop="paidFreeCertificate">
  727. <el-input v-model="vehicleAndVesselTaxForm.paidFreeCertificate" placeholder="请输入完税凭证号"
  728. type="text"></el-input>
  729. </el-form-item>
  730. </el-col>
  731. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 ||
  732. vehicleAndVesselTaxForm.taxRelifFlag == 3
  733. " :span="5" :offset="1">
  734. <el-form-item label="减免税原因:" prop="relifReason">
  735. <el-select v-model="vehicleAndVesselTaxForm.relifReason" placeholder="减免税原因" clearable>
  736. <el-option v-for="(item, index) in relifReasonoptions" :key="index" :label="item.dictTag"
  737. :value="item.dictValue"></el-option>
  738. </el-select>
  739. </el-form-item>
  740. </el-col>
  741. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5" :offset="1">
  742. <el-form-item label="税务机关代码:" prop="taxComCode">
  743. <el-input v-model="vehicleAndVesselTaxForm.taxComCode" placeholder="请输入税务机关代码" type="text"></el-input>
  744. </el-form-item>
  745. </el-col>
  746. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5"
  747. :offset="vehicleAndVesselTaxForm.taxRelifFlag == 4 ? 1 : 0">
  748. <el-form-item label="税务机关名称:" prop="taxComName">
  749. <el-input v-model="vehicleAndVesselTaxForm.taxComName" placeholder="请输入税务机关名称" type="text"></el-input>
  750. </el-form-item>
  751. </el-col>
  752. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5">
  753. <el-form-item label="完税凭证填发日期:" prop="taxDocumentDate">
  754. <el-date-picker v-dateFormat v-model="vehicleAndVesselTaxForm.taxDocumentDate" value-format="yyyy-MM-dd"
  755. type="date" placeholder="完税凭证填发日期" placement="bottom-start"></el-date-picker>
  756. </el-form-item>
  757. </el-col>
  758. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  759. <el-form-item label="完税凭证地区:" prop="taxPaidAreaCode">
  760. <el-select v-model="vehicleAndVesselTaxForm.taxPaidAreaCode" placeholder="完税凭证地区" clearable>
  761. <el-option v-for="(item, index) in provinceSelect" :key="index" :label="item.name"
  762. :value="item.code"></el-option>
  763. </el-select>
  764. </el-form-item>
  765. </el-col>
  766. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 3" :span="5" :offset="1">
  767. <el-form-item label="减税比例:" prop="taxRelief">
  768. <el-input v-model="vehicleAndVesselTaxForm.taxRelief" placeholder="请输入0~1的数值" type="text"></el-input>
  769. </el-form-item>
  770. </el-col>
  771. </el-row>
  772. </el-form>
  773. </div>
  774. <div class="Enclosure flex f-c back">
  775. <div class="home flex j-s a-c back">
  776. <div class="flex j-s a-c" id="more">
  777. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" />
  778. <span style="margin-left: 15px; width: 120px">险别选择</span>
  779. <el-select size="small" style="width: 70%" v-model="packageValue" placeholder="请选择套餐" @change="packageChange">
  780. <el-option v-for="item in packageOptions" :key="item.id" :label="item.title" :value="item.id"></el-option>
  781. </el-select>
  782. </div>
  783. </div>
  784. <div class="flex f-c more">
  785. <div class="flex j-s a-c more-title back">
  786. <div style="width: 590px; padding-left: 100px" class="flex j-s a-c">
  787. <span>险别</span>
  788. <span>保额(元)</span>
  789. </div>
  790. </div>
  791. <div class="flex a-c more-data back" v-for="(insureitem, insureindex) in insureList" :key="insureindex">
  792. <div style="width: 700px; padding-left: 100px" class="flex j-s a-c">
  793. <div style="width: auto">
  794. <span style="text-align: center">
  795. {{ insureitem.kindName }}
  796. <el-input v-show="insureitem.kindCode == 'D4' ||
  797. insureitem.kindCode == 'MJ4' ||
  798. insureitem.kindCode == 'SY_FJ_YBW2'
  799. " v-model="sumseatCount" style="width: 40px; margin: 0 5px" size="small" placeholder
  800. disabled></el-input>
  801. <span v-show="insureitem.kindCode == 'D4' ||
  802. insureitem.kindCode == 'MJ4' ||
  803. insureitem.kindCode == 'SY_FJ_YBW2'
  804. ">座</span>
  805. </span>
  806. </div>
  807. <el-select v-if="insureitem.amtList" filterable v-model="insureitem.amount" placeholder="请选择"
  808. @change="insureitemChange($event, insureitem)" size="small" style="width: 300px">
  809. <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
  810. :key="index"></el-option>
  811. </el-select>
  812. <span v-else>
  813. <el-input-number size="small" style="width: 280px; margin-right: 10px" v-model="insureitem.amount"
  814. @change="insureitemChange($event, insureitem)"
  815. :min="0"></el-input-number>次
  816. </span>
  817. </div>
  818. </div>
  819. <!-- <div style="margin:0 auto;font-size: 14px;cursor: pointer;margin-top:15px;">
  820. <span v-show="insureMore" @click="selectMore(insureList.length)">
  821. 查看更多
  822. <i class="el-icon-arrow-down"></i>
  823. </span>
  824. <span v-show="!insureMore" @click="packup()">
  825. 收起
  826. <i class="el-icon-arrow-up"></i>
  827. </span>
  828. </div>-->
  829. </div>
  830. </div>
  831. <!-- 保险公司信息 -->
  832. <div class="Enclosure flex f-c back">
  833. <div class="home flex j-s">
  834. <div class="flex j-s a-c" id="company">
  835. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" />
  836. <span style="margin-left: 10px">保险公司</span>
  837. <div class="csstool">
  838. <span>是否过户车</span>
  839. <el-switch @change="transferFlagChange" v-model="carInfo.transferFlag" active-color="#D42426"></el-switch>
  840. </div>
  841. <div class="csstool">
  842. <span>商业险是否过户</span>
  843. <el-switch v-model="carInfo.transferFlagBi" active-color="#D42426"></el-switch>
  844. </div>
  845. <div class="csstool">
  846. <span>是否脱保</span>
  847. <el-switch v-model="carInfo.outOfInsurance" active-color="#D42426"></el-switch>
  848. </div>
  849. <div class="csstool">
  850. <span>是否二手车</span>
  851. <el-switch v-model="carInfo.usedCar" active-color="#D42426"></el-switch>
  852. </div>
  853. </div>
  854. <div class="flex j-c a-c">
  855. <el-button v-show="imageUploadShow" size="small" type="primary" @click="imageUpload()">
  856. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  857. 影像上传
  858. </el-button>
  859. </div>
  860. </div>
  861. <div>
  862. <div class="companyhead">
  863. <el-row>
  864. <el-col :span="3">
  865. <span>保险公司</span>
  866. </el-col>
  867. <el-col :span="4">
  868. <span>报价协议</span>
  869. </el-col>
  870. <el-col :span="3" v-if="isLetter == '3'">
  871. <span>是否现询</span>
  872. </el-col>
  873. <el-col :span="4" v-if="isLetter == '3'">
  874. <span>非现询费用</span>
  875. </el-col>
  876. <el-col :span="2">
  877. <span>交强险</span>
  878. </el-col>
  879. <el-col :span="2">
  880. <span>车船税</span>
  881. </el-col>
  882. <el-col :span="2">
  883. <span>商业险</span>
  884. </el-col>
  885. <el-col :span="2">
  886. <span>驾意险</span>
  887. </el-col>
  888. <el-col :span="2">
  889. <span>合计</span>
  890. </el-col>
  891. </el-row>
  892. </div>
  893. <div class="coll" v-if="isLetter == '3'">
  894. <div v-loading.fullscreen.lock="loading" class="hovers" v-for="(reslistitem, reslistindex) in totalCompanyList"
  895. :key="reslistindex">
  896. <el-row>
  897. <el-col :span="3">
  898. <el-select size="small" v-model="companyName" placeholder="请选择保险公司" filterable clearable @change="changeCompany" style="width: 100%;">
  899. <el-option :label="item.name" :value="item.name" v-for="item in ztreeNodes" :key="item.name" ></el-option>
  900. </el-select>
  901. </el-col>
  902. <el-col :span="4">
  903. <el-select size="small" v-model="isLetter3agreementId" filterable clearable
  904. placeholder="请选择协议" @change="(val) =>
  905. agreementChange(
  906. val,
  907. reslistitem.agreement,
  908. reslistindex,
  909. reslistitem
  910. )
  911. ">
  912. <el-option
  913. :label="`${item.agreementName}-${item.businessDescription}-${item.jobDescription}`"
  914. :value="item.id"
  915. v-for="item in reslistitem.agreement" :key="item.id"></el-option>
  916. </el-select>
  917. </el-col>
  918. <el-col :span="3" >
  919. <el-select size="small" filterable clearable v-model="costFlag"
  920. @change="changeIsInquirySelect">
  921. <el-option v-for="(item, index) in isInquirySelect" :key="index" :label="item.value"
  922. :value="item.id"></el-option>
  923. </el-select>
  924. </el-col>
  925. <el-col :span="4">
  926. <el-select size="small" filterable clearable v-if="isInquirySelectFlag" v-model="xxNowCostsId" :disabled = isInquirySelectFlag
  927. @change="inquiryNowListChange">
  928. <el-option v-for="(item, index) in inquiryNowList" :key="index" :label="item.costsDescription"
  929. :value="item.id"></el-option>
  930. </el-select>
  931. <el-select size="small" filterable clearable v-else v-model="nowCostsId" :disabled = isInquirySelectFlag
  932. @change="inquiryNowListChange">
  933. <el-option v-for="(item, index) in inquiryNowList" :key="index" :label="item.costsDescription"
  934. :value="item.id"></el-option>
  935. </el-select>
  936. </el-col>
  937. <el-col :span="2">
  938. <span style="color: #d42426; font-weight: bold">
  939. {{
  940. policyNumberForm.jqpremium
  941. ? "¥" + policyNumberForm.jqpremium
  942. : "&nbsp;"
  943. }}
  944. </span>
  945. </el-col>
  946. <el-col :span="2">
  947. <span style="color: #d42426; font-weight: bold">
  948. {{
  949. policyNumberForm.taxamount
  950. ? "¥" + policyNumberForm.taxamount
  951. : "&nbsp;"
  952. }}
  953. </span>
  954. </el-col>
  955. <el-col :span="2">
  956. <span style="color: #d42426; font-weight: bold">
  957. {{
  958. policyNumberForm.sypremium
  959. ? "¥" + policyNumberForm.sypremium
  960. : "&nbsp;"
  961. }}
  962. </span>
  963. </el-col>
  964. <el-col :span="2">
  965. <span style="color: #d42426; font-weight: bold">
  966. {{
  967. policyNumberForm.jypremium
  968. ? "¥" + policyNumberForm.jypremium
  969. : "&nbsp;"
  970. }}
  971. </span>
  972. </el-col>
  973. <el-col :span="2">
  974. <span style="color: #d42426; font-weight: bold">
  975. {{
  976. sumPremium != 0 ? "¥" + sumPremium
  977. : "&nbsp;"
  978. }}
  979. </span>
  980. </el-col>
  981. </el-row>
  982. </div>
  983. </div>
  984. </div>
  985. </div>
  986. <!-- 外部订单保费信息 -->
  987. <div class="Enclosure flex f-c back" v-if="isLetter == '3'">
  988. <div class="home flex j-s a-c">
  989. <div class="flex j-s a-c color" id="Waibu">
  990. <img src="../../../../src/icon/车船税.png" alt class="icon-img" />
  991. <span style="margin-left: 10px">外部订单</span>
  992. </div>
  993. <div class="flex j-c a-c">
  994. <el-button v-show="policyNumberForm.jqpolicyno ||
  995. policyNumberForm.sypolicyno ||
  996. policyNumberForm.jypolicyno
  997. " size="small" type="primary" @click="policyUpload()">
  998. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  999. 保单上传
  1000. </el-button>
  1001. </div>
  1002. </div>
  1003. <el-form class="demo-ruleForm" :model="policyNumberForm" ref="policyNumberForm" :rules="rules" label-width="160px"
  1004. size="small" style="margin-top: 15px">
  1005. <el-row style="flex-wrap: wrap; display: flex">
  1006. <el-col :span="8">
  1007. <el-form-item label="评分" prop="score">
  1008. <el-input v-model="policyNumberForm.score" placeholder="请输入评分"></el-input>
  1009. </el-form-item>
  1010. </el-col>
  1011. <el-col :span="8">
  1012. <el-form-item label="交强续保" prop="jqRenewal">
  1013. <el-select v-model="policyNumberForm.jqRenewal" placeholder="请选择交强续保" clearable>
  1014. <el-option v-for="item in [
  1015. {
  1016. label: '是',
  1017. value: '1',
  1018. },
  1019. {
  1020. label: '否',
  1021. value: '0',
  1022. },
  1023. ]" :key="item.value" :label="item.label" :value="item.value">
  1024. </el-option>
  1025. </el-select>
  1026. </el-form-item>
  1027. </el-col>
  1028. <el-col :span="8">
  1029. <el-form-item label="商业续保" prop="syRenewal">
  1030. <el-select v-model="policyNumberForm.syRenewal" placeholder="请选择商业续保" clearable>
  1031. <el-option v-for="item in [
  1032. {
  1033. label: '是',
  1034. value: '1',
  1035. },
  1036. {
  1037. label: '否',
  1038. value: '0',
  1039. },
  1040. ]" :key="item.value" :label="item.label" :value="item.value">
  1041. </el-option>
  1042. </el-select>
  1043. </el-form-item>
  1044. </el-col>
  1045. <el-col :span="8">
  1046. <el-form-item label="交强保单号" prop="jqpolicyno">
  1047. <el-input v-model="policyNumberForm.jqpolicyno" placeholder="请输入交强保单号"></el-input>
  1048. </el-form-item>
  1049. </el-col>
  1050. <el-col :span="8">
  1051. <el-form-item label="交强险保费" prop="jqpremium">
  1052. <el-input v-model="policyNumberForm.jqpremium" placeholder="请输入交强险保费" type="text"></el-input>
  1053. </el-form-item>
  1054. </el-col>
  1055. <el-col :span="8">
  1056. <el-form-item label="交强险总比例(%)" prop="jqCostsProportion">
  1057. <el-input v-if="isInquiryNowDisable" :disabled="isInquiryNowDisable" v-model="policyNumberForm.jqCostsProportion"
  1058. type="text"></el-input>
  1059. <el-input v-else :disabled="isInquiryNowDisable" v-model="policyNumberForm.jqCostsProportion"
  1060. @change.native =getExternalOrderFee
  1061. placeholder="请输入交强险总比例(%)" type="text"></el-input>
  1062. </el-form-item>
  1063. </el-col>
  1064. <el-col :span="8">
  1065. <el-form-item label="商业保单号" prop="sypolicyno">
  1066. <el-input v-model="policyNumberForm.sypolicyno" placeholder="请输入商业保单号" type="text"></el-input>
  1067. </el-form-item>
  1068. </el-col>
  1069. <el-col :span="8">
  1070. <el-form-item label="商业险保费" prop="sypremium">
  1071. <el-input v-model="policyNumberForm.sypremium" placeholder="请输入商业险保费" type="text"></el-input>
  1072. </el-form-item>
  1073. </el-col>
  1074. <el-col :span="8">
  1075. <el-form-item label="商业险总比例(%)" prop="syCostsProportion">
  1076. <!-- <el-input :disabled="isInquiryNowDisable" v-model="policyNumberForm.syCostsProportion" placeholder="请输入商业险其他费用比例" type="text"></el-input> -->
  1077. <el-input v-if="isInquiryNowDisable" :disabled="isInquiryNowDisable" v-model="policyNumberForm.syCostsProportion"
  1078. type="text"></el-input>
  1079. <el-input v-else :disabled="isInquiryNowDisable" v-model="policyNumberForm.syCostsProportion"
  1080. @change.native =getExternalOrderFee
  1081. placeholder="请输入商业险总比例(%)" type="text"></el-input>
  1082. </el-form-item>
  1083. </el-col>
  1084. <el-col :span="8">
  1085. <el-form-item label="驾意保单号" prop="jypolicyno">
  1086. <el-input v-model="policyNumberForm.jypolicyno" placeholder="请输入驾意保单号" type="text"></el-input>
  1087. </el-form-item>
  1088. </el-col>
  1089. <el-col :span="8">
  1090. <el-form-item label="驾意险保费" prop="jypremium">
  1091. <el-input v-model="policyNumberForm.jypremium" placeholder="请输入驾意险保费" type="text"></el-input>
  1092. </el-form-item>
  1093. </el-col>
  1094. <el-col :span="8">
  1095. <el-form-item label="非车险总比例(%)" prop="noCostsProportion">
  1096. <!-- <el-input v-model="policyNumberForm.noCostsProportion" placeholder="请输入非车其他费用比例" type="text"></el-input> -->
  1097. <el-input v-if="isInquiryNowDisable" :disabled="isInquiryNowDisable" v-model="policyNumberForm.noCostsProportion"
  1098. type="text"></el-input>
  1099. <el-input v-else :disabled="isInquiryNowDisable" v-model="policyNumberForm.noCostsProportion"
  1100. @change.native =getExternalOrderFee
  1101. placeholder="请输入非车险总比例(%)" type="text"></el-input>
  1102. </el-form-item>
  1103. </el-col>
  1104. <!-- <el-col :span="5" :offset="1">
  1105. <el-form-item label="交强险手续费比例" prop="jqSuperviseCostsProportion">
  1106. <el-input v-model="policyNumberForm.jqSuperviseCostsProportion" placeholder="请输入交强险手续费比例"
  1107. type="text"></el-input>
  1108. </el-form-item>
  1109. </el-col>
  1110. <el-col :span="5">
  1111. <el-form-item label="商业险手续费比例" prop="sySuperviseCostsProportion">
  1112. <el-input v-model="policyNumberForm.sySuperviseCostsProportion" placeholder="请输入商业险手续费比例"
  1113. type="text"></el-input>
  1114. </el-form-item>
  1115. </el-col>
  1116. <el-col :span="5" :offset="1">
  1117. <el-form-item label="非车手续费比例" prop="noSuperviseCostsProportion">
  1118. <el-input v-model="policyNumberForm.noSuperviseCostsProportion" placeholder="请输入非车手续费比例"
  1119. type="text"></el-input>
  1120. </el-form-item>
  1121. </el-col> -->
  1122. <el-col :span="8">
  1123. <el-form-item label="车船税" prop="taxamount">
  1124. <el-input v-model="policyNumberForm.taxamount" placeholder="请输入车船税" type="text"></el-input>
  1125. </el-form-item>
  1126. </el-col>
  1127. <el-col :span="8">
  1128. <el-form-item label="签单日期" prop="signDate">
  1129. <el-date-picker v-model="policyNumberForm.signDate" type="datetime" value-format="yyyy-MM-dd HH:mm:ss"
  1130. placeholder="选择日期">
  1131. </el-date-picker>
  1132. </el-form-item>
  1133. </el-col>
  1134. <el-col :span="8">
  1135. <el-form-item label="交强出口比例">
  1136. <el-input placeholder="请输入交强出口比例" disabled v-model="policyNumberForm.jqOtherCostsProportion" type="text"></el-input>
  1137. </el-form-item>
  1138. </el-col>
  1139. <el-col :span="8">
  1140. <el-form-item label="商业出口比例">
  1141. <el-input placeholder="请输入商业出口比例" disabled v-model="policyNumberForm.syOtherCostsProportion" type="text"></el-input>
  1142. </el-form-item>
  1143. </el-col>
  1144. <el-col :span="8">
  1145. <el-form-item label="非车出口比例">
  1146. <el-input placeholder="请输入非车出口比例" disabled v-model="policyNumberForm.noOtherCostsProportion" type="text"></el-input>
  1147. </el-form-item>
  1148. </el-col>
  1149. </el-row>
  1150. </el-form>
  1151. </div>
  1152. <div class="Enclosure flex f-c" v-if="isLetter == '1'">
  1153. <div class="home flex j-s a-c back">
  1154. <div class="flex j-s a-c color">
  1155. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  1156. <span style="margin-left: 10px">报价历史</span>
  1157. <div v-if="orderno">
  1158. <el-radio-group v-model="historyRadio" style="margin-left: 30px" @input="RadioHistoryChange"
  1159. v-for="item in insOrderStatusoptions" :key="item.dictValue">
  1160. <el-radio :label="item.dictValue">{{ item.dictTag }}</el-radio>
  1161. </el-radio-group>
  1162. </div>
  1163. </div>
  1164. </div>
  1165. <div style="padding: 20px">
  1166. <el-table size="small" :data="HistoryList" height="250" border style="width: 100%" v-loading="loading"
  1167. :header-cell-style="{
  1168. background: '#F7F7F9 ',
  1169. fontWeight: '700',
  1170. color: '#333333',
  1171. }" highlight-current-row>
  1172. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  1173. <el-table-column prop="username" label="业务员" align="center">
  1174. <template slot-scope="scope">
  1175. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  1176. </template>
  1177. </el-table-column>
  1178. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  1179. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  1180. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  1181. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  1182. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  1183. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  1184. <el-table-column prop="orderstatus" label="状态" align="center">
  1185. <template slot-scope="scope">
  1186. <el-tag style="
  1187. color: #33a08d;
  1188. border-color: #33a08d;
  1189. background: rgba(51, 160, 141, 0.1);
  1190. " v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'
  1191. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1192. <el-tag type="danger" style="border-color: #e75b5d" v-else-if="scope.row.orderstatus == '3'" size="small">{{
  1193. scope.row.orderstatus | cap }}</el-tag>
  1194. <el-tag v-else style="
  1195. color: #2d4d89;
  1196. border-color: #2d4d89;
  1197. background: rgba(45, 77, 137, 0.1);
  1198. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1199. </template>
  1200. </el-table-column>
  1201. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  1202. <template slot-scope="scope">
  1203. <el-button type="text" style="color: #2d4d89" size="small"
  1204. @click="qoutedetail(scope.row.id)">查看详情</el-button>
  1205. <el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
  1206. <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
  1207. @click="Payment(scope.row.id, scope.row)">付款码</el-button>
  1208. <!-- <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany=='平安财险'" type="text"
  1209. @click="signature(scope.row.id)">生成签章</el-button> -->
  1210. <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
  1211. scope.row.orderstatus == '2' ||
  1212. scope.row.orderstatus == '4') &&
  1213. ['紫金财险'].includes(scope.row.inscompany)
  1214. " @click="cancelorder(scope.row)">撤单</el-button>
  1215. <el-button type="text" size="mini" style="color: #2d4d89"
  1216. v-if="scope.row.orderstatus == '2' && scope.row.inscompany !== '平安财险'"
  1217. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  1218. </template>
  1219. </el-table-column>
  1220. </el-table>
  1221. </div>
  1222. </div>
  1223. <!-- 查看详情 -->
  1224. <detailsDialog ref="detailsDialog" :orderInfo.sync="queryOrders" :Feepermissions="false"></detailsDialog>
  1225. <el-dialog title="车型选择" :visible.sync="chexingdialogVisible" width="1300px">
  1226. <el-form :inline="true" class="demo-form-inline" size="small">
  1227. <el-form-item label="厂牌型号">
  1228. <el-input v-model="carInfo.modelcname" placeholder="厂牌型号" style="width: 500px"></el-input>
  1229. </el-form-item>
  1230. <el-form-item>
  1231. <el-button type="primary" size="small" @click="toChooseVehicleType(carInfo.modelcname)">查询</el-button>
  1232. </el-form-item>
  1233. </el-form>
  1234. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1235. :header-cell-style="{
  1236. background: '#F7F7F9 ',
  1237. fontWeight: '700',
  1238. color: '#333333',
  1239. }" highlight-current-row @row-dblclick="reslistCurrentChange">
  1240. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1241. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1242. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1243. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1244. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1245. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1246. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1247. </el-table>
  1248. </el-dialog>
  1249. <el-dialog title="车辆识别代码" :visible.sync="sbdmdialogVisible" width="1300px">
  1250. <el-form :inline="true" class="demo-form-inline" size="small">
  1251. <el-form-item label="车辆识别代码">
  1252. <el-input v-model="carInfo.frameNo" placeholder="车辆识别代码" style="width: 500px"></el-input>
  1253. </el-form-item>
  1254. <el-form-item>
  1255. <el-button type="primary" size="small" @click="toChooseVin(carInfo.frameNo)">查询</el-button>
  1256. </el-form-item>
  1257. </el-form>
  1258. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1259. :header-cell-style="{
  1260. background: '#F7F7F9 ',
  1261. fontWeight: '700',
  1262. color: '#333333',
  1263. }" highlight-current-row @row-dblclick="reslistCurrentChange">
  1264. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1265. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1266. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1267. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1268. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1269. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1270. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1271. </el-table>
  1272. </el-dialog>
  1273. <!--第一种 二维码 -->
  1274. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  1275. <div class="ORcodebody" v-watermark="userform.id || userId">
  1276. <div slot="title" class="dialog-title">
  1277. <span>扫码付款</span>
  1278. </div>
  1279. <div class="ORcode">
  1280. <div style="padding: 13px; position: relative">
  1281. <div v-if="['大家财险', '华泰财险'].includes(inscompany)">
  1282. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  1283. <img v-else :src="paycodeimg" alt style="width: 100%" />
  1284. </div>
  1285. <div v-else>
  1286. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 100%" />
  1287. <div v-else id="qrcode" ref="qrcode"></div>
  1288. </div>
  1289. </div>
  1290. </div>
  1291. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  1292. <div style="
  1293. font-size: 32px;
  1294. text-align: center;
  1295. color: #d42426;
  1296. margin-top: 20px;
  1297. ">
  1298. <span style="font-size: 24px; font-weight: bold">¥</span>
  1299. {{ sumpremium }}
  1300. </div>
  1301. <div class="ORtitle">
  1302. <div>
  1303. <span>保险公司:</span>
  1304. <span>{{ inscompany }}</span>
  1305. </div>
  1306. <div>
  1307. <span>车牌号:</span>
  1308. <span>{{ licenseNo }}</span>
  1309. </div>
  1310. <div>
  1311. <span>投保人:</span>
  1312. <span>{{ applyName }}</span>
  1313. </div>
  1314. <!-- <div>
  1315. <span style="color:#f75c00">总金额:</span>
  1316. <span style="color:#f75c00">{{ sumpremium }}</span>
  1317. </div>-->
  1318. <div v-show="jqpremium">
  1319. <span>交强:</span>
  1320. <span>{{ jqpremium }}</span>
  1321. </div>
  1322. <div v-show="sypremium">
  1323. <span>商业:</span>
  1324. <span>{{ sypremium }}</span>
  1325. </div>
  1326. <div v-show="taxamount">
  1327. <span>车船税:</span>
  1328. <span>{{ taxamount }}</span>
  1329. </div>
  1330. <div v-show="jqstartdate">
  1331. <span>交强险起保日期:</span>
  1332. <span>{{ jqstartdate }}</span>
  1333. </div>
  1334. <div v-show="systartdate">
  1335. <span>商业险起保日期:</span>
  1336. <span>{{ systartdate }}</span>
  1337. </div>
  1338. <div v-if="jypremium">
  1339. <span>非车险:</span>
  1340. <span>{{ jypremium }}</span>
  1341. </div>
  1342. </div>
  1343. <!-- <div class="display">
  1344. <el-button size="small" style="width:100px;" @click="codedialogVisible = false">关闭</el-button>
  1345. </div>-->
  1346. </div>
  1347. <span slot="footer" class="dialog-footer display">
  1348. <el-button size="small" style="width: 100px; border-color: #d42426; color: #d42426"
  1349. @click="codedialogVisible = false">关闭</el-button>
  1350. </span>
  1351. </el-dialog>
  1352. <!--第二种 二维码 -->
  1353. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh" title="扫码付款">
  1354. <div class="flex j-s">
  1355. <div class="scan-code">
  1356. <div style="font-weight: bold">
  1357. 总金额:
  1358. <span style="color: #2d4d89">{{ sumpremium }}</span>
  1359. </div>
  1360. <div>交强险:{{ jqpremium }}</div>
  1361. <div>车船税:{{ taxamount }}</div>
  1362. <div>商业险:{{ sypremium }}</div>
  1363. <div>非车险:{{ jypremium }}</div>
  1364. </div>
  1365. <div v-if="['大家财险', '华泰财险'].includes(inscompany)">
  1366. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  1367. <img v-else :src="paycodeimg" alt style="width: 100%" />
  1368. </div>
  1369. <div v-else>
  1370. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 200px; height: 200px" />
  1371. <div v-else id="qrcode" ref="qrcode"></div>
  1372. </div>
  1373. <div class="scan-code">
  1374. <div>保险公司:{{ inscompany }}</div>
  1375. <div>车牌号:{{ licenseNo }}</div>
  1376. <div>投保人:{{ applyName }}</div>
  1377. <div>交强险起保日期:{{ jqstartdate }}</div>
  1378. <div>商业险起保日期:{{ systartdate }}</div>
  1379. </div>
  1380. </div>
  1381. <span slot="footer" class="dialog-footer">
  1382. <el-button size="small" style="
  1383. width: 100px;
  1384. background: #eaedf1;
  1385. border-color: #eaedf1;
  1386. color: #2d4d89;
  1387. " @click="codedialogVisiblePro = false">关闭</el-button>
  1388. </span>
  1389. </el-dialog>
  1390. <el-dialog :visible.sync="uploadcardialogVisible" width="960px" style="padding: 10px 20px; box-sizing: border-box"
  1391. @open="closeDialog(0)">
  1392. <div slot="title" class="dialog-title">
  1393. <span>行驶证识别</span>
  1394. </div>
  1395. <el-row :gutter="20">
  1396. <div class="bodys1">
  1397. <div>
  1398. <div class="flex a-c">
  1399. <div class="OCR" style="text-align: center">行驶证主页</div>
  1400. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  1401. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carfrontChange">
  1402. <img v-show="carfrontImg" :src="carfrontImg" style="width: 100%; height: 100%" />
  1403. <img v-show="!carfrontImg" src="../../../../static/carfront.png" style="width: 100%; height: 100%" />
  1404. <span class="slot" v-show="carfrontImg" @click.stop>
  1405. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carfrontImg)"></i>
  1406. <i class="el-icon-delete" @click.stop="handleRemove('carfrontImg')"></i>
  1407. </span>
  1408. </el-upload>
  1409. </div>
  1410. </div>
  1411. <div class="flex a-c">
  1412. <div class="OCR" style="text-align: center">行驶证副页</div>
  1413. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  1414. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carbackChange">
  1415. <img v-show="carbackImg" :src="carbackImg" style="width: 100%; height: 100%" />
  1416. <img v-show="!carbackImg" src="../../../../static/carback.png" style="width: 100%; height: 100%" />
  1417. <span class="slot" v-show="carbackImg" @click.stop>
  1418. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carbackImg)"></i>
  1419. <i class="el-icon-delete" @click.stop="handleRemove('carbackImg')"></i>
  1420. </span>
  1421. </el-upload>
  1422. </div>
  1423. </div>
  1424. </div>
  1425. <div style="text-align: center">
  1426. <el-form :model="carform" label-width="130px" size="small">
  1427. <el-form-item label="所有人">
  1428. <el-input v-model="carform.carOwner" autocomplete="off"></el-input>
  1429. </el-form-item>
  1430. <el-form-item label="车牌号">
  1431. <el-input v-model="carform.licenseNo" autocomplete="off"></el-input>
  1432. </el-form-item>
  1433. <el-form-item label="车架号">
  1434. <el-input v-model="carform.frameNo" autocomplete="off"></el-input>
  1435. </el-form-item>
  1436. <el-form-item label="品牌型号">
  1437. <el-input v-model="carform.modelcname" autocomplete="off"></el-input>
  1438. </el-form-item>
  1439. <el-form-item label="发动机号">
  1440. <el-input v-model="carform.engineNo" autocomplete="off"></el-input>
  1441. </el-form-item>
  1442. <el-form-item label="总质量">
  1443. <el-input v-model="carform.grossMass" autocomplete="off"></el-input>
  1444. </el-form-item>
  1445. <el-form-item label="整备质量">
  1446. <el-input v-model="carform.unladenMass" autocomplete="off"></el-input>
  1447. </el-form-item>
  1448. <el-form-item label="核定载质量">
  1449. <el-input v-model="carform.limitLoad" autocomplete="off"></el-input>
  1450. </el-form-item>
  1451. <el-form-item label="核定载客数">
  1452. <el-input v-model="carform.approvedPassengersCapacity" autocomplete="off"></el-input>
  1453. </el-form-item>
  1454. <el-form-item label="注册日期">
  1455. <el-input v-model="carform.registerDate" autocomplete="off"></el-input>
  1456. </el-form-item>
  1457. <el-form-item label="发证日期">
  1458. <el-input v-model="carform.issueDate" autocomplete="off"></el-input>
  1459. </el-form-item>
  1460. </el-form>
  1461. </div>
  1462. </div>
  1463. </el-row>
  1464. <span slot="footer" class="dialog-footer">
  1465. <el-button type="primary" @click="CarOCRdiscern()" size="small">识 别</el-button>
  1466. <el-button type="primary" @click="CarOCRconfirm()" size="small">确 认</el-button>
  1467. </span>
  1468. </el-dialog>
  1469. <el-dialog :visible.sync="uploaduserdialogVisible" width="960px" style="padding: 10px 20px; box-sizing: border-box"
  1470. @open="closeDialog(userIndex)">
  1471. <el-tabs v-model="activeName">
  1472. <el-tab-pane label="身份证识别" name="1">
  1473. <el-row :gutter="20">
  1474. <div class="bodys1">
  1475. <div>
  1476. <div class="flex">
  1477. <div class="OCR" style="text-align: center">身份证主页</div>
  1478. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  1479. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1480. :on-change="userfrontChange">
  1481. <img v-show="userfrontImg" :src="userfrontImg" style="width: 100%; height: 100%" />
  1482. <img v-show="!userfrontImg" src="../../../../static/userfront.png"
  1483. style="width: 100%; height: 100%" />
  1484. <span class="slot" v-show="userfrontImg" @click.stop>
  1485. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userfrontImg)"></i>
  1486. <i class="el-icon-delete" @click.stop="handleRemove('userfrontImg')"></i>
  1487. </span>
  1488. </el-upload>
  1489. </div>
  1490. </div>
  1491. <div class="flex">
  1492. <div class="OCR" style="text-align: center">身份证副页</div>
  1493. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  1494. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1495. :on-change="userbackChange">
  1496. <img v-show="userbackImg" :src="userbackImg" style="width: 100%; height: 100%" />
  1497. <img v-show="!userbackImg" src="../../../../static/userback.png"
  1498. style="width: 100%; height: 100%" />
  1499. <span class="slot" v-show="userbackImg" @click.stop>
  1500. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userbackImg)"></i>
  1501. <i class="el-icon-delete" @click.stop="handleRemove('userbackImg')"></i>
  1502. </span>
  1503. </el-upload>
  1504. </div>
  1505. </div>
  1506. </div>
  1507. <div style="text-align: center">
  1508. <el-form :model="ownerInfoform" label-width="130px" size="small">
  1509. <el-form-item label="姓名">
  1510. <el-input v-model="ownerInfoform.name" autocomplete="off"></el-input>
  1511. </el-form-item>
  1512. <el-form-item label="性别">
  1513. <el-input v-model="ownerInfoform.gender" autocomplete="off"></el-input>
  1514. </el-form-item>
  1515. <el-form-item label="证件类型">
  1516. <el-input v-model="ownerInfoform.identifyType" autocomplete="off"></el-input>
  1517. </el-form-item>
  1518. <el-form-item label="证件号码">
  1519. <el-input v-model="ownerInfoform.identifyNumber" autocomplete="off"></el-input>
  1520. </el-form-item>
  1521. <el-form-item label="车主手机号">
  1522. <el-input v-model="ownerInfoform.mobile" autocomplete="off"></el-input>
  1523. </el-form-item>
  1524. <el-form-item label="地址">
  1525. <el-input v-model="ownerInfoform.addr" autocomplete="off"></el-input>
  1526. </el-form-item>
  1527. <el-form-item label="有效期起期">
  1528. <el-input disabled v-model="ownerInfoform.identifyValidDate" autocomplete="off"></el-input>
  1529. </el-form-item>
  1530. <el-form-item label="有效期止期">
  1531. <el-input disabled v-model="ownerInfoform.identifyValidEndDate" autocomplete="off"></el-input>
  1532. </el-form-item>
  1533. <el-form-item label="电子邮箱">
  1534. <el-input v-model="ownerInfoform.email" autocomplete="off"></el-input>
  1535. </el-form-item>
  1536. </el-form>
  1537. </div>
  1538. </div>
  1539. </el-row>
  1540. </el-tab-pane>
  1541. <el-tab-pane label="营业执照" name="2">
  1542. <el-row :gutter="20">
  1543. <div class="bodys1">
  1544. <div>
  1545. <div class="flex">
  1546. <div class="OCR" style="text-align: center">营业执照</div>
  1547. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  1548. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1549. :on-change="businessChange">
  1550. <img v-show="businessImg" :src="businessImg" style="width: 100%; height: 100%" />
  1551. <img v-show="!businessImg" src="../../../../static/userfront.png"
  1552. style="width: 100%; height: 100%" />
  1553. <span class="slot" v-show="businessImg" @click.stop>
  1554. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(businessImg)"></i>
  1555. <i class="el-icon-delete" @click.stop="handleRemove('businessImg')"></i>
  1556. </span>
  1557. </el-upload>
  1558. </div>
  1559. </div>
  1560. </div>
  1561. <div style="text-align: center">
  1562. <el-form :model="businessform" label-width="130px" size="small">
  1563. <el-form-item label="单位名称">
  1564. <el-input autocomplete="off" v-model="businessform.name"></el-input>
  1565. </el-form-item>
  1566. <el-form-item label="法人">
  1567. <el-input autocomplete="off" v-model="businessform.legalPerson"></el-input>
  1568. </el-form-item>
  1569. <el-form-item label="社会信用代码">
  1570. <el-input autocomplete="off" v-model="businessform.organizationCode"></el-input>
  1571. </el-form-item>
  1572. <el-form-item label="地址">
  1573. <el-input autocomplete="off" v-model="businessform.addr"></el-input>
  1574. </el-form-item>
  1575. <el-form-item label="注册资本">
  1576. <el-input autocomplete="off" v-model="businessform.registeredCapital"></el-input>
  1577. </el-form-item>
  1578. <el-form-item label="经营范围">
  1579. <el-input autocomplete="off" type="textarea" v-model="businessform.scope"></el-input>
  1580. </el-form-item>
  1581. </el-form>
  1582. </div>
  1583. </div>
  1584. </el-row>
  1585. </el-tab-pane>
  1586. </el-tabs>
  1587. <span slot="footer" class="dialog-footer">
  1588. <el-button type="primary" @click="userOCRdiscern()" size="small">识 别</el-button>
  1589. <el-button type="primary" @click="userOCRconfirm()" size="small">确 认</el-button>
  1590. </span>
  1591. </el-dialog>
  1592. <el-dialog :visible.sync="pinganDataDetailVisible" width="40%" title="责任明细">
  1593. <el-table :data="pinganDataDetail" border style="width: 100%">
  1594. <el-table-column prop="insuranceCoverage" label="责任名称">
  1595. </el-table-column>
  1596. <el-table-column prop="unitInsuredAmount" label="每份保额">
  1597. </el-table-column>
  1598. </el-table>
  1599. </el-dialog>
  1600. <div v-if="isLetter == '1'" class="flex j-c a-c footer" :class="$store.state.app.collapse ? 'position-collapse-left' : 'position-left'
  1601. ">
  1602. <el-button size="small" @click="add()">录下一单</el-button>
  1603. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  1604. </div>
  1605. <div v-if="isLetter == '2'" style="text-align: center">
  1606. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  1607. </div>
  1608. <div v-if="isLetter == '3'" style="text-align: center">
  1609. <el-button type="primary" size="small" @click="preserveQuote(0, 'emporaryLoading')" :disabled="preserveQuoteLoading"
  1610. :loading="emporaryLoading">暂存</el-button>
  1611. <el-button type="primary" size="small" @click="preserveQuote(1, 'preserveQuoteLoading')"
  1612. :loading="preserveQuoteLoading" :disabled="emporaryLoading">保存</el-button>
  1613. </div>
  1614. <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter == '1'">
  1615. <div>
  1616. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" @click="handleScroll('Car')" />
  1617. </div>
  1618. <div>
  1619. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" @click="handleScroll('insurance')" />
  1620. </div>
  1621. <div>
  1622. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" @click="handleScroll('more')" />
  1623. </div>
  1624. <div>
  1625. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" @click="handleScroll('company')" />
  1626. </div>
  1627. </div>
  1628. <el-dialog title="核保信息" :visible.sync="underwritingdialogVisible" width="30%">
  1629. <div class="flex j-s f-c">
  1630. <div style="
  1631. font-size: 18px;
  1632. color: #d42426;
  1633. font-weight: 700;
  1634. padding: 10px 30px;
  1635. " v-if="orderstatus == '2'">
  1636. 订单状态:已核保待缴费
  1637. </div>
  1638. </div>
  1639. <span slot="footer" class="dialog-footer">
  1640. <el-button style="width: 100px" type="primary" size="small" v-if="orderstatus == '2'"
  1641. @click="Payment(companyId, queryOrders)">缴费二维码</el-button>
  1642. <!-- <el-button style="width: 100px" type="primary" size="small" v-if="orderstatus == '2' && queryOrders.inscompany=='平安财险'"
  1643. @click="signature(companyId)">生成签章</el-button> -->
  1644. </span>
  1645. </el-dialog>
  1646. <el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
  1647. <div class="flex a-c u-f-sa" v-if="renewalCodeJqImg">
  1648. <span>交强转保确认码</span>
  1649. <div class="flex a-c f-c">
  1650. <img :src="renewalCodeJqImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  1651. <el-input v-model="renewalCodeJq" placeholder="请输入确认码" style="width: 150px"></el-input>
  1652. </div>
  1653. </div>
  1654. <div class="flex a-c u-f-sa" v-if="renewalCodeSyImg">
  1655. <span>商业转保确认码</span>
  1656. <div class="flex a-c f-c">
  1657. <img :src="renewalCodeSyImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  1658. <el-input v-model="renewalCodeSy" placeholder="请输入确认码" style="width: 150px"></el-input>
  1659. </div>
  1660. </div>
  1661. <span slot="footer" class="dialog-footer">
  1662. <el-button size="small" @click="renewalCodedialogVisible = false">取 消</el-button>
  1663. <el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
  1664. </span>
  1665. </el-dialog>
  1666. <el-dialog :title="contributingState ? '选择特约' : '提交核保'" :visible.sync="hbsubmitdialogVisible" width="1200px">
  1667. <div style="margin-bottom: 20px; font-weight: bold">特约选择</div>
  1668. <el-table size="small" :data="zijinengageListData" border v-loading="contributingLoading"
  1669. @select="zijinengageChange" @select-all="zijinengageChangeAll" ref="expandTablePro" highlight-current-row
  1670. @cell-dblclick="zijincellDblclick" :cell-class-name="tableCellClassName" :header-cell-style="{
  1671. background: '#F7F7F9 ',
  1672. fontWeight: '700',
  1673. color: '#333333',
  1674. }">
  1675. <el-table-column type="selection" width="55"></el-table-column>
  1676. <el-table-column prop="clauseCode" :width="80" label="特约代码" align="center"></el-table-column>
  1677. <el-table-column v-if="contributingState" :width="100" prop="riskName" label="特约险种"
  1678. align="center"></el-table-column>
  1679. <el-table-column prop="clauseName" label="特约名称" align="center"></el-table-column>
  1680. <el-table-column prop="clauseContent" label="特约内容">
  1681. <template slot-scope="scope">
  1682. <el-input @blur="hideInput" size="small" type="textarea" :ref="scope.row.index + ',' + scope.column.index"
  1683. v-model="scope.row.clauseContent" v-if="scope.row.index + ',' + scope.column.index == currentCell &&
  1684. scope.row.modifyFlag == '1'
  1685. "></el-input>
  1686. <span v-else>{{ scope.row.clauseContent }}</span>
  1687. </template>
  1688. </el-table-column>
  1689. </el-table>
  1690. <span slot="footer" class="dialog-footer">
  1691. <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
  1692. <el-button v-if="contributingState" size="small" type="primary"
  1693. @click="hbsubmitdialogVisible = false">确定</el-button>
  1694. <el-button v-else size="small" type="primary" @click="hbsubmit">提交核保</el-button>
  1695. </span>
  1696. </el-dialog>
  1697. <!-- <imageDialog ref="imageDialog" :quoteno="quoteno"></imageDialog>-->
  1698. <!-- 报价单 -->
  1699. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  1700. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  1701. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
  1702. <el-dialog :visible.sync="redictInfodialogVisible" width="70%">
  1703. <el-table :data="redictInfoMsg" style="width: 100%">
  1704. <el-table-column prop="description" label="审核意见"></el-table-column>
  1705. <el-table-column prop="opinion" label="备注"></el-table-column>
  1706. </el-table>
  1707. </el-dialog>
  1708. <!-- 生成签章 -->
  1709. <el-dialog :visible.sync="signaturedialogVisible" title="生成签章" width="14%">
  1710. <div>
  1711. <img :src="resultMessageImg" alt style="width: 100%" />
  1712. <!-- <div id="signaturecode" ref="signaturecode"></div> -->
  1713. </div>
  1714. </el-dialog>
  1715. <!-- 保单上传 -->
  1716. <el-dialog :visible.sync="policyUploaddialogVisible" width="30%">
  1717. <div slot="title" class="dialog-title">
  1718. <span>保单上传</span>
  1719. </div>
  1720. <el-form :model="policyNumberForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
  1721. <el-form-item label="交强保单:" prop="jqPolicy">
  1722. <el-upload class="upload-demo" ref="jqPolicyupload" action="#" :limit="1" :auto-upload="false"
  1723. :on-remove="(file) => removePhoto(file, policyNumberForm.jqPolicyList, 'jqPolicyList')"
  1724. :file-list="policyNumberForm.jqPolicyList" :on-change="(file) => policydrivingupload(file, 'jqPolicy')">
  1725. <el-button size="small" type="primary">点击上传</el-button>
  1726. <el-button size="small" type="primary" @click.stop="policyNumberForm.jqPolicyList = []">清空</el-button>
  1727. </el-upload>
  1728. </el-form-item>
  1729. <el-form-item label="商业保单:" prop="syPolicy">
  1730. <el-upload class="upload-demo" ref="syPolicyupload" action="#" :limit="1" :auto-upload="false"
  1731. :on-remove="(file) => removePhoto(file, policyNumberForm.syPolicyList, 'syPolicyList')"
  1732. :file-list="policyNumberForm.syPolicyList" :on-change="(file) => policydrivingupload(file, 'syPolicy')">
  1733. <el-button size="small" type="primary">点击上传</el-button>
  1734. <el-button size="small" type="primary" @click.stop="policyNumberForm.syPolicyList = []">清空</el-button>
  1735. </el-upload>
  1736. </el-form-item>
  1737. <el-form-item label="非车保单:" prop="noPolicy">
  1738. <el-upload class="upload-demo" ref="noPolicyupload" action="#" :limit="1" :auto-upload="false"
  1739. :on-remove="(file) => removePhoto(file, policyNumberForm.noPolicyList, 'noPolicyList')"
  1740. :file-list="policyNumberForm.noPolicyList" :on-change="(file) => policydrivingupload(file, 'noPolicy')">
  1741. <el-button size="small" type="primary">点击上传</el-button>
  1742. <el-button size="small" type="primary" @click.stop="policyNumberForm.noPolicyList = []">清空</el-button>
  1743. </el-upload>
  1744. </el-form-item>
  1745. <el-form-item label="交强电子标志:" prop="jqSign">
  1746. <el-upload class="upload-demo" ref="jqSignupload" action="#" :limit="1" :auto-upload="false"
  1747. :on-remove="(file) => removePhoto(file, policyNumberForm.jqSignList, 'jqSignList')"
  1748. :file-list="policyNumberForm.jqSignList" :on-change="(file) => policydrivingupload(file, 'jqSign')">
  1749. <el-button size="small" type="primary">点击上传</el-button>
  1750. <el-button size="small" type="primary" @click.stop="policyNumberForm.jqSignList = []">清空</el-button>
  1751. </el-upload>
  1752. </el-form-item>
  1753. </el-form>
  1754. <span slot="footer" class="dialog-footer">
  1755. <el-button size="small" @click="policyUploaddialogVisible = false">取 消</el-button>
  1756. <el-button size="small" type="primary" @click="policyUploaddialogVisible = false">确 定</el-button>
  1757. </span>
  1758. </el-dialog>
  1759. <!-- 影像上传 -->
  1760. <el-dialog :visible.sync="imageUploaddialogVisible" width="1070px">
  1761. <div slot="title" class="dialog-title">
  1762. <span>影像上传</span>
  1763. </div>
  1764. <el-row>
  1765. <el-col :span="4">
  1766. <div class="tab-style">
  1767. <li class="liMenu" :class="idx == tabLiIndex ? 'tabLi-style' : ''" @click="tabLiScroll(item.scroll, idx)"
  1768. v-for="(item, idx) in tabLimenu" :key="idx">
  1769. {{ item.name }}
  1770. </li>
  1771. </div>
  1772. </el-col>
  1773. <el-col :span="20" style="height: 320px; overflow-y: auto">
  1774. <div class="flex f-wrap" id="vehicle">
  1775. <div class="aaa">
  1776. <span>1.行驶证主页</span>
  1777. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList1', 'C01')
  1778. " :file-list="imgList1" ref="upload1" :class="{ styleB: imgList1.length == 1 }">
  1779. <img v-show="imgList1.length == 0" src="../../../../static/carfront.png"
  1780. style="width: 100%; height: 100%" />
  1781. <div slot="file" slot-scope="{ file }" v-if="imgList1.length > 0">
  1782. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1783. <span class="el-upload-list__item-actions">
  1784. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList1')">
  1785. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1786. <i class="el-icon-delete"></i>
  1787. </span>
  1788. </span>
  1789. </div>
  1790. </el-upload>
  1791. </div>
  1792. <div class="aaa">
  1793. <span>2.行驶证副页</span>
  1794. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList2', 'D01')
  1795. " :file-list="imgList2" ref="upload2" :class="{ styleB: imgList2.length === 1 }">
  1796. <img v-show="imgList2.length == 0" src="../../../../static/carback.png"
  1797. style="width: 100%; height: 100%" />
  1798. <div slot="file" slot-scope="{ file }">
  1799. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1800. <span class="el-upload-list__item-actions">
  1801. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList2')">
  1802. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1803. <i class="el-icon-delete"></i>
  1804. </span>
  1805. </span>
  1806. </div>
  1807. </el-upload>
  1808. </div>
  1809. <div class="aaa">
  1810. <span>3.机动车辆登记证书</span>
  1811. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList12', 'TAR05')
  1812. " :file-list="imgList12" ref="upload2" :class="{ styleB: imgList12.length === 1 }">
  1813. <img v-show="imgList12.length == 0" src="../../../../static/carback.png"
  1814. style="width: 100%; height: 100%" />
  1815. <div slot="file" slot-scope="{ file }">
  1816. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1817. <span class="el-upload-list__item-actions">
  1818. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList12')">
  1819. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1820. <i class="el-icon-delete"></i>
  1821. </span>
  1822. </span>
  1823. </div>
  1824. </el-upload>
  1825. </div>
  1826. <div class="aaa">
  1827. <span>4.新车合格证</span>
  1828. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  1829. drivingupload(file, 'imageList5', 'imgList9', 'XC00')
  1830. " :file-list="imgList9" multiple ref="upload3" :class="{ styleB: imgList9.length === 1 }">
  1831. <img v-show="imgList9.length == 0" src="../../../../static/userfront.png"
  1832. style="width: 100%; height: 100%" />
  1833. <div slot="file" slot-scope="{ file }">
  1834. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1835. <span class="el-upload-list__item-actions">
  1836. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList9')">
  1837. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1838. <i class="el-icon-delete"></i>
  1839. </span>
  1840. </span>
  1841. </div>
  1842. </el-upload>
  1843. </div>
  1844. <div class="aaa">
  1845. <span>5.购车发票</span>
  1846. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  1847. drivingupload(file, 'imageList5', 'imgList10', 'GC00')
  1848. " :file-list="imgList10" multiple ref="upload4" :class="{ styleB: imgList10.length === 1 }">
  1849. <img v-show="imgList10.length == 0" src="../../../../static/userfront.png"
  1850. style="width: 100%; height: 100%" />
  1851. <div slot="file" slot-scope="{ file }">
  1852. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1853. <span class="el-upload-list__item-actions">
  1854. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList10')">
  1855. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1856. <i class="el-icon-delete"></i>
  1857. </span>
  1858. </span>
  1859. </div>
  1860. </el-upload>
  1861. </div>
  1862. </div>
  1863. <div class="flex f-wrap" id="owner">
  1864. <div class="aaa">
  1865. <span>1.车主身份证(正面)</span>
  1866. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList3', 'C02')
  1867. " :file-list="imgList3" multiple ref="upload3" :class="{ styleB: imgList3.length === 1 }">
  1868. <img v-show="imgList3.length == 0" src="../../../../static/userfront.png"
  1869. style="width: 100%; height: 100%" />
  1870. <div slot="file" slot-scope="{ file }">
  1871. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1872. <span class="el-upload-list__item-actions">
  1873. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList3')">
  1874. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1875. <i class="el-icon-delete"></i>
  1876. </span>
  1877. </span>
  1878. </div>
  1879. </el-upload>
  1880. </div>
  1881. <div class="aaa">
  1882. <span>2.车主身份证(反面)</span>
  1883. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList4', 'D02')
  1884. " :file-list="imgList4" multiple ref="upload4" :class="{ styleB: imgList4.length === 1 }">
  1885. <img v-show="imgList4.length == 0" src="../../../../static/userback.png"
  1886. style="width: 100%; height: 100%" />
  1887. <div slot="file" slot-scope="{ file }">
  1888. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1889. <span class="el-upload-list__item-actions">
  1890. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1891. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1892. <i class="el-icon-delete"></i>
  1893. </span>
  1894. </span>
  1895. </div>
  1896. </el-upload>
  1897. </div>
  1898. <div class="aaa">
  1899. <span>3.车主营业执照</span>
  1900. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple :on-change="(file) => drivingupload(file, 'imageList2', 'imgList26', 'Y02')"
  1901. ref="upload4" :file-list="imgList26" :class="{ styleB: imgList26.length === 1 }">
  1902. <img v-show="imgList26.length == 0" src="../../../../static/userfront.png" style="width: 100%; height: 100%" :class="{ styleB: imgList26.length === 1 }" />
  1903. <div slot="file" slot-scope="{ file }">
  1904. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1905. <span class="el-upload-list__item-actions">
  1906. <span class="el-upload-list__item-delete"
  1907. @click="handleRemove1(file, 'imageList2', 'imgList26')">
  1908. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1909. <i class="el-icon-delete"></i>
  1910. </span>
  1911. </span>
  1912. </div>
  1913. </el-upload>
  1914. </div>
  1915. </div>
  1916. <div class="flex f-wrap" id="applicant">
  1917. <div class="aaa">
  1918. <span>1.投保人身份证(正面)</span>
  1919. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList5', 'C03')
  1920. " :file-list="imgList5" multiple ref="upload5" :class="{ styleB: imgList5.length === 1 }">
  1921. <img v-show="imgList5.length == 0" src="../../../../static/userfront.png"
  1922. style="width: 100%; height: 100%" />
  1923. <div slot="file" slot-scope="{ file }">
  1924. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1925. <span class="el-upload-list__item-actions">
  1926. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList5')">
  1927. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1928. <i class="el-icon-delete"></i>
  1929. </span>
  1930. </span>
  1931. </div>
  1932. </el-upload>
  1933. </div>
  1934. <div class="aaa">
  1935. <span>2.投保人身份证(反面)</span>
  1936. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList6', 'D03')
  1937. " :file-list="imgList6" multiple ref="upload6" :class="{ styleB: imgList6.length === 1 }">
  1938. <img v-show="imgList6.length == 0" src="../../../../static/userback.png"
  1939. style="width: 100%; height: 100%" />
  1940. <div slot="file" slot-scope="{ file }">
  1941. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1942. <span class="el-upload-list__item-actions">
  1943. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList6')">
  1944. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1945. <i class="el-icon-delete"></i>
  1946. </span>
  1947. </span>
  1948. </div>
  1949. </el-upload>
  1950. </div>
  1951. <div class="aaa">
  1952. <span>3.投保人营业执照</span>
  1953. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList27', 'Y03')
  1954. " :file-list="imgList27" multiple ref="upload6" :class="{ styleB: imgList27.length === 1 }" >
  1955. <img v-show="imgList27.length == 0" src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  1956. <div slot="file" slot-scope="{ file }">
  1957. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1958. <span class="el-upload-list__item-actions">
  1959. <span class="el-upload-list__item-delete"
  1960. @click="handleRemove1(file, 'imageList3', 'imgList27')">
  1961. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1962. <i class="el-icon-delete"></i>
  1963. </span>
  1964. </span>
  1965. </div>
  1966. </el-upload>
  1967. </div>
  1968. </div>
  1969. <div class="flex f-wrap">
  1970. <div class="aaa">
  1971. <span id="insured">1.被保人身份证(正面)</span>
  1972. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList7', 'C04')
  1973. " :file-list="imgList7" multiple ref="upload7" :class="{ styleB: imgList7.length === 1 }">
  1974. <img v-show="imgList7.length == 0" src="../../../../static/userfront.png"
  1975. style="width: 100%; height: 100%" />
  1976. <div slot="file" slot-scope="{ file }">
  1977. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1978. <span class="el-upload-list__item-actions">
  1979. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList7')">
  1980. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1981. <i class="el-icon-delete"></i>
  1982. </span>
  1983. </span>
  1984. </div>
  1985. </el-upload>
  1986. </div>
  1987. <div class="aaa">
  1988. <span>2.被保人身份证(反面)</span>
  1989. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList8', 'D04')
  1990. " :file-list="imgList8" multiple ref="upload8" :class="{ styleB: imgList8.length === 1 }">
  1991. <img v-show="imgList8.length == 0" src="../../../../static/userback.png"
  1992. style="width: 100%; height: 100%" />
  1993. <div slot="file" slot-scope="{ file }">
  1994. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1995. <span class="el-upload-list__item-actions">
  1996. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList8')">
  1997. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1998. <i class="el-icon-delete"></i>
  1999. </span>
  2000. </span>
  2001. </div>
  2002. </el-upload>
  2003. </div>
  2004. <div class="aaa">
  2005. <span>3.被保人营业执照</span>
  2006. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList28', 'Y04')
  2007. " :file-list="imgList28" multiple ref="upload8" :class="{ styleB: imgList28.length === 1 }"
  2008. >
  2009. <img v-show="imgList28.length == 0" src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  2010. <div slot="file" slot-scope="{ file }">
  2011. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2012. <span class="el-upload-list__item-actions">
  2013. <span class="el-upload-list__item-delete"
  2014. @click="handleRemove1(file, 'imageList4', 'imgList28')">
  2015. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2016. <i class="el-icon-delete"></i>
  2017. </span>
  2018. </span>
  2019. </div>
  2020. </el-upload>
  2021. </div>
  2022. </div>
  2023. <div class="flex f-wrap" id="relationship">
  2024. <div class="aaa">
  2025. <span>1.关系证明</span>
  2026. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2027. drivingupload(file, 'imageList5', 'imgList11', 'GX00')
  2028. " :file-list="imgList11" multiple ref="upload3" :class="{ styleB: imgList11.length === 1 }">
  2029. <img v-show="imgList11.length == 0" src="../../../../static/userfront.png"
  2030. style="width: 100%; height: 100%" />
  2031. <div slot="file" slot-scope="{ file }">
  2032. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2033. <span class="el-upload-list__item-actions">
  2034. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList11')">
  2035. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2036. <i class="el-icon-delete"></i>
  2037. </span>
  2038. </span>
  2039. </div>
  2040. </el-upload>
  2041. </div>
  2042. </div>
  2043. <div class="flex f-wrap" id="yanchezhao">
  2044. <div class="aaa">
  2045. <span>1.验车照(车架)</span>
  2046. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2047. drivingupload(file, 'imageList6', 'imgList13', 'C0500')
  2048. " :file-list="imgList13" multiple ref="upload3" :class="{ styleB: imgList13.length === 1 }">
  2049. <img v-show="imgList13.length == 0" src="../../../../static/userfront.png"
  2050. style="width: 100%; height: 100%" />
  2051. <div slot="file" slot-scope="{ file }">
  2052. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2053. <span class="el-upload-list__item-actions">
  2054. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList13')">
  2055. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2056. <i class="el-icon-delete"></i>
  2057. </span>
  2058. </span>
  2059. </div>
  2060. </el-upload>
  2061. </div>
  2062. <div class="aaa">
  2063. <span>2.验车照(后左)</span>
  2064. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2065. drivingupload(file, 'imageList6', 'imgList14', 'C0501')
  2066. " :file-list="imgList14" multiple ref="upload3" :class="{ styleB: imgList14.length === 1 }">
  2067. <img v-show="imgList14.length == 0" src="../../../../static/userfront.png"
  2068. style="width: 100%; height: 100%" />
  2069. <div slot="file" slot-scope="{ file }">
  2070. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2071. <span class="el-upload-list__item-actions">
  2072. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList14')">
  2073. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2074. <i class="el-icon-delete"></i>
  2075. </span>
  2076. </span>
  2077. </div>
  2078. </el-upload>
  2079. </div>
  2080. <div class="aaa">
  2081. <span>3.验车照(后右)</span>
  2082. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2083. drivingupload(file, 'imageList6', 'imgList15', 'C0502')
  2084. " :file-list="imgList15" multiple ref="upload3" :class="{ styleB: imgList15.length === 1 }">
  2085. <img v-show="imgList15.length == 0" src="../../../../static/userfront.png"
  2086. style="width: 100%; height: 100%" />
  2087. <div slot="file" slot-scope="{ file }">
  2088. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2089. <span class="el-upload-list__item-actions">
  2090. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList15')">
  2091. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2092. <i class="el-icon-delete"></i>
  2093. </span>
  2094. </span>
  2095. </div>
  2096. </el-upload>
  2097. </div>
  2098. <div class="aaa">
  2099. <span>4.验车照(前右)</span>
  2100. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2101. drivingupload(file, 'imageList6', 'imgList16', 'C0503')
  2102. " :file-list="imgList16" multiple ref="upload3" :class="{ styleB: imgList16.length === 1 }">
  2103. <img v-show="imgList16.length == 0" src="../../../../static/userfront.png"
  2104. style="width: 100%; height: 100%" />
  2105. <div slot="file" slot-scope="{ file }">
  2106. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2107. <span class="el-upload-list__item-actions">
  2108. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList16')">
  2109. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2110. <i class="el-icon-delete"></i>
  2111. </span>
  2112. </span>
  2113. </div>
  2114. </el-upload>
  2115. </div>
  2116. <div class="aaa">
  2117. <span>5.验车照(前左)</span>
  2118. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2119. drivingupload(file, 'imageList6', 'imgList17', 'C0504')
  2120. " :file-list="imgList17" multiple ref="upload3" :class="{ styleB: imgList17.length === 1 }">
  2121. <img v-show="imgList17.length == 0" src="../../../../static/userfront.png"
  2122. style="width: 100%; height: 100%" />
  2123. <div slot="file" slot-scope="{ file }">
  2124. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2125. <span class="el-upload-list__item-actions">
  2126. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList17')">
  2127. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2128. <i class="el-icon-delete"></i>
  2129. </span>
  2130. </span>
  2131. </div>
  2132. </el-upload>
  2133. </div>
  2134. <div class="aaa">
  2135. <span>6.验车照(正前)</span>
  2136. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2137. drivingupload(file, 'imageList6', 'imgList18', 'C0506')
  2138. " :file-list="imgList18" multiple ref="upload3" :class="{ styleB: imgList18.length === 1 }">
  2139. <img v-show="imgList18.length == 0" src="../../../../static/userfront.png"
  2140. style="width: 100%; height: 100%" />
  2141. <div slot="file" slot-scope="{ file }">
  2142. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2143. <span class="el-upload-list__item-actions">
  2144. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList18')">
  2145. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2146. <i class="el-icon-delete"></i>
  2147. </span>
  2148. </span>
  2149. </div>
  2150. </el-upload>
  2151. </div>
  2152. <div class="aaa">
  2153. <span>7.验车照(正后)</span>
  2154. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2155. drivingupload(file, 'imageList6', 'imgList19', 'C0507')
  2156. " :file-list="imgList19" multiple ref="upload3" :class="{ styleB: imgList19.length === 1 }">
  2157. <img v-show="imgList19.length == 0" src="../../../../static/userfront.png"
  2158. style="width: 100%; height: 100%" />
  2159. <div slot="file" slot-scope="{ file }">
  2160. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2161. <span class="el-upload-list__item-actions">
  2162. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList19')">
  2163. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2164. <i class="el-icon-delete"></i>
  2165. </span>
  2166. </span>
  2167. </div>
  2168. </el-upload>
  2169. </div>
  2170. <div class="aaa">
  2171. <span>8.验车照(人车合影)</span>
  2172. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2173. drivingupload(file, 'imageList6', 'imgList20', 'C0505')
  2174. " :file-list="imgList20" multiple ref="upload3" :class="{ styleB: imgList20.length === 1 }">
  2175. <img v-show="imgList20.length == 0" src="../../../../static/userfront.png"
  2176. style="width: 100%; height: 100%" />
  2177. <div slot="file" slot-scope="{ file }">
  2178. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2179. <span class="el-upload-list__item-actions">
  2180. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList20')">
  2181. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2182. <i class="el-icon-delete"></i>
  2183. </span>
  2184. </span>
  2185. </div>
  2186. </el-upload>
  2187. </div>
  2188. <div class="aaa">
  2189. <span>9.验车照(地标合影)</span>
  2190. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2191. drivingupload(file, 'imageList6', 'imgList21', 'C0508')
  2192. " :file-list="imgList21" multiple ref="upload3" :class="{ styleB: imgList21.length === 1 }">
  2193. <img v-show="imgList21.length == 0" src="../../../../static/userfront.png"
  2194. style="width: 100%; height: 100%" />
  2195. <div slot="file" slot-scope="{ file }">
  2196. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2197. <span class="el-upload-list__item-actions">
  2198. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList21')">
  2199. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2200. <i class="el-icon-delete"></i>
  2201. </span>
  2202. </span>
  2203. </div>
  2204. </el-upload>
  2205. </div>
  2206. <div class="aaa">
  2207. <span>10.验车照(工作台)</span>
  2208. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2209. drivingupload(file, 'imageList6', 'imgList22', 'C0509')
  2210. " :file-list="imgList22" multiple ref="upload3" :class="{ styleB: imgList22.length === 1 }">
  2211. <img v-show="imgList22.length == 0" src="../../../../static/userfront.png"
  2212. style="width: 100%; height: 100%" />
  2213. <div slot="file" slot-scope="{ file }">
  2214. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2215. <span class="el-upload-list__item-actions">
  2216. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList22')">
  2217. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2218. <i class="el-icon-delete"></i>
  2219. </span>
  2220. </span>
  2221. </div>
  2222. </el-upload>
  2223. </div>
  2224. <div class="aaa">
  2225. <span>11.验车照(天窗)</span>
  2226. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2227. drivingupload(file, 'imageList6', 'imgList23', 'C0510')
  2228. " :file-list="imgList23" multiple ref="upload3" :class="{ styleB: imgList23.length === 1 }">
  2229. <img v-show="imgList23.length == 0" src="../../../../static/userfront.png"
  2230. style="width: 100%; height: 100%" />
  2231. <div slot="file" slot-scope="{ file }">
  2232. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2233. <span class="el-upload-list__item-actions">
  2234. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList23')">
  2235. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2236. <i class="el-icon-delete"></i>
  2237. </span>
  2238. </span>
  2239. </div>
  2240. </el-upload>
  2241. </div>
  2242. </div>
  2243. <div class="flex f-wrap" id="snbaodan">
  2244. <div class="aaa">
  2245. <span>1.上年商业险保单</span>
  2246. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  2247. drivingupload(file, 'imageList6', 'imgList24', 'LAST_INSURANCE_POLICY')
  2248. " :file-list="imgList24" multiple ref="upload3" :class="{ styleB: imgList24.length === 1 }">
  2249. <img v-show="imgList24.length == 0" src="../../../../static/userfront.png"
  2250. style="width: 100%; height: 100%" />
  2251. <div slot="file" slot-scope="{ file }">
  2252. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2253. <span class="el-upload-list__item-actions">
  2254. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList24')">
  2255. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2256. <i class="el-icon-delete"></i>
  2257. </span>
  2258. </span>
  2259. </div>
  2260. </el-upload>
  2261. </div>
  2262. </div>
  2263. </el-col>
  2264. </el-row>
  2265. <span slot="footer" class="dialog-footer">
  2266. <el-button size="small" @click="imageUploaddialogVisible = false">取 消</el-button>
  2267. <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
  2268. </span>
  2269. </el-dialog>
  2270. <floatingBar />
  2271. </div>
  2272. </template>
  2273. <script>
  2274. import {Decimal} from "decimal.js";
  2275. let _self;
  2276. import QRCode from "qrcodejs2";
  2277. import Cookies from "js-cookie";
  2278. import CommonUtil from "@/utils/comutil.js";
  2279. import {
  2280. getAgeByIdCard,
  2281. searchkey,
  2282. addressCode,
  2283. getGenderByIdCard,
  2284. } from "@/utils/validate.js";
  2285. import citydata from "@/assets/js/citydata.js";
  2286. import yongchengData from '../../../assets/js/yongchengData';
  2287. import { regionData, codeToText } from "element-china-area-data";
  2288. import { base64ToPath } from "@/common/image-tools-base64.js";
  2289. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  2290. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  2291. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  2292. import imageDialog from "@/views/Core/components/imageDialog.vue";
  2293. import floatingBar from '@/components/customerService/floatingBar.vue';//表单组件
  2294. import { mapState } from "vuex";
  2295. export default {
  2296. inject: ["reload"],
  2297. name: "qrCode",
  2298. data() {
  2299. var checkpurchasePrice = (rule, value, callback) => {
  2300. if (!value) {
  2301. callback(new Error("新车购置价不能为空"));
  2302. } else if (value == 0) {
  2303. callback(new Error("新车购置价不能为零"));
  2304. } else {
  2305. callback();
  2306. }
  2307. };
  2308. var checkframeNo = (rule, value, callback) => {
  2309. if (value.length < 17) {
  2310. callback(new Error("车架号不足17位"));
  2311. } else if (
  2312. value.indexOf("I") != "-1" ||
  2313. value.indexOf("O") != "-1" ||
  2314. value.indexOf("Q") != "-1"
  2315. ) {
  2316. callback(new Error("车架号不能包含(I O Q)三个字母"));
  2317. } else {
  2318. callback();
  2319. }
  2320. };
  2321. var carPhoneValid = (rule, value, callback) => {
  2322. const plateNumber =
  2323. /^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领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})$/;
  2324. if (!value) {
  2325. callback(new Error("请输入车牌号"));
  2326. } else if (plateNumber.test(value)) {
  2327. callback();
  2328. } else {
  2329. callback(new Error("请输入正确的车牌号"));
  2330. }
  2331. };
  2332. return {
  2333. // add by hxl 2024-12-16 ---begin
  2334. orderExternalStatus: 0,
  2335. companyName:"",
  2336. xxNowCostsId:"",
  2337. costFlag: "",
  2338. isInquiryNow:"",
  2339. isInquirySelectFlag:false,
  2340. isInquirySelect:[
  2341. {
  2342. id:"1",
  2343. value:"是"
  2344. },
  2345. {
  2346. id:"2",
  2347. value:"否"
  2348. },
  2349. ],
  2350. ztreeNodes: [],
  2351. // add by hxl 2024-12-16 -------end
  2352. inquiryNowList: [], // 现询列表
  2353. isInquiryNowDisable: false,
  2354. taikangtemplateSelection: [], // 泰康
  2355. taikangInsuranceDataTable: [],
  2356. taikangaccidentDataList: [],
  2357. accidentPremiumTk: "",
  2358. accidentPremiumPA: '',
  2359. accidentFormTk: {
  2360. quantity: "1",
  2361. sumPremium: 0,
  2362. },
  2363. pinganDataDetail: [],
  2364. pinganDataDetailVisible: false,
  2365. accidentFormPA: [{
  2366. quantity: "1",
  2367. premium: 0,
  2368. pingantemplateSelection: '',
  2369. pinganInsuranceDataTable: [],
  2370. pinganInsurancetype: '',
  2371. },
  2372. {
  2373. quantity: "1",
  2374. premium: 0,
  2375. pingantemplateSelection: '',
  2376. pinganInsuranceDataTable: [],
  2377. pinganInsurancetype: '',
  2378. },
  2379. {
  2380. quantity: "1",
  2381. premium: 0,
  2382. pingantemplateSelection: '',
  2383. pinganInsuranceDataTable: [],
  2384. pinganInsurancetype: '',
  2385. }],
  2386. taikangaccidentalDrivingVo: {},
  2387. pinganaccidentalDrivingVo: {
  2388. 0: {},
  2389. 1: {},
  2390. 2: [],
  2391. },
  2392. nowCostsId: undefined, // 现询
  2393. policyNumberForm: {
  2394. jqpolicyno: "",
  2395. sypolicyno: "",
  2396. jypolicyno: "",
  2397. jqpremium: "",
  2398. sypremium: "",
  2399. jypremium: "",
  2400. taxamount: "",
  2401. commissionFeevalue: "",
  2402. otherFeevalue: "",
  2403. jqSuperviseCostsProportion: "",
  2404. sySuperviseCostsProportion: "",
  2405. noSuperviseCostsProportion: "",
  2406. jqOtherCostsProportion: "",
  2407. syOtherCostsProportion: "",
  2408. noOtherCostsProportion: "",
  2409. jqReceivableProportion: "",
  2410. syReceivableProportion: "",
  2411. noReceivableProportion: "",
  2412. jqPolicyList: [],
  2413. syPolicyList: [],
  2414. jqSignList: [],
  2415. noPolicyList: [],
  2416. noCostsProportion: '',
  2417. jqCostsProportion: '',
  2418. syCostsProportion: '',
  2419. },
  2420. watermarkedImage: "",
  2421. redictInfoMsg: [],
  2422. redictInfodialogVisible: false,
  2423. qrcodeWidth: "180",
  2424. qrcodeHeight: "180",
  2425. activeName: "1",
  2426. isTaxSourceModel: "",
  2427. tabLiIndex: 0,
  2428. tabLimenu: [
  2429. {
  2430. name: "车辆信息",
  2431. scroll: "vehicle",
  2432. },
  2433. {
  2434. name: "车主信息",
  2435. scroll: "owner",
  2436. },
  2437. {
  2438. name: "投保人信息",
  2439. scroll: "applicant",
  2440. },
  2441. {
  2442. name: "被保人信息",
  2443. scroll: "insured",
  2444. },
  2445. {
  2446. name: "关系证明",
  2447. scroll: "relationship",
  2448. },
  2449. {
  2450. name: "验车照",
  2451. scroll: "yanchezhao",
  2452. },
  2453. {
  2454. name: "上年商业险保单",
  2455. scroll: "snbaodan",
  2456. },
  2457. ],
  2458. packageValue: "",
  2459. packageOptions: [],
  2460. zhongmeitemplateSelection: "", //中煤驾意险产品选中值
  2461. zhongmeiInsuranceData: [], //中煤驾意险产品列表数据
  2462. zhongmeiInsuranceDataTable: [], //中煤驾意险产品明细方案数据
  2463. zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
  2464. pinganInsuranceData: [], //平安驾意险产品列表数据
  2465. currentCell: null,
  2466. feeDetailInfo: [], //费用明细信息
  2467. immediatelyValue: false,
  2468. isRetractZJ: false,
  2469. isRetractHB: false,
  2470. isRetractZM: false,
  2471. isRetractASTP: false,
  2472. isRetractZA: false,
  2473. isRetractYC: false,
  2474. isRetractRS: false,
  2475. anshengInsurancetype: "",
  2476. iscCrownerShow: false,
  2477. isApplicantShow: false,
  2478. isInsuredShow: false,
  2479. formInline: {},
  2480. anshengtemplateSelection: "", //安盛
  2481. anshengInsuranceData: [], //安盛驾意险
  2482. anshengInsuranceDataTable: [], //安盛驾意险
  2483. anshengaccidentalDrivingVo: {}, //安盛驾意险
  2484. hengbangtemplateSelection: "", //恒邦
  2485. hengbangInsuranceData: [], //恒邦驾意险
  2486. hengbangInsuranceDataTable: [],
  2487. hengbangaccidentalDrivingVo: {}, //恒邦驾意险
  2488. chengtaitemplateSelection: "", //诚泰
  2489. chengtaiInsuranceData: [], //诚泰驾意险
  2490. chengtaiInsuranceDataTable: [],
  2491. chengtaiaccidentalDrivingVo: {}, //诚泰驾意险
  2492. insuranceHN: "", //华农
  2493. huanongInsuranceData: [], //华农驾意险
  2494. huanongInsuranceDataTable: [],
  2495. huanongaccidentalDrivingVo: {}, //华农驾意险
  2496. renshouaccidentalDrivingVo: {}, //人寿意外险
  2497. renshouInsuranceData: [], //-人寿意外险list
  2498. ziJinInsuranceData: [], //-紫金意外险list
  2499. zhonganInsuranceData: [], //众安驾意险
  2500. zhonganaccidentalDrivingVo: {}, //众安驾意险
  2501. zijinInsuranceDataTable: [],
  2502. zijintemplateSelection: "",
  2503. accidentalDrivingVo: [], //-紫金意外险传参
  2504. zijinengageListData: [], //紫金特约
  2505. zijinengageList: [], //紫金特约
  2506. // ------------紫金意外险
  2507. renshoutemplateSelection: "", //人寿
  2508. renshouInsuranceDataTable: [],
  2509. zhongantemplateSelection: "", //众安
  2510. zhonganInsuranceDataTable: [],
  2511. taipingtemplateSelection: "", //太平
  2512. taipingInsuranceData: [], //太平驾意险
  2513. TPDrivingChangeInsuranceData: [],
  2514. taipingaccidentalDrivingVo: {}, //太平驾意险
  2515. licenseplate: true,
  2516. calculateLoading: false, //保费计算按钮 节流
  2517. preserveQuoteLoading: false, //保存按钮
  2518. emporaryLoading: false,
  2519. accidentForm: {
  2520. quantity: "1",
  2521. sumPremium: 0,
  2522. }, //永诚意外险内容
  2523. accidentFormHN: {
  2524. allQuantity: "1",
  2525. quantity: "1",
  2526. }, //华农意外险内容
  2527. yongchengaccidentDataList: [], //永诚意外险
  2528. yongchengtemplateSelection: "",
  2529. guoRenaccidentDataList: [], //国任意外险
  2530. guoRenInsuranceDataTable: [],
  2531. guoRenaccidentDataListChild: [],
  2532. guoRenaccidentalDrivingVo: {}, //国任驾意险
  2533. dajiatemplateSelection: "",
  2534. dajiaaccidentDataListChild: [],
  2535. dajiaaccidentForm: {},
  2536. dajiaInsuranceData: [], //大家意外险
  2537. dajiaInsuranceDataTable: [],
  2538. dajiaaccidentalDrivingVo: {},
  2539. yongchengInsuranceDataTable: [],
  2540. guoRenaccidentLoading: false,
  2541. contributingLoading: false,
  2542. guoRenaccidentPremium: "",
  2543. guoRenaccidentForm: {
  2544. quantity: "1",
  2545. sumPremium: 0,
  2546. }, //国任意外险内容
  2547. accidentFormZM: {
  2548. quantity: "1",
  2549. sumPremium: 0,
  2550. }, //中煤意外险内容
  2551. boHaiaccidentDataList: [], //渤海意外险
  2552. boHaigtemplateSelection: '',
  2553. boHaiaccidentForm: {
  2554. copies: "1",
  2555. policyNum: 0,
  2556. },
  2557. bohaiInsuranceDataTable: [],
  2558. accidentPremium: "",
  2559. accidentPremiumZM: "",
  2560. contributingState: false, //是否为国任特约
  2561. pickerOptions: {
  2562. disabledDate(time) {
  2563. //若选择的日期小于当前日期(包含今天)
  2564. return time.getTime() > Date.now();
  2565. //若选择的日期大于当前日期(不包含今天): time.getTime() < Date.now()
  2566. //若选择的日期小于当前日期(不包含今天): time.getTime() > Date.now() - 8.64e7
  2567. //若选择的日期小于等于当前日期(包含今天): time.getTime() > Date.now()
  2568. },
  2569. },
  2570. attributionform: {
  2571. //续保查询数据
  2572. configure: [],
  2573. companyId: "",
  2574. },
  2575. continuousAction: [], //续保配置项
  2576. //永诚转保确认码
  2577. cqryCdeJq: "",
  2578. cqryCdeSy: "",
  2579. renewalCodeJq: "", //交强确认码
  2580. renewalCodeSy: "", //商业确认码
  2581. renewalCodeJqImg: "", //交强图片
  2582. renewalCodeSyImg: "", //商业图片
  2583. //-----------------
  2584. showViewer: false,
  2585. transferDateShow: false, //转移登记日期
  2586. yonganchecked: false, //永安驾意险
  2587. renbaochecked: false, //人保驾意险
  2588. zhongmeichecked: false, //中煤驾意险
  2589. hengbangchecked: false, //恒邦驾意险
  2590. yongchengchecked: false, //永诚驾意险
  2591. yonganDrivinglist: [],
  2592. renbaoDrivinglist: [],
  2593. zhongmeiDrivinglist: [],
  2594. hengbangDrivinglist: [],
  2595. yongchengDrivinglist: [],
  2596. tbczcarShow: true, //投保人同车主
  2597. bbczcarShow: false, //被保人同车主
  2598. bbtbcarShow: true, //被保人同投保人
  2599. imageUploadShow: true, //上传影像显示
  2600. ProViewImg: "", //预览图片
  2601. carfrontImg: "", //行驶证正面
  2602. carbackImg: "", //行驶证背面
  2603. userfrontImg: "", //身份证正面
  2604. userbackImg: "", //身份证背面
  2605. businessImg: "",
  2606. CarFrontFile: "", //车正面文件流
  2607. CarBackFile: "", //车背面文件流
  2608. C02File: "",
  2609. D02File: "",
  2610. C03File: "",
  2611. D03File: "",
  2612. C04File: "",
  2613. D04File: "",
  2614. userIndex: 1, //区分三种人员
  2615. TabName: "car", //默认选项卡
  2616. value1: "",
  2617. chexingdialogVisible: false, //车型选择 显示/隐藏
  2618. sbdmdialogVisible: false, //车型车辆识别代码选择 显示/隐藏
  2619. codedialogVisible: false, //二维码 显示/隐藏
  2620. codedialogVisiblePro: false,
  2621. uploadcardialogVisible: false, //行驶证识别 显示/隐藏
  2622. uploaduserdialogVisible: false, //身份证识别 显示/隐藏
  2623. imageUploaddialogVisible: false, //影像上传 显示/隐藏
  2624. policyUploaddialogVisible: false, //保单上传
  2625. underwritingdialogVisible: false, //核保信息 显示/隐藏
  2626. renewalCodedialogVisible: false, //转保确认码输入
  2627. hbsubmitdialogVisible: false, //核保弹框
  2628. signaturedialogVisible: false, //生成签章
  2629. signaturecode: null,
  2630. Carinsurance: {
  2631. jqinsurance: "1", //交强险
  2632. syinsurance: "1", //商业险
  2633. },
  2634. jqchecked: true,
  2635. sychecked: false,
  2636. jqstartDate: "", //交强时间
  2637. jqendDate: "", //交强时间
  2638. systartDate: "", //商业时间
  2639. syendDate: "", //商业时间
  2640. loading: false, //加载事件
  2641. reslist: [], //车型列表
  2642. userId: "", //出单工号
  2643. carInfo: {
  2644. powerScale: "", ///功率
  2645. licenseNo: "", //车牌号
  2646. brandName: "", //车辆品牌型号
  2647. vinNo: "", //车架号
  2648. engineNo: "", //发动机号
  2649. modelCode: "", //车型编码
  2650. seatCount: null, //核定载客量 核定载人数
  2651. purchasePrice: null, //新车购置价最低,行业实际价值,协商价值
  2652. carBrand: "", //车型品牌
  2653. ciCarName: "", //行业车型名称
  2654. ciModelCode: "", //行业车型编码
  2655. completeKerbMass: "", //整备质量
  2656. exhaustScale: "", //排量
  2657. factory: "", //工厂名称
  2658. factoryid: "", //工厂编码
  2659. frameNo: "", //车架号
  2660. licenseTypeCode: "02", //号牌种类
  2661. vehicleclass: "", //车辆类型
  2662. familyName: "", //车型
  2663. modelcname: "", //车型名称
  2664. powertypecode: "", //燃料类型编码
  2665. vehicleweight: "", //总质量
  2666. limitLoad: "", //核定载质量
  2667. caryear: null, //年款
  2668. cimodelclass: "A0", //车辆种类
  2669. energyType: "0", //能源类型
  2670. enginedesc: "", //排量
  2671. registerDate: "", //注册日期
  2672. issueDate: "", //发证日期
  2673. transferFlag: 0, //过户标志
  2674. transferFlagBi: false, //商业险是否过户
  2675. transferDate: "", //过户日期
  2676. loanStatus: 0, //贷款标志
  2677. firstBeneMan: "", //第一受益人
  2678. noLicenseFlag: false, //是否新车
  2679. cartype: "", //客车A0 货车H0
  2680. carnature: "02", //使用性质
  2681. vehicleUse: "05",
  2682. property: "1", //所属性质 1个人 2企业 3个人
  2683. },
  2684. carform: {
  2685. carOwner: "", //车主
  2686. licenseNo: "", //车牌号
  2687. modelcname: "", //车辆品牌型号
  2688. frameNo: "", //车架号
  2689. engineNo: "", //发动机号
  2690. registerDate: "", //注册日期
  2691. issueDate: "", //发证日期
  2692. grossMass: "", //总质量
  2693. unladenMass: "", //整备质量
  2694. limitLoad: "", //核定载质量
  2695. approvedPassengersCapacity: "", //核定载客数
  2696. },
  2697. ownerInfoform: {
  2698. name: "",
  2699. identifyType: "",
  2700. identifyNumber: "",
  2701. age: "", //年龄
  2702. gender: "", //性别
  2703. addr: "",
  2704. email: "",
  2705. mobile: "",
  2706. identifyValidDate: "", //有效期起期
  2707. identifyValidEndDate: "", //有效期止期
  2708. // province: "",//省
  2709. // city: "",//市
  2710. // county: "",//县
  2711. },
  2712. riskList: [], //险种大类信息
  2713. kindList: [], //商业险险别
  2714. ownerInfo: {
  2715. //车主
  2716. name: "", //姓名
  2717. identifyType: "01", //身份证类型
  2718. identifyNumber: "", //身份证号
  2719. age: "", //年龄
  2720. gender: "", //性别
  2721. addr: "", //地址
  2722. email: "", //邮箱
  2723. mobile: "", //电话
  2724. organizationCode:"",
  2725. identifyValidDate: "", //有效期起期
  2726. identifyValidEndDate: "", //有效期止期
  2727. property:'1',
  2728. // province: "",//省
  2729. // city: "",//市
  2730. // county: "",//县
  2731. provinceData: [], //省市区
  2732. },
  2733. policyHolderInfo: {
  2734. //投保人
  2735. name: "", //姓名
  2736. identifyType: "01", //身份证类型
  2737. identifyNumber: "", //身份证号
  2738. age: "", //年龄
  2739. gender: "", //性别
  2740. addr: "", //地址
  2741. email: "", //邮箱
  2742. mobile: "", //电话
  2743. property:'1',
  2744. identifyValidDate: "", //有效期起期
  2745. identifyValidEndDate: "", //有效期止期
  2746. organizationCode:"",
  2747. // province: "",//省
  2748. // city: "",//市
  2749. // county: "",//县
  2750. provinceData: [], //省市区
  2751. },
  2752. insuredPersonInfo: {
  2753. //被保人
  2754. name: "", //姓名
  2755. identifyType: "01", //身份证类型
  2756. identifyNumber: "", //身份证号
  2757. age: "", //年龄
  2758. gender: "", //性别
  2759. addr: "", //地址
  2760. email: "", //邮箱
  2761. mobile: "", //电话
  2762. property:'1',
  2763. identifyValidDate: "", //有效期起期
  2764. identifyValidEndDate: "", //有效期止期
  2765. organizationCode:"",
  2766. provinceData: [], //省市区
  2767. // province: "",//省
  2768. // city: "",//市
  2769. // county: "",//县
  2770. },
  2771. //车船税form
  2772. vehicleAndVesselTaxForm: {
  2773. taxRelifFlag: "1", //类型
  2774. identifyNumber: "", //纳税人识别号
  2775. taxpayerIdentifier: "01", //纳税人证件类型
  2776. taxpayerName: "", //纳税人名称
  2777. extendChar2: "", //减免税凭证号
  2778. paidFreeCertificate: "", //完税凭证号
  2779. relifReason: "", //减免税原因
  2780. taxComCode: "", //税务机关代码
  2781. taxComName: "", ///税务机关名称
  2782. taxDocumentDate: "", //完税日期
  2783. taxPaidAreaCode: "", //完税凭证地区代码
  2784. taxRelief: "", //减税比例
  2785. },
  2786. //车辆用途列表
  2787. vehicleList: [],
  2788. //能源种类列表
  2789. rules: {
  2790. extendChar2: [
  2791. { required: true, message: "请输入减免税凭证号", trigger: "blur" },
  2792. ],
  2793. paidFreeCertificate: [
  2794. { required: true, message: "请输入完税凭证号", trigger: "blur" },
  2795. ],
  2796. relifReason: [
  2797. { required: true, message: "请输入减免税原因", trigger: "blur" },
  2798. ],
  2799. taxComCode: [
  2800. { required: true, message: "请输入税务机关代码", trigger: "blur" },
  2801. ],
  2802. taxComName: [
  2803. { required: true, message: "请输入税务机关名称", trigger: "blur" },
  2804. ],
  2805. taxDocumentDate: [
  2806. { required: true, message: "请输入完税日期", trigger: "blur" },
  2807. ],
  2808. taxPaidAreaCode: [
  2809. { required: true, message: "请选择完税地区", trigger: "blur" },
  2810. ],
  2811. taxRelief: [
  2812. { required: true, message: "请输入减税比例", trigger: "blur" },
  2813. ],
  2814. taxpayerName: [
  2815. { required: true, message: "请输入纳税人名称", trigger: "blur" },
  2816. ],
  2817. taxpayerIdentifier: [
  2818. { required: true, message: "请选择证件类型", trigger: "blur" },
  2819. ],
  2820. taxRelifFlag: [
  2821. { required: true, message: "请选择纳税类型", trigger: "blur" },
  2822. ],
  2823. energyType: [
  2824. { required: true, message: "请选择能源种类", trigger: "blur" },
  2825. ],
  2826. cimodelclass: [
  2827. { required: true, message: "请选择车辆种类", trigger: "blur" },
  2828. ],
  2829. carnature: [
  2830. { required: true, message: "请选择使用性质", trigger: "blur" },
  2831. ],
  2832. cartype: [
  2833. { required: true, message: "请选择车辆类型", trigger: "blur" },
  2834. ],
  2835. vehicleUse: [
  2836. { required: true, message: "请选择车辆用途", trigger: "blur" },
  2837. ],
  2838. brandName: [
  2839. { required: true, message: "请填写品牌型号", trigger: "blur" },
  2840. ],
  2841. licenseNo: [
  2842. { max: 8, message: "最多八个字符", trigger: "blur" },
  2843. { required: true, validator: carPhoneValid, trigger: "blur" },
  2844. ],
  2845. frameNo: [{ validator: checkframeNo, trigger: "blur" }],
  2846. engineNo: [
  2847. { required: true, message: "请填写发动机号", trigger: "blur" },
  2848. ],
  2849. purchasePrice: [
  2850. { required: true, validator: checkpurchasePrice, trigger: "blur" },
  2851. ],
  2852. registerDate: [
  2853. { required: true, message: "请选择注册时间", trigger: "blur" },
  2854. ],
  2855. issueDate: [
  2856. { required: true, message: "请选择发证日期", trigger: "blur" },
  2857. ],
  2858. transferDate: [
  2859. { required: true, message: "请选择转移登记日期", trigger: "blur" },
  2860. ],
  2861. seatCount: [
  2862. { required: true, message: "请输入座位数", trigger: "blur" },
  2863. ],
  2864. completeKerbMass: [
  2865. { required: true, message: "请输入整备质量", trigger: "blur" },
  2866. ],
  2867. name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
  2868. taxamount: [
  2869. { required: true, message: "请填写车船税", trigger: "blur" },
  2870. ],
  2871. signDate: [
  2872. { required: true, message: "请填写签单日期", trigger: "blur" },
  2873. ],
  2874. // identifyNumber: [
  2875. // { required: true, message: "请填写证件号", trigger: "blur" },
  2876. // { min: 18, max: 18, message: "长度在18个字符", trigger: "blur" },
  2877. // {
  2878. // 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]$/,
  2879. // message: "请输入正确的证件号",
  2880. // trigger: "blur"
  2881. // }
  2882. // ],
  2883. identifyValidDate: [
  2884. { required: true, message: "请选择起期", trigger: "blur" },
  2885. ],
  2886. identifyValidEndDate: [
  2887. { required: true, message: "请选择止期", trigger: "blur" },
  2888. ],
  2889. addr: [
  2890. { required: true, message: "请填写地址", trigger: "blur" },
  2891. { min: 8, message: "最少8个字符", trigger: "blur" },
  2892. ],
  2893. mobile: [
  2894. { required: true, message: "请填写手机号", trigger: "blur" },
  2895. { min: 11, max: 11, message: "长度在11个字符", trigger: "blur" },
  2896. {
  2897. pattern:
  2898. /^(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}$/,
  2899. message: "请输入正确的手机号",
  2900. trigger: "blur",
  2901. },
  2902. ],
  2903. email: [
  2904. { min: 10, max: 20, message: "最少10个字符", trigger: "blur" },
  2905. {
  2906. pattern:
  2907. /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
  2908. message: "请输入正确的邮箱",
  2909. trigger: "blur",
  2910. },
  2911. ],
  2912. },
  2913. CIInsureList: {
  2914. //交强险
  2915. amount: "1",
  2916. amountDesc: "投保",
  2917. amtList: [
  2918. {
  2919. label: "不投保",
  2920. value: "0",
  2921. },
  2922. {
  2923. label: "投保",
  2924. value: "1",
  2925. },
  2926. ],
  2927. kindCode: "0507",
  2928. kindName: "交强险",
  2929. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障",
  2930. },
  2931. BIInsureList: {
  2932. //商业险
  2933. amount: "0",
  2934. amountDesc: "投保",
  2935. amtList: [
  2936. {
  2937. label: "不投保",
  2938. value: "0",
  2939. },
  2940. {
  2941. label: "投保",
  2942. value: "1",
  2943. },
  2944. ],
  2945. kindCode: "0510",
  2946. kindName: "商业险",
  2947. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障",
  2948. },
  2949. insureList: [
  2950. {
  2951. amount: "0",
  2952. amountDesc: "投保",
  2953. coveragePremium: 0,
  2954. amtList: [
  2955. {
  2956. label: "不投保",
  2957. value: "0",
  2958. },
  2959. {
  2960. label: "投保",
  2961. value: "1",
  2962. },
  2963. ],
  2964. kindCode: "A",
  2965. isMainRisk: true,
  2966. kindName: "机动车损失险",
  2967. desc: "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。",
  2968. },
  2969. {
  2970. amount: "0",
  2971. amountDesc: "不投保",
  2972. coveragePremium: 0,
  2973. amtList: [
  2974. {
  2975. label: "不投保",
  2976. value: "0",
  2977. },
  2978. {
  2979. label: "10万",
  2980. value: "100000",
  2981. },
  2982. {
  2983. label: "15万",
  2984. value: "150000",
  2985. },
  2986. {
  2987. label: "20万",
  2988. value: "200000",
  2989. },
  2990. {
  2991. label: "30万",
  2992. value: "300000",
  2993. },
  2994. {
  2995. label: "50万",
  2996. value: "500000",
  2997. },
  2998. {
  2999. label: "100万",
  3000. value: "1000000",
  3001. },
  3002. {
  3003. label: "150万",
  3004. value: "1500000",
  3005. },
  3006. {
  3007. label: "200万",
  3008. value: "2000000",
  3009. },
  3010. {
  3011. label: "250万",
  3012. value: "2500000",
  3013. },
  3014. {
  3015. label: "300万",
  3016. value: "3000000",
  3017. },
  3018. {
  3019. label: "400万",
  3020. value: "4000000",
  3021. },
  3022. {
  3023. label: "500万",
  3024. value: "5000000",
  3025. },
  3026. {
  3027. label: "600万",
  3028. value: "6000000",
  3029. },
  3030. {
  3031. label: "800万",
  3032. value: "8000000",
  3033. },
  3034. {
  3035. label: "1000万",
  3036. value: "10000000",
  3037. },
  3038. ],
  3039. kindCode: "B",
  3040. isMainRisk: true,
  3041. kindName: "第三者责任险",
  3042. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。",
  3043. },
  3044. {
  3045. amount: "0",
  3046. amountDesc: "1万",
  3047. coveragePremium: 0,
  3048. amtList: [
  3049. {
  3050. label: "不投保",
  3051. value: "0",
  3052. },
  3053. {
  3054. label: "1万",
  3055. value: "10000",
  3056. },
  3057. {
  3058. label: "2万",
  3059. value: "20000",
  3060. },
  3061. {
  3062. label: "3万",
  3063. value: "30000",
  3064. },
  3065. {
  3066. label: "4万",
  3067. value: "40000",
  3068. },
  3069. {
  3070. label: "5万",
  3071. value: "50000",
  3072. },
  3073. {
  3074. label: "6万",
  3075. value: "60000",
  3076. },
  3077. {
  3078. label: "7万",
  3079. value: "70000",
  3080. },
  3081. {
  3082. label: "8万",
  3083. value: "80000",
  3084. },
  3085. {
  3086. label: "9万",
  3087. value: "90000",
  3088. },
  3089. {
  3090. label: "10万",
  3091. value: "100000",
  3092. },
  3093. {
  3094. label: "15万",
  3095. value: "150000",
  3096. },
  3097. {
  3098. label: "20万",
  3099. value: "200000",
  3100. },
  3101. {
  3102. label: "25万",
  3103. value: "250000",
  3104. },
  3105. {
  3106. label: "30万",
  3107. value: "300000",
  3108. },
  3109. {
  3110. label: "35万",
  3111. value: "350000",
  3112. },
  3113. {
  3114. label: "40万",
  3115. value: "400000",
  3116. },
  3117. {
  3118. label: "45万",
  3119. value: "450000",
  3120. },
  3121. {
  3122. label: "50万",
  3123. value: "500000",
  3124. },
  3125. ],
  3126. kindCode: "D3",
  3127. isMainRisk: true,
  3128. kindName: "司机责任险",
  3129. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。",
  3130. },
  3131. {
  3132. amount: "0",
  3133. amountDesc: "1万",
  3134. coveragePremium: 0,
  3135. amtList: [
  3136. {
  3137. label: "不投保",
  3138. value: "0",
  3139. },
  3140. {
  3141. label: "1万",
  3142. value: "10000",
  3143. },
  3144. {
  3145. label: "2万",
  3146. value: "20000",
  3147. },
  3148. {
  3149. label: "3万",
  3150. value: "30000",
  3151. },
  3152. {
  3153. label: "4万",
  3154. value: "40000",
  3155. },
  3156. {
  3157. label: "5万",
  3158. value: "50000",
  3159. },
  3160. {
  3161. label: "6万",
  3162. value: "60000",
  3163. },
  3164. {
  3165. label: "7万",
  3166. value: "70000",
  3167. },
  3168. {
  3169. label: "8万",
  3170. value: "80000",
  3171. },
  3172. {
  3173. label: "9万",
  3174. value: "90000",
  3175. },
  3176. {
  3177. label: "10万",
  3178. value: "100000",
  3179. },
  3180. {
  3181. label: "15万",
  3182. value: "150000",
  3183. },
  3184. {
  3185. label: "20万",
  3186. value: "200000",
  3187. },
  3188. {
  3189. label: "25万",
  3190. value: "250000",
  3191. },
  3192. {
  3193. label: "30万",
  3194. value: "300000",
  3195. },
  3196. {
  3197. label: "35万",
  3198. value: "350000",
  3199. },
  3200. {
  3201. label: "40万",
  3202. value: "400000",
  3203. },
  3204. {
  3205. label: "45万",
  3206. value: "450000",
  3207. },
  3208. {
  3209. label: "50万",
  3210. value: "500000",
  3211. },
  3212. ],
  3213. kindCode: "D4",
  3214. isMainRisk: true,
  3215. kindName: "乘客责任险",
  3216. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。",
  3217. },
  3218. {
  3219. amount: "0",
  3220. amountDesc: "不投保",
  3221. coveragePremium: 0,
  3222. amtList: [
  3223. {
  3224. label: "不投保",
  3225. value: "0",
  3226. },
  3227. {
  3228. label: "2千",
  3229. value: "2000",
  3230. },
  3231. {
  3232. label: "5千",
  3233. value: "5000",
  3234. },
  3235. {
  3236. label: "1万",
  3237. value: "10000",
  3238. },
  3239. {
  3240. label: "2万",
  3241. value: "20000",
  3242. },
  3243. ],
  3244. desc: "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
  3245. isMainRisk: false,
  3246. kindCode: "L",
  3247. kindName: "车身划痕险",
  3248. mainRiskCodeList: "A",
  3249. },
  3250. {
  3251. amount: "0",
  3252. amountDesc: "不投保",
  3253. coveragePremium: 0,
  3254. amtList: [
  3255. {
  3256. label: "不投保",
  3257. value: "0",
  3258. },
  3259. {
  3260. label: "5%",
  3261. value: "5",
  3262. },
  3263. {
  3264. label: "10%",
  3265. value: "10",
  3266. },
  3267. {
  3268. label: "15%",
  3269. value: "15",
  3270. },
  3271. {
  3272. label: "20%",
  3273. value: "20",
  3274. },
  3275. ],
  3276. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3277. isMainRisk: false,
  3278. kindCode: "MJ1",
  3279. kindName: "绝对免赔率特约险(车损)",
  3280. mainRiskCodeList: "A",
  3281. },
  3282. {
  3283. amount: "0",
  3284. amountDesc: "不投保",
  3285. coveragePremium: 0,
  3286. amtList: [
  3287. {
  3288. label: "不投保",
  3289. value: "0",
  3290. },
  3291. {
  3292. label: "5%",
  3293. value: "5",
  3294. },
  3295. {
  3296. label: "10%",
  3297. value: "10",
  3298. },
  3299. {
  3300. label: "15%",
  3301. value: "15",
  3302. },
  3303. {
  3304. label: "20%",
  3305. value: "20",
  3306. },
  3307. ],
  3308. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3309. isMainRisk: false,
  3310. kindCode: "MJ2",
  3311. kindName: "绝对免赔率特约险(三者)",
  3312. mainRiskCodeList: "B",
  3313. },
  3314. {
  3315. amount: "0",
  3316. amountDesc: "不投保",
  3317. coveragePremium: 0,
  3318. amtList: [
  3319. {
  3320. label: "不投保",
  3321. value: "0",
  3322. },
  3323. {
  3324. label: "5%",
  3325. value: "5",
  3326. },
  3327. {
  3328. label: "10%",
  3329. value: "10",
  3330. },
  3331. {
  3332. label: "15%",
  3333. value: "15",
  3334. },
  3335. {
  3336. label: "20%",
  3337. value: "20",
  3338. },
  3339. ],
  3340. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3341. isMainRisk: false,
  3342. kindCode: "MJ3",
  3343. kindName: "绝对免赔率特约险(司机)",
  3344. mainRiskCodeList: "D3",
  3345. },
  3346. {
  3347. amount: "0",
  3348. amountDesc: "不投保",
  3349. coveragePremium: 0,
  3350. amtList: [
  3351. {
  3352. label: "不投保",
  3353. value: "0",
  3354. },
  3355. {
  3356. label: "5%",
  3357. value: "5",
  3358. },
  3359. {
  3360. label: "10%",
  3361. value: "10",
  3362. },
  3363. {
  3364. label: "15%",
  3365. value: "15",
  3366. },
  3367. {
  3368. label: "20%",
  3369. value: "20",
  3370. },
  3371. ],
  3372. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3373. isMainRisk: false,
  3374. kindCode: "MJ4",
  3375. kindName: "绝对免赔率特约险(乘客)",
  3376. mainRiskCodeList: "D4",
  3377. },
  3378. {
  3379. amount: "0",
  3380. amountDesc: "不投保",
  3381. coveragePremium: 0,
  3382. amtList: [
  3383. {
  3384. label: "不投保",
  3385. value: "0",
  3386. },
  3387. {
  3388. label: "1万",
  3389. value: "10000",
  3390. },
  3391. {
  3392. label: "2万",
  3393. value: "20000",
  3394. },
  3395. {
  3396. label: "4万",
  3397. value: "40000",
  3398. },
  3399. {
  3400. label: "5万",
  3401. value: "50000",
  3402. },
  3403. {
  3404. label: "8万",
  3405. value: "80000",
  3406. },
  3407. {
  3408. label: "10万",
  3409. value: "100000",
  3410. },
  3411. {
  3412. label: "20万",
  3413. value: "200000",
  3414. },
  3415. {
  3416. label: "30万",
  3417. value: "300000",
  3418. },
  3419. {
  3420. label: "50万",
  3421. value: "500000",
  3422. },
  3423. {
  3424. label: "100万",
  3425. value: "1000000",
  3426. },
  3427. {
  3428. label: "200万",
  3429. value: "2000000",
  3430. },
  3431. {
  3432. label: "300万",
  3433. value: "3000000",
  3434. },
  3435. ],
  3436. kindCode: "SY_FJ_YBW1",
  3437. isMainRisk: true,
  3438. kindName: "附加医保-三者",
  3439. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)",
  3440. },
  3441. {
  3442. amount: "0",
  3443. amountDesc: "不投保",
  3444. coveragePremium: 0,
  3445. amtList: [
  3446. {
  3447. label: "不投保",
  3448. value: "0",
  3449. },
  3450. {
  3451. label: "1万",
  3452. value: "10000",
  3453. },
  3454. {
  3455. label: "2万",
  3456. value: "20000",
  3457. },
  3458. {
  3459. label: "5万",
  3460. value: "50000",
  3461. },
  3462. {
  3463. label: "10万",
  3464. value: "100000",
  3465. },
  3466. ],
  3467. kindCode: "SY_FJ_YBW2",
  3468. isMainRisk: true,
  3469. kindName: "附加医保-座位险(乘客)",
  3470. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)",
  3471. },
  3472. {
  3473. amount: "0",
  3474. amountDesc: "不投保",
  3475. coveragePremium: 0,
  3476. amtList: [
  3477. {
  3478. label: "不投保",
  3479. value: "0",
  3480. },
  3481. {
  3482. label: "1万",
  3483. value: "10000",
  3484. },
  3485. {
  3486. label: "2万",
  3487. value: "20000",
  3488. },
  3489. {
  3490. label: "5万",
  3491. value: "50000",
  3492. },
  3493. {
  3494. label: "10万",
  3495. value: "100000",
  3496. },
  3497. ],
  3498. kindCode: "SY_FJ_YBW3",
  3499. isMainRisk: true,
  3500. kindName: "附加医保-座位险(司机)",
  3501. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)",
  3502. },
  3503. {
  3504. amount: "0",
  3505. amountDesc: "不投保",
  3506. coveragePremium: 0,
  3507. amtList: [
  3508. {
  3509. label: "不投保",
  3510. value: "0",
  3511. },
  3512. {
  3513. label: "50万",
  3514. value: "500000",
  3515. },
  3516. {
  3517. label: "100万",
  3518. value: "1000000",
  3519. },
  3520. {
  3521. label: "150万",
  3522. value: "1500000",
  3523. },
  3524. {
  3525. label: "200万",
  3526. value: "2000000",
  3527. },
  3528. {
  3529. label: "250万",
  3530. value: "2500000",
  3531. },
  3532. {
  3533. label: "300万",
  3534. value: "3000000",
  3535. },
  3536. {
  3537. label: "500万",
  3538. value: "5000000",
  3539. },
  3540. {
  3541. label: "1000万",
  3542. value: "10000000",
  3543. },
  3544. ],
  3545. desc: "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
  3546. isMainRisk: false,
  3547. kindCode: "BD",
  3548. kindName: "法定节假日限额翻倍险",
  3549. mainRiskCodeList: "B",
  3550. },
  3551. {
  3552. amount: "0",
  3553. amountDesc: "不投保",
  3554. coveragePremium: 0,
  3555. amtList: [
  3556. {
  3557. label: "不投保",
  3558. value: "0",
  3559. },
  3560. {
  3561. label: "2次",
  3562. value: "2",
  3563. },
  3564. {
  3565. label: "7次",
  3566. value: "7",
  3567. },
  3568. {
  3569. label: "12次",
  3570. value: "12",
  3571. },
  3572. {
  3573. label: "17次",
  3574. value: "17",
  3575. },
  3576. {
  3577. label: "22次",
  3578. value: "22",
  3579. },
  3580. ],
  3581. desc: "道路救援服务特约条款",
  3582. isMainRisk: false,
  3583. kindCode: "TY1",
  3584. kindName: "道路救援服务特约条款",
  3585. },
  3586. {
  3587. amount: "0",
  3588. amountDesc: "不投保",
  3589. coveragePremium: 0,
  3590. desc: "车辆安全检测特约条款",
  3591. isMainRisk: false,
  3592. kindCode: "TY2",
  3593. kindName: "车辆安全检测特约条款",
  3594. },
  3595. {
  3596. amount: "0",
  3597. amountDesc: "不投保",
  3598. coveragePremium: 0,
  3599. desc: "代为驾驶服务特约条款",
  3600. isMainRisk: false,
  3601. kindCode: "TY3",
  3602. kindName: "代为驾驶服务特约条款",
  3603. },
  3604. {
  3605. amount: "0",
  3606. amountDesc: "不投保",
  3607. coveragePremium: 0,
  3608. desc: "代为送检服务特约条款",
  3609. isMainRisk: false,
  3610. kindCode: "TY4",
  3611. kindName: "代为送检服务特约条款",
  3612. },
  3613. ],
  3614. totalCompanyList: [], //报价保险公司
  3615. continuousCompanyList: [], //续保保险公司
  3616. quoteno: "", //报价号
  3617. orderno: "", //订单号
  3618. queryOrders: {
  3619. extendInfo: {},
  3620. carinfo: {},
  3621. ownerinfo: {},
  3622. applyinfo: {},
  3623. insureinfo: {},
  3624. }, //核保详情
  3625. inscompany: "", //保险公司名称
  3626. licenseNo: "", //车牌号
  3627. applyName: "", //车主名字
  3628. orderstatus: "", //订单状态
  3629. sumpremium: "", //保费合计
  3630. jqpremium: "", //交强
  3631. sypremium: "", //商业
  3632. jypremium: "", //驾意险
  3633. taxamount: "", //车船税
  3634. jqstartdate: "", //交强时间
  3635. systartdate: "", //商业时间
  3636. mobile: "", //投保人手机号
  3637. //影像回显列表
  3638. // 是否禁用上传
  3639. uploadDisabled: false,
  3640. href: "",
  3641. pageRequest: {
  3642. //归属查询
  3643. pageNum: 1,
  3644. pageSize: 20,
  3645. columnFilters: {
  3646. deptId: {
  3647. name: "deptId",
  3648. value: "9",
  3649. },
  3650. containsSubDept: {
  3651. name: "containsSubDept",
  3652. value: 1,
  3653. },
  3654. usertype: {
  3655. name: "usertype",
  3656. value: null,
  3657. },
  3658. status: {
  3659. name: "status",
  3660. value: "1",
  3661. },
  3662. id: {
  3663. name: "id",
  3664. value: "",
  3665. },
  3666. name: {
  3667. name: "name",
  3668. value: "",
  3669. },
  3670. mobile: {
  3671. name: "mobile",
  3672. value: "",
  3673. },
  3674. },
  3675. },
  3676. userform: {},
  3677. qrcode: null,
  3678. paycodeimg: "", //展示二维码
  3679. ImageUrldialogVisible: false,
  3680. paramsEdit: "",
  3681. companyId: "",
  3682. apiType: "",
  3683. insureMore: true,
  3684. // insureLength: 5,
  3685. HistoryList: [], //历史记录数据
  3686. image1: "",
  3687. image2: "",
  3688. historyRadio: "888",
  3689. sumseatCount: "", // 投保险种座位数
  3690. deptName: "",
  3691. isBottom: true,
  3692. logoImg: "", //报价单保险公司logo图
  3693. vehicleTypeoptions: [], //车辆种类
  3694. trafficManagementVehicleTypeoptions: [], //车辆类型
  3695. energyTypeoptions: [], //能源种类
  3696. taxRelifFlagoptions: [], //车船税类型
  3697. taxpayerIdentifieroptions: [], //纳税人证件类型
  3698. propertyoptions:[
  3699. {
  3700. value:'1',
  3701. label:'个人'
  3702. },{
  3703. value:'2',
  3704. label:'企业'
  3705. },
  3706. ],
  3707. relifReasonoptions: [], //减免税原因代码
  3708. relifReasonoptions: [], //减免税原因代码
  3709. provinceSelect: [],
  3710. natureOfVehicleUseoptions: [],
  3711. businessVehicleUseoptions: [],
  3712. outOfBusinessVehicleUseoptions: [],
  3713. insOrderStatusoptions: [],
  3714. lastCompanyId: "",
  3715. apiInterfaceName: "generateOrder",
  3716. isLetter3Arr: [],
  3717. isLetter3agreementId: "",
  3718. editorInfo: {},
  3719. resultMessageImg: '',
  3720. tabLiIndex: 0,
  3721. tabLimenu: [
  3722. {
  3723. name: "车辆信息",
  3724. scroll: "vehicle",
  3725. },
  3726. {
  3727. name: "车主信息",
  3728. scroll: "owner",
  3729. },
  3730. {
  3731. name: "投保人信息",
  3732. scroll: "applicant",
  3733. },
  3734. {
  3735. name: "被保人信息",
  3736. scroll: "insured",
  3737. },
  3738. {
  3739. name: "关系证明",
  3740. scroll: "relationship",
  3741. },
  3742. {
  3743. name: "验车照",
  3744. scroll: "yanchezhao",
  3745. },
  3746. {
  3747. name: "上年商业险保单",
  3748. scroll: "snbaodan",
  3749. },
  3750. ],
  3751. ProViewImg: "", //预览图片
  3752. carfrontImg: "", //行驶证正面
  3753. carbackImg: "", //行驶证背面
  3754. userfrontImg: "", //身份证正面
  3755. userbackImg: "", //身份证背面
  3756. businessImg: "",
  3757. CarFrontFile: "", //车正面文件流
  3758. CarBackFile: "", //车背面文件流
  3759. C02File: "",
  3760. D02File: "",
  3761. C03File: "",
  3762. D03File: "",
  3763. C04File: "",
  3764. D04File: "",
  3765. Y02File: "",
  3766. Y03File: "",
  3767. Y04File: "",
  3768. //影像回显列表
  3769. imgList1: [],
  3770. imgList2: [],
  3771. imgList3: [],
  3772. imgList4: [],
  3773. imgList5: [],
  3774. imgList6: [],
  3775. imgList7: [],
  3776. imgList8: [],
  3777. imgList9: [],
  3778. imgList10: [],
  3779. imgList11: [],
  3780. imgList12: [],
  3781. imgList13: [],
  3782. imgList14: [],
  3783. imgList15: [],
  3784. imgList16: [],
  3785. imgList17: [],
  3786. imgList18: [],
  3787. imgList19: [],
  3788. imgList20: [],
  3789. imgList21: [],
  3790. imgList22: [],
  3791. imgList23: [],
  3792. imgList24: [],
  3793. imgList25: [],
  3794. imgList26: [],
  3795. imgList27: [],
  3796. imgList28: [],
  3797. //影像上传列表
  3798. imageList1: [],
  3799. imageList2: [],
  3800. imageList3: [],
  3801. imageList4: [],
  3802. imageList5: [],
  3803. imageList6: [],
  3804. businessform:{
  3805. name: "", //姓名
  3806. identifyType: "02", //身份证类型
  3807. legalRepresentative: "", //法人
  3808. identifyNumber: "", //社会信用代码
  3809. addr: "", //地址
  3810. registeredCapital: "", //注册资本
  3811. businessScope: "", //经营范围
  3812. },
  3813. areaOption:yongchengData.data,
  3814. selectedOptions1: [],
  3815. selectedOptions2: [],
  3816. selectedOptions3: [],
  3817. };
  3818. },
  3819. watch: {
  3820. "carInfo.licenseNo": {
  3821. handler(val) {
  3822. if (val) {
  3823. this.carInfo.licenseNo = val.toUpperCase();
  3824. }
  3825. },
  3826. deep: true,
  3827. },
  3828. "carInfo.frameNo": {
  3829. handler(val) {
  3830. if (val) {
  3831. this.carInfo.frameNo = val.toUpperCase();
  3832. }
  3833. },
  3834. deep: true,
  3835. },
  3836. "carInfo.enginedesc": {
  3837. handler(val) {
  3838. if (val) {
  3839. this.carInfo.enginedesc = val.replace(/[A-Za-z]/g, "");
  3840. }
  3841. },
  3842. deep: true,
  3843. },
  3844. "ownerInfo.mobile": {
  3845. handler(val) {
  3846. if (val) {
  3847. this.ownerInfo.mobile = val.replace(/\s/g, "");
  3848. }
  3849. },
  3850. deep: true,
  3851. },
  3852. "policyHolderInfo.mobile": {
  3853. handler(val) {
  3854. if (val) {
  3855. this.policyHolderInfo.mobile = val.replace(/\s/g, "");
  3856. }
  3857. },
  3858. deep: true,
  3859. },
  3860. "insuredPersonInfo.mobile": {
  3861. handler(val) {
  3862. if (val) {
  3863. this.insuredPersonInfo.mobile = val.replace(/\s/g, "");
  3864. }
  3865. },
  3866. deep: true,
  3867. },
  3868. "carInfo.engineNo": {
  3869. handler(val) {
  3870. if (val) {
  3871. this.carInfo.engineNo = val.replace(/[^\w-]/gi, "").toUpperCase();
  3872. }
  3873. },
  3874. deep: true,
  3875. },
  3876. "carInfo.seatCount": {
  3877. handler(val) {
  3878. if (val) {
  3879. this.sumseatCount = val - 1;
  3880. }
  3881. },
  3882. deep: true,
  3883. },
  3884. "policyHolderInfo.identifyNumber": {
  3885. handler(val) {
  3886. if (val) {
  3887. this.vehicleAndVesselTaxForm.identifyNumber = val;
  3888. }
  3889. },
  3890. deep: true,
  3891. },
  3892. "policyHolderInfo.property": {
  3893. handler(val) {
  3894. if (val ) {
  3895. this.vehicleAndVesselTaxForm.taxpayerIdentifier =val=='0'? '10':'01';
  3896. }
  3897. },
  3898. deep: true,
  3899. },
  3900. "policyHolderInfo.organizationCode": {
  3901. handler(val) {
  3902. if (val) {
  3903. this.vehicleAndVesselTaxForm.organizationCode = val;
  3904. }
  3905. },
  3906. deep: true,
  3907. },
  3908. "policyHolderInfo.name": {
  3909. handler(val) {
  3910. if (val) {
  3911. this.vehicleAndVesselTaxForm.taxpayerName = val;
  3912. }
  3913. },
  3914. deep: true,
  3915. },
  3916. },
  3917. props: {
  3918. isdisabled: {
  3919. type: Boolean,
  3920. default: true,
  3921. },
  3922. isLetter: {
  3923. type: String,
  3924. default: "1",
  3925. },
  3926. },
  3927. components: {
  3928. detailsDialog,
  3929. quotationDialog,
  3930. quotationDialogPro,
  3931. imageDialog,
  3932. floatingBar,
  3933. "el-image-viewer": () =>
  3934. import("element-ui/packages/image/src/image-viewer"),
  3935. },
  3936. created() {
  3937. if (this.isLetter == "2") {
  3938. this.apiInterfaceName = "ordergenerateOrder";
  3939. }
  3940. // this.commpanyList(); //获取保险公司
  3941. this.getDicType("taxRelifFlag"); //车船税类型
  3942. this.getDicType("taxpayerIdentifier"); //纳税人证件类型
  3943. this.getDicType("relifReason"); //减免税原因代码
  3944. this.getDicType("vehicleType"); //车辆种类
  3945. this.getDicType("trafficManagementVehicleType"); //车辆类型
  3946. this.getDicType("energyType"); //能源种类
  3947. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  3948. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  3949. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  3950. this.getDicType("insOrderStatus"); //状态
  3951. this.$api.letter.queryCompany().then((res) => {
  3952. this.continuousCompanyList = res.data;
  3953. });
  3954. this.$api.letter.packageQuery().then((res) => {
  3955. this.packageOptions = res.data;
  3956. });
  3957. localStorage.setItem("carInfo", JSON.stringify(this.carInfo));
  3958. localStorage.setItem("insureList", JSON.stringify(this.insureList));
  3959. //--归属信息获取--
  3960. if (this.isLetter == 1 || this.isLetter == 2) {
  3961. var userId = Cookies.get("user");
  3962. if (userId == "admin") {
  3963. this.userId = "admin";
  3964. } else {
  3965. // this.userId = userId;
  3966. this.$api.user.getLoginUser().then((res) => {
  3967. if (res.code == 200) {
  3968. this.userform = res.data;
  3969. this.$api.dept.getDeptById(res.data.deptId).then((res) => {
  3970. this.deptName = res.data.name;
  3971. });
  3972. this.userId = res.data.id;
  3973. }
  3974. });
  3975. }
  3976. }
  3977. //--订单编辑回显--
  3978. // this.paramsEdit = this.$route.query.data; //接收参数
  3979. // add by hxl 2024-12-16
  3980. this.findLeftTreeData(); //获取外部协议的保险保司列表
  3981. let item ={
  3982. agreement:[],
  3983. companyName: "",
  3984. isTaxSource: "",
  3985. agreementId:"",
  3986. isInquiryNow: "",
  3987. jqpremium: "",
  3988. taxamount:"",
  3989. sypremium:"",
  3990. jypremium:"",
  3991. isInquiryFlag:""
  3992. }
  3993. this.totalCompanyList.push(item);
  3994. this.obtainProtocol(this.$route.query.data);
  3995. //初始化
  3996. },
  3997. mounted() {
  3998. //add by hxl 2024-12-16
  3999. this.obtainProtocol().then(() => this.editingWay(this.$route.query.data));
  4000. //this.editingWay(this.$route.query.data);
  4001. this.onScroll();
  4002. // console.log(this.$route.query.data.jqstartdate.split(" ")[1]);
  4003. if (this.$route.query.data) {
  4004. this.jqstartDate = this.$route.query.data.jqstartdate;
  4005. this.jqendDate = this.$route.query.data.jqenddate;
  4006. if (this.$route.query.data.jqstartdate.split(" ")[1] == "00:00:00") {
  4007. this.immediatelyValue = false;
  4008. } else {
  4009. this.immediatelyValue = true;
  4010. }
  4011. }
  4012. window.addEventListener("scroll", this.onScroll);
  4013. },
  4014. destroyed() {
  4015. window.removeEventListener("scroll", this.onScroll);
  4016. },
  4017. beforeCreate() {
  4018. _self = this;
  4019. },
  4020. computed: {
  4021. ...mapState({
  4022. collapse: (state) => state.app.collapse,
  4023. }),
  4024. issueDateOptions() {
  4025. return {
  4026. disabledDate: this.disabledDate,
  4027. };
  4028. },
  4029. sumPremium() {
  4030. let sum = new Decimal(this.policyNumberForm.jqpremium == "" ? new Decimal(0): new Decimal(this.policyNumberForm.jqpremium))
  4031. .plus(
  4032. this.policyNumberForm.taxamount == "" ? new Decimal(0) : new Decimal(this.policyNumberForm.taxamount)
  4033. )
  4034. .plus(
  4035. this.policyNumberForm.sypremium == "" ? new Decimal(0) : new Decimal(this.policyNumberForm.sypremium)
  4036. )
  4037. .plus(
  4038. this.policyNumberForm.jypremium == "" ? new Decimal(0) : new Decimal(this.policyNumberForm.jypremium)
  4039. )
  4040. .toString();
  4041. return sum;
  4042. }
  4043. },
  4044. filters: {
  4045. cap(ele) {
  4046. return _self.insOrderStatusoptions.find((item) => {
  4047. return item.dictValue === ele;
  4048. }).dictTag;
  4049. },
  4050. },
  4051. methods: {
  4052. vehicleUseChange(value){
  4053. if(value='05'){
  4054. this.carInfo.property='1';
  4055. this.ownerInfo.property='1';
  4056. this.ownerInfo.identifyType='01'
  4057. }
  4058. },
  4059. propertyDisable(item){
  4060. if(this.carInfo.vehicleUse=='05' && item.label=='企业'){
  4061. return true;
  4062. }else{
  4063. return false;
  4064. }
  4065. },
  4066. // add by hxl 2024-12-16 ---begin
  4067. //保险公司列表
  4068. findLeftTreeData: function () {
  4069. this.$api.custInfo.getExternalAgreementCompanyList({name:this.companyName}).then(res => {
  4070. this.ztreeNodes = res.data;
  4071. });
  4072. },
  4073. //保险公司改变事件
  4074. changeCompany(val){
  4075. //判断险种
  4076. this.kindListFun();
  4077. //展示协议列表
  4078. if (this.totalCompanyListBak !=null && this.totalCompanyListBak.length>0){
  4079. this.totalCompanyListBak.forEach((item, index) => {
  4080. if(item.namesimple == val){
  4081. this.totalCompanyList[0].agreement=item.agreement;
  4082. }
  4083. });
  4084. }
  4085. //清空是否、费用id
  4086. this.isInquiryNowDisable = false
  4087. this.isInquirySelectFlag = true;
  4088. this.isLetter3agreementId = "";
  4089. this.costFlag ="";
  4090. this.nowCostsId ="";
  4091. this.inquiryNowList = [];
  4092. //清空费用
  4093. this.policyNumberForm.jqCostsProportion = "";
  4094. this.policyNumberForm.noCostsProportion = "";
  4095. this.policyNumberForm.syCostsProportion = "";
  4096. },
  4097. //选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
  4098. agreementChange(val, row, index, item) {
  4099. if (this.isLetter == "3") {
  4100. this.isLetter3agreementId = "";
  4101. console.log(item)
  4102. this.isLetter3agreementId = val;
  4103. }
  4104. //清空是否、费用id
  4105. this.isInquiryNowDisable = false
  4106. this.isInquirySelectFlag = true;
  4107. this.costFlag ="";
  4108. this.nowCostsId ="";
  4109. this.inquiryNowList = [];
  4110. //清空费用
  4111. this.policyNumberForm.jqCostsProportion = "";
  4112. this.policyNumberForm.noCostsProportion = "";
  4113. this.policyNumberForm.syCostsProportion = "";
  4114. },
  4115. //是否现询改变事件
  4116. changeIsInquirySelect(val){
  4117. this.inquiryNowList = [];
  4118. this.nowCostsId ="";
  4119. this.policyNumberForm.jqOtherCostsProportion = ''
  4120. this.policyNumberForm.syOtherCostsProportion = ''
  4121. this.policyNumberForm.noOtherCostsProportion = ''
  4122. //是的话,手输 ,否的话选择
  4123. if(val == '1'){
  4124. this.costFlag = val;
  4125. this.isInquiryNowDisable = false
  4126. this.isInquirySelectFlag = true;
  4127. this.getExternalOrderFee();
  4128. }else if(val == '2'){
  4129. this.costFlag = val;
  4130. this.isInquiryNowDisable = true;
  4131. this.isInquirySelectFlag = false;
  4132. this.getInquiryNowList()
  4133. }
  4134. },
  4135. //清除选择数据
  4136. clearCostFlagData(){
  4137. this.costFlag = "";
  4138. this.isInquiryNowDisable = false
  4139. this.isInquirySelectFlag = true;
  4140. this.inquiryNowList = [];
  4141. this.policyNumberForm.jqOtherCostsProportion = ''
  4142. this.policyNumberForm.syOtherCostsProportion = ''
  4143. this.policyNumberForm.noOtherCostsProportion = ''
  4144. },
  4145. // 获取出口费用
  4146. getExternalOrderFee() {
  4147. if (this.userId ==null || this.userId =='' ){
  4148. this.$message.error("请选择业务员!!")
  4149. this.clearCostFlagData();
  4150. return;
  4151. }
  4152. if (this.costFlag ==null || this.costFlag =='' ){
  4153. this.$message({ message: "请选择是否现询", type: "error" });
  4154. this.clearCostFlagData();
  4155. return;
  4156. }
  4157. if(this.costFlag =='1'){
  4158. if((this.policyNumberForm.jqCostsProportion==null || this.policyNumberForm.jqCostsProportion =='')
  4159. && (this.policyNumberForm.syCostsProportion==null || this.policyNumberForm.syCostsProportion =='' )
  4160. && (this.policyNumberForm.noCostsProportion==null || this.policyNumberForm.noCostsProportion =='' )
  4161. ){
  4162. this.$message.error("请填写总比例(%)!!")
  4163. this.clearCostFlagData();
  4164. return;
  4165. }
  4166. }
  4167. let data = {
  4168. agreementId: this.isLetter3agreementId,
  4169. risks: this.riskList,
  4170. kinds: this.kindList,
  4171. userId: this.userId,
  4172. jqPremium: this.policyNumberForm.jqpremium,
  4173. jqRadio: this.policyNumberForm.jqCostsProportion,
  4174. syPremium: this.policyNumberForm.sypremium,
  4175. syRadio: this.policyNumberForm.syCostsProportion,
  4176. jyPremium: this.policyNumberForm.jypremium,
  4177. jyRadio: this.policyNumberForm.noCostsProportion,
  4178. }
  4179. if(this.costFlag == "1"){
  4180. this.$api.letter.externalOrderFee(data).then((res) => {
  4181. if (res.code == 200) {
  4182. this.policyNumberForm.jqOtherCostsProportion = res.data.jqExportRadio
  4183. this.policyNumberForm.syOtherCostsProportion = res.data.syExportRadio
  4184. this.policyNumberForm.noOtherCostsProportion = res.data.noExportRadio
  4185. this.nowCostsId =res.data.costId;
  4186. console.log(res.data.jqExportRadio, res.data.syExportRadio, res.data.noExportRadio, '111111111111111111')
  4187. this.$forceUpdate()
  4188. } else {
  4189. this.$message.error(res.msg)
  4190. }
  4191. })
  4192. }else if(this.costFlag == "2"){
  4193. this.$api.custInfo.externalInquiryNowFeeOrderFee(data).then((res) => {
  4194. if (res.code == 200) {
  4195. this.policyNumberForm.jqOtherCostsProportion = res.data.jqExportRadio
  4196. this.policyNumberForm.syOtherCostsProportion = res.data.syExportRadio
  4197. this.policyNumberForm.noOtherCostsProportion = res.data.noExportRadio
  4198. console.log(res.data.jqExportRadio, res.data.syExportRadio, res.data.noExportRadio, '111111111111111111')
  4199. this.$forceUpdate()
  4200. } else {
  4201. this.$message.error(res.msg)
  4202. }
  4203. })
  4204. }
  4205. },
  4206. // 非现询
  4207. getInquiryNowList() {
  4208. let productId = ''
  4209. this.inquiryNowList = []
  4210. this.$api.letter.getProductId({
  4211. riskList: this.riskList,
  4212. kindList: this.kindList
  4213. }).then((res) => {
  4214. if (res.code == 200) {
  4215. productId = res.data
  4216. this.$api.letter.getInquiryNowFee({
  4217. agreementId: this.isLetter3agreementId,
  4218. productId: productId
  4219. }).then((resp) => {
  4220. if (resp.code == 200) {
  4221. this.inquiryNowList = resp.data
  4222. }
  4223. })
  4224. }
  4225. })
  4226. },
  4227. //现询和非线询逻辑处理
  4228. inquiryNowListChange(data) {
  4229. if (data) {
  4230. this.nowCostsId = data // 现询id
  4231. this.isInquiryNowDisable = true
  4232. this.inquiryNowList.forEach((val) => {
  4233. if (val.id == data) {
  4234. this.policyNumberForm.jqCostsProportion = val.jqCostsProportion
  4235. this.policyNumberForm.noCostsProportion = val.noCostsProportion
  4236. this.policyNumberForm.syCostsProportion = val.syCostsProportion
  4237. this.getExternalOrderFee();
  4238. }
  4239. })
  4240. } else {
  4241. this.nowCostsId = ''
  4242. this.isInquiryNowDisable = false
  4243. this.policyNumberForm.jqCostsProportion = ''
  4244. this.policyNumberForm.noCostsProportion = ''
  4245. this.policyNumberForm.syCostsProportion = ''
  4246. this.policyNumberForm.jqOtherCostsProportion = ''
  4247. this.policyNumberForm.syOtherCostsProportion = ''
  4248. this.policyNumberForm.noOtherCostsProportion = ''
  4249. }
  4250. },
  4251. // add by hxl 2024-12-16 ---end
  4252. // 所属性质字段
  4253. getCompanyListProperty(data){
  4254. if(data=='1'){
  4255. this.ownerInfo.property='1'
  4256. this.policyHolderInfo.property='1'
  4257. this.insuredPersonInfo.property='1'
  4258. this.ownerInfo.identifyType='01'
  4259. this.policyHolderInfo.identifyType='01'
  4260. this.insuredPersonInfo.identifyType='01'
  4261. }
  4262. else{
  4263. this.ownerInfo.property='0'
  4264. this.policyHolderInfo.property='0'
  4265. this.insuredPersonInfo.property='0'
  4266. this.ownerInfo.identifyType='10'
  4267. this.policyHolderInfo.identifyType='10'
  4268. this.insuredPersonInfo.identifyType='10'
  4269. }
  4270. },
  4271. //清空保单图片
  4272. removePhoto(file, fileList, type) {
  4273. // console.log(file, fileList);
  4274. this.policyNumberForm[type] = []
  4275. console.log(this.policyNumberForm[type])
  4276. },
  4277. editingWay(paramsEdit) {
  4278. if (paramsEdit) {
  4279. var _this = this;
  4280. this.jqchecked = false;
  4281. this.tbczcarShow = false;
  4282. this.bbtbcarShow = false;
  4283. this.bbczcarShow = false;
  4284. const { carinfo, ownerinfo, applyinfo, insureinfo, quoteno, orderno,insAreaCompanyList } =
  4285. paramsEdit;
  4286. this.editorInfo = { ...paramsEdit };
  4287. // console.log(paramsEdit.);
  4288. // this.vehicleAndVesselTaxForm = { ...paramsEdit.vehicleAndVesselTax };
  4289. _this.carInfo = carinfo;
  4290. if (_this.carInfo.carnature == "8A") {
  4291. _this.carInfo.carnature = "02";
  4292. _this.carInfo.vehicleUse = "05";
  4293. } else {
  4294. _this.carInfo.carnature;
  4295. _this.carInfo.vehicleUse;
  4296. }
  4297. _this.ownerInfo = ownerinfo;
  4298. _this.policyHolderInfo = applyinfo;
  4299. _this.insuredPersonInfo = insureinfo;
  4300. _this.quoteno = quoteno;
  4301. _this.orderno = orderno;
  4302. _this.tbczcarShow = applyinfo.owner;
  4303. _this.bbczcarShow = insureinfo.owner;
  4304. _this.kindList = paramsEdit.king;
  4305. _this.bbtbcarShow = insureinfo.insuranceHolder;
  4306. _this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber);
  4307. _this.policyHolderInfo.age = getAgeByIdCard(
  4308. _this.policyHolderInfo.identifyNumber
  4309. );
  4310. _this.insuredPersonInfo.age = getAgeByIdCard(
  4311. _this.insuredPersonInfo.identifyNumber
  4312. );
  4313. if (paramsEdit.carinfo.transferFlag) {
  4314. this.transferDateShow = true;
  4315. }
  4316. //回显交强和商业的时间
  4317. paramsEdit.risk.map((ele) => {
  4318. if (ele.riskCode == "0507") {
  4319. _this.jqchecked = true;
  4320. this.protocolJudge("0507", true);
  4321. if(paramsEdit.jqstartdate){
  4322. _this.jqstartDate = paramsEdit.jqstartdate;
  4323. _this.jqendDate = paramsEdit.jqenddate;
  4324. }else{
  4325. _this.jqstartDate = this.transformTime1();
  4326. _this.jqendDate = this.oneYearPast1(this.jqstartDate);
  4327. }
  4328. if(!_this.riskList.includes("0507")){
  4329. _this.riskList.push({
  4330. riskCode: "0507",
  4331. });
  4332. }
  4333. } else if (ele.riskCode == "0510") {
  4334. _this.sychecked = true;
  4335. this.protocolJudge("0510", true);
  4336. if(paramsEdit.systartDate){
  4337. _this.systartDate = paramsEdit.systartdate;
  4338. _this.jqendDate = paramsEdit.syenddate;
  4339. }else{
  4340. _this.systartDate = this.transformTime1();
  4341. _this.syendDate = this.oneYearPast1(this.jqstartDate);
  4342. }
  4343. if(!_this.riskList.includes("0510")){
  4344. _this.riskList.push({
  4345. riskCode: "0510",
  4346. });
  4347. }
  4348. _this.insureList.map((eleA) => {
  4349. paramsEdit.king.map((eleB) => {
  4350. if (eleA.kindCode == eleB.kindCode) {
  4351. switch (eleB.kindCode) {
  4352. case "D4":
  4353. case "SY_FJ_YBW2":
  4354. eleA.amount = eleB.unitAmount+"";
  4355. break;
  4356. case "MJ1":
  4357. case "MJ2":
  4358. case "MJ3":
  4359. case "MJ4":
  4360. eleA.amount = eleB.deductibleRate+"";
  4361. case "A":
  4362. eleA.amount = eleB.amount+"";
  4363. this.protocolJudge("A", true);
  4364. break;
  4365. case "TY1":
  4366. case "TY2":
  4367. case "TY3":
  4368. case "TY4":
  4369. eleA.amount = eleB.serviceTimes+"";
  4370. break;
  4371. default:
  4372. eleA.amount = eleB.amount+"";
  4373. }
  4374. }
  4375. });
  4376. });
  4377. }
  4378. });
  4379. // this.HistoryList = this.paramsEdit.insAreaCompanyList;
  4380. let params = {
  4381. orderNo: paramsEdit.orderno,
  4382. orderStatus: "",
  4383. };
  4384. this.$api.letter.queryQuoteHistory(params).then((res) => {
  4385. res.data.forEach((item) => {
  4386. if (item.accidentInfo) {
  4387. item.accidentInfo.constructor === Object
  4388. ? [item.accidentInfo]
  4389. : item.accidentInfo;
  4390. }
  4391. });
  4392. this.HistoryList = res.data;
  4393. });
  4394. //--获取影像信息--
  4395. _this.imageEcho(this.quoteno);
  4396. // this.$refs.imageDialog.imageEcho(this.quoteno)
  4397. // this.commpanyList()
  4398. //--显示影像按钮--
  4399. _this.imageUploadShow = true;
  4400. this.orderExternalStatus = paramsEdit.orderExternalStatus;
  4401. //回显协议列表数据 add by hxl 2024-12-16
  4402. this.isLetter3agreementId = insAreaCompanyList[0].agreementId;
  4403. this.companyName = insAreaCompanyList[0].inscompany;
  4404. if (this.totalCompanyListBak != null && this.totalCompanyListBak.length > 0) {
  4405. this.totalCompanyListBak.forEach((item, index) => {
  4406. if (item.id == insAreaCompanyList[0].companyId) {
  4407. this.totalCompanyList[0].agreement = item.agreement;
  4408. }
  4409. });
  4410. }
  4411. this.costFlag = paramsEdit.costFlag;
  4412. if(this.costFlag=="1"){
  4413. this.isInquiryNowDisable = false
  4414. this.isInquirySelectFlag = true;
  4415. this.nowCostsId = '';
  4416. this.getExternalOrderFee();
  4417. }else if(this.costFlag=="2"){
  4418. this.isInquiryNowDisable = true;
  4419. this.isInquirySelectFlag = false;
  4420. this.nowCostsId = paramsEdit.nowCostsId;
  4421. this.getInquiryNowList();
  4422. this.getExternalOrderFee();
  4423. }
  4424. } else {
  4425. this.jqchecked = true;
  4426. if(!this.riskList.includes("0507")){
  4427. this.riskList.push({
  4428. riskCode: "0507"
  4429. });
  4430. }
  4431. this.jqstartDate = this.transformTime1();
  4432. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  4433. this.systartDate = this.transformTime1();
  4434. this.syendDate = this.oneYearPast1(this.systartDate);
  4435. }
  4436. },
  4437. handleRemove1(file, imageIdList, imgList) {
  4438. this[imageIdList].map((ele, index) => {
  4439. if (file.imageId === ele.imageId) {
  4440. this[imageIdList].splice(index, 1);
  4441. }
  4442. return ele;
  4443. });
  4444. if (file.imageId) {
  4445. this[imgList].map((ele, index) => {
  4446. if (file.imageId === ele.imageId) {
  4447. this[imgList].splice(index, 1);
  4448. }
  4449. return ele;
  4450. });
  4451. } else {
  4452. this[imgList].map((ele, index) => {
  4453. if (file.uid === ele.uid) {
  4454. this[imgList].splice(index, 1);
  4455. }
  4456. return ele;
  4457. });
  4458. }
  4459. },
  4460. uploadinformation() {
  4461. // //上传图片
  4462. const mergedArray = [
  4463. ...this.imageList1,
  4464. ...this.imageList2,
  4465. ...this.imageList3,
  4466. ...this.imageList4,
  4467. ...this.imageList5,
  4468. ...this.imageList6,
  4469. ];
  4470. let imageparam = {
  4471. imageList: mergedArray,
  4472. quoteNo: this.quoteno,
  4473. };
  4474. this.$api.letter.uploadImages(imageparam).then((responses) => {
  4475. if (responses.code == "200") {
  4476. this.imageEcho(this.quoteno);
  4477. this.$message({ message: responses.msg, type: "success" });
  4478. } else {
  4479. this.$message({ message: responses.msg, type: "error" });
  4480. }
  4481. });
  4482. this.imageUploaddialogVisible = false;
  4483. },
  4484. repairinformation() {
  4485. // //上传图片
  4486. const mergedArray = [
  4487. ...this.imageList1,
  4488. ...this.imageList2,
  4489. ...this.imageList3,
  4490. ...this.imageList4,
  4491. ...this.imageList5,
  4492. ...this.imageList6,
  4493. ];
  4494. let imageparam = {
  4495. imageList: mergedArray,
  4496. companyId: this.companyId,
  4497. };
  4498. this.$api.letter.additionalInformation(imageparam).then((responses) => {
  4499. if (responses.code == "200") {
  4500. this.imageUploaddialogVisible = false;
  4501. this.$message({ message: responses.msg, type: "success" });
  4502. } else {
  4503. this.$message({ message: responses.msg, type: "error" });
  4504. }
  4505. });
  4506. },
  4507. //手机号复制粘贴处理
  4508. handlePaste(e, mobileKey) {
  4509. e.preventDefault(); //阻止默认行为
  4510. const clipboardData = e.clipboardData || window.clipboardData; //获取剪切板内容
  4511. let pastedText = clipboardData.getData("text").replace(/\s+/g, ""); //获取纯文本并处理空格
  4512. // 截取前11个字符,以确保不会超过手机号长度限制
  4513. pastedText = pastedText.substring(0, 11);
  4514. // 使用Vue.nextTick确保更新发生在DOM更新之后
  4515. this.$nextTick(() => {
  4516. this[mobileKey].mobile = pastedText;
  4517. });
  4518. },
  4519. // licenseNoFun(data){
  4520. // if(data && this.carInfo.enginedesc){
  4521. // this.obtainProtocol()
  4522. // }
  4523. // },
  4524. // enginedescFun(data){
  4525. // if(data && this.carInfo.licenseNo){
  4526. // this.obtainProtocol()
  4527. // }
  4528. // },
  4529. packageChange(val) {
  4530. let arr = this.packageOptions.find((ele) => ele.id == val).kind;
  4531. if (arr.length > 0) {
  4532. this.insureList.map((eleA) => {
  4533. arr.map((eleB) => {
  4534. if (eleA.kindCode == eleB.kindCode) {
  4535. switch (eleB.kindCode) {
  4536. case "D4":
  4537. case "SY_FJ_YBW2":
  4538. eleA.amount = JSON.stringify(eleB.unitAmount);
  4539. break;
  4540. case "MJ1":
  4541. case "MJ2":
  4542. case "MJ3":
  4543. case "MJ4":
  4544. eleA.amount = eleB.deductibleRate;
  4545. break;
  4546. case "TY1":
  4547. case "TY2":
  4548. case "TY3":
  4549. case "TY4":
  4550. eleA.amount = eleB.serviceTimes+"";
  4551. break;
  4552. default:
  4553. eleA.amount = JSON.stringify(eleB.amount);
  4554. }
  4555. }
  4556. });
  4557. });
  4558. } else {
  4559. this.insureList.map((eleA) => {
  4560. eleA.amount = "0";
  4561. });
  4562. }
  4563. },
  4564. capType(val) {
  4565. if (val == "0") {
  4566. return "success";
  4567. }
  4568. if (val == "1") {
  4569. return "warning";
  4570. }
  4571. if (val == "2" || val == "3" || val == "4") {
  4572. return "danger";
  4573. }
  4574. },
  4575. handleCheckAllChange(ele) {
  4576. this.totalCompanyList.forEach((val, index) => {
  4577. ele ? (val.checked = true) : (val.checked = false);
  4578. // this.initchange(ele, val.id, val.cnName, index);
  4579. });
  4580. },
  4581. retractFun() {
  4582. this.isRetract = this.isRetract == false ? true : false;
  4583. },
  4584. //中煤意外险调整份数事件
  4585. ZMhandleChange(val) {
  4586. if (!val) {
  4587. this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  4588. }
  4589. },
  4590. //中煤意外险选中对应意外险方案
  4591. // ZMHandleSelectionChange(val) {
  4592. // // if(val.length > 0&& val[0].quantity==undefined){
  4593. // // this.$message({ message: "请先填写投保份数再勾选!", type: "error", });
  4594. // // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  4595. // // return false;
  4596. // // }
  4597. // if (val.length > 1) {
  4598. // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  4599. // this.$refs.ZmMultipleTable[0].toggleRowSelection(val.pop()); //pop:最后一个
  4600. // } else {
  4601. // this.zhongmeiaccidentalDrivingVo = val[0]; //multipleSelection:当前选择的数组
  4602. // }
  4603. // },
  4604. //中煤意外险选中对应产品带出方案明细
  4605. zhongmeiInsuranceChange(index) {
  4606. //每次选中产品,清空之前选中的数据
  4607. this.zhongmeitemplateSelection = index;
  4608. this.zhongmeiaccidentalDrivingVo = {};
  4609. this.zhongmeiInsuranceDataTable = [];
  4610. let data = this.zhongmeiInsuranceData.find(
  4611. (val) => val.projectCode == index
  4612. );
  4613. //把返回的方案明细放入展示数据对象中
  4614. this.accidentFormZM = Object.assign(this.accidentFormZM, data);
  4615. this.accidentFormZM.quantity = "1";
  4616. if (data && data.son) {
  4617. this.accidentPremiumZM = data.sumPremium;
  4618. this.zhongmeiInsuranceDataTable = data.son;
  4619. }
  4620. },
  4621. // 截图粘贴
  4622. copybjd() {
  4623. let that = this;
  4624. html2Canvas(document.getElementById("pdfContentsDiv"), {
  4625. allowTaint: true,
  4626. taintTest: false,
  4627. }).then(function (canvas) {
  4628. let base64Data = "";
  4629. // let blob = null
  4630. base64Data = canvas.toDataURL("image/png", 1);
  4631. const date = new Date();
  4632. const saveInfo = {
  4633. download: date.getTime() + `.png`,
  4634. href: base64Data,
  4635. };
  4636. const element = document.createElement("a");
  4637. element.style.display = "none";
  4638. for (const key in saveInfo) {
  4639. element.setAttribute(key, saveInfo[key]);
  4640. }
  4641. document.body.appendChild(element);
  4642. element.click();
  4643. setTimeout(() => {
  4644. document.body.removeChild(element);
  4645. }, 300);
  4646. // var format = 'image/png'
  4647. // //将Base64图片编码转换成blob
  4648. // var base64 = base64Data
  4649. // var code = window.atob(base64.split(',')[1])
  4650. // var aBuffer = new window.ArrayBuffer(code.length)
  4651. // var uBuffer = new window.Uint8Array(aBuffer)
  4652. // for (var i = 0; i < code.length; i++) {
  4653. // uBuffer[i] = code.charCodeAt(i) & 0xff
  4654. // }
  4655. // try {
  4656. // blob = new Blob([uBuffer], { type: format })
  4657. // } catch (e) {
  4658. // window.BlobBuilder =
  4659. // window.BlobBuilder ||
  4660. // window.WebKitBlobBuilder ||
  4661. // window.MozBlobBuilder ||
  4662. // window.MSBlobBuilder
  4663. // if (e.name == 'TypeError' && window.BlobBuilder) {
  4664. // var bb = new window.BlobBuilder()
  4665. // bb.append(uBuffer.buffer)
  4666. // blob = bb.getBlob('image/png')
  4667. // } else if (e.name == 'InvalidStateError') {
  4668. // blob = new Blob([aBuffer], { type: format })
  4669. // }
  4670. // }
  4671. // const clipboardItemInput = new ClipboardItem({
  4672. // 'image/png': blob,
  4673. // })
  4674. // that.$copyText({
  4675. // 'image/png': blob,
  4676. // }).then(
  4677. //   function(e) {
  4678. //     console.log("copy arguments e:", e);
  4679. //     alert("复制成功!");
  4680. //   },
  4681. //   function(e) {
  4682. //     console.log("copy arguments e:", e);
  4683. //     alert("复制失败!");
  4684. //   }
  4685. //   ),
  4686. // navigator.clipboard.write([clipboardItemInput])
  4687. // that.$message({
  4688. // message: '已截图并复制到粘贴板!',
  4689. // type: 'success'
  4690. // });
  4691. });
  4692. },
  4693. propertyTpe(val){
  4694. this[val].identifyType=this[val].property=='0'?'10':'01'
  4695. },
  4696. // 即时起保
  4697. immediatelyChange(e) {
  4698. if (e) {
  4699. this.immediatelyValue = true;
  4700. const date = new Date();
  4701. date.setHours(date.getHours() + 2);
  4702. date.setMinutes(0);
  4703. date.setSeconds(0);
  4704. this.jqstartDate = date;
  4705. this.jqendDate = this.oneYearPast1(date);
  4706. } else {
  4707. this.immediatelyValue = false;
  4708. this.jqstartDate = this.transformTime1();
  4709. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  4710. }
  4711. },
  4712. // 使用性质方法
  4713. natureFun() {
  4714. if (this.carInfo.carnature == "01") {
  4715. this.carInfo.vehicleUse = "";
  4716. }
  4717. },
  4718. // 点击同步报价后的时间
  4719. syncData(item) {
  4720. this.jqstartDate = item.startDateJq ? item.startDateJq : this.jqstartDate;
  4721. this.jqendDate = item.endDateJq ? item.endDateJq : this.endDateJq;
  4722. this.systartDate = item.startDateSy ? item.startDateSy : this.systartDate;
  4723. this.syendDate = item.endDateSy ? item.endDateSy : this.syendDate;
  4724. },
  4725. //纳税类型事件
  4726. taxRelifFlagChange(val) {
  4727. if (val == 4) {
  4728. citydata.rawCitiesData.map((val) => {
  4729. this.provinceSelect.push({
  4730. name: val.name,
  4731. code: val.code,
  4732. });
  4733. return val;
  4734. });
  4735. }
  4736. },
  4737. //身份证前六位识别地区
  4738. // getAreaByCode(code) {
  4739. // let list = regionData;
  4740. // let provinceCode = code.substring(0, 2);
  4741. // let cityCode = code.substring(0, 4);
  4742. // let areaCode = code.substring(0, 6);
  4743. // // 获取省份信息
  4744. // let province = list.filter(function (item) {
  4745. // return item.value === provinceCode;
  4746. // });
  4747. // // 获取城市信息
  4748. // let city = province[0].children.filter(function (item) {
  4749. // return item.value === cityCode;
  4750. // });
  4751. // if (city.length > 0) {
  4752. // // 获取区/县信息
  4753. // let area = city[0].children.filter(function (item) {
  4754. // return item.value === areaCode;
  4755. // });
  4756. // return province[0].label + city[0].label + area[0].label;
  4757. // }
  4758. // },
  4759. //--数据字典 begin --
  4760. getDicType(type) {
  4761. this.$api.insCompany.dicType(type).then((res) => {
  4762. if (res.code == 200) {
  4763. if (type == "insOrderStatus") {
  4764. let data = JSON.parse(JSON.stringify(res.data.ddList));
  4765. data.unshift({
  4766. dictTag: "全部",
  4767. dictValue: "888",
  4768. });
  4769. this[type + "options"] = data;
  4770. } else {
  4771. this[type + "options"] = res.data.ddList;
  4772. }
  4773. }
  4774. });
  4775. },
  4776. //身份证失去焦点
  4777. identifyblur(info) {
  4778. this[info].age =typeof getAgeByIdCard(this[info].identifyNumber)=='number' ?getAgeByIdCard(this[info].identifyNumber):'';
  4779. this[info].gender = getGenderByIdCard(this[info].identifyNumber);
  4780. },
  4781. //车主信息选择性别
  4782. genderChange(e) {
  4783. if (this.tbczcarShow) {
  4784. this.policyHolderInfo.gender = e;
  4785. } else if (this.bbczcarShow) {
  4786. this.insuredPersonInfo.gender = e;
  4787. }
  4788. },
  4789. //省市区
  4790. areahandleChange(event, info) {
  4791. if (event[0] != null && event[1] != null && event[2] != null) {
  4792. this[info].province = event[0]
  4793. this[info].city = event[1]
  4794. this[info].county = event[2]
  4795. }
  4796. },
  4797. iconfftter(icon) {
  4798. return CommonUtil.getDataName({
  4799. dataList: this.global.insCompanyList,
  4800. value: "name",
  4801. label: "icon",
  4802. data: icon,
  4803. });
  4804. },
  4805. disabledDate(time) {
  4806. let datetime = this.carInfo.registerDate;
  4807. return time.getTime() < new Date(datetime).getTime();
  4808. },
  4809. onScroll() {
  4810. // 变量scrollTop是滚动条滚动时,滚动条上端距离顶部的距离
  4811. var scrollTop =
  4812. document.documentElement.scrollTop || document.body.scrollTop;
  4813. // 变量windowHeight是可视区的高度
  4814. var windowHeight =
  4815. document.documentElement.clientHeight || document.body.clientHeight;
  4816. // 变量scrollHeight是滚动条的总高度(当前可滚动的页面的总高度)
  4817. var scrollHeight =
  4818. document.documentElement.scrollHeight || document.body.scrollHeight;
  4819. // 滚动条到底部
  4820. if (Math.ceil(scrollTop + windowHeight) >= scrollHeight) {
  4821. this.isBottom = true;
  4822. } else {
  4823. this.isBottom = false;
  4824. }
  4825. },
  4826. pinganInsuranceChange(index, index1, val) {
  4827. if (!index) {
  4828. return;
  4829. }
  4830. this.accidentFormPA[index1].pingantemplateSelection = index;
  4831. this.accidentFormPA[index1].projectName = index
  4832. val.map(val1 => {
  4833. if (val1.projectName == index) {
  4834. val1.son.forEach(val3 => {
  4835. val3.quantity = '1'
  4836. })
  4837. this.accidentFormPA[index1].pinganInsuranceDataTable = val1.son
  4838. this.accidentFormPA[index1].projectCode = val1.projectCode
  4839. }
  4840. })
  4841. console.log(this.accidentFormPA[index1], index, 4444444444);
  4842. // this.accidentFormPA[index1].projectCode=this.pinganInsuranceData.find(val1=>{
  4843. // // val1.map(
  4844. // // (val) => val.projectName == index
  4845. // // ).projectCode
  4846. // }
  4847. // )
  4848. // this.accidentFormPA[index1].pinganInsuranceDataTable = this.pinganInsuranceData.find(
  4849. // (val) => val.projectName == index
  4850. // ).son;
  4851. },
  4852. taikangInsuranceChange(index) {
  4853. if (index) {
  4854. this.TkDrivingChange(
  4855. this.taikangaccidentDataList.find((val) => val.projectCode == index)
  4856. );
  4857. }
  4858. if (!index) {
  4859. return;
  4860. }
  4861. this.taikangtemplateSelection = index;
  4862. this.accidentFormTk = Object.assign(
  4863. this.accidentFormTk,
  4864. this.taikangaccidentDataList.find((val) => val.projectCode == index)
  4865. );
  4866. this.taikangaccidentDataList
  4867. .find((val) => val.projectCode == index)
  4868. .son.forEach((item) => {
  4869. item.sumAmount =
  4870. Number(item.amount) * Number(this.accidentFormTk.seatNum);
  4871. });
  4872. this.taikangInsuranceDataTable = this.taikangaccidentDataList.find(
  4873. (val) => val.projectCode == index
  4874. ).son;
  4875. this.accidentPremiumTk = this.accidentFormTk.sumPremium;
  4876. },
  4877. anshengInsuranceChange(index) {
  4878. this.anshengtemplateSelection = index;
  4879. let data = this.anshengInsuranceData.find(
  4880. (val) => val.projectCode == index
  4881. );
  4882. this.anshengaccidentalDrivingVo.parentName = data.projectName;
  4883. this.anshengaccidentalDrivingVo.parentCode = data.projectCode;
  4884. this.anshengInsuranceDataTable = [];
  4885. this.anshengInsuranceDataTable = data.children;
  4886. this.anshengInsuranceDataTable.forEach((e) => (e.quantity = "1"));
  4887. },
  4888. hengbangInsuranceChange(index) {
  4889. this.hengbangInsuranceDataTable = this.hengbangInsuranceData.find(
  4890. (val) => val.projectCode == index
  4891. ).son;
  4892. this.hengbangtemplateSelection = index;
  4893. if (this.hengbangInsuranceDataTable.length) {
  4894. this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(
  4895. (val) => val.projectCode == index
  4896. );
  4897. }
  4898. },
  4899. chengtaiInsuranceChange(index) {
  4900. this.chengtaiInsuranceDataTable = this.chengtaiInsuranceData.find(
  4901. (val) => val.projectCode == index
  4902. ).son;
  4903. this.chengtaitemplateSelection = index;
  4904. if (this.chengtaiInsuranceDataTable.length) {
  4905. this.chengtaiaccidentalDrivingVo = this.chengtaiInsuranceData.find(
  4906. (val) => val.projectCode == index
  4907. );
  4908. }
  4909. },
  4910. huanongInsuranceChange(index) {
  4911. this.huanongInsuranceDataTable = this.huanongInsuranceData.find(
  4912. (val) => val.projectCode == index
  4913. ).son;
  4914. this.accidentFormHN.accidentType = index;
  4915. this.huanongaccidentalDrivingVo = Object.assign(
  4916. this.huanongInsuranceData.find((val) => val.projectCode == index),
  4917. this.accidentFormHN
  4918. );
  4919. },
  4920. taipingInsuranceChange(index) {
  4921. this.taipingtemplateSelection = index;
  4922. this.taipingInsuranceDataTable = this.taipingInsuranceData.find(
  4923. (val) => val.projectCode == index
  4924. ).son;
  4925. if (
  4926. this.taipingInsuranceDataTable &&
  4927. this.taipingInsuranceDataTable.length
  4928. ) {
  4929. this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(
  4930. (val) => val.projectCode == index
  4931. );
  4932. }
  4933. },
  4934. zijinInsuranceChange(index) {
  4935. this.zijintemplateSelection = index;
  4936. this.zijinInsuranceDataTable = [];
  4937. this.$refs.expandTable[0].clearSelection();
  4938. index.forEach((item) => {
  4939. this.zijinInsuranceDataTable.push(
  4940. this.ziJinInsuranceData.find((val) => val.projectCode == item)
  4941. );
  4942. });
  4943. this.zijinInsuranceDataTable.forEach((item) => {
  4944. this.$nextTick(() => {
  4945. this.$refs.expandTable[0].toggleRowSelection(item);
  4946. });
  4947. });
  4948. this.CheckboxChange(this.zijinInsuranceDataTable);
  4949. },
  4950. renshouInsuranceChange(index) {
  4951. // this.renshouInsuranceDataTable = [
  4952. // this.renshouInsuranceData.find(val => val.projectCode == index)
  4953. // ];
  4954. this.renshoutemplateSelection = index;
  4955. this.renshouInsuranceDataTable = this.renshouInsuranceData.find(
  4956. (val) => val.projectCode == index
  4957. ).son;
  4958. if (index) {
  4959. this.RSDrivingChange(
  4960. this.renshouInsuranceData.find((val) => val.projectCode == index)
  4961. );
  4962. }
  4963. },
  4964. async dajiaInsuranceChange(index) {
  4965. this.dajiaaccidentalDrivingVo = {};
  4966. let data = await this.$api.letter.accidentalDrivingInfo(index);
  4967. if (data.code == 200) {
  4968. this.dajiaaccidentalDrivingVo = {
  4969. rideRiskCode: index,
  4970. rideRiskName: this.dajiaInsuranceData.find((val) => val.id == index)
  4971. .productName,
  4972. quantity: "1",
  4973. };
  4974. this.dajiaInsuranceDataTable = data.data;
  4975. }
  4976. },
  4977. zhonganInsuranceChange(index) {
  4978. this.zhongantemplateSelection = index;
  4979. this.zhonganInsuranceDataTable = this.zhonganInsuranceData.find(
  4980. (val) => val.projectCode == index
  4981. ).son;
  4982. if (index) {
  4983. this.ZADrivingChange(
  4984. this.zhonganInsuranceData.find((val) => val.projectCode == index)
  4985. );
  4986. }
  4987. },
  4988. // 渤海选择意外险类型
  4989. async bohaiInsuranceChange(index) {
  4990. if (index) {
  4991. this.boHaiaccidentForm.projectCode = index;
  4992. // this.boHaiaccidentForm.projectName = this.dajiaInsuranceData.find(
  4993. // (e) => e.projectCode == index
  4994. // ).projectName;
  4995. this.boHaiaccidentForm.copies = "1";
  4996. this.boHaiaccidentForm.premium = Number(
  4997. this.boHaiaccidentDataList.find((e) => e.projectCode == index).sumPremium
  4998. );
  4999. this.bohaiInsuranceDataTable = this.boHaiaccidentDataList.find(
  5000. (e) => e.projectCode == index
  5001. ).son;
  5002. // let data = await this.$api.letter.productDetailsQueryboHai({
  5003. // projectCode: index,
  5004. // productCode: this.boHaiaccidentDataList.find(
  5005. // (e) => e.packageCode == index
  5006. // ).productCode,
  5007. // agreementId: this.boHaiaccidentForm.agreementId,
  5008. // });
  5009. // if (data.code == 200 && data.data) {
  5010. // this.accidentLoadingbh = false;
  5011. // this.bohaiInsuranceDataTable = data.data;
  5012. // } else {
  5013. // this.$message.error(data.msg);
  5014. // this.bohaiInsuranceDataTable = [];
  5015. // }
  5016. }
  5017. },
  5018. djcxchange(index) {
  5019. if (index) {
  5020. this.dajiaaccidentForm.parentCode = index;
  5021. this.dajiaaccidentForm.quantity = "1";
  5022. this.dajiaaccidentForm.prodCode = "";
  5023. this.dajiaaccidentDataListChild = this.dajiaInsuranceData.find(
  5024. (e) => e.projectCode == index
  5025. ).children;
  5026. this.dajiaaccidentalDrivingVo.parentName = this.dajiaInsuranceData.find(
  5027. (e) => e.projectCode == index
  5028. ).projectName;
  5029. this.dajiaaccidentalDrivingVo.parentCode = this.dajiaInsuranceData.find(
  5030. (e) => e.projectCode == index
  5031. ).projectCode;
  5032. }
  5033. },
  5034. djcxchangeChild(index) {
  5035. if (index) {
  5036. let list = this.dajiaaccidentDataListChild.find(
  5037. (val) => val.projectCode == index
  5038. );
  5039. this.dajiaaccidentForm = {
  5040. ...this.dajiaaccidentForm,
  5041. prodCode: index,
  5042. projectName: list.projectName,
  5043. sumAmount: Number(list.sumAmount),
  5044. riskCode: list.riskCode,
  5045. sumPremium: Number(list.sumPremium),
  5046. };
  5047. list.productId = list.id;
  5048. this.dajiaInsuranceDataTable = list.son;
  5049. this.dajiaaccidentalDrivingVo = Object.assign({
  5050. ...this.dajiaaccidentalDrivingVo,
  5051. ...list,
  5052. });
  5053. } else {
  5054. this.dajiaInsuranceDataTable = [];
  5055. }
  5056. },
  5057. // 国任选择意外险类型
  5058. async grcxchange(index) {
  5059. if (index) {
  5060. this.accidentLoading = true;
  5061. this.guoRenaccidentForm.goodsCode = index;
  5062. this.guoRenaccidentForm.quantity = "1";
  5063. this.guoRenaccidentForm.prodCode = "";
  5064. this.guoRenaccidentDataListChild = this.guoRenaccidentDataList.find(
  5065. (e) => e.projectCode == index
  5066. ).children;
  5067. this.guoRenaccidentalDrivingVo.parentName =
  5068. this.guoRenaccidentDataList.find(
  5069. (e) => e.projectCode == index
  5070. ).projectName;
  5071. this.guoRenaccidentalDrivingVo.parentCode =
  5072. this.guoRenaccidentDataList.find(
  5073. (e) => e.projectCode == index
  5074. ).projectCode;
  5075. // let data = await this.$api.letter.syncNonAutoInsGuoren({
  5076. // goodsCode: index,
  5077. // agreementId: this.guoRenaccidentForm.agreementId
  5078. // });
  5079. // if (data.code == 200) {
  5080. // let num = 0;
  5081. // data.data.forEach(item => {
  5082. // num += Number(item.premium);
  5083. // });
  5084. // this.accidentLoading = false;
  5085. // } else {
  5086. // this.accidentLoading = false;
  5087. // this.$message.error(data.msg);
  5088. // this.guoRenaccidentDataListChild = [];
  5089. // }
  5090. }
  5091. },
  5092. // 国任选择意外险子级类型
  5093. async grcxchangeChild(index) {
  5094. let list = this.guoRenaccidentDataListChild.find(
  5095. (val) => val.projectCode == index
  5096. );
  5097. this.guoRenaccidentForm = {
  5098. ...this.guoRenaccidentForm,
  5099. prodCode: index,
  5100. policyNum: Number(list.sumPremium),
  5101. riskCode: list.riskCode,
  5102. // amount: list.amount,
  5103. sumPremium: Number(list.sumPremium),
  5104. // appnum:Number(list.appnum)
  5105. };
  5106. this.guoRenInsuranceDataTable = list.son;
  5107. this.guoRenaccidentalDrivingVo = Object.assign({
  5108. ...list,
  5109. ...this.guoRenaccidentalDrivingVo,
  5110. });
  5111. },
  5112. // 选择意外险类型
  5113. async yongchengInsuranceChange(index) {
  5114. if (!index) {
  5115. return;
  5116. }
  5117. this.yongchengtemplateSelection = index;
  5118. this.accidentForm = Object.assign(
  5119. this.accidentForm,
  5120. this.yongchengaccidentDataList.find((val) => val.projectCode == index)
  5121. );
  5122. this.yongchengaccidentDataList
  5123. .find((val) => val.projectCode == index)
  5124. .son.forEach((item) => {
  5125. item.sumAmount =
  5126. Number(item.amount) * Number(this.accidentForm.seatNum);
  5127. });
  5128. this.yongchengInsuranceDataTable = this.yongchengaccidentDataList.find(
  5129. (val) => val.projectCode == index
  5130. ).son;
  5131. this.accidentPremium = this.accidentForm.sumPremium;
  5132. // this.accidentForm.fen = "1";
  5133. // let data = await this.$api.letter.ycgainAccidentSchemeList({
  5134. // companyCode: this.accidentForm.companyId,
  5135. // code: index,
  5136. // agreementId: this.accidentForm.agreementId,
  5137. // seatNum: Number(this.carInfo.seatCount)
  5138. // });
  5139. // if (data.code == 200) {
  5140. // let num = 0;
  5141. // data.data.forEach(item => {
  5142. // num += Number(item.premium);
  5143. // });
  5144. // this.accidentPremium = num;
  5145. // this.accidentForm.premium = num;
  5146. // this.accidenttableData = data.data;
  5147. // }
  5148. },
  5149. numberCopieschange(index) {
  5150. this.accidentForm.sumPremium = Number(this.accidentPremium) * index;
  5151. },
  5152. numberCopieschangeTk(index) {
  5153. this.accidentFormTk.sumPremium = Number(this.accidentPremiumTk) * index;
  5154. },
  5155. numberCopieschangePA(index, index1) {
  5156. this.accidentFormPA.premium = Number(this.accidentFormPA[index1].accidentPremiumPA) * index;
  5157. },
  5158. numberCopieschangeZM(index) {
  5159. this.accidentFormZM.sumPremium = Number(this.accidentPremiumZM) * index;
  5160. },
  5161. numberCopieschangeGR(index) {
  5162. this.guoRenaccidentForm.sumPremium =
  5163. Number(this.guoRenaccidentForm.policyNum) * index;
  5164. },
  5165. continuousChange(id) {
  5166. this.continuousCompanyList.map((ele) => {
  5167. if (ele.id == id) {
  5168. this.attributionform.configure = [];
  5169. ele.configure.map((ele, index) => {
  5170. this.attributionform.configure.push({
  5171. field: ele.field,
  5172. isEdit: ele.isEdit,
  5173. label: ele.label,
  5174. type: ele.type,
  5175. value: "",
  5176. });
  5177. });
  5178. }
  5179. });
  5180. },
  5181. //续保查询
  5182. continuousquery() {
  5183. this.$api.letter.queryRenewal(this.attributionform).then((res) => {
  5184. if (res.code == "200") {
  5185. this.carInfo = res.data.carInfo;
  5186. this.ownerInfo = res.data.ownerInfo;
  5187. this.policyHolderInfo = res.data.policyHolderInfo;
  5188. this.insuredPersonInfo = res.data.insuredPersonInfo;
  5189. res.data.riskList.map((ele) => {
  5190. if (ele.riskCode == "0507") {
  5191. this.jqchecked = true;
  5192. this.jqstartDate = ele.startDate;
  5193. this.jqendDate = ele.endDate;
  5194. } else if (ele.riskCode == "0510") {
  5195. this.sychecked = true;
  5196. this.systartDate = ele.startDate;
  5197. this.syendDate = ele.endDate;
  5198. }
  5199. county;
  5200. });
  5201. } else {
  5202. this.$message({
  5203. message: res.msg,
  5204. type: "error",
  5205. duration: 2000,
  5206. });
  5207. }
  5208. });
  5209. },
  5210. //永诚转保
  5211. renewalCodeconfirm() {
  5212. this.renewalCodedialogVisible = false;
  5213. this.quote();
  5214. },
  5215. //报价轨迹查询
  5216. RadioHistoryChange(e) {
  5217. let params = {
  5218. orderNo: this.orderno,
  5219. orderStatus: e == 888 ? "" : e,
  5220. };
  5221. this.$api.letter.queryQuoteHistory(params).then((res) => {
  5222. res.data.forEach((item) => {
  5223. if (item.accidentInfo) {
  5224. item.accidentInfo.constructor === Object
  5225. ? [item.accidentInfo]
  5226. : item.accidentInfo;
  5227. }
  5228. });
  5229. this.HistoryList = res.data;
  5230. });
  5231. },
  5232. protocolJudge(val, val1) {
  5233. if (val1) {
  5234. this.totalCompanyList.forEach((e) => {
  5235. if (
  5236. e.agreement.find(
  5237. (el) => el.productsCode && el.productsCode.includes(val)
  5238. )
  5239. ) {
  5240. e.agreement.find(
  5241. (el) => el.productsCode && el.productsCode.includes(val)
  5242. ).disabled = true;
  5243. }
  5244. });
  5245. } else {
  5246. this.totalCompanyList.forEach((e) => {
  5247. if (
  5248. e.agreement.find(
  5249. (el) => el.productsCode && el.productsCode.includes(val)
  5250. )
  5251. ) {
  5252. e.agreement.find(
  5253. (el) => el.productsCode && el.productsCode.includes(val)
  5254. ).disabled = false;
  5255. }
  5256. });
  5257. }
  5258. },
  5259. async obtainProtocol(data) {
  5260. let res = {};
  5261. if (this.isLetter == "1") {
  5262. res = await this.$api.letter.getAllAgreement();
  5263. }
  5264. if (this.isLetter == "2") {
  5265. res = await this.$api.letter.getAllAgreementByUserId({
  5266. userId: this.userId,
  5267. });
  5268. }
  5269. if (this.isLetter == "3") {
  5270. this.userId = data ? data.userid : this.userId;
  5271. res = await this.$api.letter.getExternalAgreement();
  5272. }
  5273. if (res.code == 200) {
  5274. res.data.map((ele) => {
  5275. ele["result"] = {};
  5276. ele["quoteCode"] = 0;
  5277. ele["checked"] = false;
  5278. ele["msg"] = "";
  5279. ele["lastYearMsg"] = "";
  5280. ele["agreementId"] = "";
  5281. ele["apiType"] = "";
  5282. ele["orderstatus"] = 0;
  5283. ele.coefficient = "";
  5284. ele['isInspect'] = false;
  5285. // ele.agreementId = ele.agreement[0].id;
  5286. // ele.apiType = ele.agreement[0].apiType;
  5287. ele.underwritingDescription =
  5288. ele.agreement[0].underwritingDescription;
  5289. if (ele.isTaxSource && ele.isTaxSource == "1") {
  5290. ele.agreement.forEach((val) => {
  5291. if (val.isTaxSource && val.isTaxSource == "1") {
  5292. ele.agreementId = val.id;
  5293. ele.apiType = val.apiType;
  5294. }
  5295. });
  5296. }
  5297. });
  5298. if (data) {
  5299. res.data.forEach((val, index) => {
  5300. data.insAreaCompanyEditingDtos.forEach((ele) => {
  5301. if (val.namesimple == ele.inscompany) {
  5302. if (["中国人寿", "诚泰财险"].includes(ele.inscompany) && ele.companyId) {
  5303. this.lastCompanyId = ele.companyId;
  5304. }
  5305. res.data[index].quoteCode = 200;
  5306. res.data[index].result = ele;
  5307. }
  5308. });
  5309. });
  5310. }
  5311. // //险种合并集合
  5312. }
  5313. const combinedArray = [
  5314. ...this.riskList.map(item => item.riskCode),
  5315. ...this.kindList.map(item => item.kindCode),
  5316. ];
  5317. res.data = res.data.filter(obj => {
  5318. obj.agreement = obj.agreement.filter(agreementObj => {
  5319. // 险种配置为空,则过滤掉该协议
  5320. if (agreementObj.productsCodes == null) {
  5321. return true;
  5322. } else {
  5323. // 检查是否包含 A 的特殊处理
  5324. if (combinedArray.includes('A') && !agreementObj.productsCodes.includes(
  5325. 'A')) {
  5326. return false;
  5327. }
  5328. return agreementObj.productsCodes.some(item => combinedArray.includes(
  5329. item));
  5330. }
  5331. });
  5332. return obj.agreement.length > 0; // 返回true保留,返回false移除该保险公司
  5333. });
  5334. res.data.forEach((e) => {
  5335. e.agreement.forEach((el) => (el.disabled = false));
  5336. });
  5337. //this.totalCompanyList = res.data;
  5338. this.totalCompanyListBak =res.data;
  5339. },
  5340. //获取保险公司列表
  5341. // commpanyList() {
  5342. // this.$api.letter.gainAllowQuoteList("").then(res => {
  5343. // res.data.map(ele => {
  5344. // ele["result"] = {};
  5345. // ele["quoteCode"] = 0;
  5346. // ele["checked"] = false;
  5347. // ele["msg"] = "";
  5348. // ele["lastYearMsg"] = "";
  5349. // ele["agreementId"] = "";
  5350. // ele["apiType"] = "";
  5351. // ele["orderstatus"] = 0;
  5352. // ele.coefficient = "";
  5353. // // ele.agreementId = ele.agreement[0].id;
  5354. // ele.apiType = ele.agreement[0].apiType;
  5355. // ele.underwritingDescription =
  5356. // ele.agreement[0].underwritingDescription;
  5357. // });
  5358. // if (this.$route.query.data) {
  5359. // res.data.forEach((val, index) => {
  5360. // this.$route.query.data.insAreaCompanyEditingDtos.forEach(ele => {
  5361. // if (val.namesimple == ele.inscompany) {
  5362. // res.data[index].quoteCode = 200;
  5363. // res.data[index].result = ele;
  5364. // }
  5365. // });
  5366. // });
  5367. // }
  5368. // this.totalCompanyList = res.data;
  5369. // });
  5370. // },
  5371. Payment(id, item) {
  5372. this.carcode(id, item);
  5373. },
  5374. /**
  5375. // 获取出口费用
  5376. getExternalOrderFee(agreementId, riskList, kindList) {
  5377. let data = {
  5378. agreementId: agreementId,
  5379. risks: riskList,
  5380. kinds: kindList,
  5381. userId: this.userId,
  5382. jqPremium: this.policyNumberForm.jqpremium,
  5383. jqRadio: this.policyNumberForm.jqCostsProportion,
  5384. syPremium: this.policyNumberForm.sypremium,
  5385. syRadio: this.policyNumberForm.syCostsProportion,
  5386. jyPremium: this.policyNumberForm.jypremium,
  5387. jyRadio: this.policyNumberForm.noCostsProportion,
  5388. }
  5389. this.$api.letter.externalOrderFee(data).then((res) => {
  5390. if (res.code == 200) {
  5391. this.policyNumberForm.JqExportFee = res.data.jqExportRadio
  5392. this.policyNumberForm.syExportFee = res.data.syExportRadio
  5393. this.policyNumberForm.noExportFee = res.data.noExportRadio
  5394. console.log(res.data.jqExportRadio, res.data.syExportRadio, res.data.noExportRadio, '111111111111111111')
  5395. this.$forceUpdate()
  5396. } else {
  5397. this.$message.error(res.msg)
  5398. }
  5399. })
  5400. },
  5401. // 现询
  5402. getInquiryNowList(agreementId, riskList, kindList) {
  5403. let productId = ''
  5404. this.inquiryNowList = []
  5405. this.$api.letter.getProductId({
  5406. riskList: riskList,
  5407. kindList: kindList
  5408. }).then((res) => {
  5409. if (res.code == 200) {
  5410. productId = res.data
  5411. this.$api.letter.getInquiryNowFee({
  5412. agreementId: agreementId,
  5413. productId: productId
  5414. }).then((resp) => {
  5415. if (resp.code == 200) {
  5416. this.inquiryNowList = resp.data
  5417. }
  5418. })
  5419. }
  5420. })
  5421. },
  5422. inquiryNowListChange(data) {
  5423. if (data) {
  5424. this.nowCostsId = data // 现询id
  5425. this.isInquiryNowDisable = true
  5426. this.inquiryNowList.forEach((val) => {
  5427. if (val.id == data) {
  5428. this.policyNumberForm.jqCostsProportion = val.jqCostsProportion
  5429. this.policyNumberForm.noCostsProportion = val.noCostsProportion
  5430. this.policyNumberForm.syCostsProportion = val.syCostsProportion
  5431. }
  5432. })
  5433. } else {
  5434. this.nowCostsId = ''
  5435. this.isInquiryNowDisable = false
  5436. this.policyNumberForm.jqCostsProportion = ''
  5437. this.policyNumberForm.noCostsProportion = ''
  5438. this.policyNumberForm.syCostsProportion = ''
  5439. }
  5440. },
  5441. **/
  5442. /**
  5443. //选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
  5444. agreementChange(val, row, index, item) {
  5445. this.getInquiryNowList(val, this.riskList, this.kindList)
  5446. this.getExternalOrderFee(val, this.riskList, this.kindList)
  5447. this.kindListFun();
  5448. if (this.isLetter == "3") {
  5449. this.isLetter3agreementId = "";
  5450. this.isLetter3agreementId = item.agreementId;
  5451. }
  5452. let obj = {};
  5453. obj = row.find((item) => {
  5454. return item;
  5455. });
  5456. let selectRow = row.find((item) => {
  5457. return item.id == val;
  5458. });
  5459. let info = row.find((ele) => ele.id == val);
  5460. this.totalCompanyList[index].apiType = info.apiType;
  5461. this.totalCompanyList[index].underwritingDescription = val
  5462. ? selectRow.underwritingDescription
  5463. : ""; //重新赋值修改选中协议承保描述
  5464. if (this.$route.path != "/task/external/externalOrders")
  5465. if (item.namesimple == "平安财险") {
  5466. this.$api.letter.getPingAnDrivingInsuranceRule({
  5467. cimodelclass: this.carInfo.cimodelclass,
  5468. isUseCombine: 'Y',
  5469. tonNumber: this.carInfo.limitLoad,
  5470. ownAttribute: '03',
  5471. useAttribute: this.carInfo.carnature,
  5472. ruleSeatNum: Number(this.carInfo.seatCount),
  5473. agreementId: item.agreementId,
  5474. }).then(res => {
  5475. this.pinganInsuranceData = res.data;
  5476. })
  5477. return
  5478. }
  5479. // this.$api.letter
  5480. // .getDrivingInsuranceRule({
  5481. // companyCode: item.id,
  5482. // agreementId: item.agreementId,
  5483. // seatNum:
  5484. // item.namesimple == "永诚财险" || item.namesimple == "中煤财险"
  5485. // ? Number(this.carInfo.seatCount)
  5486. // : "",
  5487. // ruleUseNature: this.carInfo.carnature,
  5488. // ruleSeatNum: Number(this.carInfo.seatCount),
  5489. // risk: this.riskList,
  5490. // kind: this.kindList,
  5491. // ruleThirdPartyInsurance: this.insureList[1].amount,
  5492. // })
  5493. // .then((res) => {
  5494. // if (res.code == 200) {
  5495. // this.nonVehicle(res.data, item.cnName);
  5496. // switch (item.namesimple) {
  5497. // case "永诚财险":
  5498. // this.yongchengaccidentDataList = res.data;
  5499. // break;
  5500. // case "国任财险":
  5501. // this.guoRenaccidentDataList = res.data;
  5502. // break;
  5503. // case "渤海财险":
  5504. // this.boHaiaccidentDataList = res.data;
  5505. // break;
  5506. // case "中煤财险":
  5507. // this[item.cnName + +"InsuranceData"] = res.data;
  5508. // break;
  5509. // case "紫金财险":
  5510. // let data = res.data;
  5511. // data.map((ele) => {
  5512. // ele.quantity = 1;
  5513. // return ele;
  5514. // });
  5515. // this.ziJinInsuranceData = data;
  5516. // break;
  5517. // case "大家财险":
  5518. // this.dajiaInsuranceData = res.data;
  5519. // break;
  5520. // case "泰康财险":
  5521. // this.taikangaccidentDataList = res.data;
  5522. // break;
  5523. // case "诚泰财险":
  5524. // case "中国人寿":
  5525. // case "恒邦财险":
  5526. // case "太平财险":
  5527. // case "安盛天平":
  5528. // case "华农财险":
  5529. // case "众安财险":
  5530. // res.data.map((ele) => {
  5531. // ele.quantity = 1;
  5532. // return ele;
  5533. // });
  5534. // this[item.cnName + "InsuranceData"] = res.data;
  5535. // break;
  5536. // }
  5537. // } else {
  5538. // this.$message.error(res.msg);
  5539. // }
  5540. // });
  5541. // switch (item.namesimple) {
  5542. // case "永诚财险":
  5543. // this.accidentForm.agreementId = item.agreementId;
  5544. // this.$api.letter
  5545. // .ycgainAccidentList({
  5546. // companyCode: item.id,
  5547. // agreementId: item.agreementId,
  5548. // seatNum: Number(this.carInfo.seatCount)
  5549. // })
  5550. // .then(res => {
  5551. // if (res.code == 200) {
  5552. // this.accidentDataList = res.data;
  5553. // }
  5554. // });
  5555. // break;
  5556. // case "国任财险":
  5557. // this.guoRenaccidentForm.agreementId = item.agreementId;
  5558. // this.$api.letter
  5559. // .syncNonAutoInsGuoren({ agreementId: item.agreementId })
  5560. // .then(res => {
  5561. // if (res.code == 200) {
  5562. // this.guoRenaccidentDataList = res.data;
  5563. // } else {
  5564. // this.guoRenaccidentDataList = [];
  5565. // }
  5566. // });
  5567. // break;
  5568. // case "渤海财险":
  5569. // this.boHaiaccidentForm.agreementId = item.agreementId;
  5570. // let policyHolderInfo = this.tbczcarShow
  5571. // ? this.ownerInfo
  5572. // : this.policyHolderInfo;
  5573. // let productQueryVo = {
  5574. // agreementId: item.agreementId,
  5575. // carnature: this.carInfo.carnature,
  5576. // cimodelclass: this.carInfo.cimodelclass,
  5577. // exhaustScale: this.carInfo.enginedesc,
  5578. // limitLoad: this.carInfo.limitLoad,
  5579. // powerScale: this.carInfo.powerScale,
  5580. // seatCount: this.carInfo.seatCount,
  5581. // vehicleUse: this.carInfo.vehicleUse,
  5582. // policyHolderInfo,
  5583. // insuredPersonInfo: this.bbczcarShow
  5584. // ? this.ownerInfo
  5585. // : this.bbtbcarShow
  5586. // ? policyHolderInfo
  5587. // : this.insuredPersonInfo
  5588. // };
  5589. // this.$api.letter.productQueryboHai(productQueryVo).then(res => {
  5590. // if (res.code == 200) {
  5591. // this.boHaiaccidentDataList = res.data;
  5592. // } else {
  5593. // this.boHaiaccidentDataList = [];
  5594. // }
  5595. // });
  5596. // break;
  5597. // case "紫金财险":
  5598. // this.$api.letter
  5599. // .zijinqueryVehicleProducts({
  5600. // agreementId: val,
  5601. // seatCount: Number(this.carInfo.seatCount)
  5602. // })
  5603. // .then(res => {
  5604. // if (res.code == 200) {
  5605. // let data = res.data;
  5606. // data.map(ele => {
  5607. // ele.quantity = 1;
  5608. // return ele;
  5609. // });
  5610. // this.ziJinInsuranceData = data;
  5611. // } else {
  5612. // this.$message.error(res.msg);
  5613. // }
  5614. // });
  5615. // break;
  5616. // case "中国人寿":
  5617. // case "恒邦财险":
  5618. // case "太平财险":
  5619. // case "安盛天平":
  5620. // case "华农财险":
  5621. // case "众安财险":
  5622. // this.$api.letter.pythongetDriving({ agreementId: val }).then(res => {
  5623. // if (res.code == 200) {
  5624. // let data = res.data;
  5625. // data.map(ele => {
  5626. // ele.quantity = 1;
  5627. // return ele;
  5628. // });
  5629. // this[item.cnName + "InsuranceData"] = data;
  5630. // }
  5631. // });
  5632. // break;
  5633. // case "大家财险":
  5634. // this.$api.letter
  5635. // .dajiagetDriving({ agreementId: item.agreementId })
  5636. // .then(res => {
  5637. // if (res.code == 200) {
  5638. // this.dajiaInsuranceData = res.data;
  5639. // }
  5640. // });
  5641. // break;
  5642. // default:
  5643. // break;
  5644. // }
  5645. },
  5646. **/
  5647. nonVehicle(data, type) {
  5648. if (data.some((e) => e.isDefault)) {
  5649. if (type == "guoRen") {
  5650. this.grcxchange(data.find((ele) => ele.isDefault).projectCode);
  5651. this.grcxchangeChild(
  5652. data
  5653. .find((ele) => ele.isDefault)
  5654. .children.find((ele) => ele.isDefault).projectCode
  5655. );
  5656. }
  5657. if (type == "ansheng") {
  5658. this.anshengInsuranceChange(
  5659. data.find((ele) => ele.isDefault).projectCode
  5660. );
  5661. this.ASDrivingRadio(
  5662. data
  5663. .find((ele) => ele.isDefault)
  5664. .children.find((ele) => ele.isDefault)
  5665. );
  5666. }
  5667. if (type == "zijin") {
  5668. this[type + "InsuranceChange"]([
  5669. data.find((ele) => ele.isDefault).projectCode,
  5670. ]);
  5671. } else {
  5672. this[type + "InsuranceChange"](
  5673. data.find((ele) => ele.isDefault).projectCode
  5674. );
  5675. }
  5676. }
  5677. },
  5678. CheckboxChange(select, row) {
  5679. this.accidentalDrivingVo = [];
  5680. select.map((val) => {
  5681. this.accidentalDrivingVo.push(val);
  5682. return val;
  5683. });
  5684. },
  5685. //人寿驾意险选择
  5686. RSDrivingChange(row) {
  5687. this.renshouaccidentalDrivingVo = row;
  5688. },
  5689. TkDrivingChange(row) {
  5690. this.taikangaccidentalDrivingVo = row;
  5691. },
  5692. //众安驾意险选择
  5693. ZADrivingChange(row) {
  5694. this.zhonganaccidentalDrivingVo = row;
  5695. },
  5696. RSDrivingRadio(row) {
  5697. this.RSDrivingChange(row);
  5698. },
  5699. //安盛驾意险选择
  5700. ASDrivingRadio(row) {
  5701. this.anshengInsurancetype = row.projectCode;
  5702. this.anshengaccidentalDrivingVo = Object.assign({
  5703. ...this.anshengaccidentalDrivingVo,
  5704. ...row,
  5705. });
  5706. // this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
  5707. // this.anshengaccidentalDrivingVo.projectName = row.projectName;
  5708. },
  5709. pinganDetail(row, agreementId) {
  5710. this.pinganDataDetailVisible = false
  5711. this.$api.letter
  5712. .productDetailsQuery({
  5713. agreementId,
  5714. packageCode: row.code,
  5715. productCode: row.productCode,
  5716. version: row.version,
  5717. })
  5718. .then((res) => {
  5719. if (res.code == 200) {
  5720. this.pinganDataDetailVisible = true
  5721. this.pinganDataDetail = res.data
  5722. }
  5723. else {
  5724. this.$message.err(res.msg)
  5725. }
  5726. });
  5727. },
  5728. sameItem(array1, array2) {
  5729. return array2.find(item => {
  5730. array1.some(innerItem => innerItem.code === item.code)
  5731. }
  5732. );
  5733. },
  5734. PADrivingCheckbox(event, row, agreementId, index) {
  5735. // const checkedVal = this.accidentFormPA[index].pinganInsuranceDataTable.find(x => x.cameraId === item.cameraId)
  5736. const isSelected = event.some(selectedRow => selectedRow.code == row.code);
  5737. let isIndex = null
  5738. let amount = null
  5739. event.find((selectedRow, selectedIndex) => {
  5740. if (selectedRow.code == row.code) {
  5741. isIndex = selectedIndex
  5742. }
  5743. });
  5744. if (event.length > 0 && isSelected) {
  5745. this.$api.letter
  5746. .productDetailsQuery({
  5747. agreementId,
  5748. packageCode: row.code,
  5749. productCode: row.productCode,
  5750. version: row.version,
  5751. })
  5752. .then((res) => {
  5753. if (res.code == 200) {
  5754. res.data.forEach(ele => {
  5755. amount += Number(ele.unitInsuredAmount) ? Number(ele.unitInsuredAmount) : 0
  5756. })
  5757. event[isIndex].amount = amount
  5758. }
  5759. else {
  5760. this.$message.err(res.msg)
  5761. }
  5762. });
  5763. }
  5764. event.forEach((res, indexOf) => {
  5765. res.projectName = this.accidentFormPA[index].projectName
  5766. res.projectCode = this.accidentFormPA[index].projectCode
  5767. res.combineProductType = this.accidentFormPA[index].combineProductType
  5768. })
  5769. this.pinganaccidentalDrivingVo[index] = event
  5770. },
  5771. //平安驾意险选择
  5772. PADrivingRadio(row, agreementId, index) {
  5773. // this.accidentPremiumPA = row.premium;
  5774. this.accidentFormPA[index].quantity = '1';
  5775. this.accidentFormPA[index].sellListSize = Number(row.sellListSize);
  5776. this.accidentFormPA[index].premium = row.premium
  5777. this.accidentFormPA[index].combineProductType = row.combineProductType
  5778. this.accidentFormPA[index].accidentPremiumPA = row.premium
  5779. this.accidentFormPA[index].pinganInsurancetype = row.code;
  5780. this.$api.letter
  5781. .productDetailsQuery({
  5782. agreementId,
  5783. packageCode: row.code,
  5784. productCode: row.productCode,
  5785. version: row.version,
  5786. })
  5787. .then((res) => {
  5788. if (res.code == 200) {
  5789. this.accidentFormPA[index].amount = 0
  5790. res.data.forEach(e => {
  5791. this.accidentFormPA[index].amount += Number(e.unitInsuredAmount) ? Number(e.unitInsuredAmount) : 0
  5792. })
  5793. this.pinganaccidentalDrivingVo[index] = {
  5794. ...row,
  5795. ...this.accidentFormPA[index],
  5796. };
  5797. }
  5798. else {
  5799. this.$message.err(res.msg)
  5800. this.pinganaccidentalDrivingVo[index] = {
  5801. ...row,
  5802. ...this.accidentFormPA[index],
  5803. };
  5804. }
  5805. });
  5806. },
  5807. ZADrivingRadio(row) {
  5808. this.ZADrivingChange(row);
  5809. },
  5810. // 国任特约选择
  5811. contributingGuoRen(id) {
  5812. this.zijinengageListData = [];
  5813. this.contributingLoading = true;
  5814. this.contributingState = true;
  5815. this.hbsubmitdialogVisible = true;
  5816. this.$api.letter
  5817. .guorenqueryClauseData({ agreementId: id })
  5818. .then((res) => {
  5819. this.contributingLoading = false;
  5820. res.data.forEach((val) => {
  5821. val.clauseName = val.clauses;
  5822. val.clauseContent = val.clausesContext;
  5823. });
  5824. this.zijinengageListData = res.data;
  5825. });
  5826. },
  5827. //紫金特约选择
  5828. zijinengageChange(select, row) {
  5829. this.zijinengageList = [];
  5830. select.map((val) => {
  5831. this.zijinengageList.push({
  5832. clauseCode: val.clauseCode,
  5833. clauseName: val.clauseName,
  5834. clauses: val.clauseContent,
  5835. riskCode: val.riskCode,
  5836. });
  5837. return val;
  5838. });
  5839. },
  5840. zijinengageChangeAll(row) {
  5841. if (row) {
  5842. this.zijinengageChange(row);
  5843. } else {
  5844. this.$refs.expandTablePro.clearSelection();
  5845. this.zijinengageList = [];
  5846. }
  5847. },
  5848. //紫金特约内容编辑
  5849. zijincellDblclick(row, column) {
  5850. this.currentCell = row.index + "," + column.index;
  5851. if (
  5852. !["clauseContent"].includes(column.property) &&
  5853. row.modifyFlag == "1"
  5854. ) {
  5855. setTimeout(() => {
  5856. this.$refs[row.index + "," + column.index].focus();
  5857. });
  5858. }
  5859. },
  5860. tableCellClassName({ row, column, rowIndex, columnIndex }) {
  5861. row.index = rowIndex;
  5862. column.index = columnIndex;
  5863. },
  5864. hideInput() {
  5865. this.currentCell = null;
  5866. },
  5867. updateArray(arr, value, condition) {
  5868. if (condition) {
  5869. arr.push(value);
  5870. } else {
  5871. const index = arr.indexOf(value);
  5872. if (index !== -1) {
  5873. arr.splice(index, 1);
  5874. }
  5875. }
  5876. if (arr.length == 0) {
  5877. this.totalCompanyList.forEach((e) => {
  5878. e.disabled = false;
  5879. });
  5880. } else {
  5881. this.totalCompanyList.forEach((e) => {
  5882. e.disabled = e.id == arr[0] ? false : true;
  5883. });
  5884. }
  5885. },
  5886. //勾选保险公司
  5887. initchange(e, code, name, index) {
  5888. if (this.isLetter == "3") {
  5889. this.updateArray(this.isLetter3Arr, code, e);
  5890. if (e) {
  5891. this.totalCompanyList[index].result = JSON.parse(
  5892. JSON.stringify(this.policyNumberForm)
  5893. );
  5894. } else {
  5895. this.totalCompanyList[index].result = [];
  5896. }
  5897. }
  5898. if (e) {
  5899. this.kindListFun();
  5900. let ins = this.totalCompanyList[index].namesimple;
  5901. this.totalCompanyList[index].checked = e;
  5902. this.totalCompanyList[index].underwritingDescription =
  5903. this.totalCompanyList[index].agreement[0].underwritingDescription;
  5904. // if (this.$route.path != "/task/external/externalOrders")
  5905. // this.$api.letter
  5906. // .getDrivingInsuranceRule({
  5907. // agreementId: this.totalCompanyList[index].agreement[0].id,
  5908. // seatNum:
  5909. // ins == "永诚财险" || ins == "中煤财险"
  5910. // ? Number(this.carInfo.seatCount)
  5911. // : "",
  5912. // ruleUseNature: this.carInfo.carnature,
  5913. // ruleSeatNum: Number(this.carInfo.seatCount),
  5914. // risk: this.riskList,
  5915. // kind: this.kindList,
  5916. // ruleThirdPartyInsurance: this.insureList[1].amount,
  5917. // cimodelclass: ins == "平安财险"
  5918. // ? this.carInfo.cimodelclass
  5919. // : "",
  5920. // isUseCombine: ins == "平安财险"
  5921. // ? 'Y'
  5922. // : "",
  5923. // tonNumber: ins == "平安财险"
  5924. // ? this.carInfo.limitLoad
  5925. // : "",
  5926. // ownAttribute: ins == "平安财险"
  5927. // ? '03'
  5928. // : "",
  5929. // useAttribute: ins == "平安财险"
  5930. // ? this.carInfo.carnature
  5931. // : "",
  5932. // })
  5933. // .then((res) => {
  5934. // if (res.code == 200) {
  5935. // switch (ins) {
  5936. // case "永诚财险":
  5937. // this.yongchengaccidentDataList = res.data;
  5938. // break;
  5939. // case "国任财险":
  5940. // this.guoRenaccidentDataList = res.data;
  5941. // break;
  5942. // case "泰康财险":
  5943. // this.taikangaccidentDataList = res.data;
  5944. // break;
  5945. // case "渤海财险":
  5946. // this.boHaiaccidentDataList = res.data;
  5947. // break;
  5948. // case "中煤财险":
  5949. // case "平安财险":
  5950. // this[name + "InsuranceData"] = res.data;
  5951. // break;
  5952. // case "紫金财险":
  5953. // let data = res.data;
  5954. // data.map((ele) => {
  5955. // ele.quantity = 1;
  5956. // return ele;
  5957. // });
  5958. // this.ziJinInsuranceData = data;
  5959. // break;
  5960. // case "大家财险":
  5961. // this.dajiaInsuranceData = res.data;
  5962. // break;
  5963. // case "诚泰财险":
  5964. // case "中国人寿":
  5965. // case "恒邦财险":
  5966. // case "太平财险":
  5967. // case "华农财险":
  5968. // case "安盛天平":
  5969. // case "众安财险":
  5970. // res.data.map((ele) => {
  5971. // ele.quantity = 1;
  5972. // return ele;
  5973. // });
  5974. // this[name + "InsuranceData"] = res.data;
  5975. // break;
  5976. // }
  5977. // this.nonVehicle(res.data, name);
  5978. // } else {
  5979. // this.$message.error(res.msg);
  5980. // }
  5981. // });
  5982. // switch (ins) {
  5983. // case "永诚财险":
  5984. // this.accidentForm.agreementId = this.totalCompanyList[
  5985. // index
  5986. // ].agreement[0].id;
  5987. // this.$api.letter
  5988. // .ycgainAccidentList({
  5989. // companyCode: this.totalCompanyList[index].id,
  5990. // agreementId: this.totalCompanyList[index].agreement[0].id,
  5991. // seatNum: Number(this.carInfo.seatCount)
  5992. // })
  5993. // .then(res => {
  5994. // if (res.code == 200) {
  5995. // this.accidentDataList = res.data;
  5996. // } else {
  5997. // this.accidentDataList = [];
  5998. // }
  5999. // });
  6000. // break;
  6001. // case "国任财险":
  6002. // this.guoRenaccidentForm.agreementId = this.totalCompanyList[
  6003. // index
  6004. // ].agreement[0].id;
  6005. // this.$api.letter
  6006. // .syncNonAutoInsGuoren({
  6007. // goodsCode: "",
  6008. // agreementId: this.totalCompanyList[index].agreement[0].id
  6009. // })
  6010. // .then(res => {
  6011. // if (res.code == 200) {
  6012. // this.guoRenaccidentDataList = res.data;
  6013. // } else {
  6014. // this.guoRenaccidentDataList = [];
  6015. // }
  6016. // });
  6017. // break;
  6018. // case "紫金财险":
  6019. // this.$api.letter
  6020. // .zijinqueryVehicleProducts({
  6021. // agreementId: this.totalCompanyList[index].agreement[0].id,
  6022. // seatCount: Number(this.carInfo.seatCount)
  6023. // })
  6024. // .then(res => {
  6025. // if (res.code == 200) {
  6026. // let data = res.data;
  6027. // data.map(ele => {
  6028. // ele.quantity = 1;
  6029. // return ele;
  6030. // });
  6031. // this.ziJinInsuranceData = data;
  6032. // } else {
  6033. // this.$message.error(res.msg);
  6034. // }
  6035. // });
  6036. // break;
  6037. // case "安盛天平":
  6038. // this.$api.letter
  6039. // .pythongetDriving({
  6040. // agreementId: this.totalCompanyList[index].agreement[0].id
  6041. // })
  6042. // .then(res => {
  6043. // if (res.code == 200) {
  6044. // let data = res.data;
  6045. // data.map(ele => {
  6046. // ele.departmentProductList.map(val => {
  6047. // val.quantity = 1;
  6048. // });
  6049. // return ele;
  6050. // });
  6051. // this[name + "InsuranceData"] = data;
  6052. // } else {
  6053. // this.$message.error(res.msg);
  6054. // }
  6055. // });
  6056. // break;
  6057. // case "中国人寿":
  6058. // case "恒邦财险":
  6059. // case "太平财险":
  6060. // case "华农财险":
  6061. // case "众安财险":
  6062. // this.$api.letter
  6063. // .pythongetDriving({
  6064. // agreementId: this.totalCompanyList[index].agreement[0].id
  6065. // })
  6066. // .then(res => {
  6067. // if (res.code == 200) {
  6068. // let data = res.data;
  6069. // data.map(ele => {
  6070. // ele.quantity = 1;
  6071. // return ele;
  6072. // });
  6073. // this[name + "InsuranceData"] = data;
  6074. // } else {
  6075. // this.$message.error(res.msg);
  6076. // }
  6077. // });
  6078. // break;
  6079. // case "中煤财险":
  6080. // this.accidentFormZM.agreementId = this.totalCompanyList[
  6081. // index
  6082. // ].agreement[0].id;
  6083. // this.$api.letter
  6084. // .zmGetDrivingPro({
  6085. // agreementId: this.totalCompanyList[index].agreement[0].id,
  6086. // seatNum: this.carInfo.seatCount
  6087. // })
  6088. // .then(res => {
  6089. // if (res.code == 200) {
  6090. // let data = res.data;
  6091. // this[name + "InsuranceData"] = data;
  6092. // } else {
  6093. // this.$message.error(res.msg);
  6094. // }
  6095. // });
  6096. // break;
  6097. // case "大家财险":
  6098. // this.$api.letter
  6099. // .dajiagetDriving({
  6100. // agreementId: this.totalCompanyList[index].agreement[0].id
  6101. // })
  6102. // .then(res => {
  6103. // if (res.code == 200) {
  6104. // this.dajiaInsuranceData = res.data;
  6105. // } else {
  6106. // this.$message.error(res.msg);
  6107. // }
  6108. // });
  6109. // break;
  6110. // default:
  6111. // break;
  6112. // }
  6113. // } else {
  6114. }
  6115. },
  6116. clearAccidentForm() {
  6117. this.yongchengInsuranceDataTable = [];
  6118. this.accidentForm = {};
  6119. this.accidentForm.fen = 1;
  6120. this.accidentForm.premium = 0;
  6121. },
  6122. clearAccidentFormPA(index) {
  6123. // this.accidentFormPA[index]={
  6124. // quantity: 1,
  6125. // premium: 0,
  6126. // pingantemplateSelection:'',
  6127. // pinganInsuranceDataTable:[],
  6128. // pinganInsurancetype:'',
  6129. // }
  6130. this.pinganaccidentalDrivingVo[index] = {};
  6131. console.log(this.accidentFormPA[index], 9999999999);
  6132. },
  6133. clearAccidentFormTk() {
  6134. this.taikangaccidentalDrivingVo = {};
  6135. this.taikangInsuranceDataTable = [];
  6136. this.accidentFormTk = {};
  6137. this.accidentFormTk.fen = 1;
  6138. this.accidentFormTk.premium = 0;
  6139. },
  6140. clearAccidentFormGr() {
  6141. (this.guoRenInsuranceDataTable = []),
  6142. (this.guoRenaccidentDataListChild = []);
  6143. this.guoRenaccidentForm = {
  6144. quantity: "1",
  6145. premium: 0,
  6146. };
  6147. },
  6148. clearAccidentFormBh() {
  6149. this.bohaiInsuranceDataTable = [];
  6150. this.boHaiaccidentForm = {
  6151. copies: "1",
  6152. premium: 0,
  6153. };
  6154. // this.bohaiaccidentalDrivingVo={};
  6155. },
  6156. clearAccidentFormHN() {
  6157. this.huanongaccidentalDrivingVo = {};
  6158. },
  6159. clearAccidentFormHB() {
  6160. this.hengbangaccidentalDrivingVo = {};
  6161. },
  6162. clearAccidentFormCT() {
  6163. this.chengtaiaccidentalDrivingVo = {};
  6164. },
  6165. clearAccidentFormTP() {
  6166. this.taipingaccidentalDrivingVo = {};
  6167. },
  6168. clearAccidentFormDJ() {
  6169. this.dajiaaccidentalDrivingVo = {};
  6170. },
  6171. clearAccidentFormZM() {
  6172. this.zhongmeiaccidentalDrivingVo = {};
  6173. },
  6174. clearAccidentFormZJ() {
  6175. this.accidentalDrivingVo = [];
  6176. },
  6177. clearAccidentFormZA() {
  6178. this.zhonganaccidentalDrivingVo = {};
  6179. },
  6180. clearAccidentFormRS() {
  6181. this.renshouaccidentalDrivingVo = {};
  6182. },
  6183. clearAccidentFormAS() {
  6184. this.anshengaccidentalDrivingVo = {};
  6185. },
  6186. //身份证有效期长期
  6187. insureLongterm(e) {
  6188. this[e].identifyValidEndDate = "9999-12-31";
  6189. },
  6190. //较强起保日期事件
  6191. jqChange(e) {
  6192. this.jqendDate = this.oneYearPast1(e);
  6193. },
  6194. //商业起保日期事件
  6195. syChange(e) {
  6196. this.syendDate = this.oneYearPast1(e);
  6197. },
  6198. // //查看更多
  6199. // selectMore(leg) {
  6200. // this.insureMore = false;
  6201. // this.insureLength = leg;
  6202. // },
  6203. // //收起
  6204. // packup() {
  6205. // this.insureMore = true;
  6206. // this.insureLength = 5;
  6207. // },
  6208. //险别选择框事件
  6209. insureitemChange(e, item) {
  6210. let index_old= -1;
  6211. this.kindList.filter(function(kind,index,arr){
  6212. if(kind.kindCode == item.kindCode){
  6213. index_old =index;
  6214. }
  6215. });
  6216. console.log(index_old)
  6217. if (e != 0) {
  6218. this.sychecked = true;
  6219. this.systartDate = this.transformTime1();
  6220. this.syendDate = this.oneYearPast1(this.systartDate);
  6221. if (index_old==-1){
  6222. this.kindList.push(item)
  6223. }else{
  6224. this.$set(this.kindList, index_old, item);
  6225. }
  6226. this.obtainProtocol();
  6227. } else {
  6228. if (index_old==-1){
  6229. this.kindList.push(item)
  6230. }else{
  6231. this.$set(this.kindList, index_old, item);
  6232. }
  6233. this.obtainProtocol();
  6234. }
  6235. console.log(this.kindList)
  6236. },
  6237. all() {
  6238. this.$refs.detailsDialog.setBackupVisible(true);
  6239. },
  6240. base64ToBlob(code) {
  6241. code = code.replace(/[\n\r]/g, "");
  6242. // atob() 方法用于解码使用 base-64 编码的字符串。
  6243. const raw = window.atob(code);
  6244. const rawLength = raw.length;
  6245. const uInt8Array = new Uint8Array(rawLength);
  6246. for (let i = 0; i < rawLength; ++i) {
  6247. uInt8Array[i] = raw.charCodeAt(i);
  6248. }
  6249. return new Blob([uInt8Array], { type: "application/pdf" });
  6250. },
  6251. viewPdf(content) {
  6252. if (!content) {
  6253. this.$message.error("暂无文件");
  6254. return;
  6255. }
  6256. const blob = this.base64ToBlob(content);
  6257. this.href = blob;
  6258. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  6259. window.navigator.msSaveOrOpenBlob(blob);
  6260. } else {
  6261. const fileURL = URL.createObjectURL(blob);
  6262. window.open(fileURL);
  6263. }
  6264. },
  6265. //二维码生成插件
  6266. creatQrCode(text) {
  6267. // 查找并删除旧的二维码DOM元素
  6268. let element = document.getElementById("qrcode");
  6269. while (element.firstChild) {
  6270. element.removeChild(element.firstChild);
  6271. }
  6272. // 创建新的QRCode实例
  6273. this.qrcode = new QRCode("qrcode", {
  6274. text: text,
  6275. width: this.qrcodeWidth,
  6276. height: this.qrcodeHeight,
  6277. colorDark: "#000000",
  6278. colorLight: "#ffffff",
  6279. correctLevel: QRCode.CorrectLevel.H,
  6280. });
  6281. },
  6282. //人工核保
  6283. underwriting(id) {
  6284. let param = {
  6285. companyId: id,
  6286. };
  6287. this.$api.letter.manualUnderwriting(param).then((res) => {
  6288. if (res.code == "200") {
  6289. this.Payment(id);
  6290. }
  6291. });
  6292. },
  6293. signature(companyId) {
  6294. this.$api.letter.pingAnsignEleApply({ companyId }).then((res) => {
  6295. if (res.code == 200 && res.data) {
  6296. this.resultMessageImg = process.env.BASE_URL + res.data.resultMessage
  6297. this.signaturedialogVisible = true;
  6298. // 查找并删除旧的二维码DOM元素
  6299. // let element = document.getElementById("signaturecode");
  6300. // while (element.firstChild) {
  6301. // element.removeChild(element.firstChild);
  6302. // }
  6303. // this.signaturecode = new QRCode("signaturecode", {
  6304. // text: resultMessage,
  6305. // width: 180,
  6306. // height: 180,
  6307. // colorDark: "#000000",
  6308. // colorLight: "#ffffff",
  6309. // correctLevel: QRCode.CorrectLevel.H,
  6310. // });
  6311. // this.signaturedialogVisible = true;
  6312. // this.$api.letter.pingAnsignEleApply({companyId}).then((res) => {
  6313. // if (res.code == 200 && res.data) {
  6314. // // 查找并删除旧的二维码DOM元素
  6315. // let element = document.getElementById("signaturecode");
  6316. // while (element.firstChild) {
  6317. // element.removeChild(element.firstChild);
  6318. // }
  6319. // this.signaturecode = new QRCode("signaturecode", {
  6320. // text: res.data.resultMessage,
  6321. // width: 180,
  6322. // height: 180,
  6323. // colorDark: "#000000",
  6324. // colorLight: "#ffffff",
  6325. // correctLevel: QRCode.CorrectLevel.H,
  6326. // });
  6327. } else {
  6328. this.$message({
  6329. message: res.msg || "暂无数据!",
  6330. type: "warning",
  6331. });
  6332. }
  6333. });
  6334. },
  6335. jqcheckedChange(e) {
  6336. if (e) {
  6337. this.jqstartDate = this.transformTime1();
  6338. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  6339. if(!this.riskList.includes("0507")){
  6340. this.riskList.push({
  6341. riskCode: "0507",
  6342. });
  6343. }
  6344. this.obtainProtocol();
  6345. } else {
  6346. this.jqstartDate = "";
  6347. this.jqendDate = "";
  6348. let list = this.riskList.filter(item => item.riskCode !== "0507");
  6349. this.riskList = list;
  6350. this.obtainProtocol();
  6351. }
  6352. },
  6353. sycheckedChange(e) {
  6354. if (e) {
  6355. this.systartDate = this.transformTime1();
  6356. this.syendDate = this.oneYearPast1(this.systartDate);
  6357. if(!this.riskList.includes("0510")){
  6358. this.riskList.push({
  6359. riskCode: "0510",
  6360. });
  6361. }
  6362. this.obtainProtocol();
  6363. } else {
  6364. this.systartDate = "";
  6365. this.syendDate = "";
  6366. let list = this.riskList.filter(item => item.riskCode !== "0510");
  6367. this.riskList = list;
  6368. this.obtainProtocol();
  6369. }
  6370. },
  6371. // 保存
  6372. preserveQuote(type, btnLoading) {
  6373. if (
  6374. this.userId == "" ||
  6375. this.userId == null ||
  6376. this.userId == undefined
  6377. ) {
  6378. this.$message({ message: "请选择业务员信息", type: "error" });
  6379. return;
  6380. } else {
  6381. if (!this.userId.includes("M")) {
  6382. this.$message({ message: "请选择业务员信息", type: "error" });
  6383. return;
  6384. }
  6385. }
  6386. let starttime = new Date(this.carInfo.registerDate);
  6387. let endtime = new Date(this.carInfo.issueDate);
  6388. if (endtime < starttime) {
  6389. this.$message({ message: "发证日期早于初登日期", type: "error" });
  6390. return;
  6391. }
  6392. if (this.costFlag =='') {
  6393. this.$message({ message: "请选择是否现询", type: "error" });
  6394. return;
  6395. }
  6396. if (this.nowCostsId =='') {
  6397. this.$message({ message: "费用为空", type: "error" });
  6398. return;
  6399. }
  6400. if (
  6401. this.policyNumberForm.jqpolicyno ||
  6402. this.policyNumberForm.jqpremium ||
  6403. // this.policyNumberForm.jqCostsProportion ||
  6404. this.policyNumberForm.jqPolicyList.length > 0
  6405. ) {
  6406. if (
  6407. !(
  6408. this.policyNumberForm.jqpolicyno &&
  6409. this.policyNumberForm.jqpremium &&
  6410. // this.policyNumberForm.jqCostsProportion &&
  6411. this.policyNumberForm.jqPolicyList.length > 0
  6412. )
  6413. ) {
  6414. this.$message({
  6415. message: "请填写交强保单号、交强险保费、交强保单",
  6416. type: "error",
  6417. });
  6418. return;
  6419. }
  6420. }
  6421. if(this.policyNumberForm.jqpolicyno!='' && this.policyNumberForm.jqpolicyno!= null && this.policyNumberForm.jqCostsProportion == ''){
  6422. this.$message({
  6423. message: "请填写交强险总比例(%)",
  6424. type: "error",
  6425. });
  6426. return;
  6427. }
  6428. if (
  6429. this.policyNumberForm.sypolicyno ||
  6430. this.policyNumberForm.sypremium ||
  6431. //this.policyNumberForm.syCostsProportion ||
  6432. this.policyNumberForm.syPolicyList.length > 0
  6433. ) {
  6434. if (
  6435. !(
  6436. this.policyNumberForm.sypolicyno &&
  6437. this.policyNumberForm.sypremium &&
  6438. // this.policyNumberForm.syCostsProportion &&
  6439. this.policyNumberForm.syPolicyList.length > 0
  6440. )
  6441. ) {
  6442. this.$message({
  6443. message: "请填写商业保单号、商业险保费、商业保单",
  6444. type: "error",
  6445. });
  6446. return;
  6447. }
  6448. }
  6449. if(this.policyNumberForm.sypolicyno!='' && this.policyNumberForm.sypolicyno!= null && this.policyNumberForm.syCostsProportion == ''){
  6450. this.$message({
  6451. message: "请填写商业险总比例(%)",
  6452. type: "error",
  6453. });
  6454. return;
  6455. }
  6456. if (
  6457. this.policyNumberForm.jypolicyno ||
  6458. this.policyNumberForm.jypremium ||
  6459. // this.policyNumberForm.noCostsProportion ||
  6460. this.policyNumberForm.noPolicyList.length > 0
  6461. ) {
  6462. if (
  6463. !(
  6464. this.policyNumberForm.jypolicyno &&
  6465. this.policyNumberForm.jypremium &&
  6466. this.policyNumberForm.noCostsProportion &&
  6467. this.policyNumberForm.noPolicyList.length > 0
  6468. )
  6469. ) {
  6470. this.$message({
  6471. message:
  6472. "请填写驾意险保单号、驾意险保费、非车保单",
  6473. type: "error",
  6474. });
  6475. return;
  6476. }
  6477. }
  6478. if(this.policyNumberForm.jypolicyno!='' && this.policyNumberForm.jypolicyno!= null && this.policyNumberForm.noCostsProportion == ''){
  6479. this.$message({
  6480. message: "请填写非车险总比例(%)",
  6481. type: "error",
  6482. });
  6483. return;
  6484. }
  6485. this.$refs["carInfo"].validate((valid) => {
  6486. if (valid) {
  6487. var _this = this;
  6488. _this.$refs["ownerInfo"].validate((valid1) => {
  6489. if (valid1) {
  6490. _this.$refs["policyNumberForm"].validate((valid2) => {
  6491. if (valid2) {
  6492. if (_this.tbczcarShow == true) {
  6493. _this.policyHolderInfo = {..._this.ownerInfo}
  6494. }
  6495. if (_this.bbczcarShow == true) {
  6496. _this.insuredPersonInfo = {..._this.ownerInfo}
  6497. }
  6498. if (_this.bbtbcarShow == true) {
  6499. _this.insuredPersonInfo = {..._this.policyHolderInfo}
  6500. }
  6501. _this.carInfo.vinNo = _this.carInfo.frameNo;
  6502. _this.riskList = []; //险种大类
  6503. _this.kindList = []; //商业险险别
  6504. if (
  6505. (!_this.jqstartDate || !_this.jqendDate) &&
  6506. (!_this.systartDate || !_this.syendDate)
  6507. ) {
  6508. this.$message({
  6509. message: "投保日期不能为空",
  6510. type: "warning",
  6511. });
  6512. } else {
  6513. this.calculateLoading = true;
  6514. setInterval(() => {
  6515. this.calculateLoading = false;
  6516. }, 3000);
  6517. if (_this.jqchecked) {
  6518. //交强
  6519. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  6520. _this.jqendDate = this.transformTime(_this.jqendDate);
  6521. _this.riskList.push({
  6522. amount: "200000",
  6523. premium: "0",
  6524. riskCode: "0507",
  6525. endDate: _this.jqendDate,
  6526. startDate: _this.jqstartDate,
  6527. instantFlag: "0",
  6528. });
  6529. }
  6530. if (_this.sychecked) {
  6531. _this.systartDate = this.transformTime(_this.systartDate);
  6532. _this.syendDate = this.transformTime(_this.syendDate);
  6533. //商业
  6534. _this.riskList.push({
  6535. premium: "0",
  6536. riskCode: "0510",
  6537. quotePreceptCode: "",
  6538. quotePreceptName: "",
  6539. endDate: _this.syendDate,
  6540. startDate: _this.systartDate,
  6541. instantFlag: "0",
  6542. });
  6543. _this.insureList.map((ele, index) => {
  6544. if (
  6545. ele.amount != "0" &&
  6546. (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  6547. ) {
  6548. _this.kindList.push({
  6549. unitAmount: _this.insureList[index].amount,
  6550. kindCode: _this.insureList[index].kindCode,
  6551. kindName: _this.insureList[index].kindName,
  6552. });
  6553. } else if (
  6554. ele.amount != "0" &&
  6555. (ele.kindCode == "MJ1" ||
  6556. ele.kindCode == "MJ2" ||
  6557. ele.kindCode == "MJ3" ||
  6558. ele.kindCode == "MJ4")
  6559. ) {
  6560. _this.kindList.push({
  6561. deductibleRate: _this.insureList[index].amount,
  6562. kindCode: _this.insureList[index].kindCode,
  6563. kindName: _this.insureList[index].kindName,
  6564. });
  6565. } else if (
  6566. ele.amount != "0" &&
  6567. (ele.kindCode == "TY1" ||
  6568. ele.kindCode == "TY2" ||
  6569. ele.kindCode == "TY3" ||
  6570. ele.kindCode == "TY4")
  6571. ) {
  6572. _this.kindList.push({
  6573. serviceTimes: _this.insureList[index].amount,
  6574. kindCode: _this.insureList[index].kindCode,
  6575. kindName: _this.insureList[index].kindName,
  6576. });
  6577. } else if (ele.amount != "0") {
  6578. _this.kindList.push({
  6579. amount: _this.insureList[index].amount,
  6580. kindCode: _this.insureList[index].kindCode,
  6581. kindName: _this.insureList[index].kindName,
  6582. });
  6583. }
  6584. return ele;
  6585. });
  6586. } else {
  6587. _this.kindList = [];
  6588. }
  6589. // console.log(_this.kindList);
  6590. // debugger
  6591. this.preserveOrderStageProcessing(type, btnLoading);
  6592. }
  6593. } else {
  6594. document.getElementById("Waibu").scrollIntoView();
  6595. _this.$message({
  6596. message: "请检查外部订单信息",
  6597. type: "warning",
  6598. });
  6599. }
  6600. });
  6601. } else {
  6602. document.getElementById("CheZhu").scrollIntoView();
  6603. _this.$message({ message: "请检查人员信息", type: "warning" });
  6604. }
  6605. });
  6606. } else {
  6607. document.getElementById("Car").scrollIntoView();
  6608. this.$message({ message: "请检查车辆信息", type: "warning" });
  6609. return false;
  6610. }
  6611. });
  6612. },
  6613. //订单生成后保存接口
  6614. preserveOrderStageProcessing(type, btnLoading) {
  6615. // console.log(this.editorInfo);
  6616. // debugger;
  6617. //同车主的选择框
  6618. this[btnLoading] = true;
  6619. if (this.tbczcarShow && this.imageList2.length > 0) {
  6620. //投保人同车主
  6621. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  6622. if (this.imageList3.length == 1) {
  6623. this.imageList3[0].imageType = this.imageList3[0].imageType.includes(
  6624. "C0"
  6625. )
  6626. ? "C03"
  6627. : "D03";
  6628. } else {
  6629. this.imageList3.forEach((e) => {
  6630. e.imageType = e.imageType.includes("C0") ? "C03" : "D03";
  6631. });
  6632. }
  6633. }
  6634. if (this.bbczcarShow && this.imageList2.length > 0) {
  6635. //被保人同车主
  6636. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  6637. if (this.imageList4.length == 1) {
  6638. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  6639. "C0"
  6640. )
  6641. ? "C04"
  6642. : "D04";
  6643. } else {
  6644. this.imageList4.forEach((e) => {
  6645. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  6646. });
  6647. }
  6648. }
  6649. if (this.bbtbcarShow && this.imageList3.length > 0) {
  6650. //被保人同投保人
  6651. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  6652. if (this.imageList4.length == 1) {
  6653. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  6654. "C0"
  6655. )
  6656. ? "C04"
  6657. : "D04";
  6658. } else {
  6659. this.imageList4.forEach((e) => {
  6660. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  6661. });
  6662. }
  6663. }
  6664. //日期长度<10处理
  6665. const formatDate = (date) => {
  6666. if (date.length < 10) {
  6667. return this.timeformat(date);
  6668. }
  6669. return date;
  6670. };
  6671. if (this.carInfo.registerDate.length < 10) {
  6672. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  6673. }
  6674. if (this.carInfo.issueDate.length < 10) {
  6675. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  6676. }
  6677. if (
  6678. this.carInfo.transferDate &&
  6679. this.carInfo.transferDate.length < 10 &&
  6680. this.carInfo.transferDate !== ""
  6681. ) {
  6682. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  6683. }
  6684. //日期长度<10处理
  6685. //提交身份证/驾驶证 ——————————————————
  6686. this.policyHolderInfo.owner = this.tbczcarShow;
  6687. this.insuredPersonInfo.owner = this.bbczcarShow;
  6688. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  6689. if (typeof this.ownerInfo.provinceData == "string") {
  6690. this.ownerInfo.provinceData = [];
  6691. }
  6692. if (typeof this.insuredPersonInfo.provinceData == "string") {
  6693. this.insuredPersonInfo.provinceData = [];
  6694. }
  6695. if (typeof this.policyHolderInfo.provinceData == "string") {
  6696. this.policyHolderInfo.provinceData = [];
  6697. }
  6698. if (this.$route.query.data) {
  6699. const mergedArray = [
  6700. ...this.imageList1,
  6701. ...this.imageList2,
  6702. ...this.imageList3,
  6703. ...this.imageList4,
  6704. ...this.imageList5,
  6705. ...this.imageList6,
  6706. ];
  6707. if (mergedArray.length > 0) {
  6708. let imageparam = {
  6709. imageList: mergedArray,
  6710. quoteNo: this.$route.query.data.quoteno,
  6711. };
  6712. this.$api.letter.uploadImages(imageparam).then((responses) => {
  6713. // this.$refs.imageDialog.imageEcho(this.$route.query.data.quoteno)
  6714. this.imageEcho(this.$route.query.data.quoteno); // 获取图片
  6715. });
  6716. }
  6717. this.editorInfo.applyinfo.owner = this.tbczcarShow;
  6718. this.editorInfo.insureinfo.owner = this.bbczcarShow;
  6719. this.editorInfo.insureinfo.insuranceHolder = this.bbtbcarShow;
  6720. let params = {
  6721. orderNo: this.$route.query.data.orderno,
  6722. ...this.policyNumberForm,
  6723. agreementId: this.isLetter3agreementId,
  6724. stageFlag: type,
  6725. jqstartdate: this.jqstartDate,
  6726. jqenddate: this.jqendDate,
  6727. systartdate: this.systartDate,
  6728. syenddate: this.syendDate,
  6729. kind: this.kindList,
  6730. risk: this.riskList,
  6731. kindList: this.kindList,
  6732. riskList: this.riskList,
  6733. carInfo: this.carInfo,
  6734. carinfo: this.carInfo,
  6735. insuredPersonInfo: this.insuredPersonInfo,
  6736. insureinfo: this.insuredPersonInfo,
  6737. ownerinfo: this.ownerInfo,
  6738. ownerInfo: this.ownerInfo,
  6739. policyHolderInfo: this.policyHolderInfo,
  6740. applyinfo: this.policyHolderInfo,
  6741. isExternal: "1",
  6742. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  6743. nowCostsId: this.nowCostsId,
  6744. costFlag: this.costFlag,
  6745. orderExternalStatus:this.orderExternalStatus
  6746. };
  6747. // debugger;
  6748. this.$api.letter.updateExternalOrder(params).then((res) => {
  6749. if (res.code == "200") {
  6750. this[btnLoading] = false;
  6751. this.$message({
  6752. message: res.msg || "编辑成功",
  6753. type: "success",
  6754. });
  6755. this.add();
  6756. } else {
  6757. this[btnLoading] = false;
  6758. this.$message.error(res.msg);
  6759. }
  6760. });
  6761. } else {
  6762. this.ownerInfo.owner = this.tbczcarShow;
  6763. this.insuredPersonInfo.owner = this.bbczcarShow;
  6764. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  6765. let param = {
  6766. userId: this.userId,
  6767. quoteno: this.quoteno,
  6768. orderNo: this.orderno,
  6769. carInfo: this.carInfo,
  6770. insuredPersonInfo: this.insuredPersonInfo,
  6771. ownerInfo: this.ownerInfo,
  6772. policyHolderInfo: this.policyHolderInfo,
  6773. kindList: this.kindList,
  6774. riskList: this.riskList,
  6775. isExternal: "1",
  6776. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  6777. };
  6778. this.$api.letter.generateOrder(param).then((res) => {
  6779. if (res.code == "200") {
  6780. //上传图片
  6781. const mergedArray = [
  6782. ...this.imageList1,
  6783. ...this.imageList2,
  6784. ...this.imageList3,
  6785. ...this.imageList4,
  6786. ...this.imageList5,
  6787. ...this.imageList6,
  6788. ];
  6789. if (mergedArray.length > 0) {
  6790. let imageparam = {
  6791. imageList: mergedArray,
  6792. quoteNo: res.data.quoteno,
  6793. };
  6794. this.$api.letter.uploadImages(imageparam).then((responses) => {
  6795. this.imageEcho(res.data.quoteno); // 获取图片
  6796. // this.$refs.imageDialog.imageEcho(res.data.quoteno)
  6797. });
  6798. }
  6799. let params1 = {
  6800. orderNo: res.data.orderno,
  6801. ...this.policyNumberForm,
  6802. agreementId: this.isLetter3agreementId,
  6803. stageFlag: type,
  6804. nowCostsId: this.nowCostsId,
  6805. costFlag: this.costFlag,
  6806. };
  6807. // debugger
  6808. this.$api.letter.saveSubOrder(params1).then((res) => {
  6809. if (res.code == "200") {
  6810. this[btnLoading] = false;
  6811. this.$message({
  6812. message: res.msg || "录入成功",
  6813. type: "success",
  6814. });
  6815. this.add();
  6816. } else {
  6817. this[btnLoading] = false;
  6818. this.$message.error(res.msg);
  6819. }
  6820. });
  6821. } else {
  6822. this[btnLoading] = false;
  6823. this.$message.error(res.msg);
  6824. }
  6825. });
  6826. }
  6827. document.getElementById("company").scrollIntoView();
  6828. this.imageUploadShow = true;
  6829. },
  6830. policyHolderInfovalidate() {
  6831. let isvalidat = false;
  6832. let _this = this;
  6833. if (_this.tbczcarShow == true) {
  6834. _this.policyHolderInfo = JSON.parse(JSON.stringify(_this.ownerInfo));
  6835. } else {
  6836. _this.$refs["policyHolderInfo"].validate((valid2) => {
  6837. if (valid2) {
  6838. isvalidat = false;
  6839. } else {
  6840. document.getElementById("toubaor").scrollIntoView();
  6841. _this.$message({ message: "请检查投保人信息", type: "warning" });
  6842. isvalidat = true;
  6843. }
  6844. });
  6845. }
  6846. if (isvalidat) {
  6847. return;
  6848. }
  6849. },
  6850. //报价
  6851. quote() {
  6852. let starttime = new Date(this.carInfo.registerDate);
  6853. let endtime = new Date(this.carInfo.issueDate);
  6854. if (endtime < starttime) {
  6855. this.$message({ message: "发证日期早于初登日期", type: "error" });
  6856. return;
  6857. }
  6858. this.policyHolderInfovalidate();
  6859. this.$refs["carInfo"].validate((valid) => {
  6860. if (valid) {
  6861. var _this = this;
  6862. // this.policyHolderInfovalidate()
  6863. if (_this.tbczcarShow == true) {
  6864. _this.policyHolderInfo = JSON.parse(
  6865. JSON.stringify(_this.ownerInfo)
  6866. );
  6867. }
  6868. _this.$refs["ownerInfo"].validate((valid1) => {
  6869. if (valid1) {
  6870. if (_this.bbczcarShow == true) {
  6871. _this.insuredPersonInfo = JSON.parse(
  6872. JSON.stringify(_this.ownerInfo)
  6873. );
  6874. }
  6875. if (_this.bbtbcarShow == true) {
  6876. _this.insuredPersonInfo = JSON.parse(
  6877. JSON.stringify(_this.policyHolderInfo)
  6878. );
  6879. }
  6880. _this.carInfo.vinNo = _this.carInfo.frameNo;
  6881. _this.riskList = []; //险种大类
  6882. _this.kindList = []; //商业险险别
  6883. if (
  6884. (!_this.jqstartDate || !_this.jqendDate) &&
  6885. (!_this.systartDate || !_this.syendDate)
  6886. ) {
  6887. this.$message({ message: "投保日期不能为空", type: "warning" });
  6888. } else {
  6889. this.calculateLoading = true;
  6890. setInterval(() => {
  6891. this.calculateLoading = false;
  6892. }, 3000);
  6893. if (_this.jqchecked) {
  6894. //交强
  6895. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  6896. _this.jqendDate = this.transformTime(_this.jqendDate);
  6897. _this.riskList.push({
  6898. amount: "200000",
  6899. premium: "0",
  6900. riskCode: "0507",
  6901. endDate: _this.jqendDate,
  6902. startDate: _this.jqstartDate,
  6903. instantFlag: "0",
  6904. });
  6905. }
  6906. if (_this.sychecked) {
  6907. _this.systartDate = this.transformTime(_this.systartDate);
  6908. _this.syendDate = this.transformTime(_this.syendDate);
  6909. //商业
  6910. _this.riskList.push({
  6911. premium: "0",
  6912. riskCode: "0510",
  6913. quotePreceptCode: "",
  6914. quotePreceptName: "",
  6915. endDate: _this.syendDate,
  6916. startDate: _this.systartDate,
  6917. instantFlag: "0",
  6918. });
  6919. _this.insureList.map((ele, index) => {
  6920. if (
  6921. ele.amount != "0" &&
  6922. (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  6923. ) {
  6924. _this.kindList.push({
  6925. unitAmount: _this.insureList[index].amount,
  6926. kindCode: _this.insureList[index].kindCode,
  6927. kindName: _this.insureList[index].kindName,
  6928. });
  6929. } else if (
  6930. ele.amount != "0" &&
  6931. (ele.kindCode == "MJ1" ||
  6932. ele.kindCode == "MJ2" ||
  6933. ele.kindCode == "MJ3" ||
  6934. ele.kindCode == "MJ4")
  6935. ) {
  6936. _this.kindList.push({
  6937. deductibleRate: _this.insureList[index].amount,
  6938. kindCode: _this.insureList[index].kindCode,
  6939. kindName: _this.insureList[index].kindName,
  6940. });
  6941. } else if (
  6942. ele.amount != "0" &&
  6943. (ele.kindCode == "TY1" ||
  6944. ele.kindCode == "TY2" ||
  6945. ele.kindCode == "TY3" ||
  6946. ele.kindCode == "TY4")
  6947. ) {
  6948. _this.kindList.push({
  6949. serviceTimes: _this.insureList[index].amount,
  6950. kindCode: _this.insureList[index].kindCode,
  6951. kindName: _this.insureList[index].kindName,
  6952. });
  6953. } else if (ele.amount != "0") {
  6954. _this.kindList.push({
  6955. amount: _this.insureList[index].amount,
  6956. kindCode: _this.insureList[index].kindCode,
  6957. kindName: _this.insureList[index].kindName,
  6958. });
  6959. }
  6960. return ele;
  6961. });
  6962. } else {
  6963. _this.kindList = [];
  6964. }
  6965. // if (_this.orderno) {
  6966. this.OrderStageProcessing();
  6967. // } else {
  6968. // _this.$api.letter.getquote().then(res => {
  6969. // _this.quoteno = res.data; //获取报价号
  6970. // this.OrderStageProcessing();
  6971. // });
  6972. // }
  6973. }
  6974. } else {
  6975. document.getElementById("CheZhu").scrollIntoView();
  6976. _this.$message({ message: "请检查人员信息", type: "warning" });
  6977. }
  6978. });
  6979. } else {
  6980. document.getElementById("Car").scrollIntoView();
  6981. this.$message({ message: "请检查车辆信息", type: "warning" });
  6982. return false;
  6983. }
  6984. });
  6985. },
  6986. kindListFun() {
  6987. var _this = this;
  6988. _this.riskList = []; //险种大类
  6989. _this.kindList = []; //商业险险别
  6990. if (
  6991. (!_this.jqstartDate || !_this.jqendDate) &&
  6992. (!_this.systartDate || !_this.syendDate)
  6993. ) {
  6994. this.$message({ message: "投保日期不能为空", type: "warning" });
  6995. } else {
  6996. if (_this.jqchecked) {
  6997. //交强
  6998. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  6999. _this.jqendDate = this.transformTime(_this.jqendDate);
  7000. _this.riskList.push({
  7001. amount: "200000",
  7002. premium: "0",
  7003. riskCode: "0507",
  7004. endDate: _this.jqendDate,
  7005. startDate: _this.jqstartDate,
  7006. instantFlag: "0",
  7007. });
  7008. }
  7009. if (_this.sychecked) {
  7010. _this.systartDate = this.transformTime(_this.systartDate);
  7011. _this.syendDate = this.transformTime(_this.syendDate);
  7012. //商业
  7013. _this.riskList.push({
  7014. premium: "0",
  7015. riskCode: "0510",
  7016. quotePreceptCode: "",
  7017. quotePreceptName: "",
  7018. endDate: _this.syendDate,
  7019. startDate: _this.systartDate,
  7020. instantFlag: "0",
  7021. });
  7022. _this.insureList.map((ele, index) => {
  7023. if (
  7024. ele.amount != "0" &&
  7025. (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  7026. ) {
  7027. _this.kindList.push({
  7028. unitAmount: _this.insureList[index].amount,
  7029. kindCode: _this.insureList[index].kindCode,
  7030. kindName: _this.insureList[index].kindName,
  7031. });
  7032. } else if (
  7033. ele.amount != "0" &&
  7034. (ele.kindCode == "MJ1" ||
  7035. ele.kindCode == "MJ2" ||
  7036. ele.kindCode == "MJ3" ||
  7037. ele.kindCode == "MJ4")
  7038. ) {
  7039. _this.kindList.push({
  7040. deductibleRate: _this.insureList[index].amount,
  7041. kindCode: _this.insureList[index].kindCode,
  7042. kindName: _this.insureList[index].kindName,
  7043. });
  7044. } else if (
  7045. ele.amount != "0" &&
  7046. (ele.kindCode == "TY1" ||
  7047. ele.kindCode == "TY2" ||
  7048. ele.kindCode == "TY3" ||
  7049. ele.kindCode == "TY4")
  7050. ) {
  7051. _this.kindList.push({
  7052. serviceTimes: _this.insureList[index].amount,
  7053. kindCode: _this.insureList[index].kindCode,
  7054. kindName: _this.insureList[index].kindName,
  7055. });
  7056. } else if (ele.amount != "0") {
  7057. _this.kindList.push({
  7058. amount: _this.insureList[index].amount,
  7059. kindCode: _this.insureList[index].kindCode,
  7060. kindName: _this.insureList[index].kindName,
  7061. });
  7062. }
  7063. return ele;
  7064. });
  7065. } else {
  7066. _this.kindList = [];
  7067. }
  7068. }
  7069. },
  7070. //动态函数
  7071. ToolClickFun(MethodName, Parameter, companyId, companyName) {
  7072. this[`${MethodName}`](Parameter, companyId, companyName);
  7073. },
  7074. //更新报价历史
  7075. QuotationHistory() {
  7076. let params = {
  7077. orderNo: this.orderno,
  7078. orderStatus: "",
  7079. };
  7080. this.$api.letter.queryQuoteHistory(params).then((res) => {
  7081. res.data.forEach((item) => {
  7082. if (item.accidentInfo) {
  7083. item.accidentInfo.constructor === Object
  7084. ? [item.accidentInfo]
  7085. : item.accidentInfo;
  7086. }
  7087. });
  7088. this.HistoryList = res.data;
  7089. });
  7090. },
  7091. open2(Name, Msg) {
  7092. this.$notify.info({
  7093. title: Name,
  7094. dangerouslyUseHTMLString: true,
  7095. type: "warning",
  7096. message: Msg,
  7097. customClass: "customNotifyClass",
  7098. duration: 7000,
  7099. });
  7100. },
  7101. open3(Name, Msg) {
  7102. this.$notify.info({
  7103. title: Name,
  7104. dangerouslyUseHTMLString: true,
  7105. type: "warning",
  7106. message: `<p>${Msg.replace(/\n/g, "<br>")}</p>`,
  7107. customClass: "customNotifyClass",
  7108. duration: 7000,
  7109. });
  7110. },
  7111. openPredictInfo(Name, Msg) {
  7112. this.redictInfoMsg = Msg;
  7113. this.redictInfodialogVisible = true;
  7114. },
  7115. //订单生成前数据处理事件
  7116. OrderStageProcessing() {
  7117. if (this.tbczcarShow && this.imageList2.length > 0) {
  7118. //投保人同车主
  7119. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  7120. if (this.imageList3.length == 1) {
  7121. if(this.imageList3[0].imageType.includes("C0")){
  7122. this.imageList3[0].imageType = this.imageList3[0].imageType.includes(
  7123. "C0"
  7124. )
  7125. ? "C03"
  7126. : "D03";
  7127. }
  7128. if(this.imageList3[0].imageType.includes("Y0")){
  7129. this.imageList3[0].imageType = this.imageList3[0].imageType.includes(
  7130. "Y0"
  7131. )
  7132. ? "Y03"
  7133. : "";
  7134. }
  7135. } else {
  7136. this.imageList3.forEach((e) => {
  7137. e.imageType = e.imageType.includes("C0") ? "C03" : "D03";
  7138. });
  7139. }
  7140. }
  7141. if (this.bbczcarShow && this.imageList2.length > 0) {
  7142. //被保人同车主
  7143. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  7144. if (this.imageList4.length == 1) {
  7145. if(this.imageList4[0].imageType.includes("C0")){
  7146. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  7147. "C0"
  7148. )
  7149. ? "C04"
  7150. : "D04";
  7151. }
  7152. if(this.imageList4[0].imageType.includes("Y0")){
  7153. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  7154. "Y0"
  7155. )
  7156. ? "Y04"
  7157. : "";
  7158. }
  7159. } else {
  7160. this.imageList4.forEach((e) => {
  7161. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  7162. });
  7163. }
  7164. // if (this.imageList4.length == 1) {
  7165. // this.imageList4[0].imageType = "C04";
  7166. // }
  7167. // else {
  7168. // this.imageList4[0].imageType = "C04";
  7169. // this.imageList4[1].imageType = "D04";
  7170. // }
  7171. }
  7172. if (this.bbtbcarShow && this.imageList3.length > 0) {
  7173. //被保人同投保人
  7174. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  7175. if (this.imageList4.length == 1) {
  7176. if(this.imageList4[0].imageType.includes("C0")){
  7177. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  7178. "C0"
  7179. )
  7180. ? "C04"
  7181. : "D04";
  7182. }
  7183. if(this.imageList4[0].imageType.includes("Y0")){
  7184. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  7185. "Y0"
  7186. )
  7187. ? "Y04"
  7188. : "";
  7189. }
  7190. } else {
  7191. this.imageList4.forEach((e) => {
  7192. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  7193. });
  7194. }
  7195. // if (this.imageList4.length == 1) {
  7196. // this.imageList4[0].imageType = "C04";
  7197. // } else {
  7198. // this.imageList4[0].imageType = "C04";
  7199. // this.imageList4[1].imageType = "D04";
  7200. // }
  7201. }
  7202. console.log(11111111111);
  7203. //日期长度<10处理
  7204. const formatDate = (date) => {
  7205. if (date.length < 10) {
  7206. return this.timeformat(date);
  7207. }
  7208. return date;
  7209. };
  7210. if (this.carInfo.registerDate.length < 10) {
  7211. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  7212. }
  7213. if (this.carInfo.issueDate.length < 10) {
  7214. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  7215. }
  7216. if (
  7217. this.carInfo.transferDate &&
  7218. this.carInfo.transferDate.length < 10 &&
  7219. this.carInfo.transferDate !== ""
  7220. ) {
  7221. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  7222. }
  7223. console.log(2222222222);
  7224. //日期长度<10处理
  7225. //提交身份证/驾驶证 ——————————————————
  7226. this.policyHolderInfo.owner = this.tbczcarShow;
  7227. this.insuredPersonInfo.owner = this.bbczcarShow;
  7228. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  7229. if (typeof this.ownerInfo.provinceData == "string") {
  7230. this.ownerInfo.provinceData = [];
  7231. }
  7232. if (typeof this.insuredPersonInfo.provinceData == "string") {
  7233. this.insuredPersonInfo.provinceData = [];
  7234. }
  7235. if (typeof this.policyHolderInfo.provinceData == "string") {
  7236. this.policyHolderInfo.provinceData = [];
  7237. }
  7238. let param = {
  7239. userId: this.userId,
  7240. quoteno: this.quoteno,
  7241. orderNo: this.orderno,
  7242. carInfo: this.carInfo,
  7243. insuredPersonInfo: this.insuredPersonInfo,
  7244. ownerInfo: this.ownerInfo,
  7245. policyHolderInfo: this.policyHolderInfo,
  7246. kindList: this.kindList,
  7247. riskList: this.riskList,
  7248. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7249. };
  7250. this.$api.letter[this.apiInterfaceName](param).then((res) => {
  7251. if (res.code == "200") {
  7252. //上传图片
  7253. const mergedArray = [
  7254. ...this.imageList1,
  7255. ...this.imageList2,
  7256. ...this.imageList3,
  7257. ...this.imageList4,
  7258. ...this.imageList5,
  7259. ...this.imageList6,
  7260. ];
  7261. if (mergedArray.length > 0) {
  7262. let imageparam = {
  7263. imageList: mergedArray,
  7264. quoteNo: res.data.quoteno,
  7265. };
  7266. this.$api.letter.uploadImages(imageparam).then((responses) => {
  7267. this.imageEcho(res.data.quoteno); // 获取图片
  7268. // this.$refs.imageDialog.imageEcho(res.data.quoteno)
  7269. });
  7270. }
  7271. this.quoteno = res.data.quoteno;
  7272. this.orderno = res.data.orderno;
  7273. this.totalCompanyList.map((ele, index) => {
  7274. if (ele.checked) {
  7275. //动态调用报价接口
  7276. ele.quoteCode = 1;
  7277. ele.orderstatus = 0;
  7278. this.ToolClickFun(ele.cnName, index, ele.id, ele.namesimple);
  7279. }
  7280. });
  7281. } else if (res.code == 1001) {
  7282. this.$confirm("是否生成新订单?", "提示", {
  7283. confirmButtonText: "确定",
  7284. cancelButtonText: "取消",
  7285. type: "warning",
  7286. })
  7287. .then(() => {
  7288. this.orderno = "";
  7289. this.quoteno = "";
  7290. this.quote();
  7291. })
  7292. .catch(() => { });
  7293. } else {
  7294. this.$message({ message: res.msg, type: "warning" });
  7295. }
  7296. });
  7297. document.getElementById("company").scrollIntoView();
  7298. this.imageUploadShow = true;
  7299. },
  7300. // 泰康报价--11
  7301. taikang(num, id, namesimple) {
  7302. this.quoteInsurance(
  7303. num,
  7304. id,
  7305. namesimple,
  7306. this.totalCompanyList[num].apiType
  7307. );
  7308. },
  7309. // 平安报价
  7310. pingan(num, id) {
  7311. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  7312. let accidentalDrivingVo = []
  7313. if (this.pinganaccidentalDrivingVo) {
  7314. accidentalDrivingVo = this.pinganaccidentalDrivingVo
  7315. // accidentalDrivingVo = Object.assign({
  7316. // ...this.pinganaccidentalDrivingVo,
  7317. // ...this.accidentFormPA,
  7318. // });
  7319. }
  7320. let params = {
  7321. accidentalDrivingVo,
  7322. orderNo: this.orderno,
  7323. companyId: id,
  7324. kinds: this.kindList,
  7325. risks: this.riskList,
  7326. agreementId: this.totalCompanyList[num].agreementId,
  7327. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  7328. };
  7329. this.$api.letter.pinganquote(params).then((res) => {
  7330. this.totalCompanyList[num].msg = res.msg;
  7331. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  7332. this.totalCompanyList[num].quoteCode = "4";
  7333. this.totalCompanyList[num].msg = res.msg;
  7334. return;
  7335. } else if (
  7336. res.data == null &&
  7337. res.msg.indexOf("交强险平台返回") > -1 &&
  7338. res.msg.indexOf(";终保日期") > -1
  7339. ) {
  7340. this.totalCompanyList[num].lastYearMsg =
  7341. "<b>交强险</b><br>" +
  7342. res.msg.slice(
  7343. res.msg.indexOf("起保日期 "),
  7344. res.msg.indexOf("地区 山西。") + 6
  7345. );
  7346. let time =
  7347. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  7348. this.jqstartDate = time;
  7349. this.jqendDate = this.oneYearPast1(time);
  7350. if (this.riskList.length > 0) {
  7351. for (let i = 0; i < this.riskList.length; i++) {
  7352. if (this.riskList[i].riskCode == "0507") {
  7353. this.riskList[i].startDate = time;
  7354. this.riskList[i].endDate = this.oneYearPast1(time);
  7355. }
  7356. }
  7357. }
  7358. let param = {
  7359. userId: this.userId,
  7360. quoteno: this.quoteno,
  7361. orderNo: this.orderno,
  7362. carInfo: this.carInfo,
  7363. insuredPersonInfo: this.insuredPersonInfo,
  7364. ownerInfo: this.ownerInfo,
  7365. policyHolderInfo: this.policyHolderInfo,
  7366. kindList: this.kindList,
  7367. riskList: this.riskList,
  7368. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7369. };
  7370. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  7371. this.pingan(num, id);
  7372. });
  7373. } else if (!!res.data) {
  7374. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  7375. this.totalCompanyList[num].lastYearMsg = "";
  7376. let dat = res.data.warnMessageList;
  7377. dat.map((ele) => {
  7378. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  7379. });
  7380. }
  7381. this.totalCompanyList[num].quoteCode = 200;
  7382. this.totalCompanyList[num].result = res.data;
  7383. this.QuotationHistory();
  7384. } else {
  7385. this.totalCompanyList[num].quoteCode = "3";
  7386. this.totalCompanyList[num].msg = res.msg;
  7387. return;
  7388. }
  7389. });
  7390. },
  7391. //永安报价
  7392. yongan(num, id) {
  7393. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  7394. let params = {
  7395. orderNo: this.orderno,
  7396. companyId: id,
  7397. kinds: this.kindList,
  7398. risks: this.riskList,
  7399. agreementId: this.totalCompanyList[num].agreementId,
  7400. };
  7401. this.$api.letter.yonganquote(params).then((res) => {
  7402. this.totalCompanyList[num].msg = res.msg;
  7403. if (res.msg == "重复投保" && res.code == "501") {
  7404. if (!!res.data.jqStartDate && !res.data.syStartDate) {
  7405. this.jqstartDate = res.data.jqStartDate;
  7406. this.jqendDate = res.data.jqEndDate;
  7407. this.updateRiskDates(
  7408. "0507",
  7409. res.data.jqStartDate,
  7410. res.data.jqEndDate
  7411. );
  7412. let param = {
  7413. userId: this.userId,
  7414. quoteno: this.quoteno,
  7415. orderNo: this.orderno,
  7416. carInfo: this.carInfo,
  7417. insuredPersonInfo: this.insuredPersonInfo,
  7418. ownerInfo: this.ownerInfo,
  7419. policyHolderInfo: this.policyHolderInfo,
  7420. kindList: this.kindList,
  7421. riskList: this.riskList,
  7422. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7423. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  7424. };
  7425. return this.$api.letter[this.apiInterfaceName](param).then(
  7426. (res) => {
  7427. this.yongan(num, id);
  7428. }
  7429. );
  7430. } else if (!!res.data.syStartDate && !res.data.jqStartDate) {
  7431. this.systartDate = res.data.syStartDate;
  7432. this.syendDate = res.data.syEndDate;
  7433. this.updateRiskDates(
  7434. "0510",
  7435. res.data.syStartDate,
  7436. res.data.syEndDate
  7437. );
  7438. let param = {
  7439. userId: this.userId,
  7440. quoteno: this.quoteno,
  7441. orderNo: this.orderno,
  7442. carInfo: this.carInfo,
  7443. insuredPersonInfo: this.insuredPersonInfo,
  7444. ownerInfo: this.ownerInfo,
  7445. policyHolderInfo: this.policyHolderInfo,
  7446. kindList: this.kindList,
  7447. riskList: this.riskList,
  7448. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7449. };
  7450. return this.$api.letter[this.apiInterfaceName](param).then(
  7451. (res) => {
  7452. this.yongan(num, id);
  7453. }
  7454. );
  7455. } else if (!!res.data.syStartDate && !!res.data.jqStartDate) {
  7456. this.jqstartDate = res.data.jqStartDate;
  7457. this.jqendDate = res.data.jqEndDate;
  7458. this.systartDate = res.data.syStartDate;
  7459. this.syendDate = res.data.syEndDate;
  7460. this.updateRiskDates(
  7461. "0507",
  7462. res.data.jqStartDate,
  7463. res.data.jqEndDate
  7464. );
  7465. this.updateRiskDates(
  7466. "0510",
  7467. res.data.syStartDate,
  7468. res.data.syEndDate
  7469. );
  7470. let param = {
  7471. userId: this.userId,
  7472. quoteno: this.quoteno,
  7473. orderNo: this.orderno,
  7474. carInfo: this.carInfo,
  7475. insuredPersonInfo: this.insuredPersonInfo,
  7476. ownerInfo: this.ownerInfo,
  7477. policyHolderInfo: this.policyHolderInfo,
  7478. kindList: this.kindList,
  7479. riskList: this.riskList,
  7480. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7481. };
  7482. return this.$api.letter[this.apiInterfaceName](param).then(
  7483. (res) => {
  7484. this.yongan(num, id);
  7485. }
  7486. );
  7487. } else {
  7488. this.totalCompanyList[num].quoteCode = "3";
  7489. this.totalCompanyList[num].msg = "重复投保";
  7490. }
  7491. } else if (
  7492. res.code == "500" ||
  7493. res.code == "502" ||
  7494. res.code == "-9999"
  7495. ) {
  7496. this.totalCompanyList[num].quoteCode = "-9999";
  7497. this.totalCompanyList[num].msg = res.msg;
  7498. } else {
  7499. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  7500. this.totalCompanyList[num].lastYearMsg = "";
  7501. let dat = res.data.warnMessageList;
  7502. dat.map((ele) => {
  7503. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  7504. });
  7505. }
  7506. this.totalCompanyList[num].quoteCode = 200;
  7507. this.totalCompanyList[num].result = res.data;
  7508. this.QuotationHistory();
  7509. }
  7510. });
  7511. },
  7512. updateRiskDates(riskCode, startDate, endDate) {
  7513. for (let i = 0; i < this.riskList.length; i++) {
  7514. if (this.riskList[i].riskCode == riskCode) {
  7515. this.riskList[i].startDate = startDate;
  7516. this.riskList[i].endDate = endDate;
  7517. }
  7518. }
  7519. },
  7520. //中煤报价
  7521. zhongmei(num, id) {
  7522. let accidentalDrivingVo = {};
  7523. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  7524. // if (this.accidentFormZM.projectCode) {
  7525. // accidentalDrivingVo = {
  7526. // projectCode: this.accidentFormZM.projectCode,
  7527. // projectName: this.accidentFormZM.projectName,
  7528. // quantity: this.accidentFormZM.quantity
  7529. // ? this.accidentFormZM.quantity
  7530. // : "1"
  7531. // };
  7532. // }
  7533. if (this.accidentFormZM.projectCode) {
  7534. accidentalDrivingVo = {
  7535. ...this.zhongmeiInsuranceData.find(
  7536. (e) => e.projectCode == this.accidentFormZM.projectCode
  7537. ),
  7538. quantity: this.accidentFormZM.quantity
  7539. ? this.accidentFormZM.quantity
  7540. : "1",
  7541. };
  7542. }
  7543. let params = {
  7544. accidentalDrivingVo,
  7545. orderNo: this.orderno,
  7546. companyId: id,
  7547. kinds: this.kindList,
  7548. risks: this.riskList,
  7549. agreementId: this.totalCompanyList[num].agreementId,
  7550. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  7551. };
  7552. this.$api.letter.zhongmeiquote(params).then((res) => {
  7553. this.totalCompanyList[num].msg = res.msg;
  7554. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  7555. this.totalCompanyList[num].quoteCode = "4";
  7556. this.totalCompanyList[num].msg = res.msg;
  7557. return;
  7558. } else if (
  7559. res.data == null &&
  7560. res.msg.indexOf("交强险平台返回") > -1 &&
  7561. res.msg.indexOf(";终保日期") > -1
  7562. ) {
  7563. this.totalCompanyList[num].lastYearMsg =
  7564. "<b>交强险</b><br>" +
  7565. res.msg.slice(
  7566. res.msg.indexOf("起保日期 "),
  7567. res.msg.indexOf("地区 山西。") + 6
  7568. );
  7569. let time =
  7570. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  7571. this.jqstartDate = time;
  7572. this.jqendDate = this.oneYearPast1(time);
  7573. if (this.riskList.length > 0) {
  7574. for (let i = 0; i < this.riskList.length; i++) {
  7575. if (this.riskList[i].riskCode == "0507") {
  7576. this.riskList[i].startDate = time;
  7577. this.riskList[i].endDate = this.oneYearPast1(time);
  7578. }
  7579. }
  7580. }
  7581. let param = {
  7582. userId: this.userId,
  7583. quoteno: this.quoteno,
  7584. orderNo: this.orderno,
  7585. carInfo: this.carInfo,
  7586. insuredPersonInfo: this.insuredPersonInfo,
  7587. ownerInfo: this.ownerInfo,
  7588. policyHolderInfo: this.policyHolderInfo,
  7589. kindList: this.kindList,
  7590. riskList: this.riskList,
  7591. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7592. };
  7593. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  7594. this.zhongmei(num, id);
  7595. });
  7596. } else if (!!res.data) {
  7597. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  7598. this.totalCompanyList[num].lastYearMsg = "";
  7599. let dat = res.data.warnMessageList;
  7600. dat.map((ele) => {
  7601. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  7602. });
  7603. }
  7604. this.totalCompanyList[num].quoteCode = 200;
  7605. this.totalCompanyList[num].result = res.data;
  7606. this.QuotationHistory();
  7607. } else {
  7608. this.totalCompanyList[num].quoteCode = "3";
  7609. this.totalCompanyList[num].msg = res.msg;
  7610. return;
  7611. }
  7612. });
  7613. },
  7614. // 大家报价
  7615. dajia(num, id) {
  7616. // let accidentalDrivingVo=[]
  7617. // if(this.dajiaaccidentalDrivingVo){
  7618. // accidentalDrivingVo.rideRiskCode=this.dajiaaccidentalDrivingVo.schemeNo;
  7619. // accidentalDrivingVo.rideRiskName=this.dajiaaccidentalDrivingVo.cvrgName;
  7620. // accidentalDrivingVo.quantity=this.dajiaaccidentalDrivingVo.quantity;
  7621. // }
  7622. let type = this.totalCompanyList[num].apiType;
  7623. let api = type == 2 ? "pythonquote" : "dajiaquote";
  7624. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  7625. let params = {
  7626. accidentalDrivingVo: this.dajiaaccidentalDrivingVo,
  7627. orderNo: this.orderno,
  7628. companyId: id,
  7629. kinds: this.kindList,
  7630. risks: this.riskList,
  7631. agreementId: this.totalCompanyList[num].agreementId,
  7632. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  7633. };
  7634. this.$api.letter[api](params).then((res) => {
  7635. this.totalCompanyList[num].msg = res.msg;
  7636. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  7637. this.totalCompanyList[num].quoteCode = "4";
  7638. this.totalCompanyList[num].msg = res.msg;
  7639. return;
  7640. } else if (
  7641. res.data == null &&
  7642. res.msg.indexOf("交强险平台返回") > -1 &&
  7643. res.msg.indexOf(";终保日期") > -1
  7644. ) {
  7645. this.totalCompanyList[num].lastYearMsg =
  7646. "<b>交强险</b><br>" +
  7647. res.msg.slice(
  7648. res.msg.indexOf("起保日期 "),
  7649. res.msg.indexOf("地区 山西。") + 6
  7650. );
  7651. let time =
  7652. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  7653. this.jqstartDate = time;
  7654. this.jqendDate = this.oneYearPast1(time);
  7655. if (this.riskList.length > 0) {
  7656. for (let i = 0; i < this.riskList.length; i++) {
  7657. if (this.riskList[i].riskCode == "0507") {
  7658. this.riskList[i].startDate = time;
  7659. this.riskList[i].endDate = this.oneYearPast1(time);
  7660. }
  7661. }
  7662. }
  7663. let param = {
  7664. userId: this.userId,
  7665. quoteno: this.quoteno,
  7666. orderNo: this.orderno,
  7667. carInfo: this.carInfo,
  7668. insuredPersonInfo: this.insuredPersonInfo,
  7669. ownerInfo: this.ownerInfo,
  7670. policyHolderInfo: this.policyHolderInfo,
  7671. kindList: this.kindList,
  7672. riskList: this.riskList,
  7673. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7674. };
  7675. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  7676. this.dajia(num, id);
  7677. });
  7678. } else if (!!res.data) {
  7679. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  7680. this.totalCompanyList[num].lastYearMsg = "";
  7681. let dat = res.data.warnMessageList;
  7682. dat.map((ele) => {
  7683. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  7684. });
  7685. }
  7686. this.totalCompanyList[num].quoteCode = 200;
  7687. this.totalCompanyList[num].result = res.data;
  7688. this.QuotationHistory();
  7689. } else {
  7690. this.totalCompanyList[num].quoteCode = "3";
  7691. this.totalCompanyList[num].msg = res.msg;
  7692. return;
  7693. }
  7694. });
  7695. },
  7696. //华泰报价
  7697. huatai(num, id) {
  7698. let type = this.totalCompanyList[num].apiType;
  7699. let api = type == 2 ? "pythonquote" : "huataiquote";
  7700. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  7701. let params = {
  7702. orderNo: this.orderno,
  7703. companyId: id,
  7704. kinds: this.kindList,
  7705. risks: this.riskList,
  7706. agreementId: this.totalCompanyList[num].agreementId,
  7707. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  7708. };
  7709. this.$api.letter[api](params).then((res) => {
  7710. this.totalCompanyList[num].msg = res.msg;
  7711. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  7712. this.totalCompanyList[num].quoteCode = "4";
  7713. this.totalCompanyList[num].msg = res.msg;
  7714. return;
  7715. } else if (
  7716. res.data == null &&
  7717. res.msg.indexOf("交强险平台返回") > -1 &&
  7718. res.msg.indexOf(";终保日期") > -1
  7719. ) {
  7720. //判断保司返回重复投保信息,进行默认赋值起终保日期,重新算费 后面联调需要调整
  7721. let time =
  7722. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  7723. this.jqstartDate = time;
  7724. this.jqendDate = this.oneYearPast1(time);
  7725. this.systartDate = time;
  7726. this.syendDate = this.oneYearPast1(time);
  7727. if (this.riskList.length > 0) {
  7728. for (let i = 0; i < this.riskList.length; i++) {
  7729. if (this.riskList[i].riskCode == "0507") {
  7730. this.riskList[i].startDate = time;
  7731. this.riskList[i].endDate = this.oneYearPast1(time);
  7732. } else if (this.riskList[i].riskCode == "0510") {
  7733. this.riskList[i].startDate = time;
  7734. this.riskList[i].endDate = this.oneYearPast1(time);
  7735. }
  7736. }
  7737. }
  7738. let param = {
  7739. userId: this.userId,
  7740. quoteno: this.quoteno,
  7741. orderNo: this.orderno,
  7742. carInfo: this.carInfo,
  7743. insuredPersonInfo: this.insuredPersonInfo,
  7744. ownerInfo: this.ownerInfo,
  7745. policyHolderInfo: this.policyHolderInfo,
  7746. kindList: this.kindList,
  7747. riskList: this.riskList,
  7748. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7749. };
  7750. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  7751. this.huatai(num, id);
  7752. });
  7753. } else if (!!res.data) {
  7754. this.totalCompanyList[num].quoteCode = 200;
  7755. this.totalCompanyList[num].result = res.data;
  7756. this.QuotationHistory();
  7757. } else {
  7758. this.totalCompanyList[num].quoteCode = "3";
  7759. this.totalCompanyList[num].msg = res.msg;
  7760. return;
  7761. }
  7762. });
  7763. },
  7764. //紫金报价
  7765. zijin(num, id) {
  7766. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  7767. let params = {
  7768. accidentalDrivingVo: this.accidentalDrivingVo,
  7769. orderNo: this.orderno,
  7770. companyId: id,
  7771. kinds: this.kindList,
  7772. risks: this.riskList,
  7773. agreementId: this.totalCompanyList[num].agreementId,
  7774. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  7775. coefficient: this.totalCompanyList[num].coefficient,
  7776. };
  7777. this.$api.letter.zijinquote(params).then((res) => {
  7778. this.totalCompanyList[num].msg = res.msg;
  7779. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  7780. this.totalCompanyList[num].quoteCode = "4";
  7781. this.totalCompanyList[num].msg = res.msg;
  7782. return;
  7783. } else if (
  7784. res.data == null &&
  7785. res.msg.indexOf("交强险平台返回") > -1 &&
  7786. res.msg.indexOf(";终保日期") > -1
  7787. ) {
  7788. let time =
  7789. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  7790. this.jqstartDate = time;
  7791. this.jqendDate = this.oneYearPast1(time);
  7792. this.systartDate = time;
  7793. this.syendDate = this.oneYearPast1(time);
  7794. if (this.riskList.length > 0) {
  7795. for (let i = 0; i < this.riskList.length; i++) {
  7796. if (this.riskList[i].riskCode == "0507") {
  7797. this.riskList[i].startDate = time;
  7798. this.riskList[i].endDate = this.oneYearPast1(time);
  7799. } else if (this.riskList[i].riskCode == "0510") {
  7800. this.riskList[i].startDate = time;
  7801. this.riskList[i].endDate = this.oneYearPast1(time);
  7802. }
  7803. }
  7804. }
  7805. let param = {
  7806. userId: this.userId,
  7807. quoteno: this.quoteno,
  7808. orderNo: this.orderno,
  7809. carInfo: this.carInfo,
  7810. insuredPersonInfo: this.insuredPersonInfo,
  7811. ownerInfo: this.ownerInfo,
  7812. policyHolderInfo: this.policyHolderInfo,
  7813. kindList: this.kindList,
  7814. riskList: this.riskList,
  7815. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7816. };
  7817. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  7818. this.zijin(num, id);
  7819. });
  7820. } else if (!!res.data) {
  7821. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  7822. this.totalCompanyList[num].lastYearMsg = "";
  7823. let dat = res.data.warnMessageList;
  7824. dat.map((ele) => {
  7825. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  7826. });
  7827. }
  7828. this.totalCompanyList[num].quoteCode = 200;
  7829. this.totalCompanyList[num].result = res.data;
  7830. this.QuotationHistory();
  7831. } else {
  7832. this.totalCompanyList[num].quoteCode = "3";
  7833. this.totalCompanyList[num].msg = res.msg;
  7834. return;
  7835. }
  7836. });
  7837. },
  7838. //永诚报价
  7839. yongcheng(num, id) {
  7840. this.iscCrownerShow = false;
  7841. this.isInsuredShow = false;
  7842. this.isApplicantShow = false;
  7843. let accidentalDrivingVo = {};
  7844. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  7845. if (this.accidentForm.projectCode) {
  7846. let data = this.yongchengaccidentDataList.find(
  7847. (val) => val.projectCode == this.yongchengtemplateSelection
  7848. );
  7849. accidentalDrivingVo = {
  7850. ...data,
  7851. quantity: this.accidentForm.quantity
  7852. ? this.accidentForm.quantity
  7853. : "",
  7854. };
  7855. }
  7856. let params = {
  7857. accidentalDrivingVo,
  7858. orderNo: this.orderno,
  7859. companyId: id,
  7860. kinds: this.kindList,
  7861. risks: this.riskList,
  7862. cqryCdeJq: this.cqryCdeJq,
  7863. cqryCdeSy: this.cqryCdeSy,
  7864. renewalCodeJq: this.renewalCodeJq,
  7865. renewalCodeSy: this.renewalCodeSy,
  7866. agreementId: this.totalCompanyList[num].agreementId,
  7867. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  7868. };
  7869. this.$api.letter.yongchengquote(params).then((res) => {
  7870. this.totalCompanyList[num].msg = res.msg;
  7871. if (
  7872. res.data == null &&
  7873. res.msg.indexOf("车险平台返回") > -1 &&
  7874. res.msg.indexOf(";终保日期") > -1
  7875. ) {
  7876. let time =
  7877. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  7878. this.jqstartDate = time;
  7879. this.jqendDate = this.oneYearPast1(time);
  7880. if (this.riskList.length > 0) {
  7881. for (let i = 0; i < this.riskList.length; i++) {
  7882. if (this.riskList[i].riskCode == "0507") {
  7883. this.riskList[i].startDate = time;
  7884. this.riskList[i].endDate = this.oneYearPast1(time);
  7885. }
  7886. }
  7887. }
  7888. let param = {
  7889. userId: this.userId,
  7890. quoteno: this.quoteno,
  7891. orderNo: this.orderno,
  7892. carInfo: this.carInfo,
  7893. insuredPersonInfo: this.insuredPersonInfo,
  7894. ownerInfo: this.ownerInfo,
  7895. policyHolderInfo: this.policyHolderInfo,
  7896. kindList: this.kindList,
  7897. riskList: this.riskList,
  7898. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  7899. };
  7900. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  7901. this.yongcheng(num, id);
  7902. });
  7903. } else if (res.code == "200") {
  7904. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  7905. this.totalCompanyList[num].lastYearMsg = "";
  7906. let dat = res.data.warnMessageList;
  7907. dat.map((ele) => {
  7908. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  7909. });
  7910. }
  7911. this.totalCompanyList[num].quoteCode = 200;
  7912. this.totalCompanyList[num].result = res.data;
  7913. this.QuotationHistory();
  7914. } else if (res.code == "101") {
  7915. this.totalCompanyList[num].quoteCode = "101";
  7916. this.totalCompanyList[num].msg = res.msg;
  7917. this.cqryCdeJq = res.data.cqryCdeJq;
  7918. this.cqryCdeSy = res.data.cqryCdeSy;
  7919. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  7920. let jqBase64 = `data:image/png;base64,${jq}`;
  7921. this.renewalCodeJqImg = jqBase64;
  7922. if (res.data.renewalCodeSy) {
  7923. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  7924. let syBase64 = `data:image/png;base64,${sy}`;
  7925. this.renewalCodeSyImg = syBase64;
  7926. }
  7927. this.renewalCodedialogVisible = true;
  7928. } else if (res.code == "500") {
  7929. // this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
  7930. // this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
  7931. // this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
  7932. // this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
  7933. // this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
  7934. // this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
  7935. this.totalCompanyList[num].quoteCode = "3";
  7936. this.totalCompanyList[num].msg = res.msg;
  7937. } else {
  7938. this.totalCompanyList[num].quoteCode = "3";
  7939. this.totalCompanyList[num].msg = res.msg;
  7940. return;
  7941. }
  7942. });
  7943. },
  7944. //国任报价
  7945. guoRen(num, id) {
  7946. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  7947. let guoRenSpecialAgreementVo = [];
  7948. this.zijinengageList.forEach((val) => {
  7949. guoRenSpecialAgreementVo.push({
  7950. clauses: val.clauseName,
  7951. clausesContext: val.clauses,
  7952. clauseCode: val.clauseCode,
  7953. riskCode: val.riskCode,
  7954. riskName: val.riskName,
  7955. });
  7956. });
  7957. let accidentalDrivingVo = {};
  7958. if (this.guoRenaccidentForm.goodsCode) {
  7959. accidentalDrivingVo = this.guoRenaccidentalDrivingVo;
  7960. }
  7961. let params = {
  7962. accidentalDrivingVo,
  7963. orderNo: this.orderno,
  7964. companyId: id,
  7965. kinds: this.kindList,
  7966. risks: this.riskList,
  7967. cqryCdeJq: this.cqryCdeJq,
  7968. cqryCdeSy: this.cqryCdeSy,
  7969. renewalCodeJq: this.renewalCodeJq,
  7970. renewalCodeSy: this.renewalCodeSy,
  7971. agreementId: this.totalCompanyList[num].agreementId,
  7972. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  7973. guoRenSpecialAgreementVo,
  7974. };
  7975. this.$api.letter.guorenquote(params).then((res) => {
  7976. this.totalCompanyList[num].msg = res.msg;
  7977. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  7978. this.totalCompanyList[num].quoteCode = "4";
  7979. this.totalCompanyList[num].msg = res.msg;
  7980. return;
  7981. } else if (
  7982. res.data == null &&
  7983. res.msg.indexOf("车险平台返回") > -1 &&
  7984. res.msg.indexOf(";终保日期") > -1
  7985. ) {
  7986. let time =
  7987. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  7988. this.jqstartDate = time;
  7989. this.jqendDate = this.oneYearPast1(time);
  7990. this.systartDate = time;
  7991. this.syendDate = this.oneYearPast1(time);
  7992. if (this.riskList.length > 0) {
  7993. for (let i = 0; i < this.riskList.length; i++) {
  7994. if (this.riskList[i].riskCode == "0507") {
  7995. this.riskList[i].startDate = time;
  7996. this.riskList[i].endDate = this.oneYearPast1(time);
  7997. } else if (this.riskList[i].riskCode == "0510") {
  7998. this.riskList[i].startDate = time;
  7999. this.riskList[i].endDate = this.oneYearPast1(time);
  8000. }
  8001. }
  8002. }
  8003. let param = {
  8004. userId: this.userId,
  8005. quoteno: this.quoteno,
  8006. orderNo: this.orderno,
  8007. carInfo: this.carInfo,
  8008. insuredPersonInfo: this.insuredPersonInfo,
  8009. ownerInfo: this.ownerInfo,
  8010. policyHolderInfo: this.policyHolderInfo,
  8011. kindList: this.kindList,
  8012. riskList: this.riskList,
  8013. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  8014. };
  8015. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  8016. this.guoRen(num, id);
  8017. });
  8018. } else if (res.code == "200") {
  8019. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  8020. this.totalCompanyList[num].lastYearMsg = "";
  8021. let dat = res.data.warnMessageList;
  8022. dat.map((ele) => {
  8023. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  8024. });
  8025. }
  8026. this.totalCompanyList[num].quoteCode = 200;
  8027. this.totalCompanyList[num].result = res.data;
  8028. this.QuotationHistory();
  8029. } else if (res.code == "101") {
  8030. this.totalCompanyList[num].quoteCode = "101";
  8031. this.totalCompanyList[num].msg = res.msg;
  8032. this.cqryCdeJq = res.data.cqryCdeJq;
  8033. this.cqryCdeSy = res.data.cqryCdeSy;
  8034. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  8035. let jqBase64 = `data:image/png;base64,${jq}`;
  8036. this.renewalCodeJqImg = jqBase64;
  8037. if (res.data.renewalCodeSy) {
  8038. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  8039. let syBase64 = `data:image/png;base64,${sy}`;
  8040. this.renewalCodeSyImg = syBase64;
  8041. }
  8042. this.renewalCodedialogVisible = true;
  8043. } else {
  8044. this.totalCompanyList[num].quoteCode = "3";
  8045. this.totalCompanyList[num].msg = res.msg;
  8046. return;
  8047. }
  8048. });
  8049. },
  8050. //渤海报价
  8051. bohai(num, id) {
  8052. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  8053. let accidentalDrivingVo = {};
  8054. if (this.boHaiaccidentForm.projectCode) {
  8055. accidentalDrivingVo = {
  8056. // packageCode: this.boHaiaccidentForm.packageCode,
  8057. // productCode: this.boHaiaccidentDataList.find(
  8058. // (e) => e.packageCode == this.boHaiaccidentForm.packageCode
  8059. // ).productCode,
  8060. // copies: this.boHaiaccidentForm.copies,
  8061. ...this.boHaiaccidentDataList.find(
  8062. (e) => e.projectCode == this.boHaiaccidentForm.projectCode
  8063. ),
  8064. quantity: this.boHaiaccidentForm.copies
  8065. ? this.boHaiaccidentForm.copies
  8066. : "1",
  8067. }
  8068. }
  8069. let params = {
  8070. accidentalDrivingVo,
  8071. orderNo: this.orderno,
  8072. companyId: id,
  8073. kinds: this.kindList,
  8074. risks: this.riskList,
  8075. cqryCdeJq: this.cqryCdeJq,
  8076. cqryCdeSy: this.cqryCdeSy,
  8077. renewalCodeJq: this.renewalCodeJq,
  8078. renewalCodeSy: this.renewalCodeSy,
  8079. agreementId: this.totalCompanyList[num].agreementId,
  8080. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  8081. userId: this.userId,
  8082. };
  8083. this.$api.letter.bohaiquote(params).then((res) => {
  8084. this.totalCompanyList[num].msg = res.msg;
  8085. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  8086. this.totalCompanyList[num].quoteCode = "4";
  8087. this.totalCompanyList[num].msg = res.msg;
  8088. return;
  8089. } else if (
  8090. res.data == null &&
  8091. res.msg.indexOf("车险平台返回") > -1 &&
  8092. res.msg.indexOf(";终保日期") > -1
  8093. ) {
  8094. let time =
  8095. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  8096. this.jqstartDate = time;
  8097. this.jqendDate = this.oneYearPast1(time);
  8098. this.systartDate = time;
  8099. this.syendDate = this.oneYearPast1(time);
  8100. if (this.riskList.length > 0) {
  8101. for (let i = 0; i < this.riskList.length; i++) {
  8102. if (this.riskList[i].riskCode == "0507") {
  8103. this.riskList[i].startDate = time;
  8104. this.riskList[i].endDate = this.oneYearPast1(time);
  8105. } else if (this.riskList[i].riskCode == "0510") {
  8106. this.riskList[i].startDate = time;
  8107. this.riskList[i].endDate = this.oneYearPast1(time);
  8108. }
  8109. }
  8110. }
  8111. let param = {
  8112. userId: this.userId,
  8113. quoteno: this.quoteno,
  8114. orderNo: this.orderno,
  8115. carInfo: this.carInfo,
  8116. insuredPersonInfo: this.insuredPersonInfo,
  8117. ownerInfo: this.ownerInfo,
  8118. policyHolderInfo: this.policyHolderInfo,
  8119. kindList: this.kindList,
  8120. riskList: this.riskList,
  8121. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  8122. };
  8123. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  8124. this.bohai(num, id);
  8125. });
  8126. } else if (res.code == "200") {
  8127. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  8128. this.totalCompanyList[num].lastYearMsg = "";
  8129. let dat = res.data.warnMessageList;
  8130. dat.map((ele) => {
  8131. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  8132. });
  8133. }
  8134. this.totalCompanyList[num].quoteCode = 200;
  8135. this.totalCompanyList[num].result = res.data;
  8136. this.QuotationHistory();
  8137. } else if (res.code == "101") {
  8138. this.totalCompanyList[num].quoteCode = "101";
  8139. this.totalCompanyList[num].msg = res.msg;
  8140. this.cqryCdeJq = res.data.cqryCdeJq;
  8141. this.cqryCdeSy = res.data.cqryCdeSy;
  8142. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  8143. let jqBase64 = `data:image/png;base64,${jq}`;
  8144. this.renewalCodeJqImg = jqBase64;
  8145. if (res.data.renewalCodeSy) {
  8146. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  8147. let syBase64 = `data:image/png;base64,${sy}`;
  8148. this.renewalCodeSyImg = syBase64;
  8149. }
  8150. this.renewalCodedialogVisible = true;
  8151. } else {
  8152. this.totalCompanyList[num].quoteCode = "3";
  8153. this.totalCompanyList[num].msg = res.msg;
  8154. return;
  8155. }
  8156. });
  8157. },
  8158. // 爬虫对接
  8159. quoteInsurance(num, id, namesimple, apiType) {
  8160. console.log(namesimple)
  8161. let api = apiType == 2 ? "pythonquote" : " ";
  8162. let ccidenttype = this.totalCompanyList[num].cnName;
  8163. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  8164. let params = {
  8165. accidentalDrivingVo: this[ccidenttype + "accidentalDrivingVo"],
  8166. orderNo: this.orderno,
  8167. companyId: id,
  8168. kinds: this.kindList,
  8169. risks: this.riskList,
  8170. userId: this.userId,
  8171. agreementId: this.totalCompanyList[num].agreementId,
  8172. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  8173. };
  8174. if (namesimple == "中国人寿" && this.lastCompanyId) {
  8175. params.discount = this.totalCompanyList[num].discount;
  8176. params.lastCompanyId = this.lastCompanyId;
  8177. }
  8178. if (namesimple == "诚泰财险") {
  8179. if (this.lastCompanyId && this.totalCompanyList[num].coefficient && this.totalCompanyList[num].discount) {
  8180. params.coefficient = this.totalCompanyList[num].coefficient;
  8181. params.discount = this.totalCompanyList[num].discount;
  8182. params.lastCompanyId = this.lastCompanyId;
  8183. }
  8184. params.isInspect = this.totalCompanyList[num].isInspect;
  8185. }
  8186. if (
  8187. namesimple == "华农财险" &&
  8188. this.huanongaccidentalDrivingVo.quantity
  8189. ) {
  8190. params.accidentalDrivingVo.quantity = this.accidentFormHN.quantity;
  8191. // params.accidentalDrivingVo.allQuantity = this.accidentFormHN.allQuantity;
  8192. }
  8193. this.$api.letter[api](params).then((res) => {
  8194. this.totalCompanyList[num].msg = res.msg;
  8195. switch (namesimple) {
  8196. case "诚泰财险":
  8197. case "安盛天平":
  8198. case "泰康财险":
  8199. case "中国人寿":
  8200. case "恒邦财险":
  8201. case "华农财险":
  8202. case "太平财险":
  8203. if (!!res.data) {
  8204. if (
  8205. res.data.warnMessageList &&
  8206. res.data.warnMessageList.length > 0
  8207. ) {
  8208. this.totalCompanyList[num].lastYearMsg = "";
  8209. let dat = res.data.warnMessageList;
  8210. dat.map((ele) => {
  8211. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  8212. });
  8213. }
  8214. if (res.data.predictInfo && res.data.predictInfo.length > 0) {
  8215. this.totalCompanyList[num].predictInfo = res.data.predictInfo;
  8216. }
  8217. this.totalCompanyList[num].quoteCode = 200;
  8218. this.totalCompanyList[num].result = res.data;
  8219. if (namesimple == "中国人寿" && res.data.companyId) {
  8220. this.lastCompanyId = res.data.companyId;
  8221. }
  8222. if (namesimple == "诚泰财险" && res.data.companyId) {
  8223. this.lastCompanyId = res.data.companyId;
  8224. }
  8225. this.QuotationHistory();
  8226. } else {
  8227. this.totalCompanyList[num].quoteCode = "3";
  8228. this.totalCompanyList[num].msg = res.msg;
  8229. return;
  8230. }
  8231. break;
  8232. case "众安财险":
  8233. if (!!res.data) {
  8234. if (res.data.tips == "需要验车") {
  8235. this.$notify.error({
  8236. title: "通融单",
  8237. duration: 0,
  8238. dangerouslyUseHTMLString: true,
  8239. message: `<div> ${res.data.warnMessageList
  8240. .map((item) => {
  8241. return `<p>${item}</p>`;
  8242. })
  8243. .join("")}
  8244. </div>`,
  8245. });
  8246. }
  8247. if (
  8248. res.data.warnMessageList &&
  8249. res.data.warnMessageList.length > 0
  8250. ) {
  8251. this.totalCompanyList[num].lastYearMsg = "";
  8252. let dat = res.data.warnMessageList;
  8253. dat.map((ele) => {
  8254. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  8255. });
  8256. }
  8257. this.totalCompanyList[num].quoteCode = 200;
  8258. this.totalCompanyList[num].result = res.data;
  8259. this.QuotationHistory();
  8260. } else {
  8261. this.totalCompanyList[num].quoteCode = "3";
  8262. this.totalCompanyList[num].msg = res.msg;
  8263. return;
  8264. }
  8265. break;
  8266. default:
  8267. break;
  8268. }
  8269. });
  8270. },
  8271. //诚泰
  8272. chengtai(num, id, namesimple) {
  8273. this.quoteInsurance(
  8274. num,
  8275. id,
  8276. namesimple,
  8277. this.totalCompanyList[num].apiType
  8278. );
  8279. },
  8280. //安盛天平
  8281. ansheng(num, id, namesimple) {
  8282. this.quoteInsurance(
  8283. num,
  8284. id,
  8285. namesimple,
  8286. this.totalCompanyList[num].apiType
  8287. );
  8288. },
  8289. //众安
  8290. zhongan(num, id, namesimple) {
  8291. this.quoteInsurance(
  8292. num,
  8293. id,
  8294. namesimple,
  8295. this.totalCompanyList[num].apiType
  8296. );
  8297. },
  8298. //人寿
  8299. renshou(num, id, namesimple) {
  8300. this.quoteInsurance(
  8301. num,
  8302. id,
  8303. namesimple,
  8304. this.totalCompanyList[num].apiType
  8305. );
  8306. },
  8307. //恒邦
  8308. hengbang(num, id, namesimple) {
  8309. this.quoteInsurance(
  8310. num,
  8311. id,
  8312. namesimple,
  8313. this.totalCompanyList[num].apiType
  8314. );
  8315. },
  8316. //太平
  8317. taiping(num, id, namesimple) {
  8318. this.quoteInsurance(
  8319. num,
  8320. id,
  8321. namesimple,
  8322. this.totalCompanyList[num].apiType
  8323. );
  8324. },
  8325. //华农
  8326. huanong(num, id, namesimple) {
  8327. this.quoteInsurance(
  8328. num,
  8329. id,
  8330. namesimple,
  8331. this.totalCompanyList[num].apiType
  8332. );
  8333. },
  8334. capTypedictTag(val, option) {
  8335. if (option.find((item) => item.dictValue == val)) {
  8336. return option.find((item) => item.dictValue == val).dictTag;
  8337. } else {
  8338. return "-";
  8339. }
  8340. },
  8341. // 爬虫对接
  8342. qoutedetail(companyId) {
  8343. let params = {
  8344. companyId: companyId,
  8345. };
  8346. this.$api.letter.getByCompanyId(params).then((res) => {
  8347. if (res.code == "200") {
  8348. var data = res.data;
  8349. data.kindinfo.map((ele, index) => {
  8350. switch (ele.kindCode) {
  8351. case "A":
  8352. ele.amount = "投保";
  8353. break;
  8354. case "D4":
  8355. case "SY_FJ_YBW2":
  8356. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  8357. break;
  8358. case "MJ1":
  8359. case "MJ2":
  8360. case "MJ3":
  8361. case "MJ4":
  8362. ele.deductibleRate = ele.deductibleRate + "%";
  8363. break;
  8364. default:
  8365. ele.amount = this.toChinesNum(ele.amount);
  8366. }
  8367. return ele;
  8368. });
  8369. if (
  8370. (data.carinfo.carnature && data.carinfo.carnature == "02") ||
  8371. data.carinfo.carnature == "非营业"
  8372. ) {
  8373. data.carinfo.vehicleUse = this.capTypedictTag(
  8374. data.carinfo.vehicleUse,
  8375. this.outOfBusinessVehicleUseoptions
  8376. );
  8377. } else {
  8378. data.carinfo.vehicleUse = this.capTypedictTag(
  8379. data.carinfo.vehicleUse,
  8380. this.businessVehicleUseoptions
  8381. );
  8382. }
  8383. data.carinfo.carnature = this.capTypedictTag(
  8384. data.carinfo.carnature,
  8385. this.natureOfVehicleUseoptions
  8386. );
  8387. data.carinfo.cartype = data.carinfo.cartype
  8388. ? this.capTypedictTag(
  8389. data.carinfo.cartype,
  8390. this.trafficManagementVehicleTypeoptions
  8391. )
  8392. : "";
  8393. data.carinfo.cimodelclass = data.carinfo.cimodelclass
  8394. ? this.capTypedictTag(
  8395. data.carinfo.cimodelclass,
  8396. this.vehicleTypeoptions
  8397. )
  8398. : "";
  8399. data.carinfo.energyType = data.carinfo.energyType
  8400. ? this.capTypedictTag(
  8401. data.carinfo.energyType,
  8402. this.energyTypeoptions
  8403. )
  8404. : "";
  8405. this.queryOrders = data;
  8406. //赋值费用信息
  8407. // this.feeDetailInfo=data.orderFeeResult;
  8408. }
  8409. });
  8410. this.$refs.detailsDialog.setBackupVisible(true);
  8411. },
  8412. imageUpload() {
  8413. this.imageUploaddialogVisible = true;
  8414. // this.$refs.imageDialog.setBackupVisible(true);
  8415. },
  8416. tabLiScroll(id, idx) {
  8417. this.tabLiIndex = idx;
  8418. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  8419. },
  8420. //影像上传
  8421. drivingupload(file, imageIdList, imgurl, type) {
  8422. let that = this;
  8423. let size = file.size / 1024 / 1024 < 5;
  8424. const isJPG =
  8425. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  8426. if (!size) {
  8427. this.$message.error("上传图片大小不能超过 5MB!");
  8428. this[imgurl] = [];
  8429. return false;
  8430. }
  8431. if (!isJPG) {
  8432. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  8433. this[imgurl] = [];
  8434. return false;
  8435. }
  8436. this[imgurl].push(file);
  8437. var file = file.raw;
  8438. const params = new FormData(); // 声明formData数据类型
  8439. params.append("multipartFile", file);
  8440. params.append("type", "image");
  8441. this.$api.letter.uploadFile(params).then((res) => {
  8442. if (res.code == "200") {
  8443. if (this[imageIdList].some((v) => v.imageType == type)) {
  8444. this[imageIdList].map((val) => {
  8445. if (val.imageType == type) {
  8446. val.imageId = res.data.id;
  8447. }
  8448. });
  8449. } else {
  8450. this[imageIdList].push({
  8451. imageId: res.data.id,
  8452. imageType: type,
  8453. });
  8454. }
  8455. }
  8456. });
  8457. },
  8458. imageEcho(quotenos) {
  8459. //影像查询
  8460. this.$api.letter.findByQuoteNo(quotenos).then((res) => {
  8461. if (res.code == "200") {
  8462. this.imageList1 = [];
  8463. this.imageList2 = [];
  8464. this.imageList3 = [];
  8465. this.imageList4 = [];
  8466. this.imageList5 = [];
  8467. this.imageList6 = [];
  8468. this.imgList1 = [];
  8469. this.imgList2 = [];
  8470. this.imgList3 = [];
  8471. this.imgList4 = [];
  8472. this.imgList5 = [];
  8473. this.imgList6 = [];
  8474. this.imgList7 = [];
  8475. this.imgList8 = [];
  8476. this.imgList9 = [];
  8477. this.imgList10 = [];
  8478. this.imgList11 = [];
  8479. this.imgList12 = [];
  8480. this.imgList13 = [];
  8481. this.imgList14 = [];
  8482. this.imgList15 = [];
  8483. this.imgList16 = [];
  8484. this.imgList17 = [];
  8485. this.imgList18 = [];
  8486. this.imgList19 = [];
  8487. this.imgList20 = [];
  8488. this.imgList21 = [];
  8489. this.imgList22 = [];
  8490. this.imgList23 = [];
  8491. this.imgList24 = [];
  8492. this.imgList25 = [];
  8493. this.imgList26 = [];
  8494. this.imgList27 = [];
  8495. this.imgList28 = [];
  8496. Object.keys(res.data).forEach((keys) => {
  8497. if (res.data[keys].url) {
  8498. res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
  8499. switch (keys) {
  8500. case "C01":
  8501. this.imageList1.push({
  8502. imageId: res.data[keys].imageId,
  8503. imageType: res.data[keys].imageType,
  8504. });
  8505. this.imgList1.push(res.data[keys]);
  8506. break;
  8507. case "D01":
  8508. this.imageList1.push({
  8509. imageId: res.data[keys].imageId,
  8510. imageType: res.data[keys].imageType,
  8511. });
  8512. this.imgList2.push(res.data[keys]);
  8513. break;
  8514. case "C02":
  8515. this.imageList2.push({
  8516. imageId: res.data[keys].imageId,
  8517. imageType: res.data[keys].imageType,
  8518. });
  8519. this.imgList3.push(res.data[keys]);
  8520. break;
  8521. case "D02":
  8522. this.imageList2.push({
  8523. imageId: res.data[keys].imageId,
  8524. imageType: res.data[keys].imageType,
  8525. });
  8526. this.imgList4.push(res.data[keys]);
  8527. break;
  8528. case "Y02":
  8529. this.imageList2.push({
  8530. imageId: res.data[keys].imageId,
  8531. imageType: res.data[keys].imageType,
  8532. });
  8533. this.imgList26.push(res.data[keys]);
  8534. break;
  8535. case "C03":
  8536. this.imageList3.push({
  8537. imageId: res.data[keys].imageId,
  8538. imageType: res.data[keys].imageType,
  8539. });
  8540. this.imgList5.push(res.data[keys]);
  8541. break;
  8542. case "D03":
  8543. this.imageList3.push({
  8544. imageId: res.data[keys].imageId,
  8545. imageType: res.data[keys].imageType,
  8546. });
  8547. this.imgList6.push(res.data[keys]);
  8548. break;
  8549. case "Y03":
  8550. this.imageList3.push({
  8551. imageId: res.data[keys].imageId,
  8552. imageType: res.data[keys].imageType,
  8553. });
  8554. this.imgList27.push(res.data[keys]);
  8555. break;
  8556. case "C04":
  8557. this.imageList4.push({
  8558. imageId: res.data[keys].imageId,
  8559. imageType: res.data[keys].imageType,
  8560. });
  8561. this.imgList7.push(res.data[keys]);
  8562. break;
  8563. case "D04":
  8564. this.imageList4.push({
  8565. imageId: res.data[keys].imageId,
  8566. imageType: res.data[keys].imageType,
  8567. });
  8568. this.imgList8.push(res.data[keys]);
  8569. break;
  8570. case "Y04":
  8571. this.imageList4.push({
  8572. imageId: res.data[keys].imageId,
  8573. imageType: res.data[keys].imageType,
  8574. });
  8575. this.imgList28.push(res.data[keys]);
  8576. break;
  8577. case "XC00":
  8578. this.imageList5.push({
  8579. imageId: res.data[keys].imageId,
  8580. imageType: res.data[keys].imageType,
  8581. });
  8582. this.imgList9.push(res.data[keys]);
  8583. break;
  8584. case "GC00":
  8585. this.imageList5.push({
  8586. imageId: res.data[keys].imageId,
  8587. imageType: res.data[keys].imageType,
  8588. });
  8589. this.imgList10.push(res.data[keys]);
  8590. break;
  8591. case "GX00":
  8592. this.imageList5.push({
  8593. imageId: res.data[keys].imageId,
  8594. imageType: res.data[keys].imageType,
  8595. });
  8596. this.imgList11.push(res.data[keys]);
  8597. break;
  8598. case "TAR05":
  8599. this.imageList1.push({
  8600. imageId: res.data[keys].imageId,
  8601. imageType: res.data[keys].imageType,
  8602. });
  8603. this.imgList12.push(res.data[keys]);
  8604. break;
  8605. case "C0500":
  8606. this.imageList6.push({
  8607. imageId: res.data[keys].imageId,
  8608. imageType: res.data[keys].imageType,
  8609. });
  8610. this.imgList13.push(res.data[keys]);
  8611. break;
  8612. case "C0501":
  8613. this.imageList6.push({
  8614. imageId: res.data[keys].imageId,
  8615. imageType: res.data[keys].imageType,
  8616. });
  8617. this.imgList14.push(res.data[keys]);
  8618. break;
  8619. case "C0502":
  8620. this.imageList6.push({
  8621. imageId: res.data[keys].imageId,
  8622. imageType: res.data[keys].imageType,
  8623. });
  8624. this.imgList15.push(res.data[keys]);
  8625. break;
  8626. case "C0503":
  8627. this.imageList6.push({
  8628. imageId: res.data[keys].imageId,
  8629. imageType: res.data[keys].imageType,
  8630. });
  8631. this.imgList16.push(res.data[keys]);
  8632. break;
  8633. case "C0504":
  8634. this.imageList6.push({
  8635. imageId: res.data[keys].imageId,
  8636. imageType: res.data[keys].imageType,
  8637. });
  8638. this.imgList17.push(res.data[keys]);
  8639. break;
  8640. case "C0506":
  8641. this.imageList6.push({
  8642. imageId: res.data[keys].imageId,
  8643. imageType: res.data[keys].imageType,
  8644. });
  8645. this.imgList18.push(res.data[keys]);
  8646. break;
  8647. case "C0507":
  8648. this.imageList6.push({
  8649. imageId: res.data[keys].imageId,
  8650. imageType: res.data[keys].imageType,
  8651. });
  8652. this.imgList19.push(res.data[keys]);
  8653. break;
  8654. case "C0505":
  8655. this.imageList6.push({
  8656. imageId: res.data[keys].imageId,
  8657. imageType: res.data[keys].imageType,
  8658. });
  8659. this.imgList20.push(res.data[keys]);
  8660. break;
  8661. case "C0508":
  8662. this.imageList6.push({
  8663. imageId: res.data[keys].imageId,
  8664. imageType: res.data[keys].imageType,
  8665. });
  8666. this.imgList21.push(res.data[keys]);
  8667. break;
  8668. case "C0509":
  8669. this.imageList6.push({
  8670. imageId: res.data[keys].imageId,
  8671. imageType: res.data[keys].imageType,
  8672. });
  8673. this.imgList22.push(res.data[keys]);
  8674. break;
  8675. case "C0510":
  8676. this.imageList6.push({
  8677. imageId: res.data[keys].imageId,
  8678. imageType: res.data[keys].imageType,
  8679. });
  8680. this.imgList23.push(res.data[keys]);
  8681. break;
  8682. case "LAST_INSURANCE_POLICY":
  8683. this.imageList6.push({
  8684. imageId: res.data[keys].imageId,
  8685. imageType: res.data[keys].imageType,
  8686. });
  8687. this.imgList24.push(res.data[keys]);
  8688. break;
  8689. default:
  8690. break;
  8691. }
  8692. }
  8693. });
  8694. } else {
  8695. this.$message({ message: res.msg, type: "info" });
  8696. }
  8697. });
  8698. },
  8699. policyUpload() {
  8700. this.policyNumberForm.jqPolicyList = !this.policyNumberForm.jqPolicyList
  8701. ? []
  8702. : this.policyNumberForm.jqPolicyList;
  8703. this.policyNumberForm.jqSignList = !this.policyNumberForm.jqSignList
  8704. ? []
  8705. : this.policyNumberForm.jqSignList;
  8706. this.policyNumberForm.syPolicyList = !this.policyNumberForm.syPolicyList
  8707. ? []
  8708. : this.policyNumberForm.syPolicyList;
  8709. this.policyNumberForm.noPolicyList = !this.policyNumberForm.noPolicyList
  8710. ? []
  8711. : this.policyNumberForm.noPolicyList;
  8712. this.policyUploaddialogVisible = true;
  8713. },
  8714. cancelorder(item) {
  8715. this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
  8716. if (res.code == 200) {
  8717. this.$message({
  8718. message: res.msg,
  8719. type: "success",
  8720. });
  8721. this.QuotationHistory();
  8722. }
  8723. });
  8724. },
  8725. hbsubmitdialog(data) {
  8726. if (this.imageList1.length == 0 && this.imageList2.length == 0) {
  8727. this.$message({ message: "影像不全,先上传影像", type: "error" });
  8728. return;
  8729. }
  8730. this.companyId = data.result.companyId;
  8731. this.apiType = data.apiType;
  8732. this.hbsubmitdialogVisible = true;
  8733. this.contributingState = false;
  8734. if (data.namesimple == "紫金财险") {
  8735. this.$api.letter
  8736. .zijinqueryClauseData({ companyId: this.companyId })
  8737. .then((res) => {
  8738. this.zijinengageListData = res.data;
  8739. });
  8740. }
  8741. if (data.namesimple == "华泰财险") {
  8742. this.zijinengageList = [];
  8743. this.$api.letter
  8744. .huataiqueryClauseData({ companyId: this.companyId })
  8745. .then((res) => {
  8746. res.data.forEach((val) => {
  8747. val.clauseCode = val.engageCode;
  8748. val.clauseName = val.engageTitle;
  8749. val.clauseContent = val.engageDetail;
  8750. val.clauses = val.engageDetail;
  8751. });
  8752. this.zijinengageListData = res.data;
  8753. this.zijinengageListData.forEach((val) => {
  8754. this.$nextTick(() => {
  8755. if (val.optType == "2") {
  8756. this.zijinengageList.push(val);
  8757. this.$refs.expandTablePro.toggleRowSelection(val, true);
  8758. }
  8759. });
  8760. });
  8761. });
  8762. } else {
  8763. this.zijinengageListData = [];
  8764. }
  8765. // switch (data.namesimple) {
  8766. // case "紫金财险":
  8767. // this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
  8768. // this.zijinengageListData = res.data;
  8769. // });
  8770. // break;
  8771. // default:
  8772. // break;
  8773. // }
  8774. },
  8775. hbsubmit() {
  8776. this.hbsubmitdialogVisible = false;
  8777. this.contributingState = false;
  8778. this.$api.letter
  8779. .getByCompanyId({ companyId: this.companyId })
  8780. .then(async (res) => {
  8781. if (res.code == 200) {
  8782. var data = res.data;
  8783. this.queryOrders = data;
  8784. const loading = this.$loading({
  8785. lock: true,
  8786. text: "Loading",
  8787. spinner: "el-icon-loading",
  8788. background: "rgba(0, 0, 0, 0.7)",
  8789. });
  8790. switch (this.queryOrders.inscompany) {
  8791. case "永安财险":
  8792. let api = "";
  8793. api =
  8794. this.apiType == 2
  8795. ? "pythonsubmitImage"
  8796. : "insyongansubmitImage";
  8797. await this.$api.letter[api]({
  8798. companyId: this.companyId,
  8799. }).then((res) => {
  8800. if (res.code == "200") {
  8801. var _this = this;
  8802. let api1 = "";
  8803. api1 = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
  8804. this.$api.letter[api1]({
  8805. companyId: this.companyId,
  8806. }).then((res) => {
  8807. var _this = this;
  8808. if (res.code == "200") {
  8809. loading.close();
  8810. this.$message({
  8811. message: "核保成功",
  8812. type: "success",
  8813. });
  8814. this.QuotationHistory();
  8815. _this.$api.letter
  8816. .getByCompanyId({ companyId: this.companyId })
  8817. .then((res) => {
  8818. _this.orderstatus = res.data.orderstatus; //订单状态
  8819. _this.underwritingdialogVisible = true;
  8820. let indexid = this.totalCompanyList.findIndex(
  8821. (item) =>
  8822. item.namesimple == this.queryOrders.inscompany
  8823. );
  8824. this.totalCompanyList[indexid].orderstatus =
  8825. res.data.orderstatus;
  8826. });
  8827. } else {
  8828. loading.close();
  8829. this.$message({
  8830. showClose: true,
  8831. message:
  8832. this.queryOrders.inscompany + "提核--:" + res.msg,
  8833. type: "error",
  8834. duration: 0,
  8835. });
  8836. }
  8837. });
  8838. } else {
  8839. this.$message({
  8840. message: this.queryOrders.inscompany + "影像:" + res.msg,
  8841. type: "error",
  8842. duration: 7000,
  8843. });
  8844. loading.close();
  8845. }
  8846. });
  8847. break;
  8848. case "中煤财险":
  8849. await this.$api.letter
  8850. .insZhongmeisubmitImage({
  8851. companyId: this.companyId,
  8852. })
  8853. .then((res) => {
  8854. if (res.code == "200") {
  8855. var _this = this;
  8856. _this.$api.letter
  8857. .Zhongmeiaudit({
  8858. companyId: this.companyId,
  8859. jqappoint: "",
  8860. syappoint: "",
  8861. })
  8862. .then((res) => {
  8863. if (res.code == "200") {
  8864. loading.close();
  8865. _this.$message({
  8866. message: "核保成功",
  8867. type: "success",
  8868. });
  8869. this.QuotationHistory();
  8870. _this.$api.letter
  8871. .getByCompanyId({ companyId: this.companyId })
  8872. .then((res) => {
  8873. _this.orderstatus = res.data.orderstatus; //订单状态
  8874. _this.underwritingdialogVisible = true;
  8875. let indexid = this.totalCompanyList.findIndex(
  8876. (item) =>
  8877. item.namesimple ==
  8878. this.queryOrders.inscompany
  8879. );
  8880. this.totalCompanyList[indexid].orderstatus =
  8881. res.data.orderstatus;
  8882. });
  8883. } else {
  8884. loading.close();
  8885. _this.$message({
  8886. showClose: true,
  8887. message:
  8888. this.queryOrders.inscompany +
  8889. "提核--:" +
  8890. res.msg,
  8891. type: "error",
  8892. duration: 0,
  8893. });
  8894. _this.$api.letter
  8895. .getByCompanyId({ companyId: this.companyId })
  8896. .then((res) => {
  8897. _this.orderstatus = res.data.orderstatus; //订单状态
  8898. });
  8899. }
  8900. });
  8901. } else {
  8902. this.$message({
  8903. message:
  8904. this.queryOrders.inscompany + "影像--:" + res.msg,
  8905. type: "error",
  8906. duration: 7000,
  8907. });
  8908. loading.close();
  8909. }
  8910. });
  8911. break;
  8912. case "华泰财险":
  8913. let HtApiImage = "";
  8914. HtApiImage =
  8915. this.apiType == 2
  8916. ? "pythonsubmitImage"
  8917. : "insHuataisubmitImage";
  8918. await this.$api.letter[HtApiImage]({
  8919. [this.apiType == 2 ? "subOrderNo" : "companyId"]:
  8920. this.companyId,
  8921. }).then((res) => {
  8922. if (res.code == "200") {
  8923. var _this = this;
  8924. let HtApiaudit = "";
  8925. HtApiaudit =
  8926. this.apiType == 2 ? "pythonaudit" : "huataiaudit";
  8927. let engageList = [];
  8928. this.zijinengageList.forEach((val) => {
  8929. engageList.push({
  8930. engageCode: val.clauseCode,
  8931. engageDetail: val.clauses,
  8932. engageTitle: val.clauseName,
  8933. riskCode: val.riskCode,
  8934. });
  8935. });
  8936. _this.$api.letter[HtApiaudit]({
  8937. [this.apiType == 2 ? "subOrderNo" : "companyId"]:
  8938. this.companyId,
  8939. engageList,
  8940. }).then((res) => {
  8941. if (res.code == "200") {
  8942. loading.close();
  8943. _this.$message({
  8944. message: "核保成功",
  8945. type: "success",
  8946. });
  8947. this.QuotationHistory();
  8948. _this.$api.letter
  8949. .getByCompanyId({ companyId: this.companyId })
  8950. .then((res) => {
  8951. _this.orderstatus = res.data.orderstatus; //订单状态
  8952. _this.underwritingdialogVisible = true;
  8953. let indexid = this.totalCompanyList.findIndex(
  8954. (item) =>
  8955. item.namesimple == this.queryOrders.inscompany
  8956. );
  8957. this.totalCompanyList[indexid].orderstatus =
  8958. res.data.orderstatus;
  8959. });
  8960. } else {
  8961. loading.close();
  8962. _this.$message({
  8963. showClose: true,
  8964. message:
  8965. this.queryOrders.inscompany + "提核--:" + res.msg,
  8966. type: "error",
  8967. duration: 0,
  8968. });
  8969. _this.$api.letter
  8970. .getByCompanyId({ companyId: this.companyId })
  8971. .then((res) => {
  8972. _this.orderstatus = res.data.orderstatus; //订单状态
  8973. });
  8974. }
  8975. });
  8976. } else {
  8977. this.$message({
  8978. message:
  8979. this.queryOrders.inscompany + "影像--:" + res.msg,
  8980. type: "error",
  8981. duration: 7000,
  8982. });
  8983. loading.close();
  8984. }
  8985. });
  8986. break;
  8987. case "紫金财险":
  8988. await this.$api.letter
  8989. .zijinsubmitImage({
  8990. companyId: this.companyId,
  8991. })
  8992. .then((res) => {
  8993. if (res.code == "200") {
  8994. var _this = this;
  8995. _this.$api.letter
  8996. .zijinaudit({
  8997. companyId: this.companyId,
  8998. engageList: this.zijinengageList,
  8999. })
  9000. .then((res) => {
  9001. if (res.code == "200") {
  9002. loading.close();
  9003. _this.$message({
  9004. message: "核保成功",
  9005. type: "success",
  9006. });
  9007. this.QuotationHistory();
  9008. _this.$api.letter
  9009. .getByCompanyId({ companyId: this.companyId })
  9010. .then((res) => {
  9011. _this.orderstatus = res.data.orderstatus; //订单状态
  9012. _this.underwritingdialogVisible = true;
  9013. let indexid = this.totalCompanyList.findIndex(
  9014. (item) =>
  9015. item.namesimple ==
  9016. this.queryOrders.inscompany
  9017. );
  9018. this.totalCompanyList[indexid].orderstatus =
  9019. res.data.orderstatus;
  9020. });
  9021. } else {
  9022. loading.close();
  9023. _this.$message({
  9024. showClose: true,
  9025. dangerouslyUseHTMLString: true,
  9026. message:
  9027. this.queryOrders.inscompany +
  9028. "提核--:" +
  9029. res.msg,
  9030. type: "error",
  9031. duration: 0,
  9032. });
  9033. _this.$api.letter
  9034. .getByCompanyId({ companyId: this.companyId })
  9035. .then((res) => {
  9036. _this.orderstatus = res.data.orderstatus; //订单状态
  9037. });
  9038. }
  9039. });
  9040. } else {
  9041. this.$message({
  9042. message:
  9043. this.queryOrders.inscompany + "影像--:" + res.msg,
  9044. type: "error",
  9045. duration: 7000,
  9046. });
  9047. loading.close();
  9048. }
  9049. });
  9050. break;
  9051. case "国任财险":
  9052. await this.$api.letter
  9053. .insguorensubmitImage({
  9054. companyId: this.companyId,
  9055. })
  9056. .then((res) => {
  9057. if (res.code == "200") {
  9058. var _this = this;
  9059. _this.$api.letter
  9060. .gunrenaudit({
  9061. companyId: this.companyId,
  9062. })
  9063. .then((res) => {
  9064. if (res.code == "200") {
  9065. loading.close();
  9066. _this.cqryCdeJq = "";
  9067. _this.cqryCdeSy = "";
  9068. _this.renewalCodeJq = "";
  9069. _this.renewalCodeSy = "";
  9070. this.$message({
  9071. message: "核保成功",
  9072. type: "success",
  9073. });
  9074. this.QuotationHistory();
  9075. _this.$api.letter
  9076. .getByCompanyId({ companyId: this.companyId })
  9077. .then((res) => {
  9078. _this.orderstatus = res.data.orderstatus; //订单状态
  9079. _this.underwritingdialogVisible = true;
  9080. let indexid = this.totalCompanyList.findIndex(
  9081. (item) =>
  9082. item.namesimple ==
  9083. this.queryOrders.inscompany
  9084. );
  9085. this.totalCompanyList[indexid].orderstatus =
  9086. res.data.orderstatus;
  9087. });
  9088. } else {
  9089. loading.close();
  9090. this.$message({
  9091. showClose: true,
  9092. message: res.msg,
  9093. type: "error",
  9094. duration: 0,
  9095. });
  9096. }
  9097. });
  9098. } else {
  9099. loading.close();
  9100. this.$message({
  9101. message: res.msg,
  9102. type: "error",
  9103. duration: 7000,
  9104. });
  9105. }
  9106. });
  9107. break;
  9108. case "渤海财险":
  9109. await this.$api.letter
  9110. .insbohaisubmitImage({
  9111. companyId: this.companyId,
  9112. })
  9113. .then((res) => {
  9114. if (res.code == "200") {
  9115. var _this = this;
  9116. _this.$api.letter
  9117. .bohaiaudit({
  9118. companyId: this.companyId,
  9119. })
  9120. .then((res) => {
  9121. if (res.code == "200") {
  9122. loading.close();
  9123. _this.cqryCdeJq = "";
  9124. _this.cqryCdeSy = "";
  9125. _this.renewalCodeJq = "";
  9126. _this.renewalCodeSy = "";
  9127. this.$message({
  9128. message: "核保成功",
  9129. type: "success",
  9130. });
  9131. this.QuotationHistory();
  9132. _this.$api.letter
  9133. .getByCompanyId({ companyId: this.companyId })
  9134. .then((res) => {
  9135. _this.orderstatus = res.data.orderstatus; //订单状态
  9136. _this.underwritingdialogVisible = true;
  9137. let indexid = this.totalCompanyList.findIndex(
  9138. (item) =>
  9139. item.namesimple ==
  9140. this.queryOrders.inscompany
  9141. );
  9142. this.totalCompanyList[indexid].orderstatus =
  9143. res.data.orderstatus;
  9144. });
  9145. } else {
  9146. loading.close();
  9147. this.$message({
  9148. showClose: true,
  9149. message: res.msg,
  9150. type: "error",
  9151. duration: 0,
  9152. });
  9153. }
  9154. });
  9155. } else {
  9156. loading.close();
  9157. this.$message({
  9158. message: res.msg,
  9159. type: "error",
  9160. duration: 7000,
  9161. });
  9162. }
  9163. });
  9164. break;
  9165. case "诚泰财险":
  9166. case "恒邦财险":
  9167. case "华农财险":
  9168. case "太平财险":
  9169. case "安盛天平":
  9170. case "众安财险":
  9171. case "中国人寿":
  9172. case "泰康财险":
  9173. let hengbangapi = "";
  9174. hengbangapi =
  9175. this.apiType == 2
  9176. ? "pythonsubmitImage"
  9177. : "anshengsubmitImage";
  9178. console.log(hengbangapi, "hengbangapi");
  9179. await this.$api.letter[hengbangapi]({
  9180. subOrderNo: this.companyId,
  9181. }).then((res) => {
  9182. if (res.code == "200") {
  9183. var _this = this;
  9184. let hengbangapi1 = "";
  9185. hengbangapi1 =
  9186. this.apiType == 2 ? "pythonaudit" : "anshengaudit";
  9187. console.log(hengbangapi1, "hengbangapi1");
  9188. _this.$api.letter[hengbangapi1]({
  9189. subOrderNo: this.companyId,
  9190. }).then((res) => {
  9191. if (res.code == "200") {
  9192. loading.close();
  9193. this.$message({
  9194. message: "核保成功",
  9195. type: "success",
  9196. });
  9197. this.QuotationHistory();
  9198. _this.$api.letter
  9199. .getByCompanyId({ companyId: this.companyId })
  9200. .then((res) => {
  9201. _this.orderstatus = res.data.orderstatus; //订单状态
  9202. _this.underwritingdialogVisible = true;
  9203. let indexid = this.totalCompanyList.findIndex(
  9204. (item) =>
  9205. item.namesimple == this.queryOrders.inscompany
  9206. );
  9207. this.totalCompanyList[indexid].orderstatus =
  9208. res.data.orderstatus;
  9209. });
  9210. } else {
  9211. loading.close();
  9212. this.$message({
  9213. showClose: true,
  9214. dangerouslyUseHTMLString: true,
  9215. message:
  9216. this.queryOrders.inscompany +
  9217. "提核--:" +
  9218. res.msg.replace(/\n/g, "<br><br>"),
  9219. type: "error",
  9220. duration: 0,
  9221. });
  9222. }
  9223. });
  9224. } else {
  9225. loading.close();
  9226. this.$message({
  9227. message:
  9228. this.queryOrders.inscompany + "影像--:" + res.msg,
  9229. type: "error",
  9230. duration: 7000,
  9231. });
  9232. }
  9233. });
  9234. break;
  9235. case "永诚财险":
  9236. await this.$api.letter
  9237. .insyongchengsubmitImage({
  9238. companyId: this.companyId,
  9239. })
  9240. .then((res) => {
  9241. if (res.code == "200") {
  9242. var _this = this;
  9243. _this.$api.letter
  9244. .yongchengaudit({
  9245. companyId: this.companyId,
  9246. })
  9247. .then((res) => {
  9248. if (res.code == "200") {
  9249. loading.close();
  9250. _this.cqryCdeJq = "";
  9251. _this.cqryCdeSy = "";
  9252. _this.renewalCodeJq = "";
  9253. _this.renewalCodeSy = "";
  9254. this.$message({
  9255. message: "核保成功",
  9256. type: "success",
  9257. });
  9258. this.QuotationHistory();
  9259. _this.$api.letter
  9260. .getByCompanyId({ companyId: this.companyId })
  9261. .then((res) => {
  9262. _this.orderstatus = res.data.orderstatus; //订单状态
  9263. _this.underwritingdialogVisible = true;
  9264. let indexid = this.totalCompanyList.findIndex(
  9265. (item) =>
  9266. item.namesimple ==
  9267. this.queryOrders.inscompany
  9268. );
  9269. this.totalCompanyList[indexid].orderstatus =
  9270. res.data.orderstatus;
  9271. });
  9272. } else {
  9273. loading.close();
  9274. this.$message({
  9275. showClose: true,
  9276. message:
  9277. this.queryOrders.inscompany +
  9278. "提核--:" +
  9279. res.msg,
  9280. customClass: "customNotifyClass",
  9281. type: "error",
  9282. duration: 0,
  9283. });
  9284. }
  9285. });
  9286. } else {
  9287. loading.close();
  9288. this.$message({
  9289. message:
  9290. this.queryOrders.inscompany + "影像--:" + res.msg,
  9291. type: "error",
  9292. duration: 7000,
  9293. });
  9294. }
  9295. });
  9296. break;
  9297. case "大家财险":
  9298. let DJApiImage = "";
  9299. DJApiImage =
  9300. this.apiType == 2 ? "pythonsubmitImage" : "dajiasubmitImage";
  9301. await this.$api.letter[DJApiImage]({
  9302. [this.apiType == 2 ? "subOrderNo" : "companyId"]:
  9303. this.companyId,
  9304. }).then((res) => {
  9305. if (res.code == "200") {
  9306. var _this = this;
  9307. let DJApiaudit = "";
  9308. DJApiaudit =
  9309. this.apiType == 2 ? "pythonaudit" : "dajiaaudit";
  9310. _this.$api.letter[DJApiaudit]({
  9311. [this.apiType == 2 ? "subOrderNo" : "companyId"]:
  9312. this.companyId,
  9313. }).then((res) => {
  9314. if (res.code == "200") {
  9315. loading.close();
  9316. _this.cqryCdeJq = "";
  9317. _this.cqryCdeSy = "";
  9318. _this.renewalCodeJq = "";
  9319. _this.renewalCodeSy = "";
  9320. this.$message({
  9321. message: "核保成功",
  9322. type: "success",
  9323. });
  9324. this.QuotationHistory();
  9325. _this.$api.letter
  9326. .getByCompanyId({ companyId: this.companyId })
  9327. .then((res) => {
  9328. _this.orderstatus = res.data.orderstatus; //订单状态
  9329. _this.underwritingdialogVisible = true;
  9330. let indexid = this.totalCompanyList.findIndex(
  9331. (item) =>
  9332. item.namesimple == this.queryOrders.inscompany
  9333. );
  9334. this.totalCompanyList[indexid].orderstatus =
  9335. res.data.orderstatus;
  9336. });
  9337. } else {
  9338. loading.close();
  9339. this.$message({
  9340. showClose: true,
  9341. message:
  9342. this.queryOrders.inscompany + "提核--:" + res.msg,
  9343. customClass: "customNotifyClass",
  9344. type: "error",
  9345. duration: 0,
  9346. });
  9347. }
  9348. });
  9349. } else {
  9350. loading.close();
  9351. this.$message({
  9352. message:
  9353. this.queryOrders.inscompany + "影像--:" + res.msg,
  9354. type: "error",
  9355. duration: 7000,
  9356. });
  9357. }
  9358. });
  9359. break;
  9360. case "平安财险":
  9361. await this.$api.letter
  9362. .pingansubmitImage({
  9363. companyId: this.companyId,
  9364. })
  9365. .then((res) => {
  9366. if (res.code == "200") {
  9367. var _this = this;
  9368. _this.$api.letter
  9369. .pinganaudit({
  9370. companyId: this.companyId,
  9371. jqappoint: "",
  9372. syappoint: "",
  9373. })
  9374. .then((res) => {
  9375. if (res.code == "200") {
  9376. loading.close();
  9377. _this.$message({
  9378. message: "核保成功",
  9379. type: "success",
  9380. });
  9381. this.QuotationHistory();
  9382. _this.$api.letter
  9383. .getByCompanyId({ companyId: this.companyId })
  9384. .then((res) => {
  9385. _this.orderstatus = res.data.orderstatus; //订单状态
  9386. _this.underwritingdialogVisible = true;
  9387. let indexid = this.totalCompanyList.findIndex(
  9388. (item) =>
  9389. item.namesimple ==
  9390. this.queryOrders.inscompany
  9391. );
  9392. this.totalCompanyList[indexid].orderstatus =
  9393. res.data.orderstatus;
  9394. });
  9395. } else {
  9396. loading.close();
  9397. _this.$message({
  9398. showClose: true,
  9399. message:
  9400. this.queryOrders.inscompany +
  9401. "提核--:" +
  9402. res.msg,
  9403. type: "error",
  9404. duration: 0,
  9405. });
  9406. _this.$api.letter
  9407. .getByCompanyId({ companyId: this.companyId })
  9408. .then((res) => {
  9409. _this.orderstatus = res.data.orderstatus; //订单状态
  9410. });
  9411. }
  9412. });
  9413. } else {
  9414. this.$message({
  9415. message:
  9416. this.queryOrders.inscompany + "影像--:" + res.msg,
  9417. type: "error",
  9418. duration: 7000,
  9419. });
  9420. loading.close();
  9421. }
  9422. });
  9423. break;
  9424. }
  9425. }
  9426. });
  9427. },
  9428. //当前日期的次日
  9429. transformTime1() {
  9430. var date = new Date();
  9431. date.setFullYear(date.getFullYear());
  9432. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  9433. var strYear = date.getFullYear();
  9434. var strDay = date.getDate();
  9435. var strMonth = date.getMonth() + 1;
  9436. var hh = date.getHours();
  9437. if (hh < 10) {
  9438. hh = "0" + hh;
  9439. }
  9440. if (strMonth < 10) {
  9441. strMonth = "0" + strMonth;
  9442. }
  9443. if (strDay < 10) {
  9444. strDay = "0" + strDay;
  9445. }
  9446. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  9447. return datastr;
  9448. },
  9449. //传入日期的次日
  9450. transformTime2(time) {
  9451. var date = new Date(time);
  9452. date.setFullYear(date.getFullYear());
  9453. date.setTime(date.getTime() + 24 * 60 * 60 * 1000); //一年后的前一天
  9454. var strYear = date.getFullYear();
  9455. var strDay = date.getDate();
  9456. var strMonth = date.getMonth() + 1;
  9457. var hh = date.getHours();
  9458. if (hh < 10) {
  9459. hh = "0" + hh;
  9460. }
  9461. if (strMonth < 10) {
  9462. strMonth = "0" + strMonth;
  9463. }
  9464. if (strDay < 10) {
  9465. strDay = "0" + strDay;
  9466. }
  9467. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  9468. return datastr;
  9469. },
  9470. //时间转换
  9471. transformTime(date) {
  9472. var d = new Date(date);
  9473. var strYear = d.getFullYear();
  9474. var strMonth = d.getMonth() + 1;
  9475. var strDay = d.getDate();
  9476. var hh = d.getHours();
  9477. var minutes = d.getMinutes(); // 分
  9478. var Seconds = d.getSeconds();
  9479. if (hh < 10) {
  9480. hh = "0" + hh;
  9481. }
  9482. if (minutes < 10) {
  9483. minutes = "0" + minutes;
  9484. }
  9485. if (Seconds < 10) {
  9486. Seconds = "0" + Seconds;
  9487. }
  9488. if (strMonth < 10) {
  9489. strMonth = "0" + strMonth;
  9490. }
  9491. if (strDay < 10) {
  9492. strDay = "0" + strDay;
  9493. }
  9494. var datetime =
  9495. strYear +
  9496. "-" +
  9497. strMonth +
  9498. "-" +
  9499. strDay +
  9500. " " +
  9501. hh +
  9502. ":" +
  9503. minutes +
  9504. ":" +
  9505. Seconds;
  9506. return datetime;
  9507. },
  9508. timeformat(date) {
  9509. var d = new Date(date);
  9510. var strYear = d.getFullYear();
  9511. var strMonth = d.getMonth() + 1;
  9512. var strDay = d.getDate();
  9513. var hh = d.getHours();
  9514. if (hh < 10) {
  9515. hh = "0" + hh;
  9516. }
  9517. if (strMonth < 10) {
  9518. strMonth = "0" + strMonth;
  9519. }
  9520. if (strDay < 10) {
  9521. strDay = "0" + strDay;
  9522. }
  9523. var datetime = strYear + "-" + strMonth + "-" + strDay;
  9524. return datetime;
  9525. },
  9526. oneYearPast1(time) {
  9527. //明年减一秒
  9528. var date = new Date(time);
  9529. date.setSeconds(date.getSeconds() - 1);
  9530. date.setFullYear(date.getFullYear() + 1); //一年后
  9531. date.setTime(date.getTime()); //一年后的前一天
  9532. var strYear = date.getFullYear();
  9533. var strDay = date.getDate();
  9534. var strMonth = date.getMonth() + 1;
  9535. var hh = date.getHours();
  9536. var minutes = date.getMinutes(); // 分
  9537. var Seconds = date.getSeconds();
  9538. if (hh < 10) {
  9539. hh = "0" + hh;
  9540. }
  9541. if (minutes < 10) {
  9542. minutes = "0" + minutes;
  9543. }
  9544. if (Seconds < 10) {
  9545. Seconds = "0" + Seconds;
  9546. }
  9547. if (strMonth < 10) {
  9548. strMonth = "0" + strMonth;
  9549. }
  9550. if (strDay < 10) {
  9551. strDay = "0" + strDay;
  9552. }
  9553. var datastr =
  9554. strYear +
  9555. "-" +
  9556. strMonth +
  9557. "-" +
  9558. strDay +
  9559. " " +
  9560. hh +
  9561. ":" +
  9562. minutes +
  9563. ":" +
  9564. Seconds;
  9565. return datastr;
  9566. },
  9567. tbczcarShowChange() {
  9568. //投保人同车主
  9569. switch (this.tbczcarShow) {
  9570. case true:
  9571. this.policyHolderInfo = {...this.ownerInfo}
  9572. break;
  9573. default:
  9574. for (let key in this.policyHolderInfo) {
  9575. this.policyHolderInfo[key] = "";
  9576. this.policyHolderInfo.provinceData = [];
  9577. this.selectedOptions2 = [];
  9578. }
  9579. this.policyHolderInfo = {}
  9580. // this.policyHolderInfo.property='1'
  9581. }
  9582. },
  9583. bbczcarShowChange() {
  9584. //被保人同车主
  9585. switch (this.bbczcarShow) {
  9586. case true:
  9587. this.bbtbcarShow = false;
  9588. this.insuredPersonInfo = {...this.ownerInfo}
  9589. break;
  9590. default:
  9591. for (let key in this.insuredPersonInfo) {
  9592. this.insuredPersonInfo[key] = "";
  9593. this.insuredPersonInfo.provinceData = [];
  9594. // this.selectedOptions3 = [];
  9595. }
  9596. }
  9597. },
  9598. bbtbcarShowChange() {
  9599. //被保人同投保人
  9600. switch (this.bbtbcarShow) {
  9601. case true:
  9602. this.bbczcarShow = false;
  9603. this.insuredPersonInfo = {...this.policyHolderInfo}
  9604. break;
  9605. default:
  9606. for (let key in this.insuredPersonInfo) {
  9607. this.insuredPersonInfo[key] = "";
  9608. this.insuredPersonInfo.provinceData = [];
  9609. }
  9610. }
  9611. },
  9612. //VIN查询
  9613. toChooseVin(cartype) {
  9614. if (cartype == "" || cartype == null) {
  9615. this.$message({
  9616. message: "请输入车架号",
  9617. type: "warning",
  9618. });
  9619. } else {
  9620. const loading = this.$loading({
  9621. lock: true,
  9622. text: "Loading",
  9623. spinner: "el-icon-loading",
  9624. background: "rgba(0, 0, 0, 0.7)",
  9625. });
  9626. this.$api.letter.insZhongmeiVIN(this.carInfo.frameNo).then((res) => {
  9627. if (res.code == "200") {
  9628. this.reslist = res.data;
  9629. loading.close();
  9630. this.sbdmdialogVisible = true;
  9631. } else {
  9632. loading.close();
  9633. this.$message.error(res.msg);
  9634. }
  9635. });
  9636. }
  9637. },
  9638. // 撤销二维码
  9639. revokeCode(id) {
  9640. this.$api.letter.getRevokeQrCode(id).then((res) => {
  9641. if (res.code == 200) {
  9642. this.$message({
  9643. message: res.msg,
  9644. type: "success",
  9645. });
  9646. this.QuotationHistory();
  9647. }
  9648. });
  9649. },
  9650. //品牌型号查询
  9651. toChooseVehicleType(cartype) {
  9652. if (cartype == "" || cartype == null) {
  9653. this.$message({
  9654. message: "请输入车型名称",
  9655. type: "warning",
  9656. });
  9657. } else {
  9658. const loading = this.$loading({
  9659. lock: true,
  9660. text: "Loading",
  9661. spinner: "el-icon-loading",
  9662. background: "rgba(0, 0, 0, 0.7)",
  9663. });
  9664. let param = {
  9665. modelName: cartype.replace(/[^u4e00-u9fa5|,]+/gi, ""),
  9666. };
  9667. this.$api.letter.ModelsQuery(param).then((res) => {
  9668. if (res.code == "200") {
  9669. loading.close();
  9670. this.reslist = res.data;
  9671. this.chexingdialogVisible = true;
  9672. } else {
  9673. loading.close();
  9674. this.$message.error(res.msg);
  9675. }
  9676. });
  9677. }
  9678. },
  9679. //车型列表双击选中事件
  9680. reslistCurrentChange(row, column, event) {
  9681. this.carInfo.brandName = row.brandCN; //品牌型号
  9682. this.carInfo.modelcname = row.modelName; //品牌型号
  9683. this.carInfo.caryear = row.marketYear; //年款
  9684. this.carInfo.seatCount = row.ratedPassengerCapacity; //座位数
  9685. this.carInfo.purchasePrice = row.replacementValue; //购置价
  9686. this.carInfo.modelCode = row.modelCode; //型号代码
  9687. this.carInfo.familyName = row.series; //系列
  9688. this.carInfo.enginedesc = row.displacement; //排量
  9689. this.carInfo.energyType = row.energyTypes;
  9690. this.carInfo.powerScale = row.powerScale; //功率
  9691. this.chexingdialogVisible = false;
  9692. this.sbdmdialogVisible = false;
  9693. },
  9694. //是否过户事件
  9695. transferFlagChange(e) {
  9696. if (e) {
  9697. this.transferDateShow = true;
  9698. this.carInfo.transferDate = this.carInfo.issueDate;
  9699. } else {
  9700. this.transferDateShow = false;
  9701. this.carInfo.transferDate = "";
  9702. }
  9703. },
  9704. //影像上传
  9705. drivingupload(file, imageIdList, imgurl, type) {
  9706. let that = this;
  9707. let size = file.size / 1024 / 1024 < 5;
  9708. const isJPG =
  9709. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  9710. if (!size) {
  9711. this.$message.error("上传图片大小不能超过 5MB!");
  9712. this[imgurl] = [];
  9713. return false;
  9714. }
  9715. if (!isJPG) {
  9716. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  9717. this[imgurl] = [];
  9718. return false;
  9719. }
  9720. this[imgurl].push(file);
  9721. var file = file.raw;
  9722. const params = new FormData(); // 声明formData数据类型
  9723. params.append("multipartFile", file);
  9724. params.append("type", "image");
  9725. this.$api.letter.uploadFile(params).then((res) => {
  9726. if (res.code == "200") {
  9727. if (this[imageIdList].some((v) => v.imageType == type)) {
  9728. this[imageIdList].map((val) => {
  9729. if (val.imageType == type) {
  9730. val.imageId = res.data.id;
  9731. }
  9732. });
  9733. } else {
  9734. this[imageIdList].push({
  9735. imageId: res.data.id,
  9736. imageType: type,
  9737. });
  9738. }
  9739. }
  9740. });
  9741. },
  9742. policydrivingupload(file, val) {
  9743. // this.policyNumberForm[val + 'List'] = []
  9744. switch (val) {
  9745. case "jqPolicy":
  9746. this.policyNumberForm.jqPolicyList = [];
  9747. break;
  9748. case "syPolicy":
  9749. this.policyNumberForm.syPolicyList = [];
  9750. break;
  9751. case "noPolicy":
  9752. this.policyNumberForm.noPolicyList = [];
  9753. break;
  9754. case "jqSign":
  9755. this.policyNumberForm.jqSignList = [];
  9756. break;
  9757. default:
  9758. break;
  9759. }
  9760. var file = file.raw;
  9761. const params = new FormData(); // 声明formData数据类型
  9762. params.append("multipartFile", file);
  9763. params.append("type", "file");
  9764. this.$api.letter.uploadFile(params).then((res) => {
  9765. if (res.code == "200") {
  9766. res.data.name = res.data.fileName;
  9767. this.policyNumberForm[val + "List"].push(res.data);
  9768. }
  9769. });
  9770. },
  9771. handleRemove1(file, imageIdList, imgList) {
  9772. this[imageIdList].map((ele, index) => {
  9773. if (file.imageId === ele.imageId) {
  9774. this[imageIdList].splice(index, 1);
  9775. }
  9776. return ele;
  9777. });
  9778. if (file.imageId) {
  9779. this[imgList].map((ele, index) => {
  9780. if (file.imageId === ele.imageId) {
  9781. this[imgList].splice(index, 1);
  9782. }
  9783. return ele;
  9784. });
  9785. } else {
  9786. this[imgList].map((ele, index) => {
  9787. if (file.uid === ele.uid) {
  9788. this[imgList].splice(index, 1);
  9789. }
  9790. return ele;
  9791. });
  9792. }
  9793. },
  9794. compress(img, width, height, ratio) {
  9795. var canvas, ctx, img64;
  9796. canvas = document.createElement("canvas");
  9797. canvas.width = width;
  9798. canvas.height = height;
  9799. ctx = canvas.getContext("2d");
  9800. ctx.drawImage(img, 0, 0, width, height);
  9801. img64 = canvas.toDataURL("image/jpeg", ratio);
  9802. return img64;
  9803. },
  9804. base64ToFile(base64, fileName) {
  9805. let data = base64.split(",");
  9806. let type = data[0].match(/:(.*?);/)[1]; // let suffix = type.split('/')[1];
  9807. const bstr = window.atob(data[1]);
  9808. let n = bstr.length;
  9809. const u8arr = new Uint8Array(n);
  9810. while (n--) {
  9811. u8arr[n] = bstr.charCodeAt(n);
  9812. } // const file =  new File([u8arr], `${fileName}.${suffix}`, {
  9813. const file = new File([u8arr], `${fileName}`, {
  9814. type: type,
  9815. });
  9816. return file;
  9817. },
  9818. carfrontChange(file) {
  9819. //选择行驶证正面
  9820. let that = this;
  9821. let size = file.size / 1024 / 1024 < 5;
  9822. const isJPG =
  9823. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  9824. if (!size) {
  9825. this.$message.error("上传图片大小不能超过 5MB!");
  9826. return false;
  9827. }
  9828. if (!isJPG) {
  9829. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  9830. return false;
  9831. }
  9832. // let name=file.raw.name
  9833. //       var image = new Image();
  9834. //       image.src = window.URL.createObjectURL(file.raw);
  9835. //       that.carfrontImg =  image.src
  9836. //       image.onload = function(){
  9837. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  9838. // that.carfrontImg = image.src;
  9839. // const params = new FormData(); // 声明formData数据类型
  9840. // params.append("multipartFile", aaa);
  9841. // params.append("type", "image");
  9842. // that.$api.letter.uploadFile(params).then(res => {
  9843. // if (res.code == "200") {
  9844. // that.CarFrontFile = aaa;//文件流
  9845. // if (that.imageList1.some(v => v.imageType == 'C01')) {
  9846. // that.imageList1.map(val => {
  9847. // if (val.imageType == 'C01') {
  9848. // val.imageId = res.data.id;
  9849. // }
  9850. // })
  9851. // } else {
  9852. // that.imageList1.push({
  9853. // imageId: res.data.id,
  9854. // imageType: "C01",
  9855. // })
  9856. // }
  9857. // } else {
  9858. // that.$message({ message: res.msg, type: "warning" });
  9859. // }
  9860. // });
  9861. // }
  9862. var file = file.raw;
  9863. let files = window.URL.createObjectURL(file); //转临时路径
  9864. this.carfrontImg = files;
  9865. const params = new FormData(); // 声明formData数据类型
  9866. params.append("multipartFile", file);
  9867. params.append("type", "image");
  9868. this.$api.letter.uploadFile(params).then((res) => {
  9869. if (res.code == "200") {
  9870. this.CarFrontFile = file; //文件流
  9871. if (this.imageList1.some((v) => v.imageType == "C01")) {
  9872. this.imageList1.map((val) => {
  9873. if (val.imageType == "C01") {
  9874. val.imageId = res.data.id;
  9875. }
  9876. });
  9877. } else {
  9878. this.imageList1.push({
  9879. imageId: res.data.id,
  9880. imageType: "C01",
  9881. });
  9882. }
  9883. } else {
  9884. this.$message({ message: res.msg, type: "warning" });
  9885. }
  9886. });
  9887. },
  9888. carbackChange(file) {
  9889. let that = this;
  9890. let size = file.size / 1024 / 1024 < 2;
  9891. const isJPG =
  9892. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  9893. if (!size) {
  9894. this.$message.error("上传图片大小不能超过 5MB!");
  9895. return false;
  9896. }
  9897. if (!isJPG) {
  9898. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  9899. return false;
  9900. }
  9901. // let name=file.raw.name
  9902. //       var image = new Image();
  9903. //       image.src = window.URL.createObjectURL(file.raw);
  9904. //       image.onload = function(){
  9905. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  9906. // that.carbackImg = image.src;
  9907. // const params = new FormData(); // 声明formData数据类型
  9908. // params.append("multipartFile", aaa);
  9909. // params.append("type", "image");
  9910. // that.$api.letter.uploadFile(params).then(res => {
  9911. // if (res.code == "200") {
  9912. // that.CarBackFile = aaa;//文件流
  9913. // if (that.imageList1.some(v => v.imageType == 'D01')) {
  9914. // that.imageList1.map(val => {
  9915. // if (val.imageType == 'D01') {
  9916. // val.imageId = res.data.id;
  9917. // }
  9918. // })
  9919. // } else {
  9920. // that.imageList1.push({
  9921. // imageId: res.data.id,
  9922. // imageType: "D01",
  9923. // })
  9924. // }
  9925. // } else {
  9926. // that.$message({ message: res.msg, type: "warning" });
  9927. // }
  9928. // });
  9929. // }
  9930. //选择行驶证反面
  9931. var file = file.raw;
  9932. let files = window.URL.createObjectURL(file); //转临时路径
  9933. this.carbackImg = files;
  9934. const params = new FormData(); // 声明formData数据类型
  9935. params.append("multipartFile", file);
  9936. params.append("type", "image");
  9937. this.$api.letter.uploadFile(params).then((res) => {
  9938. if (res.code == "200") {
  9939. this.CarBackFile = file;
  9940. if (this.imageList1.some((v) => v.imageType == "D01")) {
  9941. this.imageList1.map((val) => {
  9942. if (val.imageType == "D01") {
  9943. val.imageId = res.data.id;
  9944. }
  9945. });
  9946. } else {
  9947. this.imageList1.push({
  9948. imageId: res.data.id,
  9949. imageType: "D01",
  9950. });
  9951. }
  9952. } else {
  9953. this.$message({ message: res.msg, type: "warning" });
  9954. }
  9955. });
  9956. },
  9957. userfrontChange(file) {
  9958. let that = this;
  9959. let size = file.size / 1024 / 1024 < 5;
  9960. const isJPG =
  9961. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  9962. if (!size) {
  9963. this.$message.error("上传图片大小不能超过 5MB!");
  9964. return false;
  9965. }
  9966. if (!isJPG) {
  9967. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  9968. return false;
  9969. }
  9970. // let name=file.raw.name
  9971. //       var image = new Image();
  9972. //       image.src = window.URL.createObjectURL(file.raw);
  9973. //       image.onload = function(){
  9974. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  9975. // that.userfrontImg = image.src;
  9976. // const params = new FormData(); // 声明formData数据类型
  9977. // params.append("multipartFile", aaa);
  9978. // params.append("type", "image");
  9979. // that.$api.letter.uploadFile(params).then(res => {
  9980. // if (res.code == "200") {
  9981. // let type = 'C0' + that.userIndex;
  9982. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  9983. // that['imageList' + that.userIndex].map(val => {
  9984. // if (val.imageType == type) {
  9985. // val.imageId = res.data.id;
  9986. // }
  9987. // })
  9988. // } else {
  9989. // that['imageList' + that.userIndex].push({
  9990. // imageId: res.data.id,
  9991. // imageType: type,
  9992. // })
  9993. // }
  9994. // that[type + 'File'] = aaa;
  9995. // } else {
  9996. // that.$message({ message: res.msg, type: "warning" });
  9997. // }
  9998. // });
  9999. // }
  10000. //选择身份证正面
  10001. var file = file.raw;
  10002. let files = window.URL.createObjectURL(file); //转链接
  10003. this.userfrontImg = files;
  10004. const params = new FormData(); // 声明formData数据类型
  10005. params.append("multipartFile", file);
  10006. params.append("type", "image");
  10007. this.$api.letter.uploadFile(params).then((res) => {
  10008. if (res.code == "200") {
  10009. let type = "C0" + this.userIndex;
  10010. if (
  10011. this["imageList" + this.userIndex].some((v) => v.imageType == type)
  10012. ) {
  10013. this["imageList" + this.userIndex].map((val) => {
  10014. if (val.imageType == type) {
  10015. val.imageId = res.data.id;
  10016. }
  10017. });
  10018. } else {
  10019. this["imageList" + this.userIndex].push({
  10020. imageId: res.data.id,
  10021. imageType: type,
  10022. });
  10023. }
  10024. this[type + "File"] = file;
  10025. } else {
  10026. this.$message({ message: res.msg, type: "warning" });
  10027. }
  10028. });
  10029. },
  10030. userbackChange(file) {
  10031. let that = this;
  10032. let size = file.size / 1024 / 1024 < 5;
  10033. const isJPG =
  10034. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  10035. if (!size) {
  10036. this.$message.error("上传图片大小不能超过 5MB!");
  10037. return false;
  10038. }
  10039. if (!isJPG) {
  10040. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  10041. return false;
  10042. }
  10043. // let name=file.raw.name
  10044. //       var image = new Image();
  10045. //       image.src = window.URL.createObjectURL(file.raw);
  10046. //       image.onload = function(){
  10047. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  10048. // that.userbackImg = image.src;
  10049. // const params = new FormData(); // 声明formData数据类型
  10050. // params.append("multipartFile", aaa);
  10051. // params.append("type", "image");
  10052. // that.$api.letter.uploadFile(params).then(res => {
  10053. // if (res.code == "200") {
  10054. // let type = 'D0' + that.userIndex;
  10055. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  10056. // that['imageList' + that.userIndex].map(val => {
  10057. // if (val.imageType == type) {
  10058. // val.imageId = res.data.id;
  10059. // }
  10060. // })
  10061. // } else {
  10062. // that['imageList' + that.userIndex].push({
  10063. // imageId: res.data.id,
  10064. // imageType: type,
  10065. // })
  10066. // }
  10067. // that[type + 'File'] = aaa;
  10068. // } else {
  10069. // that.$message({ message: res.msg, type: "warning" });
  10070. // }
  10071. // });
  10072. // }
  10073. //选择身份证背面
  10074. var file = file.raw;
  10075. let files = window.URL.createObjectURL(file); //转链接
  10076. this.userbackImg = files;
  10077. const params = new FormData(); // 声明formData数据类型
  10078. params.append("multipartFile", file);
  10079. params.append("type", "image");
  10080. this.$api.letter.uploadFile(params).then((res) => {
  10081. if (res.code == "200") {
  10082. let type = "D0" + this.userIndex;
  10083. if (
  10084. this["imageList" + this.userIndex].some((v) => v.imageType == type)
  10085. ) {
  10086. this["imageList" + this.userIndex].map((val) => {
  10087. if (val.imageType == type) {
  10088. val.imageId = res.data.id;
  10089. }
  10090. });
  10091. } else {
  10092. this["imageList" + this.userIndex].push({
  10093. imageId: res.data.id,
  10094. imageType: type,
  10095. });
  10096. }
  10097. this[type + "File"] = file;
  10098. } else {
  10099. this.$message({ message: res.msg, type: "warning" });
  10100. }
  10101. });
  10102. },
  10103. businessChange(file) {
  10104. let size = file.size / 1024 / 1024 < 5;
  10105. const isJPG =
  10106. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  10107. if (!size) {
  10108. this.$message.error("上传图片大小不能超过 5MB!");
  10109. return false;
  10110. }
  10111. if (!isJPG) {
  10112. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  10113. return false;
  10114. }
  10115. var file = file.raw;
  10116. let files = window.URL.createObjectURL(file); //转链接
  10117. this.businessImg = files;
  10118. const params = new FormData(); // 声明formData数据类型
  10119. params.append("multipartFile", file);
  10120. params.append("type", "image");
  10121. this.$api.letter.uploadFile(params).then((res) => {
  10122. if (res.code == "200") {
  10123. let type = "Y0" + this.userIndex;
  10124. if (
  10125. this["imageList" + this.userIndex].some((v) => v.imageType == type)
  10126. ) {
  10127. this["imageList" + this.userIndex].map((val) => {
  10128. if (val.imageType == type) {
  10129. val.imageId = res.data.id;
  10130. }
  10131. });
  10132. } else {
  10133. this["imageList" + this.userIndex].push({
  10134. imageId: res.data.id,
  10135. imageType: type,
  10136. });
  10137. }
  10138. this[type + "File"] = file;
  10139. } else {
  10140. this.$message({ message: res.msg, type: "warning" });
  10141. }
  10142. });
  10143. },
  10144. CarOCRdiscern() {
  10145. //car识别
  10146. const loading = this.$loading({
  10147. lock: true,
  10148. text: "Loading",
  10149. spinner: "el-icon-loading",
  10150. background: "rgba(0, 0, 0, 0.7)",
  10151. });
  10152. const params = new FormData(); // 声明formData数据类型
  10153. params.append("image1", this.CarFrontFile);
  10154. params.append("image2", this.CarBackFile);
  10155. this.$api.letter.drivingPermit(params).then((res) => {
  10156. loading.close();
  10157. if (res.msg == "201") {
  10158. this.$message({ message: "请正确选择驾驶证", type: "warning" });
  10159. }
  10160. var carInfo = res.data.carInfo;
  10161. if (carInfo.issueDate) {
  10162. carInfo.issueDate =
  10163. carInfo.issueDate.substring(0, 4) +
  10164. "-" +
  10165. carInfo.issueDate.substring(4, 6) +
  10166. "-" +
  10167. carInfo.issueDate.substring(6, 8);
  10168. }
  10169. if (carInfo.registerDate) {
  10170. carInfo.registerDate =
  10171. carInfo.registerDate.substring(0, 4) +
  10172. "-" +
  10173. carInfo.registerDate.substring(4, 6) +
  10174. "-" +
  10175. carInfo.registerDate.substring(6, 8);
  10176. }
  10177. this.carform.carOwner = carInfo.carOwner; //车主
  10178. this.carform.licenseNo = carInfo.plateNo; //车牌号
  10179. this.carform.modelcname = carInfo.backOcrID; //品牌型号
  10180. this.carform.frameNo = carInfo.vin; //车架号
  10181. this.carform.engineNo = carInfo.engine; //发动机号
  10182. this.carform.registerDate = carInfo.registerDate; //车牌号
  10183. this.carform.issueDate = carInfo.issueDate; //车牌号
  10184. this.carform.grossMass = carInfo.grossMass; //总质量
  10185. this.carform.unladenMass = carInfo.unladenMass; //整备质量
  10186. this.carform.limitLoad = carInfo.limitLoad; //核定载质量
  10187. this.carform.category = carInfo.category; //车辆类型
  10188. this.carform.carnature = carInfo.useNature; //使用性质
  10189. this.carform.vehicleUse = carInfo.vehicleUse; //车辆用途
  10190. this.carform.plateType = carInfo.plateType; //车辆种类
  10191. this.carform.approvedPassengersCapacity =
  10192. carInfo.approvedPassengersCapacity; //核定载客数
  10193. });
  10194. },
  10195. CarOCRconfirm() {
  10196. //传参 carnature
  10197. this.ownerInfo.name = this.carform.carOwner; //车主
  10198. this.carInfo.cartype = "K33";
  10199. this.carInfo.licenseNo = this.carform.licenseNo; //车牌号
  10200. this.carInfo.modelcname = this.carform.modelcname; //品牌型号
  10201. this.carInfo.vinNo = this.carform.frameNo; //车架号
  10202. this.carInfo.frameNo = this.carform.frameNo; //车架号
  10203. this.carInfo.engineNo = this.carform.engineNo; //发动机号
  10204. this.carInfo.seatCount = this.carform.approvedPassengersCapacity; //核定载客数
  10205. this.carInfo.vehicleweight = this.carform.grossMass; //总质量
  10206. this.carInfo.completeKerbMass = this.carform.unladenMass; //整备质量
  10207. this.carInfo.limitLoad = this.carform.limitLoad; //核定载质量
  10208. this.carInfo.cartype = this.carform.category; //车辆类型
  10209. this.carInfo.carnature = this.carform.carnature
  10210. ? this.carform.carnature
  10211. : "02"; //使用性质
  10212. this.carInfo.vehicleUse = this.carform.vehicleUse
  10213. ? this.carform.vehicleUse
  10214. : "05"; //车辆用途
  10215. this.carInfo.cimodelclass = this.carform.plateType; //车辆种类
  10216. if (this.timeformat(this.carform.registerDate) != "NaN-NaN-NaN") {
  10217. this.carInfo.registerDate = this.carform.registerDate; //车牌号
  10218. }
  10219. if (this.timeformat(this.carform.issueDate) != "NaN-NaN-NaN") {
  10220. this.carInfo.issueDate = this.carform.issueDate; //车牌号
  10221. }
  10222. this.uploadcardialogVisible = false;
  10223. },
  10224. handleRemove(e) {
  10225. //删除图片
  10226. this[e] = "";
  10227. switch (this.userIndex) {
  10228. case 0:
  10229. this.carfrontImg = "";
  10230. this.carbackImg = "";
  10231. this.CarFrontFile = ""; // 行驶证正面base64
  10232. this.CarBackFile = ""; // 行驶证背面base64
  10233. break;
  10234. case 2:
  10235. this.userfrontImg = "";
  10236. this.userbackImg = "";
  10237. this.C02File = ""; // 车主正面base64
  10238. this.D02File = ""; // 车主背面base64
  10239. this.Y02File = ""; // 车主营业执照
  10240. break;
  10241. case 3:
  10242. this.userfrontImg = "";
  10243. this.userbackImg = "";
  10244. this.C03File = ""; // 投保人正面base64
  10245. this.D03File = ""; // 投保人背面base64
  10246. this.Y03File = ""; // 投保人营业执照
  10247. break;
  10248. case 4:
  10249. this.userfrontImg = "";
  10250. this.userbackImg = "";
  10251. this.C04File = ""; // 被保人正面base64
  10252. this.D04File = ""; // 被保人背面base64
  10253. this.Y04File = ""; // 被保人营业执照
  10254. break;
  10255. default:
  10256. }
  10257. },
  10258. //预览图片
  10259. handlePictureCardPreview(img) {
  10260. this.ProViewImg = img;
  10261. this.showViewer = true;
  10262. },
  10263. // 关闭查看器
  10264. closeViewer() {
  10265. this.showViewer = false;
  10266. },
  10267. uploaduser(index) {
  10268. this.userIndex = index;
  10269. this.uploaduserdialogVisible = true;
  10270. },
  10271. userOCRdiscern() {
  10272. //OCR识别
  10273. if( this.activeName=='1'){
  10274. switch (this.userIndex) {
  10275. case 2:
  10276. const params1 = new FormData(); // 声明formData数据类型
  10277. params1.append("image1", this.C02File);
  10278. params1.append("image2", this.D02File);
  10279. this.userOCRjoggle(params1);
  10280. break;
  10281. case 3:
  10282. const params2 = new FormData(); // 声明formData数据类型
  10283. params2.append("image1", this.C03File);
  10284. params2.append("image2", this.D03File);
  10285. this.userOCRjoggle(params2);
  10286. break;
  10287. case 4:
  10288. const params3 = new FormData(); // 声明formData数据类型
  10289. params3.append("image1", this.C04File);
  10290. params3.append("image2", this.D04File);
  10291. this.userOCRjoggle(params3);
  10292. break;
  10293. default:
  10294. }
  10295. }
  10296. else{
  10297. switch (this.userIndex ) {
  10298. case 2:
  10299. const params1 = new FormData(); // 声明formData数据类型
  10300. params1.append("image1", this.Y02File);
  10301. this.businessjoggle(params1);
  10302. break;
  10303. case 3:
  10304. const params2 = new FormData(); // 声明formData数据类型
  10305. params2.append("image1", this.Y03File);
  10306. this.businessjoggle(params2);
  10307. break;
  10308. case 4:
  10309. const params3 = new FormData(); // 声明formData数据类型
  10310. params3.append("image1", this.Y04File);
  10311. this.businessjoggle(params3);
  10312. break;
  10313. default:
  10314. }
  10315. }
  10316. },
  10317. businessjoggle(param) {
  10318. const loading = this.$loading({
  10319. lock: true,
  10320. text: "Loading",
  10321. spinner: "el-icon-loading",
  10322. background: "rgba(0, 0, 0, 0.7)",
  10323. });
  10324. this.$api.letter.businessLicense(param).then((res) => {
  10325. loading.close();
  10326. if (res.msg == "201") {
  10327. this.$message({ message: "请正确选择营业执照", type: "warning" });
  10328. }
  10329. if (res.code==200 && res.data) {
  10330. if(res.data){
  10331. this.businessform={
  10332. ...res.data,
  10333. name: res.data.company,
  10334. organizationCode: res.data.socialCreditCode,
  10335. addr: res.data.address,
  10336. identifyType:'10',
  10337. scope: res.data.businessScope,
  10338. legalPerson: res.data.legalRepresentative,
  10339. registeredCapital:parseInt(res.data.registeredCapital)
  10340. }
  10341. }
  10342. }
  10343. });
  10344. },
  10345. userOCRjoggle(param) {
  10346. const loading = this.$loading({
  10347. lock: true,
  10348. text: "Loading",
  10349. spinner: "el-icon-loading",
  10350. background: "rgba(0, 0, 0, 0.7)",
  10351. });
  10352. this.$api.letter.idCard(param).then((res) => {
  10353. loading.close();
  10354. if (res.msg == "201") {
  10355. this.$message({ message: "请正确选择身份证", type: "warning" });
  10356. }
  10357. var customerInfo = res.data.customerInfo;
  10358. if (customerInfo) {
  10359. this.ownerInfoform.name = customerInfo.name;
  10360. if (customerInfo.identifyType == "01") {
  10361. this.ownerInfoform.identifyType = "身份证";
  10362. } else {
  10363. this.ownerInfoform.identifyType = "";
  10364. }
  10365. this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;
  10366. this.ownerInfoform.gender = customerInfo.identifyIssuedCom;
  10367. this.ownerInfoform.addr = customerInfo.addr;
  10368. if (customerInfo.identifyNumber) {
  10369. this.ownerInfoform.age = getAgeByIdCard(
  10370. customerInfo.identifyNumber
  10371. );
  10372. }
  10373. if (
  10374. customerInfo.identifyValidDate ||
  10375. customerInfo.identifyValidEndDate
  10376. ) {
  10377. this.ownerInfoform.identifyValidDate =
  10378. customerInfo.identifyValidDate.substring(0, 4) +
  10379. "-" +
  10380. customerInfo.identifyValidDate.substring(4, 6) +
  10381. "-" +
  10382. customerInfo.identifyValidDate.substring(6, 8);
  10383. this.ownerInfoform.identifyValidEndDate =
  10384. customerInfo.identifyValidEndDate.substring(0, 4) +
  10385. "-" +
  10386. customerInfo.identifyValidEndDate.substring(4, 6) +
  10387. "-" +
  10388. customerInfo.identifyValidEndDate.substring(6, 8);
  10389. if (customerInfo.identifyValidEndDate == "长期") {
  10390. this.ownerInfoform.identifyValidEndDate = "9999-12-31";
  10391. }
  10392. }
  10393. // let values = addressCode(this.ownerInfoform.addr);
  10394. // this.ownerInfoform.province = codeToText[values[0]]
  10395. // this.ownerInfoform.city = codeToText[values[1]]
  10396. // this.ownerInfoform.county = codeToText[values[2]]
  10397. }
  10398. });
  10399. },
  10400. userOCRconfirm() {
  10401. //传参
  10402. if( this.activeName=='1'){
  10403. this.ownerInfoform.property='1'
  10404. switch (this.userIndex) {
  10405. case 2:
  10406. // this.selectedOptions1 = addressCode(this.ownerInfoform.addr);
  10407. this.ownerInfo = {...this.ownerInfoform}
  10408. break;
  10409. case 3:
  10410. // this.selectedOptions2 = addressCode(this.ownerInfoform.addr);
  10411. this.policyHolderInfo = {...this.ownerInfoform}
  10412. break;
  10413. case 4:
  10414. // this.selectedOptions3 = addressCode(this.ownerInfoform.addr);
  10415. this.insuredPersonInfo = {...this.ownerInfoform}
  10416. break;
  10417. }
  10418. }
  10419. else{
  10420. this.businessform.property='0'
  10421. switch (this.userIndex) {
  10422. case 2:
  10423. this.ownerInfo ={...this.ownerInfo,...this.businessform}
  10424. break;
  10425. case 3:
  10426. this.policyHolderInfo ={...this.policyHolderInfo,...this.businessform}
  10427. break;
  10428. case 4:
  10429. this.insuredPersonInfo ={...this.insuredPersonInfo,...this.businessform}
  10430. break;
  10431. }
  10432. }
  10433. this.uploaduserdialogVisible = false;
  10434. },
  10435. closeDialog(index) {
  10436. // 0:车辆 1:车主 2:投保人 3:被保人
  10437. switch (index) {
  10438. case 0:
  10439. this.carfrontImg = "";
  10440. this.carbackImg = "";
  10441. this.CarFrontFile = ""; // 行驶证正面base64
  10442. this.CarBackFile = ""; // 行驶证背面base64
  10443. Object.keys(this.carform).forEach((key) => {
  10444. this.carform[key] = "";
  10445. });
  10446. break;
  10447. case 2:
  10448. this.userfrontImg = "";
  10449. this.userbackImg = "";
  10450. this.businessImg = "";
  10451. this.Y02File = ""; // 营业执照
  10452. this.C02File = ""; // 车主正面base64
  10453. this.D02File = ""; // 车主背面base64
  10454. Object.keys(this.ownerInfoform).forEach((key) => {
  10455. this.ownerInfoform[key] = "";
  10456. });
  10457. break;
  10458. case 3:
  10459. this.userfrontImg = "";
  10460. this.userbackImg = "";
  10461. this.businessImg = "";
  10462. this.Y03File = ""; // 营业执照
  10463. this.C03File = ""; // 投保人正面base64
  10464. this.D03File = ""; // 投保人背面base64
  10465. Object.keys(this.ownerInfoform).forEach((key) => {
  10466. this.ownerInfoform[key] = "";
  10467. });
  10468. break;
  10469. case 4:
  10470. this.userfrontImg = "";
  10471. this.userbackImg = "";
  10472. this.businessImg = "";
  10473. this.Y04File = ""; // 营业执照
  10474. this.C04File = ""; // 被保人正面base64
  10475. this.D04File = ""; // 被保人背面base64
  10476. Object.keys(this.ownerInfoform).forEach((key) => {
  10477. this.ownerInfoform[key] = "";
  10478. });
  10479. break;
  10480. default:
  10481. }
  10482. },
  10483. bjdpreview(id) {
  10484. let params = {
  10485. companyId: id,
  10486. };
  10487. this.$api.letter.getByCompanyId(params).then((res) => {
  10488. if (res.code == "200") {
  10489. var data = res.data;
  10490. if (data.kindinfo != null) {
  10491. data.kindinfo.map((ele, index) => {
  10492. switch (ele.kindCode) {
  10493. case "A":
  10494. if (ele.amount == 1) {
  10495. ele.amount = "投保";
  10496. } else {
  10497. ele.amount = ele.amount;
  10498. }
  10499. break;
  10500. case "D4":
  10501. case "SY_FJ_YBW2":
  10502. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  10503. break;
  10504. case "MJ1":
  10505. case "MJ2":
  10506. case "MJ3":
  10507. case "MJ4":
  10508. ele.deductibleRate = ele.deductibleRate + "%";
  10509. break;
  10510. default:
  10511. ele.amount = this.toChinesNum(ele.amount);
  10512. }
  10513. return ele;
  10514. });
  10515. }
  10516. data.logoImg = this.iconfftter(res.data.inscompany);
  10517. this.queryOrders = data;
  10518. this.$api.letter.getThemeByUserId(this.userId).then((res) => {
  10519. if (res.code == 200) {
  10520. if (res.data[0] == "GD") {
  10521. this.$refs.quotationDialogPro.setBackupVisible(true);
  10522. } else {
  10523. this.$refs.quotationDialog.setBackupVisible(true);
  10524. }
  10525. }
  10526. });
  10527. // if (
  10528. // this.$store.state.user.roles.managementSource &&
  10529. // this.$store.state.user.roles.managementSource == "3"
  10530. // ) {
  10531. // this.$refs.quotationDialogPro.setBackupVisible(true);
  10532. // } else {
  10533. // this.$refs.quotationDialog.setBackupVisible(true);
  10534. // }
  10535. }
  10536. });
  10537. },
  10538. //返回上一步
  10539. Back() { },
  10540. carcode(id, item) {
  10541. this.$api.letter.getQrCode(id).then((res) => {
  10542. if (res.code == "200") {
  10543. this.inscompany = res.data.inscompany; //保险公司
  10544. this.sumpremium = res.data.sumpremium; //总价
  10545. this.licenseNo = res.data.cPlateNo; //车牌号
  10546. this.applyName = res.data.cInsuredNme; //车主
  10547. this.jqpremium = res.data.jqpremium; //交强
  10548. this.sypremium = res.data.sypremium; //商业
  10549. this.taxamount = res.data.taxamount; //车船税
  10550. this.jypremium = res.data.jypremium; //驾意险
  10551. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  10552. this.systartdate = res.data.syStartDate; //商业起保日期
  10553. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  10554. let qrCodeUrl = res.data.qrCodeUrl;
  10555. this.$api.letter.getThemeByUserId(this.userId).then((res) => {
  10556. if (res.code == 200) {
  10557. if (res.data[0] == "GD") {
  10558. this.codedialogVisiblePro = true;
  10559. this.qrcodeWidth = "154";
  10560. this.qrcodeHeight = "154";
  10561. } else {
  10562. this.codedialogVisible = true;
  10563. }
  10564. this.$nextTick(function () {
  10565. var _that = this;
  10566. switch (_that.inscompany) {
  10567. case "太平财险":
  10568. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  10569. let animgBase64 = `data:image/png;base64,${anresult}`;
  10570. base64ToPath(animgBase64).then((path) => {
  10571. this.paycodeimg = path;
  10572. });
  10573. break;
  10574. case "华泰财险":
  10575. switch (item.apiType) {
  10576. case 1:
  10577. this.creatQrCode(qrCodeUrl);
  10578. break;
  10579. case 2:
  10580. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  10581. let animgBase64 = `data:image/png;base64,${anresult}`;
  10582. base64ToPath(animgBase64).then((path) => {
  10583. this.paycodeimg = path;
  10584. });
  10585. break;
  10586. }
  10587. break;
  10588. case "大家财险":
  10589. switch (item.apiType) {
  10590. case 1:
  10591. this.creatQrCode(qrCodeUrl);
  10592. break;
  10593. case 2:
  10594. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  10595. let animgBase64 = `data:image/png;base64,${anresult}`;
  10596. base64ToPath(animgBase64).then((path) => {
  10597. this.paycodeimg = path;
  10598. });
  10599. break;
  10600. }
  10601. break;
  10602. default:
  10603. this.creatQrCode(qrCodeUrl);
  10604. }
  10605. });
  10606. }
  10607. });
  10608. } else {
  10609. this.$message({ message: res.msg, type: "warning" });
  10610. }
  10611. });
  10612. },
  10613. //同步
  10614. synchronization() {
  10615. this.systartDate = this.jqstartDate;
  10616. this.syendDate = this.jqendDate;
  10617. },
  10618. add() {
  10619. this.obtainProtocol();
  10620. if (this.isLetter == "1") {
  10621. this.$router.push({ path: "/letter/letter" });
  10622. }
  10623. for (let key in this.ownerInfo) {
  10624. this.ownerInfo[key] = "";
  10625. }
  10626. for (let key in this.policyHolderInfo) {
  10627. this.policyHolderInfo[key] = "";
  10628. }
  10629. for (let key in this.insuredPersonInfo) {
  10630. this.insuredPersonInfo[key] = "";
  10631. }
  10632. this.vehicleAndVesselTaxForm = {
  10633. taxRelifFlag: "1",
  10634. taxpayerIdentifier: "01",
  10635. };
  10636. this.ownerInfo.provinceData = [];
  10637. this.insuredPersonInfo.provinceData = [];
  10638. this.policyHolderInfo.provinceData = [];
  10639. this.carInfo = JSON.parse(localStorage.getItem("carInfo"));
  10640. this.insureList = JSON.parse(localStorage.getItem("insureList"));
  10641. this.sychecked = false;
  10642. this.yonganchecked = false;
  10643. this.zhongmeichecked = false;
  10644. this.transferDateShow = false;
  10645. (this.tbczcarShow = true), //投保人同车主
  10646. // this.bbczcarShow = false, //被保人同车主
  10647. (this.bbtbcarShow = true), //被保人同投保人
  10648. // this.$refs.imageDialog.emptyList()
  10649. this.imageList1 = [];
  10650. this.imageList2 = [];
  10651. this.imageList3 = [];
  10652. this.imageList4 = [];
  10653. this.imageList5 = [];
  10654. this.imageList6 = [];
  10655. this.imgList1 = [];
  10656. this.imgList2 = [];
  10657. this.imgList3 = [];
  10658. this.imgList4 = [];
  10659. this.imgList5 = [];
  10660. this.imgList6 = [];
  10661. this.imgList7 = [];
  10662. this.imgList8 = [];
  10663. this.imgList9 = [];
  10664. this.imgList10 = [];
  10665. this.imgList11 = [];
  10666. this.imgList12 = [];
  10667. this.imgList13 = [];
  10668. this.imgList14 = [];
  10669. this.imgList15 = [];
  10670. this.imgList16 = [];
  10671. this.imgList17 = [];
  10672. this.imgList18 = [];
  10673. this.imgList19 = [];
  10674. this.imgList20 = [];
  10675. this.imgList21 = [];
  10676. this.imgList22 = [];
  10677. this.imgList23 = [];
  10678. this.imgList24 = [];
  10679. // 清空保险公司选中的意外险
  10680. this.zijintemplateSelection = "";
  10681. this.zhongantemplateSelection = "";
  10682. this.hengbangtemplateSelection = "";
  10683. this.chengtaitemplateSelection = "";
  10684. this.taipingtemplateSelection = "";
  10685. this.insuranceHN = "";
  10686. this.renshoutemplateSelection = "";
  10687. this.dajiatemplateSelection = "";
  10688. this.accidentForm = {
  10689. fen: "1",
  10690. premium: 0,
  10691. };
  10692. this.accidentFormHN = {
  10693. allQuantity: "1",
  10694. quantity: "1",
  10695. };
  10696. this.hengbangaccidentalDrivingVo = {};
  10697. this.huanongaccidentalDrivingVo = {};
  10698. this.taipingaccidentalDrivingVo = {};
  10699. this.zhongmeiaccidentalDrivingVo = {};
  10700. this.accidentalDrivingVo = [];
  10701. this.zhonganaccidentalDrivingVo = {};
  10702. this.renshouaccidentalDrivingVo = {};
  10703. this.anshengaccidentalDrivingVo = {};
  10704. this.dajiaaccidentalDrivingVo = {};
  10705. // this.selectedOptions1 = [];
  10706. // this.selectedOptions2 = [];
  10707. // this.selectedOptions3 = [];
  10708. this.orderno = "";
  10709. this.quoteno = "";
  10710. this.lastCompanyId = "";
  10711. this.HistoryList = [];
  10712. this.jqstartDate = this.transformTime1();
  10713. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  10714. this.systartDate = this.transformTime1();
  10715. this.syendDate = this.oneYearPast1(this.jqstartDate);
  10716. this.policyNumberForm = {
  10717. jqpolicyno: "",
  10718. sypolicyno: "",
  10719. jypolicyno: "",
  10720. jqpremium: "",
  10721. sypremium: "",
  10722. jypremium: "",
  10723. taxamount: "",
  10724. commissionFeevalue: "",
  10725. otherFeevalue: "",
  10726. jqSuperviseCostsProportion: "",
  10727. sySuperviseCostsProportion: "",
  10728. noSuperviseCostsProportion: "",
  10729. jqOtherCostsProportion: "",
  10730. syOtherCostsProportion: "",
  10731. noOtherCostsProportion: "",
  10732. jqReceivableProportion: "",
  10733. syReceivableProportion: "",
  10734. noReceivableProportion: "",
  10735. jqPolicyList: [],
  10736. syPolicyList: [],
  10737. jqSignList: [],
  10738. noPolicyList: [],
  10739. noCostsProportion: '',
  10740. jqCostsProportion: '',
  10741. syCostsProportion: '',
  10742. };
  10743. //清空保险公司列表数据 add by hxl
  10744. this.companyName ="";
  10745. this.isLetter3agreementId="";
  10746. this.costFlag="";
  10747. this.nowCostsId ="";
  10748. this.isInquiryNowDisable = false
  10749. this.isInquirySelectFlag = true;
  10750. this.inquiryNowList = [];
  10751. //清空费用
  10752. this.policyNumberForm.jqCostsProportion = "";
  10753. this.policyNumberForm.noCostsProportion = "";
  10754. this.policyNumberForm.syCostsProportion = "";
  10755. this.$route.query.data =null;
  10756. },
  10757. toChinesNum(num) {
  10758. if (num.toString().length == 4) {
  10759. let overQian = Math.floor(num / 1000);
  10760. let result = overQian + "千";
  10761. return result;
  10762. } else {
  10763. let overWan = Math.floor(num / 10000);
  10764. let result = overWan + "万";
  10765. return result;
  10766. }
  10767. },
  10768. reportDrop(event) {
  10769. event.preventDefault();
  10770. event.stopPropagation();
  10771. },
  10772. tabLiScroll(id, idx) {
  10773. this.tabLiIndex = idx;
  10774. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  10775. },
  10776. handleScroll(id) {
  10777. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  10778. },
  10779. },
  10780. };
  10781. </script>
  10782. <style>
  10783. /* .customNotifyClass {
  10784. word-break: break-all;
  10785. width: 600px;
  10786. } */
  10787. </style>
  10788. <style lang="scss" scoped>
  10789. .marginL {
  10790. margin-left: 10px;
  10791. }
  10792. .el-notification {
  10793. width: 600px;
  10794. }
  10795. .styleB .el-upload--picture-card {
  10796. // display: none;
  10797. opacity: 0;
  10798. }
  10799. .ORcodebody {
  10800. height: auto;
  10801. background-color: #fff;
  10802. //background: url(../../../assets/image/group.png) #fff;
  10803. padding: 16px;
  10804. }
  10805. .csstool {
  10806. font-weight: 600;
  10807. color: #606266;
  10808. font-size: 14px;
  10809. margin: 0 20px;
  10810. span {
  10811. margin-right: 5px;
  10812. }
  10813. }
  10814. .ORcode {
  10815. width: 100%;
  10816. height: auto;
  10817. display: flex;
  10818. justify-content: center;
  10819. align-items: center;
  10820. padding: 30px;
  10821. box-sizing: border-box;
  10822. &>div {
  10823. width: 176px;
  10824. height: 176px;
  10825. border: 1px solid var(--themeColor);
  10826. border-radius: 5px;
  10827. }
  10828. }
  10829. .ORtitle {
  10830. width: 100%;
  10831. padding-bottom: 20px;
  10832. box-sizing: border-box;
  10833. &>div {
  10834. width: 100%;
  10835. margin: 10px 0;
  10836. font-size: 14px;
  10837. &>span {
  10838. &:nth-child(1) {
  10839. color: #868b98;
  10840. text-align: end;
  10841. width: 150px;
  10842. }
  10843. &:nth-child(2) {
  10844. color: #333333;
  10845. }
  10846. }
  10847. }
  10848. }
  10849. .Risk {
  10850. width: 100%;
  10851. height: auto;
  10852. display: flex;
  10853. flex-direction: column;
  10854. align-items: center;
  10855. font-size: 12px;
  10856. }
  10857. .dis {
  10858. display: flex;
  10859. }
  10860. .align {
  10861. align-items: center;
  10862. }
  10863. .jus {
  10864. justify-content: space-between;
  10865. }
  10866. .shangyexian {
  10867. padding-left: 100px;
  10868. }
  10869. .headertotal {
  10870. padding: 30px;
  10871. }
  10872. .my-label {
  10873. background: #e1f3d8;
  10874. }
  10875. .my-content {
  10876. background: #fde2e2;
  10877. color: aqua;
  10878. }
  10879. .el-button--mini {
  10880. padding: 5px;
  10881. }
  10882. #qqq {
  10883. background-color: #111;
  10884. width: 300px;
  10885. height: 300px;
  10886. margin: 0 auto;
  10887. position: relative;
  10888. }
  10889. #qrCode {
  10890. display: inline-block;
  10891. margin: 0 auto;
  10892. position: relative;
  10893. top: 15%;
  10894. img {
  10895. width: 200px;
  10896. height: 200px;
  10897. background-color: #fff;
  10898. padding: 6px;
  10899. }
  10900. }
  10901. .code {
  10902. box-sizing: border-box;
  10903. display: flex;
  10904. flex-direction: column;
  10905. justify-content: space-between;
  10906. align-items: center;
  10907. &>span {
  10908. margin-bottom: 10px;
  10909. }
  10910. }
  10911. .code_name {
  10912. width: 350px;
  10913. display: flex;
  10914. justify-content: space-between;
  10915. align-items: center;
  10916. font-weight: bold;
  10917. &>span {
  10918. &:nth-child(1) {
  10919. color: #979797;
  10920. width: 120px;
  10921. text-align: right;
  10922. }
  10923. &:nth-child(2) {
  10924. color: #2d2d2d;
  10925. width: 120px;
  10926. text-align: left;
  10927. }
  10928. }
  10929. }
  10930. .header {
  10931. font-size: 18px;
  10932. font-weight: bold;
  10933. }
  10934. .body {
  10935. border-top: none;
  10936. padding-bottom: 100px;
  10937. box-sizing: border-box;
  10938. }
  10939. .u-f-ac {
  10940. -webkit-box-align: center;
  10941. align-items: center;
  10942. padding: 10px;
  10943. }
  10944. .bodyTitle {
  10945. height: 45px;
  10946. background: #f3f3f3;
  10947. border: 1px solid #dddddd;
  10948. line-height: 45px;
  10949. padding: 0 20px;
  10950. box-sizing: border-box;
  10951. }
  10952. .start {
  10953. justify-content: flex-start;
  10954. }
  10955. .end {
  10956. justify-content: flex-end;
  10957. }
  10958. .descriptions {
  10959. padding: 20px;
  10960. box-sizing: border-box;
  10961. display: flex;
  10962. flex-direction: column;
  10963. }
  10964. .bodys {
  10965. display: flex;
  10966. justify-content: space-between;
  10967. align-items: center;
  10968. flex-wrap: wrap;
  10969. }
  10970. .bodys1 {
  10971. display: flex;
  10972. justify-content: center;
  10973. align-items: center;
  10974. flex-wrap: wrap;
  10975. }
  10976. .widths {
  10977. width: 230px;
  10978. }
  10979. .widths1 {
  10980. width: 300px;
  10981. }
  10982. .back {
  10983. color: #333333;
  10984. // font-weight: 700;
  10985. }
  10986. .home {
  10987. // padding-left: 10px;
  10988. box-sizing: border-box;
  10989. padding-bottom: 10px;
  10990. border-bottom: 1px solid #eef1f6;
  10991. &>span {
  10992. margin-right: 10px;
  10993. }
  10994. }
  10995. .hovers {
  10996. margin: 10px 0;
  10997. cursor: pointer;
  10998. padding: 10px 0;
  10999. box-sizing: border-box;
  11000. border-bottom: 1px solid #f2f2f2;
  11001. .offer-time {
  11002. margin: 20px 0 0px 100px;
  11003. padding: 10px;
  11004. background: rgba(45, 77, 137, 0.06);
  11005. &>span {
  11006. margin: 0 10px;
  11007. }
  11008. }
  11009. }
  11010. /* 内容待定 */
  11011. .coll {
  11012. font-size: 14px;
  11013. }
  11014. .display {
  11015. display: flex;
  11016. justify-content: center;
  11017. align-items: center;
  11018. box-sizing: border-box;
  11019. }
  11020. .black {
  11021. color: #000;
  11022. }
  11023. .gray {
  11024. color: #999;
  11025. }
  11026. .OCR {
  11027. font-weight: bold;
  11028. color: #333;
  11029. margin: 20px;
  11030. }
  11031. .slot {
  11032. position: absolute;
  11033. width: 100%;
  11034. height: 100%;
  11035. left: 0;
  11036. top: 0;
  11037. cursor: default;
  11038. text-align: center;
  11039. color: #fff;
  11040. opacity: 0;
  11041. font-size: 20px;
  11042. background-color: rgba(0, 0, 0, 0.5);
  11043. transition: opacity 0.3s;
  11044. display: flex;
  11045. justify-content: center;
  11046. align-items: center;
  11047. &>i {
  11048. margin: 10px;
  11049. color: #fff;
  11050. font-size: 30px;
  11051. font-weight: bold;
  11052. cursor: pointer;
  11053. }
  11054. &:hover {
  11055. opacity: 1;
  11056. }
  11057. }
  11058. .companyhead {
  11059. width: 100%;
  11060. margin: 0 auto;
  11061. padding: 15px 10px;
  11062. color: #333;
  11063. font-weight: bold;
  11064. font-size: 14px;
  11065. background-color: #f7f7f9;
  11066. }
  11067. .position-left {
  11068. width: calc(100% - 220px);
  11069. }
  11070. .position-collapse-left {
  11071. width: calc(100% - 80px);
  11072. }
  11073. .footer {
  11074. position: fixed;
  11075. bottom: 0;
  11076. right: 0;
  11077. background-color: #fff;
  11078. z-index: 9;
  11079. padding: 20px;
  11080. box-sizing: border-box;
  11081. box-shadow: 0 0 1px 0 #ccc;
  11082. transition: all 0.1s, box-shadow 0.5s;
  11083. &.shadow {
  11084. box-shadow: 0 -10px 10px -10px #ccc;
  11085. }
  11086. }
  11087. .Enclosure {
  11088. width: 100%;
  11089. background-color: #fff;
  11090. padding: 20px;
  11091. box-sizing: border-box;
  11092. margin-bottom: 15px;
  11093. border-radius: 6px;
  11094. border: 1px solid #ebeef5;
  11095. transition: all 0.2s ease-in-out;
  11096. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  11097. }
  11098. .icon-img {
  11099. display: block;
  11100. width: 30px;
  11101. height: 30px;
  11102. }
  11103. .Anchor-link {
  11104. width: 40px;
  11105. background-color: #fff;
  11106. box-shadow: #ccc 0 0px 3px 0;
  11107. border-radius: 6px;
  11108. position: fixed;
  11109. top: 50%;
  11110. right: 0;
  11111. z-index: 99;
  11112. div {
  11113. margin: 5px;
  11114. border-bottom: 1px solid #f2f2f2;
  11115. cursor: pointer;
  11116. display: block;
  11117. }
  11118. }
  11119. .color {
  11120. padding-top: 150px;
  11121. margin-top: -150px;
  11122. }
  11123. .more {
  11124. width: 100%;
  11125. padding: 20px;
  11126. box-sizing: border-box;
  11127. }
  11128. .more-title {
  11129. padding: 15px 10px;
  11130. background-color: #f7f7f9;
  11131. // border-bottom: 1px solid #e3e3e3;
  11132. font-size: 14px;
  11133. }
  11134. .more-data {
  11135. padding: 10px;
  11136. border-bottom: 1px solid #f2f2f2;
  11137. color: #d42426;
  11138. font-size: 14px;
  11139. }
  11140. .Driving-risk {
  11141. padding-left: 100px;
  11142. // padding-top:20px
  11143. }
  11144. .checkbox {
  11145. transform: scale(1.2);
  11146. margin-right: 20px;
  11147. line-height: 32px;
  11148. }
  11149. .insure-long-term {
  11150. display: inline-flex;
  11151. padding-left: 8px;
  11152. padding-right: 8px;
  11153. background: var(--themeColor);
  11154. color: #fff;
  11155. font-size: 12px;
  11156. margin-left: -5px;
  11157. border-radius: 0px 5px 5px 0px;
  11158. cursor: pointer;
  11159. }
  11160. .textareaSty {
  11161. width: 160px;
  11162. height: 210px;
  11163. border: 1px solid #d2d2d2;
  11164. border-radius: 4px;
  11165. img {
  11166. width: 50px;
  11167. height: 50px;
  11168. }
  11169. }
  11170. .image-title {
  11171. width: 100px;
  11172. height: 30px;
  11173. color: #fff;
  11174. text-align: center;
  11175. line-height: 30px;
  11176. font-weight: bold;
  11177. margin-bottom: 15px;
  11178. background: #fc4a1a;
  11179. background: #f2994a;
  11180. /* fallback for old browsers */
  11181. background: -webkit-linear-gradient(to left, #f2c94c, #f2994a);
  11182. /* Chrome 10-25, Safari 5.1-6 */
  11183. background: linear-gradient(to left, #f2c94c, #f2994a);
  11184. /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  11185. }
  11186. .aaa {
  11187. /deep/ {
  11188. margin-bottom: 20px;
  11189. margin-right: 30px;
  11190. span {
  11191. display: inline-block;
  11192. margin-bottom: 10px;
  11193. }
  11194. .el-upload .el-upload-dragger {
  11195. width: 180px;
  11196. height: 120px;
  11197. border: 1px dashed #c0ccda;
  11198. padding: 0;
  11199. }
  11200. .el-upload-list--picture-card .el-upload-list__item {
  11201. width: 180px;
  11202. height: 120px;
  11203. }
  11204. .el-upload-list__item:first-child {
  11205. margin-top: 0;
  11206. }
  11207. .el-upload--picture-card {
  11208. width: 180px;
  11209. height: 120px;
  11210. }
  11211. .el-upload-list__item {
  11212. width: 180px;
  11213. height: 120px;
  11214. margin: 0 !important;
  11215. display: block !important;
  11216. }
  11217. .el-upload-list--picture-card .el-upload-list__item-thumbnail {
  11218. width: 180px;
  11219. height: 120px;
  11220. }
  11221. }
  11222. }
  11223. .jyxStyle>span {
  11224. display: inline-block;
  11225. text-align: center;
  11226. }
  11227. .tab-style {
  11228. width: 120px;
  11229. li {
  11230. text-align: right;
  11231. padding-right: 20px;
  11232. line-height: 40px;
  11233. cursor: pointer;
  11234. box-sizing: border-box;
  11235. border-right: 1px solid #e2e5eb;
  11236. }
  11237. li:focus {
  11238. background: rgba(212, 36, 38, 0.1);
  11239. border-right: 2px solid var(--themeColor);
  11240. color: var(--themeColor);
  11241. }
  11242. }
  11243. .tabLi-style {
  11244. background: rgba(212, 36, 38, 0.1);
  11245. border-right: 2px solid var(--themeColor);
  11246. color: var(--themeColor);
  11247. }
  11248. .scan-code {
  11249. div {
  11250. margin-top: 10px;
  11251. }
  11252. }
  11253. /* 清除图片上传动画bug */
  11254. /deep/ {
  11255. .proSaomazhifucodeClass .el-dialog__header {
  11256. background: rgba(45, 77, 137, 0.1);
  11257. font-weight: bold;
  11258. }
  11259. .proSaomazhifucodeClass .el-dialog__footer {
  11260. border-top: 1px solid #eef1f6;
  11261. }
  11262. .el-upload-list__item {
  11263. transition: none !important;
  11264. }
  11265. .el-checkbox__input {
  11266. &.is-checked {
  11267. .el-checkbox__inner {
  11268. background-color: #d42426;
  11269. border-color: #d42426;
  11270. }
  11271. }
  11272. }
  11273. .el-checkbox__inner {
  11274. border: 1px solid var(--themeColor);
  11275. &:hover {
  11276. border-color: var(--themeColorHover);
  11277. }
  11278. &:focus {
  11279. border-color: var(--themeColor);
  11280. }
  11281. }
  11282. .el-upload .el-upload-dragger {
  11283. height: 250px;
  11284. width: 400px;
  11285. border: 1px dashed #ced4da;
  11286. }
  11287. // .el-button--warning {
  11288. // color: #fff;
  11289. // background-color: #D42426;
  11290. // border-color: #D42426;
  11291. // &:hover {
  11292. // color: #fff;
  11293. // background-color: #ee6f00ce;
  11294. // border-color: #ee6f00ce;
  11295. // }
  11296. // }
  11297. .el-descriptions-item__label {
  11298. &:not(.is-bordered-label) {
  11299. color: #333;
  11300. }
  11301. }
  11302. // .el-radio__input.is-checked + .el-radio__label {
  11303. // color: #ff7000;
  11304. // }
  11305. // .el-radio__input.is-checked .el-radio__inner {
  11306. // border-color: #ff7000;
  11307. // background: #ff7000;
  11308. // }
  11309. // .el-radio__inner {
  11310. // &:hover {
  11311. // border-color: #ff7000;
  11312. // }
  11313. // }
  11314. // .el-input--small .el-icon-date {
  11315. // color: #ee6f00ce;
  11316. // }
  11317. .el-select {
  11318. width: 100%;
  11319. }
  11320. .el-date-editor.el-input {
  11321. width: 100%;
  11322. }
  11323. .el-cascader--small {
  11324. width: 100%;
  11325. }
  11326. .styleB {
  11327. height: 128px;
  11328. }
  11329. .styleB .el-upload--picture-card {
  11330. display: none;
  11331. }
  11332. .saomazhifucodeClass .el-dialog__body,
  11333. .saomazhifucodeClass .el-dialog__header,
  11334. .saomazhifucodeClass .el-dialog__footer {
  11335. padding: 0;
  11336. background: #f4e9e9;
  11337. }
  11338. .saomazhifucodeClass .el-dialog__body {
  11339. padding: 15px;
  11340. }
  11341. .saomazhifucodeClass .el-dialog__footer {
  11342. background: #f4e9e9;
  11343. padding-bottom: 15px;
  11344. }
  11345. .saomazhifucodeClass .el-dialog__headerbtn {
  11346. margin-top: 10px;
  11347. }
  11348. .zmDriving {
  11349. thead .el-table-column--selection .cell {
  11350. display: none !important;
  11351. }
  11352. }
  11353. .synchronous {
  11354. width: 75px;
  11355. height: 45px;
  11356. line-height: 45px;
  11357. color: #fff;
  11358. cursor: pointer;
  11359. background: url(../../../../src/icon/Union2.png) no-repeat 100%;
  11360. }
  11361. .synchronous:hover {
  11362. background: url(../../../../src/icon/Union1.png) no-repeat 100%;
  11363. }
  11364. .line_style {
  11365. margin-top: 20px;
  11366. }
  11367. .el-input-group__append {
  11368. vertical-align: baseline;
  11369. }
  11370. .pinganTable .el-table__header-wrapper .el-checkbox {
  11371. display: none;
  11372. }
  11373. }
  11374. </style>