KtLetter1.vue 601 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220
  1. <template>
  2. <div class="body">
  3. <div class="Enclosure flex f-c back" v-if="isLetter == '1'">
  4. <div class="home flex j-s a-c">
  5. <div class="flex j-s a-c">
  6. <img src="../../../../src/icon/归属信息.png" alt class="icon-img" />
  7. <span style="margin-left: 10px">归属信息</span>
  8. </div>
  9. </div>
  10. <el-form class="demo-ruleForm" :model="userform" ref="userform" label-width="130px" size="small"
  11. style="margin-top: 15px" disabled label-position="top">
  12. <el-row :gutter="colgutter">
  13. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  14. <el-form-item label="业务员">
  15. <el-input v-model="userform.name"></el-input>
  16. </el-form-item>
  17. </el-col>
  18. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  24. <el-form-item label="工号类型">
  25. <el-select v-model="userform.usertype" style="width: 100%;">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  32. <el-form-item label="归属">
  33. <el-input v-model="deptName"></el-input>
  34. </el-form-item>
  35. </el-col>
  36. </el-row>
  37. </el-form>
  38. </div>
  39. <div class="Enclosure flex f-c back" v-if="isLetter == '1'">
  40. <div class="home flex j-s a-c">
  41. <div class="flex j-s a-c">
  42. <img src="../../../../src/icon/快速查询.png" alt class="icon-img" />
  43. <span style="margin-left: 10px">快速查询</span>
  44. </div>
  45. <el-button size="small" type="primary" @click="continuousquery()">
  46. <i class="el-icon-search" style="margin-right: 1px"></i>
  47. 续保查询
  48. </el-button>
  49. </div>
  50. <el-form class="demo-ruleForm" :model="attributionform" ref="continuousform" label-width="130px" size="small"
  51. style="margin-top: 15px" label-position="top">
  52. <el-row :gutter="colgutter">
  53. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  62. v-for="(domain, index) in attributionform.configure" :key="domain.index">
  63. <el-form-item :label="domain.label" :prop="'configure.' + index + '.value'" :rules="{
  64. required: true,
  65. message: domain.label + '不能为空',
  66. trigger: 'blur',
  67. }">
  68. <el-input v-model="domain.value" :type="domain.type"></el-input>
  69. </el-form-item>
  70. </el-col>
  71. </el-row>
  72. </el-form>
  73. </div>
  74. <div class="Enclosure flex f-c back">
  75. <div class="home flex j-s a-c">
  76. <div class="flex j-s a-c color" id="Car">
  77. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" />
  78. <span style="margin-left: 10px">车辆信息</span>
  79. </div>
  80. <el-button size="small" type="primary" @click="uploadcardialogVisible = true">
  81. <i class="el-icon-camera-solid" style="margin-right: 1px"></i>
  82. 证件识别
  83. </el-button>
  84. </div>
  85. <el-form class="demo-ruleForm" :model="carInfo" ref="carInfo" :rules="rules" label-width="130px" size="small"
  86. label-position="top" style="margin-top: 15px">
  87. <el-row :gutter="colgutter">
  88. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  89. <el-form-item label="车牌" :prop="licenseplate ? 'licenseNo' : ''">
  90. <div style="display: flex">
  91. <el-input style="width: 75%; margin-right: 13px" v-model="carInfo.licenseNo" placeholder="请输入车牌号"
  92. :disabled="!licenseplate" @blur="getCompanyList">
  93. <el-button slot="append" type="primary" icon="el-icon-search"
  94. @click="toCheckLicenseNo(carInfo.licenseNo)" style="color: #fff;"></el-button>
  95. </el-input>
  96. <el-checkbox v-model="licenseplate">已上牌</el-checkbox>
  97. </div>
  98. </el-form-item>
  99. </el-col>
  100. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  101. <el-form-item label="车辆识别代码" prop="frameNo" class="red-btn">
  102. <el-input placeholder="请输入车辆识别码" v-model="carInfo.frameNo" maxlength="17" type="text" show-word-limit
  103. @blur="getCompanyList">
  104. <el-button slot="append" type="primary" icon="el-icon-search" @click="toChooseVin(carInfo.frameNo)"
  105. style="color: #fff;"></el-button>
  106. </el-input>
  107. </el-form-item>
  108. </el-col>
  109. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  110. <el-form-item label="品牌型号" prop="modelcname" class="red-btn">
  111. <el-input v-model="carInfo.modelcname" placeholder="请输入品牌型号" type="text" @blur="getCompanyList">
  112. <el-button slot="append" icon="el-icon-search" type="primary"
  113. @click="toChooseVehicleType(carInfo.modelcname)" style="color: #fff;"></el-button>
  114. </el-input>
  115. </el-form-item>
  116. </el-col>
  117. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  118. <el-form-item label="发动机号" prop="engineNo">
  119. <el-input v-model="carInfo.engineNo" placeholder="请输入发动机号" @blur="getCompanyList"></el-input>
  120. </el-form-item>
  121. </el-col>
  122. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  123. <el-form-item label="年款" prop="caryear">
  124. <el-input onkeyup="value=value.replace(/\D/g,'')" @blur="getCompanyList" v-model="carInfo.caryear"
  125. placeholder="请输入年款"></el-input>
  126. </el-form-item>
  127. </el-col>
  128. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  129. <el-form-item label="座位数" prop="seatCount">
  130. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.seatCount" placeholder="请输入座位数"
  131. @blur="getCompanyList">
  132. <el-button slot="append">座</el-button>
  133. </el-input>
  134. </el-form-item>
  135. </el-col>
  136. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  137. <el-form-item label="整备质量" prop="completeKerbMass">
  138. <el-input v-model="carInfo.completeKerbMass" placeholder="请输入整备质量" @blur="getCompanyList">
  139. <el-button slot="append">千克(KG)</el-button>
  140. </el-input>
  141. </el-form-item>
  142. </el-col>
  143. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  144. <el-form-item label="核定载质量" prop="limitLoad">
  145. <el-input v-model="carInfo.limitLoad" placeholder="请输入核定载质量">
  146. <el-button slot="append">千克(KG)</el-button>
  147. </el-input>
  148. </el-form-item>
  149. </el-col>
  150. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  151. <el-form-item label="排量" prop="enginedesc">
  152. <el-input v-model="carInfo.enginedesc" placeholder="请输入排量" @blur="getCompanyList">
  153. <el-button slot="append">升(L)</el-button>
  154. </el-input>
  155. </el-form-item>
  156. </el-col>
  157. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  158. <el-form-item label="功率" prop="powerScale">
  159. <el-input v-model="carInfo.powerScale" placeholder="请输入功率" @blur="getCompanyList">
  160. <el-button slot="append">千瓦(KW)</el-button>
  161. </el-input>
  162. </el-form-item>
  163. </el-col>
  164. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  165. <el-form-item label="新车购置价" prop="purchasePrice">
  166. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.purchasePrice" placeholder="请输入新车购置价"
  167. @blur="getCompanyList">
  168. <el-button slot="append">元</el-button>
  169. </el-input>
  170. </el-form-item>
  171. </el-col>
  172. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  173. <el-form-item label="使用性质" prop="carnature">
  174. <el-select v-model="carInfo.carnature" placeholder="请选择使用性质" @change="natureFun" @blur="getCompanyList">
  175. <el-option :label="item.dictTag" :value="item.dictValue"
  176. v-for="(item, index) in natureOfVehicleUseoptions" :key="index"></el-option>
  177. </el-select>
  178. </el-form-item>
  179. </el-col>
  180. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  181. <el-form-item label="车辆用途" prop="vehicleUse">
  182. <el-select v-if="carInfo.carnature == '02'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途"
  183. @change="vehicleUseChange" @blur="getCompanyList">
  184. <el-option :label="item.dictTag" :value="item.dictValue"
  185. v-for="(item, index) in outOfBusinessVehicleUseoptions" :key="index"></el-option>
  186. </el-select>
  187. <el-select v-if="carInfo.carnature == '01'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途"
  188. @blur="getCompanyList">
  189. <el-option :label="item.dictTag" :value="item.dictValue"
  190. v-for="(item, index) in businessVehicleUseoptions" :key="index"></el-option>
  191. </el-select>
  192. </el-form-item>
  193. </el-col>
  194. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  195. <el-form-item label="车辆类型" prop="cartype">
  196. <el-select v-model="carInfo.cartype" placeholder="请选择车辆种类" filterable clearable @blur="getCompanyList">
  197. <el-option :label="item.dictValue + item.dictTag" :value="item.dictValue"
  198. v-for="(item, index) in trafficManagementVehicleTypeoptions" :key="index"></el-option>
  199. </el-select>
  200. </el-form-item>
  201. </el-col>
  202. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  203. <el-form-item label="车辆种类" prop="cimodelclass">
  204. <el-select v-model="carInfo.cimodelclass" placeholder="请选择车辆种类" clearable @blur="getCompanyList">
  205. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in vehicleTypeoptions"
  206. :key="index"></el-option>
  207. </el-select>
  208. </el-form-item>
  209. </el-col>
  210. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  211. <el-form-item label="能源种类" prop="energyType">
  212. <el-select v-model="carInfo.energyType" placeholder="请选择能源种类" @blur="getCompanyList">
  213. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in energyTypeoptions"
  214. :key="index"></el-option>
  215. </el-select>
  216. </el-form-item>
  217. </el-col>
  218. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  219. <el-form-item label="所属性质 " prop="property">
  220. <el-select v-model="carInfo.property" placeholder="请选择所属性质" @change="getCompanyListProperty">
  221. <el-option :label="item.label" :value="item.value" v-for="(item, index) in propertyoptions" :key="index"
  222. :disabled="propertyDisable(item)"></el-option>
  223. </el-select>
  224. </el-form-item>
  225. </el-col>
  226. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  227. <el-form-item label="注册日期" prop="registerDate" class="red-btn">
  228. <el-date-picker v-dateFormat v-model="carInfo.registerDate" :picker-options="pickerOptions"
  229. @blur="getCompanyList" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择注册日期"
  230. placement="bottom-start" @change="(e) => carInfo.registerDate = changeDate(e)"></el-date-picker>
  231. </el-form-item>
  232. </el-col>
  233. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  234. <el-form-item label="发证日期" prop="issueDate" class="red-btn" @blur="getCompanyList">
  235. <el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
  236. placeholder="选择发证日期" value-format="yyyy-MM-dd" placement="bottom-start"
  237. @change="(e) => carInfo.issueDate = changeDate(e)"></el-date-picker>
  238. </el-form-item>
  239. </el-col>
  240. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  241. v-if="transferDateShow">
  242. <el-form-item label="转移登记日期" prop="transferDate">
  243. <el-date-picker v-dateFormat v-model="carInfo.transferDate" :picker-options="pickerOptions" type="date"
  244. @blur="getCompanyList" placeholder="选择日期" value-format="yyyy-MM-dd" placement="bottom-start"
  245. @change="(e) => carInfo.transferDate = changeDate(e)"></el-date-picker>
  246. </el-form-item>
  247. </el-col>
  248. </el-row>
  249. </el-form>
  250. </div>
  251. <div class="Enclosure flex f-c back">
  252. <div class="home flex j-s a-c">
  253. <div class="flex j-s a-c color" id="CheZhu">
  254. <img src="../../../../src/icon/车主信息.png" alt class="icon-img" />
  255. <span style="margin-left: 10px">车主信息</span>
  256. </div>
  257. <el-button size="small" type="primary" @click="uploaduser(2)">
  258. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>证件识别
  259. </el-button>
  260. </div>
  261. <el-form class="demo-ruleForm" :model="ownerInfo" ref="ownerInfo" :rules="rules" label-width="130px" size="small"
  262. style="margin-top: 15px" label-position="top">
  263. <el-row :gutter="colgutter">
  264. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  265. <el-form-item label="车主姓名" prop="name">
  266. <el-input v-model="ownerInfo.name" placeholder="请输入车主姓名" @blur="getCompanyList"></el-input>
  267. </el-form-item>
  268. </el-col>
  269. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  270. <el-form-item label="车主类型">
  271. <el-select v-model="ownerInfo.property" placeholder="车主类型" @change="propertyTpe('ownerInfo')">
  272. <el-option label="法人" value="0" :disabled="carInfo.property == '1'"></el-option>
  273. <el-option label="个人" value="1" :disabled="carInfo.property == '2'"></el-option>
  274. </el-select>
  275. </el-form-item>
  276. </el-col>
  277. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  278. <el-form-item label="证件类型" prop="identifyType">
  279. <el-select v-model="ownerInfo.identifyType" placeholder="身份证" @blur="getCompanyList" disabled>
  280. <el-option label="身份证" value="01"></el-option>
  281. <el-option label="统一社会信用代码" value="10"></el-option>
  282. </el-select>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  286. v-if="ownerInfo.property == '1'">
  287. <el-form-item label="证件号码" prop="identifyNumber">
  288. <el-input v-model="ownerInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  289. show-word-limit @blur="identifyblur('ownerInfo'); getCompanyList"></el-input>
  290. </el-form-item>
  291. </el-col>
  292. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  293. v-if="ownerInfo.property == '0'">
  294. <el-form-item label="证件号码" prop="organizationCode">
  295. <el-input v-model="ownerInfo.organizationCode" placeholder="请输入证件号码" type="text" maxlength="18"
  296. show-word-limit @blur="getCompanyList"></el-input>
  297. </el-form-item>
  298. </el-col>
  299. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  300. v-if="ownerInfo.property == '0'">
  301. <el-form-item label="注册资金" prop="registeredCapital">
  302. <el-input v-model="ownerInfo.registeredCapital" placeholder="请输入注册资金" type="text" show-word-limit
  303. @blur="getCompanyList">
  304. <el-button slot="append">万元</el-button>
  305. </el-input>
  306. </el-form-item>
  307. </el-col>
  308. <!-- <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl" v-if="ownerInfo.property=='0'">
  309. <el-form-item label="税务号">
  310. <el-input v-model="ownerInfo.revenueCode" placeholder="请输入税务号" type="text" ></el-input>
  311. </el-form-item>
  312. </el-col> -->
  313. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  314. v-if="ownerInfo.property == '1'">
  315. <el-form-item label="年龄" prop="age">
  316. <el-input v-model="ownerInfo.age" placeholder="请输入年龄" type="text" disabled
  317. @blur="getCompanyList"></el-input>
  318. </el-form-item>
  319. </el-col>
  320. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  321. v-if="ownerInfo.property == '1'">
  322. <el-form-item label="性别" prop="gender">
  323. <el-select @change="genderChange" v-model="ownerInfo.gender" placeholder="请选择性别" @blur="getCompanyList">
  324. <el-option label="男" value="男"></el-option>
  325. <el-option label="女" value="女"></el-option>
  326. </el-select>
  327. </el-form-item>
  328. </el-col>
  329. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  330. <el-form-item label="车主手机号" prop="mobile">
  331. <el-input v-model="ownerInfo.mobile" placeholder="请输入车主手机号" type="text" maxlength="11"
  332. @blur="getCompanyList" @paste.native="handlePaste($event, 'ownerInfo')" show-word-limit></el-input>
  333. </el-form-item>
  334. </el-col>
  335. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  336. v-if="ownerInfo.property == '0'">
  337. <el-form-item label="车主座机" prop="tel">
  338. <el-input v-model="ownerInfo.tel" placeholder="请输入车主座机" type="text" @blur="getCompanyList"
  339. show-word-limit></el-input>
  340. </el-form-item>
  341. </el-col>
  342. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  343. v-if="ownerInfo.property == '0'">
  344. <el-form-item label="车主联系人">
  345. <el-input v-model="ownerInfo.legalPerson" placeholder="请输入车主联系人" type="text" maxlength="5"
  346. @blur="getCompanyList"></el-input>
  347. </el-form-item>
  348. </el-col>
  349. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  350. v-if="ownerInfo.property == '0'">
  351. <el-form-item label="联系人证件号码">
  352. <el-input v-model="ownerInfo.leaderIdentifyNumber" placeholder="请输入车主证件号码" type="text" maxlength="18"
  353. @blur="getCompanyList"></el-input>
  354. </el-form-item>
  355. </el-col>
  356. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  357. v-if="ownerInfo.property == '0'">
  358. <el-form-item label="联系人有效期止期" prop="leaderOtherEffectiveDate" class="red-btn">
  359. <el-date-picker v-dateFormat v-model="ownerInfo.leaderOtherEffectiveDate" type="date"
  360. value-format="yyyy-MM-dd" @blur="getCompanyList" placeholder="选择有效期止期" placement="bottom-start"
  361. style="width: calc(100% - 40px)"
  362. @change="(e) => ownerInfo.leaderOtherEffectiveDate = changeDate(e)"></el-date-picker>
  363. </el-form-item>
  364. </el-col>
  365. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  366. v-if="ownerInfo.property == '0'">
  367. <el-form-item label="省市区">
  368. <el-cascader v-model="selectedOptions1" :options="areaOption"
  369. :props="{ value: 'code', label: 'name', children: 'sub' }"
  370. @change="event => areahandleChange(event, 'ownerInfo')"></el-cascader>
  371. </el-form-item>
  372. </el-col>
  373. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  374. <el-form-item label="地址" prop="addr">
  375. <el-input v-model="ownerInfo.addr" placeholder="请输入地址" type="text" @blur="getCompanyList"></el-input>
  376. </el-form-item>
  377. </el-col>
  378. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  379. <el-form-item label="有效期起期" prop="identifyValidDate">
  380. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidDate" value-format="yyyy-MM-dd"
  381. @blur="getCompanyList" :picker-options="pickerOptions" type="date" placeholder="选择有效期起期"
  382. placement="bottom-start" @change="(e) => ownerInfo.identifyValidDate = changeDate(e)"></el-date-picker>
  383. </el-form-item>
  384. </el-col>
  385. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  386. <el-form-item label="有效期止期" prop="identifyValidEndDate" class="red-btn">
  387. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidEndDate" type="date"
  388. value-format="yyyy-MM-dd" @blur="getCompanyList" placeholder="选择有效期止期" placement="bottom-start"
  389. style="width: calc(100% - 40px)"
  390. @change="(e) => ownerInfo.identifyValidEndDate = changeDate(e)"></el-date-picker>
  391. <div class="insure-long-term" @click="insureLongterm('ownerInfo')">
  392. 长期
  393. </div>
  394. </el-form-item>
  395. </el-col>
  396. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  397. <el-form-item label="电子邮箱" prop="email">
  398. <el-input v-model="ownerInfo.email" placeholder="请输入电子邮箱"></el-input>
  399. </el-form-item>
  400. </el-col>
  401. </el-row>
  402. </el-form>
  403. </div>
  404. <div class="Enclosure flex f-c back">
  405. <div class="home flex j-s a-c">
  406. <div class="flex j-s a-c" id="toubaor">
  407. <img src="../../../../src/icon/投保人信息.png" alt class="icon-img" />
  408. <span style="margin-left: 10px">投保人信息</span>
  409. </div>
  410. <div class="flex a-c j-c">
  411. <div style="font-size: 12px; margin: 0 10px">
  412. 同车主
  413. <el-switch v-model="tbczcarShow" active-color="#D42426" @change="tbczcarShowChange()"></el-switch>
  414. </div>
  415. <el-button size="small" type="primary" @click="uploaduser(3)">
  416. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  417. 证件识别
  418. </el-button>
  419. </div>
  420. </div>
  421. <el-form v-show="!tbczcarShow" class="demo-ruleForm" :model="policyHolderInfo" ref="policyHolderInfo"
  422. :rules="rules" label-width="130px" size="small " style="margin-top: 15px" label-position="top">
  423. <el-row :gutter="colgutter">
  424. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  425. <el-form-item label="投保人姓名" prop="name">
  426. <el-input v-model="policyHolderInfo.name" placeholder="请输入投保人姓名" @blur="getCompanyList"></el-input>
  427. </el-form-item>
  428. </el-col>
  429. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  430. <el-form-item label="投保人类型" prop="property">
  431. <el-select v-model="policyHolderInfo.property" placeholder="投保人类型"
  432. @change="propertyTpe('policyHolderInfo')">
  433. <el-option label="个人" value="1"></el-option>
  434. <el-option label="法人" value="0"></el-option>
  435. </el-select>
  436. </el-form-item>
  437. </el-col>
  438. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  439. <el-form-item label="证件类型" prop="identifyType">
  440. <el-select v-model="policyHolderInfo.identifyType" placeholder="身份证" disabled @blur="getCompanyList">
  441. <el-option label="身份证" value="01"></el-option>
  442. <el-option label="统一社会信用代码" value="10"></el-option>
  443. </el-select>
  444. </el-form-item>
  445. </el-col>
  446. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  447. v-if="policyHolderInfo.property == '0'">
  448. <el-form-item label="证件号码" prop="organizationCode">
  449. <el-input v-model="policyHolderInfo.organizationCode" placeholder="请输入证件号码" type="text" maxlength="18"
  450. show-word-limit @blur="getCompanyList"></el-input>
  451. </el-form-item>
  452. </el-col>
  453. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  454. v-if="policyHolderInfo.property == '1'">
  455. <el-form-item label="证件号码" prop="identifyNumber">
  456. <el-input v-model="policyHolderInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  457. show-word-limit @blur="identifyblur('policyHolderInfo'); getCompanyList"></el-input>
  458. </el-form-item>
  459. </el-col>
  460. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  461. v-if="policyHolderInfo.property == '0'">
  462. <el-form-item label="注册资金" prop="registeredCapital">
  463. <el-input v-model="policyHolderInfo.registeredCapital" placeholder="请输入注册资金" type="text" show-word-limit
  464. @blur="getCompanyList">
  465. <el-button slot="append">万元</el-button>
  466. </el-input>
  467. </el-form-item>
  468. </el-col>
  469. <!-- <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl" v-if="ownerInfo.property=='0'">
  470. <el-form-item label="税务号">
  471. <el-input v-model="policyHolderInfo.revenueCode" placeholder="请输入税务号" type="text" ></el-input>
  472. </el-form-item>
  473. </el-col> -->
  474. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  475. v-if="policyHolderInfo.property == '1'">
  476. <el-form-item label="年龄" prop="age">
  477. <el-input v-model="policyHolderInfo.age" placeholder="请输入年龄" type="text" disabled
  478. @blur="getCompanyList"></el-input>
  479. </el-form-item>
  480. </el-col>
  481. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  482. v-if="policyHolderInfo.property == '1'">
  483. <el-form-item label="性别" prop="gender">
  484. <el-select v-model="policyHolderInfo.gender" placeholder="请选择性别" @blur="getCompanyList">
  485. <el-option label="男" value="男"></el-option>
  486. <el-option label="女" value="女"></el-option>
  487. </el-select>
  488. </el-form-item>
  489. </el-col>
  490. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  491. <el-form-item label="投保人手机号" prop="mobile">
  492. <el-input v-model="policyHolderInfo.mobile" placeholder="请输入投保人手机号" maxlength="11" type="text"
  493. @blur="getCompanyList" @paste.native="handlePaste($event, 'policyHolderInfo')"
  494. show-word-limit></el-input>
  495. </el-form-item>
  496. </el-col>
  497. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  498. v-if="policyHolderInfo.property == '0'">
  499. <el-form-item label="投保人座机" prop="tel">
  500. <el-input v-model="policyHolderInfo.tel" placeholder="请输入投保人座机" type="text" @blur="getCompanyList"
  501. show-word-limit></el-input>
  502. </el-form-item>
  503. </el-col>
  504. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  505. v-if="policyHolderInfo.property == '0'">
  506. <el-form-item label="投保人联系人">
  507. <el-input v-model="policyHolderInfo.legalPerson" placeholder="请输入投保人联系人" type="text"
  508. maxlength="5"></el-input>
  509. </el-form-item>
  510. </el-col>
  511. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  512. v-if="policyHolderInfo.property == '0'">
  513. <el-form-item label="联系人证件号码">
  514. <el-input v-model="policyHolderInfo.leaderIdentifyNumber" placeholder="请输入车主证件号码" type="text"
  515. maxlength="18" @blur="getCompanyList"></el-input>
  516. </el-form-item>
  517. </el-col>
  518. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  519. v-if="policyHolderInfo.property == '0'">
  520. <el-form-item label="联系人有效期止期" prop="leaderOtherEffectiveDate" class="red-btn">
  521. <el-date-picker v-dateFormat v-model="policyHolderInfo.leaderOtherEffectiveDate" type="date"
  522. value-format="yyyy-MM-dd" @blur="getCompanyList" placeholder="选择有效期止期" placement="bottom-start"
  523. style="width: calc(100% - 40px)"
  524. @change="(e) => policyHolderInfo.leaderOtherEffectiveDatee = changeDate(e)"></el-date-picker>
  525. </el-form-item>
  526. </el-col>
  527. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  528. v-if="policyHolderInfo.property == '0'">
  529. <el-form-item label="省市区">
  530. <el-cascader v-model="selectedOptions2" :options="areaOption"
  531. :props="{ value: 'code', label: 'name', children: 'sub' }"
  532. @change="event => areahandleChange(event, 'policyHolderInfo')"></el-cascader>
  533. </el-form-item>
  534. </el-col>
  535. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  536. <el-form-item label="地址" prop="addr">
  537. <el-input v-model="policyHolderInfo.addr" placeholder="请输入地址" type="text"
  538. @blur="getCompanyList"></el-input>
  539. </el-form-item>
  540. </el-col>
  541. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  542. <el-form-item label="有效期起期" prop="identifyValidDate">
  543. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidDate" value-format="yyyy-MM-dd"
  544. @blur="getCompanyList" :picker-options="pickerOptions" type="date" placeholder="选择有效期起期"
  545. placement="bottom-start"
  546. @change="(e) => policyHolderInfo.identifyValidDate = changeDate(e)"></el-date-picker>
  547. </el-form-item>
  548. </el-col>
  549. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  550. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  551. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidEndDate" type="date"
  552. @blur="getCompanyList" value-format="yyyy-MM-dd" placeholder="选择有效期止期" placement="bottom-start"
  553. style="width: calc(100% - 40px)"
  554. @change="(e) => policyHolderInfo.identifyValidEndDate = changeDate(e)"></el-date-picker>
  555. <div class="insure-long-term" @click="insureLongterm('policyHolderInfo')">
  556. 长期
  557. </div>
  558. </el-form-item>
  559. </el-col>
  560. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  561. <el-form-item label="电子邮箱" prop="email">
  562. <el-input v-model="policyHolderInfo.email" placeholder="请输入电子邮箱"></el-input>
  563. </el-form-item>
  564. </el-col>
  565. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isApplicantShow">
  566. <el-form-item label="省市区:">
  567. <el-cascader v-model="policyHolderInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  568. </el-form-item>
  569. </el-col>-->
  570. </el-row>
  571. </el-form>
  572. </div>
  573. <!-- 被保人信息 -->
  574. <div class="Enclosure flex f-c back">
  575. <div class="home flex j-s a-c">
  576. <div class="flex j-s a-c" id="beitoubaoren">
  577. <img src="../../../../src/icon/被投保人信息.png" alt class="icon-img" />
  578. <span style="margin-left: 10px">被保人信息</span>
  579. </div>
  580. <div class="flex j-s a-c">
  581. <div style="font-size: 12px; margin: 0 10px" v-show="!bbtbcarShow && !bbczcarShow">
  582. <el-button size="small" type="primary" @click="clearBbxx">清空被保人信息</el-button>
  583. </div>
  584. <div style="font-size: 12px; margin: 0 10px">
  585. 同投保人
  586. <el-switch v-model="bbtbcarShow" active-color="#D42426" @change="bbtbcarShowChange()"></el-switch>
  587. </div>
  588. <div style="font-size: 12px; margin: 0 10px">
  589. 同车主
  590. <el-switch v-model="bbczcarShow" active-color="#D42426" @change="bbczcarShowChange()"></el-switch>
  591. </div>
  592. <el-button size="small" type="primary" @click="uploaduser(4)">
  593. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  594. 证件识别
  595. </el-button>
  596. </div>
  597. </div>
  598. <el-form v-show="!bbtbcarShow && !bbczcarShow" class="demo-ruleForm" :model="insuredPersonInfo"
  599. ref="insuredPersonInfo" :rules="rules" label-width="130px" size="small" style="margin-top: 15px"
  600. label-position="top">
  601. <el-row :gutter="colgutter">
  602. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  603. <el-form-item label="被保人姓名" prop="name">
  604. <el-input v-model="insuredPersonInfo.name" placeholder="请输入被保人姓名" @blur="getCompanyList"></el-input>
  605. </el-form-item>
  606. </el-col>
  607. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  608. <el-form-item label="被保人类型" prop="property">
  609. <el-select v-model="insuredPersonInfo.property" placeholder="被保人类型"
  610. @change="propertyTpe('insuredPersonInfo')">
  611. <el-option label="个人" value="1"></el-option>
  612. <el-option label="法人" value="0"></el-option>
  613. </el-select>
  614. </el-form-item>
  615. </el-col>
  616. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  617. <el-form-item label="证件类型" prop="identifyType">
  618. <el-select v-model="insuredPersonInfo.identifyType" placeholder="身份证" disabled @blur="getCompanyList">
  619. <el-option label="身份证" value="01"></el-option>
  620. <el-option label="统一社会信用代码" value="10"></el-option>
  621. </el-select>
  622. </el-form-item>
  623. </el-col>
  624. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  625. v-if="insuredPersonInfo.property == '1'">
  626. <el-form-item label="证件号码" prop="identifyNumber">
  627. <el-input v-model="insuredPersonInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  628. show-word-limit @blur="identifyblur('insuredPersonInfo'); getCompanyList"></el-input>
  629. </el-form-item>
  630. </el-col>
  631. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  632. v-if="insuredPersonInfo.property == '0'">
  633. <el-form-item label="证件号码" prop="organizationCode">
  634. <el-input v-model="insuredPersonInfo.organizationCode" placeholder="请输入证件号码" type="text" maxlength="18"
  635. show-word-limit @blur="getCompanyList"></el-input>
  636. </el-form-item>
  637. </el-col>
  638. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  639. v-if="insuredPersonInfo.property == '0'">
  640. <el-form-item label="注册资金" prop="registeredCapital">
  641. <el-input v-model="insuredPersonInfo.registeredCapital" placeholder="请输入注册资金" type="text" show-word-limit
  642. @blur="getCompanyList">
  643. <el-button slot="append">万元</el-button>
  644. </el-input>
  645. </el-form-item>
  646. </el-col>
  647. <!-- <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl" v-if="ownerInfo.property=='0'">
  648. <el-form-item label="税务号">
  649. <el-input v-model="insuredPersonInfo.revenueCode" placeholder="请输入税务号" type="text" ></el-input>
  650. </el-form-item>
  651. </el-col> -->
  652. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  653. v-if="insuredPersonInfo.property == '1'">
  654. <el-form-item label="年龄" prop="age">
  655. <el-input v-model="insuredPersonInfo.age" placeholder="请输入年龄" type="text" disabled
  656. @blur="getCompanyList"></el-input>
  657. </el-form-item>
  658. </el-col>
  659. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  660. v-if="insuredPersonInfo.property == '1'">
  661. <el-form-item label="性别" prop="gender">
  662. <el-select v-model="insuredPersonInfo.gender" placeholder="请选择性别" @blur="getCompanyList">
  663. <el-option label="男" value="男"></el-option>
  664. <el-option label="女" value="女"></el-option>
  665. </el-select>
  666. </el-form-item>
  667. </el-col>
  668. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  669. <el-form-item label="被保人手机号" prop="mobile">
  670. <el-input v-model="insuredPersonInfo.mobile" placeholder="请输入被保人手机号" maxlength="11" type="text"
  671. @blur="getCompanyList" @paste.native="handlePaste($event, 'insuredPersonInfo')"
  672. show-word-limit></el-input>
  673. </el-form-item>
  674. </el-col>
  675. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  676. v-if="insuredPersonInfo.property == '0'">
  677. <el-form-item label="被保人座机" prop="tel">
  678. <el-input v-model="insuredPersonInfo.tel" placeholder="请输入被保人座机" type="text" @blur="getCompanyList"
  679. show-word-limit></el-input>
  680. </el-form-item>
  681. </el-col>
  682. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  683. v-if="insuredPersonInfo.property == '0'">
  684. <el-form-item label="被保人联系人">
  685. <el-input v-model="insuredPersonInfo.legalPerson" placeholder="请输入被保人联系人" type="text"
  686. maxlength="5"></el-input>
  687. </el-form-item>
  688. </el-col>
  689. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  690. v-if="insuredPersonInfo.property == '0'">
  691. <el-form-item label="联系人证件号码">
  692. <el-input v-model="insuredPersonInfo.leaderIdentifyNumber" placeholder="请输入车主证件号码" type="text"
  693. maxlength="18" @blur="getCompanyList"></el-input>
  694. </el-form-item>
  695. </el-col>
  696. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  697. v-if="insuredPersonInfo.property == '0'">
  698. <el-form-item label="联系人有效期止期" prop="leaderOtherEffectiveDate" class="red-btn">
  699. <el-date-picker v-dateFormat v-model="insuredPersonInfo.leaderOtherEffectiveDate" type="date"
  700. value-format="yyyy-MM-dd" @blur="getCompanyList" placeholder="选择有效期止期" placement="bottom-start"
  701. style="width: calc(100% - 40px)"
  702. @change="(e) => insuredPersonInfo.leaderOtherEffectiveDate = changeDate(e)"></el-date-picker>
  703. </el-form-item>
  704. </el-col>
  705. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl"
  706. v-if="insuredPersonInfo.property == '0'">
  707. <el-form-item label="省市区">
  708. <el-cascader v-model="selectedOptions3" :options="areaOption"
  709. :props="{ value: 'code', label: 'name', children: 'sub' }"
  710. @change="event => areahandleChange(event, 'insuredPersonInfo')"></el-cascader>
  711. </el-form-item>
  712. </el-col>
  713. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  714. <el-form-item label="地址" prop="addr">
  715. <el-input v-model="insuredPersonInfo.addr" placeholder="请输入地址" type="text"
  716. @blur="getCompanyList"></el-input>
  717. </el-form-item>
  718. </el-col>
  719. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  720. <el-form-item label="有效期起期" prop="identifyValidDate">
  721. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidDate" value-format="yyyy-MM-dd"
  722. @blur="getCompanyList" :picker-options="pickerOptions" type="date" placeholder="选择有效期起期"
  723. placement="bottom-start"
  724. @change="(e) => insuredPersonInfo.identifyValidDate = changeDate(e)"></el-date-picker>
  725. </el-form-item>
  726. </el-col>
  727. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  728. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  729. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidEndDate" type="date"
  730. @blur="getCompanyList" value-format="yyyy-MM-dd" placeholder="选择有效期止期" placement="bottom-start"
  731. style="width: calc(100% - 40px)"
  732. @change="(e) => insuredPersonInfo.identifyValidEndDate = changeDate(e)"></el-date-picker>
  733. <div class="insure-long-term" @click="insureLongterm('insuredPersonInfo')">
  734. 长期
  735. </div>
  736. </el-form-item>
  737. </el-col>
  738. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  739. <el-form-item label="电子邮箱" prop="email">
  740. <el-input v-model="insuredPersonInfo.email" placeholder="请输入电子邮箱"></el-input>
  741. </el-form-item>
  742. </el-col>
  743. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isInsuredShow">
  744. <el-form-item label="省市区:">
  745. <el-cascader v-model="insuredPersonInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  746. </el-form-item>
  747. </el-col>-->
  748. </el-row>
  749. </el-form>
  750. </div>
  751. <!-- 车船税 -->
  752. <div class="Enclosure flex f-c back">
  753. <div class="home flex j-s a-c">
  754. <div class="flex j-s a-c color" id="insurance">
  755. <img src="../../../../src/icon/车船税.png" alt class="icon-img" />
  756. <span style="margin-left: 10px">车船税</span>
  757. </div>
  758. </div>
  759. <el-form class="demo-ruleForm" :model="vehicleAndVesselTaxForm" ref="vehicleAndVesselTaxForm" :rules="rules"
  760. label-width="160px" size="small" style="margin-top: 15px" label-position="top">
  761. <el-row :gutter="colgutter">
  762. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  763. <el-form-item label="纳税类型:" prop="taxRelifFlag">
  764. <el-select @change="taxRelifFlagChange" v-model="vehicleAndVesselTaxForm.taxRelifFlag" placeholder="纳税类型">
  765. <el-option v-for="(item, index) in taxRelifFlagoptions" :key="index" :label="item.dictTag"
  766. :value="item.dictValue"></el-option>
  767. </el-select>
  768. </el-form-item>
  769. </el-col>
  770. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1 && policyHolderInfo.property == '1'"
  771. :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  772. <el-form-item label="纳税人识别号:" prop="identifyNumber">
  773. <el-input v-model="vehicleAndVesselTaxForm.identifyNumber" placeholder="请输入纳税人识别号" type="text"></el-input>
  774. </el-form-item>
  775. </el-col>
  776. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1 && policyHolderInfo.property == '0'"
  777. :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  778. <el-form-item label="纳税人识别号:" prop="organizationCode">
  779. <el-input v-model="vehicleAndVesselTaxForm.organizationCode" placeholder="请输入纳税人识别号"
  780. type="text"></el-input>
  781. </el-form-item>
  782. </el-col>
  783. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md"
  784. :lg="colSpan.lg" :xl="colSpan.xl">
  785. <el-form-item label="纳税人名称:" prop="taxpayerName">
  786. <el-input v-model="vehicleAndVesselTaxForm.taxpayerName" placeholder="请输入纳税人名称" type="text"></el-input>
  787. </el-form-item>
  788. </el-col>
  789. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md"
  790. :lg="colSpan.lg" :xl="colSpan.xl">
  791. <el-form-item label="证件类型:" prop="taxpayerIdentifier">
  792. <el-select v-model="vehicleAndVesselTaxForm.taxpayerIdentifier" placeholder="证件类型" clearable>
  793. <el-option v-for="(item, index) in taxpayerIdentifieroptions" :key="index" :label="item.dictTag"
  794. :value="item.dictValue"></el-option>
  795. </el-select>
  796. </el-form-item>
  797. </el-col>
  798. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 ||
  799. vehicleAndVesselTaxForm.taxRelifFlag == 3
  800. " :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  801. <el-form-item label="减免税凭证号:" prop="extendChar2">
  802. <el-input v-model="vehicleAndVesselTaxForm.extendChar2" placeholder="请输入减免税凭证号" type="text"></el-input>
  803. </el-form-item>
  804. </el-col>
  805. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md"
  806. :lg="colSpan.lg" :xl="colSpan.xl">
  807. <el-form-item label="完税凭证号:" prop="paidFreeCertificate">
  808. <el-input v-model="vehicleAndVesselTaxForm.paidFreeCertificate" placeholder="请输入完税凭证号"
  809. type="text"></el-input>
  810. </el-form-item>
  811. </el-col>
  812. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 ||
  813. vehicleAndVesselTaxForm.taxRelifFlag == 3
  814. " :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  815. <el-form-item label="减免税原因:" prop="relifReason">
  816. <el-select v-model="vehicleAndVesselTaxForm.relifReason" placeholder="减免税原因" clearable>
  817. <el-option v-for="(item, index) in relifReasonoptions" :key="index" :label="item.dictTag"
  818. :value="item.dictValue"></el-option>
  819. </el-select>
  820. </el-form-item>
  821. </el-col>
  822. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md"
  823. :lg="colSpan.lg" :xl="colSpan.xl">
  824. <el-form-item label="税务机关代码:" prop="taxComCode">
  825. <el-input v-model="vehicleAndVesselTaxForm.taxComCode" placeholder="请输入税务机关代码" type="text"></el-input>
  826. </el-form-item>
  827. </el-col>
  828. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md"
  829. :lg="colSpan.lg" :xl="colSpan.xl">
  830. <el-form-item label="税务机关名称:" prop="taxComName">
  831. <el-input v-model="vehicleAndVesselTaxForm.taxComName" placeholder="请输入税务机关名称" type="text"></el-input>
  832. </el-form-item>
  833. </el-col>
  834. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md"
  835. :lg="colSpan.lg" :xl="colSpan.xl">
  836. <el-form-item label="完税凭证填发日期:" prop="taxDocumentDate">
  837. <el-date-picker v-model="vehicleAndVesselTaxForm.taxDocumentDate" value-format="yyyy-MM-dd" type="date"
  838. placeholder="完税凭证填发日期" placement="bottom-start"
  839. @change="(e) => vehicleAndVesselTaxForm.taxDocumentDate = changeDate(e)"></el-date-picker>
  840. </el-form-item>
  841. </el-col>
  842. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md"
  843. :lg="colSpan.lg" :xl="colSpan.xl">
  844. <el-form-item label="完税凭证地区:" prop="taxPaidAreaCode">
  845. <el-select v-model="vehicleAndVesselTaxForm.taxPaidAreaCode" placeholder="完税凭证地区" clearable>
  846. <el-option v-for="(item, index) in provinceSelect" :key="index" :label="item.name"
  847. :value="item.code"></el-option>
  848. </el-select>
  849. </el-form-item>
  850. </el-col>
  851. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 3" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md"
  852. :lg="colSpan.lg" :xl="colSpan.xl">
  853. <el-form-item label="减税比例:" prop="taxRelief">
  854. <el-input v-model="vehicleAndVesselTaxForm.taxRelief" placeholder="请输入0~1的数值" type="text"></el-input>
  855. </el-form-item>
  856. </el-col>
  857. </el-row>
  858. </el-form>
  859. </div>
  860. <!-- 险别选择 -->
  861. <div class="Enclosure flex f-c back xianbie">
  862. <div class="home flex j-s a-c back">
  863. <div class="flex j-s a-c" id="more">
  864. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" />
  865. <span style="margin-left: 15px; width: 120px">险种选择</span>
  866. <!-- <el-select size="small" style="width: 70%" v-model="packageValue" placeholder="请选择套餐" @change="packageChange">
  867. <el-option v-for="item in packageOptions" :key="item.id" :label="item.title" :value="item.id"></el-option>
  868. </el-select> -->
  869. <el-radio-group v-model="productId" @change="productIdChange">
  870. <el-radio v-for="(item, index) in productList" :key="index" :label="item.code">{{ item.desc }}</el-radio>
  871. </el-radio-group>
  872. </div>
  873. </div>
  874. <!-- <div class="flex f-c more">
  875. <div class="flex j-s a-c more-title back">
  876. <div style="width: 590px; padding-left: 100px" class="flex j-s a-c">
  877. <span>险别</span>
  878. <span>保额(元)</span>
  879. </div>
  880. </div>
  881. <div class="flex a-c more-data back" v-for="(insureitem, insureindex) in insureList" :key="insureindex">
  882. <div style="width: 700px; padding-left: 100px" class="flex j-s a-c">
  883. <div style="width: auto">
  884. <span style="text-align: center">
  885. {{ insureitem.kindName }}
  886. <el-input v-show="insureitem.kindCode == 'D4' ||
  887. insureitem.kindCode == 'MJ4' ||
  888. insureitem.kindCode == 'SY_FJ_YBW2'
  889. " v-model="sumseatCount" style="width: 40px; margin: 0 5px" size="small" placeholder
  890. disabled></el-input>
  891. <span v-show="insureitem.kindCode == 'D4' ||
  892. insureitem.kindCode == 'MJ4' ||
  893. insureitem.kindCode == 'SY_FJ_YBW2'
  894. ">座</span>
  895. </span>
  896. </div>
  897. <el-select v-if="insureitem.amtList" filterable v-model="insureitem.amount" placeholder="请选择"
  898. @change="insureitemChange($event, insureitem)" size="small" style="width: 300px">
  899. <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
  900. :key="index"></el-option>
  901. </el-select>
  902. <span v-else>
  903. <el-input-number size="small" style="width: 280px; margin-right: 10px" v-model="insureitem.amount"
  904. :min="0"></el-input-number>次
  905. </span>
  906. </div>
  907. </div>
  908. </div> -->
  909. </div>
  910. <!-- 投保信息 -->
  911. <div class="Enclosure flex f-c back">
  912. <div class="home flex j-s a-c">
  913. <div class="flex j-s a-c color" id="insurance">
  914. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" />
  915. <span style="margin-left: 10px">投保信息</span>
  916. <el-switch style="margin: 0 10px 0 30px" @change="immediatelyChange" v-model="immediatelyValue"
  917. active-color="#D42426"></el-switch>
  918. <span style="font-weight: normal; font-size: 13px">即时投保</span>
  919. </div>
  920. </div>
  921. <el-form class="back demo-ruleForm" :inline="true" :model="Carinsurance" label-width="150px" size="small"
  922. style="margin-top: 15px" label-position="top">
  923. <div class="flex j-start a-c">
  924. <div class="flex j-c a-start">
  925. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="jqchecked" disabled></el-checkbox>
  926. <div class="flex f-c a-c">
  927. <el-form-item label="交强险起保日期" prop="identifyNumber" class="red-btn">
  928. <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="jqstartDate" @change="jqChange"
  929. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  930. </el-form-item>
  931. <el-form-item label="交强险终保日期" prop="identifyNumber" class="red-btn">
  932. <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="jqendDate" type="datetime"
  933. placeholder="选择日期时间" placement="bottom-start"
  934. @change="(e) => jqendDate = quotechangeDate(e)"></el-date-picker>
  935. </el-form-item>
  936. </div>
  937. </div>
  938. <div class="synchronous" style="margin: 0 50px" @click="synchronization">
  939. <img src="@/icon/Union2.png">
  940. <div>同步</div>
  941. </div>
  942. <div class="flex j-c a-start">
  943. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="sychecked" disabled
  944. @change="sycheckedChange"></el-checkbox>
  945. <div class="flex f-c a-c">
  946. <el-form-item label="商业险起保日期" prop="name" class="red-btn">
  947. <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="systartDate" @change="syChange"
  948. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  949. </el-form-item>
  950. <el-form-item label="商业险终保日期" prop="name" class="red-btn">
  951. <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="syendDate" type="datetime"
  952. placeholder="选择日期时间" placement="bottom-start"
  953. @change="(e) => syendDate = quotechangeDate(e)"></el-date-picker>
  954. </el-form-item>
  955. </div>
  956. </div>
  957. </div>
  958. </el-form>
  959. </div>
  960. <!-- 保险公司 -->
  961. <div class="Enclosure flex f-c back">
  962. <div class="home flex j-s">
  963. <div class="flex j-s a-c" id="company">
  964. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" />
  965. <span style="margin-left: 10px">保险公司</span>
  966. <div class="csstool">
  967. <span>是否过户车</span>
  968. <el-switch @change="transferFlagChange" v-model="carInfo.transferFlag" active-color="#D42426"></el-switch>
  969. </div>
  970. <div class="csstool">
  971. <span>商业险是否过户</span>
  972. <el-switch v-model="carInfo.transferFlagBi" active-color="#D42426"></el-switch>
  973. </div>
  974. <div class="csstool">
  975. <span>是否脱保</span>
  976. <el-switch v-model="carInfo.outOfInsurance" active-color="#D42426"></el-switch>
  977. </div>
  978. <div class="csstool">
  979. <span>是否二手车</span>
  980. <el-switch v-model="carInfo.usedCar" active-color="#D42426"></el-switch>
  981. </div>
  982. </div>
  983. <div class="flex j-c a-c">
  984. <el-button v-show="imageUploadShow" size="small" type="primary" @click="imageUpload()">
  985. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  986. 影像上传
  987. </el-button>
  988. </div>
  989. </div>
  990. <div>
  991. <!-- <div class="companyhead">
  992. <el-row>
  993. <el-col :span="1">
  994. <span style="font-size: 14px">选择</span>
  995. </el-col>
  996. <el-col :span="2" style="margin: 0 42px 0 35px">
  997. <span>保险公司</span>
  998. </el-col>
  999. <el-col :span="3">
  1000. <span>报价协议</span>
  1001. </el-col>
  1002. <el-col :span="3" v-if="isLetter !== '3'">
  1003. <span>报价结果</span>
  1004. </el-col>
  1005. <el-col :span="3">
  1006. <span>交强险</span>
  1007. </el-col>
  1008. <el-col :span="3">
  1009. <span>车船税</span>
  1010. </el-col>
  1011. <el-col :span="3">
  1012. <span>商业险</span>
  1013. </el-col>
  1014. <el-col :span="2">
  1015. <span>驾意险</span>
  1016. </el-col>
  1017. <el-col :span="2">
  1018. <span>操作</span>
  1019. </el-col>
  1020. </el-row>
  1021. </div>
  1022. -->
  1023. <div class="coll">
  1024. <div v-loading="showLoading" class="hovers" :class="reslistitem.checked ? 'border-red' : 'border-blue'"
  1025. v-for="(reslistitem, reslistindex) in totalCompanyList" :key="reslistindex">
  1026. <el-row v-show="reslistitem.checked || reslistindex == 0" class="companyhead" style="margin-bottom: 20px;">
  1027. <el-col :span="1">
  1028. <span style="font-size: 14px">选择</span>
  1029. </el-col>
  1030. <el-col :span="2" style="margin: 0 42px 0 35px">
  1031. <span>保险公司</span>
  1032. </el-col>
  1033. <el-col :span="3">
  1034. <span>报价协议</span>
  1035. </el-col>
  1036. <el-col :span="3" v-if="isLetter !== '3'">
  1037. <span>报价结果</span>
  1038. </el-col>
  1039. <el-col :span="3">
  1040. <span>交强险</span>
  1041. </el-col>
  1042. <el-col :span="3">
  1043. <span>车船税</span>
  1044. </el-col>
  1045. <el-col :span="3">
  1046. <span>商业险</span>
  1047. </el-col>
  1048. <el-col :span="2">
  1049. <span>驾意险</span>
  1050. </el-col>
  1051. <el-col :span="2">
  1052. <span>操作</span>
  1053. </el-col>
  1054. </el-row>
  1055. <el-row class="bxgs-list">
  1056. <el-col :span="1" style="margin-left: 20px">
  1057. <el-checkbox v-model="reslistitem.checked" :disabled="reslistitem.disabled" @change="(event) =>
  1058. initchange(
  1059. event,
  1060. reslistitem.id,
  1061. reslistitem.cnName,
  1062. reslistindex
  1063. )
  1064. "></el-checkbox>
  1065. </el-col>
  1066. <el-col :span="2">
  1067. <img :src="reslistitem.logo" alt style="
  1068. width: 30px;
  1069. height: 30px;
  1070. vertical-align: middle;
  1071. margin-left: 20px;
  1072. " />
  1073. <span>{{ reslistitem.namesimple }}</span>
  1074. </el-col>
  1075. <el-col :span="4">
  1076. <el-select size="small" v-if="reslistitem.isTaxSource && reslistitem.isTaxSource == '1'
  1077. " :disabled="true" placeholder="默认" style="width: 230px" v-model="isTaxSourceModel"
  1078. :clearable="true"></el-select>
  1079. <el-select size="small" v-else :disabled="!reslistitem.checked" v-model="reslistitem.agreementId"
  1080. placeholder="请选择协议" style="width: 230px" :clearable="true" @change="(val) =>
  1081. agreementChange(
  1082. val,
  1083. reslistitem.agreement,
  1084. reslistindex,
  1085. reslistitem
  1086. )
  1087. ">
  1088. <div v-for="(
  1089. agreementitem, agreementindex
  1090. ) in reslistitem.agreement" :key="agreementindex">
  1091. <div v-if="agreementitem.licenseNo &&
  1092. agreementitem.licenseNo.length > 0 &&
  1093. carInfo.licenseNo.length > 0
  1094. ? agreementitem.licenseNo.includes(
  1095. carInfo.licenseNo.slice(0, 2)
  1096. )
  1097. : 'true'
  1098. ">
  1099. <el-option
  1100. :label="agreementitem.jobDescription ? agreementitem.businessDescription + '(' + agreementitem.jobDescription + ')' : agreementitem.businessDescription"
  1101. :value="agreementitem.id" :disabled="agreementitem.disabled">{{ agreementitem.jobDescription ?
  1102. agreementitem.businessDescription + '(' + agreementitem.jobDescription + ')' :
  1103. agreementitem.businessDescription }}</el-option>
  1104. </div>
  1105. </div>
  1106. </el-select>
  1107. </el-col>
  1108. <el-col :span="3">
  1109. <div v-show="reslistitem.quoteCode == '0'">
  1110. <span style="line-height: auto;">未报价</span>
  1111. </div>
  1112. <div class="loader" v-show="reslistitem.quoteCode == '1'">
  1113. <!-- <i style="color: #d42426" class="el-icon-loading"></i> -->
  1114. <p class="text">
  1115. <span class="letter letter1">掌</span>
  1116. <span class="letter letter2">柜</span>
  1117. <span class="letter letter3">正</span>
  1118. <span class="letter letter4">在</span>
  1119. <span class="letter letter5">为</span>
  1120. <span class="letter letter6">您</span>
  1121. <span class="letter letter7">报</span>
  1122. <span class="letter letter8">价</span>
  1123. <span class="letter letter9">.</span>
  1124. <span class="letter letter10">.</span>
  1125. <span class="letter letter11">.</span>
  1126. </p>
  1127. </div>
  1128. <div class="dis f-c"
  1129. v-show="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  1130. <span style="color: #d42426; font-weight: bold">
  1131. ¥{{ reslistitem.result.sumPermium }}
  1132. </span>
  1133. <!-- <span style="font-size: 13px; color: #2d4d89" class="m-top-5">{{ reslistitem.result.feeView ? '总科技币:' : '优惠:' }}{{ reslistitem.result.sumExportFee}}</span> -->
  1134. </div>
  1135. <div class="dis f-c"
  1136. v-show="reslistitem.quoteCode == '200' && (reslistitem.result.orderstatus == '10' || reslistitem.result.orderstatus == '11')">
  1137. <span style="color: #d42426; font-weight: bold">
  1138. {{ reslistitem.result.orderStatusInfo }}
  1139. </span>
  1140. </div>
  1141. </el-col>
  1142. <el-col :span="3"
  1143. v-show="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  1144. <div class="dis f-c">
  1145. <span style="color: #d42426; font-weight: bold">
  1146. ¥{{ reslistitem.result.jqPremium }}
  1147. </span>
  1148. <!-- <span v-if="reslistitem.result.jqPremium" style="font-size: 13px; color: #2d4d89" class="m-top-5">{{ reslistitem.result.feeView ? '掌柜科技币:' : '优惠:' }}{{ reslistitem.result.jqExportFee }}</span> -->
  1149. </div>
  1150. </el-col>
  1151. <el-col :span="3"
  1152. v-show="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  1153. <span style="color: #d42426; font-weight: bold">
  1154. ¥{{ reslistitem.result.taxAmount }}
  1155. </span>
  1156. </el-col>
  1157. <el-col :span="3"
  1158. v-show="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  1159. <div class="dis f-c">
  1160. <span style="color: #d42426; font-weight: bold">
  1161. ¥{{ reslistitem.result.syPremium }}
  1162. </span>
  1163. <!-- <span v-if="reslistitem.result.syPremium" style="font-size: 13px; color: #2d4d89" class="m-top-5">{{ reslistitem.result.feeView ? '掌柜科技币:' : '优惠:' }}{{ reslistitem.result.syExportFee }}</span> -->
  1164. </div>
  1165. </el-col>
  1166. <el-col :span="2"
  1167. v-if="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'"
  1168. style="">
  1169. <div class="dis f-c">
  1170. <span style="color: #d42426; font-weight: bold">
  1171. {{
  1172. reslistitem.result.jyPremium
  1173. ? "¥" + reslistitem.result.jyPremium
  1174. : "无"
  1175. }}
  1176. </span>
  1177. <!-- <span v-if="reslistitem.result.jyPremium" style="font-size: 13px; color: #2d4d89" class="m-top-5">{{ reslistitem.result.feeView ? '掌柜科技币:' : '优惠:' }}{{ reslistitem.result.noExportFee }}</span> -->
  1178. </div>
  1179. </el-col>
  1180. <el-col :span="24" v-show="reslistitem.quoteCode == '200' &&
  1181. reslistitem.result.feeNoDescription
  1182. ">
  1183. <div class="flex offer-time" style="color: #d42426">
  1184. <span>该车未匹配销管费用,不建议投保!</span>
  1185. <el-tooltip class="item" effect="dark" content="费用匹配错误信息" placement="top">
  1186. <i class="el-icon-s-goods" @click="
  1187. open3(
  1188. reslistitem.namesimple + '优惠信息',
  1189. reslistitem.result.feeNoDescription
  1190. )
  1191. " style="
  1192. font-size: 20px;
  1193. transform: scale(0.8);
  1194. vertical-align: middle;
  1195. " :disabled="reslistitem.quoteCode == '200' &&
  1196. reslistitem.result.feeNoDescription
  1197. "></i>
  1198. </el-tooltip>
  1199. </div>
  1200. </el-col>
  1201. <el-col :span="24" v-show="reslistitem.quoteCode != '200' &&
  1202. reslistitem.quoteCode != '0' &&
  1203. reslistitem.quoteCode != '1'
  1204. ">
  1205. <div class="flex j-s offer-time" style="color: #d42426">
  1206. 错误提示:
  1207. {{
  1208. reslistitem.msg.length > 500
  1209. ? reslistitem.msg.slice(0, 500)
  1210. : reslistitem.msg
  1211. }}
  1212. </div>
  1213. </el-col>
  1214. <el-col :span="24" v-show="reslistitem.quoteCode == '200' &&
  1215. (reslistitem.result.orderstatus == '10' || reslistitem.result.orderstatus == '11')">
  1216. <div class="flex j-s offer-time" style="color: #d42426">
  1217. {{ reslistitem.result.quoteErrMsg }}
  1218. </div>
  1219. </el-col>
  1220. <div class="baofeijisuan flex a-c" >
  1221. <el-button size="mini" type="text" class="blue_color" v-if="reslistitem.result.orderstatus=='10'"
  1222. @click="supplementOrder(reslistitem.result.companyId)">补录订单</el-button>
  1223. <div class="btn" @click="handleListJisuan(reslistitem, reslistindex)">计算保费</div>
  1224. </div>
  1225. </el-row>
  1226. <!-- 选中-方案选择 -->
  1227. <div v-show="reslistitem.checked" :gutter="20" class="company-checked">
  1228. <el-row class="width1280">
  1229. <el-col :span="24">
  1230. <el-row type="flex" align="middle" class="left-title" v-if="reslistitem.programme">
  1231. <el-col :span="2">方案选择</el-col>
  1232. <div style="margin-right: 20px;" v-for="(item, index) in reslistitem.schemes" :key="index"
  1233. @click="checkedPopover(reslistindex, index, item)">
  1234. <el-popover placement="top-start" trigger="hover" width="660">
  1235. <!-- :disabled="reslistitem.checkedProgramme == index" -->
  1236. <!-- <div>弹出</div> -->
  1237. <Ktletter1Popover :data="item" :programme="reslistitem.programme" :productId="productId">
  1238. </Ktletter1Popover>
  1239. <el-col class="gray-style" :class="reslistitem.checkedProgramme == index ? 'blue-style' : ''"
  1240. slot="reference">
  1241. <!-- <i v-show="reslistitem.checkedProgramme == index" class="el-icon-circle-check"></i> -->
  1242. {{ item.schemeName }}
  1243. <img v-show="reslistitem.checkedProgramme == index" src="@/assets/Frame.png" />
  1244. </el-col>
  1245. </el-popover>
  1246. </div>
  1247. <div @click="checkedPopover(reslistindex, 99)" style="margin-right: 20px;"
  1248. v-show="reslistitem.programme99 && reslistitem.programme99.schemeId">
  1249. <el-popover placement="top-start" width="660" :disabled="reslistitem.checkedProgramme == 99"
  1250. trigger="hover">
  1251. <Ktletter1Popover :data="reslistitem.programme99" :programme="reslistitem.programme"
  1252. :productId="productId"></Ktletter1Popover>
  1253. <el-col class="gray-style" :class="reslistitem.checkedProgramme == 99 ? 'blue-style' : ''"
  1254. slot="reference">
  1255. <!-- <i v-show="reslistitem.checkedProgramme == 99" class="el-icon-circle-check"></i> -->
  1256. 自选方案
  1257. <img v-show="reslistitem.checkedProgramme == 99" src="@/assets/Frame.png" />
  1258. </el-col>
  1259. </el-popover>
  1260. </div>
  1261. <div v-show="reslistitem.checkedProgramme == 99" style="margin-right: 20px;" class="juse-style">
  1262. <span @click="showTypeDialog(reslistitem, reslistindex)">调整险种</span>
  1263. </div>
  1264. <!-- <el-popover placement="top-start" width="450" style="margin-right: 20px;" trigger="hover">
  1265. <Ktletter1Popover></Ktletter1Popover>
  1266. <el-col class="gray-style" slot="reference">服务方案</el-col>
  1267. </el-popover> -->
  1268. </el-row>
  1269. </el-col>
  1270. <el-col :span="2" v-if="reslistitem.programme" class="card-bg">
  1271. <div class="card-xianzhong">
  1272. <div>已选险种</div>
  1273. <div class="card-btn" v-show="reslistitem.programme.description">{{
  1274. reslistitem.programme.description }}</div>
  1275. <!-- <div v-if="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus">{{ reslistitem.result.orderstatus | cap }}</div> -->
  1276. </div>
  1277. </el-col>
  1278. <!-- 险种明细 -->
  1279. <el-col :span="8" class="card-bg" style="padding-left: 0;"
  1280. v-if="reslistitem.programme && reslistitem.programme.kinds">
  1281. <div class="card-mingxi">
  1282. <div class="card-mingxi-title">险种明细:
  1283. <span v-show="reslistitem.checkedProgramme != 99"
  1284. @click="showDetailJiaYi(reslistitem, reslistindex)">查看详情</span>
  1285. <!-- <span v-show="reslistitem.checkedProgramme == 99" @click="showTypeDialog(reslistitem, reslistindex)">调整险种</span> -->
  1286. </div>
  1287. <div class="card-table"
  1288. v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1289. <div class="table-title">交强险</div>
  1290. <div class="table-list" v-if="reslistitem.programme.kinds">
  1291. <div class="table-list-title">
  1292. <div class="flex-1">产品名称</div>
  1293. </div>
  1294. <div class="table-list-content">
  1295. <div class="flex-1">
  1296. <img src="@/icon/icon-chengse.png">
  1297. <!-- <span>{{ reslistitem.programme.jqx.name }}</span> -->
  1298. <span>交通事故强制责任险</span>
  1299. </div>
  1300. </div>
  1301. </div>
  1302. </div>
  1303. <div class="card-table" v-show="reslistitem.programme.description != '单交'">
  1304. <div class="table-title">商业险</div>
  1305. <div class="table-list" v-if="reslistitem.programme && reslistitem.programme.kinds">
  1306. <div class="table-list-title">
  1307. <div class="flex-1">产品名称</div>
  1308. <div class="w-60">保额(元)</div>
  1309. </div>
  1310. <div v-for="(kinds, kindIndex) in reslistitem.programme.kinds.main" :key="kindIndex + 'main'">
  1311. <div class="table-list-content" v-if="kinds.amount != 0">
  1312. <div class="flex-1">
  1313. <img src="@/icon/icon-chengse.png">
  1314. <span>{{ kinds.kindName }}</span>
  1315. </div>
  1316. <div v-if="kinds.kindCode != 'A'" class="w-60"> {{ toWan(kinds.amount) }}</div>
  1317. <div v-else class="w-60">{{ toWan(kinds.amount) }}</div>
  1318. </div>
  1319. </div>
  1320. <div v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">
  1321. <div class="table-list-content" v-if="kinds.amount != 0">
  1322. <div class="flex-1">
  1323. <img src="@/icon/icon-chengse.png">
  1324. <span>{{ kinds.kindName }}</span>
  1325. </div>
  1326. <div class="w-60"> {{ toWan(kinds.amount) }}</div>
  1327. </div>
  1328. </div>
  1329. <div class="table-list-content"
  1330. v-if="reslistitem.programme && reslistitem.programme.kinds && !reslistitem.programme.kinds.main.length && !reslistitem.programme.kinds.additional.length">
  1331. 暂无</div>
  1332. </div>
  1333. </div>
  1334. <div class="card-table"
  1335. v-if="reslistitem.programme && reslistitem.programme.drivingList && reslistitem.programme.drivingList.length > 0">
  1336. <div class="table-title">驾意险</div>
  1337. <div class="table-list" v-if="reslistitem.programme.kinds">
  1338. <div class="table-list-title">
  1339. <div class="flex-1">产品名称</div>
  1340. <div class="w-60">份数</div>
  1341. <div class="w-60">保费</div>
  1342. </div>
  1343. <div class="table-list-content"
  1344. v-for="(driving, drivingIndex) in reslistitem.programme.drivingList" :key="drivingIndex"
  1345. @click="showDetailJiaYi(reslistitem, reslistindex, 'jiayi')">
  1346. <div class="flex-1">
  1347. <img src="@/icon/icon-chengse.png">
  1348. <span>
  1349. <!-- <span style="margin-right: 0;" v-if="reslistitem.cnName == 'guoRen' || reslistitem.cnName == 'ansheng'">{{ driving.select }}</span> -->
  1350. {{ driving.alias || driving.projectName }}
  1351. </span>
  1352. </div>
  1353. <div class="w-60">{{ driving.quantity }}份</div>
  1354. <div class="w-60">¥{{ Number(driving.sumPremium) * driving.quantity }}
  1355. <span v-show="reslistitem.checkedProgramme == 99"><i class="el-icon-delete"
  1356. @click="deleteJiaYi(reslistindex, drivingIndex)"></i></span>
  1357. </div>
  1358. </div>
  1359. <div class="table-list-content"
  1360. v-if="reslistitem.programme && reslistitem.programme.drivingList && !reslistitem.programme.drivingList.length">
  1361. 暂无</div>
  1362. </div>
  1363. </div>
  1364. <div class="card-table" v-show="reslistitem.cnName == 'guoRen'">
  1365. <!-- reslistitem.checkedProgramme == 99 && -->
  1366. <div class="table-title">其他</div>
  1367. <div class="table-list">
  1368. <!-- v-if="reslistitem.programme.kinds" -->
  1369. <div style="color: #FD9A25;" @click="contributingGuoRen(reslistitem.agreementId, reslistindex)">
  1370. 选择特约</div>
  1371. <div class="table-list-title"
  1372. v-show="reslistitem.programme && reslistitem.programme.teyue && reslistitem.programme.teyue.length">
  1373. <div class="flex-1">特约名称</div>
  1374. </div>
  1375. <div class="table-list-content" v-for="(teyueitem, teyueindex) in reslistitem.programme.teyue"
  1376. :key="teyueindex">
  1377. <div class="flex-1">
  1378. <img src="@/icon/icon-chengse.png">
  1379. {{ teyueitem.clauseName }}
  1380. </div>
  1381. </div>
  1382. <!-- <div class="table-list-content" v-if="!reslistitem.programme.teyue.length">暂无</div> -->
  1383. </div>
  1384. </div>
  1385. <div class="card-table" v-show="reslistitem.cnName == 'zijin' || reslistitem.cnName == 'yangguang'
  1386. // || reslistitem.cnName == 'taishan'
  1387. ">
  1388. <div class="table-title">其他</div>
  1389. <div>自定义系数:
  1390. <el-input v-model="reslistitem.coefficient" size="mini" class="coefficient"
  1391. placeholder="请输入"></el-input>
  1392. </div>
  1393. </div>
  1394. <div class="card-table flex a-c j-s" v-show="reslistitem.cnName == 'chengtai'">
  1395. <div class="table-title">其他</div>
  1396. <div class="flex f-wrap a-c ">
  1397. <div class="flex a-c mrgin-5">
  1398. <span style="margin-right: 5px;">初始折扣:</span>
  1399. <el-input v-model="reslistitem.result.initialProposalDiscount" disabled size="mini"
  1400. class="coefficient" placeholder="请输入"></el-input>
  1401. </div>
  1402. <div class="flex a-c mrgin-5">
  1403. <span style="margin-right: 5px;">自定义系数:</span>
  1404. <el-input v-model="reslistitem.result.pricingCoefficient" size="mini" class="coefficient"
  1405. placeholder="请输入"></el-input>
  1406. </div>
  1407. <div class="flex a-c mrgin-5">
  1408. <span style="margin-right: 5px;">期望折扣:</span>
  1409. <el-input v-model="reslistitem.result.expectedDiscount" size="mini" class="coefficient"
  1410. placeholder="请输入"></el-input>
  1411. </div>
  1412. </div>
  1413. </div>
  1414. </div>
  1415. </el-col>
  1416. <!-- 服务明细 -->
  1417. <el-col :span="4" class="card-bg" style="padding-left: 0;"
  1418. v-if="reslistitem.programme && reslistitem.programme.kinds">
  1419. <div class="card-mingxi fuwu">
  1420. <div class="card-mingxi-title">服务明细:</div>
  1421. <div class="card-table">
  1422. <div class="table-list">
  1423. <div class="table-list-title">
  1424. <div class="flex-1">增值服务</div>
  1425. <div class="w-50">次数</div>
  1426. </div>
  1427. <div class="table-list-content"
  1428. v-for="(kinds, kindIndex) in reslistitem.programme.kinds.service" :key="kindIndex">
  1429. <div class="flex-1">
  1430. <img src="@/icon/icon-lanse.png">
  1431. <span style="margin-left: 0;">{{ kinds.alias || kinds.kindName }}</span>
  1432. </div>
  1433. <div class="w-50 w-55">{{ toWan(kinds.amount, 'fw') }}</div>
  1434. </div>
  1435. <div class="table-list-content"
  1436. v-if="reslistitem.programme && reslistitem.programme.kinds && !reslistitem.programme.kinds.service.length">
  1437. 暂无</div>
  1438. </div>
  1439. </div>
  1440. </div>
  1441. </el-col>
  1442. <!-- 优惠明细 -->
  1443. <el-col :span="4" class="card-bg" style="padding-left: 0;"
  1444. v-if="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  1445. <div class="card-mingxi youhui">
  1446. <div class="card-mingxi-title">优惠明细:</div>
  1447. <div class="card-table">
  1448. <div class="table-list">
  1449. <div class="table-list-title" style="padding-left: 0;">
  1450. <div class="w-50" style="width: 40px;">险种</div>
  1451. <div class="w-50" style="width: 50px; font-size: 10px;">优惠比例</div>
  1452. <div class="w-60" style=" font-size: 10px;">优惠金额(元)</div>
  1453. <div class="w-60" style="width: 50px; font-size: 10px;">合计优惠</div>
  1454. </div>
  1455. <div class="table-list-content" v-if="reslistitem.programme">
  1456. <div class="w-50" style="width: 40px;">
  1457. <div class="table-list-line" style="border-right: none; padding-left: 0;"
  1458. v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1459. <span style="margin-left: 0; font-size: 10px;">交强险</span>
  1460. </div>
  1461. <div class="table-list-line" style="border-right: none; padding-left: 0;"
  1462. v-show="reslistitem.programme.description != '单交'">
  1463. <span style="margin-left: 0; font-size: 10px;">商业险</span>
  1464. </div>
  1465. <div class="table-list-line table-list-line-last"
  1466. style="border-right: none; padding-left: 0;" v-show="reslistitem.result.jyPremium">
  1467. <span style="margin-left: 0; font-size: 10px;">驾意险</span>
  1468. </div>
  1469. </div>
  1470. <div class="w-50" style="width: 50px;">
  1471. <div class="table-list-line" style="border-right: none;"
  1472. v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1473. <span style="margin-left: 0;">{{ reslistitem.result.jqExportFee ?
  1474. reslistitem.result.jqExportRadio : '无' }}</span>
  1475. </div>
  1476. <div class="table-list-line" style="border-right: none;"
  1477. v-show="reslistitem.programme.description != '单交'">
  1478. <span style="margin-left: 0;">{{ reslistitem.result.syExportFee ?
  1479. reslistitem.result.syExportRadio : '无' }}</span>
  1480. </div>
  1481. <div class="table-list-line table-list-line-last" style="border-right: none;"
  1482. v-show="reslistitem.result.jyPremium">
  1483. <span style="margin-left: 0;">{{ reslistitem.result.noExportRadio }}</span>
  1484. </div>
  1485. </div>
  1486. <div class="w-60">
  1487. <div class="table-list-line"
  1488. v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1489. <span style="margin-left: 0;">{{ reslistitem.result.jqExportFee ?
  1490. reslistitem.result.jqExportFee : '无' }}</span>
  1491. </div>
  1492. <div class="table-list-line" v-show="reslistitem.programme.description != '单交'">
  1493. <span style="margin-left: 0;">{{ reslistitem.result.syExportFee ?
  1494. reslistitem.result.syExportFee : '无' }}</span>
  1495. </div>
  1496. <div class="table-list-line table-list-line-last" v-show="reslistitem.result.jyPremium">
  1497. <span style="margin-left: 0;">{{ reslistitem.result.noExportFee ?
  1498. reslistitem.result.noExportFee : '无' }}</span>
  1499. </div>
  1500. </div>
  1501. <div class="w-50 w-66"><span v-show="reslistitem.result.sumExportFee">¥</span>{{
  1502. reslistitem.result.sumExportFee }}</div>
  1503. </div>
  1504. </div>
  1505. </div>
  1506. <div class="card-mingxi-title" style="margin-top: 10px; border-top: 1px solid #fabdae;">返还测算:</div>
  1507. <div class="card-table">
  1508. <div class="table-list">
  1509. <div class="table-list-title" style="padding-left: 0;">
  1510. <div class="w-50" style="width: 40px;">险种</div>
  1511. <div class="w-50" style="width: 50px; font-size: 10px;">返还比例</div>
  1512. <div class="w-60" style=" font-size: 10px;">返还金额(元)</div>
  1513. <div class="w-60" style="width: 50px; font-size: 10px;">合计返还</div>
  1514. </div>
  1515. <div class="table-list-content" v-if="reslistitem.programme">
  1516. <div class="w-50" style="width: 40px;">
  1517. <div class="table-list-line" style="border-right: none; padding-left: 0;"
  1518. v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1519. <span style="margin-left: 0; font-size: 10px;">交强险</span>
  1520. </div>
  1521. <div class="table-list-line" style="border-right: none; padding-left: 0;"
  1522. v-show="reslistitem.programme.description != '单交'">
  1523. <span style="margin-left: 0; font-size: 10px;">商业险</span>
  1524. </div>
  1525. <div class="table-list-line table-list-line-last"
  1526. style="border-right: none; padding-left: 0;" v-show="reslistitem.result.jyPremium">
  1527. <span style="margin-left: 0; font-size: 10px;">驾意险</span>
  1528. </div>
  1529. </div>
  1530. <div class="w-50" style="width: 50px;">
  1531. <div class="table-list-line" style="border-right: none; padding-left: 0;"
  1532. v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1533. <span style="margin-left: 0;">
  1534. <el-input size="mini" style="width: 40px;" v-model="reslistitem.result.jqInput"
  1535. class="mini-input"></el-input>
  1536. </span>
  1537. </div>
  1538. <div class="table-list-line" style="border-right: none; padding-left: 0;"
  1539. v-show="reslistitem.programme.description != '单交'">
  1540. <span style="margin-left: 0;">
  1541. <el-input size="mini" style="width: 40px;" v-model="reslistitem.result.syInput"
  1542. class="mini-input"></el-input>
  1543. </span>
  1544. </div>
  1545. <div class="table-list-line table-list-line-last"
  1546. style="border-right: none; padding-left: 0;" v-show="reslistitem.result.jyPremium">
  1547. <span style="margin-left: 0;">
  1548. <el-input size="mini" style="width: 40px;" v-model="reslistitem.result.jyInput"
  1549. class="mini-input"></el-input>
  1550. </span>
  1551. </div>
  1552. </div>
  1553. <div class="w-60">
  1554. <div class="table-list-line"
  1555. v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1556. <span style="margin-left: 0;">{{ reslistitem.result.jqInput ?
  1557. (reslistitem.result.jqPremium * (reslistitem.result.jqInput / 100)).toFixed(2) : 0
  1558. }}</span>
  1559. </div>
  1560. <div class="table-list-line" v-show="reslistitem.programme.description != '单交'">
  1561. <span style="margin-left: 0;">{{ reslistitem.result.syInput ?
  1562. (reslistitem.result.syPremium * (reslistitem.result.syInput / 100)).toFixed(2) : 0
  1563. }}</span>
  1564. </div>
  1565. <div class="table-list-line table-list-line-last" v-show="reslistitem.result.jyPremium">
  1566. <span style="margin-left: 0;">{{ reslistitem.result.jyInput ?
  1567. (reslistitem.result.jyPremium * (reslistitem.result.jyInput / 100)).toFixed(2) : 0
  1568. }}</span>
  1569. </div>
  1570. </div>
  1571. <div class="w-60 w-66">{{ (
  1572. (reslistitem.result.jqInput ? reslistitem.result.jqPremium * (reslistitem.result.jqInput /
  1573. 100) : 0) +
  1574. (reslistitem.result.syInput ? reslistitem.result.syPremium * (reslistitem.result.syInput /
  1575. 100) : 0) +
  1576. (reslistitem.result.jyInput ? reslistitem.result.jyPremium * (reslistitem.result.jyInput /
  1577. 100) : 0)
  1578. ).toFixed(2)
  1579. }}</div>
  1580. </div>
  1581. </div>
  1582. </div>
  1583. </div>
  1584. </el-col>
  1585. <!-- 保险期限 -->
  1586. <el-col :span="6" class="card-bg" style="padding-left: 0;"
  1587. v-if="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  1588. <div class="card-mingxi baoxian">
  1589. <div class="card-mingxi-title">保险期限:
  1590. <div @click="syncData(reslistitem.result)">
  1591. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  1592. <i style="color: red" class="el-icon-time"></i>
  1593. </el-tooltip>
  1594. </div>
  1595. </div>
  1596. <div class="card-table">
  1597. <div class="table-list">
  1598. <div class="table-list-title">
  1599. <div class="w-40">险种</div>
  1600. <div class="flex-1">起保日期</div>
  1601. <div class="flex-1">终保日期</div>
  1602. </div>
  1603. <div class="table-list-content" v-show="reslistitem.result.startDateJq">
  1604. <div class="w-40">交强险</div>
  1605. <div class="flex-1">{{ reslistitem.result.startDateJq }}</div>
  1606. <div class="flex-1">{{ reslistitem.result.endDateJq }}</div>
  1607. </div>
  1608. <div class="table-list-content" v-show="reslistitem.result.startDateSy">
  1609. <div class="w-40">商业险</div>
  1610. <div class="flex-1">{{ reslistitem.result.startDateSy }}</div>
  1611. <div class="flex-1">{{ reslistitem.result.endDateSy }}</div>
  1612. </div>
  1613. </div>
  1614. </div>
  1615. <div class="card-table">
  1616. <div class="table-list">
  1617. <div class="table-list-title">
  1618. <div class="flex-1">类型</div>
  1619. <div class="flex-1">评分</div>
  1620. </div>
  1621. <!-- <div class="table-list-content" v-show="reslistitem.result.JqExportFee">
  1622. <div class="flex-1">交强出口费用</div>
  1623. <div class="flex-1">{{ reslistitem.result.JqExportFee }}</div>
  1624. </div>
  1625. <div class="table-list-content" v-show="reslistitem.result.syExportFee">
  1626. <div class="flex-1">商业出口费用</div>
  1627. <div class="flex-1">{{ reslistitem.result.syExportFee }}</div>
  1628. </div>
  1629. <div class="table-list-content" v-show="reslistitem.result.noExportFee">
  1630. <div class="flex-1">非车出口费用</div>
  1631. <div class="flex-1">{{ reslistitem.result.noExportFee }}</div>
  1632. </div> -->
  1633. <div class="table-list-content" v-show="reslistitem.result.jqScore">
  1634. <div class="flex-1">交强类型评分:</div>
  1635. <div class="flex-1">{{ reslistitem.result.jqScore }}</div>
  1636. </div>
  1637. <div class="table-list-content" v-show="reslistitem.result.syScore">
  1638. <div class="flex-1">商业类型评分:</div>
  1639. <div class="flex-1">{{ reslistitem.result.syScore }}</div>
  1640. </div>
  1641. <div class="table-list-content" v-show="reslistitem.result.lossRation">
  1642. <div class="flex-1">总赔付率:</div>
  1643. <div class="flex-1">{{ reslistitem.result.lossRation }}</div>
  1644. </div>
  1645. <div class="table-list-content" v-show="reslistitem.result.jqLossRation">
  1646. <div class="flex-1">交强赔付率:</div>
  1647. <div class="flex-1">{{ reslistitem.result.jqLossRation }}</div>
  1648. </div>
  1649. <div class="table-list-content" v-show="reslistitem.result.syLossRation">
  1650. <div class="flex-1">商业赔付率:</div>
  1651. <div class="flex-1">{{ reslistitem.result.syLossRation }}</div>
  1652. </div>
  1653. <div class="table-list-content" v-show="reslistitem.result.totalAdjustRate">
  1654. <div class="flex-1">自主定价系数:</div>
  1655. <div class="flex-1">{{ reslistitem.result.totalAdjustRate }}</div>
  1656. </div>
  1657. <div class="table-list-content" v-show="reslistitem.result.jgAdjustRate">
  1658. <div class="flex-1">交强折扣系数:</div>
  1659. <div class="flex-1">{{ reslistitem.result.jgAdjustRate }}</div>
  1660. </div>
  1661. <div class="table-list-content" v-show="reslistitem.result.syAdjustRate">
  1662. <div class="flex-1">商业折扣系数:</div>
  1663. <div class="flex-1">{{ reslistitem.result.syAdjustRate }}</div>
  1664. </div>
  1665. <div class="table-list-content" v-show="reslistitem.result.jqRenewal">
  1666. <div class="flex-1">交强续保:</div>
  1667. <div class="flex-1">{{ reslistitem.result.jqRenewal ? reslistitem.result.jqRenewal : "无" }}
  1668. </div>
  1669. </div>
  1670. <div class="table-list-content" v-show="reslistitem.result.syRenewal">
  1671. <div class="flex-1">商业续保:</div>
  1672. <div class="flex-1">{{ reslistitem.result.syRenewal ? reslistitem.result.syRenewal : "无" }}
  1673. </div>
  1674. </div>
  1675. <div class="table-list-content" v-show="reslistitem.result.jqClaims">
  1676. <div class="flex-1">交强出险次数:</div>
  1677. <div class="flex-1">{{ reslistitem.result.jqClaims ? reslistitem.result.jqClaims : "无" }}
  1678. </div>
  1679. </div>
  1680. <div class="table-list-content" v-show="reslistitem.result.syClaims">
  1681. <div class="flex-1">商业出险次数:</div>
  1682. <div class="flex-1">{{ reslistitem.result.syClaims ? reslistitem.result.syClaims : "无" }}
  1683. </div>
  1684. </div>
  1685. <div class="table-list-content" v-if="reslistitem.namesimple == '紫金财险' &&
  1686. reslistitem.result.ubiPredictedInfoScore">
  1687. <div class="flex-1">紫金能源车(鼎然-车辆风险评分):</div>
  1688. <div class="flex-1">{{ reslistitem.result.ubiPredictedInfoScore }}</div>
  1689. </div>
  1690. <div class="table-list-content"
  1691. v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '1'">
  1692. <div class="flex-1">真单交</div>
  1693. </div>
  1694. <div class="table-list-content"
  1695. v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '0'">
  1696. <div class="flex-1">假单交</div>
  1697. </div>
  1698. <div class="table-list-content" v-if="reslistitem.namesimple == '永诚财险'">
  1699. <div class="flex-1">光博分:</div>
  1700. <div class="flex-1">{{ reslistitem.result.ilogPreUdwMess ? reslistitem.result.ilogPreUdwMess :
  1701. "无" }}</div>
  1702. </div>
  1703. <div class="table-list-content" v-if="reslistitem.namesimple == '阳光财险'">
  1704. <div class="flex-1">交商合并经营成本率:</div>
  1705. <div class="flex-1">{{ reslistitem.result.mergeCostRate ? reslistitem.result.mergeCostRate :
  1706. "无" }}</div>
  1707. </div>
  1708. <div class="table-list-content" v-else>
  1709. <div class="flex-1">评分:</div>
  1710. <div class="flex-1">{{ reslistitem.result.ilogPreUdwMess ? reslistitem.result.ilogPreUdwMess :
  1711. "无" }}</div>
  1712. </div>
  1713. </div>
  1714. </div>
  1715. <div style="flex: 1;"></div>
  1716. <div style="display: flex; align-items: center;">
  1717. <div style="flex: 1;"></div>
  1718. <div style="color: #2d4d89">
  1719. <el-tooltip class="item" effect="dark" content="上年信息" placement="top">
  1720. <i class="el-icon-chat-dot-round" @click="
  1721. open2(reslistitem.namesimple, reslistitem.lastYearMsg)
  1722. " style="
  1723. font-size: 20px;
  1724. transform: scale(0.8);
  1725. vertical-align: middle;
  1726. " :disabled="reslistitem.namesimple == '众安财险' &&
  1727. reslistitem.result.tips == '需要验车'
  1728. " v-show="reslistitem.quoteCode == '200' &&
  1729. reslistitem.lastYearMsg
  1730. "></i>
  1731. </el-tooltip>
  1732. <el-tooltip class="item" effect="dark" content="预核保信息" placement="top">
  1733. <i class="el-icon-chat-dot-round" @click="
  1734. openPredictInfo(
  1735. reslistitem.namesimple,
  1736. reslistitem.predictInfo
  1737. )
  1738. " style="
  1739. font-size: 20px;
  1740. transform: scale(0.8);
  1741. vertical-align: middle;
  1742. " v-show="reslistitem.quoteCode == '200' &&
  1743. reslistitem.predictInfo &&
  1744. reslistitem.predictInfo.length > 0 &&
  1745. reslistitem.namesimple == '中国人寿'
  1746. "></i>
  1747. </el-tooltip>
  1748. </div>
  1749. <el-button :disabled="reslistitem.namesimple == '众安财险' &&
  1750. reslistitem.result.tips == '需要验车'
  1751. " v-show="reslistitem.quoteCode == '200' &&
  1752. !('editStatus' in reslistitem.result)
  1753. " type="text" size="small" style="color: #2d4d89; font-size: 14px"
  1754. @click="hbsubmitdialog(reslistitem, reslistindex)">下单</el-button>
  1755. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
  1756. style="color: #2d4d89; font-size: 14px"
  1757. @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
  1758. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
  1759. style="font-size: 14px" @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
  1760. <el-button type="text" size="small" style="font-size: 14px"
  1761. @click="Payment(reslistitem.result.companyId, reslistitem)" v-show="reslistitem.orderstatus == '2' &&
  1762. !('editStatus' in reslistitem.result) && reslistitem.namesimple !== '平安财险'
  1763. ">付款码</el-button>
  1764. <el-button type="text" size="small" style="font-size: 14px"
  1765. @click="signature(reslistitem.result.companyId)" v-show="reslistitem.orderstatus == '2' &&
  1766. !('editStatus' in reslistitem.result) && reslistitem.namesimple == '平安财险'
  1767. ">生成签章</el-button>
  1768. <el-button v-if="vehicleInspectionUrl" type="text" size="small" style="font-size: 14px"
  1769. @click="validateCarCode">验车二维码</el-button>
  1770. </div>
  1771. </div>
  1772. <!-- <div style="line-height: 25px">
  1773. 保险期限:
  1774. <span v-show="reslistitem.result.startDateJq">
  1775. 【交强险】
  1776. <span>
  1777. {{ reslistitem.result.startDateJq }} -
  1778. {{ reslistitem.result.endDateJq }}
  1779. </span>
  1780. <br />
  1781. </span>
  1782. <span v-show="reslistitem.result.startDateSy">
  1783. 【商业险】
  1784. <span>
  1785. {{ reslistitem.result.startDateSy }} -
  1786. {{ reslistitem.result.endDateSy }}
  1787. </span>
  1788. <br />
  1789. </span>
  1790. <span @click="syncData(reslistitem.result)">
  1791. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  1792. <i style="color: red" class="el-icon-time"></i>
  1793. </el-tooltip>
  1794. </span>
  1795. <div>
  1796. <span v-show="reslistitem.result.JqExportFee">
  1797. 交强出口费用<span>{{
  1798. reslistitem.result.JqExportFee
  1799. }}</span>
  1800. <br />
  1801. </span>
  1802. <span v-show="reslistitem.result.syExportFee">
  1803. 商业出口费用<span>{{
  1804. reslistitem.result.syExportFee
  1805. }}</span>
  1806. <br />
  1807. </span>
  1808. <span v-show="reslistitem.result.noExportFee">
  1809. 非车出口费用<span>
  1810. {{ reslistitem.result.noExportFee }}</span>
  1811. </span>
  1812. <br />
  1813. </div>
  1814. <div>
  1815. <span v-if="reslistitem.result.jqScore" class="marginL">
  1816. 交强类型评分:
  1817. <span>{{ reslistitem.result.jqScore }}</span>
  1818. <br />
  1819. </span>
  1820. <span v-if="reslistitem.result.syScore" class="marginL">
  1821. 商业类型评分:
  1822. <span>{{ reslistitem.result.syScore }}</span>
  1823. <br />
  1824. </span>
  1825. <span v-if="reslistitem.result.lossRation" class="marginL">
  1826. 总赔付率:
  1827. <span>{{ reslistitem.result.lossRation }}</span>
  1828. <br />
  1829. </span>
  1830. <span v-if="reslistitem.result.jqLossRation" class="marginL">
  1831. 交强赔付率:
  1832. <span>{{ reslistitem.result.jqLossRation }}</span>
  1833. <br />
  1834. </span>
  1835. <span v-if="reslistitem.result.syLossRation" class="marginL">
  1836. 商业赔付率:
  1837. <span>{{ reslistitem.result.syLossRation }}</span>
  1838. <br />
  1839. </span>
  1840. <span v-if="reslistitem.result.totalAdjustRate" class="marginL">
  1841. 自主定价系数:
  1842. <span>{{ reslistitem.result.totalAdjustRate }}</span>
  1843. <br />
  1844. </span>
  1845. <span v-if="reslistitem.result.jgAdjustRate" class="marginL">
  1846. 交强折扣系数:
  1847. <span>{{ reslistitem.result.jgAdjustRate }}</span>
  1848. <br />
  1849. </span>
  1850. <span v-if="reslistitem.result.syAdjustRate" class="marginL">
  1851. 商业折扣系数:
  1852. <span>{{ reslistitem.result.syAdjustRate }}</span>
  1853. <br />
  1854. </span>
  1855. <span v-if="reslistitem.result.jqRenewal" class="marginL">
  1856. 交强续保:
  1857. <span>
  1858. {{
  1859. reslistitem.result.jqRenewal
  1860. ? reslistitem.result.jqRenewal
  1861. : "无"
  1862. }}
  1863. </span>
  1864. <br />
  1865. </span>
  1866. <span v-if="reslistitem.result.syRenewal" class="marginL">
  1867. 商业续保:
  1868. <span>
  1869. {{
  1870. reslistitem.result.syRenewal
  1871. ? reslistitem.result.syRenewal
  1872. : "无"
  1873. }}
  1874. </span>
  1875. <br />
  1876. </span>
  1877. <span v-if="reslistitem.result.jqClaims" class="marginL">
  1878. 交强出险次数:
  1879. <span>
  1880. {{
  1881. reslistitem.result.jqClaims
  1882. ? reslistitem.result.jqClaims
  1883. : "无"
  1884. }}
  1885. </span>
  1886. <br />
  1887. </span>
  1888. <span v-if="reslistitem.result.syClaims" class="marginL">
  1889. 商业出险次数:
  1890. <span>
  1891. {{
  1892. reslistitem.result.syClaims
  1893. ? reslistitem.result.syClaims
  1894. : "无"
  1895. }}
  1896. </span>
  1897. <br />
  1898. </span>
  1899. <span v-if="reslistitem.namesimple == '紫金财险' &&
  1900. reslistitem.result.ubiPredictedInfoScore
  1901. " class="marginL">
  1902. 紫金能源车(鼎然-车辆风险评分):
  1903. <span>{{ reslistitem.result.ubiPredictedInfoScore }}</span>
  1904. <br />
  1905. </span>
  1906. <span v-if="reslistitem.result.iszdj &&
  1907. reslistitem.result.iszdj == '1'
  1908. ">真单交</span>
  1909. <span v-if="reslistitem.result.iszdj &&
  1910. reslistitem.result.iszdj == '0'
  1911. ">假单交</span>
  1912. <span v-if="reslistitem.namesimple == '永诚财险'">
  1913. 光博分:
  1914. <span>
  1915. {{
  1916. reslistitem.result.ilogPreUdwMess
  1917. ? reslistitem.result.ilogPreUdwMess
  1918. : "无"
  1919. }}
  1920. </span>
  1921. <br />
  1922. </span>
  1923. <span v-else>
  1924. 评分:
  1925. <span>
  1926. {{
  1927. reslistitem.result.ilogPreUdwMess
  1928. ? reslistitem.result.ilogPreUdwMess
  1929. : "无"
  1930. }}
  1931. </span>
  1932. <br />
  1933. </span>
  1934. </div>
  1935. </div> -->
  1936. </el-col>
  1937. <!-- <el-col :gutter="20" :span="24" class="company-checked-left">
  1938. <div class="company-checked-card" v-if="reslistitem.programme">
  1939. <div>
  1940. <div class="checked-card-title">险种</div>
  1941. <div class="checked-card-content">
  1942. <span class="blue-style" v-show="reslistitem.programme.description">{{ reslistitem.programme.description }}</span>
  1943. <span v-show="reslistitem.checkedProgramme == 99" class="blue-button" @click="showTypeDialog(reslistitem, reslistindex)">调整险种</span>
  1944. </div>
  1945. </div>
  1946. <div>
  1947. <div class="checked-card-title">主险</div>
  1948. <div class="checked-card-content" v-if="reslistitem.programme.kinds">
  1949. <span class="blue-text" v-for="(kinds, kindIndex) in reslistitem.programme.kinds.main" :key="kindIndex">{{ kinds.alias || kinds.kindName }} {{ toWan(kinds.amount) }}</span>
  1950. <span style="color: rgba(51,51,51,0.65);" v-if="reslistitem.programme.kinds.main.length == 0">暂无</span>
  1951. </div>
  1952. </div>
  1953. <div>
  1954. <div class="checked-card-title">附加险</div>
  1955. <div class="checked-card-content" v-if="reslistitem.programme.kinds">
  1956. <span v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">{{ kinds.alias || kinds.kindName }} {{ toWan(kinds.amount) }}</span>
  1957. <span style="color: rgba(51,51,51,0.65);" v-if="reslistitem.programme.kinds.additional.length == 0">暂无</span>
  1958. </div>
  1959. </div>
  1960. <div>
  1961. <div class="checked-card-title">驾意险</div>
  1962. <div class="checked-card-content" v-if="reslistitem.programme.kinds">
  1963. <div v-for="(driving, drivingIndex) in reslistitem.programme.drivingList" :key="drivingIndex" style="margin-bottom: 10px;">
  1964. <span style="margin-right: 0;" v-if="reslistitem.cnName == 'guoRen' || reslistitem.cnName == 'ansheng'">{{ driving.select }}</span>
  1965. <span>{{ driving.alias || driving.projectName }} {{ driving.quantity }}份 ¥{{ Number(driving.sumPremium) * driving.quantity }}</span>
  1966. <span v-show="reslistitem.checkedProgramme == 99"><i class="el-icon-delete" @click="deleteJiaYi(reslistindex, drivingIndex)"></i></span>
  1967. <span class="blue-button" @click="showDetailJiaYi(reslistindex, driving)">查看详情</span>
  1968. <span class="blue-button" @click="addJiaYi(reslistitem)" v-show="drivingIndex == 0 && reslistitem.checkedProgramme == 99">+驾意险</span>
  1969. </div>
  1970. <span class="blue-button" @click="addJiaYi(reslistitem)" v-show="!reslistitem.programme.drivingList.length && reslistitem.checkedProgramme == 99">+驾意险</span>
  1971. </div>
  1972. </div>
  1973. <div style="margin-top: -10px;">
  1974. <div class="checked-card-title">服务</div>
  1975. <div class="checked-card-content" v-if="reslistitem.programme.kinds">
  1976. <span v-for="(kinds, kindIndex) in reslistitem.programme.kinds.service" :key="kindIndex">{{ kinds.alias || kinds.kindName }} {{ toWan(kinds.amount, 'fw') }}</span>
  1977. <span style="color: rgba(51,51,51,0.65);" v-if="reslistitem.programme.kinds.service.length == 0">暂无</span>
  1978. </div>
  1979. </div>
  1980. <div>
  1981. <div class="checked-card-title">其他</div>
  1982. <div class="checked-card-content" v-show="reslistitem.checkedProgramme == 99 && reslistitem.cnName == 'guoRen'">
  1983. <div v-if="reslistitem.programme">
  1984. <div v-for="(teyueitem, teyueindex) in reslistitem.programme.teyue" :key="teyueindex">{{ teyueitem.clauseName }}</div>
  1985. <span style="color: #F96646;" @click="contributingGuoRen(reslistitem.agreementId, reslistindex)">选择特约</span>
  1986. </div>
  1987. </div>
  1988. <el-col :span="20" v-show="reslistitem.cnName == 'zijin'">
  1989. <div v-show="reslistitem.cnName == 'zijin'">自定义系数:
  1990. <el-input v-model="reslistitem.coefficient" size="mini" class="coefficient" placeholder="请输入"></el-input>
  1991. </div>
  1992. </el-col>
  1993. </div>
  1994. </div>
  1995. </el-col> -->
  1996. </el-row>
  1997. </div>
  1998. <!--
  1999. <div class="flex j-s offer-time" v-if="reslistitem.quoteCode == '200'">
  2000. <div style="line-height: 25px">
  2001. 保险期限:
  2002. <span v-show="reslistitem.result.startDateJq">
  2003. 【交强险】
  2004. <span>
  2005. {{ reslistitem.result.startDateJq }} -
  2006. {{ reslistitem.result.endDateJq }}
  2007. </span>
  2008. </span>
  2009. <span v-show="reslistitem.result.startDateSy" style="margin-left: 20px">
  2010. 【商业险】
  2011. <span>
  2012. {{ reslistitem.result.startDateSy }} -
  2013. {{ reslistitem.result.endDateSy }}
  2014. </span>
  2015. </span>
  2016. <span @click="syncData(reslistitem.result)">
  2017. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  2018. <i style="color: red" class="el-icon-time"></i>
  2019. </el-tooltip>
  2020. </span>
  2021. <div>
  2022. <span v-show="reslistitem.result.JqExportFee">
  2023. 交强出口费用<span>{{
  2024. reslistitem.result.JqExportFee
  2025. }}</span>
  2026. </span>
  2027. <span v-show="reslistitem.result.syExportFee">
  2028. 商业出口费用<span>{{
  2029. reslistitem.result.syExportFee
  2030. }}</span>
  2031. </span>
  2032. <span v-show="reslistitem.result.noExportFee">
  2033. 非车出口费用<span>
  2034. {{ reslistitem.result.noExportFee }}</span>
  2035. </span>
  2036. </div>
  2037. <div>
  2038. <span v-if="reslistitem.namesimple == '永诚财险'">
  2039. 光博分:
  2040. <span>
  2041. {{
  2042. reslistitem.result.ilogPreUdwMess
  2043. ? reslistitem.result.ilogPreUdwMess
  2044. : "无"
  2045. }}
  2046. </span>
  2047. </span>
  2048. <span v-else>
  2049. 评分:
  2050. <span>
  2051. {{
  2052. reslistitem.result.ilogPreUdwMess
  2053. ? reslistitem.result.ilogPreUdwMess
  2054. : "无"
  2055. }}
  2056. </span>
  2057. </span>
  2058. <span v-if="reslistitem.result.jqScore" class="marginL">
  2059. 交强类型评分:
  2060. <span>{{ reslistitem.result.jqScore }}</span>
  2061. </span>
  2062. <span v-if="reslistitem.result.syScore" class="marginL">
  2063. 商业类型评分:
  2064. <span>{{ reslistitem.result.syScore }}</span>
  2065. </span>
  2066. <span v-if="reslistitem.result.lossRation" class="marginL">
  2067. 总赔付率:
  2068. <span>{{ reslistitem.result.lossRation }}</span>
  2069. </span>
  2070. <span v-if="reslistitem.result.jqLossRation" class="marginL">
  2071. 交强赔付率:
  2072. <span>{{ reslistitem.result.jqLossRation }}</span>
  2073. </span>
  2074. <span v-if="reslistitem.result.syLossRation" class="marginL">
  2075. 商业赔付率:
  2076. <span>{{ reslistitem.result.syLossRation }}</span>
  2077. </span>
  2078. <span v-if="reslistitem.result.totalAdjustRate" class="marginL">
  2079. 自主定价系数:
  2080. <span>{{ reslistitem.result.totalAdjustRate }}</span>
  2081. </span>
  2082. <span v-if="reslistitem.result.jgAdjustRate" class="marginL">
  2083. 交强折扣系数:
  2084. <span>{{ reslistitem.result.jgAdjustRate }}</span>
  2085. </span>
  2086. <span v-if="reslistitem.result.syAdjustRate" class="marginL">
  2087. 商业折扣系数:
  2088. <span>{{ reslistitem.result.syAdjustRate }}</span>
  2089. </span>
  2090. <span v-if="reslistitem.result.jqRenewal" class="marginL">
  2091. 交强续保:
  2092. <span>
  2093. {{
  2094. reslistitem.result.jqRenewal
  2095. ? reslistitem.result.jqRenewal
  2096. : "无"
  2097. }}
  2098. </span>
  2099. </span>
  2100. <span v-if="reslistitem.result.syRenewal" class="marginL">
  2101. 商业续保:
  2102. <span>
  2103. {{
  2104. reslistitem.result.syRenewal
  2105. ? reslistitem.result.syRenewal
  2106. : "无"
  2107. }}
  2108. </span>
  2109. </span>
  2110. <span v-if="reslistitem.result.jqClaims" class="marginL">
  2111. 交强出险次数:
  2112. <span>
  2113. {{
  2114. reslistitem.result.jqClaims
  2115. ? reslistitem.result.jqClaims
  2116. : "无"
  2117. }}
  2118. </span>
  2119. </span>
  2120. <span v-if="reslistitem.result.syClaims" class="marginL">
  2121. 商业出险次数:
  2122. <span>
  2123. {{
  2124. reslistitem.result.syClaims
  2125. ? reslistitem.result.syClaims
  2126. : "无"
  2127. }}
  2128. </span>
  2129. </span>
  2130. <span v-if="reslistitem.namesimple == '紫金财险' &&
  2131. reslistitem.result.ubiPredictedInfoScore
  2132. " class="marginL">
  2133. 紫金能源车(鼎然-车辆风险评分):
  2134. <span>{{ reslistitem.result.ubiPredictedInfoScore }}</span>
  2135. </span>
  2136. <span v-if="reslistitem.result.iszdj &&
  2137. reslistitem.result.iszdj == '1'
  2138. ">真单交</span>
  2139. <span v-if="reslistitem.result.iszdj &&
  2140. reslistitem.result.iszdj == '0'
  2141. ">假单交</span>
  2142. </div>
  2143. </div>
  2144. <div style="text-align: right">
  2145. <div style="color: #2d4d89">
  2146. <el-tooltip class="item" effect="dark" content="上年信息" placement="top">
  2147. <i class="el-icon-chat-dot-round" @click="
  2148. open2(reslistitem.namesimple, reslistitem.lastYearMsg)
  2149. " style="
  2150. font-size: 20px;
  2151. transform: scale(0.8);
  2152. vertical-align: middle;
  2153. " :disabled="reslistitem.namesimple == '众安财险' &&
  2154. reslistitem.result.tips == '需要验车'
  2155. " v-show="reslistitem.quoteCode == '200' &&
  2156. reslistitem.lastYearMsg
  2157. "></i>
  2158. </el-tooltip>
  2159. <el-tooltip class="item" effect="dark" content="预核保信息" placement="top">
  2160. <i class="el-icon-chat-dot-round" @click="
  2161. openPredictInfo(
  2162. reslistitem.namesimple,
  2163. reslistitem.predictInfo
  2164. )
  2165. " style="
  2166. font-size: 20px;
  2167. transform: scale(0.8);
  2168. vertical-align: middle;
  2169. " v-show="reslistitem.quoteCode == '200' &&
  2170. reslistitem.predictInfo &&
  2171. reslistitem.predictInfo.length > 0 &&
  2172. reslistitem.namesimple == '中国人寿'
  2173. "></i>
  2174. </el-tooltip>
  2175. <el-button :disabled="reslistitem.namesimple == '众安财险' &&
  2176. reslistitem.result.tips == '需要验车'
  2177. " v-show="reslistitem.quoteCode == '200' &&
  2178. !('editStatus' in reslistitem.result)
  2179. " type="text" size="small" style="color: #2d4d89; font-size: 14px"
  2180. @click="hbsubmitdialog(reslistitem)">下单</el-button>
  2181. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
  2182. style="color: #2d4d89; font-size: 14px"
  2183. @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
  2184. </div>
  2185. <div>
  2186. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small" style="font-size: 14px"
  2187. @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
  2188. <el-button type="text" size="small" style="font-size: 14px"
  2189. @click="Payment(reslistitem.result.companyId, reslistitem)" v-show="reslistitem.orderstatus == '2' &&
  2190. !('editStatus' in reslistitem.result) && reslistitem.namesimple !== '平安财险'
  2191. ">付款码</el-button>
  2192. <el-button type="text" size="small" style="font-size: 14px"
  2193. @click="signature(reslistitem.result.companyId)" v-show="reslistitem.orderstatus == '2' &&
  2194. !('editStatus' in reslistitem.result) && reslistitem.namesimple == '平安财险'
  2195. ">生成签章</el-button>
  2196. </div>
  2197. </div>
  2198. </div>
  2199. <template>
  2200. <span v-if="reslistitem.checked &&
  2201. reslistitem.agreementId &&
  2202. reslistitem.underwritingDescription
  2203. " style="margin: 20px 20px 0 100px; display: inline-block">{{ reslistitem.underwritingDescription}}</span>
  2204. </template>
  2205. <template v-if="reslistitem.namesimple == '平安财险' &&
  2206. reslistitem.checked &&
  2207. reslistitem.agreementId
  2208. ">
  2209. <div class="flex f-c Driving-risk">
  2210. <div v-for="(val, index) in pinganInsuranceData" :key="index" >
  2211. <el-form :inline="true" :model="accidentFormPA[index-1]" class="demo-form-inline" size="small"
  2212. style="font-weight: bold;margin-top:15px ">
  2213. <el-form-item :label="index=='1'?'财意险':index=='2'?'小微险':'组合险'" style="margin-right: 30px">
  2214. <el-select clearable v-model="accidentFormPA[index-1].pingantemplateSelection" placeholder="未选择" @clear="clearAccidentFormPA(index-1,)"
  2215. @change="pinganInsuranceChange($event,index-1,val)">
  2216. <el-option v-for="(item, index1) in val" :key="index1" :label="item.projectName"
  2217. :value="item.projectName"></el-option>
  2218. </el-select>
  2219. </el-form-item>
  2220. <el-form-item label="选择份数" style="margin-right: 50px" v-if="index ==1||index ==2">
  2221. <el-input-number v-model="accidentFormPA[index-1].quantity" :disabled="!accidentFormPA[index-1].pinganInsurancetype" @change="numberCopieschangePA($event,index-1)" :min="1" :max="accidentFormPA[index-1].sellListSize"
  2222. controls-position="right"></el-input-number>
  2223. </el-form-item>
  2224. <el-form-item label="保费:" v-if="index ==1||index ==2">
  2225. <span>{{ accidentFormPA[index-1].premium || 0 }}&ensp;元</span>
  2226. </el-form-item>
  2227. </el-form>
  2228. <el-table class="pinganTable" style="margin-top: 20px" size="small" :data="accidentFormPA[index-1].pinganInsuranceDataTable" border
  2229. v-if="accidentFormPA[index-1].pingantemplateSelection" highlight-current-row :header-cell-style="{
  2230. background: '#F7F7F9 ',
  2231. fontWeight: '700',
  2232. color: '#333333',
  2233. }" ref="RsTable" @select="(selections,row)=>{PADrivingCheckbox(selections,row,reslistitem.agreementId,index-1)}">
  2234. <el-table-column align="center" width="55" label="选择" v-if="index ==1||index ==2">
  2235. <template slot-scope="scope">
  2236. <el-radio class="radio" v-model="accidentFormPA[index-1].pinganInsurancetype" :label="scope.row.code"
  2237. @click.native.stop.prevent="PADrivingRadio(scope.row,reslistitem.agreementId,index-1)">&nbsp;</el-radio>
  2238. </template>
  2239. </el-table-column>
  2240. <el-table-column type="selection" v-else width="55">
  2241. </el-table-column>
  2242. <el-table-column prop="name" label="方案名称" align="center"></el-table-column>
  2243. <el-table-column prop="code" label="方案代码" align="center"></el-table-column>
  2244. <el-table-column prop="premium" label="保费 (元)/每份" align="center">
  2245. </el-table-column>
  2246. <el-table-column prop="quantity" label="份数" align="center" v-if="index ==3">
  2247. <template slot-scope="scope">
  2248. <el-input-number size='small' v-model="scope.row.quantity" :min="1" :max="Number(scope.row.sellListSize)"
  2249. controls-position="right"></el-input-number>
  2250. </template>
  2251. </el-table-column>
  2252. <el-table-column label="操作" width="100">
  2253. <template slot-scope="scope">
  2254. <el-button type="text" size="small" @click="pinganDetail(scope.row,reslistitem.agreementId)">查看</el-button>
  2255. </template>
  2256. </el-table-column>
  2257. </el-table>
  2258. </div>
  2259. </div>
  2260. </template>
  2261. <template v-if="reslistitem.namesimple == '泰康财险' &&
  2262. reslistitem.checked &&
  2263. reslistitem.agreementId &&
  2264. isLetter !== '3'
  2265. ">
  2266. <div class="flex f-c Driving-risk">
  2267. <el-form :inline="true" :model="accidentFormTk" class="demo-form-inline" size="small"
  2268. style="font-weight: bold; margin-top: 15px">
  2269. <el-form-item label="意外险类型" style="margin-right: 30px">
  2270. <el-select clearable v-model="taikangtemplateSelection" placeholder="未选择" @clear="clearAccidentFormTk"
  2271. @change="taikangInsuranceChange">
  2272. <el-option v-for="(item, index) in taikangaccidentDataList" :key="index" :label="item.projectName"
  2273. :value="item.projectCode"></el-option>
  2274. </el-select>
  2275. </el-form-item>
  2276. <el-form-item label="选择份数" style="margin-right: 50px">
  2277. <el-input-number v-model="accidentFormTk.quantity" @change="numberCopieschangeTk" :min="1"
  2278. controls-position="right"></el-input-number>
  2279. </el-form-item>
  2280. <el-form-item label="保费:">
  2281. <span>{{ accidentFormTk.sumPremium }}&ensp;元</span>
  2282. </el-form-item>
  2283. </el-form>
  2284. <el-table v-if="taikangtemplateSelection" size="small" :data="taikangInsuranceDataTable" border
  2285. ref="expandTable" highlight-current-row :header-cell-style="{
  2286. background: '#F7F7F9',
  2287. fontWeight: '700',
  2288. color: '#333333',
  2289. }">
  2290. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  2291. <el-table-column prop="amount" label="每座保额 (元)/每份" align="center"></el-table-column>
  2292. <el-table-column prop="sumAmount" label="每车保额 (元)/每份" align="center"></el-table-column>
  2293. <el-table-column prop="premium" label="责任保费 (元)/每份" align="center"></el-table-column>
  2294. </el-table>
  2295. </div>
  2296. </template>
  2297. <template v-if="reslistitem.namesimple == '恒邦财险' &&
  2298. reslistitem.checked &&
  2299. reslistitem.agreementId &&
  2300. isLetter !== '3'
  2301. ">
  2302. <div class="flex f-c Driving-risk">
  2303. <div class="dis a-c" style="margin: 15px 0">
  2304. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2305. <el-select style="width: 250px; margin-right: 60px" filterable size="small" clearable
  2306. v-model="hengbangtemplateSelection" placeholder="未选择" @clear="clearAccidentFormHB"
  2307. @change="hengbangInsuranceChange">
  2308. <el-option v-for="(item, index) in hengbangInsuranceData" :key="index" :label="item.projectName"
  2309. :value="item.projectCode"></el-option>
  2310. </el-select>
  2311. 保费:
  2312. <b>{{
  2313. hengbangaccidentalDrivingVo.sumPremium || 0
  2314. }}&ensp;元</b>
  2315. </div>
  2316. <el-table size="small" :data="hengbangInsuranceDataTable" border v-if="hengbangtemplateSelection"
  2317. ref="RsTable" highlight-current-row :header-cell-style="{
  2318. background: '#F7F7F9 ',
  2319. fontWeight: '700',
  2320. color: '#333333',
  2321. }">
  2322. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  2323. <el-table-column prop="amount" label="保额" align="center"></el-table-column>
  2324. </el-table>
  2325. </div>
  2326. </template>
  2327. <template v-if="reslistitem.namesimple == '华农财险' &&
  2328. reslistitem.checked &&
  2329. reslistitem.agreementId &&
  2330. isLetter !== '3'
  2331. ">
  2332. <div class="flex f-c Driving-risk">
  2333. <el-form :inline="true" :model="accidentFormHN" class="demo-form-inline"
  2334. style="font-weight: bold; margin-top: 15px" size="small">
  2335. <el-form-item label="意外险类型:" style="margin-right: 30px">
  2336. <el-select clearable v-model="accidentFormHN.accidentType" placeholder="未选择"
  2337. @clear="clearAccidentFormHN" @change="huanongInsuranceChange">
  2338. <el-option v-for="(item, index) in huanongInsuranceData" :key="index" :label="item.projectName"
  2339. :value="item.projectCode"></el-option>
  2340. </el-select>
  2341. </el-form-item>
  2342. <el-form-item label="选择份数" style="margin-right: 30px">
  2343. <el-input-number v-model="accidentFormHN.quantity" :min="1"
  2344. controls-position="right"></el-input-number>
  2345. </el-form-item>
  2346. </el-form>
  2347. <el-table v-if="accidentFormHN.accidentType" size="small" :data="huanongInsuranceDataTable" border
  2348. ref="expandTable" highlight-current-row :header-cell-style="{
  2349. background: '#F7F7F9 ',
  2350. fontWeight: '700',
  2351. color: '#333333',
  2352. }">
  2353. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  2354. <el-table-column prop="amount" label="保额" align="center">
  2355. <template slot-scope="scope">
  2356. <el-input v-model="scope.row.amount" placeholder="请输入内容" size="small" disabled></el-input>
  2357. </template>
  2358. </el-table-column>
  2359. </el-table>
  2360. </div>
  2361. </template>
  2362. <template v-if="reslistitem.namesimple == '太平财险' &&
  2363. reslistitem.checked &&
  2364. reslistitem.agreementId &&
  2365. isLetter !== '3'
  2366. ">
  2367. <div class="flex f-c Driving-risk">
  2368. <div class="dis a-c" style="margin: 15px 0">
  2369. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2370. <el-select style="width: 250px; margin-right: 60px" filterable size="small" clearable
  2371. v-model="taipingtemplateSelection" placeholder="未选择" @clear="clearAccidentFormTP"
  2372. @change="taipingInsuranceChange">
  2373. <el-option v-for="(item, index) in taipingInsuranceData" :key="index" :label="item.projectName"
  2374. :value="item.projectCode"></el-option>
  2375. </el-select>
  2376. 每份价税合计:
  2377. <b>{{ taipingaccidentalDrivingVo.sumPremium || 0 }}&ensp;元</b>
  2378. </div>
  2379. <el-table size="small" :data="taipingInsuranceDataTable" border v-if="taipingtemplateSelection"
  2380. ref="RsTable" highlight-current-row :header-cell-style="{
  2381. background: '#F7F7F9 ',
  2382. fontWeight: '700',
  2383. color: '#333333',
  2384. }">
  2385. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  2386. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  2387. </el-table>
  2388. </div>
  2389. </template>
  2390. <template v-if="reslistitem.namesimple == '安盛天平' &&
  2391. reslistitem.checked &&
  2392. reslistitem.agreementId &&
  2393. isLetter !== '3'
  2394. ">
  2395. <div class="flex f-c Driving-risk">
  2396. <div class="dis a-c" style="margin-top: 15px">
  2397. <span style="margin-right: 15px; font-weight: bold">意外险类型</span>
  2398. <el-select style="width: 250px" size="small" clearable v-model="anshengtemplateSelection"
  2399. placeholder="未选择" @clear="clearAccidentFormAS" @change="anshengInsuranceChange">
  2400. <el-option v-for="(item, index) in anshengInsuranceData" :key="index"
  2401. :label="item.projectCode + ' ' + item.projectName" :value="item.projectCode"></el-option>
  2402. </el-select>
  2403. </div>
  2404. <el-table style="margin-top: 20px" size="small" :data="anshengInsuranceDataTable" border
  2405. v-if="anshengtemplateSelection" ref="RsTable" highlight-current-row :header-cell-style="{
  2406. background: '#F7F7F9 ',
  2407. fontWeight: '700',
  2408. color: '#333333',
  2409. }">
  2410. <el-table-column align="center" width="55" label="选择">
  2411. <template slot-scope="scope">
  2412. <el-radio class="radio" v-model="anshengInsurancetype" :label="scope.row.projectCode"
  2413. @click.native.stop.prevent="ASDrivingRadio(scope.row)">&nbsp;</el-radio>
  2414. </template>
  2415. </el-table-column>
  2416. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  2417. <el-table-column prop="projectCode" label="方案代码" align="center"></el-table-column>
  2418. <el-table-column prop="quantity" label="份数" align="center">
  2419. </el-table-column>
  2420. </el-table>
  2421. </div>
  2422. </template>
  2423. <template v-if="reslistitem.namesimple == '中国人寿' &&
  2424. reslistitem.checked &&
  2425. reslistitem.agreementId &&
  2426. isLetter !== '3'
  2427. ">
  2428. <div style="margin: 15px 0 15px 100px">
  2429. <span>商业险折扣:</span>
  2430. <el-input style="width: 220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount"
  2431. placeholder="请输入内容" @input="
  2432. reslistitem.discount = reslistitem.discount.replace(
  2433. /[^\d.]/g,
  2434. ''
  2435. )
  2436. "></el-input>
  2437. </div>
  2438. <div class="flex f-c Driving-risk">
  2439. <div class="dis a-c">
  2440. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2441. <el-select style="width: 250px" filterable size="small" clearable v-model="renshoutemplateSelection"
  2442. placeholder="未选择" @clear="clearAccidentFormRS" @change="renshouInsuranceChange">
  2443. <el-option v-for="(item, index) in renshouInsuranceData" :key="index" :label="item.projectName"
  2444. :value="item.projectCode"></el-option>
  2445. </el-select>
  2446. </div>
  2447. <el-table size="small" style="margin-top: 20px" :data="renshouInsuranceDataTable" border
  2448. v-if="renshoutemplateSelection" @row-click="RSDrivingChange" ref="RsTable" highlight-current-row
  2449. :header-cell-style="{
  2450. background: '#F7F7F9 ',
  2451. fontWeight: '700',
  2452. color: '#333333',
  2453. }">
  2454. <el-table-column prop="name" label="方案名称" align="center"></el-table-column>
  2455. <el-table-column prop="premium" label="保费 (元)起" align="center">
  2456. <template slot-scope="scope">
  2457. <span>¥{{ scope.row.premium }}</span>
  2458. </template>
  2459. </el-table-column>
  2460. <el-table-column label="份数" align="center">
  2461. <template slot-scope="scope">
  2462. <span>{{ scope.row.quantity }}</span>
  2463. </template>
  2464. </el-table-column>
  2465. </el-table>
  2466. </div>
  2467. </template>
  2468. <template v-if="reslistitem.namesimple == '众安财险' &&
  2469. reslistitem.checked &&
  2470. reslistitem.agreementId &&
  2471. isLetter !== '3'
  2472. ">
  2473. <div class="flex f-c Driving-risk">
  2474. <div class="dis a-c" style="margin: 15px 0">
  2475. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2476. <el-select style="width: 250px" filterable size="small" clearable v-model="zhongantemplateSelection"
  2477. placeholder="未选择" @clear="clearAccidentFormZA" @change="zhonganInsuranceChange">
  2478. <el-option v-for="(item, index) in zhonganInsuranceData" :key="index" :label="item.projectName"
  2479. :value="item.projectCode"></el-option>
  2480. </el-select>
  2481. </div>
  2482. <el-table size="small" :data="zhonganInsuranceDataTable" border v-if="zhongantemplateSelection"
  2483. @row-click="ZADrivingChange" ref="RsTable" highlight-current-row :header-cell-style="{
  2484. background: '#F7F7F9 ',
  2485. fontWeight: '700',
  2486. color: '#333333',
  2487. }">
  2488. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  2489. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  2490. </el-table>
  2491. </div>
  2492. </template>
  2493. <template v-if="reslistitem.namesimple == '紫金财险' &&
  2494. reslistitem.checked &&
  2495. reslistitem.agreementId &&
  2496. isLetter !== '3'
  2497. ">
  2498. <div style="margin: 15px 0 15px 100px">
  2499. <span>自主定价系数:</span>
  2500. <el-input style="width: 220px" size="small" v-model="reslistitem.coefficient"
  2501. placeholder="请输入内容"></el-input>
  2502. </div>
  2503. <div class="flex f-c Driving-risk">
  2504. <div class="dis a-c" style="margin-bottom: 15px">
  2505. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2506. <el-select style="width: 250px" filterable multiple size="small" clearable
  2507. v-model="zijintemplateSelection" placeholder="未选择" @clear="clearAccidentFormZJ"
  2508. @change="zijinInsuranceChange">
  2509. <el-option v-for="(item, index) in ziJinInsuranceData" :key="index" :label="item.projectName"
  2510. :value="item.projectCode"></el-option>
  2511. </el-select>
  2512. </div>
  2513. <el-table size="small" :data="zijinInsuranceDataTable" border v-if="zijintemplateSelection"
  2514. @select="CheckboxChange" filterable ref="expandTable" highlight-current-row :header-cell-style="{
  2515. background: '#F7F7F9 ',
  2516. fontWeight: '700',
  2517. color: '#333333',
  2518. }">
  2519. <el-table-column type="selection" width="55"></el-table-column>
  2520. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  2521. <el-table-column prop="sumAmount" label="总保额 (元)/每份" align="center"></el-table-column>
  2522. <el-table-column prop="sumPremium" label="保费 (元)/每份" align="center">
  2523. <template slot-scope="scope">
  2524. <span>¥{{ scope.row.sumPremium }}</span>
  2525. </template>
  2526. </el-table-column>
  2527. <el-table-column prop="quantity" label="份数" align="center">
  2528. <template slot-scope="scope">
  2529. <el-input-number v-model="scope.row.quantity" :min="1" size="small"
  2530. controls-position="right"></el-input-number>
  2531. </template>
  2532. </el-table-column>
  2533. <el-table-column prop="Totalprice" label="总保费 (元)" align="center">
  2534. <template slot-scope="scope">
  2535. <span v-if="scope.row.quantity">{{
  2536. scope.row.sumPremium * scope.row.quantity
  2537. }}</span>
  2538. <span v-else>{{ scope.row.sumPremium }}</span>
  2539. </template>
  2540. </el-table-column>
  2541. </el-table>
  2542. </div>
  2543. </template>
  2544. <template v-if="reslistitem.namesimple == '永诚财险' &&
  2545. reslistitem.checked &&
  2546. reslistitem.agreementId &&
  2547. isLetter !== '3'
  2548. ">
  2549. <div class="flex f-c Driving-risk">
  2550. <el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small"
  2551. style="font-weight: bold; margin-top: 15px">
  2552. <el-form-item label="意外险类型" style="margin-right: 30px">
  2553. <el-select clearable v-model="yongchengtemplateSelection" placeholder="未选择" @clear="clearAccidentForm"
  2554. @change="yongchengInsuranceChange">
  2555. <el-option v-for="(item, index) in yongchengaccidentDataList" :key="index" :label="item.projectName"
  2556. :value="item.projectCode"></el-option>
  2557. </el-select>
  2558. </el-form-item>
  2559. <el-form-item label="选择份数" style="margin-right: 50px">
  2560. <el-input-number v-model="accidentForm.quantity" @change="numberCopieschange" :min="1"
  2561. controls-position="right"></el-input-number>
  2562. </el-form-item>
  2563. <el-form-item label="保费:">
  2564. <span>{{ accidentForm.sumPremium }}&ensp;元</span>
  2565. </el-form-item>
  2566. </el-form>
  2567. <el-table v-if="yongchengtemplateSelection" size="small" :data="yongchengInsuranceDataTable" border
  2568. ref="expandTable" highlight-current-row :header-cell-style="{
  2569. background: '#F7F7F9',
  2570. fontWeight: '700',
  2571. color: '#333333',
  2572. }">
  2573. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  2574. <el-table-column prop="amount" label="每座保额 (元)/每份" align="center"></el-table-column>
  2575. <el-table-column prop="sumAmount" label="每车保额 (元)/每份" align="center"></el-table-column>
  2576. <el-table-column prop="premium" label="责任保费 (元)/每份" align="center"></el-table-column>
  2577. </el-table>
  2578. </div>
  2579. </template>
  2580. <template v-if="reslistitem.namesimple == '国任财险' &&
  2581. reslistitem.checked &&
  2582. reslistitem.agreementId &&
  2583. isLetter !== '3'
  2584. ">
  2585. <el-button type="text" style="margin: 10px 0 0 100px"
  2586. @click="contributingGuoRen(reslistitem.agreementId)">选择特约</el-button>
  2587. <div class="flex f-c Driving-risk">
  2588. <el-form :inline="true" :model="guoRenaccidentForm" class="demo-form-inline" size="small">
  2589. <el-form-item label="意外险类型" style="margin-right: 30px">
  2590. <el-select clearable placeholder="未选择" @clear="clearAccidentFormGr" @change="grcxchange"
  2591. v-model="guoRenaccidentForm.goodsCode">
  2592. <el-option v-for="(item, index) in guoRenaccidentDataList" :key="index" :label="item.projectName"
  2593. :value="item.projectCode"></el-option>
  2594. </el-select>
  2595. </el-form-item>
  2596. <el-form-item label=" ">
  2597. <el-select clearable v-model="guoRenaccidentForm.prodCode" @change="grcxchangeChild">
  2598. <el-option v-for="(item) in guoRenaccidentDataListChild" :key="item.projectCode"
  2599. :label="item.projectName" :value="item.projectCode"></el-option>
  2600. </el-select>
  2601. </el-form-item>
  2602. <el-form-item label="选择份数" style="margin-right: 30px">
  2603. <el-input-number v-model="guoRenaccidentForm.quantity" :min="1" controls-position="right"
  2604. @change="numberCopieschangeGR"></el-input-number>
  2605. </el-form-item>
  2606. <el-form-item label="保费:">
  2607. <span>{{ guoRenaccidentForm.sumPremium }}&ensp;元</span>
  2608. </el-form-item>
  2609. </el-form>
  2610. <el-table v-if="guoRenaccidentForm.prodCode" size="small" :data="guoRenInsuranceDataTable" border
  2611. ref="expandTable" highlight-current-row :header-cell-style="{
  2612. background: '#F7F7F9 ',
  2613. fontWeight: '700',
  2614. color: '#333333',
  2615. }">
  2616. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  2617. <el-table-column prop="amount" label="保额 (元)" align="center"></el-table-column>
  2618. <el-table-column prop="premium" label="保费 (元)" align="center">
  2619. <template slot-scope="scope">¥{{ scope.row.premium }}</template>
  2620. </el-table-column>
  2621. </el-table>
  2622. </div>
  2623. </template>
  2624. <template v-if="reslistitem.namesimple == '中煤财险' &&
  2625. reslistitem.checked &&
  2626. reslistitem.agreementId &&
  2627. isLetter !== '3'
  2628. ">
  2629. <div class="flex f-c Driving-risk accident-style zmDriving">
  2630. <el-form :inline="true" :model="accidentFormZM" class="demo-form-inline" size="small"
  2631. style="font-weight: bold; margin-top: 15px">
  2632. <el-form-item label="意外险类型" style="margin-right: 30px">
  2633. <el-select style="width: 250px" size="small" clearable v-model="zhongmeitemplateSelection"
  2634. placeholder="未选择" @clear="numberCopieschangeZM" @change="zhongmeiInsuranceChange">
  2635. <el-option v-for="(item, index) in zhongmeiInsuranceData" :key="index" :label="item.projectName"
  2636. :value="item.projectCode"></el-option>
  2637. </el-select>
  2638. </el-form-item>
  2639. <el-form-item label="选择份数" style="margin-right: 30px">
  2640. <el-input-number v-model="accidentFormZM.quantity" @change="numberCopieschangeZM" :min="1"
  2641. controls-position="right"></el-input-number>
  2642. </el-form-item>
  2643. <el-form-item label="保费:">
  2644. <span>{{ accidentFormZM.sumPremium }}&ensp;元</span>
  2645. </el-form-item>
  2646. </el-form>
  2647. <el-table size="small" :data="zhongmeiInsuranceDataTable" border ref="ZmMultipleTable"
  2648. v-if="zhongmeitemplateSelection" :header-cell-style="{
  2649. background: '#F7F7F9 ',
  2650. fontWeight: '700',
  2651. color: '#333333',
  2652. }">
  2653. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  2654. <el-table-column prop="amount" label="保险责任对应保额" align="center"></el-table-column>
  2655. </el-table>
  2656. </div>
  2657. </template>
  2658. <template v-if="reslistitem.namesimple == '大家财险' &&
  2659. reslistitem.checked &&
  2660. reslistitem.agreementId &&
  2661. isLetter !== '3'
  2662. ">
  2663. <div class="flex f-c Driving-risk">
  2664. <div class="dis a-c" style="margin-top: 15px">
  2665. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2666. <el-select style="width: 250px" v-if="reslistitem.apiType == 1" filterable size="small" clearable
  2667. v-model="dajiatemplateSelection" placeholder="未选择" @clear="clearAccidentFormDJ"
  2668. @change="dajiaInsuranceChange">
  2669. <el-option v-for="(item, index) in dajiaInsuranceData" :key="index" :label="item.projectName"
  2670. :value="item.projectCode"></el-option>
  2671. </el-select>
  2672. <div v-else>
  2673. <el-select size="small" style="width: 250px" clearable placeholder="未选择" @change="djcxchange"
  2674. v-model="dajiaaccidentForm.parentCode" @clear="clearAccidentFormDJ">
  2675. <el-option v-for="(item, index) in dajiaInsuranceData" :key="index" :label="item.projectName"
  2676. :value="item.projectCode"></el-option>
  2677. </el-select>
  2678. <el-select size="small" style="width: 250px" clearable v-model="dajiaaccidentForm.projectCode"
  2679. @change="djcxchangeChild">
  2680. <el-option v-for="(item) in dajiaaccidentDataListChild" :key="item.projectCode"
  2681. :label="item.projectName" :value="item.projectCode"></el-option>
  2682. </el-select>
  2683. </div>
  2684. </div>
  2685. <el-table size="small" :data="dajiaInsuranceDataTable" border ref="RsTable" highlight-current-row
  2686. :header-cell-style="{
  2687. background: '#F7F7F9 ',
  2688. fontWeight: '700',
  2689. color: '#333333',
  2690. }">
  2691. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  2692. <el-table-column prop="premium" label="保费 (元)/每份" align="center">
  2693. <template slot-scope="scope">¥{{ scope.row.premium }}</template>
  2694. </el-table-column>
  2695. </el-table>
  2696. </div>
  2697. </template>
  2698. <template v-if="reslistitem.namesimple == '渤海财险' &&
  2699. reslistitem.checked &&
  2700. reslistitem.agreementId &&
  2701. isLetter !== '3'
  2702. ">
  2703. <div class="flex f-c Driving-risk" style="margin-top: 15px">
  2704. <el-form :inline="true" :model="boHaiaccidentForm" class="demo-form-inline" size="small">
  2705. <el-form-item label="意外险类型" style="margin-right: 30px">
  2706. <el-select clearable placeholder="未选择" @clear="clearAccidentFormBh" @change="bohaiInsuranceChange"
  2707. v-model="boHaiaccidentForm.projectCode">
  2708. <el-option v-for="(item, index) in boHaiaccidentDataList" :key="index" :label="item.projectName"
  2709. :value="item.projectCode"></el-option>
  2710. </el-select>
  2711. </el-form-item>
  2712. <el-form-item label="选择份数" style="margin-right: 30px">
  2713. <el-input-number v-model="boHaiaccidentForm.copies" :min="1"
  2714. controls-position="right"></el-input-number>
  2715. </el-form-item>
  2716. <el-form-item label="保费:">
  2717. <span>{{
  2718. boHaiaccidentForm.premium * boHaiaccidentForm.copies
  2719. }}&ensp;元</span>
  2720. </el-form-item>
  2721. </el-form>
  2722. <el-table v-if="boHaiaccidentForm.projectCode" size="small" :data="bohaiInsuranceDataTable" border
  2723. ref="expandTable" highlight-current-row :header-cell-style="{
  2724. background: '#F7F7F9 ',
  2725. fontWeight: '700',
  2726. color: '#333333',
  2727. }">
  2728. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  2729. <el-table-column prop="amount" label="保额 (元)" align="center">
  2730. <template slot-scope="scope">¥{{ scope.row.amount }}</template>
  2731. </el-table-column>
  2732. </el-table>
  2733. </div>
  2734. </template> -->
  2735. </div>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. <!-- 报价历史 -->
  2740. <div class="Enclosure flex f-c" v-if="isLetter == '1'">
  2741. <div class="home flex j-s a-c back">
  2742. <div class="flex j-s a-c color">
  2743. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  2744. <span style="margin-left: 10px">报价历史</span>
  2745. <div v-if="orderno">
  2746. <el-radio-group v-model="historyRadio" style="margin-left: 30px" @input="RadioHistoryChange"
  2747. v-for="item in insOrderStatusoptions" :key="item.dictValue">
  2748. <el-radio :label="item.dictValue">{{ item.dictTag }}</el-radio>
  2749. </el-radio-group>
  2750. </div>
  2751. </div>
  2752. </div>
  2753. <div style="padding: 20px">
  2754. <el-table size="small" :data="HistoryList" height="250" border style="width: 100%" v-loading="loading"
  2755. :header-cell-style="{
  2756. background: '#F7F7F9 ',
  2757. fontWeight: '700',
  2758. color: '#333333',
  2759. }" highlight-current-row>
  2760. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  2761. <el-table-column prop="username" label="业务员" align="center">
  2762. <template slot-scope="scope">
  2763. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  2764. </template>
  2765. </el-table-column>
  2766. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  2767. <el-table-column prop="product" label="险种" align="center"></el-table-column>
  2768. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  2769. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  2770. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  2771. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  2772. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  2773. <el-table-column prop="orderstatus" label="状态" align="center">
  2774. <template slot-scope="scope">
  2775. <el-tag style="
  2776. color: #33a08d;
  2777. border-color: #33a08d;
  2778. background: rgba(51, 160, 141, 0.1);
  2779. " v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'
  2780. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  2781. <el-tag type="danger" style="border-color: #e75b5d" v-else-if="scope.row.orderstatus == '3'"
  2782. size="small">{{
  2783. scope.row.orderstatus | cap }}</el-tag>
  2784. <el-tag v-else style="
  2785. color: #2d4d89;
  2786. border-color: #2d4d89;
  2787. background: rgba(45, 77, 137, 0.1);
  2788. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  2789. </template>
  2790. </el-table-column>
  2791. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  2792. <template slot-scope="scope">
  2793. <el-button v-if="scope.row.orderstatus == '10'" type="text" style="color: #2d4d89" size="small"
  2794. @click="supplementOrder(scope.row.id)">补录订单</el-button>
  2795. <el-button type="text" style="color: #2d4d89" size="small"
  2796. @click="qoutedetail(scope.row.id)">查看详情</el-button>
  2797. <el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
  2798. <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany !== '平安财险'"
  2799. type="text" @click="Payment(scope.row.id, scope.row)">付款码</el-button>
  2800. <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany == '平安财险'"
  2801. type="text" @click="signature(scope.row.id)">生成签章</el-button>
  2802. <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
  2803. scope.row.orderstatus == '2' ||
  2804. scope.row.orderstatus == '4') &&
  2805. ['紫金财险', '诚泰财险', '阳光财险'].includes(scope.row.inscompany)
  2806. " @click="cancelorder(scope.row)">撤单</el-button>
  2807. <el-button type="text" size="mini" style="color: #2d4d89"
  2808. v-if="scope.row.orderstatus == '2' && scope.row.inscompany !== '平安财险'"
  2809. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  2810. </template>
  2811. </el-table-column>
  2812. </el-table>
  2813. </div>
  2814. </div>
  2815. <!-- 查看详情 -->
  2816. <detailsDialog ref="detailsDialog" :orderInfo.sync="queryOrders" :Feepermissions="false"></detailsDialog>
  2817. <el-dialog title="车型选择" :visible.sync="chexingdialogVisible" width="1300px">
  2818. <el-form :inline="true" class="demo-form-inline" size="small">
  2819. <el-form-item label="厂牌型号">
  2820. <el-input v-model="carInfo.modelcname" placeholder="厂牌型号" style="width: 500px"></el-input>
  2821. </el-form-item>
  2822. <el-form-item>
  2823. <el-button type="primary" size="small" @click="toChooseVehicleType(carInfo.modelcname)">查询</el-button>
  2824. </el-form-item>
  2825. </el-form>
  2826. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  2827. :header-cell-style="{
  2828. background: '#F7F7F9 ',
  2829. fontWeight: '700',
  2830. color: '#333333',
  2831. }" highlight-current-row @row-dblclick="reslistCurrentChange">
  2832. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  2833. <el-table-column prop="modelName" label="厂牌型号" align="center" width="200"></el-table-column>
  2834. <el-table-column prop="importFlag" label="车辆类型" align="center" width="300"></el-table-column>
  2835. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  2836. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  2837. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  2838. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  2839. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  2840. </el-table>
  2841. </el-dialog>
  2842. <el-dialog title="车辆识别代码" :visible.sync="sbdmdialogVisible" width="1300px">
  2843. <el-form :inline="true" class="demo-form-inline" size="small">
  2844. <el-form-item label="车辆识别代码">
  2845. <el-input v-model="carInfo.frameNo" placeholder="车辆识别代码" style="width: 500px"></el-input>
  2846. </el-form-item>
  2847. <el-form-item>
  2848. <el-button type="primary" size="small" @click="toChooseVin(carInfo.frameNo)">查询</el-button>
  2849. </el-form-item>
  2850. </el-form>
  2851. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  2852. :header-cell-style="{
  2853. background: '#F7F7F9 ',
  2854. fontWeight: '700',
  2855. color: '#333333',
  2856. }" highlight-current-row @row-dblclick="reslistCurrentChange">
  2857. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  2858. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  2859. <el-table-column prop="importFlag" label="车辆类型" align="center" width="100"></el-table-column>
  2860. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  2861. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  2862. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  2863. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  2864. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  2865. </el-table>
  2866. </el-dialog>
  2867. <!--第一种 二维码 -->
  2868. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  2869. <div class="ORcodebody" v-watermark="userform.id || userId">
  2870. <div slot="title" class="dialog-title">
  2871. <span>扫码付款</span>
  2872. </div>
  2873. <div class="ORcode">
  2874. <div style="padding: 13px; position: relative">
  2875. <div id="qrcode" ref="qrcode"></div>
  2876. </div>
  2877. </div>
  2878. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  2879. <div style="
  2880. font-size: 32px;
  2881. text-align: center;
  2882. color: #d42426;
  2883. margin-top: 20px;
  2884. ">
  2885. <span style="font-size: 24px; font-weight: bold">¥</span>
  2886. {{ sumpremium }}
  2887. </div>
  2888. <div class="ORtitle">
  2889. <div>
  2890. <span>保险公司:</span>
  2891. <span>{{ inscompany }}</span>
  2892. </div>
  2893. <div>
  2894. <span>车牌号:</span>
  2895. <span>{{ licenseNo }}</span>
  2896. </div>
  2897. <div>
  2898. <span>投保人:</span>
  2899. <span>{{ applyName }}</span>
  2900. </div>
  2901. <!-- <div>
  2902. <span style="color:#f75c00">总金额:</span>
  2903. <span style="color:#f75c00">{{ sumpremium }}</span>
  2904. </div>-->
  2905. <div v-show="jqpremium">
  2906. <span>交强:</span>
  2907. <span>{{ jqpremium }}</span>
  2908. </div>
  2909. <div v-show="sypremium">
  2910. <span>商业:</span>
  2911. <span>{{ sypremium }}</span>
  2912. </div>
  2913. <div v-show="taxamount">
  2914. <span>车船税:</span>
  2915. <span>{{ taxamount }}</span>
  2916. </div>
  2917. <div v-show="jqstartdate">
  2918. <span>交强险起保日期:</span>
  2919. <span>{{ jqstartdate }}</span>
  2920. </div>
  2921. <div v-show="systartdate">
  2922. <span>商业险起保日期:</span>
  2923. <span>{{ systartdate }}</span>
  2924. </div>
  2925. <div v-if="jypremium">
  2926. <span>驾意险:</span>
  2927. <span>{{ jypremium }}</span>
  2928. </div>
  2929. <div v-if="jypremium">
  2930. <span>驾意险险起保日期:</span>
  2931. <span>{{ systartdate || jqstartdate }}</span>
  2932. </div>
  2933. </div>
  2934. <!-- <div class="display">
  2935. <el-button size="small" style="width:100px;" @click="codedialogVisible = false">关闭</el-button>
  2936. </div>-->
  2937. </div>
  2938. <span slot="footer" class="dialog-footer display">
  2939. <el-button size="small" style="width: 100px; border-color: #d42426; color: #d42426"
  2940. @click="codedialogVisible = false">关闭</el-button>
  2941. </span>
  2942. </el-dialog>
  2943. <!--第二种 二维码 -->
  2944. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh"
  2945. title="扫码付款">
  2946. <div class="flex j-s">
  2947. <div class="scan-code">
  2948. <div style="font-weight: bold">
  2949. 总金额:
  2950. <span style="color: #2d4d89">{{ sumpremium }}</span>
  2951. </div>
  2952. <div>交强险:{{ jqpremium }}</div>
  2953. <div>车船税:{{ taxamount }}</div>
  2954. <div>商业险:{{ sypremium }}</div>
  2955. <div>驾意险:{{ jypremium }}</div>
  2956. </div>
  2957. <div id="qrcode" ref="qrcode"></div>
  2958. <div class="scan-code">
  2959. <div>保险公司:{{ inscompany }}</div>
  2960. <div>车牌号:{{ licenseNo }}</div>
  2961. <div>投保人:{{ applyName }}</div>
  2962. <div>交强险起保日期:{{ jqstartdate }}</div>
  2963. <div>商业险起保日期:{{ systartdate }}</div>
  2964. <div>驾意险起保日期:{{ systartdate || jqstartdate }}</div>
  2965. </div>
  2966. </div>
  2967. <span slot="footer" class="dialog-footer">
  2968. <el-button size="small" style="
  2969. width: 100px;
  2970. background: #eaedf1;
  2971. border-color: #eaedf1;
  2972. color: #2d4d89;
  2973. " @click="codedialogVisiblePro = false">关闭</el-button>
  2974. </span>
  2975. </el-dialog>
  2976. <el-dialog :visible.sync="uploadcardialogVisible" width="960px" style="padding: 10px 20px; box-sizing: border-box"
  2977. @open="closeDialog(0)">
  2978. <div slot="title" class="dialog-title">
  2979. <span>行驶证识别</span>
  2980. </div>
  2981. <el-row :gutter="20">
  2982. <div class="bodys1">
  2983. <div>
  2984. <div class="flex a-c">
  2985. <div class="OCR" style="text-align: center">行驶证主页</div>
  2986. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  2987. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carfrontChange">
  2988. <img v-show="carfrontImg" :src="carfrontImg" style="width: 100%; height: 100%" />
  2989. <img v-show="!carfrontImg" src="../../../../static/carfront.png" style="width: 100%; height: 100%" />
  2990. <span class="slot" v-show="carfrontImg" @click.stop>
  2991. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carfrontImg)"></i>
  2992. <i class="el-icon-delete" @click.stop="handleRemove('carfrontImg')"></i>
  2993. </span>
  2994. </el-upload>
  2995. </div>
  2996. </div>
  2997. <div class="flex a-c">
  2998. <div class="OCR" style="text-align: center">行驶证副页</div>
  2999. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  3000. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carbackChange">
  3001. <img v-show="carbackImg" :src="carbackImg" style="width: 100%; height: 100%" />
  3002. <img v-show="!carbackImg" src="../../../../static/carback.png" style="width: 100%; height: 100%" />
  3003. <span class="slot" v-show="carbackImg" @click.stop>
  3004. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carbackImg)"></i>
  3005. <i class="el-icon-delete" @click.stop="handleRemove('carbackImg')"></i>
  3006. </span>
  3007. </el-upload>
  3008. </div>
  3009. </div>
  3010. </div>
  3011. <div style="text-align: center">
  3012. <el-form :model="carform" label-width="130px" size="small">
  3013. <el-form-item label="所有人">
  3014. <el-input v-model="carform.carOwner" autocomplete="off"></el-input>
  3015. </el-form-item>
  3016. <el-form-item label="车牌号">
  3017. <el-input v-model="carform.licenseNo" autocomplete="off"></el-input>
  3018. </el-form-item>
  3019. <el-form-item label="车架号">
  3020. <el-input v-model="carform.frameNo" autocomplete="off"></el-input>
  3021. </el-form-item>
  3022. <el-form-item label="品牌型号">
  3023. <el-input v-model="carform.modelcname" autocomplete="off"></el-input>
  3024. </el-form-item>
  3025. <el-form-item label="发动机号">
  3026. <el-input v-model="carform.engineNo" autocomplete="off"></el-input>
  3027. </el-form-item>
  3028. <el-form-item label="总质量">
  3029. <el-input v-model="carform.grossMass" autocomplete="off"></el-input>
  3030. </el-form-item>
  3031. <el-form-item label="整备质量">
  3032. <el-input v-model="carform.unladenMass" autocomplete="off"></el-input>
  3033. </el-form-item>
  3034. <el-form-item label="核定载质量">
  3035. <el-input v-model="carform.limitLoad" autocomplete="off"></el-input>
  3036. </el-form-item>
  3037. <el-form-item label="核定载客数">
  3038. <el-input v-model="carform.approvedPassengersCapacity" autocomplete="off"></el-input>
  3039. </el-form-item>
  3040. <el-form-item label="注册日期">
  3041. <el-input v-model="carform.registerDate" autocomplete="off"></el-input>
  3042. </el-form-item>
  3043. <el-form-item label="发证日期">
  3044. <el-input v-model="carform.issueDate" autocomplete="off"></el-input>
  3045. </el-form-item>
  3046. </el-form>
  3047. </div>
  3048. </div>
  3049. </el-row>
  3050. <span slot="footer" class="dialog-footer">
  3051. <el-button type="primary" @click="CarOCRdiscern()" size="small">识 别</el-button>
  3052. <el-button type="primary" @click="CarOCRconfirm()" size="small">确 认</el-button>
  3053. </span>
  3054. </el-dialog>
  3055. <el-dialog :visible.sync="uploaduserdialogVisible" width="960px" style="padding: 10px 20px; box-sizing: border-box"
  3056. @open="closeDialog(userIndex)">
  3057. <el-tabs v-model="activeName">
  3058. <el-tab-pane label="身份证识别" name="1">
  3059. <el-row :gutter="20">
  3060. <div class="bodys1">
  3061. <div>
  3062. <div class="flex">
  3063. <div class="OCR" style="text-align: center">身份证主页</div>
  3064. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  3065. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  3066. :on-change="userfrontChange">
  3067. <img v-show="userfrontImg" :src="userfrontImg" style="width: 100%; height: 100%" />
  3068. <img v-show="!userfrontImg" src="../../../../static/userfront.png"
  3069. style="width: 100%; height: 100%" />
  3070. <span class="slot" v-show="userfrontImg" @click.stop>
  3071. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userfrontImg)"></i>
  3072. <i class="el-icon-delete" @click.stop="handleRemove('userfrontImg')"></i>
  3073. </span>
  3074. </el-upload>
  3075. </div>
  3076. </div>
  3077. <div class="flex">
  3078. <div class="OCR" style="text-align: center">身份证副页</div>
  3079. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  3080. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  3081. :on-change="userbackChange">
  3082. <img v-show="userbackImg" :src="userbackImg" style="width: 100%; height: 100%" />
  3083. <img v-show="!userbackImg" src="../../../../static/userback.png"
  3084. style="width: 100%; height: 100%" />
  3085. <span class="slot" v-show="userbackImg" @click.stop>
  3086. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userbackImg)"></i>
  3087. <i class="el-icon-delete" @click.stop="handleRemove('userbackImg')"></i>
  3088. </span>
  3089. </el-upload>
  3090. </div>
  3091. </div>
  3092. </div>
  3093. <div style="text-align: center">
  3094. <el-form :model="ownerInfoform" label-width="130px" size="small">
  3095. <el-form-item label="姓名">
  3096. <el-input v-model="ownerInfoform.name" autocomplete="off"></el-input>
  3097. </el-form-item>
  3098. <el-form-item label="性别">
  3099. <el-input v-model="ownerInfoform.gender" autocomplete="off"></el-input>
  3100. </el-form-item>
  3101. <el-form-item label="证件类型">
  3102. <el-input v-model="ownerInfoform.identifyType" autocomplete="off"></el-input>
  3103. </el-form-item>
  3104. <el-form-item label="证件号码">
  3105. <el-input v-model="ownerInfoform.identifyNumber" autocomplete="off"></el-input>
  3106. </el-form-item>
  3107. <el-form-item label="车主手机号">
  3108. <el-input v-model="ownerInfoform.mobile" autocomplete="off"></el-input>
  3109. </el-form-item>
  3110. <el-form-item label="地址">
  3111. <el-input v-model="ownerInfoform.addr" autocomplete="off"></el-input>
  3112. </el-form-item>
  3113. <el-form-item label="有效期起期">
  3114. <el-input disabled v-model="ownerInfoform.identifyValidDate" autocomplete="off"></el-input>
  3115. </el-form-item>
  3116. <el-form-item label="有效期止期">
  3117. <el-input disabled v-model="ownerInfoform.identifyValidEndDate" autocomplete="off"></el-input>
  3118. </el-form-item>
  3119. <el-form-item label="电子邮箱">
  3120. <el-input v-model="ownerInfoform.email" autocomplete="off"></el-input>
  3121. </el-form-item>
  3122. </el-form>
  3123. </div>
  3124. </div>
  3125. </el-row>
  3126. </el-tab-pane>
  3127. <el-tab-pane label="营业执照" name="2">
  3128. <el-row :gutter="20">
  3129. <div class="bodys1">
  3130. <div>
  3131. <div class="flex">
  3132. <div class="OCR" style="text-align: center">营业执照</div>
  3133. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  3134. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  3135. :on-change="businessChange">
  3136. <img v-show="businessImg" :src="businessImg" style="width: 100%; height: 100%" />
  3137. <img v-show="!businessImg" src="../../../../static/userfront.png"
  3138. style="width: 100%; height: 100%" />
  3139. <span class="slot" v-show="businessImg" @click.stop>
  3140. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(businessImg)"></i>
  3141. <i class="el-icon-delete" @click.stop="handleRemove('businessImg')"></i>
  3142. </span>
  3143. </el-upload>
  3144. </div>
  3145. </div>
  3146. </div>
  3147. <div style="text-align: center">
  3148. <el-form :model="businessform" label-width="130px" size="small">
  3149. <el-form-item label="单位名称">
  3150. <el-input autocomplete="off" v-model="businessform.name"></el-input>
  3151. </el-form-item>
  3152. <el-form-item label="法人">
  3153. <el-input autocomplete="off" v-model="businessform.legalPerson"></el-input>
  3154. </el-form-item>
  3155. <el-form-item label="社会信用代码">
  3156. <el-input autocomplete="off" v-model="businessform.organizationCode"></el-input>
  3157. </el-form-item>
  3158. <el-form-item label="地址">
  3159. <el-input autocomplete="off" v-model="businessform.addr"></el-input>
  3160. </el-form-item>
  3161. <el-form-item label="注册资本">
  3162. <el-input autocomplete="off" v-model="businessform.registeredCapital"></el-input>
  3163. </el-form-item>
  3164. <el-form-item label="经营范围">
  3165. <el-input autocomplete="off" type="textarea" v-model="businessform.scope"></el-input>
  3166. </el-form-item>
  3167. </el-form>
  3168. </div>
  3169. </div>
  3170. </el-row>
  3171. </el-tab-pane>
  3172. </el-tabs>
  3173. <span slot="footer" class="dialog-footer">
  3174. <el-button type="primary" @click="userOCRdiscern()" size="small">识 别</el-button>
  3175. <el-button type="primary" @click="userOCRconfirm()" size="small">确 认</el-button>
  3176. </span>
  3177. </el-dialog>
  3178. <el-dialog :visible.sync="pinganDataDetailVisible" width="40%" title="责任明细">
  3179. <el-table :data="pinganDataDetail" border style="width: 100%">
  3180. <el-table-column prop="insuranceCoverage" label="责任名称">
  3181. </el-table-column>
  3182. <el-table-column prop="unitInsuredAmount" label="每份保额">
  3183. </el-table-column>
  3184. </el-table>
  3185. </el-dialog>
  3186. <div v-if="isLetter == '1'" class="flex j-c a-c footer" :class="$store.state.app.collapse ? 'position-collapse-left' : 'position-left'
  3187. ">
  3188. <el-button size="small" @click="add()">录下一单</el-button>
  3189. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote1()">保费计算</el-button>
  3190. </div>
  3191. <div v-if="isLetter == '2'" style="text-align: center">
  3192. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote1()">保费计算</el-button>
  3193. </div>
  3194. <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter == '1'">
  3195. <div>
  3196. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" @click="handleScroll('Car')" />
  3197. </div>
  3198. <div>
  3199. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" @click="handleScroll('insurance')" />
  3200. </div>
  3201. <div>
  3202. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" @click="handleScroll('more')" />
  3203. </div>
  3204. <div>
  3205. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" @click="handleScroll('company')" />
  3206. </div>
  3207. </div>
  3208. <el-dialog title="核保信息" :visible.sync="underwritingdialogVisible" width="30%">
  3209. <div class="flex j-s f-c">
  3210. <div style="
  3211. font-size: 18px;
  3212. color: #d42426;
  3213. font-weight: 700;
  3214. padding: 10px 30px;
  3215. " v-if="orderstatus == '2'">
  3216. 订单状态:已核保待缴费
  3217. </div>
  3218. </div>
  3219. <span slot="footer" class="dialog-footer">
  3220. <el-button style="width: 100px" type="primary" size="small"
  3221. v-if="orderstatus == '2' && queryOrders.inscompany !== '平安财险'"
  3222. @click="Payment(companyId, queryOrders)">缴费二维码</el-button>
  3223. <el-button style="width: 100px" type="primary" size="small"
  3224. v-if="orderstatus == '2' && queryOrders.inscompany == '平安财险'" @click="signature(companyId)">生成签章</el-button>
  3225. </span>
  3226. </el-dialog>
  3227. <el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
  3228. <div class="flex a-c u-f-sa" v-if="renewalCodeJqImg">
  3229. <span>交强转保确认码</span>
  3230. <div class="flex a-c f-c">
  3231. <img :src="renewalCodeJqImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  3232. <el-input v-model="renewalCodeJq" placeholder="请输入确认码" style="width: 150px"></el-input>
  3233. </div>
  3234. </div>
  3235. <div class="flex a-c u-f-sa" v-if="renewalCodeSyImg">
  3236. <span>商业转保确认码</span>
  3237. <div class="flex a-c f-c">
  3238. <img :src="renewalCodeSyImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  3239. <el-input v-model="renewalCodeSy" placeholder="请输入确认码" style="width: 150px"></el-input>
  3240. </div>
  3241. </div>
  3242. <span slot="footer" class="dialog-footer">
  3243. <el-button size="small" @click="renewalCodedialogVisible = false">取 消</el-button>
  3244. <el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
  3245. </span>
  3246. </el-dialog>
  3247. <el-dialog :title="contributingState ? '选择特约' : '提交核保'" :visible.sync="hbsubmitdialogVisible" width="1200px">
  3248. <div style="margin-bottom: 20px; font-weight: bold">特约选择</div>
  3249. <el-table size="small" :data="zijinengageListData" border v-loading="contributingLoading"
  3250. @select="zijinengageChange" @select-all="zijinengageChangeAll" ref="expandTablePro" highlight-current-row
  3251. @cell-dblclick="zijincellDblclick" :cell-class-name="tableCellClassName" :header-cell-style="{
  3252. background: '#F7F7F9 ',
  3253. fontWeight: '700',
  3254. color: '#333333',
  3255. }">
  3256. <el-table-column type="selection" width="55"></el-table-column>
  3257. <el-table-column prop="clauseCode" :width="80" label="特约代码" align="center"></el-table-column>
  3258. <el-table-column v-if="contributingState" :width="100" prop="riskCode" label="特约险种"
  3259. align="center"></el-table-column>
  3260. <el-table-column prop="clauseName" label="特约名称" align="center"></el-table-column>
  3261. <!-- <el-table-column prop="replaceContent" label="特约内容" align="center"></el-table-column> -->
  3262. <el-table-column prop="clauseContent" label="特约内容">
  3263. <template slot-scope="scope">
  3264. <el-input @blur="hideInput" size="small" type="textarea" :ref="scope.row.index + ',' + scope.column.index"
  3265. v-model="scope.row.clauseContent" v-if="scope.row.index + ',' + scope.column.index == currentCell &&
  3266. scope.row.modifyFlag == '1'
  3267. "></el-input>
  3268. <span v-else>{{ scope.row.clauseContent }}</span>
  3269. </template>
  3270. </el-table-column>
  3271. </el-table>
  3272. <span slot="footer" class="dialog-footer">
  3273. <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
  3274. <el-button v-if="contributingState" size="small" type="primary"
  3275. @click="hbsubmitdialogVisible = false">确定</el-button>
  3276. <el-button v-else size="small" type="primary" @click="hbsubmit">提交核保</el-button>
  3277. </span>
  3278. </el-dialog>
  3279. <!-- <imageDialog ref="imageDialog" :quoteno="quoteno"></imageDialog>-->
  3280. <!-- 报价单 -->
  3281. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  3282. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  3283. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
  3284. <el-dialog :visible.sync="redictInfodialogVisible" width="70%">
  3285. <el-table :data="redictInfoMsg" style="width: 100%">
  3286. <el-table-column prop="description" label="审核意见"></el-table-column>
  3287. <el-table-column prop="opinion" label="备注"></el-table-column>
  3288. </el-table>
  3289. </el-dialog>
  3290. <!-- 生成签章 -->
  3291. <el-dialog :visible.sync="signaturedialogVisible" title="生成签章" width="14%">
  3292. <div>
  3293. <img :src="resultMessageImg" alt style="width: 100%" />
  3294. <!-- <div id="signaturecode" ref="signaturecode"></div> -->
  3295. </div>
  3296. </el-dialog>
  3297. <!-- 保单上传 -->
  3298. <el-dialog :visible.sync="policyUploaddialogVisible" width="30%">
  3299. <div slot="title" class="dialog-title">
  3300. <span>保单上传</span>
  3301. </div>
  3302. <el-form :model="policyNumberForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
  3303. <el-form-item label="交强保单:" prop="jqPolicy">
  3304. <el-upload class="upload-demo" ref="jqPolicyupload" action="#" :limit="1" :auto-upload="false"
  3305. :on-remove="(file) => removePhoto(file, policyNumberForm.jqPolicyList, 'jqPolicyList')"
  3306. :file-list="policyNumberForm.jqPolicyList" :on-change="(file) => policydrivingupload(file, 'jqPolicy')">
  3307. <el-button size="small" type="primary">点击上传</el-button>
  3308. <el-button size="small" type="primary" @click.stop="policyNumberForm.jqPolicyList = []">清空</el-button>
  3309. </el-upload>
  3310. </el-form-item>
  3311. <el-form-item label="商业保单:" prop="syPolicy">
  3312. <el-upload class="upload-demo" ref="syPolicyupload" action="#" :limit="1" :auto-upload="false"
  3313. :on-remove="(file) => removePhoto(file, policyNumberForm.syPolicyList, 'syPolicyList')"
  3314. :file-list="policyNumberForm.syPolicyList" :on-change="(file) => policydrivingupload(file, 'syPolicy')">
  3315. <el-button size="small" type="primary">点击上传</el-button>
  3316. <el-button size="small" type="primary" @click.stop="policyNumberForm.syPolicyList = []">清空</el-button>
  3317. </el-upload>
  3318. </el-form-item>
  3319. <el-form-item label="非车保单:" prop="noPolicy">
  3320. <el-upload class="upload-demo" ref="noPolicyupload" action="#" :limit="1" :auto-upload="false"
  3321. :on-remove="(file) => removePhoto(file, policyNumberForm.noPolicyList, 'noPolicyList')"
  3322. :file-list="policyNumberForm.noPolicyList" :on-change="(file) => policydrivingupload(file, 'noPolicy')">
  3323. <el-button size="small" type="primary">点击上传</el-button>
  3324. <el-button size="small" type="primary" @click.stop="policyNumberForm.noPolicyList = []">清空</el-button>
  3325. </el-upload>
  3326. </el-form-item>
  3327. <el-form-item label="交强电子标志:" prop="jqSign">
  3328. <el-upload class="upload-demo" ref="jqSignupload" action="#" :limit="1" :auto-upload="false"
  3329. :on-remove="(file) => removePhoto(file, policyNumberForm.jqSignList, 'jqSignList')"
  3330. :file-list="policyNumberForm.jqSignList" :on-change="(file) => policydrivingupload(file, 'jqSign')">
  3331. <el-button size="small" type="primary">点击上传</el-button>
  3332. <el-button size="small" type="primary" @click.stop="policyNumberForm.jqSignList = []">清空</el-button>
  3333. </el-upload>
  3334. </el-form-item>
  3335. </el-form>
  3336. <span slot="footer" class="dialog-footer">
  3337. <el-button size="small" @click="policyUploaddialogVisible = false">取 消</el-button>
  3338. <el-button size="small" type="primary" @click="policyUploaddialogVisible = false">确 定</el-button>
  3339. </span>
  3340. </el-dialog>
  3341. <!-- 影像上传 -->
  3342. <el-dialog :visible.sync="imageUploaddialogVisible" width="1070px">
  3343. <div slot="title" class="dialog-title">
  3344. <span>影像上传</span>
  3345. </div>
  3346. <el-row>
  3347. <el-col :span="4">
  3348. <div class="tab-style">
  3349. <li class="liMenu" :class="idx == tabLiIndex ? 'tabLi-style' : ''" @click="tabLiScroll(item.scroll, idx)"
  3350. v-for="(item, idx) in tabLimenu" :key="idx">
  3351. {{ item.name }}
  3352. </li>
  3353. </div>
  3354. </el-col>
  3355. <el-col :span="20" style="height: 320px; overflow-y: auto">
  3356. <div class="flex f-wrap" id="vehicle">
  3357. <div class="aaa">
  3358. <span>1.行驶证主页</span>
  3359. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList1', 'C01')
  3360. " :file-list="imgList1" ref="upload1" :class="{ styleB: imgList1.length == 1 }">
  3361. <img v-show="imgList1.length == 0" src="../../../../static/carfront.png"
  3362. style="width: 100%; height: 100%" />
  3363. <div slot="file" slot-scope="{ file }" v-if="imgList1.length > 0">
  3364. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3365. <span class="el-upload-list__item-actions">
  3366. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList1')">
  3367. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3368. <i class="el-icon-delete"></i>
  3369. </span>
  3370. </span>
  3371. </div>
  3372. </el-upload>
  3373. </div>
  3374. <div class="aaa">
  3375. <span>2.行驶证副页</span>
  3376. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList2', 'D01')
  3377. " :file-list="imgList2" ref="upload2" :class="{ styleB: imgList2.length === 1 }">
  3378. <img v-show="imgList2.length == 0" src="../../../../static/carback.png"
  3379. style="width: 100%; height: 100%" />
  3380. <div slot="file" slot-scope="{ file }">
  3381. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3382. <span class="el-upload-list__item-actions">
  3383. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList2')">
  3384. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3385. <i class="el-icon-delete"></i>
  3386. </span>
  3387. </span>
  3388. </div>
  3389. </el-upload>
  3390. </div>
  3391. <div class="aaa">
  3392. <span>3.机动车辆登记证书</span>
  3393. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList12', 'TAR05')
  3394. " :file-list="imgList12" ref="upload2" :class="{ styleB: imgList12.length === 1 }">
  3395. <img v-show="imgList12.length == 0" src="../../../../static/carback.png"
  3396. style="width: 100%; height: 100%" />
  3397. <div slot="file" slot-scope="{ file }">
  3398. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3399. <span class="el-upload-list__item-actions">
  3400. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList12')">
  3401. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3402. <i class="el-icon-delete"></i>
  3403. </span>
  3404. </span>
  3405. </div>
  3406. </el-upload>
  3407. </div>
  3408. <div class="aaa">
  3409. <span>4.新车合格证</span>
  3410. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3411. drivingupload(file, 'imageList5', 'imgList9', 'XC00')
  3412. " :file-list="imgList9" multiple ref="upload3" :class="{ styleB: imgList9.length === 1 }">
  3413. <img v-show="imgList9.length == 0" src="../../../../static/userfront.png"
  3414. style="width: 100%; height: 100%" />
  3415. <div slot="file" slot-scope="{ file }">
  3416. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3417. <span class="el-upload-list__item-actions">
  3418. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList9')">
  3419. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3420. <i class="el-icon-delete"></i>
  3421. </span>
  3422. </span>
  3423. </div>
  3424. </el-upload>
  3425. </div>
  3426. <div class="aaa">
  3427. <span>5.购车发票</span>
  3428. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3429. drivingupload(file, 'imageList5', 'imgList10', 'GC00')
  3430. " :file-list="imgList10" multiple ref="upload4" :class="{ styleB: imgList10.length === 1 }">
  3431. <img v-show="imgList10.length == 0" src="../../../../static/userfront.png"
  3432. style="width: 100%; height: 100%" />
  3433. <div slot="file" slot-scope="{ file }">
  3434. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3435. <span class="el-upload-list__item-actions">
  3436. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList10')">
  3437. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3438. <i class="el-icon-delete"></i>
  3439. </span>
  3440. </span>
  3441. </div>
  3442. </el-upload>
  3443. </div>
  3444. </div>
  3445. <div class="flex f-wrap" id="owner">
  3446. <div class="aaa">
  3447. <span>1.车主身份证(正面)</span>
  3448. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList3', 'C02')
  3449. " :file-list="imgList3" multiple ref="upload3" :class="{ styleB: imgList3.length === 1 }">
  3450. <img v-show="imgList3.length == 0" src="../../../../static/userfront.png"
  3451. style="width: 100%; height: 100%" />
  3452. <div slot="file" slot-scope="{ file }">
  3453. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3454. <span class="el-upload-list__item-actions">
  3455. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList3')">
  3456. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3457. <i class="el-icon-delete"></i>
  3458. </span>
  3459. </span>
  3460. </div>
  3461. </el-upload>
  3462. </div>
  3463. <div class="aaa">
  3464. <span>2.车主身份证(反面)</span>
  3465. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList4', 'D02')
  3466. " :file-list="imgList4" multiple ref="upload4" :class="{ styleB: imgList4.length === 1 }">
  3467. <img v-show="imgList4.length == 0" src="../../../../static/userback.png"
  3468. style="width: 100%; height: 100%" />
  3469. <div slot="file" slot-scope="{ file }">
  3470. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3471. <span class="el-upload-list__item-actions">
  3472. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  3473. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3474. <i class="el-icon-delete"></i>
  3475. </span>
  3476. </span>
  3477. </div>
  3478. </el-upload>
  3479. </div>
  3480. <div class="aaa">
  3481. <span>3.车主营业执照</span>
  3482. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple
  3483. :on-change="(file) => drivingupload(file, 'imageList2', 'imgList26', 'Y02')" ref="upload4"
  3484. :file-list="imgList26" :class="{ styleB: imgList26.length === 1 }">
  3485. <img v-show="imgList26.length == 0" src="../../../../static/userfront.png"
  3486. style="width: 100%; height: 100%" :class="{ styleB: imgList26.length === 1 }" />
  3487. <div slot="file" slot-scope="{ file }">
  3488. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3489. <span class="el-upload-list__item-actions">
  3490. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList26')">
  3491. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3492. <i class="el-icon-delete"></i>
  3493. </span>
  3494. </span>
  3495. </div>
  3496. </el-upload>
  3497. </div>
  3498. </div>
  3499. <div class="flex f-wrap" id="applicant">
  3500. <div class="aaa">
  3501. <span>1.投保人身份证(正面)</span>
  3502. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList5', 'C03')
  3503. " :file-list="imgList5" multiple ref="upload5" :class="{ styleB: imgList5.length === 1 }">
  3504. <img v-show="imgList5.length == 0" src="../../../../static/userfront.png"
  3505. style="width: 100%; height: 100%" />
  3506. <div slot="file" slot-scope="{ file }">
  3507. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3508. <span class="el-upload-list__item-actions">
  3509. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList5')">
  3510. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3511. <i class="el-icon-delete"></i>
  3512. </span>
  3513. </span>
  3514. </div>
  3515. </el-upload>
  3516. </div>
  3517. <div class="aaa">
  3518. <span>2.投保人身份证(反面)</span>
  3519. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList6', 'D03')
  3520. " :file-list="imgList6" multiple ref="upload6" :class="{ styleB: imgList6.length === 1 }">
  3521. <img v-show="imgList6.length == 0" src="../../../../static/userback.png"
  3522. style="width: 100%; height: 100%" />
  3523. <div slot="file" slot-scope="{ file }">
  3524. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3525. <span class="el-upload-list__item-actions">
  3526. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList6')">
  3527. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3528. <i class="el-icon-delete"></i>
  3529. </span>
  3530. </span>
  3531. </div>
  3532. </el-upload>
  3533. </div>
  3534. <div class="aaa">
  3535. <span>3.投保人营业执照</span>
  3536. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList27', 'Y03')
  3537. " :file-list="imgList27" multiple ref="upload6" :class="{ styleB: imgList27.length === 1 }">
  3538. <img v-show="imgList27.length == 0" src="../../../../static/userfront.png"
  3539. style="width: 100%; height: 100%" />
  3540. <div slot="file" slot-scope="{ file }">
  3541. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3542. <span class="el-upload-list__item-actions">
  3543. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList27')">
  3544. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3545. <i class="el-icon-delete"></i>
  3546. </span>
  3547. </span>
  3548. </div>
  3549. </el-upload>
  3550. </div>
  3551. </div>
  3552. <div class="flex f-wrap">
  3553. <div class="aaa">
  3554. <span id="insured">1.被保人身份证(正面)</span>
  3555. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList7', 'C04')
  3556. " :file-list="imgList7" multiple ref="upload7" :class="{ styleB: imgList7.length === 1 }">
  3557. <img v-show="imgList7.length == 0" src="../../../../static/userfront.png"
  3558. style="width: 100%; height: 100%" />
  3559. <div slot="file" slot-scope="{ file }">
  3560. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3561. <span class="el-upload-list__item-actions">
  3562. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList7')">
  3563. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3564. <i class="el-icon-delete"></i>
  3565. </span>
  3566. </span>
  3567. </div>
  3568. </el-upload>
  3569. </div>
  3570. <div class="aaa">
  3571. <span>2.被保人身份证(反面)</span>
  3572. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList8', 'D04')
  3573. " :file-list="imgList8" multiple ref="upload8" :class="{ styleB: imgList8.length === 1 }">
  3574. <img v-show="imgList8.length == 0" src="../../../../static/userback.png"
  3575. style="width: 100%; height: 100%" />
  3576. <div slot="file" slot-scope="{ file }">
  3577. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3578. <span class="el-upload-list__item-actions">
  3579. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList8')">
  3580. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3581. <i class="el-icon-delete"></i>
  3582. </span>
  3583. </span>
  3584. </div>
  3585. </el-upload>
  3586. </div>
  3587. <div class="aaa">
  3588. <span>3.被保人营业执照</span>
  3589. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList28', 'Y04')
  3590. " :file-list="imgList28" multiple ref="upload8" :class="{ styleB: imgList28.length === 1 }">
  3591. <img v-show="imgList28.length == 0" src="../../../../static/userfront.png"
  3592. style="width: 100%; height: 100%" />
  3593. <div slot="file" slot-scope="{ file }">
  3594. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3595. <span class="el-upload-list__item-actions">
  3596. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList28')">
  3597. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3598. <i class="el-icon-delete"></i>
  3599. </span>
  3600. </span>
  3601. </div>
  3602. </el-upload>
  3603. </div>
  3604. </div>
  3605. <div class="flex f-wrap" id="relationship">
  3606. <div class="aaa">
  3607. <span>1.关系证明</span>
  3608. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3609. drivingupload(file, 'imageList5', 'imgList11', 'GX00')
  3610. " :file-list="imgList11" multiple ref="upload3" :class="{ styleB: imgList11.length === 1 }">
  3611. <img v-show="imgList11.length == 0" src="../../../../static/userfront.png"
  3612. style="width: 100%; height: 100%" />
  3613. <div slot="file" slot-scope="{ file }">
  3614. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3615. <span class="el-upload-list__item-actions">
  3616. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList11')">
  3617. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3618. <i class="el-icon-delete"></i>
  3619. </span>
  3620. </span>
  3621. </div>
  3622. </el-upload>
  3623. </div>
  3624. </div>
  3625. <div class="flex f-wrap" id="yanchezhao">
  3626. <div class="aaa">
  3627. <span>1.验车照(车架)</span>
  3628. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3629. drivingupload(file, 'imageList6', 'imgList13', 'C0500')
  3630. " :file-list="imgList13" multiple ref="upload3" :class="{ styleB: imgList13.length === 1 }">
  3631. <img v-show="imgList13.length == 0" src="../../../../static/userfront.png"
  3632. style="width: 100%; height: 100%" />
  3633. <div slot="file" slot-scope="{ file }">
  3634. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3635. <span class="el-upload-list__item-actions">
  3636. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList13')">
  3637. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3638. <i class="el-icon-delete"></i>
  3639. </span>
  3640. </span>
  3641. </div>
  3642. </el-upload>
  3643. </div>
  3644. <div class="aaa">
  3645. <span>2.验车照(后左)</span>
  3646. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3647. drivingupload(file, 'imageList6', 'imgList14', 'C0501')
  3648. " :file-list="imgList14" multiple ref="upload3" :class="{ styleB: imgList14.length === 1 }">
  3649. <img v-show="imgList14.length == 0" src="../../../../static/userfront.png"
  3650. style="width: 100%; height: 100%" />
  3651. <div slot="file" slot-scope="{ file }">
  3652. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3653. <span class="el-upload-list__item-actions">
  3654. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList14')">
  3655. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3656. <i class="el-icon-delete"></i>
  3657. </span>
  3658. </span>
  3659. </div>
  3660. </el-upload>
  3661. </div>
  3662. <div class="aaa">
  3663. <span>3.验车照(后右)</span>
  3664. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3665. drivingupload(file, 'imageList6', 'imgList15', 'C0502')
  3666. " :file-list="imgList15" multiple ref="upload3" :class="{ styleB: imgList15.length === 1 }">
  3667. <img v-show="imgList15.length == 0" src="../../../../static/userfront.png"
  3668. style="width: 100%; height: 100%" />
  3669. <div slot="file" slot-scope="{ file }">
  3670. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3671. <span class="el-upload-list__item-actions">
  3672. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList15')">
  3673. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3674. <i class="el-icon-delete"></i>
  3675. </span>
  3676. </span>
  3677. </div>
  3678. </el-upload>
  3679. </div>
  3680. <div class="aaa">
  3681. <span>4.验车照(前右)</span>
  3682. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3683. drivingupload(file, 'imageList6', 'imgList16', 'C0503')
  3684. " :file-list="imgList16" multiple ref="upload3" :class="{ styleB: imgList16.length === 1 }">
  3685. <img v-show="imgList16.length == 0" src="../../../../static/userfront.png"
  3686. style="width: 100%; height: 100%" />
  3687. <div slot="file" slot-scope="{ file }">
  3688. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3689. <span class="el-upload-list__item-actions">
  3690. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList16')">
  3691. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3692. <i class="el-icon-delete"></i>
  3693. </span>
  3694. </span>
  3695. </div>
  3696. </el-upload>
  3697. </div>
  3698. <div class="aaa">
  3699. <span>5.验车照(前左)</span>
  3700. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3701. drivingupload(file, 'imageList6', 'imgList17', 'C0504')
  3702. " :file-list="imgList17" multiple ref="upload3" :class="{ styleB: imgList17.length === 1 }">
  3703. <img v-show="imgList17.length == 0" src="../../../../static/userfront.png"
  3704. style="width: 100%; height: 100%" />
  3705. <div slot="file" slot-scope="{ file }">
  3706. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3707. <span class="el-upload-list__item-actions">
  3708. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList17')">
  3709. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3710. <i class="el-icon-delete"></i>
  3711. </span>
  3712. </span>
  3713. </div>
  3714. </el-upload>
  3715. </div>
  3716. <div class="aaa">
  3717. <span>6.验车照(正前)</span>
  3718. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3719. drivingupload(file, 'imageList6', 'imgList18', 'C0506')
  3720. " :file-list="imgList18" multiple ref="upload3" :class="{ styleB: imgList18.length === 1 }">
  3721. <img v-show="imgList18.length == 0" src="../../../../static/userfront.png"
  3722. style="width: 100%; height: 100%" />
  3723. <div slot="file" slot-scope="{ file }">
  3724. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3725. <span class="el-upload-list__item-actions">
  3726. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList18')">
  3727. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3728. <i class="el-icon-delete"></i>
  3729. </span>
  3730. </span>
  3731. </div>
  3732. </el-upload>
  3733. </div>
  3734. <div class="aaa">
  3735. <span>7.验车照(正后)</span>
  3736. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3737. drivingupload(file, 'imageList6', 'imgList19', 'C0507')
  3738. " :file-list="imgList19" multiple ref="upload3" :class="{ styleB: imgList19.length === 1 }">
  3739. <img v-show="imgList19.length == 0" src="../../../../static/userfront.png"
  3740. style="width: 100%; height: 100%" />
  3741. <div slot="file" slot-scope="{ file }">
  3742. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3743. <span class="el-upload-list__item-actions">
  3744. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList19')">
  3745. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3746. <i class="el-icon-delete"></i>
  3747. </span>
  3748. </span>
  3749. </div>
  3750. </el-upload>
  3751. </div>
  3752. <div class="aaa">
  3753. <span>8.验车照(人车合影)</span>
  3754. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3755. drivingupload(file, 'imageList6', 'imgList20', 'C0505')
  3756. " :file-list="imgList20" multiple ref="upload3" :class="{ styleB: imgList20.length === 1 }">
  3757. <img v-show="imgList20.length == 0" src="../../../../static/userfront.png"
  3758. style="width: 100%; height: 100%" />
  3759. <div slot="file" slot-scope="{ file }">
  3760. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3761. <span class="el-upload-list__item-actions">
  3762. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList20')">
  3763. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3764. <i class="el-icon-delete"></i>
  3765. </span>
  3766. </span>
  3767. </div>
  3768. </el-upload>
  3769. </div>
  3770. <div class="aaa">
  3771. <span>9.验车照(地标合影)</span>
  3772. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3773. drivingupload(file, 'imageList6', 'imgList21', 'C0508')
  3774. " :file-list="imgList21" multiple ref="upload3" :class="{ styleB: imgList21.length === 1 }">
  3775. <img v-show="imgList21.length == 0" src="../../../../static/userfront.png"
  3776. style="width: 100%; height: 100%" />
  3777. <div slot="file" slot-scope="{ file }">
  3778. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3779. <span class="el-upload-list__item-actions">
  3780. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList21')">
  3781. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3782. <i class="el-icon-delete"></i>
  3783. </span>
  3784. </span>
  3785. </div>
  3786. </el-upload>
  3787. </div>
  3788. <div class="aaa">
  3789. <span>10.验车照(工作台)</span>
  3790. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3791. drivingupload(file, 'imageList6', 'imgList22', 'C0509')
  3792. " :file-list="imgList22" multiple ref="upload3" :class="{ styleB: imgList22.length === 1 }">
  3793. <img v-show="imgList22.length == 0" src="../../../../static/userfront.png"
  3794. style="width: 100%; height: 100%" />
  3795. <div slot="file" slot-scope="{ file }">
  3796. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3797. <span class="el-upload-list__item-actions">
  3798. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList22')">
  3799. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3800. <i class="el-icon-delete"></i>
  3801. </span>
  3802. </span>
  3803. </div>
  3804. </el-upload>
  3805. </div>
  3806. <div class="aaa">
  3807. <span>11.验车照(天窗)</span>
  3808. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3809. drivingupload(file, 'imageList6', 'imgList23', 'C0510')
  3810. " :file-list="imgList23" multiple ref="upload3" :class="{ styleB: imgList23.length === 1 }">
  3811. <img v-show="imgList23.length == 0" src="../../../../static/userfront.png"
  3812. style="width: 100%; height: 100%" />
  3813. <div slot="file" slot-scope="{ file }">
  3814. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3815. <span class="el-upload-list__item-actions">
  3816. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList23')">
  3817. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3818. <i class="el-icon-delete"></i>
  3819. </span>
  3820. </span>
  3821. </div>
  3822. </el-upload>
  3823. </div>
  3824. </div>
  3825. <div class="flex f-wrap" id="snbaodan">
  3826. <div class="aaa">
  3827. <span>1.上年商业险保单</span>
  3828. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3829. drivingupload(file, 'imageList6', 'imgList24', 'LAST_INSURANCE_POLICY')
  3830. " :file-list="imgList24" multiple ref="upload3" :class="{ styleB: imgList24.length === 1 }">
  3831. <img v-show="imgList24.length == 0" src="../../../../static/userfront.png"
  3832. style="width: 100%; height: 100%" />
  3833. <div slot="file" slot-scope="{ file }">
  3834. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3835. <span class="el-upload-list__item-actions">
  3836. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList24')">
  3837. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3838. <i class="el-icon-delete"></i>
  3839. </span>
  3840. </span>
  3841. </div>
  3842. </el-upload>
  3843. </div>
  3844. </div>
  3845. <div class="flex f-wrap" id="shouquanshu">
  3846. <div class="aaa">
  3847. <span>1.授权书</span>
  3848. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3849. drivingupload(file, 'imageList6', 'imgList25', 'SQ00')
  3850. " :file-list="imgList25" multiple ref="upload3" :class="{ styleB: imgList25.length === 1 }">
  3851. <img v-show="imgList25.length == 0" src="../../../../static/userfront.png"
  3852. style="width: 100%; height: 100%" />
  3853. <div slot="file" slot-scope="{ file }">
  3854. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3855. <span class="el-upload-list__item-actions">
  3856. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList6', 'imgList25')">
  3857. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3858. <i class="el-icon-delete"></i>
  3859. </span>
  3860. </span>
  3861. </div>
  3862. </el-upload>
  3863. </div>
  3864. </div>
  3865. </el-col>
  3866. </el-row>
  3867. <span slot="footer" class="dialog-footer">
  3868. <el-button size="small" @click="imageUploaddialogVisible = false">取 消</el-button>
  3869. <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
  3870. </span>
  3871. </el-dialog>
  3872. <!-- 调整险种弹窗 -->
  3873. <el-dialog title="调整险种" :visible.sync="typeDialogVisible" width="60%" top="5vh" :before-close="handleCloseType">
  3874. <div class="typedialog-style addyiwai typedialog-style1" v-if="productId != '034001' && productId != '034002'">
  3875. <div class="typedialog-title"><i class="el-icon-circle-check"
  3876. style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>交通事故强制责任险:</div>
  3877. <el-table :data="typeJqTable" border style="width: 100%" stripe header-cell-class-name="table-header">
  3878. <el-table-column prop="date" label="保障范围" align="center"></el-table-column>
  3879. <el-table-column prop="date1" label="保额(元)" align="center"></el-table-column>
  3880. <!-- <el-table-column prop="date2" label="总计" align="center"></el-table-column> -->
  3881. </el-table>
  3882. </div>
  3883. <div class="typedialog-style addyiwai typedialog-style2" v-if="productId != '0330'">
  3884. <!-- 商业险 -->
  3885. <div class="typedialog-title"><i class="el-icon-circle-check"
  3886. style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>商业险详情:</div>
  3887. <div class="flex f-c">
  3888. <div class="flex j-s a-c more-title back">
  3889. <div style="width: 550px; padding-left: 100px" class="flex j-s a-c">
  3890. <span>险别</span>
  3891. <span>保额(元)</span>
  3892. </div>
  3893. </div>
  3894. <div class="a-c back" v-for="(insureitem, insureindex) in typeDialogData.kinds" :key="insureindex">
  3895. <el-row style="background: #FFF;" type="flex" align="middle">
  3896. <el-col :span="10" class="more-data-left">
  3897. <div class="zhuxian" v-if="insureitem.grouping == 'main'" style="background: #Y0282A">主险</div>
  3898. <div class="zhuxian" v-if="insureitem.grouping == 'additional'">附加险</div>
  3899. <div class="zhuxian" v-if="insureitem.grouping == 'service'">增值服务</div>
  3900. <span>
  3901. <el-checkbox v-model="insureitem.checked" :disabled="insureitem.Required">
  3902. <!-- <span :class="insureitem.grouping != 'additional' ? 'opacity1' : 'opacity0'">{{ insureitem.kindName }}</span> -->
  3903. <span class="opacity1">{{ insureitem.kindName }}</span>
  3904. <el-input v-show="insureitem.kindCode == 'D4' ||
  3905. insureitem.kindCode == 'MJ4' ||
  3906. insureitem.kindCode == 'SY_FJ_YBW2'
  3907. " v-model="sumseatCount" style="width: 40px; margin: 0 5px" size="small" placeholder
  3908. disabled></el-input>
  3909. <span v-show="insureitem.kindCode == 'D4' ||
  3910. insureitem.kindCode == 'MJ4' ||
  3911. insureitem.kindCode == 'SY_FJ_YBW2'
  3912. ">座</span>
  3913. </el-checkbox>
  3914. </span>
  3915. </el-col>
  3916. <el-col :span="14" class="more-data-right">
  3917. <el-select v-if="insureitem.amtList" filterable v-model="insureitem.amount" placeholder="请选择"
  3918. @change="insureitemChange($event, insureitem)" size="small" style="width: 300px">
  3919. <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
  3920. :key="index"></el-option>
  3921. </el-select>
  3922. <span v-else>
  3923. <el-input-number size="small" style="width: 280px; margin-right: 10px" v-model="insureitem.amount"
  3924. :min="0"></el-input-number>次
  3925. </span>
  3926. </el-col>
  3927. </el-row>
  3928. </div>
  3929. </div>
  3930. </div>
  3931. <div class="typedialog-style addyiwai typedialog-style3">
  3932. <!-- <div class="typedialog-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险详情:</div> -->
  3933. <div class="typedialog-style">
  3934. <div class="flex a-c" style="margin-bottom: 20px;">
  3935. <div class="typedialog-title addyiwai-title"><i class="el-icon-circle-check"
  3936. style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险方案配置:</div>
  3937. <div v-if="false" class="addyiwai-title-btn">添加配置</div>
  3938. </div>
  3939. <div v-if="true">
  3940. <div v-for="(listItem, listIndex) in jiayiDialogData.drivingTypeList" :key="listIndex"
  3941. v-show="listIndex == 0">
  3942. <el-checkbox-group v-model="checkList" @change="handleChangeJiayi(listItem, listIndex)">
  3943. <el-checkbox v-for="(item, index) in listItem.children" :key="index" :label="item">{{ item.typeName
  3944. }}</el-checkbox>
  3945. </el-checkbox-group>
  3946. <div v-for="(item, index) in checkList" :key="index" style="margin-bottom: 20px;">
  3947. <div v-if="totalCompanyList[typeDialogIndex].cnName == 'zijin'">
  3948. <el-row style="margin-bottom: 20px;">
  3949. <el-col :span="10">
  3950. {{ item.typeName }}
  3951. <el-select v-if="item.detail" style="width: 300px;" v-model="item.selectList" clearable multiple
  3952. @change="handleChangeSelect(index)" size="small" placeholder="请选择">
  3953. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.alias" :value="i.alias">
  3954. </el-option>
  3955. </el-select>
  3956. </el-col>
  3957. </el-row>
  3958. <div v-for="(dataItem, dataIndex) in item.tableData" :key="dataIndex">
  3959. <el-col :span="6">
  3960. 份数
  3961. <el-input v-model="dataItem.quantity" style="width: 120px;" size="small"
  3962. @input="(e) => { changeInput(e, listIndex, index, 'minus', item.tableData.minQuantity) }">
  3963. <template slot="prepend"><i class="el-icon-minus"
  3964. @click="numberChange(listIndex, index, 'minus', dataItem.minQuantity, dataIndex)"></i></template>
  3965. <template slot="append"><i class="el-icon-plus"
  3966. @click="numberChange(listIndex, index, 'plus', dataItem.minQuantity, dataIndex)"></i></template>
  3967. </el-input>
  3968. 份
  3969. </el-col>
  3970. <el-col v-if="item.tableData" :span="4" class="flex a-c">保费:{{ Number(dataItem.sumPremium) *
  3971. dataItem.quantity }}元</el-col>
  3972. </div>
  3973. <el-table v-if="item.tableData && item.tableData.length" :data="item.tableData" border
  3974. style="width: 100%; margin-top: 20px;" stripe header-cell-class-name="table-header">
  3975. <el-table-column prop="name" label="保险责任" align="center">
  3976. <template slot-scope="scope">
  3977. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].name }}</span>
  3978. </template>
  3979. </el-table-column>
  3980. <el-table-column prop="amount" label="保险金额" align="center">
  3981. <template slot-scope="scope">
  3982. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].amount }}</span>
  3983. </template>
  3984. </el-table-column>
  3985. <el-table-column prop="premium" label="保费(元)" align="center">
  3986. <template slot-scope="scope">
  3987. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].premium }}</span>
  3988. </template>
  3989. </el-table-column>
  3990. <el-table-column prop="quantity" label="份数" align="center"></el-table-column>
  3991. <el-table-column prop="sumPremium" label="总保费" align="center"></el-table-column>
  3992. </el-table>
  3993. </div>
  3994. <div v-else>
  3995. <!-- totalCompanyList[typeDialogIndex].cnName == 'guoRen' || totalCompanyList[typeDialogIndex].cnName == 'ansheng' || totalCompanyList[typeDialogIndex].cnName == 'dajia' -->
  3996. <el-row v-if="false">
  3997. <el-col :span="8">
  3998. {{ item.typeName }}
  3999. <el-select v-model="item.select" style="width: 400px;" clearable
  4000. @change="handleChangeSelectGuoren(index)" size="small" placeholder="请选择" v-if="item.detail">
  4001. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.alias" :value="i.alias">
  4002. </el-option>
  4003. </el-select>
  4004. </el-col>
  4005. <el-col :span="5">
  4006. <el-select v-model="item.select1" clearable @change="handleChangeSelect(index)" size="small"
  4007. placeholder="请选择" v-if="item.tableData1">
  4008. <el-option v-for="(i, ind) in item.tableData1" :key="ind" :label="i.alias" :value="i.alias">
  4009. </el-option>
  4010. </el-select>
  4011. </el-col>
  4012. <el-col :span="6" v-if="item.tableData">
  4013. 份数
  4014. <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" size="small"></el-input-number> -->
  4015. <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small"
  4016. @input="(e) => { changeInput(e, listIndex, index, 'minus', item.tableData.minQuantity) }">
  4017. <template slot="prepend"><i class="el-icon-minus"
  4018. @click="numberChange(listIndex, index, 'minus', item.tableData.minQuantity)"></i></template>
  4019. <template slot="append"><i class="el-icon-plus"
  4020. @click="numberChange(listIndex, index, 'plus', item.tableData.minQuantity)"></i></template>
  4021. </el-input>
  4022. 份
  4023. </el-col>
  4024. <el-col v-if="item.tableData" :span="4">保费:{{ Number(item.tableData.sumPremium) *
  4025. item.tableData.quantity }}元</el-col>
  4026. <!-- <el-col :span="1"><i class="el-icon-delete"></i></el-col> -->
  4027. </el-row>
  4028. <el-row v-else>
  4029. <el-col :span="12">
  4030. {{ item.typeName }}
  4031. <el-select v-model="item.select" style="width: 400px;" clearable
  4032. @change="handleChangeSelect(index)" size="small" placeholder="请选择" v-if="item.detail">
  4033. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.alias" :value="i.alias">
  4034. </el-option>
  4035. </el-select>
  4036. </el-col>
  4037. <el-col :span="6" v-if="item.tableData">
  4038. 份数
  4039. <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" label="描述文字" size="small"></el-input-number> -->
  4040. <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small"
  4041. @input="(e) => { changeInput(e, listIndex, index, 'minus', item.tableData.minQuantity) }">
  4042. <template slot="prepend"><i class="el-icon-minus"
  4043. @click="numberChange(listIndex, index, 'minus', item.tableData.minQuantity)"></i></template>
  4044. <template slot="append"><i class="el-icon-plus"
  4045. @click="numberChange(listIndex, index, 'plus', item.tableData.minQuantity)"></i></template>
  4046. </el-input>
  4047. 份
  4048. </el-col>
  4049. <el-col v-if="item.tableData" :span="4" class="flex a-c">保费:{{ Number(item.tableData.sumPremium) *
  4050. item.tableData.quantity }}元</el-col>
  4051. <!-- <el-col :span="1"><i class="el-icon-delete"></i></el-col> -->
  4052. </el-row>
  4053. <el-table v-if="item.tableData" :data="item.tableData.insDrivingIntentionInsuranceSon" border
  4054. style="width: 100%; margin-top: 20px;" stripe header-cell-class-name="table-header">
  4055. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  4056. <el-table-column prop="amount" label="保险金额" align="center"></el-table-column>
  4057. <el-table-column prop="premium" label="保费(元)" align="center"></el-table-column>
  4058. </el-table>
  4059. </div>
  4060. </div>
  4061. </div>
  4062. </div>
  4063. <div v-else>
  4064. <div v-for="(item, index) in 3" :key="index" style="margin-bottom: 20px;">
  4065. <el-row style="margin-bottom: 20px;">
  4066. <el-col :span="10">
  4067. 驾意选择
  4068. <!-- v-model="value" -->
  4069. <el-select size="small" clearable placeholder="请选择">
  4070. <el-option v-for="item in 3" :key="item.value" :label="22" :value="22">
  4071. </el-option>
  4072. </el-select>
  4073. </el-col>
  4074. <el-col :span="9">
  4075. 份数
  4076. <el-input-number label="描述文字" size="small"></el-input-number>
  4077. 份
  4078. </el-col>
  4079. <el-col :span="4">保费:15元</el-col>
  4080. <el-col :span="1"><i class="el-icon-delete"></i></el-col>
  4081. </el-row>
  4082. <el-table :data="item.table" border style="width: 100%" stripe header-cell-class-name="table-header">
  4083. <el-table-column prop="date" label="保险责任" align="center"></el-table-column>
  4084. <el-table-column prop="date1" label="保险金额" align="center"></el-table-column>
  4085. <el-table-column prop="date2" label="保费(元)" align="center"></el-table-column>
  4086. </el-table>
  4087. </div>
  4088. </div>
  4089. </div>
  4090. </div>
  4091. <span slot="footer" class="dialog-footer">
  4092. <el-button size="small" @click="handleCloseType">取 消</el-button>
  4093. <el-button size="small" type="primary" @click="subTypeDialog">确 定</el-button>
  4094. </span>
  4095. </el-dialog>
  4096. <!-- 驾意险 -->
  4097. <el-dialog title="驾意险" :visible.sync="addYiwaiDialogVisible" width="60%" top="5vh"
  4098. :before-close="handleCloseAddYiwai" class="addyiwai">
  4099. <div class="typedialog-style">
  4100. <el-card>
  4101. <div class="flex a-c" style="margin-bottom: 20px;">
  4102. <div class="addyiwai-title">驾意险方案配置</div>
  4103. <div v-if="false" class="addyiwai-title-btn">添加配置</div>
  4104. </div>
  4105. <div v-if="true">
  4106. <div v-for="(listItem, listIndex) in jiayiDialogData.drivingTypeList" :key="listIndex">
  4107. <el-checkbox-group v-model="checkList" @change="handleChangeJiayi(listItem, listIndex)">
  4108. <el-checkbox v-for="(item, index) in listItem.children" :key="index" :label="item">{{ item.typeName
  4109. }}</el-checkbox>
  4110. </el-checkbox-group>
  4111. <div v-for="(item, index) in checkList" :key="index" style="margin-bottom: 20px;">
  4112. <div v-if="totalCompanyList[typeDialogIndex].cnName == 'zijin'">
  4113. <el-row style="margin-bottom: 20px;">
  4114. <el-col :span="10">
  4115. {{ item.typeName }}
  4116. <el-select v-if="item.detail" v-model="item.selectList" clearable multiple
  4117. @change="handleChangeSelect(index)" size="small" placeholder="请选择">
  4118. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.projectName"
  4119. :value="i.projectName">
  4120. </el-option>
  4121. </el-select>
  4122. </el-col>
  4123. </el-row>
  4124. <el-table v-if="item.tableData" :data="item.tableData" border style="width: 100%; margin-top: 20px;"
  4125. stripe header-cell-class-name="table-header">
  4126. <el-table-column prop="name" label="保险责任" align="center">
  4127. <template slot-scope="scope">
  4128. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].name }}</span>
  4129. </template>
  4130. </el-table-column>
  4131. <el-table-column prop="amount" label="保险金额" align="center">
  4132. <template slot-scope="scope">
  4133. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].amount }}</span>
  4134. </template>
  4135. </el-table-column>
  4136. <el-table-column prop="premium" label="保费(元)" align="center">
  4137. <template slot-scope="scope">
  4138. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].premium }}</span>
  4139. </template>
  4140. </el-table-column>
  4141. <el-table-column prop="quantity" label="份数" align="center"></el-table-column>
  4142. <el-table-column prop="sumPremium" label="总保费" align="center"></el-table-column>
  4143. </el-table>
  4144. </div>
  4145. <div v-else>
  4146. <!-- totalCompanyList[typeDialogIndex].cnName == 'guoRen' || totalCompanyList[typeDialogIndex].cnName == 'ansheng' -->
  4147. <el-row v-if="false">
  4148. <el-col :span="8">
  4149. {{ item.typeName }}
  4150. <el-select v-model="item.select" clearable @change="handleChangeSelectGuoren(index)" size="small"
  4151. placeholder="请选择" v-if="item.detail">
  4152. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.alias" :value="i.alias">
  4153. </el-option>
  4154. </el-select>
  4155. </el-col>
  4156. <el-col :span="5">
  4157. <el-select v-model="item.select1" clearable @change="handleChangeSelect(index)" size="small"
  4158. placeholder="请选择" v-if="item.tableData1">
  4159. <el-option v-for="(i, ind) in item.tableData1" :key="ind" :label="i.alias" :value="i.alias">
  4160. </el-option>
  4161. </el-select>
  4162. </el-col>
  4163. <el-col :span="6" v-if="item.tableData">
  4164. 份数
  4165. <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" size="small"></el-input-number> -->
  4166. <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small"
  4167. @input="(e) => { changeInput(e, listIndex, index, 'minus', item.tableData.minQuantity) }">
  4168. <template slot="prepend"><i class="el-icon-minus"
  4169. @click="numberChange(listIndex, index, 'minus', item.tableData.minQuantity)"></i></template>
  4170. <template slot="append"><i class="el-icon-plus"
  4171. @click="numberChange(listIndex, index, 'plus', item.tableData.minQuantity)"></i></template>
  4172. </el-input>
  4173. 份
  4174. </el-col>
  4175. <el-col v-if="item.tableData" :span="4">保费:{{ Number(item.tableData.sumPremium) *
  4176. item.tableData.quantity }}元</el-col>
  4177. <!-- <el-col :span="1"><i class="el-icon-delete"></i></el-col> -->
  4178. </el-row>
  4179. <el-row v-else>
  4180. <el-col :span="10">
  4181. {{ item.typeName }}
  4182. <el-select v-model="item.select" clearable @change="handleChangeSelect(index)" size="small"
  4183. placeholder="请选择" v-if="item.detail">
  4184. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.projectName"
  4185. :value="i.projectName">
  4186. </el-option>
  4187. </el-select>
  4188. </el-col>
  4189. <el-col :span="9" v-if="item.tableData">
  4190. 份数
  4191. <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" label="描述文字" size="small"></el-input-number> -->
  4192. <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small"
  4193. @input="(e) => { changeInput(e, listIndex, index, 'minus', item.tableData.minQuantity) }">
  4194. <template slot="prepend"><i class="el-icon-minus"
  4195. @click="numberChange(listIndex, index, 'minus', item.tableData.minQuantity)"></i></template>
  4196. <template slot="append"><i class="el-icon-plus"
  4197. @click="numberChange(listIndex, index, 'plus', item.tableData.minQuantity)"></i></template>
  4198. </el-input>
  4199. 份
  4200. </el-col>
  4201. <el-col v-if="item.tableData" :span="4">保费:{{ Number(item.tableData.sumPremium) *
  4202. item.tableData.quantity }}元</el-col>
  4203. <!-- <el-col :span="1"><i class="el-icon-delete"></i></el-col> -->
  4204. </el-row>
  4205. <el-table v-if="item.tableData" :data="item.tableData.insDrivingIntentionInsuranceSon" border
  4206. style="width: 100%; margin-top: 20px;" stripe header-cell-class-name="table-header">
  4207. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  4208. <el-table-column prop="amount" label="保险金额" align="center"></el-table-column>
  4209. <el-table-column prop="premium" label="保费(元)" align="center"></el-table-column>
  4210. </el-table>
  4211. </div>
  4212. </div>
  4213. </div>
  4214. </div>
  4215. <div v-else>
  4216. <div v-for="(item, index) in 3" :key="index" style="margin-bottom: 20px;">
  4217. <el-row style="margin-bottom: 20px;">
  4218. <el-col :span="10">
  4219. 驾意选择
  4220. <!-- v-model="value" -->
  4221. <el-select size="small" clearable placeholder="请选择">
  4222. <el-option v-for="item in 3" :key="item.value" :label="22" :value="22">
  4223. </el-option>
  4224. </el-select>
  4225. </el-col>
  4226. <el-col :span="9">
  4227. 份数
  4228. <el-input-number label="描述文字" size="small"></el-input-number>
  4229. 份
  4230. </el-col>
  4231. <el-col :span="4">保费:15元</el-col>
  4232. <el-col :span="1"><i class="el-icon-delete"></i></el-col>
  4233. </el-row>
  4234. <el-table :data="item.table" border style="width: 100%" stripe header-cell-class-name="table-header">
  4235. <el-table-column prop="date" label="保险责任" align="center"></el-table-column>
  4236. <el-table-column prop="date1" label="保险金额" align="center"></el-table-column>
  4237. <el-table-column prop="date2" label="保费(元)" align="center"></el-table-column>
  4238. </el-table>
  4239. </div>
  4240. </div>
  4241. </el-card>
  4242. </div>
  4243. <span slot="footer" class="dialog-footer">
  4244. <el-button size="small" @click="handleCloseAddYiwai">取 消</el-button>
  4245. <el-button size="small" type="primary" @click="handleAddYiWai">确 定</el-button>
  4246. </span>
  4247. </el-dialog>
  4248. <!-- 详情 -->
  4249. <el-dialog :title="detailJiaYiTitle" :visible.sync="showDetailJiaYiVisible" width="60%" top="5vh"
  4250. :before-close="handleCloseShowDetailJiaYi">
  4251. <div class="typedialog-style addyiwai typedialog-style1"
  4252. v-if="productId != '034001' && productId != '034002' && detailJiaYiTitle == '查看详情'">
  4253. <div class="typedialog-title"><i class="el-icon-circle-check"
  4254. style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>交通事故强制责任险:</div>
  4255. <el-table :data="typeJqTable" border style="width: 100%" stripe header-cell-class-name="table-header">
  4256. <el-table-column prop="date" label="保障范围" align="center"></el-table-column>
  4257. <el-table-column prop="date1" label="保额(元)" align="center"></el-table-column>
  4258. </el-table>
  4259. </div>
  4260. <div class="typedialog-style typedialog-style2" v-if="productId != '0330' && detailJiaYiTitle == '查看详情'">
  4261. <div class="typedialog-title"><i class="el-icon-circle-check"
  4262. style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>商业险详情:</div>
  4263. <div class="a-c back">
  4264. <el-row style="background: #F7F7F9;">
  4265. <el-col :span="10" class="more-data-left">险别</el-col>
  4266. <el-col :span="14" class="more-data-right">保额(元)</el-col>
  4267. </el-row>
  4268. <el-row style="background: #FFF;" v-for="(insureitem, insureindex) in typeDialogData.shangyeList"
  4269. :key="insureindex">
  4270. <el-col :span="10" class="more-data-left">
  4271. <div class="zhuxian" v-if="insureitem.grouping == 'main'" style="background: #Y0282A">主险</div>
  4272. <div class="zhuxian" v-if="insureitem.grouping == 'additional'">附加险</div>
  4273. <div class="zhuxian" v-if="insureitem.grouping == 'service'">增值服务</div>
  4274. <span>
  4275. <span class="opacity1">{{ insureitem.kindName }}</span>
  4276. <el-input v-show="insureitem.kindCode == 'D4' ||
  4277. insureitem.kindCode == 'MJ4' ||
  4278. insureitem.kindCode == 'SY_FJ_YBW2'
  4279. " v-model="sumseatCount" style="width: 40px; margin: 0 5px" size="mini" placeholder
  4280. disabled></el-input>
  4281. <span v-show="insureitem.kindCode == 'D4' ||
  4282. insureitem.kindCode == 'MJ4' ||
  4283. insureitem.kindCode == 'SY_FJ_YBW2'
  4284. ">座</span>
  4285. </span>
  4286. </el-col>
  4287. <el-col :span="14" class="more-data-right">
  4288. {{ toWan(insureitem.amount) }}
  4289. </el-col>
  4290. </el-row>
  4291. <div v-show="typeDialogData && typeDialogData.shangyeList && !typeDialogData.shangyeList.length">暂无</div>
  4292. </div>
  4293. </div>
  4294. <div class="typedialog-style typedialog-style3" v-if="showDetailtable && showDetailtable.length">
  4295. <div class="typedialog-title" style="display: flex; justify-content: space-between;">
  4296. <div><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险详情:
  4297. </div>
  4298. <div class="typedialog-title">( 驾驶人意外单份保额 )如下</div>
  4299. </div>
  4300. <el-table v-for="(item, index) in showDetailtable" :key="index" :data="item" border style="width: 100%" stripe
  4301. header-cell-class-name="table-header">
  4302. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  4303. <el-table-column prop="amount" label="保额(元)" align="center"></el-table-column>
  4304. <el-table-column prop="premium" label="保费(元)" align="center"></el-table-column>
  4305. </el-table>
  4306. <div v-if="showDetailtable && !showDetailtable.length">暂无</div>
  4307. <div class="typedialog-title" v-if="detailJiaYiTitle == '查看详情'">已选份数:</div>
  4308. <div class="jiayi-style" v-if="detailJiaYiTitle == '查看详情'">
  4309. <el-row v-for="(item, index) in typeDialogData.drivingList" :key="index">
  4310. <el-col :span="10">
  4311. <div class="jiayi-style-title">产品名称</div>
  4312. <div class="jiayi-style-line">{{ item.alias || item.projectName }}</div>
  4313. </el-col>
  4314. <!-- <el-col :span="6">
  4315. <div class="jiayi-style-title">座位数</div>
  4316. <div class="jiayi-style-line">{{ }}</div>
  4317. </el-col> -->
  4318. <el-col :span="6">
  4319. <div class="jiayi-style-title">份数</div>
  4320. <div class="jiayi-style-line">{{ item.quantity }}</div>
  4321. </el-col>
  4322. <el-col :span="3">
  4323. <div class="jiayi-style-title">每份</div>
  4324. <div class="jiayi-style-line">{{ item.sumPremium }}</div>
  4325. </el-col>
  4326. <el-col :span="3">
  4327. <div class="jiayi-style-title">合计</div>
  4328. <div class="jiayi-style-line">{{ Number(item.sumPremium) * item.quantity }}</div>
  4329. </el-col>
  4330. </el-row>
  4331. <div v-if="typeDialogData && typeDialogData.drivingList && !typeDialogData.drivingList.length">暂无</div>
  4332. </div>
  4333. </div>
  4334. <span slot="footer" class="dialog-footer">
  4335. <!-- <el-button size="small" @click="handleCloseShowDetailJiaYi">取 消</el-button> -->
  4336. <el-button size="small" type="primary" @click="handleCloseShowDetailJiaYi">确 定</el-button>
  4337. </span>
  4338. </el-dialog>
  4339. <!-- 驾意险详情 -->
  4340. <el-dialog :title="detailJiaYiTitle" :visible.sync="showDetailJiaYiVisible1" width="60%" top="5vh" v-dialogDrag
  4341. :before-close="handleCloseShowDetailJiaYi">
  4342. <div class="typedialog-style typedialog-style3" v-if="showDetailtable && showDetailtable.length">
  4343. <div class="typedialog-title" style="display: flex; justify-content: space-between;">
  4344. <div><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险详情:
  4345. </div>
  4346. <div class="typedialog-title">( 驾驶人意外单份保额 )如下</div>
  4347. </div>
  4348. <el-table v-for="(item, index) in showDetailtable" :key="index" :data="item" border style="width: 100%" stripe
  4349. header-cell-class-name="table-header">
  4350. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  4351. <el-table-column prop="amount" label="保额(元)" align="center"></el-table-column>
  4352. <el-table-column prop="premium" label="保费(元)" align="center"></el-table-column>
  4353. </el-table>
  4354. <div v-if="showDetailtable && !showDetailtable.length">暂无</div>
  4355. </div>
  4356. <span slot="footer" class="dialog-footer">
  4357. <!-- <el-button size="small" @click="handleCloseShowDetailJiaYi">取 消</el-button> -->
  4358. <el-button size="small" type="primary" @click="handleCloseShowDetailJiaYi">确 定</el-button>
  4359. </span>
  4360. </el-dialog>
  4361. <!-- 选择特约 showTeYueVisible -->
  4362. <el-dialog title="选择特约" :visible.sync="showTeYueVisible" width="40%" top="5vh" :before-close="handleCloseTeYue"
  4363. class="teYuedialog-style">
  4364. <div>
  4365. <!-- <el-input placeholder="请输入内容" style="margin-bottom: 20px;">
  4366. <el-button type="primary" slot="append" icon="el-icon-search"></el-button>
  4367. </el-input> -->
  4368. <el-table :data="teYueTable" style="width: 100%" stripe header-cell-class-name="table-header">
  4369. <el-table-column type="selection" width="55"></el-table-column>
  4370. <el-table-column type="expand">
  4371. <!-- <template slot-scope="props">
  4372. <div class="table-title">特约内容</div>
  4373. <div class="table-title">保险公司温馨提示:根据车船税征收管理规定,次年生效交强险业务如本年提前续保,请您仍须在下一年度年底前完成跨年提前续保并缴纳车船税,否则会产生车船税滞纳金。</div>
  4374. </template> -->
  4375. </el-table-column>
  4376. <el-table-column prop="date" label="特约名称" align="center">
  4377. </el-table-column>
  4378. <el-table-column prop="date1" label="特约险种" align="center"></el-table-column>
  4379. <el-table-column prop="date2" label="特约代码" align="center"></el-table-column>
  4380. </el-table>
  4381. </div>
  4382. <span slot="footer" class="dialog-footer">
  4383. <span>已选择了 <b style="color: #F96646;"> 1</b> 条特约</span>
  4384. <span style="flex: 1;"></span>
  4385. <el-button size="small" @click="showTeYueVisible = false">取 消</el-button>
  4386. <el-button size="small" type="primary" @click="showTeYueVisible = false">确 定</el-button>
  4387. </span>
  4388. </el-dialog>
  4389. <floatingBar />
  4390. <!-- 生成验车二维码 -->
  4391. <el-dialog :visible.sync="validateCarCodeShow" width="30%" title="验车二维码">
  4392. <div class="QRCode" ref="myQrcode"></div>
  4393. </el-dialog>
  4394. </div>
  4395. </template>
  4396. <script>
  4397. import QrCode from "qrcodejs2";
  4398. let _self;
  4399. import Cookies from "js-cookie";
  4400. import CommonUtil from "@/utils/comutil.js";
  4401. import floatingBar from "@/components/customerService/floatingBar.vue";
  4402. import {
  4403. getAgeByIdCard,
  4404. searchkey,
  4405. addressCode,
  4406. getGenderByIdCard
  4407. } from "@/utils/validate.js";
  4408. import citydata from "@/assets/js/citydata.js";
  4409. import yongchengData from "../../../assets/js/yongchengData";
  4410. import { regionData, codeToText } from "element-china-area-data";
  4411. import { base64ToPath } from "@/common/image-tools-base64.js";
  4412. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  4413. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  4414. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  4415. import imageDialog from "@/views/Core/components/imageDialog.vue";
  4416. import { mapState } from "vuex";
  4417. import Ktletter1Popover from "./components/LetterPopover.vue";
  4418. import dayjs from "dayjs";
  4419. export default {
  4420. inject: ["reload"],
  4421. name: "qrCode",
  4422. data() {
  4423. var checkpurchasePrice = (rule, value, callback) => {
  4424. if (!value) {
  4425. callback(new Error("新车购置价不能为空"));
  4426. } else if (value == 0) {
  4427. callback(new Error("新车购置价不能为零"));
  4428. } else {
  4429. callback();
  4430. }
  4431. };
  4432. var checkframeNo = (rule, value, callback) => {
  4433. if (value.length < 17) {
  4434. callback(new Error("车架号不足17位"));
  4435. } else if (
  4436. value.indexOf("I") != "-1" ||
  4437. value.indexOf("O") != "-1" ||
  4438. value.indexOf("Q") != "-1"
  4439. ) {
  4440. callback(new Error("车架号不能包含(I O Q)三个字母"));
  4441. } else {
  4442. callback();
  4443. }
  4444. };
  4445. var carPhoneValid = (rule, value, callback) => {
  4446. 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})$/;
  4447. if (!value) {
  4448. callback(new Error("请输入车牌号"));
  4449. } else if (plateNumber.test(value)) {
  4450. callback();
  4451. } else {
  4452. callback(new Error("请输入正确的车牌号"));
  4453. }
  4454. };
  4455. var validateRight = (rule, value, callback) => {
  4456. if (!value) {
  4457. callback(new Error("请选择能源种类"));
  4458. } else if (this.carInfo.licenseNo.length === 8 && value === "0") {
  4459. callback(new Error("能源类型错误,请重新选择!"));
  4460. } else {
  4461. callback();
  4462. }
  4463. };
  4464. return {
  4465. validateCarCodeShow: false,
  4466. vehicleInspectionUrl: "",
  4467. colSpan: {
  4468. xs: 24, // 超小屏幕
  4469. sm: 12, // 小屏幕
  4470. md: 12, // 中屏幕
  4471. lg: 6, // 大屏幕
  4472. xl: 6 // 超大屏幕
  4473. },
  4474. colgutter: 80,
  4475. productList: [], // 产品id列表
  4476. productId: "", // 产品id
  4477. // 选择特约
  4478. teYueTable: [{}, {}],
  4479. showTeYueVisible: false,
  4480. // 驾意险详情
  4481. jiayiDialogData: {},
  4482. showDetailJiaYiVisible: false,
  4483. showDetailJiaYiVisible1: false,
  4484. showDetailtable: [],
  4485. // 添加驾意险
  4486. checkList: [],
  4487. addYiwaiDialogVisible: false,
  4488. typeJqTable: [
  4489. { date: "死亡伤残赔偿", date1: 180000 },
  4490. { date: "医疗费用赔偿", date1: 18000 },
  4491. { date: "财产损失赔偿", date1: 2000 }
  4492. ], // 调整险种交强险表格
  4493. typeDialogVisible: false, // 调整险种弹窗
  4494. typeDialogData: [], // 调整险种弹窗商业险
  4495. typeDialogIndex: 0, // 当前 调整险种弹窗 index
  4496. inquiryNowList: [], // 现询列表
  4497. isInquiryNowDisable: false,
  4498. taikangtemplateSelection: [], // 泰康
  4499. taikangInsuranceDataTable: [],
  4500. taikangaccidentDataList: [],
  4501. accidentPremiumTk: "",
  4502. accidentPremiumPA: "",
  4503. accidentFormTk: {
  4504. quantity: "1",
  4505. sumPremium: 0
  4506. },
  4507. pinganDataDetail: [],
  4508. pinganDataDetailVisible: false,
  4509. accidentFormPA: [
  4510. {
  4511. quantity: "1",
  4512. premium: 0,
  4513. pingantemplateSelection: "",
  4514. pinganInsuranceDataTable: [],
  4515. pinganInsurancetype: ""
  4516. },
  4517. {
  4518. quantity: "1",
  4519. premium: 0,
  4520. pingantemplateSelection: "",
  4521. pinganInsuranceDataTable: [],
  4522. pinganInsurancetype: ""
  4523. },
  4524. {
  4525. quantity: "1",
  4526. premium: 0,
  4527. pingantemplateSelection: "",
  4528. pinganInsuranceDataTable: [],
  4529. pinganInsurancetype: ""
  4530. }
  4531. ],
  4532. taikangaccidentalDrivingVo: {},
  4533. pinganaccidentalDrivingVo: {
  4534. 0: {},
  4535. 1: {},
  4536. 2: []
  4537. },
  4538. nowCostsId: undefined, // 现询
  4539. policyNumberForm: {
  4540. jqpolicyno: "",
  4541. sypolicyno: "",
  4542. jypolicyno: "",
  4543. jqpremium: "",
  4544. sypremium: "",
  4545. jypremium: "",
  4546. taxamount: "",
  4547. commissionFeevalue: "",
  4548. otherFeevalue: "",
  4549. jqSuperviseCostsProportion: "",
  4550. sySuperviseCostsProportion: "",
  4551. noSuperviseCostsProportion: "",
  4552. jqOtherCostsProportion: "",
  4553. syOtherCostsProportion: "",
  4554. noOtherCostsProportion: "",
  4555. jqReceivableProportion: "",
  4556. syReceivableProportion: "",
  4557. noReceivableProportion: "",
  4558. jqPolicyList: [],
  4559. syPolicyList: [],
  4560. jqSignList: [],
  4561. noPolicyList: [],
  4562. noCostsProportion: "",
  4563. jqCostsProportion: "",
  4564. syCostsProportion: ""
  4565. },
  4566. watermarkedImage: "",
  4567. redictInfoMsg: [],
  4568. redictInfodialogVisible: false,
  4569. qrcodeWidth: "180",
  4570. qrcodeHeight: "180",
  4571. activeName: "1",
  4572. isTaxSourceModel: "",
  4573. tabLiIndex: 0,
  4574. tabLimenu: [
  4575. {
  4576. name: "车辆信息",
  4577. scroll: "vehicle"
  4578. },
  4579. {
  4580. name: "车主信息",
  4581. scroll: "owner"
  4582. },
  4583. {
  4584. name: "投保人信息",
  4585. scroll: "applicant"
  4586. },
  4587. {
  4588. name: "被保人信息",
  4589. scroll: "insured"
  4590. },
  4591. {
  4592. name: "关系证明",
  4593. scroll: "relationship"
  4594. },
  4595. {
  4596. name: "验车照",
  4597. scroll: "yanchezhao"
  4598. },
  4599. {
  4600. name: "上年商业险保单",
  4601. scroll: "snbaodan"
  4602. },
  4603. {
  4604. name: "授权书",
  4605. scroll: "shouquanshu"
  4606. }
  4607. ],
  4608. packageValue: "",
  4609. packageOptions: [],
  4610. zhongmeitemplateSelection: "", //中煤驾意险产品选中值
  4611. zhongmeiInsuranceData: [], //中煤驾意险产品列表数据
  4612. zhongmeiInsuranceDataTable: [], //中煤驾意险产品明细方案数据
  4613. zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
  4614. pinganInsuranceData: [], //平安驾意险产品列表数据
  4615. currentCell: null,
  4616. feeDetailInfo: [], //费用明细信息
  4617. immediatelyValue: false,
  4618. isRetractZJ: false,
  4619. isRetractHB: false,
  4620. isRetractZM: false,
  4621. isRetractASTP: false,
  4622. isRetractZA: false,
  4623. isRetractYC: false,
  4624. isRetractRS: false,
  4625. anshengInsurancetype: "",
  4626. iscCrownerShow: false,
  4627. isApplicantShow: false,
  4628. isInsuredShow: false,
  4629. formInline: {},
  4630. anshengtemplateSelection: "", //安盛
  4631. anshengInsuranceData: [], //安盛驾意险
  4632. anshengInsuranceDataTable: [], //安盛驾意险
  4633. anshengaccidentalDrivingVo: {}, //安盛驾意险
  4634. hengbangtemplateSelection: "", //恒邦
  4635. hengbangInsuranceData: [], //恒邦驾意险
  4636. hengbangInsuranceDataTable: [],
  4637. hengbangaccidentalDrivingVo: {}, //太平洋驾意险
  4638. taipingyangtemplateSelection: "", //太平洋
  4639. taipingyangInsuranceData: [], //太平洋驾意险
  4640. taipingyangInsuranceDataTable: [],
  4641. taipingyangaccidentalDrivingVo: {}, //太平洋驾意险
  4642. insuranceHN: "", //华农
  4643. huanongInsuranceData: [], //华农驾意险
  4644. huanongInsuranceDataTable: [],
  4645. huanongaccidentalDrivingVo: {}, //华农驾意险
  4646. renshouaccidentalDrivingVo: {}, //人寿意外险
  4647. renshouInsuranceData: [], //-人寿意外险list
  4648. ziJinInsuranceData: [], //-紫金意外险list
  4649. zhonganInsuranceData: [], //众安驾意险
  4650. zhonganaccidentalDrivingVo: {}, //众安驾意险
  4651. zijinInsuranceDataTable: [],
  4652. zijintemplateSelection: "",
  4653. accidentalDrivingVo: [], //-紫金意外险传参
  4654. zijinengageListData: [], //紫金特约
  4655. zijinengageList: [], //紫金特约
  4656. // ------------紫金意外险
  4657. renshoutemplateSelection: "", //人寿
  4658. renshouInsuranceDataTable: [],
  4659. zhongantemplateSelection: "", //众安
  4660. zhonganInsuranceDataTable: [],
  4661. taipingtemplateSelection: "", //太平
  4662. taipingInsuranceData: [], //太平驾意险
  4663. TPDrivingChangeInsuranceData: [],
  4664. taipingaccidentalDrivingVo: {}, //太平驾意险
  4665. licenseplate: true,
  4666. calculateLoading: false, //保费计算按钮 节流
  4667. preserveQuoteLoading: false, //保存按钮
  4668. emporaryLoading: false,
  4669. accidentForm: {
  4670. quantity: "1",
  4671. sumPremium: 0
  4672. }, //永诚意外险内容
  4673. accidentFormHN: {
  4674. allQuantity: "1",
  4675. quantity: "1"
  4676. }, //华农意外险内容
  4677. yongchengaccidentDataList: [], //永诚意外险
  4678. yongchengtemplateSelection: "",
  4679. guoRenaccidentDataList: [], //国任意外险
  4680. guoRenInsuranceDataTable: [],
  4681. guoRenaccidentDataListChild: [],
  4682. guoRenaccidentalDrivingVo: {}, //国任驾意险
  4683. dajiatemplateSelection: "",
  4684. dajiaaccidentDataListChild: [],
  4685. dajiaaccidentForm: {},
  4686. dajiaInsuranceData: [], //大家意外险
  4687. dajiaInsuranceDataTable: [],
  4688. dajiaaccidentalDrivingVo: {},
  4689. yongchengInsuranceDataTable: [],
  4690. guoRenaccidentLoading: false,
  4691. contributingLoading: false,
  4692. guoRenaccidentPremium: "",
  4693. guoRenaccidentForm: {
  4694. quantity: "1",
  4695. sumPremium: 0
  4696. }, //国任意外险内容
  4697. accidentFormZM: {
  4698. quantity: "1",
  4699. sumPremium: 0
  4700. }, //中煤意外险内容
  4701. boHaiaccidentDataList: [], //渤海意外险
  4702. boHaigtemplateSelection: "",
  4703. boHaiaccidentForm: {
  4704. copies: "1",
  4705. policyNum: 0
  4706. },
  4707. bohaiInsuranceDataTable: [],
  4708. accidentPremium: "",
  4709. accidentPremiumZM: "",
  4710. contributingState: false, //是否为国任特约
  4711. pickerOptions: {
  4712. disabledDate(time) {
  4713. //若选择的日期小于当前日期(包含今天)
  4714. return time.getTime() > Date.now();
  4715. //若选择的日期大于当前日期(不包含今天): time.getTime() < Date.now()
  4716. //若选择的日期小于当前日期(不包含今天): time.getTime() > Date.now() - 8.64e7
  4717. //若选择的日期小于等于当前日期(包含今天): time.getTime() > Date.now()
  4718. }
  4719. },
  4720. attributionform: {
  4721. //续保查询数据
  4722. configure: [],
  4723. companyId: ""
  4724. },
  4725. continuousAction: [], //续保配置项
  4726. //永诚转保确认码
  4727. cqryCdeJq: "",
  4728. cqryCdeSy: "",
  4729. renewalCodeJq: "", //交强确认码
  4730. renewalCodeSy: "", //商业确认码
  4731. renewalCodeJqImg: "", //交强图片
  4732. renewalCodeSyImg: "", //商业图片
  4733. //-----------------
  4734. showViewer: false,
  4735. transferDateShow: false, //转移登记日期
  4736. yonganchecked: false, //永安驾意险
  4737. renbaochecked: false, //人保驾意险
  4738. zhongmeichecked: false, //中煤驾意险
  4739. hengbangchecked: false, //恒邦驾意险
  4740. taipingyangchecked: false, //太平洋驾意险
  4741. yongchengchecked: false, //永诚驾意险
  4742. yonganDrivinglist: [],
  4743. renbaoDrivinglist: [],
  4744. zhongmeiDrivinglist: [],
  4745. hengbangDrivinglist: [],
  4746. taipingyangDrivinglist: [],
  4747. yongchengDrivinglist: [],
  4748. tbczcarShow: true, //投保人同车主
  4749. bbczcarShow: false, //被保人同车主
  4750. bbtbcarShow: true, //被保人同投保人
  4751. imageUploadShow: true, //上传影像显示
  4752. ProViewImg: "", //预览图片
  4753. carfrontImg: "", //行驶证正面
  4754. carbackImg: "", //行驶证背面
  4755. userfrontImg: "", //身份证正面
  4756. userbackImg: "", //身份证背面
  4757. businessImg: "",
  4758. CarFrontFile: "", //车正面文件流
  4759. CarBackFile: "", //车背面文件流
  4760. // C02File: "",
  4761. // D02File: "",
  4762. // C03File: "",
  4763. // D03File: "",
  4764. // C04File: "",
  4765. // D04File: "",
  4766. userIndex: 1, //区分三种人员
  4767. TabName: "car", //默认选项卡
  4768. value1: "",
  4769. chexingdialogVisible: false, //车型选择 显示/隐藏
  4770. sbdmdialogVisible: false, //车型车辆识别代码选择 显示/隐藏
  4771. codedialogVisible: false, //二维码 显示/隐藏
  4772. codedialogVisiblePro: false,
  4773. uploadcardialogVisible: false, //行驶证识别 显示/隐藏
  4774. uploaduserdialogVisible: false, //身份证识别 显示/隐藏
  4775. imageUploaddialogVisible: false, //影像上传 显示/隐藏
  4776. policyUploaddialogVisible: false, //保单上传
  4777. underwritingdialogVisible: false, //核保信息 显示/隐藏
  4778. renewalCodedialogVisible: false, //转保确认码输入
  4779. hbsubmitdialogVisible: false, //核保弹框
  4780. signaturedialogVisible: false, //生成签章
  4781. signaturecode: null,
  4782. Carinsurance: {
  4783. jqinsurance: "1", //交强险
  4784. syinsurance: "1" //商业险
  4785. },
  4786. jqchecked: true,
  4787. sychecked: false,
  4788. jqstartDate: "", //交强时间
  4789. jqendDate: "", //交强时间
  4790. systartDate: "", //商业时间
  4791. syendDate: "", //商业时间
  4792. loading: false, //加载事件
  4793. reslist: [], //车型列表
  4794. userId: "", //出单工号
  4795. carInfo: {
  4796. importFlag:"",//特种车类
  4797. powerScale: "", ///功率
  4798. licenseNo: "", //车牌号
  4799. brandName: "", //车辆品牌型号
  4800. vinNo: "", //车架号
  4801. engineNo: "", //发动机号
  4802. modelCode: "", //车型编码
  4803. seatCount: null, //核定载客量 核定载人数
  4804. purchasePrice: null, //新车购置价最低,行业实际价值,协商价值
  4805. carBrand: "", //车型品牌
  4806. ciCarName: "", //行业车型名称
  4807. ciModelCode: "", //行业车型编码
  4808. completeKerbMass: "", //整备质量
  4809. exhaustScale: "", //排量
  4810. factory: "", //工厂名称
  4811. factoryid: "", //工厂编码
  4812. frameNo: "", //车架号
  4813. licenseTypeCode: "02", //号牌种类
  4814. vehicleclass: "", //车辆类型
  4815. familyName: "", //车型
  4816. modelcname: "", //车型名称
  4817. powertypecode: "", //燃料类型编码
  4818. vehicleweight: "", //总质量
  4819. limitLoad: "", //核定载质量
  4820. caryear: null, //年款
  4821. cimodelclass: "A0", //车辆种类
  4822. energyType: "0", //能源类型
  4823. enginedesc: "", //排量
  4824. registerDate: "", //注册日期
  4825. issueDate: "", //发证日期
  4826. transferFlag: 0, //过户标志
  4827. transferFlagBi: false, //商业险是否过户
  4828. transferDate: "", //过户日期
  4829. loanStatus: 0, //贷款标志
  4830. firstBeneMan: "", //第一受益人
  4831. noLicenseFlag: false, //是否新车
  4832. cartype: "", //客车A0 货车H0
  4833. carnature: "02", //使用性质
  4834. vehicleUse: "05",
  4835. property: "1" //所属性质 1个人 2企业 3机关
  4836. },
  4837. carform: {
  4838. carOwner: "", //车主
  4839. licenseNo: "", //车牌号
  4840. modelcname: "", //车辆品牌型号
  4841. frameNo: "", //车架号
  4842. engineNo: "", //发动机号
  4843. registerDate: "", //注册日期
  4844. issueDate: "", //发证日期
  4845. grossMass: "", //总质量
  4846. unladenMass: "", //整备质量
  4847. limitLoad: "", //核定载质量
  4848. approvedPassengersCapacity: "" //核定载客数
  4849. },
  4850. ownerInfoform: {
  4851. name: "",
  4852. identifyType: "",
  4853. identifyNumber: "",
  4854. age: "", //年龄
  4855. gender: "", //性别
  4856. addr: "",
  4857. email: "",
  4858. mobile: "",
  4859. identifyValidDate: "", //有效期起期
  4860. identifyValidEndDate: "", //有效期止期
  4861. organizationCode: ""
  4862. // province: "",//省
  4863. // city: "",//市
  4864. // county: "",//县
  4865. },
  4866. riskList: [], //险种大类信息
  4867. kindList: [], //商业险险别
  4868. ownerInfo: {
  4869. //车主
  4870. name: "", //姓名
  4871. identifyType: "01", //身份证类型
  4872. identifyNumber: "", //身份证号
  4873. age: "", //年龄
  4874. gender: "", //性别
  4875. addr: "", //地址
  4876. email: "", //邮箱
  4877. mobile: "", //电话
  4878. organizationCode: "",
  4879. identifyValidDate: "", //有效期起期
  4880. identifyValidEndDate: "", //有效期止期
  4881. // revenueCode: "", //税务号
  4882. leaderIdentifyNumber: "", //联系人证件号码
  4883. leaderOtherEffectiveDate: "", //联系人有效期止期
  4884. property: "1",
  4885. // province: "",//省
  4886. // city: "",//市
  4887. // county: "",//县
  4888. provinceData: [] //省市区
  4889. },
  4890. policyHolderInfo: {
  4891. //投保人
  4892. name: "", //姓名
  4893. identifyType: "01", //身份证类型
  4894. identifyNumber: "", //身份证号
  4895. age: "", //年龄
  4896. gender: "", //性别
  4897. addr: "", //地址
  4898. email: "", //邮箱
  4899. mobile: "", //电话
  4900. property: "1",
  4901. identifyValidDate: "", //有效期起期
  4902. identifyValidEndDate: "", //有效期止期
  4903. // revenueCode: "", //税务号
  4904. leaderIdentifyNumber: "", //联系人证件号码
  4905. leaderOtherEffectiveDate: "", //联系人有效期止期
  4906. organizationCode: "",
  4907. // province: "",//省
  4908. // city: "",//市
  4909. // county: "",//县
  4910. provinceData: [] //省市区
  4911. },
  4912. insuredPersonInfo: {
  4913. //被保人
  4914. name: "", //姓名
  4915. identifyType: "01", //身份证类型
  4916. identifyNumber: "", //身份证号
  4917. age: "", //年龄
  4918. gender: "", //性别
  4919. addr: "", //地址
  4920. email: "", //邮箱
  4921. mobile: "", //电话
  4922. property: "1",
  4923. identifyValidDate: "", //有效期起期
  4924. identifyValidEndDate: "", //有效期止期
  4925. // revenueCode: "", //税务号
  4926. leaderIdentifyNumber: "", //联系人证件号码
  4927. leaderOtherEffectiveDate: "", //联系人有效期止期
  4928. provinceData: [] //省市区
  4929. // province: "",//省
  4930. // city: "",//市
  4931. // county: "",//县
  4932. },
  4933. //车船税form
  4934. vehicleAndVesselTaxForm: {
  4935. taxRelifFlag: "1", //类型
  4936. identifyNumber: "", //纳税人识别号
  4937. taxpayerIdentifier: "01", //纳税人证件类型
  4938. taxpayerName: "", //纳税人名称
  4939. extendChar2: "", //减免税凭证号
  4940. paidFreeCertificate: "", //完税凭证号
  4941. relifReason: "", //减免税原因
  4942. taxComCode: "", //税务机关代码
  4943. taxComName: "", ///税务机关名称
  4944. taxDocumentDate: "", //完税日期
  4945. taxPaidAreaCode: "", //完税凭证地区代码
  4946. taxRelief: "" //减税比例
  4947. },
  4948. //车辆用途列表
  4949. vehicleList: [],
  4950. //能源种类列表
  4951. rules: {
  4952. extendChar2: [
  4953. { required: true, message: "请输入减免税凭证号", trigger: "blur" }
  4954. ],
  4955. paidFreeCertificate: [
  4956. { required: true, message: "请输入完税凭证号", trigger: "blur" }
  4957. ],
  4958. relifReason: [
  4959. { required: true, message: "请输入减免税原因", trigger: "blur" }
  4960. ],
  4961. taxComCode: [
  4962. { required: true, message: "请输入税务机关代码", trigger: "blur" }
  4963. ],
  4964. taxComName: [
  4965. { required: true, message: "请输入税务机关名称", trigger: "blur" }
  4966. ],
  4967. taxDocumentDate: [
  4968. { required: true, message: "请输入完税日期", trigger: "blur" }
  4969. ],
  4970. taxPaidAreaCode: [
  4971. { required: true, message: "请选择完税地区", trigger: "blur" }
  4972. ],
  4973. taxRelief: [
  4974. { required: true, message: "请输入减税比例", trigger: "blur" }
  4975. ],
  4976. taxpayerName: [
  4977. { required: true, message: "请输入纳税人名称", trigger: "blur" }
  4978. ],
  4979. taxpayerIdentifier: [
  4980. { required: true, message: "请选择证件类型", trigger: "blur" }
  4981. ],
  4982. taxRelifFlag: [
  4983. { required: true, message: "请选择纳税类型", trigger: "blur" }
  4984. ],
  4985. energyType: [
  4986. { required: true, validator: validateRight, trigger: "blur" }
  4987. ],
  4988. cimodelclass: [
  4989. { required: true, message: "请选择车辆种类", trigger: "blur" }
  4990. ],
  4991. carnature: [
  4992. { required: true, message: "请选择使用性质", trigger: "blur" }
  4993. ],
  4994. cartype: [
  4995. { required: true, message: "请选择车辆类型", trigger: "blur" }
  4996. ],
  4997. vehicleUse: [
  4998. { required: true, message: "请选择车辆用途", trigger: "blur" }
  4999. ],
  5000. brandName: [
  5001. { required: true, message: "请填写品牌型号", trigger: "blur" }
  5002. ],
  5003. licenseNo: [
  5004. { max: 8, message: "最多八个字符", trigger: "blur" },
  5005. { required: true, validator: carPhoneValid, trigger: "blur" }
  5006. ],
  5007. frameNo: [{ validator: checkframeNo, trigger: "blur" }],
  5008. engineNo: [
  5009. { required: true, message: "请填写发动机号", trigger: "blur" }
  5010. ],
  5011. purchasePrice: [
  5012. { required: true, validator: checkpurchasePrice, trigger: "blur" }
  5013. ],
  5014. registerDate: [
  5015. { required: true, message: "请选择注册时间", trigger: "blur" }
  5016. ],
  5017. issueDate: [
  5018. { required: true, message: "请选择发证日期", trigger: "blur" }
  5019. ],
  5020. transferDate: [
  5021. { required: true, message: "请选择转移登记日期", trigger: "blur" }
  5022. ],
  5023. seatCount: [
  5024. { required: true, message: "请输入座位数", trigger: "blur" }
  5025. ],
  5026. completeKerbMass: [
  5027. { required: true, message: "请输入整备质量", trigger: "blur" }
  5028. ],
  5029. name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
  5030. taxamount: [
  5031. { required: true, message: "请填写车船税", trigger: "blur" }
  5032. ],
  5033. signDate: [
  5034. { required: true, message: "请填写签单日期", trigger: "blur" }
  5035. ],
  5036. // identifyNumber: [
  5037. // { required: true, message: "请填写证件号", trigger: "blur" },
  5038. // { min: 18, max: 18, message: "长度在18个字符", trigger: "blur" },
  5039. // {
  5040. // 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]$/,
  5041. // message: "请输入正确的证件号",
  5042. // trigger: "blur"
  5043. // }
  5044. // ],
  5045. identifyValidDate: [
  5046. { required: true, message: "请选择起期", trigger: "blur" }
  5047. ],
  5048. identifyValidEndDate: [
  5049. { required: true, message: "请选择止期", trigger: "blur" }
  5050. ],
  5051. addr: [
  5052. { required: true, message: "请填写地址", trigger: "blur" },
  5053. { min: 8, message: "最少8个字符", trigger: "blur" }
  5054. ],
  5055. mobile: [
  5056. { required: true, message: "请填写手机号", trigger: "blur" },
  5057. { min: 11, max: 11, message: "长度在11个字符", trigger: "blur" },
  5058. {
  5059. 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}$/,
  5060. message: "请输入正确的手机号",
  5061. trigger: "blur"
  5062. }
  5063. ],
  5064. email: [
  5065. { min: 10, max: 20, message: "最少10个字符", trigger: "blur" },
  5066. {
  5067. pattern: /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
  5068. message: "请输入正确的邮箱",
  5069. trigger: "blur"
  5070. }
  5071. ],
  5072. property: [
  5073. { required: true, message: "请选择所属性质", trigger: "blur" }
  5074. ]
  5075. },
  5076. CIInsureList: {
  5077. //交强险
  5078. amount: "1",
  5079. amountDesc: "投保",
  5080. amtList: [
  5081. {
  5082. label: "不投保",
  5083. value: "0"
  5084. },
  5085. {
  5086. label: "投保",
  5087. value: "1"
  5088. }
  5089. ],
  5090. kindCode: "0507",
  5091. kindName: "交强险",
  5092. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  5093. },
  5094. BIInsureList: {
  5095. //商业险
  5096. amount: "0",
  5097. amountDesc: "投保",
  5098. amtList: [
  5099. {
  5100. label: "不投保",
  5101. value: "0"
  5102. },
  5103. {
  5104. label: "投保",
  5105. value: "1"
  5106. }
  5107. ],
  5108. kindCode: "0510",
  5109. kindName: "商业险",
  5110. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  5111. },
  5112. insureList: [
  5113. {
  5114. amount: "0",
  5115. amountDesc: "投保",
  5116. coveragePremium: 0,
  5117. amtList: [
  5118. {
  5119. label: "不投保",
  5120. value: "0"
  5121. },
  5122. {
  5123. label: "投保",
  5124. value: "1"
  5125. }
  5126. ],
  5127. kindCode: "A",
  5128. isMainRisk: true,
  5129. kindName: "机动车损失险",
  5130. desc:
  5131. "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。"
  5132. },
  5133. {
  5134. amount: "0",
  5135. amountDesc: "不投保",
  5136. coveragePremium: 0,
  5137. amtList: [
  5138. {
  5139. label: "不投保",
  5140. value: "0"
  5141. },
  5142. {
  5143. label: "10万",
  5144. value: "100000"
  5145. },
  5146. {
  5147. label: "15万",
  5148. value: "150000"
  5149. },
  5150. {
  5151. label: "20万",
  5152. value: "200000"
  5153. },
  5154. {
  5155. label: "30万",
  5156. value: "300000"
  5157. },
  5158. {
  5159. label: "50万",
  5160. value: "500000"
  5161. },
  5162. {
  5163. label: "100万",
  5164. value: "1000000"
  5165. },
  5166. {
  5167. label: "150万",
  5168. value: "1500000"
  5169. },
  5170. {
  5171. label: "200万",
  5172. value: "2000000"
  5173. },
  5174. {
  5175. label: "250万",
  5176. value: "2500000"
  5177. },
  5178. {
  5179. label: "300万",
  5180. value: "3000000"
  5181. },
  5182. {
  5183. label: "400万",
  5184. value: "4000000"
  5185. },
  5186. {
  5187. label: "500万",
  5188. value: "5000000"
  5189. },
  5190. {
  5191. label: "600万",
  5192. value: "6000000"
  5193. },
  5194. {
  5195. label: "800万",
  5196. value: "8000000"
  5197. },
  5198. {
  5199. label: "1000万",
  5200. value: "10000000"
  5201. }
  5202. ],
  5203. kindCode: "B",
  5204. isMainRisk: true,
  5205. kindName: "第三者责任险",
  5206. desc:
  5207. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。"
  5208. },
  5209. {
  5210. amount: "0",
  5211. amountDesc: "1万",
  5212. coveragePremium: 0,
  5213. amtList: [
  5214. {
  5215. label: "不投保",
  5216. value: "0"
  5217. },
  5218. {
  5219. label: "1万",
  5220. value: "10000"
  5221. },
  5222. {
  5223. label: "2万",
  5224. value: "20000"
  5225. },
  5226. {
  5227. label: "3万",
  5228. value: "30000"
  5229. },
  5230. {
  5231. label: "4万",
  5232. value: "40000"
  5233. },
  5234. {
  5235. label: "5万",
  5236. value: "50000"
  5237. },
  5238. {
  5239. label: "6万",
  5240. value: "60000"
  5241. },
  5242. {
  5243. label: "7万",
  5244. value: "70000"
  5245. },
  5246. {
  5247. label: "8万",
  5248. value: "80000"
  5249. },
  5250. {
  5251. label: "9万",
  5252. value: "90000"
  5253. },
  5254. {
  5255. label: "10万",
  5256. value: "100000"
  5257. },
  5258. {
  5259. label: "15万",
  5260. value: "150000"
  5261. },
  5262. {
  5263. label: "20万",
  5264. value: "200000"
  5265. },
  5266. {
  5267. label: "25万",
  5268. value: "250000"
  5269. },
  5270. {
  5271. label: "30万",
  5272. value: "300000"
  5273. },
  5274. {
  5275. label: "35万",
  5276. value: "350000"
  5277. },
  5278. {
  5279. label: "40万",
  5280. value: "400000"
  5281. },
  5282. {
  5283. label: "45万",
  5284. value: "450000"
  5285. },
  5286. {
  5287. label: "50万",
  5288. value: "500000"
  5289. }
  5290. ],
  5291. kindCode: "D3",
  5292. isMainRisk: true,
  5293. kindName: "司机责任险",
  5294. desc:
  5295. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  5296. },
  5297. {
  5298. amount: "0",
  5299. amountDesc: "1万",
  5300. coveragePremium: 0,
  5301. amtList: [
  5302. {
  5303. label: "不投保",
  5304. value: "0"
  5305. },
  5306. {
  5307. label: "1万",
  5308. value: "10000"
  5309. },
  5310. {
  5311. label: "2万",
  5312. value: "20000"
  5313. },
  5314. {
  5315. label: "3万",
  5316. value: "30000"
  5317. },
  5318. {
  5319. label: "4万",
  5320. value: "40000"
  5321. },
  5322. {
  5323. label: "5万",
  5324. value: "50000"
  5325. },
  5326. {
  5327. label: "6万",
  5328. value: "60000"
  5329. },
  5330. {
  5331. label: "7万",
  5332. value: "70000"
  5333. },
  5334. {
  5335. label: "8万",
  5336. value: "80000"
  5337. },
  5338. {
  5339. label: "9万",
  5340. value: "90000"
  5341. },
  5342. {
  5343. label: "10万",
  5344. value: "100000"
  5345. },
  5346. {
  5347. label: "15万",
  5348. value: "150000"
  5349. },
  5350. {
  5351. label: "20万",
  5352. value: "200000"
  5353. },
  5354. {
  5355. label: "25万",
  5356. value: "250000"
  5357. },
  5358. {
  5359. label: "30万",
  5360. value: "300000"
  5361. },
  5362. {
  5363. label: "35万",
  5364. value: "350000"
  5365. },
  5366. {
  5367. label: "40万",
  5368. value: "400000"
  5369. },
  5370. {
  5371. label: "45万",
  5372. value: "450000"
  5373. },
  5374. {
  5375. label: "50万",
  5376. value: "500000"
  5377. }
  5378. ],
  5379. kindCode: "D4",
  5380. isMainRisk: true,
  5381. kindName: "乘客责任险",
  5382. desc:
  5383. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  5384. },
  5385. {
  5386. amount: "0",
  5387. amountDesc: "不投保",
  5388. coveragePremium: 0,
  5389. amtList: [
  5390. {
  5391. label: "不投保",
  5392. value: "0"
  5393. },
  5394. {
  5395. label: "2千",
  5396. value: "2000"
  5397. },
  5398. {
  5399. label: "5千",
  5400. value: "5000"
  5401. },
  5402. {
  5403. label: "1万",
  5404. value: "10000"
  5405. },
  5406. {
  5407. label: "2万",
  5408. value: "20000"
  5409. }
  5410. ],
  5411. desc:
  5412. "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
  5413. isMainRisk: false,
  5414. kindCode: "L",
  5415. kindName: "车身划痕险",
  5416. mainRiskCodeList: "A"
  5417. },
  5418. {
  5419. amount: "0",
  5420. amountDesc: "不投保",
  5421. coveragePremium: 0,
  5422. amtList: [
  5423. {
  5424. label: "不投保",
  5425. value: "0"
  5426. },
  5427. {
  5428. label: "5%",
  5429. value: "5"
  5430. },
  5431. {
  5432. label: "10%",
  5433. value: "10"
  5434. },
  5435. {
  5436. label: "15%",
  5437. value: "15"
  5438. },
  5439. {
  5440. label: "20%",
  5441. value: "20"
  5442. }
  5443. ],
  5444. desc:
  5445. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  5446. isMainRisk: false,
  5447. kindCode: "MJ1",
  5448. kindName: "绝对免赔率特约险(车损)",
  5449. mainRiskCodeList: "A"
  5450. },
  5451. {
  5452. amount: "0",
  5453. amountDesc: "不投保",
  5454. coveragePremium: 0,
  5455. amtList: [
  5456. {
  5457. label: "不投保",
  5458. value: "0"
  5459. },
  5460. {
  5461. label: "5%",
  5462. value: "5"
  5463. },
  5464. {
  5465. label: "10%",
  5466. value: "10"
  5467. },
  5468. {
  5469. label: "15%",
  5470. value: "15"
  5471. },
  5472. {
  5473. label: "20%",
  5474. value: "20"
  5475. }
  5476. ],
  5477. desc:
  5478. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  5479. isMainRisk: false,
  5480. kindCode: "MJ2",
  5481. kindName: "绝对免赔率特约险(三者)",
  5482. mainRiskCodeList: "B"
  5483. },
  5484. {
  5485. amount: "0",
  5486. amountDesc: "不投保",
  5487. coveragePremium: 0,
  5488. amtList: [
  5489. {
  5490. label: "不投保",
  5491. value: "0"
  5492. },
  5493. {
  5494. label: "5%",
  5495. value: "5"
  5496. },
  5497. {
  5498. label: "10%",
  5499. value: "10"
  5500. },
  5501. {
  5502. label: "15%",
  5503. value: "15"
  5504. },
  5505. {
  5506. label: "20%",
  5507. value: "20"
  5508. }
  5509. ],
  5510. desc:
  5511. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  5512. isMainRisk: false,
  5513. kindCode: "MJ3",
  5514. kindName: "绝对免赔率特约险(司机)",
  5515. mainRiskCodeList: "D3"
  5516. },
  5517. {
  5518. amount: "0",
  5519. amountDesc: "不投保",
  5520. coveragePremium: 0,
  5521. amtList: [
  5522. {
  5523. label: "不投保",
  5524. value: "0"
  5525. },
  5526. {
  5527. label: "5%",
  5528. value: "5"
  5529. },
  5530. {
  5531. label: "10%",
  5532. value: "10"
  5533. },
  5534. {
  5535. label: "15%",
  5536. value: "15"
  5537. },
  5538. {
  5539. label: "20%",
  5540. value: "20"
  5541. }
  5542. ],
  5543. desc:
  5544. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  5545. isMainRisk: false,
  5546. kindCode: "MJ4",
  5547. kindName: "绝对免赔率特约险(乘客)",
  5548. mainRiskCodeList: "D4"
  5549. },
  5550. {
  5551. amount: "0",
  5552. amountDesc: "不投保",
  5553. coveragePremium: 0,
  5554. amtList: [
  5555. {
  5556. label: "不投保",
  5557. value: "0"
  5558. },
  5559. {
  5560. label: "1万",
  5561. value: "10000"
  5562. },
  5563. {
  5564. label: "2万",
  5565. value: "20000"
  5566. },
  5567. {
  5568. label: "4万",
  5569. value: "40000"
  5570. },
  5571. {
  5572. label: "5万",
  5573. value: "50000"
  5574. },
  5575. {
  5576. label: "8万",
  5577. value: "80000"
  5578. },
  5579. {
  5580. label: "10万",
  5581. value: "100000"
  5582. },
  5583. {
  5584. label: "20万",
  5585. value: "200000"
  5586. },
  5587. {
  5588. label: "30万",
  5589. value: "300000"
  5590. },
  5591. {
  5592. label: "50万",
  5593. value: "500000"
  5594. },
  5595. {
  5596. label: "100万",
  5597. value: "1000000"
  5598. },
  5599. {
  5600. label: "200万",
  5601. value: "2000000"
  5602. },
  5603. {
  5604. label: "300万",
  5605. value: "3000000"
  5606. }
  5607. ],
  5608. kindCode: "SY_FJ_YBW1",
  5609. isMainRisk: true,
  5610. kindName: "附加医保-三者",
  5611. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  5612. },
  5613. {
  5614. amount: "0",
  5615. amountDesc: "不投保",
  5616. coveragePremium: 0,
  5617. amtList: [
  5618. {
  5619. label: "不投保",
  5620. value: "0"
  5621. },
  5622. {
  5623. label: "1万",
  5624. value: "10000"
  5625. },
  5626. {
  5627. label: "2万",
  5628. value: "20000"
  5629. },
  5630. {
  5631. label: "5万",
  5632. value: "50000"
  5633. },
  5634. {
  5635. label: "10万",
  5636. value: "100000"
  5637. }
  5638. ],
  5639. kindCode: "SY_FJ_YBW2",
  5640. isMainRisk: true,
  5641. kindName: "附加医保-座位险(乘客)",
  5642. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  5643. },
  5644. {
  5645. amount: "0",
  5646. amountDesc: "不投保",
  5647. coveragePremium: 0,
  5648. amtList: [
  5649. {
  5650. label: "不投保",
  5651. value: "0"
  5652. },
  5653. {
  5654. label: "1万",
  5655. value: "10000"
  5656. },
  5657. {
  5658. label: "2万",
  5659. value: "20000"
  5660. },
  5661. {
  5662. label: "5万",
  5663. value: "50000"
  5664. },
  5665. {
  5666. label: "10万",
  5667. value: "100000"
  5668. }
  5669. ],
  5670. kindCode: "SY_FJ_YBW3",
  5671. isMainRisk: true,
  5672. kindName: "附加医保-座位险(司机)",
  5673. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  5674. },
  5675. {
  5676. amount: "0",
  5677. amountDesc: "不投保",
  5678. coveragePremium: 0,
  5679. amtList: [
  5680. {
  5681. label: "不投保",
  5682. value: "0"
  5683. },
  5684. {
  5685. label: "50万",
  5686. value: "500000"
  5687. },
  5688. {
  5689. label: "100万",
  5690. value: "1000000"
  5691. },
  5692. {
  5693. label: "150万",
  5694. value: "1500000"
  5695. },
  5696. {
  5697. label: "200万",
  5698. value: "2000000"
  5699. },
  5700. {
  5701. label: "250万",
  5702. value: "2500000"
  5703. },
  5704. {
  5705. label: "300万",
  5706. value: "3000000"
  5707. },
  5708. {
  5709. label: "500万",
  5710. value: "5000000"
  5711. },
  5712. {
  5713. label: "1000万",
  5714. value: "10000000"
  5715. }
  5716. ],
  5717. desc:
  5718. "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
  5719. isMainRisk: false,
  5720. kindCode: "BD",
  5721. kindName: "法定节假日限额翻倍险",
  5722. mainRiskCodeList: "B"
  5723. },
  5724. {
  5725. amount: "0",
  5726. amountDesc: "不投保",
  5727. coveragePremium: 0,
  5728. amtList: [
  5729. {
  5730. label: "不投保",
  5731. value: "0"
  5732. },
  5733. {
  5734. label: "2次",
  5735. value: "2"
  5736. },
  5737. {
  5738. label: "7次",
  5739. value: "7"
  5740. },
  5741. {
  5742. label: "12次",
  5743. value: "12"
  5744. },
  5745. {
  5746. label: "17次",
  5747. value: "17"
  5748. },
  5749. {
  5750. label: "22次",
  5751. value: "22"
  5752. }
  5753. ],
  5754. desc: "道路救援服务特约条款",
  5755. isMainRisk: false,
  5756. kindCode: "TY1",
  5757. kindName: "道路救援服务特约条款"
  5758. },
  5759. {
  5760. amount: "0",
  5761. amountDesc: "不投保",
  5762. coveragePremium: 0,
  5763. desc: "车辆安全检测特约条款",
  5764. isMainRisk: false,
  5765. kindCode: "TY2",
  5766. kindName: "车辆安全检测特约条款"
  5767. },
  5768. {
  5769. amount: "0",
  5770. amountDesc: "不投保",
  5771. coveragePremium: 0,
  5772. desc: "代为驾驶服务特约条款",
  5773. isMainRisk: false,
  5774. kindCode: "TY3",
  5775. kindName: "代为驾驶服务特约条款"
  5776. },
  5777. {
  5778. amount: "0",
  5779. amountDesc: "不投保",
  5780. coveragePremium: 0,
  5781. desc: "代为送检服务特约条款",
  5782. isMainRisk: false,
  5783. kindCode: "TY4",
  5784. kindName: "代为送检服务特约条款"
  5785. }
  5786. ],
  5787. totalCompanyList: [], //报价保险公司
  5788. continuousCompanyList: [], //续保保险公司
  5789. quoteno: "", //报价号
  5790. orderno: "", //订单号
  5791. queryOrders: {
  5792. extendInfo: {},
  5793. carinfo: {},
  5794. ownerinfo: {},
  5795. applyinfo: {},
  5796. insureinfo: {}
  5797. }, //核保详情
  5798. inscompany: "", //保险公司名称
  5799. licenseNo: "", //车牌号
  5800. applyName: "", //车主名字
  5801. orderstatus: "", //订单状态
  5802. sumpremium: "", //保费合计
  5803. jqpremium: "", //交强
  5804. sypremium: "", //商业
  5805. jypremium: "", //驾意险
  5806. taxamount: "", //车船税
  5807. jqstartdate: "", //交强时间
  5808. systartdate: "", //商业时间
  5809. mobile: "", //投保人手机号
  5810. //影像回显列表
  5811. // 是否禁用上传
  5812. uploadDisabled: false,
  5813. href: "",
  5814. pageRequest: {
  5815. //归属查询
  5816. pageNum: 1,
  5817. pageSize: 20,
  5818. columnFilters: {
  5819. deptId: {
  5820. name: "deptId",
  5821. value: "9"
  5822. },
  5823. containsSubDept: {
  5824. name: "containsSubDept",
  5825. value: 1
  5826. },
  5827. usertype: {
  5828. name: "usertype",
  5829. value: null
  5830. },
  5831. status: {
  5832. name: "status",
  5833. value: "1"
  5834. },
  5835. id: {
  5836. name: "id",
  5837. value: ""
  5838. },
  5839. name: {
  5840. name: "name",
  5841. value: ""
  5842. },
  5843. mobile: {
  5844. name: "mobile",
  5845. value: ""
  5846. }
  5847. }
  5848. },
  5849. userform: {},
  5850. qrcode: null,
  5851. paycodeimg: "", //展示二维码
  5852. ImageUrldialogVisible: false,
  5853. paramsEdit: "",
  5854. companyId: "",
  5855. apiType: "",
  5856. insureMore: true,
  5857. // insureLength: 5,
  5858. HistoryList: [], //历史记录数据
  5859. image1: "",
  5860. image2: "",
  5861. historyRadio: "888",
  5862. sumseatCount: "", // 投保险种座位数
  5863. deptName: "",
  5864. isBottom: true,
  5865. logoImg: "", //报价单保险公司logo图
  5866. vehicleTypeoptions: [], //车辆种类
  5867. trafficManagementVehicleTypeoptions: [], //车辆类型
  5868. energyTypeoptions: [], //能源种类
  5869. taxRelifFlagoptions: [], //车船税类型
  5870. taxpayerIdentifieroptions: [], //纳税人证件类型
  5871. propertyoptions: [
  5872. {
  5873. value: "1",
  5874. label: "个人"
  5875. },
  5876. {
  5877. value: "2",
  5878. label: "企业"
  5879. }
  5880. ],
  5881. relifReasonoptions: [], //减免税原因代码
  5882. relifReasonoptions: [], //减免税原因代码
  5883. provinceSelect: [],
  5884. natureOfVehicleUseoptions: [],
  5885. businessVehicleUseoptions: [],
  5886. outOfBusinessVehicleUseoptions: [],
  5887. insOrderStatusoptions: [],
  5888. lastCompanyId: "",
  5889. apiInterfaceName: "generateOrder",
  5890. isLetter3Arr: [],
  5891. isLetter3agreementId: "",
  5892. editorInfo: {},
  5893. resultMessageImg: "",
  5894. tabLiIndex: 0,
  5895. tabLimenu: [
  5896. {
  5897. name: "车辆信息",
  5898. scroll: "vehicle"
  5899. },
  5900. {
  5901. name: "车主信息",
  5902. scroll: "owner"
  5903. },
  5904. {
  5905. name: "投保人信息",
  5906. scroll: "applicant"
  5907. },
  5908. {
  5909. name: "被保人信息",
  5910. scroll: "insured"
  5911. },
  5912. {
  5913. name: "关系证明",
  5914. scroll: "relationship"
  5915. },
  5916. {
  5917. name: "验车照",
  5918. scroll: "yanchezhao"
  5919. },
  5920. {
  5921. name: "上年商业险保单",
  5922. scroll: "snbaodan"
  5923. },
  5924. {
  5925. name: "授权书",
  5926. scroll: "shouquanshu"
  5927. }
  5928. ],
  5929. ProViewImg: "", //预览图片
  5930. carfrontImg: "", //行驶证正面
  5931. carbackImg: "", //行驶证背面
  5932. userfrontImg: "", //身份证正面
  5933. userbackImg: "", //身份证背面
  5934. businessImg: "",
  5935. CarFrontFile: "", //车正面文件流
  5936. CarBackFile: "", //车背面文件流
  5937. C02File: "",
  5938. D02File: "",
  5939. C03File: "",
  5940. D03File: "",
  5941. C04File: "",
  5942. D04File: "",
  5943. Y02File: "",
  5944. Y03File: "",
  5945. Y04File: "",
  5946. //影像回显列表
  5947. imgList1: [],
  5948. imgList2: [],
  5949. imgList3: [],
  5950. imgList4: [],
  5951. imgList5: [],
  5952. imgList6: [],
  5953. imgList7: [],
  5954. imgList8: [],
  5955. imgList9: [],
  5956. imgList10: [],
  5957. imgList11: [],
  5958. imgList12: [],
  5959. imgList13: [],
  5960. imgList14: [],
  5961. imgList15: [],
  5962. imgList16: [],
  5963. imgList17: [],
  5964. imgList18: [],
  5965. imgList19: [],
  5966. imgList20: [],
  5967. imgList21: [],
  5968. imgList22: [],
  5969. imgList23: [],
  5970. imgList24: [],
  5971. imgList25: [],
  5972. imgList26: [],
  5973. imgList27: [],
  5974. imgList28: [],
  5975. //影像上传列表
  5976. imageList1: [],
  5977. imageList2: [],
  5978. imageList3: [],
  5979. imageList4: [],
  5980. imageList5: [],
  5981. imageList6: [],
  5982. showLoading: false,
  5983. detailJiaYiTitle: "查看详情",
  5984. oldData: {}, // 旧获取公司参数
  5985. myQrCode: null,
  5986. businessform: {
  5987. name: "", //姓名
  5988. identifyType: "02", //身份证类型
  5989. legalRepresentative: "", //法人
  5990. identifyNumber: "", //社会信用代码
  5991. addr: "", //地址
  5992. registeredCapital: "", //注册资本
  5993. businessScope: "" //经营范围
  5994. },
  5995. areaOption: yongchengData.data,
  5996. selectedOptions1: [],
  5997. selectedOptions2: [],
  5998. selectedOptions3: []
  5999. };
  6000. },
  6001. watch: {
  6002. "carInfo.licenseNo": {
  6003. handler(val) {
  6004. if (val) {
  6005. this.carInfo.licenseNo = val.toUpperCase();
  6006. }
  6007. },
  6008. deep: true
  6009. },
  6010. "carInfo.frameNo": {
  6011. handler(val) {
  6012. if (val) {
  6013. this.carInfo.frameNo = val.toUpperCase();
  6014. }
  6015. },
  6016. deep: true
  6017. },
  6018. "carInfo.enginedesc": {
  6019. handler(val) {
  6020. if (val) {
  6021. this.carInfo.enginedesc = val.replace(/[A-Za-z]/g, "");
  6022. }
  6023. },
  6024. deep: true
  6025. },
  6026. "ownerInfo.mobile": {
  6027. handler(val) {
  6028. if (val) {
  6029. this.ownerInfo.mobile = val.replace(/\s/g, "");
  6030. }
  6031. },
  6032. deep: true
  6033. },
  6034. "policyHolderInfo.mobile": {
  6035. handler(val) {
  6036. if (val) {
  6037. this.policyHolderInfo.mobile = val.replace(/\s/g, "");
  6038. }
  6039. },
  6040. deep: true
  6041. },
  6042. "insuredPersonInfo.mobile": {
  6043. handler(val) {
  6044. if (val) {
  6045. this.insuredPersonInfo.mobile = val.replace(/\s/g, "");
  6046. }
  6047. },
  6048. deep: true
  6049. },
  6050. "carInfo.engineNo": {
  6051. handler(val) {
  6052. if (val) {
  6053. this.carInfo.engineNo = val.replace(/[^\w-]/gi, "").toUpperCase();
  6054. }
  6055. },
  6056. deep: true
  6057. },
  6058. "carInfo.seatCount": {
  6059. handler(val) {
  6060. if (val) {
  6061. this.sumseatCount = val - 1;
  6062. }
  6063. },
  6064. deep: true
  6065. },
  6066. "policyHolderInfo.identifyNumber": {
  6067. handler(val) {
  6068. if (val) {
  6069. this.vehicleAndVesselTaxForm.identifyNumber = val;
  6070. }
  6071. },
  6072. deep: true
  6073. },
  6074. "policyHolderInfo.organizationCode": {
  6075. handler(val) {
  6076. if (val) {
  6077. this.vehicleAndVesselTaxForm.organizationCode = val;
  6078. }
  6079. },
  6080. deep: true
  6081. },
  6082. "policyHolderInfo.name": {
  6083. handler(val) {
  6084. if (val) {
  6085. this.vehicleAndVesselTaxForm.taxpayerName = val;
  6086. }
  6087. },
  6088. deep: true
  6089. },
  6090. ownerInfo: {
  6091. handler(val) {
  6092. if (this.tbczcarShow) {
  6093. this.policyHolderInfo = { ...val };
  6094. }
  6095. if (this.bbczcarShow) {
  6096. this.insuredPersonInfo = { ...val };
  6097. }
  6098. },
  6099. deep: true
  6100. },
  6101. policyHolderInfo: {
  6102. handler(val) {
  6103. if (this.bbtbcarShow) {
  6104. this.insuredPersonInfo = { ...val };
  6105. }
  6106. },
  6107. deep: true
  6108. }
  6109. },
  6110. props: {
  6111. isdisabled: {
  6112. type: Boolean,
  6113. default: true
  6114. },
  6115. isLetter: {
  6116. type: String,
  6117. default: "1"
  6118. }
  6119. },
  6120. components: {
  6121. detailsDialog,
  6122. quotationDialog,
  6123. quotationDialogPro,
  6124. imageDialog,
  6125. Ktletter1Popover,
  6126. floatingBar,
  6127. "el-image-viewer": () =>
  6128. import("element-ui/packages/image/src/image-viewer")
  6129. },
  6130. created() {
  6131. if (this.isLetter == "2") {
  6132. this.apiInterfaceName = "ordergenerateOrder";
  6133. }
  6134. if (this.isLetter == "1") {
  6135. this.$api.user.sysMenuRecordAdd(2, 1).then(res => { });
  6136. }
  6137. // this.commpanyList(); //获取保险公司
  6138. this.getDicType("taxRelifFlag"); //车船税类型
  6139. this.getDicType("taxpayerIdentifier"); //纳税人证件类型
  6140. this.getDicType("relifReason"); //减免税原因代码
  6141. this.getDicType("vehicleType"); //车辆种类
  6142. this.getDicType("trafficManagementVehicleType"); //车辆类型
  6143. this.getDicType("energyType"); //能源种类
  6144. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  6145. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  6146. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  6147. this.getDicType("insOrderStatus"); //状态
  6148. this.$api.letter.queryCompany().then(res => {
  6149. this.continuousCompanyList = res.data;
  6150. });
  6151. this.$api.letter.packageQuery().then(res => {
  6152. this.packageOptions = res.data;
  6153. });
  6154. localStorage.setItem("carInfo", JSON.stringify(this.carInfo));
  6155. localStorage.setItem("insureList", JSON.stringify(this.insureList));
  6156. //--归属信息获取--
  6157. if (this.isLetter == 1 || this.isLetter == 2) {
  6158. var userId = Cookies.get("user");
  6159. if (userId == "admin") {
  6160. this.userId = "admin";
  6161. } else {
  6162. // this.userId = userId;
  6163. this.$api.user.getLoginUser().then(res => {
  6164. if (res.code == 200) {
  6165. this.userform = res.data;
  6166. this.$api.dept.getDeptById(res.data.deptId).then(res => {
  6167. this.deptName = res.data.name;
  6168. });
  6169. this.userId = res.data.id;
  6170. }
  6171. });
  6172. }
  6173. }
  6174. //--订单编辑回显--
  6175. // this.paramsEdit = this.$route.query.data; //接收参数
  6176. // this.obtainProtocol(this.$route.query.data);
  6177. this.getProductId(); // 获取险别
  6178. // this.editingWay(this.$route.query.data)
  6179. if (this.$route.query.data) {
  6180. this.editingWay(this.$route.query.data);
  6181. }
  6182. },
  6183. mounted() {
  6184. this.getCompanyList(this.$route.query.data);
  6185. this.onScroll();
  6186. if (this.$route.query.data) {
  6187. if (this.isDateBeforeToday(this.$route.query.data.jqstartdate)) {
  6188. this.jqstartDate = this.transformTime1();
  6189. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  6190. } else {
  6191. this.jqstartDate = this.$route.query.data.jqstartdate;
  6192. this.jqendDate = this.$route.query.data.jqenddate;
  6193. }
  6194. if (this.$route.query.data.jqstartdate.split(" ")[1] == "00:00:00") {
  6195. this.immediatelyValue = false;
  6196. } else {
  6197. this.immediatelyValue = true;
  6198. }
  6199. }
  6200. window.addEventListener("scroll", this.onScroll);
  6201. },
  6202. destroyed() {
  6203. window.removeEventListener("scroll", this.onScroll);
  6204. },
  6205. beforeCreate() {
  6206. _self = this;
  6207. },
  6208. computed: {
  6209. ...mapState({
  6210. collapse: state => state.app.collapse
  6211. }),
  6212. issueDateOptions() {
  6213. return {
  6214. disabledDate: this.disabledDate
  6215. };
  6216. }
  6217. },
  6218. filters: {
  6219. cap(ele) {
  6220. return _self.insOrderStatusoptions.find(item => {
  6221. return item.dictValue === ele;
  6222. }).dictTag;
  6223. }
  6224. },
  6225. methods: {
  6226. //补录订单
  6227. supplementOrder(id) {
  6228. let params = {
  6229. companyId: id,
  6230. };
  6231. this.$api.letter.getByCompanyId(params).then((res) => {
  6232. if (res.code == "200") {
  6233. this.$router.push({
  6234. path: "/task/external/externalOrders",
  6235. query: { data: res.data },
  6236. });
  6237. }
  6238. })
  6239. },
  6240. quotechangeDate(value){
  6241. return dayjs(value).format("YYYY-MM-DD HH:mm:ss");
  6242. },
  6243. changeDate(value) {
  6244. return dayjs(value).format("YYYY-MM-DD");
  6245. },
  6246. vehicleUseChange(value) {
  6247. if ((value = "05")) {
  6248. this.carInfo.property = "1";
  6249. this.ownerInfo.property = "1";
  6250. this.ownerInfo.identifyType = "01";
  6251. }
  6252. },
  6253. propertyDisable(item) {
  6254. if (this.carInfo.vehicleUse == "05" && item.label == "企业") {
  6255. return true;
  6256. } else {
  6257. return false;
  6258. }
  6259. },
  6260. deleteJiaYi(reslistindex, drivingIndex) {
  6261. this.totalCompanyList[reslistindex].programme.drivingList.splice(
  6262. drivingIndex,
  6263. 1
  6264. );
  6265. this.$forceUpdate();
  6266. },
  6267. toWan(num, type) {
  6268. if (type == "fw") {
  6269. return num + "次";
  6270. }
  6271. if (num > 10000) {
  6272. if (num % 10000 == 0) {
  6273. return num / 10000 + "万";
  6274. } else {
  6275. return (num / 10000).toFixed(4) + "万";
  6276. }
  6277. } else if (num == 1) {
  6278. return "投保";
  6279. } else {
  6280. return num;
  6281. }
  6282. },
  6283. // 所属性质字段
  6284. getCompanyListProperty(data) {
  6285. if (data == "1") {
  6286. this.ownerInfo.property = "1";
  6287. this.policyHolderInfo.property = "1";
  6288. this.insuredPersonInfo.property = "1";
  6289. this.ownerInfo.identifyType = "01";
  6290. this.policyHolderInfo.identifyType = "01";
  6291. this.insuredPersonInfo.identifyType = "01";
  6292. } else {
  6293. this.ownerInfo.property = "0";
  6294. this.policyHolderInfo.property = "0";
  6295. this.insuredPersonInfo.property = "0";
  6296. this.ownerInfo.identifyType = "10";
  6297. this.policyHolderInfo.identifyType = "10";
  6298. this.insuredPersonInfo.identifyType = "10";
  6299. }
  6300. this.getCompanyList();
  6301. },
  6302. // 获取新公司列表
  6303. getCompanyList(data) {
  6304. var _this = this;
  6305. if (!this.productId) {
  6306. this.$message.warning("请选择险种");
  6307. return;
  6308. }
  6309. let starttime = new Date(this.carInfo.registerDate);
  6310. let endtime = new Date(this.carInfo.issueDate);
  6311. if (endtime < starttime) {
  6312. this.$message({ message: "发证日期早于初登日期", type: "error" });
  6313. return;
  6314. }
  6315. this.policyHolderInfovalidate();
  6316. this.$refs["carInfo"].validate(valid => {
  6317. if (valid) {
  6318. _this.$refs["ownerInfo"].validate(async valid1 => {
  6319. if (valid1) {
  6320. if (!this.bbczcarShow && !this.bbtbcarShow) {
  6321. this.$refs["insuredPersonInfo"].validate(valid2 => {
  6322. if (!valid2) {
  6323. document.getElementById("toubaor").scrollIntoView();
  6324. this.$message({
  6325. message: "请检查被投保人信息",
  6326. type: "warning"
  6327. });
  6328. return;
  6329. }
  6330. });
  6331. }
  6332. if (!_this.productId) {
  6333. _this.$message.warning("请选择险别");
  6334. return;
  6335. }
  6336. let res = {};
  6337. let param = {
  6338. productId: this.productId,
  6339. carInfo: this.carInfo,
  6340. ownerInfo: this.ownerInfo,
  6341. applyInfo: this.policyHolderInfo,
  6342. insureInfo: this.insuredPersonInfo,
  6343. userId: this.isLetter == 2 ? this.userId : ""
  6344. };
  6345. if (JSON.stringify(param) === this.oldData) {
  6346. return;
  6347. } else {
  6348. this.oldData = JSON.stringify(param);
  6349. }
  6350. this.showLoading = true;
  6351. // this.$api.letter.getAllAgreement().then((res) => {
  6352. this.$api.letter.ruleFilterCompany(param).then(res => {
  6353. if (res.code == 200) {
  6354. res.data.map(ele => {
  6355. ele["result"] = {};
  6356. ele["quoteCode"] = 0;
  6357. ele["checked"] = false;
  6358. ele["msg"] = "";
  6359. ele["lastYearMsg"] = "";
  6360. ele["agreementId"] = "";
  6361. ele["apiType"] = "";
  6362. ele["orderstatus"] = 0;
  6363. ele.coefficient = "";
  6364. ele.underwritingDescription =
  6365. ele.agreement[0].underwritingDescription;
  6366. if (
  6367. ele.isTaxSource &&
  6368. ele.isTaxSource == "1" &&
  6369. ele.agreement
  6370. ) {
  6371. ele.agreement.forEach(val => {
  6372. if (val.isTaxSource && val.isTaxSource == "1") {
  6373. ele.agreementId = val.id;
  6374. ele.apiType = val.apiType;
  6375. }
  6376. });
  6377. }
  6378. });
  6379. if (this.$route.query.data) {
  6380. data = data || this.$route.query.data;
  6381. }
  6382. if (data) {
  6383. this.selectedOptions1 = _this.ownerInfo.province
  6384. ? [
  6385. Number(_this.ownerInfo.province),
  6386. Number(_this.ownerInfo.city),
  6387. Number(_this.ownerInfo.county)
  6388. ]
  6389. : [];
  6390. this.selectedOptions2 = _this.policyHolderInfo.province
  6391. ? [
  6392. Number(_this.policyHolderInfo.province),
  6393. Number(_this.policyHolderInfo.city),
  6394. Number(_this.policyHolderInfo.county)
  6395. ]
  6396. : [];
  6397. this.selectedOptions13 = _this.insuredPersonInfo.province
  6398. ? [
  6399. Number(_this.insuredPersonInfo.province),
  6400. Number(_this.insuredPersonInfo.city),
  6401. Number(_this.insuredPersonInfo.county)
  6402. ]
  6403. : [];
  6404. this.productId = this.productId || data.productid;
  6405. res.data.forEach((val, index) => {
  6406. if (!data.insAreaCompanyEditingDtos) {
  6407. return;
  6408. }
  6409. data.insAreaCompanyEditingDtos.forEach(ele => {
  6410. if (val.namesimple == ele.inscompany) {
  6411. if (ele.inscompany == "中国人寿" && ele.companyId) {
  6412. this.lastCompanyId = ele.companyId;
  6413. }
  6414. res.data[index].quoteCode = 200;
  6415. res.data[index].result = ele;
  6416. }
  6417. });
  6418. });
  6419. }
  6420. // //险种合并集合
  6421. } else {
  6422. this.$message.error(res.msg);
  6423. }
  6424. const combinedArray = [
  6425. ...this.riskList.map(item => item.riskCode),
  6426. ...this.kindList.map(item => item.kindCode)
  6427. ];
  6428. if (res.data) {
  6429. res.data = res.data.filter(obj => {
  6430. obj.agreement = obj.agreement.filter(agreementObj => {
  6431. // 险种配置为空,则过滤掉该协议
  6432. if (agreementObj.productsCodes == null) {
  6433. return true;
  6434. } else {
  6435. // 检查是否包含 A 的特殊处理
  6436. if (
  6437. combinedArray.includes("A") &&
  6438. !agreementObj.productsCodes.includes("A")
  6439. ) {
  6440. return false;
  6441. }
  6442. return agreementObj.productsCodes.some(item =>
  6443. combinedArray.includes(item)
  6444. );
  6445. }
  6446. });
  6447. return obj.agreement.length > 0; // 返回true保留,返回false移除该保险公司
  6448. });
  6449. res.data.forEach(e => {
  6450. if (e.agreement) {
  6451. e.agreement.forEach(el => (el.disabled = false));
  6452. }
  6453. });
  6454. }
  6455. this.totalCompanyList = res.data;
  6456. this.showLoading = false;
  6457. });
  6458. } else {
  6459. document.getElementById("CheZhu").scrollIntoView();
  6460. _this.$message({ message: "请检查人员信息", type: "warning" });
  6461. }
  6462. });
  6463. } else {
  6464. document.getElementById("Car").scrollIntoView();
  6465. this.$message({ message: "请检查车辆信息", type: "warning" });
  6466. return false;
  6467. }
  6468. });
  6469. },
  6470. // 保费计算(报价)按钮
  6471. handleListJisuan(item, index) {
  6472. this.quote(index);
  6473. },
  6474. // 修改险别
  6475. productIdChange() {
  6476. if (this.productId != "0330") {
  6477. this.sychecked = true;
  6478. this.sycheckedChange(true);
  6479. } else {
  6480. this.sychecked = false;
  6481. this.sycheckedChange(false);
  6482. }
  6483. if (this.productId == "034001" || this.productId == "034002") {
  6484. this.jqchecked = false;
  6485. this.jqcheckedChange(false);
  6486. } else {
  6487. this.jqchecked = true;
  6488. this.jqcheckedChange(true);
  6489. }
  6490. this.getCompanyList();
  6491. if (this.policyHolderInfo.property == "0") {
  6492. this.vehicleAndVesselTaxForm.taxpayerIdentifier = "10";
  6493. }
  6494. if (this.policyHolderInfo.property == "1") {
  6495. this.vehicleAndVesselTaxForm.taxpayerIdentifier = "01";
  6496. }
  6497. this.totalCompanyList.forEach(val => {
  6498. val.checked = false;
  6499. });
  6500. },
  6501. // 选择方案
  6502. checkedPopover(reslistindex, index, item) {
  6503. if (index == 99) {
  6504. if (
  6505. this.totalCompanyList[reslistindex].programme99 &&
  6506. !this.totalCompanyList[reslistindex].programme99.schemeId
  6507. ) {
  6508. return;
  6509. }
  6510. if (!this.totalCompanyList[reslistindex].zxProgramme) {
  6511. this.totalCompanyList[reslistindex].zxProgramme = {
  6512. // 自选方案详情
  6513. description: "",
  6514. drivingList: [],
  6515. jqx: {
  6516. name: "交通事故强制责任险"
  6517. },
  6518. kinds: {
  6519. additional: [],
  6520. main: [],
  6521. service: []
  6522. }
  6523. };
  6524. }
  6525. this.typeDialogIndex = reslistindex; // 当前的公司index
  6526. this.totalCompanyList[reslistindex].programme = this.totalCompanyList[
  6527. reslistindex
  6528. ].zxProgramme; // 选中的自定义方案详情
  6529. } else {
  6530. this.totalCompanyList[reslistindex].programme = item; // 选中的方案详情
  6531. }
  6532. this.totalCompanyList[reslistindex].checkedProgramme = index; // 选中的方案
  6533. this.productList.forEach(val => {
  6534. if (val.code == this.productId) {
  6535. this.totalCompanyList[reslistindex].programme.description = val.desc;
  6536. }
  6537. });
  6538. this.$forceUpdate();
  6539. },
  6540. // 获取方案信息
  6541. getCompanyProgramme(e, code, name, index) {
  6542. this.totalCompanyList[index].checked = false;
  6543. this.$api.letter
  6544. .getAllSchemeList({
  6545. companyId: code,
  6546. productId: this.productId,
  6547. seatNum: this.carInfo.seatCount,
  6548. vehicleType: this.carInfo.cimodelclass,
  6549. energyType: this.carInfo.energyType,
  6550. carnature: this.carInfo.carnature
  6551. })
  6552. .then(res => {
  6553. if (res.code == 200) {
  6554. this.totalCompanyList[index].schemes = res.data.schemes;
  6555. this.totalCompanyList[index].programme99 = res.data
  6556. .optionalScheme || { kinds: [] }; // 获取自选方案弹窗信息
  6557. if (res.data.schemes[0]) {
  6558. this.checkedPopover(index, 0, res.data.schemes[0]);
  6559. } else {
  6560. this.checkedPopover(index, 99);
  6561. }
  6562. this.totalCompanyList[index].checked = true;
  6563. }
  6564. });
  6565. },
  6566. // 获取险别
  6567. getProductId() {
  6568. // /plt/scheme/getProductInfo
  6569. this.$api.letter.getProductInfo().then(res => {
  6570. this.productList = res.data;
  6571. });
  6572. },
  6573. // 选择特约
  6574. handleCloseTeYue() {
  6575. this.showTeYueVisible = false;
  6576. },
  6577. checkTeYue(item) {
  6578. this.showTeYueVisible = true;
  6579. },
  6580. // 驾意险详情
  6581. handleCloseShowDetailJiaYi() {
  6582. this.showDetailJiaYiVisible = false;
  6583. this.showDetailJiaYiVisible1 = false;
  6584. this.showDetailtable = [];
  6585. this.typeDialogData = {};
  6586. },
  6587. // 确认驾意
  6588. handleAddYiWai() {
  6589. let arr = [];
  6590. this.checkList.forEach(val => {
  6591. if (this.totalCompanyList[this.typeDialogIndex].cnName == "zijin") {
  6592. if (val.tableData) arr.push(...val.tableData);
  6593. // } else if (this.totalCompanyList[this.typeDialogIndex].cnName == 'guoRen' || this.totalCompanyList[this.typeDialogIndex].cnName == 'ansheng') {
  6594. // arr.push({...val.tableData, select: val.select})
  6595. } else {
  6596. if (val.tableData) arr.push(val.tableData);
  6597. }
  6598. });
  6599. this.totalCompanyList[this.typeDialogIndex].zxProgramme.drivingList = arr;
  6600. this.totalCompanyList[this.typeDialogIndex].programme.drivingList = arr;
  6601. this.handleCloseAddYiwai();
  6602. },
  6603. // 驾意输入框按钮
  6604. numberChange(listIndex, index, type, minquantity, dataIndex) {
  6605. if (dataIndex >= 0) {
  6606. if (type == "plus") {
  6607. // if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData[dataIndex].quantity < 100) {
  6608. this.jiayiDialogData.drivingTypeList[listIndex].children[index]
  6609. .tableData[dataIndex].quantity++;
  6610. // }
  6611. } else {
  6612. if (
  6613. this.jiayiDialogData.drivingTypeList[listIndex].children[index]
  6614. .tableData[dataIndex].quantity > minquantity
  6615. ) {
  6616. this.jiayiDialogData.drivingTypeList[listIndex].children[
  6617. index
  6618. ].tableData[dataIndex].quantity -= 1;
  6619. }
  6620. }
  6621. } else {
  6622. if (type == "plus") {
  6623. // if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity < 100) {
  6624. this.jiayiDialogData.drivingTypeList[listIndex].children[index]
  6625. .tableData.quantity++;
  6626. // }
  6627. } else {
  6628. if (
  6629. this.jiayiDialogData.drivingTypeList[listIndex].children[index]
  6630. .tableData.quantity > minquantity
  6631. ) {
  6632. this.jiayiDialogData.drivingTypeList[listIndex].children[
  6633. index
  6634. ].tableData.quantity -= 1;
  6635. }
  6636. }
  6637. }
  6638. this.$forceUpdate();
  6639. },
  6640. // 选中驾意一层
  6641. handleChangeSelectGuoren(index) {
  6642. this.checkList[index].tableData1 = undefined;
  6643. this.checkList[index].detail.forEach(val => {
  6644. if (val.projectName == this.checkList[index].select) {
  6645. this.checkList[index].tableData1 = val.insDrivingIntentionInsurances;
  6646. }
  6647. });
  6648. },
  6649. changeInput(e, listIndex, index, type, minquantity, dataIndex) {
  6650. let num = Number(e);
  6651. if (dataIndex >= 0) {
  6652. this.jiayiDialogData.drivingTypeList[listIndex].children[
  6653. index
  6654. ].tableData[dataIndex].quantity = num < minquantity ? minquantity : num;
  6655. } else {
  6656. this.jiayiDialogData.drivingTypeList[listIndex].children[
  6657. index
  6658. ].tableData.quantity = num < minquantity ? minquantity : num;
  6659. }
  6660. this.$forceUpdate();
  6661. },
  6662. // 选中驾意
  6663. handleChangeSelect(index) {
  6664. if (this.totalCompanyList[this.typeDialogIndex].cnName == "zijin") {
  6665. this.checkList[index].tableData = [];
  6666. this.checkList[index].detail.forEach(val => {
  6667. this.checkList[index].selectList.forEach(value => {
  6668. if (val.alias == value) {
  6669. this.checkList[index].tableData.push(val);
  6670. this.$forceUpdate();
  6671. }
  6672. });
  6673. });
  6674. // } else if (this.totalCompanyList[this.typeDialogIndex].cnName == 'guoRen' || this.totalCompanyList[this.typeDialogIndex].cnName == 'ansheng' || this.totalCompanyList[this.typeDialogIndex].cnName == 'ansheng') {
  6675. // this.checkList[index].tableData1.forEach((val) => {
  6676. // if (val.projectName == this.checkList[index].select1) {
  6677. // this.checkList[index].tableData = val
  6678. // }
  6679. // })
  6680. } else {
  6681. this.checkList[index].detail.forEach(val => {
  6682. val.quantity = val.minQuantity ? val.minQuantity : val.quantity;
  6683. if (val.alias == this.checkList[index].select) {
  6684. this.checkList[index].tableData = val;
  6685. }
  6686. });
  6687. }
  6688. },
  6689. handleChangeJiayi(listItem, listIndex) {
  6690. if (this.checkList.length) {
  6691. this.checkList.forEach(val => {
  6692. this.$api.letter
  6693. .getDriving({
  6694. schemeId: this.jiayiDialogData.schemeId,
  6695. seatNum: this.carInfo.seatCount
  6696. // companyId: this.totalCompanyList[this.typeDialogIndex].id,
  6697. // type: val.id,
  6698. // productId: this.productId,
  6699. // vehicleType: this.carInfo.cimodelclass,
  6700. // energyType: this.carInfo.energyType,
  6701. // carnature: this.carInfo.carnature
  6702. })
  6703. .then(res => {
  6704. if (res.code == 200) {
  6705. val.detail = res.data;
  6706. this.$forceUpdate();
  6707. }
  6708. });
  6709. });
  6710. }
  6711. },
  6712. propertyTpe(val) {
  6713. this[val].identifyType = this[val].property == "0" ? "10" : "01";
  6714. },
  6715. showDetailJiaYi(item, index, type) {
  6716. this.showDetailtable = [];
  6717. item.programme.drivingList.forEach(val => {
  6718. this.$api.letter
  6719. .getDrivingSon({
  6720. companyId: this.totalCompanyList[index].id,
  6721. projectCode: val.projectCode
  6722. })
  6723. .then(res => {
  6724. if (res.code == 200) {
  6725. this.showDetailtable.push(res.data);
  6726. }
  6727. });
  6728. });
  6729. if (type) {
  6730. this.detailJiaYiTitle = "驾意险详情";
  6731. this.showDetailJiaYiVisible1 = true;
  6732. } else {
  6733. this.detailJiaYiTitle = "查看详情";
  6734. this.showDetailJiaYiVisible = true;
  6735. }
  6736. this.typeDialogData = item.programme;
  6737. this.typeDialogData.shangyeList = [
  6738. ...item.programme.kinds.main,
  6739. ...item.programme.kinds.additional,
  6740. ...item.programme.kinds.service
  6741. ];
  6742. },
  6743. // 添加驾意险
  6744. addJiaYi(item) {
  6745. this.jiayiDialogData = item.programme99;
  6746. this.addYiwaiDialogVisible = true;
  6747. },
  6748. handleCloseAddYiwai() {
  6749. this.jiayiDialogData = {};
  6750. this.checkList = [];
  6751. this.addYiwaiDialogVisible = false;
  6752. },
  6753. // 调整险种
  6754. // 确定险种
  6755. subTypeDialog() {
  6756. // this.totalCompanyList[this.typeDialogIndex].zxProgramme = {}
  6757. // this.totalCompanyList[reslistindex].zxProgramme
  6758. let main = [];
  6759. let additional = [];
  6760. let service = [];
  6761. this.typeDialogData.kinds.forEach((val, index) => {
  6762. if (val.checked) {
  6763. if (val.grouping == "main") {
  6764. main.push(val);
  6765. }
  6766. if (val.grouping == "additional") {
  6767. additional.push(val);
  6768. }
  6769. if (val.grouping == "service") {
  6770. service.push(val);
  6771. }
  6772. }
  6773. });
  6774. this.totalCompanyList[this.typeDialogIndex].zxProgramme.kinds = {
  6775. main,
  6776. additional,
  6777. service
  6778. };
  6779. this.totalCompanyList[this.typeDialogIndex].programme.kinds = {
  6780. main,
  6781. additional,
  6782. service
  6783. };
  6784. this.handleAddYiWai();
  6785. this.handleCloseType();
  6786. },
  6787. showTypeDialog(item, index) {
  6788. item.programme99.kinds.map(item => {
  6789. const itemamtList = item.amtList.map(val => {
  6790. return val.label;
  6791. });
  6792. if (!itemamtList.includes("不投保")) {
  6793. item.checked = true;
  6794. item.Required = true;
  6795. item.amount = item.amtList.length ? item.amtList[0].value : item.max;
  6796. }
  6797. return item;
  6798. });
  6799. this.typeDialogData = item.programme99;
  6800. this.jiayiDialogData = item.programme99;
  6801. this.typeDialogVisible = true;
  6802. },
  6803. handleCloseType() {
  6804. this.typeDialogVisible = false;
  6805. this.typeDialogData = [];
  6806. this.jiayiDialogData = {};
  6807. this.checkList = [];
  6808. },
  6809. //清空保单图片
  6810. removePhoto(file, fileList, type) {
  6811. this.policyNumberForm[type] = [];
  6812. },
  6813. editingWay(paramsEdit) {
  6814. // console.log(paramsEdit)
  6815. if (paramsEdit) {
  6816. var _this = this;
  6817. this.jqchecked = false;
  6818. this.tbczcarShow = false;
  6819. this.bbtbcarShow = false;
  6820. this.bbczcarShow = false;
  6821. const {
  6822. carinfo,
  6823. ownerinfo,
  6824. applyinfo,
  6825. insureinfo,
  6826. quoteno,
  6827. orderno
  6828. } = paramsEdit;
  6829. this.editorInfo = { ...paramsEdit };
  6830. // this.vehicleAndVesselTaxForm = { ...paramsEdit.vehicleAndVesselTax };
  6831. // console.log(paramsEdit.jqstartdate, 6666);
  6832. if (paramsEdit.jqstartdate) {
  6833. if (paramsEdit.jqstartdate.split(" ")[1] == "00:00:00") {
  6834. this.immediatelyValue = false;
  6835. } else {
  6836. this.immediatelyValue = true;
  6837. }
  6838. } else {
  6839. this.immediatelyValue = true;
  6840. }
  6841. _this.carInfo = carinfo;
  6842. if (_this.carInfo.carnature == "8A") {
  6843. _this.carInfo.carnature = "02";
  6844. _this.carInfo.vehicleUse = "05";
  6845. } else {
  6846. _this.carInfo.carnature;
  6847. _this.carInfo.vehicleUse;
  6848. }
  6849. _this.ownerInfo = ownerinfo;
  6850. _this.policyHolderInfo = applyinfo;
  6851. _this.insuredPersonInfo = insureinfo;
  6852. _this.quoteno = quoteno;
  6853. _this.orderno = orderno;
  6854. _this.productId = paramsEdit.productid;
  6855. _this.tbczcarShow = applyinfo.owner;
  6856. _this.bbczcarShow = insureinfo.owner;
  6857. _this.kindList = paramsEdit.king;
  6858. _this.bbtbcarShow = insureinfo.insuranceHolder;
  6859. _this.ownerInfo.age = _this.ownerInfo.age
  6860. ? getAgeByIdCard(_this.ownerInfo.identifyNumber)
  6861. : "";
  6862. _this.policyHolderInfo.age = _this.policyHolderInfo.age
  6863. ? getAgeByIdCard(_this.policyHolderInfo.identifyNumber)
  6864. : "";
  6865. _this.insuredPersonInfo.age = _this.policyHolderInfo.age
  6866. ? getAgeByIdCard(_this.insuredPersonInfo.identifyNumber)
  6867. : "";
  6868. _this.ownerInfo.property = _this.ownerInfo.property
  6869. ? _this.ownerInfo.property
  6870. : "1";
  6871. _this.policyHolderInfo.property = _this.policyHolderInfo.property
  6872. ? _this.policyHolderInfo.property
  6873. : "1";
  6874. _this.insuredPersonInfo.property = _this.insuredPersonInfo.property
  6875. ? _this.insuredPersonInfo.property
  6876. : "1";
  6877. if (paramsEdit.carinfo.transferFlag) {
  6878. this.transferDateShow = true;
  6879. } else {
  6880. this.transferDateShow = false;
  6881. this.carInfo.transferDate = ''
  6882. }
  6883. paramsEdit.risk.map(ele => {
  6884. if (ele.riskCode == "0507") {
  6885. _this.jqchecked = true;
  6886. this.protocolJudge("0507", true);
  6887. _this.riskList.push({
  6888. riskCode: "0507"
  6889. });
  6890. // _this.jqstartDate = ele.startDate;
  6891. // _this.jqendDate = ele.endDate;
  6892. // this.jqstartDate = this.$route.query.data.jqstartdate
  6893. // this.jqendDate = this.$route.query.data.jqenddate
  6894. _this.jqstartDate = this.transformTime1();
  6895. _this.jqendDate = this.oneYearPast1(this.jqstartDate);
  6896. } else if (ele.riskCode == "0510") {
  6897. _this.sychecked = true;
  6898. this.protocolJudge("0510", true);
  6899. _this.riskList.push({
  6900. riskCode: "0510"
  6901. });
  6902. // _this.systartDate = ele.startDate;
  6903. // _this.syendDate = ele.endDate;
  6904. if (new Date(ele.startDate).getTime() > new Date().getTime()) {
  6905. _this.systartDate = ele.startDate;
  6906. _this.syendDate = ele.endDate;
  6907. } else {
  6908. _this.systartDate = this.transformTime1();
  6909. _this.syendDate = this.oneYearPast1(this.systartDate);
  6910. }
  6911. _this.insureList.map(eleA => {
  6912. paramsEdit.king.map(eleB => {
  6913. if (eleA.kindCode == eleB.kindCode) {
  6914. switch (eleB.kindCode) {
  6915. case "D4":
  6916. case "SY_FJ_YBW2":
  6917. eleA.amount = JSON.stringify(eleB.unitAmount);
  6918. break;
  6919. case "MJ1":
  6920. case "MJ2":
  6921. case "MJ3":
  6922. case "MJ4":
  6923. eleA.amount = eleB.deductibleRate;
  6924. case "A":
  6925. eleA.amount = JSON.stringify(eleB.amount);
  6926. this.protocolJudge("A", true);
  6927. break;
  6928. default:
  6929. eleA.amount = JSON.stringify(eleB.amount);
  6930. }
  6931. }
  6932. });
  6933. });
  6934. }
  6935. });
  6936. // this.HistoryList = this.paramsEdit.insAreaCompanyList;
  6937. let params = {
  6938. orderNo: paramsEdit.orderno,
  6939. orderStatus: ""
  6940. };
  6941. this.$api.letter.queryQuoteHistory(params).then(res => {
  6942. res.data.forEach(item => {
  6943. if (item.accidentInfo) {
  6944. item.accidentInfo.constructor === Object
  6945. ? [item.accidentInfo]
  6946. : item.accidentInfo;
  6947. }
  6948. });
  6949. this.HistoryList = res.data;
  6950. });
  6951. //--获取影像信息--
  6952. _this.imageEcho(this.quoteno);
  6953. // this.$refs.imageDialog.imageEcho(this.quoteno)
  6954. // this.commpanyList()
  6955. //--显示影像按钮--
  6956. _this.imageUploadShow = true;
  6957. this.$forceUpdate();
  6958. _this.obtainProtocol(paramsEdit);
  6959. } else {
  6960. this.jqstartDate = this.transformTime1();
  6961. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  6962. this.systartDate = this.transformTime1();
  6963. this.syendDate = this.oneYearPast1(this.systartDate);
  6964. }
  6965. },
  6966. handleRemove1(file, imageIdList, imgList) {
  6967. this[imageIdList].map((ele, index) => {
  6968. if (file.imageId === ele.imageId) {
  6969. this[imageIdList].splice(index, 1);
  6970. }
  6971. return ele;
  6972. });
  6973. if (file.imageId) {
  6974. this[imgList].map((ele, index) => {
  6975. if (file.imageId === ele.imageId) {
  6976. this[imgList].splice(index, 1);
  6977. }
  6978. return ele;
  6979. });
  6980. } else {
  6981. this[imgList].map((ele, index) => {
  6982. if (file.uid === ele.uid) {
  6983. this[imgList].splice(index, 1);
  6984. }
  6985. return ele;
  6986. });
  6987. }
  6988. },
  6989. uploadinformation() {
  6990. // //上传图片
  6991. const mergedArray = [
  6992. ...this.imageList1,
  6993. ...this.imageList2,
  6994. ...this.imageList3,
  6995. ...this.imageList4,
  6996. ...this.imageList5,
  6997. ...this.imageList6
  6998. ];
  6999. let imageparam = {
  7000. imageList: mergedArray,
  7001. quoteNo: this.quoteno
  7002. };
  7003. this.$api.letter.uploadImages(imageparam).then(responses => {
  7004. if (responses.code == "200") {
  7005. this.imageEcho(this.quoteno);
  7006. this.$message({ message: responses.msg, type: "success" });
  7007. } else {
  7008. this.$message({ message: responses.msg, type: "error" });
  7009. }
  7010. });
  7011. this.imageUploaddialogVisible = false;
  7012. },
  7013. repairinformation() {
  7014. // //上传图片
  7015. const mergedArray = [
  7016. ...this.imageList1,
  7017. ...this.imageList2,
  7018. ...this.imageList3,
  7019. ...this.imageList4,
  7020. ...this.imageList5,
  7021. ...this.imageList6
  7022. ];
  7023. let imageparam = {
  7024. imageList: mergedArray,
  7025. companyId: this.companyId
  7026. };
  7027. this.$api.letter.additionalInformation(imageparam).then(responses => {
  7028. if (responses.code == "200") {
  7029. this.imageUploaddialogVisible = false;
  7030. this.$message({ message: responses.msg, type: "success" });
  7031. } else {
  7032. this.$message({ message: responses.msg, type: "error" });
  7033. }
  7034. });
  7035. },
  7036. //手机号复制粘贴处理
  7037. handlePaste(e, mobileKey) {
  7038. e.preventDefault(); //阻止默认行为
  7039. const clipboardData = e.clipboardData || window.clipboardData; //获取剪切板内容
  7040. let pastedText = clipboardData.getData("text").replace(/\s+/g, ""); //获取纯文本并处理空格
  7041. // 截取前11个字符,以确保不会超过手机号长度限制
  7042. pastedText = pastedText.substring(0, 11);
  7043. // 使用Vue.nextTick确保更新发生在DOM更新之后
  7044. this.$nextTick(() => {
  7045. this[mobileKey].mobile = pastedText;
  7046. });
  7047. },
  7048. // licenseNoFun(data){
  7049. // if(data && this.carInfo.enginedesc){
  7050. // this.obtainProtocol()
  7051. // }
  7052. // },
  7053. // enginedescFun(data){
  7054. // if(data && this.carInfo.licenseNo){
  7055. // this.obtainProtocol()
  7056. // }
  7057. // },
  7058. packageChange(val) {
  7059. let arr = this.packageOptions.find(ele => ele.id == val).kind;
  7060. if (arr.length > 0) {
  7061. this.insureList.map(eleA => {
  7062. arr.map(eleB => {
  7063. if (eleA.kindCode == eleB.kindCode) {
  7064. switch (eleB.kindCode) {
  7065. case "D4":
  7066. case "SY_FJ_YBW2":
  7067. eleA.amount = JSON.stringify(eleB.unitAmount);
  7068. break;
  7069. case "MJ1":
  7070. case "MJ2":
  7071. case "MJ3":
  7072. case "MJ4":
  7073. eleA.amount = eleB.deductibleRate;
  7074. break;
  7075. case "TY2":
  7076. case "TY3":
  7077. case "TY4":
  7078. eleA.amount = eleB.serviceTimes;
  7079. break;
  7080. default:
  7081. eleA.amount = JSON.stringify(eleB.amount);
  7082. }
  7083. }
  7084. });
  7085. });
  7086. } else {
  7087. this.insureList.map(eleA => {
  7088. eleA.amount = "0";
  7089. });
  7090. }
  7091. },
  7092. capType(val) {
  7093. if (val == "0") {
  7094. return "success";
  7095. }
  7096. if (val == "1") {
  7097. return "warning";
  7098. }
  7099. if (val == "2" || val == "3" || val == "4") {
  7100. return "danger";
  7101. }
  7102. },
  7103. handleCheckAllChange(ele) {
  7104. this.totalCompanyList.forEach((val, index) => {
  7105. ele ? (val.checked = true) : (val.checked = false);
  7106. // this.initchange(ele, val.id, val.cnName, index);
  7107. });
  7108. },
  7109. retractFun() {
  7110. this.isRetract = this.isRetract == false ? true : false;
  7111. },
  7112. //中煤意外险调整份数事件
  7113. ZMhandleChange(val) {
  7114. if (!val) {
  7115. this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  7116. }
  7117. },
  7118. //中煤意外险选中对应意外险方案
  7119. // ZMHandleSelectionChange(val) {
  7120. // // if(val.length > 0&& val[0].quantity==undefined){
  7121. // // this.$message({ message: "请先填写投保份数再勾选!", type: "error", });
  7122. // // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  7123. // // return false;
  7124. // // }
  7125. // if (val.length > 1) {
  7126. // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  7127. // this.$refs.ZmMultipleTable[0].toggleRowSelection(val.pop()); //pop:最后一个
  7128. // } else {
  7129. // this.zhongmeiaccidentalDrivingVo = val[0]; //multipleSelection:当前选择的数组
  7130. // }
  7131. // },
  7132. //中煤意外险选中对应产品带出方案明细
  7133. zhongmeiInsuranceChange(index) {
  7134. //每次选中产品,清空之前选中的数据
  7135. this.zhongmeitemplateSelection = index;
  7136. this.zhongmeiaccidentalDrivingVo = {};
  7137. this.zhongmeiInsuranceDataTable = [];
  7138. let data = this.zhongmeiInsuranceData.find(
  7139. val => val.projectCode == index
  7140. );
  7141. //把返回的方案明细放入展示数据对象中
  7142. this.accidentFormZM = Object.assign(this.accidentFormZM, data);
  7143. this.accidentFormZM.quantity = "1";
  7144. if (data && data.son) {
  7145. this.accidentPremiumZM = data.sumPremium;
  7146. this.zhongmeiInsuranceDataTable = data.son;
  7147. }
  7148. },
  7149. // 截图粘贴
  7150. copybjd() {
  7151. let that = this;
  7152. html2Canvas(document.getElementById("pdfContentsDiv"), {
  7153. allowTaint: true,
  7154. taintTest: false
  7155. }).then(function (canvas) {
  7156. let base64Data = "";
  7157. // let blob = null
  7158. base64Data = canvas.toDataURL("image/png", 1);
  7159. const date = new Date();
  7160. const saveInfo = {
  7161. download: date.getTime() + `.png`,
  7162. href: base64Data
  7163. };
  7164. const element = document.createElement("a");
  7165. element.style.display = "none";
  7166. for (const key in saveInfo) {
  7167. element.setAttribute(key, saveInfo[key]);
  7168. }
  7169. document.body.appendChild(element);
  7170. element.click();
  7171. setTimeout(() => {
  7172. document.body.removeChild(element);
  7173. }, 300);
  7174. // var format = 'image/png'
  7175. // //将Base64图片编码转换成blob
  7176. // var base64 = base64Data
  7177. // var code = window.atob(base64.split(',')[1])
  7178. // var aBuffer = new window.ArrayBuffer(code.length)
  7179. // var uBuffer = new window.Uint8Array(aBuffer)
  7180. // for (var i = 0; i < code.length; i++) {
  7181. // uBuffer[i] = code.charCodeAt(i) & 0xff
  7182. // }
  7183. // try {
  7184. // blob = new Blob([uBuffer], { type: format })
  7185. // } catch (e) {
  7186. // window.BlobBuilder =
  7187. // window.BlobBuilder ||
  7188. // window.WebKitBlobBuilder ||
  7189. // window.MozBlobBuilder ||
  7190. // window.MSBlobBuilder
  7191. // if (e.name == 'TypeError' && window.BlobBuilder) {
  7192. // var bb = new window.BlobBuilder()
  7193. // bb.append(uBuffer.buffer)
  7194. // blob = bb.getBlob('image/png')
  7195. // } else if (e.name == 'InvalidStateError') {
  7196. // blob = new Blob([aBuffer], { type: format })
  7197. // }
  7198. // }
  7199. // const clipboardItemInput = new ClipboardItem({
  7200. // 'image/png': blob,
  7201. // })
  7202. // that.$copyText({
  7203. // 'image/png': blob,
  7204. // }).then(
  7205. //   function(e) {
  7206. //     console.log("copy arguments e:", e);
  7207. //     alert("复制成功!");
  7208. //   },
  7209. //   function(e) {
  7210. //     console.log("copy arguments e:", e);
  7211. //     alert("复制失败!");
  7212. //   }
  7213. //   ),
  7214. // navigator.clipboard.write([clipboardItemInput])
  7215. // that.$message({
  7216. // message: '已截图并复制到粘贴板!',
  7217. // type: 'success'
  7218. // });
  7219. });
  7220. },
  7221. // 即时起保
  7222. immediatelyChange(e) {
  7223. if (e) {
  7224. this.immediatelyValue = true;
  7225. const date = new Date();
  7226. date.setHours(date.getHours() + 2);
  7227. date.setMinutes(0);
  7228. date.setSeconds(0);
  7229. this.jqstartDate = date;
  7230. this.jqendDate = this.oneYearPast1(date);
  7231. } else {
  7232. this.immediatelyValue = false;
  7233. this.jqstartDate = this.transformTime1();
  7234. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  7235. }
  7236. },
  7237. // 使用性质方法
  7238. natureFun() {
  7239. if (this.carInfo.carnature == "01") {
  7240. this.carInfo.vehicleUse = "";
  7241. }
  7242. },
  7243. // 点击同步报价后的时间
  7244. syncData(item) {
  7245. this.jqstartDate = item.startDateJq ? item.startDateJq : this.jqstartDate;
  7246. this.jqendDate = item.endDateJq ? item.endDateJq : this.endDateJq;
  7247. this.systartDate = item.startDateSy ? item.startDateSy : this.systartDate;
  7248. this.syendDate = item.endDateSy ? item.endDateSy : this.syendDate;
  7249. },
  7250. //纳税类型事件
  7251. taxRelifFlagChange(val) {
  7252. if (val == 4) {
  7253. citydata.rawCitiesData.map(val => {
  7254. this.provinceSelect.push({
  7255. name: val.name,
  7256. code: val.code
  7257. });
  7258. return val;
  7259. });
  7260. }
  7261. },
  7262. //身份证前六位识别地区
  7263. // getAreaByCode(code) {
  7264. // let list = regionData;
  7265. // let provinceCode = code.substring(0, 2);
  7266. // let cityCode = code.substring(0, 4);
  7267. // let areaCode = code.substring(0, 6);
  7268. // // 获取省份信息
  7269. // let province = list.filter(function (item) {
  7270. // return item.value === provinceCode;
  7271. // });
  7272. // // 获取城市信息
  7273. // let city = province[0].children.filter(function (item) {
  7274. // return item.value === cityCode;
  7275. // });
  7276. // if (city.length > 0) {
  7277. // // 获取区/县信息
  7278. // let area = city[0].children.filter(function (item) {
  7279. // return item.value === areaCode;
  7280. // });
  7281. // return province[0].label + city[0].label + area[0].label;
  7282. // }
  7283. // },
  7284. //--数据字典 begin --
  7285. getDicType(type) {
  7286. this.$api.insCompany.dicType(type).then(res => {
  7287. if (res.code == 200) {
  7288. if (type == "insOrderStatus") {
  7289. let data = JSON.parse(JSON.stringify(res.data.ddList));
  7290. data.unshift({
  7291. dictTag: "全部",
  7292. dictValue: "888"
  7293. });
  7294. this[type + "options"] = data;
  7295. } else {
  7296. this[type + "options"] = res.data.ddList;
  7297. }
  7298. }
  7299. });
  7300. },
  7301. //身份证失去焦点
  7302. identifyblur(info) {
  7303. // console.log(getAgeByIdCard(this[info].identifyNumber))
  7304. this[info].age =
  7305. typeof getAgeByIdCard(this[info].identifyNumber) == "number"
  7306. ? getAgeByIdCard(this[info].identifyNumber)
  7307. : "";
  7308. this[info].gender = getGenderByIdCard(this[info].identifyNumber);
  7309. },
  7310. //车主信息选择性别
  7311. genderChange(e) {
  7312. if (this.tbczcarShow) {
  7313. this.policyHolderInfo.gender = e;
  7314. } else if (this.bbczcarShow) {
  7315. this.insuredPersonInfo.gender = e;
  7316. }
  7317. },
  7318. //省市区
  7319. areahandleChange(event, info) {
  7320. if (event[0] != null && event[1] != null && event[2] != null) {
  7321. this[info].province = event[0];
  7322. this[info].provinceName = this.getSelectedNames(event)[0];
  7323. this[info].city = event[1];
  7324. this[info].cityName = this.getSelectedNames(event)[1];
  7325. this[info].county = event[2];
  7326. this[info].countyName = this.getSelectedNames(event)[2];
  7327. }
  7328. },
  7329. getSelectedNames(codes) {
  7330. const names = [];
  7331. const findNames = (options, codes) => {
  7332. options.forEach(option => {
  7333. if (codes.includes(option.code)) {
  7334. names.push(option.name);
  7335. if (option.sub) {
  7336. findNames(option.sub, codes);
  7337. }
  7338. }
  7339. });
  7340. };
  7341. findNames(this.areaOption, codes);
  7342. return names;
  7343. },
  7344. iconfftter(icon) {
  7345. return CommonUtil.getDataName({
  7346. dataList: this.global.insCompanyList,
  7347. value: "name",
  7348. label: "icon",
  7349. data: icon
  7350. });
  7351. },
  7352. disabledDate(time) {
  7353. let datetime = this.carInfo.registerDate;
  7354. return time.getTime() < new Date(datetime).getTime() - 8.64e7;
  7355. },
  7356. onScroll() {
  7357. // 变量scrollTop是滚动条滚动时,滚动条上端距离顶部的距离
  7358. var scrollTop =
  7359. document.documentElement.scrollTop || document.body.scrollTop;
  7360. // 变量windowHeight是可视区的高度
  7361. var windowHeight =
  7362. document.documentElement.clientHeight || document.body.clientHeight;
  7363. // 变量scrollHeight是滚动条的总高度(当前可滚动的页面的总高度)
  7364. var scrollHeight =
  7365. document.documentElement.scrollHeight || document.body.scrollHeight;
  7366. // 滚动条到底部
  7367. if (Math.ceil(scrollTop + windowHeight) >= scrollHeight) {
  7368. this.isBottom = true;
  7369. } else {
  7370. this.isBottom = false;
  7371. }
  7372. },
  7373. pinganInsuranceChange(index, index1, val) {
  7374. if (!index) {
  7375. return;
  7376. }
  7377. this.accidentFormPA[index1].pingantemplateSelection = index;
  7378. this.accidentFormPA[index1].projectName = index;
  7379. val.map(val1 => {
  7380. if (val1.projectName == index) {
  7381. val1.son.forEach(val3 => {
  7382. val3.quantity = "1";
  7383. });
  7384. this.accidentFormPA[index1].pinganInsuranceDataTable = val1.son;
  7385. this.accidentFormPA[index1].projectCode = val1.projectCode;
  7386. }
  7387. });
  7388. // this.accidentFormPA[index1].projectCode=this.pinganInsuranceData.find(val1=>{
  7389. // // val1.map(
  7390. // // (val) => val.projectName == index
  7391. // // ).projectCode
  7392. // }
  7393. // )
  7394. // this.accidentFormPA[index1].pinganInsuranceDataTable = this.pinganInsuranceData.find(
  7395. // (val) => val.projectName == index
  7396. // ).son;
  7397. },
  7398. taikangInsuranceChange(index) {
  7399. if (index) {
  7400. this.TkDrivingChange(
  7401. this.taikangaccidentDataList.find(val => val.projectCode == index)
  7402. );
  7403. }
  7404. if (!index) {
  7405. return;
  7406. }
  7407. this.taikangtemplateSelection = index;
  7408. this.accidentFormTk = Object.assign(
  7409. this.accidentFormTk,
  7410. this.taikangaccidentDataList.find(val => val.projectCode == index)
  7411. );
  7412. this.taikangaccidentDataList
  7413. .find(val => val.projectCode == index)
  7414. .son.forEach(item => {
  7415. item.sumAmount =
  7416. Number(item.amount) * Number(this.accidentFormTk.seatNum);
  7417. });
  7418. this.taikangInsuranceDataTable = this.taikangaccidentDataList.find(
  7419. val => val.projectCode == index
  7420. ).son;
  7421. this.accidentPremiumTk = this.accidentFormTk.premium;
  7422. },
  7423. anshengInsuranceChange(index) {
  7424. this.anshengtemplateSelection = index;
  7425. let data = this.anshengInsuranceData.find(
  7426. val => val.projectCode == index
  7427. );
  7428. this.anshengaccidentalDrivingVo.parentName = data.projectName;
  7429. this.anshengaccidentalDrivingVo.parentCode = data.projectCode;
  7430. this.anshengInsuranceDataTable = [];
  7431. this.anshengInsuranceDataTable = data.children;
  7432. this.anshengInsuranceDataTable.forEach(e => (e.quantity = "1"));
  7433. },
  7434. hengbangInsuranceChange(index) {
  7435. this.hengbangInsuranceDataTable = this.hengbangInsuranceData.find(
  7436. val => val.projectCode == index
  7437. ).son;
  7438. this.hengbangtemplateSelection = index;
  7439. if (this.hengbangInsuranceDataTable.length) {
  7440. this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(
  7441. val => val.projectCode == index
  7442. );
  7443. }
  7444. },
  7445. taipingyangInsuranceChange(index) {
  7446. this.taipingyangInsuranceDataTable = this.taipingyangInsuranceData.find(
  7447. val => val.projectCode == index
  7448. ).son;
  7449. this.taipingyangtemplateSelection = index;
  7450. if (this.taipingyangInsuranceDataTable.length) {
  7451. this.taipingyangaccidentalDrivingVo = this.taipingyangInsuranceData.find(
  7452. val => val.projectCode == index
  7453. );
  7454. }
  7455. },
  7456. huanongInsuranceChange(index) {
  7457. this.huanongInsuranceDataTable = this.huanongInsuranceData.find(
  7458. val => val.projectCode == index
  7459. ).son;
  7460. this.accidentFormHN.accidentType = index;
  7461. this.huanongaccidentalDrivingVo = Object.assign(
  7462. this.huanongInsuranceData.find(val => val.projectCode == index),
  7463. this.accidentFormHN
  7464. );
  7465. },
  7466. taipingInsuranceChange(index) {
  7467. this.taipingtemplateSelection = index;
  7468. this.taipingInsuranceDataTable = this.taipingInsuranceData.find(
  7469. val => val.projectCode == index
  7470. ).son;
  7471. if (
  7472. this.taipingInsuranceDataTable &&
  7473. this.taipingInsuranceDataTable.length
  7474. ) {
  7475. this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(
  7476. val => val.projectCode == index
  7477. );
  7478. }
  7479. },
  7480. zijinInsuranceChange(index) {
  7481. this.zijintemplateSelection = index;
  7482. this.zijinInsuranceDataTable = [];
  7483. this.$refs.expandTable[0].clearSelection();
  7484. index.forEach(item => {
  7485. this.zijinInsuranceDataTable.push(
  7486. this.ziJinInsuranceData.find(val => val.projectCode == item)
  7487. );
  7488. });
  7489. this.zijinInsuranceDataTable.forEach(item => {
  7490. this.$nextTick(() => {
  7491. this.$refs.expandTable[0].toggleRowSelection(item);
  7492. });
  7493. });
  7494. this.CheckboxChange(this.zijinInsuranceDataTable);
  7495. },
  7496. renshouInsuranceChange(index) {
  7497. // this.renshouInsuranceDataTable = [
  7498. // this.renshouInsuranceData.find(val => val.projectCode == index)
  7499. // ];
  7500. this.renshoutemplateSelection = index;
  7501. this.renshouInsuranceDataTable = this.renshouInsuranceData.find(
  7502. val => val.projectCode == index
  7503. ).son;
  7504. if (index) {
  7505. this.RSDrivingChange(
  7506. this.renshouInsuranceData.find(val => val.projectCode == index)
  7507. );
  7508. }
  7509. },
  7510. async dajiaInsuranceChange(index) {
  7511. this.dajiaaccidentalDrivingVo = {};
  7512. let data = await this.$api.letter.accidentalDrivingInfo(index);
  7513. if (data.code == 200) {
  7514. this.dajiaaccidentalDrivingVo = {
  7515. rideRiskCode: index,
  7516. rideRiskName: this.dajiaInsuranceData.find(val => val.id == index)
  7517. .productName,
  7518. quantity: "1"
  7519. };
  7520. this.dajiaInsuranceDataTable = data.data;
  7521. }
  7522. },
  7523. zhonganInsuranceChange(index) {
  7524. this.zhongantemplateSelection = index;
  7525. this.zhonganInsuranceDataTable = this.zhonganInsuranceData.find(
  7526. val => val.projectCode == index
  7527. ).son;
  7528. if (index) {
  7529. this.ZADrivingChange(
  7530. this.zhonganInsuranceData.find(val => val.projectCode == index)
  7531. );
  7532. }
  7533. },
  7534. // 渤海选择意外险类型
  7535. async bohaiInsuranceChange(index) {
  7536. if (index) {
  7537. this.boHaiaccidentForm.projectCode = index;
  7538. // this.boHaiaccidentForm.projectName = this.dajiaInsuranceData.find(
  7539. // (e) => e.projectCode == index
  7540. // ).projectName;
  7541. this.boHaiaccidentForm.copies = "1";
  7542. this.boHaiaccidentForm.premium = Number(
  7543. this.boHaiaccidentDataList.find(e => e.projectCode == index)
  7544. .sumPremium
  7545. );
  7546. this.bohaiInsuranceDataTable = this.boHaiaccidentDataList.find(
  7547. e => e.projectCode == index
  7548. ).son;
  7549. // let data = await this.$api.letter.productDetailsQueryboHai({
  7550. // projectCode: index,
  7551. // productCode: this.boHaiaccidentDataList.find(
  7552. // (e) => e.packageCode == index
  7553. // ).productCode,
  7554. // agreementId: this.boHaiaccidentForm.agreementId,
  7555. // });
  7556. // if (data.code == 200 && data.data) {
  7557. // this.accidentLoadingbh = false;
  7558. // this.bohaiInsuranceDataTable = data.data;
  7559. // } else {
  7560. // this.$message.error(data.msg);
  7561. // this.bohaiInsuranceDataTable = [];
  7562. // }
  7563. }
  7564. },
  7565. djcxchange(index) {
  7566. if (index) {
  7567. this.dajiaaccidentForm.parentCode = index;
  7568. this.dajiaaccidentForm.quantity = "1";
  7569. this.dajiaaccidentForm.prodCode = "";
  7570. this.dajiaaccidentDataListChild = this.dajiaInsuranceData.find(
  7571. e => e.projectCode == index
  7572. ).children;
  7573. this.dajiaaccidentalDrivingVo.parentName = this.dajiaInsuranceData.find(
  7574. e => e.projectCode == index
  7575. ).projectName;
  7576. this.dajiaaccidentalDrivingVo.parentCode = this.dajiaInsuranceData.find(
  7577. e => e.projectCode == index
  7578. ).projectCode;
  7579. }
  7580. },
  7581. djcxchangeChild(index) {
  7582. if (index) {
  7583. let list = this.dajiaaccidentDataListChild.find(
  7584. val => val.projectCode == index
  7585. );
  7586. this.dajiaaccidentForm = {
  7587. ...this.dajiaaccidentForm,
  7588. prodCode: index,
  7589. projectName: list.projectName,
  7590. sumAmount: Number(list.sumAmount),
  7591. riskCode: list.riskCode,
  7592. sumPremium: Number(list.sumPremium)
  7593. };
  7594. list.productId = list.id;
  7595. this.dajiaInsuranceDataTable = list.son;
  7596. this.dajiaaccidentalDrivingVo = Object.assign({
  7597. ...this.dajiaaccidentalDrivingVo,
  7598. ...list
  7599. });
  7600. } else {
  7601. this.dajiaInsuranceDataTable = [];
  7602. }
  7603. },
  7604. // 国任选择意外险类型
  7605. async grcxchange(index) {
  7606. if (index) {
  7607. this.accidentLoading = true;
  7608. this.guoRenaccidentForm.goodsCode = index;
  7609. this.guoRenaccidentForm.quantity = "1";
  7610. this.guoRenaccidentForm.prodCode = "";
  7611. this.guoRenaccidentDataListChild = this.guoRenaccidentDataList.find(
  7612. e => e.projectCode == index
  7613. ).children;
  7614. this.guoRenaccidentalDrivingVo.parentName = this.guoRenaccidentDataList.find(
  7615. e => e.projectCode == index
  7616. ).projectName;
  7617. this.guoRenaccidentalDrivingVo.parentCode = this.guoRenaccidentDataList.find(
  7618. e => e.projectCode == index
  7619. ).projectCode;
  7620. // let data = await this.$api.letter.syncNonAutoInsGuoren({
  7621. // goodsCode: index,
  7622. // agreementId: this.guoRenaccidentForm.agreementId
  7623. // });
  7624. // if (data.code == 200) {
  7625. // let num = 0;
  7626. // data.data.forEach(item => {
  7627. // num += Number(item.premium);
  7628. // });
  7629. // this.accidentLoading = false;
  7630. // } else {
  7631. // this.accidentLoading = false;
  7632. // this.$message.error(data.msg);
  7633. // this.guoRenaccidentDataListChild = [];
  7634. // }
  7635. }
  7636. },
  7637. // 国任选择意外险子级类型
  7638. async grcxchangeChild(index) {
  7639. let list = this.guoRenaccidentDataListChild.find(
  7640. val => val.projectCode == index
  7641. );
  7642. this.guoRenaccidentForm = {
  7643. ...this.guoRenaccidentForm,
  7644. prodCode: index,
  7645. policyNum: Number(list.sumPremium),
  7646. riskCode: list.riskCode,
  7647. // amount: list.amount,
  7648. sumPremium: Number(list.sumPremium)
  7649. // appnum:Number(list.appnum)
  7650. };
  7651. this.guoRenInsuranceDataTable = list.son;
  7652. this.guoRenaccidentalDrivingVo = Object.assign({
  7653. ...list,
  7654. ...this.guoRenaccidentalDrivingVo
  7655. });
  7656. },
  7657. // 选择意外险类型
  7658. async yongchengInsuranceChange(index) {
  7659. if (!index) {
  7660. return;
  7661. }
  7662. this.yongchengtemplateSelection = index;
  7663. this.accidentForm = Object.assign(
  7664. this.accidentForm,
  7665. this.yongchengaccidentDataList.find(val => val.projectCode == index)
  7666. );
  7667. this.yongchengaccidentDataList
  7668. .find(val => val.projectCode == index)
  7669. .son.forEach(item => {
  7670. item.sumAmount =
  7671. Number(item.amount) * Number(this.accidentForm.seatNum);
  7672. });
  7673. this.yongchengInsuranceDataTable = this.yongchengaccidentDataList.find(
  7674. val => val.projectCode == index
  7675. ).son;
  7676. this.accidentPremium = this.accidentForm.sumPremium;
  7677. // this.accidentForm.fen = "1";
  7678. // let data = await this.$api.letter.ycgainAccidentSchemeList({
  7679. // companyCode: this.accidentForm.companyId,
  7680. // code: index,
  7681. // agreementId: this.accidentForm.agreementId,
  7682. // seatNum: Number(this.carInfo.seatCount)
  7683. // });
  7684. // if (data.code == 200) {
  7685. // let num = 0;
  7686. // data.data.forEach(item => {
  7687. // num += Number(item.premium);
  7688. // });
  7689. // this.accidentPremium = num;
  7690. // this.accidentForm.premium = num;
  7691. // this.accidenttableData = data.data;
  7692. // }
  7693. },
  7694. numberCopieschange(index) {
  7695. this.accidentForm.sumPremium = Number(this.accidentPremium) * index;
  7696. },
  7697. numberCopieschangeTk(index) {
  7698. this.accidentFormTk.sumPremium = Number(this.accidentPremiumTk) * index;
  7699. },
  7700. numberCopieschangePA(index, index1) {
  7701. this.accidentFormPA.premium =
  7702. Number(this.accidentFormPA[index1].accidentPremiumPA) * index;
  7703. },
  7704. numberCopieschangeZM(index) {
  7705. this.accidentFormZM.sumPremium = Number(this.accidentPremiumZM) * index;
  7706. },
  7707. numberCopieschangeGR(index) {
  7708. this.guoRenaccidentForm.sumPremium =
  7709. Number(this.guoRenaccidentForm.policyNum) * index;
  7710. },
  7711. continuousChange(id) {
  7712. this.continuousCompanyList.map(ele => {
  7713. if (ele.id == id) {
  7714. this.attributionform.configure = [];
  7715. ele.configure.map((ele, index) => {
  7716. this.attributionform.configure.push({
  7717. field: ele.field,
  7718. isEdit: ele.isEdit,
  7719. label: ele.label,
  7720. type: ele.type,
  7721. value: ""
  7722. });
  7723. });
  7724. }
  7725. });
  7726. },
  7727. //续保查询
  7728. continuousquery() {
  7729. this.$api.letter.queryRenewal(this.attributionform).then(res => {
  7730. if (res.code == "200") {
  7731. this.carInfo = res.data.carInfo;
  7732. this.carInfo.frameNo = res.data.carInfo.vinNo;
  7733. this.ownerInfo = res.data.ownerInfo;
  7734. this.policyHolderInfo = res.data.policyHolderInfo;
  7735. this.insuredPersonInfo = res.data.insuredPersonInfo;
  7736. res.data.riskList.map(ele => {
  7737. if (ele.riskCode == "0507") {
  7738. this.jqchecked = true;
  7739. this.jqstartDate = ele.startDate;
  7740. this.jqendDate = ele.endDate;
  7741. } else if (ele.riskCode == "0510") {
  7742. this.sychecked = true;
  7743. this.systartDate = ele.startDate;
  7744. this.syendDate = ele.endDate;
  7745. }
  7746. county;
  7747. });
  7748. } else {
  7749. this.$message({
  7750. message: res.msg,
  7751. type: "error",
  7752. duration: 2000
  7753. });
  7754. }
  7755. });
  7756. },
  7757. //永诚转保
  7758. renewalCodeconfirm() {
  7759. this.renewalCodedialogVisible = false;
  7760. this.quote();
  7761. },
  7762. //报价轨迹查询
  7763. RadioHistoryChange(e) {
  7764. let params = {
  7765. orderNo: this.orderno,
  7766. orderStatus: e == 888 ? "" : e
  7767. };
  7768. this.$api.letter.queryQuoteHistory(params).then(res => {
  7769. res.data.forEach(item => {
  7770. if (item.accidentInfo) {
  7771. item.accidentInfo.constructor === Object
  7772. ? [item.accidentInfo]
  7773. : item.accidentInfo;
  7774. }
  7775. });
  7776. this.HistoryList = res.data;
  7777. });
  7778. },
  7779. protocolJudge(val, val1) {
  7780. if (val1) {
  7781. this.totalCompanyList.forEach(e => {
  7782. if (
  7783. e.agreement.find(
  7784. el => el.productsCode && el.productsCode.includes(val)
  7785. )
  7786. ) {
  7787. e.agreement.find(
  7788. el => el.productsCode && el.productsCode.includes(val)
  7789. ).disabled = true;
  7790. }
  7791. });
  7792. } else {
  7793. this.totalCompanyList.forEach(e => {
  7794. if (
  7795. e.agreement.find(
  7796. el => el.productsCode && el.productsCode.includes(val)
  7797. )
  7798. ) {
  7799. e.agreement.find(
  7800. el => el.productsCode && el.productsCode.includes(val)
  7801. ).disabled = false;
  7802. }
  7803. });
  7804. }
  7805. },
  7806. // 回显
  7807. async obtainProtocol(data) {
  7808. let res = {};
  7809. if (this.isLetter == "1") {
  7810. this.getCompanyList(data);
  7811. // res = await this.$api.letter.getAllAgreement();
  7812. }
  7813. if (this.isLetter == "2") {
  7814. setTimeout(() => {
  7815. this.getCompanyList(data);
  7816. }, 500);
  7817. }
  7818. },
  7819. //获取保险公司列表
  7820. // commpanyList() {
  7821. // this.$api.letter.gainAllowQuoteList("").then(res => {
  7822. // res.data.map(ele => {
  7823. // ele["result"] = {};
  7824. // ele["quoteCode"] = 0;
  7825. // ele["checked"] = false;
  7826. // ele["msg"] = "";
  7827. // ele["lastYearMsg"] = "";
  7828. // ele["agreementId"] = "";
  7829. // ele["apiType"] = "";
  7830. // ele["orderstatus"] = 0;
  7831. // ele.coefficient = "";
  7832. // // ele.agreementId = ele.agreement[0].id;
  7833. // ele.apiType = ele.agreement[0].apiType;
  7834. // ele.underwritingDescription =
  7835. // ele.agreement[0].underwritingDescription;
  7836. // });
  7837. // if (this.$route.query.data) {
  7838. // res.data.forEach((val, index) => {
  7839. // this.$route.query.data.insAreaCompanyEditingDtos.forEach(ele => {
  7840. // if (val.namesimple == ele.inscompany) {
  7841. // res.data[index].quoteCode = 200;
  7842. // res.data[index].result = ele;
  7843. // }
  7844. // });
  7845. // });
  7846. // }
  7847. // this.totalCompanyList = res.data;
  7848. // });
  7849. // },
  7850. Payment(id, item) {
  7851. this.carcode(id, item);
  7852. },
  7853. // 现询
  7854. getInquiryNowList(agreementId, riskList, kindList) {
  7855. let productId = "";
  7856. this.inquiryNowList = [];
  7857. this.$api.letter
  7858. .getProductId({
  7859. riskList: riskList,
  7860. kindList: kindList
  7861. })
  7862. .then(res => {
  7863. if (res.code == 200) {
  7864. productId = res.data;
  7865. this.$api.letter
  7866. .getInquiryNowFee({
  7867. agreementId: agreementId,
  7868. productId: productId
  7869. })
  7870. .then(resp => {
  7871. if (resp.code == 200) {
  7872. this.inquiryNowList = resp.data;
  7873. }
  7874. });
  7875. }
  7876. });
  7877. },
  7878. inquiryNowListChange(data) {
  7879. if (data) {
  7880. this.nowCostsId = data; // 现询id
  7881. this.isInquiryNowDisable = true;
  7882. this.inquiryNowList.forEach(val => {
  7883. if (val.id == data) {
  7884. this.policyNumberForm.jqCostsProportion = val.jqCostsProportion;
  7885. this.policyNumberForm.noCostsProportion = val.noCostsProportion;
  7886. this.policyNumberForm.syCostsProportion = val.syCostsProportion;
  7887. }
  7888. });
  7889. } else {
  7890. this.nowCostsId = "";
  7891. this.isInquiryNowDisable = false;
  7892. this.policyNumberForm.jqCostsProportion = "";
  7893. this.policyNumberForm.noCostsProportion = "";
  7894. this.policyNumberForm.syCostsProportion = "";
  7895. }
  7896. },
  7897. //选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
  7898. agreementChange(val, row, index, item) {
  7899. this.getInquiryNowList(val, this.riskList, this.kindList);
  7900. this.kindListFun(index);
  7901. let obj = {};
  7902. obj = row.find(item => {
  7903. return item;
  7904. });
  7905. let selectRow = row.find(item => {
  7906. return item.id == val;
  7907. });
  7908. let info = row.find(ele => ele.id == val);
  7909. this.totalCompanyList[index].apiType = info.apiType;
  7910. this.totalCompanyList[index].underwritingDescription = val
  7911. ? selectRow.underwritingDescription
  7912. : ""; //重新赋值修改选中协议承保描述
  7913. if (this.$route.path != "/task/external/externalOrders")
  7914. if (item.namesimple == "平安财险") {
  7915. this.$api.letter
  7916. .getPingAnDrivingInsuranceRule({
  7917. cimodelclass: this.carInfo.cimodelclass,
  7918. isUseCombine: "Y",
  7919. tonNumber: this.carInfo.limitLoad,
  7920. ownAttribute: "03",
  7921. useAttribute: this.carInfo.carnature,
  7922. ruleSeatNum: Number(this.carInfo.seatCount),
  7923. agreementId: item.agreementId
  7924. })
  7925. .then(res => {
  7926. this.pinganInsuranceData = res.data;
  7927. });
  7928. return;
  7929. }
  7930. this.$api.letter
  7931. .getDrivingInsuranceRule({
  7932. companyCode: item.id,
  7933. agreementId: item.agreementId,
  7934. seatNum:
  7935. item.namesimple == "永诚财险" || item.namesimple == "中煤财险"
  7936. ? Number(this.carInfo.seatCount)
  7937. : "",
  7938. ruleUseNature: this.carInfo.carnature,
  7939. ruleSeatNum: Number(this.carInfo.seatCount),
  7940. risk: this.riskList,
  7941. kind: this.kindList,
  7942. ruleThirdPartyInsurance: this.insureList[1].amount
  7943. })
  7944. .then(res => {
  7945. if (res.code == 200) {
  7946. this.nonVehicle(res.data, item.cnName);
  7947. switch (item.namesimple) {
  7948. case "永诚财险":
  7949. this.yongchengaccidentDataList = res.data;
  7950. break;
  7951. case "国任财险":
  7952. this.guoRenaccidentDataList = res.data;
  7953. break;
  7954. case "渤海财险":
  7955. this.boHaiaccidentDataList = res.data;
  7956. break;
  7957. case "中煤财险":
  7958. this[item.cnName + +"InsuranceData"] = res.data;
  7959. break;
  7960. case "紫金财险":
  7961. let data = res.data;
  7962. data.map(ele => {
  7963. ele.quantity = 1;
  7964. return ele;
  7965. });
  7966. this.ziJinInsuranceData = data;
  7967. break;
  7968. case "大家财险":
  7969. this.dajiaInsuranceData = res.data;
  7970. break;
  7971. case "泰康财险":
  7972. this.taikangaccidentDataList = res.data;
  7973. break;
  7974. case "中国人寿":
  7975. case "人保财险":
  7976. case "恒邦财险":
  7977. case "太平财险":
  7978. case "安盛天平":
  7979. case "华农财险":
  7980. case "华安财险":
  7981. case "泰山财险":
  7982. case "众安财险":
  7983. case "太平洋财险":
  7984. res.data.map(ele => {
  7985. ele.quantity = 1;
  7986. return ele;
  7987. });
  7988. this[item.cnName + "InsuranceData"] = res.data;
  7989. break;
  7990. }
  7991. } else {
  7992. this.$message.error(res.msg);
  7993. }
  7994. });
  7995. // switch (item.namesimple) {
  7996. // case "永诚财险":
  7997. // this.accidentForm.agreementId = item.agreementId;
  7998. // this.$api.letter
  7999. // .ycgainAccidentList({
  8000. // companyCode: item.id,
  8001. // agreementId: item.agreementId,
  8002. // seatNum: Number(this.carInfo.seatCount)
  8003. // })
  8004. // .then(res => {
  8005. // if (res.code == 200) {
  8006. // this.accidentDataList = res.data;
  8007. // }
  8008. // });
  8009. // break;
  8010. // case "国任财险":
  8011. // this.guoRenaccidentForm.agreementId = item.agreementId;
  8012. // this.$api.letter
  8013. // .syncNonAutoInsGuoren({ agreementId: item.agreementId })
  8014. // .then(res => {
  8015. // if (res.code == 200) {
  8016. // this.guoRenaccidentDataList = res.data;
  8017. // } else {
  8018. // this.guoRenaccidentDataList = [];
  8019. // }
  8020. // });
  8021. // break;
  8022. // case "渤海财险":
  8023. // this.boHaiaccidentForm.agreementId = item.agreementId;
  8024. // let policyHolderInfo = this.tbczcarShow
  8025. // ? this.ownerInfo
  8026. // : this.policyHolderInfo;
  8027. // let productQueryVo = {
  8028. // agreementId: item.agreementId,
  8029. // carnature: this.carInfo.carnature,
  8030. // cimodelclass: this.carInfo.cimodelclass,
  8031. // exhaustScale: this.carInfo.enginedesc,
  8032. // limitLoad: this.carInfo.limitLoad,
  8033. // powerScale: this.carInfo.powerScale,
  8034. // seatCount: this.carInfo.seatCount,
  8035. // vehicleUse: this.carInfo.vehicleUse,
  8036. // policyHolderInfo,
  8037. // insuredPersonInfo: this.bbczcarShow
  8038. // ? this.ownerInfo
  8039. // : this.bbtbcarShow
  8040. // ? policyHolderInfo
  8041. // : this.insuredPersonInfo
  8042. // };
  8043. // this.$api.letter.productQueryboHai(productQueryVo).then(res => {
  8044. // if (res.code == 200) {
  8045. // this.boHaiaccidentDataList = res.data;
  8046. // } else {
  8047. // this.boHaiaccidentDataList = [];
  8048. // }
  8049. // });
  8050. // break;
  8051. // case "紫金财险":
  8052. // this.$api.letter
  8053. // .zijinqueryVehicleProducts({
  8054. // agreementId: val,
  8055. // seatCount: Number(this.carInfo.seatCount)
  8056. // })
  8057. // .then(res => {
  8058. // if (res.code == 200) {
  8059. // let data = res.data;
  8060. // data.map(ele => {
  8061. // ele.quantity = 1;
  8062. // return ele;
  8063. // });
  8064. // this.ziJinInsuranceData = data;
  8065. // } else {
  8066. // this.$message.error(res.msg);
  8067. // }
  8068. // });
  8069. // break;
  8070. // case "中国人寿":
  8071. // case "恒邦财险":
  8072. // case "太平财险":
  8073. // case "安盛天平":
  8074. // case "华农财险":
  8075. // case "众安财险":
  8076. // this.$api.letter.pythongetDriving({ agreementId: val }).then(res => {
  8077. // if (res.code == 200) {
  8078. // let data = res.data;
  8079. // data.map(ele => {
  8080. // ele.quantity = 1;
  8081. // return ele;
  8082. // });
  8083. // this[item.cnName + "InsuranceData"] = data;
  8084. // }
  8085. // });
  8086. // break;
  8087. // case "大家财险":
  8088. // this.$api.letter
  8089. // .dajiagetDriving({ agreementId: item.agreementId })
  8090. // .then(res => {
  8091. // if (res.code == 200) {
  8092. // this.dajiaInsuranceData = res.data;
  8093. // }
  8094. // });
  8095. // break;
  8096. // default:
  8097. // break;
  8098. // }
  8099. },
  8100. nonVehicle(data, type) {
  8101. if (data.some(e => e.isDefault)) {
  8102. if (type == "guoRen") {
  8103. this.grcxchange(data.find(ele => ele.isDefault).projectCode);
  8104. this.grcxchangeChild(
  8105. data.find(ele => ele.isDefault).children.find(ele => ele.isDefault)
  8106. .projectCode
  8107. );
  8108. }
  8109. if (type == "ansheng") {
  8110. this.anshengInsuranceChange(
  8111. data.find(ele => ele.isDefault).projectCode
  8112. );
  8113. this.ASDrivingRadio(
  8114. data.find(ele => ele.isDefault).children.find(ele => ele.isDefault)
  8115. );
  8116. }
  8117. if (type == "zijin") {
  8118. this[type + "InsuranceChange"]([
  8119. data.find(ele => ele.isDefault).projectCode
  8120. ]);
  8121. } else {
  8122. this[type + "InsuranceChange"](
  8123. data.find(ele => ele.isDefault).projectCode
  8124. );
  8125. }
  8126. }
  8127. },
  8128. CheckboxChange(select, row) {
  8129. this.accidentalDrivingVo = [];
  8130. select.map(val => {
  8131. this.accidentalDrivingVo.push(val);
  8132. return val;
  8133. });
  8134. },
  8135. //人寿驾意险选择
  8136. RSDrivingChange(row) {
  8137. this.renshouaccidentalDrivingVo = row;
  8138. },
  8139. TkDrivingChange(row) {
  8140. this.taikangaccidentalDrivingVo = row;
  8141. },
  8142. //众安驾意险选择
  8143. ZADrivingChange(row) {
  8144. this.zhonganaccidentalDrivingVo = row;
  8145. },
  8146. RSDrivingRadio(row) {
  8147. this.RSDrivingChange(row);
  8148. },
  8149. //安盛驾意险选择
  8150. ASDrivingRadio(row) {
  8151. this.anshengInsurancetype = row.projectCode;
  8152. this.anshengaccidentalDrivingVo = Object.assign({
  8153. ...this.anshengaccidentalDrivingVo,
  8154. ...row
  8155. });
  8156. // this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
  8157. // this.anshengaccidentalDrivingVo.projectName = row.projectName;
  8158. },
  8159. pinganDetail(row, agreementId) {
  8160. this.pinganDataDetailVisible = false;
  8161. this.$api.letter
  8162. .productDetailsQuery({
  8163. agreementId,
  8164. packageCode: row.code,
  8165. productCode: row.productCode,
  8166. version: row.version
  8167. })
  8168. .then(res => {
  8169. if (res.code == 200) {
  8170. this.pinganDataDetailVisible = true;
  8171. this.pinganDataDetail = res.data;
  8172. } else {
  8173. this.$message.err(res.msg);
  8174. }
  8175. });
  8176. },
  8177. sameItem(array1, array2) {
  8178. return array2.find(item => {
  8179. array1.some(innerItem => innerItem.code === item.code);
  8180. });
  8181. },
  8182. PADrivingCheckbox(event, row, agreementId, index) {
  8183. // const checkedVal = this.accidentFormPA[index].pinganInsuranceDataTable.find(x => x.cameraId === item.cameraId)
  8184. const isSelected = event.some(
  8185. selectedRow => selectedRow.code == row.code
  8186. );
  8187. let isIndex = null;
  8188. let amount = null;
  8189. event.find((selectedRow, selectedIndex) => {
  8190. if (selectedRow.code == row.code) {
  8191. isIndex = selectedIndex;
  8192. }
  8193. });
  8194. if (event.length > 0 && isSelected) {
  8195. this.$api.letter
  8196. .productDetailsQuery({
  8197. agreementId,
  8198. packageCode: row.code,
  8199. productCode: row.productCode,
  8200. version: row.version
  8201. })
  8202. .then(res => {
  8203. if (res.code == 200) {
  8204. res.data.forEach(ele => {
  8205. amount += Number(ele.unitInsuredAmount)
  8206. ? Number(ele.unitInsuredAmount)
  8207. : 0;
  8208. });
  8209. event[isIndex].amount = amount;
  8210. } else {
  8211. this.$message.err(res.msg);
  8212. }
  8213. });
  8214. }
  8215. event.forEach((res, indexOf) => {
  8216. res.projectName = this.accidentFormPA[index].projectName;
  8217. res.projectCode = this.accidentFormPA[index].projectCode;
  8218. res.combineProductType = this.accidentFormPA[index].combineProductType;
  8219. });
  8220. this.pinganaccidentalDrivingVo[index] = event;
  8221. },
  8222. //平安驾意险选择
  8223. PADrivingRadio(row, agreementId, index) {
  8224. // this.accidentPremiumPA = row.premium;
  8225. this.accidentFormPA[index].quantity = "1";
  8226. this.accidentFormPA[index].sellListSize = Number(row.sellListSize);
  8227. this.accidentFormPA[index].premium = row.premium;
  8228. this.accidentFormPA[index].combineProductType = row.combineProductType;
  8229. this.accidentFormPA[index].accidentPremiumPA = row.premium;
  8230. this.accidentFormPA[index].pinganInsurancetype = row.code;
  8231. this.$api.letter
  8232. .productDetailsQuery({
  8233. agreementId,
  8234. packageCode: row.code,
  8235. productCode: row.productCode,
  8236. version: row.version
  8237. })
  8238. .then(res => {
  8239. if (res.code == 200) {
  8240. this.accidentFormPA[index].amount = 0;
  8241. res.data.forEach(e => {
  8242. this.accidentFormPA[index].amount += Number(e.unitInsuredAmount)
  8243. ? Number(e.unitInsuredAmount)
  8244. : 0;
  8245. });
  8246. this.pinganaccidentalDrivingVo[index] = {
  8247. ...row,
  8248. ...this.accidentFormPA[index]
  8249. };
  8250. } else {
  8251. this.$message.err(res.msg);
  8252. this.pinganaccidentalDrivingVo[index] = {
  8253. ...row,
  8254. ...this.accidentFormPA[index]
  8255. };
  8256. }
  8257. });
  8258. },
  8259. ZADrivingRadio(row) {
  8260. this.ZADrivingChange(row);
  8261. },
  8262. // 获取特约
  8263. getClauseData(id, index) {
  8264. this.ownerInfo.owner = this.tbczcarShow;
  8265. this.insuredPersonInfo.owner = this.bbczcarShow;
  8266. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  8267. let data = {
  8268. userId: this.userId,
  8269. quoteno: this.quoteno,
  8270. orderNo: this.orderno,
  8271. carInfo: this.carInfo,
  8272. insuredPersonInfo: this.insuredPersonInfo,
  8273. ownerInfo: this.ownerInfo,
  8274. policyHolderInfo: this.policyHolderInfo,
  8275. kindList: this.kindList,
  8276. riskList: this.riskList,
  8277. isExternal: "1",
  8278. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  8279. };
  8280. // this.typeDialogIndex = index
  8281. // this.zijinengageListData = [];
  8282. // this.contributingLoading = true;
  8283. // this.contributingState = true;
  8284. // this.hbsubmitdialogVisible = true;
  8285. this.$api.letter
  8286. .getClauseByCompanyId({
  8287. productCode: this.productId,
  8288. companyId: this.totalCompanyList[index].id,
  8289. quoteInfoVo: data
  8290. })
  8291. .then(res => {
  8292. this.contributingLoading = false;
  8293. if (res.data) {
  8294. // res.data.forEach((val) => {
  8295. // val.clauseName = val.clauses;
  8296. // val.clauseContent = val.clausesContext;
  8297. // });
  8298. this.zijinengageListData = res.data;
  8299. }
  8300. });
  8301. },
  8302. // 国任特约选择
  8303. contributingGuoRen(id, index) {
  8304. this.typeDialogIndex = index;
  8305. this.zijinengageListData = [];
  8306. this.contributingLoading = true;
  8307. this.contributingState = true;
  8308. this.hbsubmitdialogVisible = true;
  8309. this.getClauseData(id, index);
  8310. return;
  8311. this.$api.letter.guorenqueryClauseData({ agreementId: id }).then(res => {
  8312. this.contributingLoading = false;
  8313. if (res.data) {
  8314. res.data.forEach(val => {
  8315. val.clauseName = val.clauses;
  8316. val.clauseContent = val.clausesContext;
  8317. });
  8318. this.zijinengageListData = res.data;
  8319. }
  8320. });
  8321. },
  8322. //紫金特约选择
  8323. zijinengageChange(select, row) {
  8324. this.zijinengageList = [];
  8325. if (!this.totalCompanyList[this.typeDialogIndex].zxProgramme) {
  8326. this.totalCompanyList[this.typeDialogIndex].zxProgramme = {
  8327. // 自选方案详情
  8328. description: "",
  8329. drivingList: [],
  8330. jqx: {
  8331. name: "交通事故强制责任险"
  8332. },
  8333. kinds: {
  8334. additional: [],
  8335. main: [],
  8336. service: []
  8337. },
  8338. teyue: []
  8339. };
  8340. }
  8341. // this.totalCompanyList[this.typeDialogIndex].programme = {}
  8342. this.totalCompanyList[this.typeDialogIndex].programme.teyue = [];
  8343. select.map(val => {
  8344. this.zijinengageList.push({
  8345. clauseCode: val.clauseCode,
  8346. clauseName: val.clauseName,
  8347. clauses: val.clauseContent,
  8348. riskCode: val.riskCode
  8349. });
  8350. this.totalCompanyList[
  8351. this.typeDialogIndex
  8352. ].zxProgramme.teyue = this.zijinengageList;
  8353. this.totalCompanyList[
  8354. this.typeDialogIndex
  8355. ].programme.teyue = this.zijinengageList;
  8356. return val;
  8357. });
  8358. },
  8359. zijinengageChangeAll(row) {
  8360. if (row) {
  8361. this.zijinengageChange(row);
  8362. } else {
  8363. this.$refs.expandTablePro.clearSelection();
  8364. this.zijinengageList = [];
  8365. }
  8366. },
  8367. //紫金特约内容编辑
  8368. zijincellDblclick(row, column) {
  8369. this.currentCell = row.index + "," + column.index;
  8370. if (
  8371. !["clauseContent"].includes(column.property) &&
  8372. row.modifyFlag == "1"
  8373. ) {
  8374. setTimeout(() => {
  8375. this.$refs[row.index + "," + column.index].focus();
  8376. });
  8377. }
  8378. },
  8379. tableCellClassName({ row, column, rowIndex, columnIndex }) {
  8380. row.index = rowIndex;
  8381. column.index = columnIndex;
  8382. },
  8383. hideInput() {
  8384. this.currentCell = null;
  8385. },
  8386. updateArray(arr, value, condition) {
  8387. if (condition) {
  8388. arr.push(value);
  8389. } else {
  8390. const index = arr.indexOf(value);
  8391. if (index !== -1) {
  8392. arr.splice(index, 1);
  8393. }
  8394. }
  8395. if (arr.length == 0) {
  8396. this.totalCompanyList.forEach(e => {
  8397. e.disabled = false;
  8398. });
  8399. } else {
  8400. this.totalCompanyList.forEach(e => {
  8401. e.disabled = e.id == arr[0] ? false : true;
  8402. });
  8403. }
  8404. },
  8405. //勾选保险公司
  8406. initchange(e, code, name, index) {
  8407. if (e) {
  8408. this.totalCompanyList[index].checked = e;
  8409. this.getCompanyProgramme(e, code, name, index);
  8410. this.kindListFun();
  8411. let ins = this.totalCompanyList[index].namesimple;
  8412. this.totalCompanyList[
  8413. index
  8414. ].underwritingDescription = this.totalCompanyList[
  8415. index
  8416. ].agreement[0].underwritingDescription;
  8417. if (this.$route.path != "/task/external/externalOrders")
  8418. this.$api.letter
  8419. .getDrivingInsuranceRule({
  8420. agreementId: this.totalCompanyList[index].agreement[0].id,
  8421. seatNum:
  8422. ins == "永诚财险" || ins == "中煤财险"
  8423. ? Number(this.carInfo.seatCount)
  8424. : "",
  8425. ruleUseNature: this.carInfo.carnature,
  8426. ruleSeatNum: Number(this.carInfo.seatCount),
  8427. risk: this.riskList,
  8428. kind: this.kindList,
  8429. ruleThirdPartyInsurance: this.insureList[1].amount,
  8430. cimodelclass: ins == "平安财险" ? this.carInfo.cimodelclass : "",
  8431. isUseCombine: ins == "平安财险" ? "Y" : "",
  8432. tonNumber: ins == "平安财险" ? this.carInfo.limitLoad : "",
  8433. ownAttribute: ins == "平安财险" ? "03" : "",
  8434. useAttribute: ins == "平安财险" ? this.carInfo.carnature : ""
  8435. })
  8436. .then(res => {
  8437. if (res.code == 200) {
  8438. switch (ins) {
  8439. case "永诚财险":
  8440. this.yongchengaccidentDataList = res.data;
  8441. break;
  8442. case "国任财险":
  8443. this.guoRenaccidentDataList = res.data;
  8444. break;
  8445. case "渤海财险":
  8446. this.boHaiaccidentDataList = res.data;
  8447. break;
  8448. case "中煤财险":
  8449. case "平安财险":
  8450. this[name + "InsuranceData"] = res.data;
  8451. break;
  8452. case "紫金财险":
  8453. let data = res.data;
  8454. data.map(ele => {
  8455. ele.quantity = 1;
  8456. return ele;
  8457. });
  8458. this.ziJinInsuranceData = data;
  8459. break;
  8460. case "大家财险":
  8461. this.dajiaInsuranceData = res.data;
  8462. break;
  8463. case "中国人寿":
  8464. case "人保财险":
  8465. case "恒邦财险":
  8466. case "太平财险":
  8467. case "华农财险":
  8468. case "华安财险":
  8469. case "泰山财险":
  8470. case "安盛天平":
  8471. case "众安财险":
  8472. case "太平洋财险":
  8473. res.data.map(ele => {
  8474. ele.quantity = 1;
  8475. return ele;
  8476. });
  8477. this[name + "InsuranceData"] = res.data;
  8478. break;
  8479. }
  8480. this.nonVehicle(res.data, name);
  8481. } else {
  8482. this.$message.error(res.msg);
  8483. }
  8484. });
  8485. // switch (ins) {
  8486. // case "永诚财险":
  8487. // this.accidentForm.agreementId = this.totalCompanyList[
  8488. // index
  8489. // ].agreement[0].id;
  8490. // this.$api.letter
  8491. // .ycgainAccidentList({
  8492. // companyCode: this.totalCompanyList[index].id,
  8493. // agreementId: this.totalCompanyList[index].agreement[0].id,
  8494. // seatNum: Number(this.carInfo.seatCount)
  8495. // })
  8496. // .then(res => {
  8497. // if (res.code == 200) {
  8498. // this.accidentDataList = res.data;
  8499. // } else {
  8500. // this.accidentDataList = [];
  8501. // }
  8502. // });
  8503. // break;
  8504. // case "国任财险":
  8505. // this.guoRenaccidentForm.agreementId = this.totalCompanyList[
  8506. // index
  8507. // ].agreement[0].id;
  8508. // this.$api.letter
  8509. // .syncNonAutoInsGuoren({
  8510. // goodsCode: "",
  8511. // agreementId: this.totalCompanyList[index].agreement[0].id
  8512. // })
  8513. // .then(res => {
  8514. // if (res.code == 200) {
  8515. // this.guoRenaccidentDataList = res.data;
  8516. // } else {
  8517. // this.guoRenaccidentDataList = [];
  8518. // }
  8519. // });
  8520. // break;
  8521. // case "紫金财险":
  8522. // this.$api.letter
  8523. // .zijinqueryVehicleProducts({
  8524. // agreementId: this.totalCompanyList[index].agreement[0].id,
  8525. // seatCount: Number(this.carInfo.seatCount)
  8526. // })
  8527. // .then(res => {
  8528. // if (res.code == 200) {
  8529. // let data = res.data;
  8530. // data.map(ele => {
  8531. // ele.quantity = 1;
  8532. // return ele;
  8533. // });
  8534. // this.ziJinInsuranceData = data;
  8535. // } else {
  8536. // this.$message.error(res.msg);
  8537. // }
  8538. // });
  8539. // break;
  8540. // case "安盛天平":
  8541. // this.$api.letter
  8542. // .pythongetDriving({
  8543. // agreementId: this.totalCompanyList[index].agreement[0].id
  8544. // })
  8545. // .then(res => {
  8546. // if (res.code == 200) {
  8547. // let data = res.data;
  8548. // data.map(ele => {
  8549. // ele.departmentProductList.map(val => {
  8550. // val.quantity = 1;
  8551. // });
  8552. // return ele;
  8553. // });
  8554. // this[name + "InsuranceData"] = data;
  8555. // } else {
  8556. // this.$message.error(res.msg);
  8557. // }
  8558. // });
  8559. // break;
  8560. // case "中国人寿":
  8561. // case "恒邦财险":
  8562. // case "太平财险":
  8563. // case "华农财险":
  8564. // case "众安财险":
  8565. // this.$api.letter
  8566. // .pythongetDriving({
  8567. // agreementId: this.totalCompanyList[index].agreement[0].id
  8568. // })
  8569. // .then(res => {
  8570. // if (res.code == 200) {
  8571. // let data = res.data;
  8572. // data.map(ele => {
  8573. // ele.quantity = 1;
  8574. // return ele;
  8575. // });
  8576. // this[name + "InsuranceData"] = data;
  8577. // } else {
  8578. // this.$message.error(res.msg);
  8579. // }
  8580. // });
  8581. // break;
  8582. // case "中煤财险":
  8583. // this.accidentFormZM.agreementId = this.totalCompanyList[
  8584. // index
  8585. // ].agreement[0].id;
  8586. // this.$api.letter
  8587. // .zmGetDrivingPro({
  8588. // agreementId: this.totalCompanyList[index].agreement[0].id,
  8589. // seatNum: this.carInfo.seatCount
  8590. // })
  8591. // .then(res => {
  8592. // if (res.code == 200) {
  8593. // let data = res.data;
  8594. // this[name + "InsuranceData"] = data;
  8595. // } else {
  8596. // this.$message.error(res.msg);
  8597. // }
  8598. // });
  8599. // break;
  8600. // case "大家财险":
  8601. // this.$api.letter
  8602. // .dajiagetDriving({
  8603. // agreementId: this.totalCompanyList[index].agreement[0].id
  8604. // })
  8605. // .then(res => {
  8606. // if (res.code == 200) {
  8607. // this.dajiaInsuranceData = res.data;
  8608. // } else {
  8609. // this.$message.error(res.msg);
  8610. // }
  8611. // });
  8612. // break;
  8613. // default:
  8614. // break;
  8615. // }
  8616. } else {
  8617. }
  8618. },
  8619. clearAccidentForm() {
  8620. this.yongchengInsuranceDataTable = [];
  8621. this.accidentForm = {};
  8622. this.accidentForm.fen = 1;
  8623. this.accidentForm.premium = 0;
  8624. },
  8625. clearAccidentFormPA(index) {
  8626. // this.accidentFormPA[index]={
  8627. // quantity: 1,
  8628. // premium: 0,
  8629. // pingantemplateSelection:'',
  8630. // pinganInsuranceDataTable:[],
  8631. // pinganInsurancetype:'',
  8632. // }
  8633. this.pinganaccidentalDrivingVo[index] = {};
  8634. },
  8635. clearAccidentFormTk() {
  8636. this.taikangaccidentalDrivingVo = {};
  8637. this.taikangInsuranceDataTable = [];
  8638. this.accidentFormTk = {};
  8639. this.accidentFormTk.fen = 1;
  8640. this.accidentFormTk.premium = 0;
  8641. },
  8642. clearAccidentFormGr() {
  8643. (this.guoRenInsuranceDataTable = []),
  8644. (this.guoRenaccidentDataListChild = []);
  8645. this.guoRenaccidentForm = {
  8646. quantity: "1",
  8647. premium: 0
  8648. };
  8649. },
  8650. clearAccidentFormBh() {
  8651. this.bohaiInsuranceDataTable = [];
  8652. this.boHaiaccidentForm = {
  8653. copies: "1",
  8654. premium: 0
  8655. };
  8656. // this.bohaiaccidentalDrivingVo={};
  8657. },
  8658. clearAccidentFormHN() {
  8659. this.huanongaccidentalDrivingVo = {};
  8660. },
  8661. clearAccidentFormHB() {
  8662. this.hengbangaccidentalDrivingVo = {};
  8663. },
  8664. clearAccidentFormTP() {
  8665. this.taipingaccidentalDrivingVo = {};
  8666. },
  8667. clearAccidentFormDJ() {
  8668. this.dajiaaccidentalDrivingVo = {};
  8669. },
  8670. clearAccidentFormZM() {
  8671. this.zhongmeiaccidentalDrivingVo = {};
  8672. },
  8673. clearAccidentFormZJ() {
  8674. this.accidentalDrivingVo = [];
  8675. },
  8676. clearAccidentFormZA() {
  8677. this.zhonganaccidentalDrivingVo = {};
  8678. },
  8679. clearAccidentFormRS() {
  8680. this.renshouaccidentalDrivingVo = {};
  8681. },
  8682. clearAccidentFormAS() {
  8683. this.anshengaccidentalDrivingVo = {};
  8684. },
  8685. //身份证有效期长期
  8686. insureLongterm(e) {
  8687. this[e].identifyValidEndDate = "9999-12-31";
  8688. },
  8689. //较强起保日期事件
  8690. jqChange(e) {
  8691. this.jqendDate = this.oneYearPast1(e);
  8692. },
  8693. //商业起保日期事件
  8694. syChange(e) {
  8695. this.syendDate = this.oneYearPast1(e);
  8696. },
  8697. // //查看更多
  8698. // selectMore(leg) {
  8699. // this.insureMore = false;
  8700. // this.insureLength = leg;
  8701. // },
  8702. // //收起
  8703. // packup() {
  8704. // this.insureMore = true;
  8705. // this.insureLength = 5;
  8706. // },
  8707. //险别选择框事件
  8708. insureitemChange(e, item) {
  8709. // if (e != 0) {
  8710. // this.sychecked = true;
  8711. // this.systartDate = this.transformTime1();
  8712. // this.syendDate = this.oneYearPast1(this.systartDate);
  8713. // this.kindList.push(item)
  8714. // this.obtainProtocol();
  8715. // } else {
  8716. // let list = this.kindList.filter(item => item.kindCode !== item.kindCode);
  8717. // this.kindList = list;
  8718. // this.obtainProtocol();
  8719. // }
  8720. },
  8721. all() {
  8722. this.$refs.detailsDialog.setBackupVisible(true);
  8723. },
  8724. base64ToBlob(code) {
  8725. code = code.replace(/[\n\r]/g, "");
  8726. // atob() 方法用于解码使用 base-64 编码的字符串。
  8727. const raw = window.atob(code);
  8728. const rawLength = raw.length;
  8729. const uInt8Array = new Uint8Array(rawLength);
  8730. for (let i = 0; i < rawLength; ++i) {
  8731. uInt8Array[i] = raw.charCodeAt(i);
  8732. }
  8733. return new Blob([uInt8Array], { type: "application/pdf" });
  8734. },
  8735. viewPdf(content) {
  8736. if (!content) {
  8737. this.$message.error("暂无文件");
  8738. return;
  8739. }
  8740. const blob = this.base64ToBlob(content);
  8741. this.href = blob;
  8742. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  8743. window.navigator.msSaveOrOpenBlob(blob);
  8744. } else {
  8745. const fileURL = URL.createObjectURL(blob);
  8746. window.open(fileURL);
  8747. }
  8748. },
  8749. //二维码生成插件
  8750. creatQrCode(text) {
  8751. // 查找并删除旧的二维码DOM元素
  8752. let element = document.getElementById("qrcode");
  8753. while (element.firstChild) {
  8754. element.removeChild(element.firstChild);
  8755. }
  8756. // 创建新的QRCode实例
  8757. this.qrcode = new QrCode("qrcode", {
  8758. text: text,
  8759. width: this.qrcodeWidth,
  8760. height: this.qrcodeHeight,
  8761. colorDark: "#000000",
  8762. colorLight: "#ffffff",
  8763. correctLevel: QrCode.CorrectLevel.H
  8764. });
  8765. },
  8766. //人工核保
  8767. underwriting(id) {
  8768. let param = {
  8769. companyId: id
  8770. };
  8771. this.$api.letter.manualUnderwriting(param).then(res => {
  8772. if (res.code == "200") {
  8773. this.Payment(id);
  8774. }
  8775. });
  8776. },
  8777. signature(companyId) {
  8778. this.$api.letter.pingAnsignEleApply({ companyId }).then(res => {
  8779. if (res.code == 200 && res.data) {
  8780. this.resultMessageImg = process.env.BASE_URL + res.data.resultMessage;
  8781. this.signaturedialogVisible = true;
  8782. // 查找并删除旧的二维码DOM元素
  8783. // let element = document.getElementById("signaturecode");
  8784. // while (element.firstChild) {
  8785. // element.removeChild(element.firstChild);
  8786. // }
  8787. // this.signaturecode = new QRCode("signaturecode", {
  8788. // text: resultMessage,
  8789. // width: 180,
  8790. // height: 180,
  8791. // colorDark: "#000000",
  8792. // colorLight: "#ffffff",
  8793. // correctLevel: QRCode.CorrectLevel.H,
  8794. // });
  8795. // this.signaturedialogVisible = true;
  8796. // this.$api.letter.pingAnsignEleApply({companyId}).then((res) => {
  8797. // if (res.code == 200 && res.data) {
  8798. // // 查找并删除旧的二维码DOM元素
  8799. // let element = document.getElementById("signaturecode");
  8800. // while (element.firstChild) {
  8801. // element.removeChild(element.firstChild);
  8802. // }
  8803. // this.signaturecode = new QRCode("signaturecode", {
  8804. // text: res.data.resultMessage,
  8805. // width: 180,
  8806. // height: 180,
  8807. // colorDark: "#000000",
  8808. // colorLight: "#ffffff",
  8809. // correctLevel: QRCode.CorrectLevel.H,
  8810. // });
  8811. } else {
  8812. this.$message({
  8813. message: res.msg || "暂无数据!",
  8814. type: "warning"
  8815. });
  8816. }
  8817. });
  8818. },
  8819. jqcheckedChange(e) {
  8820. if (e) {
  8821. this.jqstartDate = this.transformTime1();
  8822. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  8823. this.riskList.push({
  8824. riskCode: "0507"
  8825. });
  8826. // this.obtainProtocol();
  8827. } else {
  8828. this.jqstartDate = "";
  8829. this.jqendDate = "";
  8830. let list = this.riskList.filter(item => item.riskCode !== "0507");
  8831. this.riskList = list;
  8832. // this.obtainProtocol();
  8833. }
  8834. },
  8835. sycheckedChange(e) {
  8836. if (e) {
  8837. this.systartDate = this.transformTime1();
  8838. this.syendDate = this.oneYearPast1(this.systartDate);
  8839. this.riskList.push({
  8840. riskCode: "0510"
  8841. });
  8842. // this.obtainProtocol();
  8843. } else {
  8844. this.systartDate = "";
  8845. this.syendDate = "";
  8846. let list = this.riskList.filter(item => item.riskCode !== "0510");
  8847. this.riskList = list;
  8848. // this.obtainProtocol();
  8849. }
  8850. },
  8851. //订单生成后保存接口
  8852. preserveOrderStageProcessing(type, btnLoading) {
  8853. // console.log(this.editorInfo);
  8854. // debugger;
  8855. //同车主的选择框
  8856. this[btnLoading] = true;
  8857. if (this.tbczcarShow && this.imageList2.length > 0) {
  8858. //投保人同车主
  8859. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  8860. if (this.imageList3.length == 1) {
  8861. this.imageList3[0].imageType = this.imageList3[0].imageType.includes(
  8862. "C0"
  8863. )
  8864. ? "C03"
  8865. : "D03";
  8866. } else {
  8867. this.imageList3.forEach(e => {
  8868. e.imageType = e.imageType.includes("C0") ? "C03" : "D03";
  8869. });
  8870. }
  8871. }
  8872. if (this.bbczcarShow && this.imageList2.length > 0) {
  8873. //被保人同车主
  8874. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  8875. if (this.imageList4.length == 1) {
  8876. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  8877. "C0"
  8878. )
  8879. ? "C04"
  8880. : "D04";
  8881. } else {
  8882. this.imageList4.forEach(e => {
  8883. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  8884. });
  8885. }
  8886. }
  8887. if (this.bbtbcarShow && this.imageList3.length > 0) {
  8888. //被保人同投保人
  8889. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  8890. if (this.imageList4.length == 1) {
  8891. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  8892. "C0"
  8893. )
  8894. ? "C04"
  8895. : "D04";
  8896. } else {
  8897. this.imageList4.forEach(e => {
  8898. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  8899. });
  8900. }
  8901. }
  8902. //日期长度<10处理
  8903. const formatDate = date => {
  8904. if (date.length < 10) {
  8905. return this.timeformat(date);
  8906. }
  8907. return date;
  8908. };
  8909. if (this.carInfo.registerDate.length < 10) {
  8910. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  8911. }
  8912. if (this.carInfo.issueDate.length < 10) {
  8913. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  8914. }
  8915. if (
  8916. this.carInfo.transferDate &&
  8917. this.carInfo.transferDate.length < 10 &&
  8918. this.carInfo.transferDate !== ""
  8919. ) {
  8920. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  8921. }
  8922. //日期长度<10处理
  8923. //提交身份证/驾驶证 ——————————————————
  8924. this.policyHolderInfo.owner = this.tbczcarShow;
  8925. this.insuredPersonInfo.owner = this.bbczcarShow;
  8926. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  8927. if (typeof this.ownerInfo.provinceData == "string") {
  8928. this.ownerInfo.provinceData = [];
  8929. }
  8930. if (typeof this.insuredPersonInfo.provinceData == "string") {
  8931. this.insuredPersonInfo.provinceData = [];
  8932. }
  8933. if (typeof this.policyHolderInfo.provinceData == "string") {
  8934. this.policyHolderInfo.provinceData = [];
  8935. }
  8936. if (this.$route.query.data) {
  8937. const mergedArray = [
  8938. ...this.imageList1,
  8939. ...this.imageList2,
  8940. ...this.imageList3,
  8941. ...this.imageList4,
  8942. ...this.imageList5,
  8943. ...this.imageList6
  8944. ];
  8945. if (mergedArray.length > 0) {
  8946. let imageparam = {
  8947. imageList: mergedArray,
  8948. quoteNo: this.$route.query.data.quoteno
  8949. };
  8950. this.$api.letter.uploadImages(imageparam).then(responses => {
  8951. // this.$refs.imageDialog.imageEcho(this.$route.query.data.quoteno)
  8952. this.imageEcho(this.$route.query.data.quoteno); // 获取图片
  8953. });
  8954. }
  8955. this.editorInfo.applyinfo.owner = this.tbczcarShow;
  8956. this.editorInfo.insureinfo.owner = this.bbczcarShow;
  8957. this.editorInfo.insureinfo.insuranceHolder = this.bbtbcarShow;
  8958. let params = {
  8959. orderNo: this.$route.query.data.orderno,
  8960. ...this.policyNumberForm,
  8961. agreementId: this.isLetter3agreementId,
  8962. stageFlag: type,
  8963. jqstartdate: this.jqstartDate,
  8964. jqenddate: this.jqendDate,
  8965. systartdate: this.systartDate,
  8966. syenddate: this.syendDate,
  8967. kind: this.kindList,
  8968. risk: this.riskList,
  8969. kindList: this.kindList,
  8970. riskList: this.riskList,
  8971. carInfo: this.carInfo,
  8972. insuredPersonInfo: this.insuredPersonInfo,
  8973. ownerInfo: this.ownerInfo,
  8974. policyHolderInfo: this.policyHolderInfo,
  8975. isExternal: "1",
  8976. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  8977. };
  8978. // debugger;
  8979. this.$api.letter.updateExternalOrder(params).then(res => {
  8980. if (res.code == "200") {
  8981. this[btnLoading] = false;
  8982. this.$message({
  8983. message: res.msg || "编辑成功",
  8984. type: "success"
  8985. });
  8986. this.add();
  8987. } else {
  8988. this[btnLoading] = false;
  8989. this.$message.error(res.msg);
  8990. }
  8991. });
  8992. } else {
  8993. this.ownerInfo.owner = this.tbczcarShow;
  8994. this.insuredPersonInfo.owner = this.bbczcarShow;
  8995. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  8996. let param = {
  8997. userId: this.userId,
  8998. quoteno: this.quoteno,
  8999. orderNo: this.orderno,
  9000. carInfo: this.carInfo,
  9001. insuredPersonInfo: this.insuredPersonInfo,
  9002. ownerInfo: this.ownerInfo,
  9003. policyHolderInfo: this.policyHolderInfo,
  9004. kindList: this.kindList,
  9005. riskList: this.riskList,
  9006. isExternal: "1",
  9007. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  9008. };
  9009. this.$api.letter.generateOrder(param).then(res => {
  9010. if (res.code == "200") {
  9011. //上传图片
  9012. const mergedArray = [
  9013. ...this.imageList1,
  9014. ...this.imageList2,
  9015. ...this.imageList3,
  9016. ...this.imageList4,
  9017. ...this.imageList5,
  9018. ...this.imageList6
  9019. ];
  9020. if (mergedArray.length > 0) {
  9021. let imageparam = {
  9022. imageList: mergedArray,
  9023. quoteNo: res.data.quoteno
  9024. };
  9025. this.$api.letter.uploadImages(imageparam).then(responses => {
  9026. this.imageEcho(res.data.quoteno); // 获取图片
  9027. // this.$refs.imageDialog.imageEcho(res.data.quoteno)
  9028. });
  9029. }
  9030. let params1 = {
  9031. orderNo: res.data.orderno,
  9032. ...this.policyNumberForm,
  9033. agreementId: this.isLetter3agreementId,
  9034. stageFlag: type,
  9035. nowCostsId: this.nowCostsId
  9036. };
  9037. // debugger
  9038. this.$api.letter.saveSubOrder(params1).then(res => {
  9039. if (res.code == "200") {
  9040. this[btnLoading] = false;
  9041. this.$message({
  9042. message: res.msg || "录入成功",
  9043. type: "success"
  9044. });
  9045. this.add();
  9046. } else {
  9047. this[btnLoading] = false;
  9048. this.$message.error(res.msg);
  9049. }
  9050. });
  9051. } else {
  9052. this[btnLoading] = false;
  9053. this.$message.error(res.msg);
  9054. }
  9055. });
  9056. }
  9057. // document.getElementById("company").scrollIntoView();
  9058. this.imageUploadShow = true;
  9059. },
  9060. policyHolderInfovalidate() {
  9061. let _this = this;
  9062. // tbczcarShow 同车主
  9063. if (_this.tbczcarShow == true) {
  9064. // 投保人信息 policyHolderInfo
  9065. _this.policyHolderInfo = { ..._this.ownerInfo };
  9066. } else {
  9067. _this.$refs["policyHolderInfo"].validate(valid2 => {
  9068. if (valid2) {
  9069. } else {
  9070. document.getElementById("toubaor").scrollIntoView();
  9071. _this.$message({ message: "请检查投保人信息", type: "warning" });
  9072. }
  9073. });
  9074. }
  9075. this.bbtbcarShowChange();
  9076. this.bbczcarShowChange();
  9077. },
  9078. validateCarCode() {
  9079. this.validateCarCodeShow = true;
  9080. if (this.myQrCode) {
  9081. this.myQrCode.clear();
  9082. }
  9083. this.$nextTick(() => {
  9084. this.myQrCode = new QrCode(this.$refs.myQrcode, {
  9085. // text 需要转二维码的内容 可以是文本也可以是一个链接 是链接会直接跳走
  9086. text: this.vehicleInspectionUrl,
  9087. width: 200,
  9088. height: 200,
  9089. colorDark: "#333", //二维码颜色
  9090. colorLight: "#fff", //二维码背景颜色
  9091. correctLevel: QrCode.CorrectLevel.L //容错率,L/M/H
  9092. });
  9093. });
  9094. },
  9095. //报价
  9096. quote(index) {
  9097. let starttime = new Date(this.carInfo.registerDate);
  9098. let endtime = new Date(this.carInfo.issueDate);
  9099. if (endtime < starttime) {
  9100. this.$message({ message: "发证日期早于初登日期", type: "error" });
  9101. return;
  9102. }
  9103. this.policyHolderInfovalidate();
  9104. this.$refs["carInfo"].validate(valid => {
  9105. if (valid) {
  9106. var _this = this;
  9107. // this.policyHolderInfovalidate()
  9108. if (_this.tbczcarShow == true) {
  9109. _this.policyHolderInfo = { ..._this.ownerInfo };
  9110. }
  9111. _this.$refs["ownerInfo"].validate(valid1 => {
  9112. if (valid1) {
  9113. if (_this.bbczcarShow == true) {
  9114. _this.insuredPersonInfo = { ..._this.ownerInfo };
  9115. }
  9116. if (_this.bbtbcarShow == true) {
  9117. _this.insuredPersonInfo = { ..._this.policyHolderInfo };
  9118. }
  9119. _this.carInfo.vinNo = _this.carInfo.frameNo;
  9120. _this.riskList = []; //险种大类
  9121. _this.kindList = []; //商业险险别
  9122. if (
  9123. (!_this.jqstartDate || !_this.jqendDate) &&
  9124. (!_this.systartDate || !_this.syendDate)
  9125. ) {
  9126. this.$message({ message: "投保日期不能为空", type: "warning" });
  9127. } else {
  9128. if (
  9129. this.totalCompanyList[index].isTaxSource != 1 &&
  9130. this.totalCompanyList[index].agreementId == ""
  9131. ) {
  9132. this.$message.warning("请选择协议");
  9133. return;
  9134. }
  9135. this.calculateLoading = true;
  9136. setInterval(() => {
  9137. this.calculateLoading = false;
  9138. }, 3000);
  9139. _this.totalCompanyList[index].kindList = [];
  9140. let kinds = [
  9141. ..._this.totalCompanyList[index].programme.kinds.main,
  9142. ..._this.totalCompanyList[index].programme.kinds.additional,
  9143. ..._this.totalCompanyList[index].programme.kinds.service
  9144. ];
  9145. kinds.forEach(value => {
  9146. _this.totalCompanyList[index].kindList.push({
  9147. amount: value.amount,
  9148. serviceTimes: value.amount,
  9149. unitAmount: value.amount,
  9150. kindCode: value.kindCode,
  9151. kindName: value.kindName
  9152. });
  9153. });
  9154. if (_this.jqchecked) {
  9155. //交强
  9156. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  9157. _this.jqendDate = this.transformTime(_this.jqendDate);
  9158. _this.riskList.push({
  9159. amount: "200000",
  9160. premium: "0",
  9161. riskCode: "0507",
  9162. endDate: _this.jqendDate,
  9163. startDate: _this.jqstartDate,
  9164. instantFlag: "0"
  9165. });
  9166. }
  9167. if (_this.sychecked) {
  9168. _this.systartDate = this.transformTime(_this.systartDate);
  9169. _this.syendDate = this.transformTime(_this.syendDate);
  9170. //商业
  9171. _this.riskList.push({
  9172. premium: "0",
  9173. riskCode: "0510",
  9174. quotePreceptCode: "",
  9175. quotePreceptName: "",
  9176. endDate: _this.syendDate,
  9177. startDate: _this.systartDate,
  9178. instantFlag: "0"
  9179. });
  9180. // _this.totalCompanyList.forEach((val) => {
  9181. // if (val.checked) {
  9182. // console.log(val.programme, 'programmeeeeeeee')
  9183. // let kinds = [...val.programme.kinds.additional, ...val.programme.kinds.main, ...val.programme.kinds.service]
  9184. // kinds.forEach((value) => {
  9185. // _this.kindList.push({
  9186. // amount: value.amount,
  9187. // kindCode: value.kindCode,
  9188. // kindName: value.kindName
  9189. // })
  9190. // })
  9191. // }
  9192. // })
  9193. _this.insureList.map((ele, index) => {
  9194. // if (
  9195. // ele.amount != "0" &&
  9196. // (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  9197. // ) {
  9198. // _this.kindList.push({
  9199. // unitAmount: _this.insureList[index].amount,
  9200. // kindCode: _this.insureList[index].kindCode,
  9201. // kindName: _this.insureList[index].kindName,
  9202. // });
  9203. // } else if (
  9204. // ele.amount != "0" &&
  9205. // (ele.kindCode == "MJ1" ||
  9206. // ele.kindCode == "MJ2" ||
  9207. // ele.kindCode == "MJ3" ||
  9208. // ele.kindCode == "MJ4")
  9209. // ) {
  9210. // _this.kindList.push({
  9211. // deductibleRate: _this.insureList[index].amount,
  9212. // kindCode: _this.insureList[index].kindCode,
  9213. // kindName: _this.insureList[index].kindName,
  9214. // });
  9215. // } else if (
  9216. // ele.amount != "0" &&
  9217. // (ele.kindCode == "TY1" ||
  9218. // ele.kindCode == "TY2" ||
  9219. // ele.kindCode == "TY3" ||
  9220. // ele.kindCode == "TY4")
  9221. // ) {
  9222. // _this.kindList.push({
  9223. // serviceTimes: _this.insureList[index].amount,
  9224. // kindCode: _this.insureList[index].kindCode,
  9225. // kindName: _this.insureList[index].kindName,
  9226. // });
  9227. // } else if (ele.amount != "0") {
  9228. // _this.kindList.push({
  9229. // amount: _this.insureList[index].amount,
  9230. // kindCode: _this.insureList[index].kindCode,
  9231. // kindName: _this.insureList[index].kindName,
  9232. // });
  9233. // }
  9234. return ele;
  9235. });
  9236. } else {
  9237. _this.kindList = [];
  9238. }
  9239. // if (_this.orderno) {
  9240. this.OrderStageProcessing(index);
  9241. // } else {
  9242. // _this.$api.letter.getquote().then(res => {
  9243. // _this.quoteno = res.data; //获取报价号
  9244. // this.OrderStageProcessing();
  9245. // });
  9246. // }
  9247. }
  9248. } else {
  9249. document.getElementById("CheZhu").scrollIntoView();
  9250. _this.$message({ message: "请检查人员信息", type: "warning" });
  9251. }
  9252. });
  9253. } else {
  9254. document.getElementById("Car").scrollIntoView();
  9255. this.$message({ message: "请检查车辆信息", type: "warning" });
  9256. return false;
  9257. }
  9258. });
  9259. },
  9260. quote1() {
  9261. let starttime = new Date(this.carInfo.registerDate);
  9262. let endtime = new Date(this.carInfo.issueDate);
  9263. if (endtime < starttime) {
  9264. this.$message({ message: "发证日期早于初登日期", type: "error" });
  9265. return;
  9266. }
  9267. if (
  9268. this.carInfo.licenseNo.length === 8 &&
  9269. this.carInfo.energyType === "0"
  9270. ) {
  9271. this.$message.error("能源类型错误,请重新选择!");
  9272. return;
  9273. }
  9274. this.policyHolderInfovalidate();
  9275. var _this = this;
  9276. this.$refs["carInfo"].validate(valid => {
  9277. if (valid) {
  9278. // this.policyHolderInfovalidate()
  9279. if (_this.tbczcarShow == true) {
  9280. _this.policyHolderInfo = { ..._this.ownerInfo };
  9281. }
  9282. _this.$refs["ownerInfo"].validate(valid1 => {
  9283. if (valid1) {
  9284. if (_this.bbczcarShow == true) {
  9285. _this.insuredPersonInfo = { ..._this.ownerInfo };
  9286. }
  9287. if (_this.bbtbcarShow == true) {
  9288. _this.insuredPersonInfo = { ..._this.policyHolderInfo };
  9289. }
  9290. _this.carInfo.vinNo = _this.carInfo.frameNo;
  9291. _this.riskList = []; //险种大类
  9292. _this.kindList = []; //商业险险别
  9293. if (
  9294. (!_this.jqstartDate || !_this.jqendDate) &&
  9295. (!_this.systartDate || !_this.syendDate)
  9296. ) {
  9297. this.$message({ message: "投保日期不能为空", type: "warning" });
  9298. } else {
  9299. this.calculateLoading = true;
  9300. setInterval(() => {
  9301. this.calculateLoading = false;
  9302. }, 3000);
  9303. try {
  9304. this.totalCompanyList.forEach((val, index) => {
  9305. if (val.checked) {
  9306. val.kindList = [];
  9307. if (!val.programme) {
  9308. // throw Error("没有方案")
  9309. return;
  9310. }
  9311. let kinds = [
  9312. ...val.programme.kinds.main,
  9313. ...val.programme.kinds.additional,
  9314. ...val.programme.kinds.service
  9315. ];
  9316. kinds.forEach(value => {
  9317. this.totalCompanyList[index].kindList.push({
  9318. amount: value.amount,
  9319. serviceTimes: value.amount,
  9320. unitAmount: value.amount,
  9321. kindCode: value.kindCode,
  9322. kindName: value.kindName
  9323. });
  9324. });
  9325. if (val.isTaxSource != 1 && val.agreementId == "") {
  9326. this.$message.warning("请选择协议");
  9327. throw Error("请选择协议");
  9328. }
  9329. }
  9330. });
  9331. } catch (error) {
  9332. return console.log(error);
  9333. }
  9334. if (_this.jqchecked) {
  9335. //交强
  9336. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  9337. _this.jqendDate = this.transformTime(_this.jqendDate);
  9338. _this.riskList.push({
  9339. amount: "200000",
  9340. premium: "0",
  9341. riskCode: "0507",
  9342. endDate: _this.jqendDate,
  9343. startDate: _this.jqstartDate,
  9344. instantFlag: "0"
  9345. });
  9346. }
  9347. if (_this.sychecked) {
  9348. _this.systartDate = this.transformTime(_this.systartDate);
  9349. _this.syendDate = this.transformTime(_this.syendDate);
  9350. //商业
  9351. _this.riskList.push({
  9352. premium: "0",
  9353. riskCode: "0510",
  9354. quotePreceptCode: "",
  9355. quotePreceptName: "",
  9356. endDate: _this.syendDate,
  9357. startDate: _this.systartDate,
  9358. instantFlag: "0"
  9359. });
  9360. } else {
  9361. _this.kindList = [];
  9362. }
  9363. // if (_this.orderno) {
  9364. this.OrderStageProcessing();
  9365. // } else {
  9366. // _this.$api.letter.getquote().then(res => {
  9367. // _this.quoteno = res.data; //获取报价号
  9368. // this.OrderStageProcessing();
  9369. // });
  9370. // }
  9371. }
  9372. } else {
  9373. document.getElementById("CheZhu").scrollIntoView();
  9374. _this.$message({ message: "请检查人员信息", type: "warning" });
  9375. }
  9376. });
  9377. } else {
  9378. document.getElementById("Car").scrollIntoView();
  9379. this.$message({ message: "请检查车辆信息", type: "warning" });
  9380. return false;
  9381. }
  9382. });
  9383. },
  9384. kindListFun(index) {
  9385. var _this = this;
  9386. _this.riskList = []; //险种大类
  9387. _this.kindList = []; //商业险险别
  9388. if (
  9389. (!_this.jqstartDate || !_this.jqendDate) &&
  9390. (!_this.systartDate || !_this.syendDate)
  9391. ) {
  9392. this.$message({ message: "投保日期不能为空", type: "warning" });
  9393. } else {
  9394. if (_this.jqchecked) {
  9395. //交强
  9396. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  9397. _this.jqendDate = this.transformTime(_this.jqendDate);
  9398. _this.riskList.push({
  9399. amount: "200000",
  9400. premium: "0",
  9401. riskCode: "0507",
  9402. endDate: _this.jqendDate,
  9403. startDate: _this.jqstartDate,
  9404. instantFlag: "0"
  9405. });
  9406. }
  9407. if (_this.sychecked) {
  9408. _this.systartDate = this.transformTime(_this.systartDate);
  9409. _this.syendDate = this.transformTime(_this.syendDate);
  9410. //商业
  9411. _this.riskList.push({
  9412. premium: "0",
  9413. riskCode: "0510",
  9414. quotePreceptCode: "",
  9415. quotePreceptName: "",
  9416. endDate: _this.syendDate,
  9417. startDate: _this.systartDate,
  9418. instantFlag: "0"
  9419. });
  9420. // _this.insureList.map((ele, index) => {
  9421. // if (
  9422. // ele.amount != "0" &&
  9423. // (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  9424. // ) {
  9425. // _this.kindList.push({
  9426. // unitAmount: _this.insureList[index].amount,
  9427. // kindCode: _this.insureList[index].kindCode,
  9428. // kindName: _this.insureList[index].kindName,
  9429. // });
  9430. // } else if (
  9431. // ele.amount != "0" &&
  9432. // (ele.kindCode == "MJ1" ||
  9433. // ele.kindCode == "MJ2" ||
  9434. // ele.kindCode == "MJ3" ||
  9435. // ele.kindCode == "MJ4")
  9436. // ) {
  9437. // _this.kindList.push({
  9438. // deductibleRate: _this.insureList[index].amount,
  9439. // kindCode: _this.insureList[index].kindCode,
  9440. // kindName: _this.insureList[index].kindName,
  9441. // });
  9442. // } else if (
  9443. // ele.amount != "0" &&
  9444. // (ele.kindCode == "TY1" ||
  9445. // ele.kindCode == "TY2" ||
  9446. // ele.kindCode == "TY3" ||
  9447. // ele.kindCode == "TY4")
  9448. // ) {
  9449. // _this.kindList.push({
  9450. // serviceTimes: _this.insureList[index].amount,
  9451. // kindCode: _this.insureList[index].kindCode,
  9452. // kindName: _this.insureList[index].kindName,
  9453. // });
  9454. // } else if (ele.amount != "0") {
  9455. // _this.kindList.push({
  9456. // amount: _this.insureList[index].amount,
  9457. // kindCode: _this.insureList[index].kindCode,
  9458. // kindName: _this.insureList[index].kindName,
  9459. // });
  9460. // }
  9461. // return ele;
  9462. // });
  9463. } else {
  9464. _this.kindList = [];
  9465. }
  9466. }
  9467. },
  9468. //动态函数
  9469. ToolClickFun(MethodName, Parameter, companyId, companyName, index) {
  9470. this[`${MethodName}`](Parameter, companyId, companyName, index);
  9471. },
  9472. //更新报价历史
  9473. QuotationHistory() {
  9474. let params = {
  9475. orderNo: this.orderno,
  9476. orderStatus: ""
  9477. };
  9478. this.$api.letter.queryQuoteHistory(params).then(res => {
  9479. res.data.forEach(item => {
  9480. if (item.accidentInfo) {
  9481. item.accidentInfo.constructor === Object
  9482. ? [item.accidentInfo]
  9483. : item.accidentInfo;
  9484. }
  9485. });
  9486. this.HistoryList = res.data;
  9487. });
  9488. },
  9489. open2(Name, Msg) {
  9490. this.$notify.info({
  9491. title: Name,
  9492. dangerouslyUseHTMLString: true,
  9493. type: "warning",
  9494. message: Msg,
  9495. customClass: "customNotifyClass",
  9496. duration: 7000
  9497. });
  9498. },
  9499. open3(Name, Msg) {
  9500. this.$notify.info({
  9501. title: Name,
  9502. dangerouslyUseHTMLString: true,
  9503. type: "warning",
  9504. message: `<p>${Msg.replace(/\n/g, "<br>")}</p>`,
  9505. customClass: "customNotifyClass",
  9506. duration: 7000
  9507. });
  9508. },
  9509. openPredictInfo(Name, Msg) {
  9510. this.redictInfoMsg = Msg;
  9511. this.redictInfodialogVisible = true;
  9512. },
  9513. //订单生成前数据处理事件
  9514. OrderStageProcessing(index) {
  9515. if (this.tbczcarShow && this.imageList2.length > 0) {
  9516. //投保人同车主
  9517. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  9518. if (this.imageList3.length == 1) {
  9519. if (this.imageList3[0].imageType.includes("C0")) {
  9520. this.imageList3[0].imageType = this.imageList3[0].imageType.includes(
  9521. "C0"
  9522. )
  9523. ? "C03"
  9524. : "D03";
  9525. }
  9526. if (this.imageList3[0].imageType.includes("Y0")) {
  9527. this.imageList3[0].imageType = this.imageList3[0].imageType.includes(
  9528. "Y0"
  9529. )
  9530. ? "Y03"
  9531. : "";
  9532. }
  9533. } else {
  9534. this.imageList3.forEach(e => {
  9535. e.imageType = e.imageType.includes("C0") ? "C03" : "D03";
  9536. });
  9537. }
  9538. }
  9539. if (this.bbczcarShow && this.imageList2.length > 0) {
  9540. //被保人同车主
  9541. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  9542. if (this.imageList4.length == 1) {
  9543. // this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  9544. // "C0"
  9545. // )
  9546. // ? "C04"
  9547. // : "D04";
  9548. if (this.imageList4[0].imageType.includes("C0")) {
  9549. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  9550. "C0"
  9551. )
  9552. ? "C04"
  9553. : "D04";
  9554. }
  9555. if (this.imageList4[0].imageType.includes("Y0")) {
  9556. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  9557. "Y0"
  9558. )
  9559. ? "Y04"
  9560. : "";
  9561. }
  9562. } else {
  9563. this.imageList4.forEach(e => {
  9564. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  9565. });
  9566. }
  9567. // if (this.imageList4.length == 1) {
  9568. // this.imageList4[0].imageType = "C04";
  9569. // }
  9570. // else {
  9571. // this.imageList4[0].imageType = "C04";
  9572. // this.imageList4[1].imageType = "D04";
  9573. // }
  9574. }
  9575. if (this.bbtbcarShow && this.imageList3.length > 0) {
  9576. //被保人同投保人
  9577. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  9578. if (this.imageList4.length == 1) {
  9579. // this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  9580. // "C0"
  9581. // )
  9582. // ? "C04"
  9583. // : "D04";
  9584. if (this.imageList4[0].imageType.includes("C0")) {
  9585. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  9586. "C0"
  9587. )
  9588. ? "C04"
  9589. : "D04";
  9590. }
  9591. if (this.imageList4[0].imageType.includes("Y0")) {
  9592. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  9593. "Y0"
  9594. )
  9595. ? "Y04"
  9596. : "";
  9597. }
  9598. } else {
  9599. this.imageList4.forEach(e => {
  9600. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  9601. });
  9602. }
  9603. // if (this.imageList4.length == 1) {
  9604. // this.imageList4[0].imageType = "C04";
  9605. // } else {
  9606. // this.imageList4[0].imageType = "C04";
  9607. // this.imageList4[1].imageType = "D04";
  9608. // }
  9609. }
  9610. //日期长度<10处理
  9611. const formatDate = date => {
  9612. if (date.length < 10) {
  9613. return this.timeformat(date);
  9614. }
  9615. return date;
  9616. };
  9617. if (this.carInfo.registerDate.length < 10) {
  9618. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  9619. }
  9620. if (this.carInfo.issueDate.length < 10) {
  9621. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  9622. }
  9623. if (
  9624. this.carInfo.transferDate &&
  9625. this.carInfo.transferDate.length < 10 &&
  9626. this.carInfo.transferDate !== ""
  9627. ) {
  9628. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  9629. }
  9630. //日期长度<10处理
  9631. //提交身份证/驾驶证 ——————————————————
  9632. this.policyHolderInfo.owner = this.tbczcarShow;
  9633. this.insuredPersonInfo.owner = this.bbczcarShow;
  9634. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  9635. if (typeof this.ownerInfo.provinceData == "string") {
  9636. this.ownerInfo.provinceData = [];
  9637. }
  9638. if (typeof this.insuredPersonInfo.provinceData == "string") {
  9639. this.insuredPersonInfo.provinceData = [];
  9640. }
  9641. if (typeof this.policyHolderInfo.provinceData == "string") {
  9642. this.policyHolderInfo.provinceData = [];
  9643. }
  9644. let param = {
  9645. userId: this.userId,
  9646. quoteno: this.quoteno,
  9647. orderNo: this.orderno,
  9648. carInfo: this.carInfo,
  9649. insuredPersonInfo: this.insuredPersonInfo,
  9650. ownerInfo: this.ownerInfo,
  9651. policyHolderInfo: this.policyHolderInfo,
  9652. riskList: this.riskList,
  9653. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9654. productId: this.productId
  9655. };
  9656. this.$api.letter[this.apiInterfaceName](param).then(res => {
  9657. if (res.code == "200") {
  9658. //上传图片
  9659. const mergedArray = [
  9660. ...this.imageList1,
  9661. ...this.imageList2,
  9662. ...this.imageList3,
  9663. ...this.imageList4,
  9664. ...this.imageList5,
  9665. ...this.imageList6
  9666. ];
  9667. if (mergedArray.length > 0) {
  9668. let imageparam = {
  9669. imageList: mergedArray,
  9670. quoteNo: res.data.quoteno
  9671. };
  9672. this.$api.letter.uploadImages(imageparam).then(responses => {
  9673. this.imageEcho(res.data.quoteno); // 获取图片
  9674. // this.$refs.imageDialog.imageEcho(res.data.quoteno)
  9675. });
  9676. }
  9677. this.quoteno = res.data.quoteno;
  9678. this.orderno = res.data.orderno;
  9679. if (index >= 0) {
  9680. this.totalCompanyList[index].quoteCode = 1;
  9681. this.ToolClickFun(
  9682. this.totalCompanyList[index].cnName,
  9683. index,
  9684. this.totalCompanyList[index].id,
  9685. this.totalCompanyList[index].namesimple
  9686. );
  9687. } else {
  9688. this.totalCompanyList.map((ele, index) => {
  9689. if (ele.checked) {
  9690. //动态调用报价接口
  9691. if (ele.programme) {
  9692. ele.quoteCode = 1;
  9693. ele.orderstatus = 0;
  9694. this.ToolClickFun(ele.cnName, index, ele.id, ele.namesimple);
  9695. }
  9696. }
  9697. });
  9698. }
  9699. } else if (res.code == 1001) {
  9700. this.$confirm("是否生成新订单?", "提示", {
  9701. confirmButtonText: "确定",
  9702. cancelButtonText: "取消",
  9703. type: "warning"
  9704. })
  9705. .then(() => {
  9706. this.orderno = "";
  9707. this.quoteno = "";
  9708. this.quote(index);
  9709. })
  9710. .catch(() => { });
  9711. } else {
  9712. this.$message({ message: res.msg, type: "warning" });
  9713. }
  9714. });
  9715. // document.getElementById("company").scrollIntoView();
  9716. this.imageUploadShow = true;
  9717. },
  9718. // 泰康报价--11
  9719. taikang(num, id, namesimple) {
  9720. this.quoteInsurance(
  9721. num,
  9722. id,
  9723. namesimple,
  9724. this.totalCompanyList[num].apiType
  9725. );
  9726. },
  9727. // 平安报价
  9728. pingan(num, id) {
  9729. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9730. let accidentalDrivingVo = [];
  9731. if (this.pinganaccidentalDrivingVo) {
  9732. accidentalDrivingVo = this.pinganaccidentalDrivingVo;
  9733. // accidentalDrivingVo = Object.assign({
  9734. // ...this.pinganaccidentalDrivingVo,
  9735. // ...this.accidentFormPA,
  9736. // });
  9737. }
  9738. let params = {
  9739. accidentalDrivingVo,
  9740. orderNo: this.orderno,
  9741. companyId: id,
  9742. agreementId: this.totalCompanyList[num].agreementId,
  9743. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9744. kinds: this.totalCompanyList[num].kindList,
  9745. risks: this.riskList,
  9746. productId: this.productId
  9747. };
  9748. this.$api.letter.pinganquote(params).then(res => {
  9749. this.totalCompanyList[num].msg = res.msg;
  9750. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  9751. this.totalCompanyList[num].quoteCode = "4";
  9752. this.totalCompanyList[num].msg = res.msg;
  9753. return;
  9754. } else if (
  9755. res.data == null &&
  9756. res.msg.indexOf("交强险平台返回") > -1 &&
  9757. res.msg.indexOf(";终保日期") > -1
  9758. ) {
  9759. this.totalCompanyList[num].lastYearMsg =
  9760. "<b>交强险</b><br>" +
  9761. res.msg.slice(
  9762. res.msg.indexOf("起保日期 "),
  9763. res.msg.indexOf("地区 山西。") + 6
  9764. );
  9765. let time =
  9766. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  9767. this.jqstartDate = time;
  9768. this.jqendDate = this.oneYearPast1(time);
  9769. if (this.riskList.length > 0) {
  9770. for (let i = 0; i < this.riskList.length; i++) {
  9771. if (this.riskList[i].riskCode == "0507") {
  9772. this.riskList[i].startDate = time;
  9773. this.riskList[i].endDate = this.oneYearPast1(time);
  9774. }
  9775. }
  9776. }
  9777. let param = {
  9778. userId: this.userId,
  9779. quoteno: this.quoteno,
  9780. orderNo: this.orderno,
  9781. carInfo: this.carInfo,
  9782. insuredPersonInfo: this.insuredPersonInfo,
  9783. ownerInfo: this.ownerInfo,
  9784. policyHolderInfo: this.policyHolderInfo,
  9785. kindList: this.kindList,
  9786. riskList: this.riskList,
  9787. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  9788. };
  9789. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  9790. this.pingan(num, id);
  9791. });
  9792. } else if (!!res.data) {
  9793. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  9794. this.totalCompanyList[num].lastYearMsg = "";
  9795. let dat = res.data.warnMessageList;
  9796. dat.map(ele => {
  9797. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9798. });
  9799. }
  9800. this.totalCompanyList[num].quoteCode = 200;
  9801. this.totalCompanyList[num].result = res.data;
  9802. this.jqstartDate = res.data.startDateJq;
  9803. this.jqendDate = res.data.endDateJq;
  9804. this.systartDate = res.data.startDateSy;
  9805. this.syendDate = res.data.endDateSy;
  9806. this.QuotationHistory();
  9807. } else {
  9808. this.totalCompanyList[num].quoteCode = "3";
  9809. this.totalCompanyList[num].msg = res.msg;
  9810. return;
  9811. }
  9812. });
  9813. },
  9814. //永安报价
  9815. yongan(num, id) {
  9816. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9817. let params = {
  9818. orderNo: this.orderno,
  9819. companyId: id,
  9820. agreementId: this.totalCompanyList[num].agreementId,
  9821. kindList: this.totalCompanyList[num].kindList,
  9822. riskList: this.riskList,
  9823. productId: this.productId
  9824. };
  9825. this.$api.letter.yonganquote(params).then(res => {
  9826. this.totalCompanyList[num].msg = res.msg;
  9827. if (res.msg == "重复投保" && res.code == "501") {
  9828. if (!!res.data.jqStartDate && !res.data.syStartDate) {
  9829. this.jqstartDate = res.data.jqStartDate;
  9830. this.jqendDate = res.data.jqEndDate;
  9831. this.updateRiskDates(
  9832. "0507",
  9833. res.data.jqStartDate,
  9834. res.data.jqEndDate
  9835. );
  9836. let param = {
  9837. userId: this.userId,
  9838. quoteno: this.quoteno,
  9839. orderNo: this.orderno,
  9840. carInfo: this.carInfo,
  9841. insuredPersonInfo: this.insuredPersonInfo,
  9842. ownerInfo: this.ownerInfo,
  9843. policyHolderInfo: this.policyHolderInfo,
  9844. kindList: this.kindList,
  9845. riskList: this.riskList,
  9846. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9847. isTaxSource: isTaxSource == 1 ? isTaxSource : null
  9848. };
  9849. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  9850. this.yongan(num, id);
  9851. });
  9852. } else if (!!res.data.syStartDate && !res.data.jqStartDate) {
  9853. this.systartDate = res.data.syStartDate;
  9854. this.syendDate = res.data.syEndDate;
  9855. this.updateRiskDates(
  9856. "0510",
  9857. res.data.syStartDate,
  9858. res.data.syEndDate
  9859. );
  9860. let param = {
  9861. userId: this.userId,
  9862. quoteno: this.quoteno,
  9863. orderNo: this.orderno,
  9864. carInfo: this.carInfo,
  9865. insuredPersonInfo: this.insuredPersonInfo,
  9866. ownerInfo: this.ownerInfo,
  9867. policyHolderInfo: this.policyHolderInfo,
  9868. kindList: this.kindList,
  9869. riskList: this.riskList,
  9870. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  9871. };
  9872. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  9873. this.yongan(num, id);
  9874. });
  9875. } else if (!!res.data.syStartDate && !!res.data.jqStartDate) {
  9876. this.jqstartDate = res.data.jqStartDate;
  9877. this.jqendDate = res.data.jqEndDate;
  9878. this.systartDate = res.data.syStartDate;
  9879. this.syendDate = res.data.syEndDate;
  9880. this.updateRiskDates(
  9881. "0507",
  9882. res.data.jqStartDate,
  9883. res.data.jqEndDate
  9884. );
  9885. this.updateRiskDates(
  9886. "0510",
  9887. res.data.syStartDate,
  9888. res.data.syEndDate
  9889. );
  9890. let param = {
  9891. userId: this.userId,
  9892. quoteno: this.quoteno,
  9893. orderNo: this.orderno,
  9894. carInfo: this.carInfo,
  9895. insuredPersonInfo: this.insuredPersonInfo,
  9896. ownerInfo: this.ownerInfo,
  9897. policyHolderInfo: this.policyHolderInfo,
  9898. kindList: this.kindList,
  9899. riskList: this.riskList,
  9900. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  9901. };
  9902. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  9903. this.yongan(num, id);
  9904. });
  9905. } else {
  9906. this.totalCompanyList[num].quoteCode = "3";
  9907. this.totalCompanyList[num].msg = "重复投保";
  9908. }
  9909. } else if (
  9910. res.code == "500" ||
  9911. res.code == "502" ||
  9912. res.code == "-9999"
  9913. ) {
  9914. this.totalCompanyList[num].quoteCode = "-9999";
  9915. this.totalCompanyList[num].msg = res.msg;
  9916. } else {
  9917. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  9918. this.totalCompanyList[num].lastYearMsg = "";
  9919. let dat = res.data.warnMessageList;
  9920. dat.map(ele => {
  9921. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9922. });
  9923. }
  9924. this.totalCompanyList[num].quoteCode = 200;
  9925. this.totalCompanyList[num].result = res.data;
  9926. this.jqstartDate = res.data.startDateJq;
  9927. this.jqendDate = res.data.endDateJq;
  9928. this.systartDate = res.data.startDateSy;
  9929. this.syendDate = res.data.endDateSy;
  9930. this.QuotationHistory();
  9931. }
  9932. });
  9933. },
  9934. updateRiskDates(riskCode, startDate, endDate) {
  9935. for (let i = 0; i < this.riskList.length; i++) {
  9936. if (this.riskList[i].riskCode == riskCode) {
  9937. this.riskList[i].startDate = startDate;
  9938. this.riskList[i].endDate = endDate;
  9939. }
  9940. }
  9941. },
  9942. //中煤报价
  9943. zhongmei(num, id) {
  9944. let accidentalDrivingVo = {};
  9945. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9946. let type = this.totalCompanyList[num].apiType;
  9947. let api = type == 2 ? "pythonquote" : "zhongmeiquote";
  9948. // if (this.accidentFormZM.projectCode) {
  9949. // accidentalDrivingVo = {
  9950. // projectCode: this.accidentFormZM.projectCode,
  9951. // projectName: this.accidentFormZM.projectName,
  9952. // quantity: this.accidentFormZM.quantity
  9953. // ? this.accidentFormZM.quantity
  9954. // : "1"
  9955. // };
  9956. // }
  9957. if (this.accidentFormZM.projectCode) {
  9958. accidentalDrivingVo = {
  9959. ...this.zhongmeiInsuranceData.find(
  9960. e => e.projectCode == this.accidentFormZM.projectCode
  9961. ),
  9962. quantity: this.accidentFormZM.quantity
  9963. ? this.accidentFormZM.quantity
  9964. : "1"
  9965. };
  9966. }
  9967. accidentalDrivingVo =
  9968. this.totalCompanyList[num].programme.drivingList[0] || {};
  9969. let params = {
  9970. accidentalDrivingVo,
  9971. orderNo: this.orderno,
  9972. companyId: id,
  9973. agreementId: this.totalCompanyList[num].agreementId,
  9974. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9975. kinds: this.totalCompanyList[num].kindList,
  9976. risks: this.riskList,
  9977. productId: this.productId
  9978. };
  9979. this.$api.letter.zhongmeiquote(params).then(res => {
  9980. // this.$api.letter[api](params).then((res) => {
  9981. this.totalCompanyList[num].msg = res.msg;
  9982. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  9983. this.totalCompanyList[num].quoteCode = "4";
  9984. this.totalCompanyList[num].msg = res.msg;
  9985. return;
  9986. } else if (
  9987. res.data == null &&
  9988. res.msg.indexOf("交强险平台返回") > -1 &&
  9989. res.msg.indexOf(";终保日期") > -1
  9990. ) {
  9991. this.totalCompanyList[num].lastYearMsg =
  9992. "<b>交强险</b><br>" +
  9993. res.msg.slice(
  9994. res.msg.indexOf("起保日期 "),
  9995. res.msg.indexOf("地区 山西。") + 6
  9996. );
  9997. let time =
  9998. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  9999. this.jqstartDate = time;
  10000. this.jqendDate = this.oneYearPast1(time);
  10001. if (this.riskList.length > 0) {
  10002. for (let i = 0; i < this.riskList.length; i++) {
  10003. if (this.riskList[i].riskCode == "0507") {
  10004. this.riskList[i].startDate = time;
  10005. this.riskList[i].endDate = this.oneYearPast1(time);
  10006. }
  10007. }
  10008. }
  10009. let param = {
  10010. userId: this.userId,
  10011. quoteno: this.quoteno,
  10012. orderNo: this.orderno,
  10013. carInfo: this.carInfo,
  10014. insuredPersonInfo: this.insuredPersonInfo,
  10015. ownerInfo: this.ownerInfo,
  10016. policyHolderInfo: this.policyHolderInfo,
  10017. kindList: this.kindList,
  10018. riskList: this.riskList,
  10019. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  10020. };
  10021. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  10022. this.zhongmei(num, id);
  10023. });
  10024. } else if (!!res.data) {
  10025. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  10026. this.totalCompanyList[num].lastYearMsg = "";
  10027. let dat = res.data.warnMessageList;
  10028. dat.map(ele => {
  10029. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  10030. });
  10031. }
  10032. this.totalCompanyList[num].quoteCode = 200;
  10033. this.totalCompanyList[num].result = res.data;
  10034. this.jqstartDate = res.data.startDateJq;
  10035. this.jqendDate = res.data.endDateJq;
  10036. this.systartDate = res.data.startDateSy;
  10037. this.syendDate = res.data.endDateSy;
  10038. this.QuotationHistory();
  10039. } else {
  10040. this.totalCompanyList[num].quoteCode = "3";
  10041. this.totalCompanyList[num].msg = res.msg;
  10042. return;
  10043. }
  10044. });
  10045. },
  10046. // 大家报价
  10047. dajia(num, id) {
  10048. // let accidentalDrivingVo=[]
  10049. // if(this.dajiaaccidentalDrivingVo){
  10050. // accidentalDrivingVo.rideRiskCode=this.dajiaaccidentalDrivingVo.schemeNo;
  10051. // accidentalDrivingVo.rideRiskName=this.dajiaaccidentalDrivingVo.cvrgName;
  10052. // accidentalDrivingVo.quantity=this.dajiaaccidentalDrivingVo.quantity;
  10053. // }
  10054. let type = this.totalCompanyList[num].apiType;
  10055. let api = type == 2 ? "pythonquote" : "dajiaquote";
  10056. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  10057. let accidentalDrivingVo =
  10058. this.totalCompanyList[num].programme.drivingList[0] || {};
  10059. let params = {
  10060. accidentalDrivingVo: accidentalDrivingVo,
  10061. orderNo: this.orderno,
  10062. companyId: id,
  10063. agreementId: this.totalCompanyList[num].agreementId,
  10064. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  10065. kinds: this.totalCompanyList[num].kindList || [],
  10066. risks: this.riskList || []
  10067. };
  10068. this.$api.letter[api](params).then(res => {
  10069. this.totalCompanyList[num].msg = res.msg;
  10070. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  10071. this.totalCompanyList[num].quoteCode = "4";
  10072. this.totalCompanyList[num].msg = res.msg;
  10073. return;
  10074. } else if (
  10075. res.data == null &&
  10076. res.msg.indexOf("交强险平台返回") > -1 &&
  10077. res.msg.indexOf(";终保日期") > -1
  10078. ) {
  10079. this.totalCompanyList[num].lastYearMsg =
  10080. "<b>交强险</b><br>" +
  10081. res.msg.slice(
  10082. res.msg.indexOf("起保日期 "),
  10083. res.msg.indexOf("地区 山西。") + 6
  10084. );
  10085. let time =
  10086. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  10087. this.jqstartDate = time;
  10088. this.jqendDate = this.oneYearPast1(time);
  10089. if (this.riskList.length > 0) {
  10090. for (let i = 0; i < this.riskList.length; i++) {
  10091. if (this.riskList[i].riskCode == "0507") {
  10092. this.riskList[i].startDate = time;
  10093. this.riskList[i].endDate = this.oneYearPast1(time);
  10094. }
  10095. }
  10096. }
  10097. let param = {
  10098. userId: this.userId,
  10099. quoteno: this.quoteno,
  10100. orderNo: this.orderno,
  10101. carInfo: this.carInfo,
  10102. insuredPersonInfo: this.insuredPersonInfo,
  10103. ownerInfo: this.ownerInfo,
  10104. policyHolderInfo: this.policyHolderInfo,
  10105. kindList: this.kindList,
  10106. riskList: this.riskList,
  10107. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  10108. kinds: this.totalCompanyList[num].kindList,
  10109. risks: this.riskList
  10110. };
  10111. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  10112. this.dajia(num, id);
  10113. });
  10114. } else if (!!res.data) {
  10115. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  10116. this.totalCompanyList[num].lastYearMsg = "";
  10117. let dat = res.data.warnMessageList;
  10118. dat.map(ele => {
  10119. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  10120. });
  10121. }
  10122. this.totalCompanyList[num].quoteCode = 200;
  10123. this.totalCompanyList[num].result = res.data;
  10124. this.jqstartDate = res.data.startDateJq;
  10125. this.jqendDate = res.data.endDateJq;
  10126. this.systartDate = res.data.startDateSy;
  10127. this.syendDate = res.data.endDateSy;
  10128. this.QuotationHistory();
  10129. } else {
  10130. this.totalCompanyList[num].quoteCode = "3";
  10131. this.totalCompanyList[num].msg = res.msg;
  10132. return;
  10133. }
  10134. });
  10135. },
  10136. //华泰报价
  10137. huatai(num, id) {
  10138. let type = this.totalCompanyList[num].apiType;
  10139. let api = type == 2 ? "pythonquote" : "huataiquote";
  10140. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  10141. let params = {
  10142. accidentalDrivingVo: {},
  10143. orderNo: this.orderno,
  10144. companyId: id,
  10145. agreementId: this.totalCompanyList[num].agreementId,
  10146. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  10147. kinds: this.totalCompanyList[num].kindList || [],
  10148. risks: this.riskList || []
  10149. };
  10150. this.$api.letter[api](params).then(res => {
  10151. this.totalCompanyList[num].msg = res.msg;
  10152. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  10153. this.totalCompanyList[num].quoteCode = "4";
  10154. this.totalCompanyList[num].msg = res.msg;
  10155. return;
  10156. } else if (
  10157. res.data == null &&
  10158. res.msg.indexOf("交强险平台返回") > -1 &&
  10159. res.msg.indexOf(";终保日期") > -1
  10160. ) {
  10161. //判断保司返回重复投保信息,进行默认赋值起终保日期,重新算费 后面联调需要调整
  10162. let time =
  10163. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  10164. this.jqstartDate = time;
  10165. this.jqendDate = this.oneYearPast1(time);
  10166. this.systartDate = time;
  10167. this.syendDate = this.oneYearPast1(time);
  10168. if (this.riskList.length > 0) {
  10169. for (let i = 0; i < this.riskList.length; i++) {
  10170. if (this.riskList[i].riskCode == "0507") {
  10171. this.riskList[i].startDate = time;
  10172. this.riskList[i].endDate = this.oneYearPast1(time);
  10173. } else if (this.riskList[i].riskCode == "0510") {
  10174. this.riskList[i].startDate = time;
  10175. this.riskList[i].endDate = this.oneYearPast1(time);
  10176. }
  10177. }
  10178. }
  10179. let param = {
  10180. userId: this.userId,
  10181. quoteno: this.quoteno,
  10182. orderNo: this.orderno,
  10183. carInfo: this.carInfo,
  10184. insuredPersonInfo: this.insuredPersonInfo,
  10185. ownerInfo: this.ownerInfo,
  10186. policyHolderInfo: this.policyHolderInfo,
  10187. kindList: this.kindList,
  10188. riskList: this.riskList,
  10189. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  10190. kinds: this.totalCompanyList[num].kindList || [],
  10191. risks: this.riskList || []
  10192. };
  10193. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  10194. this.huatai(num, id);
  10195. });
  10196. } else if (!!res.data) {
  10197. this.totalCompanyList[num].quoteCode = 200;
  10198. this.totalCompanyList[num].result = res.data;
  10199. this.jqstartDate = res.data.startDateJq;
  10200. this.jqendDate = res.data.endDateJq;
  10201. this.systartDate = res.data.startDateSy;
  10202. this.syendDate = res.data.endDateSy;
  10203. this.QuotationHistory();
  10204. } else {
  10205. this.totalCompanyList[num].quoteCode = "3";
  10206. this.totalCompanyList[num].msg = res.msg;
  10207. return;
  10208. }
  10209. });
  10210. },
  10211. //紫金报价
  10212. zijin(num, id) {
  10213. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  10214. let params = {
  10215. accidentalDrivingVo:
  10216. this.totalCompanyList[num].programme.drivingList || [],
  10217. orderNo: this.orderno,
  10218. companyId: id,
  10219. agreementId: this.totalCompanyList[num].agreementId,
  10220. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  10221. coefficient: this.totalCompanyList[num].coefficient,
  10222. kinds: this.totalCompanyList[num].kindList,
  10223. risks: this.riskList,
  10224. productId: this.productId
  10225. };
  10226. this.$api.letter.zijinquote(params).then(res => {
  10227. this.totalCompanyList[num].msg = res.msg;
  10228. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  10229. this.totalCompanyList[num].quoteCode = "4";
  10230. this.totalCompanyList[num].msg = res.msg;
  10231. return;
  10232. } else if (
  10233. res.data == null &&
  10234. res.msg.indexOf("交强险平台返回") > -1 &&
  10235. res.msg.indexOf(";终保日期") > -1
  10236. ) {
  10237. let time =
  10238. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  10239. this.jqstartDate = time;
  10240. this.jqendDate = this.oneYearPast1(time);
  10241. this.systartDate = time;
  10242. this.syendDate = this.oneYearPast1(time);
  10243. if (this.riskList.length > 0) {
  10244. for (let i = 0; i < this.riskList.length; i++) {
  10245. if (this.riskList[i].riskCode == "0507") {
  10246. this.riskList[i].startDate = time;
  10247. this.riskList[i].endDate = this.oneYearPast1(time);
  10248. } else if (this.riskList[i].riskCode == "0510") {
  10249. this.riskList[i].startDate = time;
  10250. this.riskList[i].endDate = this.oneYearPast1(time);
  10251. }
  10252. }
  10253. }
  10254. let param = {
  10255. userId: this.userId,
  10256. quoteno: this.quoteno,
  10257. orderNo: this.orderno,
  10258. carInfo: this.carInfo,
  10259. insuredPersonInfo: this.insuredPersonInfo,
  10260. ownerInfo: this.ownerInfo,
  10261. policyHolderInfo: this.policyHolderInfo,
  10262. kindList: this.kindList,
  10263. riskList: this.riskList,
  10264. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  10265. };
  10266. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  10267. this.zijin(num, id);
  10268. });
  10269. } else if (!!res.data) {
  10270. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  10271. this.totalCompanyList[num].lastYearMsg = "";
  10272. let dat = res.data.warnMessageList;
  10273. dat.map(ele => {
  10274. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  10275. });
  10276. }
  10277. this.totalCompanyList[num].quoteCode = 200;
  10278. this.totalCompanyList[num].result = res.data;
  10279. this.jqstartDate = res.data.startDateJq;
  10280. this.jqendDate = res.data.endDateJq;
  10281. this.systartDate = res.data.startDateSy;
  10282. this.syendDate = res.data.endDateSy;
  10283. this.QuotationHistory();
  10284. } else {
  10285. this.totalCompanyList[num].quoteCode = "3";
  10286. this.totalCompanyList[num].msg = res.msg;
  10287. return;
  10288. }
  10289. });
  10290. },
  10291. yangguang(num, id) {
  10292. let accidentalDrivingVo = {};
  10293. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  10294. accidentalDrivingVo =
  10295. this.totalCompanyList[num].programme.drivingList[0] || {};
  10296. let params = {
  10297. accidentalDrivingVo,
  10298. orderNo: this.orderno,
  10299. companyId: id,
  10300. cqryCdeJq: this.cqryCdeJq,
  10301. cqryCdeSy: this.cqryCdeSy,
  10302. renewalCodeJq: this.renewalCodeJq,
  10303. renewalCodeSy: this.renewalCodeSy,
  10304. coefficient: this.totalCompanyList[num].coefficient,
  10305. agreementId: this.totalCompanyList[num].agreementId,
  10306. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  10307. kinds: this.totalCompanyList[num].kindList,
  10308. risks: this.riskList
  10309. };
  10310. this.$api.letter.yangGuangquote(params).then(res => {
  10311. this.totalCompanyList[num].msg = res.msg;
  10312. if (
  10313. res.data == null &&
  10314. res.msg.indexOf("车险平台返回") > -1 &&
  10315. res.msg.indexOf(";终保日期") > -1
  10316. ) {
  10317. let time =
  10318. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  10319. this.jqstartDate = time;
  10320. this.jqendDate = this.oneYearPast1(time);
  10321. if (this.riskList.length > 0) {
  10322. for (let i = 0; i < this.riskList.length; i++) {
  10323. if (this.riskList[i].riskCode == "0507") {
  10324. this.riskList[i].startDate = time;
  10325. this.riskList[i].endDate = this.oneYearPast1(time);
  10326. }
  10327. }
  10328. }
  10329. let param = {
  10330. userId: this.userId,
  10331. quoteno: this.quoteno,
  10332. orderNo: this.orderno,
  10333. carInfo: this.carInfo,
  10334. insuredPersonInfo: this.insuredPersonInfo,
  10335. ownerInfo: this.ownerInfo,
  10336. policyHolderInfo: this.policyHolderInfo,
  10337. kindList: this.totalCompanyList[num].kindList,
  10338. riskList: this.riskList,
  10339. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  10340. };
  10341. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  10342. this.yangguang(num, id);
  10343. });
  10344. } else if (res.code == "200") {
  10345. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  10346. this.totalCompanyList[num].lastYearMsg = "";
  10347. let dat = res.data.warnMessageList;
  10348. dat.map(ele => {
  10349. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  10350. });
  10351. }
  10352. this.totalCompanyList[num].quoteCode = 200;
  10353. this.totalCompanyList[num].result = res.data;
  10354. this.jqstartDate = res.data.startDateJq;
  10355. this.jqendDate = res.data.endDateJq;
  10356. this.systartDate = res.data.startDateSy;
  10357. this.syendDate = res.data.endDateSy;
  10358. this.QuotationHistory();
  10359. } else if (res.code == "101") {
  10360. this.totalCompanyList[num].quoteCode = "101";
  10361. this.totalCompanyList[num].msg = res.msg;
  10362. this.cqryCdeJq = res.data.cqryCdeJq;
  10363. this.cqryCdeSy = res.data.cqryCdeSy;
  10364. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  10365. let jqBase64 = `data:image/png;base64,${jq}`;
  10366. this.renewalCodeJqImg = jqBase64;
  10367. if (res.data.renewalCodeSy) {
  10368. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  10369. let syBase64 = `data:image/png;base64,${sy}`;
  10370. this.renewalCodeSyImg = syBase64;
  10371. }
  10372. this.renewalCodedialogVisible = true;
  10373. } else if (res.code == "500") {
  10374. // this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
  10375. // this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
  10376. // this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
  10377. // this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
  10378. // this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
  10379. // this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
  10380. this.totalCompanyList[num].quoteCode = "3";
  10381. this.totalCompanyList[num].msg = res.msg;
  10382. } else {
  10383. this.totalCompanyList[num].quoteCode = "3";
  10384. this.totalCompanyList[num].msg = res.msg;
  10385. return;
  10386. }
  10387. });
  10388. },
  10389. //永诚报价
  10390. yongcheng(num, id) {
  10391. this.iscCrownerShow = false;
  10392. this.isInsuredShow = false;
  10393. this.isApplicantShow = false;
  10394. let accidentalDrivingVo = {};
  10395. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  10396. if (this.accidentForm.projectCode) {
  10397. let data = this.yongchengaccidentDataList.find(
  10398. val => val.projectCode == this.yongchengtemplateSelection
  10399. );
  10400. accidentalDrivingVo = {
  10401. ...data,
  10402. quantity: this.accidentForm.quantity ? this.accidentForm.quantity : ""
  10403. };
  10404. }
  10405. accidentalDrivingVo =
  10406. this.totalCompanyList[num].programme.drivingList[0] || {};
  10407. let params = {
  10408. accidentalDrivingVo,
  10409. orderNo: this.orderno,
  10410. companyId: id,
  10411. cqryCdeJq: this.cqryCdeJq,
  10412. cqryCdeSy: this.cqryCdeSy,
  10413. renewalCodeJq: this.renewalCodeJq,
  10414. renewalCodeSy: this.renewalCodeSy,
  10415. agreementId: this.totalCompanyList[num].agreementId,
  10416. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  10417. kinds: this.totalCompanyList[num].kindList,
  10418. risks: this.riskList
  10419. };
  10420. this.$api.letter.yongchengquote(params).then(res => {
  10421. this.totalCompanyList[num].msg = res.msg;
  10422. if (
  10423. res.data == null &&
  10424. res.msg.indexOf("车险平台返回") > -1 &&
  10425. res.msg.indexOf(";终保日期") > -1
  10426. ) {
  10427. let time =
  10428. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  10429. this.jqstartDate = time;
  10430. this.jqendDate = this.oneYearPast1(time);
  10431. if (this.riskList.length > 0) {
  10432. for (let i = 0; i < this.riskList.length; i++) {
  10433. if (this.riskList[i].riskCode == "0507") {
  10434. this.riskList[i].startDate = time;
  10435. this.riskList[i].endDate = this.oneYearPast1(time);
  10436. }
  10437. }
  10438. }
  10439. let param = {
  10440. userId: this.userId,
  10441. quoteno: this.quoteno,
  10442. orderNo: this.orderno,
  10443. carInfo: this.carInfo,
  10444. insuredPersonInfo: this.insuredPersonInfo,
  10445. ownerInfo: this.ownerInfo,
  10446. policyHolderInfo: this.policyHolderInfo,
  10447. kindList: this.totalCompanyList[num].kindList,
  10448. riskList: this.riskList,
  10449. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  10450. };
  10451. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  10452. this.yongcheng(num, id);
  10453. });
  10454. } else if (res.code == "200") {
  10455. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  10456. this.totalCompanyList[num].lastYearMsg = "";
  10457. let dat = res.data.warnMessageList;
  10458. dat.map(ele => {
  10459. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  10460. });
  10461. }
  10462. this.totalCompanyList[num].quoteCode = 200;
  10463. this.totalCompanyList[num].result = res.data;
  10464. this.jqstartDate = res.data.startDateJq;
  10465. this.jqendDate = res.data.endDateJq;
  10466. this.systartDate = res.data.startDateSy;
  10467. this.syendDate = res.data.endDateSy;
  10468. this.QuotationHistory();
  10469. } else if (res.code == "101") {
  10470. this.totalCompanyList[num].quoteCode = "101";
  10471. this.totalCompanyList[num].msg = res.msg;
  10472. this.cqryCdeJq = res.data.cqryCdeJq;
  10473. this.cqryCdeSy = res.data.cqryCdeSy;
  10474. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  10475. let jqBase64 = `data:image/png;base64,${jq}`;
  10476. this.renewalCodeJqImg = jqBase64;
  10477. if (res.data.renewalCodeSy) {
  10478. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  10479. let syBase64 = `data:image/png;base64,${sy}`;
  10480. this.renewalCodeSyImg = syBase64;
  10481. }
  10482. this.renewalCodedialogVisible = true;
  10483. } else if (res.code == "500") {
  10484. // this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
  10485. // this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
  10486. // this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
  10487. // this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
  10488. // this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
  10489. // this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
  10490. this.totalCompanyList[num].quoteCode = "3";
  10491. this.totalCompanyList[num].msg = res.msg;
  10492. } else {
  10493. this.totalCompanyList[num].quoteCode = "3";
  10494. this.totalCompanyList[num].msg = res.msg;
  10495. return;
  10496. }
  10497. });
  10498. },
  10499. //国任报价
  10500. guoRen(num, id) {
  10501. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  10502. let guoRenSpecialAgreementVo = [];
  10503. this.zijinengageList.forEach(val => {
  10504. guoRenSpecialAgreementVo.push({
  10505. clauses: val.clauseName,
  10506. clausesContext: val.clauses,
  10507. clauseCode: val.clauseCode,
  10508. riskCode: val.riskCode,
  10509. riskName: val.riskName
  10510. });
  10511. });
  10512. let accidentalDrivingVo = {};
  10513. if (this.guoRenaccidentForm.goodsCode) {
  10514. accidentalDrivingVo = this.guoRenaccidentalDrivingVo;
  10515. }
  10516. accidentalDrivingVo =
  10517. this.totalCompanyList[num].programme.drivingList[0] || {};
  10518. let params = {
  10519. accidentalDrivingVo,
  10520. orderNo: this.orderno,
  10521. companyId: id,
  10522. cqryCdeJq: this.cqryCdeJq,
  10523. cqryCdeSy: this.cqryCdeSy,
  10524. renewalCodeJq: this.renewalCodeJq,
  10525. renewalCodeSy: this.renewalCodeSy,
  10526. agreementId: this.totalCompanyList[num].agreementId,
  10527. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  10528. guoRenSpecialAgreementVo,
  10529. kinds: this.totalCompanyList[num].kindList,
  10530. risks: this.riskList,
  10531. productId: this.productId
  10532. };
  10533. this.$api.letter.pythonquote(params).then(res => {
  10534. this.totalCompanyList[num].msg = res.msg;
  10535. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  10536. this.totalCompanyList[num].quoteCode = "4";
  10537. this.totalCompanyList[num].msg = res.msg;
  10538. return;
  10539. } else if (
  10540. res.data == null &&
  10541. res.msg.indexOf("车险平台返回") > -1 &&
  10542. res.msg.indexOf(";终保日期") > -1
  10543. ) {
  10544. let time =
  10545. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  10546. this.jqstartDate = time;
  10547. this.jqendDate = this.oneYearPast1(time);
  10548. this.systartDate = time;
  10549. this.syendDate = this.oneYearPast1(time);
  10550. if (this.riskList.length > 0) {
  10551. for (let i = 0; i < this.riskList.length; i++) {
  10552. if (this.riskList[i].riskCode == "0507") {
  10553. this.riskList[i].startDate = time;
  10554. this.riskList[i].endDate = this.oneYearPast1(time);
  10555. } else if (this.riskList[i].riskCode == "0510") {
  10556. this.riskList[i].startDate = time;
  10557. this.riskList[i].endDate = this.oneYearPast1(time);
  10558. }
  10559. }
  10560. }
  10561. let param = {
  10562. userId: this.userId,
  10563. quoteno: this.quoteno,
  10564. orderNo: this.orderno,
  10565. carInfo: this.carInfo,
  10566. insuredPersonInfo: this.insuredPersonInfo,
  10567. ownerInfo: this.ownerInfo,
  10568. policyHolderInfo: this.policyHolderInfo,
  10569. kindList: this.totalCompanyList[num].kindList,
  10570. riskList: this.riskList,
  10571. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  10572. };
  10573. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  10574. this.guoRen(num, id);
  10575. });
  10576. } else if (res.code == "200") {
  10577. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  10578. this.totalCompanyList[num].lastYearMsg = "";
  10579. let dat = res.data.warnMessageList;
  10580. dat.map(ele => {
  10581. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  10582. });
  10583. }
  10584. this.totalCompanyList[num].quoteCode = 200;
  10585. this.totalCompanyList[num].result = res.data;
  10586. this.jqstartDate = res.data.startDateJq;
  10587. this.jqendDate = res.data.endDateJq;
  10588. this.systartDate = res.data.startDateSy;
  10589. this.syendDate = res.data.endDateSy;
  10590. this.QuotationHistory();
  10591. } else if (res.code == "101") {
  10592. this.totalCompanyList[num].quoteCode = "101";
  10593. this.totalCompanyList[num].msg = res.msg;
  10594. this.cqryCdeJq = res.data.cqryCdeJq;
  10595. this.cqryCdeSy = res.data.cqryCdeSy;
  10596. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  10597. let jqBase64 = `data:image/png;base64,${jq}`;
  10598. this.renewalCodeJqImg = jqBase64;
  10599. if (res.data.renewalCodeSy) {
  10600. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  10601. let syBase64 = `data:image/png;base64,${sy}`;
  10602. this.renewalCodeSyImg = syBase64;
  10603. }
  10604. this.renewalCodedialogVisible = true;
  10605. } else {
  10606. this.totalCompanyList[num].quoteCode = "3";
  10607. this.totalCompanyList[num].msg = res.msg;
  10608. return;
  10609. }
  10610. });
  10611. },
  10612. //渤海报价
  10613. bohai(num, id) {
  10614. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  10615. let accidentalDrivingVo = {};
  10616. if (this.boHaiaccidentForm.projectCode) {
  10617. accidentalDrivingVo = {
  10618. // packageCode: this.boHaiaccidentForm.packageCode,
  10619. // productCode: this.boHaiaccidentDataList.find(
  10620. // (e) => e.packageCode == this.boHaiaccidentForm.packageCode
  10621. // ).productCode,
  10622. // copies: this.boHaiaccidentForm.copies,
  10623. ...this.boHaiaccidentDataList.find(
  10624. e => e.projectCode == this.boHaiaccidentForm.projectCode
  10625. ),
  10626. quantity: this.boHaiaccidentForm.copies
  10627. ? this.boHaiaccidentForm.copies
  10628. : "1"
  10629. };
  10630. }
  10631. accidentalDrivingVo =
  10632. this.totalCompanyList[num].programme.drivingList[0] || {};
  10633. let params = {
  10634. accidentalDrivingVo,
  10635. orderNo: this.orderno,
  10636. companyId: id,
  10637. cqryCdeJq: this.cqryCdeJq,
  10638. cqryCdeSy: this.cqryCdeSy,
  10639. renewalCodeJq: this.renewalCodeJq,
  10640. renewalCodeSy: this.renewalCodeSy,
  10641. agreementId: this.totalCompanyList[num].agreementId,
  10642. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  10643. kinds: this.totalCompanyList[num].kindList,
  10644. risks: this.riskList,
  10645. userId: this.userId
  10646. };
  10647. this.$api.letter.bohaiquote(params).then(res => {
  10648. this.totalCompanyList[num].msg = res.msg;
  10649. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  10650. this.totalCompanyList[num].quoteCode = "4";
  10651. this.totalCompanyList[num].msg = res.msg;
  10652. return;
  10653. } else if (
  10654. res.data == null &&
  10655. res.msg.indexOf("车险平台返回") > -1 &&
  10656. res.msg.indexOf(";终保日期") > -1
  10657. ) {
  10658. let time =
  10659. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  10660. this.jqstartDate = time;
  10661. this.jqendDate = this.oneYearPast1(time);
  10662. this.systartDate = time;
  10663. this.syendDate = this.oneYearPast1(time);
  10664. if (this.riskList.length > 0) {
  10665. for (let i = 0; i < this.riskList.length; i++) {
  10666. if (this.riskList[i].riskCode == "0507") {
  10667. this.riskList[i].startDate = time;
  10668. this.riskList[i].endDate = this.oneYearPast1(time);
  10669. } else if (this.riskList[i].riskCode == "0510") {
  10670. this.riskList[i].startDate = time;
  10671. this.riskList[i].endDate = this.oneYearPast1(time);
  10672. }
  10673. }
  10674. }
  10675. let param = {
  10676. userId: this.userId,
  10677. quoteno: this.quoteno,
  10678. orderNo: this.orderno,
  10679. carInfo: this.carInfo,
  10680. insuredPersonInfo: this.insuredPersonInfo,
  10681. ownerInfo: this.ownerInfo,
  10682. policyHolderInfo: this.policyHolderInfo,
  10683. kindList: this.kindList,
  10684. riskList: this.riskList,
  10685. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  10686. };
  10687. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  10688. this.bohai(num, id);
  10689. });
  10690. } else if (res.code == "200") {
  10691. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  10692. this.totalCompanyList[num].lastYearMsg = "";
  10693. let dat = res.data.warnMessageList;
  10694. dat.map(ele => {
  10695. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  10696. });
  10697. }
  10698. this.totalCompanyList[num].quoteCode = 200;
  10699. this.totalCompanyList[num].result = res.data;
  10700. this.jqstartDate = res.data.startDateJq;
  10701. this.jqendDate = res.data.endDateJq;
  10702. this.systartDate = res.data.startDateSy;
  10703. this.syendDate = res.data.endDateSy;
  10704. this.QuotationHistory();
  10705. } else if (res.code == "101") {
  10706. this.totalCompanyList[num].quoteCode = "101";
  10707. this.totalCompanyList[num].msg = res.msg;
  10708. this.cqryCdeJq = res.data.cqryCdeJq;
  10709. this.cqryCdeSy = res.data.cqryCdeSy;
  10710. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  10711. let jqBase64 = `data:image/png;base64,${jq}`;
  10712. this.renewalCodeJqImg = jqBase64;
  10713. if (res.data.renewalCodeSy) {
  10714. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  10715. let syBase64 = `data:image/png;base64,${sy}`;
  10716. this.renewalCodeSyImg = syBase64;
  10717. }
  10718. this.renewalCodedialogVisible = true;
  10719. } else {
  10720. this.totalCompanyList[num].quoteCode = "3";
  10721. this.totalCompanyList[num].msg = res.msg;
  10722. return;
  10723. }
  10724. });
  10725. },
  10726. // 爬虫对接
  10727. quoteInsurance(num, id, namesimple, apiType) {
  10728. let api = apiType == 2 ? "pythonquote" : "";
  10729. if (namesimple == "诚泰财险") {
  10730. api = "pythonquote";
  10731. }
  10732. let ccidenttype = this.totalCompanyList[num].cnName;
  10733. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  10734. // accidentalDrivingVo = this.totalCompanyList[num].programme.drivingList[0] || {}
  10735. let params = {
  10736. // accidentalDrivingVo: this[ccidenttype + "accidentalDrivingVo"],
  10737. accidentalDrivingVo:
  10738. this.totalCompanyList[num].programme.drivingList[0] || {},
  10739. orderNo: this.orderno,
  10740. companyId: id,
  10741. userId: this.userId,
  10742. agreementId: this.totalCompanyList[num].agreementId,
  10743. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  10744. kinds: this.totalCompanyList[num].kindList || [],
  10745. risks: this.riskList || [],
  10746. productId: this.productId,
  10747. // coefficient:this.totalCompanyList[num].coefficient,
  10748. };
  10749. if (namesimple == "中国人寿" && this.lastCompanyId) {
  10750. params.discount = this.totalCompanyList[num].discount;
  10751. params.lastCompanyId = this.lastCompanyId;
  10752. }
  10753. if (
  10754. namesimple == "华农财险" &&
  10755. this.huanongaccidentalDrivingVo.quantity
  10756. ) {
  10757. params.accidentalDrivingVo.quantity = this.accidentFormHN.quantity;
  10758. // params.accidentalDrivingVo.allQuantity = this.accidentFormHN.allQuantity;
  10759. }
  10760. if (namesimple == "诚泰财险" && this.totalCompanyList[num].result.initialProposalDiscount) {
  10761. params.discount = this.totalCompanyList[num].result.expectedDiscount;
  10762. params.coefficient = this.totalCompanyList[num].result.pricingCoefficient;
  10763. }
  10764. this.$api.letter[api](params).then(res => {
  10765. this.totalCompanyList[num].msg = res.msg;
  10766. switch (namesimple) {
  10767. case "安盛天平":
  10768. case "诚泰财险":
  10769. case "泰康财险":
  10770. case "中国人寿":
  10771. case "人保财险":
  10772. case "恒邦财险":
  10773. case "华农财险":
  10774. case "华安财险":
  10775. case "泰山财险":
  10776. case "太平财险":
  10777. case "太平洋财险":
  10778. if (!!res.data) {
  10779. if (
  10780. res.data.warnMessageList &&
  10781. res.data.warnMessageList.length > 0
  10782. ) {
  10783. this.totalCompanyList[num].lastYearMsg = "";
  10784. let dat = res.data.warnMessageList;
  10785. dat.map(ele => {
  10786. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  10787. });
  10788. }
  10789. if (res.data.predictInfo && res.data.predictInfo.length > 0) {
  10790. this.totalCompanyList[num].predictInfo = res.data.predictInfo;
  10791. }
  10792. this.totalCompanyList[num].quoteCode = 200;
  10793. this.totalCompanyList[num].result = res.data;
  10794. this.vehicleInspectionUrl = this.totalCompanyList[
  10795. num
  10796. ].result.vehicleInspectionUrl;
  10797. if (namesimple == "中国人寿" && res.data.companyId) {
  10798. this.lastCompanyId = res.data.companyId;
  10799. }
  10800. this.jqstartDate = res.data.startDateJq;
  10801. this.jqendDate = res.data.endDateJq;
  10802. this.systartDate = res.data.startDateSy;
  10803. this.syendDate = res.data.endDateSy;
  10804. this.QuotationHistory();
  10805. } else {
  10806. this.totalCompanyList[num].quoteCode = "3";
  10807. this.totalCompanyList[num].msg = res.msg;
  10808. return;
  10809. }
  10810. break;
  10811. case "众安财险":
  10812. if (!!res.data) {
  10813. if (res.data.tips == "需要验车") {
  10814. this.$notify.error({
  10815. title: "通融单",
  10816. duration: 0,
  10817. dangerouslyUseHTMLString: true,
  10818. message: `<div> ${res.data.warnMessageList
  10819. .map(item => {
  10820. return `<p>${item}</p>`;
  10821. })
  10822. .join("")}
  10823. </div>`
  10824. });
  10825. }
  10826. if (
  10827. res.data.warnMessageList &&
  10828. res.data.warnMessageList.length > 0
  10829. ) {
  10830. this.totalCompanyList[num].lastYearMsg = "";
  10831. let dat = res.data.warnMessageList;
  10832. dat.map(ele => {
  10833. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  10834. });
  10835. }
  10836. this.totalCompanyList[num].quoteCode = 200;
  10837. this.totalCompanyList[num].result = res.data;
  10838. this.jqstartDate = res.data.startDateJq;
  10839. this.jqendDate = res.data.endDateJq;
  10840. this.systartDate = res.data.startDateSy;
  10841. this.syendDate = res.data.endDateSy;
  10842. this.QuotationHistory();
  10843. } else {
  10844. this.totalCompanyList[num].quoteCode = "3";
  10845. this.totalCompanyList[num].msg = res.msg;
  10846. return;
  10847. }
  10848. break;
  10849. default:
  10850. break;
  10851. }
  10852. });
  10853. },
  10854. //安盛天平
  10855. ansheng(num, id, namesimple) {
  10856. this.quoteInsurance(
  10857. num,
  10858. id,
  10859. namesimple,
  10860. this.totalCompanyList[num].apiType
  10861. );
  10862. },
  10863. //众安
  10864. zhongan(num, id, namesimple) {
  10865. this.quoteInsurance(
  10866. num,
  10867. id,
  10868. namesimple,
  10869. this.totalCompanyList[num].apiType
  10870. );
  10871. },
  10872. //人寿
  10873. renshou(num, id, namesimple) {
  10874. this.quoteInsurance(
  10875. num,
  10876. id,
  10877. namesimple,
  10878. this.totalCompanyList[num].apiType
  10879. );
  10880. },
  10881. //人保
  10882. renbao(num, id, namesimple) {
  10883. this.quoteInsurance(
  10884. num,
  10885. id,
  10886. namesimple,
  10887. this.totalCompanyList[num].apiType
  10888. );
  10889. },
  10890. //恒邦
  10891. hengbang(num, id, namesimple) {
  10892. this.quoteInsurance(
  10893. num,
  10894. id,
  10895. namesimple,
  10896. this.totalCompanyList[num].apiType
  10897. );
  10898. },
  10899. //太平洋
  10900. taipingyang(num, id, namesimple) {
  10901. this.quoteInsurance(
  10902. num,
  10903. id,
  10904. namesimple,
  10905. this.totalCompanyList[num].apiType
  10906. );
  10907. },
  10908. //诚泰
  10909. chengtai(num, id, namesimple) {
  10910. this.quoteInsurance(
  10911. num,
  10912. id,
  10913. namesimple,
  10914. this.totalCompanyList[num].apiType
  10915. );
  10916. },
  10917. //太平
  10918. taiping(num, id, namesimple) {
  10919. this.quoteInsurance(
  10920. num,
  10921. id,
  10922. namesimple,
  10923. this.totalCompanyList[num].apiType
  10924. );
  10925. },
  10926. //华农
  10927. huanong(num, id, namesimple) {
  10928. this.quoteInsurance(
  10929. num,
  10930. id,
  10931. namesimple,
  10932. this.totalCompanyList[num].apiType
  10933. );
  10934. },
  10935. huaan(num, id, namesimple) {
  10936. this.quoteInsurance(
  10937. num,
  10938. id,
  10939. namesimple,
  10940. this.totalCompanyList[num].apiType
  10941. );
  10942. },
  10943. taishan(num, id, namesimple) {
  10944. this.quoteInsurance(
  10945. num,
  10946. id,
  10947. namesimple,
  10948. this.totalCompanyList[num].apiType
  10949. );
  10950. },
  10951. capTypedictTag(val, option) {
  10952. if (option.find(item => item.dictValue == val)) {
  10953. return option.find(item => item.dictValue == val).dictTag;
  10954. } else {
  10955. return "-";
  10956. }
  10957. },
  10958. // 爬虫对接
  10959. qoutedetail(companyId) {
  10960. let params = {
  10961. companyId: companyId
  10962. };
  10963. this.$api.letter.getByCompanyId(params).then(res => {
  10964. if (res.code == "200") {
  10965. var data = res.data;
  10966. data.kindinfo.map((ele, index) => {
  10967. switch (ele.kindCode) {
  10968. case "A":
  10969. ele.amount = "投保";
  10970. break;
  10971. case "D4":
  10972. case "SY_FJ_YBW2":
  10973. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  10974. break;
  10975. case "MJ1":
  10976. case "MJ2":
  10977. case "MJ3":
  10978. case "MJ4":
  10979. ele.deductibleRate = ele.deductibleRate + "%";
  10980. break;
  10981. default:
  10982. ele.amount = this.toChinesNum(ele.amount);
  10983. }
  10984. return ele;
  10985. });
  10986. if (
  10987. (data.carinfo.carnature && data.carinfo.carnature == "02") ||
  10988. data.carinfo.carnature == "非营业"
  10989. ) {
  10990. data.carinfo.vehicleUse = this.capTypedictTag(
  10991. data.carinfo.vehicleUse,
  10992. this.outOfBusinessVehicleUseoptions
  10993. );
  10994. } else {
  10995. data.carinfo.vehicleUse = this.capTypedictTag(
  10996. data.carinfo.vehicleUse,
  10997. this.businessVehicleUseoptions
  10998. );
  10999. }
  11000. data.carinfo.carnature = this.capTypedictTag(
  11001. data.carinfo.carnature,
  11002. this.natureOfVehicleUseoptions
  11003. );
  11004. data.carinfo.cartype = data.carinfo.cartype
  11005. ? this.capTypedictTag(
  11006. data.carinfo.cartype,
  11007. this.trafficManagementVehicleTypeoptions
  11008. )
  11009. : "";
  11010. data.carinfo.cimodelclass = data.carinfo.cimodelclass
  11011. ? this.capTypedictTag(
  11012. data.carinfo.cimodelclass,
  11013. this.vehicleTypeoptions
  11014. )
  11015. : "";
  11016. data.carinfo.energyType = data.carinfo.energyType
  11017. ? this.capTypedictTag(
  11018. data.carinfo.energyType,
  11019. this.energyTypeoptions
  11020. )
  11021. : "";
  11022. this.queryOrders = data;
  11023. //赋值费用信息
  11024. // this.feeDetailInfo=data.orderFeeResult;
  11025. }
  11026. });
  11027. this.$refs.detailsDialog.setBackupVisible(true);
  11028. },
  11029. imageUpload() {
  11030. this.imageUploaddialogVisible = true;
  11031. // this.$refs.imageDialog.setBackupVisible(true);
  11032. },
  11033. tabLiScroll(id, idx) {
  11034. this.tabLiIndex = idx;
  11035. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  11036. },
  11037. //影像上传
  11038. drivingupload(file, imageIdList, imgurl, type) {
  11039. let that = this;
  11040. let size = file.size / 1024 / 1024 < 5;
  11041. const isJPG =
  11042. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  11043. if (!size) {
  11044. this.$message.error("上传图片大小不能超过 5MB!");
  11045. this[imgurl] = [];
  11046. return false;
  11047. }
  11048. if (!isJPG) {
  11049. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  11050. this[imgurl] = [];
  11051. return false;
  11052. }
  11053. this[imgurl].push(file);
  11054. var file = file.raw;
  11055. const params = new FormData(); // 声明formData数据类型
  11056. params.append("multipartFile", file);
  11057. params.append("type", "image");
  11058. this.$api.letter.uploadFile(params).then(res => {
  11059. if (res.code == "200") {
  11060. if (this[imageIdList].some(v => v.imageType == type)) {
  11061. this[imageIdList].map(val => {
  11062. if (val.imageType == type) {
  11063. val.imageId = res.data.id;
  11064. }
  11065. });
  11066. } else {
  11067. this[imageIdList].push({
  11068. imageId: res.data.id,
  11069. imageType: type
  11070. });
  11071. }
  11072. }
  11073. });
  11074. },
  11075. imageEcho(quotenos) {
  11076. //影像查询
  11077. this.$api.letter.findByQuoteNo(quotenos).then(res => {
  11078. if (res.code == "200") {
  11079. this.imageList1 = [];
  11080. this.imageList2 = [];
  11081. this.imageList3 = [];
  11082. this.imageList4 = [];
  11083. this.imageList5 = [];
  11084. this.imageList6 = [];
  11085. this.imgList1 = [];
  11086. this.imgList2 = [];
  11087. this.imgList3 = [];
  11088. this.imgList4 = [];
  11089. this.imgList5 = [];
  11090. this.imgList6 = [];
  11091. this.imgList7 = [];
  11092. this.imgList8 = [];
  11093. this.imgList9 = [];
  11094. this.imgList10 = [];
  11095. this.imgList11 = [];
  11096. this.imgList12 = [];
  11097. this.imgList13 = [];
  11098. this.imgList14 = [];
  11099. this.imgList15 = [];
  11100. this.imgList16 = [];
  11101. this.imgList17 = [];
  11102. this.imgList18 = [];
  11103. this.imgList19 = [];
  11104. this.imgList20 = [];
  11105. this.imgList21 = [];
  11106. this.imgList22 = [];
  11107. this.imgList23 = [];
  11108. this.imgList24 = [];
  11109. this.imgList25 = [];
  11110. this.imgList26 = [];
  11111. this.imgList27 = [];
  11112. this.imgList28 = [];
  11113. Object.keys(res.data).forEach(keys => {
  11114. if (res.data[keys].url) {
  11115. res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
  11116. switch (keys) {
  11117. case "C01":
  11118. this.imageList1.push({
  11119. imageId: res.data[keys].imageId,
  11120. imageType: res.data[keys].imageType
  11121. });
  11122. this.imgList1.push(res.data[keys]);
  11123. break;
  11124. case "D01":
  11125. this.imageList1.push({
  11126. imageId: res.data[keys].imageId,
  11127. imageType: res.data[keys].imageType
  11128. });
  11129. this.imgList2.push(res.data[keys]);
  11130. break;
  11131. case "C02":
  11132. this.imageList2.push({
  11133. imageId: res.data[keys].imageId,
  11134. imageType: res.data[keys].imageType
  11135. });
  11136. this.imgList3.push(res.data[keys]);
  11137. break;
  11138. case "D02":
  11139. this.imageList2.push({
  11140. imageId: res.data[keys].imageId,
  11141. imageType: res.data[keys].imageType
  11142. });
  11143. this.imgList4.push(res.data[keys]);
  11144. break;
  11145. case "Y02":
  11146. this.imageList2.push({
  11147. imageId: res.data[keys].imageId,
  11148. imageType: res.data[keys].imageType
  11149. });
  11150. this.imgList26.push(res.data[keys]);
  11151. break;
  11152. case "C03":
  11153. this.imageList3.push({
  11154. imageId: res.data[keys].imageId,
  11155. imageType: res.data[keys].imageType
  11156. });
  11157. this.imgList5.push(res.data[keys]);
  11158. break;
  11159. case "D03":
  11160. this.imageList3.push({
  11161. imageId: res.data[keys].imageId,
  11162. imageType: res.data[keys].imageType
  11163. });
  11164. this.imgList6.push(res.data[keys]);
  11165. break;
  11166. case "Y03":
  11167. this.imageList3.push({
  11168. imageId: res.data[keys].imageId,
  11169. imageType: res.data[keys].imageType
  11170. });
  11171. this.imgList27.push(res.data[keys]);
  11172. break;
  11173. case "C04":
  11174. this.imageList4.push({
  11175. imageId: res.data[keys].imageId,
  11176. imageType: res.data[keys].imageType
  11177. });
  11178. this.imgList7.push(res.data[keys]);
  11179. break;
  11180. case "D04":
  11181. this.imageList4.push({
  11182. imageId: res.data[keys].imageId,
  11183. imageType: res.data[keys].imageType
  11184. });
  11185. this.imgList8.push(res.data[keys]);
  11186. break;
  11187. case "Y04":
  11188. this.imageList4.push({
  11189. imageId: res.data[keys].imageId,
  11190. imageType: res.data[keys].imageType
  11191. });
  11192. this.imgList28.push(res.data[keys]);
  11193. break;
  11194. case "XC00":
  11195. this.imageList5.push({
  11196. imageId: res.data[keys].imageId,
  11197. imageType: res.data[keys].imageType
  11198. });
  11199. this.imgList9.push(res.data[keys]);
  11200. break;
  11201. case "GC00":
  11202. this.imageList5.push({
  11203. imageId: res.data[keys].imageId,
  11204. imageType: res.data[keys].imageType
  11205. });
  11206. this.imgList10.push(res.data[keys]);
  11207. break;
  11208. case "GX00":
  11209. this.imageList5.push({
  11210. imageId: res.data[keys].imageId,
  11211. imageType: res.data[keys].imageType
  11212. });
  11213. this.imgList11.push(res.data[keys]);
  11214. break;
  11215. case "TAR05":
  11216. this.imageList1.push({
  11217. imageId: res.data[keys].imageId,
  11218. imageType: res.data[keys].imageType
  11219. });
  11220. this.imgList12.push(res.data[keys]);
  11221. break;
  11222. case "C0500":
  11223. this.imageList6.push({
  11224. imageId: res.data[keys].imageId,
  11225. imageType: res.data[keys].imageType
  11226. });
  11227. this.imgList13.push(res.data[keys]);
  11228. break;
  11229. case "C0501":
  11230. this.imageList6.push({
  11231. imageId: res.data[keys].imageId,
  11232. imageType: res.data[keys].imageType
  11233. });
  11234. this.imgList14.push(res.data[keys]);
  11235. break;
  11236. case "C0502":
  11237. this.imageList6.push({
  11238. imageId: res.data[keys].imageId,
  11239. imageType: res.data[keys].imageType
  11240. });
  11241. this.imgList15.push(res.data[keys]);
  11242. break;
  11243. case "C0503":
  11244. this.imageList6.push({
  11245. imageId: res.data[keys].imageId,
  11246. imageType: res.data[keys].imageType
  11247. });
  11248. this.imgList16.push(res.data[keys]);
  11249. break;
  11250. case "C0504":
  11251. this.imageList6.push({
  11252. imageId: res.data[keys].imageId,
  11253. imageType: res.data[keys].imageType
  11254. });
  11255. this.imgList17.push(res.data[keys]);
  11256. break;
  11257. case "C0506":
  11258. this.imageList6.push({
  11259. imageId: res.data[keys].imageId,
  11260. imageType: res.data[keys].imageType
  11261. });
  11262. this.imgList18.push(res.data[keys]);
  11263. break;
  11264. case "C0507":
  11265. this.imageList6.push({
  11266. imageId: res.data[keys].imageId,
  11267. imageType: res.data[keys].imageType
  11268. });
  11269. this.imgList19.push(res.data[keys]);
  11270. break;
  11271. case "C0505":
  11272. this.imageList6.push({
  11273. imageId: res.data[keys].imageId,
  11274. imageType: res.data[keys].imageType
  11275. });
  11276. this.imgList20.push(res.data[keys]);
  11277. break;
  11278. case "C0508":
  11279. this.imageList6.push({
  11280. imageId: res.data[keys].imageId,
  11281. imageType: res.data[keys].imageType
  11282. });
  11283. this.imgList21.push(res.data[keys]);
  11284. break;
  11285. case "C0509":
  11286. this.imageList6.push({
  11287. imageId: res.data[keys].imageId,
  11288. imageType: res.data[keys].imageType
  11289. });
  11290. this.imgList22.push(res.data[keys]);
  11291. break;
  11292. case "C0510":
  11293. this.imageList6.push({
  11294. imageId: res.data[keys].imageId,
  11295. imageType: res.data[keys].imageType
  11296. });
  11297. this.imgList23.push(res.data[keys]);
  11298. break;
  11299. case "LAST_INSURANCE_POLICY":
  11300. this.imageList6.push({
  11301. imageId: res.data[keys].imageId,
  11302. imageType: res.data[keys].imageType
  11303. });
  11304. this.imgList24.push(res.data[keys]);
  11305. break;
  11306. case "SQ00":
  11307. this.imageList6.push({
  11308. imageId: res.data[keys].imageId,
  11309. imageType: res.data[keys].imageType
  11310. });
  11311. this.imgList25.push(res.data[keys]);
  11312. break;
  11313. default:
  11314. break;
  11315. }
  11316. }
  11317. });
  11318. } else {
  11319. this.$message({ message: res.msg, type: "info" });
  11320. }
  11321. });
  11322. },
  11323. policyUpload() {
  11324. this.policyNumberForm.jqPolicyList = !this.policyNumberForm.jqPolicyList
  11325. ? []
  11326. : this.policyNumberForm.jqPolicyList;
  11327. this.policyNumberForm.jqSignList = !this.policyNumberForm.jqSignList
  11328. ? []
  11329. : this.policyNumberForm.jqSignList;
  11330. this.policyNumberForm.syPolicyList = !this.policyNumberForm.syPolicyList
  11331. ? []
  11332. : this.policyNumberForm.syPolicyList;
  11333. this.policyNumberForm.noPolicyList = !this.policyNumberForm.noPolicyList
  11334. ? []
  11335. : this.policyNumberForm.noPolicyList;
  11336. this.policyUploaddialogVisible = true;
  11337. },
  11338. cancelorder(item) {
  11339. if (item.inscompany == "紫金财险") {
  11340. this.$api.letter.zijincancelorder({ companyId: item.id }).then(res => {
  11341. if (res.code == 200) {
  11342. this.$message({
  11343. message: res.msg,
  11344. type: "success"
  11345. });
  11346. this.QuotationHistory();
  11347. }
  11348. });
  11349. } else if (item.inscompany == "诚泰财险") {
  11350. this.$api.letter
  11351. .chengtaicancelorder({ companyId: item.id })
  11352. .then(res => {
  11353. if (res.code == 200) {
  11354. this.$message({
  11355. message: res.msg,
  11356. type: "success"
  11357. });
  11358. this.findPage();
  11359. }
  11360. });
  11361. } else if (item.inscompany == "阳光财险") {
  11362. this.$api.letter
  11363. .yangGuangautoWriteOff({ companyId: item.id })
  11364. .then(res => {
  11365. if (res.code == 200) {
  11366. this.$message({
  11367. message: res.msg,
  11368. type: "success"
  11369. });
  11370. this.findPage();
  11371. }
  11372. });
  11373. }
  11374. },
  11375. hbsubmitdialog(data, index) {
  11376. this.typeDialogIndex = index; // 当前的公司index
  11377. if (this.imageList1.length == 0 && this.imageList2.length == 0) {
  11378. this.$message({ message: "影像不全,先上传影像", type: "error" });
  11379. return;
  11380. }
  11381. this.companyId = data.result.companyId;
  11382. this.apiType = data.result.apiType;
  11383. this.hbsubmitdialogVisible = true;
  11384. this.contributingState = false;
  11385. if (data.namesimple == "紫金财险") {
  11386. // this.getClauseData(this.companyId, index)
  11387. this.$api.letter
  11388. .zijinqueryClauseData({ companyId: this.companyId })
  11389. .then(res => {
  11390. this.zijinengageListData = res.data;
  11391. });
  11392. }
  11393. if (data.namesimple == "华泰财险") {
  11394. this.zijinengageList = [];
  11395. // this.getClauseData(this.companyId, index)
  11396. this.$api.letter
  11397. .huataiqueryClauseData({ companyId: this.companyId })
  11398. .then(res => {
  11399. res.data.forEach(val => {
  11400. val.clauseCode = val.engageCode;
  11401. val.clauseName = val.engageTitle;
  11402. val.clauseContent = val.engageDetail;
  11403. val.clauses = val.engageDetail;
  11404. });
  11405. this.zijinengageListData = res.data;
  11406. this.zijinengageListData.forEach(val => {
  11407. this.$nextTick(() => {
  11408. if (val.optType == "2") {
  11409. this.zijinengageList.push(val);
  11410. this.$refs.expandTablePro.toggleRowSelection(val, true);
  11411. }
  11412. });
  11413. });
  11414. });
  11415. } else {
  11416. this.zijinengageListData = [];
  11417. }
  11418. // switch (data.namesimple) {
  11419. // case "紫金财险":
  11420. // this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
  11421. // this.zijinengageListData = res.data;
  11422. // });
  11423. // break;
  11424. // default:
  11425. // break;
  11426. // }
  11427. },
  11428. hbsubmit() {
  11429. this.hbsubmitdialogVisible = false;
  11430. this.contributingState = false;
  11431. this.$api.letter
  11432. .getByCompanyId({ companyId: this.companyId })
  11433. .then(async res => {
  11434. if (res.code == 200) {
  11435. var data = res.data;
  11436. this.queryOrders = data;
  11437. const loading = this.$loading({
  11438. lock: true,
  11439. text: "Loading",
  11440. spinner: "el-icon-loading",
  11441. background: "rgba(0, 0, 0, 0.7)"
  11442. });
  11443. switch (this.queryOrders.inscompany) {
  11444. case "永安财险":
  11445. let api = "";
  11446. api =
  11447. this.apiType == 2
  11448. ? "pythonsubmitImage"
  11449. : "insyongansubmitImage";
  11450. await this.$api.letter[api]({
  11451. companyId: this.companyId
  11452. }).then(res => {
  11453. if (res.code == "200") {
  11454. var _this = this;
  11455. let api1 = "";
  11456. api1 = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
  11457. this.$api.letter[api1]({
  11458. companyId: this.companyId
  11459. }).then(res => {
  11460. var _this = this;
  11461. if (res.code == "200") {
  11462. loading.close();
  11463. this.$message({
  11464. message: "核保成功",
  11465. type: "success"
  11466. });
  11467. this.QuotationHistory();
  11468. _this.$api.letter
  11469. .getByCompanyId({ companyId: this.companyId })
  11470. .then(res => {
  11471. _this.orderstatus = res.data.orderstatus; //订单状态
  11472. _this.underwritingdialogVisible = true;
  11473. let indexid = this.totalCompanyList.findIndex(
  11474. item =>
  11475. item.namesimple == this.queryOrders.inscompany
  11476. );
  11477. this.totalCompanyList[indexid].orderstatus =
  11478. res.data.orderstatus;
  11479. });
  11480. } else {
  11481. loading.close();
  11482. this.$message({
  11483. showClose: true,
  11484. message:
  11485. this.queryOrders.inscompany + "提核--:" + res.msg,
  11486. type: "error",
  11487. duration: 0
  11488. });
  11489. }
  11490. });
  11491. } else {
  11492. this.$message({
  11493. message: this.queryOrders.inscompany + "影像:" + res.msg,
  11494. type: "error",
  11495. duration: 7000
  11496. });
  11497. loading.close();
  11498. }
  11499. });
  11500. break;
  11501. case "中煤财险":
  11502. let ZMApiImage = "";
  11503. ZMApiImage =
  11504. this.apiType == 2
  11505. ? "pythonsubmitImage"
  11506. : "insZhongmeisubmitImage";
  11507. await this.$api.letter[ZMApiImage]({
  11508. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this
  11509. .companyId
  11510. }).then(res => {
  11511. // await this.$api.letter
  11512. // .insZhongmeisubmitImage({
  11513. // companyId: this.companyId,
  11514. // })
  11515. // .then((res) => {
  11516. if (res.code == "200") {
  11517. var _this = this;
  11518. let ZMApiaudit = "";
  11519. ZMApiaudit =
  11520. this.apiType == 2 ? "pythonaudit" : "Zhongmeiaudit";
  11521. _this.$api.letter[ZMApiaudit]({
  11522. // _this.$api.letter
  11523. // .Zhongmeiaudit({
  11524. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this
  11525. .companyId,
  11526. // companyId: this.companyId,
  11527. jqappoint: "",
  11528. syappoint: ""
  11529. }).then(res => {
  11530. if (res.code == "200") {
  11531. loading.close();
  11532. _this.$message({
  11533. message: "核保成功",
  11534. type: "success"
  11535. });
  11536. this.QuotationHistory();
  11537. _this.$api.letter
  11538. .getByCompanyId({ companyId: this.companyId })
  11539. .then(res => {
  11540. _this.orderstatus = res.data.orderstatus; //订单状态
  11541. _this.underwritingdialogVisible = true;
  11542. let indexid = this.totalCompanyList.findIndex(
  11543. item =>
  11544. item.namesimple == this.queryOrders.inscompany
  11545. );
  11546. this.totalCompanyList[indexid].orderstatus =
  11547. res.data.orderstatus;
  11548. });
  11549. } else {
  11550. loading.close();
  11551. _this.$message({
  11552. showClose: true,
  11553. message:
  11554. this.queryOrders.inscompany + "提核--:" + res.msg,
  11555. type: "error",
  11556. duration: 0
  11557. });
  11558. _this.$api.letter
  11559. .getByCompanyId({ companyId: this.companyId })
  11560. .then(res => {
  11561. _this.orderstatus = res.data.orderstatus; //订单状态
  11562. });
  11563. }
  11564. });
  11565. } else {
  11566. this.$message({
  11567. message:
  11568. this.queryOrders.inscompany + "影像--:" + res.msg,
  11569. type: "error",
  11570. duration: 7000
  11571. });
  11572. loading.close();
  11573. }
  11574. });
  11575. break;
  11576. case "诚泰财险":
  11577. let CtApiImage = "";
  11578. CtApiImage =
  11579. this.apiType == 2
  11580. ? "pythonsubmitImage"
  11581. : "chengtaisubmitImage";
  11582. await this.$api.letter[CtApiImage]({
  11583. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this
  11584. .companyId
  11585. }).then(res => {
  11586. if (res.code == "200") {
  11587. var _this = this;
  11588. let CtApiaudit = "";
  11589. CtApiaudit =
  11590. this.apiType == 2 ? "pythonaudit" : "chengtaiaudit";
  11591. let engageList = [];
  11592. this.zijinengageList.forEach(val => {
  11593. engageList.push({
  11594. engageCode: val.clauseCode,
  11595. engageDetail: val.clauses,
  11596. engageTitle: val.clauseName,
  11597. riskCode: val.riskCode
  11598. });
  11599. });
  11600. _this.$api.letter[CtApiaudit]({
  11601. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this
  11602. .companyId,
  11603. engageList
  11604. }).then(res => {
  11605. if (res.code == "200") {
  11606. loading.close();
  11607. _this.$message({
  11608. message: "核保成功",
  11609. type: "success"
  11610. });
  11611. this.QuotationHistory();
  11612. _this.$api.letter
  11613. .getByCompanyId({ companyId: this.companyId })
  11614. .then(res => {
  11615. _this.orderstatus = res.data.orderstatus; //订单状态
  11616. _this.underwritingdialogVisible = true;
  11617. let indexid = this.totalCompanyList.findIndex(
  11618. item =>
  11619. item.namesimple == this.queryOrders.inscompany
  11620. );
  11621. this.totalCompanyList[indexid].orderstatus =
  11622. res.data.orderstatus;
  11623. });
  11624. } else {
  11625. loading.close();
  11626. _this.$message({
  11627. showClose: true,
  11628. message:
  11629. this.queryOrders.inscompany + "提核--:" + res.msg,
  11630. type: "error",
  11631. duration: 0
  11632. });
  11633. _this.$api.letter
  11634. .getByCompanyId({ companyId: this.companyId })
  11635. .then(res => {
  11636. _this.orderstatus = res.data.orderstatus; //订单状态
  11637. });
  11638. }
  11639. });
  11640. } else {
  11641. this.$message({
  11642. message:
  11643. this.queryOrders.inscompany + "影像--:" + res.msg,
  11644. type: "error",
  11645. duration: 7000
  11646. });
  11647. loading.close();
  11648. }
  11649. });
  11650. break;
  11651. case "华泰财险":
  11652. let HtApiImage = "";
  11653. HtApiImage =
  11654. this.apiType == 2
  11655. ? "pythonsubmitImage"
  11656. : "insHuataisubmitImage";
  11657. await this.$api.letter[HtApiImage]({
  11658. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this
  11659. .companyId
  11660. }).then(res => {
  11661. if (res.code == "200") {
  11662. var _this = this;
  11663. let HtApiaudit = "";
  11664. HtApiaudit =
  11665. this.apiType == 2 ? "pythonaudit" : "huataiaudit";
  11666. let engageList = [];
  11667. this.zijinengageList.forEach(val => {
  11668. engageList.push({
  11669. engageCode: val.clauseCode,
  11670. engageDetail: val.clauses,
  11671. engageTitle: val.clauseName,
  11672. riskCode: val.riskCode
  11673. });
  11674. });
  11675. _this.$api.letter[HtApiaudit]({
  11676. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this
  11677. .companyId,
  11678. engageList
  11679. }).then(res => {
  11680. if (res.code == "200") {
  11681. loading.close();
  11682. _this.$message({
  11683. message: "核保成功",
  11684. type: "success"
  11685. });
  11686. this.QuotationHistory();
  11687. _this.$api.letter
  11688. .getByCompanyId({ companyId: this.companyId })
  11689. .then(res => {
  11690. _this.orderstatus = res.data.orderstatus; //订单状态
  11691. _this.underwritingdialogVisible = true;
  11692. let indexid = this.totalCompanyList.findIndex(
  11693. item =>
  11694. item.namesimple == this.queryOrders.inscompany
  11695. );
  11696. this.totalCompanyList[indexid].orderstatus =
  11697. res.data.orderstatus;
  11698. });
  11699. } else {
  11700. loading.close();
  11701. _this.$message({
  11702. showClose: true,
  11703. message:
  11704. this.queryOrders.inscompany + "提核--:" + res.msg,
  11705. type: "error",
  11706. duration: 0
  11707. });
  11708. _this.$api.letter
  11709. .getByCompanyId({ companyId: this.companyId })
  11710. .then(res => {
  11711. _this.orderstatus = res.data.orderstatus; //订单状态
  11712. });
  11713. }
  11714. });
  11715. } else {
  11716. this.$message({
  11717. message:
  11718. this.queryOrders.inscompany + "影像--:" + res.msg,
  11719. type: "error",
  11720. duration: 7000
  11721. });
  11722. loading.close();
  11723. }
  11724. });
  11725. break;
  11726. case "紫金财险":
  11727. await this.$api.letter
  11728. .zijinsubmitImage({
  11729. companyId: this.companyId
  11730. })
  11731. .then(res => {
  11732. if (res.code == "200") {
  11733. var _this = this;
  11734. _this.$api.letter
  11735. .zijinaudit({
  11736. companyId: this.companyId,
  11737. engageList: this.zijinengageList
  11738. })
  11739. .then(res => {
  11740. if (res.code == "200") {
  11741. loading.close();
  11742. _this.$message({
  11743. message: "核保成功",
  11744. type: "success"
  11745. });
  11746. this.QuotationHistory();
  11747. _this.$api.letter
  11748. .getByCompanyId({ companyId: this.companyId })
  11749. .then(res => {
  11750. _this.orderstatus = res.data.orderstatus; //订单状态
  11751. _this.underwritingdialogVisible = true;
  11752. let indexid = this.totalCompanyList.findIndex(
  11753. item =>
  11754. item.namesimple ==
  11755. this.queryOrders.inscompany
  11756. );
  11757. this.totalCompanyList[indexid].orderstatus =
  11758. res.data.orderstatus;
  11759. });
  11760. } else {
  11761. loading.close();
  11762. _this.$message({
  11763. showClose: true,
  11764. dangerouslyUseHTMLString: true,
  11765. message:
  11766. this.queryOrders.inscompany +
  11767. "提核--:" +
  11768. res.msg,
  11769. type: "error",
  11770. duration: 0
  11771. });
  11772. _this.$api.letter
  11773. .getByCompanyId({ companyId: this.companyId })
  11774. .then(res => {
  11775. _this.orderstatus = res.data.orderstatus; //订单状态
  11776. });
  11777. }
  11778. });
  11779. } else {
  11780. this.$message({
  11781. message:
  11782. this.queryOrders.inscompany + "影像--:" + res.msg,
  11783. type: "error",
  11784. duration: 7000
  11785. });
  11786. loading.close();
  11787. }
  11788. });
  11789. break;
  11790. case "国任财险":
  11791. await this.$api.letter
  11792. .insguorensubmitImage({
  11793. companyId: this.companyId
  11794. })
  11795. .then(res => {
  11796. if (res.code == "200") {
  11797. var _this = this;
  11798. _this.$api.letter
  11799. .gunrenaudit({
  11800. companyId: this.companyId
  11801. })
  11802. .then(res => {
  11803. if (res.code == "200") {
  11804. loading.close();
  11805. _this.cqryCdeJq = "";
  11806. _this.cqryCdeSy = "";
  11807. _this.renewalCodeJq = "";
  11808. _this.renewalCodeSy = "";
  11809. this.$message({
  11810. message: "核保成功",
  11811. type: "success"
  11812. });
  11813. this.QuotationHistory();
  11814. _this.$api.letter
  11815. .getByCompanyId({ companyId: this.companyId })
  11816. .then(res => {
  11817. _this.orderstatus = res.data.orderstatus; //订单状态
  11818. _this.underwritingdialogVisible = true;
  11819. let indexid = this.totalCompanyList.findIndex(
  11820. item =>
  11821. item.namesimple ==
  11822. this.queryOrders.inscompany
  11823. );
  11824. this.totalCompanyList[indexid].orderstatus =
  11825. res.data.orderstatus;
  11826. });
  11827. } else {
  11828. loading.close();
  11829. this.$message({
  11830. showClose: true,
  11831. message: res.msg,
  11832. type: "error",
  11833. duration: 0
  11834. });
  11835. }
  11836. });
  11837. } else {
  11838. loading.close();
  11839. this.$message({
  11840. message: res.msg,
  11841. type: "error",
  11842. duration: 7000
  11843. });
  11844. }
  11845. });
  11846. break;
  11847. case "渤海财险":
  11848. await this.$api.letter
  11849. .insbohaisubmitImage({
  11850. companyId: this.companyId
  11851. })
  11852. .then(res => {
  11853. if (res.code == "200") {
  11854. var _this = this;
  11855. _this.$api.letter
  11856. .bohaiaudit({
  11857. companyId: this.companyId
  11858. })
  11859. .then(res => {
  11860. if (res.code == "200") {
  11861. loading.close();
  11862. _this.cqryCdeJq = "";
  11863. _this.cqryCdeSy = "";
  11864. _this.renewalCodeJq = "";
  11865. _this.renewalCodeSy = "";
  11866. this.$message({
  11867. message: "核保成功",
  11868. type: "success"
  11869. });
  11870. this.QuotationHistory();
  11871. _this.$api.letter
  11872. .getByCompanyId({ companyId: this.companyId })
  11873. .then(res => {
  11874. _this.orderstatus = res.data.orderstatus; //订单状态
  11875. _this.underwritingdialogVisible = true;
  11876. let indexid = this.totalCompanyList.findIndex(
  11877. item =>
  11878. item.namesimple ==
  11879. this.queryOrders.inscompany
  11880. );
  11881. this.totalCompanyList[indexid].orderstatus =
  11882. res.data.orderstatus;
  11883. });
  11884. } else {
  11885. loading.close();
  11886. this.$message({
  11887. showClose: true,
  11888. message: res.msg,
  11889. type: "error",
  11890. duration: 0
  11891. });
  11892. }
  11893. });
  11894. } else {
  11895. loading.close();
  11896. this.$message({
  11897. message: res.msg,
  11898. type: "error",
  11899. duration: 7000
  11900. });
  11901. }
  11902. });
  11903. break;
  11904. case "阳光财险":
  11905. await this.$api.letter
  11906. .yangGuangImage({
  11907. companyId: this.companyId
  11908. })
  11909. .then(res => {
  11910. if (res.code == "200") {
  11911. var _this = this;
  11912. _this.$api.letter
  11913. .yangGuangSubmit({
  11914. companyId: this.companyId
  11915. })
  11916. .then(res => {
  11917. if (res.code == "200") {
  11918. loading.close();
  11919. _this.cqryCdeJq = "";
  11920. _this.cqryCdeSy = "";
  11921. _this.renewalCodeJq = "";
  11922. _this.renewalCodeSy = "";
  11923. this.$message({
  11924. message: "核保成功",
  11925. type: "success"
  11926. });
  11927. this.QuotationHistory();
  11928. _this.$api.letter
  11929. .getByCompanyId({ companyId: this.companyId })
  11930. .then(res => {
  11931. _this.orderstatus = res.data.orderstatus; //订单状态
  11932. _this.underwritingdialogVisible = true;
  11933. let indexid = this.totalCompanyList.findIndex(
  11934. item =>
  11935. item.namesimple ==
  11936. this.queryOrders.inscompany
  11937. );
  11938. this.totalCompanyList[indexid].orderstatus =
  11939. res.data.orderstatus;
  11940. });
  11941. } else {
  11942. loading.close();
  11943. this.$message({
  11944. showClose: true,
  11945. message: res.msg,
  11946. type: "error",
  11947. duration: 0
  11948. });
  11949. }
  11950. });
  11951. } else {
  11952. loading.close();
  11953. this.$message({
  11954. message: res.msg,
  11955. type: "error",
  11956. duration: 7000
  11957. });
  11958. }
  11959. });
  11960. break;
  11961. case "恒邦财险":
  11962. case "华农财险":
  11963. case "华安财险":
  11964. case "泰山财险":
  11965. case "太平财险":
  11966. case "安盛天平":
  11967. case "众安财险":
  11968. case "中国人寿":
  11969. case "人保财险":
  11970. case "太平洋财险":
  11971. // case "诚泰财险":
  11972. case "泰康财险":
  11973. let hengbangapi = "";
  11974. hengbangapi =
  11975. this.apiType == 2
  11976. ? "pythonsubmitImage"
  11977. : "anshengsubmitImage";
  11978. await this.$api.letter[hengbangapi]({
  11979. subOrderNo: this.companyId
  11980. }).then(res => {
  11981. if (res.code == "200") {
  11982. var _this = this;
  11983. let hengbangapi1 = "";
  11984. hengbangapi1 =
  11985. this.apiType == 2 ? "pythonaudit" : "anshengaudit";
  11986. _this.$api.letter[hengbangapi1]({
  11987. subOrderNo: this.companyId
  11988. }).then(res => {
  11989. if (res.code == "200") {
  11990. loading.close();
  11991. this.$message({
  11992. message: "核保成功",
  11993. type: "success"
  11994. });
  11995. this.QuotationHistory();
  11996. _this.$api.letter
  11997. .getByCompanyId({ companyId: this.companyId })
  11998. .then(res => {
  11999. _this.orderstatus = res.data.orderstatus; //订单状态
  12000. _this.underwritingdialogVisible = true;
  12001. let indexid = this.totalCompanyList.findIndex(
  12002. item =>
  12003. item.namesimple == this.queryOrders.inscompany
  12004. );
  12005. this.totalCompanyList[indexid].orderstatus =
  12006. res.data.orderstatus;
  12007. });
  12008. } else {
  12009. loading.close();
  12010. this.$message({
  12011. showClose: true,
  12012. dangerouslyUseHTMLString: true,
  12013. message:
  12014. this.queryOrders.inscompany +
  12015. "提核--:" +
  12016. res.msg.replace(/\n/g, "<br><br>"),
  12017. type: "error",
  12018. duration: 0
  12019. });
  12020. }
  12021. });
  12022. } else {
  12023. loading.close();
  12024. this.$message({
  12025. message:
  12026. this.queryOrders.inscompany + "影像--:" + res.msg,
  12027. type: "error",
  12028. duration: 7000
  12029. });
  12030. }
  12031. });
  12032. break;
  12033. case "永诚财险":
  12034. await this.$api.letter
  12035. .insyongchengsubmitImage({
  12036. companyId: this.companyId
  12037. })
  12038. .then(res => {
  12039. if (res.code == "200") {
  12040. var _this = this;
  12041. _this.$api.letter
  12042. .yongchengaudit({
  12043. companyId: this.companyId
  12044. })
  12045. .then(res => {
  12046. if (res.code == "200") {
  12047. loading.close();
  12048. _this.cqryCdeJq = "";
  12049. _this.cqryCdeSy = "";
  12050. _this.renewalCodeJq = "";
  12051. _this.renewalCodeSy = "";
  12052. this.$message({
  12053. message: "核保成功",
  12054. type: "success"
  12055. });
  12056. this.QuotationHistory();
  12057. _this.$api.letter
  12058. .getByCompanyId({ companyId: this.companyId })
  12059. .then(res => {
  12060. _this.orderstatus = res.data.orderstatus; //订单状态
  12061. _this.underwritingdialogVisible = true;
  12062. let indexid = this.totalCompanyList.findIndex(
  12063. item =>
  12064. item.namesimple ==
  12065. this.queryOrders.inscompany
  12066. );
  12067. this.totalCompanyList[indexid].orderstatus =
  12068. res.data.orderstatus;
  12069. });
  12070. } else {
  12071. loading.close();
  12072. this.$message({
  12073. showClose: true,
  12074. message:
  12075. this.queryOrders.inscompany +
  12076. "提核--:" +
  12077. res.msg,
  12078. customClass: "customNotifyClass",
  12079. type: "error",
  12080. duration: 0
  12081. });
  12082. }
  12083. });
  12084. } else {
  12085. loading.close();
  12086. this.$message({
  12087. message:
  12088. this.queryOrders.inscompany + "影像--:" + res.msg,
  12089. type: "error",
  12090. duration: 7000
  12091. });
  12092. }
  12093. });
  12094. break;
  12095. case "大家财险":
  12096. let DJApiImage = "";
  12097. DJApiImage =
  12098. this.apiType == 2 ? "pythonsubmitImage" : "dajiasubmitImage";
  12099. await this.$api.letter[DJApiImage]({
  12100. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this
  12101. .companyId
  12102. }).then(res => {
  12103. if (res.code == "200") {
  12104. var _this = this;
  12105. let DJApiaudit = "";
  12106. DJApiaudit =
  12107. this.apiType == 2 ? "pythonaudit" : "dajiaaudit";
  12108. _this.$api.letter[DJApiaudit]({
  12109. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this
  12110. .companyId
  12111. }).then(res => {
  12112. if (res.code == "200") {
  12113. loading.close();
  12114. _this.cqryCdeJq = "";
  12115. _this.cqryCdeSy = "";
  12116. _this.renewalCodeJq = "";
  12117. _this.renewalCodeSy = "";
  12118. this.$message({
  12119. message: "核保成功",
  12120. type: "success"
  12121. });
  12122. this.QuotationHistory();
  12123. _this.$api.letter
  12124. .getByCompanyId({ companyId: this.companyId })
  12125. .then(res => {
  12126. _this.orderstatus = res.data.orderstatus; //订单状态
  12127. _this.underwritingdialogVisible = true;
  12128. let indexid = this.totalCompanyList.findIndex(
  12129. item =>
  12130. item.namesimple == this.queryOrders.inscompany
  12131. );
  12132. this.totalCompanyList[indexid].orderstatus =
  12133. res.data.orderstatus;
  12134. });
  12135. } else {
  12136. loading.close();
  12137. this.$message({
  12138. showClose: true,
  12139. message:
  12140. this.queryOrders.inscompany + "提核--:" + res.msg,
  12141. customClass: "customNotifyClass",
  12142. type: "error",
  12143. duration: 0
  12144. });
  12145. }
  12146. });
  12147. } else {
  12148. loading.close();
  12149. this.$message({
  12150. message:
  12151. this.queryOrders.inscompany + "影像--:" + res.msg,
  12152. type: "error",
  12153. duration: 7000
  12154. });
  12155. }
  12156. });
  12157. break;
  12158. case "平安财险":
  12159. await this.$api.letter
  12160. .pingansubmitImage({
  12161. companyId: this.companyId
  12162. })
  12163. .then(res => {
  12164. if (res.code == "200") {
  12165. var _this = this;
  12166. _this.$api.letter
  12167. .pinganaudit({
  12168. companyId: this.companyId,
  12169. jqappoint: "",
  12170. syappoint: ""
  12171. })
  12172. .then(res => {
  12173. if (res.code == "200") {
  12174. loading.close();
  12175. _this.$message({
  12176. message: "核保成功",
  12177. type: "success"
  12178. });
  12179. this.QuotationHistory();
  12180. _this.$api.letter
  12181. .getByCompanyId({ companyId: this.companyId })
  12182. .then(res => {
  12183. _this.orderstatus = res.data.orderstatus; //订单状态
  12184. _this.underwritingdialogVisible = true;
  12185. let indexid = this.totalCompanyList.findIndex(
  12186. item =>
  12187. item.namesimple ==
  12188. this.queryOrders.inscompany
  12189. );
  12190. this.totalCompanyList[indexid].orderstatus =
  12191. res.data.orderstatus;
  12192. });
  12193. } else {
  12194. loading.close();
  12195. _this.$message({
  12196. showClose: true,
  12197. message:
  12198. this.queryOrders.inscompany +
  12199. "提核--:" +
  12200. res.msg,
  12201. type: "error",
  12202. duration: 0
  12203. });
  12204. _this.$api.letter
  12205. .getByCompanyId({ companyId: this.companyId })
  12206. .then(res => {
  12207. _this.orderstatus = res.data.orderstatus; //订单状态
  12208. });
  12209. }
  12210. });
  12211. } else {
  12212. this.$message({
  12213. message:
  12214. this.queryOrders.inscompany + "影像--:" + res.msg,
  12215. type: "error",
  12216. duration: 7000
  12217. });
  12218. loading.close();
  12219. }
  12220. });
  12221. break;
  12222. }
  12223. }
  12224. });
  12225. },
  12226. //当前日期的次日
  12227. transformTime1() {
  12228. var date = new Date();
  12229. date.setFullYear(date.getFullYear());
  12230. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  12231. var strYear = date.getFullYear();
  12232. var strDay = date.getDate();
  12233. var strMonth = date.getMonth() + 1;
  12234. var hh = date.getHours();
  12235. if (hh < 10) {
  12236. hh = "0" + hh;
  12237. }
  12238. if (strMonth < 10) {
  12239. strMonth = "0" + strMonth;
  12240. }
  12241. if (strDay < 10) {
  12242. strDay = "0" + strDay;
  12243. }
  12244. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  12245. return datastr;
  12246. },
  12247. //传入日期的次日
  12248. transformTime2(time) {
  12249. var date = new Date(time);
  12250. date.setFullYear(date.getFullYear());
  12251. date.setTime(date.getTime() + 24 * 60 * 60 * 1000); //一年后的前一天
  12252. var strYear = date.getFullYear();
  12253. var strDay = date.getDate();
  12254. var strMonth = date.getMonth() + 1;
  12255. var hh = date.getHours();
  12256. if (hh < 10) {
  12257. hh = "0" + hh;
  12258. }
  12259. if (strMonth < 10) {
  12260. strMonth = "0" + strMonth;
  12261. }
  12262. if (strDay < 10) {
  12263. strDay = "0" + strDay;
  12264. }
  12265. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  12266. return datastr;
  12267. },
  12268. isDateBeforeToday(date) {
  12269. const inputDate = new Date(date); // 将输入的日期转换为 Date 对象
  12270. const today = new Date(); // 获取当前日期
  12271. // 比较日期是否小于当前日期
  12272. if (inputDate < today) {
  12273. return true; // 输入日期小于当前日期
  12274. } else {
  12275. return false; // 输入日期大于等于当前日期
  12276. }
  12277. },
  12278. //时间转换
  12279. transformTime(date) {
  12280. var d = new Date(date);
  12281. var strYear = d.getFullYear();
  12282. var strMonth = d.getMonth() + 1;
  12283. var strDay = d.getDate();
  12284. var hh = d.getHours();
  12285. var minutes = d.getMinutes(); // 分
  12286. var Seconds = d.getSeconds();
  12287. if (hh < 10) {
  12288. hh = "0" + hh;
  12289. }
  12290. if (minutes < 10) {
  12291. minutes = "0" + minutes;
  12292. }
  12293. if (Seconds < 10) {
  12294. Seconds = "0" + Seconds;
  12295. }
  12296. if (strMonth < 10) {
  12297. strMonth = "0" + strMonth;
  12298. }
  12299. if (strDay < 10) {
  12300. strDay = "0" + strDay;
  12301. }
  12302. var datetime =
  12303. strYear +
  12304. "-" +
  12305. strMonth +
  12306. "-" +
  12307. strDay +
  12308. " " +
  12309. hh +
  12310. ":" +
  12311. minutes +
  12312. ":" +
  12313. Seconds;
  12314. return datetime;
  12315. },
  12316. timeformat(date) {
  12317. var d = new Date(date);
  12318. var strYear = d.getFullYear();
  12319. var strMonth = d.getMonth() + 1;
  12320. var strDay = d.getDate();
  12321. var hh = d.getHours();
  12322. if (hh < 10) {
  12323. hh = "0" + hh;
  12324. }
  12325. if (strMonth < 10) {
  12326. strMonth = "0" + strMonth;
  12327. }
  12328. if (strDay < 10) {
  12329. strDay = "0" + strDay;
  12330. }
  12331. var datetime = strYear + "-" + strMonth + "-" + strDay;
  12332. return datetime;
  12333. },
  12334. oneYearPast1(time) {
  12335. //明年减一秒
  12336. var date = new Date(time);
  12337. date.setSeconds(date.getSeconds() - 1);
  12338. date.setFullYear(date.getFullYear() + 1); //一年后
  12339. date.setTime(date.getTime()); //一年后的前一天
  12340. var strYear = date.getFullYear();
  12341. var strDay = date.getDate();
  12342. var strMonth = date.getMonth() + 1;
  12343. var hh = date.getHours();
  12344. var minutes = date.getMinutes(); // 分
  12345. var Seconds = date.getSeconds();
  12346. if (hh < 10) {
  12347. hh = "0" + hh;
  12348. }
  12349. if (minutes < 10) {
  12350. minutes = "0" + minutes;
  12351. }
  12352. if (Seconds < 10) {
  12353. Seconds = "0" + Seconds;
  12354. }
  12355. if (strMonth < 10) {
  12356. strMonth = "0" + strMonth;
  12357. }
  12358. if (strDay < 10) {
  12359. strDay = "0" + strDay;
  12360. }
  12361. var datastr =
  12362. strYear +
  12363. "-" +
  12364. strMonth +
  12365. "-" +
  12366. strDay +
  12367. " " +
  12368. hh +
  12369. ":" +
  12370. minutes +
  12371. ":" +
  12372. Seconds;
  12373. return datastr;
  12374. },
  12375. tbczcarShowChange() {
  12376. //投保人同车主
  12377. switch (this.tbczcarShow) {
  12378. case true:
  12379. this.policyHolderInfo = { ...this.ownerInfo };
  12380. break;
  12381. default:
  12382. for (let key in this.policyHolderInfo) {
  12383. this.policyHolderInfo[key] = "";
  12384. this.policyHolderInfo.provinceData = [];
  12385. this.selectedOptions2 = [];
  12386. }
  12387. this.policyHolderInfo = {};
  12388. }
  12389. this.$forceUpdate();
  12390. },
  12391. bbczcarShowChange() {
  12392. if (this.bbczcarShow) {
  12393. this.bbtbcarShow = false;
  12394. }
  12395. //被保人同车主
  12396. if (this.bbczcarShow && !this.bbtbcarShow) {
  12397. this.insuredPersonInfo = { ...this.ownerInfo };
  12398. this.bbtbcarShow = false;
  12399. }
  12400. // if (!this.bbczcarShow && !this.bbtbcarShow) {
  12401. // for (let key in this.insuredPersonInfo) {
  12402. // this.insuredPersonInfo[key] = "";
  12403. // this.insuredPersonInfo.provinceData = [];
  12404. // // this.selectedOptions3 = [];
  12405. // }
  12406. // this.insuredPersonInfo = {}
  12407. // }
  12408. // if (this.bbtbcarShow) {
  12409. // return
  12410. // }
  12411. // switch (this.bbczcarShow) {
  12412. // case true:
  12413. // this.insuredPersonInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  12414. // this.bbtbcarShow = false;
  12415. // console.log( '车主信息111111', this.ownerInfo, '投保人信息', this.policyHolderInfo, '被保人信息', this.insuredPersonInfo, '被保人同车主', this.bbczcarShow)
  12416. // break;
  12417. // default:
  12418. // for (let key in this.insuredPersonInfo) {
  12419. // this.insuredPersonInfo[key] = "";
  12420. // this.insuredPersonInfo.provinceData = [];
  12421. // // this.selectedOptions3 = [];
  12422. // }
  12423. // }
  12424. this.$forceUpdate();
  12425. },
  12426. bbtbcarShowChange() {
  12427. if (this.bbtbcarShow) {
  12428. this.bbczcarShow = false;
  12429. }
  12430. if (this.bbtbcarShow && !this.bbczcarShow) {
  12431. this.insuredPersonInfo = { ...this.policyHolderInfo };
  12432. this.bbczcarShow = false;
  12433. }
  12434. this.$forceUpdate();
  12435. },
  12436. // 清空被保人信息
  12437. clearBbxx() {
  12438. for (let key in this.insuredPersonInfo) {
  12439. this.insuredPersonInfo[key] = "";
  12440. this.insuredPersonInfo.provinceData = [];
  12441. }
  12442. },
  12443. // 查询车牌信息
  12444. toCheckLicenseNo(licenseNo) {
  12445. if (licenseNo) {
  12446. this.$api.letter
  12447. .licenseSearch({
  12448. licenseNo: licenseNo
  12449. })
  12450. .then(res => {
  12451. if (res.code == 200) {
  12452. {
  12453. this.carInfo.engineNo = res.data.engineNo;
  12454. this.carInfo.vinNo = res.data.vinNo;
  12455. this.carInfo.frameNo = res.data.vinNo;
  12456. this.carInfo.registerDate = res.data.registerDate;
  12457. this.$forceUpdate();
  12458. }
  12459. }
  12460. });
  12461. }
  12462. },
  12463. //VIN查询
  12464. toChooseVin(cartype) {
  12465. if (cartype == "" || cartype == null) {
  12466. this.$message({
  12467. message: "请输入车架号",
  12468. type: "warning"
  12469. });
  12470. } else {
  12471. const loading = this.$loading({
  12472. lock: true,
  12473. text: "Loading",
  12474. spinner: "el-icon-loading",
  12475. background: "rgba(0, 0, 0, 0.7)"
  12476. });
  12477. this.$api.letter.insZhongmeiVIN(this.carInfo.frameNo).then(res => {
  12478. if (res.code == "200") {
  12479. this.reslist = res.data;
  12480. loading.close();
  12481. this.sbdmdialogVisible = true;
  12482. } else {
  12483. loading.close();
  12484. this.$message.error(res.msg);
  12485. }
  12486. });
  12487. }
  12488. },
  12489. // 撤销二维码
  12490. revokeCode(id) {
  12491. this.$confirm("确定撤销二维码?", "提示", {
  12492. confirmButtonText: "确定",
  12493. cancelButtonText: "取消",
  12494. type: "warning"
  12495. })
  12496. .then(() => {
  12497. this.$api.letter.getRevokeQrCode(id).then(res => {
  12498. if (res.code == 200) {
  12499. this.$message({
  12500. message: res.msg,
  12501. type: "success"
  12502. });
  12503. this.QuotationHistory();
  12504. }
  12505. });
  12506. })
  12507. .catch(() => {
  12508. this.$message({
  12509. type: "info",
  12510. message: "已取消撤销二维码"
  12511. });
  12512. });
  12513. },
  12514. //品牌型号查询
  12515. toChooseVehicleType(cartype) {
  12516. if (cartype == "" || cartype == null) {
  12517. this.$message({
  12518. message: "请输入车型名称",
  12519. type: "warning"
  12520. });
  12521. } else {
  12522. const loading = this.$loading({
  12523. lock: true,
  12524. text: "Loading",
  12525. spinner: "el-icon-loading",
  12526. background: "rgba(0, 0, 0, 0.7)"
  12527. });
  12528. let param = {
  12529. modelName: cartype.replace(/[^u4e00-u9fa5|,]+/gi, "")
  12530. };
  12531. this.$api.letter.ModelsQuery(param).then(res => {
  12532. if (res.code == "200") {
  12533. loading.close();
  12534. this.reslist = res.data;
  12535. this.chexingdialogVisible = true;
  12536. } else {
  12537. loading.close();
  12538. this.$message.error(res.msg);
  12539. }
  12540. });
  12541. }
  12542. },
  12543. //车型列表双击选中事件
  12544. reslistCurrentChange(row, column, event) {
  12545. this.carInfo.importFlag=row.importFlag;//特种车标识
  12546. this.carInfo.brandName = row.brandCN; //品牌型号
  12547. this.carInfo.modelcname = row.modelName; //品牌型号
  12548. this.carInfo.caryear = row.marketYear; //年款
  12549. this.carInfo.seatCount = row.ratedPassengerCapacity; //座位数
  12550. this.carInfo.purchasePrice = row.replacementValue; //购置价
  12551. this.carInfo.modelCode = row.modelCode; //型号代码
  12552. this.carInfo.familyName = row.series; //系列
  12553. this.carInfo.enginedesc = row.displacement; //排量
  12554. this.carInfo.energyType =this.carInfo.licenseNo && this.carInfo.licenseNo.length==7? row.energyTypes:'1';//能源种类
  12555. this.carInfo.powerScale = row.powerScale; //功率
  12556. this.chexingdialogVisible = false;
  12557. this.sbdmdialogVisible = false;
  12558. },
  12559. //是否过户事件
  12560. transferFlagChange(e) {
  12561. if (e) {
  12562. this.transferDateShow = true;
  12563. this.carInfo.transferDate = this.carInfo.issueDate;
  12564. } else {
  12565. this.transferDateShow = false;
  12566. this.carInfo.transferDate = "";
  12567. }
  12568. },
  12569. //影像上传
  12570. drivingupload(file, imageIdList, imgurl, type) {
  12571. let that = this;
  12572. let size = file.size / 1024 / 1024 < 5;
  12573. const isJPG =
  12574. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  12575. if (!size) {
  12576. this.$message.error("上传图片大小不能超过 5MB!");
  12577. this[imgurl] = [];
  12578. return false;
  12579. }
  12580. if (!isJPG) {
  12581. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  12582. this[imgurl] = [];
  12583. return false;
  12584. }
  12585. this[imgurl].push(file);
  12586. var file = file.raw;
  12587. const params = new FormData(); // 声明formData数据类型
  12588. params.append("multipartFile", file);
  12589. params.append("type", "image");
  12590. this.$api.letter.uploadFile(params).then(res => {
  12591. if (res.code == "200") {
  12592. if (this[imageIdList].some(v => v.imageType == type)) {
  12593. this[imageIdList].map(val => {
  12594. if (val.imageType == type) {
  12595. val.imageId = res.data.id;
  12596. }
  12597. });
  12598. } else {
  12599. this[imageIdList].push({
  12600. imageId: res.data.id,
  12601. imageType: type
  12602. });
  12603. }
  12604. }
  12605. });
  12606. },
  12607. policydrivingupload(file, val) {
  12608. // this.policyNumberForm[val + 'List'] = []
  12609. switch (val) {
  12610. case "jqPolicy":
  12611. this.policyNumberForm.jqPolicyList = [];
  12612. break;
  12613. case "syPolicy":
  12614. this.policyNumberForm.syPolicyList = [];
  12615. break;
  12616. case "noPolicy":
  12617. this.policyNumberForm.noPolicyList = [];
  12618. break;
  12619. case "jqSign":
  12620. this.policyNumberForm.jqSignList = [];
  12621. break;
  12622. default:
  12623. break;
  12624. }
  12625. var file = file.raw;
  12626. const params = new FormData(); // 声明formData数据类型
  12627. params.append("multipartFile", file);
  12628. params.append("type", "file");
  12629. this.$api.letter.uploadFile(params).then(res => {
  12630. if (res.code == "200") {
  12631. res.data.name = res.data.fileName;
  12632. this.policyNumberForm[val + "List"].push(res.data);
  12633. }
  12634. });
  12635. },
  12636. handleRemove1(file, imageIdList, imgList) {
  12637. this[imageIdList].map((ele, index) => {
  12638. if (file.imageId === ele.imageId) {
  12639. this[imageIdList].splice(index, 1);
  12640. }
  12641. return ele;
  12642. });
  12643. if (file.imageId) {
  12644. this[imgList].map((ele, index) => {
  12645. if (file.imageId === ele.imageId) {
  12646. this[imgList].splice(index, 1);
  12647. }
  12648. return ele;
  12649. });
  12650. } else {
  12651. this[imgList].map((ele, index) => {
  12652. if (file.uid === ele.uid) {
  12653. this[imgList].splice(index, 1);
  12654. }
  12655. return ele;
  12656. });
  12657. }
  12658. },
  12659. compress(img, width, height, ratio) {
  12660. var canvas, ctx, img64;
  12661. canvas = document.createElement("canvas");
  12662. canvas.width = width;
  12663. canvas.height = height;
  12664. ctx = canvas.getContext("2d");
  12665. ctx.drawImage(img, 0, 0, width, height);
  12666. img64 = canvas.toDataURL("image/jpeg", ratio);
  12667. return img64;
  12668. },
  12669. base64ToFile(base64, fileName) {
  12670. let data = base64.split(",");
  12671. let type = data[0].match(/:(.*?);/)[1]; // let suffix = type.split('/')[1];
  12672. const bstr = window.atob(data[1]);
  12673. let n = bstr.length;
  12674. const u8arr = new Uint8Array(n);
  12675. while (n--) {
  12676. u8arr[n] = bstr.charCodeAt(n);
  12677. } // const file =  new File([u8arr], `${fileName}.${suffix}`, {
  12678. const file = new File([u8arr], `${fileName}`, {
  12679. type: type
  12680. });
  12681. return file;
  12682. },
  12683. carfrontChange(file) {
  12684. //选择行驶证正面
  12685. let that = this;
  12686. let size = file.size / 1024 / 1024 < 5;
  12687. const isJPG =
  12688. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  12689. if (!size) {
  12690. this.$message.error("上传图片大小不能超过 5MB!");
  12691. return false;
  12692. }
  12693. if (!isJPG) {
  12694. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  12695. return false;
  12696. }
  12697. // let name=file.raw.name
  12698. //       var image = new Image();
  12699. //       image.src = window.URL.createObjectURL(file.raw);
  12700. //       that.carfrontImg =  image.src
  12701. //       image.onload = function(){
  12702. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  12703. // that.carfrontImg = image.src;
  12704. // const params = new FormData(); // 声明formData数据类型
  12705. // params.append("multipartFile", aaa);
  12706. // params.append("type", "image");
  12707. // that.$api.letter.uploadFile(params).then(res => {
  12708. // if (res.code == "200") {
  12709. // that.CarFrontFile = aaa;//文件流
  12710. // if (that.imageList1.some(v => v.imageType == 'C01')) {
  12711. // that.imageList1.map(val => {
  12712. // if (val.imageType == 'C01') {
  12713. // val.imageId = res.data.id;
  12714. // }
  12715. // })
  12716. // } else {
  12717. // that.imageList1.push({
  12718. // imageId: res.data.id,
  12719. // imageType: "C01",
  12720. // })
  12721. // }
  12722. // } else {
  12723. // that.$message({ message: res.msg, type: "warning" });
  12724. // }
  12725. // });
  12726. // }
  12727. var file = file.raw;
  12728. let files = window.URL.createObjectURL(file); //转临时路径
  12729. this.carfrontImg = files;
  12730. const params = new FormData(); // 声明formData数据类型
  12731. params.append("multipartFile", file);
  12732. params.append("type", "image");
  12733. this.$api.letter.uploadFile(params).then(res => {
  12734. if (res.code == "200") {
  12735. this.CarFrontFile = file; //文件流
  12736. if (this.imageList1.some(v => v.imageType == "C01")) {
  12737. this.imageList1.map(val => {
  12738. if (val.imageType == "C01") {
  12739. val.imageId = res.data.id;
  12740. }
  12741. });
  12742. } else {
  12743. this.imageList1.push({
  12744. imageId: res.data.id,
  12745. imageType: "C01"
  12746. });
  12747. }
  12748. } else {
  12749. this.$message({ message: res.msg, type: "warning" });
  12750. }
  12751. });
  12752. },
  12753. carbackChange(file) {
  12754. let that = this;
  12755. let size = file.size / 1024 / 1024 < 2;
  12756. const isJPG =
  12757. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  12758. if (!size) {
  12759. this.$message.error("上传图片大小不能超过 5MB!");
  12760. return false;
  12761. }
  12762. if (!isJPG) {
  12763. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  12764. return false;
  12765. }
  12766. // let name=file.raw.name
  12767. //       var image = new Image();
  12768. //       image.src = window.URL.createObjectURL(file.raw);
  12769. //       image.onload = function(){
  12770. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  12771. // that.carbackImg = image.src;
  12772. // const params = new FormData(); // 声明formData数据类型
  12773. // params.append("multipartFile", aaa);
  12774. // params.append("type", "image");
  12775. // that.$api.letter.uploadFile(params).then(res => {
  12776. // if (res.code == "200") {
  12777. // that.CarBackFile = aaa;//文件流
  12778. // if (that.imageList1.some(v => v.imageType == 'D01')) {
  12779. // that.imageList1.map(val => {
  12780. // if (val.imageType == 'D01') {
  12781. // val.imageId = res.data.id;
  12782. // }
  12783. // })
  12784. // } else {
  12785. // that.imageList1.push({
  12786. // imageId: res.data.id,
  12787. // imageType: "D01",
  12788. // })
  12789. // }
  12790. // } else {
  12791. // that.$message({ message: res.msg, type: "warning" });
  12792. // }
  12793. // });
  12794. // }
  12795. //选择行驶证反面
  12796. var file = file.raw;
  12797. let files = window.URL.createObjectURL(file); //转临时路径
  12798. this.carbackImg = files;
  12799. const params = new FormData(); // 声明formData数据类型
  12800. params.append("multipartFile", file);
  12801. params.append("type", "image");
  12802. this.$api.letter.uploadFile(params).then(res => {
  12803. if (res.code == "200") {
  12804. this.CarBackFile = file;
  12805. if (this.imageList1.some(v => v.imageType == "D01")) {
  12806. this.imageList1.map(val => {
  12807. if (val.imageType == "D01") {
  12808. val.imageId = res.data.id;
  12809. }
  12810. });
  12811. } else {
  12812. this.imageList1.push({
  12813. imageId: res.data.id,
  12814. imageType: "D01"
  12815. });
  12816. }
  12817. } else {
  12818. this.$message({ message: res.msg, type: "warning" });
  12819. }
  12820. });
  12821. },
  12822. userfrontChange(file) {
  12823. let that = this;
  12824. let size = file.size / 1024 / 1024 < 5;
  12825. const isJPG =
  12826. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  12827. if (!size) {
  12828. this.$message.error("上传图片大小不能超过 5MB!");
  12829. return false;
  12830. }
  12831. if (!isJPG) {
  12832. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  12833. return false;
  12834. }
  12835. // let name=file.raw.name
  12836. //       var image = new Image();
  12837. //       image.src = window.URL.createObjectURL(file.raw);
  12838. //       image.onload = function(){
  12839. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  12840. // that.userfrontImg = image.src;
  12841. // const params = new FormData(); // 声明formData数据类型
  12842. // params.append("multipartFile", aaa);
  12843. // params.append("type", "image");
  12844. // that.$api.letter.uploadFile(params).then(res => {
  12845. // if (res.code == "200") {
  12846. // let type = 'C0' + that.userIndex;
  12847. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  12848. // that['imageList' + that.userIndex].map(val => {
  12849. // if (val.imageType == type) {
  12850. // val.imageId = res.data.id;
  12851. // }
  12852. // })
  12853. // } else {
  12854. // that['imageList' + that.userIndex].push({
  12855. // imageId: res.data.id,
  12856. // imageType: type,
  12857. // })
  12858. // }
  12859. // that[type + 'File'] = aaa;
  12860. // } else {
  12861. // that.$message({ message: res.msg, type: "warning" });
  12862. // }
  12863. // });
  12864. // }
  12865. //选择身份证正面
  12866. var file = file.raw;
  12867. let files = window.URL.createObjectURL(file); //转链接
  12868. this.userfrontImg = files;
  12869. const params = new FormData(); // 声明formData数据类型
  12870. params.append("multipartFile", file);
  12871. params.append("type", "image");
  12872. this.$api.letter.uploadFile(params).then(res => {
  12873. if (res.code == "200") {
  12874. let type = "C0" + this.userIndex;
  12875. if (
  12876. this["imageList" + this.userIndex].some(v => v.imageType == type)
  12877. ) {
  12878. this["imageList" + this.userIndex].map(val => {
  12879. if (val.imageType == type) {
  12880. val.imageId = res.data.id;
  12881. }
  12882. });
  12883. } else {
  12884. this["imageList" + this.userIndex].push({
  12885. imageId: res.data.id,
  12886. imageType: type
  12887. });
  12888. }
  12889. this[type + "File"] = file;
  12890. } else {
  12891. this.$message({ message: res.msg, type: "warning" });
  12892. }
  12893. });
  12894. },
  12895. userbackChange(file) {
  12896. let that = this;
  12897. let size = file.size / 1024 / 1024 < 5;
  12898. const isJPG =
  12899. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  12900. if (!size) {
  12901. this.$message.error("上传图片大小不能超过 5MB!");
  12902. return false;
  12903. }
  12904. if (!isJPG) {
  12905. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  12906. return false;
  12907. }
  12908. // let name=file.raw.name
  12909. //       var image = new Image();
  12910. //       image.src = window.URL.createObjectURL(file.raw);
  12911. //       image.onload = function(){
  12912. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  12913. // that.userbackImg = image.src;
  12914. // const params = new FormData(); // 声明formData数据类型
  12915. // params.append("multipartFile", aaa);
  12916. // params.append("type", "image");
  12917. // that.$api.letter.uploadFile(params).then(res => {
  12918. // if (res.code == "200") {
  12919. // let type = 'D0' + that.userIndex;
  12920. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  12921. // that['imageList' + that.userIndex].map(val => {
  12922. // if (val.imageType == type) {
  12923. // val.imageId = res.data.id;
  12924. // }
  12925. // })
  12926. // } else {
  12927. // that['imageList' + that.userIndex].push({
  12928. // imageId: res.data.id,
  12929. // imageType: type,
  12930. // })
  12931. // }
  12932. // that[type + 'File'] = aaa;
  12933. // } else {
  12934. // that.$message({ message: res.msg, type: "warning" });
  12935. // }
  12936. // });
  12937. // }
  12938. //选择身份证背面
  12939. var file = file.raw;
  12940. let files = window.URL.createObjectURL(file); //转链接
  12941. this.userbackImg = files;
  12942. const params = new FormData(); // 声明formData数据类型
  12943. params.append("multipartFile", file);
  12944. params.append("type", "image");
  12945. this.$api.letter.uploadFile(params).then(res => {
  12946. if (res.code == "200") {
  12947. let type = "D0" + this.userIndex;
  12948. if (
  12949. this["imageList" + this.userIndex].some(v => v.imageType == type)
  12950. ) {
  12951. this["imageList" + this.userIndex].map(val => {
  12952. if (val.imageType == type) {
  12953. val.imageId = res.data.id;
  12954. }
  12955. });
  12956. } else {
  12957. this["imageList" + this.userIndex].push({
  12958. imageId: res.data.id,
  12959. imageType: type
  12960. });
  12961. }
  12962. this[type + "File"] = file;
  12963. } else {
  12964. this.$message({ message: res.msg, type: "warning" });
  12965. }
  12966. });
  12967. },
  12968. businessChange(file) {
  12969. let size = file.size / 1024 / 1024 < 5;
  12970. const isJPG =
  12971. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  12972. if (!size) {
  12973. this.$message.error("上传图片大小不能超过 5MB!");
  12974. return false;
  12975. }
  12976. if (!isJPG) {
  12977. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  12978. return false;
  12979. }
  12980. var file = file.raw;
  12981. let files = window.URL.createObjectURL(file); //转链接
  12982. this.businessImg = files;
  12983. const params = new FormData(); // 声明formData数据类型
  12984. params.append("multipartFile", file);
  12985. params.append("type", "image");
  12986. this.$api.letter.uploadFile(params).then(res => {
  12987. if (res.code == "200") {
  12988. let type = "Y0" + this.userIndex;
  12989. if (
  12990. this["imageList" + this.userIndex].some(v => v.imageType == type)
  12991. ) {
  12992. this["imageList" + this.userIndex].map(val => {
  12993. if (val.imageType == type) {
  12994. val.imageId = res.data.id;
  12995. }
  12996. });
  12997. } else {
  12998. this["imageList" + this.userIndex].push({
  12999. imageId: res.data.id,
  13000. imageType: type
  13001. });
  13002. }
  13003. this[type + "File"] = file;
  13004. } else {
  13005. this.$message({ message: res.msg, type: "warning" });
  13006. }
  13007. });
  13008. },
  13009. CarOCRdiscern() {
  13010. // if (!this.CarFrontFile || !this.CarBackFile) {
  13011. // this.$message.warning('请上传行驶证主页和副页')
  13012. // return
  13013. // }
  13014. //car识别
  13015. const loading = this.$loading({
  13016. lock: true,
  13017. text: "Loading",
  13018. spinner: "el-icon-loading",
  13019. background: "rgba(0, 0, 0, 0.7)"
  13020. });
  13021. const params = new FormData(); // 声明formData数据类型
  13022. params.append("image1", this.CarFrontFile);
  13023. params.append("image2", this.CarBackFile);
  13024. this.$api.letter.drivingPermit(params).then(res => {
  13025. loading.close();
  13026. if (res.msg == "201") {
  13027. this.$message({ message: "请正确选择驾驶证", type: "warning" });
  13028. }
  13029. var carInfo = res.data.carInfo;
  13030. if (carInfo.issueDate) {
  13031. carInfo.issueDate =
  13032. carInfo.issueDate.substring(0, 4) +
  13033. "-" +
  13034. carInfo.issueDate.substring(4, 6) +
  13035. "-" +
  13036. carInfo.issueDate.substring(6, 8);
  13037. }
  13038. if (carInfo.registerDate) {
  13039. carInfo.registerDate =
  13040. carInfo.registerDate.substring(0, 4) +
  13041. "-" +
  13042. carInfo.registerDate.substring(4, 6) +
  13043. "-" +
  13044. carInfo.registerDate.substring(6, 8);
  13045. }
  13046. this.carform.carOwner = carInfo.carOwner; //车主
  13047. this.carform.licenseNo = carInfo.plateNo; //车牌号
  13048. this.carform.modelcname = carInfo.backOcrID; //品牌型号
  13049. this.carform.frameNo = carInfo.vin; //车架号
  13050. this.carform.engineNo = carInfo.engine; //发动机号
  13051. this.carform.registerDate = carInfo.registerDate; //车牌号
  13052. this.carform.issueDate = carInfo.issueDate; //车牌号
  13053. this.carform.grossMass = carInfo.grossMass; //总质量
  13054. this.carform.unladenMass = carInfo.unladenMass; //整备质量
  13055. this.carform.limitLoad = carInfo.limitLoad; //核定载质量
  13056. this.carform.category = carInfo.category; //车辆类型
  13057. this.carform.carnature = carInfo.useNature; //使用性质
  13058. this.carform.vehicleUse = carInfo.vehicleUse; //车辆用途
  13059. this.carform.plateType = carInfo.plateType; //车辆种类
  13060. this.carform.approvedPassengersCapacity =
  13061. carInfo.approvedPassengersCapacity; //核定载客数
  13062. });
  13063. },
  13064. CarOCRconfirm() {
  13065. //传参 carnature
  13066. this.ownerInfo.name = this.carform.carOwner; //车主
  13067. this.carInfo.cartype = "K33";
  13068. this.carInfo.licenseNo = this.carform.licenseNo; //车牌号
  13069. this.carInfo.modelcname = this.carform.modelcname; //品牌型号
  13070. this.carInfo.vinNo = this.carform.frameNo; //车架号
  13071. this.carInfo.frameNo = this.carform.frameNo; //车架号
  13072. this.carInfo.engineNo = this.carform.engineNo; //发动机号
  13073. this.carInfo.seatCount = this.carform.approvedPassengersCapacity; //核定载客数
  13074. this.carInfo.vehicleweight = this.carform.grossMass; //总质量
  13075. this.carInfo.completeKerbMass = this.carform.unladenMass; //整备质量
  13076. this.carInfo.limitLoad = this.carform.limitLoad; //核定载质量
  13077. this.carInfo.cartype = this.carform.category; //车辆类型
  13078. this.carInfo.carnature = this.carform.carnature
  13079. ? this.carform.carnature
  13080. : "02"; //使用性质
  13081. this.carInfo.vehicleUse = this.carform.vehicleUse
  13082. ? this.carform.vehicleUse
  13083. : "05"; //车辆用途
  13084. this.carInfo.cimodelclass = this.carform.plateType; //车辆种类
  13085. if (this.timeformat(this.carform.registerDate) != "NaN-NaN-NaN") {
  13086. this.carInfo.registerDate = this.carform.registerDate; //车牌号
  13087. }
  13088. if (this.timeformat(this.carform.issueDate) != "NaN-NaN-NaN") {
  13089. this.carInfo.issueDate = this.carform.issueDate; //车牌号
  13090. }
  13091. if (this.carform.registerDate.length < 10) {
  13092. this.$message.warning("检查注册日期");
  13093. return;
  13094. }
  13095. if (this.carform.issueDate.length < 10) {
  13096. this.$message.warning("检查发证日期");
  13097. return;
  13098. }
  13099. this.uploadcardialogVisible = false;
  13100. },
  13101. handleRemove(e) {
  13102. //删除图片
  13103. this[e] = "";
  13104. switch (this.userIndex) {
  13105. case 0:
  13106. this.carfrontImg = "";
  13107. this.carbackImg = "";
  13108. this.CarFrontFile = ""; // 行驶证正面base64
  13109. this.CarBackFile = ""; // 行驶证背面base64
  13110. break;
  13111. case 2:
  13112. this.userfrontImg = "";
  13113. this.userbackImg = "";
  13114. this.businessImg = "";
  13115. this.C02File = ""; // 车主正面base64
  13116. this.D02File = ""; // 车主背面base64
  13117. this.Y02File = ""; // 车主营业执照
  13118. break;
  13119. case 3:
  13120. this.userfrontImg = "";
  13121. this.userbackImg = "";
  13122. this.businessImg = "";
  13123. this.C03File = ""; // 投保人正面base64
  13124. this.D03File = ""; // 投保人背面base64
  13125. this.Y03File = ""; // 投保人营业执照
  13126. break;
  13127. case 4:
  13128. this.userfrontImg = "";
  13129. this.userbackImg = "";
  13130. this.businessImg = "";
  13131. this.C04File = ""; // 被保人正面base64
  13132. this.D04File = ""; // 被保人背面base64
  13133. this.Y04File = ""; // 被保人营业执照
  13134. break;
  13135. default:
  13136. }
  13137. },
  13138. //预览图片
  13139. handlePictureCardPreview(img) {
  13140. this.ProViewImg = img;
  13141. this.showViewer = true;
  13142. },
  13143. // 关闭查看器
  13144. closeViewer() {
  13145. this.showViewer = false;
  13146. },
  13147. uploaduser(index) {
  13148. this.userIndex = index;
  13149. this.uploaduserdialogVisible = true;
  13150. },
  13151. userOCRdiscern() {
  13152. //OCR识别
  13153. if (this.activeName == "1") {
  13154. switch (this.userIndex) {
  13155. case 2:
  13156. // if (!this.C02File || !this.D02File) {
  13157. // this.$message.warning('请上传照片')
  13158. // return
  13159. // }
  13160. const params1 = new FormData(); // 声明formData数据类型
  13161. params1.append("image1", this.C02File);
  13162. params1.append("image2", this.D02File);
  13163. this.userOCRjoggle(params1);
  13164. break;
  13165. case 3:
  13166. // if (!this.C03File || !this.D03File) {
  13167. // this.$message.warning('请上传照片')
  13168. // return
  13169. // }
  13170. const params2 = new FormData(); // 声明formData数据类型
  13171. params2.append("image1", this.C03File);
  13172. params2.append("image2", this.D03File);
  13173. this.userOCRjoggle(params2);
  13174. break;
  13175. case 4:
  13176. // if (!this.C04File || !this.D04File) {
  13177. // this.$message.warning('请上传照片')
  13178. // return
  13179. // }
  13180. const params3 = new FormData(); // 声明formData数据类型
  13181. params3.append("image1", this.C04File);
  13182. params3.append("image2", this.D04File);
  13183. this.userOCRjoggle(params3);
  13184. break;
  13185. default:
  13186. }
  13187. } else {
  13188. switch (this.userIndex) {
  13189. case 2:
  13190. const params1 = new FormData(); // 声明formData数据类型
  13191. params1.append("image1", this.Y02File);
  13192. this.businessjoggle(params1);
  13193. break;
  13194. case 3:
  13195. const params2 = new FormData(); // 声明formData数据类型
  13196. params2.append("image1", this.Y03File);
  13197. this.businessjoggle(params2);
  13198. break;
  13199. case 4:
  13200. const params3 = new FormData(); // 声明formData数据类型
  13201. params3.append("image1", this.Y04File);
  13202. this.businessjoggle(params3);
  13203. break;
  13204. default:
  13205. }
  13206. }
  13207. },
  13208. businessjoggle(param) {
  13209. const loading = this.$loading({
  13210. lock: true,
  13211. text: "Loading",
  13212. spinner: "el-icon-loading",
  13213. background: "rgba(0, 0, 0, 0.7)"
  13214. });
  13215. this.$api.letter.businessLicense(param).then(res => {
  13216. loading.close();
  13217. if (res.msg == "201") {
  13218. this.$message({ message: "请正确选择营业执照", type: "warning" });
  13219. }
  13220. if (res.code == 200 && res.data) {
  13221. if (res.data) {
  13222. this.businessform = {
  13223. ...res.data,
  13224. name: res.data.company,
  13225. organizationCode: res.data.socialCreditCode,
  13226. addr: res.data.address,
  13227. identifyType: "10",
  13228. scope: res.data.businessScope,
  13229. legalPerson: res.data.legalRepresentative,
  13230. registeredCapital: parseInt(res.data.registeredCapital)
  13231. };
  13232. }
  13233. }
  13234. });
  13235. },
  13236. userOCRjoggle(param) {
  13237. const loading = this.$loading({
  13238. lock: true,
  13239. text: "Loading",
  13240. spinner: "el-icon-loading",
  13241. background: "rgba(0, 0, 0, 0.7)"
  13242. });
  13243. this.$api.letter.idCard(param).then(res => {
  13244. loading.close();
  13245. if (res.msg == "201") {
  13246. this.$message({ message: "请正确选择身份证", type: "warning" });
  13247. }
  13248. var customerInfo = res.data.customerInfo;
  13249. if (customerInfo) {
  13250. this.ownerInfoform.name = customerInfo.name;
  13251. if (customerInfo.identifyType == "01") {
  13252. this.ownerInfoform.identifyType = "身份证";
  13253. } else {
  13254. this.ownerInfoform.identifyType = "";
  13255. }
  13256. this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;
  13257. this.ownerInfoform.gender = customerInfo.identifyIssuedCom;
  13258. this.ownerInfoform.addr = customerInfo.addr;
  13259. if (customerInfo.identifyNumber) {
  13260. this.ownerInfoform.age = getAgeByIdCard(
  13261. customerInfo.identifyNumber
  13262. );
  13263. }
  13264. if (
  13265. customerInfo.identifyValidDate ||
  13266. customerInfo.identifyValidEndDate
  13267. ) {
  13268. this.ownerInfoform.identifyValidDate =
  13269. customerInfo.identifyValidDate.substring(0, 4) +
  13270. "-" +
  13271. customerInfo.identifyValidDate.substring(4, 6) +
  13272. "-" +
  13273. customerInfo.identifyValidDate.substring(6, 8);
  13274. this.ownerInfoform.identifyValidEndDate =
  13275. customerInfo.identifyValidEndDate.substring(0, 4) +
  13276. "-" +
  13277. customerInfo.identifyValidEndDate.substring(4, 6) +
  13278. "-" +
  13279. customerInfo.identifyValidEndDate.substring(6, 8);
  13280. if (customerInfo.identifyValidEndDate == "长期") {
  13281. this.ownerInfoform.identifyValidEndDate = "9999-12-31";
  13282. }
  13283. }
  13284. // let values = addressCode(this.ownerInfoform.addr);
  13285. // this.ownerInfoform.province = codeToText[values[0]]
  13286. // this.ownerInfoform.city = codeToText[values[1]]
  13287. // this.ownerInfoform.county = codeToText[values[2]]
  13288. }
  13289. });
  13290. },
  13291. userOCRconfirm() {
  13292. //传参
  13293. if (this.activeName == "1") {
  13294. this.ownerInfoform.property = "1";
  13295. switch (this.userIndex) {
  13296. case 2:
  13297. // this.selectedOptions1 = addressCode(this.ownerInfoform.addr);
  13298. this.ownerInfo = JSON.parse(JSON.stringify(this.ownerInfoform));
  13299. break;
  13300. case 3:
  13301. // this.selectedOptions2 = addressCode(this.ownerInfoform.addr);
  13302. this.policyHolderInfo = JSON.parse(
  13303. JSON.stringify(this.ownerInfoform)
  13304. );
  13305. break;
  13306. case 4:
  13307. // this.selectedOptions3 = addressCode(this.ownerInfoform.addr);
  13308. this.insuredPersonInfo = JSON.parse(
  13309. JSON.stringify(this.ownerInfoform)
  13310. );
  13311. break;
  13312. }
  13313. } else {
  13314. this.businessform.property = "0";
  13315. switch (this.userIndex) {
  13316. case 2:
  13317. this.ownerInfo = { ...this.ownerInfo, ...this.businessform };
  13318. break;
  13319. case 3:
  13320. this.policyHolderInfo = {
  13321. ...this.policyHolderInfo,
  13322. ...this.businessform
  13323. };
  13324. break;
  13325. case 4:
  13326. this.insuredPersonInfo = {
  13327. ...this.insuredPersonInfo,
  13328. ...this.businessform
  13329. };
  13330. break;
  13331. }
  13332. }
  13333. this.uploaduserdialogVisible = false;
  13334. },
  13335. closeDialog(index) {
  13336. // 0:车辆 1:车主 2:投保人 3:被保人
  13337. switch (index) {
  13338. case 0:
  13339. this.carfrontImg = "";
  13340. this.carbackImg = "";
  13341. this.CarFrontFile = ""; // 行驶证正面base64
  13342. this.CarBackFile = ""; // 行驶证背面base64
  13343. Object.keys(this.carform).forEach(key => {
  13344. this.carform[key] = "";
  13345. });
  13346. break;
  13347. case 2:
  13348. this.userfrontImg = "";
  13349. this.userbackImg = "";
  13350. this.businessImg = "";
  13351. this.Y02File = ""; // 营业执照
  13352. this.C02File = ""; // 车主正面base64
  13353. this.D02File = ""; // 车主背面base64
  13354. Object.keys(this.ownerInfoform).forEach(key => {
  13355. this.ownerInfoform[key] = "";
  13356. });
  13357. Object.keys(this.businessform).forEach(key => {
  13358. this.businessform[key] = "";
  13359. });
  13360. break;
  13361. case 3:
  13362. this.userfrontImg = "";
  13363. this.userbackImg = "";
  13364. this.businessImg = "";
  13365. this.Y03File = ""; // 营业执照
  13366. this.C03File = ""; // 投保人正面base64
  13367. this.D03File = ""; // 投保人背面base64
  13368. Object.keys(this.ownerInfoform).forEach(key => {
  13369. this.ownerInfoform[key] = "";
  13370. });
  13371. Object.keys(this.businessform).forEach(key => {
  13372. this.businessform[key] = "";
  13373. });
  13374. break;
  13375. case 4:
  13376. this.userfrontImg = "";
  13377. this.userbackImg = "";
  13378. this.businessImg = "";
  13379. this.Y04File = ""; // 营业执照
  13380. this.C04File = ""; // 被保人正面base64
  13381. this.D04File = ""; // 被保人背面base64
  13382. Object.keys(this.ownerInfoform).forEach(key => {
  13383. this.ownerInfoform[key] = "";
  13384. });
  13385. Object.keys(this.businessform).forEach(key => {
  13386. this.businessform[key] = "";
  13387. });
  13388. break;
  13389. default:
  13390. }
  13391. },
  13392. bjdpreview(id) {
  13393. let params = {
  13394. companyId: id
  13395. };
  13396. this.$api.letter.getByCompanyId(params).then(res => {
  13397. if (res.code == "200") {
  13398. var data = res.data;
  13399. if (data.kindinfo != null) {
  13400. data.kindinfo.map((ele, index) => {
  13401. switch (ele.kindCode) {
  13402. case "A":
  13403. if (ele.amount == 1) {
  13404. ele.amount = "投保";
  13405. } else {
  13406. ele.amount = ele.amount;
  13407. }
  13408. break;
  13409. case "D4":
  13410. case "SY_FJ_YBW2":
  13411. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  13412. break;
  13413. case "MJ1":
  13414. case "MJ2":
  13415. case "MJ3":
  13416. case "MJ4":
  13417. ele.deductibleRate = ele.deductibleRate + "%";
  13418. break;
  13419. default:
  13420. ele.amount = this.toChinesNum(ele.amount);
  13421. }
  13422. return ele;
  13423. });
  13424. }
  13425. data.logoImg = this.iconfftter(res.data.inscompany);
  13426. this.queryOrders = data;
  13427. this.$api.letter.getThemeByUserId(this.userId).then(res => {
  13428. if (res.code == 200) {
  13429. if (res.data[0] == "GD") {
  13430. this.$refs.quotationDialogPro.setBackupVisible(true);
  13431. } else {
  13432. this.$refs.quotationDialog.setBackupVisible(true);
  13433. }
  13434. }
  13435. });
  13436. // if (
  13437. // this.$store.state.user.roles.managementSource &&
  13438. // this.$store.state.user.roles.managementSource == "3"
  13439. // ) {
  13440. // this.$refs.quotationDialogPro.setBackupVisible(true);
  13441. // } else {
  13442. // this.$refs.quotationDialog.setBackupVisible(true);
  13443. // }
  13444. }
  13445. });
  13446. },
  13447. //返回上一步
  13448. Back() { },
  13449. carcode(id, item) {
  13450. this.$api.letter.getQrCode(id).then(res => {
  13451. if (res.code == "200") {
  13452. this.inscompany = res.data.inscompany; //保险公司
  13453. this.sumpremium = res.data.sumpremium; //总价
  13454. this.licenseNo = res.data.cPlateNo; //车牌号
  13455. this.applyName = res.data.cApplyNme; //车主
  13456. this.jqpremium = res.data.jqpremium; //交强
  13457. this.sypremium = res.data.sypremium; //商业
  13458. this.taxamount = res.data.taxamount; //车船税
  13459. this.jypremium = res.data.jypremium; //驾意险
  13460. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  13461. this.systartdate = res.data.syStartDate; //商业起保日期
  13462. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  13463. let qrCodeUrl = res.data.qrCodeUrl;
  13464. this.$api.letter.getThemeByUserId(this.userId).then(res => {
  13465. if (res.code == 200) {
  13466. if (res.data[0] == "GD") {
  13467. this.codedialogVisiblePro = true;
  13468. this.qrcodeWidth = "154";
  13469. this.qrcodeHeight = "154";
  13470. } else {
  13471. this.codedialogVisible = true;
  13472. }
  13473. this.$nextTick(function () {
  13474. this.creatQrCode(qrCodeUrl);
  13475. });
  13476. }
  13477. });
  13478. } else {
  13479. this.$message({ message: res.msg, type: "warning" });
  13480. }
  13481. });
  13482. },
  13483. //同步
  13484. synchronization() {
  13485. this.systartDate = this.jqstartDate;
  13486. this.syendDate = this.jqendDate;
  13487. },
  13488. add() {
  13489. // this.obtainProtocol();
  13490. if (this.isLetter == "1") {
  13491. this.$router.push({ path: "/letter/letter" });
  13492. }
  13493. for (let key in this.ownerInfo) {
  13494. this.ownerInfo[key] = "";
  13495. }
  13496. for (let key in this.policyHolderInfo) {
  13497. this.policyHolderInfo[key] = "";
  13498. }
  13499. for (let key in this.insuredPersonInfo) {
  13500. this.insuredPersonInfo[key] = "";
  13501. }
  13502. this.vehicleAndVesselTaxForm = {
  13503. taxRelifFlag: "1",
  13504. taxpayerIdentifier: "01"
  13505. };
  13506. // 清空保险公司列表
  13507. this.totalCompanyList = [];
  13508. this.ownerInfo.provinceData = [];
  13509. this.insuredPersonInfo.provinceData = [];
  13510. this.policyHolderInfo.provinceData = [];
  13511. this.carInfo = JSON.parse(localStorage.getItem("carInfo"));
  13512. this.insureList = JSON.parse(localStorage.getItem("insureList"));
  13513. this.sychecked = false;
  13514. this.yonganchecked = false;
  13515. this.zhongmeichecked = false;
  13516. this.transferDateShow = false;
  13517. this.tbczcarShow = true; //投保人同车主
  13518. // this.bbczcarShow = false, //被保人同车主
  13519. this.bbtbcarShow = true; //被保人同投保人
  13520. // this.$refs.imageDialog.emptyList()
  13521. this.imageList1 = [];
  13522. this.imageList2 = [];
  13523. this.imageList3 = [];
  13524. this.imageList4 = [];
  13525. this.imageList5 = [];
  13526. this.imageList6 = [];
  13527. this.imgList1 = [];
  13528. this.imgList2 = [];
  13529. this.imgList3 = [];
  13530. this.imgList4 = [];
  13531. this.imgList5 = [];
  13532. this.imgList6 = [];
  13533. this.imgList7 = [];
  13534. this.imgList8 = [];
  13535. this.imgList9 = [];
  13536. this.imgList10 = [];
  13537. this.imgList11 = [];
  13538. this.imgList12 = [];
  13539. this.imgList13 = [];
  13540. this.imgList14 = [];
  13541. this.imgList15 = [];
  13542. this.imgList16 = [];
  13543. this.imgList17 = [];
  13544. this.imgList18 = [];
  13545. this.imgList19 = [];
  13546. this.imgList20 = [];
  13547. this.imgList21 = [];
  13548. this.imgList22 = [];
  13549. this.imgList23 = [];
  13550. this.imgList24 = [];
  13551. this.imgList25 = [];
  13552. this.imgList26 = [];
  13553. this.imgList28 = [];
  13554. this.imgList27 = [];
  13555. // 清空保险公司选中的意外险
  13556. this.zijintemplateSelection = "";
  13557. this.zhongantemplateSelection = "";
  13558. this.hengbangtemplateSelection = "";
  13559. this.taipingyangtemplateSelection = "";
  13560. this.taipingtemplateSelection = "";
  13561. this.insuranceHN = "";
  13562. this.renshoutemplateSelection = "";
  13563. this.dajiatemplateSelection = "";
  13564. this.accidentForm = {
  13565. fen: "1",
  13566. premium: 0
  13567. };
  13568. this.accidentFormHN = {
  13569. allQuantity: "1",
  13570. quantity: "1"
  13571. };
  13572. this.productId = "";
  13573. this.hengbangaccidentalDrivingVo = {};
  13574. this.taipingyangaccidentalDrivingVo = {};
  13575. this.huanongaccidentalDrivingVo = {};
  13576. this.taipingaccidentalDrivingVo = {};
  13577. this.zhongmeiaccidentalDrivingVo = {};
  13578. this.accidentalDrivingVo = [];
  13579. this.zhonganaccidentalDrivingVo = {};
  13580. this.renshouaccidentalDrivingVo = {};
  13581. this.anshengaccidentalDrivingVo = {};
  13582. this.dajiaaccidentalDrivingVo = {};
  13583. this.selectedOptions1 = [];
  13584. this.selectedOptions2 = [];
  13585. this.selectedOptions3 = [];
  13586. this.orderno = "";
  13587. this.quoteno = "";
  13588. this.lastCompanyId = "";
  13589. this.HistoryList = [];
  13590. this.jqstartDate = this.transformTime1();
  13591. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  13592. this.systartDate = this.transformTime1();
  13593. this.syendDate = this.oneYearPast1(this.jqstartDate);
  13594. this.policyNumberForm = {
  13595. jqpolicyno: "",
  13596. sypolicyno: "",
  13597. jypolicyno: "",
  13598. jqpremium: "",
  13599. sypremium: "",
  13600. jypremium: "",
  13601. taxamount: "",
  13602. commissionFeevalue: "",
  13603. otherFeevalue: "",
  13604. jqSuperviseCostsProportion: "",
  13605. sySuperviseCostsProportion: "",
  13606. noSuperviseCostsProportion: "",
  13607. jqOtherCostsProportion: "",
  13608. syOtherCostsProportion: "",
  13609. noOtherCostsProportion: "",
  13610. jqReceivableProportion: "",
  13611. syReceivableProportion: "",
  13612. noReceivableProportion: "",
  13613. jqPolicyList: [],
  13614. syPolicyList: [],
  13615. jqSignList: [],
  13616. noPolicyList: [],
  13617. noCostsProportion: "",
  13618. jqCostsProportion: "",
  13619. syCostsProportion: ""
  13620. };
  13621. },
  13622. toChinesNum(num) {
  13623. if (num.toString().length == 4) {
  13624. let overQian = Math.floor(num / 1000);
  13625. let result = overQian + "千";
  13626. return result;
  13627. } else {
  13628. let overWan = Math.floor(num / 10000);
  13629. let result = overWan + "万";
  13630. return result;
  13631. }
  13632. },
  13633. reportDrop(event) {
  13634. event.preventDefault();
  13635. event.stopPropagation();
  13636. },
  13637. tabLiScroll(id, idx) {
  13638. this.tabLiIndex = idx;
  13639. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  13640. },
  13641. handleScroll(id) {
  13642. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  13643. }
  13644. }
  13645. };
  13646. </script>
  13647. <style>
  13648. /* .customNotifyClass {
  13649. word-break: break-all;
  13650. width: 600px;
  13651. } */
  13652. </style>
  13653. <style lang="scss" scoped>
  13654. .el-row {
  13655. display: flex;
  13656. flex-wrap: wrap;
  13657. align-content: flex-start;
  13658. }
  13659. // .marginL {
  13660. // margin-left: 10px;
  13661. // }
  13662. .el-notification {
  13663. width: 600px;
  13664. }
  13665. .styleB .el-upload--picture-card {
  13666. // display: none;
  13667. opacity: 0;
  13668. }
  13669. .ORcodebody {
  13670. height: auto;
  13671. background-color: #fff;
  13672. //background: url(../../../assets/image/group.png) #fff;
  13673. padding: 16px;
  13674. }
  13675. .csstool {
  13676. font-weight: 600;
  13677. color: #606266;
  13678. font-size: 14px;
  13679. margin: 0 20px;
  13680. span {
  13681. margin-right: 5px;
  13682. }
  13683. }
  13684. .ORcode {
  13685. width: 100%;
  13686. height: auto;
  13687. display: flex;
  13688. justify-content: center;
  13689. align-items: center;
  13690. padding: 30px;
  13691. box-sizing: border-box;
  13692. &>div {
  13693. width: 176px;
  13694. height: 176px;
  13695. border: 1px solid var(--themeColor);
  13696. border-radius: 5px;
  13697. }
  13698. }
  13699. .ORtitle {
  13700. width: 100%;
  13701. padding-bottom: 20px;
  13702. box-sizing: border-box;
  13703. &>div {
  13704. width: 100%;
  13705. margin: 10px 0;
  13706. font-size: 14px;
  13707. &>span {
  13708. &:nth-child(1) {
  13709. color: #868b98;
  13710. text-align: end;
  13711. width: 150px;
  13712. }
  13713. &:nth-child(2) {
  13714. color: #333333;
  13715. }
  13716. }
  13717. }
  13718. }
  13719. .Risk {
  13720. width: 100%;
  13721. height: auto;
  13722. display: flex;
  13723. flex-direction: column;
  13724. align-items: center;
  13725. font-size: 12px;
  13726. }
  13727. .dis {
  13728. display: flex;
  13729. }
  13730. .align {
  13731. align-items: center;
  13732. }
  13733. .jus {
  13734. justify-content: space-between;
  13735. }
  13736. .shangyexian {
  13737. padding-left: 100px;
  13738. }
  13739. .headertotal {
  13740. padding: 30px;
  13741. }
  13742. .my-label {
  13743. background: #e1f3d8;
  13744. }
  13745. .my-content {
  13746. background: #fde2e2;
  13747. color: aqua;
  13748. }
  13749. .el-button--mini {
  13750. padding: 5px;
  13751. }
  13752. #qqq {
  13753. background-color: #111;
  13754. width: 300px;
  13755. height: 300px;
  13756. margin: 0 auto;
  13757. position: relative;
  13758. }
  13759. #qrCode {
  13760. display: inline-block;
  13761. margin: 0 auto;
  13762. position: relative;
  13763. top: 15%;
  13764. img {
  13765. width: 200px;
  13766. height: 200px;
  13767. background-color: #fff;
  13768. padding: 6px;
  13769. }
  13770. }
  13771. .code {
  13772. box-sizing: border-box;
  13773. display: flex;
  13774. flex-direction: column;
  13775. justify-content: space-between;
  13776. align-items: center;
  13777. &>span {
  13778. margin-bottom: 10px;
  13779. }
  13780. }
  13781. .code_name {
  13782. width: 350px;
  13783. display: flex;
  13784. justify-content: space-between;
  13785. align-items: center;
  13786. font-weight: bold;
  13787. &>span {
  13788. &:nth-child(1) {
  13789. color: #979797;
  13790. width: 120px;
  13791. text-align: right;
  13792. }
  13793. &:nth-child(2) {
  13794. color: #2d2d2d;
  13795. width: 120px;
  13796. text-align: left;
  13797. }
  13798. }
  13799. }
  13800. .header {
  13801. font-size: 18px;
  13802. font-weight: bold;
  13803. }
  13804. .body {
  13805. border-top: none;
  13806. padding-bottom: 100px;
  13807. box-sizing: border-box;
  13808. }
  13809. .u-f-ac {
  13810. -webkit-box-align: center;
  13811. align-items: center;
  13812. padding: 10px;
  13813. }
  13814. .bodyTitle {
  13815. height: 45px;
  13816. background: #f3f3f3;
  13817. border: 1px solid #dddddd;
  13818. line-height: 45px;
  13819. padding: 0 20px;
  13820. box-sizing: border-box;
  13821. }
  13822. .start {
  13823. justify-content: flex-start;
  13824. }
  13825. .end {
  13826. justify-content: flex-end;
  13827. }
  13828. .descriptions {
  13829. padding: 20px;
  13830. box-sizing: border-box;
  13831. display: flex;
  13832. flex-direction: column;
  13833. }
  13834. .bodys {
  13835. display: flex;
  13836. justify-content: space-between;
  13837. align-items: center;
  13838. flex-wrap: wrap;
  13839. }
  13840. .bodys1 {
  13841. display: flex;
  13842. justify-content: center;
  13843. align-items: center;
  13844. flex-wrap: wrap;
  13845. }
  13846. .widths {
  13847. width: 230px;
  13848. }
  13849. .widths1 {
  13850. width: 300px;
  13851. }
  13852. .back {
  13853. color: #333333;
  13854. // font-weight: 700;
  13855. }
  13856. .home {
  13857. // padding-left: 10px;
  13858. box-sizing: border-box;
  13859. padding-bottom: 10px;
  13860. border-bottom: 1px solid #eef1f6;
  13861. &>span {
  13862. margin-right: 10px;
  13863. }
  13864. }
  13865. .border-red {
  13866. border: 1px solid #ff0606;
  13867. }
  13868. .border-blue {
  13869. border: 1px solid #0634ff;
  13870. }
  13871. .hovers {
  13872. margin: 20px 0;
  13873. cursor: pointer;
  13874. padding: 10px 0;
  13875. box-sizing: border-box;
  13876. box-shadow: 0 2px 8px 0 rgba(231, 163, 36, 0.205);
  13877. border-radius: 8px;
  13878. .offer-time {
  13879. margin: 20px 0 0px 100px;
  13880. padding: 10px;
  13881. background: rgba(45, 77, 137, 0.06);
  13882. &>span {
  13883. margin: 0 10px;
  13884. }
  13885. }
  13886. }
  13887. /* 内容待定 */
  13888. .coll {
  13889. font-size: 14px;
  13890. }
  13891. .display {
  13892. display: flex;
  13893. justify-content: center;
  13894. align-items: center;
  13895. box-sizing: border-box;
  13896. }
  13897. .black {
  13898. color: #000;
  13899. }
  13900. .gray {
  13901. color: #999;
  13902. }
  13903. .OCR {
  13904. font-weight: bold;
  13905. color: #333;
  13906. margin: 20px;
  13907. }
  13908. .slot {
  13909. position: absolute;
  13910. width: 100%;
  13911. height: 100%;
  13912. left: 0;
  13913. top: 0;
  13914. cursor: default;
  13915. text-align: center;
  13916. color: #fff;
  13917. opacity: 0;
  13918. font-size: 20px;
  13919. background-color: rgba(0, 0, 0, 0.5);
  13920. transition: opacity 0.3s;
  13921. display: flex;
  13922. justify-content: center;
  13923. align-items: center;
  13924. &>i {
  13925. margin: 10px;
  13926. color: #fff;
  13927. font-size: 30px;
  13928. font-weight: bold;
  13929. cursor: pointer;
  13930. }
  13931. &:hover {
  13932. opacity: 1;
  13933. }
  13934. }
  13935. .companyhead {
  13936. width: 100%;
  13937. margin: 0 auto;
  13938. padding: 15px 10px;
  13939. color: #333;
  13940. font-weight: bold;
  13941. font-size: 14px;
  13942. background-color: rgba(0, 89, 255, 0.1);
  13943. }
  13944. .position-left {
  13945. width: calc(100% - 220px);
  13946. }
  13947. .position-collapse-left {
  13948. width: calc(100% - 80px);
  13949. }
  13950. .footer {
  13951. position: fixed;
  13952. bottom: 0;
  13953. right: 0;
  13954. background-color: #fff;
  13955. z-index: 9;
  13956. padding: 20px;
  13957. box-sizing: border-box;
  13958. box-shadow: 0 0 1px 0 #ccc;
  13959. transition: all 0.1s, box-shadow 0.5s;
  13960. &.shadow {
  13961. box-shadow: 0 -10px 10px -10px #ccc;
  13962. }
  13963. }
  13964. .Enclosure {
  13965. width: 100%;
  13966. background-color: #fff;
  13967. padding: 20px;
  13968. box-sizing: border-box;
  13969. margin-bottom: 15px;
  13970. border-radius: 6px;
  13971. border: 1px solid #ebeef5;
  13972. transition: all 0.2s ease-in-out;
  13973. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  13974. }
  13975. .Enclosure:hover {
  13976. box-shadow: 0 0 10px 0 #d42427;
  13977. }
  13978. .icon-img {
  13979. display: block;
  13980. width: 30px;
  13981. height: 30px;
  13982. }
  13983. .Anchor-link {
  13984. width: 40px;
  13985. background-color: #fff;
  13986. box-shadow: #ccc 0 0px 3px 0;
  13987. border-radius: 6px;
  13988. position: fixed;
  13989. top: 50%;
  13990. right: 0;
  13991. z-index: 99;
  13992. div {
  13993. margin: 5px;
  13994. border-bottom: 1px solid #f2f2f2;
  13995. cursor: pointer;
  13996. display: block;
  13997. }
  13998. }
  13999. .color {
  14000. padding-top: 150px;
  14001. margin-top: -150px;
  14002. }
  14003. .more {
  14004. width: 100%;
  14005. padding: 20px;
  14006. box-sizing: border-box;
  14007. }
  14008. .more-title {
  14009. padding: 15px 10px;
  14010. background-color: #f7f7f9;
  14011. // border-bottom: 1px solid #e3e3e3;
  14012. font-size: 14px;
  14013. }
  14014. .more-data {
  14015. padding: 10px;
  14016. border-bottom: 1px solid #f2f2f2;
  14017. color: #333;
  14018. font-size: 14px;
  14019. }
  14020. .Driving-risk {
  14021. padding-left: 100px;
  14022. // padding-top:20px
  14023. }
  14024. .checkbox {
  14025. transform: scale(1.2);
  14026. margin-right: 20px;
  14027. line-height: 32px;
  14028. }
  14029. .insure-long-term {
  14030. display: inline-flex;
  14031. padding-left: 8px;
  14032. padding-right: 8px;
  14033. background: var(--themeColor);
  14034. color: #fff;
  14035. font-size: 12px;
  14036. margin-left: -5px;
  14037. border-radius: 0px 5px 5px 0px;
  14038. cursor: pointer;
  14039. }
  14040. .textareaSty {
  14041. width: 160px;
  14042. height: 210px;
  14043. border: 1px solid #d2d2d2;
  14044. border-radius: 4px;
  14045. img {
  14046. width: 50px;
  14047. height: 50px;
  14048. }
  14049. }
  14050. .image-title {
  14051. width: 100px;
  14052. height: 30px;
  14053. color: #fff;
  14054. text-align: center;
  14055. line-height: 30px;
  14056. font-weight: bold;
  14057. margin-bottom: 15px;
  14058. background: #fc4a1a;
  14059. background: #f2994a;
  14060. /* fallback for old browsers */
  14061. background: -webkit-linear-gradient(to left, #f2c94c, #f2994a);
  14062. /* Chrome 10-25, Safari 5.1-6 */
  14063. background: linear-gradient(to left, #f2c94c, #f2994a);
  14064. /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  14065. }
  14066. .aaa {
  14067. /deep/ {
  14068. margin-bottom: 20px;
  14069. margin-right: 30px;
  14070. span {
  14071. display: inline-block;
  14072. margin-bottom: 10px;
  14073. }
  14074. .el-upload .el-upload-dragger {
  14075. width: 180px;
  14076. height: 120px;
  14077. border: 1px dashed #c0ccda;
  14078. padding: 0;
  14079. }
  14080. .el-upload-list--picture-card .el-upload-list__item {
  14081. width: 180px;
  14082. height: 120px;
  14083. }
  14084. .el-upload-list__item:first-child {
  14085. margin-top: 0;
  14086. }
  14087. .el-upload--picture-card {
  14088. width: 180px;
  14089. height: 120px;
  14090. }
  14091. .el-upload-list__item {
  14092. width: 180px;
  14093. height: 120px;
  14094. margin: 0 !important;
  14095. display: block !important;
  14096. }
  14097. .el-upload-list--picture-card .el-upload-list__item-thumbnail {
  14098. width: 180px;
  14099. height: 120px;
  14100. }
  14101. }
  14102. }
  14103. .jyxStyle>span {
  14104. display: inline-block;
  14105. text-align: center;
  14106. }
  14107. .tab-style {
  14108. width: 120px;
  14109. li {
  14110. text-align: right;
  14111. padding-right: 20px;
  14112. line-height: 40px;
  14113. cursor: pointer;
  14114. box-sizing: border-box;
  14115. border-right: 1px solid #e2e5eb;
  14116. }
  14117. li:focus {
  14118. background: rgba(212, 36, 38, 0.1);
  14119. border-right: 2px solid var(--themeColor);
  14120. color: var(--themeColor);
  14121. }
  14122. }
  14123. .tabLi-style {
  14124. background: rgba(212, 36, 38, 0.1);
  14125. border-right: 2px solid var(--themeColor);
  14126. color: var(--themeColor);
  14127. }
  14128. .scan-code {
  14129. div {
  14130. margin-top: 10px;
  14131. }
  14132. }
  14133. /* 清除图片上传动画bug */
  14134. /deep/ {
  14135. .proSaomazhifucodeClass .el-dialog__header {
  14136. background: rgba(45, 77, 137, 0.1);
  14137. font-weight: bold;
  14138. }
  14139. .proSaomazhifucodeClass .el-dialog__footer {
  14140. border-top: 1px solid #eef1f6;
  14141. }
  14142. .el-upload-list__item {
  14143. transition: none !important;
  14144. }
  14145. .el-checkbox__input {
  14146. &.is-checked {
  14147. .el-checkbox__inner {
  14148. background-color: #d42426;
  14149. border-color: #d42426;
  14150. }
  14151. }
  14152. }
  14153. .el-checkbox__inner {
  14154. border: 1px solid var(--themeColor);
  14155. &:hover {
  14156. border-color: var(--themeColorHover);
  14157. }
  14158. &:focus {
  14159. border-color: var(--themeColor);
  14160. }
  14161. }
  14162. .el-upload .el-upload-dragger {
  14163. height: 250px;
  14164. width: 400px;
  14165. border: 1px dashed #ced4da;
  14166. }
  14167. // .el-button--warning {
  14168. // color: #fff;
  14169. // background-color: #D42426;
  14170. // border-color: #D42426;
  14171. // &:hover {
  14172. // color: #fff;
  14173. // background-color: #ee6f00ce;
  14174. // border-color: #ee6f00ce;
  14175. // }
  14176. // }
  14177. .el-descriptions-item__label {
  14178. &:not(.is-bordered-label) {
  14179. color: #333;
  14180. }
  14181. }
  14182. // .el-radio__input.is-checked + .el-radio__label {
  14183. // color: #ff7000;
  14184. // }
  14185. // .el-radio__input.is-checked .el-radio__inner {
  14186. // border-color: #ff7000;
  14187. // background: #ff7000;
  14188. // }
  14189. // .el-radio__inner {
  14190. // &:hover {
  14191. // border-color: #ff7000;
  14192. // }
  14193. // }
  14194. // .el-input--small .el-icon-date {
  14195. // color: #ee6f00ce;
  14196. // }
  14197. .el-select {
  14198. width: 100%;
  14199. }
  14200. .el-date-editor.el-input {
  14201. width: 100%;
  14202. }
  14203. .el-cascader--small {
  14204. width: 100%;
  14205. }
  14206. .styleB {
  14207. height: 128px;
  14208. }
  14209. .styleB .el-upload--picture-card {
  14210. display: none;
  14211. }
  14212. .saomazhifucodeClass .el-dialog__body,
  14213. .saomazhifucodeClass .el-dialog__header,
  14214. .saomazhifucodeClass .el-dialog__footer {
  14215. padding: 0;
  14216. background: #f4e9e9;
  14217. }
  14218. .saomazhifucodeClass .el-dialog__body {
  14219. padding: 15px;
  14220. }
  14221. .saomazhifucodeClass .el-dialog__footer {
  14222. background: #f4e9e9;
  14223. padding-bottom: 15px;
  14224. }
  14225. .saomazhifucodeClass .el-dialog__headerbtn {
  14226. margin-top: 10px;
  14227. }
  14228. .zmDriving {
  14229. thead .el-table-column--selection .cell {
  14230. display: none !important;
  14231. }
  14232. }
  14233. .line_style {
  14234. margin-top: 20px;
  14235. }
  14236. .el-input-group__append {
  14237. vertical-align: baseline;
  14238. border-color: #d42426;
  14239. background: #d42426;
  14240. color: #fff;
  14241. }
  14242. .pinganTable .el-table__header-wrapper .el-checkbox {
  14243. display: none;
  14244. }
  14245. }
  14246. </style>
  14247. <style lang="scss" scoped>
  14248. .company-checked {
  14249. background: rgba(45, 77, 137, 0.15);
  14250. padding: 12px 20px;
  14251. box-sizing: border-box;
  14252. margin-top: 10px;
  14253. font-size: 13px;
  14254. color: #333;
  14255. line-height: 24px;
  14256. overflow-x: auto;
  14257. .width1280 {
  14258. min-width: 1576px;
  14259. }
  14260. .bg-white {
  14261. background: #fff;
  14262. padding: 10px 12px;
  14263. border-radius: 4px;
  14264. width: 100%;
  14265. }
  14266. .flex-1 {
  14267. flex: 1;
  14268. }
  14269. .w-60 {
  14270. box-sizing: border-box;
  14271. width: 60px;
  14272. text-align: center;
  14273. border-left: 1px solid #fce5bd;
  14274. }
  14275. .w-50 {
  14276. box-sizing: border-box;
  14277. width: 60px;
  14278. text-align: center;
  14279. border-left: 1px solid #fce5bd;
  14280. }
  14281. .card-bg {
  14282. background: #fff;
  14283. padding: 10px;
  14284. display: flex;
  14285. }
  14286. .card-xianzhong {
  14287. border: 1px solid #2ab79e;
  14288. flex: 1;
  14289. background: rgba(42, 183, 158, 0.15);
  14290. border-radius: 0;
  14291. text-align: center;
  14292. color: #2ab79e;
  14293. // border: 10px solid #FFF;
  14294. font-size: 15px;
  14295. padding: 0 18px;
  14296. display: flex;
  14297. flex-direction: column;
  14298. justify-content: center;
  14299. .card-btn {
  14300. margin-top: 20px;
  14301. border-radius: 2px;
  14302. border: 1px solid #2ab79e;
  14303. background: #fff;
  14304. padding: 4px 8px;
  14305. font-size: 16px;
  14306. font-weight: 600;
  14307. }
  14308. }
  14309. .card-table {
  14310. margin-top: 12px;
  14311. .table-title {
  14312. color: #333;
  14313. width: 58px;
  14314. font-size: 14px;
  14315. }
  14316. .table-list {
  14317. flex: 1;
  14318. .table-list-title {
  14319. background: #fdedc2;
  14320. border: 1px solid #fce5bd;
  14321. color: #333;
  14322. line-height: 28px;
  14323. padding-left: 12px;
  14324. display: flex;
  14325. }
  14326. .table-list-content {
  14327. line-height: 28px;
  14328. padding-left: 12px;
  14329. display: flex;
  14330. align-items: center;
  14331. border: 1px solid #fdedc2;
  14332. border-top: none;
  14333. background: #fff;
  14334. img {
  14335. width: 14px;
  14336. height: 14px;
  14337. transform: translateY(2px);
  14338. }
  14339. span {
  14340. margin-left: 8px;
  14341. font-size: 14px;
  14342. }
  14343. }
  14344. }
  14345. }
  14346. .card-mingxi {
  14347. border: 1px solid #fd9a25;
  14348. flex: 1;
  14349. background: rgba(253, 154, 37, 0.15);
  14350. padding: 8px 12px;
  14351. font-size: 13px;
  14352. .card-mingxi-title {
  14353. color: #fd9a25;
  14354. font-size: 15px;
  14355. span {
  14356. color: #fff;
  14357. background: linear-gradient(90deg, #ff981f 0%, #ff5c00 100%);
  14358. padding: 4px 8px;
  14359. border-radius: 2px;
  14360. }
  14361. }
  14362. }
  14363. .fuwu {
  14364. background: #e9f1ff;
  14365. border: 1px solid #315ba9;
  14366. .card-mingxi-title {
  14367. color: #315ba9;
  14368. }
  14369. .table-list-title {
  14370. background: #c1daff !important;
  14371. border: 1px solid #c1daff !important;
  14372. }
  14373. .table-list-content {
  14374. border-color: #c1daff !important;
  14375. }
  14376. .w-50 {
  14377. border-color: #afccfa !important;
  14378. }
  14379. .flex-1 {
  14380. border-right: 1px solid #afccfa;
  14381. }
  14382. .w-55 {
  14383. border-left: none !important;
  14384. }
  14385. }
  14386. .baoxian {
  14387. padding: 10px;
  14388. border: 1px solid rgba(45, 77, 137, 0.5);
  14389. // background: #F2F4F8;
  14390. background: #f3f3f3;
  14391. display: flex;
  14392. flex-direction: column;
  14393. .card-mingxi-title {
  14394. color: #333;
  14395. display: flex;
  14396. }
  14397. .table-list-title {
  14398. background: #dcdce8 !important;
  14399. }
  14400. .table-list-title,
  14401. .table-list-content {
  14402. padding-left: 0 !important;
  14403. text-align: center;
  14404. border-color: #dcdce8 !important;
  14405. }
  14406. .table-list-title {
  14407. padding-left: 0 !important;
  14408. text-align: center;
  14409. border: 1px solid #dcdce8 !important;
  14410. }
  14411. .flex-1 {
  14412. border-left: 1px solid #dcdce8;
  14413. }
  14414. .w-40 {
  14415. box-sizing: border-box;
  14416. width: 50px;
  14417. text-align: center;
  14418. }
  14419. }
  14420. .youhui {
  14421. background: #feeeec;
  14422. border: 1px solid #ed5626;
  14423. .card-mingxi-title {
  14424. color: #ed5626;
  14425. }
  14426. .table-list-title {
  14427. background: #ffd2c8 !important;
  14428. border: 1px solid #ffd2c8 !important;
  14429. }
  14430. .table-list-content {
  14431. border-color: #ffd2c8 !important;
  14432. padding-left: 0 !important;
  14433. }
  14434. .table-list-line {
  14435. border-bottom: 1px solid #ffd2c8;
  14436. border-right: 1px solid #ffd2c8;
  14437. padding-left: 6px;
  14438. }
  14439. .table-list-line-last {
  14440. border-bottom: none !important;
  14441. }
  14442. .w-60 {
  14443. width: 70px !important;
  14444. border-color: #fabdae !important;
  14445. }
  14446. .w-66 {
  14447. border-left: none !important;
  14448. }
  14449. }
  14450. .el-popover {
  14451. margin-right: 20px;
  14452. padding: 0 !important;
  14453. }
  14454. .gray-style {
  14455. border: 1px solid #333333;
  14456. border-radius: 2px;
  14457. color: #333;
  14458. text-align: center;
  14459. line-height: 24px;
  14460. box-sizing: border-box;
  14461. padding: 4px 8px;
  14462. margin-right: 10px;
  14463. opacity: 0.65;
  14464. // transition: all ease .3s;
  14465. img {
  14466. margin-bottom: -4px;
  14467. }
  14468. &:hover {
  14469. opacity: 1;
  14470. }
  14471. }
  14472. .juse-style {
  14473. color: #fff;
  14474. background: linear-gradient(90deg, #ff981f 0%, #ff5c00 100%);
  14475. padding: 4px 8px;
  14476. border-radius: 2px;
  14477. }
  14478. .blue-style {
  14479. // background: #2D4D89;
  14480. background: linear-gradient(270deg, #0052ff 0%, #6899ff 100%);
  14481. // border: 1px solid #2D4D89;
  14482. border: none;
  14483. color: #fff;
  14484. border-radius: 2px;
  14485. padding: 4px 8px;
  14486. text-align: center;
  14487. line-height: 24px;
  14488. box-sizing: border-box;
  14489. opacity: 1;
  14490. position: relative;
  14491. // ::after {
  14492. // content: '✔';
  14493. // color: red;
  14494. // position: absolute;
  14495. // bottom: 0;
  14496. // right: 0;
  14497. // width: 4px;
  14498. // height: 4px;
  14499. // }
  14500. }
  14501. .blue-text {
  14502. color: #2d4d89;
  14503. }
  14504. .left-title {
  14505. font-size: 14px;
  14506. margin-bottom: 12px;
  14507. }
  14508. .blue-button {
  14509. background: #2d4d89;
  14510. color: #fff;
  14511. padding: 4px 8px;
  14512. line-height: 24px;
  14513. border: 1px solid #2d4d89;
  14514. border-radius: 2px;
  14515. }
  14516. .company-checked-card {
  14517. background: #fff;
  14518. padding: 12px;
  14519. margin-top: 12px;
  14520. >div {
  14521. display: flex;
  14522. margin: 10px;
  14523. }
  14524. .checked-card-title {
  14525. width: 60px;
  14526. }
  14527. span {
  14528. margin-right: 20px;
  14529. }
  14530. }
  14531. .company-checked-right {
  14532. padding: 0 12px;
  14533. color: #333;
  14534. line-height: 22px;
  14535. font-size: 14px;
  14536. position: relative;
  14537. .btn-list {
  14538. display: flex;
  14539. justify-content: right;
  14540. align-items: center;
  14541. span {
  14542. margin: 0 10px;
  14543. color: #2d4d89;
  14544. font-size: 12px;
  14545. }
  14546. }
  14547. }
  14548. }
  14549. .typedialog-style {
  14550. .typedialog-title {
  14551. font-size: 15px;
  14552. line-height: 30px;
  14553. font-weight: 700;
  14554. margin: 10px 0;
  14555. color: #000;
  14556. }
  14557. >>>.table-header {
  14558. background: #f7f7f9;
  14559. color: #333333;
  14560. }
  14561. .el-checkbox-group {
  14562. font-size: 16px;
  14563. color: #333;
  14564. margin-bottom: 20px;
  14565. }
  14566. .more-data-left {
  14567. border: 1px solid #f5f5f8;
  14568. line-height: 48px;
  14569. padding: 0 20px;
  14570. border-top: none;
  14571. position: relative;
  14572. .zhuxian {
  14573. position: absolute;
  14574. top: 0;
  14575. right: 0;
  14576. padding: 4px 12px;
  14577. color: #fff;
  14578. background: #ed9e23;
  14579. font-size: 13px;
  14580. line-height: 12px;
  14581. }
  14582. }
  14583. .more-data-right {
  14584. border: 1px solid #f5f5f8;
  14585. line-height: 48px;
  14586. padding: 0 20px;
  14587. border-top: none;
  14588. border-left: none;
  14589. }
  14590. >>>.is-checked,
  14591. >>>.is-indeterminate {
  14592. .el-checkbox__inner {
  14593. background: #2d4d89 !important;
  14594. border-color: #2d4d89 !important;
  14595. }
  14596. .el-checkbox__label {
  14597. color: #2d4d89;
  14598. }
  14599. }
  14600. .opacity1 {
  14601. opacity: 1;
  14602. }
  14603. .opacity0 {
  14604. opacity: 0.65;
  14605. }
  14606. .jiayi-style {
  14607. font-size: 13px;
  14608. text-align: center;
  14609. .el-col {
  14610. border: 1px solid #2d4d89;
  14611. margin: 0 1px;
  14612. background: rgba(45, 77, 137, 0.05);
  14613. }
  14614. .jiayi-style-title {
  14615. background: #2d4d89;
  14616. color: #fff;
  14617. line-height: 40px;
  14618. }
  14619. .jiayi-style-line {
  14620. color: #333;
  14621. padding: 16px 20px;
  14622. }
  14623. }
  14624. }
  14625. .typedialog-style1 {
  14626. background: rgba(42, 183, 158, 0.15);
  14627. padding: 20px;
  14628. margin-bottom: 20px;
  14629. border-radius: 10px;
  14630. }
  14631. .typedialog-style2 {
  14632. background: rgba(253, 154, 37, 0.15);
  14633. padding: 20px;
  14634. margin-bottom: 20px;
  14635. border-radius: 10px;
  14636. }
  14637. .typedialog-style3 {
  14638. background: #e9f1ff;
  14639. padding: 20px;
  14640. border-radius: 10px;
  14641. }
  14642. .addyiwai {
  14643. >>>.el-input-group__append,
  14644. >>>.el-input-group__prepend {
  14645. padding: 0 10px;
  14646. }
  14647. >>>.el-dialog__body {
  14648. padding: 24px;
  14649. background: #f2f2f2;
  14650. }
  14651. .addyiwai-title {
  14652. color: #262626;
  14653. font-size: 16px;
  14654. line-height: 24px;
  14655. margin-right: 10px;
  14656. }
  14657. .addyiwai-title-btn {
  14658. background: #eaedf1;
  14659. box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.02);
  14660. border-radius: 2px 2px 2px 2px;
  14661. border: 1px solid #d9d9d9;
  14662. font-size: 14px;
  14663. color: #2d4d89;
  14664. padding: 4px 10px;
  14665. cursor: pointer;
  14666. }
  14667. .el-select {
  14668. width: 200px;
  14669. }
  14670. }
  14671. .teYuedialog-style {
  14672. >>>.el-dialog__body {
  14673. padding: 10px 20px;
  14674. }
  14675. >>>.el-input__inner:focus {
  14676. border-color: #f96646;
  14677. }
  14678. >>>.el-input-group__append,
  14679. .el-input-group__prepend,
  14680. >>>.el-button--primary,
  14681. .el-button--primary:focus {
  14682. border-color: #f96646;
  14683. background: linear-gradient(90deg, #f6734a 0%, #f14b3a 100%);
  14684. color: #fff;
  14685. }
  14686. >>>.is-checked,
  14687. >>>.is-indeterminate {
  14688. .el-checkbox__inner {
  14689. background: #f96646 !important;
  14690. border-color: #f96646 !important;
  14691. }
  14692. .el-checkbox__label {
  14693. color: #f96646;
  14694. }
  14695. }
  14696. >>>.table-header {
  14697. background: #f7f7f9;
  14698. color: #333333;
  14699. }
  14700. .table-title {
  14701. font-size: 12px;
  14702. color: #333;
  14703. line-height: 20px;
  14704. padding: 2px 20px;
  14705. }
  14706. .dialog-footer {
  14707. display: flex;
  14708. align-items: center;
  14709. >span {
  14710. color: #333;
  14711. font-size: 13px;
  14712. }
  14713. }
  14714. }
  14715. .red-btn {
  14716. >>>.el-input-group__append {
  14717. border-color: #d42426;
  14718. background: #d42426;
  14719. }
  14720. >>>.el-input__prefix {
  14721. color: #d42426;
  14722. }
  14723. .insure-long-term {
  14724. position: relative;
  14725. top: 1px;
  14726. }
  14727. >>>.input {
  14728. border-radius: 4px 0 0 4px;
  14729. }
  14730. }
  14731. .synchronous {
  14732. width: 75px;
  14733. height: 45px;
  14734. line-height: 45px;
  14735. color: #fff;
  14736. position: relative;
  14737. img {
  14738. position: absolute;
  14739. top: 0;
  14740. left: 0;
  14741. width: 75px;
  14742. height: 45px;
  14743. z-index: 0;
  14744. }
  14745. >div {
  14746. width: 75px;
  14747. height: 45px;
  14748. line-height: 45px;
  14749. color: #fff;
  14750. cursor: pointer;
  14751. position: relative;
  14752. text-align: center;
  14753. font-size: 14px;
  14754. }
  14755. }
  14756. .bxgs-list {
  14757. position: relative;
  14758. .baofeijisuan {
  14759. position: absolute;
  14760. right: 5.333%;
  14761. top: 0;
  14762. // border: 1px solid rgb(26, 77, 219);
  14763. // color: rgb(26, 77, 219);
  14764. .btn{
  14765. background: linear-gradient(270deg, #0052ff 0%, #6899ff 100%);
  14766. border-radius: 4px;
  14767. color: #fff;
  14768. font-size: 14px;
  14769. line-height: 20px;
  14770. padding: 4px 8px;
  14771. font-weight: 700;
  14772. margin-right: 10px;
  14773. }
  14774. }
  14775. }
  14776. .coefficient {
  14777. width: 100px;
  14778. >>>.el-input__inner {
  14779. border: none;
  14780. }
  14781. }
  14782. .loader {
  14783. /* Wave text loader made by: csozi | Website: english.csozi.hu*/
  14784. height: 30px;
  14785. .text {
  14786. margin: 0;
  14787. line-height: 24px;
  14788. color: red;
  14789. font-weight: bolder;
  14790. background: -webkit-linear-gradient(45deg,
  14791. orange,
  14792. orangered);
  14793. /* Chrome, Safari */
  14794. background: linear-gradient(45deg, orange, orangered);
  14795. /* Standard syntax */
  14796. -webkit-background-clip: text;
  14797. /* Chrome, Safari */
  14798. background-clip: text;
  14799. -webkit-text-fill-color: transparent;
  14800. /* Chrome, Safari */
  14801. color: transparent;
  14802. /* Standard syntax (currently not supported by browsers) */
  14803. font-family: "'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif'";
  14804. }
  14805. @keyframes letter {
  14806. 0% {
  14807. font-size: 14px;
  14808. }
  14809. 50% {
  14810. font-size: 15px;
  14811. }
  14812. 100% {
  14813. font-size: 14px;
  14814. }
  14815. }
  14816. .letter {
  14817. animation: letter 1s infinite;
  14818. }
  14819. .letter1 {
  14820. animation-delay: 0s;
  14821. }
  14822. .letter2 {
  14823. animation-delay: -0.9s;
  14824. }
  14825. .letter3 {
  14826. animation-delay: -0.8s;
  14827. }
  14828. .letter4 {
  14829. animation-delay: -0.7s;
  14830. }
  14831. .letter5 {
  14832. animation-delay: -0.6s;
  14833. }
  14834. .letter6 {
  14835. animation-delay: -0.5s;
  14836. }
  14837. .letter7 {
  14838. animation-delay: -0.4s;
  14839. }
  14840. .letter8 {
  14841. animation-delay: -0.3s;
  14842. }
  14843. .letter9 {
  14844. animation-delay: -0.2s;
  14845. }
  14846. .letter10 {
  14847. animation-delay: -0.1s;
  14848. }
  14849. }
  14850. .xianbie {
  14851. // border: 5px dashed #D42426;
  14852. background: #d4242734;
  14853. .home {
  14854. border-bottom: none !important;
  14855. }
  14856. }
  14857. .mini-input {
  14858. >>>.el-input__inner {
  14859. padding: 0 4px !important;
  14860. text-align: center;
  14861. }
  14862. }
  14863. .QRCode {
  14864. position: relative;
  14865. width: 200px;
  14866. height: 200px;
  14867. overflow: hidden;
  14868. margin: 0 auto;
  14869. }
  14870. </style>