KtLetter.vue 330 KB

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