KtLetter.vue 339 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914
  1. <template>
  2. <div class="body">
  3. <div class="Enclosure flex f-c back" v-if="isLetter">
  4. <div class="home flex j-s a-c">
  5. <div class="flex j-s a-c">
  6. <img src="../../../../src/icon/归属信息.png" alt class="icon-img" />
  7. <span style="margin-left:10px;">归属信息</span>
  8. </div>
  9. </div>
  10. <el-form class="demo-ruleForm" :model="userform" ref="userform" label-width="130px" size="small"
  11. style="margin-top: 15px" disabled label-position="top">
  12. <el-row type="flex" justify="space-between">
  13. <el-col :span="5">
  14. <el-form-item label="业务员">
  15. <el-input v-model="userform.name"></el-input>
  16. </el-form-item>
  17. </el-col>
  18. <el-col :span="5">
  19. <el-form-item label="工号">
  20. <el-input v-model="userform.id" type="text"></el-input>
  21. </el-form-item>
  22. </el-col>
  23. <el-col :span="5">
  24. <el-form-item label="工号类型">
  25. <el-select v-model="userform.usertype">
  26. <el-option label="业务员" value="A"></el-option>
  27. <el-option label="代理人" value="B"></el-option>
  28. </el-select>
  29. </el-form-item>
  30. </el-col>
  31. <el-col :span="5">
  32. <el-form-item label="归属">
  33. <el-input v-model="deptName"></el-input>
  34. </el-form-item>
  35. </el-col>
  36. </el-row>
  37. </el-form>
  38. </div>
  39. <div class="Enclosure flex f-c back" v-if="isLetter">
  40. <div class="home flex j-s a-c">
  41. <div class="flex j-s a-c">
  42. <img src="../../../../src/icon/快速查询.png" alt class="icon-img" />
  43. <span style="margin-left: 10px">快速查询</span>
  44. </div>
  45. <el-button size="small" type="primary" @click="continuousquery()">
  46. <i class="el-icon-search" style="margin-right: 1px"></i>
  47. 续保查询
  48. </el-button>
  49. </div>
  50. <el-form class="demo-ruleForm" :model="attributionform" ref="continuousform" label-width="130px" size="small"
  51. style="margin-top: 15px" label-position="top">
  52. <el-row>
  53. <el-col :span="5">
  54. <el-form-item label="保险公司" prop="companyId">
  55. <el-select v-model="attributionform.companyId" placeholder="请选择保险公司" @change="continuousChange">
  56. <el-option v-for="(item, index) in continuousCompanyList" :key="index" :label="item.namesimple"
  57. :value="item.id"></el-option>
  58. </el-select>
  59. </el-form-item>
  60. </el-col>
  61. <el-col :span="5" :offset="1" v-for="(domain, index) in attributionform.configure" :key="domain.index">
  62. <el-form-item :label="domain.label" :prop="'configure.' + index + '.value'" :rules="{
  63. required: true,
  64. message: domain.label + '不能为空',
  65. trigger: 'blur',
  66. }">
  67. <el-input v-model="domain.value" :type="domain.type"></el-input>
  68. </el-form-item>
  69. </el-col>
  70. </el-row>
  71. </el-form>
  72. </div>
  73. <div class="Enclosure flex f-c back">
  74. <div class="home flex j-s a-c">
  75. <div class="flex j-s a-c color" id="Car">
  76. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" />
  77. <span style="margin-left:10px;">车辆信息</span>
  78. </div>
  79. <el-button size="small" type="primary" @click="uploadcardialogVisible = true">
  80. <i class="el-icon-camera-solid" style="margin-right:1px;"></i>
  81. 证件识别
  82. </el-button>
  83. </div>
  84. <el-form class="demo-ruleForm" :model="carInfo" ref="carInfo" :rules="rules" label-width="130px" size="small"
  85. label-position="top" style="margin-top: 15px">
  86. <el-row style="flex-wrap: wrap; display: flex;">
  87. <el-col :span="5">
  88. <el-form-item label="车牌" :prop="licenseplate ? 'licenseNo' : ''">
  89. <div style="display: flex;">
  90. <el-input style="width: 75%;margin-right:13px" v-model="carInfo.licenseNo" placeholder="请输入车牌号"
  91. :disabled="!licenseplate"></el-input>
  92. <el-checkbox v-model="licenseplate">已上牌</el-checkbox>
  93. </div>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="5" :offset="1">
  97. <el-form-item label="车辆识别代码" prop="frameNo">
  98. <el-input placeholder="请输入车辆识别码" v-model="carInfo.frameNo" maxlength="17" type="text" show-word-limit>
  99. <el-button slot="append" type="primary" icon="el-icon-search" @click="toChooseVin(carInfo.frameNo)"
  100. style="color: #fff;background-color:#D42426;border-color:#D42426;"></el-button>
  101. </el-input>
  102. </el-form-item>
  103. </el-col>
  104. <el-col :span="5" :offset="1">
  105. <el-form-item label="品牌型号" prop="modelcname">
  106. <el-input v-model="carInfo.modelcname" placeholder="请输入品牌型号" type="text">
  107. <el-button slot="append" icon="el-icon-search" type="primary"
  108. @click="toChooseVehicleType(carInfo.modelcname)"
  109. style="color: #fff;background-color:#D42426;border-color:#D42426;border-top:none"></el-button>
  110. </el-input>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :span="5" :offset="1">
  114. <el-form-item label="发动机号" prop="engineNo">
  115. <el-input v-model="carInfo.engineNo" placeholder="请输入发动机号"></el-input>
  116. </el-form-item>
  117. </el-col>
  118. <el-col :span="5">
  119. <el-form-item label="年款" prop="caryear">
  120. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.caryear" placeholder="请输入年款"></el-input>
  121. </el-form-item>
  122. </el-col>
  123. <el-col :span="5" :offset="1">
  124. <el-form-item label="座位数" prop="seatCount">
  125. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.seatCount" placeholder="请输入座位数">
  126. <el-button slot="append">座</el-button>
  127. </el-input>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="5" :offset="1">
  131. <el-form-item label="整备质量" prop="completeKerbMass">
  132. <el-input v-model="carInfo.completeKerbMass" placeholder="请输入整备质量">
  133. <el-button slot="append">千克(KG)</el-button>
  134. </el-input>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :span="5" :offset="1">
  138. <el-form-item label="核定载质量" prop="limitLoad">
  139. <el-input v-model="carInfo.limitLoad" placeholder="请输入核定载质量">
  140. <el-button slot="append">千克(KG)</el-button>
  141. </el-input>
  142. </el-form-item>
  143. </el-col>
  144. <el-col :span="5">
  145. <el-form-item label="排量" prop="enginedesc">
  146. <el-input v-model="carInfo.enginedesc" placeholder="请输入排量">
  147. <el-button slot="append">升(L)</el-button>
  148. </el-input>
  149. </el-form-item>
  150. </el-col>
  151. <el-col :span="5" :offset="1">
  152. <el-form-item label="功率" prop="powerScale">
  153. <el-input v-model="carInfo.powerScale" placeholder="请输入功率">
  154. <el-button slot="append">千瓦(KW)</el-button>
  155. </el-input>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="5" :offset="1">
  159. <el-form-item label="新车购置价" prop="purchasePrice">
  160. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.purchasePrice" placeholder="请输入新车购置价">
  161. <el-button slot="append">元</el-button>
  162. </el-input>
  163. </el-form-item>
  164. </el-col>
  165. <el-col :span="5" :offset="1">
  166. <el-form-item label="使用性质" prop="carnature">
  167. <el-select v-model="carInfo.carnature" placeholder="请选择使用性质" @change="natureFun">
  168. <el-option :label="item.dictTag" :value="item.dictValue"
  169. v-for="(item, index) in natureOfVehicleUseoptions" :key="index"></el-option>
  170. </el-select>
  171. </el-form-item>
  172. </el-col>
  173. <el-col :span="5">
  174. <el-form-item label="车辆用途" prop="vehicleUse">
  175. <el-select v-if="carInfo.carnature == '02'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途">
  176. <el-option :label="item.dictTag" :value="item.dictValue"
  177. v-for="(item, index) in outOfBusinessVehicleUseoptions" :key="index"></el-option>
  178. </el-select>
  179. <el-select v-if="carInfo.carnature == '01'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途">
  180. <el-option :label="item.dictTag" :value="item.dictValue"
  181. v-for="(item, index) in businessVehicleUseoptions" :key="index"></el-option>
  182. </el-select>
  183. </el-form-item>
  184. </el-col>
  185. <el-col :span="5" :offset="1">
  186. <el-form-item label="车辆类型" prop="cartype">
  187. <el-select v-model="carInfo.cartype" placeholder="请选择车辆种类" filterable clearable>
  188. <el-option :label="item.dictValue + item.dictTag" :value="item.dictValue"
  189. v-for="(item, index) in trafficManagementVehicleTypeoptions" :key="index"></el-option>
  190. </el-select>
  191. </el-form-item>
  192. </el-col>
  193. <el-col :span="5" :offset="1">
  194. <el-form-item label="车辆种类" prop="cimodelclass">
  195. <el-select v-model="carInfo.cimodelclass" placeholder="请选择车辆种类" clearable>
  196. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in vehicleTypeoptions"
  197. :key="index"></el-option>
  198. </el-select>
  199. </el-form-item>
  200. </el-col>
  201. <el-col :span="5" :offset="1">
  202. <el-form-item label="能源种类" prop="energyType">
  203. <el-select v-model="carInfo.energyType" placeholder="请选择能源种类">
  204. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in energyTypeoptions"
  205. :key="index"></el-option>
  206. </el-select>
  207. </el-form-item>
  208. </el-col>
  209. <el-col :span="5">
  210. <el-form-item label="注册日期" prop="registerDate">
  211. <el-date-picker v-dateFormat v-model="carInfo.registerDate" :picker-options="pickerOptions"
  212. value-format="yyyy-MM-dd" type="date" placeholder="选择注册日期" placement="bottom-start"></el-date-picker>
  213. </el-form-item>
  214. </el-col>
  215. <el-col :span="5" :offset="1">
  216. <el-form-item label="发证日期" prop="issueDate">
  217. <el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
  218. placeholder="选择发证日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  219. </el-form-item>
  220. </el-col>
  221. <el-col :span="5" :offset="1" v-if="transferDateShow">
  222. <el-form-item label="转移登记日期" prop="transferDate">
  223. <el-date-picker v-dateFormat v-model="carInfo.transferDate" :picker-options="pickerOptions" type="date"
  224. placeholder="选择日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  225. </el-form-item>
  226. </el-col>
  227. </el-row>
  228. </el-form>
  229. </div>
  230. <div class="Enclosure flex f-c back">
  231. <div class="home flex j-s a-c">
  232. <div class="flex j-s a-c color" id="CheZhu">
  233. <img src="../../../../src/icon/车主信息.png" alt class="icon-img" />
  234. <span style="margin-left:10px;">车主信息</span>
  235. </div>
  236. <el-button size="small" type="primary" @click="uploaduser(2)">
  237. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>证件识别
  238. </el-button>
  239. </div>
  240. <el-form class="demo-ruleForm" :model="ownerInfo" ref="ownerInfo" :rules="rules" label-width="130px" size="small"
  241. style="margin-top: 15px" label-position="top">
  242. <el-row style="flex-wrap: wrap; display: flex;">
  243. <el-col :span="5">
  244. <el-form-item label="车主姓名" prop="name">
  245. <el-input v-model="ownerInfo.name" placeholder="请输入车主姓名"></el-input>
  246. </el-form-item>
  247. </el-col>
  248. <el-col :span="5" :offset="1">
  249. <el-form-item label="证件类型" prop="identifyType">
  250. <el-select v-model="ownerInfo.identifyType" placeholder="身份证" disabled>
  251. <el-option label="身份证" value="01"></el-option>
  252. </el-select>
  253. </el-form-item>
  254. </el-col>
  255. <el-col :span="5" :offset="1">
  256. <el-form-item label="证件号码" prop="identifyNumber">
  257. <el-input v-model="ownerInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  258. show-word-limit @blur="identifyblur('ownerInfo')"></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="5" :offset="1">
  262. <el-form-item label="年龄" prop="age">
  263. <el-input v-model="ownerInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  264. </el-form-item>
  265. </el-col>
  266. <el-col :span="5">
  267. <el-form-item label="性别" prop="gender">
  268. <el-select @change="genderChange" v-model="ownerInfo.gender" placeholder="请选择性别">
  269. <el-option label="男" value="男"></el-option>
  270. <el-option label="女" value="女"></el-option>
  271. </el-select>
  272. </el-form-item>
  273. </el-col>
  274. <el-col :span="5" :offset="1">
  275. <el-form-item label="车主手机号" prop="mobile">
  276. <el-input v-model="ownerInfo.mobile" placeholder="请输入车主手机号" type="text" maxlength="11"
  277. @paste.native="handlePaste($event, 'ownerInfo')" show-word-limit></el-input>
  278. </el-form-item>
  279. </el-col>
  280. <el-col :span="5" :offset="1">
  281. <el-form-item label="地址" prop="addr">
  282. <el-input v-model="ownerInfo.addr" placeholder="请输入地址" type="text"></el-input>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :span="5" :offset="1">
  286. <el-form-item label="有效期起期" prop="identifyValidDate">
  287. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidDate" value-format="yyyy-MM-dd"
  288. :picker-options="pickerOptions" type="date" placeholder="选择注册日期"
  289. placement="bottom-start"></el-date-picker>
  290. </el-form-item>
  291. </el-col>
  292. <el-col :span="5">
  293. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  294. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidEndDate" type="date" value-format="yyyy-MM-dd"
  295. placeholder="选择有效期" placement="bottom-start" style="width: calc(100% - 40px);"></el-date-picker>
  296. <div class="insure-long-term" @click="insureLongterm('ownerInfo')">长期</div>
  297. </el-form-item>
  298. </el-col>
  299. <el-col :span="5" :offset="1">
  300. <el-form-item label="电子邮箱" prop="email">
  301. <el-input v-model="ownerInfo.email" placeholder="请输入电子邮箱"></el-input>
  302. </el-form-item>
  303. </el-col>
  304. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="iscCrownerShow">
  305. <el-form-item label="省市区:">
  306. <el-cascader v-model="ownerInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  307. </el-form-item>
  308. </el-col>-->
  309. </el-row>
  310. </el-form>
  311. </div>
  312. <div class="Enclosure flex f-c back">
  313. <div class="home flex j-s a-c">
  314. <div class="flex j-s a-c">
  315. <img src="../../../../src/icon/投保人信息.png" alt class="icon-img" />
  316. <span style="margin-left:10px;">投保人信息</span>
  317. </div>
  318. <div class="flex a-c j-c">
  319. <div style="font-size:12px;margin:0 10px;">
  320. 同车主
  321. <el-switch v-model="tbczcarShow" active-color="#D42426" @change="tbczcarShowChange()"></el-switch>
  322. </div>
  323. <el-button size="small" type="primary" @click="uploaduser(3)">
  324. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  325. 证件识别
  326. </el-button>
  327. </div>
  328. </div>
  329. <el-form v-show="!tbczcarShow" class="demo-ruleForm" :model="policyHolderInfo" ref="policyHolderInfo" :rules="rules"
  330. label-width="130px" size="small " style="margin-top: 15px" label-position="top">
  331. <el-row style="flex-wrap: wrap; display: flex;">
  332. <el-col :span="5">
  333. <el-form-item label="投保人姓名" prop="name">
  334. <el-input v-model="policyHolderInfo.name" placeholder="请输入投保人姓名"></el-input>
  335. </el-form-item>
  336. </el-col>
  337. <el-col :span="5" :offset="1">
  338. <el-form-item label="证件类型" prop="identifyType">
  339. <el-select v-model="policyHolderInfo.identifyType" placeholder="身份证" disabled>
  340. <el-option label="身份证" value="01"></el-option>
  341. </el-select>
  342. </el-form-item>
  343. </el-col>
  344. <el-col :span="5" :offset="1">
  345. <el-form-item label="证件号码" prop="identifyNumber">
  346. <el-input v-model="policyHolderInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  347. show-word-limit @blur="identifyblur('policyHolderInfo')"></el-input>
  348. </el-form-item>
  349. </el-col>
  350. <el-col :span="5" :offset="1">
  351. <el-form-item label="年龄" prop="age">
  352. <el-input v-model="policyHolderInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  353. </el-form-item>
  354. </el-col>
  355. <el-col :span="5">
  356. <el-form-item label="性别" prop="gender">
  357. <el-select v-model="policyHolderInfo.gender" placeholder="请选择性别">
  358. <el-option label="男" value="男"></el-option>
  359. <el-option label="女" value="女"></el-option>
  360. </el-select>
  361. </el-form-item>
  362. </el-col>
  363. <el-col :span="5" :offset="1">
  364. <el-form-item label="投保人手机号" prop="mobile">
  365. <el-input v-model="policyHolderInfo.mobile" placeholder="请输入投保人手机号" maxlength="11" type="text"
  366. @paste.native="handlePaste($event, 'policyHolderInfo')" show-word-limit></el-input>
  367. </el-form-item>
  368. </el-col>
  369. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  370. <el-form-item label="省市区:">
  371. <el-cascader v-model="selectedOptions2" :options="areaOptions"
  372. @change="event => areahandleChange(event, 'policyHolderInfo')"></el-cascader>
  373. </el-form-item>
  374. </el-col>-->
  375. <el-col :span="5" :offset="1">
  376. <el-form-item label="地址" prop="addr">
  377. <el-input v-model="policyHolderInfo.addr" placeholder="请输入地址" type="text"></el-input>
  378. </el-form-item>
  379. </el-col>
  380. <el-col :span="5" :offset="1">
  381. <el-form-item label="有效期起期" prop="identifyValidDate">
  382. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidDate" value-format="yyyy-MM-dd"
  383. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  384. </el-form-item>
  385. </el-col>
  386. <el-col :span="5">
  387. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  388. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidEndDate" type="date"
  389. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  390. style="width: calc(100% - 40px);"></el-date-picker>
  391. <div class="insure-long-term" @click="insureLongterm('policyHolderInfo')">长期</div>
  392. </el-form-item>
  393. </el-col>
  394. <el-col :span="5" :offset="1">
  395. <el-form-item label="电子邮箱" prop="email">
  396. <el-input v-model="policyHolderInfo.email" placeholder="请输入电子邮箱"></el-input>
  397. </el-form-item>
  398. </el-col>
  399. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isApplicantShow">
  400. <el-form-item label="省市区:">
  401. <el-cascader v-model="policyHolderInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  402. </el-form-item>
  403. </el-col>-->
  404. </el-row>
  405. </el-form>
  406. </div>
  407. <div class="Enclosure flex f-c back">
  408. <div class="home flex j-s a-c">
  409. <div class="flex j-s a-c">
  410. <img src="../../../../src/icon/被投保人信息.png" alt class="icon-img" />
  411. <span style="margin-left:10px;">被保人信息</span>
  412. </div>
  413. <div class="flex j-s a-c">
  414. <div style="font-size:12px;margin:0 10px;">
  415. 同投保人
  416. <el-switch v-model="bbtbcarShow" active-color="#D42426" @change="bbtbcarShowChange()"></el-switch>
  417. </div>
  418. <div style="font-size:12px;margin:0 10px;">
  419. 同车主
  420. <el-switch v-model="bbczcarShow" active-color="#D42426" @change="bbczcarShowChange()"></el-switch>
  421. </div>
  422. <el-button size="small" type="primary" @click="uploaduser(4)">
  423. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  424. 证件识别
  425. </el-button>
  426. </div>
  427. </div>
  428. <el-form v-show="!bbtbcarShow && !bbczcarShow" class="demo-ruleForm" :model="insuredPersonInfo"
  429. ref="insuredPersonInfo" :rules="rules" label-width="130px" size="small" style="margin-top: 15px"
  430. label-position="top">
  431. <el-row style="flex-wrap: wrap; display: flex;">
  432. <el-col :span="5">
  433. <el-form-item label="被保人姓名" prop="name">
  434. <el-input v-model="insuredPersonInfo.name" placeholder="请输入被保人姓名"></el-input>
  435. </el-form-item>
  436. </el-col>
  437. <el-col :span="5" :offset="1">
  438. <el-form-item label="证件类型" prop="identifyType">
  439. <el-select v-model="insuredPersonInfo.identifyType" placeholder="身份证" disabled>
  440. <el-option label="身份证" value="01"></el-option>
  441. </el-select>
  442. </el-form-item>
  443. </el-col>
  444. <el-col :span="5" :offset="1">
  445. <el-form-item label="证件号码" prop="identifyNumber">
  446. <el-input v-model="insuredPersonInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  447. show-word-limit @blur="identifyblur('insuredPersonInfo')"></el-input>
  448. </el-form-item>
  449. </el-col>
  450. <el-col :span="5" :offset="1">
  451. <el-form-item label="年龄" prop="age">
  452. <el-input v-model="insuredPersonInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  453. </el-form-item>
  454. </el-col>
  455. <el-col :span="5">
  456. <el-form-item label="性别" prop="gender">
  457. <el-select v-model="insuredPersonInfo.gender" placeholder="请选择性别">
  458. <el-option label="男" value="男"></el-option>
  459. <el-option label="女" value="女"></el-option>
  460. </el-select>
  461. </el-form-item>
  462. </el-col>
  463. <el-col :span="5" :offset="1">
  464. <el-form-item label="被保人手机号" prop="mobile">
  465. <el-input v-model="insuredPersonInfo.mobile" placeholder="请输入被保人手机号" maxlength="11" type="text"
  466. @paste.native="handlePaste($event, 'insuredPersonInfo')" show-word-limit></el-input>
  467. </el-form-item>
  468. </el-col>
  469. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  470. <el-form-item label="省市区:">
  471. <el-cascader v-model="selectedOptions3" :options="areaOptions"
  472. @change="event => areahandleChange(event, 'insuredPersonInfo')"></el-cascader>
  473. </el-form-item>
  474. </el-col>-->
  475. <el-col :span="5" :offset="1">
  476. <el-form-item label="地址" prop="addr">
  477. <el-input v-model="insuredPersonInfo.addr" placeholder="请输入地址" type="text"></el-input>
  478. </el-form-item>
  479. </el-col>
  480. <el-col :span="5" :offset="1">
  481. <el-form-item label="有效期起期" prop="identifyValidDate">
  482. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidDate" value-format="yyyy-MM-dd"
  483. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  484. </el-form-item>
  485. </el-col>
  486. <el-col :span="5">
  487. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  488. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidEndDate" type="date"
  489. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  490. style="width: calc(100% - 40px);"></el-date-picker>
  491. <div class="insure-long-term" @click="insureLongterm('insuredPersonInfo')">长期</div>
  492. </el-form-item>
  493. </el-col>
  494. <el-col :span="5" :offset="1">
  495. <el-form-item label="电子邮箱" prop="email">
  496. <el-input v-model="insuredPersonInfo.email" placeholder="请输入电子邮箱"></el-input>
  497. </el-form-item>
  498. </el-col>
  499. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isInsuredShow">
  500. <el-form-item label="省市区:">
  501. <el-cascader v-model="insuredPersonInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  502. </el-form-item>
  503. </el-col>-->
  504. </el-row>
  505. </el-form>
  506. </div>
  507. <div class="Enclosure flex f-c back">
  508. <div class="home flex j-s a-c">
  509. <div class="flex j-s a-c color" id="insurance">
  510. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" />
  511. <span style="margin-left:10px;">投保信息</span>
  512. <el-switch style="margin:0 10px 0 30px;" @change="immediatelyChange" v-model="immediatelyValue"
  513. active-color="#D42426"></el-switch>
  514. <span style="font-weight:normal;font-size: 13px;">即时投保</span>
  515. </div>
  516. </div>
  517. <el-form class="back demo-ruleForm" :inline="true" :model="Carinsurance" label-width="150px" size="small"
  518. style="margin-top: 15px" label-position="top">
  519. <div class="flex j-start a-c">
  520. <div class="flex j-c a-start">
  521. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="jqchecked"
  522. @change="jqcheckedChange"></el-checkbox>
  523. <div class="flex f-c a-c">
  524. <el-form-item label="交强险起保日期" prop="identifyNumber">
  525. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqstartDate" @change="jqChange"
  526. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  527. </el-form-item>
  528. <el-form-item label="交强险终保日期" prop="identifyNumber">
  529. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqendDate" type="datetime"
  530. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  531. </el-form-item>
  532. </div>
  533. </div>
  534. <div class="flex f-c a-c synchronous" style="margin: 0 50px;" @click="synchronization">
  535. <span style="font-size:12px;">同步</span>
  536. </div>
  537. <div class="flex j-c a-start">
  538. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="sychecked"
  539. @change="sycheckedChange"></el-checkbox>
  540. <div class="flex f-c a-c">
  541. <el-form-item label="商业险起保日期" prop="name">
  542. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="systartDate" @change="syChange"
  543. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  544. </el-form-item>
  545. <el-form-item label="商业险终保日期" prop="name">
  546. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="syendDate" type="datetime"
  547. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  548. </el-form-item>
  549. </div>
  550. </div>
  551. </div>
  552. </el-form>
  553. </div>
  554. <div class="Enclosure flex f-c back">
  555. <div class="home flex j-s a-c">
  556. <div class="flex j-s a-c color" id="insurance">
  557. <img src="../../../../src/icon/车船税.png" alt class="icon-img" />
  558. <span style="margin-left:10px;">车船税</span>
  559. </div>
  560. </div>
  561. <el-form class="demo-ruleForm" :model="vehicleAndVesselTaxForm" ref="vehicleAndVesselTaxForm" :rules="rules"
  562. label-width="160px" size="small" style="margin-top: 15px" label-position="top">
  563. <el-row style="flex-wrap: wrap; display: flex;">
  564. <el-col :span="5">
  565. <el-form-item label="纳税类型:" prop="taxRelifFlag">
  566. <el-select @change="taxRelifFlagChange" v-model="vehicleAndVesselTaxForm.taxRelifFlag" placeholder="纳税类型">
  567. <el-option v-for="(item, index) in taxRelifFlagoptions" :key="index" :label="item.dictTag"
  568. :value="item.dictValue"></el-option>
  569. </el-select>
  570. </el-form-item>
  571. </el-col>
  572. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  573. <el-form-item label="纳税人识别号:" prop="identifyNumber">
  574. <el-input v-model="vehicleAndVesselTaxForm.identifyNumber" placeholder="请输入纳税人识别号" type="text"></el-input>
  575. </el-form-item>
  576. </el-col>
  577. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  578. <el-form-item label="纳税人名称:" prop="taxpayerName">
  579. <el-input v-model="vehicleAndVesselTaxForm.taxpayerName" placeholder="请输入纳税人名称" type="text"></el-input>
  580. </el-form-item>
  581. </el-col>
  582. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  583. <el-form-item label="证件类型:" prop="taxpayerIdentifier">
  584. <el-select v-model="vehicleAndVesselTaxForm.taxpayerIdentifier" placeholder="证件类型" clearable>
  585. <el-option v-for="(item, index) in taxpayerIdentifieroptions" :key="index" :label="item.dictTag"
  586. :value="item.dictValue"></el-option>
  587. </el-select>
  588. </el-form-item>
  589. </el-col>
  590. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
  591. :span="5" :offset="1">
  592. <el-form-item label="减免税凭证号:" prop="extendChar2">
  593. <el-input v-model="vehicleAndVesselTaxForm.extendChar2" placeholder="请输入减免税凭证号" type="text"></el-input>
  594. </el-form-item>
  595. </el-col>
  596. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  597. <el-form-item label="完税凭证号:" prop="paidFreeCertificate">
  598. <el-input v-model="vehicleAndVesselTaxForm.paidFreeCertificate" placeholder="请输入完税凭证号"
  599. type="text"></el-input>
  600. </el-form-item>
  601. </el-col>
  602. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
  603. :span="5" :offset="1">
  604. <el-form-item label="减免税原因:" prop="relifReason">
  605. <el-select v-model="vehicleAndVesselTaxForm.relifReason" placeholder="减免税原因" clearable>
  606. <el-option v-for="(item, index) in relifReasonoptions" :key="index" :label="item.dictTag"
  607. :value="item.dictValue"></el-option>
  608. </el-select>
  609. </el-form-item>
  610. </el-col>
  611. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5" :offset="1">
  612. <el-form-item label="税务机关代码:" prop="taxComCode">
  613. <el-input v-model="vehicleAndVesselTaxForm.taxComCode" placeholder="请输入税务机关代码" type="text"></el-input>
  614. </el-form-item>
  615. </el-col>
  616. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5"
  617. :offset="vehicleAndVesselTaxForm.taxRelifFlag == 4 ? 1 : 0">
  618. <el-form-item label="税务机关名称:" prop="taxComName">
  619. <el-input v-model="vehicleAndVesselTaxForm.taxComName" placeholder="请输入税务机关名称" type="text"></el-input>
  620. </el-form-item>
  621. </el-col>
  622. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5">
  623. <el-form-item label="完税凭证填发日期:" prop="taxDocumentDate">
  624. <el-date-picker v-dateFormat v-model="vehicleAndVesselTaxForm.taxDocumentDate" value-format="yyyy-MM-dd"
  625. type="date" placeholder="完税凭证填发日期" placement="bottom-start"></el-date-picker>
  626. </el-form-item>
  627. </el-col>
  628. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  629. <el-form-item label="完税凭证地区:" prop="taxPaidAreaCode">
  630. <el-select v-model="vehicleAndVesselTaxForm.taxPaidAreaCode" placeholder="完税凭证地区" clearable>
  631. <el-option v-for="(item, index) in provinceSelect" :key="index" :label="item.name"
  632. :value="item.code"></el-option>
  633. </el-select>
  634. </el-form-item>
  635. </el-col>
  636. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 3" :span="5" :offset="1">
  637. <el-form-item label="减税比例:" prop="taxRelief">
  638. <el-input v-model="vehicleAndVesselTaxForm.taxRelief" placeholder="请输入0~1的数值" type="text"></el-input>
  639. </el-form-item>
  640. </el-col>
  641. </el-row>
  642. </el-form>
  643. </div>
  644. <div class="Enclosure flex f-c back">
  645. <div class="home flex j-s a-c back">
  646. <div class="flex j-s a-c" id="more">
  647. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" />
  648. <span style="margin-left:15px;width: 120px">险别选择</span>
  649. <el-select size="small" style="width:70%" v-model="packageValue" placeholder="请选择套餐" @change="packageChange">
  650. <el-option v-for="item in packageOptions" :key="item.id" :label="item.title" :value="item.id"></el-option>
  651. </el-select>
  652. </div>
  653. </div>
  654. <div class="flex f-c more">
  655. <div class="flex j-s a-c more-title back">
  656. <div style="width:590px;padding-left:100px;" class="flex j-s a-c">
  657. <span>险别</span>
  658. <span>保额(元)</span>
  659. </div>
  660. </div>
  661. <div class="flex a-c more-data back" v-for="(insureitem, insureindex) in insureList" :key="insureindex">
  662. <div style="width:700px;padding-left: 100px;" class="flex j-s a-c">
  663. <div style="width:auto;">
  664. <span style="text-align:center;">
  665. {{ insureitem.kindName }}
  666. <el-input
  667. v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'"
  668. v-model="sumseatCount" style="width:40px;margin:0 5px;" size="small" placeholder disabled></el-input>
  669. <span
  670. v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'">座</span>
  671. </span>
  672. </div>
  673. <el-select v-if="insureitem.amtList" filterable v-model="insureitem.amount" placeholder="请选择"
  674. @change="insureitemChange" size="small" style="width: 300px;">
  675. <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
  676. :key="index"></el-option>
  677. </el-select>
  678. <span v-else>
  679. <el-input-number size="small" style="width: 280px;margin-right:10px" v-model="insureitem.amount"
  680. :min="0"></el-input-number>次
  681. </span>
  682. </div>
  683. </div>
  684. <!-- <div style="margin:0 auto;font-size: 14px;cursor: pointer;margin-top:15px;">
  685. <span v-show="insureMore" @click="selectMore(insureList.length)">
  686. 查看更多
  687. <i class="el-icon-arrow-down"></i>
  688. </span>
  689. <span v-show="!insureMore" @click="packup()">
  690. 收起
  691. <i class="el-icon-arrow-up"></i>
  692. </span>
  693. </div>-->
  694. </div>
  695. </div>
  696. <div class="Enclosure flex f-c back">
  697. <div class="home flex j-s">
  698. <div class="flex j-s a-c" id="company">
  699. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" />
  700. <span style="margin-left:10px;">保险公司</span>
  701. <div class="csstool">
  702. <span>是否过户车</span>
  703. <el-switch @change="transferFlagChange" v-model="carInfo.transferFlag" active-color="#D42426"></el-switch>
  704. </div>
  705. <div class="csstool">
  706. <span>商业险是否过户</span>
  707. <el-switch v-model="carInfo.transferFlagBi" active-color="#D42426"></el-switch>
  708. </div>
  709. <div class="csstool">
  710. <span>是否脱保</span>
  711. <el-switch v-model="carInfo.outOfInsurance" active-color="#D42426"></el-switch>
  712. </div>
  713. <div class="csstool">
  714. <span>是否二手车</span>
  715. <el-switch v-model="carInfo.usedCar" active-color="#D42426"></el-switch>
  716. </div>
  717. </div>
  718. <div class="flex j-c a-c">
  719. <el-button v-show="imageUploadShow" size="small" type="primary" @click="imageUpload()">
  720. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  721. 影像上传
  722. </el-button>
  723. </div>
  724. </div>
  725. <div>
  726. <div class="companyhead">
  727. <el-row>
  728. <el-col :span="1">
  729. <el-checkbox style="margin:0 10px 0 10px" @change="handleCheckAllChange"></el-checkbox>
  730. <span style="font-size:14px;">全选</span>
  731. </el-col>
  732. <el-col :span="2" style="margin: 0 42px 0 35px;">
  733. <span>保险公司</span>
  734. </el-col>
  735. <el-col :span="5">
  736. <span>报价协议</span>
  737. </el-col>
  738. <el-col :span="3">
  739. <span>报价结果</span>
  740. </el-col>
  741. <el-col :span="3">
  742. <span>交强险</span>
  743. </el-col>
  744. <el-col :span="3">
  745. <span>车船税</span>
  746. </el-col>
  747. <el-col :span="3">
  748. <span>商业险</span>
  749. </el-col>
  750. <el-col :span="2">
  751. <span>驾意险</span>
  752. </el-col>
  753. </el-row>
  754. </div>
  755. <div class="coll">
  756. <div v-loading.fullscreen.lock="loading" class="hovers" v-for="(reslistitem, reslistindex) in totalCompanyList"
  757. :key="reslistindex">
  758. <el-row>
  759. <el-col :span="1" style="margin-left: 20px;">
  760. <el-checkbox v-model="reslistitem.checked"
  761. @change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex)"></el-checkbox>
  762. </el-col>
  763. <el-col :span="3">
  764. <img :src="reslistitem.logo" alt
  765. style="width:30px; height:30px;vertical-align: middle;margin-left:20px" />
  766. <span>{{ reslistitem.namesimple }}</span>
  767. </el-col>
  768. <el-col :span="5">
  769. <el-select size="small" v-if="reslistitem.isTaxSource && reslistitem.isTaxSource == '1'" :disabled="true"
  770. placeholder="默认" style="width: 230px;" v-model="isTaxSourceModel" :clearable="true"></el-select>
  771. <el-select size="small" v-else :disabled="!reslistitem.checked" v-model="reslistitem.agreementId"
  772. placeholder="请选择协议" style="width: 230px;" :clearable="true"
  773. @change="val => agreementChange(val, reslistitem.agreement, reslistindex, reslistitem)">
  774. <div v-for="(agreementitem, agreementindex ) in reslistitem.agreement" :key="agreementindex">
  775. <div
  776. v-if="agreementitem.licenseNo && agreementitem.licenseNo.length > 0 && carInfo.licenseNo.length > 0 ? agreementitem.licenseNo.includes(carInfo.licenseNo.slice(0, 2)) : 'true'">
  777. <el-option :label="agreementitem.agreementName" :value="agreementitem.id"
  778. :disabled="agreementitem.disabled"></el-option>
  779. </div>
  780. </div>
  781. </el-select>
  782. </el-col>
  783. <el-col :span="3">
  784. <div v-show="reslistitem.quoteCode == '0'">
  785. <span>未报价</span>
  786. </div>
  787. <div v-show="reslistitem.quoteCode == '1'">
  788. <i style="color:#D42426" class="el-icon-loading"></i>
  789. </div>
  790. <div class="dis f-c" v-show="reslistitem.quoteCode == '200'">
  791. <span style="color:#D42426;font-weight:bold;">
  792. ¥{{
  793. reslistitem.result.sumPermium
  794. }}
  795. </span>
  796. <span style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{ reslistitem.result.sumExportFee
  797. }}</span>
  798. </div>
  799. </el-col>
  800. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  801. <div class="dis f-c">
  802. <span style="color:#D42426;font-weight:bold;">
  803. ¥{{
  804. reslistitem.result.jqPremium }}
  805. </span>
  806. <span v-if="reslistitem.result.jqPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{
  807. reslistitem.result.jqExportFee }}</span>
  808. </div>
  809. </el-col>
  810. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  811. <span style="color:#D42426;font-weight:bold;">
  812. ¥{{
  813. reslistitem.result.taxAmount }}
  814. </span>
  815. </el-col>
  816. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  817. <div class="dis f-c">
  818. <span style="color:#D42426;font-weight:bold;">
  819. ¥{{
  820. reslistitem.result.syPremium }}
  821. </span>
  822. <span v-if="reslistitem.result.syPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{
  823. reslistitem.result.syExportFee }}</span>
  824. </div>
  825. </el-col>
  826. <el-col :span="2" v-if="reslistitem.quoteCode == '200'" style="">
  827. <div class="dis f-c">
  828. <span style="color:#D42426;font-weight:bold;">
  829. {{
  830. reslistitem.result.jyPremium ? '¥' + reslistitem.result.jyPremium : '无' }}
  831. </span>
  832. <span v-if="reslistitem.result.jyPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{
  833. reslistitem.result.noExportFee }}</span>
  834. </div>
  835. </el-col>
  836. <el-col :span="24" v-show="reslistitem.quoteCode == '200' && reslistitem.result.feeNoDescription">
  837. <div class="flex offer-time" style="color:#D42426">
  838. <span>该车未匹配销管费用,不建议投保!</span>
  839. <el-tooltip class="item" effect="dark" content="费用匹配错误信息" placement="top">
  840. <i class="el-icon-s-goods"
  841. @click="open3(reslistitem.namesimple + '优惠信息', reslistitem.result.feeNoDescription)"
  842. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  843. :disabled="reslistitem.quoteCode == '200' && reslistitem.result.feeNoDescription"></i>
  844. </el-tooltip>
  845. </div>
  846. </el-col>
  847. <el-col :span="24"
  848. v-show="(reslistitem.quoteCode != '200') && (reslistitem.quoteCode != '0') && (reslistitem.quoteCode != '1')">
  849. <div class="flex j-s offer-time" style="color:#D42426">{{ reslistitem.msg.length > 500 ?
  850. reslistitem.msg.slice(0, 500) : reslistitem.msg }}</div>
  851. </el-col>
  852. </el-row>
  853. <div class="flex j-s offer-time" v-if="reslistitem.quoteCode == '200'">
  854. <div style="line-height: 25px;">
  855. 保险期限:
  856. <span v-show="reslistitem.result.startDateJq">
  857. 【交强险】
  858. <span>
  859. {{ reslistitem.result.startDateJq }} -
  860. {{ reslistitem.result.endDateJq }}
  861. </span>
  862. </span>
  863. <span v-show="reslistitem.result.startDateSy" style="margin-left: 20px;">
  864. 【商业险】
  865. <span>
  866. {{ reslistitem.result.startDateSy }} -
  867. {{ reslistitem.result.endDateSy }}
  868. </span>
  869. </span>
  870. <span @click="syncData(reslistitem.result)">
  871. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  872. <i style="color:red" class="el-icon-time"></i>
  873. </el-tooltip>
  874. </span>
  875. <div>
  876. <span v-show="reslistitem.result.JqExportFee">
  877. 交强出口费用<span>{{ reslistitem.result.JqExportFee }}</span>
  878. </span>
  879. <span v-show="reslistitem.result.syExportFee">
  880. 商业出口费用<span>{{ reslistitem.result.syExportFee }}</span>
  881. </span>
  882. <span v-show="reslistitem.result.noExportFee">
  883. 非车出口费用<span> {{ reslistitem.result.noExportFee }}</span>
  884. </span>
  885. </div>
  886. <div>
  887. <span v-if="reslistitem.namesimple == '永诚财险'">
  888. 光博分:
  889. <span>
  890. {{ reslistitem.result.ilogPreUdwMess ?
  891. reslistitem.result.ilogPreUdwMess : '无' }}
  892. </span>
  893. </span>
  894. <span v-else>
  895. 评分:
  896. <span>
  897. {{ reslistitem.result.ilogPreUdwMess ?
  898. reslistitem.result.ilogPreUdwMess : '无' }}
  899. </span>
  900. </span>
  901. <span v-if="reslistitem.result.jqScore" class="marginL">
  902. 交强类型评分:
  903. <span>{{ reslistitem.result.jqScore }}</span>
  904. </span>
  905. <span v-if="reslistitem.result.syScore" class="marginL">
  906. 商业类型评分:
  907. <span>{{ reslistitem.result.syScore }}</span>
  908. </span>
  909. <span v-if="reslistitem.result.lossRation" class="marginL">
  910. 总赔付率:
  911. <span>{{ reslistitem.result.lossRation }}</span>
  912. </span>
  913. <span v-if="reslistitem.result.jqLossRation" class="marginL">
  914. 交强赔付率:
  915. <span>{{ reslistitem.result.jqLossRation }}</span>
  916. </span>
  917. <span v-if="reslistitem.result.syLossRation" class="marginL">
  918. 商业赔付率:
  919. <span>{{ reslistitem.result.syLossRation }}</span>
  920. </span>
  921. <span v-if="reslistitem.result.totalAdjustRate" class="marginL">
  922. 自主定价系数:
  923. <span>{{ reslistitem.result.totalAdjustRate }}</span>
  924. </span>
  925. <span v-if="reslistitem.result.jgAdjustRate" class="marginL">
  926. 交强折扣系数:
  927. <span>{{ reslistitem.result.jgAdjustRate }}</span>
  928. </span>
  929. <span v-if="reslistitem.result.syAdjustRate" class="marginL">
  930. 商业折扣系数:
  931. <span>{{ reslistitem.result.syAdjustRate }}</span>
  932. </span>
  933. <span v-if="reslistitem.result.jqRenewal" class="marginL">
  934. 交强续保:
  935. <span>
  936. {{
  937. reslistitem.result.jqRenewal? reslistitem.result.jqRenewal:"无" }}
  938. </span>
  939. </span>
  940. <span v-if="reslistitem.result.syRenewal" class="marginL">
  941. 商业续保:
  942. <span>
  943. {{
  944. reslistitem.result.syRenewal? reslistitem.result.syRenewal:"无" }}
  945. </span>
  946. </span>
  947. <span v-if="reslistitem.result.jqClaims" class="marginL">
  948. 交强出险次数:
  949. <span>
  950. {{
  951. reslistitem.result.jqClaims? reslistitem.result.jqClaims:'无' }}
  952. </span>
  953. </span>
  954. <span v-if="reslistitem.result.syClaims" class="marginL">
  955. 商业出险次数:
  956. <span>
  957. {{
  958. reslistitem.result.syClaims? reslistitem.result.syClaims:'无' }}
  959. </span>
  960. </span>
  961. <span v-if="reslistitem.namesimple == '紫金财险' && reslistitem.result.ubiPredictedInfoScore"
  962. class="marginL">
  963. 紫金能源车(鼎然-车辆风险评分):
  964. <span>{{ reslistitem.result.ubiPredictedInfoScore }}</span>
  965. </span>
  966. <span v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '1'">真单交</span>
  967. <span v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '0'">假单交</span>
  968. </div>
  969. </div>
  970. <div style="text-align: right;">
  971. <div style="color:#2D4D89; ">
  972. <el-tooltip class="item" effect="dark" content="上年信息" placement="top">
  973. <i class="el-icon-chat-dot-round" @click="open2(reslistitem.namesimple, reslistitem.lastYearMsg)"
  974. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  975. :disabled="reslistitem.namesimple == '众安财险' && reslistitem.result.tips == '需要验车'"
  976. v-show="(reslistitem.quoteCode == '200' && reslistitem.lastYearMsg)"></i>
  977. </el-tooltip>
  978. <el-tooltip class="item" effect="dark" content="预核保信息" placement="top">
  979. <i class="el-icon-chat-dot-round"
  980. @click="openPredictInfo(reslistitem.namesimple, reslistitem.predictInfo)"
  981. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  982. v-show="(reslistitem.quoteCode == '200' && reslistitem.predictInfo && reslistitem.predictInfo.length > 0 && reslistitem.namesimple == '中国人寿')"></i>
  983. </el-tooltip>
  984. <el-button :disabled="reslistitem.namesimple == '众安财险' && reslistitem.result.tips == '需要验车'"
  985. v-show="reslistitem.quoteCode == '200' && !('editStatus' in reslistitem.result)" type="text"
  986. size="small" style="color:#2D4D89;font-size:14px" @click="hbsubmitdialog(reslistitem)">下单</el-button>
  987. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
  988. style="color:#2D4D89;font-size:14px "
  989. @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
  990. </div>
  991. <div>
  992. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small" style="font-size:14px "
  993. @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
  994. <el-button type="text" size="small" style="font-size:14px "
  995. @click="Payment(reslistitem.result.companyId, reslistitem.namesimple)"
  996. v-show="reslistitem.orderstatus == '2' && !('editStatus' in reslistitem.result)">付款码</el-button>
  997. </div>
  998. </div>
  999. </div>
  1000. <template>
  1001. <!-- <div style="margin:20px 0 0 100px;" v-if="reslistitem.checked && reslistitem.agreementId"> -->
  1002. <span v-if="reslistitem.checked && reslistitem.agreementId && reslistitem.underwritingDescription"
  1003. style="margin:20px 20px 0 100px;display: inline-block">{{ reslistitem.underwritingDescription }}</span>
  1004. <!-- </div> -->
  1005. </template>
  1006. <template v-if="reslistitem.namesimple == '恒邦财险' && reslistitem.checked && reslistitem.agreementId">
  1007. <div class="flex f-c Driving-risk">
  1008. <div class="dis a-c" style="margin:15px 0">
  1009. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1010. <el-select style="width: 250px;margin-right:60px" filterable size="small" clearable
  1011. v-model="insuranceHB" placeholder="未选择" @clear="clearAccidentFormHB"
  1012. @change="hengbangInsuranceChange">
  1013. <el-option v-for="(item, index) in hengbangInsuranceData" :key="index" :label="item.projectName"
  1014. :value="item.projectCode"></el-option>
  1015. </el-select>
  1016. 保费: <b>{{ hengbangaccidentalDrivingVo.sumgrosspremium || 0 }}&ensp;元</b>
  1017. </div>
  1018. <el-table size="small" :data="HBInsuranceData" border v-if="insuranceHB" @row-click="HBDrivingChange"
  1019. ref="RsTable" highlight-current-row
  1020. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1021. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1022. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  1023. <!-- <el-table-column prop="sumgrosspremium" label="保费 (元)/每份" align="center">
  1024. <template slot-scope="scope">
  1025. <span>¥{{ scope.row.sumgrosspremium }}</span>
  1026. </template>
  1027. </el-table-column>
  1028. <el-table-column label="份数" align="center">
  1029. <template slot-scope="scope">
  1030. <span>{{ scope.row.quantity }}</span>
  1031. </template>
  1032. </el-table-column> -->
  1033. </el-table>
  1034. </div>
  1035. </template>
  1036. <template v-if="reslistitem.namesimple == '华农财险' && reslistitem.checked && reslistitem.agreementId">
  1037. <div class="flex f-c Driving-risk">
  1038. <el-form :inline="true" :model="accidentFormHN" class="demo-form-inline"
  1039. style="font-weight:bold;margin-top:15px" size="small">
  1040. <el-form-item label="意外险类型:" style="margin-right:30px;">
  1041. <el-select clearable v-model="accidentFormHN.accidentType" placeholder="未选择"
  1042. @clear="clearAccidentFormHN" @change="huanongInsuranceChange">
  1043. <el-option v-for="(item, index) in huanongInsuranceData" :key="index" :label="item.projectName"
  1044. :value="item.projectCode"></el-option>
  1045. </el-select>
  1046. </el-form-item>
  1047. <el-form-item label="选择份数" style="margin-right:30px;">
  1048. <el-input-number v-model="accidentFormHN.quantity" :min="1"
  1049. controls-position="right"></el-input-number>
  1050. <!-- <span style="margin-left: 5px;">份</span> -->
  1051. </el-form-item>
  1052. </el-form>
  1053. <el-table v-if="accidentFormHN.accidentType" size="small" :data="HNInsuranceData" border ref="expandTable"
  1054. highlight-current-row
  1055. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1056. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1057. <el-table-column prop="amount" label="保额" align="center">
  1058. <template slot-scope="scope">
  1059. <el-input v-model="scope.row.amount" placeholder="请输入内容" size="small" disabled></el-input>
  1060. </template>
  1061. </el-table-column>
  1062. </el-table>
  1063. </div>
  1064. </template>
  1065. <template v-if="reslistitem.namesimple == '太平财险' && reslistitem.checked && reslistitem.agreementId">
  1066. <div class="flex f-c Driving-risk">
  1067. <div class="dis a-c" style="margin:15px 0">
  1068. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1069. <el-select style="width: 250px;margin-right:60px" filterable size="small" clearable
  1070. v-model="insuranceTP" placeholder="未选择" @clear="clearAccidentFormTP" @change="taipingInsuranceChange">
  1071. <el-option v-for="(item, index) in taipingInsuranceData" :key="index" :label="item.projectName"
  1072. :value="item.projectCode"></el-option>
  1073. </el-select>
  1074. 每份价税合计: <b>{{ taipingaccidentalDrivingVo.sumPremium || 0 }}&ensp;元</b>
  1075. </div>
  1076. <el-table size="small" :data="TPInsuranceData" border v-if="insuranceTP" ref="RsTable"
  1077. highlight-current-row
  1078. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1079. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1080. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  1081. <!-- <el-table-column prop="rationName" label="投保产品" align="center"></el-table-column>
  1082. <el-table-column label="投保份数" align="center" prop="quantity">
  1083. <template>
  1084. <span>1</span>
  1085. </template>
  1086. </el-table-column>
  1087. <el-table-column prop="price" label="每份价税合计" align="center"></el-table-column>
  1088. <el-table-column prop="endSeatNum" label="最大座位数" align="center"></el-table-column> -->
  1089. </el-table>
  1090. </div>
  1091. </template>
  1092. <template v-if="reslistitem.namesimple == '安盛天平' && reslistitem.checked && reslistitem.agreementId">
  1093. <div class="flex f-c Driving-risk">
  1094. <div class="dis a-c" style="margin-top:15px">
  1095. <span style="margin-right:15px;font-weight:bold;">意外险类型</span>
  1096. <el-select style="width: 250px;" size="small" clearable v-model="anshengInsurancetype" placeholder="未选择"
  1097. @clear="clearAccidentFormAS" @change="anshengInsuranceChange">
  1098. <el-option v-for="(item, index) in anshengInsuranceData" :key="index"
  1099. :label="item.projectCode + ' ' + item.projectName" :value="item.projectCode"></el-option>
  1100. </el-select>
  1101. </div>
  1102. <el-table style='margin-top:20px;' size="small" :data="anshengInsuranceData1" border v-if="anshengInsurancetype" ref="RsTable"
  1103. highlight-current-row
  1104. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1105. <el-table-column align="center" width="55" label="选择">
  1106. <template slot-scope="scope">
  1107. <el-radio class="radio" v-model="AStemplateSelection" :label="scope.row.projectCode"
  1108. @click.native.stop.prevent="ASDrivingRadio(scope.row)">&nbsp;</el-radio>
  1109. </template>
  1110. </el-table-column>
  1111. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  1112. <el-table-column prop="projectCode" label="方案代码" align="center"></el-table-column>
  1113. <el-table-column prop="quantity" label="份数" align="center"> </el-table-column>
  1114. </el-table>
  1115. </div>
  1116. </template>
  1117. <template v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId">
  1118. <div style="margin:15px 0 15px 100px">
  1119. <span>商业险折扣:</span>
  1120. <el-input style="width:220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount"
  1121. placeholder="请输入内容"
  1122. @input="reslistitem.discount = reslistitem.discount.replace(/[^\d.]/g, '')"></el-input>
  1123. </div>
  1124. <div class="flex f-c Driving-risk">
  1125. <div class="dis a-c">
  1126. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1127. <el-select style="width: 250px;" filterable size="small" clearable v-model="insuranceRS"
  1128. placeholder="未选择" @clear="clearAccidentFormRS" @change="renshouInsuranceChange">
  1129. <el-option v-for="(item, index) in renshouInsuranceData" :key="index" :label="item.projectName"
  1130. :value="item.projectCode"></el-option>
  1131. </el-select>
  1132. </div>
  1133. <el-table size="small" style="margin-top:20px" :data="RSInsuranceData" border v-if="insuranceRS" @row-click="RSDrivingChange"
  1134. ref="RsTable" highlight-current-row
  1135. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1136. <el-table-column prop="name" label="方案名称" align="center"></el-table-column>
  1137. <el-table-column prop="premium" label="保费 (元)起" align="center">
  1138. <template slot-scope="scope">
  1139. <span>¥{{ scope.row.premium }}</span>
  1140. </template>
  1141. </el-table-column>
  1142. <el-table-column label="份数" align="center">
  1143. <template slot-scope="scope">
  1144. <span>{{ scope.row.quantity }}</span>
  1145. </template>
  1146. </el-table-column>
  1147. </el-table>
  1148. </div>
  1149. </template>
  1150. <template v-if="reslistitem.namesimple == '众安财险' && reslistitem.checked && reslistitem.agreementId">
  1151. <div class="flex f-c Driving-risk">
  1152. <div class="dis a-c" style="margin:15px 0">
  1153. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1154. <el-select style="width: 250px;" filterable size="small" clearable v-model="insuranceZA"
  1155. placeholder="未选择" @clear="clearAccidentFormZA" @change="zhonganInsuranceChange">
  1156. <el-option v-for="(item, index) in zhonganInsuranceData" :key="index" :label="item.projectName"
  1157. :value="item.projectCode"></el-option>
  1158. </el-select>
  1159. <!-- 保费: <b>{{ zhonganaccidentalDrivingVo.sumgrosspremium || 0}}&ensp;元</b> -->
  1160. </div>
  1161. <el-table size="small" :data="ZRInsuranceData" border v-if="insuranceZA" @row-click="ZADrivingChange"
  1162. ref="RsTable" highlight-current-row
  1163. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1164. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1165. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  1166. </el-table>
  1167. </div>
  1168. </template>
  1169. <template v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId">
  1170. <div style="margin:15px 0 15px 100px">
  1171. <span>自主定价系数:</span>
  1172. <el-input style="width:220px" size="small" v-model="reslistitem.coefficient"
  1173. placeholder="请输入内容"></el-input>
  1174. </div>
  1175. <div class="flex f-c Driving-risk">
  1176. <div class="dis a-c" style="margin-bottom:15px">
  1177. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1178. <el-select style="width: 250px;" filterable multiple size="small" clearable v-model="insuranceZJ"
  1179. placeholder="未选择" @clear="clearAccidentFormZJ" @change="zijinInsuranceChange">
  1180. <el-option v-for="(item, index) in ziJinInsuranceData" :key="index" :label="item.projectName"
  1181. :value="item.projectCode"></el-option>
  1182. </el-select>
  1183. </div>
  1184. <el-table size="small" :data="ZJInsuranceData" border v-if="insuranceZJ" @select="CheckboxChange"
  1185. filterable ref="expandTable" highlight-current-row
  1186. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1187. <el-table-column type="selection" width="55"></el-table-column>
  1188. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  1189. <el-table-column prop="sumAmount" label="总保额 (元)/每份" align="center"></el-table-column>
  1190. <el-table-column prop="sumPremium" label="保费 (元)/每份" align="center">
  1191. <template slot-scope="scope">
  1192. <span>¥{{ scope.row.sumPremium }}</span>
  1193. </template>
  1194. </el-table-column>
  1195. <el-table-column prop="quantity" label="份数" align="center">
  1196. <template slot-scope="scope">
  1197. <el-input-number v-model="scope.row.quantity" :min="1" size="small"
  1198. controls-position="right"></el-input-number>
  1199. </template>
  1200. </el-table-column>
  1201. <el-table-column prop="Totalprice" label="总保费 (元)" align="center">
  1202. <template slot-scope="scope">
  1203. <span v-if="scope.row.quantity">{{ scope.row.sumPremium * scope.row.quantity }}</span>
  1204. <span v-else>{{ scope.row.sumPremium }}</span>
  1205. </template>
  1206. </el-table-column>
  1207. </el-table>
  1208. </div>
  1209. </template>
  1210. <template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId">
  1211. <div class="flex f-c Driving-risk">
  1212. <el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small"
  1213. style="font-weight:bold;margin-top:15px">
  1214. <el-form-item label="意外险类型" style="margin-right:30px;">
  1215. <el-select clearable v-model="accidentForm.accidentType" placeholder="未选择" @clear="clearAccidentForm"
  1216. @change="ywxxxchange">
  1217. <el-option v-for="(item, index) in accidentDataList" :key="index" :label="item.projectName"
  1218. :value="item.projectCode"></el-option>
  1219. </el-select>
  1220. </el-form-item>
  1221. <el-form-item label="选择份数" style="margin-right:50px;">
  1222. <el-input-number v-model="accidentForm.quantity" @change="numberCopieschange" :min="1"
  1223. controls-position="right"></el-input-number>
  1224. <!-- <span style="margin-left: 5px;">份</span> -->
  1225. </el-form-item>
  1226. <el-form-item label="保费:">
  1227. <span>{{ accidentForm.sumPremium }}&ensp;元</span>
  1228. </el-form-item>
  1229. </el-form>
  1230. <el-table v-if="accidentForm.accidentType" size="small" :data="accidenttableData" border ref="expandTable"
  1231. highlight-current-row
  1232. :header-cell-style="{ background: '#F7F7F9', fontWeight: '700', color: '#333333' }">
  1233. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1234. <el-table-column prop="amount" label="每座保额 (元)/每份" align="center"></el-table-column>
  1235. <el-table-column prop="sumAmount" label="每车保额 (元)/每份" align="center"></el-table-column>
  1236. <el-table-column prop="premium" label="责任保费 (元)/每份" align="center"></el-table-column>
  1237. </el-table>
  1238. </div>
  1239. </template>
  1240. <template v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId">
  1241. <!-- <div style="margin:10px 0 0 100px;">
  1242. <span style="margin-right:20px"> {{reslistitem.underwritingDescription}}</span>-->
  1243. <el-button type="text" style="margin:10px 0 0 100px;" @click="contributingGuoRen(reslistitem.agreementId)">选择特约</el-button>
  1244. <!-- </div> -->
  1245. <div class="flex f-c Driving-risk">
  1246. <el-form :inline="true" :model="guoRenaccidentForm" class="demo-form-inline" size="small">
  1247. <el-form-item label="意外险类型" style="margin-right:30px;">
  1248. <el-select clearable placeholder="未选择" @clear="clearAccidentFormGr" @change="grcxchange"
  1249. v-model="guoRenaccidentForm.goodsCode">
  1250. <el-option v-for="(item, index) in guoRenaccidentDataList" :key="index" :label="item.projectName"
  1251. :value="item.projectCode"></el-option>
  1252. </el-select>
  1253. </el-form-item>
  1254. <el-form-item label=" ">
  1255. <el-select clearable v-model="guoRenaccidentForm.prodCode"
  1256. @change="grcxchangeChild">
  1257. <el-option v-for="(item, index) in guoRenaccidentDataListChild" :key="item.projectCode"
  1258. :label="item.projectName" :value="item.projectCode"></el-option>
  1259. </el-select>
  1260. </el-form-item>
  1261. <el-form-item label="选择份数" style="margin-right:30px;">
  1262. <el-input-number v-model="guoRenaccidentForm.quantity" :min="1" controls-position="right"
  1263. @change="numberCopieschangeGR"></el-input-number>
  1264. <!-- <span style="margin-left: 5px;">份</span> -->
  1265. </el-form-item>
  1266. <el-form-item label="保费:">
  1267. <span>{{ guoRenaccidentForm.sumPremium }}&ensp;元</span>
  1268. </el-form-item>
  1269. </el-form>
  1270. <el-table v-if="guoRenaccidentForm.prodCode" size="small" :data="guoRenaccidenttableData" border
  1271. ref="expandTable" highlight-current-row
  1272. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1273. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1274. <el-table-column prop="amount" label="保额 (元)" align="center"></el-table-column>
  1275. <el-table-column prop="premium" label="保费 (元)" align="center">
  1276. <template slot-scope="scope">¥{{ scope.row.premium }}</template>
  1277. </el-table-column>
  1278. </el-table>
  1279. </div>
  1280. </template>
  1281. <template v-if="reslistitem.namesimple == '中煤财险' && reslistitem.checked && reslistitem.agreementId">
  1282. <div class="flex f-c Driving-risk accident-style zmDriving">
  1283. <el-form :inline="true" :model="accidentFormZM" class="demo-form-inline" size="small"
  1284. style="font-weight:bold;margin-top:15px">
  1285. <el-form-item label="意外险类型" style="margin-right:30px;">
  1286. <el-select style="width: 250px;" size="small" clearable v-model="zhongmeiInsurancetype"
  1287. placeholder="未选择" @clear="numberCopieschangeZM" @change="zhongmeiInsuranceChange">
  1288. <el-option v-for="(item, index) in zhongmeiInsuranceData" :key="index" :label="item.projectName"
  1289. :value="item.projectCode"></el-option>
  1290. </el-select>
  1291. </el-form-item>
  1292. <el-form-item label="选择份数" style="margin-right:30px;">
  1293. <el-input-number v-model="accidentFormZM.quantity" @change="numberCopieschangeZM" :min="1"
  1294. controls-position="right" ></el-input-number>
  1295. <!-- <span style="margin-left: 5px;">份</span> -->
  1296. </el-form-item>
  1297. <el-form-item label="保费:">
  1298. <span>{{ accidentFormZM.sumPremium }}&ensp;元</span>
  1299. </el-form-item>
  1300. </el-form>
  1301. <el-table size="small" :data="zhongmeiInsuranceDataDetail" border ref="ZmMultipleTable"
  1302. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1303. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  1304. <el-table-column prop="amount" label="保险责任对应保额" align="center"></el-table-column>
  1305. <!-- <el-table-column label="份数" align="center">
  1306. <template slot-scope="scope">
  1307. <div @click.stop>
  1308. <el-input-number
  1309. v-model="scope.row.quantity"
  1310. @change="ZMhandleChange"
  1311. :min="1"
  1312. :max="Number(scope.row.insuredNumLimit)"
  1313. controls-position="right"
  1314. ></el-input-number>
  1315. </div>
  1316. </template>
  1317. </el-table-column>-->
  1318. </el-table>
  1319. </div>
  1320. </template>
  1321. <template v-if="reslistitem.namesimple == '大家财险' && reslistitem.checked && reslistitem.agreementId">
  1322. <div class="flex f-c Driving-risk">
  1323. <div class="dis a-c" style="margin-top:15px">
  1324. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1325. <el-select style="width: 250px;" filterable size="small" clearable v-model="insuranceDJ"
  1326. placeholder="未选择" @clear="clearAccidentFormDJ" @change="dajiaInsuranceChange">
  1327. <el-option v-for="(item, index) in dajiaInsuranceData" :key="index" :label="item.productName"
  1328. :value="item.id"></el-option>
  1329. </el-select>
  1330. </div>
  1331. <el-table size="small" :data="DJInsuranceData" border v-if="insuranceDJ" @row-click="DJDrivingChange"
  1332. ref="RsTable" highlight-current-row
  1333. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1334. <el-table-column prop="cvrgName" label="保险责任名称" align="center"></el-table-column>
  1335. <el-table-column prop="cvrgPrm" label="保费 (元)/每份" align="center">
  1336. <template slot-scope="scope">¥{{ scope.row.cvrgPrm }}</template>
  1337. </el-table-column>
  1338. </el-table>
  1339. </div>
  1340. </template>
  1341. <template v-if="reslistitem.namesimple == '渤海财险' && reslistitem.checked && reslistitem.agreementId">
  1342. <div class="flex f-c Driving-risk" style="margin-top:15px">
  1343. <el-form :inline="true" :model="boHaiaccidentForm" class="demo-form-inline" size="small">
  1344. <el-form-item label="意外险类型" style="margin-right:30px;">
  1345. <el-select clearable placeholder="未选择" @clear="clearAccidentFormBh" @change="bhcxchange"
  1346. v-model="boHaiaccidentForm.packageCode">
  1347. <el-option v-for="(item, index) in boHaiaccidentDataList" :key="index" :label="item.packageName"
  1348. :value="item.packageCode"></el-option>
  1349. </el-select>
  1350. </el-form-item>
  1351. <el-form-item label="选择份数" style="margin-right:30px;">
  1352. <el-input-number v-model="boHaiaccidentForm.copies" :min="1"
  1353. controls-position="right"></el-input-number>
  1354. </el-form-item>
  1355. <el-form-item label="保费:">
  1356. <span>{{ boHaiaccidentForm.premium * boHaiaccidentForm.copies }}&ensp;元</span>
  1357. </el-form-item>
  1358. </el-form>
  1359. <el-table v-if="boHaiaccidentForm.packageCode" size="small" :data="boHaiaccidenttableData" border
  1360. v-loading="accidentLoadingbh" ref="expandTable" highlight-current-row
  1361. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1362. <el-table-column prop="coverageName" label="保险责任名称" align="center"></el-table-column>
  1363. <el-table-column prop="insuredAmount" label="保额 (元)" align="center">
  1364. <template slot-scope="scope">¥{{ scope.row.insuredAmount }}</template>
  1365. </el-table-column>
  1366. </el-table>
  1367. </div>
  1368. </template>
  1369. </div>
  1370. </div>
  1371. </div>
  1372. </div>
  1373. <div class="Enclosure flex f-c" v-if="isLetter">
  1374. <div class="home flex j-s a-c back">
  1375. <div class="flex j-s a-c color">
  1376. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  1377. <span style="margin-left:10px;">报价历史</span>
  1378. <div v-if="orderno">
  1379. <el-radio-group v-model="historyRadio" style="margin-left:30px;" @input="RadioHistoryChange"
  1380. v-for="item in insOrderStatusoptions" :key="item.dictValue">
  1381. <el-radio :label="item.dictValue">{{ item.dictTag }}</el-radio>
  1382. </el-radio-group>
  1383. </div>
  1384. </div>
  1385. </div>
  1386. <div style="padding:20px;">
  1387. <el-table size="small" :data="HistoryList" height="250" border style="width: 100%" v-loading="loading"
  1388. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row>
  1389. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  1390. <el-table-column prop="username" label="业务员" align="center">
  1391. <template slot-scope="scope">
  1392. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  1393. </template>
  1394. </el-table-column>
  1395. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  1396. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  1397. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  1398. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  1399. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  1400. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  1401. <el-table-column prop="orderstatus" label="状态" align="center">
  1402. <template slot-scope="scope">
  1403. <el-tag style="color:#33A08D;border-color:#33A08D;background: rgba(51,160,141,0.1);"
  1404. v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'" size="small">{{ scope.row.orderstatus
  1405. |
  1406. cap }}</el-tag>
  1407. <el-tag type="danger" style="border-color:#E75B5D ;" v-else-if="scope.row.orderstatus == '3'"
  1408. size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1409. <el-tag v-else style="color:#2D4D89 ;border-color:#2D4D89 ;background: rgba(45, 77, 137,0.1);"
  1410. size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1411. </template>
  1412. </el-table-column>
  1413. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  1414. <template slot-scope="scope">
  1415. <el-button type="text" style="color:#2D4D89 " size="small"
  1416. @click="qoutedetail(scope.row.id)">查看详情</el-button>
  1417. <el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
  1418. <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
  1419. @click="Payment(scope.row.id, scope.row)">付款码</el-button>
  1420. <el-button size="mini" type="text"
  1421. v-if="(scope.row.orderstatus == '1' || scope.row.orderstatus == '2' || scope.row.orderstatus == '4') && ['紫金财险'].includes(scope.row.inscompany)"
  1422. @click="cancelorder(scope.row)">撤单</el-button>
  1423. <el-button type="text" size="mini" style="color:#2D4D89 " v-if="scope.row.orderstatus == '2'"
  1424. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  1425. </template>
  1426. </el-table-column>
  1427. </el-table>
  1428. </div>
  1429. </div>
  1430. <!-- 查看详情 -->
  1431. <detailsDialog ref="detailsDialog" :orderInfo.sync="queryOrders" :Feepermissions="false"></detailsDialog>
  1432. <el-dialog title="车型选择" :visible.sync="chexingdialogVisible" width="1300px">
  1433. <el-form :inline="true" class="demo-form-inline" size="small">
  1434. <el-form-item label="厂牌型号">
  1435. <el-input v-model="carInfo.modelcname" placeholder="厂牌型号" style="width:500px;"></el-input>
  1436. </el-form-item>
  1437. <el-form-item>
  1438. <el-button type="primary" size="small" @click="toChooseVehicleType(carInfo.modelcname)">查询</el-button>
  1439. </el-form-item>
  1440. </el-form>
  1441. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1442. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row
  1443. @row-dblclick="reslistCurrentChange">
  1444. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1445. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1446. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1447. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1448. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1449. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1450. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1451. </el-table>
  1452. </el-dialog>
  1453. <el-dialog title="车辆识别代码" :visible.sync="sbdmdialogVisible" width="1300px">
  1454. <el-form :inline="true" class="demo-form-inline" size="small">
  1455. <el-form-item label="车辆识别代码">
  1456. <el-input v-model="carInfo.frameNo" placeholder="车辆识别代码" style="width:500px;"></el-input>
  1457. </el-form-item>
  1458. <el-form-item>
  1459. <el-button type="primary" size="small" @click="toChooseVin(carInfo.frameNo)">查询</el-button>
  1460. </el-form-item>
  1461. </el-form>
  1462. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1463. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row
  1464. @row-dblclick="reslistCurrentChange">
  1465. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1466. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1467. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1468. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1469. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1470. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1471. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1472. </el-table>
  1473. </el-dialog>
  1474. <!--第一种 二维码 -->
  1475. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  1476. <div class="ORcodebody" v-watermark="userform.id || userId">
  1477. <div slot="title" class="dialog-title">
  1478. <span>扫码付款</span>
  1479. </div>
  1480. <div class="ORcode">
  1481. <div style="padding:13px;position: relative;">
  1482. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
  1483. <div v-else id="qrcode" ref="qrcode"></div>
  1484. </div>
  1485. </div>
  1486. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  1487. <div style="font-size:32px;text-align: center;color:#D42426;margin-top:20px">
  1488. <span style="font-size:24px;font-weight:bold">¥</span>
  1489. {{ sumpremium }}
  1490. </div>
  1491. <div class="ORtitle">
  1492. <div>
  1493. <span>保险公司:</span>
  1494. <span>{{ inscompany }}</span>
  1495. </div>
  1496. <div>
  1497. <span>车牌号:</span>
  1498. <span>{{ licenseNo }}</span>
  1499. </div>
  1500. <div>
  1501. <span>投保人:</span>
  1502. <span>{{ applyName }}</span>
  1503. </div>
  1504. <!-- <div>
  1505. <span style="color:#f75c00">总金额:</span>
  1506. <span style="color:#f75c00">{{ sumpremium }}</span>
  1507. </div>-->
  1508. <div v-show="jqpremium">
  1509. <span>交强:</span>
  1510. <span>{{ jqpremium }}</span>
  1511. </div>
  1512. <div v-show="sypremium">
  1513. <span>商业:</span>
  1514. <span>{{ sypremium }}</span>
  1515. </div>
  1516. <div v-show="taxamount">
  1517. <span>车船税:</span>
  1518. <span>{{ taxamount }}</span>
  1519. </div>
  1520. <div v-show="jqstartdate">
  1521. <span>交强险起保日期:</span>
  1522. <span>{{ jqstartdate }}</span>
  1523. </div>
  1524. <div v-show="systartdate">
  1525. <span>商业险起保日期:</span>
  1526. <span>{{ systartdate }}</span>
  1527. </div>
  1528. <div v-if="jypremium">
  1529. <span>非车险:</span>
  1530. <span>{{ jypremium }}</span>
  1531. </div>
  1532. </div>
  1533. <!-- <div class="display">
  1534. <el-button size="small" style="width:100px;" @click="codedialogVisible = false">关闭</el-button>
  1535. </div>-->
  1536. </div>
  1537. <span slot="footer" class="dialog-footer display">
  1538. <el-button size="small" style="width:100px;border-color:#D42426;color:#D42426 "
  1539. @click="codedialogVisible = false">关闭</el-button>
  1540. </span>
  1541. </el-dialog>
  1542. <!--第二种 二维码 -->
  1543. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh" title="扫码付款">
  1544. <div class="flex j-s">
  1545. <div class="scan-code">
  1546. <div style="font-weight: bold;">
  1547. 总金额:
  1548. <span style="color:#2D4D89 ">{{ sumpremium }}</span>
  1549. </div>
  1550. <div>交强险:{{ jqpremium }}</div>
  1551. <div>车船税:{{ taxamount }}</div>
  1552. <div>商业险:{{ sypremium }}</div>
  1553. <div>非车险:{{ jypremium }}</div>
  1554. </div>
  1555. <div>
  1556. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
  1557. <div v-else id="qrcode" ref="qrcode"></div>
  1558. </div>
  1559. <div class="scan-code">
  1560. <div>保险公司:{{ inscompany }}</div>
  1561. <div>车牌号:{{ licenseNo }}</div>
  1562. <div>投保人:{{ applyName }}</div>
  1563. <div>交强险起保日期:{{ jqstartdate }}</div>
  1564. <div>商业险起保日期:{{ systartdate }}</div>
  1565. </div>
  1566. </div>
  1567. <span slot="footer" class="dialog-footer">
  1568. <el-button size="small" style="width:100px;background: #EAEDF1;border-color:#EAEDF1;color:#2D4D89 "
  1569. @click="codedialogVisiblePro = false">关闭</el-button>
  1570. </span>
  1571. </el-dialog>
  1572. <el-dialog :visible.sync="uploadcardialogVisible" width="960px" style="padding:10px 20px;box-sizing: border-box;"
  1573. @open="closeDialog(0)">
  1574. <div slot="title" class="dialog-title">
  1575. <span>行驶证识别</span>
  1576. </div>
  1577. <el-row :gutter="20">
  1578. <div class="bodys1">
  1579. <div>
  1580. <div class="flex a-c">
  1581. <div class="OCR" style="text-align:center;">行驶证主页</div>
  1582. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1583. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carfrontChange">
  1584. <img v-show="carfrontImg" :src="carfrontImg" style="width:100%;height:100%" />
  1585. <img v-show="!carfrontImg" src="../../../../static/carfront.png" style="width:100%;height:100%" />
  1586. <span class="slot" v-show="carfrontImg" @click.stop>
  1587. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carfrontImg)"></i>
  1588. <i class="el-icon-delete" @click.stop="handleRemove('carfrontImg')"></i>
  1589. </span>
  1590. </el-upload>
  1591. </div>
  1592. </div>
  1593. <div class="flex a-c">
  1594. <div class="OCR" style="text-align:center;">行驶证副页</div>
  1595. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1596. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carbackChange">
  1597. <img v-show="carbackImg" :src="carbackImg" style="width:100%;height:100%" />
  1598. <img v-show="!carbackImg" src="../../../../static/carback.png" style="width:100%;height:100%" />
  1599. <span class="slot" v-show="carbackImg" @click.stop>
  1600. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carbackImg)"></i>
  1601. <i class="el-icon-delete" @click.stop="handleRemove('carbackImg')"></i>
  1602. </span>
  1603. </el-upload>
  1604. </div>
  1605. </div>
  1606. </div>
  1607. <div style="text-align:center;">
  1608. <el-form :model="carform" label-width="130px" size="small">
  1609. <el-form-item label="所有人">
  1610. <el-input v-model="carform.carOwner" autocomplete="off"></el-input>
  1611. </el-form-item>
  1612. <el-form-item label="车牌号">
  1613. <el-input v-model="carform.licenseNo" autocomplete="off"></el-input>
  1614. </el-form-item>
  1615. <el-form-item label="车架号">
  1616. <el-input v-model="carform.frameNo" autocomplete="off"></el-input>
  1617. </el-form-item>
  1618. <el-form-item label="品牌型号">
  1619. <el-input v-model="carform.modelcname" autocomplete="off"></el-input>
  1620. </el-form-item>
  1621. <el-form-item label="发动机号">
  1622. <el-input v-model="carform.engineNo" autocomplete="off"></el-input>
  1623. </el-form-item>
  1624. <el-form-item label="总质量">
  1625. <el-input v-model="carform.grossMass" autocomplete="off"></el-input>
  1626. </el-form-item>
  1627. <el-form-item label="整备质量">
  1628. <el-input v-model="carform.unladenMass" autocomplete="off"></el-input>
  1629. </el-form-item>
  1630. <el-form-item label="核定载质量">
  1631. <el-input v-model="carform.limitLoad" autocomplete="off"></el-input>
  1632. </el-form-item>
  1633. <el-form-item label="核定载客数">
  1634. <el-input v-model="carform.approvedPassengersCapacity" autocomplete="off"></el-input>
  1635. </el-form-item>
  1636. <el-form-item label="注册日期">
  1637. <el-input v-model="carform.registerDate" autocomplete="off"></el-input>
  1638. </el-form-item>
  1639. <el-form-item label="发证日期">
  1640. <el-input v-model="carform.issueDate" autocomplete="off"></el-input>
  1641. </el-form-item>
  1642. </el-form>
  1643. </div>
  1644. </div>
  1645. </el-row>
  1646. <span slot="footer" class="dialog-footer">
  1647. <el-button type="primary" @click="CarOCRdiscern()" size="small">识 别</el-button>
  1648. <el-button type="primary" @click="CarOCRconfirm()" size="small">确 认</el-button>
  1649. </span>
  1650. </el-dialog>
  1651. <el-dialog :visible.sync="uploaduserdialogVisible" width="960px" style="padding:10px 20px;box-sizing: border-box;"
  1652. @open="closeDialog(userIndex)">
  1653. <el-tabs v-model="activeName">
  1654. <el-tab-pane label="身份证识别" name="1">
  1655. <el-row :gutter="20">
  1656. <div class="bodys1">
  1657. <div>
  1658. <div class="flex">
  1659. <div class="OCR" style="text-align:center;">身份证主页</div>
  1660. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1661. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1662. :on-change="userfrontChange">
  1663. <img v-show="userfrontImg" :src="userfrontImg" style="width:100%;height:100%" />
  1664. <img v-show="!userfrontImg" src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1665. <span class="slot" v-show="userfrontImg" @click.stop>
  1666. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userfrontImg)"></i>
  1667. <i class="el-icon-delete" @click.stop="handleRemove('userfrontImg')"></i>
  1668. </span>
  1669. </el-upload>
  1670. </div>
  1671. </div>
  1672. <div class="flex">
  1673. <div class="OCR" style="text-align:center;">身份证副页</div>
  1674. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1675. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1676. :on-change="userbackChange">
  1677. <img v-show="userbackImg" :src="userbackImg" style="width:100%;height:100%" />
  1678. <img v-show="!userbackImg" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1679. <span class="slot" v-show="userbackImg" @click.stop>
  1680. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userbackImg)"></i>
  1681. <i class="el-icon-delete" @click.stop="handleRemove('userbackImg')"></i>
  1682. </span>
  1683. </el-upload>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. <div style="text-align:center;">
  1688. <el-form :model="ownerInfoform" label-width="130px" size="small">
  1689. <el-form-item label="姓名">
  1690. <el-input v-model="ownerInfoform.name" autocomplete="off"></el-input>
  1691. </el-form-item>
  1692. <el-form-item label="性别">
  1693. <el-input v-model="ownerInfoform.gender" autocomplete="off"></el-input>
  1694. </el-form-item>
  1695. <el-form-item label="证件类型">
  1696. <el-input v-model="ownerInfoform.identifyType" autocomplete="off"></el-input>
  1697. </el-form-item>
  1698. <el-form-item label="证件号码">
  1699. <el-input v-model="ownerInfoform.identifyNumber" autocomplete="off"></el-input>
  1700. </el-form-item>
  1701. <el-form-item label="车主手机号">
  1702. <el-input v-model="ownerInfoform.mobile" autocomplete="off"></el-input>
  1703. </el-form-item>
  1704. <el-form-item label="地址">
  1705. <el-input v-model="ownerInfoform.addr" autocomplete="off"></el-input>
  1706. </el-form-item>
  1707. <el-form-item label="有效期起期">
  1708. <el-input disabled v-model="ownerInfoform.identifyValidDate" autocomplete="off"></el-input>
  1709. </el-form-item>
  1710. <el-form-item label="有效期止期">
  1711. <el-input disabled v-model="ownerInfoform.identifyValidEndDate" autocomplete="off"></el-input>
  1712. </el-form-item>
  1713. <el-form-item label="电子邮箱">
  1714. <el-input v-model="ownerInfoform.email" autocomplete="off"></el-input>
  1715. </el-form-item>
  1716. </el-form>
  1717. </div>
  1718. </div>
  1719. </el-row>
  1720. </el-tab-pane>
  1721. <el-tab-pane label="营业执照" name="2">
  1722. <el-row :gutter="20">
  1723. <div class="bodys1">
  1724. <div>
  1725. <div class="flex">
  1726. <div class="OCR" style="text-align:center;">营业执照</div>
  1727. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1728. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1729. :on-change="userfrontChange">
  1730. <img v-show="businessImg" :src="businessImg" style="width:100%;height:100%" />
  1731. <img v-show="!businessImg" src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1732. <span class="slot" v-show="businessImg" @click.stop>
  1733. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(businessImg)"></i>
  1734. <i class="el-icon-delete" @click.stop="handleRemove('businessImg')"></i>
  1735. </span>
  1736. </el-upload>
  1737. </div>
  1738. </div>
  1739. </div>
  1740. <div style="text-align:center;">
  1741. <el-form :model="ownerInfoform" label-width="130px" size="small">
  1742. <el-form-item label="单位名称">
  1743. <el-input autocomplete="off"></el-input>
  1744. </el-form-item>
  1745. <el-form-item label="法人">
  1746. <el-input autocomplete="off"></el-input>
  1747. </el-form-item>
  1748. <el-form-item label="社会信用代码">
  1749. <el-input autocomplete="off"></el-input>
  1750. </el-form-item>
  1751. <el-form-item label="地址">
  1752. <el-input autocomplete="off"></el-input>
  1753. </el-form-item>
  1754. <el-form-item label="经营范围">
  1755. <el-input autocomplete="off"></el-input>
  1756. </el-form-item>
  1757. <el-form-item label="注册资本">
  1758. <el-input autocomplete="off"></el-input>
  1759. </el-form-item>
  1760. </el-form>
  1761. </div>
  1762. </div>
  1763. </el-row>
  1764. </el-tab-pane>
  1765. </el-tabs>
  1766. <span slot="footer" class="dialog-footer">
  1767. <el-button type="primary" @click="userOCRdiscern()" size="small">识 别</el-button>
  1768. <el-button type="primary" @click="userOCRconfirm()" size="small">确 认</el-button>
  1769. </span>
  1770. </el-dialog>
  1771. <el-dialog :visible.sync="imageUploaddialogVisible" width="1070px">
  1772. <div slot="title" class="dialog-title">
  1773. <span>影像上传</span>
  1774. </div>
  1775. <el-row>
  1776. <el-col :span="3">
  1777. <div class="tab-style">
  1778. <li class="liMenu" :class="idx == tabLiIndex ? 'tabLi-style' : ''" @click="tabLiScroll(item.scroll, idx)"
  1779. v-for="(item, idx) in tabLimenu" :key="idx">{{ item.name }}</li>
  1780. </div>
  1781. </el-col>
  1782. <el-col :span="21" style="height:320px;overflow-y: auto;">
  1783. <div class="flex" id="vehicle">
  1784. <div class="aaa">
  1785. <span>1.行驶证主页</span>
  1786. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1787. :on-change="file => drivingupload(file, 'imageList1', 'imgList1', 'C01')" :file-list="imgList1"
  1788. ref="upload1" :class="{ styleB: imgList1.length == 1 }">
  1789. <img v-show="imgList1.length == 0" src="../../../../static/carfront.png" style="width:100%;height:100%" />
  1790. <div slot="file" slot-scope="{file}" v-if="imgList1.length > 0">
  1791. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1792. <span class="el-upload-list__item-actions">
  1793. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList1')">
  1794. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1795. <i class="el-icon-delete"></i>
  1796. </span>
  1797. </span>
  1798. </div>
  1799. </el-upload>
  1800. </div>
  1801. <div class="aaa">
  1802. <span>2.行驶证副页</span>
  1803. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1804. :on-change="file => drivingupload(file, 'imageList1', 'imgList2', 'D01')" :file-list="imgList2"
  1805. ref="upload2" :class="{ styleB: imgList2.length === 1 }">
  1806. <img v-show="imgList2.length == 0" src="../../../../static/carback.png" style="width:100%;height:100%" />
  1807. <div slot="file" slot-scope="{file}">
  1808. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1809. <span class="el-upload-list__item-actions">
  1810. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList2')">
  1811. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1812. <i class="el-icon-delete"></i>
  1813. </span>
  1814. </span>
  1815. </div>
  1816. </el-upload>
  1817. </div>
  1818. <div class="aaa">
  1819. <span>1.新车合格证</span>
  1820. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1821. :on-change="file => drivingupload(file, 'imageList5', 'imgList9', 'XC00')" :file-list="imgList9" multiple
  1822. ref="upload3" :class="{ styleB: imgList9.length === 1 }">
  1823. <img v-show="imgList9.length == 0" src="../../../../static/userfront.png"
  1824. style="width:100%;height:100%" />
  1825. <div slot="file" slot-scope="{file}">
  1826. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1827. <span class="el-upload-list__item-actions">
  1828. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList9')">
  1829. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1830. <i class="el-icon-delete"></i>
  1831. </span>
  1832. </span>
  1833. </div>
  1834. </el-upload>
  1835. </div>
  1836. <div class="aaa">
  1837. <span>2.购车发票</span>
  1838. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1839. :on-change="file => drivingupload(file, 'imageList5', 'imgList10', 'GC00')" :file-list="imgList10"
  1840. multiple ref="upload4" :class="{ styleB: imgList10.length === 1 }">
  1841. <img v-show="imgList10.length == 0" src="../../../../static/userfront.png"
  1842. style="width:100%;height:100%" />
  1843. <div slot="file" slot-scope="{file}">
  1844. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1845. <span class="el-upload-list__item-actions">
  1846. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList10')">
  1847. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1848. <i class="el-icon-delete"></i>
  1849. </span>
  1850. </span>
  1851. </div>
  1852. </el-upload>
  1853. </div>
  1854. </div>
  1855. <div class="flex" id="owner">
  1856. <div class="aaa">
  1857. <span>1.车主身份证(正面)</span>
  1858. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1859. :on-change="file => drivingupload(file, 'imageList2', 'imgList3', 'C02')" :file-list="imgList3" multiple
  1860. ref="upload3" :class="{ styleB: imgList3.length === 1 }">
  1861. <img v-show="imgList3.length == 0" src="../../../../static/userfront.png"
  1862. style="width:100%;height:100%" />
  1863. <div slot="file" slot-scope="{file}">
  1864. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1865. <span class="el-upload-list__item-actions">
  1866. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList3')">
  1867. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1868. <i class="el-icon-delete"></i>
  1869. </span>
  1870. </span>
  1871. </div>
  1872. </el-upload>
  1873. </div>
  1874. <div class="aaa">
  1875. <span>2.车主身份证(反面)</span>
  1876. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1877. :on-change="file => drivingupload(file, 'imageList2', 'imgList4', 'D02')" :file-list="imgList4" multiple
  1878. ref="upload4" :class="{ styleB: imgList4.length === 1 }">
  1879. <img v-show="imgList4.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1880. <div slot="file" slot-scope="{file}">
  1881. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1882. <span class="el-upload-list__item-actions">
  1883. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1884. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1885. <i class="el-icon-delete"></i>
  1886. </span>
  1887. </span>
  1888. </div>
  1889. </el-upload>
  1890. </div>
  1891. <div class="aaa">
  1892. <span>3.营业执照</span>
  1893. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1894. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1895. <div slot="file" slot-scope="{file}">
  1896. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1897. <span class="el-upload-list__item-actions">
  1898. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1899. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1900. <i class="el-icon-delete"></i>
  1901. </span>
  1902. </span>
  1903. </div>
  1904. </el-upload>
  1905. </div>
  1906. </div>
  1907. <div class="flex" id="applicant">
  1908. <div class="aaa">
  1909. <span>1.投保人身份证(正面)</span>
  1910. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1911. :on-change="file => drivingupload(file, 'imageList3', 'imgList5', 'C03')" :file-list="imgList5" multiple
  1912. ref="upload5" :class="{ styleB: imgList5.length === 1 }">
  1913. <img v-show="imgList5.length == 0" src="../../../../static/userfront.png"
  1914. style="width:100%;height:100%" />
  1915. <div slot="file" slot-scope="{file}">
  1916. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1917. <span class="el-upload-list__item-actions">
  1918. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList5')">
  1919. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1920. <i class="el-icon-delete"></i>
  1921. </span>
  1922. </span>
  1923. </div>
  1924. </el-upload>
  1925. </div>
  1926. <div class="aaa">
  1927. <span>2.投保人身份证(反面)</span>
  1928. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1929. :on-change="file => drivingupload(file, 'imageList3', 'imgList6', 'D03')" :file-list="imgList6" multiple
  1930. ref="upload6" :class="{ styleB: imgList6.length === 1 }">
  1931. <img v-show="imgList6.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1932. <div slot="file" slot-scope="{file}">
  1933. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1934. <span class="el-upload-list__item-actions">
  1935. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList6')">
  1936. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1937. <i class="el-icon-delete"></i>
  1938. </span>
  1939. </span>
  1940. </div>
  1941. </el-upload>
  1942. </div>
  1943. <div class="aaa">
  1944. <span>3.营业执照</span>
  1945. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1946. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1947. <div slot="file" slot-scope="{file}">
  1948. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1949. <span class="el-upload-list__item-actions">
  1950. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1951. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1952. <i class="el-icon-delete"></i>
  1953. </span>
  1954. </span>
  1955. </div>
  1956. </el-upload>
  1957. </div>
  1958. </div>
  1959. <div class="flex">
  1960. <div class="aaa">
  1961. <span id="insured">1.被保人身份证(正面)</span>
  1962. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1963. :on-change="file => drivingupload(file, 'imageList4', 'imgList7', 'C04')" :file-list="imgList7" multiple
  1964. ref="upload7" :class="{ styleB: imgList7.length === 1 }">
  1965. <img v-show="imgList7.length == 0" src="../../../../static/userfront.png"
  1966. style="width:100%;height:100%" />
  1967. <div slot="file" slot-scope="{file}">
  1968. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1969. <span class="el-upload-list__item-actions">
  1970. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList7')">
  1971. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1972. <i class="el-icon-delete"></i>
  1973. </span>
  1974. </span>
  1975. </div>
  1976. </el-upload>
  1977. </div>
  1978. <div class="aaa">
  1979. <span>2.被保人身份证(反面)</span>
  1980. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1981. :on-change="file => drivingupload(file, 'imageList4', 'imgList8', 'D04')" :file-list="imgList8" multiple
  1982. ref="upload8" :class="{ styleB: imgList8.length === 1 }">
  1983. <img v-show="imgList8.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1984. <div slot="file" slot-scope="{file}">
  1985. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1986. <span class="el-upload-list__item-actions">
  1987. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList8')">
  1988. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1989. <i class="el-icon-delete"></i>
  1990. </span>
  1991. </span>
  1992. </div>
  1993. </el-upload>
  1994. </div>
  1995. <div class="aaa">
  1996. <span>3.营业执照</span>
  1997. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1998. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1999. <div slot="file" slot-scope="{file}">
  2000. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2001. <span class="el-upload-list__item-actions">
  2002. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  2003. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2004. <i class="el-icon-delete"></i>
  2005. </span>
  2006. </span>
  2007. </div>
  2008. </el-upload>
  2009. </div>
  2010. </div>
  2011. <div class="flex" id="relationship">
  2012. <div class="aaa">
  2013. <span>1.关系证明</span>
  2014. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  2015. :on-change="file => drivingupload(file, 'imageList5', 'imgList11', 'GX00')" :file-list="imgList11"
  2016. multiple ref="upload3" :class="{ styleB: imgList11.length === 1 }">
  2017. <img v-show="imgList11.length == 0" src="../../../../static/userfront.png"
  2018. style="width:100%;height:100%" />
  2019. <div slot="file" slot-scope="{file}">
  2020. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2021. <span class="el-upload-list__item-actions">
  2022. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList11')">
  2023. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2024. <i class="el-icon-delete"></i>
  2025. </span>
  2026. </span>
  2027. </div>
  2028. </el-upload>
  2029. </div>
  2030. </div>
  2031. </el-col>
  2032. </el-row>
  2033. <span slot="footer" class="dialog-footer">
  2034. <el-button size="small" @click="imageUploaddialogVisible = false">取 消</el-button>
  2035. <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
  2036. </span>
  2037. </el-dialog>
  2038. <div v-if="isLetter" class="flex j-c a-c" :class="{
  2039. 'footer': true,
  2040. 'shadow': !isBottom
  2041. }">
  2042. <el-button size="small" @click="add()">录下一单</el-button>
  2043. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  2044. </div>
  2045. <div v-else style="text-align: center">
  2046. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  2047. </div>
  2048. <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter">
  2049. <div>
  2050. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" @click="handleScroll('Car')" />
  2051. </div>
  2052. <div>
  2053. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" @click="handleScroll('insurance')" />
  2054. </div>
  2055. <div>
  2056. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" @click="handleScroll('more')" />
  2057. </div>
  2058. <div>
  2059. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" @click="handleScroll('company')" />
  2060. </div>
  2061. </div>
  2062. <el-dialog title="核保信息" :visible.sync="underwritingdialogVisible" width="30%">
  2063. <div class="flex j-s f-c">
  2064. <div style="font-size: 18px;color: #D42426;font-weight:700;padding: 10px 30px;" v-if="orderstatus == '2'">
  2065. 订单状态:已核保待缴费</div>
  2066. </div>
  2067. <span slot="footer" class="dialog-footer" v-if="orderstatus == '2'">
  2068. <el-button style="width: 100px;" type="primary" size="small"
  2069. @click="Payment(companyId, queryOrders.inscompany)">缴费二维码</el-button>
  2070. </span>
  2071. </el-dialog>
  2072. <el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
  2073. <div class="flex a-c u-f-sa" v-if="renewalCodeJqImg">
  2074. <span>交强转保确认码</span>
  2075. <div class="flex a-c f-c">
  2076. <img :src="renewalCodeJqImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2077. <el-input v-model="renewalCodeJq" placeholder="请输入确认码" style="width: 150px"></el-input>
  2078. </div>
  2079. </div>
  2080. <div class="flex a-c u-f-sa" v-if="renewalCodeSyImg">
  2081. <span>商业转保确认码</span>
  2082. <div class="flex a-c f-c">
  2083. <img :src="renewalCodeSyImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2084. <el-input v-model="renewalCodeSy" placeholder="请输入确认码" style="width: 150px"></el-input>
  2085. </div>
  2086. </div>
  2087. <span slot="footer" class="dialog-footer">
  2088. <el-button size="small" @click="renewalCodedialogVisible = false">取 消</el-button>
  2089. <el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
  2090. </span>
  2091. </el-dialog>
  2092. <el-dialog :title="contributingState ? '选择特约' : '提交核保'" :visible.sync="hbsubmitdialogVisible" width="1200px">
  2093. <div style="margin-bottom: 20px;font-weight: bold;">特约选择</div>
  2094. <el-table size="small" :data="zijinengageListData" border v-loading="contributingLoading"
  2095. @select="zijinengageChange" @select-all="zijinengageChangeAll" ref="expandTablePro" highlight-current-row
  2096. @cell-dblclick="zijincellDblclick" :cell-class-name="tableCellClassName"
  2097. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  2098. <el-table-column type="selection" width="55"></el-table-column>
  2099. <el-table-column prop="clauseCode" :width="80" label="特约代码" align="center"></el-table-column>
  2100. <el-table-column v-if="contributingState" :width="100" prop="riskName" label="特约险种"
  2101. align="center"></el-table-column>
  2102. <el-table-column prop="clauseName" label="特约名称" align="center"></el-table-column>
  2103. <el-table-column prop="clauseContent" label="特约内容">
  2104. <template slot-scope="scope">
  2105. <el-input @blur="hideInput" size="small" type="textarea" :ref="scope.row.index + ',' + scope.column.index"
  2106. v-model="scope.row.clauseContent"
  2107. v-if="scope.row.index + ',' + scope.column.index == currentCell && scope.row.modifyFlag == '1'"></el-input>
  2108. <span v-else>{{ scope.row.clauseContent }}</span>
  2109. </template>
  2110. </el-table-column>
  2111. </el-table>
  2112. <span slot="footer" class="dialog-footer">
  2113. <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
  2114. <el-button v-if="contributingState" size="small" type="primary"
  2115. @click="hbsubmitdialogVisible = false">确定</el-button>
  2116. <el-button v-else size="small" type="primary" @click="hbsubmit">提交核保</el-button>
  2117. </span>
  2118. </el-dialog>
  2119. <!-- 报价单 -->
  2120. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  2121. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  2122. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
  2123. <el-dialog :visible.sync="redictInfodialogVisible" width="70%">
  2124. <el-table :data="redictInfoMsg" style="width: 100%">
  2125. <el-table-column prop="description" label="审核意见"></el-table-column>
  2126. <el-table-column prop="opinion" label="备注"></el-table-column>
  2127. </el-table>
  2128. </el-dialog>
  2129. </div>
  2130. </template>
  2131. <script>
  2132. let _self;
  2133. import QRCode from "qrcodejs2";
  2134. import Cookies from "js-cookie";
  2135. import CommonUtil from "@/utils/comutil.js";
  2136. import {
  2137. getAgeByIdCard,
  2138. searchkey,
  2139. addressCode,
  2140. getGenderByIdCard
  2141. } from "@/utils/validate.js";
  2142. import citydata from "@/assets/js/citydata.js";
  2143. // import yongchengData from '../../assets/js/yongchengData';
  2144. import { regionData, codeToText } from "element-china-area-data";
  2145. import { base64ToPath } from "@/common/image-tools-base64.js";
  2146. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  2147. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  2148. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  2149. export default {
  2150. inject: ["reload"],
  2151. name: "qrCode",
  2152. data() {
  2153. var checkpurchasePrice = (rule, value, callback) => {
  2154. if (!value) {
  2155. callback(new Error("新车购置价不能为空"));
  2156. } else if (value == 0) {
  2157. callback(new Error("新车购置价不能为零"));
  2158. } else {
  2159. callback();
  2160. }
  2161. };
  2162. var checkframeNo = (rule, value, callback) => {
  2163. if (value.length < 17) {
  2164. callback(new Error("车架号不足17位"));
  2165. } else if (
  2166. value.indexOf("I") != "-1" ||
  2167. value.indexOf("O") != "-1" ||
  2168. value.indexOf("Q") != "-1"
  2169. ) {
  2170. callback(new Error("车架号不能包含(I O Q)三个字母"));
  2171. } else {
  2172. callback();
  2173. }
  2174. };
  2175. var carPhoneValid = (rule, value, callback) => {
  2176. 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})$/;
  2177. if (!value) {
  2178. callback(new Error("请输入车牌号"));
  2179. } else if (plateNumber.test(value)) {
  2180. callback();
  2181. } else {
  2182. callback(new Error("请输入正确的车牌号"));
  2183. }
  2184. };
  2185. return {
  2186. watermarkedImage: '',
  2187. redictInfoMsg: [],
  2188. redictInfodialogVisible: false,
  2189. qrcodeWidth: "180",
  2190. qrcodeHeight: "180",
  2191. activeName: "1",
  2192. isTaxSourceModel: "",
  2193. tabLiIndex: 0,
  2194. tabLimenu: [
  2195. {
  2196. name: "车辆信息",
  2197. scroll: "vehicle"
  2198. },
  2199. {
  2200. name: "车主信息",
  2201. scroll: "owner"
  2202. },
  2203. {
  2204. name: "投保人信息",
  2205. scroll: "applicant"
  2206. },
  2207. {
  2208. name: "被保人信息",
  2209. scroll: "insured"
  2210. },
  2211. {
  2212. name: "关系证明",
  2213. scroll: "relationship"
  2214. }
  2215. ],
  2216. packageValue: "",
  2217. packageOptions: [],
  2218. zhongmeiInsurancetype: "", //中煤驾意险产品选中值
  2219. zhongmeiInsuranceData: [], //中煤驾意险产品列表数据
  2220. zhongmeiInsuranceDataDetail: [], //中煤驾意险产品明细方案数据
  2221. zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
  2222. currentCell: null,
  2223. feeDetailInfo: [], //费用明细信息
  2224. immediatelyValue: false,
  2225. isRetractZJ: false,
  2226. isRetractHB: false,
  2227. isRetractZM: false,
  2228. isRetractASTP: false,
  2229. isRetractZA: false,
  2230. isRetractYC: false,
  2231. isRetractRS: false,
  2232. templateSelection: "",
  2233. AStemplateSelection: "",
  2234. iscCrownerShow: false,
  2235. isApplicantShow: false,
  2236. isInsuredShow: false,
  2237. formInline: {},
  2238. anshengInsurancetype: "", //安盛
  2239. anshengInsuranceData: [], //安盛驾意险
  2240. anshengInsuranceData1: [], //安盛驾意险
  2241. anshengaccidentalDrivingVo: {}, //安盛驾意险
  2242. insuranceHB: "", //恒邦
  2243. hengbangInsuranceData: [], //恒邦驾意险
  2244. HBInsuranceData: [],
  2245. hengbangaccidentalDrivingVo: {}, //恒邦驾意险
  2246. insuranceHN: "", //华农
  2247. huanongInsuranceData: [], //华农驾意险
  2248. HNInsuranceData: [],
  2249. huanongaccidentalDrivingVo: {}, //华农驾意险
  2250. renshouaccidentalDrivingVo: {}, //人寿意外险
  2251. renshouInsuranceData: [], //-人寿意外险list
  2252. ziJinInsuranceData: [], //-紫金意外险list
  2253. zhonganInsuranceData: [], //众安驾意险
  2254. zhonganaccidentalDrivingVo: {}, //众安驾意险
  2255. ZJInsuranceData: [],
  2256. insuranceZJ: "",
  2257. accidentalDrivingVo: [], //-紫金意外险传参
  2258. zijinengageListData: [], //紫金特约
  2259. zijinengageList: [], //紫金特约
  2260. // ------------紫金意外险
  2261. insuranceRS: "", //人寿
  2262. RSInsuranceData: [],
  2263. insuranceZA: "", //众安
  2264. ZRInsuranceData: [],
  2265. insuranceTP: "", //太平
  2266. taipingInsuranceData: [], //太平驾意险
  2267. TPDrivingChangeInsuranceData: [],
  2268. taipingaccidentalDrivingVo: {}, //太平驾意险
  2269. licenseplate: true,
  2270. calculateLoading: false, //保费计算按钮 节流
  2271. accidentForm: {
  2272. quantity: "1",
  2273. sumPremium: 0
  2274. }, //永诚意外险内容
  2275. accidentFormHN: {
  2276. allQuantity: "1",
  2277. quantity:'1'
  2278. }, //华农意外险内容
  2279. accidentDataList: [], //永诚意外险
  2280. guoRenaccidentDataList: [], //国任意外险
  2281. guoRenaccidenttableData: [],
  2282. guoRenaccidentDataListChild: [],
  2283. insuranceDJ: "",
  2284. dajiaInsuranceData: [], //大家意外险
  2285. DJInsuranceData: [],
  2286. dajiaaccidentalDrivingVo: {},
  2287. accidenttableData: [],
  2288. guoRenaccidentLoading: false,
  2289. contributingLoading: false,
  2290. guoRenaccidentPremium: "",
  2291. guoRenaccidentForm: {
  2292. quantity: "1",
  2293. sumPremium: 0
  2294. }, //国任意外险内容
  2295. accidentFormZM: {
  2296. quantity: "1",
  2297. sumPremium: 0
  2298. }, //中煤意外险内容
  2299. boHaiaccidentDataList: [], //渤海意外险
  2300. boHaiaccidentForm: {
  2301. copies: "1",
  2302. policyNum: 0
  2303. },
  2304. accidentLoadingbh: false,
  2305. boHaiaccidenttableData: [],
  2306. accidentPremium: "",
  2307. accidentPremiumZM: "",
  2308. contributingState: false, //是否为国任特约
  2309. pickerOptions: {
  2310. disabledDate(time) {
  2311. //若选择的日期小于当前日期(包含今天)
  2312. return time.getTime() > Date.now();
  2313. //若选择的日期大于当前日期(不包含今天): time.getTime() < Date.now()
  2314. //若选择的日期小于当前日期(不包含今天): time.getTime() > Date.now() - 8.64e7
  2315. //若选择的日期小于等于当前日期(包含今天): time.getTime() > Date.now()
  2316. }
  2317. },
  2318. attributionform: {
  2319. //续保查询数据
  2320. configure: [],
  2321. companyId: ""
  2322. },
  2323. continuousAction: [], //续保配置项
  2324. //永诚转保确认码
  2325. cqryCdeJq: "",
  2326. cqryCdeSy: "",
  2327. renewalCodeJq: "", //交强确认码
  2328. renewalCodeSy: "", //商业确认码
  2329. renewalCodeJqImg: "", //交强图片
  2330. renewalCodeSyImg: "", //商业图片
  2331. //-----------------
  2332. showViewer: false,
  2333. transferDateShow: false, //转移登记日期
  2334. yonganchecked: false, //永安驾意险
  2335. renbaochecked: false, //人保驾意险
  2336. zhongmeichecked: false, //中煤驾意险
  2337. hengbangchecked: false, //恒邦驾意险
  2338. yongchengchecked: false, //永诚驾意险
  2339. yonganDrivinglist: [],
  2340. renbaoDrivinglist: [],
  2341. zhongmeiDrivinglist: [],
  2342. hengbangDrivinglist: [],
  2343. yongchengDrivinglist: [],
  2344. tbczcarShow: true, //投保人同车主
  2345. bbczcarShow: false, //被保人同车主
  2346. bbtbcarShow: true, //被保人同投保人
  2347. imageUploadShow: true, //上传影像显示
  2348. ProViewImg: "", //预览图片
  2349. carfrontImg: "", //行驶证正面
  2350. carbackImg: "", //行驶证背面
  2351. userfrontImg: "", //身份证正面
  2352. userbackImg: "", //身份证背面
  2353. businessImg: "",
  2354. CarFrontFile: "", //车正面文件流
  2355. CarBackFile: "", //车背面文件流
  2356. C02File: "",
  2357. D02File: "",
  2358. C03File: "",
  2359. D03File: "",
  2360. C04File: "",
  2361. D04File: "",
  2362. userIndex: 1, //区分三种人员
  2363. TabName: "car", //默认选项卡
  2364. value1: "",
  2365. chexingdialogVisible: false, //车型选择 显示/隐藏
  2366. sbdmdialogVisible: false, //车型车辆识别代码选择 显示/隐藏
  2367. codedialogVisible: false, //二维码 显示/隐藏
  2368. codedialogVisiblePro: false,
  2369. uploadcardialogVisible: false, //行驶证识别 显示/隐藏
  2370. uploaduserdialogVisible: false, //身份证识别 显示/隐藏
  2371. imageUploaddialogVisible: false, //影像上传 显示/隐藏
  2372. underwritingdialogVisible: false, //核保信息 显示/隐藏
  2373. renewalCodedialogVisible: false, //转保确认码输入
  2374. hbsubmitdialogVisible: false, //核保弹框
  2375. Carinsurance: {
  2376. jqinsurance: "1", //交强险
  2377. syinsurance: "1" //商业险
  2378. },
  2379. jqchecked: true,
  2380. sychecked: false,
  2381. jqstartDate: "", //交强时间
  2382. jqendDate: "", //交强时间
  2383. systartDate: "", //商业时间
  2384. syendDate: "", //商业时间
  2385. loading: false, //加载事件
  2386. reslist: [], //车型列表
  2387. userId: "", //出单工号
  2388. carInfo: {
  2389. powerScale: "", ///功率
  2390. licenseNo: "", //车牌号
  2391. brandName: "", //车辆品牌型号
  2392. vinNo: "", //车架号
  2393. engineNo: "", //发动机号
  2394. modelCode: "", //车型编码
  2395. seatCount: null, //核定载客量 核定载人数
  2396. purchasePrice: null, //新车购置价最低,行业实际价值,协商价值
  2397. carBrand: "", //车型品牌
  2398. ciCarName: "", //行业车型名称
  2399. ciModelCode: "", //行业车型编码
  2400. completeKerbMass: "", //整备质量
  2401. exhaustScale: "", //排量
  2402. factory: "", //工厂名称
  2403. factoryid: "", //工厂编码
  2404. frameNo: "", //车架号
  2405. licenseTypeCode: "02", //号牌种类
  2406. vehicleclass: "", //车辆类型
  2407. familyName: "", //车型
  2408. modelcname: "", //车型名称
  2409. powertypecode: "", //燃料类型编码
  2410. vehicleweight: "", //总质量
  2411. limitLoad: "", //核定载质量
  2412. caryear: null, //年款
  2413. cimodelclass: "A0", //车辆种类
  2414. energyType: "0", //能源类型
  2415. enginedesc: "", //排量
  2416. registerDate: "", //注册日期
  2417. issueDate: "", //发证日期
  2418. transferFlag: 0, //过户标志
  2419. transferFlagBi: false, //商业险是否过户
  2420. transferDate: "", //过户日期
  2421. loanStatus: 0, //贷款标志
  2422. firstBeneMan: "", //第一受益人
  2423. noLicenseFlag: false, //是否新车
  2424. cartype: "", //客车A0 货车H0
  2425. carnature: "02", //使用性质
  2426. vehicleUse: "05",
  2427. property: "1" //所属性质 1个人 2企业 3个人
  2428. },
  2429. carform: {
  2430. carOwner: "", //车主
  2431. licenseNo: "", //车牌号
  2432. modelcname: "", //车辆品牌型号
  2433. frameNo: "", //车架号
  2434. engineNo: "", //发动机号
  2435. registerDate: "", //注册日期
  2436. issueDate: "", //发证日期
  2437. grossMass: "", //总质量
  2438. unladenMass: "", //整备质量
  2439. limitLoad: "", //核定载质量
  2440. approvedPassengersCapacity: "" //核定载客数
  2441. },
  2442. ownerInfoform: {
  2443. name: "",
  2444. identifyType: "",
  2445. identifyNumber: "",
  2446. age: "", //年龄
  2447. gender: "", //性别
  2448. addr: "",
  2449. email: "",
  2450. mobile: "",
  2451. identifyValidDate: "", //有效期起期
  2452. identifyValidEndDate: "" //有效期止期
  2453. // province: "",//省
  2454. // city: "",//市
  2455. // county: "",//县
  2456. },
  2457. riskList: [], //险种大类信息
  2458. kindList: [], //商业险险别
  2459. ownerInfo: {
  2460. //车主
  2461. name: "", //姓名
  2462. identifyType: "01", //身份证类型
  2463. identifyNumber: "", //身份证号
  2464. age: "", //年龄
  2465. gender: "", //性别
  2466. addr: "", //地址
  2467. email: "", //邮箱
  2468. mobile: "", //电话
  2469. identifyValidDate: "", //有效期起期
  2470. identifyValidEndDate: "", //有效期止期
  2471. // province: "",//省
  2472. // city: "",//市
  2473. // county: "",//县
  2474. provinceData: [] //省市区
  2475. },
  2476. policyHolderInfo: {
  2477. //投保人
  2478. name: "", //姓名
  2479. identifyType: "01", //身份证类型
  2480. identifyNumber: "", //身份证号
  2481. age: "", //年龄
  2482. gender: "", //性别
  2483. addr: "", //地址
  2484. email: "", //邮箱
  2485. mobile: "", //电话
  2486. identifyValidDate: "", //有效期起期
  2487. identifyValidEndDate: "", //有效期止期
  2488. // province: "",//省
  2489. // city: "",//市
  2490. // county: "",//县
  2491. provinceData: [] //省市区
  2492. },
  2493. insuredPersonInfo: {
  2494. //被保人
  2495. name: "", //姓名
  2496. identifyType: "01", //身份证类型
  2497. identifyNumber: "", //身份证号
  2498. age: "", //年龄
  2499. gender: "", //性别
  2500. addr: "", //地址
  2501. email: "", //邮箱
  2502. mobile: "", //电话
  2503. identifyValidDate: "", //有效期起期
  2504. identifyValidEndDate: "", //有效期止期
  2505. provinceData: [] //省市区
  2506. // province: "",//省
  2507. // city: "",//市
  2508. // county: "",//县
  2509. },
  2510. //车船税form
  2511. vehicleAndVesselTaxForm: {
  2512. taxRelifFlag: "1", //类型
  2513. identifyNumber: "", //纳税人识别号
  2514. taxpayerIdentifier: "01", //纳税人证件类型
  2515. taxpayerName: "", //纳税人名称
  2516. extendChar2: "", //减免税凭证号
  2517. paidFreeCertificate: "", //完税凭证号
  2518. relifReason: "", //减免税原因
  2519. taxComCode: "", //税务机关代码
  2520. taxComName: "", ///税务机关名称
  2521. taxDocumentDate: "", //完税日期
  2522. taxPaidAreaCode: "", //完税凭证地区代码
  2523. taxRelief: "" //减税比例
  2524. },
  2525. //车辆用途列表
  2526. vehicleList: [],
  2527. //能源种类列表
  2528. rules: {
  2529. extendChar2: [
  2530. { required: true, message: "请输入减免税凭证号", trigger: "blur" }
  2531. ],
  2532. paidFreeCertificate: [
  2533. { required: true, message: "请输入完税凭证号", trigger: "blur" }
  2534. ],
  2535. relifReason: [
  2536. { required: true, message: "请输入减免税原因", trigger: "blur" }
  2537. ],
  2538. taxComCode: [
  2539. { required: true, message: "请输入税务机关代码", trigger: "blur" }
  2540. ],
  2541. taxComName: [
  2542. { required: true, message: "请输入税务机关名称", trigger: "blur" }
  2543. ],
  2544. taxDocumentDate: [
  2545. { required: true, message: "请输入完税日期", trigger: "blur" }
  2546. ],
  2547. taxPaidAreaCode: [
  2548. { required: true, message: "请选择完税地区", trigger: "blur" }
  2549. ],
  2550. taxRelief: [
  2551. { required: true, message: "请输入减税比例", trigger: "blur" }
  2552. ],
  2553. taxpayerName: [
  2554. { required: true, message: "请输入纳税人名称", trigger: "blur" }
  2555. ],
  2556. taxpayerIdentifier: [
  2557. { required: true, message: "请选择证件类型", trigger: "blur" }
  2558. ],
  2559. taxRelifFlag: [
  2560. { required: true, message: "请选择纳税类型", trigger: "blur" }
  2561. ],
  2562. energyType: [
  2563. { required: true, message: "请选择能源种类", trigger: "blur" }
  2564. ],
  2565. cimodelclass: [
  2566. { required: true, message: "请选择车辆种类", trigger: "blur" }
  2567. ],
  2568. carnature: [
  2569. { required: true, message: "请选择使用性质", trigger: "blur" }
  2570. ],
  2571. cartype: [
  2572. { required: true, message: "请选择车辆类型", trigger: "blur" }
  2573. ],
  2574. vehicleUse: [
  2575. { required: true, message: "请选择车辆用途", trigger: "blur" }
  2576. ],
  2577. brandName: [
  2578. { required: true, message: "请填写品牌型号", trigger: "blur" }
  2579. ],
  2580. licenseNo: [
  2581. { max: 8, message: "最多八个字符", trigger: "blur" },
  2582. { required: true, validator: carPhoneValid, trigger: "blur" }
  2583. ],
  2584. frameNo: [{ validator: checkframeNo, trigger: "blur" }],
  2585. engineNo: [
  2586. { required: true, message: "请填写发动机号", trigger: "blur" }
  2587. ],
  2588. purchasePrice: [
  2589. { required: true, validator: checkpurchasePrice, trigger: "blur" }
  2590. ],
  2591. registerDate: [
  2592. { required: true, message: "请选择注册时间", trigger: "blur" }
  2593. ],
  2594. issueDate: [
  2595. { required: true, message: "请选择发证日期", trigger: "blur" }
  2596. ],
  2597. transferDate: [
  2598. { required: true, message: "请选择转移登记日期", trigger: "blur" }
  2599. ],
  2600. seatCount: [
  2601. { required: true, message: "请输入座位数", trigger: "blur" }
  2602. ],
  2603. completeKerbMass: [
  2604. { required: true, message: "请输入整备质量", trigger: "blur" }
  2605. ],
  2606. name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
  2607. // identifyNumber: [
  2608. // { required: true, message: "请填写证件号", trigger: "blur" },
  2609. // { min: 18, max: 18, message: "长度在18个字符", trigger: "blur" },
  2610. // {
  2611. // 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]$/,
  2612. // message: "请输入正确的证件号",
  2613. // trigger: "blur"
  2614. // }
  2615. // ],
  2616. identifyValidDate: [
  2617. { required: true, message: "请选择起期", trigger: "blur" }
  2618. ],
  2619. identifyValidEndDate: [
  2620. { required: true, message: "请选择止期", trigger: "blur" }
  2621. ],
  2622. addr: [
  2623. { required: true, message: "请填写地址", trigger: "blur" },
  2624. { min: 8, message: "最少8个字符", trigger: "blur" }
  2625. ],
  2626. mobile: [
  2627. { required: true, message: "请填写手机号", trigger: "blur" },
  2628. { min: 11, max: 11, message: "长度在11个字符", trigger: "blur" },
  2629. {
  2630. 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}$/,
  2631. message: "请输入正确的手机号",
  2632. trigger: "blur"
  2633. }
  2634. ],
  2635. email: [
  2636. { min: 10, max: 20, message: "最少10个字符", trigger: "blur" },
  2637. {
  2638. pattern: /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
  2639. message: "请输入正确的邮箱",
  2640. trigger: "blur"
  2641. }
  2642. ]
  2643. },
  2644. CIInsureList: {
  2645. //交强险
  2646. amount: "1",
  2647. amountDesc: "投保",
  2648. amtList: [
  2649. {
  2650. label: "不投保",
  2651. value: "0"
  2652. },
  2653. {
  2654. label: "投保",
  2655. value: "1"
  2656. }
  2657. ],
  2658. kindCode: "0507",
  2659. kindName: "交强险",
  2660. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  2661. },
  2662. BIInsureList: {
  2663. //商业险
  2664. amount: "0",
  2665. amountDesc: "投保",
  2666. amtList: [
  2667. {
  2668. label: "不投保",
  2669. value: "0"
  2670. },
  2671. {
  2672. label: "投保",
  2673. value: "1"
  2674. }
  2675. ],
  2676. kindCode: "0510",
  2677. kindName: "商业险",
  2678. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  2679. },
  2680. insureList: [
  2681. {
  2682. amount: "0",
  2683. amountDesc: "投保",
  2684. coveragePremium: 0,
  2685. amtList: [
  2686. {
  2687. label: "不投保",
  2688. value: "0"
  2689. },
  2690. {
  2691. label: "投保",
  2692. value: "1"
  2693. }
  2694. ],
  2695. kindCode: "A",
  2696. isMainRisk: true,
  2697. kindName: "机动车损失险",
  2698. desc:
  2699. "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。"
  2700. },
  2701. {
  2702. amount: "0",
  2703. amountDesc: "不投保",
  2704. coveragePremium: 0,
  2705. amtList: [
  2706. {
  2707. label: "不投保",
  2708. value: "0"
  2709. },
  2710. {
  2711. label: "10万",
  2712. value: "100000"
  2713. },
  2714. {
  2715. label: "15万",
  2716. value: "150000"
  2717. },
  2718. {
  2719. label: "20万",
  2720. value: "200000"
  2721. },
  2722. {
  2723. label: "30万",
  2724. value: "300000"
  2725. },
  2726. {
  2727. label: "50万",
  2728. value: "500000"
  2729. },
  2730. {
  2731. label: "100万",
  2732. value: "1000000"
  2733. },
  2734. {
  2735. label: "150万",
  2736. value: "1500000"
  2737. },
  2738. {
  2739. label: "200万",
  2740. value: "2000000"
  2741. },
  2742. {
  2743. label: "250万",
  2744. value: "2500000"
  2745. },
  2746. {
  2747. label: "300万",
  2748. value: "3000000"
  2749. },
  2750. {
  2751. label: "400万",
  2752. value: "4000000"
  2753. },
  2754. {
  2755. label: "500万",
  2756. value: "5000000"
  2757. },
  2758. {
  2759. label: "600万",
  2760. value: "6000000"
  2761. },
  2762. {
  2763. label: "800万",
  2764. value: "8000000"
  2765. },
  2766. {
  2767. label: "1000万",
  2768. value: "10000000"
  2769. }
  2770. ],
  2771. kindCode: "B",
  2772. isMainRisk: true,
  2773. kindName: "第三者责任险",
  2774. desc:
  2775. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。"
  2776. },
  2777. {
  2778. amount: "0",
  2779. amountDesc: "1万",
  2780. coveragePremium: 0,
  2781. amtList: [
  2782. {
  2783. label: "不投保",
  2784. value: "0"
  2785. },
  2786. {
  2787. label: "1万",
  2788. value: "10000"
  2789. },
  2790. {
  2791. label: "2万",
  2792. value: "20000"
  2793. },
  2794. {
  2795. label: "3万",
  2796. value: "30000"
  2797. },
  2798. {
  2799. label: "4万",
  2800. value: "40000"
  2801. },
  2802. {
  2803. label: "5万",
  2804. value: "50000"
  2805. },
  2806. {
  2807. label: "6万",
  2808. value: "60000"
  2809. },
  2810. {
  2811. label: "7万",
  2812. value: "70000"
  2813. },
  2814. {
  2815. label: "8万",
  2816. value: "80000"
  2817. },
  2818. {
  2819. label: "9万",
  2820. value: "90000"
  2821. },
  2822. {
  2823. label: "10万",
  2824. value: "100000"
  2825. },
  2826. {
  2827. label: "15万",
  2828. value: "150000"
  2829. },
  2830. {
  2831. label: "20万",
  2832. value: "200000"
  2833. },
  2834. {
  2835. label: "25万",
  2836. value: "250000"
  2837. },
  2838. {
  2839. label: "30万",
  2840. value: "300000"
  2841. },
  2842. {
  2843. label: "35万",
  2844. value: "350000"
  2845. },
  2846. {
  2847. label: "40万",
  2848. value: "400000"
  2849. },
  2850. {
  2851. label: "45万",
  2852. value: "450000"
  2853. },
  2854. {
  2855. label: "50万",
  2856. value: "500000"
  2857. }
  2858. ],
  2859. kindCode: "D3",
  2860. isMainRisk: true,
  2861. kindName: "司机责任险",
  2862. desc:
  2863. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  2864. },
  2865. {
  2866. amount: "0",
  2867. amountDesc: "1万",
  2868. coveragePremium: 0,
  2869. amtList: [
  2870. {
  2871. label: "不投保",
  2872. value: "0"
  2873. },
  2874. {
  2875. label: "1万",
  2876. value: "10000"
  2877. },
  2878. {
  2879. label: "2万",
  2880. value: "20000"
  2881. },
  2882. {
  2883. label: "3万",
  2884. value: "30000"
  2885. },
  2886. {
  2887. label: "4万",
  2888. value: "40000"
  2889. },
  2890. {
  2891. label: "5万",
  2892. value: "50000"
  2893. },
  2894. {
  2895. label: "6万",
  2896. value: "60000"
  2897. },
  2898. {
  2899. label: "7万",
  2900. value: "70000"
  2901. },
  2902. {
  2903. label: "8万",
  2904. value: "80000"
  2905. },
  2906. {
  2907. label: "9万",
  2908. value: "90000"
  2909. },
  2910. {
  2911. label: "10万",
  2912. value: "100000"
  2913. },
  2914. {
  2915. label: "15万",
  2916. value: "150000"
  2917. },
  2918. {
  2919. label: "20万",
  2920. value: "200000"
  2921. },
  2922. {
  2923. label: "25万",
  2924. value: "250000"
  2925. },
  2926. {
  2927. label: "30万",
  2928. value: "300000"
  2929. },
  2930. {
  2931. label: "35万",
  2932. value: "350000"
  2933. },
  2934. {
  2935. label: "40万",
  2936. value: "400000"
  2937. },
  2938. {
  2939. label: "45万",
  2940. value: "450000"
  2941. },
  2942. {
  2943. label: "50万",
  2944. value: "500000"
  2945. }
  2946. ],
  2947. kindCode: "D4",
  2948. isMainRisk: true,
  2949. kindName: "乘客责任险",
  2950. desc:
  2951. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  2952. },
  2953. {
  2954. amount: "0",
  2955. amountDesc: "不投保",
  2956. coveragePremium: 0,
  2957. amtList: [
  2958. {
  2959. label: "不投保",
  2960. value: "0"
  2961. },
  2962. {
  2963. label: "2千",
  2964. value: "2000"
  2965. },
  2966. {
  2967. label: "5千",
  2968. value: "5000"
  2969. },
  2970. {
  2971. label: "1万",
  2972. value: "10000"
  2973. },
  2974. {
  2975. label: "2万",
  2976. value: "20000"
  2977. }
  2978. ],
  2979. desc:
  2980. "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
  2981. isMainRisk: false,
  2982. kindCode: "L",
  2983. kindName: "车身划痕险",
  2984. mainRiskCodeList: "A"
  2985. },
  2986. {
  2987. amount: "0",
  2988. amountDesc: "不投保",
  2989. coveragePremium: 0,
  2990. amtList: [
  2991. {
  2992. label: "不投保",
  2993. value: "0"
  2994. },
  2995. {
  2996. label: "5%",
  2997. value: "5"
  2998. },
  2999. {
  3000. label: "10%",
  3001. value: "10"
  3002. },
  3003. {
  3004. label: "15%",
  3005. value: "15"
  3006. },
  3007. {
  3008. label: "20%",
  3009. value: "20"
  3010. }
  3011. ],
  3012. desc:
  3013. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3014. isMainRisk: false,
  3015. kindCode: "MJ1",
  3016. kindName: "绝对免赔率特约险(车损)",
  3017. mainRiskCodeList: "A"
  3018. },
  3019. {
  3020. amount: "0",
  3021. amountDesc: "不投保",
  3022. coveragePremium: 0,
  3023. amtList: [
  3024. {
  3025. label: "不投保",
  3026. value: "0"
  3027. },
  3028. {
  3029. label: "5%",
  3030. value: "5"
  3031. },
  3032. {
  3033. label: "10%",
  3034. value: "10"
  3035. },
  3036. {
  3037. label: "15%",
  3038. value: "15"
  3039. },
  3040. {
  3041. label: "20%",
  3042. value: "20"
  3043. }
  3044. ],
  3045. desc:
  3046. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3047. isMainRisk: false,
  3048. kindCode: "MJ2",
  3049. kindName: "绝对免赔率特约险(三者)",
  3050. mainRiskCodeList: "B"
  3051. },
  3052. {
  3053. amount: "0",
  3054. amountDesc: "不投保",
  3055. coveragePremium: 0,
  3056. amtList: [
  3057. {
  3058. label: "不投保",
  3059. value: "0"
  3060. },
  3061. {
  3062. label: "5%",
  3063. value: "5"
  3064. },
  3065. {
  3066. label: "10%",
  3067. value: "10"
  3068. },
  3069. {
  3070. label: "15%",
  3071. value: "15"
  3072. },
  3073. {
  3074. label: "20%",
  3075. value: "20"
  3076. }
  3077. ],
  3078. desc:
  3079. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3080. isMainRisk: false,
  3081. kindCode: "MJ3",
  3082. kindName: "绝对免赔率特约险(司机)",
  3083. mainRiskCodeList: "D3"
  3084. },
  3085. {
  3086. amount: "0",
  3087. amountDesc: "不投保",
  3088. coveragePremium: 0,
  3089. amtList: [
  3090. {
  3091. label: "不投保",
  3092. value: "0"
  3093. },
  3094. {
  3095. label: "5%",
  3096. value: "5"
  3097. },
  3098. {
  3099. label: "10%",
  3100. value: "10"
  3101. },
  3102. {
  3103. label: "15%",
  3104. value: "15"
  3105. },
  3106. {
  3107. label: "20%",
  3108. value: "20"
  3109. }
  3110. ],
  3111. desc:
  3112. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3113. isMainRisk: false,
  3114. kindCode: "MJ4",
  3115. kindName: "绝对免赔率特约险(乘客)",
  3116. mainRiskCodeList: "D4"
  3117. },
  3118. {
  3119. amount: "0",
  3120. amountDesc: "不投保",
  3121. coveragePremium: 0,
  3122. amtList: [
  3123. {
  3124. label: "不投保",
  3125. value: "0"
  3126. },
  3127. {
  3128. label: "1万",
  3129. value: "10000"
  3130. },
  3131. {
  3132. label: "2万",
  3133. value: "20000"
  3134. },
  3135. {
  3136. label: "4万",
  3137. value: "40000"
  3138. },
  3139. {
  3140. label: "5万",
  3141. value: "50000"
  3142. },
  3143. {
  3144. label: "8万",
  3145. value: "80000"
  3146. },
  3147. {
  3148. label: "10万",
  3149. value: "100000"
  3150. },
  3151. {
  3152. label: "20万",
  3153. value: "200000"
  3154. },
  3155. {
  3156. label: "30万",
  3157. value: "300000"
  3158. },
  3159. {
  3160. label: "50万",
  3161. value: "500000"
  3162. },
  3163. {
  3164. label: "100万",
  3165. value: "1000000"
  3166. },
  3167. {
  3168. label: "200万",
  3169. value: "2000000"
  3170. },
  3171. {
  3172. label: "300万",
  3173. value: "3000000"
  3174. }
  3175. ],
  3176. kindCode: "SY_FJ_YBW1",
  3177. isMainRisk: true,
  3178. kindName: "附加医保-三者",
  3179. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3180. },
  3181. {
  3182. amount: "0",
  3183. amountDesc: "不投保",
  3184. coveragePremium: 0,
  3185. amtList: [
  3186. {
  3187. label: "不投保",
  3188. value: "0"
  3189. },
  3190. {
  3191. label: "1万",
  3192. value: "10000"
  3193. },
  3194. {
  3195. label: "2万",
  3196. value: "20000"
  3197. },
  3198. {
  3199. label: "5万",
  3200. value: "50000"
  3201. },
  3202. {
  3203. label: "10万",
  3204. value: "100000"
  3205. }
  3206. ],
  3207. kindCode: "SY_FJ_YBW2",
  3208. isMainRisk: true,
  3209. kindName: "附加医保-座位险(乘客)",
  3210. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3211. },
  3212. {
  3213. amount: "0",
  3214. amountDesc: "不投保",
  3215. coveragePremium: 0,
  3216. amtList: [
  3217. {
  3218. label: "不投保",
  3219. value: "0"
  3220. },
  3221. {
  3222. label: "1万",
  3223. value: "10000"
  3224. },
  3225. {
  3226. label: "2万",
  3227. value: "20000"
  3228. },
  3229. {
  3230. label: "5万",
  3231. value: "50000"
  3232. },
  3233. {
  3234. label: "10万",
  3235. value: "100000"
  3236. }
  3237. ],
  3238. kindCode: "SY_FJ_YBW3",
  3239. isMainRisk: true,
  3240. kindName: "附加医保-座位险(司机)",
  3241. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3242. },
  3243. {
  3244. amount: "0",
  3245. amountDesc: "不投保",
  3246. coveragePremium: 0,
  3247. amtList: [
  3248. {
  3249. label: "不投保",
  3250. value: "0"
  3251. },
  3252. {
  3253. label: "50万",
  3254. value: "500000"
  3255. },
  3256. {
  3257. label: "100万",
  3258. value: "1000000"
  3259. },
  3260. {
  3261. label: "150万",
  3262. value: "1500000"
  3263. },
  3264. {
  3265. label: "200万",
  3266. value: "2000000"
  3267. },
  3268. {
  3269. label: "250万",
  3270. value: "2500000"
  3271. },
  3272. {
  3273. label: "300万",
  3274. value: "3000000"
  3275. },
  3276. {
  3277. label: "500万",
  3278. value: "5000000"
  3279. },
  3280. {
  3281. label: "1000万",
  3282. value: "10000000"
  3283. }
  3284. ],
  3285. desc:
  3286. "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
  3287. isMainRisk: false,
  3288. kindCode: "BD",
  3289. kindName: "法定节假日限额翻倍险",
  3290. mainRiskCodeList: "B"
  3291. },
  3292. {
  3293. amount: "0",
  3294. amountDesc: "不投保",
  3295. coveragePremium: 0,
  3296. amtList: [
  3297. {
  3298. label: "不投保",
  3299. value: "0"
  3300. },
  3301. {
  3302. label: "2次",
  3303. value: "2"
  3304. },
  3305. {
  3306. label: "7次",
  3307. value: "7"
  3308. },
  3309. {
  3310. label: "12次",
  3311. value: "12"
  3312. },
  3313. {
  3314. label: "17次",
  3315. value: "17"
  3316. },
  3317. {
  3318. label: "22次",
  3319. value: "22"
  3320. }
  3321. ],
  3322. desc: "道路救援服务特约条款",
  3323. isMainRisk: false,
  3324. kindCode: "TY1",
  3325. kindName: "道路救援服务特约条款"
  3326. },
  3327. {
  3328. amount: "0",
  3329. amountDesc: "不投保",
  3330. coveragePremium: 0,
  3331. desc: "车辆安全检测特约条款",
  3332. isMainRisk: false,
  3333. kindCode: "TY2",
  3334. kindName: "车辆安全检测特约条款"
  3335. },
  3336. {
  3337. amount: "0",
  3338. amountDesc: "不投保",
  3339. coveragePremium: 0,
  3340. desc: "代为驾驶服务特约条款",
  3341. isMainRisk: false,
  3342. kindCode: "TY3",
  3343. kindName: "代为驾驶服务特约条款"
  3344. },
  3345. {
  3346. amount: "0",
  3347. amountDesc: "不投保",
  3348. coveragePremium: 0,
  3349. desc: "代为送检服务特约条款",
  3350. isMainRisk: false,
  3351. kindCode: "TY4",
  3352. kindName: "代为送检服务特约条款"
  3353. }
  3354. ],
  3355. totalCompanyList: [], //报价保险公司
  3356. continuousCompanyList: [], //续保保险公司
  3357. quoteno: "", //报价号
  3358. orderno: "", //订单号
  3359. queryOrders: {
  3360. extendInfo: {},
  3361. carinfo: {},
  3362. ownerinfo: {},
  3363. applyinfo: {},
  3364. insureinfo: {}
  3365. }, //核保详情
  3366. inscompany: "", //保险公司名称
  3367. licenseNo: "", //车牌号
  3368. applyName: "", //车主名字
  3369. orderstatus: "", //订单状态
  3370. sumpremium: "", //保费合计
  3371. jqpremium: "", //交强
  3372. sypremium: "", //商业
  3373. jypremium: "", //驾意险
  3374. taxamount: "", //车船税
  3375. jqstartdate: "", //交强时间
  3376. systartdate: "", //商业时间
  3377. mobile: "", //投保人手机号
  3378. //影像回显列表
  3379. imgList1: [],
  3380. imgList2: [],
  3381. imgList3: [],
  3382. imgList4: [],
  3383. imgList5: [],
  3384. imgList6: [],
  3385. imgList7: [],
  3386. imgList8: [],
  3387. imgList9: [],
  3388. imgList10: [],
  3389. imgList11: [],
  3390. //影像上传列表
  3391. imageList1: [],
  3392. imageList2: [],
  3393. imageList3: [],
  3394. imageList4: [],
  3395. imageList5: [],
  3396. // 是否禁用上传
  3397. uploadDisabled: false,
  3398. href: "",
  3399. pageRequest: {
  3400. //归属查询
  3401. pageNum: 1,
  3402. pageSize: 20,
  3403. columnFilters: {
  3404. deptId: {
  3405. name: "deptId",
  3406. value: "9"
  3407. },
  3408. containsSubDept: {
  3409. name: "containsSubDept",
  3410. value: 1
  3411. },
  3412. usertype: {
  3413. name: "usertype",
  3414. value: null
  3415. },
  3416. status: {
  3417. name: "status",
  3418. value: "1"
  3419. },
  3420. id: {
  3421. name: "id",
  3422. value: ""
  3423. },
  3424. name: {
  3425. name: "name",
  3426. value: ""
  3427. },
  3428. mobile: {
  3429. name: "mobile",
  3430. value: ""
  3431. }
  3432. }
  3433. },
  3434. userform: {},
  3435. qrcode: null,
  3436. paycodeimg: "", //展示二维码
  3437. ImageUrldialogVisible: false,
  3438. paramsEdit: "",
  3439. companyId: "",
  3440. apiType: "",
  3441. insureMore: true,
  3442. // insureLength: 5,
  3443. HistoryList: [], //历史记录数据
  3444. image1: "",
  3445. image2: "",
  3446. historyRadio: "888",
  3447. sumseatCount: "", // 投保险种座位数
  3448. deptName: "",
  3449. isBottom: true,
  3450. logoImg: "", //报价单保险公司logo图
  3451. vehicleTypeoptions: [], //车辆种类
  3452. trafficManagementVehicleTypeoptions: [], //车辆类型
  3453. energyTypeoptions: [], //能源种类
  3454. taxRelifFlagoptions: [], //车船税类型
  3455. taxpayerIdentifieroptions: [], //纳税人证件类型
  3456. relifReasonoptions: [], //减免税原因代码
  3457. relifReasonoptions: [], //减免税原因代码
  3458. provinceSelect: [],
  3459. natureOfVehicleUseoptions: [],
  3460. businessVehicleUseoptions: [],
  3461. outOfBusinessVehicleUseoptions: [],
  3462. insOrderStatusoptions: [],
  3463. lastCompanyId: "",
  3464. apiInterfaceName: 'generateOrder'
  3465. };
  3466. },
  3467. watch: {
  3468. "carInfo.licenseNo": {
  3469. handler(val) {
  3470. if (val) {
  3471. this.carInfo.licenseNo = val.toUpperCase();
  3472. }
  3473. },
  3474. deep: true
  3475. },
  3476. "carInfo.frameNo": {
  3477. handler(val) {
  3478. if (val) {
  3479. this.carInfo.frameNo = val.toUpperCase();
  3480. }
  3481. },
  3482. deep: true
  3483. },
  3484. "carInfo.enginedesc": {
  3485. handler(val) {
  3486. if (val) {
  3487. this.carInfo.enginedesc = val.replace(/[A-Za-z]/g, "");
  3488. }
  3489. },
  3490. deep: true
  3491. },
  3492. "ownerInfo.mobile": {
  3493. handler(val) {
  3494. if (val) {
  3495. this.ownerInfo.mobile = val.replace(/\s/g, "");
  3496. }
  3497. },
  3498. deep: true
  3499. },
  3500. "policyHolderInfo.mobile": {
  3501. handler(val) {
  3502. if (val) {
  3503. this.policyHolderInfo.mobile = val.replace(/\s/g, "");
  3504. }
  3505. },
  3506. deep: true
  3507. },
  3508. "insuredPersonInfo.mobile": {
  3509. handler(val) {
  3510. if (val) {
  3511. this.insuredPersonInfo.mobile = val.replace(/\s/g, "");
  3512. }
  3513. },
  3514. deep: true
  3515. },
  3516. "carInfo.engineNo": {
  3517. handler(val) {
  3518. if (val) {
  3519. this.carInfo.engineNo = val.replace(/[^\w-]/gi, "").toUpperCase();
  3520. }
  3521. },
  3522. deep: true
  3523. },
  3524. "carInfo.seatCount": {
  3525. handler(val) {
  3526. if (val) {
  3527. this.sumseatCount = val - 1;
  3528. }
  3529. },
  3530. deep: true
  3531. },
  3532. "policyHolderInfo.identifyNumber": {
  3533. handler(val) {
  3534. if (val) {
  3535. this.vehicleAndVesselTaxForm.identifyNumber = val;
  3536. }
  3537. },
  3538. deep: true
  3539. },
  3540. "policyHolderInfo.name": {
  3541. handler(val) {
  3542. if (val) {
  3543. this.vehicleAndVesselTaxForm.taxpayerName = val;
  3544. }
  3545. },
  3546. deep: true
  3547. }
  3548. },
  3549. props: {
  3550. isdisabled: {
  3551. type: Boolean,
  3552. default: true
  3553. },
  3554. isLetter: {
  3555. type: Boolean,
  3556. default: true
  3557. },
  3558. },
  3559. components: {
  3560. detailsDialog,
  3561. quotationDialog,
  3562. quotationDialogPro,
  3563. "el-image-viewer": () =>
  3564. import("element-ui/packages/image/src/image-viewer")
  3565. },
  3566. created() {
  3567. if (!this.isLetter) {
  3568. this.apiInterfaceName = 'ordergenerateOrder'
  3569. }
  3570. // this.commpanyList(); //获取保险公司
  3571. this.getDicType("taxRelifFlag"); //车船税类型
  3572. this.getDicType("taxpayerIdentifier"); //纳税人证件类型
  3573. this.getDicType("relifReason"); //减免税原因代码
  3574. this.getDicType("vehicleType"); //车辆种类
  3575. this.getDicType("trafficManagementVehicleType"); //车辆类型
  3576. this.getDicType("energyType"); //能源种类
  3577. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  3578. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  3579. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  3580. this.getDicType("insOrderStatus"); //状态
  3581. this.$api.letter.queryCompany().then(res => {
  3582. this.continuousCompanyList = res.data;
  3583. });
  3584. this.$api.letter.packageQuery().then(res => {
  3585. this.packageOptions = res.data;
  3586. });
  3587. localStorage.setItem("carInfo", JSON.stringify(this.carInfo));
  3588. localStorage.setItem("insureList", JSON.stringify(this.insureList));
  3589. //--归属信息获取--
  3590. var userId = Cookies.get("user");
  3591. if (userId == "admin") {
  3592. this.userId = "admin";
  3593. } else {
  3594. // this.userId = userId;
  3595. this.$api.user.getLoginUser().then(res => {
  3596. if (res.code == 200) {
  3597. this.userform = res.data;
  3598. this.$api.dept.getDeptById(res.data.deptId).then(res => {
  3599. this.deptName = res.data.name;
  3600. });
  3601. }
  3602. });
  3603. }
  3604. //--订单编辑回显--
  3605. // this.paramsEdit = this.$route.query.data; //接收参数
  3606. this.obtainProtocol(this.$route.query.data);
  3607. this.editingWay(this.$route.query.data)
  3608. },
  3609. mounted() {
  3610. this.onScroll();
  3611. window.addEventListener("scroll", this.onScroll);
  3612. },
  3613. destroyed() {
  3614. window.removeEventListener("scroll", this.onScroll);
  3615. },
  3616. beforeCreate() {
  3617. _self = this;
  3618. },
  3619. computed: {
  3620. issueDateOptions() {
  3621. return {
  3622. disabledDate: this.disabledDate
  3623. };
  3624. }
  3625. },
  3626. filters: {
  3627. cap(ele) {
  3628. return _self.insOrderStatusoptions.find(item => {
  3629. return item.dictValue === ele;
  3630. }).dictTag;
  3631. }
  3632. },
  3633. methods: {
  3634. editingWay(paramsEdit) {
  3635. if (paramsEdit) {
  3636. var _this = this;
  3637. this.jqchecked = false;
  3638. this.tbczcarShow = false;
  3639. this.bbtbcarShow = false;
  3640. this.bbczcarShow = false;
  3641. const {
  3642. carinfo,
  3643. ownerinfo,
  3644. applyinfo,
  3645. insureinfo,
  3646. quoteno,
  3647. orderno
  3648. } = paramsEdit;
  3649. _this.carInfo = carinfo;
  3650. if (_this.carInfo.carnature == "8A") {
  3651. _this.carInfo.carnature = "02";
  3652. _this.carInfo.vehicleUse = "05";
  3653. } else {
  3654. _this.carInfo.carnature;
  3655. _this.carInfo.vehicleUse;
  3656. }
  3657. _this.ownerInfo = ownerinfo;
  3658. _this.policyHolderInfo = applyinfo;
  3659. _this.insuredPersonInfo = insureinfo;
  3660. _this.quoteno = quoteno;
  3661. _this.orderno = orderno;
  3662. _this.tbczcarShow = applyinfo.owner;
  3663. _this.bbczcarShow = insureinfo.owner;
  3664. _this.bbtbcarShow = insureinfo.insuranceHolder;
  3665. _this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber);
  3666. _this.policyHolderInfo.age = getAgeByIdCard(
  3667. _this.policyHolderInfo.identifyNumber
  3668. );
  3669. _this.insuredPersonInfo.age = getAgeByIdCard(
  3670. _this.insuredPersonInfo.identifyNumber
  3671. );
  3672. if (paramsEdit.carinfo.transferFlag) {
  3673. this.transferDateShow = true;
  3674. }
  3675. paramsEdit.risk.map(ele => {
  3676. if (ele.riskCode == "0507") {
  3677. _this.jqchecked = true;
  3678. this.protocolJudge('0507', true)
  3679. // _this.jqstartDate = ele.startDate;
  3680. // _this.jqendDate = ele.endDate;
  3681. _this.jqstartDate = this.transformTime1();
  3682. _this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3683. } else if (ele.riskCode == "0510") {
  3684. _this.sychecked = true;
  3685. this.protocolJudge('0510', true)
  3686. // _this.systartDate = ele.startDate;
  3687. // _this.syendDate = ele.endDate;
  3688. _this.systartDate = this.transformTime1();
  3689. _this.syendDate = this.oneYearPast1(this.systartDate);
  3690. _this.insureList.map(eleA => {
  3691. paramsEdit.king.map(eleB => {
  3692. if (eleA.kindCode == eleB.kindCode) {
  3693. switch (eleB.kindCode) {
  3694. case "D4":
  3695. case "SY_FJ_YBW2":
  3696. eleA.amount = JSON.stringify(eleB.unitAmount);
  3697. break;
  3698. case "MJ1":
  3699. case "MJ2":
  3700. case "MJ3":
  3701. case "MJ4":
  3702. eleA.amount = eleB.deductibleRate;
  3703. case "A":
  3704. eleA.amount = JSON.stringify(eleB.amount);
  3705. this.protocolJudge('A', true)
  3706. break;
  3707. default:
  3708. eleA.amount = JSON.stringify(eleB.amount);
  3709. }
  3710. }
  3711. });
  3712. });
  3713. }
  3714. });
  3715. // this.HistoryList = this.paramsEdit.insAreaCompanyList;
  3716. let params = {
  3717. orderNo: paramsEdit.orderno,
  3718. orderStatus: ""
  3719. };
  3720. this.$api.letter.queryQuoteHistory(params).then(res => {
  3721. res.data.forEach(item => {
  3722. if (item.accidentInfo) {
  3723. item.accidentInfo.constructor === Object
  3724. ? [item.accidentInfo]
  3725. : item.accidentInfo;
  3726. }
  3727. });
  3728. this.HistoryList = res.data;
  3729. });
  3730. //--获取影像信息--
  3731. _this.imageEcho(this.quoteno);
  3732. // this.commpanyList()
  3733. //--显示影像按钮--
  3734. _this.imageUploadShow = true;
  3735. } else {
  3736. this.jqstartDate = this.transformTime1();
  3737. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3738. this.systartDate = this.transformTime1();
  3739. this.syendDate = this.oneYearPast1(this.systartDate);
  3740. }
  3741. },
  3742. //手机号复制粘贴处理
  3743. handlePaste(e, mobileKey) {
  3744. e.preventDefault(); //阻止默认行为
  3745. const clipboardData = e.clipboardData || window.clipboardData; //获取剪切板内容
  3746. let pastedText = clipboardData.getData("text").replace(/\s+/g, ""); //获取纯文本并处理空格
  3747. // 截取前11个字符,以确保不会超过手机号长度限制
  3748. pastedText = pastedText.substring(0, 11);
  3749. // 使用Vue.nextTick确保更新发生在DOM更新之后
  3750. this.$nextTick(() => {
  3751. this[mobileKey].mobile = pastedText;
  3752. });
  3753. },
  3754. // licenseNoFun(data){
  3755. // if(data && this.carInfo.enginedesc){
  3756. // this.obtainProtocol()
  3757. // }
  3758. // },
  3759. // enginedescFun(data){
  3760. // if(data && this.carInfo.licenseNo){
  3761. // this.obtainProtocol()
  3762. // }
  3763. // },
  3764. packageChange(val) {
  3765. let arr = this.packageOptions.find(ele => ele.id == val).kind;
  3766. if (arr.length > 0) {
  3767. this.insureList.map(eleA => {
  3768. arr.map(eleB => {
  3769. if (eleA.kindCode == eleB.kindCode) {
  3770. switch (eleB.kindCode) {
  3771. case "D4":
  3772. case "SY_FJ_YBW2":
  3773. eleA.amount = JSON.stringify(eleB.unitAmount);
  3774. break;
  3775. case "MJ1":
  3776. case "MJ2":
  3777. case "MJ3":
  3778. case "MJ4":
  3779. eleA.amount = eleB.deductibleRate;
  3780. break;
  3781. case "TY2":
  3782. case "TY3":
  3783. case "TY4":
  3784. eleA.amount = eleB.serviceTimes;
  3785. break;
  3786. default:
  3787. eleA.amount = JSON.stringify(eleB.amount);
  3788. }
  3789. }
  3790. });
  3791. });
  3792. } else {
  3793. this.insureList.map(eleA => {
  3794. eleA.amount = "0";
  3795. });
  3796. }
  3797. },
  3798. capType(val) {
  3799. if (val == "0") {
  3800. return "success";
  3801. }
  3802. if (val == "1") {
  3803. return "warning";
  3804. }
  3805. if (val == "2" || val == "3" || val == "4") {
  3806. return "danger";
  3807. }
  3808. },
  3809. handleCheckAllChange(ele) {
  3810. this.totalCompanyList.forEach((val, index) => {
  3811. ele ? (val.checked = true) : (val.checked = false);
  3812. // this.initchange(ele, val.id, val.cnName, index);
  3813. });
  3814. },
  3815. retractFun() {
  3816. this.isRetract = this.isRetract == false ? true : false;
  3817. },
  3818. //中煤意外险调整份数事件
  3819. ZMhandleChange(val) {
  3820. if (!val) {
  3821. this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3822. }
  3823. },
  3824. //中煤意外险选中对应意外险方案
  3825. // ZMHandleSelectionChange(val) {
  3826. // // if(val.length > 0&& val[0].quantity==undefined){
  3827. // // this.$message({ message: "请先填写投保份数再勾选!", type: "error", });
  3828. // // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3829. // // return false;
  3830. // // }
  3831. // if (val.length > 1) {
  3832. // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3833. // this.$refs.ZmMultipleTable[0].toggleRowSelection(val.pop()); //pop:最后一个
  3834. // } else {
  3835. // this.zhongmeiaccidentalDrivingVo = val[0]; //multipleSelection:当前选择的数组
  3836. // }
  3837. // },
  3838. //中煤意外险选中对应产品带出方案明细
  3839. zhongmeiInsuranceChange(index) {
  3840. //每次选中产品,清空之前选中的数据
  3841. this.zhongmeiaccidentalDrivingVo = {};
  3842. this.zhongmeiInsuranceDataDetail = [];
  3843. let data = this.zhongmeiInsuranceData.find(
  3844. val => val.projectCode == index
  3845. );
  3846. //把返回的方案明细放入展示数据对象中
  3847. this.accidentFormZM = Object.assign(this.accidentFormZM, data);
  3848. this.accidentFormZM.quantity = "1";
  3849. if (data && data.son) {
  3850. this.accidentPremiumZM = data.sumPremium;
  3851. this.zhongmeiInsuranceDataDetail = data.son;
  3852. }
  3853. },
  3854. // 截图粘贴
  3855. copybjd() {
  3856. let that = this;
  3857. html2Canvas(document.getElementById("pdfContentsDiv"), {
  3858. allowTaint: true,
  3859. taintTest: false
  3860. }).then(function (canvas) {
  3861. let base64Data = "";
  3862. // let blob = null
  3863. base64Data = canvas.toDataURL("image/png", 1);
  3864. const date = new Date();
  3865. const saveInfo = {
  3866. download: date.getTime() + `.png`,
  3867. href: base64Data
  3868. };
  3869. const element = document.createElement("a");
  3870. element.style.display = "none";
  3871. for (const key in saveInfo) {
  3872. element.setAttribute(key, saveInfo[key]);
  3873. }
  3874. document.body.appendChild(element);
  3875. element.click();
  3876. setTimeout(() => {
  3877. document.body.removeChild(element);
  3878. }, 300);
  3879. // var format = 'image/png'
  3880. // //将Base64图片编码转换成blob
  3881. // var base64 = base64Data
  3882. // var code = window.atob(base64.split(',')[1])
  3883. // var aBuffer = new window.ArrayBuffer(code.length)
  3884. // var uBuffer = new window.Uint8Array(aBuffer)
  3885. // for (var i = 0; i < code.length; i++) {
  3886. // uBuffer[i] = code.charCodeAt(i) & 0xff
  3887. // }
  3888. // try {
  3889. // blob = new Blob([uBuffer], { type: format })
  3890. // } catch (e) {
  3891. // window.BlobBuilder =
  3892. // window.BlobBuilder ||
  3893. // window.WebKitBlobBuilder ||
  3894. // window.MozBlobBuilder ||
  3895. // window.MSBlobBuilder
  3896. // if (e.name == 'TypeError' && window.BlobBuilder) {
  3897. // var bb = new window.BlobBuilder()
  3898. // bb.append(uBuffer.buffer)
  3899. // blob = bb.getBlob('image/png')
  3900. // } else if (e.name == 'InvalidStateError') {
  3901. // blob = new Blob([aBuffer], { type: format })
  3902. // }
  3903. // }
  3904. // const clipboardItemInput = new ClipboardItem({
  3905. // 'image/png': blob,
  3906. // })
  3907. // that.$copyText({
  3908. // 'image/png': blob,
  3909. // }).then(
  3910. //   function(e) {
  3911. //     console.log("copy arguments e:", e);
  3912. //     alert("复制成功!");
  3913. //   },
  3914. //   function(e) {
  3915. //     console.log("copy arguments e:", e);
  3916. //     alert("复制失败!");
  3917. //   }
  3918. //   ),
  3919. // navigator.clipboard.write([clipboardItemInput])
  3920. // that.$message({
  3921. // message: '已截图并复制到粘贴板!',
  3922. // type: 'success'
  3923. // });
  3924. });
  3925. },
  3926. // 即时起保
  3927. immediatelyChange(e) {
  3928. if (e) {
  3929. this.immediatelyValue = true;
  3930. const date = new Date();
  3931. date.setHours(date.getHours() + 2);
  3932. date.setMinutes(0);
  3933. date.setSeconds(0);
  3934. this.jqstartDate = date;
  3935. this.jqendDate = this.oneYearPast1(date);
  3936. } else {
  3937. this.immediatelyValue = false;
  3938. this.jqstartDate = this.transformTime1();
  3939. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3940. }
  3941. },
  3942. // 使用性质方法
  3943. natureFun() {
  3944. if (this.carInfo.carnature == "01") {
  3945. this.carInfo.vehicleUse = "";
  3946. }
  3947. },
  3948. // 点击同步报价后的时间
  3949. syncData(item) {
  3950. this.jqstartDate = item.startDateJq ? item.startDateJq : this.jqstartDate;
  3951. this.jqendDate = item.endDateJq ? item.endDateJq : this.endDateJq;
  3952. this.systartDate = item.startDateSy ? item.startDateSy : this.systartDate;
  3953. this.syendDate = item.endDateSy ? item.endDateSy : this.syendDate;
  3954. },
  3955. //纳税类型事件
  3956. taxRelifFlagChange(val) {
  3957. if (val == 4) {
  3958. citydata.rawCitiesData.map(val => {
  3959. this.provinceSelect.push({
  3960. name: val.name,
  3961. code: val.code
  3962. });
  3963. return val;
  3964. });
  3965. }
  3966. },
  3967. //身份证前六位识别地区
  3968. // getAreaByCode(code) {
  3969. // let list = regionData;
  3970. // let provinceCode = code.substring(0, 2);
  3971. // let cityCode = code.substring(0, 4);
  3972. // let areaCode = code.substring(0, 6);
  3973. // // 获取省份信息
  3974. // let province = list.filter(function (item) {
  3975. // return item.value === provinceCode;
  3976. // });
  3977. // // 获取城市信息
  3978. // let city = province[0].children.filter(function (item) {
  3979. // return item.value === cityCode;
  3980. // });
  3981. // if (city.length > 0) {
  3982. // // 获取区/县信息
  3983. // let area = city[0].children.filter(function (item) {
  3984. // return item.value === areaCode;
  3985. // });
  3986. // return province[0].label + city[0].label + area[0].label;
  3987. // }
  3988. // },
  3989. //--数据字典 begin --
  3990. getDicType(type) {
  3991. this.$api.insCompany.dicType(type).then(res => {
  3992. if (res.code == 200) {
  3993. if (type == "insOrderStatus") {
  3994. let data = JSON.parse(JSON.stringify(res.data.ddList));
  3995. data.unshift({
  3996. dictTag: "全部",
  3997. dictValue: "888"
  3998. });
  3999. this[type + "options"] = data;
  4000. } else {
  4001. this[type + "options"] = res.data.ddList;
  4002. }
  4003. }
  4004. });
  4005. },
  4006. //身份证失去焦点
  4007. identifyblur(info) {
  4008. this[info].age = getAgeByIdCard(this[info].identifyNumber);
  4009. this[info].gender = getGenderByIdCard(this[info].identifyNumber);
  4010. },
  4011. //车主信息选择性别
  4012. genderChange(e) {
  4013. if (this.tbczcarShow) {
  4014. this.policyHolderInfo.gender = e;
  4015. } else if (this.bbczcarShow) {
  4016. this.insuredPersonInfo.gender = e;
  4017. }
  4018. },
  4019. //省市区
  4020. // areahandleChange(event, info) {
  4021. // console.log(event)
  4022. // if (event[0] != null && event[1] != null && event[2] != null) {
  4023. // this[info].province = codeToText[event[0]]
  4024. // this[info].city = codeToText[event[1]]
  4025. // this[info].county = codeToText[event[2]]
  4026. // }
  4027. // },
  4028. iconfftter(icon) {
  4029. return CommonUtil.getDataName({
  4030. dataList: this.global.insCompanyList,
  4031. value: "name",
  4032. label: "icon",
  4033. data: icon
  4034. });
  4035. },
  4036. disabledDate(time) {
  4037. let datetime = this.carInfo.registerDate;
  4038. return time.getTime() < new Date(datetime).getTime();
  4039. },
  4040. onScroll() {
  4041. // 变量scrollTop是滚动条滚动时,滚动条上端距离顶部的距离
  4042. var scrollTop =
  4043. document.documentElement.scrollTop || document.body.scrollTop;
  4044. // 变量windowHeight是可视区的高度
  4045. var windowHeight =
  4046. document.documentElement.clientHeight || document.body.clientHeight;
  4047. // 变量scrollHeight是滚动条的总高度(当前可滚动的页面的总高度)
  4048. var scrollHeight =
  4049. document.documentElement.scrollHeight || document.body.scrollHeight;
  4050. // 滚动条到底部
  4051. if (Math.ceil(scrollTop + windowHeight) >= scrollHeight) {
  4052. this.isBottom = true;
  4053. } else {
  4054. this.isBottom = false;
  4055. }
  4056. },
  4057. anshengInsuranceChange(index) {
  4058. let data = this.anshengInsuranceData.find(val => val.projectCode == index);
  4059. // this.anshengaccidentalDrivingVo.personFlag = data.personFlag;
  4060. this.anshengaccidentalDrivingVo.projectName = data.projectName;
  4061. this.anshengaccidentalDrivingVo.planCode = data.projectCode;
  4062. // this.anshengaccidentalDrivingVo.planSeries = data.planSeries;
  4063. this.anshengInsuranceData1 = [];
  4064. this.anshengInsuranceData1 = data.children;
  4065. },
  4066. hengbangInsuranceChange(index) {
  4067. this.HBInsuranceData = this.hengbangInsuranceData.find(val => val.projectCode == index).son
  4068. if (this.HBInsuranceData.length) {
  4069. this.HBDrivingChange(this.hengbangInsuranceData.find(val => val.projectCode == index));
  4070. }
  4071. },
  4072. huanongInsuranceChange(index) {
  4073. this.HNInsuranceData = this.huanongInsuranceData.find(
  4074. val => val.projectCode == index
  4075. ).son;
  4076. this.huanongaccidentalDrivingVo = Object.assign(
  4077. this.huanongInsuranceData.find(val => val.projectCode == index),
  4078. this.accidentFormHN,
  4079. );
  4080. },
  4081. taipingInsuranceChange(index) {
  4082. this.TPInsuranceData = this.taipingInsuranceData.find(val => val.projectCode == index).son
  4083. if (this.TPInsuranceData && this.TPInsuranceData.length) {
  4084. this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.projectCode == index);
  4085. }
  4086. },
  4087. zijinInsuranceChange(index) {
  4088. this.ZJInsuranceData = [];
  4089. this.$refs.expandTable[0].clearSelection();
  4090. index.forEach(item => {
  4091. this.ZJInsuranceData.push(
  4092. this.ziJinInsuranceData.find(val => val.projectCode == item)
  4093. );
  4094. });
  4095. this.ZJInsuranceData.forEach(item => {
  4096. this.$nextTick(() => {
  4097. this.$refs.expandTable[0].toggleRowSelection(item);
  4098. });
  4099. });
  4100. this.CheckboxChange(this.ZJInsuranceData);
  4101. },
  4102. renshouInsuranceChange(index) {
  4103. // this.RSInsuranceData = [
  4104. // this.renshouInsuranceData.find(val => val.projectCode == index)
  4105. // ];
  4106. this.RSInsuranceData = this.renshouInsuranceData.find(val => val.projectCode == index).son
  4107. if (index) {
  4108. this.RSDrivingChange(this.RSInsuranceData[0]);
  4109. }
  4110. },
  4111. async dajiaInsuranceChange(index) {
  4112. this.dajiaaccidentalDrivingVo = {};
  4113. let data = await this.$api.letter.accidentalDrivingInfo(index);
  4114. if (data.code == 200) {
  4115. this.dajiaaccidentalDrivingVo = {
  4116. rideRiskCode: index,
  4117. rideRiskName: this.dajiaInsuranceData.find(val => val.id == index)
  4118. .productName,
  4119. quantity: "1"
  4120. };
  4121. this.DJInsuranceData = data.data;
  4122. }
  4123. },
  4124. zhonganInsuranceChange(index) {
  4125. this.ZRInsuranceData = this.zhonganInsuranceData.find(val => val.projectCode == index).son
  4126. if (index) {
  4127. this.ZADrivingChange(this.zhonganInsuranceData.find(val => val.projectCode == index));
  4128. }
  4129. },
  4130. // 渤海选择意外险类型
  4131. async bhcxchange(index) {
  4132. if (index) {
  4133. this.accidentLoadingbh = true;
  4134. this.boHaiaccidentForm.copies = "1";
  4135. this.boHaiaccidentForm.premium = Number(
  4136. this.boHaiaccidentDataList.find(e => e.packageCode == index).premium
  4137. );
  4138. let data = await this.$api.letter.productDetailsQueryboHai({
  4139. packageCode: index,
  4140. productCode: this.boHaiaccidentDataList.find(
  4141. e => e.packageCode == index
  4142. ).productCode,
  4143. agreementId: this.boHaiaccidentForm.agreementId
  4144. });
  4145. if (data.code == 200 && data.data) {
  4146. this.accidentLoadingbh = false;
  4147. this.boHaiaccidenttableData = data.data;
  4148. } else {
  4149. this.$message.error(data.msg);
  4150. this.boHaiaccidenttableData = [];
  4151. }
  4152. }
  4153. },
  4154. // 国任选择意外险类型
  4155. async grcxchange(index) {
  4156. if (index) {
  4157. this.accidentLoading = true;
  4158. this.guoRenaccidentForm.quantity = "1";
  4159. this.guoRenaccidentForm.prodCode = "";
  4160. this.guoRenaccidentDataListChild =this.guoRenaccidentDataList.find(e=>e.projectCode==index).children;
  4161. // let data = await this.$api.letter.syncNonAutoInsGuoren({
  4162. // goodsCode: index,
  4163. // agreementId: this.guoRenaccidentForm.agreementId
  4164. // });
  4165. // if (data.code == 200) {
  4166. // let num = 0;
  4167. // data.data.forEach(item => {
  4168. // num += Number(item.premium);
  4169. // });
  4170. // this.accidentLoading = false;
  4171. // } else {
  4172. // this.accidentLoading = false;
  4173. // this.$message.error(data.msg);
  4174. // this.guoRenaccidentDataListChild = [];
  4175. // }
  4176. }
  4177. },
  4178. // 国任选择意外险子级类型
  4179. async grcxchangeChild(index) {
  4180. let list = this.guoRenaccidentDataListChild.find(
  4181. val => val.projectCode == index
  4182. );
  4183. this.guoRenaccidentForm = {
  4184. ...this.guoRenaccidentForm,
  4185. policyNum: Number(list.sumPremium),
  4186. riskCode: list.riskCode,
  4187. // amount: list.amount,
  4188. sumPremium: Number(list.sumPremium)
  4189. // appnum:Number(list.appnum)
  4190. };
  4191. this.guoRenaccidenttableData = list.son;
  4192. },
  4193. // 选择意外险类型
  4194. async ywxxxchange(index) {
  4195. if (!index) {
  4196. return;
  4197. }
  4198. this.accidentForm = Object.assign(
  4199. this.accidentForm,
  4200. this.accidentDataList.find(val =>val.projectCode == index)
  4201. );
  4202. this.accidentDataList.find(val => val.projectCode == index).son.forEach(item => {
  4203. item.sumAmount= Number(item.amount) * Number(this.accidentForm.seatNum);
  4204. });
  4205. this.accidenttableData = this.accidentDataList.find(val => val.projectCode == index).son
  4206. this.accidentPremium = this.accidentForm.sumPremium;
  4207. // this.accidentForm.fen = "1";
  4208. // let data = await this.$api.letter.ycgainAccidentSchemeList({
  4209. // companyCode: this.accidentForm.companyId,
  4210. // code: index,
  4211. // agreementId: this.accidentForm.agreementId,
  4212. // seatNum: Number(this.carInfo.seatCount)
  4213. // });
  4214. // if (data.code == 200) {
  4215. // let num = 0;
  4216. // data.data.forEach(item => {
  4217. // num += Number(item.premium);
  4218. // });
  4219. // this.accidentPremium = num;
  4220. // this.accidentForm.premium = num;
  4221. // this.accidenttableData = data.data;
  4222. // }
  4223. },
  4224. numberCopieschange(index) {
  4225. this.accidentForm.sumPremium = Number(this.accidentPremium) * index;
  4226. },
  4227. numberCopieschangeZM(index) {
  4228. this.accidentFormZM.sumPremium = Number(this.accidentPremiumZM) * index;
  4229. },
  4230. numberCopieschangeGR(index) {
  4231. this.guoRenaccidentForm.sumPremium =
  4232. Number(this.guoRenaccidentForm.policyNum) * index;
  4233. },
  4234. continuousChange(id) {
  4235. this.continuousCompanyList.map(ele => {
  4236. if (ele.id == id) {
  4237. this.attributionform.configure = [];
  4238. ele.configure.map((ele, index) => {
  4239. this.attributionform.configure.push({
  4240. field: ele.field,
  4241. isEdit: ele.isEdit,
  4242. label: ele.label,
  4243. type: ele.type,
  4244. value: ""
  4245. });
  4246. });
  4247. }
  4248. });
  4249. },
  4250. //续保查询
  4251. continuousquery() {
  4252. this.$api.letter.queryRenewal(this.attributionform).then(res => {
  4253. if (res.code == "200") {
  4254. this.carInfo = res.data.carInfo;
  4255. this.ownerInfo = res.data.ownerInfo;
  4256. this.policyHolderInfo = res.data.policyHolderInfo;
  4257. this.insuredPersonInfo = res.data.insuredPersonInfo;
  4258. res.data.riskList.map(ele => {
  4259. if (ele.riskCode == "0507") {
  4260. this.jqchecked = true;
  4261. this.jqstartDate = ele.startDate;
  4262. this.jqendDate = ele.endDate;
  4263. } else if (ele.riskCode == "0510") {
  4264. this.sychecked = true;
  4265. this.systartDate = ele.startDate;
  4266. this.syendDate = ele.endDate;
  4267. }
  4268. county;
  4269. });
  4270. } else {
  4271. this.$message({
  4272. message: res.msg,
  4273. type: "error",
  4274. duration: 2000
  4275. });
  4276. }
  4277. });
  4278. },
  4279. //永诚转保
  4280. renewalCodeconfirm() {
  4281. this.renewalCodedialogVisible = false;
  4282. this.quote();
  4283. },
  4284. //报价轨迹查询
  4285. RadioHistoryChange(e) {
  4286. let params = {
  4287. orderNo: this.orderno,
  4288. orderStatus: e == 888 ? "" : e
  4289. };
  4290. this.$api.letter.queryQuoteHistory(params).then(res => {
  4291. res.data.forEach(item => {
  4292. if (item.accidentInfo) {
  4293. item.accidentInfo.constructor === Object
  4294. ? [item.accidentInfo]
  4295. : item.accidentInfo;
  4296. }
  4297. });
  4298. this.HistoryList = res.data;
  4299. });
  4300. },
  4301. protocolJudge(val, val1) {
  4302. if (val1) {
  4303. this.totalCompanyList.forEach(e => {
  4304. if (e.agreement.find(el => el.productsCode && el.productsCode.includes(val))) {
  4305. e.agreement.find(el => el.productsCode && el.productsCode.includes(val)).disabled = true
  4306. }
  4307. })
  4308. }
  4309. else {
  4310. this.totalCompanyList.forEach(e => {
  4311. if (e.agreement.find(el => el.productsCode && el.productsCode.includes(val))) {
  4312. e.agreement.find(el => el.productsCode && el.productsCode.includes(val)).disabled = false
  4313. }
  4314. })
  4315. }
  4316. },
  4317. async obtainProtocol(data) {
  4318. let res = {}
  4319. if (this.isLetter) {
  4320. res = await this.$api.letter.getAllAgreement()
  4321. }
  4322. else {
  4323. res = await this.$api.letter.getAllAgreementByUserId({ userId: this.userId })
  4324. }
  4325. if (res.code == 200) {
  4326. res.data.map(ele => {
  4327. ele["result"] = {};
  4328. ele["quoteCode"] = 0;
  4329. ele["checked"] = false;
  4330. ele["msg"] = "";
  4331. ele["lastYearMsg"] = "";
  4332. ele["agreementId"] = "";
  4333. ele["apiType"] = "";
  4334. ele["orderstatus"] = 0;
  4335. ele.coefficient = "";
  4336. // ele.agreementId = ele.agreement[0].id;
  4337. // ele.apiType = ele.agreement[0].apiType;
  4338. ele.underwritingDescription =
  4339. ele.agreement[0].underwritingDescription;
  4340. if (ele.isTaxSource && ele.isTaxSource == "1") {
  4341. ele.agreement.forEach(val => {
  4342. if (val.isTaxSource && val.isTaxSource == "1") {
  4343. ele.agreementId = val.id;
  4344. ele.apiType = val.apiType;
  4345. }
  4346. });
  4347. }
  4348. });
  4349. if (data) {
  4350. res.data.forEach((val, index) => {
  4351. data.insAreaCompanyEditingDtos.forEach(ele => {
  4352. if (val.namesimple == ele.inscompany) {
  4353. if (ele.inscompany == "中国人寿" && ele.companyId) {
  4354. this.lastCompanyId = ele.companyId;
  4355. }
  4356. res.data[index].quoteCode = 200;
  4357. res.data[index].result = ele;
  4358. }
  4359. });
  4360. });
  4361. }
  4362. }
  4363. res.data.forEach(e => {
  4364. e.agreement.forEach(el => el.disabled = false)
  4365. })
  4366. this.totalCompanyList = res.data;
  4367. },
  4368. //获取保险公司列表
  4369. // commpanyList() {
  4370. // this.$api.letter.gainAllowQuoteList("").then(res => {
  4371. // res.data.map(ele => {
  4372. // ele["result"] = {};
  4373. // ele["quoteCode"] = 0;
  4374. // ele["checked"] = false;
  4375. // ele["msg"] = "";
  4376. // ele["lastYearMsg"] = "";
  4377. // ele["agreementId"] = "";
  4378. // ele["apiType"] = "";
  4379. // ele["orderstatus"] = 0;
  4380. // ele.coefficient = "";
  4381. // // ele.agreementId = ele.agreement[0].id;
  4382. // ele.apiType = ele.agreement[0].apiType;
  4383. // ele.underwritingDescription =
  4384. // ele.agreement[0].underwritingDescription;
  4385. // });
  4386. // if (this.$route.query.data) {
  4387. // res.data.forEach((val, index) => {
  4388. // this.$route.query.data.insAreaCompanyEditingDtos.forEach(ele => {
  4389. // if (val.namesimple == ele.inscompany) {
  4390. // res.data[index].quoteCode = 200;
  4391. // res.data[index].result = ele;
  4392. // }
  4393. // });
  4394. // });
  4395. // }
  4396. // this.totalCompanyList = res.data;
  4397. // });
  4398. // },
  4399. Payment(id, item) {
  4400. this.carcode(id, item);
  4401. },
  4402. //选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
  4403. agreementChange(val, row, index, item) {
  4404. let obj = {};
  4405. obj = row.find(item => {
  4406. return item;
  4407. });
  4408. let selectRow = row.find(item => {
  4409. return item.id == val;
  4410. });
  4411. this.totalCompanyList[index].apiType = obj.apiType;
  4412. this.totalCompanyList[index].underwritingDescription = val
  4413. ? selectRow.underwritingDescription
  4414. : ""; //重新赋值修改选中协议承保描述
  4415. this.$api.letter
  4416. .getDrivingInsuranceRule({
  4417. companyCode: item.id,
  4418. agreementId: item.agreementId,
  4419. seatNum:item.namesimple=='永诚财险' ||item.namesimple=='中煤财险'? Number(this.carInfo.seatCount):'',
  4420. ruleUseNature:this.carInfo.carnature
  4421. })
  4422. .then(res => {
  4423. if (res.code == 200) {
  4424. switch(item.namesimple) {
  4425. case "永诚财险":
  4426. this.accidentDataList = res.data;
  4427. break;
  4428. case "国任财险":
  4429. this.guoRenaccidentDataList = res.data;
  4430. break;
  4431. case "渤海财险":
  4432. this.boHaiaccidentDataList = res.data;
  4433. break;
  4434. case "中煤财险":
  4435. this[item.cnName + + "InsuranceData"] =res.data;
  4436. break;
  4437. case "紫金财险":
  4438. let data = res.data;
  4439. data.map(ele => {
  4440. ele.quantity = 1;
  4441. return ele;
  4442. });
  4443. this.ziJinInsuranceData = data;
  4444. break;
  4445. case "大家财险":
  4446. this.dajiaInsuranceData = res.data;
  4447. break;
  4448. case "中国人寿":
  4449. case "恒邦财险":
  4450. case "太平财险":
  4451. case "安盛天平":
  4452. case "华农财险":
  4453. case "众安财险":
  4454. res.data.map(ele => {
  4455. ele.quantity = 1;
  4456. return ele;
  4457. });
  4458. this[item.cnName + "InsuranceData"] = res.data;
  4459. break;
  4460. }
  4461. }
  4462. else{
  4463. this.$message.error(res.msg)
  4464. }
  4465. });
  4466. // switch (item.namesimple) {
  4467. // case "永诚财险":
  4468. // this.accidentForm.agreementId = item.agreementId;
  4469. // this.$api.letter
  4470. // .ycgainAccidentList({
  4471. // companyCode: item.id,
  4472. // agreementId: item.agreementId,
  4473. // seatNum: Number(this.carInfo.seatCount)
  4474. // })
  4475. // .then(res => {
  4476. // if (res.code == 200) {
  4477. // this.accidentDataList = res.data;
  4478. // }
  4479. // });
  4480. // break;
  4481. // case "国任财险":
  4482. // this.guoRenaccidentForm.agreementId = item.agreementId;
  4483. // this.$api.letter
  4484. // .syncNonAutoInsGuoren({ agreementId: item.agreementId })
  4485. // .then(res => {
  4486. // if (res.code == 200) {
  4487. // this.guoRenaccidentDataList = res.data;
  4488. // } else {
  4489. // this.guoRenaccidentDataList = [];
  4490. // }
  4491. // });
  4492. // break;
  4493. // case "渤海财险":
  4494. // this.boHaiaccidentForm.agreementId = item.agreementId;
  4495. // let policyHolderInfo = this.tbczcarShow
  4496. // ? this.ownerInfo
  4497. // : this.policyHolderInfo;
  4498. // let productQueryVo = {
  4499. // agreementId: item.agreementId,
  4500. // carnature: this.carInfo.carnature,
  4501. // cimodelclass: this.carInfo.cimodelclass,
  4502. // exhaustScale: this.carInfo.enginedesc,
  4503. // limitLoad: this.carInfo.limitLoad,
  4504. // powerScale: this.carInfo.powerScale,
  4505. // seatCount: this.carInfo.seatCount,
  4506. // vehicleUse: this.carInfo.vehicleUse,
  4507. // policyHolderInfo,
  4508. // insuredPersonInfo: this.bbczcarShow
  4509. // ? this.ownerInfo
  4510. // : this.bbtbcarShow
  4511. // ? policyHolderInfo
  4512. // : this.insuredPersonInfo
  4513. // };
  4514. // this.$api.letter.productQueryboHai(productQueryVo).then(res => {
  4515. // if (res.code == 200) {
  4516. // this.boHaiaccidentDataList = res.data;
  4517. // } else {
  4518. // this.boHaiaccidentDataList = [];
  4519. // }
  4520. // });
  4521. // break;
  4522. // case "紫金财险":
  4523. // this.$api.letter
  4524. // .zijinqueryVehicleProducts({
  4525. // agreementId: val,
  4526. // seatCount: Number(this.carInfo.seatCount)
  4527. // })
  4528. // .then(res => {
  4529. // if (res.code == 200) {
  4530. // let data = res.data;
  4531. // data.map(ele => {
  4532. // ele.quantity = 1;
  4533. // return ele;
  4534. // });
  4535. // this.ziJinInsuranceData = data;
  4536. // } else {
  4537. // this.$message.error(res.msg);
  4538. // }
  4539. // });
  4540. // break;
  4541. // case "中国人寿":
  4542. // case "恒邦财险":
  4543. // case "太平财险":
  4544. // case "安盛天平":
  4545. // case "华农财险":
  4546. // case "众安财险":
  4547. // this.$api.letter.pythongetDriving({ agreementId: val }).then(res => {
  4548. // if (res.code == 200) {
  4549. // let data = res.data;
  4550. // data.map(ele => {
  4551. // ele.quantity = 1;
  4552. // return ele;
  4553. // });
  4554. // this[item.cnName + "InsuranceData"] = data;
  4555. // }
  4556. // });
  4557. // break;
  4558. // case "大家财险":
  4559. // this.$api.letter
  4560. // .dajiagetDriving({ agreementId: item.agreementId })
  4561. // .then(res => {
  4562. // if (res.code == 200) {
  4563. // this.dajiaInsuranceData = res.data;
  4564. // }
  4565. // });
  4566. // break;
  4567. // default:
  4568. // break;
  4569. // }
  4570. },
  4571. CheckboxChange(select, row) {
  4572. this.accidentalDrivingVo = [];
  4573. select.map(val => {
  4574. this.accidentalDrivingVo.push(val);
  4575. return val;
  4576. });
  4577. },
  4578. //恒邦驾意险选择
  4579. HBDrivingChange(row) {
  4580. this.hengbangaccidentalDrivingVo = row;
  4581. },
  4582. //人寿驾意险选择
  4583. RSDrivingChange(row) {
  4584. this.renshouaccidentalDrivingVo = row;
  4585. },
  4586. //众安驾意险选择
  4587. ZADrivingChange(row) {
  4588. this.zhonganaccidentalDrivingVo = row;
  4589. },
  4590. RSDrivingRadio(row) {
  4591. this.RSDrivingChange(row);
  4592. },
  4593. HBDrivingRadio(row) {
  4594. this.HBDrivingChange(row);
  4595. },
  4596. //安盛驾意险选择
  4597. ASDrivingRadio(row) {
  4598. this.AStemplateSelection = row.projectCode;
  4599. this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
  4600. this.anshengaccidentalDrivingVo.projectName = row.projectName;
  4601. },
  4602. ZADrivingRadio(row) {
  4603. this.ZADrivingChange(row);
  4604. },
  4605. // 国任特约选择
  4606. contributingGuoRen(id) {
  4607. this.zijinengageListData = [];
  4608. this.contributingLoading = true;
  4609. this.contributingState = true;
  4610. this.hbsubmitdialogVisible = true;
  4611. this.$api.letter.guorenqueryClauseData({ agreementId: id }).then(res => {
  4612. this.contributingLoading = false;
  4613. res.data.forEach(val => {
  4614. val.clauseName = val.clauses;
  4615. val.clauseContent = val.clausesContext;
  4616. });
  4617. this.zijinengageListData = res.data;
  4618. });
  4619. },
  4620. //紫金特约选择
  4621. zijinengageChange(select, row) {
  4622. this.zijinengageList = [];
  4623. select.map(val => {
  4624. this.zijinengageList.push({
  4625. clauseCode: val.clauseCode,
  4626. clauseName: val.clauseName,
  4627. clauses: val.clauseContent,
  4628. riskCode: val.riskCode
  4629. });
  4630. return val;
  4631. });
  4632. },
  4633. zijinengageChangeAll(row) {
  4634. if (row) {
  4635. this.zijinengageChange(row);
  4636. } else {
  4637. this.$refs.expandTablePro.clearSelection();
  4638. this.zijinengageList = [];
  4639. }
  4640. },
  4641. //紫金特约内容编辑
  4642. zijincellDblclick(row, column) {
  4643. this.currentCell = row.index + "," + column.index;
  4644. if (
  4645. !["clauseContent"].includes(column.property) &&
  4646. row.modifyFlag == "1"
  4647. ) {
  4648. setTimeout(() => {
  4649. this.$refs[row.index + "," + column.index].focus();
  4650. });
  4651. }
  4652. },
  4653. tableCellClassName({ row, column, rowIndex, columnIndex }) {
  4654. row.index = rowIndex;
  4655. column.index = columnIndex;
  4656. },
  4657. hideInput() {
  4658. this.currentCell = null;
  4659. },
  4660. //勾选保险公司
  4661. initchange(e, code, name, index) {
  4662. if (e) {
  4663. let ins = this.totalCompanyList[index].namesimple;
  4664. this.totalCompanyList[index].checked = e;
  4665. this.totalCompanyList[
  4666. index
  4667. ].underwritingDescription = this.totalCompanyList[
  4668. index
  4669. ].agreement[0].underwritingDescription;
  4670. this.$api.letter
  4671. .getDrivingInsuranceRule({
  4672. agreementId: this.totalCompanyList[index].agreement[0].id,
  4673. seatNum:ins=='永诚财险' || ins=='中煤财险'? Number(this.carInfo.seatCount):'',
  4674. ruleUseNature:this.carInfo.carnature
  4675. })
  4676. .then(res => {
  4677. if (res.code == 200) {
  4678. switch(ins) {
  4679. case "永诚财险":
  4680. this.accidentDataList = res.data;
  4681. break;
  4682. case "国任财险":
  4683. this.guoRenaccidentDataList = res.data;
  4684. break;
  4685. case "渤海财险":
  4686. this.boHaiaccidentDataList = res.data;
  4687. break;
  4688. case "中煤财险":
  4689. this[name + "InsuranceData"] =res.data;
  4690. break;
  4691. case "紫金财险":
  4692. let data = res.data;
  4693. data.map(ele => {
  4694. ele.quantity = 1;
  4695. return ele;
  4696. });
  4697. this.ziJinInsuranceData = data;
  4698. break;
  4699. case "大家财险":
  4700. this.dajiaInsuranceData = res.data;
  4701. break;
  4702. case "中国人寿":
  4703. case "恒邦财险":
  4704. case "太平财险":
  4705. case "安盛天平":
  4706. case "华农财险":
  4707. case "众安财险":
  4708. res.data.map(ele => {
  4709. ele.quantity = 1;
  4710. return ele;
  4711. });
  4712. this[name + "InsuranceData"] = res.data
  4713. break;
  4714. }
  4715. }
  4716. else{
  4717. this.$message.error(res.msg)
  4718. }
  4719. });
  4720. // switch (ins) {
  4721. // case "永诚财险":
  4722. // this.accidentForm.agreementId = this.totalCompanyList[
  4723. // index
  4724. // ].agreement[0].id;
  4725. // this.$api.letter
  4726. // .ycgainAccidentList({
  4727. // companyCode: this.totalCompanyList[index].id,
  4728. // agreementId: this.totalCompanyList[index].agreement[0].id,
  4729. // seatNum: Number(this.carInfo.seatCount)
  4730. // })
  4731. // .then(res => {
  4732. // if (res.code == 200) {
  4733. // this.accidentDataList = res.data;
  4734. // } else {
  4735. // this.accidentDataList = [];
  4736. // }
  4737. // });
  4738. // break;
  4739. // case "国任财险":
  4740. // this.guoRenaccidentForm.agreementId = this.totalCompanyList[
  4741. // index
  4742. // ].agreement[0].id;
  4743. // this.$api.letter
  4744. // .syncNonAutoInsGuoren({
  4745. // goodsCode: "",
  4746. // agreementId: this.totalCompanyList[index].agreement[0].id
  4747. // })
  4748. // .then(res => {
  4749. // if (res.code == 200) {
  4750. // this.guoRenaccidentDataList = res.data;
  4751. // } else {
  4752. // this.guoRenaccidentDataList = [];
  4753. // }
  4754. // });
  4755. // break;
  4756. // case "紫金财险":
  4757. // this.$api.letter
  4758. // .zijinqueryVehicleProducts({
  4759. // agreementId: this.totalCompanyList[index].agreement[0].id,
  4760. // seatCount: Number(this.carInfo.seatCount)
  4761. // })
  4762. // .then(res => {
  4763. // if (res.code == 200) {
  4764. // let data = res.data;
  4765. // data.map(ele => {
  4766. // ele.quantity = 1;
  4767. // return ele;
  4768. // });
  4769. // this.ziJinInsuranceData = data;
  4770. // } else {
  4771. // this.$message.error(res.msg);
  4772. // }
  4773. // });
  4774. // break;
  4775. // case "安盛天平":
  4776. // this.$api.letter
  4777. // .pythongetDriving({
  4778. // agreementId: this.totalCompanyList[index].agreement[0].id
  4779. // })
  4780. // .then(res => {
  4781. // if (res.code == 200) {
  4782. // let data = res.data;
  4783. // data.map(ele => {
  4784. // ele.departmentProductList.map(val => {
  4785. // val.quantity = 1;
  4786. // });
  4787. // return ele;
  4788. // });
  4789. // this[name + "InsuranceData"] = data;
  4790. // } else {
  4791. // this.$message.error(res.msg);
  4792. // }
  4793. // });
  4794. // break;
  4795. // case "中国人寿":
  4796. // case "恒邦财险":
  4797. // case "太平财险":
  4798. // case "华农财险":
  4799. // case "众安财险":
  4800. // this.$api.letter
  4801. // .pythongetDriving({
  4802. // agreementId: this.totalCompanyList[index].agreement[0].id
  4803. // })
  4804. // .then(res => {
  4805. // if (res.code == 200) {
  4806. // let data = res.data;
  4807. // data.map(ele => {
  4808. // ele.quantity = 1;
  4809. // return ele;
  4810. // });
  4811. // this[name + "InsuranceData"] = data;
  4812. // } else {
  4813. // this.$message.error(res.msg);
  4814. // }
  4815. // });
  4816. // break;
  4817. // case "中煤财险":
  4818. // this.accidentFormZM.agreementId = this.totalCompanyList[
  4819. // index
  4820. // ].agreement[0].id;
  4821. // this.$api.letter
  4822. // .zmGetDrivingPro({
  4823. // agreementId: this.totalCompanyList[index].agreement[0].id,
  4824. // seatNum: this.carInfo.seatCount
  4825. // })
  4826. // .then(res => {
  4827. // if (res.code == 200) {
  4828. // let data = res.data;
  4829. // this[name + "InsuranceData"] = data;
  4830. // } else {
  4831. // this.$message.error(res.msg);
  4832. // }
  4833. // });
  4834. // break;
  4835. // case "大家财险":
  4836. // this.$api.letter
  4837. // .dajiagetDriving({
  4838. // agreementId: this.totalCompanyList[index].agreement[0].id
  4839. // })
  4840. // .then(res => {
  4841. // if (res.code == 200) {
  4842. // this.dajiaInsuranceData = res.data;
  4843. // } else {
  4844. // this.$message.error(res.msg);
  4845. // }
  4846. // });
  4847. // break;
  4848. // default:
  4849. // break;
  4850. // }
  4851. } else {
  4852. }
  4853. },
  4854. clearAccidentForm() {
  4855. this.accidentForm = {};
  4856. this.accidentForm.fen = 1;
  4857. this.accidentForm.premium = 0;
  4858. },
  4859. clearAccidentFormGr() {
  4860. (this.guoRenaccidenttableData = []),
  4861. (this.guoRenaccidentDataListChild = []);
  4862. this.guoRenaccidentForm = {
  4863. quantity: "1",
  4864. premium: 0
  4865. };
  4866. },
  4867. clearAccidentFormBh() {
  4868. this.boHaiaccidenttableData = [];
  4869. this.boHaiaccidentForm = {
  4870. copies: "1",
  4871. premium: 0
  4872. };
  4873. // this.bohaiaccidentalDrivingVo={};
  4874. },
  4875. clearAccidentFormHN() {
  4876. this.huanongaccidentalDrivingVo = {};
  4877. },
  4878. clearAccidentFormHB() {
  4879. this.hengbangaccidentalDrivingVo = {};
  4880. },
  4881. clearAccidentFormTP() {
  4882. this.taipingaccidentalDrivingVo = {};
  4883. },
  4884. clearAccidentFormDJ() {
  4885. this.dajiaaccidentalDrivingVo = {};
  4886. },
  4887. clearAccidentFormZM() {
  4888. this.zhongmeiaccidentalDrivingVo = {};
  4889. },
  4890. clearAccidentFormZJ() {
  4891. this.accidentalDrivingVo = [];
  4892. },
  4893. clearAccidentFormZA() {
  4894. this.zhonganaccidentalDrivingVo = {};
  4895. },
  4896. clearAccidentFormRS() {
  4897. this.renshouaccidentalDrivingVo = {};
  4898. },
  4899. clearAccidentFormAS() {
  4900. this.anshengaccidentalDrivingVo = {};
  4901. },
  4902. //身份证有效期长期
  4903. insureLongterm(e) {
  4904. this[e].identifyValidEndDate = "9999-12-31";
  4905. },
  4906. //较强起保日期事件
  4907. jqChange(e) {
  4908. this.jqendDate = this.oneYearPast1(e);
  4909. },
  4910. //商业起保日期事件
  4911. syChange(e) {
  4912. this.syendDate = this.oneYearPast1(e);
  4913. },
  4914. // //查看更多
  4915. // selectMore(leg) {
  4916. // this.insureMore = false;
  4917. // this.insureLength = leg;
  4918. // },
  4919. // //收起
  4920. // packup() {
  4921. // this.insureMore = true;
  4922. // this.insureLength = 5;
  4923. // },
  4924. //险别选择框事件
  4925. insureitemChange(e) {
  4926. this.protocolJudge('A', e)
  4927. if (e != 0) {
  4928. this.sychecked = true;
  4929. this.systartDate = this.transformTime1();
  4930. this.syendDate = this.oneYearPast1(this.systartDate);
  4931. }
  4932. },
  4933. all() {
  4934. this.$refs.detailsDialog.setBackupVisible(true);
  4935. },
  4936. base64ToBlob(code) {
  4937. code = code.replace(/[\n\r]/g, "");
  4938. // atob() 方法用于解码使用 base-64 编码的字符串。
  4939. const raw = window.atob(code);
  4940. const rawLength = raw.length;
  4941. const uInt8Array = new Uint8Array(rawLength);
  4942. for (let i = 0; i < rawLength; ++i) {
  4943. uInt8Array[i] = raw.charCodeAt(i);
  4944. }
  4945. return new Blob([uInt8Array], { type: "application/pdf" });
  4946. },
  4947. viewPdf(content) {
  4948. if (!content) {
  4949. this.$message.error("暂无文件");
  4950. return;
  4951. }
  4952. const blob = this.base64ToBlob(content);
  4953. this.href = blob;
  4954. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  4955. window.navigator.msSaveOrOpenBlob(blob);
  4956. } else {
  4957. const fileURL = URL.createObjectURL(blob);
  4958. window.open(fileURL);
  4959. }
  4960. },
  4961. creatQrCode(text) {
  4962. if (this.qrcode) {
  4963. this.qrcode.clear();
  4964. this.qrcode.makeCode(text);
  4965. } else {
  4966. this.qrcode = new QRCode("qrcode", {
  4967. text: text,
  4968. width: this.qrcodeWidth,
  4969. height: this.qrcodeHeight,
  4970. colorDark: "#000000",
  4971. colorLight: "#ffffff",
  4972. correctLevel: QRCode.CorrectLevel.H
  4973. });
  4974. }
  4975. },
  4976. //人工核保
  4977. underwriting(id) {
  4978. let param = {
  4979. companyId: id
  4980. };
  4981. this.$api.letter.manualUnderwriting(param).then(res => {
  4982. if (res.code == "200") {
  4983. this.Payment(id);
  4984. }
  4985. });
  4986. },
  4987. jqcheckedChange(e) {
  4988. this.protocolJudge('0507', e)
  4989. if (e) {
  4990. this.jqstartDate = this.transformTime1();
  4991. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  4992. } else {
  4993. this.jqstartDate = "";
  4994. this.jqendDate = "";
  4995. }
  4996. },
  4997. sycheckedChange(e) {
  4998. this.protocolJudge('0510', e)
  4999. if (e) {
  5000. this.systartDate = this.transformTime1();
  5001. this.syendDate = this.oneYearPast1(this.systartDate);
  5002. } else {
  5003. this.systartDate = "";
  5004. this.syendDate = "";
  5005. }
  5006. },
  5007. //报价
  5008. quote() {
  5009. let starttime = new Date(this.carInfo.registerDate);
  5010. let endtime = new Date(this.carInfo.issueDate);
  5011. if (endtime < starttime) {
  5012. this.$message({ message: "发证日期早于初登日期", type: "error" });
  5013. return;
  5014. }
  5015. this.$refs["carInfo"].validate(valid => {
  5016. if (valid) {
  5017. var _this = this;
  5018. _this.$refs["ownerInfo"].validate(valid1 => {
  5019. if (valid1) {
  5020. if (_this.tbczcarShow == true) {
  5021. _this.policyHolderInfo = JSON.parse(
  5022. JSON.stringify(_this.ownerInfo)
  5023. );
  5024. }
  5025. if (_this.bbczcarShow == true) {
  5026. _this.insuredPersonInfo = JSON.parse(
  5027. JSON.stringify(_this.ownerInfo)
  5028. );
  5029. }
  5030. if (_this.bbtbcarShow == true) {
  5031. _this.insuredPersonInfo = JSON.parse(
  5032. JSON.stringify(_this.policyHolderInfo)
  5033. );
  5034. }
  5035. _this.carInfo.vinNo = _this.carInfo.frameNo;
  5036. _this.riskList = []; //险种大类
  5037. _this.kindList = []; //商业险险别
  5038. if (
  5039. (!_this.jqstartDate || !_this.jqendDate) &&
  5040. (!_this.systartDate || !_this.syendDate)
  5041. ) {
  5042. this.$message({ message: "投保日期不能为空", type: "warning" });
  5043. } else {
  5044. this.calculateLoading = true;
  5045. setInterval(() => {
  5046. this.calculateLoading = false;
  5047. }, 3000);
  5048. if (_this.jqchecked) {
  5049. //交强
  5050. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  5051. _this.jqendDate = this.transformTime(_this.jqendDate);
  5052. _this.riskList.push({
  5053. amount: "200000",
  5054. premium: "0",
  5055. riskCode: "0507",
  5056. endDate: _this.jqendDate,
  5057. startDate: _this.jqstartDate,
  5058. instantFlag: "0"
  5059. });
  5060. }
  5061. if (_this.sychecked) {
  5062. _this.systartDate = this.transformTime(_this.systartDate);
  5063. _this.syendDate = this.transformTime(_this.syendDate);
  5064. //商业
  5065. _this.riskList.push({
  5066. premium: "0",
  5067. riskCode: "0510",
  5068. quotePreceptCode: "",
  5069. quotePreceptName: "",
  5070. endDate: _this.syendDate,
  5071. startDate: _this.systartDate,
  5072. instantFlag: "0"
  5073. });
  5074. _this.insureList.map((ele, index) => {
  5075. if (
  5076. ele.amount != "0" &&
  5077. (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  5078. ) {
  5079. _this.kindList.push({
  5080. unitAmount: _this.insureList[index].amount,
  5081. kindCode: _this.insureList[index].kindCode,
  5082. kindName: _this.insureList[index].kindName
  5083. });
  5084. } else if (
  5085. ele.amount != "0" &&
  5086. (ele.kindCode == "MJ1" ||
  5087. ele.kindCode == "MJ2" ||
  5088. ele.kindCode == "MJ3" ||
  5089. ele.kindCode == "MJ4")
  5090. ) {
  5091. _this.kindList.push({
  5092. deductibleRate: _this.insureList[index].amount,
  5093. kindCode: _this.insureList[index].kindCode,
  5094. kindName: _this.insureList[index].kindName
  5095. });
  5096. } else if (
  5097. ele.amount != "0" &&
  5098. (ele.kindCode == "TY1" ||
  5099. ele.kindCode == "TY2" ||
  5100. ele.kindCode == "TY3" ||
  5101. ele.kindCode == "TY4")
  5102. ) {
  5103. _this.kindList.push({
  5104. serviceTimes: _this.insureList[index].amount,
  5105. kindCode: _this.insureList[index].kindCode,
  5106. kindName: _this.insureList[index].kindName
  5107. });
  5108. } else if (ele.amount != "0") {
  5109. _this.kindList.push({
  5110. amount: _this.insureList[index].amount,
  5111. kindCode: _this.insureList[index].kindCode,
  5112. kindName: _this.insureList[index].kindName
  5113. });
  5114. }
  5115. return ele;
  5116. });
  5117. } else {
  5118. _this.kindList = [];
  5119. }
  5120. // if (_this.orderno) {
  5121. this.OrderStageProcessing();
  5122. // } else {
  5123. // _this.$api.letter.getquote().then(res => {
  5124. // _this.quoteno = res.data; //获取报价号
  5125. // this.OrderStageProcessing();
  5126. // });
  5127. // }
  5128. }
  5129. } else {
  5130. document.getElementById("CheZhu").scrollIntoView();
  5131. _this.$message({ message: "请检查人员信息", type: "warning" });
  5132. }
  5133. });
  5134. } else {
  5135. document.getElementById("Car").scrollIntoView();
  5136. this.$message({ message: "请检查车辆信息", type: "warning" });
  5137. return false;
  5138. }
  5139. });
  5140. },
  5141. //动态函数
  5142. ToolClickFun(MethodName, Parameter, companyId, companyName) {
  5143. this[`${MethodName}`](Parameter, companyId, companyName);
  5144. },
  5145. //更新报价历史
  5146. QuotationHistory() {
  5147. let params = {
  5148. orderNo: this.orderno,
  5149. orderStatus: ""
  5150. };
  5151. this.$api.letter.queryQuoteHistory(params).then(res => {
  5152. res.data.forEach(item => {
  5153. if (item.accidentInfo) {
  5154. item.accidentInfo.constructor === Object
  5155. ? [item.accidentInfo]
  5156. : item.accidentInfo;
  5157. }
  5158. });
  5159. this.HistoryList = res.data;
  5160. });
  5161. },
  5162. open2(Name, Msg) {
  5163. this.$notify.info({
  5164. title: Name,
  5165. dangerouslyUseHTMLString: true,
  5166. type: "warning",
  5167. message: Msg,
  5168. customClass: "customNotifyClass",
  5169. duration: 7000
  5170. });
  5171. },
  5172. open3(Name, Msg) {
  5173. this.$notify.info({
  5174. title: Name,
  5175. dangerouslyUseHTMLString: true,
  5176. type: "warning",
  5177. message: `<p>${Msg.replace(/\n/g, '<br>')}</p>`,
  5178. customClass: "customNotifyClass",
  5179. duration: 7000
  5180. });
  5181. },
  5182. openPredictInfo(Name, Msg) {
  5183. this.redictInfoMsg = Msg;
  5184. this.redictInfodialogVisible = true;
  5185. },
  5186. //订单生成前数据处理事件
  5187. OrderStageProcessing() {
  5188. if (this.tbczcarShow && this.imageList2.length > 0) {
  5189. //投保人同车主
  5190. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  5191. if (this.imageList3.length == 1 ) {
  5192. this.imageList3[0].imageType = this.imageList3[0].imageType.includes('C0')?"C03":'D03'
  5193. }
  5194. else {
  5195. this.imageList3.forEach(e=>{
  5196. e.imageType= e.imageType.includes('C0')?"C03":'D03'
  5197. })
  5198. }
  5199. }
  5200. if (this.bbczcarShow && this.imageList2.length > 0) {
  5201. //被保人同车主
  5202. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  5203. if (this.imageList4.length == 1 ) {
  5204. this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0')?"C04":'D04'
  5205. }
  5206. else {
  5207. this.imageList4.forEach(e=>{
  5208. e.imageType= e.imageType.includes('C0')?"C04":'D04'
  5209. })
  5210. }
  5211. // if (this.imageList4.length == 1) {
  5212. // this.imageList4[0].imageType = "C04";
  5213. // }
  5214. // else {
  5215. // this.imageList4[0].imageType = "C04";
  5216. // this.imageList4[1].imageType = "D04";
  5217. // }
  5218. }
  5219. if (this.bbtbcarShow && this.imageList3.length > 0) {
  5220. //被保人同投保人
  5221. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  5222. if (this.imageList4.length == 1 ) {
  5223. this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0')?"C04":'D04'
  5224. }
  5225. else {
  5226. this.imageList4.forEach(e=>{
  5227. e.imageType= e.imageType.includes('C0')?"C04":'D04'
  5228. })
  5229. }
  5230. // if (this.imageList4.length == 1) {
  5231. // this.imageList4[0].imageType = "C04";
  5232. // } else {
  5233. // this.imageList4[0].imageType = "C04";
  5234. // this.imageList4[1].imageType = "D04";
  5235. // }
  5236. }
  5237. //日期长度<10处理
  5238. const formatDate = date => {
  5239. if (date.length < 10) {
  5240. return this.timeformat(date);
  5241. }
  5242. return date;
  5243. };
  5244. if (this.carInfo.registerDate.length < 10) {
  5245. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  5246. }
  5247. if (this.carInfo.issueDate.length < 10) {
  5248. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  5249. }
  5250. if (
  5251. this.carInfo.transferDate &&
  5252. this.carInfo.transferDate.length < 10 &&
  5253. this.carInfo.transferDate !== ""
  5254. ) {
  5255. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  5256. }
  5257. //日期长度<10处理
  5258. //提交身份证/驾驶证 ——————————————————
  5259. this.policyHolderInfo.owner = this.tbczcarShow;
  5260. this.insuredPersonInfo.owner = this.bbczcarShow;
  5261. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  5262. if (typeof this.ownerInfo.provinceData == "string") {
  5263. this.ownerInfo.provinceData = [];
  5264. }
  5265. if (typeof this.insuredPersonInfo.provinceData == "string") {
  5266. this.insuredPersonInfo.provinceData = [];
  5267. }
  5268. if (typeof this.policyHolderInfo.provinceData == "string") {
  5269. this.policyHolderInfo.provinceData = [];
  5270. }
  5271. let param = {
  5272. userId: this.userId,
  5273. quoteno: this.quoteno,
  5274. orderNo: this.orderno,
  5275. carInfo: this.carInfo,
  5276. insuredPersonInfo: this.insuredPersonInfo,
  5277. ownerInfo: this.ownerInfo,
  5278. policyHolderInfo: this.policyHolderInfo,
  5279. kindList: this.kindList,
  5280. riskList: this.riskList,
  5281. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5282. };
  5283. this.$api.letter[this.apiInterfaceName](param).then(res => {
  5284. if (res.code == "200") {
  5285. //上传图片
  5286. const mergedArray = [
  5287. ...this.imageList1,
  5288. ...this.imageList2,
  5289. ...this.imageList3,
  5290. ...this.imageList4,
  5291. ...this.imageList5
  5292. ];
  5293. if (mergedArray.length > 0) {
  5294. let imageparam = {
  5295. imageList: mergedArray,
  5296. quoteNo: res.data.quoteno
  5297. };
  5298. this.$api.letter.uploadImages(imageparam).then(responses => {
  5299. this.imageEcho(res.data.quoteno); // 获取图片
  5300. });
  5301. }
  5302. this.quoteno = res.data.quoteno;
  5303. this.orderno = res.data.orderno;
  5304. this.totalCompanyList.map((ele, index) => {
  5305. if (ele.checked) {
  5306. //动态调用报价接口
  5307. ele.quoteCode = 1;
  5308. ele.orderstatus = 0;
  5309. this.ToolClickFun(ele.cnName, index, ele.id, ele.namesimple);
  5310. }
  5311. });
  5312. } else if (res.code == 1001) {
  5313. this.$confirm("是否生成新订单?", "提示", {
  5314. confirmButtonText: "确定",
  5315. cancelButtonText: "取消",
  5316. type: "warning"
  5317. })
  5318. .then(() => {
  5319. this.orderno = "";
  5320. this.quoteno = "";
  5321. this.quote();
  5322. })
  5323. .catch(() => { });
  5324. } else {
  5325. this.$message({ message: res.msg, type: "warning" });
  5326. }
  5327. });
  5328. document.getElementById("company").scrollIntoView();
  5329. this.imageUploadShow = true;
  5330. },
  5331. //永安报价
  5332. yongan(num, id) {
  5333. let params = {
  5334. orderNo: this.orderno,
  5335. companyId: id,
  5336. agreementId: this.totalCompanyList[num].agreementId
  5337. };
  5338. this.$api.letter.yonganquote(params).then(res => {
  5339. this.totalCompanyList[num].msg = res.msg;
  5340. if (res.msg == "重复投保" && res.code == "501") {
  5341. if (!!res.data.jqStartDate && !res.data.syStartDate) {
  5342. this.jqstartDate = res.data.jqStartDate;
  5343. this.jqendDate = res.data.jqEndDate;
  5344. this.updateRiskDates(
  5345. "0507",
  5346. res.data.jqStartDate,
  5347. res.data.jqEndDate
  5348. );
  5349. let param = {
  5350. userId: this.userId,
  5351. quoteno: this.quoteno,
  5352. orderNo: this.orderno,
  5353. carInfo: this.carInfo,
  5354. insuredPersonInfo: this.insuredPersonInfo,
  5355. ownerInfo: this.ownerInfo,
  5356. policyHolderInfo: this.policyHolderInfo,
  5357. kindList: this.kindList,
  5358. riskList: this.riskList,
  5359. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5360. };
  5361. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5362. this.yongan(num, id);
  5363. });
  5364. } else if (!!res.data.syStartDate && !res.data.jqStartDate) {
  5365. this.systartDate = res.data.syStartDate;
  5366. this.syendDate = res.data.syEndDate;
  5367. this.updateRiskDates(
  5368. "0510",
  5369. res.data.syStartDate,
  5370. res.data.syEndDate
  5371. );
  5372. let param = {
  5373. userId: this.userId,
  5374. quoteno: this.quoteno,
  5375. orderNo: this.orderno,
  5376. carInfo: this.carInfo,
  5377. insuredPersonInfo: this.insuredPersonInfo,
  5378. ownerInfo: this.ownerInfo,
  5379. policyHolderInfo: this.policyHolderInfo,
  5380. kindList: this.kindList,
  5381. riskList: this.riskList,
  5382. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5383. };
  5384. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5385. this.yongan(num, id);
  5386. });
  5387. } else if (!!res.data.syStartDate && !!res.data.jqStartDate) {
  5388. this.jqstartDate = res.data.jqStartDate;
  5389. this.jqendDate = res.data.jqEndDate;
  5390. this.systartDate = res.data.syStartDate;
  5391. this.syendDate = res.data.syEndDate;
  5392. this.updateRiskDates(
  5393. "0507",
  5394. res.data.jqStartDate,
  5395. res.data.jqEndDate
  5396. );
  5397. this.updateRiskDates(
  5398. "0510",
  5399. res.data.syStartDate,
  5400. res.data.syEndDate
  5401. );
  5402. let param = {
  5403. userId: this.userId,
  5404. quoteno: this.quoteno,
  5405. orderNo: this.orderno,
  5406. carInfo: this.carInfo,
  5407. insuredPersonInfo: this.insuredPersonInfo,
  5408. ownerInfo: this.ownerInfo,
  5409. policyHolderInfo: this.policyHolderInfo,
  5410. kindList: this.kindList,
  5411. riskList: this.riskList,
  5412. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5413. };
  5414. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5415. this.yongan(num, id);
  5416. });
  5417. } else {
  5418. this.totalCompanyList[num].quoteCode = "3";
  5419. this.totalCompanyList[num].msg = "重复投保";
  5420. }
  5421. } else if (
  5422. res.code == "500" ||
  5423. res.code == "502" ||
  5424. res.code == "-9999"
  5425. ) {
  5426. this.totalCompanyList[num].quoteCode = "-9999";
  5427. this.totalCompanyList[num].msg = res.msg;
  5428. } else {
  5429. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5430. this.totalCompanyList[num].lastYearMsg = "";
  5431. let dat = res.data.warnMessageList;
  5432. dat.map(ele => {
  5433. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5434. });
  5435. }
  5436. this.totalCompanyList[num].quoteCode = 200;
  5437. this.totalCompanyList[num].result = res.data;
  5438. this.QuotationHistory();
  5439. }
  5440. });
  5441. },
  5442. updateRiskDates(riskCode, startDate, endDate) {
  5443. for (let i = 0; i < this.riskList.length; i++) {
  5444. if (this.riskList[i].riskCode == riskCode) {
  5445. this.riskList[i].startDate = startDate;
  5446. this.riskList[i].endDate = endDate;
  5447. }
  5448. }
  5449. },
  5450. //中煤报价
  5451. zhongmei(num, id) {
  5452. let accidentalDrivingVo = {};
  5453. // if(this.zhongmeiaccidentalDrivingVo){
  5454. // accidentalDrivingVo.rideRiskCode=this.zhongmeiaccidentalDrivingVo.schemeNo;
  5455. // accidentalDrivingVo.rideRiskName=this.zhongmeiaccidentalDrivingVo.schemeName;
  5456. // accidentalDrivingVo.quantity=this.zhongmeiaccidentalDrivingVo.quantity;
  5457. // }
  5458. if (this.accidentFormZM.projectCode) {
  5459. accidentalDrivingVo = {
  5460. projectCode: this.accidentFormZM.projectCode,
  5461. projectName: this.accidentFormZM.projectName,
  5462. quantity: this.accidentFormZM.quantity
  5463. ? this.accidentFormZM.quantity
  5464. : "1"
  5465. };
  5466. }
  5467. let params = {
  5468. accidentalDrivingVo,
  5469. orderNo: this.orderno,
  5470. companyId: id,
  5471. agreementId: this.totalCompanyList[num].agreementId
  5472. };
  5473. this.$api.letter.zhongmeiquote(params).then(res => {
  5474. this.totalCompanyList[num].msg = res.msg;
  5475. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5476. this.totalCompanyList[num].quoteCode = "4";
  5477. this.totalCompanyList[num].msg = res.msg;
  5478. return;
  5479. } else if (
  5480. res.data == null &&
  5481. res.msg.indexOf("交强险平台返回") > -1 &&
  5482. res.msg.indexOf(";终保日期") > -1
  5483. ) {
  5484. this.totalCompanyList[num].lastYearMsg =
  5485. "<b>交强险</b><br>" +
  5486. res.msg.slice(
  5487. res.msg.indexOf("起保日期 "),
  5488. res.msg.indexOf("地区 山西。") + 6
  5489. );
  5490. let time =
  5491. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5492. this.jqstartDate = time;
  5493. this.jqendDate = this.oneYearPast1(time);
  5494. if (this.riskList.length > 0) {
  5495. for (let i = 0; i < this.riskList.length; i++) {
  5496. if (this.riskList[i].riskCode == "0507") {
  5497. this.riskList[i].startDate = time;
  5498. this.riskList[i].endDate = this.oneYearPast1(time);
  5499. }
  5500. }
  5501. }
  5502. let param = {
  5503. userId: this.userId,
  5504. quoteno: this.quoteno,
  5505. orderNo: this.orderno,
  5506. carInfo: this.carInfo,
  5507. insuredPersonInfo: this.insuredPersonInfo,
  5508. ownerInfo: this.ownerInfo,
  5509. policyHolderInfo: this.policyHolderInfo,
  5510. kindList: this.kindList,
  5511. riskList: this.riskList,
  5512. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5513. };
  5514. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5515. this.zhongmei(num, id);
  5516. });
  5517. } else if (!!res.data) {
  5518. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5519. this.totalCompanyList[num].lastYearMsg = "";
  5520. let dat = res.data.warnMessageList;
  5521. dat.map(ele => {
  5522. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5523. });
  5524. }
  5525. this.totalCompanyList[num].quoteCode = 200;
  5526. this.totalCompanyList[num].result = res.data;
  5527. this.QuotationHistory();
  5528. } else {
  5529. this.totalCompanyList[num].quoteCode = "3";
  5530. this.totalCompanyList[num].msg = res.msg;
  5531. return;
  5532. }
  5533. });
  5534. },
  5535. // 大家报价
  5536. dajia(num, id) {
  5537. // let accidentalDrivingVo=[]
  5538. // if(this.dajiaaccidentalDrivingVo){
  5539. // accidentalDrivingVo.rideRiskCode=this.dajiaaccidentalDrivingVo.schemeNo;
  5540. // accidentalDrivingVo.rideRiskName=this.dajiaaccidentalDrivingVo.cvrgName;
  5541. // accidentalDrivingVo.quantity=this.dajiaaccidentalDrivingVo.quantity;
  5542. // }
  5543. let params = {
  5544. accidentalDrivingVo: this.dajiaaccidentalDrivingVo,
  5545. orderNo: this.orderno,
  5546. companyId: id,
  5547. agreementId: this.totalCompanyList[num].agreementId
  5548. };
  5549. this.$api.letter.dajiaquote(params).then(res => {
  5550. this.totalCompanyList[num].msg = res.msg;
  5551. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5552. this.totalCompanyList[num].quoteCode = "4";
  5553. this.totalCompanyList[num].msg = res.msg;
  5554. return;
  5555. } else if (
  5556. res.data == null &&
  5557. res.msg.indexOf("交强险平台返回") > -1 &&
  5558. res.msg.indexOf(";终保日期") > -1
  5559. ) {
  5560. this.totalCompanyList[num].lastYearMsg =
  5561. "<b>交强险</b><br>" +
  5562. res.msg.slice(
  5563. res.msg.indexOf("起保日期 "),
  5564. res.msg.indexOf("地区 山西。") + 6
  5565. );
  5566. let time =
  5567. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5568. this.jqstartDate = time;
  5569. this.jqendDate = this.oneYearPast1(time);
  5570. if (this.riskList.length > 0) {
  5571. for (let i = 0; i < this.riskList.length; i++) {
  5572. if (this.riskList[i].riskCode == "0507") {
  5573. this.riskList[i].startDate = time;
  5574. this.riskList[i].endDate = this.oneYearPast1(time);
  5575. }
  5576. }
  5577. }
  5578. let param = {
  5579. userId: this.userId,
  5580. quoteno: this.quoteno,
  5581. orderNo: this.orderno,
  5582. carInfo: this.carInfo,
  5583. insuredPersonInfo: this.insuredPersonInfo,
  5584. ownerInfo: this.ownerInfo,
  5585. policyHolderInfo: this.policyHolderInfo,
  5586. kindList: this.kindList,
  5587. riskList: this.riskList,
  5588. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5589. };
  5590. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5591. this.dajia(num, id);
  5592. });
  5593. } else if (!!res.data) {
  5594. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5595. this.totalCompanyList[num].lastYearMsg = "";
  5596. let dat = res.data.warnMessageList;
  5597. dat.map(ele => {
  5598. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5599. });
  5600. }
  5601. this.totalCompanyList[num].quoteCode = 200;
  5602. this.totalCompanyList[num].result = res.data;
  5603. this.QuotationHistory();
  5604. } else {
  5605. this.totalCompanyList[num].quoteCode = "3";
  5606. this.totalCompanyList[num].msg = res.msg;
  5607. return;
  5608. }
  5609. });
  5610. },
  5611. //华泰报价
  5612. huatai(num, id) {
  5613. let params = {
  5614. orderNo: this.orderno,
  5615. companyId: id,
  5616. agreementId: this.totalCompanyList[num].agreementId
  5617. };
  5618. this.$api.letter.huataiquote(params).then(res => {
  5619. this.totalCompanyList[num].msg = res.msg;
  5620. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5621. this.totalCompanyList[num].quoteCode = "4";
  5622. this.totalCompanyList[num].msg = res.msg;
  5623. return;
  5624. } else if (
  5625. res.data == null &&
  5626. res.msg.indexOf("交强险平台返回") > -1 &&
  5627. res.msg.indexOf(";终保日期") > -1
  5628. ) {
  5629. //判断保司返回重复投保信息,进行默认赋值起终保日期,重新算费 后面联调需要调整
  5630. let time =
  5631. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5632. this.jqstartDate = time;
  5633. this.jqendDate = this.oneYearPast1(time);
  5634. this.systartDate = time;
  5635. this.syendDate = this.oneYearPast1(time);
  5636. if (this.riskList.length > 0) {
  5637. for (let i = 0; i < this.riskList.length; i++) {
  5638. if (this.riskList[i].riskCode == "0507") {
  5639. this.riskList[i].startDate = time;
  5640. this.riskList[i].endDate = this.oneYearPast1(time);
  5641. } else if (this.riskList[i].riskCode == "0510") {
  5642. this.riskList[i].startDate = time;
  5643. this.riskList[i].endDate = this.oneYearPast1(time);
  5644. }
  5645. }
  5646. }
  5647. let param = {
  5648. userId: this.userId,
  5649. quoteno: this.quoteno,
  5650. orderNo: this.orderno,
  5651. carInfo: this.carInfo,
  5652. insuredPersonInfo: this.insuredPersonInfo,
  5653. ownerInfo: this.ownerInfo,
  5654. policyHolderInfo: this.policyHolderInfo,
  5655. kindList: this.kindList,
  5656. riskList: this.riskList,
  5657. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5658. };
  5659. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5660. this.huatai(num, id);
  5661. });
  5662. } else if (!!res.data) {
  5663. this.totalCompanyList[num].quoteCode = 200;
  5664. this.totalCompanyList[num].result = res.data;
  5665. this.QuotationHistory();
  5666. } else {
  5667. this.totalCompanyList[num].quoteCode = "3";
  5668. this.totalCompanyList[num].msg = res.msg;
  5669. return;
  5670. }
  5671. });
  5672. },
  5673. //紫金报价
  5674. zijin(num, id) {
  5675. let params = {
  5676. accidentalDrivingVo: this.accidentalDrivingVo,
  5677. orderNo: this.orderno,
  5678. companyId: id,
  5679. agreementId: this.totalCompanyList[num].agreementId,
  5680. coefficient: this.totalCompanyList[num].coefficient
  5681. };
  5682. this.$api.letter.zijinquote(params).then(res => {
  5683. this.totalCompanyList[num].msg = res.msg;
  5684. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5685. this.totalCompanyList[num].quoteCode = "4";
  5686. this.totalCompanyList[num].msg = res.msg;
  5687. return;
  5688. } else if (
  5689. res.data == null &&
  5690. res.msg.indexOf("交强险平台返回") > -1 &&
  5691. res.msg.indexOf(";终保日期") > -1
  5692. ) {
  5693. let time =
  5694. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5695. this.jqstartDate = time;
  5696. this.jqendDate = this.oneYearPast1(time);
  5697. this.systartDate = time;
  5698. this.syendDate = this.oneYearPast1(time);
  5699. if (this.riskList.length > 0) {
  5700. for (let i = 0; i < this.riskList.length; i++) {
  5701. if (this.riskList[i].riskCode == "0507") {
  5702. this.riskList[i].startDate = time;
  5703. this.riskList[i].endDate = this.oneYearPast1(time);
  5704. } else if (this.riskList[i].riskCode == "0510") {
  5705. this.riskList[i].startDate = time;
  5706. this.riskList[i].endDate = this.oneYearPast1(time);
  5707. }
  5708. }
  5709. }
  5710. let param = {
  5711. userId: this.userId,
  5712. quoteno: this.quoteno,
  5713. orderNo: this.orderno,
  5714. carInfo: this.carInfo,
  5715. insuredPersonInfo: this.insuredPersonInfo,
  5716. ownerInfo: this.ownerInfo,
  5717. policyHolderInfo: this.policyHolderInfo,
  5718. kindList: this.kindList,
  5719. riskList: this.riskList,
  5720. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5721. };
  5722. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5723. this.zijin(num, id);
  5724. });
  5725. } else if (!!res.data) {
  5726. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5727. this.totalCompanyList[num].lastYearMsg = "";
  5728. let dat = res.data.warnMessageList;
  5729. dat.map(ele => {
  5730. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5731. });
  5732. }
  5733. this.totalCompanyList[num].quoteCode = 200;
  5734. this.totalCompanyList[num].result = res.data;
  5735. this.QuotationHistory();
  5736. } else {
  5737. this.totalCompanyList[num].quoteCode = "3";
  5738. this.totalCompanyList[num].msg = res.msg;
  5739. return;
  5740. }
  5741. });
  5742. },
  5743. //永诚报价
  5744. yongcheng(num, id) {
  5745. this.iscCrownerShow = false;
  5746. this.isInsuredShow = false;
  5747. this.isApplicantShow = false;
  5748. let accidentalDrivingVo = {};
  5749. if (this.accidentForm.projectCode) {
  5750. let data = this.accidentDataList.find(
  5751. val => val.projectCode == this.accidentForm.accidentType
  5752. );
  5753. accidentalDrivingVo = {
  5754. rideRiskCode: data.projectCode ? data.projectCode : "",
  5755. rideRiskName: data.projectName ? data.projectName : "",
  5756. quantity: this.accidentForm.quantity ? this.accidentForm.quantity : ""
  5757. };
  5758. }
  5759. let params = {
  5760. accidentalDrivingVo,
  5761. orderNo: this.orderno,
  5762. companyId: id,
  5763. cqryCdeJq: this.cqryCdeJq,
  5764. cqryCdeSy: this.cqryCdeSy,
  5765. renewalCodeJq: this.renewalCodeJq,
  5766. renewalCodeSy: this.renewalCodeSy,
  5767. agreementId: this.totalCompanyList[num].agreementId
  5768. };
  5769. this.$api.letter.yongchengquote(params).then(res => {
  5770. this.totalCompanyList[num].msg = res.msg;
  5771. if (
  5772. res.data == null &&
  5773. res.msg.indexOf("车险平台返回") > -1 &&
  5774. res.msg.indexOf(";终保日期") > -1
  5775. ) {
  5776. let time =
  5777. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5778. this.jqstartDate = time;
  5779. this.jqendDate = this.oneYearPast1(time);
  5780. if (this.riskList.length > 0) {
  5781. for (let i = 0; i < this.riskList.length; i++) {
  5782. if (this.riskList[i].riskCode == "0507") {
  5783. this.riskList[i].startDate = time;
  5784. this.riskList[i].endDate = this.oneYearPast1(time);
  5785. }
  5786. }
  5787. }
  5788. let param = {
  5789. userId: this.userId,
  5790. quoteno: this.quoteno,
  5791. orderNo: this.orderno,
  5792. carInfo: this.carInfo,
  5793. insuredPersonInfo: this.insuredPersonInfo,
  5794. ownerInfo: this.ownerInfo,
  5795. policyHolderInfo: this.policyHolderInfo,
  5796. kindList: this.kindList,
  5797. riskList: this.riskList,
  5798. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5799. };
  5800. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5801. this.yongcheng(num, id);
  5802. });
  5803. } else if (res.code == "200") {
  5804. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5805. this.totalCompanyList[num].lastYearMsg = "";
  5806. let dat = res.data.warnMessageList;
  5807. dat.map(ele => {
  5808. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5809. });
  5810. }
  5811. this.totalCompanyList[num].quoteCode = 200;
  5812. this.totalCompanyList[num].result = res.data;
  5813. this.QuotationHistory();
  5814. } else if (res.code == "101") {
  5815. this.totalCompanyList[num].quoteCode = "101";
  5816. this.totalCompanyList[num].msg = res.msg;
  5817. this.cqryCdeJq = res.data.cqryCdeJq;
  5818. this.cqryCdeSy = res.data.cqryCdeSy;
  5819. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  5820. let jqBase64 = `data:image/png;base64,${jq}`;
  5821. this.renewalCodeJqImg = jqBase64;
  5822. if (res.data.renewalCodeSy) {
  5823. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  5824. let syBase64 = `data:image/png;base64,${sy}`;
  5825. this.renewalCodeSyImg = syBase64;
  5826. }
  5827. this.renewalCodedialogVisible = true;
  5828. } else if (res.code == "500") {
  5829. // this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
  5830. // this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
  5831. // this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
  5832. // this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
  5833. // this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
  5834. // this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
  5835. this.totalCompanyList[num].quoteCode = "3";
  5836. this.totalCompanyList[num].msg = res.msg;
  5837. } else {
  5838. this.totalCompanyList[num].quoteCode = "3";
  5839. this.totalCompanyList[num].msg = res.msg;
  5840. return;
  5841. }
  5842. });
  5843. },
  5844. //国任报价
  5845. guoRen(num, id) {
  5846. let guoRenSpecialAgreementVo = [];
  5847. this.zijinengageList.forEach(val => {
  5848. guoRenSpecialAgreementVo.push({
  5849. clauses: val.clauseName,
  5850. clausesContext: val.clauses,
  5851. clauseCode: val.clauseCode,
  5852. riskCode: val.riskCode,
  5853. riskName: val.riskName
  5854. });
  5855. });
  5856. let accidentalDrivingVo = {};
  5857. if (this.guoRenaccidentForm.goodsCode) {
  5858. let goodsName = this.guoRenaccidentDataList.find(val => val.projectCode == this.guoRenaccidentForm.goodsCode).projectName
  5859. accidentalDrivingVo = {
  5860. ...this.guoRenaccidentForm,
  5861. goodsName
  5862. };
  5863. }
  5864. let params = {
  5865. accidentalDrivingVo,
  5866. orderNo: this.orderno,
  5867. companyId: id,
  5868. cqryCdeJq: this.cqryCdeJq,
  5869. cqryCdeSy: this.cqryCdeSy,
  5870. renewalCodeJq: this.renewalCodeJq,
  5871. renewalCodeSy: this.renewalCodeSy,
  5872. agreementId: this.totalCompanyList[num].agreementId,
  5873. guoRenSpecialAgreementVo
  5874. };
  5875. this.$api.letter.guorenquote(params).then(res => {
  5876. this.totalCompanyList[num].msg = res.msg;
  5877. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5878. this.totalCompanyList[num].quoteCode = "4";
  5879. this.totalCompanyList[num].msg = res.msg;
  5880. return;
  5881. } else if (
  5882. res.data == null &&
  5883. res.msg.indexOf("车险平台返回") > -1 &&
  5884. res.msg.indexOf(";终保日期") > -1
  5885. ) {
  5886. let time =
  5887. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5888. this.jqstartDate = time;
  5889. this.jqendDate = this.oneYearPast1(time);
  5890. this.systartDate = time;
  5891. this.syendDate = this.oneYearPast1(time);
  5892. if (this.riskList.length > 0) {
  5893. for (let i = 0; i < this.riskList.length; i++) {
  5894. if (this.riskList[i].riskCode == "0507") {
  5895. this.riskList[i].startDate = time;
  5896. this.riskList[i].endDate = this.oneYearPast1(time);
  5897. } else if (this.riskList[i].riskCode == "0510") {
  5898. this.riskList[i].startDate = time;
  5899. this.riskList[i].endDate = this.oneYearPast1(time);
  5900. }
  5901. }
  5902. }
  5903. let param = {
  5904. userId: this.userId,
  5905. quoteno: this.quoteno,
  5906. orderNo: this.orderno,
  5907. carInfo: this.carInfo,
  5908. insuredPersonInfo: this.insuredPersonInfo,
  5909. ownerInfo: this.ownerInfo,
  5910. policyHolderInfo: this.policyHolderInfo,
  5911. kindList: this.kindList,
  5912. riskList: this.riskList,
  5913. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5914. };
  5915. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5916. this.guoRen(num, id);
  5917. });
  5918. } else if (res.code == "200") {
  5919. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5920. this.totalCompanyList[num].lastYearMsg = "";
  5921. let dat = res.data.warnMessageList;
  5922. dat.map(ele => {
  5923. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5924. });
  5925. }
  5926. this.totalCompanyList[num].quoteCode = 200;
  5927. this.totalCompanyList[num].result = res.data;
  5928. this.QuotationHistory();
  5929. } else if (res.code == "101") {
  5930. this.totalCompanyList[num].quoteCode = "101";
  5931. this.totalCompanyList[num].msg = res.msg;
  5932. this.cqryCdeJq = res.data.cqryCdeJq;
  5933. this.cqryCdeSy = res.data.cqryCdeSy;
  5934. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  5935. let jqBase64 = `data:image/png;base64,${jq}`;
  5936. this.renewalCodeJqImg = jqBase64;
  5937. if (res.data.renewalCodeSy) {
  5938. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  5939. let syBase64 = `data:image/png;base64,${sy}`;
  5940. this.renewalCodeSyImg = syBase64;
  5941. }
  5942. this.renewalCodedialogVisible = true;
  5943. } else {
  5944. this.totalCompanyList[num].quoteCode = "3";
  5945. this.totalCompanyList[num].msg = res.msg;
  5946. return;
  5947. }
  5948. });
  5949. },
  5950. //渤海报价
  5951. bohai(num, id) {
  5952. let accidentalDrivingVo = [];
  5953. if (this.boHaiaccidentForm.packageCode) {
  5954. accidentalDrivingVo = [
  5955. {
  5956. packageCode: this.boHaiaccidentForm.packageCode,
  5957. productCode: this.boHaiaccidentDataList.find(
  5958. e => e.packageCode == this.boHaiaccidentForm.packageCode
  5959. ).productCode,
  5960. copies: this.boHaiaccidentForm.copies
  5961. }
  5962. ];
  5963. }
  5964. let params = {
  5965. accidentalDrivingVo,
  5966. orderNo: this.orderno,
  5967. companyId: id,
  5968. cqryCdeJq: this.cqryCdeJq,
  5969. cqryCdeSy: this.cqryCdeSy,
  5970. renewalCodeJq: this.renewalCodeJq,
  5971. renewalCodeSy: this.renewalCodeSy,
  5972. agreementId: this.totalCompanyList[num].agreementId,
  5973. userId: this.userId
  5974. };
  5975. this.$api.letter.bohaiquote(params).then(res => {
  5976. this.totalCompanyList[num].msg = res.msg;
  5977. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5978. this.totalCompanyList[num].quoteCode = "4";
  5979. this.totalCompanyList[num].msg = res.msg;
  5980. return;
  5981. } else if (
  5982. res.data == null &&
  5983. res.msg.indexOf("车险平台返回") > -1 &&
  5984. res.msg.indexOf(";终保日期") > -1
  5985. ) {
  5986. let time =
  5987. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5988. this.jqstartDate = time;
  5989. this.jqendDate = this.oneYearPast1(time);
  5990. this.systartDate = time;
  5991. this.syendDate = this.oneYearPast1(time);
  5992. if (this.riskList.length > 0) {
  5993. for (let i = 0; i < this.riskList.length; i++) {
  5994. if (this.riskList[i].riskCode == "0507") {
  5995. this.riskList[i].startDate = time;
  5996. this.riskList[i].endDate = this.oneYearPast1(time);
  5997. } else if (this.riskList[i].riskCode == "0510") {
  5998. this.riskList[i].startDate = time;
  5999. this.riskList[i].endDate = this.oneYearPast1(time);
  6000. }
  6001. }
  6002. }
  6003. let param = {
  6004. userId: this.userId,
  6005. quoteno: this.quoteno,
  6006. orderNo: this.orderno,
  6007. carInfo: this.carInfo,
  6008. insuredPersonInfo: this.insuredPersonInfo,
  6009. ownerInfo: this.ownerInfo,
  6010. policyHolderInfo: this.policyHolderInfo,
  6011. kindList: this.kindList,
  6012. riskList: this.riskList,
  6013. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  6014. };
  6015. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  6016. this.bohai(num, id);
  6017. });
  6018. } else if (res.code == "200") {
  6019. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  6020. this.totalCompanyList[num].lastYearMsg = "";
  6021. let dat = res.data.warnMessageList;
  6022. dat.map(ele => {
  6023. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  6024. });
  6025. }
  6026. this.totalCompanyList[num].quoteCode = 200;
  6027. this.totalCompanyList[num].result = res.data;
  6028. this.QuotationHistory();
  6029. } else if (res.code == "101") {
  6030. this.totalCompanyList[num].quoteCode = "101";
  6031. this.totalCompanyList[num].msg = res.msg;
  6032. this.cqryCdeJq = res.data.cqryCdeJq;
  6033. this.cqryCdeSy = res.data.cqryCdeSy;
  6034. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  6035. let jqBase64 = `data:image/png;base64,${jq}`;
  6036. this.renewalCodeJqImg = jqBase64;
  6037. if (res.data.renewalCodeSy) {
  6038. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  6039. let syBase64 = `data:image/png;base64,${sy}`;
  6040. this.renewalCodeSyImg = syBase64;
  6041. }
  6042. this.renewalCodedialogVisible = true;
  6043. } else {
  6044. this.totalCompanyList[num].quoteCode = "3";
  6045. this.totalCompanyList[num].msg = res.msg;
  6046. return;
  6047. }
  6048. });
  6049. },
  6050. // 爬虫对接
  6051. quoteInsurance(num, id, namesimple, apiType) {
  6052. let api = apiType == 2 ? "pythonquote" : "anshengquote";
  6053. let ccidenttype = this.totalCompanyList[num].cnName;
  6054. let params = {
  6055. accidentalDrivingVo: this[ccidenttype + "accidentalDrivingVo"],
  6056. orderNo: this.orderno,
  6057. companyId: id,
  6058. userId: this.userId,
  6059. agreementId: this.totalCompanyList[num].agreementId
  6060. };
  6061. if (namesimple == "中国人寿" && this.lastCompanyId) {
  6062. params.discount = this.totalCompanyList[num].discount;
  6063. params.lastCompanyId = this.lastCompanyId;
  6064. }
  6065. if (namesimple == "华农财险" && this.huanongaccidentalDrivingVo.quantity) {
  6066. params.accidentalDrivingVo.quantity = this.accidentFormHN.quantity;
  6067. // params.accidentalDrivingVo.allQuantity = this.accidentFormHN.allQuantity;
  6068. }
  6069. this.$api.letter[api](params).then(res => {
  6070. this.totalCompanyList[num].msg = res.msg;
  6071. switch (namesimple) {
  6072. case "安盛天平":
  6073. case "中国人寿":
  6074. case "恒邦财险":
  6075. case "华农财险":
  6076. case "太平财险":
  6077. if (!!res.data) {
  6078. if (
  6079. res.data.warnMessageList &&
  6080. res.data.warnMessageList.length > 0
  6081. ) {
  6082. this.totalCompanyList[num].lastYearMsg = "";
  6083. let dat = res.data.warnMessageList;
  6084. dat.map(ele => {
  6085. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  6086. });
  6087. }
  6088. if (res.data.predictInfo && res.data.predictInfo.length > 0) {
  6089. this.totalCompanyList[num].predictInfo = res.data.predictInfo;
  6090. }
  6091. this.totalCompanyList[num].quoteCode = 200;
  6092. this.totalCompanyList[num].result = res.data;
  6093. if (namesimple == "中国人寿" && res.data.companyId) {
  6094. this.lastCompanyId = res.data.companyId;
  6095. }
  6096. this.QuotationHistory();
  6097. } else {
  6098. this.totalCompanyList[num].quoteCode = "3";
  6099. this.totalCompanyList[num].msg = res.msg;
  6100. return;
  6101. }
  6102. break;
  6103. case "众安财险":
  6104. if (!!res.data) {
  6105. if (res.data.tips == "需要验车") {
  6106. this.$notify.error({
  6107. title: "通融单",
  6108. duration: 0,
  6109. dangerouslyUseHTMLString: true,
  6110. message: `<div> ${res.data.warnMessageList
  6111. .map(item => {
  6112. return `<p>${item}</p>`;
  6113. })
  6114. .join("")}
  6115. </div>`
  6116. });
  6117. }
  6118. if (
  6119. res.data.warnMessageList &&
  6120. res.data.warnMessageList.length > 0
  6121. ) {
  6122. this.totalCompanyList[num].lastYearMsg = "";
  6123. let dat = res.data.warnMessageList;
  6124. dat.map(ele => {
  6125. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  6126. });
  6127. }
  6128. this.totalCompanyList[num].quoteCode = 200;
  6129. this.totalCompanyList[num].result = res.data;
  6130. this.QuotationHistory();
  6131. } else {
  6132. this.totalCompanyList[num].quoteCode = "3";
  6133. this.totalCompanyList[num].msg = res.msg;
  6134. return;
  6135. }
  6136. break;
  6137. default:
  6138. break;
  6139. }
  6140. });
  6141. },
  6142. //安盛天平
  6143. ansheng(num, id, namesimple) {
  6144. this.quoteInsurance(
  6145. num,
  6146. id,
  6147. namesimple,
  6148. this.totalCompanyList[num].apiType
  6149. );
  6150. },
  6151. //众安
  6152. zhongan(num, id, namesimple) {
  6153. this.quoteInsurance(
  6154. num,
  6155. id,
  6156. namesimple,
  6157. this.totalCompanyList[num].apiType
  6158. );
  6159. },
  6160. //人寿
  6161. renshou(num, id, namesimple) {
  6162. this.quoteInsurance(
  6163. num,
  6164. id,
  6165. namesimple,
  6166. this.totalCompanyList[num].apiType
  6167. );
  6168. },
  6169. //恒邦
  6170. hengbang(num, id, namesimple) {
  6171. this.quoteInsurance(
  6172. num,
  6173. id,
  6174. namesimple,
  6175. this.totalCompanyList[num].apiType
  6176. );
  6177. },
  6178. //太平
  6179. taiping(num, id, namesimple) {
  6180. this.quoteInsurance(
  6181. num,
  6182. id,
  6183. namesimple,
  6184. this.totalCompanyList[num].apiType
  6185. );
  6186. },
  6187. //华农
  6188. huanong(num, id, namesimple) {
  6189. this.quoteInsurance(
  6190. num,
  6191. id,
  6192. namesimple,
  6193. this.totalCompanyList[num].apiType
  6194. );
  6195. },
  6196. capTypedictTag(val,option) {
  6197. if(option.find(item => item.dictValue == val)){
  6198. return option.find(item => item.dictValue == val).dictTag;
  6199. }
  6200. else{
  6201. return '-'
  6202. }
  6203. },
  6204. // 爬虫对接
  6205. qoutedetail(companyId) {
  6206. let params = {
  6207. companyId: companyId
  6208. };
  6209. this.$api.letter.getByCompanyId(params).then(res => {
  6210. if (res.code == "200") {
  6211. var data = res.data;
  6212. data.kindinfo.map((ele, index) => {
  6213. switch (ele.kindCode) {
  6214. case "A":
  6215. ele.amount = "投保";
  6216. break;
  6217. case "D4":
  6218. case "SY_FJ_YBW2":
  6219. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  6220. break;
  6221. case "MJ1":
  6222. case "MJ2":
  6223. case "MJ3":
  6224. case "MJ4":
  6225. ele.deductibleRate = ele.deductibleRate + "%";
  6226. break;
  6227. default:
  6228. ele.amount = this.toChinesNum(ele.amount);
  6229. }
  6230. return ele;
  6231. });
  6232. if(data.carinfo.carnature && data.carinfo.carnature == '02' || data.carinfo.carnature == '非营业'){
  6233. data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.outOfBusinessVehicleUseoptions)
  6234. }else{
  6235. data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.businessVehicleUseoptions)
  6236. }
  6237. data.carinfo.carnature = this.capTypedictTag(data.carinfo.carnature,this.natureOfVehicleUseoptions);
  6238. data.carinfo.cartype=data.carinfo.cartype?this.capTypedictTag(data.carinfo.cartype,this.trafficManagementVehicleTypeoptions):''
  6239. data.carinfo.cimodelclass=data.carinfo.cimodelclass?this.capTypedictTag(data.carinfo.cimodelclass,this.vehicleTypeoptions):''
  6240. data.carinfo.energyType=data.carinfo.energyType?this.capTypedictTag(data.carinfo.energyType,this.energyTypeoptions):''
  6241. this.queryOrders = data;
  6242. //赋值费用信息
  6243. // this.feeDetailInfo=data.orderFeeResult;
  6244. }
  6245. });
  6246. this.$refs.detailsDialog.setBackupVisible(true);
  6247. },
  6248. imageUpload() {
  6249. this.imageUploaddialogVisible = true;
  6250. },
  6251. cancelorder(item) {
  6252. this.$api.letter.zijincancelorder({ companyId: item.id }).then(res => {
  6253. if (res.code == 200) {
  6254. this.$message({
  6255. message: res.msg,
  6256. type: "success"
  6257. });
  6258. this.QuotationHistory();
  6259. }
  6260. });
  6261. },
  6262. imageEcho(quotenos) {
  6263. //影像查询
  6264. this.$api.letter.findByQuoteNo(quotenos).then(res => {
  6265. if (res.code == "200") {
  6266. this.imageList1 = [];
  6267. this.imageList2 = [];
  6268. this.imageList3 = [];
  6269. this.imageList4 = [];
  6270. this.imageList5 = [];
  6271. this.imgList1 = [];
  6272. this.imgList2 = [];
  6273. this.imgList3 = [];
  6274. this.imgList4 = [];
  6275. this.imgList5 = [];
  6276. this.imgList6 = [];
  6277. this.imgList7 = [];
  6278. this.imgList8 = [];
  6279. this.imgList9 = [];
  6280. this.imgList10 = [];
  6281. this.imgList11 = [];
  6282. Object.keys(res.data).forEach(keys => {
  6283. if (res.data[keys].url) {
  6284. res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
  6285. switch (keys) {
  6286. case "C01":
  6287. this.imageList1.push({
  6288. imageId: res.data[keys].imageId,
  6289. imageType: res.data[keys].imageType
  6290. });
  6291. this.imgList1.push(res.data[keys]);
  6292. break;
  6293. case "D01":
  6294. this.imageList1.push({
  6295. imageId: res.data[keys].imageId,
  6296. imageType: res.data[keys].imageType
  6297. });
  6298. this.imgList2.push(res.data[keys]);
  6299. break;
  6300. case "C02":
  6301. this.imageList2.push({
  6302. imageId: res.data[keys].imageId,
  6303. imageType: res.data[keys].imageType
  6304. });
  6305. this.imgList3.push(res.data[keys]);
  6306. break;
  6307. case "D02":
  6308. this.imageList2.push({
  6309. imageId: res.data[keys].imageId,
  6310. imageType: res.data[keys].imageType
  6311. });
  6312. this.imgList4.push(res.data[keys]);
  6313. break;
  6314. case "C03":
  6315. this.imageList3.push({
  6316. imageId: res.data[keys].imageId,
  6317. imageType: res.data[keys].imageType
  6318. });
  6319. this.imgList5.push(res.data[keys]);
  6320. break;
  6321. case "D03":
  6322. this.imageList3.push({
  6323. imageId: res.data[keys].imageId,
  6324. imageType: res.data[keys].imageType
  6325. });
  6326. this.imgList6.push(res.data[keys]);
  6327. break;
  6328. case "C04":
  6329. this.imageList4.push({
  6330. imageId: res.data[keys].imageId,
  6331. imageType: res.data[keys].imageType
  6332. });
  6333. this.imgList7.push(res.data[keys]);
  6334. break;
  6335. case "D04":
  6336. this.imageList4.push({
  6337. imageId: res.data[keys].imageId,
  6338. imageType: res.data[keys].imageType
  6339. });
  6340. this.imgList8.push(res.data[keys]);
  6341. break;
  6342. case "XC00":
  6343. this.imageList5.push({
  6344. imageId: res.data[keys].imageId,
  6345. imageType: res.data[keys].imageType
  6346. });
  6347. this.imgList9.push(res.data[keys]);
  6348. break;
  6349. case "GC00":
  6350. this.imageList5.push({
  6351. imageId: res.data[keys].imageId,
  6352. imageType: res.data[keys].imageType
  6353. });
  6354. this.imgList10.push(res.data[keys]);
  6355. break;
  6356. case "GX00":
  6357. this.imageList5.push({
  6358. imageId: res.data[keys].imageId,
  6359. imageType: res.data[keys].imageType
  6360. });
  6361. this.imgList11.push(res.data[keys]);
  6362. break;
  6363. default:
  6364. break;
  6365. }
  6366. }
  6367. });
  6368. } else {
  6369. this.$message({ message: res.msg, type: "info" });
  6370. }
  6371. });
  6372. },
  6373. hbsubmitdialog(data) {
  6374. if (this.imageList1.length == 0 && this.imageList2.length == 0) {
  6375. this.$message({ message: "影像不全,先上传影像", type: "error" });
  6376. return;
  6377. }
  6378. this.companyId = data.result.companyId;
  6379. this.apiType = data.apiType;
  6380. this.hbsubmitdialogVisible = true;
  6381. this.contributingState = false;
  6382. if (data.namesimple == "紫金财险") {
  6383. this.$api.letter
  6384. .zijinqueryClauseData({ companyId: this.companyId })
  6385. .then(res => {
  6386. this.zijinengageListData = res.data;
  6387. });
  6388. }
  6389. if (data.namesimple == "华泰财险") {
  6390. this.zijinengageList = [];
  6391. this.$api.letter
  6392. .huataiqueryClauseData({ companyId: this.companyId })
  6393. .then(res => {
  6394. res.data.forEach(val => {
  6395. val.clauseCode = val.engageCode;
  6396. val.clauseName = val.engageTitle;
  6397. val.clauseContent = val.engageDetail;
  6398. val.clauses = val.engageDetail;
  6399. });
  6400. this.zijinengageListData = res.data;
  6401. this.zijinengageListData.forEach(val => {
  6402. this.$nextTick(() => {
  6403. if (val.optType == "2") {
  6404. this.zijinengageList.push(val);
  6405. this.$refs.expandTablePro.toggleRowSelection(val, true);
  6406. }
  6407. });
  6408. });
  6409. });
  6410. } else {
  6411. this.zijinengageListData = [];
  6412. }
  6413. // switch (data.namesimple) {
  6414. // case "紫金财险":
  6415. // this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
  6416. // this.zijinengageListData = res.data;
  6417. // });
  6418. // break;
  6419. // default:
  6420. // break;
  6421. // }
  6422. },
  6423. hbsubmit() {
  6424. this.hbsubmitdialogVisible = false;
  6425. this.contributingState = false;
  6426. this.$api.letter
  6427. .getByCompanyId({ companyId: this.companyId })
  6428. .then(async res => {
  6429. if (res.code == 200) {
  6430. var data = res.data;
  6431. this.queryOrders = data;
  6432. const loading = this.$loading({
  6433. lock: true,
  6434. text: "Loading",
  6435. spinner: "el-icon-loading",
  6436. background: "rgba(0, 0, 0, 0.7)"
  6437. });
  6438. switch (this.queryOrders.inscompany) {
  6439. case "永安财险":
  6440. let api = "";
  6441. api =
  6442. this.apiType == 2
  6443. ? "pythonsubmitImage"
  6444. : "insyongansubmitImage";
  6445. await this.$api.letter[api]({
  6446. companyId: this.companyId
  6447. }).then(res => {
  6448. if (res.code == "200") {
  6449. var _this = this;
  6450. let api1 = "";
  6451. api1 = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
  6452. this.$api.letter[api1]({
  6453. companyId: this.companyId
  6454. }).then(res => {
  6455. var _this = this;
  6456. if (res.code == "200") {
  6457. loading.close();
  6458. this.$message({
  6459. message: "核保成功",
  6460. type: "success"
  6461. });
  6462. this.QuotationHistory();
  6463. _this.$api.letter
  6464. .getByCompanyId({ companyId: this.companyId })
  6465. .then(res => {
  6466. _this.orderstatus = res.data.orderstatus; //订单状态
  6467. _this.underwritingdialogVisible = true;
  6468. let indexid = this.totalCompanyList.findIndex(
  6469. item =>
  6470. item.namesimple == this.queryOrders.inscompany
  6471. );
  6472. this.totalCompanyList[indexid].orderstatus =
  6473. res.data.orderstatus;
  6474. });
  6475. } else {
  6476. loading.close();
  6477. this.$message({
  6478. showClose: true,
  6479. message:
  6480. this.queryOrders.inscompany + "提核--:" + res.msg,
  6481. type: "error",
  6482. duration: 0
  6483. });
  6484. }
  6485. });
  6486. } else {
  6487. this.$message({
  6488. message: this.queryOrders.inscompany + "影像:" + res.msg,
  6489. type: "error",
  6490. duration: 7000
  6491. });
  6492. loading.close();
  6493. }
  6494. });
  6495. break;
  6496. case "中煤财险":
  6497. await this.$api.letter
  6498. .insZhongmeisubmitImage({
  6499. companyId: this.companyId
  6500. })
  6501. .then(res => {
  6502. if (res.code == "200") {
  6503. var _this = this;
  6504. _this.$api.letter
  6505. .Zhongmeiaudit({
  6506. companyId: this.companyId,
  6507. jqappoint: "",
  6508. syappoint: ""
  6509. })
  6510. .then(res => {
  6511. if (res.code == "200") {
  6512. loading.close();
  6513. _this.$message({
  6514. message: "核保成功",
  6515. type: "success"
  6516. });
  6517. this.QuotationHistory();
  6518. _this.$api.letter
  6519. .getByCompanyId({ companyId: this.companyId })
  6520. .then(res => {
  6521. _this.orderstatus = res.data.orderstatus; //订单状态
  6522. _this.underwritingdialogVisible = true;
  6523. let indexid = this.totalCompanyList.findIndex(
  6524. item =>
  6525. item.namesimple ==
  6526. this.queryOrders.inscompany
  6527. );
  6528. this.totalCompanyList[indexid].orderstatus =
  6529. res.data.orderstatus;
  6530. });
  6531. } else {
  6532. loading.close();
  6533. _this.$message({
  6534. showClose: true,
  6535. message:
  6536. this.queryOrders.inscompany +
  6537. "提核--:" +
  6538. res.msg,
  6539. type: "error",
  6540. duration: 0
  6541. });
  6542. _this.$api.letter
  6543. .getByCompanyId({ companyId: this.companyId })
  6544. .then(res => {
  6545. _this.orderstatus = res.data.orderstatus; //订单状态
  6546. });
  6547. }
  6548. });
  6549. } else {
  6550. this.$message({
  6551. message:
  6552. this.queryOrders.inscompany + "影像--:" + res.msg,
  6553. type: "error",
  6554. duration: 7000
  6555. });
  6556. loading.close();
  6557. }
  6558. });
  6559. break;
  6560. case "华泰财险":
  6561. await this.$api.letter
  6562. .insHuataisubmitImage({
  6563. companyId: this.companyId
  6564. })
  6565. .then(res => {
  6566. if (res.code == "200") {
  6567. var _this = this;
  6568. let engageList = [];
  6569. this.zijinengageList.forEach(val => {
  6570. engageList.push({
  6571. engageCode: val.clauseCode,
  6572. engageDetail: val.clauses,
  6573. engageTitle: val.clauseName,
  6574. riskCode: val.riskCode
  6575. });
  6576. });
  6577. _this.$api.letter
  6578. .huataiaudit({
  6579. companyId: this.companyId,
  6580. engageList
  6581. })
  6582. .then(res => {
  6583. if (res.code == "200") {
  6584. loading.close();
  6585. _this.$message({
  6586. message: "核保成功",
  6587. type: "success"
  6588. });
  6589. this.QuotationHistory();
  6590. _this.$api.letter
  6591. .getByCompanyId({ companyId: this.companyId })
  6592. .then(res => {
  6593. _this.orderstatus = res.data.orderstatus; //订单状态
  6594. _this.underwritingdialogVisible = true;
  6595. let indexid = this.totalCompanyList.findIndex(
  6596. item =>
  6597. item.namesimple ==
  6598. this.queryOrders.inscompany
  6599. );
  6600. this.totalCompanyList[indexid].orderstatus =
  6601. res.data.orderstatus;
  6602. });
  6603. } else {
  6604. loading.close();
  6605. _this.$message({
  6606. showClose: true,
  6607. message:
  6608. this.queryOrders.inscompany +
  6609. "提核--:" +
  6610. res.msg,
  6611. type: "error",
  6612. duration: 0
  6613. });
  6614. _this.$api.letter
  6615. .getByCompanyId({ companyId: this.companyId })
  6616. .then(res => {
  6617. _this.orderstatus = res.data.orderstatus; //订单状态
  6618. });
  6619. }
  6620. });
  6621. } else {
  6622. this.$message({
  6623. message:
  6624. this.queryOrders.inscompany + "影像--:" + res.msg,
  6625. type: "error",
  6626. duration: 7000
  6627. });
  6628. loading.close();
  6629. }
  6630. });
  6631. break;
  6632. case "紫金财险":
  6633. await this.$api.letter
  6634. .zijinsubmitImage({
  6635. companyId: this.companyId
  6636. })
  6637. .then(res => {
  6638. if (res.code == "200") {
  6639. var _this = this;
  6640. _this.$api.letter
  6641. .zijinaudit({
  6642. companyId: this.companyId,
  6643. engageList: this.zijinengageList
  6644. })
  6645. .then(res => {
  6646. if (res.code == "200") {
  6647. loading.close();
  6648. _this.$message({
  6649. message: "核保成功",
  6650. type: "success"
  6651. });
  6652. this.QuotationHistory();
  6653. _this.$api.letter
  6654. .getByCompanyId({ companyId: this.companyId })
  6655. .then(res => {
  6656. _this.orderstatus = res.data.orderstatus; //订单状态
  6657. _this.underwritingdialogVisible = true;
  6658. let indexid = this.totalCompanyList.findIndex(
  6659. item =>
  6660. item.namesimple ==
  6661. this.queryOrders.inscompany
  6662. );
  6663. this.totalCompanyList[indexid].orderstatus =
  6664. res.data.orderstatus;
  6665. });
  6666. } else {
  6667. loading.close();
  6668. _this.$message({
  6669. showClose: true,
  6670. dangerouslyUseHTMLString: true,
  6671. message:
  6672. this.queryOrders.inscompany +
  6673. "提核--:" +
  6674. res.msg,
  6675. type: "error",
  6676. duration: 0
  6677. });
  6678. _this.$api.letter
  6679. .getByCompanyId({ companyId: this.companyId })
  6680. .then(res => {
  6681. _this.orderstatus = res.data.orderstatus; //订单状态
  6682. });
  6683. }
  6684. });
  6685. } else {
  6686. this.$message({
  6687. message:
  6688. this.queryOrders.inscompany + "影像--:" + res.msg,
  6689. type: "error",
  6690. duration: 7000
  6691. });
  6692. loading.close();
  6693. }
  6694. });
  6695. break;
  6696. case "国任财险":
  6697. await this.$api.letter
  6698. .insguorensubmitImage({
  6699. companyId: this.companyId
  6700. })
  6701. .then(res => {
  6702. if (res.code == "200") {
  6703. var _this = this;
  6704. _this.$api.letter
  6705. .gunrenaudit({
  6706. companyId: this.companyId
  6707. })
  6708. .then(res => {
  6709. if (res.code == "200") {
  6710. loading.close();
  6711. _this.cqryCdeJq = "";
  6712. _this.cqryCdeSy = "";
  6713. _this.renewalCodeJq = "";
  6714. _this.renewalCodeSy = "";
  6715. this.$message({
  6716. message: "核保成功",
  6717. type: "success"
  6718. });
  6719. this.QuotationHistory();
  6720. _this.$api.letter
  6721. .getByCompanyId({ companyId: this.companyId })
  6722. .then(res => {
  6723. _this.orderstatus = res.data.orderstatus; //订单状态
  6724. _this.underwritingdialogVisible = true;
  6725. let indexid = this.totalCompanyList.findIndex(
  6726. item =>
  6727. item.namesimple ==
  6728. this.queryOrders.inscompany
  6729. );
  6730. this.totalCompanyList[indexid].orderstatus =
  6731. res.data.orderstatus;
  6732. });
  6733. } else {
  6734. loading.close();
  6735. this.$message({
  6736. showClose: true,
  6737. message: res.msg,
  6738. type: "error",
  6739. duration: 0
  6740. });
  6741. }
  6742. });
  6743. } else {
  6744. loading.close();
  6745. this.$message({
  6746. message: res.msg,
  6747. type: "error",
  6748. duration: 7000
  6749. });
  6750. }
  6751. });
  6752. break;
  6753. case "渤海财险":
  6754. await this.$api.letter
  6755. .insbohaisubmitImage({
  6756. companyId: this.companyId
  6757. })
  6758. .then(res => {
  6759. if (res.code == "200") {
  6760. var _this = this;
  6761. _this.$api.letter
  6762. .bohaiaudit({
  6763. companyId: this.companyId
  6764. })
  6765. .then(res => {
  6766. if (res.code == "200") {
  6767. loading.close();
  6768. _this.cqryCdeJq = "";
  6769. _this.cqryCdeSy = "";
  6770. _this.renewalCodeJq = "";
  6771. _this.renewalCodeSy = "";
  6772. this.$message({
  6773. message: "核保成功",
  6774. type: "success"
  6775. });
  6776. this.QuotationHistory();
  6777. _this.$api.letter
  6778. .getByCompanyId({ companyId: this.companyId })
  6779. .then(res => {
  6780. _this.orderstatus = res.data.orderstatus; //订单状态
  6781. _this.underwritingdialogVisible = true;
  6782. let indexid = this.totalCompanyList.findIndex(
  6783. item =>
  6784. item.namesimple ==
  6785. this.queryOrders.inscompany
  6786. );
  6787. this.totalCompanyList[indexid].orderstatus =
  6788. res.data.orderstatus;
  6789. });
  6790. } else {
  6791. loading.close();
  6792. this.$message({
  6793. showClose: true,
  6794. message: res.msg,
  6795. type: "error",
  6796. duration: 0
  6797. });
  6798. }
  6799. });
  6800. } else {
  6801. loading.close();
  6802. this.$message({
  6803. message: res.msg,
  6804. type: "error",
  6805. duration: 7000
  6806. });
  6807. }
  6808. });
  6809. break;
  6810. case "恒邦财险":
  6811. case "华农财险":
  6812. case "太平财险":
  6813. case "安盛天平":
  6814. case "众安财险":
  6815. case "中国人寿":
  6816. let hengbangapi = "";
  6817. hengbangapi =
  6818. this.apiType == 2
  6819. ? "pythonsubmitImage"
  6820. : "anshengsubmitImage";
  6821. await this.$api.letter[hengbangapi]({
  6822. subOrderNo: this.companyId
  6823. }).then(res => {
  6824. if (res.code == "200") {
  6825. var _this = this;
  6826. let hengbangapi1 = "";
  6827. hengbangapi1 =
  6828. this.apiType == 2 ? "pythonaudit" : "anshengaudit";
  6829. _this.$api.letter[hengbangapi1]({
  6830. subOrderNo: this.companyId
  6831. }).then(res => {
  6832. if (res.code == "200") {
  6833. loading.close();
  6834. this.$message({
  6835. message: "核保成功",
  6836. type: "success"
  6837. });
  6838. this.QuotationHistory();
  6839. _this.$api.letter
  6840. .getByCompanyId({ companyId: this.companyId })
  6841. .then(res => {
  6842. _this.orderstatus = res.data.orderstatus; //订单状态
  6843. _this.underwritingdialogVisible = true;
  6844. let indexid = this.totalCompanyList.findIndex(
  6845. item =>
  6846. item.namesimple == this.queryOrders.inscompany
  6847. );
  6848. this.totalCompanyList[indexid].orderstatus =
  6849. res.data.orderstatus;
  6850. });
  6851. } else {
  6852. loading.close();
  6853. this.$message({
  6854. showClose: true,
  6855. dangerouslyUseHTMLString: true,
  6856. message:
  6857. this.queryOrders.inscompany +
  6858. "提核--:" +
  6859. res.msg.replace(/\n/g, "<br><br>"),
  6860. type: "error",
  6861. duration: 0
  6862. });
  6863. }
  6864. });
  6865. } else {
  6866. loading.close();
  6867. this.$message({
  6868. message:
  6869. this.queryOrders.inscompany + "影像--:" + res.msg,
  6870. type: "error",
  6871. duration: 7000
  6872. });
  6873. }
  6874. });
  6875. break;
  6876. case "永诚财险":
  6877. await this.$api.letter
  6878. .insyongchengsubmitImage({
  6879. companyId: this.companyId
  6880. })
  6881. .then(res => {
  6882. if (res.code == "200") {
  6883. var _this = this;
  6884. _this.$api.letter
  6885. .yongchengaudit({
  6886. companyId: this.companyId
  6887. })
  6888. .then(res => {
  6889. if (res.code == "200") {
  6890. loading.close();
  6891. _this.cqryCdeJq = "";
  6892. _this.cqryCdeSy = "";
  6893. _this.renewalCodeJq = "";
  6894. _this.renewalCodeSy = "";
  6895. this.$message({
  6896. message: "核保成功",
  6897. type: "success"
  6898. });
  6899. this.QuotationHistory();
  6900. _this.$api.letter
  6901. .getByCompanyId({ companyId: this.companyId })
  6902. .then(res => {
  6903. _this.orderstatus = res.data.orderstatus; //订单状态
  6904. _this.underwritingdialogVisible = true;
  6905. let indexid = this.totalCompanyList.findIndex(
  6906. item =>
  6907. item.namesimple ==
  6908. this.queryOrders.inscompany
  6909. );
  6910. this.totalCompanyList[indexid].orderstatus =
  6911. res.data.orderstatus;
  6912. });
  6913. } else {
  6914. loading.close();
  6915. this.$message({
  6916. showClose: true,
  6917. message:
  6918. this.queryOrders.inscompany +
  6919. "提核--:" +
  6920. res.msg,
  6921. customClass: "customNotifyClass",
  6922. type: "error",
  6923. duration: 0
  6924. });
  6925. }
  6926. });
  6927. } else {
  6928. loading.close();
  6929. this.$message({
  6930. message:
  6931. this.queryOrders.inscompany + "影像--:" + res.msg,
  6932. type: "error",
  6933. duration: 7000
  6934. });
  6935. }
  6936. });
  6937. break;
  6938. case "大家财险":
  6939. await this.$api.letter
  6940. .dajiasubmitImage({
  6941. companyId: this.companyId
  6942. })
  6943. .then(res => {
  6944. if (res.code == "200") {
  6945. var _this = this;
  6946. _this.$api.letter
  6947. .dajiaaudit({
  6948. companyId: this.companyId
  6949. })
  6950. .then(res => {
  6951. if (res.code == "200") {
  6952. loading.close();
  6953. _this.cqryCdeJq = "";
  6954. _this.cqryCdeSy = "";
  6955. _this.renewalCodeJq = "";
  6956. _this.renewalCodeSy = "";
  6957. this.$message({
  6958. message: "核保成功",
  6959. type: "success"
  6960. });
  6961. this.QuotationHistory();
  6962. _this.$api.letter
  6963. .getByCompanyId({ companyId: this.companyId })
  6964. .then(res => {
  6965. _this.orderstatus = res.data.orderstatus; //订单状态
  6966. _this.underwritingdialogVisible = true;
  6967. let indexid = this.totalCompanyList.findIndex(
  6968. item =>
  6969. item.namesimple ==
  6970. this.queryOrders.inscompany
  6971. );
  6972. this.totalCompanyList[indexid].orderstatus =
  6973. res.data.orderstatus;
  6974. });
  6975. } else {
  6976. loading.close();
  6977. this.$message({
  6978. showClose: true,
  6979. message:
  6980. this.queryOrders.inscompany +
  6981. "提核--:" +
  6982. res.msg,
  6983. customClass: "customNotifyClass",
  6984. type: "error",
  6985. duration: 0
  6986. });
  6987. }
  6988. });
  6989. } else {
  6990. loading.close();
  6991. this.$message({
  6992. message:
  6993. this.queryOrders.inscompany + "影像--:" + res.msg,
  6994. type: "error",
  6995. duration: 7000
  6996. });
  6997. }
  6998. });
  6999. break;
  7000. }
  7001. }
  7002. });
  7003. },
  7004. //当前日期的次日
  7005. transformTime1() {
  7006. var date = new Date();
  7007. date.setFullYear(date.getFullYear());
  7008. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  7009. var strYear = date.getFullYear();
  7010. var strDay = date.getDate();
  7011. var strMonth = date.getMonth() + 1;
  7012. var hh = date.getHours();
  7013. if (hh < 10) {
  7014. hh = "0" + hh;
  7015. }
  7016. if (strMonth < 10) {
  7017. strMonth = "0" + strMonth;
  7018. }
  7019. if (strDay < 10) {
  7020. strDay = "0" + strDay;
  7021. }
  7022. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  7023. return datastr;
  7024. },
  7025. //传入日期的次日
  7026. transformTime2(time) {
  7027. var date = new Date(time);
  7028. date.setFullYear(date.getFullYear());
  7029. date.setTime(date.getTime() + 24 * 60 * 60 * 1000); //一年后的前一天
  7030. var strYear = date.getFullYear();
  7031. var strDay = date.getDate();
  7032. var strMonth = date.getMonth() + 1;
  7033. var hh = date.getHours();
  7034. if (hh < 10) {
  7035. hh = "0" + hh;
  7036. }
  7037. if (strMonth < 10) {
  7038. strMonth = "0" + strMonth;
  7039. }
  7040. if (strDay < 10) {
  7041. strDay = "0" + strDay;
  7042. }
  7043. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  7044. return datastr;
  7045. },
  7046. //时间转换
  7047. transformTime(date) {
  7048. var d = new Date(date);
  7049. var strYear = d.getFullYear();
  7050. var strMonth = d.getMonth() + 1;
  7051. var strDay = d.getDate();
  7052. var hh = d.getHours();
  7053. var minutes = d.getMinutes(); // 分
  7054. var Seconds = d.getSeconds();
  7055. if (hh < 10) {
  7056. hh = "0" + hh;
  7057. }
  7058. if (minutes < 10) {
  7059. minutes = "0" + minutes;
  7060. }
  7061. if (Seconds < 10) {
  7062. Seconds = "0" + Seconds;
  7063. }
  7064. if (strMonth < 10) {
  7065. strMonth = "0" + strMonth;
  7066. }
  7067. if (strDay < 10) {
  7068. strDay = "0" + strDay;
  7069. }
  7070. var datetime =
  7071. strYear +
  7072. "-" +
  7073. strMonth +
  7074. "-" +
  7075. strDay +
  7076. " " +
  7077. hh +
  7078. ":" +
  7079. minutes +
  7080. ":" +
  7081. Seconds;
  7082. return datetime;
  7083. },
  7084. timeformat(date) {
  7085. var d = new Date(date);
  7086. var strYear = d.getFullYear();
  7087. var strMonth = d.getMonth() + 1;
  7088. var strDay = d.getDate();
  7089. var hh = d.getHours();
  7090. if (hh < 10) {
  7091. hh = "0" + hh;
  7092. }
  7093. if (strMonth < 10) {
  7094. strMonth = "0" + strMonth;
  7095. }
  7096. if (strDay < 10) {
  7097. strDay = "0" + strDay;
  7098. }
  7099. var datetime = strYear + "-" + strMonth + "-" + strDay;
  7100. return datetime;
  7101. },
  7102. oneYearPast1(time) {
  7103. //明年减一秒
  7104. var date = new Date(time);
  7105. date.setSeconds(date.getSeconds() - 1);
  7106. date.setFullYear(date.getFullYear() + 1); //一年后
  7107. date.setTime(date.getTime()); //一年后的前一天
  7108. var strYear = date.getFullYear();
  7109. var strDay = date.getDate();
  7110. var strMonth = date.getMonth() + 1;
  7111. var hh = date.getHours();
  7112. var minutes = date.getMinutes(); // 分
  7113. var Seconds = date.getSeconds();
  7114. if (hh < 10) {
  7115. hh = "0" + hh;
  7116. }
  7117. if (minutes < 10) {
  7118. minutes = "0" + minutes;
  7119. }
  7120. if (Seconds < 10) {
  7121. Seconds = "0" + Seconds;
  7122. }
  7123. if (strMonth < 10) {
  7124. strMonth = "0" + strMonth;
  7125. }
  7126. if (strDay < 10) {
  7127. strDay = "0" + strDay;
  7128. }
  7129. var datastr =
  7130. strYear +
  7131. "-" +
  7132. strMonth +
  7133. "-" +
  7134. strDay +
  7135. " " +
  7136. hh +
  7137. ":" +
  7138. minutes +
  7139. ":" +
  7140. Seconds;
  7141. return datastr;
  7142. },
  7143. tbczcarShowChange() {
  7144. //投保人同车主
  7145. switch (this.tbczcarShow) {
  7146. case true:
  7147. this.policyHolderInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  7148. break;
  7149. default:
  7150. for (let key in this.policyHolderInfo) {
  7151. this.policyHolderInfo[key] = "";
  7152. this.policyHolderInfo.provinceData = [];
  7153. this.selectedOptions2 = [];
  7154. }
  7155. }
  7156. },
  7157. bbczcarShowChange() {
  7158. //被保人同车主
  7159. switch (this.bbczcarShow) {
  7160. case true:
  7161. this.bbtbcarShow = false;
  7162. this.insuredPersonInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  7163. break;
  7164. default:
  7165. for (let key in this.insuredPersonInfo) {
  7166. this.insuredPersonInfo[key] = "";
  7167. this.insuredPersonInfo.provinceData = [];
  7168. // this.selectedOptions3 = [];
  7169. }
  7170. }
  7171. },
  7172. bbtbcarShowChange() {
  7173. //被保人同投保人
  7174. switch (this.bbtbcarShow) {
  7175. case true:
  7176. this.bbczcarShow = false;
  7177. this.insuredPersonInfo = JSON.parse(
  7178. JSON.stringify(this.policyHolderInfo)
  7179. );
  7180. break;
  7181. default:
  7182. for (let key in this.insuredPersonInfo) {
  7183. this.insuredPersonInfo[key] = "";
  7184. this.insuredPersonInfo.provinceData = [];
  7185. }
  7186. }
  7187. },
  7188. //VIN查询
  7189. toChooseVin(cartype) {
  7190. if (cartype == "" || cartype == null) {
  7191. this.$message({
  7192. message: "请输入车架号",
  7193. type: "warning"
  7194. });
  7195. } else {
  7196. const loading = this.$loading({
  7197. lock: true,
  7198. text: "Loading",
  7199. spinner: "el-icon-loading",
  7200. background: "rgba(0, 0, 0, 0.7)"
  7201. });
  7202. this.$api.letter.insZhongmeiVIN(this.carInfo.frameNo).then(res => {
  7203. if (res.code == "200") {
  7204. this.reslist = res.data;
  7205. loading.close();
  7206. this.sbdmdialogVisible = true;
  7207. } else {
  7208. loading.close();
  7209. this.$message.error(res.msg);
  7210. }
  7211. });
  7212. }
  7213. },
  7214. // 撤销二维码
  7215. revokeCode(id) {
  7216. this.$api.letter.getRevokeQrCode(id).then(res => {
  7217. if (res.code == 200) {
  7218. this.$message({
  7219. message: res.msg,
  7220. type: "success"
  7221. });
  7222. this.QuotationHistory();
  7223. }
  7224. });
  7225. },
  7226. //品牌型号查询
  7227. toChooseVehicleType(cartype) {
  7228. if (cartype == "" || cartype == null) {
  7229. this.$message({
  7230. message: "请输入车型名称",
  7231. type: "warning"
  7232. });
  7233. } else {
  7234. const loading = this.$loading({
  7235. lock: true,
  7236. text: "Loading",
  7237. spinner: "el-icon-loading",
  7238. background: "rgba(0, 0, 0, 0.7)"
  7239. });
  7240. let param = {
  7241. modelName: cartype.replace(/[^u4e00-u9fa5|,]+/gi, "")
  7242. };
  7243. this.$api.letter.ModelsQuery(param).then(res => {
  7244. if (res.code == "200") {
  7245. loading.close();
  7246. this.reslist = res.data;
  7247. this.chexingdialogVisible = true;
  7248. } else {
  7249. loading.close();
  7250. this.$message.error(res.msg);
  7251. }
  7252. });
  7253. }
  7254. },
  7255. //车型列表双击选中事件
  7256. reslistCurrentChange(row, column, event) {
  7257. this.carInfo.brandName = row.brandCN; //品牌型号
  7258. this.carInfo.modelcname = row.modelName; //品牌型号
  7259. this.carInfo.caryear = row.marketYear; //年款
  7260. this.carInfo.seatCount = row.ratedPassengerCapacity; //座位数
  7261. this.carInfo.purchasePrice = row.replacementValue; //购置价
  7262. this.carInfo.modelCode = row.modelCode; //型号代码
  7263. this.carInfo.familyName = row.series; //系列
  7264. this.carInfo.enginedesc = row.displacement; //排量
  7265. this.carInfo.energyType = row.energyTypes
  7266. this.carInfo.powerScale = row.powerScale; //功率
  7267. this.chexingdialogVisible = false;
  7268. this.sbdmdialogVisible = false;
  7269. },
  7270. //是否过户事件
  7271. transferFlagChange(e) {
  7272. if (e) {
  7273. this.transferDateShow = true;
  7274. this.carInfo.transferDate = this.carInfo.issueDate;
  7275. } else {
  7276. this.transferDateShow = false;
  7277. this.carInfo.transferDate = "";
  7278. }
  7279. },
  7280. //影像上传
  7281. drivingupload(file, imageIdList, imgurl, type) {
  7282. let that = this;
  7283. let size = file.size / 1024 / 1024 < 5;
  7284. const isJPG =
  7285. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7286. if (!size) {
  7287. this.$message.error("上传图片大小不能超过 5MB!");
  7288. this[imgurl] = [];
  7289. return false;
  7290. }
  7291. if (!isJPG) {
  7292. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7293. this[imgurl] = [];
  7294. return false;
  7295. }
  7296. this[imgurl].push(file);
  7297. var file = file.raw;
  7298. const params = new FormData(); // 声明formData数据类型
  7299. params.append("multipartFile", file);
  7300. params.append("type", "image");
  7301. this.$api.letter.uploadFile(params).then(res => {
  7302. if (res.code == "200") {
  7303. if (this[imageIdList].some(v => v.imageType == type)) {
  7304. this[imageIdList].map(val => {
  7305. if (val.imageType == type) {
  7306. val.imageId = res.data.id;
  7307. }
  7308. });
  7309. } else {
  7310. this[imageIdList].push({
  7311. imageId: res.data.id,
  7312. imageType: type
  7313. });
  7314. }
  7315. }
  7316. });
  7317. },
  7318. handleRemove1(file, imageIdList, imgList) {
  7319. this[imageIdList].map((ele, index) => {
  7320. if (file.imageId === ele.imageId) {
  7321. this[imageIdList].splice(index, 1);
  7322. }
  7323. return ele;
  7324. });
  7325. if (file.imageId) {
  7326. this[imgList].map((ele, index) => {
  7327. if (file.imageId === ele.imageId) {
  7328. this[imgList].splice(index, 1);
  7329. }
  7330. return ele;
  7331. });
  7332. } else {
  7333. this[imgList].map((ele, index) => {
  7334. if (file.uid === ele.uid) {
  7335. this[imgList].splice(index, 1);
  7336. }
  7337. return ele;
  7338. });
  7339. }
  7340. },
  7341. compress(img, width, height, ratio) {
  7342. var canvas, ctx, img64;
  7343. canvas = document.createElement("canvas");
  7344. canvas.width = width;
  7345. canvas.height = height;
  7346. ctx = canvas.getContext("2d");
  7347. ctx.drawImage(img, 0, 0, width, height);
  7348. img64 = canvas.toDataURL("image/jpeg", ratio);
  7349. return img64;
  7350. },
  7351. base64ToFile(base64, fileName) {
  7352. let data = base64.split(",");
  7353. let type = data[0].match(/:(.*?);/)[1]; // let suffix = type.split('/')[1];
  7354. const bstr = window.atob(data[1]);
  7355. let n = bstr.length;
  7356. const u8arr = new Uint8Array(n);
  7357. while (n--) {
  7358. u8arr[n] = bstr.charCodeAt(n);
  7359. } // const file =  new File([u8arr], `${fileName}.${suffix}`, {
  7360. const file = new File([u8arr], `${fileName}`, {
  7361. type: type
  7362. });
  7363. return file;
  7364. },
  7365. carfrontChange(file) {
  7366. //选择行驶证正面
  7367. let that = this;
  7368. let size = file.size / 1024 / 1024 < 5;
  7369. const isJPG =
  7370. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7371. if (!size) {
  7372. this.$message.error("上传图片大小不能超过 5MB!");
  7373. return false;
  7374. }
  7375. if (!isJPG) {
  7376. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7377. return false;
  7378. }
  7379. // let name=file.raw.name
  7380. //       var image = new Image();
  7381. //       image.src = window.URL.createObjectURL(file.raw);
  7382. //       that.carfrontImg =  image.src
  7383. //       image.onload = function(){
  7384. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7385. // that.carfrontImg = image.src;
  7386. // const params = new FormData(); // 声明formData数据类型
  7387. // params.append("multipartFile", aaa);
  7388. // params.append("type", "image");
  7389. // that.$api.letter.uploadFile(params).then(res => {
  7390. // if (res.code == "200") {
  7391. // that.CarFrontFile = aaa;//文件流
  7392. // if (that.imageList1.some(v => v.imageType == 'C01')) {
  7393. // that.imageList1.map(val => {
  7394. // if (val.imageType == 'C01') {
  7395. // val.imageId = res.data.id;
  7396. // }
  7397. // })
  7398. // } else {
  7399. // that.imageList1.push({
  7400. // imageId: res.data.id,
  7401. // imageType: "C01",
  7402. // })
  7403. // }
  7404. // } else {
  7405. // that.$message({ message: res.msg, type: "warning" });
  7406. // }
  7407. // });
  7408. // }
  7409. var file = file.raw;
  7410. let files = window.URL.createObjectURL(file); //转临时路径
  7411. this.carfrontImg = files;
  7412. const params = new FormData(); // 声明formData数据类型
  7413. params.append("multipartFile", file);
  7414. params.append("type", "image");
  7415. this.$api.letter.uploadFile(params).then(res => {
  7416. if (res.code == "200") {
  7417. this.CarFrontFile = file; //文件流
  7418. if (this.imageList1.some(v => v.imageType == "C01")) {
  7419. this.imageList1.map(val => {
  7420. if (val.imageType == "C01") {
  7421. val.imageId = res.data.id;
  7422. }
  7423. });
  7424. } else {
  7425. this.imageList1.push({
  7426. imageId: res.data.id,
  7427. imageType: "C01"
  7428. });
  7429. }
  7430. } else {
  7431. this.$message({ message: res.msg, type: "warning" });
  7432. }
  7433. });
  7434. },
  7435. carbackChange(file) {
  7436. let that = this;
  7437. let size = file.size / 1024 / 1024 < 2;
  7438. const isJPG =
  7439. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7440. if (!size) {
  7441. this.$message.error("上传图片大小不能超过 5MB!");
  7442. return false;
  7443. }
  7444. if (!isJPG) {
  7445. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7446. return false;
  7447. }
  7448. // let name=file.raw.name
  7449. //       var image = new Image();
  7450. //       image.src = window.URL.createObjectURL(file.raw);
  7451. //       image.onload = function(){
  7452. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7453. // that.carbackImg = image.src;
  7454. // const params = new FormData(); // 声明formData数据类型
  7455. // params.append("multipartFile", aaa);
  7456. // params.append("type", "image");
  7457. // that.$api.letter.uploadFile(params).then(res => {
  7458. // if (res.code == "200") {
  7459. // that.CarBackFile = aaa;//文件流
  7460. // if (that.imageList1.some(v => v.imageType == 'D01')) {
  7461. // that.imageList1.map(val => {
  7462. // if (val.imageType == 'D01') {
  7463. // val.imageId = res.data.id;
  7464. // }
  7465. // })
  7466. // } else {
  7467. // that.imageList1.push({
  7468. // imageId: res.data.id,
  7469. // imageType: "D01",
  7470. // })
  7471. // }
  7472. // } else {
  7473. // that.$message({ message: res.msg, type: "warning" });
  7474. // }
  7475. // });
  7476. // }
  7477. //选择行驶证反面
  7478. var file = file.raw;
  7479. let files = window.URL.createObjectURL(file); //转临时路径
  7480. this.carbackImg = files;
  7481. const params = new FormData(); // 声明formData数据类型
  7482. params.append("multipartFile", file);
  7483. params.append("type", "image");
  7484. this.$api.letter.uploadFile(params).then(res => {
  7485. if (res.code == "200") {
  7486. this.CarBackFile = file;
  7487. if (this.imageList1.some(v => v.imageType == "D01")) {
  7488. this.imageList1.map(val => {
  7489. if (val.imageType == "D01") {
  7490. val.imageId = res.data.id;
  7491. }
  7492. });
  7493. } else {
  7494. this.imageList1.push({
  7495. imageId: res.data.id,
  7496. imageType: "D01"
  7497. });
  7498. }
  7499. } else {
  7500. this.$message({ message: res.msg, type: "warning" });
  7501. }
  7502. });
  7503. },
  7504. userfrontChange(file) {
  7505. let that = this;
  7506. let size = file.size / 1024 / 1024 < 5;
  7507. const isJPG =
  7508. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7509. if (!size) {
  7510. this.$message.error("上传图片大小不能超过 5MB!");
  7511. return false;
  7512. }
  7513. if (!isJPG) {
  7514. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7515. return false;
  7516. }
  7517. // let name=file.raw.name
  7518. //       var image = new Image();
  7519. //       image.src = window.URL.createObjectURL(file.raw);
  7520. //       image.onload = function(){
  7521. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7522. // that.userfrontImg = image.src;
  7523. // const params = new FormData(); // 声明formData数据类型
  7524. // params.append("multipartFile", aaa);
  7525. // params.append("type", "image");
  7526. // that.$api.letter.uploadFile(params).then(res => {
  7527. // if (res.code == "200") {
  7528. // let type = 'C0' + that.userIndex;
  7529. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  7530. // that['imageList' + that.userIndex].map(val => {
  7531. // if (val.imageType == type) {
  7532. // val.imageId = res.data.id;
  7533. // }
  7534. // })
  7535. // } else {
  7536. // that['imageList' + that.userIndex].push({
  7537. // imageId: res.data.id,
  7538. // imageType: type,
  7539. // })
  7540. // }
  7541. // that[type + 'File'] = aaa;
  7542. // } else {
  7543. // that.$message({ message: res.msg, type: "warning" });
  7544. // }
  7545. // });
  7546. // }
  7547. //选择身份证正面
  7548. var file = file.raw;
  7549. let files = window.URL.createObjectURL(file); //转链接
  7550. this.userfrontImg = files;
  7551. const params = new FormData(); // 声明formData数据类型
  7552. params.append("multipartFile", file);
  7553. params.append("type", "image");
  7554. this.$api.letter.uploadFile(params).then(res => {
  7555. if (res.code == "200") {
  7556. let type = "C0" + this.userIndex;
  7557. if (
  7558. this["imageList" + this.userIndex].some(v => v.imageType == type)
  7559. ) {
  7560. this["imageList" + this.userIndex].map(val => {
  7561. if (val.imageType == type) {
  7562. val.imageId = res.data.id;
  7563. }
  7564. });
  7565. } else {
  7566. this["imageList" + this.userIndex].push({
  7567. imageId: res.data.id,
  7568. imageType: type
  7569. });
  7570. }
  7571. this[type + "File"] = file;
  7572. } else {
  7573. this.$message({ message: res.msg, type: "warning" });
  7574. }
  7575. });
  7576. },
  7577. userbackChange(file) {
  7578. let that = this;
  7579. let size = file.size / 1024 / 1024 < 5;
  7580. const isJPG =
  7581. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7582. if (!size) {
  7583. this.$message.error("上传图片大小不能超过 5MB!");
  7584. return false;
  7585. }
  7586. if (!isJPG) {
  7587. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7588. return false;
  7589. }
  7590. // let name=file.raw.name
  7591. //       var image = new Image();
  7592. //       image.src = window.URL.createObjectURL(file.raw);
  7593. //       image.onload = function(){
  7594. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7595. // that.userbackImg = image.src;
  7596. // const params = new FormData(); // 声明formData数据类型
  7597. // params.append("multipartFile", aaa);
  7598. // params.append("type", "image");
  7599. // that.$api.letter.uploadFile(params).then(res => {
  7600. // if (res.code == "200") {
  7601. // let type = 'D0' + that.userIndex;
  7602. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  7603. // that['imageList' + that.userIndex].map(val => {
  7604. // if (val.imageType == type) {
  7605. // val.imageId = res.data.id;
  7606. // }
  7607. // })
  7608. // } else {
  7609. // that['imageList' + that.userIndex].push({
  7610. // imageId: res.data.id,
  7611. // imageType: type,
  7612. // })
  7613. // }
  7614. // that[type + 'File'] = aaa;
  7615. // } else {
  7616. // that.$message({ message: res.msg, type: "warning" });
  7617. // }
  7618. // });
  7619. // }
  7620. //选择身份证背面
  7621. var file = file.raw;
  7622. let files = window.URL.createObjectURL(file); //转链接
  7623. this.userbackImg = files;
  7624. const params = new FormData(); // 声明formData数据类型
  7625. params.append("multipartFile", file);
  7626. params.append("type", "image");
  7627. this.$api.letter.uploadFile(params).then(res => {
  7628. if (res.code == "200") {
  7629. let type = "D0" + this.userIndex;
  7630. if (
  7631. this["imageList" + this.userIndex].some(v => v.imageType == type)
  7632. ) {
  7633. this["imageList" + this.userIndex].map(val => {
  7634. if (val.imageType == type) {
  7635. val.imageId = res.data.id;
  7636. }
  7637. });
  7638. } else {
  7639. this["imageList" + this.userIndex].push({
  7640. imageId: res.data.id,
  7641. imageType: type
  7642. });
  7643. }
  7644. this[type + "File"] = file;
  7645. } else {
  7646. this.$message({ message: res.msg, type: "warning" });
  7647. }
  7648. });
  7649. },
  7650. CarOCRdiscern() {
  7651. //car识别
  7652. const loading = this.$loading({
  7653. lock: true,
  7654. text: "Loading",
  7655. spinner: "el-icon-loading",
  7656. background: "rgba(0, 0, 0, 0.7)"
  7657. });
  7658. const params = new FormData(); // 声明formData数据类型
  7659. params.append("image1", this.CarFrontFile);
  7660. params.append("image2", this.CarBackFile);
  7661. this.$api.letter.drivingPermit(params).then(res => {
  7662. loading.close();
  7663. if (res.msg == "201") {
  7664. this.$message({ message: "请正确选择驾驶证", type: "warning" });
  7665. }
  7666. var carInfo = res.data.carInfo;
  7667. console.log(carInfo);
  7668. if (carInfo.issueDate) {
  7669. carInfo.issueDate =
  7670. carInfo.issueDate.substring(0, 4) +
  7671. "-" +
  7672. carInfo.issueDate.substring(4, 6) +
  7673. "-" +
  7674. carInfo.issueDate.substring(6, 8);
  7675. }
  7676. if (carInfo.registerDate) {
  7677. carInfo.registerDate =
  7678. carInfo.registerDate.substring(0, 4) +
  7679. "-" +
  7680. carInfo.registerDate.substring(4, 6) +
  7681. "-" +
  7682. carInfo.registerDate.substring(6, 8);
  7683. }
  7684. this.carform.carOwner = carInfo.carOwner; //车主
  7685. this.carform.licenseNo = carInfo.plateNo; //车牌号
  7686. this.carform.modelcname = carInfo.backOcrID; //品牌型号
  7687. this.carform.frameNo = carInfo.vin; //车架号
  7688. this.carform.engineNo = carInfo.engine; //发动机号
  7689. this.carform.registerDate = carInfo.registerDate; //车牌号
  7690. this.carform.issueDate = carInfo.issueDate; //车牌号
  7691. this.carform.grossMass = carInfo.grossMass; //总质量
  7692. this.carform.unladenMass = carInfo.unladenMass; //整备质量
  7693. this.carform.limitLoad = carInfo.limitLoad; //核定载质量
  7694. this.carform.category = carInfo.category; //车辆类型
  7695. this.carform.carnature = carInfo.useNature; //使用性质
  7696. this.carform.vehicleUse = carInfo.vehicleUse; //车辆用途
  7697. this.carform.plateType = carInfo.plateType; //车辆种类
  7698. this.carform.approvedPassengersCapacity =
  7699. carInfo.approvedPassengersCapacity; //核定载客数
  7700. });
  7701. },
  7702. CarOCRconfirm() {
  7703. //传参 carnature
  7704. this.ownerInfo.name = this.carform.carOwner; //车主
  7705. this.carInfo.cartype = "K33";
  7706. this.carInfo.licenseNo = this.carform.licenseNo; //车牌号
  7707. this.carInfo.modelcname = this.carform.modelcname; //品牌型号
  7708. this.carInfo.vinNo = this.carform.frameNo; //车架号
  7709. this.carInfo.frameNo = this.carform.frameNo; //车架号
  7710. this.carInfo.engineNo = this.carform.engineNo; //发动机号
  7711. this.carInfo.seatCount = this.carform.approvedPassengersCapacity; //核定载客数
  7712. this.carInfo.vehicleweight = this.carform.grossMass; //总质量
  7713. this.carInfo.completeKerbMass = this.carform.unladenMass; //整备质量
  7714. this.carInfo.limitLoad = this.carform.limitLoad; //核定载质量
  7715. this.carInfo.cartype = this.carform.category; //车辆类型
  7716. this.carInfo.carnature = this.carform.carnature
  7717. ? this.carform.carnature
  7718. : "02"; //使用性质
  7719. this.carInfo.vehicleUse = this.carform.vehicleUse
  7720. ? this.carform.vehicleUse
  7721. : "05"; //车辆用途
  7722. this.carInfo.cimodelclass = this.carform.plateType; //车辆种类
  7723. if (this.timeformat(this.carform.registerDate) != "NaN-NaN-NaN") {
  7724. this.carInfo.registerDate = this.carform.registerDate; //车牌号
  7725. }
  7726. if (this.timeformat(this.carform.issueDate) != "NaN-NaN-NaN") {
  7727. this.carInfo.issueDate = this.carform.issueDate; //车牌号
  7728. }
  7729. this.uploadcardialogVisible = false;
  7730. },
  7731. handleRemove(e) {
  7732. //删除图片
  7733. this[e] = "";
  7734. switch (this.userIndex) {
  7735. case 0:
  7736. this.carfrontImg = "";
  7737. this.carbackImg = "";
  7738. this.CarFrontFile = ""; // 行驶证正面base64
  7739. this.CarBackFile = ""; // 行驶证背面base64
  7740. break;
  7741. case 2:
  7742. this.userfrontImg = "";
  7743. this.userbackImg = "";
  7744. this.C02File = ""; // 车主正面base64
  7745. this.D02File = ""; // 车主背面base64
  7746. break;
  7747. case 3:
  7748. this.userfrontImg = "";
  7749. this.userbackImg = "";
  7750. this.C03File = ""; // 投保人正面base64
  7751. this.D03File = ""; // 投保人背面base64
  7752. break;
  7753. case 4:
  7754. this.userfrontImg = "";
  7755. this.userbackImg = "";
  7756. this.C04File = ""; // 被保人正面base64
  7757. this.D04File = ""; // 被保人背面base64
  7758. break;
  7759. default:
  7760. }
  7761. },
  7762. //预览图片
  7763. handlePictureCardPreview(img) {
  7764. this.ProViewImg = img;
  7765. this.showViewer = true;
  7766. },
  7767. // 关闭查看器
  7768. closeViewer() {
  7769. this.showViewer = false;
  7770. },
  7771. uploaduser(index) {
  7772. this.userIndex = index;
  7773. this.uploaduserdialogVisible = true;
  7774. },
  7775. userOCRdiscern() {
  7776. //OCR识别
  7777. switch (this.userIndex) {
  7778. case 2:
  7779. const params1 = new FormData(); // 声明formData数据类型
  7780. params1.append("image1", this.C02File);
  7781. params1.append("image2", this.D02File);
  7782. this.userOCRjoggle(params1);
  7783. break;
  7784. case 3:
  7785. const params2 = new FormData(); // 声明formData数据类型
  7786. params2.append("image1", this.C03File);
  7787. params2.append("image2", this.D03File);
  7788. this.userOCRjoggle(params2);
  7789. break;
  7790. case 4:
  7791. const params3 = new FormData(); // 声明formData数据类型
  7792. params3.append("image1", this.C04File);
  7793. params3.append("image2", this.D04File);
  7794. this.userOCRjoggle(params3);
  7795. break;
  7796. default:
  7797. }
  7798. },
  7799. userOCRjoggle(param) {
  7800. const loading = this.$loading({
  7801. lock: true,
  7802. text: "Loading",
  7803. spinner: "el-icon-loading",
  7804. background: "rgba(0, 0, 0, 0.7)"
  7805. });
  7806. this.$api.letter.idCard(param).then(res => {
  7807. loading.close();
  7808. if (res.msg == "201") {
  7809. this.$message({ message: "请正确选择身份证", type: "warning" });
  7810. }
  7811. var customerInfo = res.data.customerInfo;
  7812. if (customerInfo) {
  7813. this.ownerInfoform.name = customerInfo.name;
  7814. if (customerInfo.identifyType == "01") {
  7815. this.ownerInfoform.identifyType = "身份证";
  7816. } else {
  7817. this.ownerInfoform.identifyType = "";
  7818. }
  7819. this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;
  7820. this.ownerInfoform.gender = customerInfo.identifyIssuedCom;
  7821. this.ownerInfoform.addr = customerInfo.addr;
  7822. if (customerInfo.identifyNumber) {
  7823. this.ownerInfoform.age = getAgeByIdCard(
  7824. customerInfo.identifyNumber
  7825. );
  7826. }
  7827. if (
  7828. customerInfo.identifyValidDate ||
  7829. customerInfo.identifyValidEndDate
  7830. ) {
  7831. this.ownerInfoform.identifyValidDate =
  7832. customerInfo.identifyValidDate.substring(0, 4) +
  7833. "-" +
  7834. customerInfo.identifyValidDate.substring(4, 6) +
  7835. "-" +
  7836. customerInfo.identifyValidDate.substring(6, 8);
  7837. this.ownerInfoform.identifyValidEndDate =
  7838. customerInfo.identifyValidEndDate.substring(0, 4) +
  7839. "-" +
  7840. customerInfo.identifyValidEndDate.substring(4, 6) +
  7841. "-" +
  7842. customerInfo.identifyValidEndDate.substring(6, 8);
  7843. if (customerInfo.identifyValidEndDate == "长期") {
  7844. this.ownerInfoform.identifyValidEndDate = "9999-12-31";
  7845. }
  7846. }
  7847. // let values = addressCode(this.ownerInfoform.addr);
  7848. // this.ownerInfoform.province = codeToText[values[0]]
  7849. // this.ownerInfoform.city = codeToText[values[1]]
  7850. // this.ownerInfoform.county = codeToText[values[2]]
  7851. }
  7852. });
  7853. },
  7854. userOCRconfirm() {
  7855. //传参
  7856. switch (this.userIndex) {
  7857. case 2:
  7858. // this.selectedOptions1 = addressCode(this.ownerInfoform.addr);
  7859. this.ownerInfo = JSON.parse(JSON.stringify(this.ownerInfoform));
  7860. break;
  7861. case 3:
  7862. // this.selectedOptions2 = addressCode(this.ownerInfoform.addr);
  7863. this.policyHolderInfo = JSON.parse(
  7864. JSON.stringify(this.ownerInfoform)
  7865. );
  7866. break;
  7867. case 4:
  7868. // this.selectedOptions3 = addressCode(this.ownerInfoform.addr);
  7869. this.insuredPersonInfo = JSON.parse(
  7870. JSON.stringify(this.ownerInfoform)
  7871. );
  7872. break;
  7873. }
  7874. this.uploaduserdialogVisible = false;
  7875. },
  7876. closeDialog(index) {
  7877. // 0:车辆 1:车主 2:投保人 3:被保人
  7878. switch (index) {
  7879. case 0:
  7880. this.carfrontImg = "";
  7881. this.carbackImg = "";
  7882. this.CarFrontFile = ""; // 行驶证正面base64
  7883. this.CarBackFile = ""; // 行驶证背面base64
  7884. Object.keys(this.carform).forEach(key => {
  7885. this.carform[key] = "";
  7886. });
  7887. break;
  7888. case 2:
  7889. this.userfrontImg = "";
  7890. this.userbackImg = "";
  7891. this.C02File = ""; // 车主正面base64
  7892. this.D02File = ""; // 车主背面base64
  7893. Object.keys(this.ownerInfoform).forEach(key => {
  7894. this.ownerInfoform[key] = "";
  7895. });
  7896. break;
  7897. case 3:
  7898. this.userfrontImg = "";
  7899. this.userbackImg = "";
  7900. this.C03File = ""; // 投保人正面base64
  7901. this.D03File = ""; // 投保人背面base64
  7902. Object.keys(this.ownerInfoform).forEach(key => {
  7903. this.ownerInfoform[key] = "";
  7904. });
  7905. break;
  7906. case 4:
  7907. this.userfrontImg = "";
  7908. this.userbackImg = "";
  7909. this.C04File = ""; // 被保人正面base64
  7910. this.D04File = ""; // 被保人背面base64
  7911. Object.keys(this.ownerInfoform).forEach(key => {
  7912. this.ownerInfoform[key] = "";
  7913. });
  7914. break;
  7915. case 5:
  7916. this.businessImg = "";
  7917. // this.C04File = ''; // 被保人正面base64
  7918. // this.D04File = ''; // 被保人背面base64
  7919. // Object.keys(this.ownerInfoform).forEach((key) => {
  7920. // this.ownerInfoform[key] = '';
  7921. // });
  7922. break;
  7923. default:
  7924. }
  7925. },
  7926. bjdpreview(id) {
  7927. let params = {
  7928. companyId: id
  7929. };
  7930. this.$api.letter.getByCompanyId(params).then(res => {
  7931. if (res.code == "200") {
  7932. var data = res.data;
  7933. if (data.kindinfo != null) {
  7934. data.kindinfo.map((ele, index) => {
  7935. switch (ele.kindCode) {
  7936. case "A":
  7937. if (ele.amount == 1) {
  7938. ele.amount = "投保";
  7939. } else {
  7940. ele.amount = ele.amount;
  7941. }
  7942. break;
  7943. case "D4":
  7944. case "SY_FJ_YBW2":
  7945. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  7946. break;
  7947. case "MJ1":
  7948. case "MJ2":
  7949. case "MJ3":
  7950. case "MJ4":
  7951. ele.deductibleRate = ele.deductibleRate + "%";
  7952. break;
  7953. default:
  7954. ele.amount = this.toChinesNum(ele.amount);
  7955. }
  7956. return ele;
  7957. });
  7958. }
  7959. data.logoImg = this.iconfftter(res.data.inscompany);
  7960. this.queryOrders = data;
  7961. this.$api.letter.getThemeByUserId().then(res => {
  7962. if (res.code == 200) {
  7963. if (res.data.themeCode == 'GD') {
  7964. this.$refs.quotationDialogPro.setBackupVisible(true);
  7965. }
  7966. else {
  7967. this.$refs.quotationDialog.setBackupVisible(true);
  7968. }
  7969. }
  7970. })
  7971. // if (
  7972. // this.$store.state.user.roles.managementSource &&
  7973. // this.$store.state.user.roles.managementSource == "3"
  7974. // ) {
  7975. // this.$refs.quotationDialogPro.setBackupVisible(true);
  7976. // } else {
  7977. // this.$refs.quotationDialog.setBackupVisible(true);
  7978. // }
  7979. }
  7980. });
  7981. },
  7982. //返回上一步
  7983. Back() { },
  7984. carcode(id, item) {
  7985. this.$api.letter.getQrCode(id).then(res => {
  7986. if (res.code == "200") {
  7987. this.inscompany = res.data.inscompany; //保险公司
  7988. this.sumpremium = res.data.sumpremium; //总价
  7989. this.licenseNo = res.data.cPlateNo; //车牌号
  7990. this.applyName = res.data.cInsuredNme; //车主
  7991. this.jqpremium = res.data.jqpremium; //交强
  7992. this.sypremium = res.data.sypremium; //商业
  7993. this.taxamount = res.data.taxamount; //车船税
  7994. this.jypremium = res.data.jypremium; //驾意险
  7995. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  7996. this.systartdate = res.data.syStartDate; //商业起保日期
  7997. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  7998. let qrCodeUrl = res.data.qrCodeUrl
  7999. this.$api.letter.getThemeByUserId().then(res => {
  8000. if (res.code == 200) {
  8001. if (res.data.themeCode == 'GD') {
  8002. this.codedialogVisiblePro = true;
  8003. this.qrcodeWidth = "154";
  8004. this.qrcodeHeight = "154";
  8005. }
  8006. else {
  8007. this.codedialogVisible = true;
  8008. }
  8009. this.$nextTick(function () {
  8010. if (item.inscompany == "太平财险") {
  8011. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  8012. let animgBase64 = `data:image/png;base64,${anresult}`;
  8013. base64ToPath(animgBase64).then(path => {
  8014. this.paycodeimg = path;
  8015. });
  8016. } else {
  8017. this.creatQrCode(qrCodeUrl);
  8018. }
  8019. });
  8020. }
  8021. })
  8022. } else {
  8023. this.$message({ message: res.msg, type: "warning" });
  8024. }
  8025. });
  8026. },
  8027. //同步
  8028. synchronization() {
  8029. this.systartDate = this.jqstartDate;
  8030. this.syendDate = this.jqendDate;
  8031. },
  8032. //影像上传
  8033. uploadinformation() {
  8034. // //上传图片
  8035. const mergedArray = [
  8036. ...this.imageList1,
  8037. ...this.imageList2,
  8038. ...this.imageList3,
  8039. ...this.imageList4,
  8040. ...this.imageList5
  8041. ];
  8042. let imageparam = {
  8043. imageList: mergedArray,
  8044. quoteNo: this.quoteno
  8045. };
  8046. this.$api.letter.uploadImages(imageparam).then(responses => {
  8047. if (responses.code == "200") {
  8048. this.imageEcho(this.quoteno);
  8049. this.$message({ message: responses.msg, type: "success" });
  8050. } else {
  8051. this.$message({ message: responses.msg, type: "error" });
  8052. }
  8053. });
  8054. this.imageUploaddialogVisible = false;
  8055. },
  8056. add() {
  8057. this.obtainProtocol();
  8058. if (this.isLetter) {
  8059. this.$router.push({ path: "/letter/letter" });
  8060. }
  8061. for (let key in this.ownerInfo) {
  8062. this.ownerInfo[key] = "";
  8063. }
  8064. for (let key in this.policyHolderInfo) {
  8065. this.policyHolderInfo[key] = "";
  8066. }
  8067. for (let key in this.insuredPersonInfo) {
  8068. this.insuredPersonInfo[key] = "";
  8069. }
  8070. this.vehicleAndVesselTaxForm = {
  8071. taxRelifFlag: "1",
  8072. taxpayerIdentifier: "01"
  8073. };
  8074. this.ownerInfo.provinceData = [];
  8075. this.insuredPersonInfo.provinceData = [];
  8076. this.policyHolderInfo.provinceData = [];
  8077. this.carInfo = JSON.parse(localStorage.getItem("carInfo"));
  8078. this.insureList = JSON.parse(localStorage.getItem("insureList"));
  8079. this.sychecked = false;
  8080. this.yonganchecked = false;
  8081. this.zhongmeichecked = false;
  8082. this.transferDateShow = false;
  8083. (this.tbczcarShow = true), //投保人同车主
  8084. // this.bbczcarShow = false, //被保人同车主
  8085. (this.bbtbcarShow = true), //被保人同投保人
  8086. (this.imageList1 = []);
  8087. this.imageList2 = [];
  8088. this.imageList3 = [];
  8089. this.imageList4 = [];
  8090. this.imgList1 = [];
  8091. this.imgList2 = [];
  8092. this.imgList3 = [];
  8093. this.imgList4 = [];
  8094. this.imgList5 = [];
  8095. this.imgList6 = [];
  8096. this.imgList7 = [];
  8097. this.imgList8 = [];
  8098. // 清空保险公司选中的意外险
  8099. this.insuranceZJ = "";
  8100. this.insuranceZA = "";
  8101. this.insuranceHB = "";
  8102. this.insuranceTP = "";
  8103. this.insuranceHN = "";
  8104. this.insuranceRS = "";
  8105. this.insuranceDJ = "";
  8106. this.accidentForm = {
  8107. fen: "1",
  8108. premium: 0
  8109. };
  8110. this.accidentFormHN = {
  8111. allQuantity: "1",
  8112. quantity:'1'
  8113. };
  8114. this.hengbangaccidentalDrivingVo = {};
  8115. this.huanongaccidentalDrivingVo = {};
  8116. this.taipingaccidentalDrivingVo = {};
  8117. this.zhongmeiaccidentalDrivingVo = {};
  8118. this.accidentalDrivingVo = [];
  8119. this.zhonganaccidentalDrivingVo = {};
  8120. this.renshouaccidentalDrivingVo = {};
  8121. this.anshengaccidentalDrivingVo = {};
  8122. this.dajiaaccidentalDrivingVo = {};
  8123. // this.selectedOptions1 = [];
  8124. // this.selectedOptions2 = [];
  8125. // this.selectedOptions3 = [];
  8126. this.orderno = "";
  8127. this.quoteno = "";
  8128. this.lastCompanyId = "";
  8129. this.HistoryList = [];
  8130. this.jqstartDate = this.transformTime1();
  8131. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  8132. this.systartDate = this.transformTime1();
  8133. this.syendDate = this.oneYearPast1(this.jqstartDate);
  8134. },
  8135. toChinesNum(num) {
  8136. if (num.toString().length == 4) {
  8137. let overQian = Math.floor(num / 1000);
  8138. let result = overQian + "千";
  8139. return result;
  8140. } else {
  8141. let overWan = Math.floor(num / 10000);
  8142. let result = overWan + "万";
  8143. return result;
  8144. }
  8145. },
  8146. reportDrop(event) {
  8147. event.preventDefault();
  8148. event.stopPropagation();
  8149. },
  8150. tabLiScroll(id, idx) {
  8151. this.tabLiIndex = idx;
  8152. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  8153. },
  8154. handleScroll(id) {
  8155. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  8156. }
  8157. }
  8158. };
  8159. </script>
  8160. <style>
  8161. /* .customNotifyClass {
  8162. word-break: break-all;
  8163. width: 600px;
  8164. } */
  8165. </style>
  8166. <style lang="scss" scoped>
  8167. .marginL {
  8168. margin-left: 10px;
  8169. }
  8170. .el-notification {
  8171. width: 600px;
  8172. }
  8173. .styleB .el-upload--picture-card {
  8174. // display: none;
  8175. opacity: 0;
  8176. }
  8177. .ORcodebody {
  8178. height: auto;
  8179. background-color: #fff;
  8180. //background: url(../../../assets/image/group.png) #fff;
  8181. padding: 16px;
  8182. }
  8183. .csstool {
  8184. font-weight: 600;
  8185. color: #606266;
  8186. font-size: 14px;
  8187. margin: 0 20px;
  8188. span {
  8189. margin-right: 5px;
  8190. }
  8191. }
  8192. .ORcode {
  8193. width: 100%;
  8194. height: auto;
  8195. display: flex;
  8196. justify-content: center;
  8197. align-items: center;
  8198. padding: 30px;
  8199. box-sizing: border-box;
  8200. &>div {
  8201. width: 176px;
  8202. height: 176px;
  8203. border: 1px solid var(--themeColor);
  8204. border-radius: 5px;
  8205. }
  8206. }
  8207. .ORtitle {
  8208. width: 100%;
  8209. padding-bottom: 20px;
  8210. box-sizing: border-box;
  8211. &>div {
  8212. width: 100%;
  8213. margin: 10px 0;
  8214. font-size: 14px;
  8215. &>span {
  8216. &:nth-child(1) {
  8217. color: #868b98;
  8218. text-align: end;
  8219. width: 150px;
  8220. }
  8221. &:nth-child(2) {
  8222. color: #333333;
  8223. }
  8224. }
  8225. }
  8226. }
  8227. .Risk {
  8228. width: 100%;
  8229. height: auto;
  8230. display: flex;
  8231. flex-direction: column;
  8232. align-items: center;
  8233. font-size: 12px;
  8234. }
  8235. .dis {
  8236. display: flex;
  8237. }
  8238. .align {
  8239. align-items: center;
  8240. }
  8241. .jus {
  8242. justify-content: space-between;
  8243. }
  8244. .shangyexian {
  8245. padding-left: 100px;
  8246. }
  8247. .headertotal {
  8248. padding: 30px;
  8249. }
  8250. .my-label {
  8251. background: #e1f3d8;
  8252. }
  8253. .my-content {
  8254. background: #fde2e2;
  8255. color: aqua;
  8256. }
  8257. .el-button--mini {
  8258. padding: 5px;
  8259. }
  8260. #qqq {
  8261. background-color: #111;
  8262. width: 300px;
  8263. height: 300px;
  8264. margin: 0 auto;
  8265. position: relative;
  8266. }
  8267. #qrCode {
  8268. display: inline-block;
  8269. margin: 0 auto;
  8270. position: relative;
  8271. top: 15%;
  8272. img {
  8273. width: 200px;
  8274. height: 200px;
  8275. background-color: #fff;
  8276. padding: 6px;
  8277. }
  8278. }
  8279. .code {
  8280. box-sizing: border-box;
  8281. display: flex;
  8282. flex-direction: column;
  8283. justify-content: space-between;
  8284. align-items: center;
  8285. &>span {
  8286. margin-bottom: 10px;
  8287. }
  8288. }
  8289. .code_name {
  8290. width: 350px;
  8291. display: flex;
  8292. justify-content: space-between;
  8293. align-items: center;
  8294. font-weight: bold;
  8295. &>span {
  8296. &:nth-child(1) {
  8297. color: #979797;
  8298. width: 120px;
  8299. text-align: right;
  8300. }
  8301. &:nth-child(2) {
  8302. color: #2d2d2d;
  8303. width: 120px;
  8304. text-align: left;
  8305. }
  8306. }
  8307. }
  8308. .header {
  8309. font-size: 18px;
  8310. font-weight: bold;
  8311. }
  8312. .body {
  8313. border-top: none;
  8314. padding-bottom: 100px;
  8315. box-sizing: border-box;
  8316. }
  8317. .u-f-ac {
  8318. -webkit-box-align: center;
  8319. align-items: center;
  8320. padding: 10px;
  8321. }
  8322. .bodyTitle {
  8323. height: 45px;
  8324. background: #f3f3f3;
  8325. border: 1px solid #dddddd;
  8326. line-height: 45px;
  8327. padding: 0 20px;
  8328. box-sizing: border-box;
  8329. }
  8330. .start {
  8331. justify-content: flex-start;
  8332. }
  8333. .end {
  8334. justify-content: flex-end;
  8335. }
  8336. .descriptions {
  8337. padding: 20px;
  8338. box-sizing: border-box;
  8339. display: flex;
  8340. flex-direction: column;
  8341. }
  8342. .bodys {
  8343. display: flex;
  8344. justify-content: space-between;
  8345. align-items: center;
  8346. flex-wrap: wrap;
  8347. }
  8348. .bodys1 {
  8349. display: flex;
  8350. justify-content: center;
  8351. align-items: center;
  8352. flex-wrap: wrap;
  8353. }
  8354. .widths {
  8355. width: 230px;
  8356. }
  8357. .widths1 {
  8358. width: 300px;
  8359. }
  8360. .back {
  8361. color: #333333;
  8362. // font-weight: 700;
  8363. }
  8364. .home {
  8365. // padding-left: 10px;
  8366. box-sizing: border-box;
  8367. padding-bottom: 10px;
  8368. border-bottom: 1px solid #eef1f6;
  8369. &>span {
  8370. margin-right: 10px;
  8371. }
  8372. }
  8373. .hovers {
  8374. margin: 10px 0;
  8375. cursor: pointer;
  8376. padding: 10px 0;
  8377. box-sizing: border-box;
  8378. border-bottom: 1px solid #f2f2f2;
  8379. .offer-time {
  8380. margin: 20px 0 0px 100px;
  8381. padding: 10px;
  8382. background: rgba(45, 77, 137, 0.06);
  8383. &>span {
  8384. margin: 0 10px;
  8385. }
  8386. }
  8387. }
  8388. /* 内容待定 */
  8389. .coll {
  8390. font-size: 14px;
  8391. }
  8392. .display {
  8393. display: flex;
  8394. justify-content: center;
  8395. align-items: center;
  8396. box-sizing: border-box;
  8397. }
  8398. .black {
  8399. color: #000;
  8400. }
  8401. .gray {
  8402. color: #999;
  8403. }
  8404. .OCR {
  8405. font-weight: bold;
  8406. color: #333;
  8407. margin: 20px;
  8408. }
  8409. .slot {
  8410. position: absolute;
  8411. width: 100%;
  8412. height: 100%;
  8413. left: 0;
  8414. top: 0;
  8415. cursor: default;
  8416. text-align: center;
  8417. color: #fff;
  8418. opacity: 0;
  8419. font-size: 20px;
  8420. background-color: rgba(0, 0, 0, 0.5);
  8421. transition: opacity 0.3s;
  8422. display: flex;
  8423. justify-content: center;
  8424. align-items: center;
  8425. &>i {
  8426. margin: 10px;
  8427. color: #fff;
  8428. font-size: 30px;
  8429. font-weight: bold;
  8430. cursor: pointer;
  8431. }
  8432. &:hover {
  8433. opacity: 1;
  8434. }
  8435. }
  8436. .companyhead {
  8437. width: 100%;
  8438. margin: 0 auto;
  8439. padding: 15px 10px;
  8440. color: #333;
  8441. font-weight: bold;
  8442. font-size: 14px;
  8443. background-color: #f7f7f9;
  8444. }
  8445. .footer {
  8446. width: calc(100% - 200px);
  8447. position: fixed;
  8448. bottom: 0;
  8449. right: 0;
  8450. background-color: #fff;
  8451. z-index: 9;
  8452. padding: 20px;
  8453. box-sizing: border-box;
  8454. box-shadow: 0 0 1px 0 #ccc;
  8455. transition: all 0.3s, box-shadow 0.5s;
  8456. &.shadow {
  8457. box-shadow: 0 -10px 10px -10px #ccc;
  8458. }
  8459. }
  8460. .Enclosure {
  8461. width: 100%;
  8462. background-color: #fff;
  8463. padding: 20px;
  8464. box-sizing: border-box;
  8465. margin-bottom: 15px;
  8466. border-radius: 6px;
  8467. border: 1px solid #ebeef5;
  8468. transition: all 0.2s ease-in-out;
  8469. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  8470. }
  8471. .icon-img {
  8472. display: block;
  8473. width: 30px;
  8474. height: 30px;
  8475. }
  8476. .Anchor-link {
  8477. width: 40px;
  8478. background-color: #fff;
  8479. box-shadow: #ccc 0 0px 3px 0;
  8480. border-radius: 6px;
  8481. position: fixed;
  8482. top: 50%;
  8483. right: 0;
  8484. z-index: 99;
  8485. div {
  8486. margin: 5px;
  8487. border-bottom: 1px solid #f2f2f2;
  8488. cursor: pointer;
  8489. display: block;
  8490. }
  8491. }
  8492. .color {
  8493. padding-top: 150px;
  8494. margin-top: -150px;
  8495. }
  8496. .more {
  8497. width: 100%;
  8498. padding: 20px;
  8499. box-sizing: border-box;
  8500. }
  8501. .more-title {
  8502. padding: 15px 10px;
  8503. background-color: #f7f7f9;
  8504. // border-bottom: 1px solid #e3e3e3;
  8505. font-size: 14px;
  8506. }
  8507. .more-data {
  8508. padding: 10px;
  8509. border-bottom: 1px solid #f2f2f2;
  8510. color: #d42426;
  8511. font-size: 14px;
  8512. }
  8513. .Driving-risk {
  8514. padding-left: 100px;
  8515. // padding-top:20px
  8516. }
  8517. .checkbox {
  8518. transform: scale(1.2);
  8519. margin-right: 20px;
  8520. line-height: 32px;
  8521. }
  8522. .insure-long-term {
  8523. display: inline-flex;
  8524. padding-left: 8px;
  8525. padding-right: 8px;
  8526. background: var(--themeColor);
  8527. color: #fff;
  8528. font-size: 12px;
  8529. margin-left: -5px;
  8530. border-radius: 0px 5px 5px 0px;
  8531. cursor: pointer;
  8532. }
  8533. .textareaSty {
  8534. width: 160px;
  8535. height: 210px;
  8536. border: 1px solid #d2d2d2;
  8537. border-radius: 4px;
  8538. img {
  8539. width: 50px;
  8540. height: 50px;
  8541. }
  8542. }
  8543. .image-title {
  8544. width: 100px;
  8545. height: 30px;
  8546. color: #fff;
  8547. text-align: center;
  8548. line-height: 30px;
  8549. font-weight: bold;
  8550. margin-bottom: 15px;
  8551. background: #fc4a1a;
  8552. background: #f2994a;
  8553. /* fallback for old browsers */
  8554. background: -webkit-linear-gradient(to left, #f2c94c, #f2994a);
  8555. /* Chrome 10-25, Safari 5.1-6 */
  8556. background: linear-gradient(to left, #f2c94c, #f2994a);
  8557. /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  8558. }
  8559. .aaa /deep/ {
  8560. margin-bottom: 20px;
  8561. margin-right: 50px;
  8562. span {
  8563. display: inline-block;
  8564. margin-bottom: 10px;
  8565. }
  8566. .el-upload .el-upload-dragger {
  8567. width: 180px;
  8568. height: 120px;
  8569. border: 1px dashed #c0ccda;
  8570. padding: 0;
  8571. }
  8572. .el-upload-list--picture-card .el-upload-list__item {
  8573. width: 180px;
  8574. height: 120px;
  8575. }
  8576. .el-upload-list__item:first-child {
  8577. margin-top: 0;
  8578. }
  8579. }
  8580. .jyxStyle>span {
  8581. display: inline-block;
  8582. text-align: center;
  8583. }
  8584. .tab-style {
  8585. width: 110px;
  8586. li {
  8587. text-align: right;
  8588. padding-right: 20px;
  8589. line-height: 40px;
  8590. cursor: pointer;
  8591. box-sizing: border-box;
  8592. border-right: 1px solid #e2e5eb;
  8593. }
  8594. li:focus {
  8595. background: rgba(212, 36, 38, 0.1);
  8596. border-right: 2px solid var(--themeColor);
  8597. color: var(--themeColor);
  8598. }
  8599. }
  8600. .tabLi-style {
  8601. background: rgba(212, 36, 38, 0.1);
  8602. border-right: 2px solid var(--themeColor);
  8603. color: var(--themeColor);
  8604. }
  8605. .scan-code {
  8606. div {
  8607. margin-top: 10px;
  8608. }
  8609. }
  8610. /* 清除图片上传动画bug */
  8611. /deep/ {
  8612. .proSaomazhifucodeClass .el-dialog__header {
  8613. background: rgba(45, 77, 137, 0.1);
  8614. font-weight: bold;
  8615. }
  8616. .proSaomazhifucodeClass .el-dialog__footer {
  8617. border-top: 1px solid #eef1f6;
  8618. }
  8619. .el-upload-list__item {
  8620. transition: none !important;
  8621. }
  8622. .el-checkbox__input {
  8623. &.is-checked {
  8624. .el-checkbox__inner {
  8625. background-color: #d42426;
  8626. border-color: #d42426;
  8627. }
  8628. }
  8629. }
  8630. .el-checkbox__inner {
  8631. border: 1px solid var(--themeColor);
  8632. &:hover {
  8633. border-color: var(--themeColorHover);
  8634. }
  8635. &:focus {
  8636. border-color: var(--themeColor);
  8637. }
  8638. }
  8639. .el-upload .el-upload-dragger {
  8640. height: 250px;
  8641. width: 400px;
  8642. border: 1px dashed #ced4da;
  8643. }
  8644. .el-upload--picture-card {
  8645. width: 180px;
  8646. height: 120px;
  8647. }
  8648. .el-upload-list__item {
  8649. width: 180px;
  8650. height: 120px;
  8651. margin: 0 !important;
  8652. display: block !important;
  8653. }
  8654. .el-upload-list--picture-card .el-upload-list__item-thumbnail {
  8655. width: 180px;
  8656. height: 120px;
  8657. }
  8658. // .el-button--warning {
  8659. // color: #fff;
  8660. // background-color: #D42426;
  8661. // border-color: #D42426;
  8662. // &:hover {
  8663. // color: #fff;
  8664. // background-color: #ee6f00ce;
  8665. // border-color: #ee6f00ce;
  8666. // }
  8667. // }
  8668. .el-descriptions-item__label {
  8669. &:not(.is-bordered-label) {
  8670. color: #333;
  8671. }
  8672. }
  8673. // .el-radio__input.is-checked + .el-radio__label {
  8674. // color: #ff7000;
  8675. // }
  8676. // .el-radio__input.is-checked .el-radio__inner {
  8677. // border-color: #ff7000;
  8678. // background: #ff7000;
  8679. // }
  8680. // .el-radio__inner {
  8681. // &:hover {
  8682. // border-color: #ff7000;
  8683. // }
  8684. // }
  8685. // .el-input--small .el-icon-date {
  8686. // color: #ee6f00ce;
  8687. // }
  8688. .el-select {
  8689. width: 100%;
  8690. }
  8691. .el-date-editor.el-input {
  8692. width: 100%;
  8693. }
  8694. .el-cascader--small {
  8695. width: 100%;
  8696. }
  8697. .styleB {
  8698. height: 128px;
  8699. }
  8700. .styleB .el-upload--picture-card {
  8701. display: none;
  8702. }
  8703. .saomazhifucodeClass .el-dialog__body,
  8704. .saomazhifucodeClass .el-dialog__header,
  8705. .saomazhifucodeClass .el-dialog__footer {
  8706. padding: 0;
  8707. background: #f4e9e9;
  8708. }
  8709. .saomazhifucodeClass .el-dialog__body {
  8710. padding: 15px;
  8711. }
  8712. .saomazhifucodeClass .el-dialog__footer {
  8713. background: #f4e9e9;
  8714. padding-bottom: 15px;
  8715. }
  8716. .saomazhifucodeClass .el-dialog__headerbtn {
  8717. margin-top: 10px;
  8718. }
  8719. .zmDriving {
  8720. thead .el-table-column--selection .cell {
  8721. display: none !important;
  8722. }
  8723. }
  8724. .synchronous {
  8725. width: 75px;
  8726. height: 45px;
  8727. line-height: 45px;
  8728. color: #fff;
  8729. cursor: pointer;
  8730. background: url(../../../../src/icon/Union2.png) no-repeat 100%;
  8731. }
  8732. .synchronous:hover {
  8733. background: url(../../../../src/icon/Union1.png) no-repeat 100%;
  8734. }
  8735. .line_style {
  8736. margin-top: 20px;
  8737. }
  8738. .el-input-group__append {
  8739. vertical-align: baseline;
  8740. }
  8741. }
  8742. </style>