KtLetter.vue 342 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959
  1. <template>
  2. <div class="body">
  3. <div class="Enclosure flex f-c back" v-if="isLetter">
  4. <div class="home flex j-s a-c">
  5. <div class="flex j-s a-c">
  6. <img src="../../../../src/icon/归属信息.png" alt class="icon-img" />
  7. <span style="margin-left:10px;">归属信息</span>
  8. </div>
  9. </div>
  10. <el-form class="demo-ruleForm" :model="userform" ref="userform" label-width="130px" size="small"
  11. style="margin-top: 15px" disabled label-position="top">
  12. <el-row type="flex" justify="space-between">
  13. <el-col :span="5">
  14. <el-form-item label="业务员">
  15. <el-input v-model="userform.name"></el-input>
  16. </el-form-item>
  17. </el-col>
  18. <el-col :span="5">
  19. <el-form-item label="工号">
  20. <el-input v-model="userform.id" type="text"></el-input>
  21. </el-form-item>
  22. </el-col>
  23. <el-col :span="5">
  24. <el-form-item label="工号类型">
  25. <el-select v-model="userform.usertype">
  26. <el-option label="业务员" value="A"></el-option>
  27. <el-option label="代理人" value="B"></el-option>
  28. </el-select>
  29. </el-form-item>
  30. </el-col>
  31. <el-col :span="5">
  32. <el-form-item label="归属">
  33. <el-input v-model="deptName"></el-input>
  34. </el-form-item>
  35. </el-col>
  36. </el-row>
  37. </el-form>
  38. </div>
  39. <div class="Enclosure flex f-c back" v-if="isLetter">
  40. <div class="home flex j-s a-c">
  41. <div class="flex j-s a-c">
  42. <img src="../../../../src/icon/快速查询.png" alt class="icon-img" />
  43. <span style="margin-left: 10px">快速查询</span>
  44. </div>
  45. <el-button size="small" type="primary" @click="continuousquery()">
  46. <i class="el-icon-search" style="margin-right: 1px"></i>
  47. 续保查询
  48. </el-button>
  49. </div>
  50. <el-form class="demo-ruleForm" :model="attributionform" ref="continuousform" label-width="130px" size="small"
  51. style="margin-top: 15px" label-position="top">
  52. <el-row>
  53. <el-col :span="5">
  54. <el-form-item label="保险公司" prop="companyId">
  55. <el-select v-model="attributionform.companyId" placeholder="请选择保险公司" @change="continuousChange">
  56. <el-option v-for="(item, index) in continuousCompanyList" :key="index" :label="item.namesimple"
  57. :value="item.id"></el-option>
  58. </el-select>
  59. </el-form-item>
  60. </el-col>
  61. <el-col :span="5" :offset="1" v-for="(domain, index) in attributionform.configure" :key="domain.index">
  62. <el-form-item :label="domain.label" :prop="'configure.' + index + '.value'" :rules="{
  63. required: true,
  64. message: domain.label + '不能为空',
  65. trigger: 'blur',
  66. }">
  67. <el-input v-model="domain.value" :type="domain.type"></el-input>
  68. </el-form-item>
  69. </el-col>
  70. </el-row>
  71. </el-form>
  72. </div>
  73. <div class="Enclosure flex f-c back">
  74. <div class="home flex j-s a-c">
  75. <div class="flex j-s a-c color" id="Car">
  76. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" />
  77. <span style="margin-left:10px;">车辆信息</span>
  78. </div>
  79. <el-button size="small" type="primary" @click="uploadcardialogVisible = true">
  80. <i class="el-icon-camera-solid" style="margin-right:1px;"></i>
  81. 证件识别
  82. </el-button>
  83. </div>
  84. <el-form class="demo-ruleForm" :model="carInfo" ref="carInfo" :rules="rules" label-width="130px" size="small"
  85. label-position="top" style="margin-top: 15px">
  86. <el-row style="flex-wrap: wrap; display: flex;">
  87. <el-col :span="5">
  88. <el-form-item label="车牌" :prop="licenseplate ? 'licenseNo' : ''">
  89. <div style="display: flex;">
  90. <el-input style="width: 75%;margin-right:13px" v-model="carInfo.licenseNo" placeholder="请输入车牌号"
  91. :disabled="!licenseplate"></el-input>
  92. <el-checkbox v-model="licenseplate">已上牌</el-checkbox>
  93. </div>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="5" :offset="1">
  97. <el-form-item label="车辆识别代码" prop="frameNo">
  98. <el-input placeholder="请输入车辆识别码" v-model="carInfo.frameNo" maxlength="17" type="text" show-word-limit>
  99. <el-button slot="append" type="primary" icon="el-icon-search" @click="toChooseVin(carInfo.frameNo)"
  100. style="color: #fff;background-color:#D42426;border-color:#D42426;"></el-button>
  101. </el-input>
  102. </el-form-item>
  103. </el-col>
  104. <el-col :span="5" :offset="1">
  105. <el-form-item label="品牌型号" prop="modelcname">
  106. <el-input v-model="carInfo.modelcname" placeholder="请输入品牌型号" type="text">
  107. <el-button slot="append" icon="el-icon-search" type="primary"
  108. @click="toChooseVehicleType(carInfo.modelcname)"
  109. style="color: #fff;background-color:#D42426;border-color:#D42426;border-top:none"></el-button>
  110. </el-input>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :span="5" :offset="1">
  114. <el-form-item label="发动机号" prop="engineNo">
  115. <el-input v-model="carInfo.engineNo" placeholder="请输入发动机号"></el-input>
  116. </el-form-item>
  117. </el-col>
  118. <el-col :span="5">
  119. <el-form-item label="年款" prop="caryear">
  120. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.caryear" placeholder="请输入年款"></el-input>
  121. </el-form-item>
  122. </el-col>
  123. <el-col :span="5" :offset="1">
  124. <el-form-item label="座位数" prop="seatCount">
  125. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.seatCount" placeholder="请输入座位数">
  126. <el-button slot="append">座</el-button>
  127. </el-input>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="5" :offset="1">
  131. <el-form-item label="整备质量" prop="completeKerbMass">
  132. <el-input v-model="carInfo.completeKerbMass" placeholder="请输入整备质量">
  133. <el-button slot="append">千克(KG)</el-button>
  134. </el-input>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :span="5" :offset="1">
  138. <el-form-item label="核定载质量" prop="limitLoad">
  139. <el-input v-model="carInfo.limitLoad" placeholder="请输入核定载质量">
  140. <el-button slot="append">千克(KG)</el-button>
  141. </el-input>
  142. </el-form-item>
  143. </el-col>
  144. <el-col :span="5">
  145. <el-form-item label="排量" prop="enginedesc">
  146. <el-input v-model="carInfo.enginedesc" placeholder="请输入排量">
  147. <el-button slot="append">升(L)</el-button>
  148. </el-input>
  149. </el-form-item>
  150. </el-col>
  151. <el-col :span="5" :offset="1">
  152. <el-form-item label="功率" prop="powerScale">
  153. <el-input v-model="carInfo.powerScale" placeholder="请输入功率">
  154. <el-button slot="append">千瓦(KW)</el-button>
  155. </el-input>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="5" :offset="1">
  159. <el-form-item label="新车购置价" prop="purchasePrice">
  160. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.purchasePrice" placeholder="请输入新车购置价">
  161. <el-button slot="append">元</el-button>
  162. </el-input>
  163. </el-form-item>
  164. </el-col>
  165. <el-col :span="5" :offset="1">
  166. <el-form-item label="使用性质" prop="carnature">
  167. <el-select v-model="carInfo.carnature" placeholder="请选择使用性质" @change="natureFun">
  168. <el-option :label="item.dictTag" :value="item.dictValue"
  169. v-for="(item, index) in natureOfVehicleUseoptions" :key="index"></el-option>
  170. </el-select>
  171. </el-form-item>
  172. </el-col>
  173. <el-col :span="5">
  174. <el-form-item label="车辆用途" prop="vehicleUse">
  175. <el-select v-if="carInfo.carnature == '02'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途">
  176. <el-option :label="item.dictTag" :value="item.dictValue"
  177. v-for="(item, index) in outOfBusinessVehicleUseoptions" :key="index"></el-option>
  178. </el-select>
  179. <el-select v-if="carInfo.carnature == '01'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途">
  180. <el-option :label="item.dictTag" :value="item.dictValue"
  181. v-for="(item, index) in businessVehicleUseoptions" :key="index"></el-option>
  182. </el-select>
  183. </el-form-item>
  184. </el-col>
  185. <el-col :span="5" :offset="1">
  186. <el-form-item label="车辆类型" prop="cartype">
  187. <el-select v-model="carInfo.cartype" placeholder="请选择车辆种类" filterable clearable>
  188. <el-option :label="item.dictValue + item.dictTag" :value="item.dictValue"
  189. v-for="(item, index) in trafficManagementVehicleTypeoptions" :key="index"></el-option>
  190. </el-select>
  191. </el-form-item>
  192. </el-col>
  193. <el-col :span="5" :offset="1">
  194. <el-form-item label="车辆种类" prop="cimodelclass">
  195. <el-select v-model="carInfo.cimodelclass" placeholder="请选择车辆种类" clearable>
  196. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in vehicleTypeoptions"
  197. :key="index"></el-option>
  198. </el-select>
  199. </el-form-item>
  200. </el-col>
  201. <el-col :span="5" :offset="1">
  202. <el-form-item label="能源种类" prop="energyType">
  203. <el-select v-model="carInfo.energyType" placeholder="请选择能源种类">
  204. <el-option :label="item.dictTag" :value="item.dictValue" v-for="(item, index) in energyTypeoptions"
  205. :key="index"></el-option>
  206. </el-select>
  207. </el-form-item>
  208. </el-col>
  209. <el-col :span="5">
  210. <el-form-item label="注册日期" prop="registerDate">
  211. <el-date-picker v-dateFormat v-model="carInfo.registerDate" :picker-options="pickerOptions"
  212. value-format="yyyy-MM-dd" type="date" placeholder="选择注册日期" placement="bottom-start"></el-date-picker>
  213. </el-form-item>
  214. </el-col>
  215. <el-col :span="5" :offset="1">
  216. <el-form-item label="发证日期" prop="issueDate">
  217. <el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
  218. placeholder="选择发证日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  219. </el-form-item>
  220. </el-col>
  221. <el-col :span="5" :offset="1" v-if="transferDateShow">
  222. <el-form-item label="转移登记日期" prop="transferDate">
  223. <el-date-picker v-dateFormat v-model="carInfo.transferDate" :picker-options="pickerOptions" type="date"
  224. placeholder="选择日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
  225. </el-form-item>
  226. </el-col>
  227. </el-row>
  228. </el-form>
  229. </div>
  230. <div class="Enclosure flex f-c back">
  231. <div class="home flex j-s a-c">
  232. <div class="flex j-s a-c color" id="CheZhu">
  233. <img src="../../../../src/icon/车主信息.png" alt class="icon-img" />
  234. <span style="margin-left:10px;">车主信息</span>
  235. </div>
  236. <el-button size="small" type="primary" @click="uploaduser(2)">
  237. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>证件识别
  238. </el-button>
  239. </div>
  240. <el-form class="demo-ruleForm" :model="ownerInfo" ref="ownerInfo" :rules="rules" label-width="130px" size="small"
  241. style="margin-top: 15px" label-position="top">
  242. <el-row style="flex-wrap: wrap; display: flex;">
  243. <el-col :span="5">
  244. <el-form-item label="车主姓名" prop="name">
  245. <el-input v-model="ownerInfo.name" placeholder="请输入车主姓名"></el-input>
  246. </el-form-item>
  247. </el-col>
  248. <el-col :span="5" :offset="1">
  249. <el-form-item label="证件类型" prop="identifyType">
  250. <el-select v-model="ownerInfo.identifyType" placeholder="身份证" disabled>
  251. <el-option label="身份证" value="01"></el-option>
  252. </el-select>
  253. </el-form-item>
  254. </el-col>
  255. <el-col :span="5" :offset="1">
  256. <el-form-item label="证件号码" prop="identifyNumber">
  257. <el-input v-model="ownerInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  258. show-word-limit @blur="identifyblur('ownerInfo')"></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="5" :offset="1">
  262. <el-form-item label="年龄" prop="age">
  263. <el-input v-model="ownerInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  264. </el-form-item>
  265. </el-col>
  266. <el-col :span="5">
  267. <el-form-item label="性别" prop="gender">
  268. <el-select @change="genderChange" v-model="ownerInfo.gender" placeholder="请选择性别">
  269. <el-option label="男" value="男"></el-option>
  270. <el-option label="女" value="女"></el-option>
  271. </el-select>
  272. </el-form-item>
  273. </el-col>
  274. <el-col :span="5" :offset="1">
  275. <el-form-item label="车主手机号" prop="mobile">
  276. <el-input v-model="ownerInfo.mobile" placeholder="请输入车主手机号" type="text" maxlength="11"
  277. @paste.native="handlePaste($event, 'ownerInfo')" show-word-limit></el-input>
  278. </el-form-item>
  279. </el-col>
  280. <el-col :span="5" :offset="1">
  281. <el-form-item label="地址" prop="addr">
  282. <el-input v-model="ownerInfo.addr" placeholder="请输入地址" type="text"></el-input>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :span="5" :offset="1">
  286. <el-form-item label="有效期起期" prop="identifyValidDate">
  287. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidDate" value-format="yyyy-MM-dd"
  288. :picker-options="pickerOptions" type="date" placeholder="选择注册日期"
  289. placement="bottom-start"></el-date-picker>
  290. </el-form-item>
  291. </el-col>
  292. <el-col :span="5">
  293. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  294. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidEndDate" type="date" value-format="yyyy-MM-dd"
  295. placeholder="选择有效期" placement="bottom-start" style="width: calc(100% - 40px);"></el-date-picker>
  296. <div class="insure-long-term" @click="insureLongterm('ownerInfo')">长期</div>
  297. </el-form-item>
  298. </el-col>
  299. <el-col :span="5" :offset="1">
  300. <el-form-item label="电子邮箱" prop="email">
  301. <el-input v-model="ownerInfo.email" placeholder="请输入电子邮箱"></el-input>
  302. </el-form-item>
  303. </el-col>
  304. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="iscCrownerShow">
  305. <el-form-item label="省市区:">
  306. <el-cascader v-model="ownerInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  307. </el-form-item>
  308. </el-col>-->
  309. </el-row>
  310. </el-form>
  311. </div>
  312. <div class="Enclosure flex f-c back">
  313. <div class="home flex j-s a-c">
  314. <div class="flex j-s a-c">
  315. <img src="../../../../src/icon/投保人信息.png" alt class="icon-img" />
  316. <span style="margin-left:10px;">投保人信息</span>
  317. </div>
  318. <div class="flex a-c j-c">
  319. <div style="font-size:12px;margin:0 10px;">
  320. 同车主
  321. <el-switch v-model="tbczcarShow" active-color="#D42426" @change="tbczcarShowChange()"></el-switch>
  322. </div>
  323. <el-button size="small" type="primary" @click="uploaduser(3)">
  324. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  325. 证件识别
  326. </el-button>
  327. </div>
  328. </div>
  329. <el-form v-show="!tbczcarShow" class="demo-ruleForm" :model="policyHolderInfo" ref="policyHolderInfo" :rules="rules"
  330. label-width="130px" size="small " style="margin-top: 15px" label-position="top">
  331. <el-row style="flex-wrap: wrap; display: flex;">
  332. <el-col :span="5">
  333. <el-form-item label="投保人姓名" prop="name">
  334. <el-input v-model="policyHolderInfo.name" placeholder="请输入投保人姓名"></el-input>
  335. </el-form-item>
  336. </el-col>
  337. <el-col :span="5" :offset="1">
  338. <el-form-item label="证件类型" prop="identifyType">
  339. <el-select v-model="policyHolderInfo.identifyType" placeholder="身份证" disabled>
  340. <el-option label="身份证" value="01"></el-option>
  341. </el-select>
  342. </el-form-item>
  343. </el-col>
  344. <el-col :span="5" :offset="1">
  345. <el-form-item label="证件号码" prop="identifyNumber">
  346. <el-input v-model="policyHolderInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  347. show-word-limit @blur="identifyblur('policyHolderInfo')"></el-input>
  348. </el-form-item>
  349. </el-col>
  350. <el-col :span="5" :offset="1">
  351. <el-form-item label="年龄" prop="age">
  352. <el-input v-model="policyHolderInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  353. </el-form-item>
  354. </el-col>
  355. <el-col :span="5">
  356. <el-form-item label="性别" prop="gender">
  357. <el-select v-model="policyHolderInfo.gender" placeholder="请选择性别">
  358. <el-option label="男" value="男"></el-option>
  359. <el-option label="女" value="女"></el-option>
  360. </el-select>
  361. </el-form-item>
  362. </el-col>
  363. <el-col :span="5" :offset="1">
  364. <el-form-item label="投保人手机号" prop="mobile">
  365. <el-input v-model="policyHolderInfo.mobile" placeholder="请输入投保人手机号" maxlength="11" type="text"
  366. @paste.native="handlePaste($event, 'policyHolderInfo')" show-word-limit></el-input>
  367. </el-form-item>
  368. </el-col>
  369. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  370. <el-form-item label="省市区:">
  371. <el-cascader v-model="selectedOptions2" :options="areaOptions"
  372. @change="event => areahandleChange(event, 'policyHolderInfo')"></el-cascader>
  373. </el-form-item>
  374. </el-col>-->
  375. <el-col :span="5" :offset="1">
  376. <el-form-item label="地址" prop="addr">
  377. <el-input v-model="policyHolderInfo.addr" placeholder="请输入地址" type="text"></el-input>
  378. </el-form-item>
  379. </el-col>
  380. <el-col :span="5" :offset="1">
  381. <el-form-item label="有效期起期" prop="identifyValidDate">
  382. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidDate" value-format="yyyy-MM-dd"
  383. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  384. </el-form-item>
  385. </el-col>
  386. <el-col :span="5">
  387. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  388. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidEndDate" type="date"
  389. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  390. style="width: calc(100% - 40px);"></el-date-picker>
  391. <div class="insure-long-term" @click="insureLongterm('policyHolderInfo')">长期</div>
  392. </el-form-item>
  393. </el-col>
  394. <el-col :span="5" :offset="1">
  395. <el-form-item label="电子邮箱" prop="email">
  396. <el-input v-model="policyHolderInfo.email" placeholder="请输入电子邮箱"></el-input>
  397. </el-form-item>
  398. </el-col>
  399. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isApplicantShow">
  400. <el-form-item label="省市区:">
  401. <el-cascader v-model="policyHolderInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  402. </el-form-item>
  403. </el-col>-->
  404. </el-row>
  405. </el-form>
  406. </div>
  407. <div class="Enclosure flex f-c back">
  408. <div class="home flex j-s a-c">
  409. <div class="flex j-s a-c">
  410. <img src="../../../../src/icon/被投保人信息.png" alt class="icon-img" />
  411. <span style="margin-left:10px;">被保人信息</span>
  412. </div>
  413. <div class="flex j-s a-c">
  414. <div style="font-size:12px;margin:0 10px;">
  415. 同投保人
  416. <el-switch v-model="bbtbcarShow" active-color="#D42426" @change="bbtbcarShowChange()"></el-switch>
  417. </div>
  418. <div style="font-size:12px;margin:0 10px;">
  419. 同车主
  420. <el-switch v-model="bbczcarShow" active-color="#D42426" @change="bbczcarShowChange()"></el-switch>
  421. </div>
  422. <el-button size="small" type="primary" @click="uploaduser(4)">
  423. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  424. 证件识别
  425. </el-button>
  426. </div>
  427. </div>
  428. <el-form v-show="!bbtbcarShow && !bbczcarShow" class="demo-ruleForm" :model="insuredPersonInfo"
  429. ref="insuredPersonInfo" :rules="rules" label-width="130px" size="small" style="margin-top: 15px"
  430. label-position="top">
  431. <el-row style="flex-wrap: wrap; display: flex;">
  432. <el-col :span="5">
  433. <el-form-item label="被保人姓名" prop="name">
  434. <el-input v-model="insuredPersonInfo.name" placeholder="请输入被保人姓名"></el-input>
  435. </el-form-item>
  436. </el-col>
  437. <el-col :span="5" :offset="1">
  438. <el-form-item label="证件类型" prop="identifyType">
  439. <el-select v-model="insuredPersonInfo.identifyType" placeholder="身份证" disabled>
  440. <el-option label="身份证" value="01"></el-option>
  441. </el-select>
  442. </el-form-item>
  443. </el-col>
  444. <el-col :span="5" :offset="1">
  445. <el-form-item label="证件号码" prop="identifyNumber">
  446. <el-input v-model="insuredPersonInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  447. show-word-limit @blur="identifyblur('insuredPersonInfo')"></el-input>
  448. </el-form-item>
  449. </el-col>
  450. <el-col :span="5" :offset="1">
  451. <el-form-item label="年龄" prop="age">
  452. <el-input v-model="insuredPersonInfo.age" placeholder="请输入年龄" type="text" disabled></el-input>
  453. </el-form-item>
  454. </el-col>
  455. <el-col :span="5">
  456. <el-form-item label="性别" prop="gender">
  457. <el-select v-model="insuredPersonInfo.gender" placeholder="请选择性别">
  458. <el-option label="男" value="男"></el-option>
  459. <el-option label="女" value="女"></el-option>
  460. </el-select>
  461. </el-form-item>
  462. </el-col>
  463. <el-col :span="5" :offset="1">
  464. <el-form-item label="被保人手机号" prop="mobile">
  465. <el-input v-model="insuredPersonInfo.mobile" placeholder="请输入被保人手机号" maxlength="11" type="text"
  466. @paste.native="handlePaste($event, 'insuredPersonInfo')" show-word-limit></el-input>
  467. </el-form-item>
  468. </el-col>
  469. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  470. <el-form-item label="省市区:">
  471. <el-cascader v-model="selectedOptions3" :options="areaOptions"
  472. @change="event => areahandleChange(event, 'insuredPersonInfo')"></el-cascader>
  473. </el-form-item>
  474. </el-col>-->
  475. <el-col :span="5" :offset="1">
  476. <el-form-item label="地址" prop="addr">
  477. <el-input v-model="insuredPersonInfo.addr" placeholder="请输入地址" type="text"></el-input>
  478. </el-form-item>
  479. </el-col>
  480. <el-col :span="5" :offset="1">
  481. <el-form-item label="有效期起期" prop="identifyValidDate">
  482. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidDate" value-format="yyyy-MM-dd"
  483. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  484. </el-form-item>
  485. </el-col>
  486. <el-col :span="5">
  487. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  488. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidEndDate" type="date"
  489. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  490. style="width: calc(100% - 40px);"></el-date-picker>
  491. <div class="insure-long-term" @click="insureLongterm('insuredPersonInfo')">长期</div>
  492. </el-form-item>
  493. </el-col>
  494. <el-col :span="5" :offset="1">
  495. <el-form-item label="电子邮箱" prop="email">
  496. <el-input v-model="insuredPersonInfo.email" placeholder="请输入电子邮箱"></el-input>
  497. </el-form-item>
  498. </el-col>
  499. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isInsuredShow">
  500. <el-form-item label="省市区:">
  501. <el-cascader v-model="insuredPersonInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  502. </el-form-item>
  503. </el-col>-->
  504. </el-row>
  505. </el-form>
  506. </div>
  507. <div class="Enclosure flex f-c back">
  508. <div class="home flex j-s a-c">
  509. <div class="flex j-s a-c color" id="insurance">
  510. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" />
  511. <span style="margin-left:10px;">投保信息</span>
  512. <el-switch style="margin:0 10px 0 30px;" @change="immediatelyChange" v-model="immediatelyValue"
  513. active-color="#D42426"></el-switch>
  514. <span style="font-weight:normal;font-size: 13px;">即时投保</span>
  515. </div>
  516. </div>
  517. <el-form class="back demo-ruleForm" :inline="true" :model="Carinsurance" label-width="150px" size="small"
  518. style="margin-top: 15px" label-position="top">
  519. <div class="flex j-start a-c">
  520. <div class="flex j-c a-start">
  521. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="jqchecked"
  522. @change="jqcheckedChange"></el-checkbox>
  523. <div class="flex f-c a-c">
  524. <el-form-item label="交强险起保日期" prop="identifyNumber">
  525. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqstartDate" @change="jqChange"
  526. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  527. </el-form-item>
  528. <el-form-item label="交强险终保日期" prop="identifyNumber">
  529. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqendDate" type="datetime"
  530. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  531. </el-form-item>
  532. </div>
  533. </div>
  534. <div class="flex f-c a-c synchronous" style="margin: 0 50px;" @click="synchronization">
  535. <span style="font-size:12px;">同步</span>
  536. </div>
  537. <div class="flex j-c a-start">
  538. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="sychecked"
  539. @change="sycheckedChange"></el-checkbox>
  540. <div class="flex f-c a-c">
  541. <el-form-item label="商业险起保日期" prop="name">
  542. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="systartDate" @change="syChange"
  543. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  544. </el-form-item>
  545. <el-form-item label="商业险终保日期" prop="name">
  546. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="syendDate" type="datetime"
  547. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  548. </el-form-item>
  549. </div>
  550. </div>
  551. </div>
  552. </el-form>
  553. </div>
  554. <div class="Enclosure flex f-c back">
  555. <div class="home flex j-s a-c">
  556. <div class="flex j-s a-c color" id="insurance">
  557. <img src="../../../../src/icon/车船税.png" alt class="icon-img" />
  558. <span style="margin-left:10px;">车船税</span>
  559. </div>
  560. </div>
  561. <el-form class="demo-ruleForm" :model="vehicleAndVesselTaxForm" ref="vehicleAndVesselTaxForm" :rules="rules"
  562. label-width="160px" size="small" style="margin-top: 15px" label-position="top">
  563. <el-row style="flex-wrap: wrap; display: flex;">
  564. <el-col :span="5">
  565. <el-form-item label="纳税类型:" prop="taxRelifFlag">
  566. <el-select @change="taxRelifFlagChange" v-model="vehicleAndVesselTaxForm.taxRelifFlag" placeholder="纳税类型">
  567. <el-option v-for="(item, index) in taxRelifFlagoptions" :key="index" :label="item.dictTag"
  568. :value="item.dictValue"></el-option>
  569. </el-select>
  570. </el-form-item>
  571. </el-col>
  572. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  573. <el-form-item label="纳税人识别号:" prop="identifyNumber">
  574. <el-input v-model="vehicleAndVesselTaxForm.identifyNumber" placeholder="请输入纳税人识别号" type="text"></el-input>
  575. </el-form-item>
  576. </el-col>
  577. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  578. <el-form-item label="纳税人名称:" prop="taxpayerName">
  579. <el-input v-model="vehicleAndVesselTaxForm.taxpayerName" placeholder="请输入纳税人名称" type="text"></el-input>
  580. </el-form-item>
  581. </el-col>
  582. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :span="5" :offset="1">
  583. <el-form-item label="证件类型:" prop="taxpayerIdentifier">
  584. <el-select v-model="vehicleAndVesselTaxForm.taxpayerIdentifier" placeholder="证件类型" clearable>
  585. <el-option v-for="(item, index) in taxpayerIdentifieroptions" :key="index" :label="item.dictTag"
  586. :value="item.dictValue"></el-option>
  587. </el-select>
  588. </el-form-item>
  589. </el-col>
  590. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
  591. :span="5" :offset="1">
  592. <el-form-item label="减免税凭证号:" prop="extendChar2">
  593. <el-input v-model="vehicleAndVesselTaxForm.extendChar2" placeholder="请输入减免税凭证号" type="text"></el-input>
  594. </el-form-item>
  595. </el-col>
  596. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  597. <el-form-item label="完税凭证号:" prop="paidFreeCertificate">
  598. <el-input v-model="vehicleAndVesselTaxForm.paidFreeCertificate" placeholder="请输入完税凭证号"
  599. type="text"></el-input>
  600. </el-form-item>
  601. </el-col>
  602. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
  603. :span="5" :offset="1">
  604. <el-form-item label="减免税原因:" prop="relifReason">
  605. <el-select v-model="vehicleAndVesselTaxForm.relifReason" placeholder="减免税原因" clearable>
  606. <el-option v-for="(item, index) in relifReasonoptions" :key="index" :label="item.dictTag"
  607. :value="item.dictValue"></el-option>
  608. </el-select>
  609. </el-form-item>
  610. </el-col>
  611. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5" :offset="1">
  612. <el-form-item label="税务机关代码:" prop="taxComCode">
  613. <el-input v-model="vehicleAndVesselTaxForm.taxComCode" placeholder="请输入税务机关代码" type="text"></el-input>
  614. </el-form-item>
  615. </el-col>
  616. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :span="5"
  617. :offset="vehicleAndVesselTaxForm.taxRelifFlag == 4 ? 1 : 0">
  618. <el-form-item label="税务机关名称:" prop="taxComName">
  619. <el-input v-model="vehicleAndVesselTaxForm.taxComName" placeholder="请输入税务机关名称" type="text"></el-input>
  620. </el-form-item>
  621. </el-col>
  622. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5">
  623. <el-form-item label="完税凭证填发日期:" prop="taxDocumentDate">
  624. <el-date-picker v-dateFormat v-model="vehicleAndVesselTaxForm.taxDocumentDate" value-format="yyyy-MM-dd"
  625. type="date" placeholder="完税凭证填发日期" placement="bottom-start"></el-date-picker>
  626. </el-form-item>
  627. </el-col>
  628. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :span="5" :offset="1">
  629. <el-form-item label="完税凭证地区:" prop="taxPaidAreaCode">
  630. <el-select v-model="vehicleAndVesselTaxForm.taxPaidAreaCode" placeholder="完税凭证地区" clearable>
  631. <el-option v-for="(item, index) in provinceSelect" :key="index" :label="item.name"
  632. :value="item.code"></el-option>
  633. </el-select>
  634. </el-form-item>
  635. </el-col>
  636. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 3" :span="5" :offset="1">
  637. <el-form-item label="减税比例:" prop="taxRelief">
  638. <el-input v-model="vehicleAndVesselTaxForm.taxRelief" placeholder="请输入0~1的数值" type="text"></el-input>
  639. </el-form-item>
  640. </el-col>
  641. </el-row>
  642. </el-form>
  643. </div>
  644. <div class="Enclosure flex f-c back">
  645. <div class="home flex j-s a-c back">
  646. <div class="flex j-s a-c" id="more">
  647. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" />
  648. <span style="margin-left:15px;width: 120px">险别选择</span>
  649. <el-select size="small" style="width:70%" v-model="packageValue" placeholder="请选择套餐" @change="packageChange">
  650. <el-option v-for="item in packageOptions" :key="item.id" :label="item.title" :value="item.id"></el-option>
  651. </el-select>
  652. </div>
  653. </div>
  654. <div class="flex f-c more">
  655. <div class="flex j-s a-c more-title back">
  656. <div style="width:590px;padding-left:100px;" class="flex j-s a-c">
  657. <span>险别</span>
  658. <span>保额(元)</span>
  659. </div>
  660. </div>
  661. <div class="flex a-c more-data back" v-for="(insureitem, insureindex) in insureList" :key="insureindex">
  662. <div style="width:700px;padding-left: 100px;" class="flex j-s a-c">
  663. <div style="width:auto;">
  664. <span style="text-align:center;">
  665. {{ insureitem.kindName }}
  666. <el-input
  667. v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'"
  668. v-model="sumseatCount" style="width:40px;margin:0 5px;" size="small" placeholder disabled></el-input>
  669. <span
  670. v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'">座</span>
  671. </span>
  672. </div>
  673. <el-select v-if="insureitem.amtList" filterable v-model="insureitem.amount" placeholder="请选择"
  674. @change="insureitemChange" size="small" style="width: 300px;">
  675. <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
  676. :key="index"></el-option>
  677. </el-select>
  678. <span v-else>
  679. <el-input-number size="small" style="width: 280px;margin-right:10px" v-model="insureitem.amount"
  680. :min="0"></el-input-number>次
  681. </span>
  682. </div>
  683. </div>
  684. <!-- <div style="margin:0 auto;font-size: 14px;cursor: pointer;margin-top:15px;">
  685. <span v-show="insureMore" @click="selectMore(insureList.length)">
  686. 查看更多
  687. <i class="el-icon-arrow-down"></i>
  688. </span>
  689. <span v-show="!insureMore" @click="packup()">
  690. 收起
  691. <i class="el-icon-arrow-up"></i>
  692. </span>
  693. </div>-->
  694. </div>
  695. </div>
  696. <div class="Enclosure flex f-c back">
  697. <div class="home flex j-s">
  698. <div class="flex j-s a-c" id="company">
  699. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" />
  700. <span style="margin-left:10px;">保险公司</span>
  701. <div class="csstool">
  702. <span>是否过户车</span>
  703. <el-switch @change="transferFlagChange" v-model="carInfo.transferFlag" active-color="#D42426"></el-switch>
  704. </div>
  705. <div class="csstool">
  706. <span>商业险是否过户</span>
  707. <el-switch v-model="carInfo.transferFlagBi" active-color="#D42426"></el-switch>
  708. </div>
  709. <div class="csstool">
  710. <span>是否脱保</span>
  711. <el-switch v-model="carInfo.outOfInsurance" active-color="#D42426"></el-switch>
  712. </div>
  713. <div class="csstool">
  714. <span>是否二手车</span>
  715. <el-switch v-model="carInfo.usedCar" active-color="#D42426"></el-switch>
  716. </div>
  717. </div>
  718. <div class="flex j-c a-c">
  719. <el-button v-show="imageUploadShow" size="small" type="primary" @click="imageUpload()">
  720. <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
  721. 影像上传
  722. </el-button>
  723. </div>
  724. </div>
  725. <div>
  726. <div class="companyhead">
  727. <el-row>
  728. <el-col :span="1">
  729. <el-checkbox style="margin:0 10px 0 10px" @change="handleCheckAllChange"></el-checkbox>
  730. <span style="font-size:14px;">全选</span>
  731. </el-col>
  732. <el-col :span="2" style="margin: 0 42px 0 35px;">
  733. <span>保险公司</span>
  734. </el-col>
  735. <el-col :span="5">
  736. <span>报价协议</span>
  737. </el-col>
  738. <el-col :span="3">
  739. <span>报价结果</span>
  740. </el-col>
  741. <el-col :span="3">
  742. <span>交强险</span>
  743. </el-col>
  744. <el-col :span="3">
  745. <span>车船税</span>
  746. </el-col>
  747. <el-col :span="3">
  748. <span>商业险</span>
  749. </el-col>
  750. <el-col :span="2">
  751. <span>驾意险</span>
  752. </el-col>
  753. </el-row>
  754. </div>
  755. <div class="coll">
  756. <div v-loading.fullscreen.lock="loading" class="hovers" v-for="(reslistitem, reslistindex) in totalCompanyList"
  757. :key="reslistindex">
  758. <el-row>
  759. <el-col :span="1" style="margin-left: 20px;">
  760. <el-checkbox v-model="reslistitem.checked"
  761. @change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex)"></el-checkbox>
  762. </el-col>
  763. <el-col :span="3">
  764. <img :src="reslistitem.logo" alt
  765. style="width:30px; height:30px;vertical-align: middle;margin-left:20px" />
  766. <span>{{ reslistitem.namesimple }}</span>
  767. </el-col>
  768. <el-col :span="5">
  769. <el-select size="small" v-if="reslistitem.isTaxSource && reslistitem.isTaxSource == '1'" :disabled="true"
  770. placeholder="默认" style="width: 230px;" v-model="isTaxSourceModel" :clearable="true"></el-select>
  771. <el-select size="small" v-else :disabled="!reslistitem.checked" v-model="reslistitem.agreementId"
  772. placeholder="请选择协议" style="width: 230px;" :clearable="true"
  773. @change="val => agreementChange(val, reslistitem.agreement, reslistindex, reslistitem)">
  774. <div v-for="(agreementitem, agreementindex ) in reslistitem.agreement" :key="agreementindex">
  775. <div
  776. v-if="agreementitem.licenseNo && agreementitem.licenseNo.length > 0 && carInfo.licenseNo.length > 0 ? agreementitem.licenseNo.includes(carInfo.licenseNo.slice(0, 2)) : 'true'">
  777. <el-option :label="agreementitem.agreementName" :value="agreementitem.id"
  778. :disabled="agreementitem.disabled"></el-option>
  779. </div>
  780. </div>
  781. </el-select>
  782. </el-col>
  783. <el-col :span="3">
  784. <div v-show="reslistitem.quoteCode == '0'">
  785. <span>未报价</span>
  786. </div>
  787. <div v-show="reslistitem.quoteCode == '1'">
  788. <i style="color:#D42426" class="el-icon-loading"></i>
  789. </div>
  790. <div class="dis f-c" v-show="reslistitem.quoteCode == '200'">
  791. <span style="color:#D42426;font-weight:bold;">
  792. ¥{{
  793. reslistitem.result.sumPermium
  794. }}
  795. </span>
  796. <span style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{ reslistitem.result.sumExportFee
  797. }}</span>
  798. </div>
  799. </el-col>
  800. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  801. <div class="dis f-c">
  802. <span style="color:#D42426;font-weight:bold;">
  803. ¥{{
  804. reslistitem.result.jqPremium }}
  805. </span>
  806. <span v-if="reslistitem.result.jqPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{
  807. reslistitem.result.jqExportFee }}</span>
  808. </div>
  809. </el-col>
  810. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  811. <span style="color:#D42426;font-weight:bold;">
  812. ¥{{
  813. reslistitem.result.taxAmount }}
  814. </span>
  815. </el-col>
  816. <el-col :span="3" v-show="reslistitem.quoteCode == '200'">
  817. <div class="dis f-c">
  818. <span style="color:#D42426;font-weight:bold;">
  819. ¥{{
  820. reslistitem.result.syPremium }}
  821. </span>
  822. <span v-if="reslistitem.result.syPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{
  823. reslistitem.result.syExportFee }}</span>
  824. </div>
  825. </el-col>
  826. <el-col :span="2" v-if="reslistitem.quoteCode == '200'" style="">
  827. <div class="dis f-c">
  828. <span style="color:#D42426;font-weight:bold;">
  829. {{
  830. reslistitem.result.jyPremium ? '¥' + reslistitem.result.jyPremium : '无' }}
  831. </span>
  832. <span v-if="reslistitem.result.jyPremium" style="font-size: 13px;color:#2D4D89" class="m-top-5">优惠:{{
  833. reslistitem.result.noExportFee }}</span>
  834. </div>
  835. </el-col>
  836. <el-col :span="24" v-show="reslistitem.quoteCode == '200' && reslistitem.result.feeNoDescription">
  837. <div class="flex offer-time" style="color:#D42426">
  838. <span>该车未匹配销管费用,不建议投保!</span>
  839. <el-tooltip class="item" effect="dark" content="费用匹配错误信息" placement="top">
  840. <i class="el-icon-s-goods"
  841. @click="open3(reslistitem.namesimple + '优惠信息', reslistitem.result.feeNoDescription)"
  842. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  843. :disabled="reslistitem.quoteCode == '200' && reslistitem.result.feeNoDescription"></i>
  844. </el-tooltip>
  845. </div>
  846. </el-col>
  847. <el-col :span="24"
  848. v-show="(reslistitem.quoteCode != '200') && (reslistitem.quoteCode != '0') && (reslistitem.quoteCode != '1')">
  849. <div class="flex j-s offer-time" style="color:#D42426">{{ reslistitem.msg.length > 500 ?
  850. reslistitem.msg.slice(0, 500) : reslistitem.msg }}</div>
  851. </el-col>
  852. </el-row>
  853. <div class="flex j-s offer-time" v-if="reslistitem.quoteCode == '200'">
  854. <div style="line-height: 25px;">
  855. 保险期限:
  856. <span v-show="reslistitem.result.startDateJq">
  857. 【交强险】
  858. <span>
  859. {{ reslistitem.result.startDateJq }} -
  860. {{ reslistitem.result.endDateJq }}
  861. </span>
  862. </span>
  863. <span v-show="reslistitem.result.startDateSy" style="margin-left: 20px;">
  864. 【商业险】
  865. <span>
  866. {{ reslistitem.result.startDateSy }} -
  867. {{ reslistitem.result.endDateSy }}
  868. </span>
  869. </span>
  870. <span @click="syncData(reslistitem.result)">
  871. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  872. <i style="color:red" class="el-icon-time"></i>
  873. </el-tooltip>
  874. </span>
  875. <div>
  876. <span v-show="reslistitem.result.JqExportFee">
  877. 交强出口费用<span>{{ reslistitem.result.JqExportFee }}</span>
  878. </span>
  879. <span v-show="reslistitem.result.syExportFee">
  880. 商业出口费用<span>{{ reslistitem.result.syExportFee }}</span>
  881. </span>
  882. <span v-show="reslistitem.result.noExportFee">
  883. 非车出口费用<span> {{ reslistitem.result.noExportFee }}</span>
  884. </span>
  885. </div>
  886. <div>
  887. <span v-if="reslistitem.namesimple == '永诚财险'">
  888. 光博分:
  889. <span>
  890. {{ reslistitem.result.ilogPreUdwMess ?
  891. reslistitem.result.ilogPreUdwMess : '无' }}
  892. </span>
  893. </span>
  894. <span v-else>
  895. 评分:
  896. <span>
  897. {{ reslistitem.result.ilogPreUdwMess ?
  898. reslistitem.result.ilogPreUdwMess : '无' }}
  899. </span>
  900. </span>
  901. <span v-if="reslistitem.result.jqScore" class="marginL">
  902. 交强类型评分:
  903. <span>{{ reslistitem.result.jqScore }}</span>
  904. </span>
  905. <span v-if="reslistitem.result.syScore" class="marginL">
  906. 商业类型评分:
  907. <span>{{ reslistitem.result.syScore }}</span>
  908. </span>
  909. <span v-if="reslistitem.result.lossRation" class="marginL">
  910. 总赔付率:
  911. <span>{{ reslistitem.result.lossRation }}</span>
  912. </span>
  913. <span v-if="reslistitem.result.jqLossRation" class="marginL">
  914. 交强赔付率:
  915. <span>{{ reslistitem.result.jqLossRation }}</span>
  916. </span>
  917. <span v-if="reslistitem.result.syLossRation" class="marginL">
  918. 商业赔付率:
  919. <span>{{ reslistitem.result.syLossRation }}</span>
  920. </span>
  921. <span v-if="reslistitem.result.totalAdjustRate" class="marginL">
  922. 自主定价系数:
  923. <span>{{ reslistitem.result.totalAdjustRate }}</span>
  924. </span>
  925. <span v-if="reslistitem.result.jgAdjustRate" class="marginL">
  926. 交强折扣系数:
  927. <span>{{ reslistitem.result.jgAdjustRate }}</span>
  928. </span>
  929. <span v-if="reslistitem.result.syAdjustRate" class="marginL">
  930. 商业折扣系数:
  931. <span>{{ reslistitem.result.syAdjustRate }}</span>
  932. </span>
  933. <span v-if="reslistitem.result.jqRenewal" class="marginL">
  934. 交强续保:
  935. <span>
  936. {{
  937. reslistitem.result.jqRenewal? reslistitem.result.jqRenewal:"无" }}
  938. </span>
  939. </span>
  940. <span v-if="reslistitem.result.syRenewal" class="marginL">
  941. 商业续保:
  942. <span>
  943. {{
  944. reslistitem.result.syRenewal? reslistitem.result.syRenewal:"无" }}
  945. </span>
  946. </span>
  947. <span v-if="reslistitem.result.jqClaims" class="marginL">
  948. 交强出险次数:
  949. <span>
  950. {{
  951. reslistitem.result.jqClaims? reslistitem.result.jqClaims:'无' }}
  952. </span>
  953. </span>
  954. <span v-if="reslistitem.result.syClaims" class="marginL">
  955. 商业出险次数:
  956. <span>
  957. {{
  958. reslistitem.result.syClaims? reslistitem.result.syClaims:'无' }}
  959. </span>
  960. </span>
  961. <span v-if="reslistitem.namesimple == '紫金财险' && reslistitem.result.ubiPredictedInfoScore"
  962. class="marginL">
  963. 紫金能源车(鼎然-车辆风险评分):
  964. <span>{{ reslistitem.result.ubiPredictedInfoScore }}</span>
  965. </span>
  966. <span v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '1'">真单交</span>
  967. <span v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '0'">假单交</span>
  968. </div>
  969. </div>
  970. <div style="text-align: right;">
  971. <div style="color:#2D4D89; ">
  972. <el-tooltip class="item" effect="dark" content="上年信息" placement="top">
  973. <i class="el-icon-chat-dot-round" @click="open2(reslistitem.namesimple, reslistitem.lastYearMsg)"
  974. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  975. :disabled="reslistitem.namesimple == '众安财险' && reslistitem.result.tips == '需要验车'"
  976. v-show="(reslistitem.quoteCode == '200' && reslistitem.lastYearMsg)"></i>
  977. </el-tooltip>
  978. <el-tooltip class="item" effect="dark" content="预核保信息" placement="top">
  979. <i class="el-icon-chat-dot-round"
  980. @click="openPredictInfo(reslistitem.namesimple, reslistitem.predictInfo)"
  981. style="font-size:20px;transform: scale(0.8);vertical-align: middle;"
  982. v-show="(reslistitem.quoteCode == '200' && reslistitem.predictInfo && reslistitem.predictInfo.length > 0 && reslistitem.namesimple == '中国人寿')"></i>
  983. </el-tooltip>
  984. <el-button :disabled="reslistitem.namesimple == '众安财险' && reslistitem.result.tips == '需要验车'"
  985. v-show="reslistitem.quoteCode == '200' && !('editStatus' in reslistitem.result)" type="text"
  986. size="small" style="color:#2D4D89;font-size:14px" @click="hbsubmitdialog(reslistitem)">下单</el-button>
  987. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
  988. style="color:#2D4D89;font-size:14px "
  989. @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
  990. </div>
  991. <div>
  992. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small" style="font-size:14px "
  993. @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
  994. <el-button type="text" size="small" style="font-size:14px "
  995. @click="Payment(reslistitem.result.companyId, reslistitem.namesimple)"
  996. v-show="reslistitem.orderstatus == '2' && !('editStatus' in reslistitem.result)">付款码</el-button>
  997. </div>
  998. </div>
  999. </div>
  1000. <template>
  1001. <!-- <div style="margin:20px 0 0 100px;" v-if="reslistitem.checked && reslistitem.agreementId"> -->
  1002. <span v-if="reslistitem.checked && reslistitem.agreementId && reslistitem.underwritingDescription"
  1003. style="margin:20px 20px 0 100px;display: inline-block">{{ reslistitem.underwritingDescription }}</span>
  1004. <!-- </div> -->
  1005. </template>
  1006. <template v-if="reslistitem.namesimple == '恒邦财险' && reslistitem.checked && reslistitem.agreementId">
  1007. <div class="flex f-c Driving-risk">
  1008. <div class="dis a-c" style="margin:15px 0">
  1009. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1010. <el-select style="width: 250px;margin-right:60px" filterable size="small" clearable
  1011. v-model="hengbangtemplateSelection" placeholder="未选择" @clear="clearAccidentFormHB"
  1012. @change="hengbangInsuranceChange">
  1013. <el-option v-for="(item, index) in hengbangInsuranceData" :key="index" :label="item.projectName"
  1014. :value="item.projectCode"></el-option>
  1015. </el-select>
  1016. 保费: <b>{{ hengbangaccidentalDrivingVo.sumPremium || 0 }}&ensp;元</b>
  1017. </div>
  1018. <el-table size="small" :data="hengbangInsuranceDataTable" border v-if="hengbangtemplateSelection"
  1019. ref="RsTable" highlight-current-row
  1020. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1021. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1022. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  1023. <!-- <el-table-column prop="sumgrosspremium" label="保费 (元)/每份" align="center">
  1024. <template slot-scope="scope">
  1025. <span>¥{{ scope.row.sumgrosspremium }}</span>
  1026. </template>
  1027. </el-table-column>
  1028. <el-table-column label="份数" align="center">
  1029. <template slot-scope="scope">
  1030. <span>{{ scope.row.quantity }}</span>
  1031. </template>
  1032. </el-table-column> -->
  1033. </el-table>
  1034. </div>
  1035. </template>
  1036. <template v-if="reslistitem.namesimple == '华农财险' && reslistitem.checked && reslistitem.agreementId">
  1037. <div class="flex f-c Driving-risk">
  1038. <el-form :inline="true" :model="accidentFormHN" class="demo-form-inline"
  1039. style="font-weight:bold;margin-top:15px" size="small">
  1040. <el-form-item label="意外险类型:" style="margin-right:30px;">
  1041. <el-select clearable v-model="accidentFormHN.accidentType" placeholder="未选择"
  1042. @clear="clearAccidentFormHN" @change="huanongInsuranceChange">
  1043. <el-option v-for="(item, index) in huanongInsuranceData" :key="index" :label="item.projectName"
  1044. :value="item.projectCode"></el-option>
  1045. </el-select>
  1046. </el-form-item>
  1047. <el-form-item label="选择份数" style="margin-right:30px;">
  1048. <el-input-number v-model="accidentFormHN.quantity" :min="1"
  1049. controls-position="right"></el-input-number>
  1050. <!-- <span style="margin-left: 5px;">份</span> -->
  1051. </el-form-item>
  1052. </el-form>
  1053. <el-table v-if="accidentFormHN.accidentType" size="small" :data="huanongInsuranceDataTable" border ref="expandTable"
  1054. highlight-current-row
  1055. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1056. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1057. <el-table-column prop="amount" label="保额" align="center">
  1058. <template slot-scope="scope">
  1059. <el-input v-model="scope.row.amount" placeholder="请输入内容" size="small" disabled></el-input>
  1060. </template>
  1061. </el-table-column>
  1062. </el-table>
  1063. </div>
  1064. </template>
  1065. <template v-if="reslistitem.namesimple == '太平财险' && reslistitem.checked && reslistitem.agreementId">
  1066. <div class="flex f-c Driving-risk">
  1067. <div class="dis a-c" style="margin:15px 0">
  1068. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1069. <el-select style="width: 250px;margin-right:60px" filterable size="small" clearable
  1070. v-model="taipingtemplateSelection" placeholder="未选择" @clear="clearAccidentFormTP" @change="taipingInsuranceChange">
  1071. <el-option v-for="(item, index) in taipingInsuranceData" :key="index" :label="item.projectName"
  1072. :value="item.projectCode"></el-option>
  1073. </el-select>
  1074. 每份价税合计: <b>{{ taipingaccidentalDrivingVo.sumPremium || 0 }}&ensp;元</b>
  1075. </div>
  1076. <el-table size="small" :data="taipingInsuranceDataTable" border v-if="taipingtemplateSelection" ref="RsTable"
  1077. highlight-current-row
  1078. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1079. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1080. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  1081. </el-table>
  1082. </div>
  1083. </template>
  1084. <template v-if="reslistitem.namesimple == '安盛天平' && reslistitem.checked && reslistitem.agreementId">
  1085. <div class="flex f-c Driving-risk">
  1086. <div class="dis a-c" style="margin-top:15px">
  1087. <span style="margin-right:15px;font-weight:bold;">意外险类型</span>
  1088. <el-select style="width: 250px;" size="small" clearable v-model="anshengtemplateSelection" placeholder="未选择"
  1089. @clear="clearAccidentFormAS" @change="anshengInsuranceChange">
  1090. <el-option v-for="(item, index) in anshengInsuranceData" :key="index"
  1091. :label="item.projectCode + ' ' + item.projectName" :value="item.projectCode"></el-option>
  1092. </el-select>
  1093. </div>
  1094. <el-table style='margin-top:20px;' size="small" :data="anshengInsuranceDataTable" border v-if="anshengtemplateSelection" ref="RsTable"
  1095. highlight-current-row
  1096. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1097. <el-table-column align="center" width="55" label="选择">
  1098. <template slot-scope="scope">
  1099. <el-radio class="radio" v-model="anshengInsurancetype" :label="scope.row.projectCode"
  1100. @click.native.stop.prevent="ASDrivingRadio(scope.row)">&nbsp;</el-radio>
  1101. </template>
  1102. </el-table-column>
  1103. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  1104. <el-table-column prop="projectCode" label="方案代码" align="center"></el-table-column>
  1105. <el-table-column prop="quantity" label="份数" align="center"> </el-table-column>
  1106. </el-table>
  1107. </div>
  1108. </template>
  1109. <template v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId">
  1110. <div style="margin:15px 0 15px 100px">
  1111. <span>商业险折扣:</span>
  1112. <el-input style="width:220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount"
  1113. placeholder="请输入内容"
  1114. @input="reslistitem.discount = reslistitem.discount.replace(/[^\d.]/g, '')"></el-input>
  1115. </div>
  1116. <div class="flex f-c Driving-risk">
  1117. <div class="dis a-c">
  1118. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1119. <el-select style="width: 250px;" filterable size="small" clearable v-model="renshoutemplateSelection"
  1120. placeholder="未选择" @clear="clearAccidentFormRS" @change="renshouInsuranceChange">
  1121. <el-option v-for="(item, index) in renshouInsuranceData" :key="index" :label="item.projectName"
  1122. :value="item.projectCode"></el-option>
  1123. </el-select>
  1124. </div>
  1125. <el-table size="small" style="margin-top:20px" :data="renshouInsuranceDataTable" border v-if="renshoutemplateSelection" @row-click="RSDrivingChange"
  1126. ref="RsTable" highlight-current-row
  1127. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1128. <el-table-column prop="name" label="方案名称" align="center"></el-table-column>
  1129. <el-table-column prop="premium" label="保费 (元)起" align="center">
  1130. <template slot-scope="scope">
  1131. <span>¥{{ scope.row.premium }}</span>
  1132. </template>
  1133. </el-table-column>
  1134. <el-table-column label="份数" align="center">
  1135. <template slot-scope="scope">
  1136. <span>{{ scope.row.quantity }}</span>
  1137. </template>
  1138. </el-table-column>
  1139. </el-table>
  1140. </div>
  1141. </template>
  1142. <template v-if="reslistitem.namesimple == '众安财险' && reslistitem.checked && reslistitem.agreementId">
  1143. <div class="flex f-c Driving-risk">
  1144. <div class="dis a-c" style="margin:15px 0">
  1145. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1146. <el-select style="width: 250px;" filterable size="small" clearable v-model="zhongantemplateSelection"
  1147. placeholder="未选择" @clear="clearAccidentFormZA" @change="zhonganInsuranceChange">
  1148. <el-option v-for="(item, index) in zhonganInsuranceData" :key="index" :label="item.projectName"
  1149. :value="item.projectCode"></el-option>
  1150. </el-select>
  1151. <!-- 保费: <b>{{ zhonganaccidentalDrivingVo.sumgrosspremium || 0}}&ensp;元</b> -->
  1152. </div>
  1153. <el-table size="small" :data="zhonganInsuranceDataTable" border v-if="zhongantemplateSelection" @row-click="ZADrivingChange"
  1154. ref="RsTable" highlight-current-row
  1155. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1156. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1157. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  1158. </el-table>
  1159. </div>
  1160. </template>
  1161. <template v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId">
  1162. <div style="margin:15px 0 15px 100px">
  1163. <span>自主定价系数:</span>
  1164. <el-input style="width:220px" size="small" v-model="reslistitem.coefficient"
  1165. placeholder="请输入内容"></el-input>
  1166. </div>
  1167. <div class="flex f-c Driving-risk">
  1168. <div class="dis a-c" style="margin-bottom:15px">
  1169. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1170. <el-select style="width: 250px;" filterable multiple size="small" clearable v-model="zijintemplateSelection"
  1171. placeholder="未选择" @clear="clearAccidentFormZJ" @change="zijinInsuranceChange">
  1172. <el-option v-for="(item, index) in ziJinInsuranceData" :key="index" :label="item.projectName"
  1173. :value="item.projectCode"></el-option>
  1174. </el-select>
  1175. </div>
  1176. <el-table size="small" :data="zijinInsuranceDataTable" border v-if="zijintemplateSelection" @select="CheckboxChange"
  1177. filterable ref="expandTable" highlight-current-row
  1178. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1179. <el-table-column type="selection" width="55"></el-table-column>
  1180. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  1181. <el-table-column prop="sumAmount" label="总保额 (元)/每份" align="center"></el-table-column>
  1182. <el-table-column prop="sumPremium" label="保费 (元)/每份" align="center">
  1183. <template slot-scope="scope">
  1184. <span>¥{{ scope.row.sumPremium }}</span>
  1185. </template>
  1186. </el-table-column>
  1187. <el-table-column prop="quantity" label="份数" align="center">
  1188. <template slot-scope="scope">
  1189. <el-input-number v-model="scope.row.quantity" :min="1" size="small"
  1190. controls-position="right"></el-input-number>
  1191. </template>
  1192. </el-table-column>
  1193. <el-table-column prop="Totalprice" label="总保费 (元)" align="center">
  1194. <template slot-scope="scope">
  1195. <span v-if="scope.row.quantity">{{ scope.row.sumPremium * scope.row.quantity }}</span>
  1196. <span v-else>{{ scope.row.sumPremium }}</span>
  1197. </template>
  1198. </el-table-column>
  1199. </el-table>
  1200. </div>
  1201. </template>
  1202. <template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId">
  1203. <div class="flex f-c Driving-risk">
  1204. <el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small"
  1205. style="font-weight:bold;margin-top:15px">
  1206. <el-form-item label="意外险类型" style="margin-right:30px;">
  1207. <el-select clearable v-model="yongchengtemplateSelection" placeholder="未选择" @clear="clearAccidentForm"
  1208. @change="yongchengInsuranceChange">
  1209. <el-option v-for="(item, index) in accidentDataList" :key="index" :label="item.projectName"
  1210. :value="item.projectCode"></el-option>
  1211. </el-select>
  1212. </el-form-item>
  1213. <el-form-item label="选择份数" style="margin-right:50px;">
  1214. <el-input-number v-model="accidentForm.quantity" @change="numberCopieschange" :min="1"
  1215. controls-position="right"></el-input-number>
  1216. <!-- <span style="margin-left: 5px;">份</span> -->
  1217. </el-form-item>
  1218. <el-form-item label="保费:">
  1219. <span>{{ accidentForm.sumPremium }}&ensp;元</span>
  1220. </el-form-item>
  1221. </el-form>
  1222. <el-table v-if="yongchengtemplateSelection" size="small" :data="yongchengInsuranceDataTable" border ref="expandTable"
  1223. highlight-current-row
  1224. :header-cell-style="{ background: '#F7F7F9', fontWeight: '700', color: '#333333' }">
  1225. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1226. <el-table-column prop="amount" label="每座保额 (元)/每份" align="center"></el-table-column>
  1227. <el-table-column prop="sumAmount" label="每车保额 (元)/每份" align="center"></el-table-column>
  1228. <el-table-column prop="premium" label="责任保费 (元)/每份" align="center"></el-table-column>
  1229. </el-table>
  1230. </div>
  1231. </template>
  1232. <template v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId">
  1233. <!-- <div style="margin:10px 0 0 100px;">
  1234. <span style="margin-right:20px"> {{reslistitem.underwritingDescription}}</span>-->
  1235. <el-button type="text" style="margin:10px 0 0 100px;" @click="contributingGuoRen(reslistitem.agreementId)">选择特约</el-button>
  1236. <!-- </div> -->
  1237. <div class="flex f-c Driving-risk">
  1238. <el-form :inline="true" :model="guoRenaccidentForm" class="demo-form-inline" size="small">
  1239. <el-form-item label="意外险类型" style="margin-right:30px;">
  1240. <el-select clearable placeholder="未选择" @clear="clearAccidentFormGr" @change="grcxchange"
  1241. v-model="guoRenaccidentForm.goodsCode">
  1242. <el-option v-for="(item, index) in guoRenaccidentDataList" :key="index" :label="item.projectName"
  1243. :value="item.projectCode"></el-option>
  1244. </el-select>
  1245. </el-form-item>
  1246. <el-form-item label=" ">
  1247. <el-select clearable v-model="guoRenaccidentForm.prodCode"
  1248. @change="grcxchangeChild">
  1249. <el-option v-for="(item, index) in guoRenaccidentDataListChild" :key="item.projectCode"
  1250. :label="item.projectName" :value="item.projectCode"></el-option>
  1251. </el-select>
  1252. </el-form-item>
  1253. <el-form-item label="选择份数" style="margin-right:30px;">
  1254. <el-input-number v-model="guoRenaccidentForm.quantity" :min="1" controls-position="right"
  1255. @change="numberCopieschangeGR"></el-input-number>
  1256. <!-- <span style="margin-left: 5px;">份</span> -->
  1257. </el-form-item>
  1258. <el-form-item label="保费:">
  1259. <span>{{ guoRenaccidentForm.sumPremium }}&ensp;元</span>
  1260. </el-form-item>
  1261. </el-form>
  1262. <el-table v-if="guoRenaccidentForm.prodCode" size="small" :data="guoRenInsuranceDataTable" border
  1263. ref="expandTable" highlight-current-row
  1264. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1265. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1266. <el-table-column prop="amount" label="保额 (元)" align="center"></el-table-column>
  1267. <el-table-column prop="premium" label="保费 (元)" align="center">
  1268. <template slot-scope="scope">¥{{ scope.row.premium }}</template>
  1269. </el-table-column>
  1270. </el-table>
  1271. </div>
  1272. </template>
  1273. <template v-if="reslistitem.namesimple == '中煤财险' && reslistitem.checked && reslistitem.agreementId">
  1274. <div class="flex f-c Driving-risk accident-style zmDriving">
  1275. <el-form :inline="true" :model="accidentFormZM" class="demo-form-inline" size="small"
  1276. style="font-weight:bold;margin-top:15px">
  1277. <el-form-item label="意外险类型" style="margin-right:30px;">
  1278. <el-select style="width: 250px;" size="small" clearable v-model="zhongmeitemplateSelection"
  1279. placeholder="未选择" @clear="numberCopieschangeZM" @change="zhongmeiInsuranceChange">
  1280. <el-option v-for="(item, index) in zhongmeiInsuranceData" :key="index" :label="item.projectName"
  1281. :value="item.projectCode"></el-option>
  1282. </el-select>
  1283. </el-form-item>
  1284. <el-form-item label="选择份数" style="margin-right:30px;">
  1285. <el-input-number v-model="accidentFormZM.quantity" @change="numberCopieschangeZM" :min="1"
  1286. controls-position="right" ></el-input-number>
  1287. <!-- <span style="margin-left: 5px;">份</span> -->
  1288. </el-form-item>
  1289. <el-form-item label="保费:">
  1290. <span>{{ accidentFormZM.sumPremium }}&ensp;元</span>
  1291. </el-form-item>
  1292. </el-form>
  1293. <el-table size="small" :data="zhongmeiInsuranceDataTable" border ref="ZmMultipleTable" v-if="zhongmeitemplateSelection"
  1294. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1295. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  1296. <el-table-column prop="amount" label="保险责任对应保额" align="center"></el-table-column>
  1297. <!-- <el-table-column label="份数" align="center">
  1298. <template slot-scope="scope">
  1299. <div @click.stop>
  1300. <el-input-number
  1301. v-model="scope.row.quantity"
  1302. @change="ZMhandleChange"
  1303. :min="1"
  1304. :max="Number(scope.row.insuredNumLimit)"
  1305. controls-position="right"
  1306. ></el-input-number>
  1307. </div>
  1308. </template>
  1309. </el-table-column>-->
  1310. </el-table>
  1311. </div>
  1312. </template>
  1313. <template v-if="reslistitem.namesimple == '大家财险' && reslistitem.checked && reslistitem.agreementId">
  1314. <div class="flex f-c Driving-risk">
  1315. <div class="dis a-c" style="margin-top:15px">
  1316. <span style="margin-right:15px;font-weight:bold">选择意外险</span>
  1317. <el-select style="width: 250px;" filterable size="small" clearable v-model="dajiatemplateSelection"
  1318. placeholder="未选择" @clear="clearAccidentFormDJ" @change="dajiaInsuranceChange">
  1319. <el-option v-for="(item, index) in dajiaInsuranceData" :key="index" :label="item.productName"
  1320. :value="item.id"></el-option>
  1321. </el-select>
  1322. </div>
  1323. <el-table size="small" :data="dajiaInsuranceDataTable" border v-if="dajiatemplateSelection" @row-click="DJDrivingChange"
  1324. ref="RsTable" highlight-current-row
  1325. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1326. <el-table-column prop="cvrgName" label="保险责任名称" align="center"></el-table-column>
  1327. <el-table-column prop="cvrgPrm" label="保费 (元)/每份" align="center">
  1328. <template slot-scope="scope">¥{{ scope.row.cvrgPrm }}</template>
  1329. </el-table-column>
  1330. </el-table>
  1331. </div>
  1332. </template>
  1333. <template v-if="reslistitem.namesimple == '渤海财险' && reslistitem.checked && reslistitem.agreementId">
  1334. <div class="flex f-c Driving-risk" style="margin-top:15px">
  1335. <el-form :inline="true" :model="boHaiaccidentForm" class="demo-form-inline" size="small">
  1336. <el-form-item label="意外险类型" style="margin-right:30px;">
  1337. <el-select clearable placeholder="未选择" @clear="clearAccidentFormBh" @change="bohaiInsuranceChange"
  1338. v-model="boHaiaccidentForm.packageCode">
  1339. <el-option v-for="(item, index) in boHaiaccidentDataList" :key="index" :label="item.packageName"
  1340. :value="item.packageCode"></el-option>
  1341. </el-select>
  1342. </el-form-item>
  1343. <el-form-item label="选择份数" style="margin-right:30px;">
  1344. <el-input-number v-model="boHaiaccidentForm.copies" :min="1"
  1345. controls-position="right"></el-input-number>
  1346. </el-form-item>
  1347. <el-form-item label="保费:">
  1348. <span>{{ boHaiaccidentForm.premium * boHaiaccidentForm.copies }}&ensp;元</span>
  1349. </el-form-item>
  1350. </el-form>
  1351. <el-table v-if="boHaiaccidentForm.packageCode" size="small" :data="bohaiInsuranceDataTable" border
  1352. v-loading="accidentLoadingbh" ref="expandTable" highlight-current-row
  1353. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  1354. <el-table-column prop="coverageName" label="保险责任名称" align="center"></el-table-column>
  1355. <el-table-column prop="insuredAmount" label="保额 (元)" align="center">
  1356. <template slot-scope="scope">¥{{ scope.row.insuredAmount }}</template>
  1357. </el-table-column>
  1358. </el-table>
  1359. </div>
  1360. </template>
  1361. </div>
  1362. </div>
  1363. </div>
  1364. </div>
  1365. <div class="Enclosure flex f-c" v-if="isLetter">
  1366. <div class="home flex j-s a-c back">
  1367. <div class="flex j-s a-c color">
  1368. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  1369. <span style="margin-left:10px;">报价历史</span>
  1370. <div v-if="orderno">
  1371. <el-radio-group v-model="historyRadio" style="margin-left:30px;" @input="RadioHistoryChange"
  1372. v-for="item in insOrderStatusoptions" :key="item.dictValue">
  1373. <el-radio :label="item.dictValue">{{ item.dictTag }}</el-radio>
  1374. </el-radio-group>
  1375. </div>
  1376. </div>
  1377. </div>
  1378. <div style="padding:20px;">
  1379. <el-table size="small" :data="HistoryList" height="250" border style="width: 100%" v-loading="loading"
  1380. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row>
  1381. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  1382. <el-table-column prop="username" label="业务员" align="center">
  1383. <template slot-scope="scope">
  1384. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  1385. </template>
  1386. </el-table-column>
  1387. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  1388. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  1389. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  1390. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  1391. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  1392. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  1393. <el-table-column prop="orderstatus" label="状态" align="center">
  1394. <template slot-scope="scope">
  1395. <el-tag style="color:#33A08D;border-color:#33A08D;background: rgba(51,160,141,0.1);"
  1396. v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'" size="small">{{ scope.row.orderstatus
  1397. |
  1398. cap }}</el-tag>
  1399. <el-tag type="danger" style="border-color:#E75B5D ;" v-else-if="scope.row.orderstatus == '3'"
  1400. size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1401. <el-tag v-else style="color:#2D4D89 ;border-color:#2D4D89 ;background: rgba(45, 77, 137,0.1);"
  1402. size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  1403. </template>
  1404. </el-table-column>
  1405. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  1406. <template slot-scope="scope">
  1407. <el-button type="text" style="color:#2D4D89 " size="small"
  1408. @click="qoutedetail(scope.row.id)">查看详情</el-button>
  1409. <el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
  1410. <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
  1411. @click="Payment(scope.row.id, scope.row)">付款码</el-button>
  1412. <el-button size="mini" type="text"
  1413. v-if="(scope.row.orderstatus == '1' || scope.row.orderstatus == '2' || scope.row.orderstatus == '4') && ['紫金财险'].includes(scope.row.inscompany)"
  1414. @click="cancelorder(scope.row)">撤单</el-button>
  1415. <el-button type="text" size="mini" style="color:#2D4D89 " v-if="scope.row.orderstatus == '2'"
  1416. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  1417. </template>
  1418. </el-table-column>
  1419. </el-table>
  1420. </div>
  1421. </div>
  1422. <!-- 查看详情 -->
  1423. <detailsDialog ref="detailsDialog" :orderInfo.sync="queryOrders" :Feepermissions="false"></detailsDialog>
  1424. <el-dialog title="车型选择" :visible.sync="chexingdialogVisible" width="1300px">
  1425. <el-form :inline="true" class="demo-form-inline" size="small">
  1426. <el-form-item label="厂牌型号">
  1427. <el-input v-model="carInfo.modelcname" placeholder="厂牌型号" style="width:500px;"></el-input>
  1428. </el-form-item>
  1429. <el-form-item>
  1430. <el-button type="primary" size="small" @click="toChooseVehicleType(carInfo.modelcname)">查询</el-button>
  1431. </el-form-item>
  1432. </el-form>
  1433. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1434. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row
  1435. @row-dblclick="reslistCurrentChange">
  1436. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1437. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1438. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1439. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1440. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1441. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1442. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1443. </el-table>
  1444. </el-dialog>
  1445. <el-dialog title="车辆识别代码" :visible.sync="sbdmdialogVisible" width="1300px">
  1446. <el-form :inline="true" class="demo-form-inline" size="small">
  1447. <el-form-item label="车辆识别代码">
  1448. <el-input v-model="carInfo.frameNo" placeholder="车辆识别代码" style="width:500px;"></el-input>
  1449. </el-form-item>
  1450. <el-form-item>
  1451. <el-button type="primary" size="small" @click="toChooseVin(carInfo.frameNo)">查询</el-button>
  1452. </el-form-item>
  1453. </el-form>
  1454. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  1455. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }" highlight-current-row
  1456. @row-dblclick="reslistCurrentChange">
  1457. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  1458. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  1459. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  1460. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  1461. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  1462. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  1463. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  1464. </el-table>
  1465. </el-dialog>
  1466. <!--第一种 二维码 -->
  1467. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  1468. <div class="ORcodebody" v-watermark="userform.id || userId">
  1469. <div slot="title" class="dialog-title">
  1470. <span>扫码付款</span>
  1471. </div>
  1472. <div class="ORcode">
  1473. <div style="padding:13px;position: relative;">
  1474. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
  1475. <div v-else id="qrcode" ref="qrcode"></div>
  1476. </div>
  1477. </div>
  1478. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  1479. <div style="font-size:32px;text-align: center;color:#D42426;margin-top:20px">
  1480. <span style="font-size:24px;font-weight:bold">¥</span>
  1481. {{ sumpremium }}
  1482. </div>
  1483. <div class="ORtitle">
  1484. <div>
  1485. <span>保险公司:</span>
  1486. <span>{{ inscompany }}</span>
  1487. </div>
  1488. <div>
  1489. <span>车牌号:</span>
  1490. <span>{{ licenseNo }}</span>
  1491. </div>
  1492. <div>
  1493. <span>投保人:</span>
  1494. <span>{{ applyName }}</span>
  1495. </div>
  1496. <!-- <div>
  1497. <span style="color:#f75c00">总金额:</span>
  1498. <span style="color:#f75c00">{{ sumpremium }}</span>
  1499. </div>-->
  1500. <div v-show="jqpremium">
  1501. <span>交强:</span>
  1502. <span>{{ jqpremium }}</span>
  1503. </div>
  1504. <div v-show="sypremium">
  1505. <span>商业:</span>
  1506. <span>{{ sypremium }}</span>
  1507. </div>
  1508. <div v-show="taxamount">
  1509. <span>车船税:</span>
  1510. <span>{{ taxamount }}</span>
  1511. </div>
  1512. <div v-show="jqstartdate">
  1513. <span>交强险起保日期:</span>
  1514. <span>{{ jqstartdate }}</span>
  1515. </div>
  1516. <div v-show="systartdate">
  1517. <span>商业险起保日期:</span>
  1518. <span>{{ systartdate }}</span>
  1519. </div>
  1520. <div v-if="jypremium">
  1521. <span>非车险:</span>
  1522. <span>{{ jypremium }}</span>
  1523. </div>
  1524. </div>
  1525. <!-- <div class="display">
  1526. <el-button size="small" style="width:100px;" @click="codedialogVisible = false">关闭</el-button>
  1527. </div>-->
  1528. </div>
  1529. <span slot="footer" class="dialog-footer display">
  1530. <el-button size="small" style="width:100px;border-color:#D42426;color:#D42426 "
  1531. @click="codedialogVisible = false">关闭</el-button>
  1532. </span>
  1533. </el-dialog>
  1534. <!--第二种 二维码 -->
  1535. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh" title="扫码付款">
  1536. <div class="flex j-s">
  1537. <div class="scan-code">
  1538. <div style="font-weight: bold;">
  1539. 总金额:
  1540. <span style="color:#2D4D89 ">{{ sumpremium }}</span>
  1541. </div>
  1542. <div>交强险:{{ jqpremium }}</div>
  1543. <div>车船税:{{ taxamount }}</div>
  1544. <div>商业险:{{ sypremium }}</div>
  1545. <div>非车险:{{ jypremium }}</div>
  1546. </div>
  1547. <div>
  1548. <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
  1549. <div v-else id="qrcode" ref="qrcode"></div>
  1550. </div>
  1551. <div class="scan-code">
  1552. <div>保险公司:{{ inscompany }}</div>
  1553. <div>车牌号:{{ licenseNo }}</div>
  1554. <div>投保人:{{ applyName }}</div>
  1555. <div>交强险起保日期:{{ jqstartdate }}</div>
  1556. <div>商业险起保日期:{{ systartdate }}</div>
  1557. </div>
  1558. </div>
  1559. <span slot="footer" class="dialog-footer">
  1560. <el-button size="small" style="width:100px;background: #EAEDF1;border-color:#EAEDF1;color:#2D4D89 "
  1561. @click="codedialogVisiblePro = false">关闭</el-button>
  1562. </span>
  1563. </el-dialog>
  1564. <el-dialog :visible.sync="uploadcardialogVisible" width="960px" style="padding:10px 20px;box-sizing: border-box;"
  1565. @open="closeDialog(0)">
  1566. <div slot="title" class="dialog-title">
  1567. <span>行驶证识别</span>
  1568. </div>
  1569. <el-row :gutter="20">
  1570. <div class="bodys1">
  1571. <div>
  1572. <div class="flex a-c">
  1573. <div class="OCR" style="text-align:center;">行驶证主页</div>
  1574. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1575. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carfrontChange">
  1576. <img v-show="carfrontImg" :src="carfrontImg" style="width:100%;height:100%" />
  1577. <img v-show="!carfrontImg" src="../../../../static/carfront.png" style="width:100%;height:100%" />
  1578. <span class="slot" v-show="carfrontImg" @click.stop>
  1579. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carfrontImg)"></i>
  1580. <i class="el-icon-delete" @click.stop="handleRemove('carfrontImg')"></i>
  1581. </span>
  1582. </el-upload>
  1583. </div>
  1584. </div>
  1585. <div class="flex a-c">
  1586. <div class="OCR" style="text-align:center;">行驶证副页</div>
  1587. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1588. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carbackChange">
  1589. <img v-show="carbackImg" :src="carbackImg" style="width:100%;height:100%" />
  1590. <img v-show="!carbackImg" src="../../../../static/carback.png" style="width:100%;height:100%" />
  1591. <span class="slot" v-show="carbackImg" @click.stop>
  1592. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carbackImg)"></i>
  1593. <i class="el-icon-delete" @click.stop="handleRemove('carbackImg')"></i>
  1594. </span>
  1595. </el-upload>
  1596. </div>
  1597. </div>
  1598. </div>
  1599. <div style="text-align:center;">
  1600. <el-form :model="carform" label-width="130px" size="small">
  1601. <el-form-item label="所有人">
  1602. <el-input v-model="carform.carOwner" autocomplete="off"></el-input>
  1603. </el-form-item>
  1604. <el-form-item label="车牌号">
  1605. <el-input v-model="carform.licenseNo" autocomplete="off"></el-input>
  1606. </el-form-item>
  1607. <el-form-item label="车架号">
  1608. <el-input v-model="carform.frameNo" autocomplete="off"></el-input>
  1609. </el-form-item>
  1610. <el-form-item label="品牌型号">
  1611. <el-input v-model="carform.modelcname" autocomplete="off"></el-input>
  1612. </el-form-item>
  1613. <el-form-item label="发动机号">
  1614. <el-input v-model="carform.engineNo" autocomplete="off"></el-input>
  1615. </el-form-item>
  1616. <el-form-item label="总质量">
  1617. <el-input v-model="carform.grossMass" autocomplete="off"></el-input>
  1618. </el-form-item>
  1619. <el-form-item label="整备质量">
  1620. <el-input v-model="carform.unladenMass" autocomplete="off"></el-input>
  1621. </el-form-item>
  1622. <el-form-item label="核定载质量">
  1623. <el-input v-model="carform.limitLoad" autocomplete="off"></el-input>
  1624. </el-form-item>
  1625. <el-form-item label="核定载客数">
  1626. <el-input v-model="carform.approvedPassengersCapacity" autocomplete="off"></el-input>
  1627. </el-form-item>
  1628. <el-form-item label="注册日期">
  1629. <el-input v-model="carform.registerDate" autocomplete="off"></el-input>
  1630. </el-form-item>
  1631. <el-form-item label="发证日期">
  1632. <el-input v-model="carform.issueDate" autocomplete="off"></el-input>
  1633. </el-form-item>
  1634. </el-form>
  1635. </div>
  1636. </div>
  1637. </el-row>
  1638. <span slot="footer" class="dialog-footer">
  1639. <el-button type="primary" @click="CarOCRdiscern()" size="small">识 别</el-button>
  1640. <el-button type="primary" @click="CarOCRconfirm()" size="small">确 认</el-button>
  1641. </span>
  1642. </el-dialog>
  1643. <el-dialog :visible.sync="uploaduserdialogVisible" width="960px" style="padding:10px 20px;box-sizing: border-box;"
  1644. @open="closeDialog(userIndex)">
  1645. <el-tabs v-model="activeName">
  1646. <el-tab-pane label="身份证识别" name="1">
  1647. <el-row :gutter="20">
  1648. <div class="bodys1">
  1649. <div>
  1650. <div class="flex">
  1651. <div class="OCR" style="text-align:center;">身份证主页</div>
  1652. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1653. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1654. :on-change="userfrontChange">
  1655. <img v-show="userfrontImg" :src="userfrontImg" style="width:100%;height:100%" />
  1656. <img v-show="!userfrontImg" src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1657. <span class="slot" v-show="userfrontImg" @click.stop>
  1658. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userfrontImg)"></i>
  1659. <i class="el-icon-delete" @click.stop="handleRemove('userfrontImg')"></i>
  1660. </span>
  1661. </el-upload>
  1662. </div>
  1663. </div>
  1664. <div class="flex">
  1665. <div class="OCR" style="text-align:center;">身份证副页</div>
  1666. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1667. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1668. :on-change="userbackChange">
  1669. <img v-show="userbackImg" :src="userbackImg" style="width:100%;height:100%" />
  1670. <img v-show="!userbackImg" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1671. <span class="slot" v-show="userbackImg" @click.stop>
  1672. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userbackImg)"></i>
  1673. <i class="el-icon-delete" @click.stop="handleRemove('userbackImg')"></i>
  1674. </span>
  1675. </el-upload>
  1676. </div>
  1677. </div>
  1678. </div>
  1679. <div style="text-align:center;">
  1680. <el-form :model="ownerInfoform" label-width="130px" size="small">
  1681. <el-form-item label="姓名">
  1682. <el-input v-model="ownerInfoform.name" autocomplete="off"></el-input>
  1683. </el-form-item>
  1684. <el-form-item label="性别">
  1685. <el-input v-model="ownerInfoform.gender" autocomplete="off"></el-input>
  1686. </el-form-item>
  1687. <el-form-item label="证件类型">
  1688. <el-input v-model="ownerInfoform.identifyType" autocomplete="off"></el-input>
  1689. </el-form-item>
  1690. <el-form-item label="证件号码">
  1691. <el-input v-model="ownerInfoform.identifyNumber" autocomplete="off"></el-input>
  1692. </el-form-item>
  1693. <el-form-item label="车主手机号">
  1694. <el-input v-model="ownerInfoform.mobile" autocomplete="off"></el-input>
  1695. </el-form-item>
  1696. <el-form-item label="地址">
  1697. <el-input v-model="ownerInfoform.addr" autocomplete="off"></el-input>
  1698. </el-form-item>
  1699. <el-form-item label="有效期起期">
  1700. <el-input disabled v-model="ownerInfoform.identifyValidDate" autocomplete="off"></el-input>
  1701. </el-form-item>
  1702. <el-form-item label="有效期止期">
  1703. <el-input disabled v-model="ownerInfoform.identifyValidEndDate" autocomplete="off"></el-input>
  1704. </el-form-item>
  1705. <el-form-item label="电子邮箱">
  1706. <el-input v-model="ownerInfoform.email" autocomplete="off"></el-input>
  1707. </el-form-item>
  1708. </el-form>
  1709. </div>
  1710. </div>
  1711. </el-row>
  1712. </el-tab-pane>
  1713. <el-tab-pane label="营业执照" name="2">
  1714. <el-row :gutter="20">
  1715. <div class="bodys1">
  1716. <div>
  1717. <div class="flex">
  1718. <div class="OCR" style="text-align:center;">营业执照</div>
  1719. <div style="text-align:center;margin: 20px;" @drop="reportDrop">
  1720. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  1721. :on-change="userfrontChange">
  1722. <img v-show="businessImg" :src="businessImg" style="width:100%;height:100%" />
  1723. <img v-show="!businessImg" src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1724. <span class="slot" v-show="businessImg" @click.stop>
  1725. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(businessImg)"></i>
  1726. <i class="el-icon-delete" @click.stop="handleRemove('businessImg')"></i>
  1727. </span>
  1728. </el-upload>
  1729. </div>
  1730. </div>
  1731. </div>
  1732. <div style="text-align:center;">
  1733. <el-form :model="ownerInfoform" label-width="130px" size="small">
  1734. <el-form-item label="单位名称">
  1735. <el-input autocomplete="off"></el-input>
  1736. </el-form-item>
  1737. <el-form-item label="法人">
  1738. <el-input autocomplete="off"></el-input>
  1739. </el-form-item>
  1740. <el-form-item label="社会信用代码">
  1741. <el-input autocomplete="off"></el-input>
  1742. </el-form-item>
  1743. <el-form-item label="地址">
  1744. <el-input autocomplete="off"></el-input>
  1745. </el-form-item>
  1746. <el-form-item label="经营范围">
  1747. <el-input autocomplete="off"></el-input>
  1748. </el-form-item>
  1749. <el-form-item label="注册资本">
  1750. <el-input autocomplete="off"></el-input>
  1751. </el-form-item>
  1752. </el-form>
  1753. </div>
  1754. </div>
  1755. </el-row>
  1756. </el-tab-pane>
  1757. </el-tabs>
  1758. <span slot="footer" class="dialog-footer">
  1759. <el-button type="primary" @click="userOCRdiscern()" size="small">识 别</el-button>
  1760. <el-button type="primary" @click="userOCRconfirm()" size="small">确 认</el-button>
  1761. </span>
  1762. </el-dialog>
  1763. <el-dialog :visible.sync="imageUploaddialogVisible" width="1070px">
  1764. <div slot="title" class="dialog-title">
  1765. <span>影像上传</span>
  1766. </div>
  1767. <el-row>
  1768. <el-col :span="3">
  1769. <div class="tab-style">
  1770. <li class="liMenu" :class="idx == tabLiIndex ? 'tabLi-style' : ''" @click="tabLiScroll(item.scroll, idx)"
  1771. v-for="(item, idx) in tabLimenu" :key="idx">{{ item.name }}</li>
  1772. </div>
  1773. </el-col>
  1774. <el-col :span="21" style="height:320px;overflow-y: auto;">
  1775. <div class="flex" id="vehicle">
  1776. <div class="aaa">
  1777. <span>1.行驶证主页</span>
  1778. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1779. :on-change="file => drivingupload(file, 'imageList1', 'imgList1', 'C01')" :file-list="imgList1"
  1780. ref="upload1" :class="{ styleB: imgList1.length == 1 }">
  1781. <img v-show="imgList1.length == 0" src="../../../../static/carfront.png" style="width:100%;height:100%" />
  1782. <div slot="file" slot-scope="{file}" v-if="imgList1.length > 0">
  1783. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1784. <span class="el-upload-list__item-actions">
  1785. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList1')">
  1786. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1787. <i class="el-icon-delete"></i>
  1788. </span>
  1789. </span>
  1790. </div>
  1791. </el-upload>
  1792. </div>
  1793. <div class="aaa">
  1794. <span>2.行驶证副页</span>
  1795. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1796. :on-change="file => drivingupload(file, 'imageList1', 'imgList2', 'D01')" :file-list="imgList2"
  1797. ref="upload2" :class="{ styleB: imgList2.length === 1 }">
  1798. <img v-show="imgList2.length == 0" src="../../../../static/carback.png" style="width:100%;height:100%" />
  1799. <div slot="file" slot-scope="{file}">
  1800. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1801. <span class="el-upload-list__item-actions">
  1802. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList2')">
  1803. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1804. <i class="el-icon-delete"></i>
  1805. </span>
  1806. </span>
  1807. </div>
  1808. </el-upload>
  1809. </div>
  1810. <div class="aaa">
  1811. <span>1.新车合格证</span>
  1812. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1813. :on-change="file => drivingupload(file, 'imageList5', 'imgList9', 'XC00')" :file-list="imgList9" multiple
  1814. ref="upload3" :class="{ styleB: imgList9.length === 1 }">
  1815. <img v-show="imgList9.length == 0" src="../../../../static/userfront.png"
  1816. style="width:100%;height:100%" />
  1817. <div slot="file" slot-scope="{file}">
  1818. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1819. <span class="el-upload-list__item-actions">
  1820. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList9')">
  1821. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1822. <i class="el-icon-delete"></i>
  1823. </span>
  1824. </span>
  1825. </div>
  1826. </el-upload>
  1827. </div>
  1828. <div class="aaa">
  1829. <span>2.购车发票</span>
  1830. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1831. :on-change="file => drivingupload(file, 'imageList5', 'imgList10', 'GC00')" :file-list="imgList10"
  1832. multiple ref="upload4" :class="{ styleB: imgList10.length === 1 }">
  1833. <img v-show="imgList10.length == 0" src="../../../../static/userfront.png"
  1834. style="width:100%;height:100%" />
  1835. <div slot="file" slot-scope="{file}">
  1836. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1837. <span class="el-upload-list__item-actions">
  1838. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList10')">
  1839. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1840. <i class="el-icon-delete"></i>
  1841. </span>
  1842. </span>
  1843. </div>
  1844. </el-upload>
  1845. </div>
  1846. </div>
  1847. <div class="flex" id="owner">
  1848. <div class="aaa">
  1849. <span>1.车主身份证(正面)</span>
  1850. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1851. :on-change="file => drivingupload(file, 'imageList2', 'imgList3', 'C02')" :file-list="imgList3" multiple
  1852. ref="upload3" :class="{ styleB: imgList3.length === 1 }">
  1853. <img v-show="imgList3.length == 0" src="../../../../static/userfront.png"
  1854. style="width:100%;height:100%" />
  1855. <div slot="file" slot-scope="{file}">
  1856. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1857. <span class="el-upload-list__item-actions">
  1858. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList3')">
  1859. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1860. <i class="el-icon-delete"></i>
  1861. </span>
  1862. </span>
  1863. </div>
  1864. </el-upload>
  1865. </div>
  1866. <div class="aaa">
  1867. <span>2.车主身份证(反面)</span>
  1868. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1869. :on-change="file => drivingupload(file, 'imageList2', 'imgList4', 'D02')" :file-list="imgList4" multiple
  1870. ref="upload4" :class="{ styleB: imgList4.length === 1 }">
  1871. <img v-show="imgList4.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1872. <div slot="file" slot-scope="{file}">
  1873. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1874. <span class="el-upload-list__item-actions">
  1875. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1876. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1877. <i class="el-icon-delete"></i>
  1878. </span>
  1879. </span>
  1880. </div>
  1881. </el-upload>
  1882. </div>
  1883. <div class="aaa">
  1884. <span>3.营业执照</span>
  1885. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1886. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1887. <div slot="file" slot-scope="{file}">
  1888. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1889. <span class="el-upload-list__item-actions">
  1890. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1891. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1892. <i class="el-icon-delete"></i>
  1893. </span>
  1894. </span>
  1895. </div>
  1896. </el-upload>
  1897. </div>
  1898. </div>
  1899. <div class="flex" id="applicant">
  1900. <div class="aaa">
  1901. <span>1.投保人身份证(正面)</span>
  1902. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1903. :on-change="file => drivingupload(file, 'imageList3', 'imgList5', 'C03')" :file-list="imgList5" multiple
  1904. ref="upload5" :class="{ styleB: imgList5.length === 1 }">
  1905. <img v-show="imgList5.length == 0" src="../../../../static/userfront.png"
  1906. style="width:100%;height:100%" />
  1907. <div slot="file" slot-scope="{file}">
  1908. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1909. <span class="el-upload-list__item-actions">
  1910. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList5')">
  1911. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1912. <i class="el-icon-delete"></i>
  1913. </span>
  1914. </span>
  1915. </div>
  1916. </el-upload>
  1917. </div>
  1918. <div class="aaa">
  1919. <span>2.投保人身份证(反面)</span>
  1920. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1921. :on-change="file => drivingupload(file, 'imageList3', 'imgList6', 'D03')" :file-list="imgList6" multiple
  1922. ref="upload6" :class="{ styleB: imgList6.length === 1 }">
  1923. <img v-show="imgList6.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1924. <div slot="file" slot-scope="{file}">
  1925. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1926. <span class="el-upload-list__item-actions">
  1927. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList6')">
  1928. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1929. <i class="el-icon-delete"></i>
  1930. </span>
  1931. </span>
  1932. </div>
  1933. </el-upload>
  1934. </div>
  1935. <div class="aaa">
  1936. <span>3.营业执照</span>
  1937. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1938. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1939. <div slot="file" slot-scope="{file}">
  1940. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1941. <span class="el-upload-list__item-actions">
  1942. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1943. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1944. <i class="el-icon-delete"></i>
  1945. </span>
  1946. </span>
  1947. </div>
  1948. </el-upload>
  1949. </div>
  1950. </div>
  1951. <div class="flex">
  1952. <div class="aaa">
  1953. <span id="insured">1.被保人身份证(正面)</span>
  1954. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1955. :on-change="file => drivingupload(file, 'imageList4', 'imgList7', 'C04')" :file-list="imgList7" multiple
  1956. ref="upload7" :class="{ styleB: imgList7.length === 1 }">
  1957. <img v-show="imgList7.length == 0" src="../../../../static/userfront.png"
  1958. style="width:100%;height:100%" />
  1959. <div slot="file" slot-scope="{file}">
  1960. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1961. <span class="el-upload-list__item-actions">
  1962. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList7')">
  1963. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1964. <i class="el-icon-delete"></i>
  1965. </span>
  1966. </span>
  1967. </div>
  1968. </el-upload>
  1969. </div>
  1970. <div class="aaa">
  1971. <span>2.被保人身份证(反面)</span>
  1972. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  1973. :on-change="file => drivingupload(file, 'imageList4', 'imgList8', 'D04')" :file-list="imgList8" multiple
  1974. ref="upload8" :class="{ styleB: imgList8.length === 1 }">
  1975. <img v-show="imgList8.length == 0" src="../../../../static/userback.png" style="width:100%;height:100%" />
  1976. <div slot="file" slot-scope="{file}">
  1977. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1978. <span class="el-upload-list__item-actions">
  1979. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList8')">
  1980. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1981. <i class="el-icon-delete"></i>
  1982. </span>
  1983. </span>
  1984. </div>
  1985. </el-upload>
  1986. </div>
  1987. <div class="aaa">
  1988. <span>3.营业执照</span>
  1989. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  1990. <img src="../../../../static/userfront.png" style="width:100%;height:100%" />
  1991. <div slot="file" slot-scope="{file}">
  1992. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  1993. <span class="el-upload-list__item-actions">
  1994. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  1995. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  1996. <i class="el-icon-delete"></i>
  1997. </span>
  1998. </span>
  1999. </div>
  2000. </el-upload>
  2001. </div>
  2002. </div>
  2003. <div class="flex" id="relationship">
  2004. <div class="aaa">
  2005. <span>1.关系证明</span>
  2006. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
  2007. :on-change="file => drivingupload(file, 'imageList5', 'imgList11', 'GX00')" :file-list="imgList11"
  2008. multiple ref="upload3" :class="{ styleB: imgList11.length === 1 }">
  2009. <img v-show="imgList11.length == 0" src="../../../../static/userfront.png"
  2010. style="width:100%;height:100%" />
  2011. <div slot="file" slot-scope="{file}">
  2012. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  2013. <span class="el-upload-list__item-actions">
  2014. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList11')">
  2015. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  2016. <i class="el-icon-delete"></i>
  2017. </span>
  2018. </span>
  2019. </div>
  2020. </el-upload>
  2021. </div>
  2022. </div>
  2023. </el-col>
  2024. </el-row>
  2025. <span slot="footer" class="dialog-footer">
  2026. <el-button size="small" @click="imageUploaddialogVisible = false">取 消</el-button>
  2027. <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
  2028. </span>
  2029. </el-dialog>
  2030. <div v-if="isLetter" class="flex j-c a-c" :class="{
  2031. 'footer': true,
  2032. 'shadow': !isBottom
  2033. }">
  2034. <el-button size="small" @click="add()">录下一单</el-button>
  2035. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  2036. </div>
  2037. <div v-else style="text-align: center">
  2038. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
  2039. </div>
  2040. <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter">
  2041. <div>
  2042. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" @click="handleScroll('Car')" />
  2043. </div>
  2044. <div>
  2045. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" @click="handleScroll('insurance')" />
  2046. </div>
  2047. <div>
  2048. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" @click="handleScroll('more')" />
  2049. </div>
  2050. <div>
  2051. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" @click="handleScroll('company')" />
  2052. </div>
  2053. </div>
  2054. <el-dialog title="核保信息" :visible.sync="underwritingdialogVisible" width="30%">
  2055. <div class="flex j-s f-c">
  2056. <div style="font-size: 18px;color: #D42426;font-weight:700;padding: 10px 30px;" v-if="orderstatus == '2'">
  2057. 订单状态:已核保待缴费</div>
  2058. </div>
  2059. <span slot="footer" class="dialog-footer" v-if="orderstatus == '2'">
  2060. <el-button style="width: 100px;" type="primary" size="small"
  2061. @click="Payment(companyId, queryOrders.inscompany)">缴费二维码</el-button>
  2062. </span>
  2063. </el-dialog>
  2064. <el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
  2065. <div class="flex a-c u-f-sa" v-if="renewalCodeJqImg">
  2066. <span>交强转保确认码</span>
  2067. <div class="flex a-c f-c">
  2068. <img :src="renewalCodeJqImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2069. <el-input v-model="renewalCodeJq" placeholder="请输入确认码" style="width: 150px"></el-input>
  2070. </div>
  2071. </div>
  2072. <div class="flex a-c u-f-sa" v-if="renewalCodeSyImg">
  2073. <span>商业转保确认码</span>
  2074. <div class="flex a-c f-c">
  2075. <img :src="renewalCodeSyImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2076. <el-input v-model="renewalCodeSy" placeholder="请输入确认码" style="width: 150px"></el-input>
  2077. </div>
  2078. </div>
  2079. <span slot="footer" class="dialog-footer">
  2080. <el-button size="small" @click="renewalCodedialogVisible = false">取 消</el-button>
  2081. <el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
  2082. </span>
  2083. </el-dialog>
  2084. <el-dialog :title="contributingState ? '选择特约' : '提交核保'" :visible.sync="hbsubmitdialogVisible" width="1200px">
  2085. <div style="margin-bottom: 20px;font-weight: bold;">特约选择</div>
  2086. <el-table size="small" :data="zijinengageListData" border v-loading="contributingLoading"
  2087. @select="zijinengageChange" @select-all="zijinengageChangeAll" ref="expandTablePro" highlight-current-row
  2088. @cell-dblclick="zijincellDblclick" :cell-class-name="tableCellClassName"
  2089. :header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
  2090. <el-table-column type="selection" width="55"></el-table-column>
  2091. <el-table-column prop="clauseCode" :width="80" label="特约代码" align="center"></el-table-column>
  2092. <el-table-column v-if="contributingState" :width="100" prop="riskName" label="特约险种"
  2093. align="center"></el-table-column>
  2094. <el-table-column prop="clauseName" label="特约名称" align="center"></el-table-column>
  2095. <el-table-column prop="clauseContent" label="特约内容">
  2096. <template slot-scope="scope">
  2097. <el-input @blur="hideInput" size="small" type="textarea" :ref="scope.row.index + ',' + scope.column.index"
  2098. v-model="scope.row.clauseContent"
  2099. v-if="scope.row.index + ',' + scope.column.index == currentCell && scope.row.modifyFlag == '1'"></el-input>
  2100. <span v-else>{{ scope.row.clauseContent }}</span>
  2101. </template>
  2102. </el-table-column>
  2103. </el-table>
  2104. <span slot="footer" class="dialog-footer">
  2105. <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
  2106. <el-button v-if="contributingState" size="small" type="primary"
  2107. @click="hbsubmitdialogVisible = false">确定</el-button>
  2108. <el-button v-else size="small" type="primary" @click="hbsubmit">提交核保</el-button>
  2109. </span>
  2110. </el-dialog>
  2111. <!-- 报价单 -->
  2112. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  2113. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  2114. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
  2115. <el-dialog :visible.sync="redictInfodialogVisible" width="70%">
  2116. <el-table :data="redictInfoMsg" style="width: 100%">
  2117. <el-table-column prop="description" label="审核意见"></el-table-column>
  2118. <el-table-column prop="opinion" label="备注"></el-table-column>
  2119. </el-table>
  2120. </el-dialog>
  2121. </div>
  2122. </template>
  2123. <script>
  2124. let _self;
  2125. import QRCode from "qrcodejs2";
  2126. import Cookies from "js-cookie";
  2127. import CommonUtil from "@/utils/comutil.js";
  2128. import {
  2129. getAgeByIdCard,
  2130. searchkey,
  2131. addressCode,
  2132. getGenderByIdCard
  2133. } from "@/utils/validate.js";
  2134. import citydata from "@/assets/js/citydata.js";
  2135. // import yongchengData from '../../assets/js/yongchengData';
  2136. import { regionData, codeToText } from "element-china-area-data";
  2137. import { base64ToPath } from "@/common/image-tools-base64.js";
  2138. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  2139. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  2140. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  2141. export default {
  2142. inject: ["reload"],
  2143. name: "qrCode",
  2144. data() {
  2145. var checkpurchasePrice = (rule, value, callback) => {
  2146. if (!value) {
  2147. callback(new Error("新车购置价不能为空"));
  2148. } else if (value == 0) {
  2149. callback(new Error("新车购置价不能为零"));
  2150. } else {
  2151. callback();
  2152. }
  2153. };
  2154. var checkframeNo = (rule, value, callback) => {
  2155. if (value.length < 17) {
  2156. callback(new Error("车架号不足17位"));
  2157. } else if (
  2158. value.indexOf("I") != "-1" ||
  2159. value.indexOf("O") != "-1" ||
  2160. value.indexOf("Q") != "-1"
  2161. ) {
  2162. callback(new Error("车架号不能包含(I O Q)三个字母"));
  2163. } else {
  2164. callback();
  2165. }
  2166. };
  2167. var carPhoneValid = (rule, value, callback) => {
  2168. const plateNumber = /^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1})$/;
  2169. if (!value) {
  2170. callback(new Error("请输入车牌号"));
  2171. } else if (plateNumber.test(value)) {
  2172. callback();
  2173. } else {
  2174. callback(new Error("请输入正确的车牌号"));
  2175. }
  2176. };
  2177. return {
  2178. watermarkedImage: '',
  2179. redictInfoMsg: [],
  2180. redictInfodialogVisible: false,
  2181. qrcodeWidth: "180",
  2182. qrcodeHeight: "180",
  2183. activeName: "1",
  2184. isTaxSourceModel: "",
  2185. tabLiIndex: 0,
  2186. tabLimenu: [
  2187. {
  2188. name: "车辆信息",
  2189. scroll: "vehicle"
  2190. },
  2191. {
  2192. name: "车主信息",
  2193. scroll: "owner"
  2194. },
  2195. {
  2196. name: "投保人信息",
  2197. scroll: "applicant"
  2198. },
  2199. {
  2200. name: "被保人信息",
  2201. scroll: "insured"
  2202. },
  2203. {
  2204. name: "关系证明",
  2205. scroll: "relationship"
  2206. }
  2207. ],
  2208. packageValue: "",
  2209. packageOptions: [],
  2210. zhongmeitemplateSelection: "", //中煤驾意险产品选中值
  2211. zhongmeiInsuranceData: [], //中煤驾意险产品列表数据
  2212. zhongmeiInsuranceDataTable: [], //中煤驾意险产品明细方案数据
  2213. zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
  2214. currentCell: null,
  2215. feeDetailInfo: [], //费用明细信息
  2216. immediatelyValue: false,
  2217. isRetractZJ: false,
  2218. isRetractHB: false,
  2219. isRetractZM: false,
  2220. isRetractASTP: false,
  2221. isRetractZA: false,
  2222. isRetractYC: false,
  2223. isRetractRS: false,
  2224. anshengInsurancetype: "",
  2225. iscCrownerShow: false,
  2226. isApplicantShow: false,
  2227. isInsuredShow: false,
  2228. formInline: {},
  2229. anshengtemplateSelection: "", //安盛
  2230. anshengInsuranceData: [], //安盛驾意险
  2231. anshengInsuranceDataTable: [], //安盛驾意险
  2232. anshengaccidentalDrivingVo: {}, //安盛驾意险
  2233. hengbangtemplateSelection: "", //恒邦
  2234. hengbangInsuranceData: [], //恒邦驾意险
  2235. hengbangInsuranceDataTable: [],
  2236. hengbangaccidentalDrivingVo: {}, //恒邦驾意险
  2237. insuranceHN: "", //华农
  2238. huanongInsuranceData: [], //华农驾意险
  2239. huanongInsuranceDataTable: [],
  2240. huanongaccidentalDrivingVo: {}, //华农驾意险
  2241. renshouaccidentalDrivingVo: {}, //人寿意外险
  2242. renshouInsuranceData: [], //-人寿意外险list
  2243. ziJinInsuranceData: [], //-紫金意外险list
  2244. zhonganInsuranceData: [], //众安驾意险
  2245. zhonganaccidentalDrivingVo: {}, //众安驾意险
  2246. zijinInsuranceDataTable: [],
  2247. zijintemplateSelection: "",
  2248. accidentalDrivingVo: [], //-紫金意外险传参
  2249. zijinengageListData: [], //紫金特约
  2250. zijinengageList: [], //紫金特约
  2251. // ------------紫金意外险
  2252. renshoutemplateSelection: "", //人寿
  2253. renshouInsuranceDataTable: [],
  2254. zhongantemplateSelection: "", //众安
  2255. zhonganInsuranceDataTable: [],
  2256. taipingtemplateSelection: "", //太平
  2257. taipingInsuranceData: [], //太平驾意险
  2258. TPDrivingChangeInsuranceData: [],
  2259. taipingaccidentalDrivingVo: {}, //太平驾意险
  2260. licenseplate: true,
  2261. calculateLoading: false, //保费计算按钮 节流
  2262. accidentForm: {
  2263. quantity: "1",
  2264. sumPremium: 0
  2265. }, //永诚意外险内容
  2266. accidentFormHN: {
  2267. allQuantity: "1",
  2268. quantity:'1'
  2269. }, //华农意外险内容
  2270. accidentDataList: [], //永诚意外险
  2271. yongchengtemplateSelection:'',
  2272. guoRenaccidentDataList: [], //国任意外险
  2273. guoRenInsuranceDataTable: [],
  2274. guoRenaccidentDataListChild: [],
  2275. guoRenaccidentalDrivingVo: {}, //国任驾意险
  2276. dajiatemplateSelection: "",
  2277. dajiaInsuranceData: [], //大家意外险
  2278. dajiaInsuranceDataTable: [],
  2279. dajiaaccidentalDrivingVo: {},
  2280. yongchengInsuranceDataTable: [],
  2281. guoRenaccidentLoading: false,
  2282. contributingLoading: false,
  2283. guoRenaccidentPremium: "",
  2284. guoRenaccidentForm: {
  2285. quantity: "1",
  2286. sumPremium: 0
  2287. }, //国任意外险内容
  2288. accidentFormZM: {
  2289. quantity: "1",
  2290. sumPremium: 0
  2291. }, //中煤意外险内容
  2292. boHaiaccidentDataList: [], //渤海意外险
  2293. boHaiaccidentForm: {
  2294. copies: "1",
  2295. policyNum: 0
  2296. },
  2297. accidentLoadingbh: false,
  2298. bohaiInsuranceDataTable: [],
  2299. accidentPremium: "",
  2300. accidentPremiumZM: "",
  2301. contributingState: false, //是否为国任特约
  2302. pickerOptions: {
  2303. disabledDate(time) {
  2304. //若选择的日期小于当前日期(包含今天)
  2305. return time.getTime() > Date.now();
  2306. //若选择的日期大于当前日期(不包含今天): time.getTime() < Date.now()
  2307. //若选择的日期小于当前日期(不包含今天): time.getTime() > Date.now() - 8.64e7
  2308. //若选择的日期小于等于当前日期(包含今天): time.getTime() > Date.now()
  2309. }
  2310. },
  2311. attributionform: {
  2312. //续保查询数据
  2313. configure: [],
  2314. companyId: ""
  2315. },
  2316. continuousAction: [], //续保配置项
  2317. //永诚转保确认码
  2318. cqryCdeJq: "",
  2319. cqryCdeSy: "",
  2320. renewalCodeJq: "", //交强确认码
  2321. renewalCodeSy: "", //商业确认码
  2322. renewalCodeJqImg: "", //交强图片
  2323. renewalCodeSyImg: "", //商业图片
  2324. //-----------------
  2325. showViewer: false,
  2326. transferDateShow: false, //转移登记日期
  2327. yonganchecked: false, //永安驾意险
  2328. renbaochecked: false, //人保驾意险
  2329. zhongmeichecked: false, //中煤驾意险
  2330. hengbangchecked: false, //恒邦驾意险
  2331. yongchengchecked: false, //永诚驾意险
  2332. yonganDrivinglist: [],
  2333. renbaoDrivinglist: [],
  2334. zhongmeiDrivinglist: [],
  2335. hengbangDrivinglist: [],
  2336. yongchengDrivinglist: [],
  2337. tbczcarShow: true, //投保人同车主
  2338. bbczcarShow: false, //被保人同车主
  2339. bbtbcarShow: true, //被保人同投保人
  2340. imageUploadShow: true, //上传影像显示
  2341. ProViewImg: "", //预览图片
  2342. carfrontImg: "", //行驶证正面
  2343. carbackImg: "", //行驶证背面
  2344. userfrontImg: "", //身份证正面
  2345. userbackImg: "", //身份证背面
  2346. businessImg: "",
  2347. CarFrontFile: "", //车正面文件流
  2348. CarBackFile: "", //车背面文件流
  2349. C02File: "",
  2350. D02File: "",
  2351. C03File: "",
  2352. D03File: "",
  2353. C04File: "",
  2354. D04File: "",
  2355. userIndex: 1, //区分三种人员
  2356. TabName: "car", //默认选项卡
  2357. value1: "",
  2358. chexingdialogVisible: false, //车型选择 显示/隐藏
  2359. sbdmdialogVisible: false, //车型车辆识别代码选择 显示/隐藏
  2360. codedialogVisible: false, //二维码 显示/隐藏
  2361. codedialogVisiblePro: false,
  2362. uploadcardialogVisible: false, //行驶证识别 显示/隐藏
  2363. uploaduserdialogVisible: false, //身份证识别 显示/隐藏
  2364. imageUploaddialogVisible: false, //影像上传 显示/隐藏
  2365. underwritingdialogVisible: false, //核保信息 显示/隐藏
  2366. renewalCodedialogVisible: false, //转保确认码输入
  2367. hbsubmitdialogVisible: false, //核保弹框
  2368. Carinsurance: {
  2369. jqinsurance: "1", //交强险
  2370. syinsurance: "1" //商业险
  2371. },
  2372. jqchecked: true,
  2373. sychecked: false,
  2374. jqstartDate: "", //交强时间
  2375. jqendDate: "", //交强时间
  2376. systartDate: "", //商业时间
  2377. syendDate: "", //商业时间
  2378. loading: false, //加载事件
  2379. reslist: [], //车型列表
  2380. userId: "", //出单工号
  2381. carInfo: {
  2382. powerScale: "", ///功率
  2383. licenseNo: "", //车牌号
  2384. brandName: "", //车辆品牌型号
  2385. vinNo: "", //车架号
  2386. engineNo: "", //发动机号
  2387. modelCode: "", //车型编码
  2388. seatCount: null, //核定载客量 核定载人数
  2389. purchasePrice: null, //新车购置价最低,行业实际价值,协商价值
  2390. carBrand: "", //车型品牌
  2391. ciCarName: "", //行业车型名称
  2392. ciModelCode: "", //行业车型编码
  2393. completeKerbMass: "", //整备质量
  2394. exhaustScale: "", //排量
  2395. factory: "", //工厂名称
  2396. factoryid: "", //工厂编码
  2397. frameNo: "", //车架号
  2398. licenseTypeCode: "02", //号牌种类
  2399. vehicleclass: "", //车辆类型
  2400. familyName: "", //车型
  2401. modelcname: "", //车型名称
  2402. powertypecode: "", //燃料类型编码
  2403. vehicleweight: "", //总质量
  2404. limitLoad: "", //核定载质量
  2405. caryear: null, //年款
  2406. cimodelclass: "A0", //车辆种类
  2407. energyType: "0", //能源类型
  2408. enginedesc: "", //排量
  2409. registerDate: "", //注册日期
  2410. issueDate: "", //发证日期
  2411. transferFlag: 0, //过户标志
  2412. transferFlagBi: false, //商业险是否过户
  2413. transferDate: "", //过户日期
  2414. loanStatus: 0, //贷款标志
  2415. firstBeneMan: "", //第一受益人
  2416. noLicenseFlag: false, //是否新车
  2417. cartype: "", //客车A0 货车H0
  2418. carnature: "02", //使用性质
  2419. vehicleUse: "05",
  2420. property: "1" //所属性质 1个人 2企业 3个人
  2421. },
  2422. carform: {
  2423. carOwner: "", //车主
  2424. licenseNo: "", //车牌号
  2425. modelcname: "", //车辆品牌型号
  2426. frameNo: "", //车架号
  2427. engineNo: "", //发动机号
  2428. registerDate: "", //注册日期
  2429. issueDate: "", //发证日期
  2430. grossMass: "", //总质量
  2431. unladenMass: "", //整备质量
  2432. limitLoad: "", //核定载质量
  2433. approvedPassengersCapacity: "" //核定载客数
  2434. },
  2435. ownerInfoform: {
  2436. name: "",
  2437. identifyType: "",
  2438. identifyNumber: "",
  2439. age: "", //年龄
  2440. gender: "", //性别
  2441. addr: "",
  2442. email: "",
  2443. mobile: "",
  2444. identifyValidDate: "", //有效期起期
  2445. identifyValidEndDate: "" //有效期止期
  2446. // province: "",//省
  2447. // city: "",//市
  2448. // county: "",//县
  2449. },
  2450. riskList: [], //险种大类信息
  2451. kindList: [], //商业险险别
  2452. ownerInfo: {
  2453. //车主
  2454. name: "", //姓名
  2455. identifyType: "01", //身份证类型
  2456. identifyNumber: "", //身份证号
  2457. age: "", //年龄
  2458. gender: "", //性别
  2459. addr: "", //地址
  2460. email: "", //邮箱
  2461. mobile: "", //电话
  2462. identifyValidDate: "", //有效期起期
  2463. identifyValidEndDate: "", //有效期止期
  2464. // province: "",//省
  2465. // city: "",//市
  2466. // county: "",//县
  2467. provinceData: [] //省市区
  2468. },
  2469. policyHolderInfo: {
  2470. //投保人
  2471. name: "", //姓名
  2472. identifyType: "01", //身份证类型
  2473. identifyNumber: "", //身份证号
  2474. age: "", //年龄
  2475. gender: "", //性别
  2476. addr: "", //地址
  2477. email: "", //邮箱
  2478. mobile: "", //电话
  2479. identifyValidDate: "", //有效期起期
  2480. identifyValidEndDate: "", //有效期止期
  2481. // province: "",//省
  2482. // city: "",//市
  2483. // county: "",//县
  2484. provinceData: [] //省市区
  2485. },
  2486. insuredPersonInfo: {
  2487. //被保人
  2488. name: "", //姓名
  2489. identifyType: "01", //身份证类型
  2490. identifyNumber: "", //身份证号
  2491. age: "", //年龄
  2492. gender: "", //性别
  2493. addr: "", //地址
  2494. email: "", //邮箱
  2495. mobile: "", //电话
  2496. identifyValidDate: "", //有效期起期
  2497. identifyValidEndDate: "", //有效期止期
  2498. provinceData: [] //省市区
  2499. // province: "",//省
  2500. // city: "",//市
  2501. // county: "",//县
  2502. },
  2503. //车船税form
  2504. vehicleAndVesselTaxForm: {
  2505. taxRelifFlag: "1", //类型
  2506. identifyNumber: "", //纳税人识别号
  2507. taxpayerIdentifier: "01", //纳税人证件类型
  2508. taxpayerName: "", //纳税人名称
  2509. extendChar2: "", //减免税凭证号
  2510. paidFreeCertificate: "", //完税凭证号
  2511. relifReason: "", //减免税原因
  2512. taxComCode: "", //税务机关代码
  2513. taxComName: "", ///税务机关名称
  2514. taxDocumentDate: "", //完税日期
  2515. taxPaidAreaCode: "", //完税凭证地区代码
  2516. taxRelief: "" //减税比例
  2517. },
  2518. //车辆用途列表
  2519. vehicleList: [],
  2520. //能源种类列表
  2521. rules: {
  2522. extendChar2: [
  2523. { required: true, message: "请输入减免税凭证号", trigger: "blur" }
  2524. ],
  2525. paidFreeCertificate: [
  2526. { required: true, message: "请输入完税凭证号", trigger: "blur" }
  2527. ],
  2528. relifReason: [
  2529. { required: true, message: "请输入减免税原因", trigger: "blur" }
  2530. ],
  2531. taxComCode: [
  2532. { required: true, message: "请输入税务机关代码", trigger: "blur" }
  2533. ],
  2534. taxComName: [
  2535. { required: true, message: "请输入税务机关名称", trigger: "blur" }
  2536. ],
  2537. taxDocumentDate: [
  2538. { required: true, message: "请输入完税日期", trigger: "blur" }
  2539. ],
  2540. taxPaidAreaCode: [
  2541. { required: true, message: "请选择完税地区", trigger: "blur" }
  2542. ],
  2543. taxRelief: [
  2544. { required: true, message: "请输入减税比例", trigger: "blur" }
  2545. ],
  2546. taxpayerName: [
  2547. { required: true, message: "请输入纳税人名称", trigger: "blur" }
  2548. ],
  2549. taxpayerIdentifier: [
  2550. { required: true, message: "请选择证件类型", trigger: "blur" }
  2551. ],
  2552. taxRelifFlag: [
  2553. { required: true, message: "请选择纳税类型", trigger: "blur" }
  2554. ],
  2555. energyType: [
  2556. { required: true, message: "请选择能源种类", trigger: "blur" }
  2557. ],
  2558. cimodelclass: [
  2559. { required: true, message: "请选择车辆种类", trigger: "blur" }
  2560. ],
  2561. carnature: [
  2562. { required: true, message: "请选择使用性质", trigger: "blur" }
  2563. ],
  2564. cartype: [
  2565. { required: true, message: "请选择车辆类型", trigger: "blur" }
  2566. ],
  2567. vehicleUse: [
  2568. { required: true, message: "请选择车辆用途", trigger: "blur" }
  2569. ],
  2570. brandName: [
  2571. { required: true, message: "请填写品牌型号", trigger: "blur" }
  2572. ],
  2573. licenseNo: [
  2574. { max: 8, message: "最多八个字符", trigger: "blur" },
  2575. { required: true, validator: carPhoneValid, trigger: "blur" }
  2576. ],
  2577. frameNo: [{ validator: checkframeNo, trigger: "blur" }],
  2578. engineNo: [
  2579. { required: true, message: "请填写发动机号", trigger: "blur" }
  2580. ],
  2581. purchasePrice: [
  2582. { required: true, validator: checkpurchasePrice, trigger: "blur" }
  2583. ],
  2584. registerDate: [
  2585. { required: true, message: "请选择注册时间", trigger: "blur" }
  2586. ],
  2587. issueDate: [
  2588. { required: true, message: "请选择发证日期", trigger: "blur" }
  2589. ],
  2590. transferDate: [
  2591. { required: true, message: "请选择转移登记日期", trigger: "blur" }
  2592. ],
  2593. seatCount: [
  2594. { required: true, message: "请输入座位数", trigger: "blur" }
  2595. ],
  2596. completeKerbMass: [
  2597. { required: true, message: "请输入整备质量", trigger: "blur" }
  2598. ],
  2599. name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
  2600. // identifyNumber: [
  2601. // { required: true, message: "请填写证件号", trigger: "blur" },
  2602. // { min: 18, max: 18, message: "长度在18个字符", trigger: "blur" },
  2603. // {
  2604. // pattern: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9xX]$/,
  2605. // message: "请输入正确的证件号",
  2606. // trigger: "blur"
  2607. // }
  2608. // ],
  2609. identifyValidDate: [
  2610. { required: true, message: "请选择起期", trigger: "blur" }
  2611. ],
  2612. identifyValidEndDate: [
  2613. { required: true, message: "请选择止期", trigger: "blur" }
  2614. ],
  2615. addr: [
  2616. { required: true, message: "请填写地址", trigger: "blur" },
  2617. { min: 8, message: "最少8个字符", trigger: "blur" }
  2618. ],
  2619. mobile: [
  2620. { required: true, message: "请填写手机号", trigger: "blur" },
  2621. { min: 11, max: 11, message: "长度在11个字符", trigger: "blur" },
  2622. {
  2623. pattern: /^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\d{8}$/,
  2624. message: "请输入正确的手机号",
  2625. trigger: "blur"
  2626. }
  2627. ],
  2628. email: [
  2629. { min: 10, max: 20, message: "最少10个字符", trigger: "blur" },
  2630. {
  2631. pattern: /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
  2632. message: "请输入正确的邮箱",
  2633. trigger: "blur"
  2634. }
  2635. ]
  2636. },
  2637. CIInsureList: {
  2638. //交强险
  2639. amount: "1",
  2640. amountDesc: "投保",
  2641. amtList: [
  2642. {
  2643. label: "不投保",
  2644. value: "0"
  2645. },
  2646. {
  2647. label: "投保",
  2648. value: "1"
  2649. }
  2650. ],
  2651. kindCode: "0507",
  2652. kindName: "交强险",
  2653. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  2654. },
  2655. BIInsureList: {
  2656. //商业险
  2657. amount: "0",
  2658. amountDesc: "投保",
  2659. amtList: [
  2660. {
  2661. label: "不投保",
  2662. value: "0"
  2663. },
  2664. {
  2665. label: "投保",
  2666. value: "1"
  2667. }
  2668. ],
  2669. kindCode: "0510",
  2670. kindName: "商业险",
  2671. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
  2672. },
  2673. insureList: [
  2674. {
  2675. amount: "0",
  2676. amountDesc: "投保",
  2677. coveragePremium: 0,
  2678. amtList: [
  2679. {
  2680. label: "不投保",
  2681. value: "0"
  2682. },
  2683. {
  2684. label: "投保",
  2685. value: "1"
  2686. }
  2687. ],
  2688. kindCode: "A",
  2689. isMainRisk: true,
  2690. kindName: "机动车损失险",
  2691. desc:
  2692. "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。"
  2693. },
  2694. {
  2695. amount: "0",
  2696. amountDesc: "不投保",
  2697. coveragePremium: 0,
  2698. amtList: [
  2699. {
  2700. label: "不投保",
  2701. value: "0"
  2702. },
  2703. {
  2704. label: "10万",
  2705. value: "100000"
  2706. },
  2707. {
  2708. label: "15万",
  2709. value: "150000"
  2710. },
  2711. {
  2712. label: "20万",
  2713. value: "200000"
  2714. },
  2715. {
  2716. label: "30万",
  2717. value: "300000"
  2718. },
  2719. {
  2720. label: "50万",
  2721. value: "500000"
  2722. },
  2723. {
  2724. label: "100万",
  2725. value: "1000000"
  2726. },
  2727. {
  2728. label: "150万",
  2729. value: "1500000"
  2730. },
  2731. {
  2732. label: "200万",
  2733. value: "2000000"
  2734. },
  2735. {
  2736. label: "250万",
  2737. value: "2500000"
  2738. },
  2739. {
  2740. label: "300万",
  2741. value: "3000000"
  2742. },
  2743. {
  2744. label: "400万",
  2745. value: "4000000"
  2746. },
  2747. {
  2748. label: "500万",
  2749. value: "5000000"
  2750. },
  2751. {
  2752. label: "600万",
  2753. value: "6000000"
  2754. },
  2755. {
  2756. label: "800万",
  2757. value: "8000000"
  2758. },
  2759. {
  2760. label: "1000万",
  2761. value: "10000000"
  2762. }
  2763. ],
  2764. kindCode: "B",
  2765. isMainRisk: true,
  2766. kindName: "第三者责任险",
  2767. desc:
  2768. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。"
  2769. },
  2770. {
  2771. amount: "0",
  2772. amountDesc: "1万",
  2773. coveragePremium: 0,
  2774. amtList: [
  2775. {
  2776. label: "不投保",
  2777. value: "0"
  2778. },
  2779. {
  2780. label: "1万",
  2781. value: "10000"
  2782. },
  2783. {
  2784. label: "2万",
  2785. value: "20000"
  2786. },
  2787. {
  2788. label: "3万",
  2789. value: "30000"
  2790. },
  2791. {
  2792. label: "4万",
  2793. value: "40000"
  2794. },
  2795. {
  2796. label: "5万",
  2797. value: "50000"
  2798. },
  2799. {
  2800. label: "6万",
  2801. value: "60000"
  2802. },
  2803. {
  2804. label: "7万",
  2805. value: "70000"
  2806. },
  2807. {
  2808. label: "8万",
  2809. value: "80000"
  2810. },
  2811. {
  2812. label: "9万",
  2813. value: "90000"
  2814. },
  2815. {
  2816. label: "10万",
  2817. value: "100000"
  2818. },
  2819. {
  2820. label: "15万",
  2821. value: "150000"
  2822. },
  2823. {
  2824. label: "20万",
  2825. value: "200000"
  2826. },
  2827. {
  2828. label: "25万",
  2829. value: "250000"
  2830. },
  2831. {
  2832. label: "30万",
  2833. value: "300000"
  2834. },
  2835. {
  2836. label: "35万",
  2837. value: "350000"
  2838. },
  2839. {
  2840. label: "40万",
  2841. value: "400000"
  2842. },
  2843. {
  2844. label: "45万",
  2845. value: "450000"
  2846. },
  2847. {
  2848. label: "50万",
  2849. value: "500000"
  2850. }
  2851. ],
  2852. kindCode: "D3",
  2853. isMainRisk: true,
  2854. kindName: "司机责任险",
  2855. desc:
  2856. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  2857. },
  2858. {
  2859. amount: "0",
  2860. amountDesc: "1万",
  2861. coveragePremium: 0,
  2862. amtList: [
  2863. {
  2864. label: "不投保",
  2865. value: "0"
  2866. },
  2867. {
  2868. label: "1万",
  2869. value: "10000"
  2870. },
  2871. {
  2872. label: "2万",
  2873. value: "20000"
  2874. },
  2875. {
  2876. label: "3万",
  2877. value: "30000"
  2878. },
  2879. {
  2880. label: "4万",
  2881. value: "40000"
  2882. },
  2883. {
  2884. label: "5万",
  2885. value: "50000"
  2886. },
  2887. {
  2888. label: "6万",
  2889. value: "60000"
  2890. },
  2891. {
  2892. label: "7万",
  2893. value: "70000"
  2894. },
  2895. {
  2896. label: "8万",
  2897. value: "80000"
  2898. },
  2899. {
  2900. label: "9万",
  2901. value: "90000"
  2902. },
  2903. {
  2904. label: "10万",
  2905. value: "100000"
  2906. },
  2907. {
  2908. label: "15万",
  2909. value: "150000"
  2910. },
  2911. {
  2912. label: "20万",
  2913. value: "200000"
  2914. },
  2915. {
  2916. label: "25万",
  2917. value: "250000"
  2918. },
  2919. {
  2920. label: "30万",
  2921. value: "300000"
  2922. },
  2923. {
  2924. label: "35万",
  2925. value: "350000"
  2926. },
  2927. {
  2928. label: "40万",
  2929. value: "400000"
  2930. },
  2931. {
  2932. label: "45万",
  2933. value: "450000"
  2934. },
  2935. {
  2936. label: "50万",
  2937. value: "500000"
  2938. }
  2939. ],
  2940. kindCode: "D4",
  2941. isMainRisk: true,
  2942. kindName: "乘客责任险",
  2943. desc:
  2944. "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  2945. },
  2946. {
  2947. amount: "0",
  2948. amountDesc: "不投保",
  2949. coveragePremium: 0,
  2950. amtList: [
  2951. {
  2952. label: "不投保",
  2953. value: "0"
  2954. },
  2955. {
  2956. label: "2千",
  2957. value: "2000"
  2958. },
  2959. {
  2960. label: "5千",
  2961. value: "5000"
  2962. },
  2963. {
  2964. label: "1万",
  2965. value: "10000"
  2966. },
  2967. {
  2968. label: "2万",
  2969. value: "20000"
  2970. }
  2971. ],
  2972. desc:
  2973. "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
  2974. isMainRisk: false,
  2975. kindCode: "L",
  2976. kindName: "车身划痕险",
  2977. mainRiskCodeList: "A"
  2978. },
  2979. {
  2980. amount: "0",
  2981. amountDesc: "不投保",
  2982. coveragePremium: 0,
  2983. amtList: [
  2984. {
  2985. label: "不投保",
  2986. value: "0"
  2987. },
  2988. {
  2989. label: "5%",
  2990. value: "5"
  2991. },
  2992. {
  2993. label: "10%",
  2994. value: "10"
  2995. },
  2996. {
  2997. label: "15%",
  2998. value: "15"
  2999. },
  3000. {
  3001. label: "20%",
  3002. value: "20"
  3003. }
  3004. ],
  3005. desc:
  3006. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3007. isMainRisk: false,
  3008. kindCode: "MJ1",
  3009. kindName: "绝对免赔率特约险(车损)",
  3010. mainRiskCodeList: "A"
  3011. },
  3012. {
  3013. amount: "0",
  3014. amountDesc: "不投保",
  3015. coveragePremium: 0,
  3016. amtList: [
  3017. {
  3018. label: "不投保",
  3019. value: "0"
  3020. },
  3021. {
  3022. label: "5%",
  3023. value: "5"
  3024. },
  3025. {
  3026. label: "10%",
  3027. value: "10"
  3028. },
  3029. {
  3030. label: "15%",
  3031. value: "15"
  3032. },
  3033. {
  3034. label: "20%",
  3035. value: "20"
  3036. }
  3037. ],
  3038. desc:
  3039. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3040. isMainRisk: false,
  3041. kindCode: "MJ2",
  3042. kindName: "绝对免赔率特约险(三者)",
  3043. mainRiskCodeList: "B"
  3044. },
  3045. {
  3046. amount: "0",
  3047. amountDesc: "不投保",
  3048. coveragePremium: 0,
  3049. amtList: [
  3050. {
  3051. label: "不投保",
  3052. value: "0"
  3053. },
  3054. {
  3055. label: "5%",
  3056. value: "5"
  3057. },
  3058. {
  3059. label: "10%",
  3060. value: "10"
  3061. },
  3062. {
  3063. label: "15%",
  3064. value: "15"
  3065. },
  3066. {
  3067. label: "20%",
  3068. value: "20"
  3069. }
  3070. ],
  3071. desc:
  3072. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3073. isMainRisk: false,
  3074. kindCode: "MJ3",
  3075. kindName: "绝对免赔率特约险(司机)",
  3076. mainRiskCodeList: "D3"
  3077. },
  3078. {
  3079. amount: "0",
  3080. amountDesc: "不投保",
  3081. coveragePremium: 0,
  3082. amtList: [
  3083. {
  3084. label: "不投保",
  3085. value: "0"
  3086. },
  3087. {
  3088. label: "5%",
  3089. value: "5"
  3090. },
  3091. {
  3092. label: "10%",
  3093. value: "10"
  3094. },
  3095. {
  3096. label: "15%",
  3097. value: "15"
  3098. },
  3099. {
  3100. label: "20%",
  3101. value: "20"
  3102. }
  3103. ],
  3104. desc:
  3105. "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  3106. isMainRisk: false,
  3107. kindCode: "MJ4",
  3108. kindName: "绝对免赔率特约险(乘客)",
  3109. mainRiskCodeList: "D4"
  3110. },
  3111. {
  3112. amount: "0",
  3113. amountDesc: "不投保",
  3114. coveragePremium: 0,
  3115. amtList: [
  3116. {
  3117. label: "不投保",
  3118. value: "0"
  3119. },
  3120. {
  3121. label: "1万",
  3122. value: "10000"
  3123. },
  3124. {
  3125. label: "2万",
  3126. value: "20000"
  3127. },
  3128. {
  3129. label: "4万",
  3130. value: "40000"
  3131. },
  3132. {
  3133. label: "5万",
  3134. value: "50000"
  3135. },
  3136. {
  3137. label: "8万",
  3138. value: "80000"
  3139. },
  3140. {
  3141. label: "10万",
  3142. value: "100000"
  3143. },
  3144. {
  3145. label: "20万",
  3146. value: "200000"
  3147. },
  3148. {
  3149. label: "30万",
  3150. value: "300000"
  3151. },
  3152. {
  3153. label: "50万",
  3154. value: "500000"
  3155. },
  3156. {
  3157. label: "100万",
  3158. value: "1000000"
  3159. },
  3160. {
  3161. label: "200万",
  3162. value: "2000000"
  3163. },
  3164. {
  3165. label: "300万",
  3166. value: "3000000"
  3167. }
  3168. ],
  3169. kindCode: "SY_FJ_YBW1",
  3170. isMainRisk: true,
  3171. kindName: "附加医保-三者",
  3172. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3173. },
  3174. {
  3175. amount: "0",
  3176. amountDesc: "不投保",
  3177. coveragePremium: 0,
  3178. amtList: [
  3179. {
  3180. label: "不投保",
  3181. value: "0"
  3182. },
  3183. {
  3184. label: "1万",
  3185. value: "10000"
  3186. },
  3187. {
  3188. label: "2万",
  3189. value: "20000"
  3190. },
  3191. {
  3192. label: "5万",
  3193. value: "50000"
  3194. },
  3195. {
  3196. label: "10万",
  3197. value: "100000"
  3198. }
  3199. ],
  3200. kindCode: "SY_FJ_YBW2",
  3201. isMainRisk: true,
  3202. kindName: "附加医保-座位险(乘客)",
  3203. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3204. },
  3205. {
  3206. amount: "0",
  3207. amountDesc: "不投保",
  3208. coveragePremium: 0,
  3209. amtList: [
  3210. {
  3211. label: "不投保",
  3212. value: "0"
  3213. },
  3214. {
  3215. label: "1万",
  3216. value: "10000"
  3217. },
  3218. {
  3219. label: "2万",
  3220. value: "20000"
  3221. },
  3222. {
  3223. label: "5万",
  3224. value: "50000"
  3225. },
  3226. {
  3227. label: "10万",
  3228. value: "100000"
  3229. }
  3230. ],
  3231. kindCode: "SY_FJ_YBW3",
  3232. isMainRisk: true,
  3233. kindName: "附加医保-座位险(司机)",
  3234. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  3235. },
  3236. {
  3237. amount: "0",
  3238. amountDesc: "不投保",
  3239. coveragePremium: 0,
  3240. amtList: [
  3241. {
  3242. label: "不投保",
  3243. value: "0"
  3244. },
  3245. {
  3246. label: "50万",
  3247. value: "500000"
  3248. },
  3249. {
  3250. label: "100万",
  3251. value: "1000000"
  3252. },
  3253. {
  3254. label: "150万",
  3255. value: "1500000"
  3256. },
  3257. {
  3258. label: "200万",
  3259. value: "2000000"
  3260. },
  3261. {
  3262. label: "250万",
  3263. value: "2500000"
  3264. },
  3265. {
  3266. label: "300万",
  3267. value: "3000000"
  3268. },
  3269. {
  3270. label: "500万",
  3271. value: "5000000"
  3272. },
  3273. {
  3274. label: "1000万",
  3275. value: "10000000"
  3276. }
  3277. ],
  3278. desc:
  3279. "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
  3280. isMainRisk: false,
  3281. kindCode: "BD",
  3282. kindName: "法定节假日限额翻倍险",
  3283. mainRiskCodeList: "B"
  3284. },
  3285. {
  3286. amount: "0",
  3287. amountDesc: "不投保",
  3288. coveragePremium: 0,
  3289. amtList: [
  3290. {
  3291. label: "不投保",
  3292. value: "0"
  3293. },
  3294. {
  3295. label: "2次",
  3296. value: "2"
  3297. },
  3298. {
  3299. label: "7次",
  3300. value: "7"
  3301. },
  3302. {
  3303. label: "12次",
  3304. value: "12"
  3305. },
  3306. {
  3307. label: "17次",
  3308. value: "17"
  3309. },
  3310. {
  3311. label: "22次",
  3312. value: "22"
  3313. }
  3314. ],
  3315. desc: "道路救援服务特约条款",
  3316. isMainRisk: false,
  3317. kindCode: "TY1",
  3318. kindName: "道路救援服务特约条款"
  3319. },
  3320. {
  3321. amount: "0",
  3322. amountDesc: "不投保",
  3323. coveragePremium: 0,
  3324. desc: "车辆安全检测特约条款",
  3325. isMainRisk: false,
  3326. kindCode: "TY2",
  3327. kindName: "车辆安全检测特约条款"
  3328. },
  3329. {
  3330. amount: "0",
  3331. amountDesc: "不投保",
  3332. coveragePremium: 0,
  3333. desc: "代为驾驶服务特约条款",
  3334. isMainRisk: false,
  3335. kindCode: "TY3",
  3336. kindName: "代为驾驶服务特约条款"
  3337. },
  3338. {
  3339. amount: "0",
  3340. amountDesc: "不投保",
  3341. coveragePremium: 0,
  3342. desc: "代为送检服务特约条款",
  3343. isMainRisk: false,
  3344. kindCode: "TY4",
  3345. kindName: "代为送检服务特约条款"
  3346. }
  3347. ],
  3348. totalCompanyList: [], //报价保险公司
  3349. continuousCompanyList: [], //续保保险公司
  3350. quoteno: "", //报价号
  3351. orderno: "", //订单号
  3352. queryOrders: {
  3353. extendInfo: {},
  3354. carinfo: {},
  3355. ownerinfo: {},
  3356. applyinfo: {},
  3357. insureinfo: {}
  3358. }, //核保详情
  3359. inscompany: "", //保险公司名称
  3360. licenseNo: "", //车牌号
  3361. applyName: "", //车主名字
  3362. orderstatus: "", //订单状态
  3363. sumpremium: "", //保费合计
  3364. jqpremium: "", //交强
  3365. sypremium: "", //商业
  3366. jypremium: "", //驾意险
  3367. taxamount: "", //车船税
  3368. jqstartdate: "", //交强时间
  3369. systartdate: "", //商业时间
  3370. mobile: "", //投保人手机号
  3371. //影像回显列表
  3372. imgList1: [],
  3373. imgList2: [],
  3374. imgList3: [],
  3375. imgList4: [],
  3376. imgList5: [],
  3377. imgList6: [],
  3378. imgList7: [],
  3379. imgList8: [],
  3380. imgList9: [],
  3381. imgList10: [],
  3382. imgList11: [],
  3383. //影像上传列表
  3384. imageList1: [],
  3385. imageList2: [],
  3386. imageList3: [],
  3387. imageList4: [],
  3388. imageList5: [],
  3389. // 是否禁用上传
  3390. uploadDisabled: false,
  3391. href: "",
  3392. pageRequest: {
  3393. //归属查询
  3394. pageNum: 1,
  3395. pageSize: 20,
  3396. columnFilters: {
  3397. deptId: {
  3398. name: "deptId",
  3399. value: "9"
  3400. },
  3401. containsSubDept: {
  3402. name: "containsSubDept",
  3403. value: 1
  3404. },
  3405. usertype: {
  3406. name: "usertype",
  3407. value: null
  3408. },
  3409. status: {
  3410. name: "status",
  3411. value: "1"
  3412. },
  3413. id: {
  3414. name: "id",
  3415. value: ""
  3416. },
  3417. name: {
  3418. name: "name",
  3419. value: ""
  3420. },
  3421. mobile: {
  3422. name: "mobile",
  3423. value: ""
  3424. }
  3425. }
  3426. },
  3427. userform: {},
  3428. qrcode: null,
  3429. paycodeimg: "", //展示二维码
  3430. ImageUrldialogVisible: false,
  3431. paramsEdit: "",
  3432. companyId: "",
  3433. apiType: "",
  3434. insureMore: true,
  3435. // insureLength: 5,
  3436. HistoryList: [], //历史记录数据
  3437. image1: "",
  3438. image2: "",
  3439. historyRadio: "888",
  3440. sumseatCount: "", // 投保险种座位数
  3441. deptName: "",
  3442. isBottom: true,
  3443. logoImg: "", //报价单保险公司logo图
  3444. vehicleTypeoptions: [], //车辆种类
  3445. trafficManagementVehicleTypeoptions: [], //车辆类型
  3446. energyTypeoptions: [], //能源种类
  3447. taxRelifFlagoptions: [], //车船税类型
  3448. taxpayerIdentifieroptions: [], //纳税人证件类型
  3449. relifReasonoptions: [], //减免税原因代码
  3450. relifReasonoptions: [], //减免税原因代码
  3451. provinceSelect: [],
  3452. natureOfVehicleUseoptions: [],
  3453. businessVehicleUseoptions: [],
  3454. outOfBusinessVehicleUseoptions: [],
  3455. insOrderStatusoptions: [],
  3456. lastCompanyId: "",
  3457. apiInterfaceName: 'generateOrder'
  3458. };
  3459. },
  3460. watch: {
  3461. "carInfo.licenseNo": {
  3462. handler(val) {
  3463. if (val) {
  3464. this.carInfo.licenseNo = val.toUpperCase();
  3465. }
  3466. },
  3467. deep: true
  3468. },
  3469. "carInfo.frameNo": {
  3470. handler(val) {
  3471. if (val) {
  3472. this.carInfo.frameNo = val.toUpperCase();
  3473. }
  3474. },
  3475. deep: true
  3476. },
  3477. "carInfo.enginedesc": {
  3478. handler(val) {
  3479. if (val) {
  3480. this.carInfo.enginedesc = val.replace(/[A-Za-z]/g, "");
  3481. }
  3482. },
  3483. deep: true
  3484. },
  3485. "ownerInfo.mobile": {
  3486. handler(val) {
  3487. if (val) {
  3488. this.ownerInfo.mobile = val.replace(/\s/g, "");
  3489. }
  3490. },
  3491. deep: true
  3492. },
  3493. "policyHolderInfo.mobile": {
  3494. handler(val) {
  3495. if (val) {
  3496. this.policyHolderInfo.mobile = val.replace(/\s/g, "");
  3497. }
  3498. },
  3499. deep: true
  3500. },
  3501. "insuredPersonInfo.mobile": {
  3502. handler(val) {
  3503. if (val) {
  3504. this.insuredPersonInfo.mobile = val.replace(/\s/g, "");
  3505. }
  3506. },
  3507. deep: true
  3508. },
  3509. "carInfo.engineNo": {
  3510. handler(val) {
  3511. if (val) {
  3512. this.carInfo.engineNo = val.replace(/[^\w-]/gi, "").toUpperCase();
  3513. }
  3514. },
  3515. deep: true
  3516. },
  3517. "carInfo.seatCount": {
  3518. handler(val) {
  3519. if (val) {
  3520. this.sumseatCount = val - 1;
  3521. }
  3522. },
  3523. deep: true
  3524. },
  3525. "policyHolderInfo.identifyNumber": {
  3526. handler(val) {
  3527. if (val) {
  3528. this.vehicleAndVesselTaxForm.identifyNumber = val;
  3529. }
  3530. },
  3531. deep: true
  3532. },
  3533. "policyHolderInfo.name": {
  3534. handler(val) {
  3535. if (val) {
  3536. this.vehicleAndVesselTaxForm.taxpayerName = val;
  3537. }
  3538. },
  3539. deep: true
  3540. }
  3541. },
  3542. props: {
  3543. isdisabled: {
  3544. type: Boolean,
  3545. default: true
  3546. },
  3547. isLetter: {
  3548. type: Boolean,
  3549. default: true
  3550. },
  3551. },
  3552. components: {
  3553. detailsDialog,
  3554. quotationDialog,
  3555. quotationDialogPro,
  3556. "el-image-viewer": () =>
  3557. import("element-ui/packages/image/src/image-viewer")
  3558. },
  3559. created() {
  3560. if (!this.isLetter) {
  3561. this.apiInterfaceName = 'ordergenerateOrder'
  3562. }
  3563. // this.commpanyList(); //获取保险公司
  3564. this.getDicType("taxRelifFlag"); //车船税类型
  3565. this.getDicType("taxpayerIdentifier"); //纳税人证件类型
  3566. this.getDicType("relifReason"); //减免税原因代码
  3567. this.getDicType("vehicleType"); //车辆种类
  3568. this.getDicType("trafficManagementVehicleType"); //车辆类型
  3569. this.getDicType("energyType"); //能源种类
  3570. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  3571. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  3572. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  3573. this.getDicType("insOrderStatus"); //状态
  3574. this.$api.letter.queryCompany().then(res => {
  3575. this.continuousCompanyList = res.data;
  3576. });
  3577. this.$api.letter.packageQuery().then(res => {
  3578. this.packageOptions = res.data;
  3579. });
  3580. localStorage.setItem("carInfo", JSON.stringify(this.carInfo));
  3581. localStorage.setItem("insureList", JSON.stringify(this.insureList));
  3582. //--归属信息获取--
  3583. var userId = Cookies.get("user");
  3584. if (userId == "admin") {
  3585. this.userId = "admin";
  3586. } else {
  3587. // this.userId = userId;
  3588. this.$api.user.getLoginUser().then(res => {
  3589. if (res.code == 200) {
  3590. this.userform = res.data;
  3591. this.$api.dept.getDeptById(res.data.deptId).then(res => {
  3592. this.deptName = res.data.name;
  3593. });
  3594. }
  3595. });
  3596. }
  3597. //--订单编辑回显--
  3598. // this.paramsEdit = this.$route.query.data; //接收参数
  3599. this.obtainProtocol(this.$route.query.data);
  3600. this.editingWay(this.$route.query.data)
  3601. },
  3602. mounted() {
  3603. this.onScroll();
  3604. window.addEventListener("scroll", this.onScroll);
  3605. },
  3606. destroyed() {
  3607. window.removeEventListener("scroll", this.onScroll);
  3608. },
  3609. beforeCreate() {
  3610. _self = this;
  3611. },
  3612. computed: {
  3613. issueDateOptions() {
  3614. return {
  3615. disabledDate: this.disabledDate
  3616. };
  3617. }
  3618. },
  3619. filters: {
  3620. cap(ele) {
  3621. return _self.insOrderStatusoptions.find(item => {
  3622. return item.dictValue === ele;
  3623. }).dictTag;
  3624. }
  3625. },
  3626. methods: {
  3627. editingWay(paramsEdit) {
  3628. if (paramsEdit) {
  3629. var _this = this;
  3630. this.jqchecked = false;
  3631. this.tbczcarShow = false;
  3632. this.bbtbcarShow = false;
  3633. this.bbczcarShow = false;
  3634. const {
  3635. carinfo,
  3636. ownerinfo,
  3637. applyinfo,
  3638. insureinfo,
  3639. quoteno,
  3640. orderno
  3641. } = paramsEdit;
  3642. _this.carInfo = carinfo;
  3643. if (_this.carInfo.carnature == "8A") {
  3644. _this.carInfo.carnature = "02";
  3645. _this.carInfo.vehicleUse = "05";
  3646. } else {
  3647. _this.carInfo.carnature;
  3648. _this.carInfo.vehicleUse;
  3649. }
  3650. _this.ownerInfo = ownerinfo;
  3651. _this.policyHolderInfo = applyinfo;
  3652. _this.insuredPersonInfo = insureinfo;
  3653. _this.quoteno = quoteno;
  3654. _this.orderno = orderno;
  3655. _this.tbczcarShow = applyinfo.owner;
  3656. _this.bbczcarShow = insureinfo.owner;
  3657. _this.bbtbcarShow = insureinfo.insuranceHolder;
  3658. _this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber);
  3659. _this.policyHolderInfo.age = getAgeByIdCard(
  3660. _this.policyHolderInfo.identifyNumber
  3661. );
  3662. _this.insuredPersonInfo.age = getAgeByIdCard(
  3663. _this.insuredPersonInfo.identifyNumber
  3664. );
  3665. if (paramsEdit.carinfo.transferFlag) {
  3666. this.transferDateShow = true;
  3667. }
  3668. paramsEdit.risk.map(ele => {
  3669. if (ele.riskCode == "0507") {
  3670. _this.jqchecked = true;
  3671. this.protocolJudge('0507', true)
  3672. // _this.jqstartDate = ele.startDate;
  3673. // _this.jqendDate = ele.endDate;
  3674. _this.jqstartDate = this.transformTime1();
  3675. _this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3676. } else if (ele.riskCode == "0510") {
  3677. _this.sychecked = true;
  3678. this.protocolJudge('0510', true)
  3679. // _this.systartDate = ele.startDate;
  3680. // _this.syendDate = ele.endDate;
  3681. _this.systartDate = this.transformTime1();
  3682. _this.syendDate = this.oneYearPast1(this.systartDate);
  3683. _this.insureList.map(eleA => {
  3684. paramsEdit.king.map(eleB => {
  3685. if (eleA.kindCode == eleB.kindCode) {
  3686. switch (eleB.kindCode) {
  3687. case "D4":
  3688. case "SY_FJ_YBW2":
  3689. eleA.amount = JSON.stringify(eleB.unitAmount);
  3690. break;
  3691. case "MJ1":
  3692. case "MJ2":
  3693. case "MJ3":
  3694. case "MJ4":
  3695. eleA.amount = eleB.deductibleRate;
  3696. case "A":
  3697. eleA.amount = JSON.stringify(eleB.amount);
  3698. this.protocolJudge('A', true)
  3699. break;
  3700. default:
  3701. eleA.amount = JSON.stringify(eleB.amount);
  3702. }
  3703. }
  3704. });
  3705. });
  3706. }
  3707. });
  3708. // this.HistoryList = this.paramsEdit.insAreaCompanyList;
  3709. let params = {
  3710. orderNo: paramsEdit.orderno,
  3711. orderStatus: ""
  3712. };
  3713. this.$api.letter.queryQuoteHistory(params).then(res => {
  3714. res.data.forEach(item => {
  3715. if (item.accidentInfo) {
  3716. item.accidentInfo.constructor === Object
  3717. ? [item.accidentInfo]
  3718. : item.accidentInfo;
  3719. }
  3720. });
  3721. this.HistoryList = res.data;
  3722. });
  3723. //--获取影像信息--
  3724. _this.imageEcho(this.quoteno);
  3725. // this.commpanyList()
  3726. //--显示影像按钮--
  3727. _this.imageUploadShow = true;
  3728. } else {
  3729. this.jqstartDate = this.transformTime1();
  3730. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3731. this.systartDate = this.transformTime1();
  3732. this.syendDate = this.oneYearPast1(this.systartDate);
  3733. }
  3734. },
  3735. //手机号复制粘贴处理
  3736. handlePaste(e, mobileKey) {
  3737. e.preventDefault(); //阻止默认行为
  3738. const clipboardData = e.clipboardData || window.clipboardData; //获取剪切板内容
  3739. let pastedText = clipboardData.getData("text").replace(/\s+/g, ""); //获取纯文本并处理空格
  3740. // 截取前11个字符,以确保不会超过手机号长度限制
  3741. pastedText = pastedText.substring(0, 11);
  3742. // 使用Vue.nextTick确保更新发生在DOM更新之后
  3743. this.$nextTick(() => {
  3744. this[mobileKey].mobile = pastedText;
  3745. });
  3746. },
  3747. // licenseNoFun(data){
  3748. // if(data && this.carInfo.enginedesc){
  3749. // this.obtainProtocol()
  3750. // }
  3751. // },
  3752. // enginedescFun(data){
  3753. // if(data && this.carInfo.licenseNo){
  3754. // this.obtainProtocol()
  3755. // }
  3756. // },
  3757. packageChange(val) {
  3758. let arr = this.packageOptions.find(ele => ele.id == val).kind;
  3759. if (arr.length > 0) {
  3760. this.insureList.map(eleA => {
  3761. arr.map(eleB => {
  3762. if (eleA.kindCode == eleB.kindCode) {
  3763. switch (eleB.kindCode) {
  3764. case "D4":
  3765. case "SY_FJ_YBW2":
  3766. eleA.amount = JSON.stringify(eleB.unitAmount);
  3767. break;
  3768. case "MJ1":
  3769. case "MJ2":
  3770. case "MJ3":
  3771. case "MJ4":
  3772. eleA.amount = eleB.deductibleRate;
  3773. break;
  3774. case "TY2":
  3775. case "TY3":
  3776. case "TY4":
  3777. eleA.amount = eleB.serviceTimes;
  3778. break;
  3779. default:
  3780. eleA.amount = JSON.stringify(eleB.amount);
  3781. }
  3782. }
  3783. });
  3784. });
  3785. } else {
  3786. this.insureList.map(eleA => {
  3787. eleA.amount = "0";
  3788. });
  3789. }
  3790. },
  3791. capType(val) {
  3792. if (val == "0") {
  3793. return "success";
  3794. }
  3795. if (val == "1") {
  3796. return "warning";
  3797. }
  3798. if (val == "2" || val == "3" || val == "4") {
  3799. return "danger";
  3800. }
  3801. },
  3802. handleCheckAllChange(ele) {
  3803. this.totalCompanyList.forEach((val, index) => {
  3804. ele ? (val.checked = true) : (val.checked = false);
  3805. // this.initchange(ele, val.id, val.cnName, index);
  3806. });
  3807. },
  3808. retractFun() {
  3809. this.isRetract = this.isRetract == false ? true : false;
  3810. },
  3811. //中煤意外险调整份数事件
  3812. ZMhandleChange(val) {
  3813. if (!val) {
  3814. this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3815. }
  3816. },
  3817. //中煤意外险选中对应意外险方案
  3818. // ZMHandleSelectionChange(val) {
  3819. // // if(val.length > 0&& val[0].quantity==undefined){
  3820. // // this.$message({ message: "请先填写投保份数再勾选!", type: "error", });
  3821. // // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3822. // // return false;
  3823. // // }
  3824. // if (val.length > 1) {
  3825. // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  3826. // this.$refs.ZmMultipleTable[0].toggleRowSelection(val.pop()); //pop:最后一个
  3827. // } else {
  3828. // this.zhongmeiaccidentalDrivingVo = val[0]; //multipleSelection:当前选择的数组
  3829. // }
  3830. // },
  3831. //中煤意外险选中对应产品带出方案明细
  3832. zhongmeiInsuranceChange(index) {
  3833. //每次选中产品,清空之前选中的数据
  3834. this.zhongmeitemplateSelection=index
  3835. this.zhongmeiaccidentalDrivingVo = {};
  3836. this.zhongmeiInsuranceDataTable = [];
  3837. let data = this.zhongmeiInsuranceData.find(
  3838. val => val.projectCode == index
  3839. );
  3840. //把返回的方案明细放入展示数据对象中
  3841. this.accidentFormZM = Object.assign(this.accidentFormZM, data);
  3842. this.accidentFormZM.quantity = "1";
  3843. if (data && data.son) {
  3844. this.accidentPremiumZM = data.sumPremium;
  3845. this.zhongmeiInsuranceDataTable = data.son;
  3846. }
  3847. },
  3848. // 截图粘贴
  3849. copybjd() {
  3850. let that = this;
  3851. html2Canvas(document.getElementById("pdfContentsDiv"), {
  3852. allowTaint: true,
  3853. taintTest: false
  3854. }).then(function (canvas) {
  3855. let base64Data = "";
  3856. // let blob = null
  3857. base64Data = canvas.toDataURL("image/png", 1);
  3858. const date = new Date();
  3859. const saveInfo = {
  3860. download: date.getTime() + `.png`,
  3861. href: base64Data
  3862. };
  3863. const element = document.createElement("a");
  3864. element.style.display = "none";
  3865. for (const key in saveInfo) {
  3866. element.setAttribute(key, saveInfo[key]);
  3867. }
  3868. document.body.appendChild(element);
  3869. element.click();
  3870. setTimeout(() => {
  3871. document.body.removeChild(element);
  3872. }, 300);
  3873. // var format = 'image/png'
  3874. // //将Base64图片编码转换成blob
  3875. // var base64 = base64Data
  3876. // var code = window.atob(base64.split(',')[1])
  3877. // var aBuffer = new window.ArrayBuffer(code.length)
  3878. // var uBuffer = new window.Uint8Array(aBuffer)
  3879. // for (var i = 0; i < code.length; i++) {
  3880. // uBuffer[i] = code.charCodeAt(i) & 0xff
  3881. // }
  3882. // try {
  3883. // blob = new Blob([uBuffer], { type: format })
  3884. // } catch (e) {
  3885. // window.BlobBuilder =
  3886. // window.BlobBuilder ||
  3887. // window.WebKitBlobBuilder ||
  3888. // window.MozBlobBuilder ||
  3889. // window.MSBlobBuilder
  3890. // if (e.name == 'TypeError' && window.BlobBuilder) {
  3891. // var bb = new window.BlobBuilder()
  3892. // bb.append(uBuffer.buffer)
  3893. // blob = bb.getBlob('image/png')
  3894. // } else if (e.name == 'InvalidStateError') {
  3895. // blob = new Blob([aBuffer], { type: format })
  3896. // }
  3897. // }
  3898. // const clipboardItemInput = new ClipboardItem({
  3899. // 'image/png': blob,
  3900. // })
  3901. // that.$copyText({
  3902. // 'image/png': blob,
  3903. // }).then(
  3904. //   function(e) {
  3905. //     console.log("copy arguments e:", e);
  3906. //     alert("复制成功!");
  3907. //   },
  3908. //   function(e) {
  3909. //     console.log("copy arguments e:", e);
  3910. //     alert("复制失败!");
  3911. //   }
  3912. //   ),
  3913. // navigator.clipboard.write([clipboardItemInput])
  3914. // that.$message({
  3915. // message: '已截图并复制到粘贴板!',
  3916. // type: 'success'
  3917. // });
  3918. });
  3919. },
  3920. // 即时起保
  3921. immediatelyChange(e) {
  3922. if (e) {
  3923. this.immediatelyValue = true;
  3924. const date = new Date();
  3925. date.setHours(date.getHours() + 2);
  3926. date.setMinutes(0);
  3927. date.setSeconds(0);
  3928. this.jqstartDate = date;
  3929. this.jqendDate = this.oneYearPast1(date);
  3930. } else {
  3931. this.immediatelyValue = false;
  3932. this.jqstartDate = this.transformTime1();
  3933. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  3934. }
  3935. },
  3936. // 使用性质方法
  3937. natureFun() {
  3938. if (this.carInfo.carnature == "01") {
  3939. this.carInfo.vehicleUse = "";
  3940. }
  3941. },
  3942. // 点击同步报价后的时间
  3943. syncData(item) {
  3944. this.jqstartDate = item.startDateJq ? item.startDateJq : this.jqstartDate;
  3945. this.jqendDate = item.endDateJq ? item.endDateJq : this.endDateJq;
  3946. this.systartDate = item.startDateSy ? item.startDateSy : this.systartDate;
  3947. this.syendDate = item.endDateSy ? item.endDateSy : this.syendDate;
  3948. },
  3949. //纳税类型事件
  3950. taxRelifFlagChange(val) {
  3951. if (val == 4) {
  3952. citydata.rawCitiesData.map(val => {
  3953. this.provinceSelect.push({
  3954. name: val.name,
  3955. code: val.code
  3956. });
  3957. return val;
  3958. });
  3959. }
  3960. },
  3961. //身份证前六位识别地区
  3962. // getAreaByCode(code) {
  3963. // let list = regionData;
  3964. // let provinceCode = code.substring(0, 2);
  3965. // let cityCode = code.substring(0, 4);
  3966. // let areaCode = code.substring(0, 6);
  3967. // // 获取省份信息
  3968. // let province = list.filter(function (item) {
  3969. // return item.value === provinceCode;
  3970. // });
  3971. // // 获取城市信息
  3972. // let city = province[0].children.filter(function (item) {
  3973. // return item.value === cityCode;
  3974. // });
  3975. // if (city.length > 0) {
  3976. // // 获取区/县信息
  3977. // let area = city[0].children.filter(function (item) {
  3978. // return item.value === areaCode;
  3979. // });
  3980. // return province[0].label + city[0].label + area[0].label;
  3981. // }
  3982. // },
  3983. //--数据字典 begin --
  3984. getDicType(type) {
  3985. this.$api.insCompany.dicType(type).then(res => {
  3986. if (res.code == 200) {
  3987. if (type == "insOrderStatus") {
  3988. let data = JSON.parse(JSON.stringify(res.data.ddList));
  3989. data.unshift({
  3990. dictTag: "全部",
  3991. dictValue: "888"
  3992. });
  3993. this[type + "options"] = data;
  3994. } else {
  3995. this[type + "options"] = res.data.ddList;
  3996. }
  3997. }
  3998. });
  3999. },
  4000. //身份证失去焦点
  4001. identifyblur(info) {
  4002. this[info].age = getAgeByIdCard(this[info].identifyNumber);
  4003. this[info].gender = getGenderByIdCard(this[info].identifyNumber);
  4004. },
  4005. //车主信息选择性别
  4006. genderChange(e) {
  4007. if (this.tbczcarShow) {
  4008. this.policyHolderInfo.gender = e;
  4009. } else if (this.bbczcarShow) {
  4010. this.insuredPersonInfo.gender = e;
  4011. }
  4012. },
  4013. //省市区
  4014. // areahandleChange(event, info) {
  4015. // console.log(event)
  4016. // if (event[0] != null && event[1] != null && event[2] != null) {
  4017. // this[info].province = codeToText[event[0]]
  4018. // this[info].city = codeToText[event[1]]
  4019. // this[info].county = codeToText[event[2]]
  4020. // }
  4021. // },
  4022. iconfftter(icon) {
  4023. return CommonUtil.getDataName({
  4024. dataList: this.global.insCompanyList,
  4025. value: "name",
  4026. label: "icon",
  4027. data: icon
  4028. });
  4029. },
  4030. disabledDate(time) {
  4031. let datetime = this.carInfo.registerDate;
  4032. return time.getTime() < new Date(datetime).getTime();
  4033. },
  4034. onScroll() {
  4035. // 变量scrollTop是滚动条滚动时,滚动条上端距离顶部的距离
  4036. var scrollTop =
  4037. document.documentElement.scrollTop || document.body.scrollTop;
  4038. // 变量windowHeight是可视区的高度
  4039. var windowHeight =
  4040. document.documentElement.clientHeight || document.body.clientHeight;
  4041. // 变量scrollHeight是滚动条的总高度(当前可滚动的页面的总高度)
  4042. var scrollHeight =
  4043. document.documentElement.scrollHeight || document.body.scrollHeight;
  4044. // 滚动条到底部
  4045. if (Math.ceil(scrollTop + windowHeight) >= scrollHeight) {
  4046. this.isBottom = true;
  4047. } else {
  4048. this.isBottom = false;
  4049. }
  4050. },
  4051. anshengInsuranceChange(index) {
  4052. this.anshengtemplateSelection=index
  4053. let data = this.anshengInsuranceData.find(val => val.projectCode == index);
  4054. this.anshengaccidentalDrivingVo.parentName = data.projectName;
  4055. this.anshengaccidentalDrivingVo.parentCode = data.projectCode;
  4056. this.anshengInsuranceDataTable = [];
  4057. this.anshengInsuranceDataTable = data.children;
  4058. this.anshengInsuranceDataTable .forEach(e=>e.quantity='1')
  4059. },
  4060. hengbangInsuranceChange(index) {
  4061. this.hengbangInsuranceDataTable = this.hengbangInsuranceData.find(val => val.projectCode == index).son
  4062. this.hengbangtemplateSelection=index
  4063. if (this.hengbangInsuranceDataTable.length) {
  4064. this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(val => val.projectCode == index);
  4065. }
  4066. },
  4067. huanongInsuranceChange(index) {
  4068. this.huanongInsuranceDataTable = this.huanongInsuranceData.find(
  4069. val => val.projectCode == index
  4070. ).son;
  4071. this.accidentFormHN.accidentType=index
  4072. this.huanongaccidentalDrivingVo = Object.assign(
  4073. this.huanongInsuranceData.find(val => val.projectCode == index),
  4074. this.accidentFormHN,
  4075. );
  4076. },
  4077. taipingInsuranceChange(index) {
  4078. this.taipingtemplateSelection=index
  4079. this.taipingInsuranceDataTable = this.taipingInsuranceData.find(val => val.projectCode == index).son
  4080. if (this.taipingInsuranceDataTable && this.taipingInsuranceDataTable.length) {
  4081. this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.projectCode == index);
  4082. }
  4083. },
  4084. zijinInsuranceChange(index) {
  4085. this.zijintemplateSelection=index
  4086. console.log(index,222222);
  4087. this.zijinInsuranceDataTable = [];
  4088. this.$refs.expandTable[0].clearSelection();
  4089. index.forEach(item => {
  4090. this.zijinInsuranceDataTable.push(
  4091. this.ziJinInsuranceData.find(val => val.projectCode == item)
  4092. );
  4093. });
  4094. this.zijinInsuranceDataTable.forEach(item => {
  4095. this.$nextTick(() => {
  4096. this.$refs.expandTable[0].toggleRowSelection(item);
  4097. });
  4098. });
  4099. this.CheckboxChange(this.zijinInsuranceDataTable);
  4100. },
  4101. renshouInsuranceChange(index) {
  4102. // this.renshouInsuranceDataTable = [
  4103. // this.renshouInsuranceData.find(val => val.projectCode == index)
  4104. // ];
  4105. this.renshoutemplateSelection=index
  4106. this.renshouInsuranceDataTable = this.renshouInsuranceData.find(val => val.projectCode == index).son
  4107. if (index) {
  4108. this.RSDrivingChange(this.renshouInsuranceData.find(val => val.projectCode == index));
  4109. }
  4110. },
  4111. async dajiaInsuranceChange(index) {
  4112. this.dajiaaccidentalDrivingVo = {};
  4113. let data = await this.$api.letter.accidentalDrivingInfo(index);
  4114. if (data.code == 200) {
  4115. this.dajiaaccidentalDrivingVo = {
  4116. rideRiskCode: index,
  4117. rideRiskName: this.dajiaInsuranceData.find(val => val.id == index)
  4118. .productName,
  4119. quantity: "1"
  4120. };
  4121. this.dajiaInsuranceDataTable = data.data;
  4122. }
  4123. },
  4124. zhonganInsuranceChange(index) {
  4125. this.zhongantemplateSelection=index
  4126. this.zhonganInsuranceDataTable = this.zhonganInsuranceData.find(val => val.projectCode == index).son
  4127. if (index) {
  4128. this.ZADrivingChange(this.zhonganInsuranceData.find(val => val.projectCode == index));
  4129. }
  4130. },
  4131. // 渤海选择意外险类型
  4132. async bohaiInsuranceChange(index) {
  4133. if (index) {
  4134. this.boHaiaccidentForm.packageCode=index
  4135. this.accidentLoadingbh = true;
  4136. this.boHaiaccidentForm.copies = "1";
  4137. this.boHaiaccidentForm.premium = Number(
  4138. this.boHaiaccidentDataList.find(e => e.packageCode == index).premium
  4139. );
  4140. let data = await this.$api.letter.productDetailsQueryboHai({
  4141. packageCode: index,
  4142. productCode: this.boHaiaccidentDataList.find(
  4143. e => e.packageCode == index
  4144. ).productCode,
  4145. agreementId: this.boHaiaccidentForm.agreementId
  4146. });
  4147. if (data.code == 200 && data.data) {
  4148. this.accidentLoadingbh = false;
  4149. this.bohaiInsuranceDataTable = data.data;
  4150. } else {
  4151. this.$message.error(data.msg);
  4152. this.bohaiInsuranceDataTable = [];
  4153. }
  4154. }
  4155. },
  4156. // 国任选择意外险类型
  4157. async grcxchange(index) {
  4158. if (index) {
  4159. this.accidentLoading = true;
  4160. this.guoRenaccidentForm.goodsCode=index
  4161. this.guoRenaccidentForm.quantity = "1";
  4162. this.guoRenaccidentForm.prodCode = "";
  4163. this.guoRenaccidentDataListChild =this.guoRenaccidentDataList.find(e=>e.projectCode==index).children;
  4164. this.guoRenaccidentalDrivingVo.parentName = this.guoRenaccidentDataList.find(e=>e.projectCode==index).projectName;
  4165. this.guoRenaccidentalDrivingVo.parentCode = this.guoRenaccidentDataList.find(e=>e.projectCode==index).projectCode;
  4166. // let data = await this.$api.letter.syncNonAutoInsGuoren({
  4167. // goodsCode: index,
  4168. // agreementId: this.guoRenaccidentForm.agreementId
  4169. // });
  4170. // if (data.code == 200) {
  4171. // let num = 0;
  4172. // data.data.forEach(item => {
  4173. // num += Number(item.premium);
  4174. // });
  4175. // this.accidentLoading = false;
  4176. // } else {
  4177. // this.accidentLoading = false;
  4178. // this.$message.error(data.msg);
  4179. // this.guoRenaccidentDataListChild = [];
  4180. // }
  4181. }
  4182. },
  4183. // 国任选择意外险子级类型
  4184. async grcxchangeChild(index) {
  4185. let list = this.guoRenaccidentDataListChild.find(
  4186. val => val.projectCode == index
  4187. );
  4188. this.guoRenaccidentForm = {
  4189. ...this.guoRenaccidentForm,
  4190. prodCode:index,
  4191. policyNum: Number(list.sumPremium),
  4192. riskCode: list.riskCode,
  4193. // amount: list.amount,
  4194. sumPremium: Number(list.sumPremium)
  4195. // appnum:Number(list.appnum)
  4196. };
  4197. this.guoRenaccidenttableData = list.son;
  4198. this.guoRenaccidentalDrivingVo=Object.assign({...list,...this.guoRenaccidentalDrivingVo})
  4199. },
  4200. // 选择意外险类型
  4201. async yongchengInsuranceChange(index) {
  4202. if (!index) {
  4203. return;
  4204. }
  4205. this.yongchengtemplateSelection=index
  4206. this.accidentForm = Object.assign(
  4207. this.accidentForm,
  4208. this.accidentDataList.find(val =>val.projectCode == index)
  4209. );
  4210. this.accidentDataList.find(val => val.projectCode == index).son.forEach(item => {
  4211. item.sumAmount= Number(item.amount) * Number(this.accidentForm.seatNum);
  4212. });
  4213. this.accidenttableData = this.accidentDataList.find(val => val.projectCode == index).son
  4214. this.accidentPremium = this.accidentForm.sumPremium;
  4215. // this.accidentForm.fen = "1";
  4216. // let data = await this.$api.letter.ycgainAccidentSchemeList({
  4217. // companyCode: this.accidentForm.companyId,
  4218. // code: index,
  4219. // agreementId: this.accidentForm.agreementId,
  4220. // seatNum: Number(this.carInfo.seatCount)
  4221. // });
  4222. // if (data.code == 200) {
  4223. // let num = 0;
  4224. // data.data.forEach(item => {
  4225. // num += Number(item.premium);
  4226. // });
  4227. // this.accidentPremium = num;
  4228. // this.accidentForm.premium = num;
  4229. // this.accidenttableData = data.data;
  4230. // }
  4231. },
  4232. numberCopieschange(index) {
  4233. this.accidentForm.sumPremium = Number(this.accidentPremium) * index;
  4234. },
  4235. numberCopieschangeZM(index) {
  4236. this.accidentFormZM.sumPremium = Number(this.accidentPremiumZM) * index;
  4237. },
  4238. numberCopieschangeGR(index) {
  4239. this.guoRenaccidentForm.sumPremium =
  4240. Number(this.guoRenaccidentForm.policyNum) * index;
  4241. },
  4242. continuousChange(id) {
  4243. this.continuousCompanyList.map(ele => {
  4244. if (ele.id == id) {
  4245. this.attributionform.configure = [];
  4246. ele.configure.map((ele, index) => {
  4247. this.attributionform.configure.push({
  4248. field: ele.field,
  4249. isEdit: ele.isEdit,
  4250. label: ele.label,
  4251. type: ele.type,
  4252. value: ""
  4253. });
  4254. });
  4255. }
  4256. });
  4257. },
  4258. //续保查询
  4259. continuousquery() {
  4260. this.$api.letter.queryRenewal(this.attributionform).then(res => {
  4261. if (res.code == "200") {
  4262. this.carInfo = res.data.carInfo;
  4263. this.ownerInfo = res.data.ownerInfo;
  4264. this.policyHolderInfo = res.data.policyHolderInfo;
  4265. this.insuredPersonInfo = res.data.insuredPersonInfo;
  4266. res.data.riskList.map(ele => {
  4267. if (ele.riskCode == "0507") {
  4268. this.jqchecked = true;
  4269. this.jqstartDate = ele.startDate;
  4270. this.jqendDate = ele.endDate;
  4271. } else if (ele.riskCode == "0510") {
  4272. this.sychecked = true;
  4273. this.systartDate = ele.startDate;
  4274. this.syendDate = ele.endDate;
  4275. }
  4276. county;
  4277. });
  4278. } else {
  4279. this.$message({
  4280. message: res.msg,
  4281. type: "error",
  4282. duration: 2000
  4283. });
  4284. }
  4285. });
  4286. },
  4287. //永诚转保
  4288. renewalCodeconfirm() {
  4289. this.renewalCodedialogVisible = false;
  4290. this.quote();
  4291. },
  4292. //报价轨迹查询
  4293. RadioHistoryChange(e) {
  4294. let params = {
  4295. orderNo: this.orderno,
  4296. orderStatus: e == 888 ? "" : e
  4297. };
  4298. this.$api.letter.queryQuoteHistory(params).then(res => {
  4299. res.data.forEach(item => {
  4300. if (item.accidentInfo) {
  4301. item.accidentInfo.constructor === Object
  4302. ? [item.accidentInfo]
  4303. : item.accidentInfo;
  4304. }
  4305. });
  4306. this.HistoryList = res.data;
  4307. });
  4308. },
  4309. protocolJudge(val, val1) {
  4310. if (val1) {
  4311. this.totalCompanyList.forEach(e => {
  4312. if (e.agreement.find(el => el.productsCode && el.productsCode.includes(val))) {
  4313. e.agreement.find(el => el.productsCode && el.productsCode.includes(val)).disabled = true
  4314. }
  4315. })
  4316. }
  4317. else {
  4318. this.totalCompanyList.forEach(e => {
  4319. if (e.agreement.find(el => el.productsCode && el.productsCode.includes(val))) {
  4320. e.agreement.find(el => el.productsCode && el.productsCode.includes(val)).disabled = false
  4321. }
  4322. })
  4323. }
  4324. },
  4325. async obtainProtocol(data) {
  4326. let res = {}
  4327. if (this.isLetter) {
  4328. res = await this.$api.letter.getAllAgreement()
  4329. }
  4330. else {
  4331. res = await this.$api.letter.getAllAgreementByUserId({ userId: this.userId })
  4332. }
  4333. if (res.code == 200) {
  4334. res.data.map(ele => {
  4335. ele["result"] = {};
  4336. ele["quoteCode"] = 0;
  4337. ele["checked"] = false;
  4338. ele["msg"] = "";
  4339. ele["lastYearMsg"] = "";
  4340. ele["agreementId"] = "";
  4341. ele["apiType"] = "";
  4342. ele["orderstatus"] = 0;
  4343. ele.coefficient = "";
  4344. // ele.agreementId = ele.agreement[0].id;
  4345. // ele.apiType = ele.agreement[0].apiType;
  4346. ele.underwritingDescription =
  4347. ele.agreement[0].underwritingDescription;
  4348. if (ele.isTaxSource && ele.isTaxSource == "1") {
  4349. ele.agreement.forEach(val => {
  4350. if (val.isTaxSource && val.isTaxSource == "1") {
  4351. ele.agreementId = val.id;
  4352. ele.apiType = val.apiType;
  4353. }
  4354. });
  4355. }
  4356. });
  4357. if (data) {
  4358. res.data.forEach((val, index) => {
  4359. data.insAreaCompanyEditingDtos.forEach(ele => {
  4360. if (val.namesimple == ele.inscompany) {
  4361. if (ele.inscompany == "中国人寿" && ele.companyId) {
  4362. this.lastCompanyId = ele.companyId;
  4363. }
  4364. res.data[index].quoteCode = 200;
  4365. res.data[index].result = ele;
  4366. }
  4367. });
  4368. });
  4369. }
  4370. }
  4371. res.data.forEach(e => {
  4372. e.agreement.forEach(el => el.disabled = false)
  4373. })
  4374. this.totalCompanyList = res.data;
  4375. },
  4376. //获取保险公司列表
  4377. // commpanyList() {
  4378. // this.$api.letter.gainAllowQuoteList("").then(res => {
  4379. // res.data.map(ele => {
  4380. // ele["result"] = {};
  4381. // ele["quoteCode"] = 0;
  4382. // ele["checked"] = false;
  4383. // ele["msg"] = "";
  4384. // ele["lastYearMsg"] = "";
  4385. // ele["agreementId"] = "";
  4386. // ele["apiType"] = "";
  4387. // ele["orderstatus"] = 0;
  4388. // ele.coefficient = "";
  4389. // // ele.agreementId = ele.agreement[0].id;
  4390. // ele.apiType = ele.agreement[0].apiType;
  4391. // ele.underwritingDescription =
  4392. // ele.agreement[0].underwritingDescription;
  4393. // });
  4394. // if (this.$route.query.data) {
  4395. // res.data.forEach((val, index) => {
  4396. // this.$route.query.data.insAreaCompanyEditingDtos.forEach(ele => {
  4397. // if (val.namesimple == ele.inscompany) {
  4398. // res.data[index].quoteCode = 200;
  4399. // res.data[index].result = ele;
  4400. // }
  4401. // });
  4402. // });
  4403. // }
  4404. // this.totalCompanyList = res.data;
  4405. // });
  4406. // },
  4407. Payment(id, item) {
  4408. this.carcode(id, item);
  4409. },
  4410. //选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
  4411. agreementChange(val, row, index, item) {
  4412. let obj = {};
  4413. obj = row.find(item => {
  4414. return item;
  4415. });
  4416. let selectRow = row.find(item => {
  4417. return item.id == val;
  4418. });
  4419. this.totalCompanyList[index].apiType = obj.apiType;
  4420. this.totalCompanyList[index].underwritingDescription = val
  4421. ? selectRow.underwritingDescription
  4422. : ""; //重新赋值修改选中协议承保描述
  4423. this.$api.letter
  4424. .getDrivingInsuranceRule({
  4425. companyCode: item.id,
  4426. agreementId: item.agreementId,
  4427. seatNum:item.namesimple=='永诚财险' ||item.namesimple=='中煤财险'? Number(this.carInfo.seatCount):'',
  4428. ruleUseNature:this.carInfo.carnature,
  4429. ruleSeatNum: Number(this.carInfo.seatCount),
  4430. ruleThirdPartyInsurance: this.insureList[1].amount
  4431. })
  4432. .then(res => {
  4433. if (res.code == 200) {
  4434. this.nonVehicle(res.data,item.cnName)
  4435. switch(item.namesimple) {
  4436. case "永诚财险":
  4437. this.accidentDataList = res.data;
  4438. break;
  4439. case "国任财险":
  4440. this.guoRenaccidentDataList = res.data;
  4441. break;
  4442. case "渤海财险":
  4443. this.boHaiaccidentDataList = res.data;
  4444. break;
  4445. case "中煤财险":
  4446. this[item.cnName + + "InsuranceData"] =res.data;
  4447. break;
  4448. case "紫金财险":
  4449. let data = res.data;
  4450. data.map(ele => {
  4451. ele.quantity = 1;
  4452. return ele;
  4453. });
  4454. this.ziJinInsuranceData = data;
  4455. break;
  4456. case "大家财险":
  4457. this.dajiaInsuranceData = res.data;
  4458. break;
  4459. case "中国人寿":
  4460. case "恒邦财险":
  4461. case "太平财险":
  4462. case "安盛天平":
  4463. case "华农财险":
  4464. case "众安财险":
  4465. res.data.map(ele => {
  4466. ele.quantity = 1;
  4467. return ele;
  4468. });
  4469. this[item.cnName + "InsuranceData"] = res.data;
  4470. break;
  4471. }
  4472. }
  4473. else{
  4474. this.$message.error(res.msg)
  4475. }
  4476. });
  4477. // switch (item.namesimple) {
  4478. // case "永诚财险":
  4479. // this.accidentForm.agreementId = item.agreementId;
  4480. // this.$api.letter
  4481. // .ycgainAccidentList({
  4482. // companyCode: item.id,
  4483. // agreementId: item.agreementId,
  4484. // seatNum: Number(this.carInfo.seatCount)
  4485. // })
  4486. // .then(res => {
  4487. // if (res.code == 200) {
  4488. // this.accidentDataList = res.data;
  4489. // }
  4490. // });
  4491. // break;
  4492. // case "国任财险":
  4493. // this.guoRenaccidentForm.agreementId = item.agreementId;
  4494. // this.$api.letter
  4495. // .syncNonAutoInsGuoren({ agreementId: item.agreementId })
  4496. // .then(res => {
  4497. // if (res.code == 200) {
  4498. // this.guoRenaccidentDataList = res.data;
  4499. // } else {
  4500. // this.guoRenaccidentDataList = [];
  4501. // }
  4502. // });
  4503. // break;
  4504. // case "渤海财险":
  4505. // this.boHaiaccidentForm.agreementId = item.agreementId;
  4506. // let policyHolderInfo = this.tbczcarShow
  4507. // ? this.ownerInfo
  4508. // : this.policyHolderInfo;
  4509. // let productQueryVo = {
  4510. // agreementId: item.agreementId,
  4511. // carnature: this.carInfo.carnature,
  4512. // cimodelclass: this.carInfo.cimodelclass,
  4513. // exhaustScale: this.carInfo.enginedesc,
  4514. // limitLoad: this.carInfo.limitLoad,
  4515. // powerScale: this.carInfo.powerScale,
  4516. // seatCount: this.carInfo.seatCount,
  4517. // vehicleUse: this.carInfo.vehicleUse,
  4518. // policyHolderInfo,
  4519. // insuredPersonInfo: this.bbczcarShow
  4520. // ? this.ownerInfo
  4521. // : this.bbtbcarShow
  4522. // ? policyHolderInfo
  4523. // : this.insuredPersonInfo
  4524. // };
  4525. // this.$api.letter.productQueryboHai(productQueryVo).then(res => {
  4526. // if (res.code == 200) {
  4527. // this.boHaiaccidentDataList = res.data;
  4528. // } else {
  4529. // this.boHaiaccidentDataList = [];
  4530. // }
  4531. // });
  4532. // break;
  4533. // case "紫金财险":
  4534. // this.$api.letter
  4535. // .zijinqueryVehicleProducts({
  4536. // agreementId: val,
  4537. // seatCount: Number(this.carInfo.seatCount)
  4538. // })
  4539. // .then(res => {
  4540. // if (res.code == 200) {
  4541. // let data = res.data;
  4542. // data.map(ele => {
  4543. // ele.quantity = 1;
  4544. // return ele;
  4545. // });
  4546. // this.ziJinInsuranceData = data;
  4547. // } else {
  4548. // this.$message.error(res.msg);
  4549. // }
  4550. // });
  4551. // break;
  4552. // case "中国人寿":
  4553. // case "恒邦财险":
  4554. // case "太平财险":
  4555. // case "安盛天平":
  4556. // case "华农财险":
  4557. // case "众安财险":
  4558. // this.$api.letter.pythongetDriving({ agreementId: val }).then(res => {
  4559. // if (res.code == 200) {
  4560. // let data = res.data;
  4561. // data.map(ele => {
  4562. // ele.quantity = 1;
  4563. // return ele;
  4564. // });
  4565. // this[item.cnName + "InsuranceData"] = data;
  4566. // }
  4567. // });
  4568. // break;
  4569. // case "大家财险":
  4570. // this.$api.letter
  4571. // .dajiagetDriving({ agreementId: item.agreementId })
  4572. // .then(res => {
  4573. // if (res.code == 200) {
  4574. // this.dajiaInsuranceData = res.data;
  4575. // }
  4576. // });
  4577. // break;
  4578. // default:
  4579. // break;
  4580. // }
  4581. },
  4582. nonVehicle(data,type){
  4583. if( data.some(e=>e.isDefault)){
  4584. if(type=='guoRen'){
  4585. this.grcxchange(data.find(ele=>ele.isDefault).projectCode)
  4586. this.grcxchangeChild((data.find(ele=>ele.isDefault).children).find(ele=>ele.isDefault).projectCode)
  4587. }
  4588. if(type=='ansheng'){
  4589. this.anshengInsuranceChange(data.find(ele=>ele.isDefault).projectCode)
  4590. this.ASDrivingRadio((data.find(ele=>ele.isDefault).children).find(ele=>ele.isDefault))
  4591. }
  4592. if(type=='zijin'){
  4593. this[type + "InsuranceChange"]([data.find(ele=>ele.isDefault).projectCode])
  4594. }
  4595. else{
  4596. this[type + "InsuranceChange"](data.find(ele=>ele.isDefault).projectCode)
  4597. }
  4598. }
  4599. },
  4600. CheckboxChange(select, row) {
  4601. this.accidentalDrivingVo = [];
  4602. select.map(val => {
  4603. this.accidentalDrivingVo.push(val);
  4604. return val;
  4605. });
  4606. },
  4607. //人寿驾意险选择
  4608. RSDrivingChange(row) {
  4609. this.renshouaccidentalDrivingVo = row;
  4610. },
  4611. //众安驾意险选择
  4612. ZADrivingChange(row) {
  4613. this.zhonganaccidentalDrivingVo = row;
  4614. },
  4615. RSDrivingRadio(row) {
  4616. this.RSDrivingChange(row);
  4617. },
  4618. //安盛驾意险选择
  4619. ASDrivingRadio(row) {
  4620. this.anshengInsurancetype = row.projectCode;
  4621. this.anshengaccidentalDrivingVo=Object.assign({...row,...this.anshengaccidentalDrivingVo})
  4622. // this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
  4623. // this.anshengaccidentalDrivingVo.projectName = row.projectName;
  4624. },
  4625. ZADrivingRadio(row) {
  4626. this.ZADrivingChange(row);
  4627. },
  4628. // 国任特约选择
  4629. contributingGuoRen(id) {
  4630. this.zijinengageListData = [];
  4631. this.contributingLoading = true;
  4632. this.contributingState = true;
  4633. this.hbsubmitdialogVisible = true;
  4634. this.$api.letter.guorenqueryClauseData({ agreementId: id }).then(res => {
  4635. this.contributingLoading = false;
  4636. res.data.forEach(val => {
  4637. val.clauseName = val.clauses;
  4638. val.clauseContent = val.clausesContext;
  4639. });
  4640. this.zijinengageListData = res.data;
  4641. });
  4642. },
  4643. //紫金特约选择
  4644. zijinengageChange(select, row) {
  4645. this.zijinengageList = [];
  4646. select.map(val => {
  4647. this.zijinengageList.push({
  4648. clauseCode: val.clauseCode,
  4649. clauseName: val.clauseName,
  4650. clauses: val.clauseContent,
  4651. riskCode: val.riskCode
  4652. });
  4653. return val;
  4654. });
  4655. },
  4656. zijinengageChangeAll(row) {
  4657. if (row) {
  4658. this.zijinengageChange(row);
  4659. } else {
  4660. this.$refs.expandTablePro.clearSelection();
  4661. this.zijinengageList = [];
  4662. }
  4663. },
  4664. //紫金特约内容编辑
  4665. zijincellDblclick(row, column) {
  4666. this.currentCell = row.index + "," + column.index;
  4667. if (
  4668. !["clauseContent"].includes(column.property) &&
  4669. row.modifyFlag == "1"
  4670. ) {
  4671. setTimeout(() => {
  4672. this.$refs[row.index + "," + column.index].focus();
  4673. });
  4674. }
  4675. },
  4676. tableCellClassName({ row, column, rowIndex, columnIndex }) {
  4677. row.index = rowIndex;
  4678. column.index = columnIndex;
  4679. },
  4680. hideInput() {
  4681. this.currentCell = null;
  4682. },
  4683. //勾选保险公司
  4684. initchange(e, code, name, index) {
  4685. if (e) {
  4686. let ins = this.totalCompanyList[index].namesimple;
  4687. this.totalCompanyList[index].checked = e;
  4688. this.totalCompanyList[
  4689. index
  4690. ].underwritingDescription = this.totalCompanyList[
  4691. index
  4692. ].agreement[0].underwritingDescription;
  4693. this.$api.letter
  4694. .getDrivingInsuranceRule({
  4695. agreementId: this.totalCompanyList[index].agreement[0].id,
  4696. seatNum:ins=='永诚财险' || ins=='中煤财险'? Number(this.carInfo.seatCount):'',
  4697. ruleUseNature:this.carInfo.carnature,
  4698. ruleSeatNum: Number(this.carInfo.seatCount),
  4699. ruleThirdPartyInsurance: this.insureList[1].amount
  4700. })
  4701. .then(res => {
  4702. if (res.code == 200) {
  4703. this.nonVehicle(res.data,name)
  4704. switch(ins) {
  4705. case "永诚财险":
  4706. this.accidentDataList = res.data;
  4707. break;
  4708. case "国任财险":
  4709. this.guoRenaccidentDataList = res.data;
  4710. break;
  4711. case "渤海财险":
  4712. this.boHaiaccidentDataList = res.data;
  4713. break;
  4714. case "中煤财险":
  4715. this[name + "InsuranceData"] =res.data;
  4716. break;
  4717. case "紫金财险":
  4718. let data = res.data;
  4719. data.map(ele => {
  4720. ele.quantity = 1;
  4721. return ele;
  4722. });
  4723. this.ziJinInsuranceData = data;
  4724. break;
  4725. case "大家财险":
  4726. this.dajiaInsuranceData = res.data;
  4727. break;
  4728. case "中国人寿":
  4729. case "恒邦财险":
  4730. case "太平财险":
  4731. case "华农财险":
  4732. case "安盛天平":
  4733. case "众安财险":
  4734. res.data.map(ele => {
  4735. ele.quantity = 1;
  4736. return ele;
  4737. });
  4738. this[name + "InsuranceData"] = res.data
  4739. break;
  4740. }
  4741. }
  4742. else{
  4743. this.$message.error(res.msg)
  4744. }
  4745. });
  4746. // switch (ins) {
  4747. // case "永诚财险":
  4748. // this.accidentForm.agreementId = this.totalCompanyList[
  4749. // index
  4750. // ].agreement[0].id;
  4751. // this.$api.letter
  4752. // .ycgainAccidentList({
  4753. // companyCode: this.totalCompanyList[index].id,
  4754. // agreementId: this.totalCompanyList[index].agreement[0].id,
  4755. // seatNum: Number(this.carInfo.seatCount)
  4756. // })
  4757. // .then(res => {
  4758. // if (res.code == 200) {
  4759. // this.accidentDataList = res.data;
  4760. // } else {
  4761. // this.accidentDataList = [];
  4762. // }
  4763. // });
  4764. // break;
  4765. // case "国任财险":
  4766. // this.guoRenaccidentForm.agreementId = this.totalCompanyList[
  4767. // index
  4768. // ].agreement[0].id;
  4769. // this.$api.letter
  4770. // .syncNonAutoInsGuoren({
  4771. // goodsCode: "",
  4772. // agreementId: this.totalCompanyList[index].agreement[0].id
  4773. // })
  4774. // .then(res => {
  4775. // if (res.code == 200) {
  4776. // this.guoRenaccidentDataList = res.data;
  4777. // } else {
  4778. // this.guoRenaccidentDataList = [];
  4779. // }
  4780. // });
  4781. // break;
  4782. // case "紫金财险":
  4783. // this.$api.letter
  4784. // .zijinqueryVehicleProducts({
  4785. // agreementId: this.totalCompanyList[index].agreement[0].id,
  4786. // seatCount: Number(this.carInfo.seatCount)
  4787. // })
  4788. // .then(res => {
  4789. // if (res.code == 200) {
  4790. // let data = res.data;
  4791. // data.map(ele => {
  4792. // ele.quantity = 1;
  4793. // return ele;
  4794. // });
  4795. // this.ziJinInsuranceData = data;
  4796. // } else {
  4797. // this.$message.error(res.msg);
  4798. // }
  4799. // });
  4800. // break;
  4801. // case "安盛天平":
  4802. // this.$api.letter
  4803. // .pythongetDriving({
  4804. // agreementId: this.totalCompanyList[index].agreement[0].id
  4805. // })
  4806. // .then(res => {
  4807. // if (res.code == 200) {
  4808. // let data = res.data;
  4809. // data.map(ele => {
  4810. // ele.departmentProductList.map(val => {
  4811. // val.quantity = 1;
  4812. // });
  4813. // return ele;
  4814. // });
  4815. // this[name + "InsuranceData"] = data;
  4816. // } else {
  4817. // this.$message.error(res.msg);
  4818. // }
  4819. // });
  4820. // break;
  4821. // case "中国人寿":
  4822. // case "恒邦财险":
  4823. // case "太平财险":
  4824. // case "华农财险":
  4825. // case "众安财险":
  4826. // this.$api.letter
  4827. // .pythongetDriving({
  4828. // agreementId: this.totalCompanyList[index].agreement[0].id
  4829. // })
  4830. // .then(res => {
  4831. // if (res.code == 200) {
  4832. // let data = res.data;
  4833. // data.map(ele => {
  4834. // ele.quantity = 1;
  4835. // return ele;
  4836. // });
  4837. // this[name + "InsuranceData"] = data;
  4838. // } else {
  4839. // this.$message.error(res.msg);
  4840. // }
  4841. // });
  4842. // break;
  4843. // case "中煤财险":
  4844. // this.accidentFormZM.agreementId = this.totalCompanyList[
  4845. // index
  4846. // ].agreement[0].id;
  4847. // this.$api.letter
  4848. // .zmGetDrivingPro({
  4849. // agreementId: this.totalCompanyList[index].agreement[0].id,
  4850. // seatNum: this.carInfo.seatCount
  4851. // })
  4852. // .then(res => {
  4853. // if (res.code == 200) {
  4854. // let data = res.data;
  4855. // this[name + "InsuranceData"] = data;
  4856. // } else {
  4857. // this.$message.error(res.msg);
  4858. // }
  4859. // });
  4860. // break;
  4861. // case "大家财险":
  4862. // this.$api.letter
  4863. // .dajiagetDriving({
  4864. // agreementId: this.totalCompanyList[index].agreement[0].id
  4865. // })
  4866. // .then(res => {
  4867. // if (res.code == 200) {
  4868. // this.dajiaInsuranceData = res.data;
  4869. // } else {
  4870. // this.$message.error(res.msg);
  4871. // }
  4872. // });
  4873. // break;
  4874. // default:
  4875. // break;
  4876. // }
  4877. } else {
  4878. }
  4879. },
  4880. clearAccidentForm() {
  4881. this.accidentForm = {};
  4882. this.accidentForm.fen = 1;
  4883. this.accidentForm.premium = 0;
  4884. },
  4885. clearAccidentFormGr() {
  4886. (this.guoRenInsuranceDataTable = []),
  4887. (this.guoRenaccidentDataListChild = []);
  4888. this.guoRenaccidentForm = {
  4889. quantity: "1",
  4890. premium: 0
  4891. };
  4892. },
  4893. clearAccidentFormBh() {
  4894. this.bohaiInsuranceDataTable = [];
  4895. this.boHaiaccidentForm = {
  4896. copies: "1",
  4897. premium: 0
  4898. };
  4899. // this.bohaiaccidentalDrivingVo={};
  4900. },
  4901. clearAccidentFormHN() {
  4902. this.huanongaccidentalDrivingVo = {};
  4903. },
  4904. clearAccidentFormHB() {
  4905. this.hengbangaccidentalDrivingVo = {};
  4906. },
  4907. clearAccidentFormTP() {
  4908. this.taipingaccidentalDrivingVo = {};
  4909. },
  4910. clearAccidentFormDJ() {
  4911. this.dajiaaccidentalDrivingVo = {};
  4912. },
  4913. clearAccidentFormZM() {
  4914. this.zhongmeiaccidentalDrivingVo = {};
  4915. },
  4916. clearAccidentFormZJ() {
  4917. this.accidentalDrivingVo = [];
  4918. },
  4919. clearAccidentFormZA() {
  4920. this.zhonganaccidentalDrivingVo = {};
  4921. },
  4922. clearAccidentFormRS() {
  4923. this.renshouaccidentalDrivingVo = {};
  4924. },
  4925. clearAccidentFormAS() {
  4926. this.anshengaccidentalDrivingVo = {};
  4927. },
  4928. //身份证有效期长期
  4929. insureLongterm(e) {
  4930. this[e].identifyValidEndDate = "9999-12-31";
  4931. },
  4932. //较强起保日期事件
  4933. jqChange(e) {
  4934. this.jqendDate = this.oneYearPast1(e);
  4935. },
  4936. //商业起保日期事件
  4937. syChange(e) {
  4938. this.syendDate = this.oneYearPast1(e);
  4939. },
  4940. // //查看更多
  4941. // selectMore(leg) {
  4942. // this.insureMore = false;
  4943. // this.insureLength = leg;
  4944. // },
  4945. // //收起
  4946. // packup() {
  4947. // this.insureMore = true;
  4948. // this.insureLength = 5;
  4949. // },
  4950. //险别选择框事件
  4951. insureitemChange(e) {
  4952. this.protocolJudge('A', e)
  4953. if (e != 0) {
  4954. this.sychecked = true;
  4955. this.systartDate = this.transformTime1();
  4956. this.syendDate = this.oneYearPast1(this.systartDate);
  4957. }
  4958. },
  4959. all() {
  4960. this.$refs.detailsDialog.setBackupVisible(true);
  4961. },
  4962. base64ToBlob(code) {
  4963. code = code.replace(/[\n\r]/g, "");
  4964. // atob() 方法用于解码使用 base-64 编码的字符串。
  4965. const raw = window.atob(code);
  4966. const rawLength = raw.length;
  4967. const uInt8Array = new Uint8Array(rawLength);
  4968. for (let i = 0; i < rawLength; ++i) {
  4969. uInt8Array[i] = raw.charCodeAt(i);
  4970. }
  4971. return new Blob([uInt8Array], { type: "application/pdf" });
  4972. },
  4973. viewPdf(content) {
  4974. if (!content) {
  4975. this.$message.error("暂无文件");
  4976. return;
  4977. }
  4978. const blob = this.base64ToBlob(content);
  4979. this.href = blob;
  4980. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  4981. window.navigator.msSaveOrOpenBlob(blob);
  4982. } else {
  4983. const fileURL = URL.createObjectURL(blob);
  4984. window.open(fileURL);
  4985. }
  4986. },
  4987. creatQrCode(text) {
  4988. if (this.qrcode) {
  4989. this.qrcode.clear();
  4990. this.qrcode.makeCode(text);
  4991. } else {
  4992. this.qrcode = new QRCode("qrcode", {
  4993. text: text,
  4994. width: this.qrcodeWidth,
  4995. height: this.qrcodeHeight,
  4996. colorDark: "#000000",
  4997. colorLight: "#ffffff",
  4998. correctLevel: QRCode.CorrectLevel.H
  4999. });
  5000. }
  5001. },
  5002. //人工核保
  5003. underwriting(id) {
  5004. let param = {
  5005. companyId: id
  5006. };
  5007. this.$api.letter.manualUnderwriting(param).then(res => {
  5008. if (res.code == "200") {
  5009. this.Payment(id);
  5010. }
  5011. });
  5012. },
  5013. jqcheckedChange(e) {
  5014. this.protocolJudge('0507', e)
  5015. if (e) {
  5016. this.jqstartDate = this.transformTime1();
  5017. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  5018. } else {
  5019. this.jqstartDate = "";
  5020. this.jqendDate = "";
  5021. }
  5022. },
  5023. sycheckedChange(e) {
  5024. this.protocolJudge('0510', e)
  5025. if (e) {
  5026. this.systartDate = this.transformTime1();
  5027. this.syendDate = this.oneYearPast1(this.systartDate);
  5028. } else {
  5029. this.systartDate = "";
  5030. this.syendDate = "";
  5031. }
  5032. },
  5033. //报价
  5034. quote() {
  5035. let starttime = new Date(this.carInfo.registerDate);
  5036. let endtime = new Date(this.carInfo.issueDate);
  5037. if (endtime < starttime) {
  5038. this.$message({ message: "发证日期早于初登日期", type: "error" });
  5039. return;
  5040. }
  5041. this.$refs["carInfo"].validate(valid => {
  5042. if (valid) {
  5043. var _this = this;
  5044. _this.$refs["ownerInfo"].validate(valid1 => {
  5045. if (valid1) {
  5046. if (_this.tbczcarShow == true) {
  5047. _this.policyHolderInfo = JSON.parse(
  5048. JSON.stringify(_this.ownerInfo)
  5049. );
  5050. }
  5051. if (_this.bbczcarShow == true) {
  5052. _this.insuredPersonInfo = JSON.parse(
  5053. JSON.stringify(_this.ownerInfo)
  5054. );
  5055. }
  5056. if (_this.bbtbcarShow == true) {
  5057. _this.insuredPersonInfo = JSON.parse(
  5058. JSON.stringify(_this.policyHolderInfo)
  5059. );
  5060. }
  5061. _this.carInfo.vinNo = _this.carInfo.frameNo;
  5062. _this.riskList = []; //险种大类
  5063. _this.kindList = []; //商业险险别
  5064. if (
  5065. (!_this.jqstartDate || !_this.jqendDate) &&
  5066. (!_this.systartDate || !_this.syendDate)
  5067. ) {
  5068. this.$message({ message: "投保日期不能为空", type: "warning" });
  5069. } else {
  5070. this.calculateLoading = true;
  5071. setInterval(() => {
  5072. this.calculateLoading = false;
  5073. }, 3000);
  5074. if (_this.jqchecked) {
  5075. //交强
  5076. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  5077. _this.jqendDate = this.transformTime(_this.jqendDate);
  5078. _this.riskList.push({
  5079. amount: "200000",
  5080. premium: "0",
  5081. riskCode: "0507",
  5082. endDate: _this.jqendDate,
  5083. startDate: _this.jqstartDate,
  5084. instantFlag: "0"
  5085. });
  5086. }
  5087. if (_this.sychecked) {
  5088. _this.systartDate = this.transformTime(_this.systartDate);
  5089. _this.syendDate = this.transformTime(_this.syendDate);
  5090. //商业
  5091. _this.riskList.push({
  5092. premium: "0",
  5093. riskCode: "0510",
  5094. quotePreceptCode: "",
  5095. quotePreceptName: "",
  5096. endDate: _this.syendDate,
  5097. startDate: _this.systartDate,
  5098. instantFlag: "0"
  5099. });
  5100. _this.insureList.map((ele, index) => {
  5101. if (
  5102. ele.amount != "0" &&
  5103. (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  5104. ) {
  5105. _this.kindList.push({
  5106. unitAmount: _this.insureList[index].amount,
  5107. kindCode: _this.insureList[index].kindCode,
  5108. kindName: _this.insureList[index].kindName
  5109. });
  5110. } else if (
  5111. ele.amount != "0" &&
  5112. (ele.kindCode == "MJ1" ||
  5113. ele.kindCode == "MJ2" ||
  5114. ele.kindCode == "MJ3" ||
  5115. ele.kindCode == "MJ4")
  5116. ) {
  5117. _this.kindList.push({
  5118. deductibleRate: _this.insureList[index].amount,
  5119. kindCode: _this.insureList[index].kindCode,
  5120. kindName: _this.insureList[index].kindName
  5121. });
  5122. } else if (
  5123. ele.amount != "0" &&
  5124. (ele.kindCode == "TY1" ||
  5125. ele.kindCode == "TY2" ||
  5126. ele.kindCode == "TY3" ||
  5127. ele.kindCode == "TY4")
  5128. ) {
  5129. _this.kindList.push({
  5130. serviceTimes: _this.insureList[index].amount,
  5131. kindCode: _this.insureList[index].kindCode,
  5132. kindName: _this.insureList[index].kindName
  5133. });
  5134. } else if (ele.amount != "0") {
  5135. _this.kindList.push({
  5136. amount: _this.insureList[index].amount,
  5137. kindCode: _this.insureList[index].kindCode,
  5138. kindName: _this.insureList[index].kindName
  5139. });
  5140. }
  5141. return ele;
  5142. });
  5143. } else {
  5144. _this.kindList = [];
  5145. }
  5146. // if (_this.orderno) {
  5147. this.OrderStageProcessing();
  5148. // } else {
  5149. // _this.$api.letter.getquote().then(res => {
  5150. // _this.quoteno = res.data; //获取报价号
  5151. // this.OrderStageProcessing();
  5152. // });
  5153. // }
  5154. }
  5155. } else {
  5156. document.getElementById("CheZhu").scrollIntoView();
  5157. _this.$message({ message: "请检查人员信息", type: "warning" });
  5158. }
  5159. });
  5160. } else {
  5161. document.getElementById("Car").scrollIntoView();
  5162. this.$message({ message: "请检查车辆信息", type: "warning" });
  5163. return false;
  5164. }
  5165. });
  5166. },
  5167. //动态函数
  5168. ToolClickFun(MethodName, Parameter, companyId, companyName) {
  5169. this[`${MethodName}`](Parameter, companyId, companyName);
  5170. },
  5171. //更新报价历史
  5172. QuotationHistory() {
  5173. let params = {
  5174. orderNo: this.orderno,
  5175. orderStatus: ""
  5176. };
  5177. this.$api.letter.queryQuoteHistory(params).then(res => {
  5178. res.data.forEach(item => {
  5179. if (item.accidentInfo) {
  5180. item.accidentInfo.constructor === Object
  5181. ? [item.accidentInfo]
  5182. : item.accidentInfo;
  5183. }
  5184. });
  5185. this.HistoryList = res.data;
  5186. });
  5187. },
  5188. open2(Name, Msg) {
  5189. this.$notify.info({
  5190. title: Name,
  5191. dangerouslyUseHTMLString: true,
  5192. type: "warning",
  5193. message: Msg,
  5194. customClass: "customNotifyClass",
  5195. duration: 7000
  5196. });
  5197. },
  5198. open3(Name, Msg) {
  5199. this.$notify.info({
  5200. title: Name,
  5201. dangerouslyUseHTMLString: true,
  5202. type: "warning",
  5203. message: `<p>${Msg.replace(/\n/g, '<br>')}</p>`,
  5204. customClass: "customNotifyClass",
  5205. duration: 7000
  5206. });
  5207. },
  5208. openPredictInfo(Name, Msg) {
  5209. this.redictInfoMsg = Msg;
  5210. this.redictInfodialogVisible = true;
  5211. },
  5212. //订单生成前数据处理事件
  5213. OrderStageProcessing() {
  5214. if (this.tbczcarShow && this.imageList2.length > 0) {
  5215. //投保人同车主
  5216. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  5217. if (this.imageList3.length == 1 ) {
  5218. this.imageList3[0].imageType = this.imageList3[0].imageType.includes('C0')?"C03":'D03'
  5219. }
  5220. else {
  5221. this.imageList3.forEach(e=>{
  5222. e.imageType= e.imageType.includes('C0')?"C03":'D03'
  5223. })
  5224. }
  5225. }
  5226. if (this.bbczcarShow && this.imageList2.length > 0) {
  5227. //被保人同车主
  5228. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  5229. if (this.imageList4.length == 1 ) {
  5230. this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0')?"C04":'D04'
  5231. }
  5232. else {
  5233. this.imageList4.forEach(e=>{
  5234. e.imageType= e.imageType.includes('C0')?"C04":'D04'
  5235. })
  5236. }
  5237. // if (this.imageList4.length == 1) {
  5238. // this.imageList4[0].imageType = "C04";
  5239. // }
  5240. // else {
  5241. // this.imageList4[0].imageType = "C04";
  5242. // this.imageList4[1].imageType = "D04";
  5243. // }
  5244. }
  5245. if (this.bbtbcarShow && this.imageList3.length > 0) {
  5246. //被保人同投保人
  5247. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  5248. if (this.imageList4.length == 1 ) {
  5249. this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0')?"C04":'D04'
  5250. }
  5251. else {
  5252. this.imageList4.forEach(e=>{
  5253. e.imageType= e.imageType.includes('C0')?"C04":'D04'
  5254. })
  5255. }
  5256. // if (this.imageList4.length == 1) {
  5257. // this.imageList4[0].imageType = "C04";
  5258. // } else {
  5259. // this.imageList4[0].imageType = "C04";
  5260. // this.imageList4[1].imageType = "D04";
  5261. // }
  5262. }
  5263. //日期长度<10处理
  5264. const formatDate = date => {
  5265. if (date.length < 10) {
  5266. return this.timeformat(date);
  5267. }
  5268. return date;
  5269. };
  5270. if (this.carInfo.registerDate.length < 10) {
  5271. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  5272. }
  5273. if (this.carInfo.issueDate.length < 10) {
  5274. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  5275. }
  5276. if (
  5277. this.carInfo.transferDate &&
  5278. this.carInfo.transferDate.length < 10 &&
  5279. this.carInfo.transferDate !== ""
  5280. ) {
  5281. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  5282. }
  5283. //日期长度<10处理
  5284. //提交身份证/驾驶证 ——————————————————
  5285. this.policyHolderInfo.owner = this.tbczcarShow;
  5286. this.insuredPersonInfo.owner = this.bbczcarShow;
  5287. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  5288. if (typeof this.ownerInfo.provinceData == "string") {
  5289. this.ownerInfo.provinceData = [];
  5290. }
  5291. if (typeof this.insuredPersonInfo.provinceData == "string") {
  5292. this.insuredPersonInfo.provinceData = [];
  5293. }
  5294. if (typeof this.policyHolderInfo.provinceData == "string") {
  5295. this.policyHolderInfo.provinceData = [];
  5296. }
  5297. let param = {
  5298. userId: this.userId,
  5299. quoteno: this.quoteno,
  5300. orderNo: this.orderno,
  5301. carInfo: this.carInfo,
  5302. insuredPersonInfo: this.insuredPersonInfo,
  5303. ownerInfo: this.ownerInfo,
  5304. policyHolderInfo: this.policyHolderInfo,
  5305. kindList: this.kindList,
  5306. riskList: this.riskList,
  5307. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5308. };
  5309. this.$api.letter[this.apiInterfaceName](param).then(res => {
  5310. if (res.code == "200") {
  5311. //上传图片
  5312. const mergedArray = [
  5313. ...this.imageList1,
  5314. ...this.imageList2,
  5315. ...this.imageList3,
  5316. ...this.imageList4,
  5317. ...this.imageList5
  5318. ];
  5319. if (mergedArray.length > 0) {
  5320. let imageparam = {
  5321. imageList: mergedArray,
  5322. quoteNo: res.data.quoteno
  5323. };
  5324. this.$api.letter.uploadImages(imageparam).then(responses => {
  5325. this.imageEcho(res.data.quoteno); // 获取图片
  5326. });
  5327. }
  5328. this.quoteno = res.data.quoteno;
  5329. this.orderno = res.data.orderno;
  5330. this.totalCompanyList.map((ele, index) => {
  5331. if (ele.checked) {
  5332. //动态调用报价接口
  5333. ele.quoteCode = 1;
  5334. ele.orderstatus = 0;
  5335. this.ToolClickFun(ele.cnName, index, ele.id, ele.namesimple);
  5336. }
  5337. });
  5338. } else if (res.code == 1001) {
  5339. this.$confirm("是否生成新订单?", "提示", {
  5340. confirmButtonText: "确定",
  5341. cancelButtonText: "取消",
  5342. type: "warning"
  5343. })
  5344. .then(() => {
  5345. this.orderno = "";
  5346. this.quoteno = "";
  5347. this.quote();
  5348. })
  5349. .catch(() => { });
  5350. } else {
  5351. this.$message({ message: res.msg, type: "warning" });
  5352. }
  5353. });
  5354. document.getElementById("company").scrollIntoView();
  5355. this.imageUploadShow = true;
  5356. },
  5357. //永安报价
  5358. yongan(num, id) {
  5359. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5360. let params = {
  5361. orderNo: this.orderno,
  5362. companyId: id,
  5363. agreementId: this.totalCompanyList[num].agreementId
  5364. };
  5365. this.$api.letter.yonganquote(params).then(res => {
  5366. this.totalCompanyList[num].msg = res.msg;
  5367. if (res.msg == "重复投保" && res.code == "501") {
  5368. if (!!res.data.jqStartDate && !res.data.syStartDate) {
  5369. this.jqstartDate = res.data.jqStartDate;
  5370. this.jqendDate = res.data.jqEndDate;
  5371. this.updateRiskDates(
  5372. "0507",
  5373. res.data.jqStartDate,
  5374. res.data.jqEndDate
  5375. );
  5376. let param = {
  5377. userId: this.userId,
  5378. quoteno: this.quoteno,
  5379. orderNo: this.orderno,
  5380. carInfo: this.carInfo,
  5381. insuredPersonInfo: this.insuredPersonInfo,
  5382. ownerInfo: this.ownerInfo,
  5383. policyHolderInfo: this.policyHolderInfo,
  5384. kindList: this.kindList,
  5385. riskList: this.riskList,
  5386. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  5387. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5388. };
  5389. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5390. this.yongan(num, id);
  5391. });
  5392. } else if (!!res.data.syStartDate && !res.data.jqStartDate) {
  5393. this.systartDate = res.data.syStartDate;
  5394. this.syendDate = res.data.syEndDate;
  5395. this.updateRiskDates(
  5396. "0510",
  5397. res.data.syStartDate,
  5398. res.data.syEndDate
  5399. );
  5400. let param = {
  5401. userId: this.userId,
  5402. quoteno: this.quoteno,
  5403. orderNo: this.orderno,
  5404. carInfo: this.carInfo,
  5405. insuredPersonInfo: this.insuredPersonInfo,
  5406. ownerInfo: this.ownerInfo,
  5407. policyHolderInfo: this.policyHolderInfo,
  5408. kindList: this.kindList,
  5409. riskList: this.riskList,
  5410. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5411. };
  5412. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5413. this.yongan(num, id);
  5414. });
  5415. } else if (!!res.data.syStartDate && !!res.data.jqStartDate) {
  5416. this.jqstartDate = res.data.jqStartDate;
  5417. this.jqendDate = res.data.jqEndDate;
  5418. this.systartDate = res.data.syStartDate;
  5419. this.syendDate = res.data.syEndDate;
  5420. this.updateRiskDates(
  5421. "0507",
  5422. res.data.jqStartDate,
  5423. res.data.jqEndDate
  5424. );
  5425. this.updateRiskDates(
  5426. "0510",
  5427. res.data.syStartDate,
  5428. res.data.syEndDate
  5429. );
  5430. let param = {
  5431. userId: this.userId,
  5432. quoteno: this.quoteno,
  5433. orderNo: this.orderno,
  5434. carInfo: this.carInfo,
  5435. insuredPersonInfo: this.insuredPersonInfo,
  5436. ownerInfo: this.ownerInfo,
  5437. policyHolderInfo: this.policyHolderInfo,
  5438. kindList: this.kindList,
  5439. riskList: this.riskList,
  5440. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5441. };
  5442. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5443. this.yongan(num, id);
  5444. });
  5445. } else {
  5446. this.totalCompanyList[num].quoteCode = "3";
  5447. this.totalCompanyList[num].msg = "重复投保";
  5448. }
  5449. } else if (
  5450. res.code == "500" ||
  5451. res.code == "502" ||
  5452. res.code == "-9999"
  5453. ) {
  5454. this.totalCompanyList[num].quoteCode = "-9999";
  5455. this.totalCompanyList[num].msg = res.msg;
  5456. } else {
  5457. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5458. this.totalCompanyList[num].lastYearMsg = "";
  5459. let dat = res.data.warnMessageList;
  5460. dat.map(ele => {
  5461. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5462. });
  5463. }
  5464. this.totalCompanyList[num].quoteCode = 200;
  5465. this.totalCompanyList[num].result = res.data;
  5466. this.QuotationHistory();
  5467. }
  5468. });
  5469. },
  5470. updateRiskDates(riskCode, startDate, endDate) {
  5471. for (let i = 0; i < this.riskList.length; i++) {
  5472. if (this.riskList[i].riskCode == riskCode) {
  5473. this.riskList[i].startDate = startDate;
  5474. this.riskList[i].endDate = endDate;
  5475. }
  5476. }
  5477. },
  5478. //中煤报价
  5479. zhongmei(num, id) {
  5480. let accidentalDrivingVo = {};
  5481. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5482. // if (this.accidentFormZM.projectCode) {
  5483. // accidentalDrivingVo = {
  5484. // projectCode: this.accidentFormZM.projectCode,
  5485. // projectName: this.accidentFormZM.projectName,
  5486. // quantity: this.accidentFormZM.quantity
  5487. // ? this.accidentFormZM.quantity
  5488. // : "1"
  5489. // };
  5490. // }
  5491. if (this.accidentFormZM.projectCode) {
  5492. accidentalDrivingVo = {
  5493. ...this.zhongmeiInsuranceData.find(e=>e.projectCode==this.accidentFormZM.projectCode),
  5494. quantity: this.accidentFormZM.quantity
  5495. ? this.accidentFormZM.quantity
  5496. : "1"
  5497. };
  5498. }
  5499. let params = {
  5500. accidentalDrivingVo,
  5501. orderNo: this.orderno,
  5502. companyId: id,
  5503. agreementId: this.totalCompanyList[num].agreementId,
  5504. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5505. };
  5506. this.$api.letter.zhongmeiquote(params).then(res => {
  5507. this.totalCompanyList[num].msg = res.msg;
  5508. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5509. this.totalCompanyList[num].quoteCode = "4";
  5510. this.totalCompanyList[num].msg = res.msg;
  5511. return;
  5512. } else if (
  5513. res.data == null &&
  5514. res.msg.indexOf("交强险平台返回") > -1 &&
  5515. res.msg.indexOf(";终保日期") > -1
  5516. ) {
  5517. this.totalCompanyList[num].lastYearMsg =
  5518. "<b>交强险</b><br>" +
  5519. res.msg.slice(
  5520. res.msg.indexOf("起保日期 "),
  5521. res.msg.indexOf("地区 山西。") + 6
  5522. );
  5523. let time =
  5524. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5525. this.jqstartDate = time;
  5526. this.jqendDate = this.oneYearPast1(time);
  5527. if (this.riskList.length > 0) {
  5528. for (let i = 0; i < this.riskList.length; i++) {
  5529. if (this.riskList[i].riskCode == "0507") {
  5530. this.riskList[i].startDate = time;
  5531. this.riskList[i].endDate = this.oneYearPast1(time);
  5532. }
  5533. }
  5534. }
  5535. let param = {
  5536. userId: this.userId,
  5537. quoteno: this.quoteno,
  5538. orderNo: this.orderno,
  5539. carInfo: this.carInfo,
  5540. insuredPersonInfo: this.insuredPersonInfo,
  5541. ownerInfo: this.ownerInfo,
  5542. policyHolderInfo: this.policyHolderInfo,
  5543. kindList: this.kindList,
  5544. riskList: this.riskList,
  5545. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5546. };
  5547. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5548. this.zhongmei(num, id);
  5549. });
  5550. } else if (!!res.data) {
  5551. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5552. this.totalCompanyList[num].lastYearMsg = "";
  5553. let dat = res.data.warnMessageList;
  5554. dat.map(ele => {
  5555. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5556. });
  5557. }
  5558. this.totalCompanyList[num].quoteCode = 200;
  5559. this.totalCompanyList[num].result = res.data;
  5560. this.QuotationHistory();
  5561. } else {
  5562. this.totalCompanyList[num].quoteCode = "3";
  5563. this.totalCompanyList[num].msg = res.msg;
  5564. return;
  5565. }
  5566. });
  5567. },
  5568. // 大家报价
  5569. dajia(num, id) {
  5570. // let accidentalDrivingVo=[]
  5571. // if(this.dajiaaccidentalDrivingVo){
  5572. // accidentalDrivingVo.rideRiskCode=this.dajiaaccidentalDrivingVo.schemeNo;
  5573. // accidentalDrivingVo.rideRiskName=this.dajiaaccidentalDrivingVo.cvrgName;
  5574. // accidentalDrivingVo.quantity=this.dajiaaccidentalDrivingVo.quantity;
  5575. // }
  5576. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5577. let params = {
  5578. accidentalDrivingVo: this.dajiaaccidentalDrivingVo,
  5579. orderNo: this.orderno,
  5580. companyId: id,
  5581. agreementId: this.totalCompanyList[num].agreementId,
  5582. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5583. };
  5584. this.$api.letter.dajiaquote(params).then(res => {
  5585. this.totalCompanyList[num].msg = res.msg;
  5586. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5587. this.totalCompanyList[num].quoteCode = "4";
  5588. this.totalCompanyList[num].msg = res.msg;
  5589. return;
  5590. } else if (
  5591. res.data == null &&
  5592. res.msg.indexOf("交强险平台返回") > -1 &&
  5593. res.msg.indexOf(";终保日期") > -1
  5594. ) {
  5595. this.totalCompanyList[num].lastYearMsg =
  5596. "<b>交强险</b><br>" +
  5597. res.msg.slice(
  5598. res.msg.indexOf("起保日期 "),
  5599. res.msg.indexOf("地区 山西。") + 6
  5600. );
  5601. let time =
  5602. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5603. this.jqstartDate = time;
  5604. this.jqendDate = this.oneYearPast1(time);
  5605. if (this.riskList.length > 0) {
  5606. for (let i = 0; i < this.riskList.length; i++) {
  5607. if (this.riskList[i].riskCode == "0507") {
  5608. this.riskList[i].startDate = time;
  5609. this.riskList[i].endDate = this.oneYearPast1(time);
  5610. }
  5611. }
  5612. }
  5613. let param = {
  5614. userId: this.userId,
  5615. quoteno: this.quoteno,
  5616. orderNo: this.orderno,
  5617. carInfo: this.carInfo,
  5618. insuredPersonInfo: this.insuredPersonInfo,
  5619. ownerInfo: this.ownerInfo,
  5620. policyHolderInfo: this.policyHolderInfo,
  5621. kindList: this.kindList,
  5622. riskList: this.riskList,
  5623. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5624. };
  5625. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5626. this.dajia(num, id);
  5627. });
  5628. } else if (!!res.data) {
  5629. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5630. this.totalCompanyList[num].lastYearMsg = "";
  5631. let dat = res.data.warnMessageList;
  5632. dat.map(ele => {
  5633. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5634. });
  5635. }
  5636. this.totalCompanyList[num].quoteCode = 200;
  5637. this.totalCompanyList[num].result = res.data;
  5638. this.QuotationHistory();
  5639. } else {
  5640. this.totalCompanyList[num].quoteCode = "3";
  5641. this.totalCompanyList[num].msg = res.msg;
  5642. return;
  5643. }
  5644. });
  5645. },
  5646. //华泰报价
  5647. huatai(num, id) {
  5648. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5649. let params = {
  5650. orderNo: this.orderno,
  5651. companyId: id,
  5652. agreementId: this.totalCompanyList[num].agreementId,
  5653. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5654. };
  5655. this.$api.letter.huataiquote(params).then(res => {
  5656. this.totalCompanyList[num].msg = res.msg;
  5657. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5658. this.totalCompanyList[num].quoteCode = "4";
  5659. this.totalCompanyList[num].msg = res.msg;
  5660. return;
  5661. } else if (
  5662. res.data == null &&
  5663. res.msg.indexOf("交强险平台返回") > -1 &&
  5664. res.msg.indexOf(";终保日期") > -1
  5665. ) {
  5666. //判断保司返回重复投保信息,进行默认赋值起终保日期,重新算费 后面联调需要调整
  5667. let time =
  5668. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5669. this.jqstartDate = time;
  5670. this.jqendDate = this.oneYearPast1(time);
  5671. this.systartDate = time;
  5672. this.syendDate = this.oneYearPast1(time);
  5673. if (this.riskList.length > 0) {
  5674. for (let i = 0; i < this.riskList.length; i++) {
  5675. if (this.riskList[i].riskCode == "0507") {
  5676. this.riskList[i].startDate = time;
  5677. this.riskList[i].endDate = this.oneYearPast1(time);
  5678. } else if (this.riskList[i].riskCode == "0510") {
  5679. this.riskList[i].startDate = time;
  5680. this.riskList[i].endDate = this.oneYearPast1(time);
  5681. }
  5682. }
  5683. }
  5684. let param = {
  5685. userId: this.userId,
  5686. quoteno: this.quoteno,
  5687. orderNo: this.orderno,
  5688. carInfo: this.carInfo,
  5689. insuredPersonInfo: this.insuredPersonInfo,
  5690. ownerInfo: this.ownerInfo,
  5691. policyHolderInfo: this.policyHolderInfo,
  5692. kindList: this.kindList,
  5693. riskList: this.riskList,
  5694. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5695. };
  5696. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5697. this.huatai(num, id);
  5698. });
  5699. } else if (!!res.data) {
  5700. this.totalCompanyList[num].quoteCode = 200;
  5701. this.totalCompanyList[num].result = res.data;
  5702. this.QuotationHistory();
  5703. } else {
  5704. this.totalCompanyList[num].quoteCode = "3";
  5705. this.totalCompanyList[num].msg = res.msg;
  5706. return;
  5707. }
  5708. });
  5709. },
  5710. //紫金报价
  5711. zijin(num, id) {
  5712. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5713. let params = {
  5714. accidentalDrivingVo: this.accidentalDrivingVo,
  5715. orderNo: this.orderno,
  5716. companyId: id,
  5717. agreementId: this.totalCompanyList[num].agreementId,
  5718. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5719. coefficient: this.totalCompanyList[num].coefficient
  5720. };
  5721. this.$api.letter.zijinquote(params).then(res => {
  5722. this.totalCompanyList[num].msg = res.msg;
  5723. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5724. this.totalCompanyList[num].quoteCode = "4";
  5725. this.totalCompanyList[num].msg = res.msg;
  5726. return;
  5727. } else if (
  5728. res.data == null &&
  5729. res.msg.indexOf("交强险平台返回") > -1 &&
  5730. res.msg.indexOf(";终保日期") > -1
  5731. ) {
  5732. let time =
  5733. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5734. this.jqstartDate = time;
  5735. this.jqendDate = this.oneYearPast1(time);
  5736. this.systartDate = time;
  5737. this.syendDate = this.oneYearPast1(time);
  5738. if (this.riskList.length > 0) {
  5739. for (let i = 0; i < this.riskList.length; i++) {
  5740. if (this.riskList[i].riskCode == "0507") {
  5741. this.riskList[i].startDate = time;
  5742. this.riskList[i].endDate = this.oneYearPast1(time);
  5743. } else if (this.riskList[i].riskCode == "0510") {
  5744. this.riskList[i].startDate = time;
  5745. this.riskList[i].endDate = this.oneYearPast1(time);
  5746. }
  5747. }
  5748. }
  5749. let param = {
  5750. userId: this.userId,
  5751. quoteno: this.quoteno,
  5752. orderNo: this.orderno,
  5753. carInfo: this.carInfo,
  5754. insuredPersonInfo: this.insuredPersonInfo,
  5755. ownerInfo: this.ownerInfo,
  5756. policyHolderInfo: this.policyHolderInfo,
  5757. kindList: this.kindList,
  5758. riskList: this.riskList,
  5759. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5760. };
  5761. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5762. this.zijin(num, id);
  5763. });
  5764. } else if (!!res.data) {
  5765. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5766. this.totalCompanyList[num].lastYearMsg = "";
  5767. let dat = res.data.warnMessageList;
  5768. dat.map(ele => {
  5769. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5770. });
  5771. }
  5772. this.totalCompanyList[num].quoteCode = 200;
  5773. this.totalCompanyList[num].result = res.data;
  5774. this.QuotationHistory();
  5775. } else {
  5776. this.totalCompanyList[num].quoteCode = "3";
  5777. this.totalCompanyList[num].msg = res.msg;
  5778. return;
  5779. }
  5780. });
  5781. },
  5782. //永诚报价
  5783. yongcheng(num, id) {
  5784. this.iscCrownerShow = false;
  5785. this.isInsuredShow = false;
  5786. this.isApplicantShow = false;
  5787. let accidentalDrivingVo = {};
  5788. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5789. if (this.accidentForm.projectCode) {
  5790. let data= this.accidentDataList.find(
  5791. val => val.projectCode == this.yongchengtemplateSelection
  5792. );
  5793. accidentalDrivingVo = {
  5794. ...data,
  5795. quantity: this.accidentForm.quantity ? this.accidentForm.quantity : ""
  5796. };
  5797. }
  5798. let params = {
  5799. accidentalDrivingVo,
  5800. orderNo: this.orderno,
  5801. companyId: id,
  5802. cqryCdeJq: this.cqryCdeJq,
  5803. cqryCdeSy: this.cqryCdeSy,
  5804. renewalCodeJq: this.renewalCodeJq,
  5805. renewalCodeSy: this.renewalCodeSy,
  5806. agreementId: this.totalCompanyList[num].agreementId,
  5807. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5808. };
  5809. this.$api.letter.yongchengquote(params).then(res => {
  5810. this.totalCompanyList[num].msg = res.msg;
  5811. if (
  5812. res.data == null &&
  5813. res.msg.indexOf("车险平台返回") > -1 &&
  5814. res.msg.indexOf(";终保日期") > -1
  5815. ) {
  5816. let time =
  5817. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5818. this.jqstartDate = time;
  5819. this.jqendDate = this.oneYearPast1(time);
  5820. if (this.riskList.length > 0) {
  5821. for (let i = 0; i < this.riskList.length; i++) {
  5822. if (this.riskList[i].riskCode == "0507") {
  5823. this.riskList[i].startDate = time;
  5824. this.riskList[i].endDate = this.oneYearPast1(time);
  5825. }
  5826. }
  5827. }
  5828. let param = {
  5829. userId: this.userId,
  5830. quoteno: this.quoteno,
  5831. orderNo: this.orderno,
  5832. carInfo: this.carInfo,
  5833. insuredPersonInfo: this.insuredPersonInfo,
  5834. ownerInfo: this.ownerInfo,
  5835. policyHolderInfo: this.policyHolderInfo,
  5836. kindList: this.kindList,
  5837. riskList: this.riskList,
  5838. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5839. };
  5840. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5841. this.yongcheng(num, id);
  5842. });
  5843. } else if (res.code == "200") {
  5844. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5845. this.totalCompanyList[num].lastYearMsg = "";
  5846. let dat = res.data.warnMessageList;
  5847. dat.map(ele => {
  5848. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5849. });
  5850. }
  5851. this.totalCompanyList[num].quoteCode = 200;
  5852. this.totalCompanyList[num].result = res.data;
  5853. this.QuotationHistory();
  5854. } else if (res.code == "101") {
  5855. this.totalCompanyList[num].quoteCode = "101";
  5856. this.totalCompanyList[num].msg = res.msg;
  5857. this.cqryCdeJq = res.data.cqryCdeJq;
  5858. this.cqryCdeSy = res.data.cqryCdeSy;
  5859. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  5860. let jqBase64 = `data:image/png;base64,${jq}`;
  5861. this.renewalCodeJqImg = jqBase64;
  5862. if (res.data.renewalCodeSy) {
  5863. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  5864. let syBase64 = `data:image/png;base64,${sy}`;
  5865. this.renewalCodeSyImg = syBase64;
  5866. }
  5867. this.renewalCodedialogVisible = true;
  5868. } else if (res.code == "500") {
  5869. // this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
  5870. // this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
  5871. // this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
  5872. // this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
  5873. // this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
  5874. // this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
  5875. this.totalCompanyList[num].quoteCode = "3";
  5876. this.totalCompanyList[num].msg = res.msg;
  5877. } else {
  5878. this.totalCompanyList[num].quoteCode = "3";
  5879. this.totalCompanyList[num].msg = res.msg;
  5880. return;
  5881. }
  5882. });
  5883. },
  5884. //国任报价
  5885. guoRen(num, id) {
  5886. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5887. let guoRenSpecialAgreementVo = [];
  5888. this.zijinengageList.forEach(val => {
  5889. guoRenSpecialAgreementVo.push({
  5890. clauses: val.clauseName,
  5891. clausesContext: val.clauses,
  5892. clauseCode: val.clauseCode,
  5893. riskCode: val.riskCode,
  5894. riskName: val.riskName
  5895. });
  5896. });
  5897. let accidentalDrivingVo = {};
  5898. if (this.guoRenaccidentForm.goodsCode) {
  5899. accidentalDrivingVo = this.guoRenaccidentalDrivingVo
  5900. }
  5901. let params = {
  5902. accidentalDrivingVo,
  5903. orderNo: this.orderno,
  5904. companyId: id,
  5905. cqryCdeJq: this.cqryCdeJq,
  5906. cqryCdeSy: this.cqryCdeSy,
  5907. renewalCodeJq: this.renewalCodeJq,
  5908. renewalCodeSy: this.renewalCodeSy,
  5909. agreementId: this.totalCompanyList[num].agreementId,
  5910. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  5911. guoRenSpecialAgreementVo
  5912. };
  5913. this.$api.letter.guorenquote(params).then(res => {
  5914. this.totalCompanyList[num].msg = res.msg;
  5915. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  5916. this.totalCompanyList[num].quoteCode = "4";
  5917. this.totalCompanyList[num].msg = res.msg;
  5918. return;
  5919. } else if (
  5920. res.data == null &&
  5921. res.msg.indexOf("车险平台返回") > -1 &&
  5922. res.msg.indexOf(";终保日期") > -1
  5923. ) {
  5924. let time =
  5925. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  5926. this.jqstartDate = time;
  5927. this.jqendDate = this.oneYearPast1(time);
  5928. this.systartDate = time;
  5929. this.syendDate = this.oneYearPast1(time);
  5930. if (this.riskList.length > 0) {
  5931. for (let i = 0; i < this.riskList.length; i++) {
  5932. if (this.riskList[i].riskCode == "0507") {
  5933. this.riskList[i].startDate = time;
  5934. this.riskList[i].endDate = this.oneYearPast1(time);
  5935. } else if (this.riskList[i].riskCode == "0510") {
  5936. this.riskList[i].startDate = time;
  5937. this.riskList[i].endDate = this.oneYearPast1(time);
  5938. }
  5939. }
  5940. }
  5941. let param = {
  5942. userId: this.userId,
  5943. quoteno: this.quoteno,
  5944. orderNo: this.orderno,
  5945. carInfo: this.carInfo,
  5946. insuredPersonInfo: this.insuredPersonInfo,
  5947. ownerInfo: this.ownerInfo,
  5948. policyHolderInfo: this.policyHolderInfo,
  5949. kindList: this.kindList,
  5950. riskList: this.riskList,
  5951. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  5952. };
  5953. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  5954. this.guoRen(num, id);
  5955. });
  5956. } else if (res.code == "200") {
  5957. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  5958. this.totalCompanyList[num].lastYearMsg = "";
  5959. let dat = res.data.warnMessageList;
  5960. dat.map(ele => {
  5961. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  5962. });
  5963. }
  5964. this.totalCompanyList[num].quoteCode = 200;
  5965. this.totalCompanyList[num].result = res.data;
  5966. this.QuotationHistory();
  5967. } else if (res.code == "101") {
  5968. this.totalCompanyList[num].quoteCode = "101";
  5969. this.totalCompanyList[num].msg = res.msg;
  5970. this.cqryCdeJq = res.data.cqryCdeJq;
  5971. this.cqryCdeSy = res.data.cqryCdeSy;
  5972. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  5973. let jqBase64 = `data:image/png;base64,${jq}`;
  5974. this.renewalCodeJqImg = jqBase64;
  5975. if (res.data.renewalCodeSy) {
  5976. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  5977. let syBase64 = `data:image/png;base64,${sy}`;
  5978. this.renewalCodeSyImg = syBase64;
  5979. }
  5980. this.renewalCodedialogVisible = true;
  5981. } else {
  5982. this.totalCompanyList[num].quoteCode = "3";
  5983. this.totalCompanyList[num].msg = res.msg;
  5984. return;
  5985. }
  5986. });
  5987. },
  5988. //渤海报价
  5989. bohai(num, id) {
  5990. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  5991. let accidentalDrivingVo = [];
  5992. if (this.boHaiaccidentForm.packageCode) {
  5993. accidentalDrivingVo = [
  5994. {
  5995. packageCode: this.boHaiaccidentForm.packageCode,
  5996. productCode: this.boHaiaccidentDataList.find(
  5997. e => e.packageCode == this.boHaiaccidentForm.packageCode
  5998. ).productCode,
  5999. copies: this.boHaiaccidentForm.copies
  6000. }
  6001. ];
  6002. }
  6003. let params = {
  6004. accidentalDrivingVo,
  6005. orderNo: this.orderno,
  6006. companyId: id,
  6007. cqryCdeJq: this.cqryCdeJq,
  6008. cqryCdeSy: this.cqryCdeSy,
  6009. renewalCodeJq: this.renewalCodeJq,
  6010. renewalCodeSy: this.renewalCodeSy,
  6011. agreementId: this.totalCompanyList[num].agreementId,
  6012. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  6013. userId: this.userId
  6014. };
  6015. this.$api.letter.bohaiquote(params).then(res => {
  6016. this.totalCompanyList[num].msg = res.msg;
  6017. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  6018. this.totalCompanyList[num].quoteCode = "4";
  6019. this.totalCompanyList[num].msg = res.msg;
  6020. return;
  6021. } else if (
  6022. res.data == null &&
  6023. res.msg.indexOf("车险平台返回") > -1 &&
  6024. res.msg.indexOf(";终保日期") > -1
  6025. ) {
  6026. let time =
  6027. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  6028. this.jqstartDate = time;
  6029. this.jqendDate = this.oneYearPast1(time);
  6030. this.systartDate = time;
  6031. this.syendDate = this.oneYearPast1(time);
  6032. if (this.riskList.length > 0) {
  6033. for (let i = 0; i < this.riskList.length; i++) {
  6034. if (this.riskList[i].riskCode == "0507") {
  6035. this.riskList[i].startDate = time;
  6036. this.riskList[i].endDate = this.oneYearPast1(time);
  6037. } else if (this.riskList[i].riskCode == "0510") {
  6038. this.riskList[i].startDate = time;
  6039. this.riskList[i].endDate = this.oneYearPast1(time);
  6040. }
  6041. }
  6042. }
  6043. let param = {
  6044. userId: this.userId,
  6045. quoteno: this.quoteno,
  6046. orderNo: this.orderno,
  6047. carInfo: this.carInfo,
  6048. insuredPersonInfo: this.insuredPersonInfo,
  6049. ownerInfo: this.ownerInfo,
  6050. policyHolderInfo: this.policyHolderInfo,
  6051. kindList: this.kindList,
  6052. riskList: this.riskList,
  6053. vehicleAndVesselTax: this.vehicleAndVesselTaxForm
  6054. };
  6055. return this.$api.letter[this.apiInterfaceName](param).then(res => {
  6056. this.bohai(num, id);
  6057. });
  6058. } else if (res.code == "200") {
  6059. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  6060. this.totalCompanyList[num].lastYearMsg = "";
  6061. let dat = res.data.warnMessageList;
  6062. dat.map(ele => {
  6063. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  6064. });
  6065. }
  6066. this.totalCompanyList[num].quoteCode = 200;
  6067. this.totalCompanyList[num].result = res.data;
  6068. this.QuotationHistory();
  6069. } else if (res.code == "101") {
  6070. this.totalCompanyList[num].quoteCode = "101";
  6071. this.totalCompanyList[num].msg = res.msg;
  6072. this.cqryCdeJq = res.data.cqryCdeJq;
  6073. this.cqryCdeSy = res.data.cqryCdeSy;
  6074. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  6075. let jqBase64 = `data:image/png;base64,${jq}`;
  6076. this.renewalCodeJqImg = jqBase64;
  6077. if (res.data.renewalCodeSy) {
  6078. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  6079. let syBase64 = `data:image/png;base64,${sy}`;
  6080. this.renewalCodeSyImg = syBase64;
  6081. }
  6082. this.renewalCodedialogVisible = true;
  6083. } else {
  6084. this.totalCompanyList[num].quoteCode = "3";
  6085. this.totalCompanyList[num].msg = res.msg;
  6086. return;
  6087. }
  6088. });
  6089. },
  6090. // 爬虫对接
  6091. quoteInsurance(num, id, namesimple, apiType) {
  6092. let api = apiType == 2 ? "pythonquote" : "anshengquote";
  6093. let ccidenttype = this.totalCompanyList[num].cnName;
  6094. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  6095. let params = {
  6096. accidentalDrivingVo: this[ccidenttype + "accidentalDrivingVo"],
  6097. orderNo: this.orderno,
  6098. companyId: id,
  6099. userId: this.userId,
  6100. agreementId: this.totalCompanyList[num].agreementId,
  6101. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  6102. };
  6103. if (namesimple == "中国人寿" && this.lastCompanyId) {
  6104. params.discount = this.totalCompanyList[num].discount;
  6105. params.lastCompanyId = this.lastCompanyId;
  6106. }
  6107. if (namesimple == "华农财险" && this.huanongaccidentalDrivingVo.quantity) {
  6108. params.accidentalDrivingVo.quantity = this.accidentFormHN.quantity;
  6109. // params.accidentalDrivingVo.allQuantity = this.accidentFormHN.allQuantity;
  6110. }
  6111. this.$api.letter[api](params).then(res => {
  6112. this.totalCompanyList[num].msg = res.msg;
  6113. switch (namesimple) {
  6114. case "安盛天平":
  6115. case "中国人寿":
  6116. case "恒邦财险":
  6117. case "华农财险":
  6118. case "太平财险":
  6119. if (!!res.data) {
  6120. if (
  6121. res.data.warnMessageList &&
  6122. res.data.warnMessageList.length > 0
  6123. ) {
  6124. this.totalCompanyList[num].lastYearMsg = "";
  6125. let dat = res.data.warnMessageList;
  6126. dat.map(ele => {
  6127. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  6128. });
  6129. }
  6130. if (res.data.predictInfo && res.data.predictInfo.length > 0) {
  6131. this.totalCompanyList[num].predictInfo = res.data.predictInfo;
  6132. }
  6133. this.totalCompanyList[num].quoteCode = 200;
  6134. this.totalCompanyList[num].result = res.data;
  6135. if (namesimple == "中国人寿" && res.data.companyId) {
  6136. this.lastCompanyId = res.data.companyId;
  6137. }
  6138. this.QuotationHistory();
  6139. } else {
  6140. this.totalCompanyList[num].quoteCode = "3";
  6141. this.totalCompanyList[num].msg = res.msg;
  6142. return;
  6143. }
  6144. break;
  6145. case "众安财险":
  6146. if (!!res.data) {
  6147. if (res.data.tips == "需要验车") {
  6148. this.$notify.error({
  6149. title: "通融单",
  6150. duration: 0,
  6151. dangerouslyUseHTMLString: true,
  6152. message: `<div> ${res.data.warnMessageList
  6153. .map(item => {
  6154. return `<p>${item}</p>`;
  6155. })
  6156. .join("")}
  6157. </div>`
  6158. });
  6159. }
  6160. if (
  6161. res.data.warnMessageList &&
  6162. res.data.warnMessageList.length > 0
  6163. ) {
  6164. this.totalCompanyList[num].lastYearMsg = "";
  6165. let dat = res.data.warnMessageList;
  6166. dat.map(ele => {
  6167. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  6168. });
  6169. }
  6170. this.totalCompanyList[num].quoteCode = 200;
  6171. this.totalCompanyList[num].result = res.data;
  6172. this.QuotationHistory();
  6173. } else {
  6174. this.totalCompanyList[num].quoteCode = "3";
  6175. this.totalCompanyList[num].msg = res.msg;
  6176. return;
  6177. }
  6178. break;
  6179. default:
  6180. break;
  6181. }
  6182. });
  6183. },
  6184. //安盛天平
  6185. ansheng(num, id, namesimple) {
  6186. this.quoteInsurance(
  6187. num,
  6188. id,
  6189. namesimple,
  6190. this.totalCompanyList[num].apiType
  6191. );
  6192. },
  6193. //众安
  6194. zhongan(num, id, namesimple) {
  6195. this.quoteInsurance(
  6196. num,
  6197. id,
  6198. namesimple,
  6199. this.totalCompanyList[num].apiType
  6200. );
  6201. },
  6202. //人寿
  6203. renshou(num, id, namesimple) {
  6204. this.quoteInsurance(
  6205. num,
  6206. id,
  6207. namesimple,
  6208. this.totalCompanyList[num].apiType
  6209. );
  6210. },
  6211. //恒邦
  6212. hengbang(num, id, namesimple) {
  6213. this.quoteInsurance(
  6214. num,
  6215. id,
  6216. namesimple,
  6217. this.totalCompanyList[num].apiType
  6218. );
  6219. },
  6220. //太平
  6221. taiping(num, id, namesimple) {
  6222. this.quoteInsurance(
  6223. num,
  6224. id,
  6225. namesimple,
  6226. this.totalCompanyList[num].apiType
  6227. );
  6228. },
  6229. //华农
  6230. huanong(num, id, namesimple) {
  6231. this.quoteInsurance(
  6232. num,
  6233. id,
  6234. namesimple,
  6235. this.totalCompanyList[num].apiType
  6236. );
  6237. },
  6238. capTypedictTag(val,option) {
  6239. if(option.find(item => item.dictValue == val)){
  6240. return option.find(item => item.dictValue == val).dictTag;
  6241. }
  6242. else{
  6243. return '-'
  6244. }
  6245. },
  6246. // 爬虫对接
  6247. qoutedetail(companyId) {
  6248. let params = {
  6249. companyId: companyId
  6250. };
  6251. this.$api.letter.getByCompanyId(params).then(res => {
  6252. if (res.code == "200") {
  6253. var data = res.data;
  6254. data.kindinfo.map((ele, index) => {
  6255. switch (ele.kindCode) {
  6256. case "A":
  6257. ele.amount = "投保";
  6258. break;
  6259. case "D4":
  6260. case "SY_FJ_YBW2":
  6261. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  6262. break;
  6263. case "MJ1":
  6264. case "MJ2":
  6265. case "MJ3":
  6266. case "MJ4":
  6267. ele.deductibleRate = ele.deductibleRate + "%";
  6268. break;
  6269. default:
  6270. ele.amount = this.toChinesNum(ele.amount);
  6271. }
  6272. return ele;
  6273. });
  6274. if(data.carinfo.carnature && data.carinfo.carnature == '02' || data.carinfo.carnature == '非营业'){
  6275. data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.outOfBusinessVehicleUseoptions)
  6276. }else{
  6277. data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.businessVehicleUseoptions)
  6278. }
  6279. data.carinfo.carnature = this.capTypedictTag(data.carinfo.carnature,this.natureOfVehicleUseoptions);
  6280. data.carinfo.cartype=data.carinfo.cartype?this.capTypedictTag(data.carinfo.cartype,this.trafficManagementVehicleTypeoptions):''
  6281. data.carinfo.cimodelclass=data.carinfo.cimodelclass?this.capTypedictTag(data.carinfo.cimodelclass,this.vehicleTypeoptions):''
  6282. data.carinfo.energyType=data.carinfo.energyType?this.capTypedictTag(data.carinfo.energyType,this.energyTypeoptions):''
  6283. this.queryOrders = data;
  6284. //赋值费用信息
  6285. // this.feeDetailInfo=data.orderFeeResult;
  6286. }
  6287. });
  6288. this.$refs.detailsDialog.setBackupVisible(true);
  6289. },
  6290. imageUpload() {
  6291. this.imageUploaddialogVisible = true;
  6292. },
  6293. cancelorder(item) {
  6294. this.$api.letter.zijincancelorder({ companyId: item.id }).then(res => {
  6295. if (res.code == 200) {
  6296. this.$message({
  6297. message: res.msg,
  6298. type: "success"
  6299. });
  6300. this.QuotationHistory();
  6301. }
  6302. });
  6303. },
  6304. imageEcho(quotenos) {
  6305. //影像查询
  6306. this.$api.letter.findByQuoteNo(quotenos).then(res => {
  6307. if (res.code == "200") {
  6308. this.imageList1 = [];
  6309. this.imageList2 = [];
  6310. this.imageList3 = [];
  6311. this.imageList4 = [];
  6312. this.imageList5 = [];
  6313. this.imgList1 = [];
  6314. this.imgList2 = [];
  6315. this.imgList3 = [];
  6316. this.imgList4 = [];
  6317. this.imgList5 = [];
  6318. this.imgList6 = [];
  6319. this.imgList7 = [];
  6320. this.imgList8 = [];
  6321. this.imgList9 = [];
  6322. this.imgList10 = [];
  6323. this.imgList11 = [];
  6324. Object.keys(res.data).forEach(keys => {
  6325. if (res.data[keys].url) {
  6326. res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
  6327. switch (keys) {
  6328. case "C01":
  6329. this.imageList1.push({
  6330. imageId: res.data[keys].imageId,
  6331. imageType: res.data[keys].imageType
  6332. });
  6333. this.imgList1.push(res.data[keys]);
  6334. break;
  6335. case "D01":
  6336. this.imageList1.push({
  6337. imageId: res.data[keys].imageId,
  6338. imageType: res.data[keys].imageType
  6339. });
  6340. this.imgList2.push(res.data[keys]);
  6341. break;
  6342. case "C02":
  6343. this.imageList2.push({
  6344. imageId: res.data[keys].imageId,
  6345. imageType: res.data[keys].imageType
  6346. });
  6347. this.imgList3.push(res.data[keys]);
  6348. break;
  6349. case "D02":
  6350. this.imageList2.push({
  6351. imageId: res.data[keys].imageId,
  6352. imageType: res.data[keys].imageType
  6353. });
  6354. this.imgList4.push(res.data[keys]);
  6355. break;
  6356. case "C03":
  6357. this.imageList3.push({
  6358. imageId: res.data[keys].imageId,
  6359. imageType: res.data[keys].imageType
  6360. });
  6361. this.imgList5.push(res.data[keys]);
  6362. break;
  6363. case "D03":
  6364. this.imageList3.push({
  6365. imageId: res.data[keys].imageId,
  6366. imageType: res.data[keys].imageType
  6367. });
  6368. this.imgList6.push(res.data[keys]);
  6369. break;
  6370. case "C04":
  6371. this.imageList4.push({
  6372. imageId: res.data[keys].imageId,
  6373. imageType: res.data[keys].imageType
  6374. });
  6375. this.imgList7.push(res.data[keys]);
  6376. break;
  6377. case "D04":
  6378. this.imageList4.push({
  6379. imageId: res.data[keys].imageId,
  6380. imageType: res.data[keys].imageType
  6381. });
  6382. this.imgList8.push(res.data[keys]);
  6383. break;
  6384. case "XC00":
  6385. this.imageList5.push({
  6386. imageId: res.data[keys].imageId,
  6387. imageType: res.data[keys].imageType
  6388. });
  6389. this.imgList9.push(res.data[keys]);
  6390. break;
  6391. case "GC00":
  6392. this.imageList5.push({
  6393. imageId: res.data[keys].imageId,
  6394. imageType: res.data[keys].imageType
  6395. });
  6396. this.imgList10.push(res.data[keys]);
  6397. break;
  6398. case "GX00":
  6399. this.imageList5.push({
  6400. imageId: res.data[keys].imageId,
  6401. imageType: res.data[keys].imageType
  6402. });
  6403. this.imgList11.push(res.data[keys]);
  6404. break;
  6405. default:
  6406. break;
  6407. }
  6408. }
  6409. });
  6410. } else {
  6411. this.$message({ message: res.msg, type: "info" });
  6412. }
  6413. });
  6414. },
  6415. hbsubmitdialog(data) {
  6416. if (this.imageList1.length == 0 && this.imageList2.length == 0) {
  6417. this.$message({ message: "影像不全,先上传影像", type: "error" });
  6418. return;
  6419. }
  6420. this.companyId = data.result.companyId;
  6421. this.apiType = data.apiType;
  6422. this.hbsubmitdialogVisible = true;
  6423. this.contributingState = false;
  6424. if (data.namesimple == "紫金财险") {
  6425. this.$api.letter
  6426. .zijinqueryClauseData({ companyId: this.companyId })
  6427. .then(res => {
  6428. this.zijinengageListData = res.data;
  6429. });
  6430. }
  6431. if (data.namesimple == "华泰财险") {
  6432. this.zijinengageList = [];
  6433. this.$api.letter
  6434. .huataiqueryClauseData({ companyId: this.companyId })
  6435. .then(res => {
  6436. res.data.forEach(val => {
  6437. val.clauseCode = val.engageCode;
  6438. val.clauseName = val.engageTitle;
  6439. val.clauseContent = val.engageDetail;
  6440. val.clauses = val.engageDetail;
  6441. });
  6442. this.zijinengageListData = res.data;
  6443. this.zijinengageListData.forEach(val => {
  6444. this.$nextTick(() => {
  6445. if (val.optType == "2") {
  6446. this.zijinengageList.push(val);
  6447. this.$refs.expandTablePro.toggleRowSelection(val, true);
  6448. }
  6449. });
  6450. });
  6451. });
  6452. } else {
  6453. this.zijinengageListData = [];
  6454. }
  6455. // switch (data.namesimple) {
  6456. // case "紫金财险":
  6457. // this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
  6458. // this.zijinengageListData = res.data;
  6459. // });
  6460. // break;
  6461. // default:
  6462. // break;
  6463. // }
  6464. },
  6465. hbsubmit() {
  6466. this.hbsubmitdialogVisible = false;
  6467. this.contributingState = false;
  6468. this.$api.letter
  6469. .getByCompanyId({ companyId: this.companyId })
  6470. .then(async res => {
  6471. if (res.code == 200) {
  6472. var data = res.data;
  6473. this.queryOrders = data;
  6474. const loading = this.$loading({
  6475. lock: true,
  6476. text: "Loading",
  6477. spinner: "el-icon-loading",
  6478. background: "rgba(0, 0, 0, 0.7)"
  6479. });
  6480. switch (this.queryOrders.inscompany) {
  6481. case "永安财险":
  6482. let api = "";
  6483. api =
  6484. this.apiType == 2
  6485. ? "pythonsubmitImage"
  6486. : "insyongansubmitImage";
  6487. await this.$api.letter[api]({
  6488. companyId: this.companyId
  6489. }).then(res => {
  6490. if (res.code == "200") {
  6491. var _this = this;
  6492. let api1 = "";
  6493. api1 = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
  6494. this.$api.letter[api1]({
  6495. companyId: this.companyId
  6496. }).then(res => {
  6497. var _this = this;
  6498. if (res.code == "200") {
  6499. loading.close();
  6500. this.$message({
  6501. message: "核保成功",
  6502. type: "success"
  6503. });
  6504. this.QuotationHistory();
  6505. _this.$api.letter
  6506. .getByCompanyId({ companyId: this.companyId })
  6507. .then(res => {
  6508. _this.orderstatus = res.data.orderstatus; //订单状态
  6509. _this.underwritingdialogVisible = true;
  6510. let indexid = this.totalCompanyList.findIndex(
  6511. item =>
  6512. item.namesimple == this.queryOrders.inscompany
  6513. );
  6514. this.totalCompanyList[indexid].orderstatus =
  6515. res.data.orderstatus;
  6516. });
  6517. } else {
  6518. loading.close();
  6519. this.$message({
  6520. showClose: true,
  6521. message:
  6522. this.queryOrders.inscompany + "提核--:" + res.msg,
  6523. type: "error",
  6524. duration: 0
  6525. });
  6526. }
  6527. });
  6528. } else {
  6529. this.$message({
  6530. message: this.queryOrders.inscompany + "影像:" + res.msg,
  6531. type: "error",
  6532. duration: 7000
  6533. });
  6534. loading.close();
  6535. }
  6536. });
  6537. break;
  6538. case "中煤财险":
  6539. await this.$api.letter
  6540. .insZhongmeisubmitImage({
  6541. companyId: this.companyId
  6542. })
  6543. .then(res => {
  6544. if (res.code == "200") {
  6545. var _this = this;
  6546. _this.$api.letter
  6547. .Zhongmeiaudit({
  6548. companyId: this.companyId,
  6549. jqappoint: "",
  6550. syappoint: ""
  6551. })
  6552. .then(res => {
  6553. if (res.code == "200") {
  6554. loading.close();
  6555. _this.$message({
  6556. message: "核保成功",
  6557. type: "success"
  6558. });
  6559. this.QuotationHistory();
  6560. _this.$api.letter
  6561. .getByCompanyId({ companyId: this.companyId })
  6562. .then(res => {
  6563. _this.orderstatus = res.data.orderstatus; //订单状态
  6564. _this.underwritingdialogVisible = true;
  6565. let indexid = this.totalCompanyList.findIndex(
  6566. item =>
  6567. item.namesimple ==
  6568. this.queryOrders.inscompany
  6569. );
  6570. this.totalCompanyList[indexid].orderstatus =
  6571. res.data.orderstatus;
  6572. });
  6573. } else {
  6574. loading.close();
  6575. _this.$message({
  6576. showClose: true,
  6577. message:
  6578. this.queryOrders.inscompany +
  6579. "提核--:" +
  6580. res.msg,
  6581. type: "error",
  6582. duration: 0
  6583. });
  6584. _this.$api.letter
  6585. .getByCompanyId({ companyId: this.companyId })
  6586. .then(res => {
  6587. _this.orderstatus = res.data.orderstatus; //订单状态
  6588. });
  6589. }
  6590. });
  6591. } else {
  6592. this.$message({
  6593. message:
  6594. this.queryOrders.inscompany + "影像--:" + res.msg,
  6595. type: "error",
  6596. duration: 7000
  6597. });
  6598. loading.close();
  6599. }
  6600. });
  6601. break;
  6602. case "华泰财险":
  6603. await this.$api.letter
  6604. .insHuataisubmitImage({
  6605. companyId: this.companyId
  6606. })
  6607. .then(res => {
  6608. if (res.code == "200") {
  6609. var _this = this;
  6610. let engageList = [];
  6611. this.zijinengageList.forEach(val => {
  6612. engageList.push({
  6613. engageCode: val.clauseCode,
  6614. engageDetail: val.clauses,
  6615. engageTitle: val.clauseName,
  6616. riskCode: val.riskCode
  6617. });
  6618. });
  6619. _this.$api.letter
  6620. .huataiaudit({
  6621. companyId: this.companyId,
  6622. engageList
  6623. })
  6624. .then(res => {
  6625. if (res.code == "200") {
  6626. loading.close();
  6627. _this.$message({
  6628. message: "核保成功",
  6629. type: "success"
  6630. });
  6631. this.QuotationHistory();
  6632. _this.$api.letter
  6633. .getByCompanyId({ companyId: this.companyId })
  6634. .then(res => {
  6635. _this.orderstatus = res.data.orderstatus; //订单状态
  6636. _this.underwritingdialogVisible = true;
  6637. let indexid = this.totalCompanyList.findIndex(
  6638. item =>
  6639. item.namesimple ==
  6640. this.queryOrders.inscompany
  6641. );
  6642. this.totalCompanyList[indexid].orderstatus =
  6643. res.data.orderstatus;
  6644. });
  6645. } else {
  6646. loading.close();
  6647. _this.$message({
  6648. showClose: true,
  6649. message:
  6650. this.queryOrders.inscompany +
  6651. "提核--:" +
  6652. res.msg,
  6653. type: "error",
  6654. duration: 0
  6655. });
  6656. _this.$api.letter
  6657. .getByCompanyId({ companyId: this.companyId })
  6658. .then(res => {
  6659. _this.orderstatus = res.data.orderstatus; //订单状态
  6660. });
  6661. }
  6662. });
  6663. } else {
  6664. this.$message({
  6665. message:
  6666. this.queryOrders.inscompany + "影像--:" + res.msg,
  6667. type: "error",
  6668. duration: 7000
  6669. });
  6670. loading.close();
  6671. }
  6672. });
  6673. break;
  6674. case "紫金财险":
  6675. await this.$api.letter
  6676. .zijinsubmitImage({
  6677. companyId: this.companyId
  6678. })
  6679. .then(res => {
  6680. if (res.code == "200") {
  6681. var _this = this;
  6682. _this.$api.letter
  6683. .zijinaudit({
  6684. companyId: this.companyId,
  6685. engageList: this.zijinengageList
  6686. })
  6687. .then(res => {
  6688. if (res.code == "200") {
  6689. loading.close();
  6690. _this.$message({
  6691. message: "核保成功",
  6692. type: "success"
  6693. });
  6694. this.QuotationHistory();
  6695. _this.$api.letter
  6696. .getByCompanyId({ companyId: this.companyId })
  6697. .then(res => {
  6698. _this.orderstatus = res.data.orderstatus; //订单状态
  6699. _this.underwritingdialogVisible = true;
  6700. let indexid = this.totalCompanyList.findIndex(
  6701. item =>
  6702. item.namesimple ==
  6703. this.queryOrders.inscompany
  6704. );
  6705. this.totalCompanyList[indexid].orderstatus =
  6706. res.data.orderstatus;
  6707. });
  6708. } else {
  6709. loading.close();
  6710. _this.$message({
  6711. showClose: true,
  6712. dangerouslyUseHTMLString: true,
  6713. message:
  6714. this.queryOrders.inscompany +
  6715. "提核--:" +
  6716. res.msg,
  6717. type: "error",
  6718. duration: 0
  6719. });
  6720. _this.$api.letter
  6721. .getByCompanyId({ companyId: this.companyId })
  6722. .then(res => {
  6723. _this.orderstatus = res.data.orderstatus; //订单状态
  6724. });
  6725. }
  6726. });
  6727. } else {
  6728. this.$message({
  6729. message:
  6730. this.queryOrders.inscompany + "影像--:" + res.msg,
  6731. type: "error",
  6732. duration: 7000
  6733. });
  6734. loading.close();
  6735. }
  6736. });
  6737. break;
  6738. case "国任财险":
  6739. await this.$api.letter
  6740. .insguorensubmitImage({
  6741. companyId: this.companyId
  6742. })
  6743. .then(res => {
  6744. if (res.code == "200") {
  6745. var _this = this;
  6746. _this.$api.letter
  6747. .gunrenaudit({
  6748. companyId: this.companyId
  6749. })
  6750. .then(res => {
  6751. if (res.code == "200") {
  6752. loading.close();
  6753. _this.cqryCdeJq = "";
  6754. _this.cqryCdeSy = "";
  6755. _this.renewalCodeJq = "";
  6756. _this.renewalCodeSy = "";
  6757. this.$message({
  6758. message: "核保成功",
  6759. type: "success"
  6760. });
  6761. this.QuotationHistory();
  6762. _this.$api.letter
  6763. .getByCompanyId({ companyId: this.companyId })
  6764. .then(res => {
  6765. _this.orderstatus = res.data.orderstatus; //订单状态
  6766. _this.underwritingdialogVisible = true;
  6767. let indexid = this.totalCompanyList.findIndex(
  6768. item =>
  6769. item.namesimple ==
  6770. this.queryOrders.inscompany
  6771. );
  6772. this.totalCompanyList[indexid].orderstatus =
  6773. res.data.orderstatus;
  6774. });
  6775. } else {
  6776. loading.close();
  6777. this.$message({
  6778. showClose: true,
  6779. message: res.msg,
  6780. type: "error",
  6781. duration: 0
  6782. });
  6783. }
  6784. });
  6785. } else {
  6786. loading.close();
  6787. this.$message({
  6788. message: res.msg,
  6789. type: "error",
  6790. duration: 7000
  6791. });
  6792. }
  6793. });
  6794. break;
  6795. case "渤海财险":
  6796. await this.$api.letter
  6797. .insbohaisubmitImage({
  6798. companyId: this.companyId
  6799. })
  6800. .then(res => {
  6801. if (res.code == "200") {
  6802. var _this = this;
  6803. _this.$api.letter
  6804. .bohaiaudit({
  6805. companyId: this.companyId
  6806. })
  6807. .then(res => {
  6808. if (res.code == "200") {
  6809. loading.close();
  6810. _this.cqryCdeJq = "";
  6811. _this.cqryCdeSy = "";
  6812. _this.renewalCodeJq = "";
  6813. _this.renewalCodeSy = "";
  6814. this.$message({
  6815. message: "核保成功",
  6816. type: "success"
  6817. });
  6818. this.QuotationHistory();
  6819. _this.$api.letter
  6820. .getByCompanyId({ companyId: this.companyId })
  6821. .then(res => {
  6822. _this.orderstatus = res.data.orderstatus; //订单状态
  6823. _this.underwritingdialogVisible = true;
  6824. let indexid = this.totalCompanyList.findIndex(
  6825. item =>
  6826. item.namesimple ==
  6827. this.queryOrders.inscompany
  6828. );
  6829. this.totalCompanyList[indexid].orderstatus =
  6830. res.data.orderstatus;
  6831. });
  6832. } else {
  6833. loading.close();
  6834. this.$message({
  6835. showClose: true,
  6836. message: res.msg,
  6837. type: "error",
  6838. duration: 0
  6839. });
  6840. }
  6841. });
  6842. } else {
  6843. loading.close();
  6844. this.$message({
  6845. message: res.msg,
  6846. type: "error",
  6847. duration: 7000
  6848. });
  6849. }
  6850. });
  6851. break;
  6852. case "恒邦财险":
  6853. case "华农财险":
  6854. case "太平财险":
  6855. case "安盛天平":
  6856. case "众安财险":
  6857. case "中国人寿":
  6858. let hengbangapi = "";
  6859. hengbangapi =
  6860. this.apiType == 2
  6861. ? "pythonsubmitImage"
  6862. : "anshengsubmitImage";
  6863. await this.$api.letter[hengbangapi]({
  6864. subOrderNo: this.companyId
  6865. }).then(res => {
  6866. if (res.code == "200") {
  6867. var _this = this;
  6868. let hengbangapi1 = "";
  6869. hengbangapi1 =
  6870. this.apiType == 2 ? "pythonaudit" : "anshengaudit";
  6871. _this.$api.letter[hengbangapi1]({
  6872. subOrderNo: this.companyId
  6873. }).then(res => {
  6874. if (res.code == "200") {
  6875. loading.close();
  6876. this.$message({
  6877. message: "核保成功",
  6878. type: "success"
  6879. });
  6880. this.QuotationHistory();
  6881. _this.$api.letter
  6882. .getByCompanyId({ companyId: this.companyId })
  6883. .then(res => {
  6884. _this.orderstatus = res.data.orderstatus; //订单状态
  6885. _this.underwritingdialogVisible = true;
  6886. let indexid = this.totalCompanyList.findIndex(
  6887. item =>
  6888. item.namesimple == this.queryOrders.inscompany
  6889. );
  6890. this.totalCompanyList[indexid].orderstatus =
  6891. res.data.orderstatus;
  6892. });
  6893. } else {
  6894. loading.close();
  6895. this.$message({
  6896. showClose: true,
  6897. dangerouslyUseHTMLString: true,
  6898. message:
  6899. this.queryOrders.inscompany +
  6900. "提核--:" +
  6901. res.msg.replace(/\n/g, "<br><br>"),
  6902. type: "error",
  6903. duration: 0
  6904. });
  6905. }
  6906. });
  6907. } else {
  6908. loading.close();
  6909. this.$message({
  6910. message:
  6911. this.queryOrders.inscompany + "影像--:" + res.msg,
  6912. type: "error",
  6913. duration: 7000
  6914. });
  6915. }
  6916. });
  6917. break;
  6918. case "永诚财险":
  6919. await this.$api.letter
  6920. .insyongchengsubmitImage({
  6921. companyId: this.companyId
  6922. })
  6923. .then(res => {
  6924. if (res.code == "200") {
  6925. var _this = this;
  6926. _this.$api.letter
  6927. .yongchengaudit({
  6928. companyId: this.companyId
  6929. })
  6930. .then(res => {
  6931. if (res.code == "200") {
  6932. loading.close();
  6933. _this.cqryCdeJq = "";
  6934. _this.cqryCdeSy = "";
  6935. _this.renewalCodeJq = "";
  6936. _this.renewalCodeSy = "";
  6937. this.$message({
  6938. message: "核保成功",
  6939. type: "success"
  6940. });
  6941. this.QuotationHistory();
  6942. _this.$api.letter
  6943. .getByCompanyId({ companyId: this.companyId })
  6944. .then(res => {
  6945. _this.orderstatus = res.data.orderstatus; //订单状态
  6946. _this.underwritingdialogVisible = true;
  6947. let indexid = this.totalCompanyList.findIndex(
  6948. item =>
  6949. item.namesimple ==
  6950. this.queryOrders.inscompany
  6951. );
  6952. this.totalCompanyList[indexid].orderstatus =
  6953. res.data.orderstatus;
  6954. });
  6955. } else {
  6956. loading.close();
  6957. this.$message({
  6958. showClose: true,
  6959. message:
  6960. this.queryOrders.inscompany +
  6961. "提核--:" +
  6962. res.msg,
  6963. customClass: "customNotifyClass",
  6964. type: "error",
  6965. duration: 0
  6966. });
  6967. }
  6968. });
  6969. } else {
  6970. loading.close();
  6971. this.$message({
  6972. message:
  6973. this.queryOrders.inscompany + "影像--:" + res.msg,
  6974. type: "error",
  6975. duration: 7000
  6976. });
  6977. }
  6978. });
  6979. break;
  6980. case "大家财险":
  6981. await this.$api.letter
  6982. .dajiasubmitImage({
  6983. companyId: this.companyId
  6984. })
  6985. .then(res => {
  6986. if (res.code == "200") {
  6987. var _this = this;
  6988. _this.$api.letter
  6989. .dajiaaudit({
  6990. companyId: this.companyId
  6991. })
  6992. .then(res => {
  6993. if (res.code == "200") {
  6994. loading.close();
  6995. _this.cqryCdeJq = "";
  6996. _this.cqryCdeSy = "";
  6997. _this.renewalCodeJq = "";
  6998. _this.renewalCodeSy = "";
  6999. this.$message({
  7000. message: "核保成功",
  7001. type: "success"
  7002. });
  7003. this.QuotationHistory();
  7004. _this.$api.letter
  7005. .getByCompanyId({ companyId: this.companyId })
  7006. .then(res => {
  7007. _this.orderstatus = res.data.orderstatus; //订单状态
  7008. _this.underwritingdialogVisible = true;
  7009. let indexid = this.totalCompanyList.findIndex(
  7010. item =>
  7011. item.namesimple ==
  7012. this.queryOrders.inscompany
  7013. );
  7014. this.totalCompanyList[indexid].orderstatus =
  7015. res.data.orderstatus;
  7016. });
  7017. } else {
  7018. loading.close();
  7019. this.$message({
  7020. showClose: true,
  7021. message:
  7022. this.queryOrders.inscompany +
  7023. "提核--:" +
  7024. res.msg,
  7025. customClass: "customNotifyClass",
  7026. type: "error",
  7027. duration: 0
  7028. });
  7029. }
  7030. });
  7031. } else {
  7032. loading.close();
  7033. this.$message({
  7034. message:
  7035. this.queryOrders.inscompany + "影像--:" + res.msg,
  7036. type: "error",
  7037. duration: 7000
  7038. });
  7039. }
  7040. });
  7041. break;
  7042. }
  7043. }
  7044. });
  7045. },
  7046. //当前日期的次日
  7047. transformTime1() {
  7048. var date = new Date();
  7049. date.setFullYear(date.getFullYear());
  7050. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  7051. var strYear = date.getFullYear();
  7052. var strDay = date.getDate();
  7053. var strMonth = date.getMonth() + 1;
  7054. var hh = date.getHours();
  7055. if (hh < 10) {
  7056. hh = "0" + hh;
  7057. }
  7058. if (strMonth < 10) {
  7059. strMonth = "0" + strMonth;
  7060. }
  7061. if (strDay < 10) {
  7062. strDay = "0" + strDay;
  7063. }
  7064. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  7065. return datastr;
  7066. },
  7067. //传入日期的次日
  7068. transformTime2(time) {
  7069. var date = new Date(time);
  7070. date.setFullYear(date.getFullYear());
  7071. date.setTime(date.getTime() + 24 * 60 * 60 * 1000); //一年后的前一天
  7072. var strYear = date.getFullYear();
  7073. var strDay = date.getDate();
  7074. var strMonth = date.getMonth() + 1;
  7075. var hh = date.getHours();
  7076. if (hh < 10) {
  7077. hh = "0" + hh;
  7078. }
  7079. if (strMonth < 10) {
  7080. strMonth = "0" + strMonth;
  7081. }
  7082. if (strDay < 10) {
  7083. strDay = "0" + strDay;
  7084. }
  7085. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  7086. return datastr;
  7087. },
  7088. //时间转换
  7089. transformTime(date) {
  7090. var d = new Date(date);
  7091. var strYear = d.getFullYear();
  7092. var strMonth = d.getMonth() + 1;
  7093. var strDay = d.getDate();
  7094. var hh = d.getHours();
  7095. var minutes = d.getMinutes(); // 分
  7096. var Seconds = d.getSeconds();
  7097. if (hh < 10) {
  7098. hh = "0" + hh;
  7099. }
  7100. if (minutes < 10) {
  7101. minutes = "0" + minutes;
  7102. }
  7103. if (Seconds < 10) {
  7104. Seconds = "0" + Seconds;
  7105. }
  7106. if (strMonth < 10) {
  7107. strMonth = "0" + strMonth;
  7108. }
  7109. if (strDay < 10) {
  7110. strDay = "0" + strDay;
  7111. }
  7112. var datetime =
  7113. strYear +
  7114. "-" +
  7115. strMonth +
  7116. "-" +
  7117. strDay +
  7118. " " +
  7119. hh +
  7120. ":" +
  7121. minutes +
  7122. ":" +
  7123. Seconds;
  7124. return datetime;
  7125. },
  7126. timeformat(date) {
  7127. var d = new Date(date);
  7128. var strYear = d.getFullYear();
  7129. var strMonth = d.getMonth() + 1;
  7130. var strDay = d.getDate();
  7131. var hh = d.getHours();
  7132. if (hh < 10) {
  7133. hh = "0" + hh;
  7134. }
  7135. if (strMonth < 10) {
  7136. strMonth = "0" + strMonth;
  7137. }
  7138. if (strDay < 10) {
  7139. strDay = "0" + strDay;
  7140. }
  7141. var datetime = strYear + "-" + strMonth + "-" + strDay;
  7142. return datetime;
  7143. },
  7144. oneYearPast1(time) {
  7145. //明年减一秒
  7146. var date = new Date(time);
  7147. date.setSeconds(date.getSeconds() - 1);
  7148. date.setFullYear(date.getFullYear() + 1); //一年后
  7149. date.setTime(date.getTime()); //一年后的前一天
  7150. var strYear = date.getFullYear();
  7151. var strDay = date.getDate();
  7152. var strMonth = date.getMonth() + 1;
  7153. var hh = date.getHours();
  7154. var minutes = date.getMinutes(); // 分
  7155. var Seconds = date.getSeconds();
  7156. if (hh < 10) {
  7157. hh = "0" + hh;
  7158. }
  7159. if (minutes < 10) {
  7160. minutes = "0" + minutes;
  7161. }
  7162. if (Seconds < 10) {
  7163. Seconds = "0" + Seconds;
  7164. }
  7165. if (strMonth < 10) {
  7166. strMonth = "0" + strMonth;
  7167. }
  7168. if (strDay < 10) {
  7169. strDay = "0" + strDay;
  7170. }
  7171. var datastr =
  7172. strYear +
  7173. "-" +
  7174. strMonth +
  7175. "-" +
  7176. strDay +
  7177. " " +
  7178. hh +
  7179. ":" +
  7180. minutes +
  7181. ":" +
  7182. Seconds;
  7183. return datastr;
  7184. },
  7185. tbczcarShowChange() {
  7186. //投保人同车主
  7187. switch (this.tbczcarShow) {
  7188. case true:
  7189. this.policyHolderInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  7190. break;
  7191. default:
  7192. for (let key in this.policyHolderInfo) {
  7193. this.policyHolderInfo[key] = "";
  7194. this.policyHolderInfo.provinceData = [];
  7195. this.selectedOptions2 = [];
  7196. }
  7197. }
  7198. },
  7199. bbczcarShowChange() {
  7200. //被保人同车主
  7201. switch (this.bbczcarShow) {
  7202. case true:
  7203. this.bbtbcarShow = false;
  7204. this.insuredPersonInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  7205. break;
  7206. default:
  7207. for (let key in this.insuredPersonInfo) {
  7208. this.insuredPersonInfo[key] = "";
  7209. this.insuredPersonInfo.provinceData = [];
  7210. // this.selectedOptions3 = [];
  7211. }
  7212. }
  7213. },
  7214. bbtbcarShowChange() {
  7215. //被保人同投保人
  7216. switch (this.bbtbcarShow) {
  7217. case true:
  7218. this.bbczcarShow = false;
  7219. this.insuredPersonInfo = JSON.parse(
  7220. JSON.stringify(this.policyHolderInfo)
  7221. );
  7222. break;
  7223. default:
  7224. for (let key in this.insuredPersonInfo) {
  7225. this.insuredPersonInfo[key] = "";
  7226. this.insuredPersonInfo.provinceData = [];
  7227. }
  7228. }
  7229. },
  7230. //VIN查询
  7231. toChooseVin(cartype) {
  7232. if (cartype == "" || cartype == null) {
  7233. this.$message({
  7234. message: "请输入车架号",
  7235. type: "warning"
  7236. });
  7237. } else {
  7238. const loading = this.$loading({
  7239. lock: true,
  7240. text: "Loading",
  7241. spinner: "el-icon-loading",
  7242. background: "rgba(0, 0, 0, 0.7)"
  7243. });
  7244. this.$api.letter.insZhongmeiVIN(this.carInfo.frameNo).then(res => {
  7245. if (res.code == "200") {
  7246. this.reslist = res.data;
  7247. loading.close();
  7248. this.sbdmdialogVisible = true;
  7249. } else {
  7250. loading.close();
  7251. this.$message.error(res.msg);
  7252. }
  7253. });
  7254. }
  7255. },
  7256. // 撤销二维码
  7257. revokeCode(id) {
  7258. this.$api.letter.getRevokeQrCode(id).then(res => {
  7259. if (res.code == 200) {
  7260. this.$message({
  7261. message: res.msg,
  7262. type: "success"
  7263. });
  7264. this.QuotationHistory();
  7265. }
  7266. });
  7267. },
  7268. //品牌型号查询
  7269. toChooseVehicleType(cartype) {
  7270. if (cartype == "" || cartype == null) {
  7271. this.$message({
  7272. message: "请输入车型名称",
  7273. type: "warning"
  7274. });
  7275. } else {
  7276. const loading = this.$loading({
  7277. lock: true,
  7278. text: "Loading",
  7279. spinner: "el-icon-loading",
  7280. background: "rgba(0, 0, 0, 0.7)"
  7281. });
  7282. let param = {
  7283. modelName: cartype.replace(/[^u4e00-u9fa5|,]+/gi, "")
  7284. };
  7285. this.$api.letter.ModelsQuery(param).then(res => {
  7286. if (res.code == "200") {
  7287. loading.close();
  7288. this.reslist = res.data;
  7289. this.chexingdialogVisible = true;
  7290. } else {
  7291. loading.close();
  7292. this.$message.error(res.msg);
  7293. }
  7294. });
  7295. }
  7296. },
  7297. //车型列表双击选中事件
  7298. reslistCurrentChange(row, column, event) {
  7299. this.carInfo.brandName = row.brandCN; //品牌型号
  7300. this.carInfo.modelcname = row.modelName; //品牌型号
  7301. this.carInfo.caryear = row.marketYear; //年款
  7302. this.carInfo.seatCount = row.ratedPassengerCapacity; //座位数
  7303. this.carInfo.purchasePrice = row.replacementValue; //购置价
  7304. this.carInfo.modelCode = row.modelCode; //型号代码
  7305. this.carInfo.familyName = row.series; //系列
  7306. this.carInfo.enginedesc = row.displacement; //排量
  7307. this.carInfo.energyType = row.energyTypes
  7308. this.carInfo.powerScale = row.powerScale; //功率
  7309. this.chexingdialogVisible = false;
  7310. this.sbdmdialogVisible = false;
  7311. },
  7312. //是否过户事件
  7313. transferFlagChange(e) {
  7314. if (e) {
  7315. this.transferDateShow = true;
  7316. this.carInfo.transferDate = this.carInfo.issueDate;
  7317. } else {
  7318. this.transferDateShow = false;
  7319. this.carInfo.transferDate = "";
  7320. }
  7321. },
  7322. //影像上传
  7323. drivingupload(file, imageIdList, imgurl, type) {
  7324. let that = this;
  7325. let size = file.size / 1024 / 1024 < 5;
  7326. const isJPG =
  7327. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7328. if (!size) {
  7329. this.$message.error("上传图片大小不能超过 5MB!");
  7330. this[imgurl] = [];
  7331. return false;
  7332. }
  7333. if (!isJPG) {
  7334. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7335. this[imgurl] = [];
  7336. return false;
  7337. }
  7338. this[imgurl].push(file);
  7339. var file = file.raw;
  7340. const params = new FormData(); // 声明formData数据类型
  7341. params.append("multipartFile", file);
  7342. params.append("type", "image");
  7343. this.$api.letter.uploadFile(params).then(res => {
  7344. if (res.code == "200") {
  7345. if (this[imageIdList].some(v => v.imageType == type)) {
  7346. this[imageIdList].map(val => {
  7347. if (val.imageType == type) {
  7348. val.imageId = res.data.id;
  7349. }
  7350. });
  7351. } else {
  7352. this[imageIdList].push({
  7353. imageId: res.data.id,
  7354. imageType: type
  7355. });
  7356. }
  7357. }
  7358. });
  7359. },
  7360. handleRemove1(file, imageIdList, imgList) {
  7361. this[imageIdList].map((ele, index) => {
  7362. if (file.imageId === ele.imageId) {
  7363. this[imageIdList].splice(index, 1);
  7364. }
  7365. return ele;
  7366. });
  7367. if (file.imageId) {
  7368. this[imgList].map((ele, index) => {
  7369. if (file.imageId === ele.imageId) {
  7370. this[imgList].splice(index, 1);
  7371. }
  7372. return ele;
  7373. });
  7374. } else {
  7375. this[imgList].map((ele, index) => {
  7376. if (file.uid === ele.uid) {
  7377. this[imgList].splice(index, 1);
  7378. }
  7379. return ele;
  7380. });
  7381. }
  7382. },
  7383. compress(img, width, height, ratio) {
  7384. var canvas, ctx, img64;
  7385. canvas = document.createElement("canvas");
  7386. canvas.width = width;
  7387. canvas.height = height;
  7388. ctx = canvas.getContext("2d");
  7389. ctx.drawImage(img, 0, 0, width, height);
  7390. img64 = canvas.toDataURL("image/jpeg", ratio);
  7391. return img64;
  7392. },
  7393. base64ToFile(base64, fileName) {
  7394. let data = base64.split(",");
  7395. let type = data[0].match(/:(.*?);/)[1]; // let suffix = type.split('/')[1];
  7396. const bstr = window.atob(data[1]);
  7397. let n = bstr.length;
  7398. const u8arr = new Uint8Array(n);
  7399. while (n--) {
  7400. u8arr[n] = bstr.charCodeAt(n);
  7401. } // const file =  new File([u8arr], `${fileName}.${suffix}`, {
  7402. const file = new File([u8arr], `${fileName}`, {
  7403. type: type
  7404. });
  7405. return file;
  7406. },
  7407. carfrontChange(file) {
  7408. //选择行驶证正面
  7409. let that = this;
  7410. let size = file.size / 1024 / 1024 < 5;
  7411. const isJPG =
  7412. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7413. if (!size) {
  7414. this.$message.error("上传图片大小不能超过 5MB!");
  7415. return false;
  7416. }
  7417. if (!isJPG) {
  7418. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7419. return false;
  7420. }
  7421. // let name=file.raw.name
  7422. //       var image = new Image();
  7423. //       image.src = window.URL.createObjectURL(file.raw);
  7424. //       that.carfrontImg =  image.src
  7425. //       image.onload = function(){
  7426. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7427. // that.carfrontImg = image.src;
  7428. // const params = new FormData(); // 声明formData数据类型
  7429. // params.append("multipartFile", aaa);
  7430. // params.append("type", "image");
  7431. // that.$api.letter.uploadFile(params).then(res => {
  7432. // if (res.code == "200") {
  7433. // that.CarFrontFile = aaa;//文件流
  7434. // if (that.imageList1.some(v => v.imageType == 'C01')) {
  7435. // that.imageList1.map(val => {
  7436. // if (val.imageType == 'C01') {
  7437. // val.imageId = res.data.id;
  7438. // }
  7439. // })
  7440. // } else {
  7441. // that.imageList1.push({
  7442. // imageId: res.data.id,
  7443. // imageType: "C01",
  7444. // })
  7445. // }
  7446. // } else {
  7447. // that.$message({ message: res.msg, type: "warning" });
  7448. // }
  7449. // });
  7450. // }
  7451. var file = file.raw;
  7452. let files = window.URL.createObjectURL(file); //转临时路径
  7453. this.carfrontImg = files;
  7454. const params = new FormData(); // 声明formData数据类型
  7455. params.append("multipartFile", file);
  7456. params.append("type", "image");
  7457. this.$api.letter.uploadFile(params).then(res => {
  7458. if (res.code == "200") {
  7459. this.CarFrontFile = file; //文件流
  7460. if (this.imageList1.some(v => v.imageType == "C01")) {
  7461. this.imageList1.map(val => {
  7462. if (val.imageType == "C01") {
  7463. val.imageId = res.data.id;
  7464. }
  7465. });
  7466. } else {
  7467. this.imageList1.push({
  7468. imageId: res.data.id,
  7469. imageType: "C01"
  7470. });
  7471. }
  7472. } else {
  7473. this.$message({ message: res.msg, type: "warning" });
  7474. }
  7475. });
  7476. },
  7477. carbackChange(file) {
  7478. let that = this;
  7479. let size = file.size / 1024 / 1024 < 2;
  7480. const isJPG =
  7481. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7482. if (!size) {
  7483. this.$message.error("上传图片大小不能超过 5MB!");
  7484. return false;
  7485. }
  7486. if (!isJPG) {
  7487. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7488. return false;
  7489. }
  7490. // let name=file.raw.name
  7491. //       var image = new Image();
  7492. //       image.src = window.URL.createObjectURL(file.raw);
  7493. //       image.onload = function(){
  7494. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7495. // that.carbackImg = image.src;
  7496. // const params = new FormData(); // 声明formData数据类型
  7497. // params.append("multipartFile", aaa);
  7498. // params.append("type", "image");
  7499. // that.$api.letter.uploadFile(params).then(res => {
  7500. // if (res.code == "200") {
  7501. // that.CarBackFile = aaa;//文件流
  7502. // if (that.imageList1.some(v => v.imageType == 'D01')) {
  7503. // that.imageList1.map(val => {
  7504. // if (val.imageType == 'D01') {
  7505. // val.imageId = res.data.id;
  7506. // }
  7507. // })
  7508. // } else {
  7509. // that.imageList1.push({
  7510. // imageId: res.data.id,
  7511. // imageType: "D01",
  7512. // })
  7513. // }
  7514. // } else {
  7515. // that.$message({ message: res.msg, type: "warning" });
  7516. // }
  7517. // });
  7518. // }
  7519. //选择行驶证反面
  7520. var file = file.raw;
  7521. let files = window.URL.createObjectURL(file); //转临时路径
  7522. this.carbackImg = files;
  7523. const params = new FormData(); // 声明formData数据类型
  7524. params.append("multipartFile", file);
  7525. params.append("type", "image");
  7526. this.$api.letter.uploadFile(params).then(res => {
  7527. if (res.code == "200") {
  7528. this.CarBackFile = file;
  7529. if (this.imageList1.some(v => v.imageType == "D01")) {
  7530. this.imageList1.map(val => {
  7531. if (val.imageType == "D01") {
  7532. val.imageId = res.data.id;
  7533. }
  7534. });
  7535. } else {
  7536. this.imageList1.push({
  7537. imageId: res.data.id,
  7538. imageType: "D01"
  7539. });
  7540. }
  7541. } else {
  7542. this.$message({ message: res.msg, type: "warning" });
  7543. }
  7544. });
  7545. },
  7546. userfrontChange(file) {
  7547. let that = this;
  7548. let size = file.size / 1024 / 1024 < 5;
  7549. const isJPG =
  7550. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7551. if (!size) {
  7552. this.$message.error("上传图片大小不能超过 5MB!");
  7553. return false;
  7554. }
  7555. if (!isJPG) {
  7556. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7557. return false;
  7558. }
  7559. // let name=file.raw.name
  7560. //       var image = new Image();
  7561. //       image.src = window.URL.createObjectURL(file.raw);
  7562. //       image.onload = function(){
  7563. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7564. // that.userfrontImg = image.src;
  7565. // const params = new FormData(); // 声明formData数据类型
  7566. // params.append("multipartFile", aaa);
  7567. // params.append("type", "image");
  7568. // that.$api.letter.uploadFile(params).then(res => {
  7569. // if (res.code == "200") {
  7570. // let type = 'C0' + that.userIndex;
  7571. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  7572. // that['imageList' + that.userIndex].map(val => {
  7573. // if (val.imageType == type) {
  7574. // val.imageId = res.data.id;
  7575. // }
  7576. // })
  7577. // } else {
  7578. // that['imageList' + that.userIndex].push({
  7579. // imageId: res.data.id,
  7580. // imageType: type,
  7581. // })
  7582. // }
  7583. // that[type + 'File'] = aaa;
  7584. // } else {
  7585. // that.$message({ message: res.msg, type: "warning" });
  7586. // }
  7587. // });
  7588. // }
  7589. //选择身份证正面
  7590. var file = file.raw;
  7591. let files = window.URL.createObjectURL(file); //转链接
  7592. this.userfrontImg = files;
  7593. const params = new FormData(); // 声明formData数据类型
  7594. params.append("multipartFile", file);
  7595. params.append("type", "image");
  7596. this.$api.letter.uploadFile(params).then(res => {
  7597. if (res.code == "200") {
  7598. let type = "C0" + this.userIndex;
  7599. if (
  7600. this["imageList" + this.userIndex].some(v => v.imageType == type)
  7601. ) {
  7602. this["imageList" + this.userIndex].map(val => {
  7603. if (val.imageType == type) {
  7604. val.imageId = res.data.id;
  7605. }
  7606. });
  7607. } else {
  7608. this["imageList" + this.userIndex].push({
  7609. imageId: res.data.id,
  7610. imageType: type
  7611. });
  7612. }
  7613. this[type + "File"] = file;
  7614. } else {
  7615. this.$message({ message: res.msg, type: "warning" });
  7616. }
  7617. });
  7618. },
  7619. userbackChange(file) {
  7620. let that = this;
  7621. let size = file.size / 1024 / 1024 < 5;
  7622. const isJPG =
  7623. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  7624. if (!size) {
  7625. this.$message.error("上传图片大小不能超过 5MB!");
  7626. return false;
  7627. }
  7628. if (!isJPG) {
  7629. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  7630. return false;
  7631. }
  7632. // let name=file.raw.name
  7633. //       var image = new Image();
  7634. //       image.src = window.URL.createObjectURL(file.raw);
  7635. //       image.onload = function(){
  7636. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  7637. // that.userbackImg = image.src;
  7638. // const params = new FormData(); // 声明formData数据类型
  7639. // params.append("multipartFile", aaa);
  7640. // params.append("type", "image");
  7641. // that.$api.letter.uploadFile(params).then(res => {
  7642. // if (res.code == "200") {
  7643. // let type = 'D0' + that.userIndex;
  7644. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  7645. // that['imageList' + that.userIndex].map(val => {
  7646. // if (val.imageType == type) {
  7647. // val.imageId = res.data.id;
  7648. // }
  7649. // })
  7650. // } else {
  7651. // that['imageList' + that.userIndex].push({
  7652. // imageId: res.data.id,
  7653. // imageType: type,
  7654. // })
  7655. // }
  7656. // that[type + 'File'] = aaa;
  7657. // } else {
  7658. // that.$message({ message: res.msg, type: "warning" });
  7659. // }
  7660. // });
  7661. // }
  7662. //选择身份证背面
  7663. var file = file.raw;
  7664. let files = window.URL.createObjectURL(file); //转链接
  7665. this.userbackImg = files;
  7666. const params = new FormData(); // 声明formData数据类型
  7667. params.append("multipartFile", file);
  7668. params.append("type", "image");
  7669. this.$api.letter.uploadFile(params).then(res => {
  7670. if (res.code == "200") {
  7671. let type = "D0" + this.userIndex;
  7672. if (
  7673. this["imageList" + this.userIndex].some(v => v.imageType == type)
  7674. ) {
  7675. this["imageList" + this.userIndex].map(val => {
  7676. if (val.imageType == type) {
  7677. val.imageId = res.data.id;
  7678. }
  7679. });
  7680. } else {
  7681. this["imageList" + this.userIndex].push({
  7682. imageId: res.data.id,
  7683. imageType: type
  7684. });
  7685. }
  7686. this[type + "File"] = file;
  7687. } else {
  7688. this.$message({ message: res.msg, type: "warning" });
  7689. }
  7690. });
  7691. },
  7692. CarOCRdiscern() {
  7693. //car识别
  7694. const loading = this.$loading({
  7695. lock: true,
  7696. text: "Loading",
  7697. spinner: "el-icon-loading",
  7698. background: "rgba(0, 0, 0, 0.7)"
  7699. });
  7700. const params = new FormData(); // 声明formData数据类型
  7701. params.append("image1", this.CarFrontFile);
  7702. params.append("image2", this.CarBackFile);
  7703. this.$api.letter.drivingPermit(params).then(res => {
  7704. loading.close();
  7705. if (res.msg == "201") {
  7706. this.$message({ message: "请正确选择驾驶证", type: "warning" });
  7707. }
  7708. var carInfo = res.data.carInfo;
  7709. console.log(carInfo);
  7710. if (carInfo.issueDate) {
  7711. carInfo.issueDate =
  7712. carInfo.issueDate.substring(0, 4) +
  7713. "-" +
  7714. carInfo.issueDate.substring(4, 6) +
  7715. "-" +
  7716. carInfo.issueDate.substring(6, 8);
  7717. }
  7718. if (carInfo.registerDate) {
  7719. carInfo.registerDate =
  7720. carInfo.registerDate.substring(0, 4) +
  7721. "-" +
  7722. carInfo.registerDate.substring(4, 6) +
  7723. "-" +
  7724. carInfo.registerDate.substring(6, 8);
  7725. }
  7726. this.carform.carOwner = carInfo.carOwner; //车主
  7727. this.carform.licenseNo = carInfo.plateNo; //车牌号
  7728. this.carform.modelcname = carInfo.backOcrID; //品牌型号
  7729. this.carform.frameNo = carInfo.vin; //车架号
  7730. this.carform.engineNo = carInfo.engine; //发动机号
  7731. this.carform.registerDate = carInfo.registerDate; //车牌号
  7732. this.carform.issueDate = carInfo.issueDate; //车牌号
  7733. this.carform.grossMass = carInfo.grossMass; //总质量
  7734. this.carform.unladenMass = carInfo.unladenMass; //整备质量
  7735. this.carform.limitLoad = carInfo.limitLoad; //核定载质量
  7736. this.carform.category = carInfo.category; //车辆类型
  7737. this.carform.carnature = carInfo.useNature; //使用性质
  7738. this.carform.vehicleUse = carInfo.vehicleUse; //车辆用途
  7739. this.carform.plateType = carInfo.plateType; //车辆种类
  7740. this.carform.approvedPassengersCapacity =
  7741. carInfo.approvedPassengersCapacity; //核定载客数
  7742. });
  7743. },
  7744. CarOCRconfirm() {
  7745. //传参 carnature
  7746. this.ownerInfo.name = this.carform.carOwner; //车主
  7747. this.carInfo.cartype = "K33";
  7748. this.carInfo.licenseNo = this.carform.licenseNo; //车牌号
  7749. this.carInfo.modelcname = this.carform.modelcname; //品牌型号
  7750. this.carInfo.vinNo = this.carform.frameNo; //车架号
  7751. this.carInfo.frameNo = this.carform.frameNo; //车架号
  7752. this.carInfo.engineNo = this.carform.engineNo; //发动机号
  7753. this.carInfo.seatCount = this.carform.approvedPassengersCapacity; //核定载客数
  7754. this.carInfo.vehicleweight = this.carform.grossMass; //总质量
  7755. this.carInfo.completeKerbMass = this.carform.unladenMass; //整备质量
  7756. this.carInfo.limitLoad = this.carform.limitLoad; //核定载质量
  7757. this.carInfo.cartype = this.carform.category; //车辆类型
  7758. this.carInfo.carnature = this.carform.carnature
  7759. ? this.carform.carnature
  7760. : "02"; //使用性质
  7761. this.carInfo.vehicleUse = this.carform.vehicleUse
  7762. ? this.carform.vehicleUse
  7763. : "05"; //车辆用途
  7764. this.carInfo.cimodelclass = this.carform.plateType; //车辆种类
  7765. if (this.timeformat(this.carform.registerDate) != "NaN-NaN-NaN") {
  7766. this.carInfo.registerDate = this.carform.registerDate; //车牌号
  7767. }
  7768. if (this.timeformat(this.carform.issueDate) != "NaN-NaN-NaN") {
  7769. this.carInfo.issueDate = this.carform.issueDate; //车牌号
  7770. }
  7771. this.uploadcardialogVisible = false;
  7772. },
  7773. handleRemove(e) {
  7774. //删除图片
  7775. this[e] = "";
  7776. switch (this.userIndex) {
  7777. case 0:
  7778. this.carfrontImg = "";
  7779. this.carbackImg = "";
  7780. this.CarFrontFile = ""; // 行驶证正面base64
  7781. this.CarBackFile = ""; // 行驶证背面base64
  7782. break;
  7783. case 2:
  7784. this.userfrontImg = "";
  7785. this.userbackImg = "";
  7786. this.C02File = ""; // 车主正面base64
  7787. this.D02File = ""; // 车主背面base64
  7788. break;
  7789. case 3:
  7790. this.userfrontImg = "";
  7791. this.userbackImg = "";
  7792. this.C03File = ""; // 投保人正面base64
  7793. this.D03File = ""; // 投保人背面base64
  7794. break;
  7795. case 4:
  7796. this.userfrontImg = "";
  7797. this.userbackImg = "";
  7798. this.C04File = ""; // 被保人正面base64
  7799. this.D04File = ""; // 被保人背面base64
  7800. break;
  7801. default:
  7802. }
  7803. },
  7804. //预览图片
  7805. handlePictureCardPreview(img) {
  7806. this.ProViewImg = img;
  7807. this.showViewer = true;
  7808. },
  7809. // 关闭查看器
  7810. closeViewer() {
  7811. this.showViewer = false;
  7812. },
  7813. uploaduser(index) {
  7814. this.userIndex = index;
  7815. this.uploaduserdialogVisible = true;
  7816. },
  7817. userOCRdiscern() {
  7818. //OCR识别
  7819. switch (this.userIndex) {
  7820. case 2:
  7821. const params1 = new FormData(); // 声明formData数据类型
  7822. params1.append("image1", this.C02File);
  7823. params1.append("image2", this.D02File);
  7824. this.userOCRjoggle(params1);
  7825. break;
  7826. case 3:
  7827. const params2 = new FormData(); // 声明formData数据类型
  7828. params2.append("image1", this.C03File);
  7829. params2.append("image2", this.D03File);
  7830. this.userOCRjoggle(params2);
  7831. break;
  7832. case 4:
  7833. const params3 = new FormData(); // 声明formData数据类型
  7834. params3.append("image1", this.C04File);
  7835. params3.append("image2", this.D04File);
  7836. this.userOCRjoggle(params3);
  7837. break;
  7838. default:
  7839. }
  7840. },
  7841. userOCRjoggle(param) {
  7842. const loading = this.$loading({
  7843. lock: true,
  7844. text: "Loading",
  7845. spinner: "el-icon-loading",
  7846. background: "rgba(0, 0, 0, 0.7)"
  7847. });
  7848. this.$api.letter.idCard(param).then(res => {
  7849. loading.close();
  7850. if (res.msg == "201") {
  7851. this.$message({ message: "请正确选择身份证", type: "warning" });
  7852. }
  7853. var customerInfo = res.data.customerInfo;
  7854. if (customerInfo) {
  7855. this.ownerInfoform.name = customerInfo.name;
  7856. if (customerInfo.identifyType == "01") {
  7857. this.ownerInfoform.identifyType = "身份证";
  7858. } else {
  7859. this.ownerInfoform.identifyType = "";
  7860. }
  7861. this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;
  7862. this.ownerInfoform.gender = customerInfo.identifyIssuedCom;
  7863. this.ownerInfoform.addr = customerInfo.addr;
  7864. if (customerInfo.identifyNumber) {
  7865. this.ownerInfoform.age = getAgeByIdCard(
  7866. customerInfo.identifyNumber
  7867. );
  7868. }
  7869. if (
  7870. customerInfo.identifyValidDate ||
  7871. customerInfo.identifyValidEndDate
  7872. ) {
  7873. this.ownerInfoform.identifyValidDate =
  7874. customerInfo.identifyValidDate.substring(0, 4) +
  7875. "-" +
  7876. customerInfo.identifyValidDate.substring(4, 6) +
  7877. "-" +
  7878. customerInfo.identifyValidDate.substring(6, 8);
  7879. this.ownerInfoform.identifyValidEndDate =
  7880. customerInfo.identifyValidEndDate.substring(0, 4) +
  7881. "-" +
  7882. customerInfo.identifyValidEndDate.substring(4, 6) +
  7883. "-" +
  7884. customerInfo.identifyValidEndDate.substring(6, 8);
  7885. if (customerInfo.identifyValidEndDate == "长期") {
  7886. this.ownerInfoform.identifyValidEndDate = "9999-12-31";
  7887. }
  7888. }
  7889. // let values = addressCode(this.ownerInfoform.addr);
  7890. // this.ownerInfoform.province = codeToText[values[0]]
  7891. // this.ownerInfoform.city = codeToText[values[1]]
  7892. // this.ownerInfoform.county = codeToText[values[2]]
  7893. }
  7894. });
  7895. },
  7896. userOCRconfirm() {
  7897. //传参
  7898. switch (this.userIndex) {
  7899. case 2:
  7900. // this.selectedOptions1 = addressCode(this.ownerInfoform.addr);
  7901. this.ownerInfo = JSON.parse(JSON.stringify(this.ownerInfoform));
  7902. break;
  7903. case 3:
  7904. // this.selectedOptions2 = addressCode(this.ownerInfoform.addr);
  7905. this.policyHolderInfo = JSON.parse(
  7906. JSON.stringify(this.ownerInfoform)
  7907. );
  7908. break;
  7909. case 4:
  7910. // this.selectedOptions3 = addressCode(this.ownerInfoform.addr);
  7911. this.insuredPersonInfo = JSON.parse(
  7912. JSON.stringify(this.ownerInfoform)
  7913. );
  7914. break;
  7915. }
  7916. this.uploaduserdialogVisible = false;
  7917. },
  7918. closeDialog(index) {
  7919. // 0:车辆 1:车主 2:投保人 3:被保人
  7920. switch (index) {
  7921. case 0:
  7922. this.carfrontImg = "";
  7923. this.carbackImg = "";
  7924. this.CarFrontFile = ""; // 行驶证正面base64
  7925. this.CarBackFile = ""; // 行驶证背面base64
  7926. Object.keys(this.carform).forEach(key => {
  7927. this.carform[key] = "";
  7928. });
  7929. break;
  7930. case 2:
  7931. this.userfrontImg = "";
  7932. this.userbackImg = "";
  7933. this.C02File = ""; // 车主正面base64
  7934. this.D02File = ""; // 车主背面base64
  7935. Object.keys(this.ownerInfoform).forEach(key => {
  7936. this.ownerInfoform[key] = "";
  7937. });
  7938. break;
  7939. case 3:
  7940. this.userfrontImg = "";
  7941. this.userbackImg = "";
  7942. this.C03File = ""; // 投保人正面base64
  7943. this.D03File = ""; // 投保人背面base64
  7944. Object.keys(this.ownerInfoform).forEach(key => {
  7945. this.ownerInfoform[key] = "";
  7946. });
  7947. break;
  7948. case 4:
  7949. this.userfrontImg = "";
  7950. this.userbackImg = "";
  7951. this.C04File = ""; // 被保人正面base64
  7952. this.D04File = ""; // 被保人背面base64
  7953. Object.keys(this.ownerInfoform).forEach(key => {
  7954. this.ownerInfoform[key] = "";
  7955. });
  7956. break;
  7957. case 5:
  7958. this.businessImg = "";
  7959. // this.C04File = ''; // 被保人正面base64
  7960. // this.D04File = ''; // 被保人背面base64
  7961. // Object.keys(this.ownerInfoform).forEach((key) => {
  7962. // this.ownerInfoform[key] = '';
  7963. // });
  7964. break;
  7965. default:
  7966. }
  7967. },
  7968. bjdpreview(id) {
  7969. let params = {
  7970. companyId: id
  7971. };
  7972. this.$api.letter.getByCompanyId(params).then(res => {
  7973. if (res.code == "200") {
  7974. var data = res.data;
  7975. if (data.kindinfo != null) {
  7976. data.kindinfo.map((ele, index) => {
  7977. switch (ele.kindCode) {
  7978. case "A":
  7979. if (ele.amount == 1) {
  7980. ele.amount = "投保";
  7981. } else {
  7982. ele.amount = ele.amount;
  7983. }
  7984. break;
  7985. case "D4":
  7986. case "SY_FJ_YBW2":
  7987. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  7988. break;
  7989. case "MJ1":
  7990. case "MJ2":
  7991. case "MJ3":
  7992. case "MJ4":
  7993. ele.deductibleRate = ele.deductibleRate + "%";
  7994. break;
  7995. default:
  7996. ele.amount = this.toChinesNum(ele.amount);
  7997. }
  7998. return ele;
  7999. });
  8000. }
  8001. data.logoImg = this.iconfftter(res.data.inscompany);
  8002. this.queryOrders = data;
  8003. this.$api.letter.getThemeByUserId().then(res => {
  8004. if (res.code == 200) {
  8005. if (res.data.themeCode == 'GD') {
  8006. this.$refs.quotationDialogPro.setBackupVisible(true);
  8007. }
  8008. else {
  8009. this.$refs.quotationDialog.setBackupVisible(true);
  8010. }
  8011. }
  8012. })
  8013. // if (
  8014. // this.$store.state.user.roles.managementSource &&
  8015. // this.$store.state.user.roles.managementSource == "3"
  8016. // ) {
  8017. // this.$refs.quotationDialogPro.setBackupVisible(true);
  8018. // } else {
  8019. // this.$refs.quotationDialog.setBackupVisible(true);
  8020. // }
  8021. }
  8022. });
  8023. },
  8024. //返回上一步
  8025. Back() { },
  8026. carcode(id, item) {
  8027. this.$api.letter.getQrCode(id).then(res => {
  8028. if (res.code == "200") {
  8029. this.inscompany = res.data.inscompany; //保险公司
  8030. this.sumpremium = res.data.sumpremium; //总价
  8031. this.licenseNo = res.data.cPlateNo; //车牌号
  8032. this.applyName = res.data.cInsuredNme; //车主
  8033. this.jqpremium = res.data.jqpremium; //交强
  8034. this.sypremium = res.data.sypremium; //商业
  8035. this.taxamount = res.data.taxamount; //车船税
  8036. this.jypremium = res.data.jypremium; //驾意险
  8037. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  8038. this.systartdate = res.data.syStartDate; //商业起保日期
  8039. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  8040. let qrCodeUrl = res.data.qrCodeUrl
  8041. this.$api.letter.getThemeByUserId().then(res => {
  8042. if (res.code == 200) {
  8043. if (res.data.themeCode == 'GD') {
  8044. this.codedialogVisiblePro = true;
  8045. this.qrcodeWidth = "154";
  8046. this.qrcodeHeight = "154";
  8047. }
  8048. else {
  8049. this.codedialogVisible = true;
  8050. }
  8051. this.$nextTick(function () {
  8052. if (item.inscompany == "太平财险") {
  8053. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  8054. let animgBase64 = `data:image/png;base64,${anresult}`;
  8055. base64ToPath(animgBase64).then(path => {
  8056. this.paycodeimg = path;
  8057. });
  8058. } else {
  8059. this.creatQrCode(qrCodeUrl);
  8060. }
  8061. });
  8062. }
  8063. })
  8064. } else {
  8065. this.$message({ message: res.msg, type: "warning" });
  8066. }
  8067. });
  8068. },
  8069. //同步
  8070. synchronization() {
  8071. this.systartDate = this.jqstartDate;
  8072. this.syendDate = this.jqendDate;
  8073. },
  8074. //影像上传
  8075. uploadinformation() {
  8076. // //上传图片
  8077. const mergedArray = [
  8078. ...this.imageList1,
  8079. ...this.imageList2,
  8080. ...this.imageList3,
  8081. ...this.imageList4,
  8082. ...this.imageList5
  8083. ];
  8084. let imageparam = {
  8085. imageList: mergedArray,
  8086. quoteNo: this.quoteno
  8087. };
  8088. this.$api.letter.uploadImages(imageparam).then(responses => {
  8089. if (responses.code == "200") {
  8090. this.imageEcho(this.quoteno);
  8091. this.$message({ message: responses.msg, type: "success" });
  8092. } else {
  8093. this.$message({ message: responses.msg, type: "error" });
  8094. }
  8095. });
  8096. this.imageUploaddialogVisible = false;
  8097. },
  8098. add() {
  8099. this.obtainProtocol();
  8100. if (this.isLetter) {
  8101. this.$router.push({ path: "/letter/letter" });
  8102. }
  8103. for (let key in this.ownerInfo) {
  8104. this.ownerInfo[key] = "";
  8105. }
  8106. for (let key in this.policyHolderInfo) {
  8107. this.policyHolderInfo[key] = "";
  8108. }
  8109. for (let key in this.insuredPersonInfo) {
  8110. this.insuredPersonInfo[key] = "";
  8111. }
  8112. this.vehicleAndVesselTaxForm = {
  8113. taxRelifFlag: "1",
  8114. taxpayerIdentifier: "01"
  8115. };
  8116. this.ownerInfo.provinceData = [];
  8117. this.insuredPersonInfo.provinceData = [];
  8118. this.policyHolderInfo.provinceData = [];
  8119. this.carInfo = JSON.parse(localStorage.getItem("carInfo"));
  8120. this.insureList = JSON.parse(localStorage.getItem("insureList"));
  8121. this.sychecked = false;
  8122. this.yonganchecked = false;
  8123. this.zhongmeichecked = false;
  8124. this.transferDateShow = false;
  8125. (this.tbczcarShow = true), //投保人同车主
  8126. // this.bbczcarShow = false, //被保人同车主
  8127. (this.bbtbcarShow = true), //被保人同投保人
  8128. (this.imageList1 = []);
  8129. this.imageList2 = [];
  8130. this.imageList3 = [];
  8131. this.imageList4 = [];
  8132. this.imgList1 = [];
  8133. this.imgList2 = [];
  8134. this.imgList3 = [];
  8135. this.imgList4 = [];
  8136. this.imgList5 = [];
  8137. this.imgList6 = [];
  8138. this.imgList7 = [];
  8139. this.imgList8 = [];
  8140. // 清空保险公司选中的意外险
  8141. this.zijintemplateSelection = "";
  8142. this.zhongantemplateSelection = "";
  8143. this.hengbangtemplateSelection = "";
  8144. this.taipingtemplateSelection = "";
  8145. this.insuranceHN = "";
  8146. this.renshoutemplateSelection = "";
  8147. this.dajiatemplateSelection = "";
  8148. this.accidentForm = {
  8149. fen: "1",
  8150. premium: 0
  8151. };
  8152. this.accidentFormHN = {
  8153. allQuantity: "1",
  8154. quantity:'1'
  8155. };
  8156. this.hengbangaccidentalDrivingVo = {};
  8157. this.huanongaccidentalDrivingVo = {};
  8158. this.taipingaccidentalDrivingVo = {};
  8159. this.zhongmeiaccidentalDrivingVo = {};
  8160. this.accidentalDrivingVo = [];
  8161. this.zhonganaccidentalDrivingVo = {};
  8162. this.renshouaccidentalDrivingVo = {};
  8163. this.anshengaccidentalDrivingVo = {};
  8164. this.dajiaaccidentalDrivingVo = {};
  8165. // this.selectedOptions1 = [];
  8166. // this.selectedOptions2 = [];
  8167. // this.selectedOptions3 = [];
  8168. this.orderno = "";
  8169. this.quoteno = "";
  8170. this.lastCompanyId = "";
  8171. this.HistoryList = [];
  8172. this.jqstartDate = this.transformTime1();
  8173. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  8174. this.systartDate = this.transformTime1();
  8175. this.syendDate = this.oneYearPast1(this.jqstartDate);
  8176. },
  8177. toChinesNum(num) {
  8178. if (num.toString().length == 4) {
  8179. let overQian = Math.floor(num / 1000);
  8180. let result = overQian + "千";
  8181. return result;
  8182. } else {
  8183. let overWan = Math.floor(num / 10000);
  8184. let result = overWan + "万";
  8185. return result;
  8186. }
  8187. },
  8188. reportDrop(event) {
  8189. event.preventDefault();
  8190. event.stopPropagation();
  8191. },
  8192. tabLiScroll(id, idx) {
  8193. this.tabLiIndex = idx;
  8194. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  8195. },
  8196. handleScroll(id) {
  8197. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  8198. }
  8199. }
  8200. };
  8201. </script>
  8202. <style>
  8203. /* .customNotifyClass {
  8204. word-break: break-all;
  8205. width: 600px;
  8206. } */
  8207. </style>
  8208. <style lang="scss" scoped>
  8209. .marginL {
  8210. margin-left: 10px;
  8211. }
  8212. .el-notification {
  8213. width: 600px;
  8214. }
  8215. .styleB .el-upload--picture-card {
  8216. // display: none;
  8217. opacity: 0;
  8218. }
  8219. .ORcodebody {
  8220. height: auto;
  8221. background-color: #fff;
  8222. //background: url(../../../assets/image/group.png) #fff;
  8223. padding: 16px;
  8224. }
  8225. .csstool {
  8226. font-weight: 600;
  8227. color: #606266;
  8228. font-size: 14px;
  8229. margin: 0 20px;
  8230. span {
  8231. margin-right: 5px;
  8232. }
  8233. }
  8234. .ORcode {
  8235. width: 100%;
  8236. height: auto;
  8237. display: flex;
  8238. justify-content: center;
  8239. align-items: center;
  8240. padding: 30px;
  8241. box-sizing: border-box;
  8242. &>div {
  8243. width: 176px;
  8244. height: 176px;
  8245. border: 1px solid var(--themeColor);
  8246. border-radius: 5px;
  8247. }
  8248. }
  8249. .ORtitle {
  8250. width: 100%;
  8251. padding-bottom: 20px;
  8252. box-sizing: border-box;
  8253. &>div {
  8254. width: 100%;
  8255. margin: 10px 0;
  8256. font-size: 14px;
  8257. &>span {
  8258. &:nth-child(1) {
  8259. color: #868b98;
  8260. text-align: end;
  8261. width: 150px;
  8262. }
  8263. &:nth-child(2) {
  8264. color: #333333;
  8265. }
  8266. }
  8267. }
  8268. }
  8269. .Risk {
  8270. width: 100%;
  8271. height: auto;
  8272. display: flex;
  8273. flex-direction: column;
  8274. align-items: center;
  8275. font-size: 12px;
  8276. }
  8277. .dis {
  8278. display: flex;
  8279. }
  8280. .align {
  8281. align-items: center;
  8282. }
  8283. .jus {
  8284. justify-content: space-between;
  8285. }
  8286. .shangyexian {
  8287. padding-left: 100px;
  8288. }
  8289. .headertotal {
  8290. padding: 30px;
  8291. }
  8292. .my-label {
  8293. background: #e1f3d8;
  8294. }
  8295. .my-content {
  8296. background: #fde2e2;
  8297. color: aqua;
  8298. }
  8299. .el-button--mini {
  8300. padding: 5px;
  8301. }
  8302. #qqq {
  8303. background-color: #111;
  8304. width: 300px;
  8305. height: 300px;
  8306. margin: 0 auto;
  8307. position: relative;
  8308. }
  8309. #qrCode {
  8310. display: inline-block;
  8311. margin: 0 auto;
  8312. position: relative;
  8313. top: 15%;
  8314. img {
  8315. width: 200px;
  8316. height: 200px;
  8317. background-color: #fff;
  8318. padding: 6px;
  8319. }
  8320. }
  8321. .code {
  8322. box-sizing: border-box;
  8323. display: flex;
  8324. flex-direction: column;
  8325. justify-content: space-between;
  8326. align-items: center;
  8327. &>span {
  8328. margin-bottom: 10px;
  8329. }
  8330. }
  8331. .code_name {
  8332. width: 350px;
  8333. display: flex;
  8334. justify-content: space-between;
  8335. align-items: center;
  8336. font-weight: bold;
  8337. &>span {
  8338. &:nth-child(1) {
  8339. color: #979797;
  8340. width: 120px;
  8341. text-align: right;
  8342. }
  8343. &:nth-child(2) {
  8344. color: #2d2d2d;
  8345. width: 120px;
  8346. text-align: left;
  8347. }
  8348. }
  8349. }
  8350. .header {
  8351. font-size: 18px;
  8352. font-weight: bold;
  8353. }
  8354. .body {
  8355. border-top: none;
  8356. padding-bottom: 100px;
  8357. box-sizing: border-box;
  8358. }
  8359. .u-f-ac {
  8360. -webkit-box-align: center;
  8361. align-items: center;
  8362. padding: 10px;
  8363. }
  8364. .bodyTitle {
  8365. height: 45px;
  8366. background: #f3f3f3;
  8367. border: 1px solid #dddddd;
  8368. line-height: 45px;
  8369. padding: 0 20px;
  8370. box-sizing: border-box;
  8371. }
  8372. .start {
  8373. justify-content: flex-start;
  8374. }
  8375. .end {
  8376. justify-content: flex-end;
  8377. }
  8378. .descriptions {
  8379. padding: 20px;
  8380. box-sizing: border-box;
  8381. display: flex;
  8382. flex-direction: column;
  8383. }
  8384. .bodys {
  8385. display: flex;
  8386. justify-content: space-between;
  8387. align-items: center;
  8388. flex-wrap: wrap;
  8389. }
  8390. .bodys1 {
  8391. display: flex;
  8392. justify-content: center;
  8393. align-items: center;
  8394. flex-wrap: wrap;
  8395. }
  8396. .widths {
  8397. width: 230px;
  8398. }
  8399. .widths1 {
  8400. width: 300px;
  8401. }
  8402. .back {
  8403. color: #333333;
  8404. // font-weight: 700;
  8405. }
  8406. .home {
  8407. // padding-left: 10px;
  8408. box-sizing: border-box;
  8409. padding-bottom: 10px;
  8410. border-bottom: 1px solid #eef1f6;
  8411. &>span {
  8412. margin-right: 10px;
  8413. }
  8414. }
  8415. .hovers {
  8416. margin: 10px 0;
  8417. cursor: pointer;
  8418. padding: 10px 0;
  8419. box-sizing: border-box;
  8420. border-bottom: 1px solid #f2f2f2;
  8421. .offer-time {
  8422. margin: 20px 0 0px 100px;
  8423. padding: 10px;
  8424. background: rgba(45, 77, 137, 0.06);
  8425. &>span {
  8426. margin: 0 10px;
  8427. }
  8428. }
  8429. }
  8430. /* 内容待定 */
  8431. .coll {
  8432. font-size: 14px;
  8433. }
  8434. .display {
  8435. display: flex;
  8436. justify-content: center;
  8437. align-items: center;
  8438. box-sizing: border-box;
  8439. }
  8440. .black {
  8441. color: #000;
  8442. }
  8443. .gray {
  8444. color: #999;
  8445. }
  8446. .OCR {
  8447. font-weight: bold;
  8448. color: #333;
  8449. margin: 20px;
  8450. }
  8451. .slot {
  8452. position: absolute;
  8453. width: 100%;
  8454. height: 100%;
  8455. left: 0;
  8456. top: 0;
  8457. cursor: default;
  8458. text-align: center;
  8459. color: #fff;
  8460. opacity: 0;
  8461. font-size: 20px;
  8462. background-color: rgba(0, 0, 0, 0.5);
  8463. transition: opacity 0.3s;
  8464. display: flex;
  8465. justify-content: center;
  8466. align-items: center;
  8467. &>i {
  8468. margin: 10px;
  8469. color: #fff;
  8470. font-size: 30px;
  8471. font-weight: bold;
  8472. cursor: pointer;
  8473. }
  8474. &:hover {
  8475. opacity: 1;
  8476. }
  8477. }
  8478. .companyhead {
  8479. width: 100%;
  8480. margin: 0 auto;
  8481. padding: 15px 10px;
  8482. color: #333;
  8483. font-weight: bold;
  8484. font-size: 14px;
  8485. background-color: #f7f7f9;
  8486. }
  8487. .footer {
  8488. width: calc(100% - 200px);
  8489. position: fixed;
  8490. bottom: 0;
  8491. right: 0;
  8492. background-color: #fff;
  8493. z-index: 9;
  8494. padding: 20px;
  8495. box-sizing: border-box;
  8496. box-shadow: 0 0 1px 0 #ccc;
  8497. transition: all 0.3s, box-shadow 0.5s;
  8498. &.shadow {
  8499. box-shadow: 0 -10px 10px -10px #ccc;
  8500. }
  8501. }
  8502. .Enclosure {
  8503. width: 100%;
  8504. background-color: #fff;
  8505. padding: 20px;
  8506. box-sizing: border-box;
  8507. margin-bottom: 15px;
  8508. border-radius: 6px;
  8509. border: 1px solid #ebeef5;
  8510. transition: all 0.2s ease-in-out;
  8511. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  8512. }
  8513. .icon-img {
  8514. display: block;
  8515. width: 30px;
  8516. height: 30px;
  8517. }
  8518. .Anchor-link {
  8519. width: 40px;
  8520. background-color: #fff;
  8521. box-shadow: #ccc 0 0px 3px 0;
  8522. border-radius: 6px;
  8523. position: fixed;
  8524. top: 50%;
  8525. right: 0;
  8526. z-index: 99;
  8527. div {
  8528. margin: 5px;
  8529. border-bottom: 1px solid #f2f2f2;
  8530. cursor: pointer;
  8531. display: block;
  8532. }
  8533. }
  8534. .color {
  8535. padding-top: 150px;
  8536. margin-top: -150px;
  8537. }
  8538. .more {
  8539. width: 100%;
  8540. padding: 20px;
  8541. box-sizing: border-box;
  8542. }
  8543. .more-title {
  8544. padding: 15px 10px;
  8545. background-color: #f7f7f9;
  8546. // border-bottom: 1px solid #e3e3e3;
  8547. font-size: 14px;
  8548. }
  8549. .more-data {
  8550. padding: 10px;
  8551. border-bottom: 1px solid #f2f2f2;
  8552. color: #d42426;
  8553. font-size: 14px;
  8554. }
  8555. .Driving-risk {
  8556. padding-left: 100px;
  8557. // padding-top:20px
  8558. }
  8559. .checkbox {
  8560. transform: scale(1.2);
  8561. margin-right: 20px;
  8562. line-height: 32px;
  8563. }
  8564. .insure-long-term {
  8565. display: inline-flex;
  8566. padding-left: 8px;
  8567. padding-right: 8px;
  8568. background: var(--themeColor);
  8569. color: #fff;
  8570. font-size: 12px;
  8571. margin-left: -5px;
  8572. border-radius: 0px 5px 5px 0px;
  8573. cursor: pointer;
  8574. }
  8575. .textareaSty {
  8576. width: 160px;
  8577. height: 210px;
  8578. border: 1px solid #d2d2d2;
  8579. border-radius: 4px;
  8580. img {
  8581. width: 50px;
  8582. height: 50px;
  8583. }
  8584. }
  8585. .image-title {
  8586. width: 100px;
  8587. height: 30px;
  8588. color: #fff;
  8589. text-align: center;
  8590. line-height: 30px;
  8591. font-weight: bold;
  8592. margin-bottom: 15px;
  8593. background: #fc4a1a;
  8594. background: #f2994a;
  8595. /* fallback for old browsers */
  8596. background: -webkit-linear-gradient(to left, #f2c94c, #f2994a);
  8597. /* Chrome 10-25, Safari 5.1-6 */
  8598. background: linear-gradient(to left, #f2c94c, #f2994a);
  8599. /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  8600. }
  8601. .aaa /deep/ {
  8602. margin-bottom: 20px;
  8603. margin-right: 50px;
  8604. span {
  8605. display: inline-block;
  8606. margin-bottom: 10px;
  8607. }
  8608. .el-upload .el-upload-dragger {
  8609. width: 180px;
  8610. height: 120px;
  8611. border: 1px dashed #c0ccda;
  8612. padding: 0;
  8613. }
  8614. .el-upload-list--picture-card .el-upload-list__item {
  8615. width: 180px;
  8616. height: 120px;
  8617. }
  8618. .el-upload-list__item:first-child {
  8619. margin-top: 0;
  8620. }
  8621. }
  8622. .jyxStyle>span {
  8623. display: inline-block;
  8624. text-align: center;
  8625. }
  8626. .tab-style {
  8627. width: 110px;
  8628. li {
  8629. text-align: right;
  8630. padding-right: 20px;
  8631. line-height: 40px;
  8632. cursor: pointer;
  8633. box-sizing: border-box;
  8634. border-right: 1px solid #e2e5eb;
  8635. }
  8636. li:focus {
  8637. background: rgba(212, 36, 38, 0.1);
  8638. border-right: 2px solid var(--themeColor);
  8639. color: var(--themeColor);
  8640. }
  8641. }
  8642. .tabLi-style {
  8643. background: rgba(212, 36, 38, 0.1);
  8644. border-right: 2px solid var(--themeColor);
  8645. color: var(--themeColor);
  8646. }
  8647. .scan-code {
  8648. div {
  8649. margin-top: 10px;
  8650. }
  8651. }
  8652. /* 清除图片上传动画bug */
  8653. /deep/ {
  8654. .proSaomazhifucodeClass .el-dialog__header {
  8655. background: rgba(45, 77, 137, 0.1);
  8656. font-weight: bold;
  8657. }
  8658. .proSaomazhifucodeClass .el-dialog__footer {
  8659. border-top: 1px solid #eef1f6;
  8660. }
  8661. .el-upload-list__item {
  8662. transition: none !important;
  8663. }
  8664. .el-checkbox__input {
  8665. &.is-checked {
  8666. .el-checkbox__inner {
  8667. background-color: #d42426;
  8668. border-color: #d42426;
  8669. }
  8670. }
  8671. }
  8672. .el-checkbox__inner {
  8673. border: 1px solid var(--themeColor);
  8674. &:hover {
  8675. border-color: var(--themeColorHover);
  8676. }
  8677. &:focus {
  8678. border-color: var(--themeColor);
  8679. }
  8680. }
  8681. .el-upload .el-upload-dragger {
  8682. height: 250px;
  8683. width: 400px;
  8684. border: 1px dashed #ced4da;
  8685. }
  8686. .el-upload--picture-card {
  8687. width: 180px;
  8688. height: 120px;
  8689. }
  8690. .el-upload-list__item {
  8691. width: 180px;
  8692. height: 120px;
  8693. margin: 0 !important;
  8694. display: block !important;
  8695. }
  8696. .el-upload-list--picture-card .el-upload-list__item-thumbnail {
  8697. width: 180px;
  8698. height: 120px;
  8699. }
  8700. // .el-button--warning {
  8701. // color: #fff;
  8702. // background-color: #D42426;
  8703. // border-color: #D42426;
  8704. // &:hover {
  8705. // color: #fff;
  8706. // background-color: #ee6f00ce;
  8707. // border-color: #ee6f00ce;
  8708. // }
  8709. // }
  8710. .el-descriptions-item__label {
  8711. &:not(.is-bordered-label) {
  8712. color: #333;
  8713. }
  8714. }
  8715. // .el-radio__input.is-checked + .el-radio__label {
  8716. // color: #ff7000;
  8717. // }
  8718. // .el-radio__input.is-checked .el-radio__inner {
  8719. // border-color: #ff7000;
  8720. // background: #ff7000;
  8721. // }
  8722. // .el-radio__inner {
  8723. // &:hover {
  8724. // border-color: #ff7000;
  8725. // }
  8726. // }
  8727. // .el-input--small .el-icon-date {
  8728. // color: #ee6f00ce;
  8729. // }
  8730. .el-select {
  8731. width: 100%;
  8732. }
  8733. .el-date-editor.el-input {
  8734. width: 100%;
  8735. }
  8736. .el-cascader--small {
  8737. width: 100%;
  8738. }
  8739. .styleB {
  8740. height: 128px;
  8741. }
  8742. .styleB .el-upload--picture-card {
  8743. display: none;
  8744. }
  8745. .saomazhifucodeClass .el-dialog__body,
  8746. .saomazhifucodeClass .el-dialog__header,
  8747. .saomazhifucodeClass .el-dialog__footer {
  8748. padding: 0;
  8749. background: #f4e9e9;
  8750. }
  8751. .saomazhifucodeClass .el-dialog__body {
  8752. padding: 15px;
  8753. }
  8754. .saomazhifucodeClass .el-dialog__footer {
  8755. background: #f4e9e9;
  8756. padding-bottom: 15px;
  8757. }
  8758. .saomazhifucodeClass .el-dialog__headerbtn {
  8759. margin-top: 10px;
  8760. }
  8761. .zmDriving {
  8762. thead .el-table-column--selection .cell {
  8763. display: none !important;
  8764. }
  8765. }
  8766. .synchronous {
  8767. width: 75px;
  8768. height: 45px;
  8769. line-height: 45px;
  8770. color: #fff;
  8771. cursor: pointer;
  8772. background: url(../../../../src/icon/Union2.png) no-repeat 100%;
  8773. }
  8774. .synchronous:hover {
  8775. background: url(../../../../src/icon/Union1.png) no-repeat 100%;
  8776. }
  8777. .line_style {
  8778. margin-top: 20px;
  8779. }
  8780. .el-input-group__append {
  8781. vertical-align: baseline;
  8782. }
  8783. }
  8784. </style>