KtLetter.vue 342 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967
  1. <template>
  2. <div class="body">
  3. <div class="Enclosure flex f-c back" v-if="isLetter">
  4. <div class="home flex j-s a-c">
  5. <div class="flex j-s a-c">
  6. <img src="../../../../src/icon/归属信息.png" alt class="icon-img" />
  7. <span style="margin-left:10px;">归属信息</span>
  8. </div>
  9. </div>
  10. <el-form class="demo-ruleForm" :model="userform" ref="userform" label-width="130px" size="small"
  11. style="margin-top: 15px" disabled label-position="top">
  12. <el-row type="flex" justify="space-between">
  13. <el-col :span="5">
  14. <el-form-item label="业务员">
  15. <el-input v-model="userform.name"></el-input>
  16. </el-form-item>
  17. </el-col>
  18. <el-col :span="5">
  19. <el-form-item label="工号">
  20. <el-input v-model="userform.id" type="text"></el-input>
  21. </el-form-item>
  22. </el-col>
  23. <el-col :span="5">
  24. <el-form-item label="工号类型">
  25. <el-select v-model="userform.usertype">
  26. <el-option label="业务员" value="A"></el-option>
  27. <el-option label="代理人" value="B"></el-option>
  28. </el-select>
  29. </el-form-item>
  30. </el-col>
  31. <el-col :span="5">
  32. <el-form-item label="归属">
  33. <el-input v-model="deptName"></el-input>
  34. </el-form-item>
  35. </el-col>
  36. </el-row>
  37. </el-form>
  38. </div>
  39. <div class="Enclosure flex f-c back" v-if="isLetter">
  40. <div class="home flex j-s a-c">
  41. <div class="flex j-s a-c">
  42. <img src="../../../../src/icon/快速查询.png" alt class="icon-img" />
  43. <span style="margin-left: 10px">快速查询</span>
  44. </div>
  45. <el-button size="small" type="primary" @click="continuousquery()">
  46. <i class="el-icon-search" style="margin-right: 1px"></i>
  47. 续保查询
  48. </el-button>
  49. </div>
  50. <el-form class="demo-ruleForm" :model="attributionform" ref="continuousform" label-width="130px" size="small"
  51. style="margin-top: 15px" label-position="top">
  52. <el-row>
  53. <el-col :span="5">
  54. <el-form-item label="保险公司" prop="companyId">
  55. <el-select v-model="attributionform.companyId" placeholder="请选择保险公司" @change="continuousChange">
  56. <el-option v-for="(item, index) in continuousCompanyList" :key="index" :label="item.namesimple"
  57. :value="item.id"></el-option>
  58. </el-select>
  59. </el-form-item>
  60. </el-col>
  61. <el-col :span="5" :offset="1" v-for="(domain, index) in attributionform.configure" :key="domain.index">
  62. <el-form-item :label="domain.label" :prop="'configure.' + index + '.value'" :rules="{
  63. required: true,
  64. message: domain.label + '不能为空',
  65. trigger: 'blur',
  66. }">
  67. <el-input v-model="domain.value" :type="domain.type"></el-input>
  68. </el-form-item>
  69. </el-col>
  70. </el-row>
  71. </el-form>
  72. </div>
  73. <div class="Enclosure flex f-c back">
  74. <div class="home flex j-s a-c">
  75. <div class="flex j-s a-c color" id="Car">
  76. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" />
  77. <span style="margin-left:10px;">车辆信息</span>
  78. </div>
  79. <el-button size="small" type="primary" @click="uploadcardialogVisible = true">
  80. <i class="el-icon-camera-solid" style="margin-right:1px;"></i>
  81. 证件识别
  82. </el-button>
  83. </div>
  84. <el-form class="demo-ruleForm" :model="carInfo" ref="carInfo" :rules="rules" label-width="130px" size="small"
  85. label-position="top" style="margin-top: 15px">
  86. <el-row style="flex-wrap: wrap; display: flex;">
  87. <el-col :span="5">
  88. <el-form-item label="车牌" :prop="licenseplate ? 'licenseNo' : ''">
  89. <div style="display: flex;">
  90. <el-input style="width: 75%;margin-right:13px" v-model="carInfo.licenseNo" placeholder="请输入车牌号"
  91. :disabled="!licenseplate"></el-input>
  92. <el-checkbox v-model="licenseplate">已上牌</el-checkbox>
  93. </div>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="5" :offset="1">
  97. <el-form-item label="车辆识别代码" prop="frameNo">
  98. <el-input placeholder="请输入车辆识别码" v-model="carInfo.frameNo" maxlength="17" type="text" show-word-limit>
  99. <el-button slot="append" type="primary" icon="el-icon-search" @click="toChooseVin(carInfo.frameNo)"
  100. style="color: #fff;background-color:#D42426;border-color:#D42426;"></el-button>
  101. </el-input>
  102. </el-form-item>
  103. </el-col>
  104. <el-col :span="5" :offset="1">
  105. <el-form-item label="品牌型号" prop="modelcname">
  106. <el-input v-model="carInfo.modelcname" placeholder="请输入品牌型号" type="text">
  107. <el-button slot="append" icon="el-icon-search" type="primary"
  108. @click="toChooseVehicleType(carInfo.modelcname)"
  109. style="color: #fff;background-color:#D42426;border-color:#D42426;border-top:none"></el-button>
  110. </el-input>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :span="5" :offset="1">
  114. <el-form-item label="发动机号" prop="engineNo">
  115. <el-input v-model="carInfo.engineNo" placeholder="请输入发动机号"></el-input>
  116. </el-form-item>
  117. </el-col>
  118. <el-col :span="5">
  119. <el-form-item label="年款" prop="caryear">
  120. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.caryear" placeholder="请输入年款"></el-input>
  121. </el-form-item>
  122. </el-col>
  123. <el-col :span="5" :offset="1">
  124. <el-form-item label="座位数" prop="seatCount">
  125. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.seatCount" placeholder="请输入座位数">
  126. <el-button slot="append">座</el-button>
  127. </el-input>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="5" :offset="1">
  131. <el-form-item label="整备质量" prop="completeKerbMass">
  132. <el-input v-model="carInfo.completeKerbMass" placeholder="请输入整备质量">
  133. <el-button slot="append">千克(KG)</el-button>
  134. </el-input>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :span="5" :offset="1">
  138. <el-form-item label="核定载质量" prop="limitLoad">
  139. <el-input v-model="carInfo.limitLoad" placeholder="请输入核定载质量">
  140. <el-button slot="append">千克(KG)</el-button>
  141. </el-input>
  142. </el-form-item>
  143. </el-col>
  144. <el-col :span="5">
  145. <el-form-item label="排量" prop="enginedesc">
  146. <el-input v-model="carInfo.enginedesc" placeholder="请输入排量">
  147. <el-button slot="append">升(L)</el-button>
  148. </el-input>
  149. </el-form-item>
  150. </el-col>
  151. <el-col :span="5" :offset="1">
  152. <el-form-item label="功率" prop="powerScale">
  153. <el-input v-model="carInfo.powerScale" placeholder="请输入功率">
  154. <el-button slot="append">千瓦(KW)</el-button>
  155. </el-input>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="5" :offset="1">
  159. <el-form-item label="新车购置价" prop="purchasePrice">
  160. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.purchasePrice" placeholder="请输入新车购置价">
  161. <el-button slot="append">元</el-button>
  162. </el-input>
  163. </el-form-item>
  164. </el-col>
  165. <el-col :span="5" :offset="1">
  166. <el-form-item label="使用性质" prop="carnature">
  167. <el-select v-model="carInfo.carnature" placeholder="请选择使用性质" @change="natureFun">
  168. <el-option :label="item.dictTag" :value="item.dictValue"
  169. v-for="(item, index) in natureOfVehicleUseoptions" :key="index"></el-option>
  170. </el-select>
  171. </el-form-item>
  172. </el-col>
  173. <el-col :span="5">
  174. <el-form-item label="车辆用途" prop="vehicleUse">
  175. <el-select v-if="carInfo.carnature == '02'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途">
  176. <el-option :label="item.dictTag" :value="item.dictValue"
  177. v-for="(item, index) in outOfBusinessVehicleUseoptions" :key="index"></el-option>
  178. </el-select>
  179. <el-select v-if="carInfo.carnature == '01'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途">
  180. <el-option :label="item.dictTag" :value="item.dictValue"
  181. v-for="(item, index) in businessVehicleUseoptions" :key="index"></el-option>
  182. </el-select>
  183. </el-form-item>
  184. </el-col>
  185. <el-col :span="5" :offset="1">
  186. <el-form-item label="车辆类型" prop="cartype">
  187. <el-select v-model="carInfo.cartype" placeholder="请选择车辆种类" filterable clearable>
  188. <el-option :label="item.dictValue + item.dictTag" :value="item.dictValue"
  189. v-for="(item, index) in trafficManagementVehicleTypeoptions" :key="index"></el-option>
  190. </el-select>
  191. </el-form-item>
  192. </el-col>
  193. <el-col :span="5" :offset="1">
  194. <el-form-item label="车辆种类" prop="cimodelclass">
  195. <el-select v-model="carInfo.cimodelclass" placeholder="请选择车辆种类" clearable>
  196. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in vehicleTypeoptions"
  197. :key="index"></el-option>
  198. </el-select>
  199. </el-form-item>
  200. </el-col>
  201. <el-col :span="5" :offset="1">
  202. <el-form-item label="能源种类" prop="energyType">
  203. <el-select v-model="carInfo.energyType" placeholder="请选择能源种类">
  204. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in energyTypeoptions"
  205. :key="index"></el-option>
  206. </el-select>
  207. </el-form-item>
  208. </el-col>
  209. <el-col :span="5">
  210. <el-form-item label="注册日期" prop="registerDate">
  211. <el-date-picker v-dateFormat v-model="carInfo.registerDate" :picker-options="pickerOptions"
  212. value-format="yyyy-MM-dd" type="date" placeholder="选择注册日期" placement="bottom-start"></el-date-picker>
  213. </el-form-item>
  214. </el-col>
  215. <el-col :span="5" :offset="1">
  216. <el-form-item label="发证日期" prop="issueDate">
  217. <el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
  218. placeholder="选择发证日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  219. </el-form-item>
  220. </el-col>
  221. <el-col :span="5" :offset="1" v-if="transferDateShow">
  222. <el-form-item label="转移登记日期" prop="transferDate">
  223. <el-date-picker v-dateFormat v-model="carInfo.transferDate" :picker-options="pickerOptions" type="date"
  224. placeholder="选择日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  225. </el-form-item>
  226. </el-col>
  227. </el-row>
  228. </el-form>
  229. </div>
  230. <div class="Enclosure flex f-c back">
  231. <div class="home flex j-s a-c">
  232. <div class="flex j-s a-c color" id="CheZhu">
  233. <img src="../../../../src/icon/车主信息.png" alt class="icon-img" />
  234. <span style="margin-left:10px;">车主信息</span>
  235. </div>
  236. <el-button size="small" type="primary" @click="uploaduser(2)">
  237. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>证件识别
  238. </el-button>
  239. </div>
  240. <el-form class="demo-ruleForm" :model="ownerInfo" ref="ownerInfo" :rules="rules" label-width="130px" size="small"
  241. style="margin-top: 15px" label-position="top">
  242. <el-row style="flex-wrap: wrap; display: flex;">
  243. <el-col :span="5">
  244. <el-form-item label="车主姓名" prop="name">
  245. <el-input v-model="ownerInfo.name" placeholder="请输入车主姓名"></el-input>
  246. </el-form-item>
  247. </el-col>
  248. <el-col :span="5" :offset="1">
  249. <el-form-item label="证件类型" prop="identifyType">
  250. <el-select v-model="ownerInfo.identifyType" placeholder="身份证" disabled>
  251. <el-option label="身份证" value="01"></el-option>
  252. </el-select>
  253. </el-form-item>
  254. </el-col>
  255. <el-col :span="5" :offset="1">
  256. <el-form-item label="证件号码" prop="identifyNumber">
  257. <el-input v-model="ownerInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  258. show-word-limit @blur="identifyblur('ownerInfo')"></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="5" :offset="1">
  262. <el-form-item label="年龄" prop="age">
  263. <el-input v-model="ownerInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  264. </el-form-item>
  265. </el-col>
  266. <el-col :span="5">
  267. <el-form-item label="性别" prop="gender">
  268. <el-select @change="genderChange" v-model="ownerInfo.gender" placeholder="请选择性别">
  269. <el-option label="男" value="男"></el-option>
  270. <el-option label="女" value="女"></el-option>
  271. </el-select>
  272. </el-form-item>
  273. </el-col>
  274. <el-col :span="5" :offset="1">
  275. <el-form-item label="车主手机号" prop="mobile">
  276. <el-input v-model="ownerInfo.mobile" placeholder="请输入车主手机号" type="text" maxlength="11"
  277. @paste.native="handlePaste($event, 'ownerInfo')" show-word-limit></el-input>
  278. </el-form-item>
  279. </el-col>
  280. <el-col :span="5" :offset="1">
  281. <el-form-item label="地址" prop="addr">
  282. <el-input v-model="ownerInfo.addr" placeholder="请输入地址" type="text"></el-input>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :span="5" :offset="1">
  286. <el-form-item label="有效期起期" prop="identifyValidDate">
  287. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidDate" value-format="yyyy-MM-dd"
  288. :picker-options="pickerOptions" type="date" placeholder="选择注册日期"
  289. placement="bottom-start"></el-date-picker>
  290. </el-form-item>
  291. </el-col>
  292. <el-col :span="5">
  293. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  294. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidEndDate" type="date" value-format="yyyy-MM-dd"
  295. placeholder="选择有效期" placement="bottom-start" style="width: calc(100% - 40px);"></el-date-picker>
  296. <div class="insure-long-term" @click="insureLongterm('ownerInfo')">长期</div>
  297. </el-form-item>
  298. </el-col>
  299. <el-col :span="5" :offset="1">
  300. <el-form-item label="电子邮箱" prop="email">
  301. <el-input v-model="ownerInfo.email" placeholder="请输入电子邮箱"></el-input>
  302. </el-form-item>
  303. </el-col>
  304. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="iscCrownerShow">
  305. <el-form-item label="省市区:">
  306. <el-cascader v-model="ownerInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  307. </el-form-item>
  308. </el-col>-->
  309. </el-row>
  310. </el-form>
  311. </div>
  312. <div class="Enclosure flex f-c back">
  313. <div class="home flex j-s a-c">
  314. <div class="flex j-s a-c">
  315. <img src="../../../../src/icon/投保人信息.png" alt class="icon-img" />
  316. <span style="margin-left:10px;">投保人信息</span>
  317. </div>
  318. <div class="flex a-c j-c">
  319. <div style="font-size:12px;margin:0 10px;">
  320. 同车主
  321. <el-switch v-model="tbczcarShow" active-color="#D42426" @change="tbczcarShowChange()"></el-switch>
  322. </div>
  323. <el-button size="small" type="primary" @click="uploaduser(3)">
  324. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  325. 证件识别
  326. </el-button>
  327. </div>
  328. </div>
  329. <el-form v-show="!tbczcarShow" class="demo-ruleForm" :model="policyHolderInfo" ref="policyHolderInfo" :rules="rules"
  330. label-width="130px" size="small " style="margin-top: 15px" label-position="top">
  331. <el-row style="flex-wrap: wrap; display: flex;">
  332. <el-col :span="5">
  333. <el-form-item label="投保人姓名" prop="name">
  334. <el-input v-model="policyHolderInfo.name" placeholder="请输入投保人姓名"></el-input>
  335. </el-form-item>
  336. </el-col>
  337. <el-col :span="5" :offset="1">
  338. <el-form-item label="证件类型" prop="identifyType">
  339. <el-select v-model="policyHolderInfo.identifyType" placeholder="身份证" disabled>
  340. <el-option label="身份证" value="01"></el-option>
  341. </el-select>
  342. </el-form-item>
  343. </el-col>
  344. <el-col :span="5" :offset="1">
  345. <el-form-item label="证件号码" prop="identifyNumber">
  346. <el-input v-model="policyHolderInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  347. show-word-limit @blur="identifyblur('policyHolderInfo')"></el-input>
  348. </el-form-item>
  349. </el-col>
  350. <el-col :span="5" :offset="1">
  351. <el-form-item label="年龄" prop="age">
  352. <el-input v-model="policyHolderInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  353. </el-form-item>
  354. </el-col>
  355. <el-col :span="5">
  356. <el-form-item label="性别" prop="gender">
  357. <el-select v-model="policyHolderInfo.gender" placeholder="请选择性别">
  358. <el-option label="男" value="男"></el-option>
  359. <el-option label="女" value="女"></el-option>
  360. </el-select>
  361. </el-form-item>
  362. </el-col>
  363. <el-col :span="5" :offset="1">
  364. <el-form-item label="投保人手机号" prop="mobile">
  365. <el-input v-model="policyHolderInfo.mobile" placeholder="请输入投保人手机号" maxlength="11" type="text"
  366. @paste.native="handlePaste($event, 'policyHolderInfo')" show-word-limit></el-input>
  367. </el-form-item>
  368. </el-col>
  369. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  370. <el-form-item label="省市区:">
  371. <el-cascader v-model="selectedOptions2" :options="areaOptions"
  372. @change="event => areahandleChange(event, 'policyHolderInfo')"></el-cascader>
  373. </el-form-item>
  374. </el-col>-->
  375. <el-col :span="5" :offset="1">
  376. <el-form-item label="地址" prop="addr">
  377. <el-input v-model="policyHolderInfo.addr" placeholder="请输入地址" type="text"></el-input>
  378. </el-form-item>
  379. </el-col>
  380. <el-col :span="5" :offset="1">
  381. <el-form-item label="有效期起期" prop="identifyValidDate">
  382. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidDate" value-format="yyyy-MM-dd"
  383. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  384. </el-form-item>
  385. </el-col>
  386. <el-col :span="5">
  387. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  388. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidEndDate" type="date"
  389. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  390. style="width: calc(100% - 40px);"></el-date-picker>
  391. <div class="insure-long-term" @click="insureLongterm('policyHolderInfo')">长期</div>
  392. </el-form-item>
  393. </el-col>
  394. <el-col :span="5" :offset="1">
  395. <el-form-item label="电子邮箱" prop="email">
  396. <el-input v-model="policyHolderInfo.email" placeholder="请输入电子邮箱"></el-input>
  397. </el-form-item>
  398. </el-col>
  399. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isApplicantShow">
  400. <el-form-item label="省市区:">
  401. <el-cascader v-model="policyHolderInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  402. </el-form-item>
  403. </el-col>-->
  404. </el-row>
  405. </el-form>
  406. </div>
  407. <div class="Enclosure flex f-c back">
  408. <div class="home flex j-s a-c">
  409. <div class="flex j-s a-c">
  410. <img src="../../../../src/icon/被投保人信息.png" alt class="icon-img" />
  411. <span style="margin-left:10px;">被保人信息</span>
  412. </div>
  413. <div class="flex j-s a-c">
  414. <div style="font-size:12px;margin:0 10px;">
  415. 同投保人
  416. <el-switch v-model="bbtbcarShow" active-color="#D42426" @change="bbtbcarShowChange()"></el-switch>
  417. </div>
  418. <div style="font-size:12px;margin:0 10px;">
  419. 同车主
  420. <el-switch v-model="bbczcarShow" active-color="#D42426" @change="bbczcarShowChange()"></el-switch>
  421. </div>
  422. <el-button size="small" type="primary" @click="uploaduser(4)">
  423. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  424. 证件识别
  425. </el-button>
  426. </div>
  427. </div>
  428. <el-form v-show="!bbtbcarShow && !bbczcarShow" class="demo-ruleForm" :model="insuredPersonInfo"
  429. ref="insuredPersonInfo" :rules="rules" label-width="130px" size="small" style="margin-top: 15px"
  430. label-position="top">
  431. <el-row style="flex-wrap: wrap; display: flex;">
  432. <el-col :span="5">
  433. <el-form-item label="被保人姓名" prop="name">
  434. <el-input v-model="insuredPersonInfo.name" placeholder="请输入被保人姓名"></el-input>
  435. </el-form-item>
  436. </el-col>
  437. <el-col :span="5" :offset="1">
  438. <el-form-item label="证件类型" prop="identifyType">
  439. <el-select v-model="insuredPersonInfo.identifyType" placeholder="身份证" disabled>
  440. <el-option label="身份证" value="01"></el-option>
  441. </el-select>
  442. </el-form-item>
  443. </el-col>
  444. <el-col :span="5" :offset="1">
  445. <el-form-item label="证件号码" prop="identifyNumber">
  446. <el-input v-model="insuredPersonInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  447. show-word-limit @blur="identifyblur('insuredPersonInfo')"></el-input>
  448. </el-form-item>
  449. </el-col>
  450. <el-col :span="5" :offset="1">
  451. <el-form-item label="年龄" prop="age">
  452. <el-input v-model="insuredPersonInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  453. </el-form-item>
  454. </el-col>
  455. <el-col :span="5">
  456. <el-form-item label="性别" prop="gender">
  457. <el-select v-model="insuredPersonInfo.gender" placeholder="请选择性别">
  458. <el-option label="男" value="男"></el-option>
  459. <el-option label="女" value="女"></el-option>
  460. </el-select>
  461. </el-form-item>
  462. </el-col>
  463. <el-col :span="5" :offset="1">
  464. <el-form-item label="被保人手机号" prop="mobile">
  465. <el-input v-model="insuredPersonInfo.mobile" placeholder="请输入被保人手机号" maxlength="11" type="text"
  466. @paste.native="handlePaste($event, 'insuredPersonInfo')" show-word-limit></el-input>
  467. </el-form-item>
  468. </el-col>
  469. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  470. <el-form-item label="省市区:">
  471. <el-cascader v-model="selectedOptions3" :options="areaOptions"
  472. @change="event => areahandleChange(event, 'insuredPersonInfo')"></el-cascader>
  473. </el-form-item>
  474. </el-col>-->
  475. <el-col :span="5" :offset="1">
  476. <el-form-item label="地址" prop="addr">
  477. <el-input v-model="insuredPersonInfo.addr" placeholder="请输入地址" type="text"></el-input>
  478. </el-form-item>
  479. </el-col>
  480. <el-col :span="5" :offset="1">
  481. <el-form-item label="有效期起期" prop="identifyValidDate">
  482. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidDate" value-format="yyyy-MM-dd"
  483. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  484. </el-form-item>
  485. </el-col>
  486. <el-col :span="5">
  487. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  488. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidEndDate" type="date"
  489. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  490. style="width: calc(100% - 40px);"></el-date-picker>
  491. <div class="insure-long-term" @click="insureLongterm('insuredPersonInfo')">长期</div>
  492. </el-form-item>
  493. </el-col>
  494. <el-col :span="5" :offset="1">
  495. <el-form-item label="电子邮箱" prop="email">
  496. <el-input v-model="insuredPersonInfo.email" placeholder="请输入电子邮箱"></el-input>
  497. </el-form-item>
  498. </el-col>
  499. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isInsuredShow">
  500. <el-form-item label="省市区:">
  501. <el-cascader v-model="insuredPersonInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  502. </el-form-item>
  503. </el-col>-->
  504. </el-row>
  505. </el-form>
  506. </div>
  507. <div class="Enclosure flex f-c back">
  508. <div class="home flex j-s a-c">
  509. <div class="flex j-s a-c color" id="insurance">
  510. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" />
  511. <span style="margin-left:10px;">投保信息</span>
  512. <el-switch style="margin:0 10px 0 30px;" @change="immediatelyChange" v-model="immediatelyValue"
  513. active-color="#D42426"></el-switch>
  514. <span style="font-weight:normal;font-size: 13px;">即时投保</span>
  515. </div>
  516. </div>
  517. <el-form class="back demo-ruleForm" :inline="true" :model="Carinsurance" label-width="150px" size="small"
  518. style="margin-top: 15px" label-position="top">
  519. <div class="flex j-start a-c">
  520. <div class="flex j-c a-start">
  521. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="jqchecked"
  522. @change="jqcheckedChange"></el-checkbox>
  523. <div class="flex f-c a-c">
  524. <el-form-item label="交强险起保日期" prop="identifyNumber">
  525. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqstartDate" @change="jqChange"
  526. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  527. </el-form-item>
  528. <el-form-item label="交强险终保日期" prop="identifyNumber">
  529. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqendDate" type="datetime"
  530. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  531. </el-form-item>
  532. </div>
  533. </div>
  534. <div class="flex f-c a-c synchronous" style="margin: 0 50px;" @click="synchronization">
  535. <span style="font-size:12px;">同步</span>
  536. </div>
  537. <div class="flex j-c a-start">
  538. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="sychecked"
  539. @change="sycheckedChange"></el-checkbox>
  540. <div class="flex f-c a-c">
  541. <el-form-item label="商业险起保日期" prop="name">
  542. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="systartDate" @change="syChange"
  543. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  544. </el-form-item>
  545. <el-form-item label="商业险终保日期" prop="name">
  546. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="syendDate" type="datetime"
  547. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  548. </el-form-item>
  549. </div>
  550. </div>
  551. </div>
  552. </el-form>
  553. </div>
  554. <div class="Enclosure flex f-c back">
  555. <div class="home flex j-s a-c">
  556. <div class="flex j-s a-c color" id="insurance">
  557. <img src="../../../../src/icon/车船税.png" alt class="icon-img" />
  558. <span style="margin-left:10px;">车船税</span>
  559. </div>
  560. </div>
  561. <el-form class="demo-ruleForm" :model="vehicleAndVesselTaxForm" ref="vehicleAndVesselTaxForm" :rules="rules"
  562. label-width="160px" size="small" style="margin-top: 15px" label-position="top">
  563. <el-row style="flex-wrap: wrap; display: flex;">
  564. <el-col :span="5">
  565. <el-form-item label="纳税类型:" prop="taxRelifFlag">
  566. <el-select @change="taxRelifFlagChange" v-model="vehicleAndVesselTaxForm.taxRelifFlag" placeholder="纳税类型">
  567. <el-option v-for="(item, index) in taxRelifFlagoptions" :key="index" :label="item.dictTag"
  568. :value="item.dictValue"></el-option>
  569. </el-select>
  570. </el-form-item>
  571. </el-col>
  572. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  573. <el-form-item label="纳税人识别号:" prop="identifyNumber">
  574. <el-input v-model="vehicleAndVesselTaxForm.identifyNumber" placeholder="请输入纳税人识别号" type="text"></el-input>
  575. </el-form-item>
  576. </el-col>
  577. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  578. <el-form-item label="纳税人名称:" prop="taxpayerName">
  579. <el-input v-model="vehicleAndVesselTaxForm.taxpayerName" placeholder="请输入纳税人名称" type="text"></el-input>
  580. </el-form-item>
  581. </el-col>
  582. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  583. <el-form-item label="证件类型:" prop="taxpayerIdentifier">
  584. <el-select v-model="vehicleAndVesselTaxForm.taxpayerIdentifier" placeholder="证件类型" clearable>
  585. <el-option v-for="(item, index) in taxpayerIdentifieroptions" :key="index" :label="item.dictTag"
  586. :value="item.dictValue"></el-option>
  587. </el-select>
  588. </el-form-item>
  589. </el-col>
  590. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
  591. :span="5" :offset="1">
  592. <el-form-item label="减免税凭证号:" prop="extendChar2">
  593. <el-input v-model="vehicleAndVesselTaxForm.extendChar2" placeholder="请输入减免税凭证号" type="text"></el-input>
  594. </el-form-item>
  595. </el-col>
  596. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  597. <el-form-item label="完税凭证号:" prop="paidFreeCertificate">
  598. <el-input v-model="vehicleAndVesselTaxForm.paidFreeCertificate" placeholder="请输入完税凭证号"
  599. type="text"></el-input>
  600. </el-form-item>
  601. </el-col>
  602. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
  603. :span="5" :offset="1">
  604. <el-form-item label="减免税原因:" prop="relifReason">
  605. <el-select v-model="vehicleAndVesselTaxForm.relifReason" placeholder="减免税原因" clearable>
  606. <el-option v-for="(item, index) in relifReasonoptions" :key="index" :label="item.dictTag"
  607. :value="item.dictValue"></el-option>
  608. </el-select>
  609. </el-form-item>
  610. </el-col>
  611. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5" :offset="1">
  612. <el-form-item label="税务机关代码:" prop="taxComCode">
  613. <el-input v-model="vehicleAndVesselTaxForm.taxComCode" placeholder="请输入税务机关代码" type="text"></el-input>
  614. </el-form-item>
  615. </el-col>
  616. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5"
  617. :offset="vehicleAndVesselTaxForm.taxRelifFlag == 4 ? 1 : 0">
  618. <el-form-item label="税务机关名称:" prop="taxComName">
  619. <el-input v-model="vehicleAndVesselTaxForm.taxComName" placeholder="请输入税务机关名称" type="text"></el-input>
  620. </el-form-item>
  621. </el-col>
  622. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5">
  623. <el-form-item label="完税凭证填发日期:" prop="taxDocumentDate">
  624. <el-date-picker v-dateFormat v-model="vehicleAndVesselTaxForm.taxDocumentDate" value-format="yyyy-MM-dd"
  625. type="date" placeholder="完税凭证填发日期" placement="bottom-start"></el-date-picker>
  626. </el-form-item>
  627. </el-col>
  628. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  629. <el-form-item label="完税凭证地区:" prop="taxPaidAreaCode">
  630. <el-select v-model="vehicleAndVesselTaxForm.taxPaidAreaCode" placeholder="完税凭证地区" clearable>
  631. <el-option v-for="(item, index) in provinceSelect" :key="index" :label="item.name"
  632. :value="item.code"></el-option>
  633. </el-select>
  634. </el-form-item>
  635. </el-col>
  636. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 3" :span="5" :offset="1">
  637. <el-form-item label="减税比例:" prop="taxRelief">
  638. <el-input v-model="vehicleAndVesselTaxForm.taxRelief" placeholder="请输入0~1的数值" type="text"></el-input>
  639. </el-form-item>
  640. </el-col>
  641. </el-row>
  642. </el-form>
  643. </div>
  644. <div class="Enclosure flex f-c back">
  645. <div class="home flex j-s a-c back">
  646. <div class="flex j-s a-c" id="more">
  647. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" />
  648. <span style="margin-left:15px;width: 120px">险别选择</span>
  649. <el-select size="small" style="width:70%" v-model="packageValue" placeholder="请选择套餐" @change="packageChange">
  650. <el-option v-for="item in packageOptions" :key="item.id" :label="item.title" :value="item.id"></el-option>
  651. </el-select>
  652. </div>
  653. </div>
  654. <div class="flex f-c more">
  655. <div class="flex j-s a-c more-title back">
  656. <div style="width:590px;padding-left:100px;" class="flex j-s a-c">
  657. <span>险别</span>
  658. <span>保额(元)</span>
  659. </div>
  660. </div>
  661. <div class="flex a-c more-data back" v-for="(insureitem, insureindex) in insureList" :key="insureindex">
  662. <div style="width:700px;padding-left: 100px;" class="flex j-s a-c">
  663. <div style="width:auto;">
  664. <span style="text-align:center;">
  665. {{ insureitem.kindName }}
  666. <el-input
  667. v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'"
  668. v-model="sumseatCount" style="width:40px;margin:0 5px;" size="small" placeholder disabled></el-input>
  669. <span
  670. v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'">座</span>
  671. </span>
  672. </div>
  673. <el-select v-if="insureitem.amtList" filterable v-model="insureitem.amount" placeholder="请选择"
  674. @change="insureitemChange" size="small" style="width: 300px;">
  675. <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
  676. :key="index"></el-option>
  677. </el-select>
  678. <span v-else>
  679. <el-input-number size="small" style="width: 280px;margin-right:10px" v-model="insureitem.amount"
  680. :min="0"></el-input-number>次
  681. </span>
  682. </div>
  683. </div>
  684. <!-- <div style="margin:0 auto;font-size: 14px;cursor: pointer;margin-top:15px;">
  685. <span v-show="insureMore" @click="selectMore(insureList.length)">
  686. 查看更多
  687. <i class="el-icon-arrow-down"></i>
  688. </span>
  689. <span v-show="!insureMore" @click="packup()">
  690. 收起
  691. <i class="el-icon-arrow-up"></i>
  692. </span>
  693. </div>-->
  694. </div>
  695. </div>
  696. <div class="Enclosure flex f-c back">
  697. <div class="home flex j-s">
  698. <div class="flex j-s a-c" id="company">
  699. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" />
  700. <span style="margin-left:10px;">保险公司</span>
  701. <div class="csstool">
  702. <span>是否过户车</span>
  703. <el-switch @change="transferFlagChange" v-model="carInfo.transferFlag" active-color="#D42426"></el-switch>
  704. </div>
  705. <div class="csstool">
  706. <span>商业险是否过户</span>
  707. <el-switch v-model="carInfo.transferFlagBi" active-color="#D42426"></el-switch>
  708. </div>
  709. <div class="csstool">
  710. <span>是否脱保</span>
  711. <el-switch v-model="carInfo.outOfInsurance" active-color="#D42426"></el-switch>
  712. </div>
  713. <div class="csstool">
  714. <span>是否二手车</span>
  715. <el-switch v-model="carInfo.usedCar" active-color="#D42426"></el-switch>
  716. </div>
  717. </div>
  718. <div class="flex j-c a-c">
  719. <el-button v-show="imageUploadShow" size="small" type="primary" @click="imageUpload()">
  720. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  721. 影像上传
  722. </el-button>
  723. </div>
  724. </div>
  725. <div>
  726. <div class="companyhead">
  727. <el-row>
  728. <el-col :span="1">
  729. <el-checkbox style="margin:0 10px 0 10px" @change="handleCheckAllChange"></el-checkbox>
  730. <span style="font-size:14px;">全选</span>
  731. </el-col>
  732. <el-col :span="2" style="margin: 0 42px 0 35px;">
  733. <span>保险公司</span>
  734. </el-col>
  735. <el-col :span="5">
  736. <span>报价协议</span>
  737. </el-col>
  738. <el-col :span="3">
  739. <span>报价结果</span>
  740. </el-col>
  741. <el-col :span="3">
  742. <span>交强险</span>
  743. </el-col>
  744. <el-col :span="3">
  745. <span>车船税</span>
  746. </el-col>
  747. <el-col :span="3">
  748. <span>商业险</span>
  749. </el-col>
  750. <el-col :span="2">
  751. <span>驾意险</span>
  752. </el-col>
  753. </el-row>
  754. </div>
  755. <div class="coll">
  756. <div v-loading.fullscreen.lock="loading" class="hovers" v-for="(reslistitem, reslistindex) in totalCompanyList"
  757. :key="reslistindex">
  758. <el-row>
  759. <el-col :span="1" style="margin-left: 20px;">
  760. <el-checkbox v-model="reslistitem.checked"
  761. @change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex)"></el-checkbox>
  762. </el-col>
  763. <el-col :span="3">
  764. <img :src="reslistitem.logo" alt
  765. style="width:30px; height:30px;vertical-align: middle;margin-left:20px" />
  766. <span>{{ reslistitem.namesimple }}</span>
  767. </el-col>
  768. <el-col :span="5">
  769. <el-select size="small" v-if="reslistitem.isTaxSource && reslistitem.isTaxSource == '1'" :disabled="true"
  770. placeholder="默认" style="width: 230px;" v-model="isTaxSourceModel" :clearable="true"></el-select>
  771. <el-select size="small" v-else :disabled="!reslistitem.checked" v-model="reslistitem.agreementId"
  772. placeholder="请选择协议" style="width: 230px;" :clearable="true"
  773. @change="val => agreementChange(val, reslistitem.agreement, reslistindex, reslistitem)">
  774. <div v-for="(agreementitem, agreementindex ) in reslistitem.agreement" :key="agreementindex">
  775. <div
  776. v-if="agreementitem.licenseNo && agreementitem.licenseNo.length > 0 && carInfo.licenseNo.length > 0 ? agreementitem.licenseNo.includes(carInfo.licenseNo.slice(0, 2)) : 'true'">
  777. <el-option :label="agreementitem.agreementName" :value="agreementitem.id"
  778. :disabled="agreementitem.disabled"></el-option>
  779. </div>
  780. </div>
  781. </el-select>
  782. </el-col>
  783. <el-col :span="3">
  784. <div v-show="reslistitem.quoteCode == '0'">
  785. <span>未报价</span>
  786. </div>
  787. <div v-show="reslistitem.quoteCode == '1'">
  788. <i style="color:#D42426" class="el-icon-loading"></i>
  789. </div>
  790. <div class="dis f-c" v-show="reslistitem.quoteCode == '200'">
  791. <span style="color:#D42426;font-weight:bold;">
  792. ¥{{
  793. reslistitem.result.sumPermium
  794. }}
  795. </span>
  796. <span style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{ reslistitem.result.sumExportFee
  797. }}</span>
  798. </div>
  799. </el-col>
  800. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  801. <div class="dis f-c">
  802. <span style="color:#D42426;font-weight:bold;">
  803. ¥{{
  804. reslistitem.result.jqPremium }}
  805. </span>
  806. <span v-if="reslistitem.result.jqPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{
  807. reslistitem.result.jqExportFee }}</span>
  808. </div>
  809. </el-col>
  810. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  811. <span style="color:#D42426;font-weight:bold;">
  812. ¥{{
  813. reslistitem.result.taxAmount }}
  814. </span>
  815. </el-col>
  816. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  817. <div class="dis f-c">
  818. <span style="color:#D42426;font-weight:bold;">
  819. ¥{{
  820. reslistitem.result.syPremium }}
  821. </span>
  822. <span v-if="reslistitem.result.syPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{
  823. reslistitem.result.syExportFee }}</span>
  824. </div>
  825. </el-col>
  826. <el-col :span="2" v-if="reslistitem.quoteCode == '200'" style="">
  827. <div class="dis f-c">
  828. <span style="color:#D42426;font-weight:bold;">
  829. {{
  830. reslistitem.result.jyPremium ? '¥' + reslistitem.result.jyPremium : '无' }}
  831. </span>
  832. <span v-if="reslistitem.result.jyPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{
  833. reslistitem.result.noExportFee }}</span>
  834. </div>
  835. </el-col>
  836. <el-col :span="24" v-show="reslistitem.quoteCode == '200' && reslistitem.result.feeNoDescription">
  837. <div class="flex offer-time" style="color:#D42426">
  838. <span>该车未匹配销管费用,不建议投保!</span>
  839. <el-tooltip class="item" effect="dark" content="费用匹配错误信息" placement="top">
  840. <i class="el-icon-s-goods"
  841. @click="open3(reslistitem.namesimple + '优惠信息', reslistitem.result.feeNoDescription)"
  842. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  843. :disabled="reslistitem.quoteCode == '200' && reslistitem.result.feeNoDescription"></i>
  844. </el-tooltip>
  845. </div>
  846. </el-col>
  847. <el-col :span="24"
  848. v-show="(reslistitem.quoteCode != '200') && (reslistitem.quoteCode != '0') && (reslistitem.quoteCode != '1')">
  849. <div class="flex j-s offer-time" style="color:#D42426">{{ reslistitem.msg.length > 500 ?
  850. reslistitem.msg.slice(0, 500) : reslistitem.msg }}</div>
  851. </el-col>
  852. </el-row>
  853. <div class="flex j-s offer-time" v-if="reslistitem.quoteCode == '200'">
  854. <div style="line-height: 25px;">
  855. 保险期限:
  856. <span v-show="reslistitem.result.startDateJq">
  857. 【交强险】
  858. <span>
  859. {{ reslistitem.result.startDateJq }} -
  860. {{ reslistitem.result.endDateJq }}
  861. </span>
  862. </span>
  863. <span v-show="reslistitem.result.startDateSy" style="margin-left: 20px;">
  864. 【商业险】
  865. <span>
  866. {{ reslistitem.result.startDateSy }} -
  867. {{ reslistitem.result.endDateSy }}
  868. </span>
  869. </span>
  870. <span @click="syncData(reslistitem.result)">
  871. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  872. <i style="color:red" class="el-icon-time"></i>
  873. </el-tooltip>
  874. </span>
  875. <div>
  876. <span v-show="reslistitem.result.JqExportFee">
  877. 交强出口费用<span>{{ reslistitem.result.JqExportFee }}</span>
  878. </span>
  879. <span v-show="reslistitem.result.syExportFee">
  880. 商业出口费用<span>{{ reslistitem.result.syExportFee }}</span>
  881. </span>
  882. <span v-show="reslistitem.result.noExportFee">
  883. 非车出口费用<span> {{ reslistitem.result.noExportFee }}</span>
  884. </span>
  885. </div>
  886. <div>
  887. <span v-if="reslistitem.namesimple == '永诚财险'">
  888. 光博分:
  889. <span>
  890. {{ reslistitem.result.ilogPreUdwMess ?
  891. reslistitem.result.ilogPreUdwMess : '无' }}
  892. </span>
  893. </span>
  894. <span v-else>
  895. 评分:
  896. <span>
  897. {{ reslistitem.result.ilogPreUdwMess ?
  898. reslistitem.result.ilogPreUdwMess : '无' }}
  899. </span>
  900. </span>
  901. <span v-if="reslistitem.result.jqScore" class="marginL">
  902. 交强类型评分:
  903. <span>{{ reslistitem.result.jqScore }}</span>
  904. </span>
  905. <span v-if="reslistitem.result.syScore" class="marginL">
  906. 商业类型评分:
  907. <span>{{ reslistitem.result.syScore }}</span>
  908. </span>
  909. <span v-if="reslistitem.result.lossRation" class="marginL">
  910. 总赔付率:
  911. <span>{{ reslistitem.result.lossRation }}</span>
  912. </span>
  913. <span v-if="reslistitem.result.jqLossRation" class="marginL">
  914. 交强赔付率:
  915. <span>{{ reslistitem.result.jqLossRation }}</span>
  916. </span>
  917. <span v-if="reslistitem.result.syLossRation" class="marginL">
  918. 商业赔付率:
  919. <span>{{ reslistitem.result.syLossRation }}</span>
  920. </span>
  921. <span v-if="reslistitem.result.totalAdjustRate" class="marginL">
  922. 自主定价系数:
  923. <span>{{ reslistitem.result.totalAdjustRate }}</span>
  924. </span>
  925. <span v-if="reslistitem.result.jgAdjustRate" class="marginL">
  926. 交强折扣系数:
  927. <span>{{ reslistitem.result.jgAdjustRate }}</span>
  928. </span>
  929. <span v-if="reslistitem.result.syAdjustRate" class="marginL">
  930. 商业折扣系数:
  931. <span>{{ reslistitem.result.syAdjustRate }}</span>
  932. </span>
  933. <span v-if="reslistitem.result.jqRenewal" class="marginL">
  934. 交强续保:
  935. <span>
  936. {{
  937. reslistitem.result.jqRenewal? reslistitem.result.jqRenewal:"无" }}
  938. </span>
  939. </span>
  940. <span v-if="reslistitem.result.syRenewal" class="marginL">
  941. 商业续保:
  942. <span>
  943. {{
  944. reslistitem.result.syRenewal? reslistitem.result.syRenewal:"无" }}
  945. </span>
  946. </span>
  947. <span v-if="reslistitem.result.jqClaims" class="marginL">
  948. 交强出险次数:
  949. <span>
  950. {{
  951. reslistitem.result.jqClaims? reslistitem.result.jqClaims:'无' }}
  952. </span>
  953. </span>
  954. <span v-if="reslistitem.result.syClaims" class="marginL">
  955. 商业出险次数:
  956. <span>
  957. {{
  958. reslistitem.result.syClaims? reslistitem.result.syClaims:'无' }}
  959. </span>
  960. </span>
  961. <span v-if="reslistitem.namesimple == '紫金财险' && reslistitem.result.ubiPredictedInfoScore"
  962. class="marginL">
  963. 紫金能源车(鼎然-车辆风险评分):
  964. <span>{{ reslistitem.result.ubiPredictedInfoScore }}</span>
  965. </span>
  966. <span v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '1'">真单交</span>
  967. <span v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '0'">假单交</span>
  968. </div>
  969. </div>
  970. <div style="text-align: right;">
  971. <div style="color:#2D4D89; ">
  972. <el-tooltip class="item" effect="dark" content="上年信息" placement="top">
  973. <i class="el-icon-chat-dot-round" @click="open2(reslistitem.namesimple, reslistitem.lastYearMsg)"
  974. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  975. :disabled="reslistitem.namesimple == '众安财险' && reslistitem.result.tips == '需要验车'"
  976. v-show="(reslistitem.quoteCode == '200' && reslistitem.lastYearMsg)"></i>
  977. </el-tooltip>
  978. <el-tooltip class="item" effect="dark" content="预核保信息" placement="top">
  979. <i class="el-icon-chat-dot-round"
  980. @click="openPredictInfo(reslistitem.namesimple, reslistitem.predictInfo)"
  981. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  982. v-show="(reslistitem.quoteCode == '200' && reslistitem.predictInfo && reslistitem.predictInfo.length > 0 && reslistitem.namesimple == '中国人寿')"></i>
  983. </el-tooltip>
  984. <el-button :disabled="reslistitem.namesimple == '众安财险' && reslistitem.result.tips == '需要验车'"
  985. v-show="reslistitem.quoteCode == '200' && !('editStatus' in reslistitem.result)" type="text"
  986. size="small" style="color:#2D4D89;font-size:14px" @click="hbsubmitdialog(reslistitem)">下单</el-button>
  987. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
  988. style="color:#2D4D89;font-size:14px "
  989. @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
  990. </div>
  991. <div>
  992. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small" style="font-size:14px "
  993. @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
  994. <el-button type="text" size="small" style="font-size:14px "
  995. @click="Payment(reslistitem.result.companyId, reslistitem.namesimple)"
  996. v-show="reslistitem.orderstatus == '2' && !('editStatus' in reslistitem.result)">付款码</el-button>
  997. </div>
  998. </div>
  999. </div>
  1000. <template>
  1001. <!-- <div style="margin:20px 0 0 100px;" v-if="reslistitem.checked && reslistitem.agreementId"> -->
  1002. <span v-if="reslistitem.checked && reslistitem.agreementId && reslistitem.underwritingDescription"
  1003. style="margin:20px 20px 0 100px;display: inline-block">{{ reslistitem.underwritingDescription }}</span>
  1004. <!-- </div> -->
  1005. </template>
  1006. <template v-if="reslistitem.namesimple == '恒邦财险' && reslistitem.checked && reslistitem.agreementId">
  1007. <div class="flex f-c Driving-risk">
  1008. <div class="dis a-c" style="margin:15px 0">
  1009. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1010. <el-select style="width: 250px;margin-right:60px" filterable size="small" clearable
  1011. v-model="hengbangtemplateSelection" placeholder="未选择" @clear="clearAccidentFormHB"
  1012. @change="hengbangInsuranceChange">
  1013. <el-option v-for="(item, index) in hengbangInsuranceData" :key="index" :label="item.projectName"
  1014. :value="item.projectCode"></el-option>
  1015. </el-select>
  1016. 保费: <b>{{ hengbangaccidentalDrivingVo.sumPremium || 0 }}&ensp;元</b>
  1017. </div>
  1018. <el-table size="small" :data="hengbangInsuranceDataTable" border v-if="hengbangtemplateSelection"
  1019. ref="RsTable" highlight-current-row
  1020. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1021. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1022. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  1023. <!-- <el-table-column prop="sumgrosspremium" label="保费 (元)/每份" align="center">
  1024. <template slot-scope="scope">
  1025. <span>¥{{ scope.row.sumgrosspremium }}</span>
  1026. </template>
  1027. </el-table-column>
  1028. <el-table-column label="份数" align="center">
  1029. <template slot-scope="scope">
  1030. <span>{{ scope.row.quantity }}</span>
  1031. </template>
  1032. </el-table-column> -->
  1033. </el-table>
  1034. </div>
  1035. </template>
  1036. <template v-if="reslistitem.namesimple == '华农财险' && reslistitem.checked && reslistitem.agreementId">
  1037. <div class="flex f-c Driving-risk">
  1038. <el-form :inline="true" :model="accidentFormHN" class="demo-form-inline"
  1039. style="font-weight:bold;margin-top:15px" size="small">
  1040. <el-form-item label="意外险类型:" style="margin-right:30px;">
  1041. <el-select clearable v-model="accidentFormHN.accidentType" placeholder="未选择"
  1042. @clear="clearAccidentFormHN" @change="huanongInsuranceChange">
  1043. <el-option v-for="(item, index) in huanongInsuranceData" :key="index" :label="item.projectName"
  1044. :value="item.projectCode"></el-option>
  1045. </el-select>
  1046. </el-form-item>
  1047. <el-form-item label="选择份数" style="margin-right:30px;">
  1048. <el-input-number v-model="accidentFormHN.quantity" :min="1"
  1049. controls-position="right"></el-input-number>
  1050. <!-- <span style="margin-left: 5px;">份</span> -->
  1051. </el-form-item>
  1052. </el-form>
  1053. <el-table v-if="accidentFormHN.accidentType" size="small" :data="huanongInsuranceDataTable" border ref="expandTable"
  1054. highlight-current-row
  1055. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1056. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1057. <el-table-column prop="amount" label="保额" align="center">
  1058. <template slot-scope="scope">
  1059. <el-input v-model="scope.row.amount" placeholder="请输入内容" size="small" disabled></el-input>
  1060. </template>
  1061. </el-table-column>
  1062. </el-table>
  1063. </div>
  1064. </template>
  1065. <template v-if="reslistitem.namesimple == '太平财险' && reslistitem.checked && reslistitem.agreementId">
  1066. <div class="flex f-c Driving-risk">
  1067. <div class="dis a-c" style="margin:15px 0">
  1068. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1069. <el-select style="width: 250px;margin-right:60px" filterable size="small" clearable
  1070. v-model="taipingtemplateSelection" placeholder="未选择" @clear="clearAccidentFormTP" @change="taipingInsuranceChange">
  1071. <el-option v-for="(item, index) in taipingInsuranceData" :key="index" :label="item.projectName"
  1072. :value="item.projectCode"></el-option>
  1073. </el-select>
  1074. 每份价税合计: <b>{{ taipingaccidentalDrivingVo.sumPremium || 0 }}&ensp;元</b>
  1075. </div>
  1076. <el-table size="small" :data="taipingInsuranceDataTable" border v-if="taipingtemplateSelection" ref="RsTable"
  1077. highlight-current-row
  1078. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1079. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1080. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  1081. </el-table>
  1082. </div>
  1083. </template>
  1084. <template v-if="reslistitem.namesimple == '安盛天平' && reslistitem.checked && reslistitem.agreementId">
  1085. <div class="flex f-c Driving-risk">
  1086. <div class="dis a-c" style="margin-top:15px">
  1087. <span style="margin-right:15px;font-weight:bold;">意外险类型</span>
  1088. <el-select style="width: 250px;" size="small" clearable v-model="anshengtemplateSelection" placeholder="未选择"
  1089. @clear="clearAccidentFormAS" @change="anshengInsuranceChange">
  1090. <el-option v-for="(item, index) in anshengInsuranceData" :key="index"
  1091. :label="item.projectCode + ' ' + item.projectName" :value="item.projectCode"></el-option>
  1092. </el-select>
  1093. </div>
  1094. <el-table style='margin-top:20px;' size="small" :data="anshengInsuranceDataTable" border v-if="anshengtemplateSelection" ref="RsTable"
  1095. highlight-current-row
  1096. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1097. <el-table-column align="center" width="55" label="选择">
  1098. <template slot-scope="scope">
  1099. <el-radio class="radio" v-model="anshengInsurancetype" :label="scope.row.projectCode"
  1100. @click.native.stop.prevent="ASDrivingRadio(scope.row)">&nbsp;</el-radio>
  1101. </template>
  1102. </el-table-column>
  1103. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  1104. <el-table-column prop="projectCode" label="方案代码" align="center"></el-table-column>
  1105. <el-table-column prop="quantity" label="份数" align="center"> </el-table-column>
  1106. </el-table>
  1107. </div>
  1108. </template>
  1109. <template v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId">
  1110. <div style="margin:15px 0 15px 100px">
  1111. <span>商业险折扣:</span>
  1112. <el-input style="width:220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount"
  1113. placeholder="请输入内容"
  1114. @input="reslistitem.discount = reslistitem.discount.replace(/[^\d.]/g, '')"></el-input>
  1115. </div>
  1116. <div class="flex f-c Driving-risk">
  1117. <div class="dis a-c">
  1118. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1119. <el-select style="width: 250px;" filterable size="small" clearable v-model="renshoutemplateSelection"
  1120. placeholder="未选择" @clear="clearAccidentFormRS" @change="renshouInsuranceChange">
  1121. <el-option v-for="(item, index) in renshouInsuranceData" :key="index" :label="item.projectName"
  1122. :value="item.projectCode"></el-option>
  1123. </el-select>
  1124. </div>
  1125. <el-table size="small" style="margin-top:20px" :data="renshouInsuranceDataTable" border v-if="renshoutemplateSelection" @row-click="RSDrivingChange"
  1126. ref="RsTable" highlight-current-row
  1127. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1128. <el-table-column prop="name" label="方案名称" align="center"></el-table-column>
  1129. <el-table-column prop="premium" label="保费 (元)起" align="center">
  1130. <template slot-scope="scope">
  1131. <span>¥{{ scope.row.premium }}</span>
  1132. </template>
  1133. </el-table-column>
  1134. <el-table-column label="份数" align="center">
  1135. <template slot-scope="scope">
  1136. <span>{{ scope.row.quantity }}</span>
  1137. </template>
  1138. </el-table-column>
  1139. </el-table>
  1140. </div>
  1141. </template>
  1142. <template v-if="reslistitem.namesimple == '众安财险' && reslistitem.checked && reslistitem.agreementId">
  1143. <div class="flex f-c Driving-risk">
  1144. <div class="dis a-c" style="margin:15px 0">
  1145. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1146. <el-select style="width: 250px;" filterable size="small" clearable v-model="zhongantemplateSelection"
  1147. placeholder="未选择" @clear="clearAccidentFormZA" @change="zhonganInsuranceChange">
  1148. <el-option v-for="(item, index) in zhonganInsuranceData" :key="index" :label="item.projectName"
  1149. :value="item.projectCode"></el-option>
  1150. </el-select>
  1151. <!-- 保费: <b>{{ zhonganaccidentalDrivingVo.sumgrosspremium || 0}}&ensp;元</b> -->
  1152. </div>
  1153. <el-table size="small" :data="zhonganInsuranceDataTable" border v-if="zhongantemplateSelection" @row-click="ZADrivingChange"
  1154. ref="RsTable" highlight-current-row
  1155. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1156. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1157. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  1158. </el-table>
  1159. </div>
  1160. </template>
  1161. <template v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId">
  1162. <div style="margin:15px 0 15px 100px">
  1163. <span>自主定价系数:</span>
  1164. <el-input style="width:220px" size="small" v-model="reslistitem.coefficient"
  1165. placeholder="请输入内容"></el-input>
  1166. </div>
  1167. <div class="flex f-c Driving-risk">
  1168. <div class="dis a-c" style="margin-bottom:15px">
  1169. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1170. <el-select style="width: 250px;" filterable multiple size="small" clearable v-model="zijintemplateSelection"
  1171. placeholder="未选择" @clear="clearAccidentFormZJ" @change="zijinInsuranceChange">
  1172. <el-option v-for="(item, index) in ziJinInsuranceData" :key="index" :label="item.projectName"
  1173. :value="item.projectCode"></el-option>
  1174. </el-select>
  1175. </div>
  1176. <el-table size="small" :data="zijinInsuranceDataTable" border v-if="zijintemplateSelection" @select="CheckboxChange"
  1177. filterable ref="expandTable" highlight-current-row
  1178. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1179. <el-table-column type="selection" width="55"></el-table-column>
  1180. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  1181. <el-table-column prop="sumAmount" label="总保额 (元)/每份" align="center"></el-table-column>
  1182. <el-table-column prop="sumPremium" label="保费 (元)/每份" align="center">
  1183. <template slot-scope="scope">
  1184. <span>¥{{ scope.row.sumPremium }}</span>
  1185. </template>
  1186. </el-table-column>
  1187. <el-table-column prop="quantity" label="份数" align="center">
  1188. <template slot-scope="scope">
  1189. <el-input-number v-model="scope.row.quantity" :min="1" size="small"
  1190. controls-position="right"></el-input-number>
  1191. </template>
  1192. </el-table-column>
  1193. <el-table-column prop="Totalprice" label="总保费 (元)" align="center">
  1194. <template slot-scope="scope">
  1195. <span v-if="scope.row.quantity">{{ scope.row.sumPremium * scope.row.quantity }}</span>
  1196. <span v-else>{{ scope.row.sumPremium }}</span>
  1197. </template>
  1198. </el-table-column>
  1199. </el-table>
  1200. </div>
  1201. </template>
  1202. <template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId">
  1203. <div class="flex f-c Driving-risk">
  1204. <el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small"
  1205. style="font-weight:bold;margin-top:15px">
  1206. <el-form-item label="意外险类型" style="margin-right:30px;">
  1207. <el-select clearable v-model="yongchengtemplateSelection" placeholder="未选择" @clear="clearAccidentForm"
  1208. @change="yongchengInsuranceChange">
  1209. <el-option v-for="(item, index) in yongchengaccidentDataList" :key="index" :label="item.projectName"
  1210. :value="item.projectCode"></el-option>
  1211. </el-select>
  1212. </el-form-item>
  1213. <el-form-item label="选择份数" style="margin-right:50px;">
  1214. <el-input-number v-model="accidentForm.quantity" @change="numberCopieschange" :min="1"
  1215. controls-position="right"></el-input-number>
  1216. <!-- <span style="margin-left: 5px;">份</span> -->
  1217. </el-form-item>
  1218. <el-form-item label="保费:">
  1219. <span>{{ accidentForm.sumPremium }}&ensp;元</span>
  1220. </el-form-item>
  1221. </el-form>
  1222. <el-table v-if="yongchengtemplateSelection" size="small" :data="yongchengInsuranceDataTable" border ref="expandTable"
  1223. highlight-current-row
  1224. :header-cell-style="{ background: '#F7F7F9', fontWeight: '700', color: '#333333' }">
  1225. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1226. <el-table-column prop="amount" label="每座保额 (元)/每份" align="center"></el-table-column>
  1227. <el-table-column prop="sumAmount" label="每车保额 (元)/每份" align="center"></el-table-column>
  1228. <el-table-column prop="premium" label="责任保费 (元)/每份" align="center"></el-table-column>
  1229. </el-table>
  1230. </div>
  1231. </template>
  1232. <template v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId">
  1233. <!-- <div style="margin:10px 0 0 100px;">
  1234. <span style="margin-right:20px"> {{reslistitem.underwritingDescription}}</span>-->
  1235. <el-button type="text" style="margin:10px 0 0 100px;" @click="contributingGuoRen(reslistitem.agreementId)">选择特约</el-button>
  1236. <!-- </div> -->
  1237. <div class="flex f-c Driving-risk">
  1238. <el-form :inline="true" :model="guoRenaccidentForm" class="demo-form-inline" size="small">
  1239. <el-form-item label="意外险类型" style="margin-right:30px;">
  1240. <el-select clearable placeholder="未选择" @clear="clearAccidentFormGr" @change="grcxchange"
  1241. v-model="guoRenaccidentForm.goodsCode">
  1242. <el-option v-for="(item, index) in guoRenaccidentDataList" :key="index" :label="item.projectName"
  1243. :value="item.projectCode"></el-option>
  1244. </el-select>
  1245. </el-form-item>
  1246. <el-form-item label=" ">
  1247. <el-select clearable v-model="guoRenaccidentForm.prodCode"
  1248. @change="grcxchangeChild">
  1249. <el-option v-for="(item, index) in guoRenaccidentDataListChild" :key="item.projectCode"
  1250. :label="item.projectName" :value="item.projectCode"></el-option>
  1251. </el-select>
  1252. </el-form-item>
  1253. <el-form-item label="选择份数" style="margin-right:30px;">
  1254. <el-input-number v-model="guoRenaccidentForm.quantity" :min="1" controls-position="right"
  1255. @change="numberCopieschangeGR"></el-input-number>
  1256. <!-- <span style="margin-left: 5px;">份</span> -->
  1257. </el-form-item>
  1258. <el-form-item label="保费:">
  1259. <span>{{ guoRenaccidentForm.sumPremium }}&ensp;元</span>
  1260. </el-form-item>
  1261. </el-form>
  1262. <el-table v-if="guoRenaccidentForm.prodCode" size="small" :data="guoRenInsuranceDataTable" border
  1263. ref="expandTable" highlight-current-row
  1264. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1265. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1266. <el-table-column prop="amount" label="保额 (元)" align="center"></el-table-column>
  1267. <el-table-column prop="premium" label="保费 (元)" align="center">
  1268. <template slot-scope="scope">¥{{ scope.row.premium }}</template>
  1269. </el-table-column>
  1270. </el-table>
  1271. </div>
  1272. </template>
  1273. <template v-if="reslistitem.namesimple == '中煤财险' && reslistitem.checked && reslistitem.agreementId">
  1274. <div class="flex f-c Driving-risk accident-style zmDriving">
  1275. <el-form :inline="true" :model="accidentFormZM" class="demo-form-inline" size="small"
  1276. style="font-weight:bold;margin-top:15px">
  1277. <el-form-item label="意外险类型" style="margin-right:30px;">
  1278. <el-select style="width: 250px;" size="small" clearable v-model="zhongmeitemplateSelection"
  1279. placeholder="未选择" @clear="numberCopieschangeZM" @change="zhongmeiInsuranceChange">
  1280. <el-option v-for="(item, index) in zhongmeiInsuranceData" :key="index" :label="item.projectName"
  1281. :value="item.projectCode"></el-option>
  1282. </el-select>
  1283. </el-form-item>
  1284. <el-form-item label="选择份数" style="margin-right:30px;">
  1285. <el-input-number v-model="accidentFormZM.quantity" @change="numberCopieschangeZM" :min="1"
  1286. controls-position="right" ></el-input-number>
  1287. <!-- <span style="margin-left: 5px;">份</span> -->
  1288. </el-form-item>
  1289. <el-form-item label="保费:">
  1290. <span>{{ accidentFormZM.sumPremium }}&ensp;元</span>
  1291. </el-form-item>
  1292. </el-form>
  1293. <el-table size="small" :data="zhongmeiInsuranceDataTable" border ref="ZmMultipleTable" v-if="zhongmeitemplateSelection"
  1294. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1295. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  1296. <el-table-column prop="amount" label="保险责任对应保额" align="center"></el-table-column>
  1297. <!-- <el-table-column label="份数" align="center">
  1298. <template slot-scope="scope">
  1299. <div @click.stop>
  1300. <el-input-number
  1301. v-model="scope.row.quantity"
  1302. @change="ZMhandleChange"
  1303. :min="1"
  1304. :max="Number(scope.row.insuredNumLimit)"
  1305. controls-position="right"
  1306. ></el-input-number>
  1307. </div>
  1308. </template>
  1309. </el-table-column>-->
  1310. </el-table>
  1311. </div>
  1312. </template>
  1313. <template v-if="reslistitem.namesimple == '大家财险' && reslistitem.checked && reslistitem.agreementId">
  1314. <div class="flex f-c Driving-risk">
  1315. <div class="dis a-c" style="margin-top:15px">
  1316. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1317. <el-select style="width: 250px;" filterable size="small" clearable v-model="dajiatemplateSelection"
  1318. placeholder="未选择" @clear="clearAccidentFormDJ" @change="dajiaInsuranceChange">
  1319. <el-option v-for="(item, index) in dajiaInsuranceData" :key="index" :label="item.productName"
  1320. :value="item.id"></el-option>
  1321. </el-select>
  1322. </div>
  1323. <el-table size="small" :data="dajiaInsuranceDataTable" border v-if="dajiatemplateSelection" @row-click="DJDrivingChange"
  1324. ref="RsTable" highlight-current-row
  1325. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1326. <el-table-column prop="cvrgName" label="保险责任名称" align="center"></el-table-column>
  1327. <el-table-column prop="cvrgPrm" label="保费 (元)/每份" align="center">
  1328. <template slot-scope="scope">¥{{ scope.row.cvrgPrm }}</template>
  1329. </el-table-column>
  1330. </el-table>
  1331. </div>
  1332. </template>
  1333. <template v-if="reslistitem.namesimple == '渤海财险' && reslistitem.checked && reslistitem.agreementId">
  1334. <div class="flex f-c Driving-risk" style="margin-top:15px">
  1335. <el-form :inline="true" :model="boHaiaccidentForm" class="demo-form-inline" size="small">
  1336. <el-form-item label="意外险类型" style="margin-right:30px;">
  1337. <el-select clearable placeholder="未选择" @clear="clearAccidentFormBh" @change="bohaiInsuranceChange"
  1338. v-model="boHaiaccidentForm.packageCode">
  1339. <el-option v-for="(item, index) in boHaiaccidentDataList" :key="index" :label="item.packageName"
  1340. :value="item.packageCode"></el-option>
  1341. </el-select>
  1342. </el-form-item>
  1343. <el-form-item label="选择份数" style="margin-right:30px;">
  1344. <el-input-number v-model="boHaiaccidentForm.copies" :min="1"
  1345. controls-position="right"></el-input-number>
  1346. </el-form-item>
  1347. <el-form-item label="保费:">
  1348. <span>{{ boHaiaccidentForm.premium * boHaiaccidentForm.copies }}&ensp;元</span>
  1349. </el-form-item>
  1350. </el-form>
  1351. <el-table v-if="boHaiaccidentForm.packageCode" size="small" :data="bohaiInsuranceDataTable" border
  1352. v-loading="accidentLoadingbh" ref="expandTable" highlight-current-row
  1353. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1354. <el-table-column prop="coverageName" label="保险责任名称" align="center"></el-table-column>
  1355. <el-table-column prop="insuredAmount" label="保额 (元)" align="center">
  1356. <template slot-scope="scope">¥{{ scope.row.insuredAmount }}</template>
  1357. </el-table-column>
  1358. </el-table>
  1359. </div>
  1360. </template>
  1361. </div>
  1362. </div>
  1363. </div>
  1364. </div>
  1365. <div class="Enclosure flex f-c" v-if="isLetter">
  1366. <div class="home flex j-s a-c back">
  1367. <div class="flex j-s a-c color">
  1368. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  1369. <span style="margin-left:10px;">报价历史</span>
  1370. <div v-if="orderno">
  1371. <el-radio-group v-model="historyRadio" style="margin-left:30px;" @input="RadioHistoryChange"
  1372. v-for="item in insOrderStatusoptions" :key="item.dictValue">
  1373. <el-radio :label="item.dictValue">{{ item.dictTag }}</el-radio>
  1374. </el-radio-group>
  1375. </div>
  1376. </div>
  1377. </div>
  1378. <div style="padding:20px;">
  1379. <el-table size="small" :data="HistoryList" height="250" border style="width: 100%" v-loading="loading"
  1380. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row>
  1381. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  1382. <el-table-column prop="username" label="业务员" align="center">
  1383. <template slot-scope="scope">
  1384. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  1385. </template>
  1386. </el-table-column>
  1387. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  1388. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  1389. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  1390. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  1391. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  1392. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  1393. <el-table-column prop="orderstatus" label="状态" align="center">
  1394. <template slot-scope="scope">
  1395. <el-tag style="color:#33A08D;border-color:#33A08D;background: rgba(51,160,141,0.1);"
  1396. v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'" size="small">{{ scope.row.orderstatus
  1397. |
  1398. cap }}</el-tag>
  1399. <el-tag type="danger" style="border-color:#E75B5D ;" v-else-if="scope.row.orderstatus == '3'"
  1400. size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1401. <el-tag v-else style="color:#2D4D89 ;border-color:#2D4D89 ;background: rgba(45, 77, 137,0.1);"
  1402. size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1403. </template>
  1404. </el-table-column>
  1405. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  1406. <template slot-scope="scope">
  1407. <el-button type="text" style="color:#2D4D89 " size="small"
  1408. @click="qoutedetail(scope.row.id)">查看详情</el-button>
  1409. <el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
  1410. <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
  1411. @click="Payment(scope.row.id, scope.row)">付款码</el-button>
  1412. <el-button size="mini" type="text"
  1413. v-if="(scope.row.orderstatus == '1' || scope.row.orderstatus == '2' || scope.row.orderstatus == '4') && ['紫金财险'].includes(scope.row.inscompany)"
  1414. @click="cancelorder(scope.row)">撤单</el-button>
  1415. <el-button type="text" size="mini" style="color:#2D4D89 " v-if="scope.row.orderstatus == '2'"
  1416. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  1417. </template>
  1418. </el-table-column>
  1419. </el-table>
  1420. </div>
  1421. </div>
  1422. <!-- 查看详情 -->
  1423. <detailsDialog ref="detailsDialog" :orderInfo.sync="queryOrders" :Feepermissions="false"></detailsDialog>
  1424. <el-dialog title="车型选择" :visible.sync="chexingdialogVisible" width="1300px">
  1425. <el-form :inline="true" class="demo-form-inline" size="small">
  1426. <el-form-item label="厂牌型号">
  1427. <el-input v-model="carInfo.modelcname" placeholder="厂牌型号" style="width:500px;"></el-input>
  1428. </el-form-item>
  1429. <el-form-item>
  1430. <el-button type="primary" size="small" @click="toChooseVehicleType(carInfo.modelcname)">查询</el-button>
  1431. </el-form-item>
  1432. </el-form>
  1433. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1434. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row
  1435. @row-dblclick="reslistCurrentChange">
  1436. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1437. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1438. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1439. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1440. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1441. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1442. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1443. </el-table>
  1444. </el-dialog>
  1445. <el-dialog title="车辆识别代码" :visible.sync="sbdmdialogVisible" width="1300px">
  1446. <el-form :inline="true" class="demo-form-inline" size="small">
  1447. <el-form-item label="车辆识别代码">
  1448. <el-input v-model="carInfo.frameNo" placeholder="车辆识别代码" style="width:500px;"></el-input>
  1449. </el-form-item>
  1450. <el-form-item>
  1451. <el-button type="primary" size="small" @click="toChooseVin(carInfo.frameNo)">查询</el-button>
  1452. </el-form-item>
  1453. </el-form>
  1454. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1455. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row
  1456. @row-dblclick="reslistCurrentChange">
  1457. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1458. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1459. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1460. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1461. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1462. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1463. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1464. </el-table>
  1465. </el-dialog>
  1466. <!--第一种 二维码 -->
  1467. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  1468. <div class="ORcodebody" v-watermark="userform.id || userId">
  1469. <div slot="title" class="dialog-title">
  1470. <span>扫码付款</span>
  1471. </div>
  1472. <div class="ORcode">
  1473. <div style="padding:13px;position: relative;">
  1474. <img v-if="['太平财险','华泰财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
  1475. <div v-else id="qrcode" ref="qrcode"></div>
  1476. </div>
  1477. </div>
  1478. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  1479. <div style="font-size:32px;text-align: center;color:#D42426;margin-top:20px">
  1480. <span style="font-size:24px;font-weight:bold">¥</span>
  1481. {{ sumpremium }}
  1482. </div>
  1483. <div class="ORtitle">
  1484. <div>
  1485. <span>保险公司:</span>
  1486. <span>{{ inscompany }}</span>
  1487. </div>
  1488. <div>
  1489. <span>车牌号:</span>
  1490. <span>{{ licenseNo }}</span>
  1491. </div>
  1492. <div>
  1493. <span>投保人:</span>
  1494. <span>{{ applyName }}</span>
  1495. </div>
  1496. <!-- <div>
  1497. <span style="color:#f75c00">总金额:</span>
  1498. <span style="color:#f75c00">{{ sumpremium }}</span>
  1499. </div>-->
  1500. <div v-show="jqpremium">
  1501. <span>交强:</span>
  1502. <span>{{ jqpremium }}</span>
  1503. </div>
  1504. <div v-show="sypremium">
  1505. <span>商业:</span>
  1506. <span>{{ sypremium }}</span>
  1507. </div>
  1508. <div v-show="taxamount">
  1509. <span>车船税:</span>
  1510. <span>{{ taxamount }}</span>
  1511. </div>
  1512. <div v-show="jqstartdate">
  1513. <span>交强险起保日期:</span>
  1514. <span>{{ jqstartdate }}</span>
  1515. </div>
  1516. <div v-show="systartdate">
  1517. <span>商业险起保日期:</span>
  1518. <span>{{ systartdate }}</span>
  1519. </div>
  1520. <div v-if="jypremium">
  1521. <span>非车险:</span>
  1522. <span>{{ jypremium }}</span>
  1523. </div>
  1524. </div>
  1525. <!-- <div class="display">
  1526. <el-button size="small" style="width:100px;" @click="codedialogVisible = false">关闭</el-button>
  1527. </div>-->
  1528. </div>
  1529. <span slot="footer" class="dialog-footer display">
  1530. <el-button size="small" style="width:100px;border-color:#D42426;color:#D42426 "
  1531. @click="codedialogVisible = false">关闭</el-button>
  1532. </span>
  1533. </el-dialog>
  1534. <!--第二种 二维码 -->
  1535. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh" title="扫码付款">
  1536. <div class="flex j-s">
  1537. <div class="scan-code">
  1538. <div style="font-weight: bold;">
  1539. 总金额:
  1540. <span style="color:#2D4D89 ">{{ sumpremium }}</span>
  1541. </div>
  1542. <div>交强险:{{ jqpremium }}</div>
  1543. <div>车船税:{{ taxamount }}</div>
  1544. <div>商业险:{{ sypremium }}</div>
  1545. <div>非车险:{{ jypremium }}</div>
  1546. </div>
  1547. <div>
  1548. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
  1549. <div v-else id="qrcode" ref="qrcode"></div>
  1550. </div>
  1551. <div class="scan-code">
  1552. <div>保险公司:{{ inscompany }}</div>
  1553. <div>车牌号:{{ licenseNo }}</div>
  1554. <div>投保人:{{ applyName }}</div>
  1555. <div>交强险起保日期:{{ jqstartdate }}</div>
  1556. <div>商业险起保日期:{{ systartdate }}</div>
  1557. </div>
  1558. </div>
  1559. <span slot="footer" class="dialog-footer">
  1560. <el-button size="small" style="width:100px;background: #EAEDF1;border-color:#EAEDF1;color:#2D4D89 "
  1561. @click="codedialogVisiblePro = false">关闭</el-button>
  1562. </span>
  1563. </el-dialog>
  1564. <el-dialog :visible.sync="uploadcardialogVisible" width="960px" style="padding:10px 20px;box-sizing: border-box;"
  1565. @open="closeDialog(0)">
  1566. <div slot="title" class="dialog-title">
  1567. <span>行驶证识别</span>
  1568. </div>
  1569. <el-row :gutter="20">
  1570. <div class="bodys1">
  1571. <div>
  1572. <div class="flex a-c">
  1573. <div class="OCR" style="text-align:center;">行驶证主页</div>
  1574. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1575. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carfrontChange">
  1576. <img v-show="carfrontImg" :src="carfrontImg" style="width:100%;height:100%" />
  1577. <img v-show="!carfrontImg" src="../../../../static/carfront.png" style="width:100%;height:100%" />
  1578. <span class="slot" v-show="carfrontImg" @click.stop>
  1579. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carfrontImg)"></i>
  1580. <i class="el-icon-delete" @click.stop="handleRemove('carfrontImg')"></i>
  1581. </span>
  1582. </el-upload>
  1583. </div>
  1584. </div>
  1585. <div class="flex a-c">
  1586. <div class="OCR" style="text-align:center;">行驶证副页</div>
  1587. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1588. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carbackChange">
  1589. <img v-show="carbackImg" :src="carbackImg" style="width:100%;height:100%" />
  1590. <img v-show="!carbackImg" src="../../../../static/carback.png" style="width:100%;height:100%" />
  1591. <span class="slot" v-show="carbackImg" @click.stop>
  1592. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carbackImg)"></i>
  1593. <i class="el-icon-delete" @click.stop="handleRemove('carbackImg')"></i>
  1594. </span>
  1595. </el-upload>
  1596. </div>
  1597. </div>
  1598. </div>
  1599. <div style="text-align:center;">
  1600. <el-form :model="carform" label-width="130px" size="small">
  1601. <el-form-item label="所有人">
  1602. <el-input v-model="carform.carOwner" autocomplete="off"></el-input>
  1603. </el-form-item>
  1604. <el-form-item label="车牌号">
  1605. <el-input v-model="carform.licenseNo" autocomplete="off"></el-input>
  1606. </el-form-item>
  1607. <el-form-item label="车架号">
  1608. <el-input v-model="carform.frameNo" autocomplete="off"></el-input>
  1609. </el-form-item>
  1610. <el-form-item label="品牌型号">
  1611. <el-input v-model="carform.modelcname" autocomplete="off"></el-input>
  1612. </el-form-item>
  1613. <el-form-item label="发动机号">
  1614. <el-input v-model="carform.engineNo" autocomplete="off"></el-input>
  1615. </el-form-item>
  1616. <el-form-item label="总质量">
  1617. <el-input v-model="carform.grossMass" autocomplete="off"></el-input>
  1618. </el-form-item>
  1619. <el-form-item label="整备质量">
  1620. <el-input v-model="carform.unladenMass" autocomplete="off"></el-input>
  1621. </el-form-item>
  1622. <el-form-item label="核定载质量">
  1623. <el-input v-model="carform.limitLoad" autocomplete="off"></el-input>
  1624. </el-form-item>
  1625. <el-form-item label="核定载客数">
  1626. <el-input v-model="carform.approvedPassengersCapacity" autocomplete="off"></el-input>
  1627. </el-form-item>
  1628. <el-form-item label="注册日期">
  1629. <el-input v-model="carform.registerDate" autocomplete="off"></el-input>
  1630. </el-form-item>
  1631. <el-form-item label="发证日期">
  1632. <el-input v-model="carform.issueDate" autocomplete="off"></el-input>
  1633. </el-form-item>
  1634. </el-form>
  1635. </div>
  1636. </div>
  1637. </el-row>
  1638. <span slot="footer" class="dialog-footer">
  1639. <el-button type="primary" @click="CarOCRdiscern()" size="small">识 别</el-button>
  1640. <el-button type="primary" @click="CarOCRconfirm()" size="small">确 认</el-button>
  1641. </span>
  1642. </el-dialog>
  1643. <el-dialog :visible.sync="uploaduserdialogVisible" width="960px" style="padding:10px 20px;box-sizing: border-box;"
  1644. @open="closeDialog(userIndex)">
  1645. <el-tabs v-model="activeName">
  1646. <el-tab-pane label="身份证识别" name="1">
  1647. <el-row :gutter="20">
  1648. <div class="bodys1">
  1649. <div>
  1650. <div class="flex">
  1651. <div class="OCR" style="text-align:center;">身份证主页</div>
  1652. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1653. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1654. :on-change="userfrontChange">
  1655. <img v-show="userfrontImg" :src="userfrontImg" style="width:100%;height:100%" />
  1656. <img v-show="!userfrontImg" src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1657. <span class="slot" v-show="userfrontImg" @click.stop>
  1658. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userfrontImg)"></i>
  1659. <i class="el-icon-delete" @click.stop="handleRemove('userfrontImg')"></i>
  1660. </span>
  1661. </el-upload>
  1662. </div>
  1663. </div>
  1664. <div class="flex">
  1665. <div class="OCR" style="text-align:center;">身份证副页</div>
  1666. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1667. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1668. :on-change="userbackChange">
  1669. <img v-show="userbackImg" :src="userbackImg" style="width:100%;height:100%" />
  1670. <img v-show="!userbackImg" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1671. <span class="slot" v-show="userbackImg" @click.stop>
  1672. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userbackImg)"></i>
  1673. <i class="el-icon-delete" @click.stop="handleRemove('userbackImg')"></i>
  1674. </span>
  1675. </el-upload>
  1676. </div>
  1677. </div>
  1678. </div>
  1679. <div style="text-align:center;">
  1680. <el-form :model="ownerInfoform" label-width="130px" size="small">
  1681. <el-form-item label="姓名">
  1682. <el-input v-model="ownerInfoform.name" autocomplete="off"></el-input>
  1683. </el-form-item>
  1684. <el-form-item label="性别">
  1685. <el-input v-model="ownerInfoform.gender" autocomplete="off"></el-input>
  1686. </el-form-item>
  1687. <el-form-item label="证件类型">
  1688. <el-input v-model="ownerInfoform.identifyType" autocomplete="off"></el-input>
  1689. </el-form-item>
  1690. <el-form-item label="证件号码">
  1691. <el-input v-model="ownerInfoform.identifyNumber" autocomplete="off"></el-input>
  1692. </el-form-item>
  1693. <el-form-item label="车主手机号">
  1694. <el-input v-model="ownerInfoform.mobile" autocomplete="off"></el-input>
  1695. </el-form-item>
  1696. <el-form-item label="地址">
  1697. <el-input v-model="ownerInfoform.addr" autocomplete="off"></el-input>
  1698. </el-form-item>
  1699. <el-form-item label="有效期起期">
  1700. <el-input disabled v-model="ownerInfoform.identifyValidDate" autocomplete="off"></el-input>
  1701. </el-form-item>
  1702. <el-form-item label="有效期止期">
  1703. <el-input disabled v-model="ownerInfoform.identifyValidEndDate" autocomplete="off"></el-input>
  1704. </el-form-item>
  1705. <el-form-item label="电子邮箱">
  1706. <el-input v-model="ownerInfoform.email" autocomplete="off"></el-input>
  1707. </el-form-item>
  1708. </el-form>
  1709. </div>
  1710. </div>
  1711. </el-row>
  1712. </el-tab-pane>
  1713. <el-tab-pane label="营业执照" name="2">
  1714. <el-row :gutter="20">
  1715. <div class="bodys1">
  1716. <div>
  1717. <div class="flex">
  1718. <div class="OCR" style="text-align:center;">营业执照</div>
  1719. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1720. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1721. :on-change="userfrontChange">
  1722. <img v-show="businessImg" :src="businessImg" style="width:100%;height:100%" />
  1723. <img v-show="!businessImg" src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1724. <span class="slot" v-show="businessImg" @click.stop>
  1725. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(businessImg)"></i>
  1726. <i class="el-icon-delete" @click.stop="handleRemove('businessImg')"></i>
  1727. </span>
  1728. </el-upload>
  1729. </div>
  1730. </div>
  1731. </div>
  1732. <div style="text-align:center;">
  1733. <el-form :model="ownerInfoform" label-width="130px" size="small">
  1734. <el-form-item label="单位名称">
  1735. <el-input autocomplete="off"></el-input>
  1736. </el-form-item>
  1737. <el-form-item label="法人">
  1738. <el-input autocomplete="off"></el-input>
  1739. </el-form-item>
  1740. <el-form-item label="社会信用代码">
  1741. <el-input autocomplete="off"></el-input>
  1742. </el-form-item>
  1743. <el-form-item label="地址">
  1744. <el-input autocomplete="off"></el-input>
  1745. </el-form-item>
  1746. <el-form-item label="经营范围">
  1747. <el-input autocomplete="off"></el-input>
  1748. </el-form-item>
  1749. <el-form-item label="注册资本">
  1750. <el-input autocomplete="off"></el-input>
  1751. </el-form-item>
  1752. </el-form>
  1753. </div>
  1754. </div>
  1755. </el-row>
  1756. </el-tab-pane>
  1757. </el-tabs>
  1758. <span slot="footer" class="dialog-footer">
  1759. <el-button type="primary" @click="userOCRdiscern()" size="small">识 别</el-button>
  1760. <el-button type="primary" @click="userOCRconfirm()" size="small">确 认</el-button>
  1761. </span>
  1762. </el-dialog>
  1763. <el-dialog :visible.sync="imageUploaddialogVisible" width="1070px">
  1764. <div slot="title" class="dialog-title">
  1765. <span>影像上传</span>
  1766. </div>
  1767. <el-row>
  1768. <el-col :span="3">
  1769. <div class="tab-style">
  1770. <li class="liMenu" :class="idx == tabLiIndex ? 'tabLi-style' : ''" @click="tabLiScroll(item.scroll, idx)"
  1771. v-for="(item, idx) in tabLimenu" :key="idx">{{ item.name }}</li>
  1772. </div>
  1773. </el-col>
  1774. <el-col :span="21" style="height:320px;overflow-y: auto;">
  1775. <div class="flex" id="vehicle">
  1776. <div class="aaa">
  1777. <span>1.行驶证主页</span>
  1778. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1779. :on-change="file => drivingupload(file, 'imageList1', 'imgList1', 'C01')" :file-list="imgList1"
  1780. ref="upload1" :class="{ styleB: imgList1.length == 1 }">
  1781. <img v-show="imgList1.length == 0" src="../../../../static/carfront.png" style="width:100%;height:100%" />
  1782. <div slot="file" slot-scope="{file}" v-if="imgList1.length > 0">
  1783. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1784. <span class="el-upload-list__item-actions">
  1785. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList1')">
  1786. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1787. <i class="el-icon-delete"></i>
  1788. </span>
  1789. </span>
  1790. </div>
  1791. </el-upload>
  1792. </div>
  1793. <div class="aaa">
  1794. <span>2.行驶证副页</span>
  1795. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1796. :on-change="file => drivingupload(file, 'imageList1', 'imgList2', 'D01')" :file-list="imgList2"
  1797. ref="upload2" :class="{ styleB: imgList2.length === 1 }">
  1798. <img v-show="imgList2.length == 0" src="../../../../static/carback.png" style="width:100%;height:100%" />
  1799. <div slot="file" slot-scope="{file}">
  1800. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1801. <span class="el-upload-list__item-actions">
  1802. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList2')">
  1803. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1804. <i class="el-icon-delete"></i>
  1805. </span>
  1806. </span>
  1807. </div>
  1808. </el-upload>
  1809. </div>
  1810. <div class="aaa">
  1811. <span>1.新车合格证</span>
  1812. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1813. :on-change="file => drivingupload(file, 'imageList5', 'imgList9', 'XC00')" :file-list="imgList9" multiple
  1814. ref="upload3" :class="{ styleB: imgList9.length === 1 }">
  1815. <img v-show="imgList9.length == 0" src="../../../../static/userfront.png"
  1816. style="width:100%;height:100%" />
  1817. <div slot="file" slot-scope="{file}">
  1818. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1819. <span class="el-upload-list__item-actions">
  1820. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList9')">
  1821. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1822. <i class="el-icon-delete"></i>
  1823. </span>
  1824. </span>
  1825. </div>
  1826. </el-upload>
  1827. </div>
  1828. <div class="aaa">
  1829. <span>2.购车发票</span>
  1830. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1831. :on-change="file => drivingupload(file, 'imageList5', 'imgList10', 'GC00')" :file-list="imgList10"
  1832. multiple ref="upload4" :class="{ styleB: imgList10.length === 1 }">
  1833. <img v-show="imgList10.length == 0" src="../../../../static/userfront.png"
  1834. style="width:100%;height:100%" />
  1835. <div slot="file" slot-scope="{file}">
  1836. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1837. <span class="el-upload-list__item-actions">
  1838. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList10')">
  1839. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1840. <i class="el-icon-delete"></i>
  1841. </span>
  1842. </span>
  1843. </div>
  1844. </el-upload>
  1845. </div>
  1846. </div>
  1847. <div class="flex" id="owner">
  1848. <div class="aaa">
  1849. <span>1.车主身份证(正面)</span>
  1850. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1851. :on-change="file => drivingupload(file, 'imageList2', 'imgList3', 'C02')" :file-list="imgList3" multiple
  1852. ref="upload3" :class="{ styleB: imgList3.length === 1 }">
  1853. <img v-show="imgList3.length == 0" src="../../../../static/userfront.png"
  1854. style="width:100%;height:100%" />
  1855. <div slot="file" slot-scope="{file}">
  1856. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1857. <span class="el-upload-list__item-actions">
  1858. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList3')">
  1859. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1860. <i class="el-icon-delete"></i>
  1861. </span>
  1862. </span>
  1863. </div>
  1864. </el-upload>
  1865. </div>
  1866. <div class="aaa">
  1867. <span>2.车主身份证(反面)</span>
  1868. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1869. :on-change="file => drivingupload(file, 'imageList2', 'imgList4', 'D02')" :file-list="imgList4" multiple
  1870. ref="upload4" :class="{ styleB: imgList4.length === 1 }">
  1871. <img v-show="imgList4.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1872. <div slot="file" slot-scope="{file}">
  1873. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1874. <span class="el-upload-list__item-actions">
  1875. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1876. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1877. <i class="el-icon-delete"></i>
  1878. </span>
  1879. </span>
  1880. </div>
  1881. </el-upload>
  1882. </div>
  1883. <div class="aaa">
  1884. <span>3.营业执照</span>
  1885. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1886. <img src="../../../../static/userfront.png" 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>
  1899. <div class="flex" id="applicant">
  1900. <div class="aaa">
  1901. <span>1.投保人身份证(正面)</span>
  1902. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1903. :on-change="file => drivingupload(file, 'imageList3', 'imgList5', 'C03')" :file-list="imgList5" multiple
  1904. ref="upload5" :class="{ styleB: imgList5.length === 1 }">
  1905. <img v-show="imgList5.length == 0" src="../../../../static/userfront.png"
  1906. style="width:100%;height:100%" />
  1907. <div slot="file" slot-scope="{file}">
  1908. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1909. <span class="el-upload-list__item-actions">
  1910. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList5')">
  1911. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1912. <i class="el-icon-delete"></i>
  1913. </span>
  1914. </span>
  1915. </div>
  1916. </el-upload>
  1917. </div>
  1918. <div class="aaa">
  1919. <span>2.投保人身份证(反面)</span>
  1920. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1921. :on-change="file => drivingupload(file, 'imageList3', 'imgList6', 'D03')" :file-list="imgList6" multiple
  1922. ref="upload6" :class="{ styleB: imgList6.length === 1 }">
  1923. <img v-show="imgList6.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1924. <div slot="file" slot-scope="{file}">
  1925. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1926. <span class="el-upload-list__item-actions">
  1927. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList6')">
  1928. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1929. <i class="el-icon-delete"></i>
  1930. </span>
  1931. </span>
  1932. </div>
  1933. </el-upload>
  1934. </div>
  1935. <div class="aaa">
  1936. <span>3.营业执照</span>
  1937. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1938. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1939. <div slot="file" slot-scope="{file}">
  1940. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1941. <span class="el-upload-list__item-actions">
  1942. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1943. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1944. <i class="el-icon-delete"></i>
  1945. </span>
  1946. </span>
  1947. </div>
  1948. </el-upload>
  1949. </div>
  1950. </div>
  1951. <div class="flex">
  1952. <div class="aaa">
  1953. <span id="insured">1.被保人身份证(正面)</span>
  1954. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1955. :on-change="file => drivingupload(file, 'imageList4', 'imgList7', 'C04')" :file-list="imgList7" multiple
  1956. ref="upload7" :class="{ styleB: imgList7.length === 1 }">
  1957. <img v-show="imgList7.length == 0" src="../../../../static/userfront.png"
  1958. style="width:100%;height:100%" />
  1959. <div slot="file" slot-scope="{file}">
  1960. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1961. <span class="el-upload-list__item-actions">
  1962. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList7')">
  1963. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1964. <i class="el-icon-delete"></i>
  1965. </span>
  1966. </span>
  1967. </div>
  1968. </el-upload>
  1969. </div>
  1970. <div class="aaa">
  1971. <span>2.被保人身份证(反面)</span>
  1972. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1973. :on-change="file => drivingupload(file, 'imageList4', 'imgList8', 'D04')" :file-list="imgList8" multiple
  1974. ref="upload8" :class="{ styleB: imgList8.length === 1 }">
  1975. <img v-show="imgList8.length == 0" src="../../../../static/userback.png" 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', 'imgList8')">
  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>3.营业执照</span>
  1989. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1990. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1991. <div slot="file" slot-scope="{file}">
  1992. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1993. <span class="el-upload-list__item-actions">
  1994. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1995. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1996. <i class="el-icon-delete"></i>
  1997. </span>
  1998. </span>
  1999. </div>
  2000. </el-upload>
  2001. </div>
  2002. </div>
  2003. <div class="flex" id="relationship">
  2004. <div class="aaa">
  2005. <span>1.关系证明</span>
  2006. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  2007. :on-change="file => drivingupload(file, 'imageList5', 'imgList11', 'GX00')" :file-list="imgList11"
  2008. multiple ref="upload3" :class="{ styleB: imgList11.length === 1 }">
  2009. <img v-show="imgList11.length == 0" src="../../../../static/userfront.png"
  2010. style="width:100%;height:100%" />
  2011. <div slot="file" slot-scope="{file}">
  2012. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2013. <span class="el-upload-list__item-actions">
  2014. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList11')">
  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. </el-col>
  2024. </el-row>
  2025. <span slot="footer" class="dialog-footer">
  2026. <el-button size="small" @click="imageUploaddialogVisible = false">取 消</el-button>
  2027. <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
  2028. </span>
  2029. </el-dialog>
  2030. <div v-if="isLetter" class="flex j-c a-c" :class="{
  2031. 'footer': true,
  2032. 'shadow': !isBottom
  2033. }">
  2034. <el-button size="small" @click="add()">录下一单</el-button>
  2035. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  2036. </div>
  2037. <div v-else style="text-align: center">
  2038. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  2039. </div>
  2040. <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter">
  2041. <div>
  2042. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" @click="handleScroll('Car')" />
  2043. </div>
  2044. <div>
  2045. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" @click="handleScroll('insurance')" />
  2046. </div>
  2047. <div>
  2048. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" @click="handleScroll('more')" />
  2049. </div>
  2050. <div>
  2051. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" @click="handleScroll('company')" />
  2052. </div>
  2053. </div>
  2054. <el-dialog title="核保信息" :visible.sync="underwritingdialogVisible" width="30%">
  2055. <div class="flex j-s f-c">
  2056. <div style="font-size: 18px;color: #D42426;font-weight:700;padding: 10px 30px;" v-if="orderstatus == '2'">
  2057. 订单状态:已核保待缴费</div>
  2058. </div>
  2059. <span slot="footer" class="dialog-footer" v-if="orderstatus == '2'">
  2060. <el-button style="width: 100px;" type="primary" size="small"
  2061. @click="Payment(companyId, queryOrders.inscompany)">缴费二维码</el-button>
  2062. </span>
  2063. </el-dialog>
  2064. <el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
  2065. <div class="flex a-c u-f-sa" v-if="renewalCodeJqImg">
  2066. <span>交强转保确认码</span>
  2067. <div class="flex a-c f-c">
  2068. <img :src="renewalCodeJqImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2069. <el-input v-model="renewalCodeJq" placeholder="请输入确认码" style="width: 150px"></el-input>
  2070. </div>
  2071. </div>
  2072. <div class="flex a-c u-f-sa" v-if="renewalCodeSyImg">
  2073. <span>商业转保确认码</span>
  2074. <div class="flex a-c f-c">
  2075. <img :src="renewalCodeSyImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2076. <el-input v-model="renewalCodeSy" placeholder="请输入确认码" style="width: 150px"></el-input>
  2077. </div>
  2078. </div>
  2079. <span slot="footer" class="dialog-footer">
  2080. <el-button size="small" @click="renewalCodedialogVisible = false">取 消</el-button>
  2081. <el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
  2082. </span>
  2083. </el-dialog>
  2084. <el-dialog :title="contributingState ? '选择特约' : '提交核保'" :visible.sync="hbsubmitdialogVisible" width="1200px">
  2085. <div style="margin-bottom: 20px;font-weight: bold;">特约选择</div>
  2086. <el-table size="small" :data="zijinengageListData" border v-loading="contributingLoading"
  2087. @select="zijinengageChange" @select-all="zijinengageChangeAll" ref="expandTablePro" highlight-current-row
  2088. @cell-dblclick="zijincellDblclick" :cell-class-name="tableCellClassName"
  2089. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  2090. <el-table-column type="selection" width="55"></el-table-column>
  2091. <el-table-column prop="clauseCode" :width="80" label="特约代码" align="center"></el-table-column>
  2092. <el-table-column v-if="contributingState" :width="100" prop="riskName" label="特约险种"
  2093. align="center"></el-table-column>
  2094. <el-table-column prop="clauseName" label="特约名称" align="center"></el-table-column>
  2095. <el-table-column prop="clauseContent" label="特约内容">
  2096. <template slot-scope="scope">
  2097. <el-input @blur="hideInput" size="small" type="textarea" :ref="scope.row.index + ',' + scope.column.index"
  2098. v-model="scope.row.clauseContent"
  2099. v-if="scope.row.index + ',' + scope.column.index == currentCell && scope.row.modifyFlag == '1'"></el-input>
  2100. <span v-else>{{ scope.row.clauseContent }}</span>
  2101. </template>
  2102. </el-table-column>
  2103. </el-table>
  2104. <span slot="footer" class="dialog-footer">
  2105. <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
  2106. <el-button v-if="contributingState" size="small" type="primary"
  2107. @click="hbsubmitdialogVisible = false">确定</el-button>
  2108. <el-button v-else size="small" type="primary" @click="hbsubmit">提交核保</el-button>
  2109. </span>
  2110. </el-dialog>
  2111. <!-- 报价单 -->
  2112. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  2113. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  2114. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
  2115. <el-dialog :visible.sync="redictInfodialogVisible" width="70%">
  2116. <el-table :data="redictInfoMsg" style="width: 100%">
  2117. <el-table-column prop="description" label="审核意见"></el-table-column>
  2118. <el-table-column prop="opinion" label="备注"></el-table-column>
  2119. </el-table>
  2120. </el-dialog>
  2121. </div>
  2122. </template>
  2123. <script>
  2124. let _self;
  2125. import QRCode from "qrcodejs2";
  2126. import Cookies from "js-cookie";
  2127. import CommonUtil from "@/utils/comutil.js";
  2128. import {
  2129. getAgeByIdCard,
  2130. searchkey,
  2131. addressCode,
  2132. getGenderByIdCard
  2133. } from "@/utils/validate.js";
  2134. import citydata from "@/assets/js/citydata.js";
  2135. // import yongchengData from '../../assets/js/yongchengData';
  2136. import { regionData, codeToText } from "element-china-area-data";
  2137. import { base64ToPath } from "@/common/image-tools-base64.js";
  2138. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  2139. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  2140. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  2141. export default {
  2142. inject: ["reload"],
  2143. name: "qrCode",
  2144. data() {
  2145. var checkpurchasePrice = (rule, value, callback) => {
  2146. if (!value) {
  2147. callback(new Error("新车购置价不能为空"));
  2148. } else if (value == 0) {
  2149. callback(new Error("新车购置价不能为零"));
  2150. } else {
  2151. callback();
  2152. }
  2153. };
  2154. var checkframeNo = (rule, value, callback) => {
  2155. if (value.length < 17) {
  2156. callback(new Error("车架号不足17位"));
  2157. } else if (
  2158. value.indexOf("I") != "-1" ||
  2159. value.indexOf("O") != "-1" ||
  2160. value.indexOf("Q") != "-1"
  2161. ) {
  2162. callback(new Error("车架号不能包含(I O Q)三个字母"));
  2163. } else {
  2164. callback();
  2165. }
  2166. };
  2167. var carPhoneValid = (rule, value, callback) => {
  2168. const plateNumber = /^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1})$/;
  2169. if (!value) {
  2170. callback(new Error("请输入车牌号"));
  2171. } else if (plateNumber.test(value)) {
  2172. callback();
  2173. } else {
  2174. callback(new Error("请输入正确的车牌号"));
  2175. }
  2176. };
  2177. return {
  2178. watermarkedImage: '',
  2179. redictInfoMsg: [],
  2180. redictInfodialogVisible: false,
  2181. qrcodeWidth: "180",
  2182. qrcodeHeight: "180",
  2183. activeName: "1",
  2184. isTaxSourceModel: "",
  2185. tabLiIndex: 0,
  2186. tabLimenu: [
  2187. {
  2188. name: "车辆信息",
  2189. scroll: "vehicle"
  2190. },
  2191. {
  2192. name: "车主信息",
  2193. scroll: "owner"
  2194. },
  2195. {
  2196. name: "投保人信息",
  2197. scroll: "applicant"
  2198. },
  2199. {
  2200. name: "被保人信息",
  2201. scroll: "insured"
  2202. },
  2203. {
  2204. name: "关系证明",
  2205. scroll: "relationship"
  2206. }
  2207. ],
  2208. packageValue: "",
  2209. packageOptions: [],
  2210. zhongmeitemplateSelection: "", //中煤驾意险产品选中值
  2211. zhongmeiInsuranceData: [], //中煤驾意险产品列表数据
  2212. zhongmeiInsuranceDataTable: [], //中煤驾意险产品明细方案数据
  2213. zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
  2214. currentCell: null,
  2215. feeDetailInfo: [], //费用明细信息
  2216. immediatelyValue: false,
  2217. isRetractZJ: false,
  2218. isRetractHB: false,
  2219. isRetractZM: false,
  2220. isRetractASTP: false,
  2221. isRetractZA: false,
  2222. isRetractYC: false,
  2223. isRetractRS: false,
  2224. anshengInsurancetype: "",
  2225. iscCrownerShow: false,
  2226. isApplicantShow: false,
  2227. isInsuredShow: false,
  2228. formInline: {},
  2229. anshengtemplateSelection: "", //安盛
  2230. anshengInsuranceData: [], //安盛驾意险
  2231. anshengInsuranceDataTable: [], //安盛驾意险
  2232. anshengaccidentalDrivingVo: {}, //安盛驾意险
  2233. hengbangtemplateSelection: "", //恒邦
  2234. hengbangInsuranceData: [], //恒邦驾意险
  2235. hengbangInsuranceDataTable: [],
  2236. hengbangaccidentalDrivingVo: {}, //恒邦驾意险
  2237. insuranceHN: "", //华农
  2238. huanongInsuranceData: [], //华农驾意险
  2239. huanongInsuranceDataTable: [],
  2240. huanongaccidentalDrivingVo: {}, //华农驾意险
  2241. renshouaccidentalDrivingVo: {}, //人寿意外险
  2242. renshouInsuranceData: [], //-人寿意外险list
  2243. ziJinInsuranceData: [], //-紫金意外险list
  2244. zhonganInsuranceData: [], //众安驾意险
  2245. zhonganaccidentalDrivingVo: {}, //众安驾意险
  2246. zijinInsuranceDataTable: [],
  2247. zijintemplateSelection: "",
  2248. accidentalDrivingVo: [], //-紫金意外险传参
  2249. zijinengageListData: [], //紫金特约
  2250. zijinengageList: [], //紫金特约
  2251. // ------------紫金意外险
  2252. renshoutemplateSelection: "", //人寿
  2253. renshouInsuranceDataTable: [],
  2254. zhongantemplateSelection: "", //众安
  2255. zhonganInsuranceDataTable: [],
  2256. taipingtemplateSelection: "", //太平
  2257. taipingInsuranceData: [], //太平驾意险
  2258. TPDrivingChangeInsuranceData: [],
  2259. taipingaccidentalDrivingVo: {}, //太平驾意险
  2260. licenseplate: true,
  2261. calculateLoading: false, //保费计算按钮 节流
  2262. accidentForm: {
  2263. quantity: "1",
  2264. sumPremium: 0
  2265. }, //永诚意外险内容
  2266. accidentFormHN: {
  2267. allQuantity: "1",
  2268. quantity:'1'
  2269. }, //华农意外险内容
  2270. yongchengaccidentDataList: [], //永诚意外险
  2271. yongchengtemplateSelection:'',
  2272. guoRenaccidentDataList: [], //国任意外险
  2273. guoRenInsuranceDataTable: [],
  2274. guoRenaccidentDataListChild: [],
  2275. guoRenaccidentalDrivingVo: {}, //国任驾意险
  2276. dajiatemplateSelection: "",
  2277. dajiaInsuranceData: [], //大家意外险
  2278. dajiaInsuranceDataTable: [],
  2279. dajiaaccidentalDrivingVo: {},
  2280. yongchengInsuranceDataTable: [],
  2281. guoRenaccidentLoading: false,
  2282. contributingLoading: false,
  2283. guoRenaccidentPremium: "",
  2284. guoRenaccidentForm: {
  2285. quantity: "1",
  2286. sumPremium: 0
  2287. }, //国任意外险内容
  2288. accidentFormZM: {
  2289. quantity: "1",
  2290. sumPremium: 0
  2291. }, //中煤意外险内容
  2292. boHaiaccidentDataList: [], //渤海意外险
  2293. boHaiaccidentForm: {
  2294. copies: "1",
  2295. policyNum: 0
  2296. },
  2297. accidentLoadingbh: false,
  2298. bohaiInsuranceDataTable: [],
  2299. accidentPremium: "",
  2300. accidentPremiumZM: "",
  2301. contributingState: false, //是否为国任特约
  2302. pickerOptions: {
  2303. disabledDate(time) {
  2304. //若选择的日期小于当前日期(包含今天)
  2305. return time.getTime() > Date.now();
  2306. //若选择的日期大于当前日期(不包含今天): time.getTime() < Date.now()
  2307. //若选择的日期小于当前日期(不包含今天): time.getTime() > Date.now() - 8.64e7
  2308. //若选择的日期小于等于当前日期(包含今天): time.getTime() > Date.now()
  2309. }
  2310. },
  2311. attributionform: {
  2312. //续保查询数据
  2313. configure: [],
  2314. companyId: ""
  2315. },
  2316. continuousAction: [], //续保配置项
  2317. //永诚转保确认码
  2318. cqryCdeJq: "",
  2319. cqryCdeSy: "",
  2320. renewalCodeJq: "", //交强确认码
  2321. renewalCodeSy: "", //商业确认码
  2322. renewalCodeJqImg: "", //交强图片
  2323. renewalCodeSyImg: "", //商业图片
  2324. //-----------------
  2325. showViewer: false,
  2326. transferDateShow: false, //转移登记日期
  2327. yonganchecked: false, //永安驾意险
  2328. renbaochecked: false, //人保驾意险
  2329. zhongmeichecked: false, //中煤驾意险
  2330. hengbangchecked: false, //恒邦驾意险
  2331. yongchengchecked: false, //永诚驾意险
  2332. yonganDrivinglist: [],
  2333. renbaoDrivinglist: [],
  2334. zhongmeiDrivinglist: [],
  2335. hengbangDrivinglist: [],
  2336. yongchengDrivinglist: [],
  2337. tbczcarShow: true, //投保人同车主
  2338. bbczcarShow: false, //被保人同车主
  2339. bbtbcarShow: true, //被保人同投保人
  2340. imageUploadShow: true, //上传影像显示
  2341. ProViewImg: "", //预览图片
  2342. carfrontImg: "", //行驶证正面
  2343. carbackImg: "", //行驶证背面
  2344. userfrontImg: "", //身份证正面
  2345. userbackImg: "", //身份证背面
  2346. businessImg: "",
  2347. CarFrontFile: "", //车正面文件流
  2348. CarBackFile: "", //车背面文件流
  2349. C02File: "",
  2350. D02File: "",
  2351. C03File: "",
  2352. D03File: "",
  2353. C04File: "",
  2354. D04File: "",
  2355. userIndex: 1, //区分三种人员
  2356. TabName: "car", //默认选项卡
  2357. value1: "",
  2358. chexingdialogVisible: false, //车型选择 显示/隐藏
  2359. sbdmdialogVisible: false, //车型车辆识别代码选择 显示/隐藏
  2360. codedialogVisible: false, //二维码 显示/隐藏
  2361. codedialogVisiblePro: false,
  2362. uploadcardialogVisible: false, //行驶证识别 显示/隐藏
  2363. uploaduserdialogVisible: false, //身份证识别 显示/隐藏
  2364. imageUploaddialogVisible: false, //影像上传 显示/隐藏
  2365. underwritingdialogVisible: false, //核保信息 显示/隐藏
  2366. renewalCodedialogVisible: false, //转保确认码输入
  2367. hbsubmitdialogVisible: false, //核保弹框
  2368. Carinsurance: {
  2369. jqinsurance: "1", //交强险
  2370. syinsurance: "1" //商业险
  2371. },
  2372. jqchecked: true,
  2373. sychecked: false,
  2374. jqstartDate: "", //交强时间
  2375. jqendDate: "", //交强时间
  2376. systartDate: "", //商业时间
  2377. syendDate: "", //商业时间
  2378. loading: false, //加载事件
  2379. reslist: [], //车型列表
  2380. userId: "", //出单工号
  2381. carInfo: {
  2382. powerScale: "", ///功率
  2383. licenseNo: "", //车牌号
  2384. brandName: "", //车辆品牌型号
  2385. vinNo: "", //车架号
  2386. engineNo: "", //发动机号
  2387. modelCode: "", //车型编码
  2388. seatCount: null, //核定载客量 核定载人数
  2389. purchasePrice: null, //新车购置价最低,行业实际价值,协商价值
  2390. carBrand: "", //车型品牌
  2391. ciCarName: "", //行业车型名称
  2392. ciModelCode: "", //行业车型编码
  2393. completeKerbMass: "", //整备质量
  2394. exhaustScale: "", //排量
  2395. factory: "", //工厂名称
  2396. factoryid: "", //工厂编码
  2397. frameNo: "", //车架号
  2398. licenseTypeCode: "02", //号牌种类
  2399. vehicleclass: "", //车辆类型
  2400. familyName: "", //车型
  2401. modelcname: "", //车型名称
  2402. powertypecode: "", //燃料类型编码
  2403. vehicleweight: "", //总质量
  2404. limitLoad: "", //核定载质量
  2405. caryear: null, //年款
  2406. cimodelclass: "A0", //车辆种类
  2407. energyType: "0", //能源类型
  2408. enginedesc: "", //排量
  2409. registerDate: "", //注册日期
  2410. issueDate: "", //发证日期
  2411. transferFlag: 0, //过户标志
  2412. transferFlagBi: false, //商业险是否过户
  2413. transferDate: "", //过户日期
  2414. loanStatus: 0, //贷款标志
  2415. firstBeneMan: "", //第一受益人
  2416. noLicenseFlag: false, //是否新车
  2417. cartype: "", //客车A0 货车H0
  2418. carnature: "02", //使用性质
  2419. vehicleUse: "05",
  2420. property: "1" //所属性质 1个人 2企业 3个人
  2421. },
  2422. carform: {
  2423. carOwner: "", //车主
  2424. licenseNo: "", //车牌号
  2425. modelcname: "", //车辆品牌型号
  2426. frameNo: "", //车架号
  2427. engineNo: "", //发动机号
  2428. registerDate: "", //注册日期
  2429. issueDate: "", //发证日期
  2430. grossMass: "", //总质量
  2431. unladenMass: "", //整备质量
  2432. limitLoad: "", //核定载质量
  2433. approvedPassengersCapacity: "" //核定载客数
  2434. },
  2435. ownerInfoform: {
  2436. name: "",
  2437. identifyType: "",
  2438. identifyNumber: "",
  2439. age: "", //年龄
  2440. gender: "", //性别
  2441. addr: "",
  2442. email: "",
  2443. mobile: "",
  2444. identifyValidDate: "", //有效期起期
  2445. identifyValidEndDate: "" //有效期止期
  2446. // province: "",//省
  2447. // city: "",//市
  2448. // county: "",//县
  2449. },
  2450. riskList: [], //险种大类信息
  2451. kindList: [], //商业险险别
  2452. ownerInfo: {
  2453. //车主
  2454. name: "", //姓名
  2455. identifyType: "01", //身份证类型
  2456. identifyNumber: "", //身份证号
  2457. age: "", //年龄
  2458. gender: "", //性别
  2459. addr: "", //地址
  2460. email: "", //邮箱
  2461. mobile: "", //电话
  2462. identifyValidDate: "", //有效期起期
  2463. identifyValidEndDate: "", //有效期止期
  2464. // province: "",//省
  2465. // city: "",//市
  2466. // county: "",//县
  2467. provinceData: [] //省市区
  2468. },
  2469. policyHolderInfo: {
  2470. //投保人
  2471. name: "", //姓名
  2472. identifyType: "01", //身份证类型
  2473. identifyNumber: "", //身份证号
  2474. age: "", //年龄
  2475. gender: "", //性别
  2476. addr: "", //地址
  2477. email: "", //邮箱
  2478. mobile: "", //电话
  2479. identifyValidDate: "", //有效期起期
  2480. identifyValidEndDate: "", //有效期止期
  2481. // province: "",//省
  2482. // city: "",//市
  2483. // county: "",//县
  2484. provinceData: [] //省市区
  2485. },
  2486. insuredPersonInfo: {
  2487. //被保人
  2488. name: "", //姓名
  2489. identifyType: "01", //身份证类型
  2490. identifyNumber: "", //身份证号
  2491. age: "", //年龄
  2492. gender: "", //性别
  2493. addr: "", //地址
  2494. email: "", //邮箱
  2495. mobile: "", //电话
  2496. identifyValidDate: "", //有效期起期
  2497. identifyValidEndDate: "", //有效期止期
  2498. provinceData: [] //省市区
  2499. // province: "",//省
  2500. // city: "",//市
  2501. // county: "",//县
  2502. },
  2503. //车船税form
  2504. vehicleAndVesselTaxForm: {
  2505. taxRelifFlag: "1", //类型
  2506. identifyNumber: "", //纳税人识别号
  2507. taxpayerIdentifier: "01", //纳税人证件类型
  2508. taxpayerName: "", //纳税人名称
  2509. extendChar2: "", //减免税凭证号
  2510. paidFreeCertificate: "", //完税凭证号
  2511. relifReason: "", //减免税原因
  2512. taxComCode: "", //税务机关代码
  2513. taxComName: "", ///税务机关名称
  2514. taxDocumentDate: "", //完税日期
  2515. taxPaidAreaCode: "", //完税凭证地区代码
  2516. taxRelief: "" //减税比例
  2517. },
  2518. //车辆用途列表
  2519. vehicleList: [],
  2520. //能源种类列表
  2521. rules: {
  2522. extendChar2: [
  2523. { required: true, message: "请输入减免税凭证号", trigger: "blur" }
  2524. ],
  2525. paidFreeCertificate: [
  2526. { required: true, message: "请输入完税凭证号", trigger: "blur" }
  2527. ],
  2528. relifReason: [
  2529. { required: true, message: "请输入减免税原因", trigger: "blur" }
  2530. ],
  2531. taxComCode: [
  2532. { required: true, message: "请输入税务机关代码", trigger: "blur" }
  2533. ],
  2534. taxComName: [
  2535. { required: true, message: "请输入税务机关名称", trigger: "blur" }
  2536. ],
  2537. taxDocumentDate: [
  2538. { required: true, message: "请输入完税日期", trigger: "blur" }
  2539. ],
  2540. taxPaidAreaCode: [
  2541. { required: true, message: "请选择完税地区", trigger: "blur" }
  2542. ],
  2543. taxRelief: [
  2544. { required: true, message: "请输入减税比例", trigger: "blur" }
  2545. ],
  2546. taxpayerName: [
  2547. { required: true, message: "请输入纳税人名称", trigger: "blur" }
  2548. ],
  2549. taxpayerIdentifier: [
  2550. { required: true, message: "请选择证件类型", trigger: "blur" }
  2551. ],
  2552. taxRelifFlag: [
  2553. { required: true, message: "请选择纳税类型", trigger: "blur" }
  2554. ],
  2555. energyType: [
  2556. { required: true, message: "请选择能源种类", trigger: "blur" }
  2557. ],
  2558. cimodelclass: [
  2559. { required: true, message: "请选择车辆种类", trigger: "blur" }
  2560. ],
  2561. carnature: [
  2562. { required: true, message: "请选择使用性质", trigger: "blur" }
  2563. ],
  2564. cartype: [
  2565. { required: true, message: "请选择车辆类型", trigger: "blur" }
  2566. ],
  2567. vehicleUse: [
  2568. { required: true, message: "请选择车辆用途", trigger: "blur" }
  2569. ],
  2570. brandName: [
  2571. { required: true, message: "请填写品牌型号", trigger: "blur" }
  2572. ],
  2573. licenseNo: [
  2574. { max: 8, message: "最多八个字符", trigger: "blur" },
  2575. { required: true, validator: carPhoneValid, trigger: "blur" }
  2576. ],
  2577. frameNo: [{ validator: checkframeNo, trigger: "blur" }],
  2578. engineNo: [
  2579. { required: true, message: "请填写发动机号", trigger: "blur" }
  2580. ],
  2581. purchasePrice: [
  2582. { required: true, validator: checkpurchasePrice, trigger: "blur" }
  2583. ],
  2584. registerDate: [
  2585. { required: true, message: "请选择注册时间", trigger: "blur" }
  2586. ],
  2587. issueDate: [
  2588. { required: true, message: "请选择发证日期", trigger: "blur" }
  2589. ],
  2590. transferDate: [
  2591. { required: true, message: "请选择转移登记日期", trigger: "blur" }
  2592. ],
  2593. seatCount: [
  2594. { required: true, message: "请输入座位数", trigger: "blur" }
  2595. ],
  2596. completeKerbMass: [
  2597. { required: true, message: "请输入整备质量", trigger: "blur" }
  2598. ],
  2599. name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
  2600. // identifyNumber: [
  2601. // { required: true, message: "请填写证件号", trigger: "blur" },
  2602. // { min: 18, max: 18, message: "长度在18个字符", trigger: "blur" },
  2603. // {
  2604. // 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]$/,
  2605. // message: "请输入正确的证件号",
  2606. // trigger: "blur"
  2607. // }
  2608. // ],
  2609. identifyValidDate: [
  2610. { required: true, message: "请选择起期", trigger: "blur" }
  2611. ],
  2612. identifyValidEndDate: [
  2613. { required: true, message: "请选择止期", trigger: "blur" }
  2614. ],
  2615. addr: [
  2616. { required: true, message: "请填写地址", trigger: "blur" },
  2617. { min: 8, message: "最少8个字符", trigger: "blur" }
  2618. ],
  2619. mobile: [
  2620. { required: true, message: "请填写手机号", trigger: "blur" },
  2621. { min: 11, max: 11, message: "长度在11个字符", trigger: "blur" },
  2622. {
  2623. pattern: /^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\d{8}$/,
  2624. message: "请输入正确的手机号",
  2625. trigger: "blur"
  2626. }
  2627. ],
  2628. email: [
  2629. { min: 10, max: 20, message: "最少10个字符", trigger: "blur" },
  2630. {
  2631. pattern: /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
  2632. message: "请输入正确的邮箱",
  2633. trigger: "blur"
  2634. }
  2635. ]
  2636. },
  2637. CIInsureList: {
  2638. //交强险
  2639. amount: "1",
  2640. amountDesc: "投保",
  2641. amtList: [
  2642. {
  2643. label: "不投保",
  2644. value: "0"
  2645. },
  2646. {
  2647. label: "投保",
  2648. value: "1"
  2649. }
  2650. ],
  2651. kindCode: "0507",
  2652. kindName: "交强险",
  2653. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  2654. },
  2655. BIInsureList: {
  2656. //商业险
  2657. amount: "0",
  2658. amountDesc: "投保",
  2659. amtList: [
  2660. {
  2661. label: "不投保",
  2662. value: "0"
  2663. },
  2664. {
  2665. label: "投保",
  2666. value: "1"
  2667. }
  2668. ],
  2669. kindCode: "0510",
  2670. kindName: "商业险",
  2671. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  2672. },
  2673. insureList: [
  2674. {
  2675. amount: "0",
  2676. amountDesc: "投保",
  2677. coveragePremium: 0,
  2678. amtList: [
  2679. {
  2680. label: "不投保",
  2681. value: "0"
  2682. },
  2683. {
  2684. label: "投保",
  2685. value: "1"
  2686. }
  2687. ],
  2688. kindCode: "A",
  2689. isMainRisk: true,
  2690. kindName: "机动车损失险",
  2691. desc:
  2692. "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。"
  2693. },
  2694. {
  2695. amount: "0",
  2696. amountDesc: "不投保",
  2697. coveragePremium: 0,
  2698. amtList: [
  2699. {
  2700. label: "不投保",
  2701. value: "0"
  2702. },
  2703. {
  2704. label: "10万",
  2705. value: "100000"
  2706. },
  2707. {
  2708. label: "15万",
  2709. value: "150000"
  2710. },
  2711. {
  2712. label: "20万",
  2713. value: "200000"
  2714. },
  2715. {
  2716. label: "30万",
  2717. value: "300000"
  2718. },
  2719. {
  2720. label: "50万",
  2721. value: "500000"
  2722. },
  2723. {
  2724. label: "100万",
  2725. value: "1000000"
  2726. },
  2727. {
  2728. label: "150万",
  2729. value: "1500000"
  2730. },
  2731. {
  2732. label: "200万",
  2733. value: "2000000"
  2734. },
  2735. {
  2736. label: "250万",
  2737. value: "2500000"
  2738. },
  2739. {
  2740. label: "300万",
  2741. value: "3000000"
  2742. },
  2743. {
  2744. label: "400万",
  2745. value: "4000000"
  2746. },
  2747. {
  2748. label: "500万",
  2749. value: "5000000"
  2750. },
  2751. {
  2752. label: "600万",
  2753. value: "6000000"
  2754. },
  2755. {
  2756. label: "800万",
  2757. value: "8000000"
  2758. },
  2759. {
  2760. label: "1000万",
  2761. value: "10000000"
  2762. }
  2763. ],
  2764. kindCode: "B",
  2765. isMainRisk: true,
  2766. kindName: "第三者责任险",
  2767. desc:
  2768. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。"
  2769. },
  2770. {
  2771. amount: "0",
  2772. amountDesc: "1万",
  2773. coveragePremium: 0,
  2774. amtList: [
  2775. {
  2776. label: "不投保",
  2777. value: "0"
  2778. },
  2779. {
  2780. label: "1万",
  2781. value: "10000"
  2782. },
  2783. {
  2784. label: "2万",
  2785. value: "20000"
  2786. },
  2787. {
  2788. label: "3万",
  2789. value: "30000"
  2790. },
  2791. {
  2792. label: "4万",
  2793. value: "40000"
  2794. },
  2795. {
  2796. label: "5万",
  2797. value: "50000"
  2798. },
  2799. {
  2800. label: "6万",
  2801. value: "60000"
  2802. },
  2803. {
  2804. label: "7万",
  2805. value: "70000"
  2806. },
  2807. {
  2808. label: "8万",
  2809. value: "80000"
  2810. },
  2811. {
  2812. label: "9万",
  2813. value: "90000"
  2814. },
  2815. {
  2816. label: "10万",
  2817. value: "100000"
  2818. },
  2819. {
  2820. label: "15万",
  2821. value: "150000"
  2822. },
  2823. {
  2824. label: "20万",
  2825. value: "200000"
  2826. },
  2827. {
  2828. label: "25万",
  2829. value: "250000"
  2830. },
  2831. {
  2832. label: "30万",
  2833. value: "300000"
  2834. },
  2835. {
  2836. label: "35万",
  2837. value: "350000"
  2838. },
  2839. {
  2840. label: "40万",
  2841. value: "400000"
  2842. },
  2843. {
  2844. label: "45万",
  2845. value: "450000"
  2846. },
  2847. {
  2848. label: "50万",
  2849. value: "500000"
  2850. }
  2851. ],
  2852. kindCode: "D3",
  2853. isMainRisk: true,
  2854. kindName: "司机责任险",
  2855. desc:
  2856. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  2857. },
  2858. {
  2859. amount: "0",
  2860. amountDesc: "1万",
  2861. coveragePremium: 0,
  2862. amtList: [
  2863. {
  2864. label: "不投保",
  2865. value: "0"
  2866. },
  2867. {
  2868. label: "1万",
  2869. value: "10000"
  2870. },
  2871. {
  2872. label: "2万",
  2873. value: "20000"
  2874. },
  2875. {
  2876. label: "3万",
  2877. value: "30000"
  2878. },
  2879. {
  2880. label: "4万",
  2881. value: "40000"
  2882. },
  2883. {
  2884. label: "5万",
  2885. value: "50000"
  2886. },
  2887. {
  2888. label: "6万",
  2889. value: "60000"
  2890. },
  2891. {
  2892. label: "7万",
  2893. value: "70000"
  2894. },
  2895. {
  2896. label: "8万",
  2897. value: "80000"
  2898. },
  2899. {
  2900. label: "9万",
  2901. value: "90000"
  2902. },
  2903. {
  2904. label: "10万",
  2905. value: "100000"
  2906. },
  2907. {
  2908. label: "15万",
  2909. value: "150000"
  2910. },
  2911. {
  2912. label: "20万",
  2913. value: "200000"
  2914. },
  2915. {
  2916. label: "25万",
  2917. value: "250000"
  2918. },
  2919. {
  2920. label: "30万",
  2921. value: "300000"
  2922. },
  2923. {
  2924. label: "35万",
  2925. value: "350000"
  2926. },
  2927. {
  2928. label: "40万",
  2929. value: "400000"
  2930. },
  2931. {
  2932. label: "45万",
  2933. value: "450000"
  2934. },
  2935. {
  2936. label: "50万",
  2937. value: "500000"
  2938. }
  2939. ],
  2940. kindCode: "D4",
  2941. isMainRisk: true,
  2942. kindName: "乘客责任险",
  2943. desc:
  2944. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  2945. },
  2946. {
  2947. amount: "0",
  2948. amountDesc: "不投保",
  2949. coveragePremium: 0,
  2950. amtList: [
  2951. {
  2952. label: "不投保",
  2953. value: "0"
  2954. },
  2955. {
  2956. label: "2千",
  2957. value: "2000"
  2958. },
  2959. {
  2960. label: "5千",
  2961. value: "5000"
  2962. },
  2963. {
  2964. label: "1万",
  2965. value: "10000"
  2966. },
  2967. {
  2968. label: "2万",
  2969. value: "20000"
  2970. }
  2971. ],
  2972. desc:
  2973. "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
  2974. isMainRisk: false,
  2975. kindCode: "L",
  2976. kindName: "车身划痕险",
  2977. mainRiskCodeList: "A"
  2978. },
  2979. {
  2980. amount: "0",
  2981. amountDesc: "不投保",
  2982. coveragePremium: 0,
  2983. amtList: [
  2984. {
  2985. label: "不投保",
  2986. value: "0"
  2987. },
  2988. {
  2989. label: "5%",
  2990. value: "5"
  2991. },
  2992. {
  2993. label: "10%",
  2994. value: "10"
  2995. },
  2996. {
  2997. label: "15%",
  2998. value: "15"
  2999. },
  3000. {
  3001. label: "20%",
  3002. value: "20"
  3003. }
  3004. ],
  3005. desc:
  3006. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3007. isMainRisk: false,
  3008. kindCode: "MJ1",
  3009. kindName: "绝对免赔率特约险(车损)",
  3010. mainRiskCodeList: "A"
  3011. },
  3012. {
  3013. amount: "0",
  3014. amountDesc: "不投保",
  3015. coveragePremium: 0,
  3016. amtList: [
  3017. {
  3018. label: "不投保",
  3019. value: "0"
  3020. },
  3021. {
  3022. label: "5%",
  3023. value: "5"
  3024. },
  3025. {
  3026. label: "10%",
  3027. value: "10"
  3028. },
  3029. {
  3030. label: "15%",
  3031. value: "15"
  3032. },
  3033. {
  3034. label: "20%",
  3035. value: "20"
  3036. }
  3037. ],
  3038. desc:
  3039. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3040. isMainRisk: false,
  3041. kindCode: "MJ2",
  3042. kindName: "绝对免赔率特约险(三者)",
  3043. mainRiskCodeList: "B"
  3044. },
  3045. {
  3046. amount: "0",
  3047. amountDesc: "不投保",
  3048. coveragePremium: 0,
  3049. amtList: [
  3050. {
  3051. label: "不投保",
  3052. value: "0"
  3053. },
  3054. {
  3055. label: "5%",
  3056. value: "5"
  3057. },
  3058. {
  3059. label: "10%",
  3060. value: "10"
  3061. },
  3062. {
  3063. label: "15%",
  3064. value: "15"
  3065. },
  3066. {
  3067. label: "20%",
  3068. value: "20"
  3069. }
  3070. ],
  3071. desc:
  3072. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3073. isMainRisk: false,
  3074. kindCode: "MJ3",
  3075. kindName: "绝对免赔率特约险(司机)",
  3076. mainRiskCodeList: "D3"
  3077. },
  3078. {
  3079. amount: "0",
  3080. amountDesc: "不投保",
  3081. coveragePremium: 0,
  3082. amtList: [
  3083. {
  3084. label: "不投保",
  3085. value: "0"
  3086. },
  3087. {
  3088. label: "5%",
  3089. value: "5"
  3090. },
  3091. {
  3092. label: "10%",
  3093. value: "10"
  3094. },
  3095. {
  3096. label: "15%",
  3097. value: "15"
  3098. },
  3099. {
  3100. label: "20%",
  3101. value: "20"
  3102. }
  3103. ],
  3104. desc:
  3105. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3106. isMainRisk: false,
  3107. kindCode: "MJ4",
  3108. kindName: "绝对免赔率特约险(乘客)",
  3109. mainRiskCodeList: "D4"
  3110. },
  3111. {
  3112. amount: "0",
  3113. amountDesc: "不投保",
  3114. coveragePremium: 0,
  3115. amtList: [
  3116. {
  3117. label: "不投保",
  3118. value: "0"
  3119. },
  3120. {
  3121. label: "1万",
  3122. value: "10000"
  3123. },
  3124. {
  3125. label: "2万",
  3126. value: "20000"
  3127. },
  3128. {
  3129. label: "4万",
  3130. value: "40000"
  3131. },
  3132. {
  3133. label: "5万",
  3134. value: "50000"
  3135. },
  3136. {
  3137. label: "8万",
  3138. value: "80000"
  3139. },
  3140. {
  3141. label: "10万",
  3142. value: "100000"
  3143. },
  3144. {
  3145. label: "20万",
  3146. value: "200000"
  3147. },
  3148. {
  3149. label: "30万",
  3150. value: "300000"
  3151. },
  3152. {
  3153. label: "50万",
  3154. value: "500000"
  3155. },
  3156. {
  3157. label: "100万",
  3158. value: "1000000"
  3159. },
  3160. {
  3161. label: "200万",
  3162. value: "2000000"
  3163. },
  3164. {
  3165. label: "300万",
  3166. value: "3000000"
  3167. }
  3168. ],
  3169. kindCode: "SY_FJ_YBW1",
  3170. isMainRisk: true,
  3171. kindName: "附加医保-三者",
  3172. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3173. },
  3174. {
  3175. amount: "0",
  3176. amountDesc: "不投保",
  3177. coveragePremium: 0,
  3178. amtList: [
  3179. {
  3180. label: "不投保",
  3181. value: "0"
  3182. },
  3183. {
  3184. label: "1万",
  3185. value: "10000"
  3186. },
  3187. {
  3188. label: "2万",
  3189. value: "20000"
  3190. },
  3191. {
  3192. label: "5万",
  3193. value: "50000"
  3194. },
  3195. {
  3196. label: "10万",
  3197. value: "100000"
  3198. }
  3199. ],
  3200. kindCode: "SY_FJ_YBW2",
  3201. isMainRisk: true,
  3202. kindName: "附加医保-座位险(乘客)",
  3203. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3204. },
  3205. {
  3206. amount: "0",
  3207. amountDesc: "不投保",
  3208. coveragePremium: 0,
  3209. amtList: [
  3210. {
  3211. label: "不投保",
  3212. value: "0"
  3213. },
  3214. {
  3215. label: "1万",
  3216. value: "10000"
  3217. },
  3218. {
  3219. label: "2万",
  3220. value: "20000"
  3221. },
  3222. {
  3223. label: "5万",
  3224. value: "50000"
  3225. },
  3226. {
  3227. label: "10万",
  3228. value: "100000"
  3229. }
  3230. ],
  3231. kindCode: "SY_FJ_YBW3",
  3232. isMainRisk: true,
  3233. kindName: "附加医保-座位险(司机)",
  3234. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3235. },
  3236. {
  3237. amount: "0",
  3238. amountDesc: "不投保",
  3239. coveragePremium: 0,
  3240. amtList: [
  3241. {
  3242. label: "不投保",
  3243. value: "0"
  3244. },
  3245. {
  3246. label: "50万",
  3247. value: "500000"
  3248. },
  3249. {
  3250. label: "100万",
  3251. value: "1000000"
  3252. },
  3253. {
  3254. label: "150万",
  3255. value: "1500000"
  3256. },
  3257. {
  3258. label: "200万",
  3259. value: "2000000"
  3260. },
  3261. {
  3262. label: "250万",
  3263. value: "2500000"
  3264. },
  3265. {
  3266. label: "300万",
  3267. value: "3000000"
  3268. },
  3269. {
  3270. label: "500万",
  3271. value: "5000000"
  3272. },
  3273. {
  3274. label: "1000万",
  3275. value: "10000000"
  3276. }
  3277. ],
  3278. desc:
  3279. "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
  3280. isMainRisk: false,
  3281. kindCode: "BD",
  3282. kindName: "法定节假日限额翻倍险",
  3283. mainRiskCodeList: "B"
  3284. },
  3285. {
  3286. amount: "0",
  3287. amountDesc: "不投保",
  3288. coveragePremium: 0,
  3289. amtList: [
  3290. {
  3291. label: "不投保",
  3292. value: "0"
  3293. },
  3294. {
  3295. label: "2次",
  3296. value: "2"
  3297. },
  3298. {
  3299. label: "7次",
  3300. value: "7"
  3301. },
  3302. {
  3303. label: "12次",
  3304. value: "12"
  3305. },
  3306. {
  3307. label: "17次",
  3308. value: "17"
  3309. },
  3310. {
  3311. label: "22次",
  3312. value: "22"
  3313. }
  3314. ],
  3315. desc: "道路救援服务特约条款",
  3316. isMainRisk: false,
  3317. kindCode: "TY1",
  3318. kindName: "道路救援服务特约条款"
  3319. },
  3320. {
  3321. amount: "0",
  3322. amountDesc: "不投保",
  3323. coveragePremium: 0,
  3324. desc: "车辆安全检测特约条款",
  3325. isMainRisk: false,
  3326. kindCode: "TY2",
  3327. kindName: "车辆安全检测特约条款"
  3328. },
  3329. {
  3330. amount: "0",
  3331. amountDesc: "不投保",
  3332. coveragePremium: 0,
  3333. desc: "代为驾驶服务特约条款",
  3334. isMainRisk: false,
  3335. kindCode: "TY3",
  3336. kindName: "代为驾驶服务特约条款"
  3337. },
  3338. {
  3339. amount: "0",
  3340. amountDesc: "不投保",
  3341. coveragePremium: 0,
  3342. desc: "代为送检服务特约条款",
  3343. isMainRisk: false,
  3344. kindCode: "TY4",
  3345. kindName: "代为送检服务特约条款"
  3346. }
  3347. ],
  3348. totalCompanyList: [], //报价保险公司
  3349. continuousCompanyList: [], //续保保险公司
  3350. quoteno: "", //报价号
  3351. orderno: "", //订单号
  3352. queryOrders: {
  3353. extendInfo: {},
  3354. carinfo: {},
  3355. ownerinfo: {},
  3356. applyinfo: {},
  3357. insureinfo: {}
  3358. }, //核保详情
  3359. inscompany: "", //保险公司名称
  3360. licenseNo: "", //车牌号
  3361. applyName: "", //车主名字
  3362. orderstatus: "", //订单状态
  3363. sumpremium: "", //保费合计
  3364. jqpremium: "", //交强
  3365. sypremium: "", //商业
  3366. jypremium: "", //驾意险
  3367. taxamount: "", //车船税
  3368. jqstartdate: "", //交强时间
  3369. systartdate: "", //商业时间
  3370. mobile: "", //投保人手机号
  3371. //影像回显列表
  3372. imgList1: [],
  3373. imgList2: [],
  3374. imgList3: [],
  3375. imgList4: [],
  3376. imgList5: [],
  3377. imgList6: [],
  3378. imgList7: [],
  3379. imgList8: [],
  3380. imgList9: [],
  3381. imgList10: [],
  3382. imgList11: [],
  3383. //影像上传列表
  3384. imageList1: [],
  3385. imageList2: [],
  3386. imageList3: [],
  3387. imageList4: [],
  3388. imageList5: [],
  3389. // 是否禁用上传
  3390. uploadDisabled: false,
  3391. href: "",
  3392. pageRequest: {
  3393. //归属查询
  3394. pageNum: 1,
  3395. pageSize: 20,
  3396. columnFilters: {
  3397. deptId: {
  3398. name: "deptId",
  3399. value: "9"
  3400. },
  3401. containsSubDept: {
  3402. name: "containsSubDept",
  3403. value: 1
  3404. },
  3405. usertype: {
  3406. name: "usertype",
  3407. value: null
  3408. },
  3409. status: {
  3410. name: "status",
  3411. value: "1"
  3412. },
  3413. id: {
  3414. name: "id",
  3415. value: ""
  3416. },
  3417. name: {
  3418. name: "name",
  3419. value: ""
  3420. },
  3421. mobile: {
  3422. name: "mobile",
  3423. value: ""
  3424. }
  3425. }
  3426. },
  3427. userform: {},
  3428. qrcode: null,
  3429. paycodeimg: "", //展示二维码
  3430. ImageUrldialogVisible: false,
  3431. paramsEdit: "",
  3432. companyId: "",
  3433. apiType: "",
  3434. insureMore: true,
  3435. // insureLength: 5,
  3436. HistoryList: [], //历史记录数据
  3437. image1: "",
  3438. image2: "",
  3439. historyRadio: "888",
  3440. sumseatCount: "", // 投保险种座位数
  3441. deptName: "",
  3442. isBottom: true,
  3443. logoImg: "", //报价单保险公司logo图
  3444. vehicleTypeoptions: [], //车辆种类
  3445. trafficManagementVehicleTypeoptions: [], //车辆类型
  3446. energyTypeoptions: [], //能源种类
  3447. taxRelifFlagoptions: [], //车船税类型
  3448. taxpayerIdentifieroptions: [], //纳税人证件类型
  3449. relifReasonoptions: [], //减免税原因代码
  3450. relifReasonoptions: [], //减免税原因代码
  3451. provinceSelect: [],
  3452. natureOfVehicleUseoptions: [],
  3453. businessVehicleUseoptions: [],
  3454. outOfBusinessVehicleUseoptions: [],
  3455. insOrderStatusoptions: [],
  3456. lastCompanyId: "",
  3457. apiInterfaceName: 'generateOrder'
  3458. };
  3459. },
  3460. watch: {
  3461. "carInfo.licenseNo": {
  3462. handler(val) {
  3463. if (val) {
  3464. this.carInfo.licenseNo = val.toUpperCase();
  3465. }
  3466. },
  3467. deep: true
  3468. },
  3469. "carInfo.frameNo": {
  3470. handler(val) {
  3471. if (val) {
  3472. this.carInfo.frameNo = val.toUpperCase();
  3473. }
  3474. },
  3475. deep: true
  3476. },
  3477. "carInfo.enginedesc": {
  3478. handler(val) {
  3479. if (val) {
  3480. this.carInfo.enginedesc = val.replace(/[A-Za-z]/g, "");
  3481. }
  3482. },
  3483. deep: true
  3484. },
  3485. "ownerInfo.mobile": {
  3486. handler(val) {
  3487. if (val) {
  3488. this.ownerInfo.mobile = val.replace(/\s/g, "");
  3489. }
  3490. },
  3491. deep: true
  3492. },
  3493. "policyHolderInfo.mobile": {
  3494. handler(val) {
  3495. if (val) {
  3496. this.policyHolderInfo.mobile = val.replace(/\s/g, "");
  3497. }
  3498. },
  3499. deep: true
  3500. },
  3501. "insuredPersonInfo.mobile": {
  3502. handler(val) {
  3503. if (val) {
  3504. this.insuredPersonInfo.mobile = val.replace(/\s/g, "");
  3505. }
  3506. },
  3507. deep: true
  3508. },
  3509. "carInfo.engineNo": {
  3510. handler(val) {
  3511. if (val) {
  3512. this.carInfo.engineNo = val.replace(/[^\w-]/gi, "").toUpperCase();
  3513. }
  3514. },
  3515. deep: true
  3516. },
  3517. "carInfo.seatCount": {
  3518. handler(val) {
  3519. if (val) {
  3520. this.sumseatCount = val - 1;
  3521. }
  3522. },
  3523. deep: true
  3524. },
  3525. "policyHolderInfo.identifyNumber": {
  3526. handler(val) {
  3527. if (val) {
  3528. this.vehicleAndVesselTaxForm.identifyNumber = val;
  3529. }
  3530. },
  3531. deep: true
  3532. },
  3533. "policyHolderInfo.name": {
  3534. handler(val) {
  3535. if (val) {
  3536. this.vehicleAndVesselTaxForm.taxpayerName = val;
  3537. }
  3538. },
  3539. deep: true
  3540. }
  3541. },
  3542. props: {
  3543. isdisabled: {
  3544. type: Boolean,
  3545. default: true
  3546. },
  3547. isLetter: {
  3548. type: Boolean,
  3549. default: true
  3550. },
  3551. },
  3552. components: {
  3553. detailsDialog,
  3554. quotationDialog,
  3555. quotationDialogPro,
  3556. "el-image-viewer": () =>
  3557. import("element-ui/packages/image/src/image-viewer")
  3558. },
  3559. created() {
  3560. if (!this.isLetter) {
  3561. this.apiInterfaceName = 'ordergenerateOrder'
  3562. }
  3563. // this.commpanyList(); //获取保险公司
  3564. this.getDicType("taxRelifFlag"); //车船税类型
  3565. this.getDicType("taxpayerIdentifier"); //纳税人证件类型
  3566. this.getDicType("relifReason"); //减免税原因代码
  3567. this.getDicType("vehicleType"); //车辆种类
  3568. this.getDicType("trafficManagementVehicleType"); //车辆类型
  3569. this.getDicType("energyType"); //能源种类
  3570. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  3571. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  3572. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  3573. this.getDicType("insOrderStatus"); //状态
  3574. this.$api.letter.queryCompany().then(res => {
  3575. this.continuousCompanyList = res.data;
  3576. });
  3577. this.$api.letter.packageQuery().then(res => {
  3578. this.packageOptions = res.data;
  3579. });
  3580. localStorage.setItem("carInfo", JSON.stringify(this.carInfo));
  3581. localStorage.setItem("insureList", JSON.stringify(this.insureList));
  3582. //--归属信息获取--
  3583. var userId = Cookies.get("user");
  3584. if (userId == "admin") {
  3585. this.userId = "admin";
  3586. } else {
  3587. // this.userId = userId;
  3588. this.$api.user.getLoginUser().then(res => {
  3589. if (res.code == 200) {
  3590. this.userform = res.data;
  3591. this.$api.dept.getDeptById(res.data.deptId).then(res => {
  3592. this.deptName = res.data.name;
  3593. });
  3594. }
  3595. });
  3596. }
  3597. //--订单编辑回显--
  3598. // this.paramsEdit = this.$route.query.data; //接收参数
  3599. this.obtainProtocol(this.$route.query.data);
  3600. this.editingWay(this.$route.query.data)
  3601. },
  3602. mounted() {
  3603. this.onScroll();
  3604. window.addEventListener("scroll", this.onScroll);
  3605. },
  3606. destroyed() {
  3607. window.removeEventListener("scroll", this.onScroll);
  3608. },
  3609. beforeCreate() {
  3610. _self = this;
  3611. },
  3612. computed: {
  3613. issueDateOptions() {
  3614. return {
  3615. disabledDate: this.disabledDate
  3616. };
  3617. }
  3618. },
  3619. filters: {
  3620. cap(ele) {
  3621. return _self.insOrderStatusoptions.find(item => {
  3622. return item.dictValue === ele;
  3623. }).dictTag;
  3624. }
  3625. },
  3626. methods: {
  3627. editingWay(paramsEdit) {
  3628. if (paramsEdit) {
  3629. var _this = this;
  3630. this.jqchecked = false;
  3631. this.tbczcarShow = false;
  3632. this.bbtbcarShow = false;
  3633. this.bbczcarShow = false;
  3634. const {
  3635. carinfo,
  3636. ownerinfo,
  3637. applyinfo,
  3638. insureinfo,
  3639. quoteno,
  3640. orderno
  3641. } = paramsEdit;
  3642. _this.carInfo = carinfo;
  3643. if (_this.carInfo.carnature == "8A") {
  3644. _this.carInfo.carnature = "02";
  3645. _this.carInfo.vehicleUse = "05";
  3646. } else {
  3647. _this.carInfo.carnature;
  3648. _this.carInfo.vehicleUse;
  3649. }
  3650. _this.ownerInfo = ownerinfo;
  3651. _this.policyHolderInfo = applyinfo;
  3652. _this.insuredPersonInfo = insureinfo;
  3653. _this.quoteno = quoteno;
  3654. _this.orderno = orderno;
  3655. _this.tbczcarShow = applyinfo.owner;
  3656. _this.bbczcarShow = insureinfo.owner;
  3657. _this.bbtbcarShow = insureinfo.insuranceHolder;
  3658. _this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber);
  3659. _this.policyHolderInfo.age = getAgeByIdCard(
  3660. _this.policyHolderInfo.identifyNumber
  3661. );
  3662. _this.insuredPersonInfo.age = getAgeByIdCard(
  3663. _this.insuredPersonInfo.identifyNumber
  3664. );
  3665. if (paramsEdit.carinfo.transferFlag) {
  3666. this.transferDateShow = true;
  3667. }
  3668. paramsEdit.risk.map(ele => {
  3669. if (ele.riskCode == "0507") {
  3670. _this.jqchecked = true;
  3671. this.protocolJudge('0507', true)
  3672. // _this.jqstartDate = ele.startDate;
  3673. // _this.jqendDate = ele.endDate;
  3674. _this.jqstartDate = this.transformTime1();
  3675. _this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3676. } else if (ele.riskCode == "0510") {
  3677. _this.sychecked = true;
  3678. this.protocolJudge('0510', true)
  3679. // _this.systartDate = ele.startDate;
  3680. // _this.syendDate = ele.endDate;
  3681. _this.systartDate = this.transformTime1();
  3682. _this.syendDate = this.oneYearPast1(this.systartDate);
  3683. _this.insureList.map(eleA => {
  3684. paramsEdit.king.map(eleB => {
  3685. if (eleA.kindCode == eleB.kindCode) {
  3686. switch (eleB.kindCode) {
  3687. case "D4":
  3688. case "SY_FJ_YBW2":
  3689. eleA.amount = JSON.stringify(eleB.unitAmount);
  3690. break;
  3691. case "MJ1":
  3692. case "MJ2":
  3693. case "MJ3":
  3694. case "MJ4":
  3695. eleA.amount = eleB.deductibleRate;
  3696. case "A":
  3697. eleA.amount = JSON.stringify(eleB.amount);
  3698. this.protocolJudge('A', true)
  3699. break;
  3700. default:
  3701. eleA.amount = JSON.stringify(eleB.amount);
  3702. }
  3703. }
  3704. });
  3705. });
  3706. }
  3707. });
  3708. // this.HistoryList = this.paramsEdit.insAreaCompanyList;
  3709. let params = {
  3710. orderNo: paramsEdit.orderno,
  3711. orderStatus: ""
  3712. };
  3713. this.$api.letter.queryQuoteHistory(params).then(res => {
  3714. res.data.forEach(item => {
  3715. if (item.accidentInfo) {
  3716. item.accidentInfo.constructor === Object
  3717. ? [item.accidentInfo]
  3718. : item.accidentInfo;
  3719. }
  3720. });
  3721. this.HistoryList = res.data;
  3722. });
  3723. //--获取影像信息--
  3724. _this.imageEcho(this.quoteno);
  3725. // this.commpanyList()
  3726. //--显示影像按钮--
  3727. _this.imageUploadShow = true;
  3728. } else {
  3729. this.jqstartDate = this.transformTime1();
  3730. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3731. this.systartDate = this.transformTime1();
  3732. this.syendDate = this.oneYearPast1(this.systartDate);
  3733. }
  3734. },
  3735. //手机号复制粘贴处理
  3736. handlePaste(e, mobileKey) {
  3737. e.preventDefault(); //阻止默认行为
  3738. const clipboardData = e.clipboardData || window.clipboardData; //获取剪切板内容
  3739. let pastedText = clipboardData.getData("text").replace(/\s+/g, ""); //获取纯文本并处理空格
  3740. // 截取前11个字符,以确保不会超过手机号长度限制
  3741. pastedText = pastedText.substring(0, 11);
  3742. // 使用Vue.nextTick确保更新发生在DOM更新之后
  3743. this.$nextTick(() => {
  3744. this[mobileKey].mobile = pastedText;
  3745. });
  3746. },
  3747. // licenseNoFun(data){
  3748. // if(data && this.carInfo.enginedesc){
  3749. // this.obtainProtocol()
  3750. // }
  3751. // },
  3752. // enginedescFun(data){
  3753. // if(data && this.carInfo.licenseNo){
  3754. // this.obtainProtocol()
  3755. // }
  3756. // },
  3757. packageChange(val) {
  3758. let arr = this.packageOptions.find(ele => ele.id == val).kind;
  3759. if (arr.length > 0) {
  3760. this.insureList.map(eleA => {
  3761. arr.map(eleB => {
  3762. if (eleA.kindCode == eleB.kindCode) {
  3763. switch (eleB.kindCode) {
  3764. case "D4":
  3765. case "SY_FJ_YBW2":
  3766. eleA.amount = JSON.stringify(eleB.unitAmount);
  3767. break;
  3768. case "MJ1":
  3769. case "MJ2":
  3770. case "MJ3":
  3771. case "MJ4":
  3772. eleA.amount = eleB.deductibleRate;
  3773. break;
  3774. case "TY2":
  3775. case "TY3":
  3776. case "TY4":
  3777. eleA.amount = eleB.serviceTimes;
  3778. break;
  3779. default:
  3780. eleA.amount = JSON.stringify(eleB.amount);
  3781. }
  3782. }
  3783. });
  3784. });
  3785. } else {
  3786. this.insureList.map(eleA => {
  3787. eleA.amount = "0";
  3788. });
  3789. }
  3790. },
  3791. capType(val) {
  3792. if (val == "0") {
  3793. return "success";
  3794. }
  3795. if (val == "1") {
  3796. return "warning";
  3797. }
  3798. if (val == "2" || val == "3" || val == "4") {
  3799. return "danger";
  3800. }
  3801. },
  3802. handleCheckAllChange(ele) {
  3803. this.totalCompanyList.forEach((val, index) => {
  3804. ele ? (val.checked = true) : (val.checked = false);
  3805. // this.initchange(ele, val.id, val.cnName, index);
  3806. });
  3807. },
  3808. retractFun() {
  3809. this.isRetract = this.isRetract == false ? true : false;
  3810. },
  3811. //中煤意外险调整份数事件
  3812. ZMhandleChange(val) {
  3813. if (!val) {
  3814. this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3815. }
  3816. },
  3817. //中煤意外险选中对应意外险方案
  3818. // ZMHandleSelectionChange(val) {
  3819. // // if(val.length > 0&& val[0].quantity==undefined){
  3820. // // this.$message({ message: "请先填写投保份数再勾选!", type: "error", });
  3821. // // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3822. // // return false;
  3823. // // }
  3824. // if (val.length > 1) {
  3825. // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3826. // this.$refs.ZmMultipleTable[0].toggleRowSelection(val.pop()); //pop:最后一个
  3827. // } else {
  3828. // this.zhongmeiaccidentalDrivingVo = val[0]; //multipleSelection:当前选择的数组
  3829. // }
  3830. // },
  3831. //中煤意外险选中对应产品带出方案明细
  3832. zhongmeiInsuranceChange(index) {
  3833. //每次选中产品,清空之前选中的数据
  3834. this.zhongmeitemplateSelection=index
  3835. this.zhongmeiaccidentalDrivingVo = {};
  3836. this.zhongmeiInsuranceDataTable = [];
  3837. let data = this.zhongmeiInsuranceData.find(
  3838. val => val.projectCode == index
  3839. );
  3840. //把返回的方案明细放入展示数据对象中
  3841. this.accidentFormZM = Object.assign(this.accidentFormZM, data);
  3842. this.accidentFormZM.quantity = "1";
  3843. if (data && data.son) {
  3844. this.accidentPremiumZM = data.sumPremium;
  3845. this.zhongmeiInsuranceDataTable = data.son;
  3846. }
  3847. },
  3848. // 截图粘贴
  3849. copybjd() {
  3850. let that = this;
  3851. html2Canvas(document.getElementById("pdfContentsDiv"), {
  3852. allowTaint: true,
  3853. taintTest: false
  3854. }).then(function (canvas) {
  3855. let base64Data = "";
  3856. // let blob = null
  3857. base64Data = canvas.toDataURL("image/png", 1);
  3858. const date = new Date();
  3859. const saveInfo = {
  3860. download: date.getTime() + `.png`,
  3861. href: base64Data
  3862. };
  3863. const element = document.createElement("a");
  3864. element.style.display = "none";
  3865. for (const key in saveInfo) {
  3866. element.setAttribute(key, saveInfo[key]);
  3867. }
  3868. document.body.appendChild(element);
  3869. element.click();
  3870. setTimeout(() => {
  3871. document.body.removeChild(element);
  3872. }, 300);
  3873. // var format = 'image/png'
  3874. // //将Base64图片编码转换成blob
  3875. // var base64 = base64Data
  3876. // var code = window.atob(base64.split(',')[1])
  3877. // var aBuffer = new window.ArrayBuffer(code.length)
  3878. // var uBuffer = new window.Uint8Array(aBuffer)
  3879. // for (var i = 0; i < code.length; i++) {
  3880. // uBuffer[i] = code.charCodeAt(i) & 0xff
  3881. // }
  3882. // try {
  3883. // blob = new Blob([uBuffer], { type: format })
  3884. // } catch (e) {
  3885. // window.BlobBuilder =
  3886. // window.BlobBuilder ||
  3887. // window.WebKitBlobBuilder ||
  3888. // window.MozBlobBuilder ||
  3889. // window.MSBlobBuilder
  3890. // if (e.name == 'TypeError' && window.BlobBuilder) {
  3891. // var bb = new window.BlobBuilder()
  3892. // bb.append(uBuffer.buffer)
  3893. // blob = bb.getBlob('image/png')
  3894. // } else if (e.name == 'InvalidStateError') {
  3895. // blob = new Blob([aBuffer], { type: format })
  3896. // }
  3897. // }
  3898. // const clipboardItemInput = new ClipboardItem({
  3899. // 'image/png': blob,
  3900. // })
  3901. // that.$copyText({
  3902. // 'image/png': blob,
  3903. // }).then(
  3904. //   function(e) {
  3905. //     console.log("copy arguments e:", e);
  3906. //     alert("复制成功!");
  3907. //   },
  3908. //   function(e) {
  3909. //     console.log("copy arguments e:", e);
  3910. //     alert("复制失败!");
  3911. //   }
  3912. //   ),
  3913. // navigator.clipboard.write([clipboardItemInput])
  3914. // that.$message({
  3915. // message: '已截图并复制到粘贴板!',
  3916. // type: 'success'
  3917. // });
  3918. });
  3919. },
  3920. // 即时起保
  3921. immediatelyChange(e) {
  3922. if (e) {
  3923. this.immediatelyValue = true;
  3924. const date = new Date();
  3925. date.setHours(date.getHours() + 2);
  3926. date.setMinutes(0);
  3927. date.setSeconds(0);
  3928. this.jqstartDate = date;
  3929. this.jqendDate = this.oneYearPast1(date);
  3930. } else {
  3931. this.immediatelyValue = false;
  3932. this.jqstartDate = this.transformTime1();
  3933. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3934. }
  3935. },
  3936. // 使用性质方法
  3937. natureFun() {
  3938. if (this.carInfo.carnature == "01") {
  3939. this.carInfo.vehicleUse = "";
  3940. }
  3941. },
  3942. // 点击同步报价后的时间
  3943. syncData(item) {
  3944. this.jqstartDate = item.startDateJq ? item.startDateJq : this.jqstartDate;
  3945. this.jqendDate = item.endDateJq ? item.endDateJq : this.endDateJq;
  3946. this.systartDate = item.startDateSy ? item.startDateSy : this.systartDate;
  3947. this.syendDate = item.endDateSy ? item.endDateSy : this.syendDate;
  3948. },
  3949. //纳税类型事件
  3950. taxRelifFlagChange(val) {
  3951. if (val == 4) {
  3952. citydata.rawCitiesData.map(val => {
  3953. this.provinceSelect.push({
  3954. name: val.name,
  3955. code: val.code
  3956. });
  3957. return val;
  3958. });
  3959. }
  3960. },
  3961. //身份证前六位识别地区
  3962. // getAreaByCode(code) {
  3963. // let list = regionData;
  3964. // let provinceCode = code.substring(0, 2);
  3965. // let cityCode = code.substring(0, 4);
  3966. // let areaCode = code.substring(0, 6);
  3967. // // 获取省份信息
  3968. // let province = list.filter(function (item) {
  3969. // return item.value === provinceCode;
  3970. // });
  3971. // // 获取城市信息
  3972. // let city = province[0].children.filter(function (item) {
  3973. // return item.value === cityCode;
  3974. // });
  3975. // if (city.length > 0) {
  3976. // // 获取区/县信息
  3977. // let area = city[0].children.filter(function (item) {
  3978. // return item.value === areaCode;
  3979. // });
  3980. // return province[0].label + city[0].label + area[0].label;
  3981. // }
  3982. // },
  3983. //--数据字典 begin --
  3984. getDicType(type) {
  3985. this.$api.insCompany.dicType(type).then(res => {
  3986. if (res.code == 200) {
  3987. if (type == "insOrderStatus") {
  3988. let data = JSON.parse(JSON.stringify(res.data.ddList));
  3989. data.unshift({
  3990. dictTag: "全部",
  3991. dictValue: "888"
  3992. });
  3993. this[type + "options"] = data;
  3994. } else {
  3995. this[type + "options"] = res.data.ddList;
  3996. }
  3997. }
  3998. });
  3999. },
  4000. //身份证失去焦点
  4001. identifyblur(info) {
  4002. this[info].age = getAgeByIdCard(this[info].identifyNumber);
  4003. this[info].gender = getGenderByIdCard(this[info].identifyNumber);
  4004. },
  4005. //车主信息选择性别
  4006. genderChange(e) {
  4007. if (this.tbczcarShow) {
  4008. this.policyHolderInfo.gender = e;
  4009. } else if (this.bbczcarShow) {
  4010. this.insuredPersonInfo.gender = e;
  4011. }
  4012. },
  4013. //省市区
  4014. // areahandleChange(event, info) {
  4015. // console.log(event)
  4016. // if (event[0] != null && event[1] != null && event[2] != null) {
  4017. // this[info].province = codeToText[event[0]]
  4018. // this[info].city = codeToText[event[1]]
  4019. // this[info].county = codeToText[event[2]]
  4020. // }
  4021. // },
  4022. iconfftter(icon) {
  4023. return CommonUtil.getDataName({
  4024. dataList: this.global.insCompanyList,
  4025. value: "name",
  4026. label: "icon",
  4027. data: icon
  4028. });
  4029. },
  4030. disabledDate(time) {
  4031. let datetime = this.carInfo.registerDate;
  4032. return time.getTime() < new Date(datetime).getTime();
  4033. },
  4034. onScroll() {
  4035. // 变量scrollTop是滚动条滚动时,滚动条上端距离顶部的距离
  4036. var scrollTop =
  4037. document.documentElement.scrollTop || document.body.scrollTop;
  4038. // 变量windowHeight是可视区的高度
  4039. var windowHeight =
  4040. document.documentElement.clientHeight || document.body.clientHeight;
  4041. // 变量scrollHeight是滚动条的总高度(当前可滚动的页面的总高度)
  4042. var scrollHeight =
  4043. document.documentElement.scrollHeight || document.body.scrollHeight;
  4044. // 滚动条到底部
  4045. if (Math.ceil(scrollTop + windowHeight) >= scrollHeight) {
  4046. this.isBottom = true;
  4047. } else {
  4048. this.isBottom = false;
  4049. }
  4050. },
  4051. anshengInsuranceChange(index) {
  4052. this.anshengtemplateSelection=index
  4053. let data = this.anshengInsuranceData.find(val => val.projectCode == index);
  4054. this.anshengaccidentalDrivingVo.parentName = data.projectName;
  4055. this.anshengaccidentalDrivingVo.parentCode = data.projectCode;
  4056. this.anshengInsuranceDataTable = [];
  4057. this.anshengInsuranceDataTable = data.children;
  4058. this.anshengInsuranceDataTable .forEach(e=>e.quantity='1')
  4059. },
  4060. hengbangInsuranceChange(index) {
  4061. this.hengbangInsuranceDataTable = this.hengbangInsuranceData.find(val => val.projectCode == index).son
  4062. this.hengbangtemplateSelection=index
  4063. if (this.hengbangInsuranceDataTable.length) {
  4064. this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(val => val.projectCode == index);
  4065. }
  4066. },
  4067. huanongInsuranceChange(index) {
  4068. this.huanongInsuranceDataTable = this.huanongInsuranceData.find(
  4069. val => val.projectCode == index
  4070. ).son;
  4071. this.accidentFormHN.accidentType=index
  4072. this.huanongaccidentalDrivingVo = Object.assign(
  4073. this.huanongInsuranceData.find(val => val.projectCode == index),
  4074. this.accidentFormHN,
  4075. );
  4076. },
  4077. taipingInsuranceChange(index) {
  4078. this.taipingtemplateSelection=index
  4079. this.taipingInsuranceDataTable = this.taipingInsuranceData.find(val => val.projectCode == index).son
  4080. if (this.taipingInsuranceDataTable && this.taipingInsuranceDataTable.length) {
  4081. this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.projectCode == index);
  4082. }
  4083. },
  4084. zijinInsuranceChange(index) {
  4085. this.zijintemplateSelection=index
  4086. this.zijinInsuranceDataTable = [];
  4087. this.$refs.expandTable[0].clearSelection();
  4088. index.forEach(item => {
  4089. this.zijinInsuranceDataTable.push(
  4090. this.ziJinInsuranceData.find(val => val.projectCode == item)
  4091. );
  4092. });
  4093. this.zijinInsuranceDataTable.forEach(item => {
  4094. this.$nextTick(() => {
  4095. this.$refs.expandTable[0].toggleRowSelection(item);
  4096. });
  4097. });
  4098. this.CheckboxChange(this.zijinInsuranceDataTable);
  4099. },
  4100. renshouInsuranceChange(index) {
  4101. // this.renshouInsuranceDataTable = [
  4102. // this.renshouInsuranceData.find(val => val.projectCode == index)
  4103. // ];
  4104. this.renshoutemplateSelection=index
  4105. this.renshouInsuranceDataTable = this.renshouInsuranceData.find(val => val.projectCode == index).son
  4106. if (index) {
  4107. this.RSDrivingChange(this.renshouInsuranceData.find(val => val.projectCode == index));
  4108. }
  4109. },
  4110. async dajiaInsuranceChange(index) {
  4111. this.dajiaaccidentalDrivingVo = {};
  4112. let data = await this.$api.letter.accidentalDrivingInfo(index);
  4113. if (data.code == 200) {
  4114. this.dajiaaccidentalDrivingVo = {
  4115. rideRiskCode: index,
  4116. rideRiskName: this.dajiaInsuranceData.find(val => val.id == index)
  4117. .productName,
  4118. quantity: "1"
  4119. };
  4120. this.dajiaInsuranceDataTable = data.data;
  4121. }
  4122. },
  4123. zhonganInsuranceChange(index) {
  4124. this.zhongantemplateSelection=index
  4125. this.zhonganInsuranceDataTable = this.zhonganInsuranceData.find(val => val.projectCode == index).son
  4126. if (index) {
  4127. this.ZADrivingChange(this.zhonganInsuranceData.find(val => val.projectCode == index));
  4128. }
  4129. },
  4130. // 渤海选择意外险类型
  4131. async bohaiInsuranceChange(index) {
  4132. if (index) {
  4133. this.boHaiaccidentForm.packageCode=index
  4134. this.accidentLoadingbh = true;
  4135. this.boHaiaccidentForm.copies = "1";
  4136. this.boHaiaccidentForm.premium = Number(
  4137. this.boHaiaccidentDataList.find(e => e.packageCode == index).premium
  4138. );
  4139. let data = await this.$api.letter.productDetailsQueryboHai({
  4140. packageCode: index,
  4141. productCode: this.boHaiaccidentDataList.find(
  4142. e => e.packageCode == index
  4143. ).productCode,
  4144. agreementId: this.boHaiaccidentForm.agreementId
  4145. });
  4146. if (data.code == 200 && data.data) {
  4147. this.accidentLoadingbh = false;
  4148. this.bohaiInsuranceDataTable = data.data;
  4149. } else {
  4150. this.$message.error(data.msg);
  4151. this.bohaiInsuranceDataTable = [];
  4152. }
  4153. }
  4154. },
  4155. // 国任选择意外险类型
  4156. async grcxchange(index) {
  4157. if (index) {
  4158. this.accidentLoading = true;
  4159. this.guoRenaccidentForm.goodsCode=index
  4160. this.guoRenaccidentForm.quantity = "1";
  4161. this.guoRenaccidentForm.prodCode = "";
  4162. this.guoRenaccidentDataListChild =this.guoRenaccidentDataList.find(e=>e.projectCode==index).children;
  4163. this.guoRenaccidentalDrivingVo.parentName = this.guoRenaccidentDataList.find(e=>e.projectCode==index).projectName;
  4164. this.guoRenaccidentalDrivingVo.parentCode = this.guoRenaccidentDataList.find(e=>e.projectCode==index).projectCode;
  4165. // let data = await this.$api.letter.syncNonAutoInsGuoren({
  4166. // goodsCode: index,
  4167. // agreementId: this.guoRenaccidentForm.agreementId
  4168. // });
  4169. // if (data.code == 200) {
  4170. // let num = 0;
  4171. // data.data.forEach(item => {
  4172. // num += Number(item.premium);
  4173. // });
  4174. // this.accidentLoading = false;
  4175. // } else {
  4176. // this.accidentLoading = false;
  4177. // this.$message.error(data.msg);
  4178. // this.guoRenaccidentDataListChild = [];
  4179. // }
  4180. }
  4181. },
  4182. // 国任选择意外险子级类型
  4183. async grcxchangeChild(index) {
  4184. let list = this.guoRenaccidentDataListChild.find(
  4185. val => val.projectCode == index
  4186. );
  4187. this.guoRenaccidentForm = {
  4188. ...this.guoRenaccidentForm,
  4189. prodCode:index,
  4190. policyNum: Number(list.sumPremium),
  4191. riskCode: list.riskCode,
  4192. // amount: list.amount,
  4193. sumPremium: Number(list.sumPremium)
  4194. // appnum:Number(list.appnum)
  4195. };
  4196. this.guoRenInsuranceDataTable = list.son;
  4197. this.guoRenaccidentalDrivingVo=Object.assign({...list,...this.guoRenaccidentalDrivingVo})
  4198. },
  4199. // 选择意外险类型
  4200. async yongchengInsuranceChange(index) {
  4201. if (!index) {
  4202. return;
  4203. }
  4204. console.log(this.yongchengaccidentDataList,index,88888888888);
  4205. this.yongchengtemplateSelection=index
  4206. this.accidentForm = Object.assign(
  4207. this.accidentForm,
  4208. this.yongchengaccidentDataList.find(val =>val.projectCode == index)
  4209. );
  4210. this.yongchengaccidentDataList.find(val => val.projectCode == index).son.forEach(item => {
  4211. item.sumAmount= Number(item.amount) * Number(this.accidentForm.seatNum);
  4212. });
  4213. this.yongchengInsuranceDataTable = this.yongchengaccidentDataList.find(val => val.projectCode == index).son
  4214. this.accidentPremium = this.accidentForm.sumPremium;
  4215. // this.accidentForm.fen = "1";
  4216. // let data = await this.$api.letter.ycgainAccidentSchemeList({
  4217. // companyCode: this.accidentForm.companyId,
  4218. // code: index,
  4219. // agreementId: this.accidentForm.agreementId,
  4220. // seatNum: Number(this.carInfo.seatCount)
  4221. // });
  4222. // if (data.code == 200) {
  4223. // let num = 0;
  4224. // data.data.forEach(item => {
  4225. // num += Number(item.premium);
  4226. // });
  4227. // this.accidentPremium = num;
  4228. // this.accidentForm.premium = num;
  4229. // this.accidenttableData = data.data;
  4230. // }
  4231. },
  4232. numberCopieschange(index) {
  4233. this.accidentForm.sumPremium = Number(this.accidentPremium) * index;
  4234. },
  4235. numberCopieschangeZM(index) {
  4236. this.accidentFormZM.sumPremium = Number(this.accidentPremiumZM) * index;
  4237. },
  4238. numberCopieschangeGR(index) {
  4239. this.guoRenaccidentForm.sumPremium =
  4240. Number(this.guoRenaccidentForm.policyNum) * index;
  4241. },
  4242. continuousChange(id) {
  4243. this.continuousCompanyList.map(ele => {
  4244. if (ele.id == id) {
  4245. this.attributionform.configure = [];
  4246. ele.configure.map((ele, index) => {
  4247. this.attributionform.configure.push({
  4248. field: ele.field,
  4249. isEdit: ele.isEdit,
  4250. label: ele.label,
  4251. type: ele.type,
  4252. value: ""
  4253. });
  4254. });
  4255. }
  4256. });
  4257. },
  4258. //续保查询
  4259. continuousquery() {
  4260. this.$api.letter.queryRenewal(this.attributionform).then(res => {
  4261. if (res.code == "200") {
  4262. this.carInfo = res.data.carInfo;
  4263. this.ownerInfo = res.data.ownerInfo;
  4264. this.policyHolderInfo = res.data.policyHolderInfo;
  4265. this.insuredPersonInfo = res.data.insuredPersonInfo;
  4266. res.data.riskList.map(ele => {
  4267. if (ele.riskCode == "0507") {
  4268. this.jqchecked = true;
  4269. this.jqstartDate = ele.startDate;
  4270. this.jqendDate = ele.endDate;
  4271. } else if (ele.riskCode == "0510") {
  4272. this.sychecked = true;
  4273. this.systartDate = ele.startDate;
  4274. this.syendDate = ele.endDate;
  4275. }
  4276. county;
  4277. });
  4278. } else {
  4279. this.$message({
  4280. message: res.msg,
  4281. type: "error",
  4282. duration: 2000
  4283. });
  4284. }
  4285. });
  4286. },
  4287. //永诚转保
  4288. renewalCodeconfirm() {
  4289. this.renewalCodedialogVisible = false;
  4290. this.quote();
  4291. },
  4292. //报价轨迹查询
  4293. RadioHistoryChange(e) {
  4294. let params = {
  4295. orderNo: this.orderno,
  4296. orderStatus: e == 888 ? "" : e
  4297. };
  4298. this.$api.letter.queryQuoteHistory(params).then(res => {
  4299. res.data.forEach(item => {
  4300. if (item.accidentInfo) {
  4301. item.accidentInfo.constructor === Object
  4302. ? [item.accidentInfo]
  4303. : item.accidentInfo;
  4304. }
  4305. });
  4306. this.HistoryList = res.data;
  4307. });
  4308. },
  4309. protocolJudge(val, val1) {
  4310. if (val1) {
  4311. this.totalCompanyList.forEach(e => {
  4312. if (e.agreement.find(el => el.productsCode && el.productsCode.includes(val))) {
  4313. e.agreement.find(el => el.productsCode && el.productsCode.includes(val)).disabled = true
  4314. }
  4315. })
  4316. }
  4317. else {
  4318. this.totalCompanyList.forEach(e => {
  4319. if (e.agreement.find(el => el.productsCode && el.productsCode.includes(val))) {
  4320. e.agreement.find(el => el.productsCode && el.productsCode.includes(val)).disabled = false
  4321. }
  4322. })
  4323. }
  4324. },
  4325. async obtainProtocol(data) {
  4326. let res = {}
  4327. if (this.isLetter) {
  4328. res = await this.$api.letter.getAllAgreement()
  4329. }
  4330. else {
  4331. res = await this.$api.letter.getAllAgreementByUserId({ userId: this.userId })
  4332. }
  4333. if (res.code == 200) {
  4334. res.data.map(ele => {
  4335. ele["result"] = {};
  4336. ele["quoteCode"] = 0;
  4337. ele["checked"] = false;
  4338. ele["msg"] = "";
  4339. ele["lastYearMsg"] = "";
  4340. ele["agreementId"] = "";
  4341. ele["apiType"] = "";
  4342. ele["orderstatus"] = 0;
  4343. ele.coefficient = "";
  4344. // ele.agreementId = ele.agreement[0].id;
  4345. // ele.apiType = ele.agreement[0].apiType;
  4346. ele.underwritingDescription =
  4347. ele.agreement[0].underwritingDescription;
  4348. if (ele.isTaxSource && ele.isTaxSource == "1") {
  4349. ele.agreement.forEach(val => {
  4350. if (val.isTaxSource && val.isTaxSource == "1") {
  4351. ele.agreementId = val.id;
  4352. ele.apiType = val.apiType;
  4353. }
  4354. });
  4355. }
  4356. });
  4357. if (data) {
  4358. res.data.forEach((val, index) => {
  4359. data.insAreaCompanyEditingDtos.forEach(ele => {
  4360. if (val.namesimple == ele.inscompany) {
  4361. if (ele.inscompany == "中国人寿" && ele.companyId) {
  4362. this.lastCompanyId = ele.companyId;
  4363. }
  4364. res.data[index].quoteCode = 200;
  4365. res.data[index].result = ele;
  4366. }
  4367. });
  4368. });
  4369. }
  4370. }
  4371. res.data.forEach(e => {
  4372. e.agreement.forEach(el => el.disabled = false)
  4373. })
  4374. this.totalCompanyList = res.data;
  4375. },
  4376. //获取保险公司列表
  4377. // commpanyList() {
  4378. // this.$api.letter.gainAllowQuoteList("").then(res => {
  4379. // res.data.map(ele => {
  4380. // ele["result"] = {};
  4381. // ele["quoteCode"] = 0;
  4382. // ele["checked"] = false;
  4383. // ele["msg"] = "";
  4384. // ele["lastYearMsg"] = "";
  4385. // ele["agreementId"] = "";
  4386. // ele["apiType"] = "";
  4387. // ele["orderstatus"] = 0;
  4388. // ele.coefficient = "";
  4389. // // ele.agreementId = ele.agreement[0].id;
  4390. // ele.apiType = ele.agreement[0].apiType;
  4391. // ele.underwritingDescription =
  4392. // ele.agreement[0].underwritingDescription;
  4393. // });
  4394. // if (this.$route.query.data) {
  4395. // res.data.forEach((val, index) => {
  4396. // this.$route.query.data.insAreaCompanyEditingDtos.forEach(ele => {
  4397. // if (val.namesimple == ele.inscompany) {
  4398. // res.data[index].quoteCode = 200;
  4399. // res.data[index].result = ele;
  4400. // }
  4401. // });
  4402. // });
  4403. // }
  4404. // this.totalCompanyList = res.data;
  4405. // });
  4406. // },
  4407. Payment(id, item) {
  4408. this.carcode(id, item);
  4409. },
  4410. //选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
  4411. agreementChange(val, row, index, item) {
  4412. let obj = {};
  4413. obj = row.find(item => {
  4414. return item;
  4415. });
  4416. let selectRow = row.find(item => {
  4417. return item.id == val;
  4418. });
  4419. let info=row.find(ele=>ele.id==val);
  4420. this.totalCompanyList[index].apiType = info.apiType;
  4421. this.totalCompanyList[index].underwritingDescription = val
  4422. ? selectRow.underwritingDescription
  4423. : ""; //重新赋值修改选中协议承保描述
  4424. this.$api.letter
  4425. .getDrivingInsuranceRule({
  4426. companyCode: item.id,
  4427. agreementId: item.agreementId,
  4428. seatNum:item.namesimple=='永诚财险' ||item.namesimple=='中煤财险'? Number(this.carInfo.seatCount):'',
  4429. ruleUseNature:this.carInfo.carnature,
  4430. ruleSeatNum: Number(this.carInfo.seatCount),
  4431. ruleThirdPartyInsurance: this.insureList[1].amount
  4432. })
  4433. .then(res => {
  4434. if (res.code == 200) {
  4435. this.nonVehicle(res.data,item.cnName)
  4436. switch(item.namesimple) {
  4437. case "永诚财险":
  4438. this.yongchengaccidentDataList = res.data;
  4439. break;
  4440. case "国任财险":
  4441. this.guoRenaccidentDataList = res.data;
  4442. break;
  4443. case "渤海财险":
  4444. this.boHaiaccidentDataList = res.data;
  4445. break;
  4446. case "中煤财险":
  4447. this[item.cnName + + "InsuranceData"] =res.data;
  4448. break;
  4449. case "紫金财险":
  4450. let data = res.data;
  4451. data.map(ele => {
  4452. ele.quantity = 1;
  4453. return ele;
  4454. });
  4455. this.ziJinInsuranceData = data;
  4456. break;
  4457. case "大家财险":
  4458. this.dajiaInsuranceData = res.data;
  4459. break;
  4460. case "中国人寿":
  4461. case "恒邦财险":
  4462. case "太平财险":
  4463. case "安盛天平":
  4464. case "华农财险":
  4465. case "众安财险":
  4466. res.data.map(ele => {
  4467. ele.quantity = 1;
  4468. return ele;
  4469. });
  4470. this[item.cnName + "InsuranceData"] = res.data;
  4471. break;
  4472. }
  4473. }
  4474. else{
  4475. this.$message.error(res.msg)
  4476. }
  4477. });
  4478. // switch (item.namesimple) {
  4479. // case "永诚财险":
  4480. // this.accidentForm.agreementId = item.agreementId;
  4481. // this.$api.letter
  4482. // .ycgainAccidentList({
  4483. // companyCode: item.id,
  4484. // agreementId: item.agreementId,
  4485. // seatNum: Number(this.carInfo.seatCount)
  4486. // })
  4487. // .then(res => {
  4488. // if (res.code == 200) {
  4489. // this.accidentDataList = res.data;
  4490. // }
  4491. // });
  4492. // break;
  4493. // case "国任财险":
  4494. // this.guoRenaccidentForm.agreementId = item.agreementId;
  4495. // this.$api.letter
  4496. // .syncNonAutoInsGuoren({ agreementId: item.agreementId })
  4497. // .then(res => {
  4498. // if (res.code == 200) {
  4499. // this.guoRenaccidentDataList = res.data;
  4500. // } else {
  4501. // this.guoRenaccidentDataList = [];
  4502. // }
  4503. // });
  4504. // break;
  4505. // case "渤海财险":
  4506. // this.boHaiaccidentForm.agreementId = item.agreementId;
  4507. // let policyHolderInfo = this.tbczcarShow
  4508. // ? this.ownerInfo
  4509. // : this.policyHolderInfo;
  4510. // let productQueryVo = {
  4511. // agreementId: item.agreementId,
  4512. // carnature: this.carInfo.carnature,
  4513. // cimodelclass: this.carInfo.cimodelclass,
  4514. // exhaustScale: this.carInfo.enginedesc,
  4515. // limitLoad: this.carInfo.limitLoad,
  4516. // powerScale: this.carInfo.powerScale,
  4517. // seatCount: this.carInfo.seatCount,
  4518. // vehicleUse: this.carInfo.vehicleUse,
  4519. // policyHolderInfo,
  4520. // insuredPersonInfo: this.bbczcarShow
  4521. // ? this.ownerInfo
  4522. // : this.bbtbcarShow
  4523. // ? policyHolderInfo
  4524. // : this.insuredPersonInfo
  4525. // };
  4526. // this.$api.letter.productQueryboHai(productQueryVo).then(res => {
  4527. // if (res.code == 200) {
  4528. // this.boHaiaccidentDataList = res.data;
  4529. // } else {
  4530. // this.boHaiaccidentDataList = [];
  4531. // }
  4532. // });
  4533. // break;
  4534. // case "紫金财险":
  4535. // this.$api.letter
  4536. // .zijinqueryVehicleProducts({
  4537. // agreementId: val,
  4538. // seatCount: Number(this.carInfo.seatCount)
  4539. // })
  4540. // .then(res => {
  4541. // if (res.code == 200) {
  4542. // let data = res.data;
  4543. // data.map(ele => {
  4544. // ele.quantity = 1;
  4545. // return ele;
  4546. // });
  4547. // this.ziJinInsuranceData = data;
  4548. // } else {
  4549. // this.$message.error(res.msg);
  4550. // }
  4551. // });
  4552. // break;
  4553. // case "中国人寿":
  4554. // case "恒邦财险":
  4555. // case "太平财险":
  4556. // case "安盛天平":
  4557. // case "华农财险":
  4558. // case "众安财险":
  4559. // this.$api.letter.pythongetDriving({ agreementId: val }).then(res => {
  4560. // if (res.code == 200) {
  4561. // let data = res.data;
  4562. // data.map(ele => {
  4563. // ele.quantity = 1;
  4564. // return ele;
  4565. // });
  4566. // this[item.cnName + "InsuranceData"] = data;
  4567. // }
  4568. // });
  4569. // break;
  4570. // case "大家财险":
  4571. // this.$api.letter
  4572. // .dajiagetDriving({ agreementId: item.agreementId })
  4573. // .then(res => {
  4574. // if (res.code == 200) {
  4575. // this.dajiaInsuranceData = res.data;
  4576. // }
  4577. // });
  4578. // break;
  4579. // default:
  4580. // break;
  4581. // }
  4582. },
  4583. nonVehicle(data,type){
  4584. if( data.some(e=>e.isDefault)){
  4585. if(type=='guoRen'){
  4586. this.grcxchange(data.find(ele=>ele.isDefault).projectCode)
  4587. this.grcxchangeChild((data.find(ele=>ele.isDefault).children).find(ele=>ele.isDefault).projectCode)
  4588. }
  4589. if(type=='ansheng'){
  4590. this.anshengInsuranceChange(data.find(ele=>ele.isDefault).projectCode)
  4591. this.ASDrivingRadio((data.find(ele=>ele.isDefault).children).find(ele=>ele.isDefault))
  4592. }
  4593. if(type=='zijin'){
  4594. this[type + "InsuranceChange"]([data.find(ele=>ele.isDefault).projectCode])
  4595. }
  4596. else{
  4597. this[type + "InsuranceChange"](data.find(ele=>ele.isDefault).projectCode)
  4598. }
  4599. }
  4600. },
  4601. CheckboxChange(select, row) {
  4602. this.accidentalDrivingVo = [];
  4603. select.map(val => {
  4604. this.accidentalDrivingVo.push(val);
  4605. return val;
  4606. });
  4607. },
  4608. //人寿驾意险选择
  4609. RSDrivingChange(row) {
  4610. this.renshouaccidentalDrivingVo = row;
  4611. },
  4612. //众安驾意险选择
  4613. ZADrivingChange(row) {
  4614. this.zhonganaccidentalDrivingVo = row;
  4615. },
  4616. RSDrivingRadio(row) {
  4617. this.RSDrivingChange(row);
  4618. },
  4619. //安盛驾意险选择
  4620. ASDrivingRadio(row) {
  4621. this.anshengInsurancetype = row.projectCode;
  4622. this.anshengaccidentalDrivingVo=Object.assign({...row,...this.anshengaccidentalDrivingVo})
  4623. // this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
  4624. // this.anshengaccidentalDrivingVo.projectName = row.projectName;
  4625. },
  4626. ZADrivingRadio(row) {
  4627. this.ZADrivingChange(row);
  4628. },
  4629. // 国任特约选择
  4630. contributingGuoRen(id) {
  4631. this.zijinengageListData = [];
  4632. this.contributingLoading = true;
  4633. this.contributingState = true;
  4634. this.hbsubmitdialogVisible = true;
  4635. this.$api.letter.guorenqueryClauseData({ agreementId: id }).then(res => {
  4636. this.contributingLoading = false;
  4637. res.data.forEach(val => {
  4638. val.clauseName = val.clauses;
  4639. val.clauseContent = val.clausesContext;
  4640. });
  4641. this.zijinengageListData = res.data;
  4642. });
  4643. },
  4644. //紫金特约选择
  4645. zijinengageChange(select, row) {
  4646. this.zijinengageList = [];
  4647. select.map(val => {
  4648. this.zijinengageList.push({
  4649. clauseCode: val.clauseCode,
  4650. clauseName: val.clauseName,
  4651. clauses: val.clauseContent,
  4652. riskCode: val.riskCode
  4653. });
  4654. return val;
  4655. });
  4656. },
  4657. zijinengageChangeAll(row) {
  4658. if (row) {
  4659. this.zijinengageChange(row);
  4660. } else {
  4661. this.$refs.expandTablePro.clearSelection();
  4662. this.zijinengageList = [];
  4663. }
  4664. },
  4665. //紫金特约内容编辑
  4666. zijincellDblclick(row, column) {
  4667. this.currentCell = row.index + "," + column.index;
  4668. if (
  4669. !["clauseContent"].includes(column.property) &&
  4670. row.modifyFlag == "1"
  4671. ) {
  4672. setTimeout(() => {
  4673. this.$refs[row.index + "," + column.index].focus();
  4674. });
  4675. }
  4676. },
  4677. tableCellClassName({ row, column, rowIndex, columnIndex }) {
  4678. row.index = rowIndex;
  4679. column.index = columnIndex;
  4680. },
  4681. hideInput() {
  4682. this.currentCell = null;
  4683. },
  4684. //勾选保险公司
  4685. initchange(e, code, name, index) {
  4686. if (e) {
  4687. let ins = this.totalCompanyList[index].namesimple;
  4688. this.totalCompanyList[index].checked = e;
  4689. this.totalCompanyList[
  4690. index
  4691. ].underwritingDescription = this.totalCompanyList[
  4692. index
  4693. ].agreement[0].underwritingDescription;
  4694. this.$api.letter
  4695. .getDrivingInsuranceRule({
  4696. agreementId: this.totalCompanyList[index].agreement[0].id,
  4697. seatNum:ins=='永诚财险' || ins=='中煤财险'? Number(this.carInfo.seatCount):'',
  4698. ruleUseNature:this.carInfo.carnature,
  4699. ruleSeatNum: Number(this.carInfo.seatCount),
  4700. ruleThirdPartyInsurance: this.insureList[1].amount
  4701. })
  4702. .then(res => {
  4703. if (res.code == 200) {
  4704. switch(ins) {
  4705. case "永诚财险":
  4706. this.yongchengaccidentDataList = res.data;
  4707. break;
  4708. case "国任财险":
  4709. this.guoRenaccidentDataList = res.data;
  4710. break;
  4711. case "渤海财险":
  4712. this.boHaiaccidentDataList = res.data;
  4713. break;
  4714. case "中煤财险":
  4715. this[name + "InsuranceData"] =res.data;
  4716. break;
  4717. case "紫金财险":
  4718. let data = res.data;
  4719. data.map(ele => {
  4720. ele.quantity = 1;
  4721. return ele;
  4722. });
  4723. this.ziJinInsuranceData = data;
  4724. break;
  4725. case "大家财险":
  4726. this.dajiaInsuranceData = res.data;
  4727. break;
  4728. case "中国人寿":
  4729. case "恒邦财险":
  4730. case "太平财险":
  4731. case "华农财险":
  4732. case "安盛天平":
  4733. case "众安财险":
  4734. res.data.map(ele => {
  4735. ele.quantity = 1;
  4736. return ele;
  4737. });
  4738. this[name + "InsuranceData"] = res.data
  4739. break;
  4740. }
  4741. this.nonVehicle(res.data,name)
  4742. }
  4743. else{
  4744. this.$message.error(res.msg)
  4745. }
  4746. });
  4747. // switch (ins) {
  4748. // case "永诚财险":
  4749. // this.accidentForm.agreementId = this.totalCompanyList[
  4750. // index
  4751. // ].agreement[0].id;
  4752. // this.$api.letter
  4753. // .ycgainAccidentList({
  4754. // companyCode: this.totalCompanyList[index].id,
  4755. // agreementId: this.totalCompanyList[index].agreement[0].id,
  4756. // seatNum: Number(this.carInfo.seatCount)
  4757. // })
  4758. // .then(res => {
  4759. // if (res.code == 200) {
  4760. // this.accidentDataList = res.data;
  4761. // } else {
  4762. // this.accidentDataList = [];
  4763. // }
  4764. // });
  4765. // break;
  4766. // case "国任财险":
  4767. // this.guoRenaccidentForm.agreementId = this.totalCompanyList[
  4768. // index
  4769. // ].agreement[0].id;
  4770. // this.$api.letter
  4771. // .syncNonAutoInsGuoren({
  4772. // goodsCode: "",
  4773. // agreementId: this.totalCompanyList[index].agreement[0].id
  4774. // })
  4775. // .then(res => {
  4776. // if (res.code == 200) {
  4777. // this.guoRenaccidentDataList = res.data;
  4778. // } else {
  4779. // this.guoRenaccidentDataList = [];
  4780. // }
  4781. // });
  4782. // break;
  4783. // case "紫金财险":
  4784. // this.$api.letter
  4785. // .zijinqueryVehicleProducts({
  4786. // agreementId: this.totalCompanyList[index].agreement[0].id,
  4787. // seatCount: Number(this.carInfo.seatCount)
  4788. // })
  4789. // .then(res => {
  4790. // if (res.code == 200) {
  4791. // let data = res.data;
  4792. // data.map(ele => {
  4793. // ele.quantity = 1;
  4794. // return ele;
  4795. // });
  4796. // this.ziJinInsuranceData = data;
  4797. // } else {
  4798. // this.$message.error(res.msg);
  4799. // }
  4800. // });
  4801. // break;
  4802. // case "安盛天平":
  4803. // this.$api.letter
  4804. // .pythongetDriving({
  4805. // agreementId: this.totalCompanyList[index].agreement[0].id
  4806. // })
  4807. // .then(res => {
  4808. // if (res.code == 200) {
  4809. // let data = res.data;
  4810. // data.map(ele => {
  4811. // ele.departmentProductList.map(val => {
  4812. // val.quantity = 1;
  4813. // });
  4814. // return ele;
  4815. // });
  4816. // this[name + "InsuranceData"] = data;
  4817. // } else {
  4818. // this.$message.error(res.msg);
  4819. // }
  4820. // });
  4821. // break;
  4822. // case "中国人寿":
  4823. // case "恒邦财险":
  4824. // case "太平财险":
  4825. // case "华农财险":
  4826. // case "众安财险":
  4827. // this.$api.letter
  4828. // .pythongetDriving({
  4829. // agreementId: this.totalCompanyList[index].agreement[0].id
  4830. // })
  4831. // .then(res => {
  4832. // if (res.code == 200) {
  4833. // let data = res.data;
  4834. // data.map(ele => {
  4835. // ele.quantity = 1;
  4836. // return ele;
  4837. // });
  4838. // this[name + "InsuranceData"] = data;
  4839. // } else {
  4840. // this.$message.error(res.msg);
  4841. // }
  4842. // });
  4843. // break;
  4844. // case "中煤财险":
  4845. // this.accidentFormZM.agreementId = this.totalCompanyList[
  4846. // index
  4847. // ].agreement[0].id;
  4848. // this.$api.letter
  4849. // .zmGetDrivingPro({
  4850. // agreementId: this.totalCompanyList[index].agreement[0].id,
  4851. // seatNum: this.carInfo.seatCount
  4852. // })
  4853. // .then(res => {
  4854. // if (res.code == 200) {
  4855. // let data = res.data;
  4856. // this[name + "InsuranceData"] = data;
  4857. // } else {
  4858. // this.$message.error(res.msg);
  4859. // }
  4860. // });
  4861. // break;
  4862. // case "大家财险":
  4863. // this.$api.letter
  4864. // .dajiagetDriving({
  4865. // agreementId: this.totalCompanyList[index].agreement[0].id
  4866. // })
  4867. // .then(res => {
  4868. // if (res.code == 200) {
  4869. // this.dajiaInsuranceData = res.data;
  4870. // } else {
  4871. // this.$message.error(res.msg);
  4872. // }
  4873. // });
  4874. // break;
  4875. // default:
  4876. // break;
  4877. // }
  4878. } else {
  4879. }
  4880. },
  4881. clearAccidentForm() {
  4882. this.yongchengInsuranceDataTable=[]
  4883. this.accidentForm = {};
  4884. this.accidentForm.fen = 1;
  4885. this.accidentForm.premium = 0;
  4886. },
  4887. clearAccidentFormGr() {
  4888. (this.guoRenInsuranceDataTable = []),
  4889. (this.guoRenaccidentDataListChild = []);
  4890. this.guoRenaccidentForm = {
  4891. quantity: "1",
  4892. premium: 0
  4893. };
  4894. },
  4895. clearAccidentFormBh() {
  4896. this.bohaiInsuranceDataTable = [];
  4897. this.boHaiaccidentForm = {
  4898. copies: "1",
  4899. premium: 0
  4900. };
  4901. // this.bohaiaccidentalDrivingVo={};
  4902. },
  4903. clearAccidentFormHN() {
  4904. this.huanongaccidentalDrivingVo = {};
  4905. },
  4906. clearAccidentFormHB() {
  4907. this.hengbangaccidentalDrivingVo = {};
  4908. },
  4909. clearAccidentFormTP() {
  4910. this.taipingaccidentalDrivingVo = {};
  4911. },
  4912. clearAccidentFormDJ() {
  4913. this.dajiaaccidentalDrivingVo = {};
  4914. },
  4915. clearAccidentFormZM() {
  4916. this.zhongmeiaccidentalDrivingVo = {};
  4917. },
  4918. clearAccidentFormZJ() {
  4919. this.accidentalDrivingVo = [];
  4920. },
  4921. clearAccidentFormZA() {
  4922. this.zhonganaccidentalDrivingVo = {};
  4923. },
  4924. clearAccidentFormRS() {
  4925. this.renshouaccidentalDrivingVo = {};
  4926. },
  4927. clearAccidentFormAS() {
  4928. this.anshengaccidentalDrivingVo = {};
  4929. },
  4930. //身份证有效期长期
  4931. insureLongterm(e) {
  4932. this[e].identifyValidEndDate = "9999-12-31";
  4933. },
  4934. //较强起保日期事件
  4935. jqChange(e) {
  4936. this.jqendDate = this.oneYearPast1(e);
  4937. },
  4938. //商业起保日期事件
  4939. syChange(e) {
  4940. this.syendDate = this.oneYearPast1(e);
  4941. },
  4942. // //查看更多
  4943. // selectMore(leg) {
  4944. // this.insureMore = false;
  4945. // this.insureLength = leg;
  4946. // },
  4947. // //收起
  4948. // packup() {
  4949. // this.insureMore = true;
  4950. // this.insureLength = 5;
  4951. // },
  4952. //险别选择框事件
  4953. insureitemChange(e) {
  4954. this.protocolJudge('A', e)
  4955. if (e != 0) {
  4956. this.sychecked = true;
  4957. this.systartDate = this.transformTime1();
  4958. this.syendDate = this.oneYearPast1(this.systartDate);
  4959. }
  4960. },
  4961. all() {
  4962. this.$refs.detailsDialog.setBackupVisible(true);
  4963. },
  4964. base64ToBlob(code) {
  4965. code = code.replace(/[\n\r]/g, "");
  4966. // atob() 方法用于解码使用 base-64 编码的字符串。
  4967. const raw = window.atob(code);
  4968. const rawLength = raw.length;
  4969. const uInt8Array = new Uint8Array(rawLength);
  4970. for (let i = 0; i < rawLength; ++i) {
  4971. uInt8Array[i] = raw.charCodeAt(i);
  4972. }
  4973. return new Blob([uInt8Array], { type: "application/pdf" });
  4974. },
  4975. viewPdf(content) {
  4976. if (!content) {
  4977. this.$message.error("暂无文件");
  4978. return;
  4979. }
  4980. const blob = this.base64ToBlob(content);
  4981. this.href = blob;
  4982. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  4983. window.navigator.msSaveOrOpenBlob(blob);
  4984. } else {
  4985. const fileURL = URL.createObjectURL(blob);
  4986. window.open(fileURL);
  4987. }
  4988. },
  4989. creatQrCode(text) {
  4990. if (this.qrcode) {
  4991. this.qrcode.clear();
  4992. this.qrcode.makeCode(text);
  4993. } else {
  4994. this.qrcode = new QRCode("qrcode", {
  4995. text: text,
  4996. width: this.qrcodeWidth,
  4997. height: this.qrcodeHeight,
  4998. colorDark: "#000000",
  4999. colorLight: "#ffffff",
  5000. correctLevel: QRCode.CorrectLevel.H
  5001. });
  5002. }
  5003. },
  5004. //人工核保
  5005. underwriting(id) {
  5006. let param = {
  5007. companyId: id
  5008. };
  5009. this.$api.letter.manualUnderwriting(param).then(res => {
  5010. if (res.code == "200") {
  5011. this.Payment(id);
  5012. }
  5013. });
  5014. },
  5015. jqcheckedChange(e) {
  5016. this.protocolJudge('0507', e)
  5017. if (e) {
  5018. this.jqstartDate = this.transformTime1();
  5019. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  5020. } else {
  5021. this.jqstartDate = "";
  5022. this.jqendDate = "";
  5023. }
  5024. },
  5025. sycheckedChange(e) {
  5026. this.protocolJudge('0510', e)
  5027. if (e) {
  5028. this.systartDate = this.transformTime1();
  5029. this.syendDate = this.oneYearPast1(this.systartDate);
  5030. } else {
  5031. this.systartDate = "";
  5032. this.syendDate = "";
  5033. }
  5034. },
  5035. //报价
  5036. quote() {
  5037. let starttime = new Date(this.carInfo.registerDate);
  5038. let endtime = new Date(this.carInfo.issueDate);
  5039. if (endtime < starttime) {
  5040. this.$message({ message: "发证日期早于初登日期", type: "error" });
  5041. return;
  5042. }
  5043. this.$refs["carInfo"].validate(valid => {
  5044. if (valid) {
  5045. var _this = this;
  5046. _this.$refs["ownerInfo"].validate(valid1 => {
  5047. if (valid1) {
  5048. if (_this.tbczcarShow == true) {
  5049. _this.policyHolderInfo = JSON.parse(
  5050. JSON.stringify(_this.ownerInfo)
  5051. );
  5052. }
  5053. if (_this.bbczcarShow == true) {
  5054. _this.insuredPersonInfo = JSON.parse(
  5055. JSON.stringify(_this.ownerInfo)
  5056. );
  5057. }
  5058. if (_this.bbtbcarShow == true) {
  5059. _this.insuredPersonInfo = JSON.parse(
  5060. JSON.stringify(_this.policyHolderInfo)
  5061. );
  5062. }
  5063. _this.carInfo.vinNo = _this.carInfo.frameNo;
  5064. _this.riskList = []; //险种大类
  5065. _this.kindList = []; //商业险险别
  5066. if (
  5067. (!_this.jqstartDate || !_this.jqendDate) &&
  5068. (!_this.systartDate || !_this.syendDate)
  5069. ) {
  5070. this.$message({ message: "投保日期不能为空", type: "warning" });
  5071. } else {
  5072. this.calculateLoading = true;
  5073. setInterval(() => {
  5074. this.calculateLoading = false;
  5075. }, 3000);
  5076. if (_this.jqchecked) {
  5077. //交强
  5078. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  5079. _this.jqendDate = this.transformTime(_this.jqendDate);
  5080. _this.riskList.push({
  5081. amount: "200000",
  5082. premium: "0",
  5083. riskCode: "0507",
  5084. endDate: _this.jqendDate,
  5085. startDate: _this.jqstartDate,
  5086. instantFlag: "0"
  5087. });
  5088. }
  5089. if (_this.sychecked) {
  5090. _this.systartDate = this.transformTime(_this.systartDate);
  5091. _this.syendDate = this.transformTime(_this.syendDate);
  5092. //商业
  5093. _this.riskList.push({
  5094. premium: "0",
  5095. riskCode: "0510",
  5096. quotePreceptCode: "",
  5097. quotePreceptName: "",
  5098. endDate: _this.syendDate,
  5099. startDate: _this.systartDate,
  5100. instantFlag: "0"
  5101. });
  5102. _this.insureList.map((ele, index) => {
  5103. if (
  5104. ele.amount != "0" &&
  5105. (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  5106. ) {
  5107. _this.kindList.push({
  5108. unitAmount: _this.insureList[index].amount,
  5109. kindCode: _this.insureList[index].kindCode,
  5110. kindName: _this.insureList[index].kindName
  5111. });
  5112. } else if (
  5113. ele.amount != "0" &&
  5114. (ele.kindCode == "MJ1" ||
  5115. ele.kindCode == "MJ2" ||
  5116. ele.kindCode == "MJ3" ||
  5117. ele.kindCode == "MJ4")
  5118. ) {
  5119. _this.kindList.push({
  5120. deductibleRate: _this.insureList[index].amount,
  5121. kindCode: _this.insureList[index].kindCode,
  5122. kindName: _this.insureList[index].kindName
  5123. });
  5124. } else if (
  5125. ele.amount != "0" &&
  5126. (ele.kindCode == "TY1" ||
  5127. ele.kindCode == "TY2" ||
  5128. ele.kindCode == "TY3" ||
  5129. ele.kindCode == "TY4")
  5130. ) {
  5131. _this.kindList.push({
  5132. serviceTimes: _this.insureList[index].amount,
  5133. kindCode: _this.insureList[index].kindCode,
  5134. kindName: _this.insureList[index].kindName
  5135. });
  5136. } else if (ele.amount != "0") {
  5137. _this.kindList.push({
  5138. amount: _this.insureList[index].amount,
  5139. kindCode: _this.insureList[index].kindCode,
  5140. kindName: _this.insureList[index].kindName
  5141. });
  5142. }
  5143. return ele;
  5144. });
  5145. } else {
  5146. _this.kindList = [];
  5147. }
  5148. // if (_this.orderno) {
  5149. this.OrderStageProcessing();
  5150. // } else {
  5151. // _this.$api.letter.getquote().then(res => {
  5152. // _this.quoteno = res.data; //获取报价号
  5153. // this.OrderStageProcessing();
  5154. // });
  5155. // }
  5156. }
  5157. } else {
  5158. document.getElementById("CheZhu").scrollIntoView();
  5159. _this.$message({ message: "请检查人员信息", type: "warning" });
  5160. }
  5161. });
  5162. } else {
  5163. document.getElementById("Car").scrollIntoView();
  5164. this.$message({ message: "请检查车辆信息", type: "warning" });
  5165. return false;
  5166. }
  5167. });
  5168. },
  5169. //动态函数
  5170. ToolClickFun(MethodName, Parameter, companyId, companyName) {
  5171. this[`${MethodName}`](Parameter, companyId, companyName);
  5172. },
  5173. //更新报价历史
  5174. QuotationHistory() {
  5175. let params = {
  5176. orderNo: this.orderno,
  5177. orderStatus: ""
  5178. };
  5179. this.$api.letter.queryQuoteHistory(params).then(res => {
  5180. res.data.forEach(item => {
  5181. if (item.accidentInfo) {
  5182. item.accidentInfo.constructor === Object
  5183. ? [item.accidentInfo]
  5184. : item.accidentInfo;
  5185. }
  5186. });
  5187. this.HistoryList = res.data;
  5188. });
  5189. },
  5190. open2(Name, Msg) {
  5191. this.$notify.info({
  5192. title: Name,
  5193. dangerouslyUseHTMLString: true,
  5194. type: "warning",
  5195. message: Msg,
  5196. customClass: "customNotifyClass",
  5197. duration: 7000
  5198. });
  5199. },
  5200. open3(Name, Msg) {
  5201. this.$notify.info({
  5202. title: Name,
  5203. dangerouslyUseHTMLString: true,
  5204. type: "warning",
  5205. message: `<p>${Msg.replace(/\n/g, '<br>')}</p>`,
  5206. customClass: "customNotifyClass",
  5207. duration: 7000
  5208. });
  5209. },
  5210. openPredictInfo(Name, Msg) {
  5211. this.redictInfoMsg = Msg;
  5212. this.redictInfodialogVisible = true;
  5213. },
  5214. //订单生成前数据处理事件
  5215. OrderStageProcessing() {
  5216. if (this.tbczcarShow && this.imageList2.length > 0) {
  5217. //投保人同车主
  5218. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  5219. if (this.imageList3.length == 1 ) {
  5220. this.imageList3[0].imageType = this.imageList3[0].imageType.includes('C0')?"C03":'D03'
  5221. }
  5222. else {
  5223. this.imageList3.forEach(e=>{
  5224. e.imageType= e.imageType.includes('C0')?"C03":'D03'
  5225. })
  5226. }
  5227. }
  5228. if (this.bbczcarShow && this.imageList2.length > 0) {
  5229. //被保人同车主
  5230. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  5231. if (this.imageList4.length == 1 ) {
  5232. this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0')?"C04":'D04'
  5233. }
  5234. else {
  5235. this.imageList4.forEach(e=>{
  5236. e.imageType= e.imageType.includes('C0')?"C04":'D04'
  5237. })
  5238. }
  5239. // if (this.imageList4.length == 1) {
  5240. // this.imageList4[0].imageType = "C04";
  5241. // }
  5242. // else {
  5243. // this.imageList4[0].imageType = "C04";
  5244. // this.imageList4[1].imageType = "D04";
  5245. // }
  5246. }
  5247. if (this.bbtbcarShow && this.imageList3.length > 0) {
  5248. //被保人同投保人
  5249. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  5250. if (this.imageList4.length == 1 ) {
  5251. this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0')?"C04":'D04'
  5252. }
  5253. else {
  5254. this.imageList4.forEach(e=>{
  5255. e.imageType= e.imageType.includes('C0')?"C04":'D04'
  5256. })
  5257. }
  5258. // if (this.imageList4.length == 1) {
  5259. // this.imageList4[0].imageType = "C04";
  5260. // } else {
  5261. // this.imageList4[0].imageType = "C04";
  5262. // this.imageList4[1].imageType = "D04";
  5263. // }
  5264. }
  5265. //日期长度<10处理
  5266. const formatDate = date => {
  5267. if (date.length < 10) {
  5268. return this.timeformat(date);
  5269. }
  5270. return date;
  5271. };
  5272. if (this.carInfo.registerDate.length < 10) {
  5273. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  5274. }
  5275. if (this.carInfo.issueDate.length < 10) {
  5276. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  5277. }
  5278. if (
  5279. this.carInfo.transferDate &&
  5280. this.carInfo.transferDate.length < 10 &&
  5281. this.carInfo.transferDate !== ""
  5282. ) {
  5283. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  5284. }
  5285. //日期长度<10处理
  5286. //提交身份证/驾驶证 ——————————————————
  5287. this.policyHolderInfo.owner = this.tbczcarShow;
  5288. this.insuredPersonInfo.owner = this.bbczcarShow;
  5289. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  5290. if (typeof this.ownerInfo.provinceData == "string") {
  5291. this.ownerInfo.provinceData = [];
  5292. }
  5293. if (typeof this.insuredPersonInfo.provinceData == "string") {
  5294. this.insuredPersonInfo.provinceData = [];
  5295. }
  5296. if (typeof this.policyHolderInfo.provinceData == "string") {
  5297. this.policyHolderInfo.provinceData = [];
  5298. }
  5299. let param = {
  5300. userId: this.userId,
  5301. quoteno: this.quoteno,
  5302. orderNo: this.orderno,
  5303. carInfo: this.carInfo,
  5304. insuredPersonInfo: this.insuredPersonInfo,
  5305. ownerInfo: this.ownerInfo,
  5306. policyHolderInfo: this.policyHolderInfo,
  5307. kindList: this.kindList,
  5308. riskList: this.riskList,
  5309. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5310. };
  5311. this.$api.letter[this.apiInterfaceName](param).then(res => {
  5312. if (res.code == "200") {
  5313. //上传图片
  5314. const mergedArray = [
  5315. ...this.imageList1,
  5316. ...this.imageList2,
  5317. ...this.imageList3,
  5318. ...this.imageList4,
  5319. ...this.imageList5
  5320. ];
  5321. if (mergedArray.length > 0) {
  5322. let imageparam = {
  5323. imageList: mergedArray,
  5324. quoteNo: res.data.quoteno
  5325. };
  5326. this.$api.letter.uploadImages(imageparam).then(responses => {
  5327. this.imageEcho(res.data.quoteno); // 获取图片
  5328. });
  5329. }
  5330. this.quoteno = res.data.quoteno;
  5331. this.orderno = res.data.orderno;
  5332. this.totalCompanyList.map((ele, index) => {
  5333. if (ele.checked) {
  5334. //动态调用报价接口
  5335. ele.quoteCode = 1;
  5336. ele.orderstatus = 0;
  5337. this.ToolClickFun(ele.cnName, index, ele.id, ele.namesimple);
  5338. }
  5339. });
  5340. } else if (res.code == 1001) {
  5341. this.$confirm("是否生成新订单?", "提示", {
  5342. confirmButtonText: "确定",
  5343. cancelButtonText: "取消",
  5344. type: "warning"
  5345. })
  5346. .then(() => {
  5347. this.orderno = "";
  5348. this.quoteno = "";
  5349. this.quote();
  5350. })
  5351. .catch(() => { });
  5352. } else {
  5353. this.$message({ message: res.msg, type: "warning" });
  5354. }
  5355. });
  5356. document.getElementById("company").scrollIntoView();
  5357. this.imageUploadShow = true;
  5358. },
  5359. //永安报价
  5360. yongan(num, id) {
  5361. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5362. let params = {
  5363. orderNo: this.orderno,
  5364. companyId: id,
  5365. agreementId: this.totalCompanyList[num].agreementId
  5366. };
  5367. this.$api.letter.yonganquote(params).then(res => {
  5368. this.totalCompanyList[num].msg = res.msg;
  5369. if (res.msg == "重复投保" && res.code == "501") {
  5370. if (!!res.data.jqStartDate && !res.data.syStartDate) {
  5371. this.jqstartDate = res.data.jqStartDate;
  5372. this.jqendDate = res.data.jqEndDate;
  5373. this.updateRiskDates(
  5374. "0507",
  5375. res.data.jqStartDate,
  5376. res.data.jqEndDate
  5377. );
  5378. let param = {
  5379. userId: this.userId,
  5380. quoteno: this.quoteno,
  5381. orderNo: this.orderno,
  5382. carInfo: this.carInfo,
  5383. insuredPersonInfo: this.insuredPersonInfo,
  5384. ownerInfo: this.ownerInfo,
  5385. policyHolderInfo: this.policyHolderInfo,
  5386. kindList: this.kindList,
  5387. riskList: this.riskList,
  5388. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  5389. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5390. };
  5391. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5392. this.yongan(num, id);
  5393. });
  5394. } else if (!!res.data.syStartDate && !res.data.jqStartDate) {
  5395. this.systartDate = res.data.syStartDate;
  5396. this.syendDate = res.data.syEndDate;
  5397. this.updateRiskDates(
  5398. "0510",
  5399. res.data.syStartDate,
  5400. res.data.syEndDate
  5401. );
  5402. let param = {
  5403. userId: this.userId,
  5404. quoteno: this.quoteno,
  5405. orderNo: this.orderno,
  5406. carInfo: this.carInfo,
  5407. insuredPersonInfo: this.insuredPersonInfo,
  5408. ownerInfo: this.ownerInfo,
  5409. policyHolderInfo: this.policyHolderInfo,
  5410. kindList: this.kindList,
  5411. riskList: this.riskList,
  5412. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5413. };
  5414. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5415. this.yongan(num, id);
  5416. });
  5417. } else if (!!res.data.syStartDate && !!res.data.jqStartDate) {
  5418. this.jqstartDate = res.data.jqStartDate;
  5419. this.jqendDate = res.data.jqEndDate;
  5420. this.systartDate = res.data.syStartDate;
  5421. this.syendDate = res.data.syEndDate;
  5422. this.updateRiskDates(
  5423. "0507",
  5424. res.data.jqStartDate,
  5425. res.data.jqEndDate
  5426. );
  5427. this.updateRiskDates(
  5428. "0510",
  5429. res.data.syStartDate,
  5430. res.data.syEndDate
  5431. );
  5432. let param = {
  5433. userId: this.userId,
  5434. quoteno: this.quoteno,
  5435. orderNo: this.orderno,
  5436. carInfo: this.carInfo,
  5437. insuredPersonInfo: this.insuredPersonInfo,
  5438. ownerInfo: this.ownerInfo,
  5439. policyHolderInfo: this.policyHolderInfo,
  5440. kindList: this.kindList,
  5441. riskList: this.riskList,
  5442. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5443. };
  5444. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5445. this.yongan(num, id);
  5446. });
  5447. } else {
  5448. this.totalCompanyList[num].quoteCode = "3";
  5449. this.totalCompanyList[num].msg = "重复投保";
  5450. }
  5451. } else if (
  5452. res.code == "500" ||
  5453. res.code == "502" ||
  5454. res.code == "-9999"
  5455. ) {
  5456. this.totalCompanyList[num].quoteCode = "-9999";
  5457. this.totalCompanyList[num].msg = res.msg;
  5458. } else {
  5459. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5460. this.totalCompanyList[num].lastYearMsg = "";
  5461. let dat = res.data.warnMessageList;
  5462. dat.map(ele => {
  5463. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5464. });
  5465. }
  5466. this.totalCompanyList[num].quoteCode = 200;
  5467. this.totalCompanyList[num].result = res.data;
  5468. this.QuotationHistory();
  5469. }
  5470. });
  5471. },
  5472. updateRiskDates(riskCode, startDate, endDate) {
  5473. for (let i = 0; i < this.riskList.length; i++) {
  5474. if (this.riskList[i].riskCode == riskCode) {
  5475. this.riskList[i].startDate = startDate;
  5476. this.riskList[i].endDate = endDate;
  5477. }
  5478. }
  5479. },
  5480. //中煤报价
  5481. zhongmei(num, id) {
  5482. let accidentalDrivingVo = {};
  5483. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5484. // if (this.accidentFormZM.projectCode) {
  5485. // accidentalDrivingVo = {
  5486. // projectCode: this.accidentFormZM.projectCode,
  5487. // projectName: this.accidentFormZM.projectName,
  5488. // quantity: this.accidentFormZM.quantity
  5489. // ? this.accidentFormZM.quantity
  5490. // : "1"
  5491. // };
  5492. // }
  5493. if (this.accidentFormZM.projectCode) {
  5494. accidentalDrivingVo = {
  5495. ...this.zhongmeiInsuranceData.find(e=>e.projectCode==this.accidentFormZM.projectCode),
  5496. quantity: this.accidentFormZM.quantity
  5497. ? this.accidentFormZM.quantity
  5498. : "1"
  5499. };
  5500. }
  5501. let params = {
  5502. accidentalDrivingVo,
  5503. orderNo: this.orderno,
  5504. companyId: id,
  5505. agreementId: this.totalCompanyList[num].agreementId,
  5506. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5507. };
  5508. this.$api.letter.zhongmeiquote(params).then(res => {
  5509. this.totalCompanyList[num].msg = res.msg;
  5510. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5511. this.totalCompanyList[num].quoteCode = "4";
  5512. this.totalCompanyList[num].msg = res.msg;
  5513. return;
  5514. } else if (
  5515. res.data == null &&
  5516. res.msg.indexOf("交强险平台返回") > -1 &&
  5517. res.msg.indexOf(";终保日期") > -1
  5518. ) {
  5519. this.totalCompanyList[num].lastYearMsg =
  5520. "<b>交强险</b><br>" +
  5521. res.msg.slice(
  5522. res.msg.indexOf("起保日期 "),
  5523. res.msg.indexOf("地区 山西。") + 6
  5524. );
  5525. let time =
  5526. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5527. this.jqstartDate = time;
  5528. this.jqendDate = this.oneYearPast1(time);
  5529. if (this.riskList.length > 0) {
  5530. for (let i = 0; i < this.riskList.length; i++) {
  5531. if (this.riskList[i].riskCode == "0507") {
  5532. this.riskList[i].startDate = time;
  5533. this.riskList[i].endDate = this.oneYearPast1(time);
  5534. }
  5535. }
  5536. }
  5537. let param = {
  5538. userId: this.userId,
  5539. quoteno: this.quoteno,
  5540. orderNo: this.orderno,
  5541. carInfo: this.carInfo,
  5542. insuredPersonInfo: this.insuredPersonInfo,
  5543. ownerInfo: this.ownerInfo,
  5544. policyHolderInfo: this.policyHolderInfo,
  5545. kindList: this.kindList,
  5546. riskList: this.riskList,
  5547. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5548. };
  5549. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5550. this.zhongmei(num, id);
  5551. });
  5552. } else if (!!res.data) {
  5553. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5554. this.totalCompanyList[num].lastYearMsg = "";
  5555. let dat = res.data.warnMessageList;
  5556. dat.map(ele => {
  5557. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5558. });
  5559. }
  5560. this.totalCompanyList[num].quoteCode = 200;
  5561. this.totalCompanyList[num].result = res.data;
  5562. this.QuotationHistory();
  5563. } else {
  5564. this.totalCompanyList[num].quoteCode = "3";
  5565. this.totalCompanyList[num].msg = res.msg;
  5566. return;
  5567. }
  5568. });
  5569. },
  5570. // 大家报价
  5571. dajia(num, id) {
  5572. // let accidentalDrivingVo=[]
  5573. // if(this.dajiaaccidentalDrivingVo){
  5574. // accidentalDrivingVo.rideRiskCode=this.dajiaaccidentalDrivingVo.schemeNo;
  5575. // accidentalDrivingVo.rideRiskName=this.dajiaaccidentalDrivingVo.cvrgName;
  5576. // accidentalDrivingVo.quantity=this.dajiaaccidentalDrivingVo.quantity;
  5577. // }
  5578. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5579. let params = {
  5580. accidentalDrivingVo: this.dajiaaccidentalDrivingVo,
  5581. orderNo: this.orderno,
  5582. companyId: id,
  5583. agreementId: this.totalCompanyList[num].agreementId,
  5584. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5585. };
  5586. this.$api.letter.dajiaquote(params).then(res => {
  5587. this.totalCompanyList[num].msg = res.msg;
  5588. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5589. this.totalCompanyList[num].quoteCode = "4";
  5590. this.totalCompanyList[num].msg = res.msg;
  5591. return;
  5592. } else if (
  5593. res.data == null &&
  5594. res.msg.indexOf("交强险平台返回") > -1 &&
  5595. res.msg.indexOf(";终保日期") > -1
  5596. ) {
  5597. this.totalCompanyList[num].lastYearMsg =
  5598. "<b>交强险</b><br>" +
  5599. res.msg.slice(
  5600. res.msg.indexOf("起保日期 "),
  5601. res.msg.indexOf("地区 山西。") + 6
  5602. );
  5603. let time =
  5604. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5605. this.jqstartDate = time;
  5606. this.jqendDate = this.oneYearPast1(time);
  5607. if (this.riskList.length > 0) {
  5608. for (let i = 0; i < this.riskList.length; i++) {
  5609. if (this.riskList[i].riskCode == "0507") {
  5610. this.riskList[i].startDate = time;
  5611. this.riskList[i].endDate = this.oneYearPast1(time);
  5612. }
  5613. }
  5614. }
  5615. let param = {
  5616. userId: this.userId,
  5617. quoteno: this.quoteno,
  5618. orderNo: this.orderno,
  5619. carInfo: this.carInfo,
  5620. insuredPersonInfo: this.insuredPersonInfo,
  5621. ownerInfo: this.ownerInfo,
  5622. policyHolderInfo: this.policyHolderInfo,
  5623. kindList: this.kindList,
  5624. riskList: this.riskList,
  5625. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5626. };
  5627. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5628. this.dajia(num, id);
  5629. });
  5630. } else if (!!res.data) {
  5631. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5632. this.totalCompanyList[num].lastYearMsg = "";
  5633. let dat = res.data.warnMessageList;
  5634. dat.map(ele => {
  5635. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5636. });
  5637. }
  5638. this.totalCompanyList[num].quoteCode = 200;
  5639. this.totalCompanyList[num].result = res.data;
  5640. this.QuotationHistory();
  5641. } else {
  5642. this.totalCompanyList[num].quoteCode = "3";
  5643. this.totalCompanyList[num].msg = res.msg;
  5644. return;
  5645. }
  5646. });
  5647. },
  5648. //华泰报价
  5649. huatai(num, id) {
  5650. let type=this.totalCompanyList[num].apiType;
  5651. let api = type == 2 ? "pythonquote" : "huataiquote";
  5652. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5653. let params = {
  5654. orderNo: this.orderno,
  5655. companyId: id,
  5656. agreementId: this.totalCompanyList[num].agreementId,
  5657. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5658. };
  5659. this.$api.letter[api](params).then(res => {
  5660. this.totalCompanyList[num].msg = res.msg;
  5661. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5662. this.totalCompanyList[num].quoteCode = "4";
  5663. this.totalCompanyList[num].msg = res.msg;
  5664. return;
  5665. } else if (
  5666. res.data == null &&
  5667. res.msg.indexOf("交强险平台返回") > -1 &&
  5668. res.msg.indexOf(";终保日期") > -1
  5669. ) {
  5670. //判断保司返回重复投保信息,进行默认赋值起终保日期,重新算费 后面联调需要调整
  5671. let time =
  5672. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5673. this.jqstartDate = time;
  5674. this.jqendDate = this.oneYearPast1(time);
  5675. this.systartDate = time;
  5676. this.syendDate = this.oneYearPast1(time);
  5677. if (this.riskList.length > 0) {
  5678. for (let i = 0; i < this.riskList.length; i++) {
  5679. if (this.riskList[i].riskCode == "0507") {
  5680. this.riskList[i].startDate = time;
  5681. this.riskList[i].endDate = this.oneYearPast1(time);
  5682. } else if (this.riskList[i].riskCode == "0510") {
  5683. this.riskList[i].startDate = time;
  5684. this.riskList[i].endDate = this.oneYearPast1(time);
  5685. }
  5686. }
  5687. }
  5688. let param = {
  5689. userId: this.userId,
  5690. quoteno: this.quoteno,
  5691. orderNo: this.orderno,
  5692. carInfo: this.carInfo,
  5693. insuredPersonInfo: this.insuredPersonInfo,
  5694. ownerInfo: this.ownerInfo,
  5695. policyHolderInfo: this.policyHolderInfo,
  5696. kindList: this.kindList,
  5697. riskList: this.riskList,
  5698. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5699. };
  5700. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5701. this.huatai(num, id);
  5702. });
  5703. } else if (!!res.data) {
  5704. this.totalCompanyList[num].quoteCode = 200;
  5705. this.totalCompanyList[num].result = res.data;
  5706. this.QuotationHistory();
  5707. } else {
  5708. this.totalCompanyList[num].quoteCode = "3";
  5709. this.totalCompanyList[num].msg = res.msg;
  5710. return;
  5711. }
  5712. });
  5713. },
  5714. //紫金报价
  5715. zijin(num, id) {
  5716. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5717. let params = {
  5718. accidentalDrivingVo: this.accidentalDrivingVo,
  5719. orderNo: this.orderno,
  5720. companyId: id,
  5721. agreementId: this.totalCompanyList[num].agreementId,
  5722. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5723. coefficient: this.totalCompanyList[num].coefficient
  5724. };
  5725. this.$api.letter.zijinquote(params).then(res => {
  5726. this.totalCompanyList[num].msg = res.msg;
  5727. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5728. this.totalCompanyList[num].quoteCode = "4";
  5729. this.totalCompanyList[num].msg = res.msg;
  5730. return;
  5731. } else if (
  5732. res.data == null &&
  5733. res.msg.indexOf("交强险平台返回") > -1 &&
  5734. res.msg.indexOf(";终保日期") > -1
  5735. ) {
  5736. let time =
  5737. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5738. this.jqstartDate = time;
  5739. this.jqendDate = this.oneYearPast1(time);
  5740. this.systartDate = time;
  5741. this.syendDate = this.oneYearPast1(time);
  5742. if (this.riskList.length > 0) {
  5743. for (let i = 0; i < this.riskList.length; i++) {
  5744. if (this.riskList[i].riskCode == "0507") {
  5745. this.riskList[i].startDate = time;
  5746. this.riskList[i].endDate = this.oneYearPast1(time);
  5747. } else if (this.riskList[i].riskCode == "0510") {
  5748. this.riskList[i].startDate = time;
  5749. this.riskList[i].endDate = this.oneYearPast1(time);
  5750. }
  5751. }
  5752. }
  5753. let param = {
  5754. userId: this.userId,
  5755. quoteno: this.quoteno,
  5756. orderNo: this.orderno,
  5757. carInfo: this.carInfo,
  5758. insuredPersonInfo: this.insuredPersonInfo,
  5759. ownerInfo: this.ownerInfo,
  5760. policyHolderInfo: this.policyHolderInfo,
  5761. kindList: this.kindList,
  5762. riskList: this.riskList,
  5763. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5764. };
  5765. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5766. this.zijin(num, id);
  5767. });
  5768. } else if (!!res.data) {
  5769. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5770. this.totalCompanyList[num].lastYearMsg = "";
  5771. let dat = res.data.warnMessageList;
  5772. dat.map(ele => {
  5773. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5774. });
  5775. }
  5776. this.totalCompanyList[num].quoteCode = 200;
  5777. this.totalCompanyList[num].result = res.data;
  5778. this.QuotationHistory();
  5779. } else {
  5780. this.totalCompanyList[num].quoteCode = "3";
  5781. this.totalCompanyList[num].msg = res.msg;
  5782. return;
  5783. }
  5784. });
  5785. },
  5786. //永诚报价
  5787. yongcheng(num, id) {
  5788. this.iscCrownerShow = false;
  5789. this.isInsuredShow = false;
  5790. this.isApplicantShow = false;
  5791. let accidentalDrivingVo = {};
  5792. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5793. if (this.accidentForm.projectCode) {
  5794. let data= this.yongchengaccidentDataList.find(
  5795. val => val.projectCode == this.yongchengtemplateSelection
  5796. );
  5797. accidentalDrivingVo = {
  5798. ...data,
  5799. quantity: this.accidentForm.quantity ? this.accidentForm.quantity : ""
  5800. };
  5801. }
  5802. let params = {
  5803. accidentalDrivingVo,
  5804. orderNo: this.orderno,
  5805. companyId: id,
  5806. cqryCdeJq: this.cqryCdeJq,
  5807. cqryCdeSy: this.cqryCdeSy,
  5808. renewalCodeJq: this.renewalCodeJq,
  5809. renewalCodeSy: this.renewalCodeSy,
  5810. agreementId: this.totalCompanyList[num].agreementId,
  5811. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5812. };
  5813. this.$api.letter.yongchengquote(params).then(res => {
  5814. this.totalCompanyList[num].msg = res.msg;
  5815. if (
  5816. res.data == null &&
  5817. res.msg.indexOf("车险平台返回") > -1 &&
  5818. res.msg.indexOf(";终保日期") > -1
  5819. ) {
  5820. let time =
  5821. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5822. this.jqstartDate = time;
  5823. this.jqendDate = this.oneYearPast1(time);
  5824. if (this.riskList.length > 0) {
  5825. for (let i = 0; i < this.riskList.length; i++) {
  5826. if (this.riskList[i].riskCode == "0507") {
  5827. this.riskList[i].startDate = time;
  5828. this.riskList[i].endDate = this.oneYearPast1(time);
  5829. }
  5830. }
  5831. }
  5832. let param = {
  5833. userId: this.userId,
  5834. quoteno: this.quoteno,
  5835. orderNo: this.orderno,
  5836. carInfo: this.carInfo,
  5837. insuredPersonInfo: this.insuredPersonInfo,
  5838. ownerInfo: this.ownerInfo,
  5839. policyHolderInfo: this.policyHolderInfo,
  5840. kindList: this.kindList,
  5841. riskList: this.riskList,
  5842. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5843. };
  5844. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5845. this.yongcheng(num, id);
  5846. });
  5847. } else if (res.code == "200") {
  5848. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5849. this.totalCompanyList[num].lastYearMsg = "";
  5850. let dat = res.data.warnMessageList;
  5851. dat.map(ele => {
  5852. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5853. });
  5854. }
  5855. this.totalCompanyList[num].quoteCode = 200;
  5856. this.totalCompanyList[num].result = res.data;
  5857. this.QuotationHistory();
  5858. } else if (res.code == "101") {
  5859. this.totalCompanyList[num].quoteCode = "101";
  5860. this.totalCompanyList[num].msg = res.msg;
  5861. this.cqryCdeJq = res.data.cqryCdeJq;
  5862. this.cqryCdeSy = res.data.cqryCdeSy;
  5863. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  5864. let jqBase64 = `data:image/png;base64,${jq}`;
  5865. this.renewalCodeJqImg = jqBase64;
  5866. if (res.data.renewalCodeSy) {
  5867. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  5868. let syBase64 = `data:image/png;base64,${sy}`;
  5869. this.renewalCodeSyImg = syBase64;
  5870. }
  5871. this.renewalCodedialogVisible = true;
  5872. } else if (res.code == "500") {
  5873. // this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
  5874. // this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
  5875. // this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
  5876. // this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
  5877. // this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
  5878. // this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
  5879. this.totalCompanyList[num].quoteCode = "3";
  5880. this.totalCompanyList[num].msg = res.msg;
  5881. } else {
  5882. this.totalCompanyList[num].quoteCode = "3";
  5883. this.totalCompanyList[num].msg = res.msg;
  5884. return;
  5885. }
  5886. });
  5887. },
  5888. //国任报价
  5889. guoRen(num, id) {
  5890. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5891. let guoRenSpecialAgreementVo = [];
  5892. this.zijinengageList.forEach(val => {
  5893. guoRenSpecialAgreementVo.push({
  5894. clauses: val.clauseName,
  5895. clausesContext: val.clauses,
  5896. clauseCode: val.clauseCode,
  5897. riskCode: val.riskCode,
  5898. riskName: val.riskName
  5899. });
  5900. });
  5901. let accidentalDrivingVo = {};
  5902. if (this.guoRenaccidentForm.goodsCode) {
  5903. accidentalDrivingVo = this.guoRenaccidentalDrivingVo
  5904. }
  5905. let params = {
  5906. accidentalDrivingVo,
  5907. orderNo: this.orderno,
  5908. companyId: id,
  5909. cqryCdeJq: this.cqryCdeJq,
  5910. cqryCdeSy: this.cqryCdeSy,
  5911. renewalCodeJq: this.renewalCodeJq,
  5912. renewalCodeSy: this.renewalCodeSy,
  5913. agreementId: this.totalCompanyList[num].agreementId,
  5914. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5915. guoRenSpecialAgreementVo
  5916. };
  5917. this.$api.letter.guorenquote(params).then(res => {
  5918. this.totalCompanyList[num].msg = res.msg;
  5919. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5920. this.totalCompanyList[num].quoteCode = "4";
  5921. this.totalCompanyList[num].msg = res.msg;
  5922. return;
  5923. } else if (
  5924. res.data == null &&
  5925. res.msg.indexOf("车险平台返回") > -1 &&
  5926. res.msg.indexOf(";终保日期") > -1
  5927. ) {
  5928. let time =
  5929. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5930. this.jqstartDate = time;
  5931. this.jqendDate = this.oneYearPast1(time);
  5932. this.systartDate = time;
  5933. this.syendDate = this.oneYearPast1(time);
  5934. if (this.riskList.length > 0) {
  5935. for (let i = 0; i < this.riskList.length; i++) {
  5936. if (this.riskList[i].riskCode == "0507") {
  5937. this.riskList[i].startDate = time;
  5938. this.riskList[i].endDate = this.oneYearPast1(time);
  5939. } else if (this.riskList[i].riskCode == "0510") {
  5940. this.riskList[i].startDate = time;
  5941. this.riskList[i].endDate = this.oneYearPast1(time);
  5942. }
  5943. }
  5944. }
  5945. let param = {
  5946. userId: this.userId,
  5947. quoteno: this.quoteno,
  5948. orderNo: this.orderno,
  5949. carInfo: this.carInfo,
  5950. insuredPersonInfo: this.insuredPersonInfo,
  5951. ownerInfo: this.ownerInfo,
  5952. policyHolderInfo: this.policyHolderInfo,
  5953. kindList: this.kindList,
  5954. riskList: this.riskList,
  5955. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5956. };
  5957. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5958. this.guoRen(num, id);
  5959. });
  5960. } else if (res.code == "200") {
  5961. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5962. this.totalCompanyList[num].lastYearMsg = "";
  5963. let dat = res.data.warnMessageList;
  5964. dat.map(ele => {
  5965. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5966. });
  5967. }
  5968. this.totalCompanyList[num].quoteCode = 200;
  5969. this.totalCompanyList[num].result = res.data;
  5970. this.QuotationHistory();
  5971. } else if (res.code == "101") {
  5972. this.totalCompanyList[num].quoteCode = "101";
  5973. this.totalCompanyList[num].msg = res.msg;
  5974. this.cqryCdeJq = res.data.cqryCdeJq;
  5975. this.cqryCdeSy = res.data.cqryCdeSy;
  5976. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  5977. let jqBase64 = `data:image/png;base64,${jq}`;
  5978. this.renewalCodeJqImg = jqBase64;
  5979. if (res.data.renewalCodeSy) {
  5980. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  5981. let syBase64 = `data:image/png;base64,${sy}`;
  5982. this.renewalCodeSyImg = syBase64;
  5983. }
  5984. this.renewalCodedialogVisible = true;
  5985. } else {
  5986. this.totalCompanyList[num].quoteCode = "3";
  5987. this.totalCompanyList[num].msg = res.msg;
  5988. return;
  5989. }
  5990. });
  5991. },
  5992. //渤海报价
  5993. bohai(num, id) {
  5994. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5995. let accidentalDrivingVo = [];
  5996. if (this.boHaiaccidentForm.packageCode) {
  5997. accidentalDrivingVo = [
  5998. {
  5999. packageCode: this.boHaiaccidentForm.packageCode,
  6000. productCode: this.boHaiaccidentDataList.find(
  6001. e => e.packageCode == this.boHaiaccidentForm.packageCode
  6002. ).productCode,
  6003. copies: this.boHaiaccidentForm.copies
  6004. }
  6005. ];
  6006. }
  6007. let params = {
  6008. accidentalDrivingVo,
  6009. orderNo: this.orderno,
  6010. companyId: id,
  6011. cqryCdeJq: this.cqryCdeJq,
  6012. cqryCdeSy: this.cqryCdeSy,
  6013. renewalCodeJq: this.renewalCodeJq,
  6014. renewalCodeSy: this.renewalCodeSy,
  6015. agreementId: this.totalCompanyList[num].agreementId,
  6016. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  6017. userId: this.userId
  6018. };
  6019. this.$api.letter.bohaiquote(params).then(res => {
  6020. this.totalCompanyList[num].msg = res.msg;
  6021. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  6022. this.totalCompanyList[num].quoteCode = "4";
  6023. this.totalCompanyList[num].msg = res.msg;
  6024. return;
  6025. } else if (
  6026. res.data == null &&
  6027. res.msg.indexOf("车险平台返回") > -1 &&
  6028. res.msg.indexOf(";终保日期") > -1
  6029. ) {
  6030. let time =
  6031. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  6032. this.jqstartDate = time;
  6033. this.jqendDate = this.oneYearPast1(time);
  6034. this.systartDate = time;
  6035. this.syendDate = this.oneYearPast1(time);
  6036. if (this.riskList.length > 0) {
  6037. for (let i = 0; i < this.riskList.length; i++) {
  6038. if (this.riskList[i].riskCode == "0507") {
  6039. this.riskList[i].startDate = time;
  6040. this.riskList[i].endDate = this.oneYearPast1(time);
  6041. } else if (this.riskList[i].riskCode == "0510") {
  6042. this.riskList[i].startDate = time;
  6043. this.riskList[i].endDate = this.oneYearPast1(time);
  6044. }
  6045. }
  6046. }
  6047. let param = {
  6048. userId: this.userId,
  6049. quoteno: this.quoteno,
  6050. orderNo: this.orderno,
  6051. carInfo: this.carInfo,
  6052. insuredPersonInfo: this.insuredPersonInfo,
  6053. ownerInfo: this.ownerInfo,
  6054. policyHolderInfo: this.policyHolderInfo,
  6055. kindList: this.kindList,
  6056. riskList: this.riskList,
  6057. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  6058. };
  6059. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  6060. this.bohai(num, id);
  6061. });
  6062. } else if (res.code == "200") {
  6063. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  6064. this.totalCompanyList[num].lastYearMsg = "";
  6065. let dat = res.data.warnMessageList;
  6066. dat.map(ele => {
  6067. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  6068. });
  6069. }
  6070. this.totalCompanyList[num].quoteCode = 200;
  6071. this.totalCompanyList[num].result = res.data;
  6072. this.QuotationHistory();
  6073. } else if (res.code == "101") {
  6074. this.totalCompanyList[num].quoteCode = "101";
  6075. this.totalCompanyList[num].msg = res.msg;
  6076. this.cqryCdeJq = res.data.cqryCdeJq;
  6077. this.cqryCdeSy = res.data.cqryCdeSy;
  6078. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  6079. let jqBase64 = `data:image/png;base64,${jq}`;
  6080. this.renewalCodeJqImg = jqBase64;
  6081. if (res.data.renewalCodeSy) {
  6082. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  6083. let syBase64 = `data:image/png;base64,${sy}`;
  6084. this.renewalCodeSyImg = syBase64;
  6085. }
  6086. this.renewalCodedialogVisible = true;
  6087. } else {
  6088. this.totalCompanyList[num].quoteCode = "3";
  6089. this.totalCompanyList[num].msg = res.msg;
  6090. return;
  6091. }
  6092. });
  6093. },
  6094. // 爬虫对接
  6095. quoteInsurance(num, id, namesimple, apiType) {
  6096. let api = apiType == 2 ? "pythonquote" : "anshengquote";
  6097. let ccidenttype = this.totalCompanyList[num].cnName;
  6098. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  6099. let params = {
  6100. accidentalDrivingVo: this[ccidenttype + "accidentalDrivingVo"],
  6101. orderNo: this.orderno,
  6102. companyId: id,
  6103. userId: this.userId,
  6104. agreementId: this.totalCompanyList[num].agreementId,
  6105. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  6106. };
  6107. if (namesimple == "中国人寿" && this.lastCompanyId) {
  6108. params.discount = this.totalCompanyList[num].discount;
  6109. params.lastCompanyId = this.lastCompanyId;
  6110. }
  6111. if (namesimple == "华农财险" && this.huanongaccidentalDrivingVo.quantity) {
  6112. params.accidentalDrivingVo.quantity = this.accidentFormHN.quantity;
  6113. // params.accidentalDrivingVo.allQuantity = this.accidentFormHN.allQuantity;
  6114. }
  6115. this.$api.letter[api](params).then(res => {
  6116. this.totalCompanyList[num].msg = res.msg;
  6117. switch (namesimple) {
  6118. case "安盛天平":
  6119. case "中国人寿":
  6120. case "恒邦财险":
  6121. case "华农财险":
  6122. case "太平财险":
  6123. if (!!res.data) {
  6124. if (
  6125. res.data.warnMessageList &&
  6126. res.data.warnMessageList.length > 0
  6127. ) {
  6128. this.totalCompanyList[num].lastYearMsg = "";
  6129. let dat = res.data.warnMessageList;
  6130. dat.map(ele => {
  6131. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  6132. });
  6133. }
  6134. if (res.data.predictInfo && res.data.predictInfo.length > 0) {
  6135. this.totalCompanyList[num].predictInfo = res.data.predictInfo;
  6136. }
  6137. this.totalCompanyList[num].quoteCode = 200;
  6138. this.totalCompanyList[num].result = res.data;
  6139. if (namesimple == "中国人寿" && res.data.companyId) {
  6140. this.lastCompanyId = res.data.companyId;
  6141. }
  6142. this.QuotationHistory();
  6143. } else {
  6144. this.totalCompanyList[num].quoteCode = "3";
  6145. this.totalCompanyList[num].msg = res.msg;
  6146. return;
  6147. }
  6148. break;
  6149. case "众安财险":
  6150. if (!!res.data) {
  6151. if (res.data.tips == "需要验车") {
  6152. this.$notify.error({
  6153. title: "通融单",
  6154. duration: 0,
  6155. dangerouslyUseHTMLString: true,
  6156. message: `<div> ${res.data.warnMessageList
  6157. .map(item => {
  6158. return `<p>${item}</p>`;
  6159. })
  6160. .join("")}
  6161. </div>`
  6162. });
  6163. }
  6164. if (
  6165. res.data.warnMessageList &&
  6166. res.data.warnMessageList.length > 0
  6167. ) {
  6168. this.totalCompanyList[num].lastYearMsg = "";
  6169. let dat = res.data.warnMessageList;
  6170. dat.map(ele => {
  6171. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  6172. });
  6173. }
  6174. this.totalCompanyList[num].quoteCode = 200;
  6175. this.totalCompanyList[num].result = res.data;
  6176. this.QuotationHistory();
  6177. } else {
  6178. this.totalCompanyList[num].quoteCode = "3";
  6179. this.totalCompanyList[num].msg = res.msg;
  6180. return;
  6181. }
  6182. break;
  6183. default:
  6184. break;
  6185. }
  6186. });
  6187. },
  6188. //安盛天平
  6189. ansheng(num, id, namesimple) {
  6190. this.quoteInsurance(
  6191. num,
  6192. id,
  6193. namesimple,
  6194. this.totalCompanyList[num].apiType
  6195. );
  6196. },
  6197. //众安
  6198. zhongan(num, id, namesimple) {
  6199. this.quoteInsurance(
  6200. num,
  6201. id,
  6202. namesimple,
  6203. this.totalCompanyList[num].apiType
  6204. );
  6205. },
  6206. //人寿
  6207. renshou(num, id, namesimple) {
  6208. this.quoteInsurance(
  6209. num,
  6210. id,
  6211. namesimple,
  6212. this.totalCompanyList[num].apiType
  6213. );
  6214. },
  6215. //恒邦
  6216. hengbang(num, id, namesimple) {
  6217. this.quoteInsurance(
  6218. num,
  6219. id,
  6220. namesimple,
  6221. this.totalCompanyList[num].apiType
  6222. );
  6223. },
  6224. //太平
  6225. taiping(num, id, namesimple) {
  6226. this.quoteInsurance(
  6227. num,
  6228. id,
  6229. namesimple,
  6230. this.totalCompanyList[num].apiType
  6231. );
  6232. },
  6233. //华农
  6234. huanong(num, id, namesimple) {
  6235. this.quoteInsurance(
  6236. num,
  6237. id,
  6238. namesimple,
  6239. this.totalCompanyList[num].apiType
  6240. );
  6241. },
  6242. capTypedictTag(val,option) {
  6243. if(option.find(item => item.dictValue == val)){
  6244. return option.find(item => item.dictValue == val).dictTag;
  6245. }
  6246. else{
  6247. return '-'
  6248. }
  6249. },
  6250. // 爬虫对接
  6251. qoutedetail(companyId) {
  6252. let params = {
  6253. companyId: companyId
  6254. };
  6255. this.$api.letter.getByCompanyId(params).then(res => {
  6256. if (res.code == "200") {
  6257. var data = res.data;
  6258. data.kindinfo.map((ele, index) => {
  6259. switch (ele.kindCode) {
  6260. case "A":
  6261. ele.amount = "投保";
  6262. break;
  6263. case "D4":
  6264. case "SY_FJ_YBW2":
  6265. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  6266. break;
  6267. case "MJ1":
  6268. case "MJ2":
  6269. case "MJ3":
  6270. case "MJ4":
  6271. ele.deductibleRate = ele.deductibleRate + "%";
  6272. break;
  6273. default:
  6274. ele.amount = this.toChinesNum(ele.amount);
  6275. }
  6276. return ele;
  6277. });
  6278. if(data.carinfo.carnature && data.carinfo.carnature == '02' || data.carinfo.carnature == '非营业'){
  6279. data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.outOfBusinessVehicleUseoptions)
  6280. }else{
  6281. data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.businessVehicleUseoptions)
  6282. }
  6283. data.carinfo.carnature = this.capTypedictTag(data.carinfo.carnature,this.natureOfVehicleUseoptions);
  6284. data.carinfo.cartype=data.carinfo.cartype?this.capTypedictTag(data.carinfo.cartype,this.trafficManagementVehicleTypeoptions):''
  6285. data.carinfo.cimodelclass=data.carinfo.cimodelclass?this.capTypedictTag(data.carinfo.cimodelclass,this.vehicleTypeoptions):''
  6286. data.carinfo.energyType=data.carinfo.energyType?this.capTypedictTag(data.carinfo.energyType,this.energyTypeoptions):''
  6287. this.queryOrders = data;
  6288. //赋值费用信息
  6289. // this.feeDetailInfo=data.orderFeeResult;
  6290. }
  6291. });
  6292. this.$refs.detailsDialog.setBackupVisible(true);
  6293. },
  6294. imageUpload() {
  6295. this.imageUploaddialogVisible = true;
  6296. },
  6297. cancelorder(item) {
  6298. this.$api.letter.zijincancelorder({ companyId: item.id }).then(res => {
  6299. if (res.code == 200) {
  6300. this.$message({
  6301. message: res.msg,
  6302. type: "success"
  6303. });
  6304. this.QuotationHistory();
  6305. }
  6306. });
  6307. },
  6308. imageEcho(quotenos) {
  6309. //影像查询
  6310. this.$api.letter.findByQuoteNo(quotenos).then(res => {
  6311. if (res.code == "200") {
  6312. this.imageList1 = [];
  6313. this.imageList2 = [];
  6314. this.imageList3 = [];
  6315. this.imageList4 = [];
  6316. this.imageList5 = [];
  6317. this.imgList1 = [];
  6318. this.imgList2 = [];
  6319. this.imgList3 = [];
  6320. this.imgList4 = [];
  6321. this.imgList5 = [];
  6322. this.imgList6 = [];
  6323. this.imgList7 = [];
  6324. this.imgList8 = [];
  6325. this.imgList9 = [];
  6326. this.imgList10 = [];
  6327. this.imgList11 = [];
  6328. Object.keys(res.data).forEach(keys => {
  6329. if (res.data[keys].url) {
  6330. res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
  6331. switch (keys) {
  6332. case "C01":
  6333. this.imageList1.push({
  6334. imageId: res.data[keys].imageId,
  6335. imageType: res.data[keys].imageType
  6336. });
  6337. this.imgList1.push(res.data[keys]);
  6338. break;
  6339. case "D01":
  6340. this.imageList1.push({
  6341. imageId: res.data[keys].imageId,
  6342. imageType: res.data[keys].imageType
  6343. });
  6344. this.imgList2.push(res.data[keys]);
  6345. break;
  6346. case "C02":
  6347. this.imageList2.push({
  6348. imageId: res.data[keys].imageId,
  6349. imageType: res.data[keys].imageType
  6350. });
  6351. this.imgList3.push(res.data[keys]);
  6352. break;
  6353. case "D02":
  6354. this.imageList2.push({
  6355. imageId: res.data[keys].imageId,
  6356. imageType: res.data[keys].imageType
  6357. });
  6358. this.imgList4.push(res.data[keys]);
  6359. break;
  6360. case "C03":
  6361. this.imageList3.push({
  6362. imageId: res.data[keys].imageId,
  6363. imageType: res.data[keys].imageType
  6364. });
  6365. this.imgList5.push(res.data[keys]);
  6366. break;
  6367. case "D03":
  6368. this.imageList3.push({
  6369. imageId: res.data[keys].imageId,
  6370. imageType: res.data[keys].imageType
  6371. });
  6372. this.imgList6.push(res.data[keys]);
  6373. break;
  6374. case "C04":
  6375. this.imageList4.push({
  6376. imageId: res.data[keys].imageId,
  6377. imageType: res.data[keys].imageType
  6378. });
  6379. this.imgList7.push(res.data[keys]);
  6380. break;
  6381. case "D04":
  6382. this.imageList4.push({
  6383. imageId: res.data[keys].imageId,
  6384. imageType: res.data[keys].imageType
  6385. });
  6386. this.imgList8.push(res.data[keys]);
  6387. break;
  6388. case "XC00":
  6389. this.imageList5.push({
  6390. imageId: res.data[keys].imageId,
  6391. imageType: res.data[keys].imageType
  6392. });
  6393. this.imgList9.push(res.data[keys]);
  6394. break;
  6395. case "GC00":
  6396. this.imageList5.push({
  6397. imageId: res.data[keys].imageId,
  6398. imageType: res.data[keys].imageType
  6399. });
  6400. this.imgList10.push(res.data[keys]);
  6401. break;
  6402. case "GX00":
  6403. this.imageList5.push({
  6404. imageId: res.data[keys].imageId,
  6405. imageType: res.data[keys].imageType
  6406. });
  6407. this.imgList11.push(res.data[keys]);
  6408. break;
  6409. default:
  6410. break;
  6411. }
  6412. }
  6413. });
  6414. } else {
  6415. this.$message({ message: res.msg, type: "info" });
  6416. }
  6417. });
  6418. },
  6419. hbsubmitdialog(data) {
  6420. if (this.imageList1.length == 0 && this.imageList2.length == 0) {
  6421. this.$message({ message: "影像不全,先上传影像", type: "error" });
  6422. return;
  6423. }
  6424. this.companyId = data.result.companyId;
  6425. this.apiType = data.apiType;
  6426. this.hbsubmitdialogVisible = true;
  6427. this.contributingState = false;
  6428. if (data.namesimple == "紫金财险") {
  6429. this.$api.letter
  6430. .zijinqueryClauseData({ companyId: this.companyId })
  6431. .then(res => {
  6432. this.zijinengageListData = res.data;
  6433. });
  6434. }
  6435. if (data.namesimple == "华泰财险") {
  6436. this.zijinengageList = [];
  6437. this.$api.letter
  6438. .huataiqueryClauseData({ companyId: this.companyId })
  6439. .then(res => {
  6440. res.data.forEach(val => {
  6441. val.clauseCode = val.engageCode;
  6442. val.clauseName = val.engageTitle;
  6443. val.clauseContent = val.engageDetail;
  6444. val.clauses = val.engageDetail;
  6445. });
  6446. this.zijinengageListData = res.data;
  6447. this.zijinengageListData.forEach(val => {
  6448. this.$nextTick(() => {
  6449. if (val.optType == "2") {
  6450. this.zijinengageList.push(val);
  6451. this.$refs.expandTablePro.toggleRowSelection(val, true);
  6452. }
  6453. });
  6454. });
  6455. });
  6456. } else {
  6457. this.zijinengageListData = [];
  6458. }
  6459. // switch (data.namesimple) {
  6460. // case "紫金财险":
  6461. // this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
  6462. // this.zijinengageListData = res.data;
  6463. // });
  6464. // break;
  6465. // default:
  6466. // break;
  6467. // }
  6468. },
  6469. hbsubmit() {
  6470. this.hbsubmitdialogVisible = false;
  6471. this.contributingState = false;
  6472. this.$api.letter
  6473. .getByCompanyId({ companyId: this.companyId })
  6474. .then(async res => {
  6475. if (res.code == 200) {
  6476. var data = res.data;
  6477. this.queryOrders = data;
  6478. const loading = this.$loading({
  6479. lock: true,
  6480. text: "Loading",
  6481. spinner: "el-icon-loading",
  6482. background: "rgba(0, 0, 0, 0.7)"
  6483. });
  6484. switch (this.queryOrders.inscompany) {
  6485. case "永安财险":
  6486. let api = "";
  6487. api =
  6488. this.apiType == 2
  6489. ? "pythonsubmitImage"
  6490. : "insyongansubmitImage";
  6491. await this.$api.letter[api]({
  6492. companyId: this.companyId
  6493. }).then(res => {
  6494. if (res.code == "200") {
  6495. var _this = this;
  6496. let api1 = "";
  6497. api1 = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
  6498. this.$api.letter[api1]({
  6499. companyId: this.companyId
  6500. }).then(res => {
  6501. var _this = this;
  6502. if (res.code == "200") {
  6503. loading.close();
  6504. this.$message({
  6505. message: "核保成功",
  6506. type: "success"
  6507. });
  6508. this.QuotationHistory();
  6509. _this.$api.letter
  6510. .getByCompanyId({ companyId: this.companyId })
  6511. .then(res => {
  6512. _this.orderstatus = res.data.orderstatus; //订单状态
  6513. _this.underwritingdialogVisible = true;
  6514. let indexid = this.totalCompanyList.findIndex(
  6515. item =>
  6516. item.namesimple == this.queryOrders.inscompany
  6517. );
  6518. this.totalCompanyList[indexid].orderstatus =
  6519. res.data.orderstatus;
  6520. });
  6521. } else {
  6522. loading.close();
  6523. this.$message({
  6524. showClose: true,
  6525. message:
  6526. this.queryOrders.inscompany + "提核--:" + res.msg,
  6527. type: "error",
  6528. duration: 0
  6529. });
  6530. }
  6531. });
  6532. } else {
  6533. this.$message({
  6534. message: this.queryOrders.inscompany + "影像:" + res.msg,
  6535. type: "error",
  6536. duration: 7000
  6537. });
  6538. loading.close();
  6539. }
  6540. });
  6541. break;
  6542. case "中煤财险":
  6543. await this.$api.letter
  6544. .insZhongmeisubmitImage({
  6545. companyId: this.companyId
  6546. })
  6547. .then(res => {
  6548. if (res.code == "200") {
  6549. var _this = this;
  6550. _this.$api.letter
  6551. .Zhongmeiaudit({
  6552. companyId: this.companyId,
  6553. jqappoint: "",
  6554. syappoint: ""
  6555. })
  6556. .then(res => {
  6557. if (res.code == "200") {
  6558. loading.close();
  6559. _this.$message({
  6560. message: "核保成功",
  6561. type: "success"
  6562. });
  6563. this.QuotationHistory();
  6564. _this.$api.letter
  6565. .getByCompanyId({ companyId: this.companyId })
  6566. .then(res => {
  6567. _this.orderstatus = res.data.orderstatus; //订单状态
  6568. _this.underwritingdialogVisible = true;
  6569. let indexid = this.totalCompanyList.findIndex(
  6570. item =>
  6571. item.namesimple ==
  6572. this.queryOrders.inscompany
  6573. );
  6574. this.totalCompanyList[indexid].orderstatus =
  6575. res.data.orderstatus;
  6576. });
  6577. } else {
  6578. loading.close();
  6579. _this.$message({
  6580. showClose: true,
  6581. message:
  6582. this.queryOrders.inscompany +
  6583. "提核--:" +
  6584. res.msg,
  6585. type: "error",
  6586. duration: 0
  6587. });
  6588. _this.$api.letter
  6589. .getByCompanyId({ companyId: this.companyId })
  6590. .then(res => {
  6591. _this.orderstatus = res.data.orderstatus; //订单状态
  6592. });
  6593. }
  6594. });
  6595. } else {
  6596. this.$message({
  6597. message:
  6598. this.queryOrders.inscompany + "影像--:" + res.msg,
  6599. type: "error",
  6600. duration: 7000
  6601. });
  6602. loading.close();
  6603. }
  6604. });
  6605. break;
  6606. case "华泰财险":
  6607. let HtApiImage = "";
  6608. HtApiImage =
  6609. this.apiType == 2
  6610. ? "pythonsubmitImage"
  6611. : "insHuataisubmitImage";
  6612. await this.$api.letter[HtApiImage]({
  6613. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
  6614. })
  6615. .then(res => {
  6616. if (res.code == "200") {
  6617. var _this = this;
  6618. let HtApiaudit = "";
  6619. HtApiaudit = this.apiType == 2 ? "pythonaudit" : "huataiaudit";
  6620. let engageList = [];
  6621. this.zijinengageList.forEach(val => {
  6622. engageList.push({
  6623. engageCode: val.clauseCode,
  6624. engageDetail: val.clauses,
  6625. engageTitle: val.clauseName,
  6626. riskCode: val.riskCode
  6627. });
  6628. });
  6629. _this.$api.letter[HtApiaudit]({
  6630. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
  6631. engageList
  6632. })
  6633. .then(res => {
  6634. if (res.code == "200") {
  6635. loading.close();
  6636. _this.$message({
  6637. message: "核保成功",
  6638. type: "success"
  6639. });
  6640. this.QuotationHistory();
  6641. _this.$api.letter
  6642. .getByCompanyId({ companyId: this.companyId })
  6643. .then(res => {
  6644. _this.orderstatus = res.data.orderstatus; //订单状态
  6645. _this.underwritingdialogVisible = true;
  6646. let indexid = this.totalCompanyList.findIndex(
  6647. item =>
  6648. item.namesimple ==
  6649. this.queryOrders.inscompany
  6650. );
  6651. this.totalCompanyList[indexid].orderstatus =
  6652. res.data.orderstatus;
  6653. });
  6654. } else {
  6655. loading.close();
  6656. _this.$message({
  6657. showClose: true,
  6658. message:
  6659. this.queryOrders.inscompany +
  6660. "提核--:" +
  6661. res.msg,
  6662. type: "error",
  6663. duration: 0
  6664. });
  6665. _this.$api.letter
  6666. .getByCompanyId({ companyId: this.companyId })
  6667. .then(res => {
  6668. _this.orderstatus = res.data.orderstatus; //订单状态
  6669. });
  6670. }
  6671. });
  6672. } else {
  6673. this.$message({
  6674. message:
  6675. this.queryOrders.inscompany + "影像--:" + res.msg,
  6676. type: "error",
  6677. duration: 7000
  6678. });
  6679. loading.close();
  6680. }
  6681. });
  6682. break;
  6683. case "紫金财险":
  6684. await this.$api.letter
  6685. .zijinsubmitImage({
  6686. companyId: this.companyId
  6687. })
  6688. .then(res => {
  6689. if (res.code == "200") {
  6690. var _this = this;
  6691. _this.$api.letter
  6692. .zijinaudit({
  6693. companyId: this.companyId,
  6694. engageList: this.zijinengageList
  6695. })
  6696. .then(res => {
  6697. if (res.code == "200") {
  6698. loading.close();
  6699. _this.$message({
  6700. message: "核保成功",
  6701. type: "success"
  6702. });
  6703. this.QuotationHistory();
  6704. _this.$api.letter
  6705. .getByCompanyId({ companyId: this.companyId })
  6706. .then(res => {
  6707. _this.orderstatus = res.data.orderstatus; //订单状态
  6708. _this.underwritingdialogVisible = true;
  6709. let indexid = this.totalCompanyList.findIndex(
  6710. item =>
  6711. item.namesimple ==
  6712. this.queryOrders.inscompany
  6713. );
  6714. this.totalCompanyList[indexid].orderstatus =
  6715. res.data.orderstatus;
  6716. });
  6717. } else {
  6718. loading.close();
  6719. _this.$message({
  6720. showClose: true,
  6721. dangerouslyUseHTMLString: true,
  6722. message:
  6723. this.queryOrders.inscompany +
  6724. "提核--:" +
  6725. res.msg,
  6726. type: "error",
  6727. duration: 0
  6728. });
  6729. _this.$api.letter
  6730. .getByCompanyId({ companyId: this.companyId })
  6731. .then(res => {
  6732. _this.orderstatus = res.data.orderstatus; //订单状态
  6733. });
  6734. }
  6735. });
  6736. } else {
  6737. this.$message({
  6738. message:
  6739. this.queryOrders.inscompany + "影像--:" + res.msg,
  6740. type: "error",
  6741. duration: 7000
  6742. });
  6743. loading.close();
  6744. }
  6745. });
  6746. break;
  6747. case "国任财险":
  6748. await this.$api.letter
  6749. .insguorensubmitImage({
  6750. companyId: this.companyId
  6751. })
  6752. .then(res => {
  6753. if (res.code == "200") {
  6754. var _this = this;
  6755. _this.$api.letter
  6756. .gunrenaudit({
  6757. companyId: this.companyId
  6758. })
  6759. .then(res => {
  6760. if (res.code == "200") {
  6761. loading.close();
  6762. _this.cqryCdeJq = "";
  6763. _this.cqryCdeSy = "";
  6764. _this.renewalCodeJq = "";
  6765. _this.renewalCodeSy = "";
  6766. this.$message({
  6767. message: "核保成功",
  6768. type: "success"
  6769. });
  6770. this.QuotationHistory();
  6771. _this.$api.letter
  6772. .getByCompanyId({ companyId: this.companyId })
  6773. .then(res => {
  6774. _this.orderstatus = res.data.orderstatus; //订单状态
  6775. _this.underwritingdialogVisible = true;
  6776. let indexid = this.totalCompanyList.findIndex(
  6777. item =>
  6778. item.namesimple ==
  6779. this.queryOrders.inscompany
  6780. );
  6781. this.totalCompanyList[indexid].orderstatus =
  6782. res.data.orderstatus;
  6783. });
  6784. } else {
  6785. loading.close();
  6786. this.$message({
  6787. showClose: true,
  6788. message: res.msg,
  6789. type: "error",
  6790. duration: 0
  6791. });
  6792. }
  6793. });
  6794. } else {
  6795. loading.close();
  6796. this.$message({
  6797. message: res.msg,
  6798. type: "error",
  6799. duration: 7000
  6800. });
  6801. }
  6802. });
  6803. break;
  6804. case "渤海财险":
  6805. await this.$api.letter
  6806. .insbohaisubmitImage({
  6807. companyId: this.companyId
  6808. })
  6809. .then(res => {
  6810. if (res.code == "200") {
  6811. var _this = this;
  6812. _this.$api.letter
  6813. .bohaiaudit({
  6814. companyId: this.companyId
  6815. })
  6816. .then(res => {
  6817. if (res.code == "200") {
  6818. loading.close();
  6819. _this.cqryCdeJq = "";
  6820. _this.cqryCdeSy = "";
  6821. _this.renewalCodeJq = "";
  6822. _this.renewalCodeSy = "";
  6823. this.$message({
  6824. message: "核保成功",
  6825. type: "success"
  6826. });
  6827. this.QuotationHistory();
  6828. _this.$api.letter
  6829. .getByCompanyId({ companyId: this.companyId })
  6830. .then(res => {
  6831. _this.orderstatus = res.data.orderstatus; //订单状态
  6832. _this.underwritingdialogVisible = true;
  6833. let indexid = this.totalCompanyList.findIndex(
  6834. item =>
  6835. item.namesimple ==
  6836. this.queryOrders.inscompany
  6837. );
  6838. this.totalCompanyList[indexid].orderstatus =
  6839. res.data.orderstatus;
  6840. });
  6841. } else {
  6842. loading.close();
  6843. this.$message({
  6844. showClose: true,
  6845. message: res.msg,
  6846. type: "error",
  6847. duration: 0
  6848. });
  6849. }
  6850. });
  6851. } else {
  6852. loading.close();
  6853. this.$message({
  6854. message: res.msg,
  6855. type: "error",
  6856. duration: 7000
  6857. });
  6858. }
  6859. });
  6860. break;
  6861. case "恒邦财险":
  6862. case "华农财险":
  6863. case "太平财险":
  6864. case "安盛天平":
  6865. case "众安财险":
  6866. case "中国人寿":
  6867. let hengbangapi = "";
  6868. hengbangapi =
  6869. this.apiType == 2
  6870. ? "pythonsubmitImage"
  6871. : "anshengsubmitImage";
  6872. await this.$api.letter[hengbangapi]({
  6873. subOrderNo: this.companyId
  6874. }).then(res => {
  6875. if (res.code == "200") {
  6876. var _this = this;
  6877. let hengbangapi1 = "";
  6878. hengbangapi1 =
  6879. this.apiType == 2 ? "pythonaudit" : "anshengaudit";
  6880. _this.$api.letter[hengbangapi1]({
  6881. subOrderNo: this.companyId
  6882. }).then(res => {
  6883. if (res.code == "200") {
  6884. loading.close();
  6885. this.$message({
  6886. message: "核保成功",
  6887. type: "success"
  6888. });
  6889. this.QuotationHistory();
  6890. _this.$api.letter
  6891. .getByCompanyId({ companyId: this.companyId })
  6892. .then(res => {
  6893. _this.orderstatus = res.data.orderstatus; //订单状态
  6894. _this.underwritingdialogVisible = true;
  6895. let indexid = this.totalCompanyList.findIndex(
  6896. item =>
  6897. item.namesimple == this.queryOrders.inscompany
  6898. );
  6899. this.totalCompanyList[indexid].orderstatus =
  6900. res.data.orderstatus;
  6901. });
  6902. } else {
  6903. loading.close();
  6904. this.$message({
  6905. showClose: true,
  6906. dangerouslyUseHTMLString: true,
  6907. message:
  6908. this.queryOrders.inscompany +
  6909. "提核--:" +
  6910. res.msg.replace(/\n/g, "<br><br>"),
  6911. type: "error",
  6912. duration: 0
  6913. });
  6914. }
  6915. });
  6916. } else {
  6917. loading.close();
  6918. this.$message({
  6919. message:
  6920. this.queryOrders.inscompany + "影像--:" + res.msg,
  6921. type: "error",
  6922. duration: 7000
  6923. });
  6924. }
  6925. });
  6926. break;
  6927. case "永诚财险":
  6928. await this.$api.letter
  6929. .insyongchengsubmitImage({
  6930. companyId: this.companyId
  6931. })
  6932. .then(res => {
  6933. if (res.code == "200") {
  6934. var _this = this;
  6935. _this.$api.letter
  6936. .yongchengaudit({
  6937. companyId: this.companyId
  6938. })
  6939. .then(res => {
  6940. if (res.code == "200") {
  6941. loading.close();
  6942. _this.cqryCdeJq = "";
  6943. _this.cqryCdeSy = "";
  6944. _this.renewalCodeJq = "";
  6945. _this.renewalCodeSy = "";
  6946. this.$message({
  6947. message: "核保成功",
  6948. type: "success"
  6949. });
  6950. this.QuotationHistory();
  6951. _this.$api.letter
  6952. .getByCompanyId({ companyId: this.companyId })
  6953. .then(res => {
  6954. _this.orderstatus = res.data.orderstatus; //订单状态
  6955. _this.underwritingdialogVisible = true;
  6956. let indexid = this.totalCompanyList.findIndex(
  6957. item =>
  6958. item.namesimple ==
  6959. this.queryOrders.inscompany
  6960. );
  6961. this.totalCompanyList[indexid].orderstatus =
  6962. res.data.orderstatus;
  6963. });
  6964. } else {
  6965. loading.close();
  6966. this.$message({
  6967. showClose: true,
  6968. message:
  6969. this.queryOrders.inscompany +
  6970. "提核--:" +
  6971. res.msg,
  6972. customClass: "customNotifyClass",
  6973. type: "error",
  6974. duration: 0
  6975. });
  6976. }
  6977. });
  6978. } else {
  6979. loading.close();
  6980. this.$message({
  6981. message:
  6982. this.queryOrders.inscompany + "影像--:" + res.msg,
  6983. type: "error",
  6984. duration: 7000
  6985. });
  6986. }
  6987. });
  6988. break;
  6989. case "大家财险":
  6990. await this.$api.letter
  6991. .dajiasubmitImage({
  6992. companyId: this.companyId
  6993. })
  6994. .then(res => {
  6995. if (res.code == "200") {
  6996. var _this = this;
  6997. _this.$api.letter
  6998. .dajiaaudit({
  6999. companyId: this.companyId
  7000. })
  7001. .then(res => {
  7002. if (res.code == "200") {
  7003. loading.close();
  7004. _this.cqryCdeJq = "";
  7005. _this.cqryCdeSy = "";
  7006. _this.renewalCodeJq = "";
  7007. _this.renewalCodeSy = "";
  7008. this.$message({
  7009. message: "核保成功",
  7010. type: "success"
  7011. });
  7012. this.QuotationHistory();
  7013. _this.$api.letter
  7014. .getByCompanyId({ companyId: this.companyId })
  7015. .then(res => {
  7016. _this.orderstatus = res.data.orderstatus; //订单状态
  7017. _this.underwritingdialogVisible = true;
  7018. let indexid = this.totalCompanyList.findIndex(
  7019. item =>
  7020. item.namesimple ==
  7021. this.queryOrders.inscompany
  7022. );
  7023. this.totalCompanyList[indexid].orderstatus =
  7024. res.data.orderstatus;
  7025. });
  7026. } else {
  7027. loading.close();
  7028. this.$message({
  7029. showClose: true,
  7030. message:
  7031. this.queryOrders.inscompany +
  7032. "提核--:" +
  7033. res.msg,
  7034. customClass: "customNotifyClass",
  7035. type: "error",
  7036. duration: 0
  7037. });
  7038. }
  7039. });
  7040. } else {
  7041. loading.close();
  7042. this.$message({
  7043. message:
  7044. this.queryOrders.inscompany + "影像--:" + res.msg,
  7045. type: "error",
  7046. duration: 7000
  7047. });
  7048. }
  7049. });
  7050. break;
  7051. }
  7052. }
  7053. });
  7054. },
  7055. //当前日期的次日
  7056. transformTime1() {
  7057. var date = new Date();
  7058. date.setFullYear(date.getFullYear());
  7059. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  7060. var strYear = date.getFullYear();
  7061. var strDay = date.getDate();
  7062. var strMonth = date.getMonth() + 1;
  7063. var hh = date.getHours();
  7064. if (hh < 10) {
  7065. hh = "0" + hh;
  7066. }
  7067. if (strMonth < 10) {
  7068. strMonth = "0" + strMonth;
  7069. }
  7070. if (strDay < 10) {
  7071. strDay = "0" + strDay;
  7072. }
  7073. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  7074. return datastr;
  7075. },
  7076. //传入日期的次日
  7077. transformTime2(time) {
  7078. var date = new Date(time);
  7079. date.setFullYear(date.getFullYear());
  7080. date.setTime(date.getTime() + 24 * 60 * 60 * 1000); //一年后的前一天
  7081. var strYear = date.getFullYear();
  7082. var strDay = date.getDate();
  7083. var strMonth = date.getMonth() + 1;
  7084. var hh = date.getHours();
  7085. if (hh < 10) {
  7086. hh = "0" + hh;
  7087. }
  7088. if (strMonth < 10) {
  7089. strMonth = "0" + strMonth;
  7090. }
  7091. if (strDay < 10) {
  7092. strDay = "0" + strDay;
  7093. }
  7094. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  7095. return datastr;
  7096. },
  7097. //时间转换
  7098. transformTime(date) {
  7099. var d = new Date(date);
  7100. var strYear = d.getFullYear();
  7101. var strMonth = d.getMonth() + 1;
  7102. var strDay = d.getDate();
  7103. var hh = d.getHours();
  7104. var minutes = d.getMinutes(); // 分
  7105. var Seconds = d.getSeconds();
  7106. if (hh < 10) {
  7107. hh = "0" + hh;
  7108. }
  7109. if (minutes < 10) {
  7110. minutes = "0" + minutes;
  7111. }
  7112. if (Seconds < 10) {
  7113. Seconds = "0" + Seconds;
  7114. }
  7115. if (strMonth < 10) {
  7116. strMonth = "0" + strMonth;
  7117. }
  7118. if (strDay < 10) {
  7119. strDay = "0" + strDay;
  7120. }
  7121. var datetime =
  7122. strYear +
  7123. "-" +
  7124. strMonth +
  7125. "-" +
  7126. strDay +
  7127. " " +
  7128. hh +
  7129. ":" +
  7130. minutes +
  7131. ":" +
  7132. Seconds;
  7133. return datetime;
  7134. },
  7135. timeformat(date) {
  7136. var d = new Date(date);
  7137. var strYear = d.getFullYear();
  7138. var strMonth = d.getMonth() + 1;
  7139. var strDay = d.getDate();
  7140. var hh = d.getHours();
  7141. if (hh < 10) {
  7142. hh = "0" + hh;
  7143. }
  7144. if (strMonth < 10) {
  7145. strMonth = "0" + strMonth;
  7146. }
  7147. if (strDay < 10) {
  7148. strDay = "0" + strDay;
  7149. }
  7150. var datetime = strYear + "-" + strMonth + "-" + strDay;
  7151. return datetime;
  7152. },
  7153. oneYearPast1(time) {
  7154. //明年减一秒
  7155. var date = new Date(time);
  7156. date.setSeconds(date.getSeconds() - 1);
  7157. date.setFullYear(date.getFullYear() + 1); //一年后
  7158. date.setTime(date.getTime()); //一年后的前一天
  7159. var strYear = date.getFullYear();
  7160. var strDay = date.getDate();
  7161. var strMonth = date.getMonth() + 1;
  7162. var hh = date.getHours();
  7163. var minutes = date.getMinutes(); // 分
  7164. var Seconds = date.getSeconds();
  7165. if (hh < 10) {
  7166. hh = "0" + hh;
  7167. }
  7168. if (minutes < 10) {
  7169. minutes = "0" + minutes;
  7170. }
  7171. if (Seconds < 10) {
  7172. Seconds = "0" + Seconds;
  7173. }
  7174. if (strMonth < 10) {
  7175. strMonth = "0" + strMonth;
  7176. }
  7177. if (strDay < 10) {
  7178. strDay = "0" + strDay;
  7179. }
  7180. var datastr =
  7181. strYear +
  7182. "-" +
  7183. strMonth +
  7184. "-" +
  7185. strDay +
  7186. " " +
  7187. hh +
  7188. ":" +
  7189. minutes +
  7190. ":" +
  7191. Seconds;
  7192. return datastr;
  7193. },
  7194. tbczcarShowChange() {
  7195. //投保人同车主
  7196. switch (this.tbczcarShow) {
  7197. case true:
  7198. this.policyHolderInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  7199. break;
  7200. default:
  7201. for (let key in this.policyHolderInfo) {
  7202. this.policyHolderInfo[key] = "";
  7203. this.policyHolderInfo.provinceData = [];
  7204. this.selectedOptions2 = [];
  7205. }
  7206. }
  7207. },
  7208. bbczcarShowChange() {
  7209. //被保人同车主
  7210. switch (this.bbczcarShow) {
  7211. case true:
  7212. this.bbtbcarShow = false;
  7213. this.insuredPersonInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  7214. break;
  7215. default:
  7216. for (let key in this.insuredPersonInfo) {
  7217. this.insuredPersonInfo[key] = "";
  7218. this.insuredPersonInfo.provinceData = [];
  7219. // this.selectedOptions3 = [];
  7220. }
  7221. }
  7222. },
  7223. bbtbcarShowChange() {
  7224. //被保人同投保人
  7225. switch (this.bbtbcarShow) {
  7226. case true:
  7227. this.bbczcarShow = false;
  7228. this.insuredPersonInfo = JSON.parse(
  7229. JSON.stringify(this.policyHolderInfo)
  7230. );
  7231. break;
  7232. default:
  7233. for (let key in this.insuredPersonInfo) {
  7234. this.insuredPersonInfo[key] = "";
  7235. this.insuredPersonInfo.provinceData = [];
  7236. }
  7237. }
  7238. },
  7239. //VIN查询
  7240. toChooseVin(cartype) {
  7241. if (cartype == "" || cartype == null) {
  7242. this.$message({
  7243. message: "请输入车架号",
  7244. type: "warning"
  7245. });
  7246. } else {
  7247. const loading = this.$loading({
  7248. lock: true,
  7249. text: "Loading",
  7250. spinner: "el-icon-loading",
  7251. background: "rgba(0, 0, 0, 0.7)"
  7252. });
  7253. this.$api.letter.insZhongmeiVIN(this.carInfo.frameNo).then(res => {
  7254. if (res.code == "200") {
  7255. this.reslist = res.data;
  7256. loading.close();
  7257. this.sbdmdialogVisible = true;
  7258. } else {
  7259. loading.close();
  7260. this.$message.error(res.msg);
  7261. }
  7262. });
  7263. }
  7264. },
  7265. // 撤销二维码
  7266. revokeCode(id) {
  7267. this.$api.letter.getRevokeQrCode(id).then(res => {
  7268. if (res.code == 200) {
  7269. this.$message({
  7270. message: res.msg,
  7271. type: "success"
  7272. });
  7273. this.QuotationHistory();
  7274. }
  7275. });
  7276. },
  7277. //品牌型号查询
  7278. toChooseVehicleType(cartype) {
  7279. if (cartype == "" || cartype == null) {
  7280. this.$message({
  7281. message: "请输入车型名称",
  7282. type: "warning"
  7283. });
  7284. } else {
  7285. const loading = this.$loading({
  7286. lock: true,
  7287. text: "Loading",
  7288. spinner: "el-icon-loading",
  7289. background: "rgba(0, 0, 0, 0.7)"
  7290. });
  7291. let param = {
  7292. modelName: cartype.replace(/[^u4e00-u9fa5|,]+/gi, "")
  7293. };
  7294. this.$api.letter.ModelsQuery(param).then(res => {
  7295. if (res.code == "200") {
  7296. loading.close();
  7297. this.reslist = res.data;
  7298. this.chexingdialogVisible = true;
  7299. } else {
  7300. loading.close();
  7301. this.$message.error(res.msg);
  7302. }
  7303. });
  7304. }
  7305. },
  7306. //车型列表双击选中事件
  7307. reslistCurrentChange(row, column, event) {
  7308. this.carInfo.brandName = row.brandCN; //品牌型号
  7309. this.carInfo.modelcname = row.modelName; //品牌型号
  7310. this.carInfo.caryear = row.marketYear; //年款
  7311. this.carInfo.seatCount = row.ratedPassengerCapacity; //座位数
  7312. this.carInfo.purchasePrice = row.replacementValue; //购置价
  7313. this.carInfo.modelCode = row.modelCode; //型号代码
  7314. this.carInfo.familyName = row.series; //系列
  7315. this.carInfo.enginedesc = row.displacement; //排量
  7316. this.carInfo.energyType = row.energyTypes
  7317. this.carInfo.powerScale = row.powerScale; //功率
  7318. this.chexingdialogVisible = false;
  7319. this.sbdmdialogVisible = false;
  7320. },
  7321. //是否过户事件
  7322. transferFlagChange(e) {
  7323. if (e) {
  7324. this.transferDateShow = true;
  7325. this.carInfo.transferDate = this.carInfo.issueDate;
  7326. } else {
  7327. this.transferDateShow = false;
  7328. this.carInfo.transferDate = "";
  7329. }
  7330. },
  7331. //影像上传
  7332. drivingupload(file, imageIdList, imgurl, type) {
  7333. let that = this;
  7334. let size = file.size / 1024 / 1024 < 5;
  7335. const isJPG =
  7336. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7337. if (!size) {
  7338. this.$message.error("上传图片大小不能超过 5MB!");
  7339. this[imgurl] = [];
  7340. return false;
  7341. }
  7342. if (!isJPG) {
  7343. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7344. this[imgurl] = [];
  7345. return false;
  7346. }
  7347. this[imgurl].push(file);
  7348. var file = file.raw;
  7349. const params = new FormData(); // 声明formData数据类型
  7350. params.append("multipartFile", file);
  7351. params.append("type", "image");
  7352. this.$api.letter.uploadFile(params).then(res => {
  7353. if (res.code == "200") {
  7354. if (this[imageIdList].some(v => v.imageType == type)) {
  7355. this[imageIdList].map(val => {
  7356. if (val.imageType == type) {
  7357. val.imageId = res.data.id;
  7358. }
  7359. });
  7360. } else {
  7361. this[imageIdList].push({
  7362. imageId: res.data.id,
  7363. imageType: type
  7364. });
  7365. }
  7366. }
  7367. });
  7368. },
  7369. handleRemove1(file, imageIdList, imgList) {
  7370. this[imageIdList].map((ele, index) => {
  7371. if (file.imageId === ele.imageId) {
  7372. this[imageIdList].splice(index, 1);
  7373. }
  7374. return ele;
  7375. });
  7376. if (file.imageId) {
  7377. this[imgList].map((ele, index) => {
  7378. if (file.imageId === ele.imageId) {
  7379. this[imgList].splice(index, 1);
  7380. }
  7381. return ele;
  7382. });
  7383. } else {
  7384. this[imgList].map((ele, index) => {
  7385. if (file.uid === ele.uid) {
  7386. this[imgList].splice(index, 1);
  7387. }
  7388. return ele;
  7389. });
  7390. }
  7391. },
  7392. compress(img, width, height, ratio) {
  7393. var canvas, ctx, img64;
  7394. canvas = document.createElement("canvas");
  7395. canvas.width = width;
  7396. canvas.height = height;
  7397. ctx = canvas.getContext("2d");
  7398. ctx.drawImage(img, 0, 0, width, height);
  7399. img64 = canvas.toDataURL("image/jpeg", ratio);
  7400. return img64;
  7401. },
  7402. base64ToFile(base64, fileName) {
  7403. let data = base64.split(",");
  7404. let type = data[0].match(/:(.*?);/)[1]; // let suffix = type.split('/')[1];
  7405. const bstr = window.atob(data[1]);
  7406. let n = bstr.length;
  7407. const u8arr = new Uint8Array(n);
  7408. while (n--) {
  7409. u8arr[n] = bstr.charCodeAt(n);
  7410. } // const file =  new File([u8arr], `${fileName}.${suffix}`, {
  7411. const file = new File([u8arr], `${fileName}`, {
  7412. type: type
  7413. });
  7414. return file;
  7415. },
  7416. carfrontChange(file) {
  7417. //选择行驶证正面
  7418. let that = this;
  7419. let size = file.size / 1024 / 1024 < 5;
  7420. const isJPG =
  7421. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7422. if (!size) {
  7423. this.$message.error("上传图片大小不能超过 5MB!");
  7424. return false;
  7425. }
  7426. if (!isJPG) {
  7427. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7428. return false;
  7429. }
  7430. // let name=file.raw.name
  7431. //       var image = new Image();
  7432. //       image.src = window.URL.createObjectURL(file.raw);
  7433. //       that.carfrontImg =  image.src
  7434. //       image.onload = function(){
  7435. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7436. // that.carfrontImg = image.src;
  7437. // const params = new FormData(); // 声明formData数据类型
  7438. // params.append("multipartFile", aaa);
  7439. // params.append("type", "image");
  7440. // that.$api.letter.uploadFile(params).then(res => {
  7441. // if (res.code == "200") {
  7442. // that.CarFrontFile = aaa;//文件流
  7443. // if (that.imageList1.some(v => v.imageType == 'C01')) {
  7444. // that.imageList1.map(val => {
  7445. // if (val.imageType == 'C01') {
  7446. // val.imageId = res.data.id;
  7447. // }
  7448. // })
  7449. // } else {
  7450. // that.imageList1.push({
  7451. // imageId: res.data.id,
  7452. // imageType: "C01",
  7453. // })
  7454. // }
  7455. // } else {
  7456. // that.$message({ message: res.msg, type: "warning" });
  7457. // }
  7458. // });
  7459. // }
  7460. var file = file.raw;
  7461. let files = window.URL.createObjectURL(file); //转临时路径
  7462. this.carfrontImg = files;
  7463. const params = new FormData(); // 声明formData数据类型
  7464. params.append("multipartFile", file);
  7465. params.append("type", "image");
  7466. this.$api.letter.uploadFile(params).then(res => {
  7467. if (res.code == "200") {
  7468. this.CarFrontFile = file; //文件流
  7469. if (this.imageList1.some(v => v.imageType == "C01")) {
  7470. this.imageList1.map(val => {
  7471. if (val.imageType == "C01") {
  7472. val.imageId = res.data.id;
  7473. }
  7474. });
  7475. } else {
  7476. this.imageList1.push({
  7477. imageId: res.data.id,
  7478. imageType: "C01"
  7479. });
  7480. }
  7481. } else {
  7482. this.$message({ message: res.msg, type: "warning" });
  7483. }
  7484. });
  7485. },
  7486. carbackChange(file) {
  7487. let that = this;
  7488. let size = file.size / 1024 / 1024 < 2;
  7489. const isJPG =
  7490. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7491. if (!size) {
  7492. this.$message.error("上传图片大小不能超过 5MB!");
  7493. return false;
  7494. }
  7495. if (!isJPG) {
  7496. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7497. return false;
  7498. }
  7499. // let name=file.raw.name
  7500. //       var image = new Image();
  7501. //       image.src = window.URL.createObjectURL(file.raw);
  7502. //       image.onload = function(){
  7503. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7504. // that.carbackImg = image.src;
  7505. // const params = new FormData(); // 声明formData数据类型
  7506. // params.append("multipartFile", aaa);
  7507. // params.append("type", "image");
  7508. // that.$api.letter.uploadFile(params).then(res => {
  7509. // if (res.code == "200") {
  7510. // that.CarBackFile = aaa;//文件流
  7511. // if (that.imageList1.some(v => v.imageType == 'D01')) {
  7512. // that.imageList1.map(val => {
  7513. // if (val.imageType == 'D01') {
  7514. // val.imageId = res.data.id;
  7515. // }
  7516. // })
  7517. // } else {
  7518. // that.imageList1.push({
  7519. // imageId: res.data.id,
  7520. // imageType: "D01",
  7521. // })
  7522. // }
  7523. // } else {
  7524. // that.$message({ message: res.msg, type: "warning" });
  7525. // }
  7526. // });
  7527. // }
  7528. //选择行驶证反面
  7529. var file = file.raw;
  7530. let files = window.URL.createObjectURL(file); //转临时路径
  7531. this.carbackImg = files;
  7532. const params = new FormData(); // 声明formData数据类型
  7533. params.append("multipartFile", file);
  7534. params.append("type", "image");
  7535. this.$api.letter.uploadFile(params).then(res => {
  7536. if (res.code == "200") {
  7537. this.CarBackFile = file;
  7538. if (this.imageList1.some(v => v.imageType == "D01")) {
  7539. this.imageList1.map(val => {
  7540. if (val.imageType == "D01") {
  7541. val.imageId = res.data.id;
  7542. }
  7543. });
  7544. } else {
  7545. this.imageList1.push({
  7546. imageId: res.data.id,
  7547. imageType: "D01"
  7548. });
  7549. }
  7550. } else {
  7551. this.$message({ message: res.msg, type: "warning" });
  7552. }
  7553. });
  7554. },
  7555. userfrontChange(file) {
  7556. let that = this;
  7557. let size = file.size / 1024 / 1024 < 5;
  7558. const isJPG =
  7559. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7560. if (!size) {
  7561. this.$message.error("上传图片大小不能超过 5MB!");
  7562. return false;
  7563. }
  7564. if (!isJPG) {
  7565. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7566. return false;
  7567. }
  7568. // let name=file.raw.name
  7569. //       var image = new Image();
  7570. //       image.src = window.URL.createObjectURL(file.raw);
  7571. //       image.onload = function(){
  7572. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7573. // that.userfrontImg = image.src;
  7574. // const params = new FormData(); // 声明formData数据类型
  7575. // params.append("multipartFile", aaa);
  7576. // params.append("type", "image");
  7577. // that.$api.letter.uploadFile(params).then(res => {
  7578. // if (res.code == "200") {
  7579. // let type = 'C0' + that.userIndex;
  7580. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  7581. // that['imageList' + that.userIndex].map(val => {
  7582. // if (val.imageType == type) {
  7583. // val.imageId = res.data.id;
  7584. // }
  7585. // })
  7586. // } else {
  7587. // that['imageList' + that.userIndex].push({
  7588. // imageId: res.data.id,
  7589. // imageType: type,
  7590. // })
  7591. // }
  7592. // that[type + 'File'] = aaa;
  7593. // } else {
  7594. // that.$message({ message: res.msg, type: "warning" });
  7595. // }
  7596. // });
  7597. // }
  7598. //选择身份证正面
  7599. var file = file.raw;
  7600. let files = window.URL.createObjectURL(file); //转链接
  7601. this.userfrontImg = files;
  7602. const params = new FormData(); // 声明formData数据类型
  7603. params.append("multipartFile", file);
  7604. params.append("type", "image");
  7605. this.$api.letter.uploadFile(params).then(res => {
  7606. if (res.code == "200") {
  7607. let type = "C0" + this.userIndex;
  7608. if (
  7609. this["imageList" + this.userIndex].some(v => v.imageType == type)
  7610. ) {
  7611. this["imageList" + this.userIndex].map(val => {
  7612. if (val.imageType == type) {
  7613. val.imageId = res.data.id;
  7614. }
  7615. });
  7616. } else {
  7617. this["imageList" + this.userIndex].push({
  7618. imageId: res.data.id,
  7619. imageType: type
  7620. });
  7621. }
  7622. this[type + "File"] = file;
  7623. } else {
  7624. this.$message({ message: res.msg, type: "warning" });
  7625. }
  7626. });
  7627. },
  7628. userbackChange(file) {
  7629. let that = this;
  7630. let size = file.size / 1024 / 1024 < 5;
  7631. const isJPG =
  7632. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7633. if (!size) {
  7634. this.$message.error("上传图片大小不能超过 5MB!");
  7635. return false;
  7636. }
  7637. if (!isJPG) {
  7638. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7639. return false;
  7640. }
  7641. // let name=file.raw.name
  7642. //       var image = new Image();
  7643. //       image.src = window.URL.createObjectURL(file.raw);
  7644. //       image.onload = function(){
  7645. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7646. // that.userbackImg = image.src;
  7647. // const params = new FormData(); // 声明formData数据类型
  7648. // params.append("multipartFile", aaa);
  7649. // params.append("type", "image");
  7650. // that.$api.letter.uploadFile(params).then(res => {
  7651. // if (res.code == "200") {
  7652. // let type = 'D0' + that.userIndex;
  7653. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  7654. // that['imageList' + that.userIndex].map(val => {
  7655. // if (val.imageType == type) {
  7656. // val.imageId = res.data.id;
  7657. // }
  7658. // })
  7659. // } else {
  7660. // that['imageList' + that.userIndex].push({
  7661. // imageId: res.data.id,
  7662. // imageType: type,
  7663. // })
  7664. // }
  7665. // that[type + 'File'] = aaa;
  7666. // } else {
  7667. // that.$message({ message: res.msg, type: "warning" });
  7668. // }
  7669. // });
  7670. // }
  7671. //选择身份证背面
  7672. var file = file.raw;
  7673. let files = window.URL.createObjectURL(file); //转链接
  7674. this.userbackImg = files;
  7675. const params = new FormData(); // 声明formData数据类型
  7676. params.append("multipartFile", file);
  7677. params.append("type", "image");
  7678. this.$api.letter.uploadFile(params).then(res => {
  7679. if (res.code == "200") {
  7680. let type = "D0" + this.userIndex;
  7681. if (
  7682. this["imageList" + this.userIndex].some(v => v.imageType == type)
  7683. ) {
  7684. this["imageList" + this.userIndex].map(val => {
  7685. if (val.imageType == type) {
  7686. val.imageId = res.data.id;
  7687. }
  7688. });
  7689. } else {
  7690. this["imageList" + this.userIndex].push({
  7691. imageId: res.data.id,
  7692. imageType: type
  7693. });
  7694. }
  7695. this[type + "File"] = file;
  7696. } else {
  7697. this.$message({ message: res.msg, type: "warning" });
  7698. }
  7699. });
  7700. },
  7701. CarOCRdiscern() {
  7702. //car识别
  7703. const loading = this.$loading({
  7704. lock: true,
  7705. text: "Loading",
  7706. spinner: "el-icon-loading",
  7707. background: "rgba(0, 0, 0, 0.7)"
  7708. });
  7709. const params = new FormData(); // 声明formData数据类型
  7710. params.append("image1", this.CarFrontFile);
  7711. params.append("image2", this.CarBackFile);
  7712. this.$api.letter.drivingPermit(params).then(res => {
  7713. loading.close();
  7714. if (res.msg == "201") {
  7715. this.$message({ message: "请正确选择驾驶证", type: "warning" });
  7716. }
  7717. var carInfo = res.data.carInfo;
  7718. console.log(carInfo);
  7719. if (carInfo.issueDate) {
  7720. carInfo.issueDate =
  7721. carInfo.issueDate.substring(0, 4) +
  7722. "-" +
  7723. carInfo.issueDate.substring(4, 6) +
  7724. "-" +
  7725. carInfo.issueDate.substring(6, 8);
  7726. }
  7727. if (carInfo.registerDate) {
  7728. carInfo.registerDate =
  7729. carInfo.registerDate.substring(0, 4) +
  7730. "-" +
  7731. carInfo.registerDate.substring(4, 6) +
  7732. "-" +
  7733. carInfo.registerDate.substring(6, 8);
  7734. }
  7735. this.carform.carOwner = carInfo.carOwner; //车主
  7736. this.carform.licenseNo = carInfo.plateNo; //车牌号
  7737. this.carform.modelcname = carInfo.backOcrID; //品牌型号
  7738. this.carform.frameNo = carInfo.vin; //车架号
  7739. this.carform.engineNo = carInfo.engine; //发动机号
  7740. this.carform.registerDate = carInfo.registerDate; //车牌号
  7741. this.carform.issueDate = carInfo.issueDate; //车牌号
  7742. this.carform.grossMass = carInfo.grossMass; //总质量
  7743. this.carform.unladenMass = carInfo.unladenMass; //整备质量
  7744. this.carform.limitLoad = carInfo.limitLoad; //核定载质量
  7745. this.carform.category = carInfo.category; //车辆类型
  7746. this.carform.carnature = carInfo.useNature; //使用性质
  7747. this.carform.vehicleUse = carInfo.vehicleUse; //车辆用途
  7748. this.carform.plateType = carInfo.plateType; //车辆种类
  7749. this.carform.approvedPassengersCapacity =
  7750. carInfo.approvedPassengersCapacity; //核定载客数
  7751. });
  7752. },
  7753. CarOCRconfirm() {
  7754. //传参 carnature
  7755. this.ownerInfo.name = this.carform.carOwner; //车主
  7756. this.carInfo.cartype = "K33";
  7757. this.carInfo.licenseNo = this.carform.licenseNo; //车牌号
  7758. this.carInfo.modelcname = this.carform.modelcname; //品牌型号
  7759. this.carInfo.vinNo = this.carform.frameNo; //车架号
  7760. this.carInfo.frameNo = this.carform.frameNo; //车架号
  7761. this.carInfo.engineNo = this.carform.engineNo; //发动机号
  7762. this.carInfo.seatCount = this.carform.approvedPassengersCapacity; //核定载客数
  7763. this.carInfo.vehicleweight = this.carform.grossMass; //总质量
  7764. this.carInfo.completeKerbMass = this.carform.unladenMass; //整备质量
  7765. this.carInfo.limitLoad = this.carform.limitLoad; //核定载质量
  7766. this.carInfo.cartype = this.carform.category; //车辆类型
  7767. this.carInfo.carnature = this.carform.carnature
  7768. ? this.carform.carnature
  7769. : "02"; //使用性质
  7770. this.carInfo.vehicleUse = this.carform.vehicleUse
  7771. ? this.carform.vehicleUse
  7772. : "05"; //车辆用途
  7773. this.carInfo.cimodelclass = this.carform.plateType; //车辆种类
  7774. if (this.timeformat(this.carform.registerDate) != "NaN-NaN-NaN") {
  7775. this.carInfo.registerDate = this.carform.registerDate; //车牌号
  7776. }
  7777. if (this.timeformat(this.carform.issueDate) != "NaN-NaN-NaN") {
  7778. this.carInfo.issueDate = this.carform.issueDate; //车牌号
  7779. }
  7780. this.uploadcardialogVisible = false;
  7781. },
  7782. handleRemove(e) {
  7783. //删除图片
  7784. this[e] = "";
  7785. switch (this.userIndex) {
  7786. case 0:
  7787. this.carfrontImg = "";
  7788. this.carbackImg = "";
  7789. this.CarFrontFile = ""; // 行驶证正面base64
  7790. this.CarBackFile = ""; // 行驶证背面base64
  7791. break;
  7792. case 2:
  7793. this.userfrontImg = "";
  7794. this.userbackImg = "";
  7795. this.C02File = ""; // 车主正面base64
  7796. this.D02File = ""; // 车主背面base64
  7797. break;
  7798. case 3:
  7799. this.userfrontImg = "";
  7800. this.userbackImg = "";
  7801. this.C03File = ""; // 投保人正面base64
  7802. this.D03File = ""; // 投保人背面base64
  7803. break;
  7804. case 4:
  7805. this.userfrontImg = "";
  7806. this.userbackImg = "";
  7807. this.C04File = ""; // 被保人正面base64
  7808. this.D04File = ""; // 被保人背面base64
  7809. break;
  7810. default:
  7811. }
  7812. },
  7813. //预览图片
  7814. handlePictureCardPreview(img) {
  7815. this.ProViewImg = img;
  7816. this.showViewer = true;
  7817. },
  7818. // 关闭查看器
  7819. closeViewer() {
  7820. this.showViewer = false;
  7821. },
  7822. uploaduser(index) {
  7823. this.userIndex = index;
  7824. this.uploaduserdialogVisible = true;
  7825. },
  7826. userOCRdiscern() {
  7827. //OCR识别
  7828. switch (this.userIndex) {
  7829. case 2:
  7830. const params1 = new FormData(); // 声明formData数据类型
  7831. params1.append("image1", this.C02File);
  7832. params1.append("image2", this.D02File);
  7833. this.userOCRjoggle(params1);
  7834. break;
  7835. case 3:
  7836. const params2 = new FormData(); // 声明formData数据类型
  7837. params2.append("image1", this.C03File);
  7838. params2.append("image2", this.D03File);
  7839. this.userOCRjoggle(params2);
  7840. break;
  7841. case 4:
  7842. const params3 = new FormData(); // 声明formData数据类型
  7843. params3.append("image1", this.C04File);
  7844. params3.append("image2", this.D04File);
  7845. this.userOCRjoggle(params3);
  7846. break;
  7847. default:
  7848. }
  7849. },
  7850. userOCRjoggle(param) {
  7851. const loading = this.$loading({
  7852. lock: true,
  7853. text: "Loading",
  7854. spinner: "el-icon-loading",
  7855. background: "rgba(0, 0, 0, 0.7)"
  7856. });
  7857. this.$api.letter.idCard(param).then(res => {
  7858. loading.close();
  7859. if (res.msg == "201") {
  7860. this.$message({ message: "请正确选择身份证", type: "warning" });
  7861. }
  7862. var customerInfo = res.data.customerInfo;
  7863. if (customerInfo) {
  7864. this.ownerInfoform.name = customerInfo.name;
  7865. if (customerInfo.identifyType == "01") {
  7866. this.ownerInfoform.identifyType = "身份证";
  7867. } else {
  7868. this.ownerInfoform.identifyType = "";
  7869. }
  7870. this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;
  7871. this.ownerInfoform.gender = customerInfo.identifyIssuedCom;
  7872. this.ownerInfoform.addr = customerInfo.addr;
  7873. if (customerInfo.identifyNumber) {
  7874. this.ownerInfoform.age = getAgeByIdCard(
  7875. customerInfo.identifyNumber
  7876. );
  7877. }
  7878. if (
  7879. customerInfo.identifyValidDate ||
  7880. customerInfo.identifyValidEndDate
  7881. ) {
  7882. this.ownerInfoform.identifyValidDate =
  7883. customerInfo.identifyValidDate.substring(0, 4) +
  7884. "-" +
  7885. customerInfo.identifyValidDate.substring(4, 6) +
  7886. "-" +
  7887. customerInfo.identifyValidDate.substring(6, 8);
  7888. this.ownerInfoform.identifyValidEndDate =
  7889. customerInfo.identifyValidEndDate.substring(0, 4) +
  7890. "-" +
  7891. customerInfo.identifyValidEndDate.substring(4, 6) +
  7892. "-" +
  7893. customerInfo.identifyValidEndDate.substring(6, 8);
  7894. if (customerInfo.identifyValidEndDate == "长期") {
  7895. this.ownerInfoform.identifyValidEndDate = "9999-12-31";
  7896. }
  7897. }
  7898. // let values = addressCode(this.ownerInfoform.addr);
  7899. // this.ownerInfoform.province = codeToText[values[0]]
  7900. // this.ownerInfoform.city = codeToText[values[1]]
  7901. // this.ownerInfoform.county = codeToText[values[2]]
  7902. }
  7903. });
  7904. },
  7905. userOCRconfirm() {
  7906. //传参
  7907. switch (this.userIndex) {
  7908. case 2:
  7909. // this.selectedOptions1 = addressCode(this.ownerInfoform.addr);
  7910. this.ownerInfo = JSON.parse(JSON.stringify(this.ownerInfoform));
  7911. break;
  7912. case 3:
  7913. // this.selectedOptions2 = addressCode(this.ownerInfoform.addr);
  7914. this.policyHolderInfo = JSON.parse(
  7915. JSON.stringify(this.ownerInfoform)
  7916. );
  7917. break;
  7918. case 4:
  7919. // this.selectedOptions3 = addressCode(this.ownerInfoform.addr);
  7920. this.insuredPersonInfo = JSON.parse(
  7921. JSON.stringify(this.ownerInfoform)
  7922. );
  7923. break;
  7924. }
  7925. this.uploaduserdialogVisible = false;
  7926. },
  7927. closeDialog(index) {
  7928. // 0:车辆 1:车主 2:投保人 3:被保人
  7929. switch (index) {
  7930. case 0:
  7931. this.carfrontImg = "";
  7932. this.carbackImg = "";
  7933. this.CarFrontFile = ""; // 行驶证正面base64
  7934. this.CarBackFile = ""; // 行驶证背面base64
  7935. Object.keys(this.carform).forEach(key => {
  7936. this.carform[key] = "";
  7937. });
  7938. break;
  7939. case 2:
  7940. this.userfrontImg = "";
  7941. this.userbackImg = "";
  7942. this.C02File = ""; // 车主正面base64
  7943. this.D02File = ""; // 车主背面base64
  7944. Object.keys(this.ownerInfoform).forEach(key => {
  7945. this.ownerInfoform[key] = "";
  7946. });
  7947. break;
  7948. case 3:
  7949. this.userfrontImg = "";
  7950. this.userbackImg = "";
  7951. this.C03File = ""; // 投保人正面base64
  7952. this.D03File = ""; // 投保人背面base64
  7953. Object.keys(this.ownerInfoform).forEach(key => {
  7954. this.ownerInfoform[key] = "";
  7955. });
  7956. break;
  7957. case 4:
  7958. this.userfrontImg = "";
  7959. this.userbackImg = "";
  7960. this.C04File = ""; // 被保人正面base64
  7961. this.D04File = ""; // 被保人背面base64
  7962. Object.keys(this.ownerInfoform).forEach(key => {
  7963. this.ownerInfoform[key] = "";
  7964. });
  7965. break;
  7966. case 5:
  7967. this.businessImg = "";
  7968. // this.C04File = ''; // 被保人正面base64
  7969. // this.D04File = ''; // 被保人背面base64
  7970. // Object.keys(this.ownerInfoform).forEach((key) => {
  7971. // this.ownerInfoform[key] = '';
  7972. // });
  7973. break;
  7974. default:
  7975. }
  7976. },
  7977. bjdpreview(id) {
  7978. let params = {
  7979. companyId: id
  7980. };
  7981. this.$api.letter.getByCompanyId(params).then(res => {
  7982. if (res.code == "200") {
  7983. var data = res.data;
  7984. if (data.kindinfo != null) {
  7985. data.kindinfo.map((ele, index) => {
  7986. switch (ele.kindCode) {
  7987. case "A":
  7988. if (ele.amount == 1) {
  7989. ele.amount = "投保";
  7990. } else {
  7991. ele.amount = ele.amount;
  7992. }
  7993. break;
  7994. case "D4":
  7995. case "SY_FJ_YBW2":
  7996. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  7997. break;
  7998. case "MJ1":
  7999. case "MJ2":
  8000. case "MJ3":
  8001. case "MJ4":
  8002. ele.deductibleRate = ele.deductibleRate + "%";
  8003. break;
  8004. default:
  8005. ele.amount = this.toChinesNum(ele.amount);
  8006. }
  8007. return ele;
  8008. });
  8009. }
  8010. data.logoImg = this.iconfftter(res.data.inscompany);
  8011. this.queryOrders = data;
  8012. this.$api.letter.getThemeByUserId().then(res => {
  8013. if (res.code == 200) {
  8014. if(res.data[0]=='GD'){
  8015. this.$refs.quotationDialogPro.setBackupVisible(true);
  8016. }
  8017. else {
  8018. this.$refs.quotationDialog.setBackupVisible(true);
  8019. }
  8020. }
  8021. })
  8022. // if (
  8023. // this.$store.state.user.roles.managementSource &&
  8024. // this.$store.state.user.roles.managementSource == "3"
  8025. // ) {
  8026. // this.$refs.quotationDialogPro.setBackupVisible(true);
  8027. // } else {
  8028. // this.$refs.quotationDialog.setBackupVisible(true);
  8029. // }
  8030. }
  8031. });
  8032. },
  8033. //返回上一步
  8034. Back() { },
  8035. carcode(id, item) {
  8036. this.$api.letter.getQrCode(id).then(res => {
  8037. if (res.code == "200") {
  8038. this.inscompany = res.data.inscompany; //保险公司
  8039. this.sumpremium = res.data.sumpremium; //总价
  8040. this.licenseNo = res.data.cPlateNo; //车牌号
  8041. this.applyName = res.data.cInsuredNme; //车主
  8042. this.jqpremium = res.data.jqpremium; //交强
  8043. this.sypremium = res.data.sypremium; //商业
  8044. this.taxamount = res.data.taxamount; //车船税
  8045. this.jypremium = res.data.jypremium; //驾意险
  8046. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  8047. this.systartdate = res.data.syStartDate; //商业起保日期
  8048. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  8049. let qrCodeUrl = res.data.qrCodeUrl
  8050. this.$api.letter.getThemeByUserId().then(res => {
  8051. if (res.code == 200) {
  8052. if(res.data[0]=='GD'){
  8053. this.codedialogVisiblePro = true;
  8054. this.qrcodeWidth = "154";
  8055. this.qrcodeHeight = "154";
  8056. }
  8057. else {
  8058. this.codedialogVisible = true;
  8059. }
  8060. this.$nextTick(function () {
  8061. if (item.inscompany == "太平财险" || item.inscompany == "华泰财险") {
  8062. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  8063. let animgBase64 = `data:image/png;base64,${anresult}`;
  8064. base64ToPath(animgBase64).then(path => {
  8065. this.paycodeimg = path;
  8066. });
  8067. } else {
  8068. this.creatQrCode(qrCodeUrl);
  8069. }
  8070. });
  8071. }
  8072. })
  8073. } else {
  8074. this.$message({ message: res.msg, type: "warning" });
  8075. }
  8076. });
  8077. },
  8078. //同步
  8079. synchronization() {
  8080. this.systartDate = this.jqstartDate;
  8081. this.syendDate = this.jqendDate;
  8082. },
  8083. //影像上传
  8084. uploadinformation() {
  8085. // //上传图片
  8086. const mergedArray = [
  8087. ...this.imageList1,
  8088. ...this.imageList2,
  8089. ...this.imageList3,
  8090. ...this.imageList4,
  8091. ...this.imageList5
  8092. ];
  8093. let imageparam = {
  8094. imageList: mergedArray,
  8095. quoteNo: this.quoteno
  8096. };
  8097. this.$api.letter.uploadImages(imageparam).then(responses => {
  8098. if (responses.code == "200") {
  8099. this.imageEcho(this.quoteno);
  8100. this.$message({ message: responses.msg, type: "success" });
  8101. } else {
  8102. this.$message({ message: responses.msg, type: "error" });
  8103. }
  8104. });
  8105. this.imageUploaddialogVisible = false;
  8106. },
  8107. add() {
  8108. this.obtainProtocol();
  8109. if (this.isLetter) {
  8110. this.$router.push({ path: "/letter/letter" });
  8111. }
  8112. for (let key in this.ownerInfo) {
  8113. this.ownerInfo[key] = "";
  8114. }
  8115. for (let key in this.policyHolderInfo) {
  8116. this.policyHolderInfo[key] = "";
  8117. }
  8118. for (let key in this.insuredPersonInfo) {
  8119. this.insuredPersonInfo[key] = "";
  8120. }
  8121. this.vehicleAndVesselTaxForm = {
  8122. taxRelifFlag: "1",
  8123. taxpayerIdentifier: "01"
  8124. };
  8125. this.ownerInfo.provinceData = [];
  8126. this.insuredPersonInfo.provinceData = [];
  8127. this.policyHolderInfo.provinceData = [];
  8128. this.carInfo = JSON.parse(localStorage.getItem("carInfo"));
  8129. this.insureList = JSON.parse(localStorage.getItem("insureList"));
  8130. this.sychecked = false;
  8131. this.yonganchecked = false;
  8132. this.zhongmeichecked = false;
  8133. this.transferDateShow = false;
  8134. (this.tbczcarShow = true), //投保人同车主
  8135. // this.bbczcarShow = false, //被保人同车主
  8136. (this.bbtbcarShow = true), //被保人同投保人
  8137. (this.imageList1 = []);
  8138. this.imageList2 = [];
  8139. this.imageList3 = [];
  8140. this.imageList4 = [];
  8141. this.imgList1 = [];
  8142. this.imgList2 = [];
  8143. this.imgList3 = [];
  8144. this.imgList4 = [];
  8145. this.imgList5 = [];
  8146. this.imgList6 = [];
  8147. this.imgList7 = [];
  8148. this.imgList8 = [];
  8149. // 清空保险公司选中的意外险
  8150. this.zijintemplateSelection = "";
  8151. this.zhongantemplateSelection = "";
  8152. this.hengbangtemplateSelection = "";
  8153. this.taipingtemplateSelection = "";
  8154. this.insuranceHN = "";
  8155. this.renshoutemplateSelection = "";
  8156. this.dajiatemplateSelection = "";
  8157. this.accidentForm = {
  8158. fen: "1",
  8159. premium: 0
  8160. };
  8161. this.accidentFormHN = {
  8162. allQuantity: "1",
  8163. quantity:'1'
  8164. };
  8165. this.hengbangaccidentalDrivingVo = {};
  8166. this.huanongaccidentalDrivingVo = {};
  8167. this.taipingaccidentalDrivingVo = {};
  8168. this.zhongmeiaccidentalDrivingVo = {};
  8169. this.accidentalDrivingVo = [];
  8170. this.zhonganaccidentalDrivingVo = {};
  8171. this.renshouaccidentalDrivingVo = {};
  8172. this.anshengaccidentalDrivingVo = {};
  8173. this.dajiaaccidentalDrivingVo = {};
  8174. // this.selectedOptions1 = [];
  8175. // this.selectedOptions2 = [];
  8176. // this.selectedOptions3 = [];
  8177. this.orderno = "";
  8178. this.quoteno = "";
  8179. this.lastCompanyId = "";
  8180. this.HistoryList = [];
  8181. this.jqstartDate = this.transformTime1();
  8182. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  8183. this.systartDate = this.transformTime1();
  8184. this.syendDate = this.oneYearPast1(this.jqstartDate);
  8185. },
  8186. toChinesNum(num) {
  8187. if (num.toString().length == 4) {
  8188. let overQian = Math.floor(num / 1000);
  8189. let result = overQian + "千";
  8190. return result;
  8191. } else {
  8192. let overWan = Math.floor(num / 10000);
  8193. let result = overWan + "万";
  8194. return result;
  8195. }
  8196. },
  8197. reportDrop(event) {
  8198. event.preventDefault();
  8199. event.stopPropagation();
  8200. },
  8201. tabLiScroll(id, idx) {
  8202. this.tabLiIndex = idx;
  8203. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  8204. },
  8205. handleScroll(id) {
  8206. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  8207. }
  8208. }
  8209. };
  8210. </script>
  8211. <style>
  8212. /* .customNotifyClass {
  8213. word-break: break-all;
  8214. width: 600px;
  8215. } */
  8216. </style>
  8217. <style lang="scss" scoped>
  8218. .marginL {
  8219. margin-left: 10px;
  8220. }
  8221. .el-notification {
  8222. width: 600px;
  8223. }
  8224. .styleB .el-upload--picture-card {
  8225. // display: none;
  8226. opacity: 0;
  8227. }
  8228. .ORcodebody {
  8229. height: auto;
  8230. background-color: #fff;
  8231. //background: url(../../../assets/image/group.png) #fff;
  8232. padding: 16px;
  8233. }
  8234. .csstool {
  8235. font-weight: 600;
  8236. color: #606266;
  8237. font-size: 14px;
  8238. margin: 0 20px;
  8239. span {
  8240. margin-right: 5px;
  8241. }
  8242. }
  8243. .ORcode {
  8244. width: 100%;
  8245. height: auto;
  8246. display: flex;
  8247. justify-content: center;
  8248. align-items: center;
  8249. padding: 30px;
  8250. box-sizing: border-box;
  8251. &>div {
  8252. width: 176px;
  8253. height: 176px;
  8254. border: 1px solid var(--themeColor);
  8255. border-radius: 5px;
  8256. }
  8257. }
  8258. .ORtitle {
  8259. width: 100%;
  8260. padding-bottom: 20px;
  8261. box-sizing: border-box;
  8262. &>div {
  8263. width: 100%;
  8264. margin: 10px 0;
  8265. font-size: 14px;
  8266. &>span {
  8267. &:nth-child(1) {
  8268. color: #868b98;
  8269. text-align: end;
  8270. width: 150px;
  8271. }
  8272. &:nth-child(2) {
  8273. color: #333333;
  8274. }
  8275. }
  8276. }
  8277. }
  8278. .Risk {
  8279. width: 100%;
  8280. height: auto;
  8281. display: flex;
  8282. flex-direction: column;
  8283. align-items: center;
  8284. font-size: 12px;
  8285. }
  8286. .dis {
  8287. display: flex;
  8288. }
  8289. .align {
  8290. align-items: center;
  8291. }
  8292. .jus {
  8293. justify-content: space-between;
  8294. }
  8295. .shangyexian {
  8296. padding-left: 100px;
  8297. }
  8298. .headertotal {
  8299. padding: 30px;
  8300. }
  8301. .my-label {
  8302. background: #e1f3d8;
  8303. }
  8304. .my-content {
  8305. background: #fde2e2;
  8306. color: aqua;
  8307. }
  8308. .el-button--mini {
  8309. padding: 5px;
  8310. }
  8311. #qqq {
  8312. background-color: #111;
  8313. width: 300px;
  8314. height: 300px;
  8315. margin: 0 auto;
  8316. position: relative;
  8317. }
  8318. #qrCode {
  8319. display: inline-block;
  8320. margin: 0 auto;
  8321. position: relative;
  8322. top: 15%;
  8323. img {
  8324. width: 200px;
  8325. height: 200px;
  8326. background-color: #fff;
  8327. padding: 6px;
  8328. }
  8329. }
  8330. .code {
  8331. box-sizing: border-box;
  8332. display: flex;
  8333. flex-direction: column;
  8334. justify-content: space-between;
  8335. align-items: center;
  8336. &>span {
  8337. margin-bottom: 10px;
  8338. }
  8339. }
  8340. .code_name {
  8341. width: 350px;
  8342. display: flex;
  8343. justify-content: space-between;
  8344. align-items: center;
  8345. font-weight: bold;
  8346. &>span {
  8347. &:nth-child(1) {
  8348. color: #979797;
  8349. width: 120px;
  8350. text-align: right;
  8351. }
  8352. &:nth-child(2) {
  8353. color: #2d2d2d;
  8354. width: 120px;
  8355. text-align: left;
  8356. }
  8357. }
  8358. }
  8359. .header {
  8360. font-size: 18px;
  8361. font-weight: bold;
  8362. }
  8363. .body {
  8364. border-top: none;
  8365. padding-bottom: 100px;
  8366. box-sizing: border-box;
  8367. }
  8368. .u-f-ac {
  8369. -webkit-box-align: center;
  8370. align-items: center;
  8371. padding: 10px;
  8372. }
  8373. .bodyTitle {
  8374. height: 45px;
  8375. background: #f3f3f3;
  8376. border: 1px solid #dddddd;
  8377. line-height: 45px;
  8378. padding: 0 20px;
  8379. box-sizing: border-box;
  8380. }
  8381. .start {
  8382. justify-content: flex-start;
  8383. }
  8384. .end {
  8385. justify-content: flex-end;
  8386. }
  8387. .descriptions {
  8388. padding: 20px;
  8389. box-sizing: border-box;
  8390. display: flex;
  8391. flex-direction: column;
  8392. }
  8393. .bodys {
  8394. display: flex;
  8395. justify-content: space-between;
  8396. align-items: center;
  8397. flex-wrap: wrap;
  8398. }
  8399. .bodys1 {
  8400. display: flex;
  8401. justify-content: center;
  8402. align-items: center;
  8403. flex-wrap: wrap;
  8404. }
  8405. .widths {
  8406. width: 230px;
  8407. }
  8408. .widths1 {
  8409. width: 300px;
  8410. }
  8411. .back {
  8412. color: #333333;
  8413. // font-weight: 700;
  8414. }
  8415. .home {
  8416. // padding-left: 10px;
  8417. box-sizing: border-box;
  8418. padding-bottom: 10px;
  8419. border-bottom: 1px solid #eef1f6;
  8420. &>span {
  8421. margin-right: 10px;
  8422. }
  8423. }
  8424. .hovers {
  8425. margin: 10px 0;
  8426. cursor: pointer;
  8427. padding: 10px 0;
  8428. box-sizing: border-box;
  8429. border-bottom: 1px solid #f2f2f2;
  8430. .offer-time {
  8431. margin: 20px 0 0px 100px;
  8432. padding: 10px;
  8433. background: rgba(45, 77, 137, 0.06);
  8434. &>span {
  8435. margin: 0 10px;
  8436. }
  8437. }
  8438. }
  8439. /* 内容待定 */
  8440. .coll {
  8441. font-size: 14px;
  8442. }
  8443. .display {
  8444. display: flex;
  8445. justify-content: center;
  8446. align-items: center;
  8447. box-sizing: border-box;
  8448. }
  8449. .black {
  8450. color: #000;
  8451. }
  8452. .gray {
  8453. color: #999;
  8454. }
  8455. .OCR {
  8456. font-weight: bold;
  8457. color: #333;
  8458. margin: 20px;
  8459. }
  8460. .slot {
  8461. position: absolute;
  8462. width: 100%;
  8463. height: 100%;
  8464. left: 0;
  8465. top: 0;
  8466. cursor: default;
  8467. text-align: center;
  8468. color: #fff;
  8469. opacity: 0;
  8470. font-size: 20px;
  8471. background-color: rgba(0, 0, 0, 0.5);
  8472. transition: opacity 0.3s;
  8473. display: flex;
  8474. justify-content: center;
  8475. align-items: center;
  8476. &>i {
  8477. margin: 10px;
  8478. color: #fff;
  8479. font-size: 30px;
  8480. font-weight: bold;
  8481. cursor: pointer;
  8482. }
  8483. &:hover {
  8484. opacity: 1;
  8485. }
  8486. }
  8487. .companyhead {
  8488. width: 100%;
  8489. margin: 0 auto;
  8490. padding: 15px 10px;
  8491. color: #333;
  8492. font-weight: bold;
  8493. font-size: 14px;
  8494. background-color: #f7f7f9;
  8495. }
  8496. .footer {
  8497. width: calc(100% - 200px);
  8498. position: fixed;
  8499. bottom: 0;
  8500. right: 0;
  8501. background-color: #fff;
  8502. z-index: 9;
  8503. padding: 20px;
  8504. box-sizing: border-box;
  8505. box-shadow: 0 0 1px 0 #ccc;
  8506. transition: all 0.3s, box-shadow 0.5s;
  8507. &.shadow {
  8508. box-shadow: 0 -10px 10px -10px #ccc;
  8509. }
  8510. }
  8511. .Enclosure {
  8512. width: 100%;
  8513. background-color: #fff;
  8514. padding: 20px;
  8515. box-sizing: border-box;
  8516. margin-bottom: 15px;
  8517. border-radius: 6px;
  8518. border: 1px solid #ebeef5;
  8519. transition: all 0.2s ease-in-out;
  8520. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  8521. }
  8522. .icon-img {
  8523. display: block;
  8524. width: 30px;
  8525. height: 30px;
  8526. }
  8527. .Anchor-link {
  8528. width: 40px;
  8529. background-color: #fff;
  8530. box-shadow: #ccc 0 0px 3px 0;
  8531. border-radius: 6px;
  8532. position: fixed;
  8533. top: 50%;
  8534. right: 0;
  8535. z-index: 99;
  8536. div {
  8537. margin: 5px;
  8538. border-bottom: 1px solid #f2f2f2;
  8539. cursor: pointer;
  8540. display: block;
  8541. }
  8542. }
  8543. .color {
  8544. padding-top: 150px;
  8545. margin-top: -150px;
  8546. }
  8547. .more {
  8548. width: 100%;
  8549. padding: 20px;
  8550. box-sizing: border-box;
  8551. }
  8552. .more-title {
  8553. padding: 15px 10px;
  8554. background-color: #f7f7f9;
  8555. // border-bottom: 1px solid #e3e3e3;
  8556. font-size: 14px;
  8557. }
  8558. .more-data {
  8559. padding: 10px;
  8560. border-bottom: 1px solid #f2f2f2;
  8561. color: #d42426;
  8562. font-size: 14px;
  8563. }
  8564. .Driving-risk {
  8565. padding-left: 100px;
  8566. // padding-top:20px
  8567. }
  8568. .checkbox {
  8569. transform: scale(1.2);
  8570. margin-right: 20px;
  8571. line-height: 32px;
  8572. }
  8573. .insure-long-term {
  8574. display: inline-flex;
  8575. padding-left: 8px;
  8576. padding-right: 8px;
  8577. background: var(--themeColor);
  8578. color: #fff;
  8579. font-size: 12px;
  8580. margin-left: -5px;
  8581. border-radius: 0px 5px 5px 0px;
  8582. cursor: pointer;
  8583. }
  8584. .textareaSty {
  8585. width: 160px;
  8586. height: 210px;
  8587. border: 1px solid #d2d2d2;
  8588. border-radius: 4px;
  8589. img {
  8590. width: 50px;
  8591. height: 50px;
  8592. }
  8593. }
  8594. .image-title {
  8595. width: 100px;
  8596. height: 30px;
  8597. color: #fff;
  8598. text-align: center;
  8599. line-height: 30px;
  8600. font-weight: bold;
  8601. margin-bottom: 15px;
  8602. background: #fc4a1a;
  8603. background: #f2994a;
  8604. /* fallback for old browsers */
  8605. background: -webkit-linear-gradient(to left, #f2c94c, #f2994a);
  8606. /* Chrome 10-25, Safari 5.1-6 */
  8607. background: linear-gradient(to left, #f2c94c, #f2994a);
  8608. /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  8609. }
  8610. .aaa /deep/ {
  8611. margin-bottom: 20px;
  8612. margin-right: 50px;
  8613. span {
  8614. display: inline-block;
  8615. margin-bottom: 10px;
  8616. }
  8617. .el-upload .el-upload-dragger {
  8618. width: 180px;
  8619. height: 120px;
  8620. border: 1px dashed #c0ccda;
  8621. padding: 0;
  8622. }
  8623. .el-upload-list--picture-card .el-upload-list__item {
  8624. width: 180px;
  8625. height: 120px;
  8626. }
  8627. .el-upload-list__item:first-child {
  8628. margin-top: 0;
  8629. }
  8630. }
  8631. .jyxStyle>span {
  8632. display: inline-block;
  8633. text-align: center;
  8634. }
  8635. .tab-style {
  8636. width: 110px;
  8637. li {
  8638. text-align: right;
  8639. padding-right: 20px;
  8640. line-height: 40px;
  8641. cursor: pointer;
  8642. box-sizing: border-box;
  8643. border-right: 1px solid #e2e5eb;
  8644. }
  8645. li:focus {
  8646. background: rgba(212, 36, 38, 0.1);
  8647. border-right: 2px solid var(--themeColor);
  8648. color: var(--themeColor);
  8649. }
  8650. }
  8651. .tabLi-style {
  8652. background: rgba(212, 36, 38, 0.1);
  8653. border-right: 2px solid var(--themeColor);
  8654. color: var(--themeColor);
  8655. }
  8656. .scan-code {
  8657. div {
  8658. margin-top: 10px;
  8659. }
  8660. }
  8661. /* 清除图片上传动画bug */
  8662. /deep/ {
  8663. .proSaomazhifucodeClass .el-dialog__header {
  8664. background: rgba(45, 77, 137, 0.1);
  8665. font-weight: bold;
  8666. }
  8667. .proSaomazhifucodeClass .el-dialog__footer {
  8668. border-top: 1px solid #eef1f6;
  8669. }
  8670. .el-upload-list__item {
  8671. transition: none !important;
  8672. }
  8673. .el-checkbox__input {
  8674. &.is-checked {
  8675. .el-checkbox__inner {
  8676. background-color: #d42426;
  8677. border-color: #d42426;
  8678. }
  8679. }
  8680. }
  8681. .el-checkbox__inner {
  8682. border: 1px solid var(--themeColor);
  8683. &:hover {
  8684. border-color: var(--themeColorHover);
  8685. }
  8686. &:focus {
  8687. border-color: var(--themeColor);
  8688. }
  8689. }
  8690. .el-upload .el-upload-dragger {
  8691. height: 250px;
  8692. width: 400px;
  8693. border: 1px dashed #ced4da;
  8694. }
  8695. .el-upload--picture-card {
  8696. width: 180px;
  8697. height: 120px;
  8698. }
  8699. .el-upload-list__item {
  8700. width: 180px;
  8701. height: 120px;
  8702. margin: 0 !important;
  8703. display: block !important;
  8704. }
  8705. .el-upload-list--picture-card .el-upload-list__item-thumbnail {
  8706. width: 180px;
  8707. height: 120px;
  8708. }
  8709. // .el-button--warning {
  8710. // color: #fff;
  8711. // background-color: #D42426;
  8712. // border-color: #D42426;
  8713. // &:hover {
  8714. // color: #fff;
  8715. // background-color: #ee6f00ce;
  8716. // border-color: #ee6f00ce;
  8717. // }
  8718. // }
  8719. .el-descriptions-item__label {
  8720. &:not(.is-bordered-label) {
  8721. color: #333;
  8722. }
  8723. }
  8724. // .el-radio__input.is-checked + .el-radio__label {
  8725. // color: #ff7000;
  8726. // }
  8727. // .el-radio__input.is-checked .el-radio__inner {
  8728. // border-color: #ff7000;
  8729. // background: #ff7000;
  8730. // }
  8731. // .el-radio__inner {
  8732. // &:hover {
  8733. // border-color: #ff7000;
  8734. // }
  8735. // }
  8736. // .el-input--small .el-icon-date {
  8737. // color: #ee6f00ce;
  8738. // }
  8739. .el-select {
  8740. width: 100%;
  8741. }
  8742. .el-date-editor.el-input {
  8743. width: 100%;
  8744. }
  8745. .el-cascader--small {
  8746. width: 100%;
  8747. }
  8748. .styleB {
  8749. height: 128px;
  8750. }
  8751. .styleB .el-upload--picture-card {
  8752. display: none;
  8753. }
  8754. .saomazhifucodeClass .el-dialog__body,
  8755. .saomazhifucodeClass .el-dialog__header,
  8756. .saomazhifucodeClass .el-dialog__footer {
  8757. padding: 0;
  8758. background: #f4e9e9;
  8759. }
  8760. .saomazhifucodeClass .el-dialog__body {
  8761. padding: 15px;
  8762. }
  8763. .saomazhifucodeClass .el-dialog__footer {
  8764. background: #f4e9e9;
  8765. padding-bottom: 15px;
  8766. }
  8767. .saomazhifucodeClass .el-dialog__headerbtn {
  8768. margin-top: 10px;
  8769. }
  8770. .zmDriving {
  8771. thead .el-table-column--selection .cell {
  8772. display: none !important;
  8773. }
  8774. }
  8775. .synchronous {
  8776. width: 75px;
  8777. height: 45px;
  8778. line-height: 45px;
  8779. color: #fff;
  8780. cursor: pointer;
  8781. background: url(../../../../src/icon/Union2.png) no-repeat 100%;
  8782. }
  8783. .synchronous:hover {
  8784. background: url(../../../../src/icon/Union1.png) no-repeat 100%;
  8785. }
  8786. .line_style {
  8787. margin-top: 20px;
  8788. }
  8789. .el-input-group__append {
  8790. vertical-align: baseline;
  8791. }
  8792. }
  8793. </style>