KtLetter1.vue 567 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880
  1. <template>
  2. <div class="body">
  3. <div class="Enclosure flex f-c back" v-if="isLetter == '1'">
  4. <div class="home flex j-s a-c">
  5. <div class="flex j-s a-c">
  6. <img src="../../../../src/icon/归属信息.png" alt class="icon-img" />
  7. <span style="margin-left: 10px">归属信息</span>
  8. </div>
  9. </div>
  10. <el-form class="demo-ruleForm" :model="userform" ref="userform" label-width="130px" size="small"
  11. style="margin-top: 15px" disabled label-position="top">
  12. <el-row :gutter="colgutter">
  13. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  14. <el-form-item label="业务员">
  15. <el-input v-model="userform.name"></el-input>
  16. </el-form-item>
  17. </el-col>
  18. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  19. <el-form-item label="工号">
  20. <el-input v-model="userform.id" type="text"></el-input>
  21. </el-form-item>
  22. </el-col>
  23. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  24. <el-form-item label="工号类型">
  25. <el-select v-model="userform.usertype" style="width: 100%;">
  26. <el-option label="业务员" value="A"></el-option>
  27. <el-option label="代理人" value="B"></el-option>
  28. </el-select>
  29. </el-form-item>
  30. </el-col>
  31. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  32. <el-form-item label="归属">
  33. <el-input v-model="deptName"></el-input>
  34. </el-form-item>
  35. </el-col>
  36. </el-row>
  37. </el-form>
  38. </div>
  39. <div class="Enclosure flex f-c back" v-if="isLetter == '1'">
  40. <div class="home flex j-s a-c">
  41. <div class="flex j-s a-c">
  42. <img src="../../../../src/icon/快速查询.png" alt class="icon-img" />
  43. <span style="margin-left: 10px">快速查询</span>
  44. </div>
  45. <el-button size="small" type="primary" @click="continuousquery()">
  46. <i class="el-icon-search" style="margin-right: 1px"></i>
  47. 续保查询
  48. </el-button>
  49. </div>
  50. <el-form class="demo-ruleForm" :model="attributionform" ref="continuousform" label-width="130px" size="small"
  51. style="margin-top: 15px" label-position="top">
  52. <el-row :gutter="colgutter">
  53. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  54. <el-form-item label="保险公司" prop="companyId">
  55. <el-select v-model="attributionform.companyId" placeholder="请选择保险公司" @change="continuousChange">
  56. <el-option v-for="(item, index) in continuousCompanyList" :key="index" :label="item.namesimple"
  57. :value="item.id"></el-option>
  58. </el-select>
  59. </el-form-item>
  60. </el-col>
  61. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl" 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 :gutter="colgutter">
  87. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  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" @blur="getCompanyList">
  92. <el-button slot="append" type="primary" icon="el-icon-search" @click="toCheckLicenseNo(carInfo.licenseNo)" style="color: #fff;"></el-button>
  93. </el-input>
  94. <el-checkbox v-model="licenseplate">已上牌</el-checkbox>
  95. </div>
  96. </el-form-item>
  97. </el-col>
  98. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  99. <el-form-item label="车辆识别代码" prop="frameNo" class="red-btn">
  100. <el-input placeholder="请输入车辆识别码" v-model="carInfo.frameNo" maxlength="17" type="text" show-word-limit @blur="getCompanyList">
  101. <el-button slot="append" type="primary" icon="el-icon-search" @click="toChooseVin(carInfo.frameNo)" style="color: #fff;"></el-button>
  102. </el-input>
  103. </el-form-item>
  104. </el-col>
  105. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  106. <el-form-item label="品牌型号" prop="modelcname" class="red-btn">
  107. <el-input v-model="carInfo.modelcname" placeholder="请输入品牌型号" type="text" @blur="getCompanyList">
  108. <el-button slot="append" icon="el-icon-search" type="primary"
  109. @click="toChooseVehicleType(carInfo.modelcname)" style="color: #fff;"></el-button>
  110. </el-input>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  114. <el-form-item label="发动机号" prop="engineNo">
  115. <el-input v-model="carInfo.engineNo" placeholder="请输入发动机号" @blur="getCompanyList"></el-input>
  116. </el-form-item>
  117. </el-col>
  118. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  119. <el-form-item label="年款" prop="caryear">
  120. <el-input onkeyup="value=value.replace(/\D/g,'')" @blur="getCompanyList" v-model="carInfo.caryear" placeholder="请输入年款"></el-input>
  121. </el-form-item>
  122. </el-col>
  123. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  124. <el-form-item label="座位数" prop="seatCount">
  125. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.seatCount" placeholder="请输入座位数" @blur="getCompanyList">
  126. <el-button slot="append">座</el-button>
  127. </el-input>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  131. <el-form-item label="整备质量" prop="completeKerbMass">
  132. <el-input v-model="carInfo.completeKerbMass" placeholder="请输入整备质量" @blur="getCompanyList">
  133. <el-button slot="append">千克(KG)</el-button>
  134. </el-input>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  145. <el-form-item label="排量" prop="enginedesc">
  146. <el-input v-model="carInfo.enginedesc" placeholder="请输入排量" @blur="getCompanyList">
  147. <el-button slot="append">升(L)</el-button>
  148. </el-input>
  149. </el-form-item>
  150. </el-col>
  151. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  152. <el-form-item label="功率" prop="powerScale">
  153. <el-input v-model="carInfo.powerScale" placeholder="请输入功率" @blur="getCompanyList">
  154. <el-button slot="append">千瓦(KW)</el-button>
  155. </el-input>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  159. <el-form-item label="新车购置价" prop="purchasePrice">
  160. <el-input onkeyup="value=value.replace(/\D/g,'')" v-model="carInfo.purchasePrice" placeholder="请输入新车购置价" @blur="getCompanyList">
  161. <el-button slot="append">元</el-button>
  162. </el-input>
  163. </el-form-item>
  164. </el-col>
  165. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  166. <el-form-item label="使用性质" prop="carnature">
  167. <el-select v-model="carInfo.carnature" placeholder="请选择使用性质" @change="natureFun" @blur="getCompanyList">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  174. <el-form-item label="车辆用途" prop="vehicleUse">
  175. <el-select v-if="carInfo.carnature == '02'" v-model="carInfo.vehicleUse" placeholder="请选择使车辆用途" @blur="getCompanyList">
  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="请选择使车辆用途" @blur="getCompanyList">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  186. <el-form-item label="车辆类型" prop="cartype">
  187. <el-select v-model="carInfo.cartype" placeholder="请选择车辆种类" filterable clearable @blur="getCompanyList">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  194. <el-form-item label="车辆种类" prop="cimodelclass">
  195. <el-select v-model="carInfo.cimodelclass" placeholder="请选择车辆种类" clearable @blur="getCompanyList">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  202. <el-form-item label="能源种类" prop="energyType">
  203. <el-select v-model="carInfo.energyType" placeholder="请选择能源种类" @blur="getCompanyList">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  210. <el-form-item label="注册日期" prop="registerDate" class="red-btn">
  211. <el-date-picker v-dateFormat v-model="carInfo.registerDate" :picker-options="pickerOptions" @blur="getCompanyList"
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  216. <el-form-item label="发证日期" prop="issueDate" class="red-btn" @blur="getCompanyList">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl" 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" @blur="getCompanyList"
  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 :gutter="colgutter">
  243. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  244. <el-form-item label="车主姓名" prop="name">
  245. <el-input v-model="ownerInfo.name" placeholder="请输入车主姓名" @blur="getCompanyList"></el-input>
  246. </el-form-item>
  247. </el-col>
  248. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  249. <el-form-item label="证件类型" prop="identifyType">
  250. <el-select v-model="ownerInfo.identifyType" placeholder="身份证" @blur="getCompanyList" disabled>
  251. <el-option label="身份证" value="01"></el-option>
  252. </el-select>
  253. </el-form-item>
  254. </el-col>
  255. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  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'); getCompanyList"></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  262. <el-form-item label="年龄" prop="age">
  263. <el-input v-model="ownerInfo.age" placeholder="请输入年龄" type="text" disabled @blur="getCompanyList"></el-input>
  264. </el-form-item>
  265. </el-col>
  266. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  267. <el-form-item label="性别" prop="gender">
  268. <el-select @change="genderChange" v-model="ownerInfo.gender" placeholder="请选择性别" @blur="getCompanyList">
  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 :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  275. <el-form-item label="车主手机号" prop="mobile">
  276. <el-input v-model="ownerInfo.mobile" placeholder="请输入车主手机号" type="text" maxlength="11" @blur="getCompanyList"
  277. @paste.native="handlePaste($event, 'ownerInfo')" show-word-limit></el-input>
  278. </el-form-item>
  279. </el-col>
  280. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  281. <el-form-item label="地址" prop="addr">
  282. <el-input v-model="ownerInfo.addr" placeholder="请输入地址" type="text" @blur="getCompanyList"></el-input>
  283. </el-form-item>
  284. </el-col>
  285. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  286. <el-form-item label="有效期起期" prop="identifyValidDate">
  287. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidDate" value-format="yyyy-MM-dd" @blur="getCompanyList"
  288. :picker-options="pickerOptions" type="date" placeholder="选择注册日期"
  289. placement="bottom-start"></el-date-picker>
  290. </el-form-item>
  291. </el-col>
  292. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  293. <el-form-item label="有效期止期" prop="identifyValidEndDate" class="red-btn">
  294. <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidEndDate" type="date" value-format="yyyy-MM-dd" @blur="getCompanyList"
  295. placeholder="选择有效期" placement="bottom-start" style="width: calc(100% - 40px)"></el-date-picker>
  296. <div class="insure-long-term" @click="insureLongterm('ownerInfo')">
  297. 长期
  298. </div>
  299. </el-form-item>
  300. </el-col>
  301. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  302. <el-form-item label="电子邮箱" prop="email">
  303. <el-input v-model="ownerInfo.email" placeholder="请输入电子邮箱"></el-input>
  304. </el-form-item>
  305. </el-col>
  306. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="iscCrownerShow">
  307. <el-form-item label="省市区:">
  308. <el-cascader v-model="ownerInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  309. </el-form-item>
  310. </el-col>-->
  311. </el-row>
  312. </el-form>
  313. </div>
  314. <div class="Enclosure flex f-c back">
  315. <div class="home flex j-s a-c">
  316. <div class="flex j-s a-c" id="toubaor">
  317. <img src="../../../../src/icon/投保人信息.png" alt class="icon-img" />
  318. <span style="margin-left: 10px">投保人信息</span>
  319. </div>
  320. <div class="flex a-c j-c">
  321. <div style="font-size: 12px; margin: 0 10px">
  322. 同车主
  323. <el-switch v-model="tbczcarShow" active-color="#D42426" @change="tbczcarShowChange()"></el-switch>
  324. </div>
  325. <el-button size="small" type="primary" @click="uploaduser(3)">
  326. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  327. 证件识别
  328. </el-button>
  329. </div>
  330. </div>
  331. <el-form v-show="!tbczcarShow" class="demo-ruleForm" :model="policyHolderInfo" ref="policyHolderInfo" :rules="rules"
  332. label-width="130px" size="small " style="margin-top: 15px" label-position="top">
  333. <el-row :gutter="colgutter">
  334. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  335. <el-form-item label="投保人姓名" prop="name">
  336. <el-input v-model="policyHolderInfo.name" placeholder="请输入投保人姓名" @blur="getCompanyList"></el-input>
  337. </el-form-item>
  338. </el-col>
  339. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  340. <el-form-item label="证件类型" prop="identifyType">
  341. <el-select v-model="policyHolderInfo.identifyType" placeholder="身份证" disabled @blur="getCompanyList">
  342. <el-option label="身份证" value="01"></el-option>
  343. </el-select>
  344. </el-form-item>
  345. </el-col>
  346. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  347. <el-form-item label="证件号码" prop="identifyNumber">
  348. <el-input v-model="policyHolderInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  349. show-word-limit @blur="identifyblur('policyHolderInfo'); getCompanyList"></el-input>
  350. </el-form-item>
  351. </el-col>
  352. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  353. <el-form-item label="年龄" prop="age">
  354. <el-input v-model="policyHolderInfo.age" placeholder="请输入年龄" type="text" disabled @blur="getCompanyList"></el-input>
  355. </el-form-item>
  356. </el-col>
  357. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  358. <el-form-item label="性别" prop="gender">
  359. <el-select v-model="policyHolderInfo.gender" placeholder="请选择性别" @blur="getCompanyList">
  360. <el-option label="男" value="男"></el-option>
  361. <el-option label="女" value="女"></el-option>
  362. </el-select>
  363. </el-form-item>
  364. </el-col>
  365. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  366. <el-form-item label="投保人手机号" prop="mobile">
  367. <el-input v-model="policyHolderInfo.mobile" placeholder="请输入投保人手机号" maxlength="11" type="text" @blur="getCompanyList"
  368. @paste.native="handlePaste($event, 'policyHolderInfo')" show-word-limit></el-input>
  369. </el-form-item>
  370. </el-col>
  371. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  372. <el-form-item label="省市区:">
  373. <el-cascader v-model="selectedOptions2" :options="areaOptions"
  374. @change="event => areahandleChange(event, 'policyHolderInfo')"></el-cascader>
  375. </el-form-item>
  376. </el-col>-->
  377. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  378. <el-form-item label="地址" prop="addr">
  379. <el-input v-model="policyHolderInfo.addr" placeholder="请输入地址" type="text" @blur="getCompanyList"></el-input>
  380. </el-form-item>
  381. </el-col>
  382. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  383. <el-form-item label="有效期起期" prop="identifyValidDate">
  384. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidDate" value-format="yyyy-MM-dd" @blur="getCompanyList"
  385. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  386. </el-form-item>
  387. </el-col>
  388. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  389. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  390. <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidEndDate" type="date" @blur="getCompanyList"
  391. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  392. style="width: calc(100% - 40px)"></el-date-picker>
  393. <div class="insure-long-term" @click="insureLongterm('policyHolderInfo')">
  394. 长期
  395. </div>
  396. </el-form-item>
  397. </el-col>
  398. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  399. <el-form-item label="电子邮箱" prop="email">
  400. <el-input v-model="policyHolderInfo.email" placeholder="请输入电子邮箱"></el-input>
  401. </el-form-item>
  402. </el-col>
  403. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isApplicantShow">
  404. <el-form-item label="省市区:">
  405. <el-cascader v-model="policyHolderInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  406. </el-form-item>
  407. </el-col>-->
  408. </el-row>
  409. </el-form>
  410. </div>
  411. <!-- 被保人信息 -->
  412. <div class="Enclosure flex f-c back">
  413. <div class="home flex j-s a-c">
  414. <div class="flex j-s a-c" id="beitoubaoren">
  415. <img src="../../../../src/icon/被投保人信息.png" alt class="icon-img" />
  416. <span style="margin-left: 10px">被保人信息</span>
  417. </div>
  418. <div class="flex j-s a-c">
  419. <div style="font-size: 12px; margin: 0 10px" v-show="!bbtbcarShow && !bbczcarShow">
  420. <el-button size="small" type="primary" @click="clearBbxx">清空被保人信息</el-button>
  421. </div>
  422. <div style="font-size: 12px; margin: 0 10px">
  423. 同投保人
  424. <el-switch v-model="bbtbcarShow" active-color="#D42426" @change="bbtbcarShowChange()"></el-switch>
  425. </div>
  426. <div style="font-size: 12px; margin: 0 10px">
  427. 同车主
  428. <el-switch v-model="bbczcarShow" active-color="#D42426" @change="bbczcarShowChange()"></el-switch>
  429. </div>
  430. <el-button size="small" type="primary" @click="uploaduser(4)">
  431. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  432. 证件识别
  433. </el-button>
  434. </div>
  435. </div>
  436. <el-form v-show="!bbtbcarShow && !bbczcarShow" class="demo-ruleForm" :model="insuredPersonInfo"
  437. ref="insuredPersonInfo" :rules="rules" label-width="130px" size="small" style="margin-top: 15px"
  438. label-position="top">
  439. <el-row :gutter="colgutter">
  440. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  441. <el-form-item label="被保人姓名" prop="name">
  442. <el-input v-model="insuredPersonInfo.name" placeholder="请输入被保人姓名" @blur="getCompanyList"></el-input>
  443. </el-form-item>
  444. </el-col>
  445. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  446. <el-form-item label="证件类型" prop="identifyType">
  447. <el-select v-model="insuredPersonInfo.identifyType" placeholder="身份证" disabled @blur="getCompanyList">
  448. <el-option label="身份证" value="01"></el-option>
  449. </el-select>
  450. </el-form-item>
  451. </el-col>
  452. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  453. <el-form-item label="证件号码" prop="identifyNumber">
  454. <el-input v-model="insuredPersonInfo.identifyNumber" placeholder="请输入证件号码" type="text" maxlength="18"
  455. show-word-limit @blur="identifyblur('insuredPersonInfo'); getCompanyList"></el-input>
  456. </el-form-item>
  457. </el-col>
  458. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  459. <el-form-item label="年龄" prop="age">
  460. <el-input v-model="insuredPersonInfo.age" placeholder="请输入年龄" type="text" disabled @blur="getCompanyList"></el-input>
  461. </el-form-item>
  462. </el-col>
  463. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  464. <el-form-item label="性别" prop="gender">
  465. <el-select v-model="insuredPersonInfo.gender" placeholder="请选择性别" @blur="getCompanyList">
  466. <el-option label="男" value="男"></el-option>
  467. <el-option label="女" value="女"></el-option>
  468. </el-select>
  469. </el-form-item>
  470. </el-col>
  471. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  472. <el-form-item label="被保人手机号" prop="mobile">
  473. <el-input v-model="insuredPersonInfo.mobile" placeholder="请输入被保人手机号" maxlength="11" type="text" @blur="getCompanyList"
  474. @paste.native="handlePaste($event, 'insuredPersonInfo')" show-word-limit></el-input>
  475. </el-form-item>
  476. </el-col>
  477. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
  478. <el-form-item label="省市区:">
  479. <el-cascader v-model="selectedOptions3" :options="areaOptions"
  480. @change="event => areahandleChange(event, 'insuredPersonInfo')"></el-cascader>
  481. </el-form-item>
  482. </el-col>-->
  483. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  484. <el-form-item label="地址" prop="addr">
  485. <el-input v-model="insuredPersonInfo.addr" placeholder="请输入地址" type="text" @blur="getCompanyList"></el-input>
  486. </el-form-item>
  487. </el-col>
  488. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  489. <el-form-item label="有效期起期" prop="identifyValidDate">
  490. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidDate" value-format="yyyy-MM-dd" @blur="getCompanyList"
  491. :picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
  492. </el-form-item>
  493. </el-col>
  494. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  495. <el-form-item label="有效期止期" prop="identifyValidEndDate">
  496. <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidEndDate" type="date" @blur="getCompanyList"
  497. value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
  498. style="width: calc(100% - 40px)"></el-date-picker>
  499. <div class="insure-long-term" @click="insureLongterm('insuredPersonInfo')">
  500. 长期
  501. </div>
  502. </el-form-item>
  503. </el-col>
  504. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  505. <el-form-item label="电子邮箱" prop="email">
  506. <el-input v-model="insuredPersonInfo.email" placeholder="请输入电子邮箱"></el-input>
  507. </el-form-item>
  508. </el-col>
  509. <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isInsuredShow">
  510. <el-form-item label="省市区:">
  511. <el-cascader v-model="insuredPersonInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
  512. </el-form-item>
  513. </el-col>-->
  514. </el-row>
  515. </el-form>
  516. </div>
  517. <!-- 车船税 -->
  518. <div class="Enclosure flex f-c back">
  519. <div class="home flex j-s a-c">
  520. <div class="flex j-s a-c color" id="insurance">
  521. <img src="../../../../src/icon/车船税.png" alt class="icon-img" />
  522. <span style="margin-left: 10px">车船税</span>
  523. </div>
  524. </div>
  525. <el-form class="demo-ruleForm" :model="vehicleAndVesselTaxForm" ref="vehicleAndVesselTaxForm" :rules="rules"
  526. label-width="160px" size="small" style="margin-top: 15px" label-position="top">
  527. <el-row :gutter="colgutter">
  528. <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  529. <el-form-item label="纳税类型:" prop="taxRelifFlag">
  530. <el-select @change="taxRelifFlagChange" v-model="vehicleAndVesselTaxForm.taxRelifFlag" placeholder="纳税类型">
  531. <el-option v-for="(item, index) in taxRelifFlagoptions" :key="index" :label="item.dictTag"
  532. :value="item.dictValue"></el-option>
  533. </el-select>
  534. </el-form-item>
  535. </el-col>
  536. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  537. <el-form-item label="纳税人识别号:" prop="identifyNumber">
  538. <el-input v-model="vehicleAndVesselTaxForm.identifyNumber" placeholder="请输入纳税人识别号" type="text"></el-input>
  539. </el-form-item>
  540. </el-col>
  541. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  542. <el-form-item label="纳税人名称:" prop="taxpayerName">
  543. <el-input v-model="vehicleAndVesselTaxForm.taxpayerName" placeholder="请输入纳税人名称" type="text"></el-input>
  544. </el-form-item>
  545. </el-col>
  546. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 1" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  547. <el-form-item label="证件类型:" prop="taxpayerIdentifier">
  548. <el-select v-model="vehicleAndVesselTaxForm.taxpayerIdentifier" placeholder="证件类型" clearable>
  549. <el-option v-for="(item, index) in taxpayerIdentifieroptions" :key="index" :label="item.dictTag"
  550. :value="item.dictValue"></el-option>
  551. </el-select>
  552. </el-form-item>
  553. </el-col>
  554. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 ||
  555. vehicleAndVesselTaxForm.taxRelifFlag == 3
  556. " :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  557. <el-form-item label="减免税凭证号:" prop="extendChar2">
  558. <el-input v-model="vehicleAndVesselTaxForm.extendChar2" placeholder="请输入减免税凭证号" type="text"></el-input>
  559. </el-form-item>
  560. </el-col>
  561. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  562. <el-form-item label="完税凭证号:" prop="paidFreeCertificate">
  563. <el-input v-model="vehicleAndVesselTaxForm.paidFreeCertificate" placeholder="请输入完税凭证号"
  564. type="text"></el-input>
  565. </el-form-item>
  566. </el-col>
  567. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 ||
  568. vehicleAndVesselTaxForm.taxRelifFlag == 3
  569. " :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  570. <el-form-item label="减免税原因:" prop="relifReason">
  571. <el-select v-model="vehicleAndVesselTaxForm.relifReason" placeholder="减免税原因" clearable>
  572. <el-option v-for="(item, index) in relifReasonoptions" :key="index" :label="item.dictTag"
  573. :value="item.dictValue"></el-option>
  574. </el-select>
  575. </el-form-item>
  576. </el-col>
  577. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  578. <el-form-item label="税务机关代码:" prop="taxComCode">
  579. <el-input v-model="vehicleAndVesselTaxForm.taxComCode" placeholder="请输入税务机关代码" type="text"></el-input>
  580. </el-form-item>
  581. </el-col>
  582. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  583. <el-form-item label="税务机关名称:" prop="taxComName">
  584. <el-input v-model="vehicleAndVesselTaxForm.taxComName" placeholder="请输入税务机关名称" type="text"></el-input>
  585. </el-form-item>
  586. </el-col>
  587. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  588. <el-form-item label="完税凭证填发日期:" prop="taxDocumentDate">
  589. <el-date-picker v-dateFormat v-model="vehicleAndVesselTaxForm.taxDocumentDate" value-format="yyyy-MM-dd"
  590. type="date" placeholder="完税凭证填发日期" placement="bottom-start"></el-date-picker>
  591. </el-form-item>
  592. </el-col>
  593. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  594. <el-form-item label="完税凭证地区:" prop="taxPaidAreaCode">
  595. <el-select v-model="vehicleAndVesselTaxForm.taxPaidAreaCode" placeholder="完税凭证地区" clearable>
  596. <el-option v-for="(item, index) in provinceSelect" :key="index" :label="item.name"
  597. :value="item.code"></el-option>
  598. </el-select>
  599. </el-form-item>
  600. </el-col>
  601. <el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 3" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
  602. <el-form-item label="减税比例:" prop="taxRelief">
  603. <el-input v-model="vehicleAndVesselTaxForm.taxRelief" placeholder="请输入0~1的数值" type="text"></el-input>
  604. </el-form-item>
  605. </el-col>
  606. </el-row>
  607. </el-form>
  608. </div>
  609. <!-- 险别选择 -->
  610. <div class="Enclosure flex f-c back xianbie">
  611. <div class="home flex j-s a-c back">
  612. <div class="flex j-s a-c" id="more">
  613. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" />
  614. <span style="margin-left: 15px; width: 120px">险种选择</span>
  615. <!-- <el-select size="small" style="width: 70%" v-model="packageValue" placeholder="请选择套餐" @change="packageChange">
  616. <el-option v-for="item in packageOptions" :key="item.id" :label="item.title" :value="item.id"></el-option>
  617. </el-select> -->
  618. <el-radio-group v-model="productId" @change="productIdChange">
  619. <el-radio v-for="(item, index) in productList" :key="index" :label="item.code">{{ item.desc }}</el-radio>
  620. </el-radio-group>
  621. </div>
  622. </div>
  623. <!-- <div class="flex f-c more">
  624. <div class="flex j-s a-c more-title back">
  625. <div style="width: 590px; padding-left: 100px" class="flex j-s a-c">
  626. <span>险别</span>
  627. <span>保额(元)</span>
  628. </div>
  629. </div>
  630. <div class="flex a-c more-data back" v-for="(insureitem, insureindex) in insureList" :key="insureindex">
  631. <div style="width: 700px; padding-left: 100px" class="flex j-s a-c">
  632. <div style="width: auto">
  633. <span style="text-align: center">
  634. {{ insureitem.kindName }}
  635. <el-input v-show="insureitem.kindCode == 'D4' ||
  636. insureitem.kindCode == 'MJ4' ||
  637. insureitem.kindCode == 'SY_FJ_YBW2'
  638. " v-model="sumseatCount" style="width: 40px; margin: 0 5px" size="small" placeholder
  639. disabled></el-input>
  640. <span v-show="insureitem.kindCode == 'D4' ||
  641. insureitem.kindCode == 'MJ4' ||
  642. insureitem.kindCode == 'SY_FJ_YBW2'
  643. ">座</span>
  644. </span>
  645. </div>
  646. <el-select v-if="insureitem.amtList" filterable v-model="insureitem.amount" placeholder="请选择"
  647. @change="insureitemChange($event, insureitem)" size="small" style="width: 300px">
  648. <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
  649. :key="index"></el-option>
  650. </el-select>
  651. <span v-else>
  652. <el-input-number size="small" style="width: 280px; margin-right: 10px" v-model="insureitem.amount"
  653. :min="0"></el-input-number>次
  654. </span>
  655. </div>
  656. </div>
  657. </div> -->
  658. </div>
  659. <!-- 投保信息 -->
  660. <div class="Enclosure flex f-c back">
  661. <div class="home flex j-s a-c">
  662. <div class="flex j-s a-c color" id="insurance">
  663. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" />
  664. <span style="margin-left: 10px">投保信息</span>
  665. <el-switch style="margin: 0 10px 0 30px" @change="immediatelyChange" v-model="immediatelyValue"
  666. active-color="#D42426"></el-switch>
  667. <span style="font-weight: normal; font-size: 13px">即时投保</span>
  668. </div>
  669. </div>
  670. <el-form class="back demo-ruleForm" :inline="true" :model="Carinsurance" label-width="150px" size="small"
  671. style="margin-top: 15px" label-position="top">
  672. <div class="flex j-start a-c">
  673. <div class="flex j-c a-start">
  674. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="jqchecked" disabled
  675. ></el-checkbox>
  676. <div class="flex f-c a-c">
  677. <el-form-item label="交强险起保日期" prop="identifyNumber" class="red-btn">
  678. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqstartDate" @change="jqChange"
  679. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  680. </el-form-item>
  681. <el-form-item label="交强险终保日期" prop="identifyNumber" class="red-btn">
  682. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqendDate" type="datetime"
  683. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  684. </el-form-item>
  685. </div>
  686. </div>
  687. <div class="synchronous" style="margin: 0 50px" @click="synchronization">
  688. <img src="@/icon/Union2.png">
  689. <div>同步</div>
  690. </div>
  691. <div class="flex j-c a-start">
  692. <el-checkbox class="checkbox" style="margin-right: 20px" v-model="sychecked" disabled
  693. @change="sycheckedChange"></el-checkbox>
  694. <div class="flex f-c a-c">
  695. <el-form-item label="商业险起保日期" prop="name" class="red-btn">
  696. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="systartDate" @change="syChange"
  697. type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  698. </el-form-item>
  699. <el-form-item label="商业险终保日期" prop="name" class="red-btn">
  700. <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="syendDate" type="datetime"
  701. placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
  702. </el-form-item>
  703. </div>
  704. </div>
  705. </div>
  706. </el-form>
  707. </div>
  708. <!-- 保险公司 -->
  709. <div class="Enclosure flex f-c back">
  710. <div class="home flex j-s">
  711. <div class="flex j-s a-c" id="company">
  712. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" />
  713. <span style="margin-left: 10px">保险公司</span>
  714. <div class="csstool">
  715. <span>是否过户车</span>
  716. <el-switch @change="transferFlagChange" v-model="carInfo.transferFlag" active-color="#D42426"></el-switch>
  717. </div>
  718. <div class="csstool">
  719. <span>商业险是否过户</span>
  720. <el-switch v-model="carInfo.transferFlagBi" active-color="#D42426"></el-switch>
  721. </div>
  722. <div class="csstool">
  723. <span>是否脱保</span>
  724. <el-switch v-model="carInfo.outOfInsurance" active-color="#D42426"></el-switch>
  725. </div>
  726. <div class="csstool">
  727. <span>是否二手车</span>
  728. <el-switch v-model="carInfo.usedCar" active-color="#D42426"></el-switch>
  729. </div>
  730. </div>
  731. <div class="flex j-c a-c">
  732. <el-button v-show="imageUploadShow" size="small" type="primary" @click="imageUpload()">
  733. <i class="el-icon-camera-solid" style="margin-right: 4px"></i>
  734. 影像上传
  735. </el-button>
  736. </div>
  737. </div>
  738. <div>
  739. <!-- <div class="companyhead">
  740. <el-row>
  741. <el-col :span="1">
  742. <span style="font-size: 14px">选择</span>
  743. </el-col>
  744. <el-col :span="2" style="margin: 0 42px 0 35px">
  745. <span>保险公司</span>
  746. </el-col>
  747. <el-col :span="3">
  748. <span>报价协议</span>
  749. </el-col>
  750. <el-col :span="3" v-if="isLetter !== '3'">
  751. <span>报价结果</span>
  752. </el-col>
  753. <el-col :span="3">
  754. <span>交强险</span>
  755. </el-col>
  756. <el-col :span="3">
  757. <span>车船税</span>
  758. </el-col>
  759. <el-col :span="3">
  760. <span>商业险</span>
  761. </el-col>
  762. <el-col :span="2">
  763. <span>驾意险</span>
  764. </el-col>
  765. <el-col :span="2">
  766. <span>操作</span>
  767. </el-col>
  768. </el-row>
  769. </div>
  770. -->
  771. <div class="coll">
  772. <div v-loading="showLoading" class="hovers" :class="reslistitem.checked ? 'border-red' : 'border-blue'" v-for="(reslistitem, reslistindex) in totalCompanyList"
  773. :key="reslistindex">
  774. <el-row v-show="reslistitem.checked || reslistindex == 0" class="companyhead" style="margin-bottom: 20px;">
  775. <el-col :span="1">
  776. <span style="font-size: 14px">选择</span>
  777. </el-col>
  778. <el-col :span="2" style="margin: 0 42px 0 35px">
  779. <span>保险公司</span>
  780. </el-col>
  781. <el-col :span="3">
  782. <span>报价协议</span>
  783. </el-col>
  784. <el-col :span="3" v-if="isLetter !== '3'">
  785. <span>报价结果</span>
  786. </el-col>
  787. <el-col :span="3">
  788. <span>交强险</span>
  789. </el-col>
  790. <el-col :span="3">
  791. <span>车船税</span>
  792. </el-col>
  793. <el-col :span="3">
  794. <span>商业险</span>
  795. </el-col>
  796. <el-col :span="2">
  797. <span>驾意险</span>
  798. </el-col>
  799. <el-col :span="2">
  800. <span>操作</span>
  801. </el-col>
  802. </el-row>
  803. <el-row class="bxgs-list">
  804. <el-col :span="1" style="margin-left: 20px">
  805. <el-checkbox v-model="reslistitem.checked" :disabled="reslistitem.disabled" @change="(event) =>
  806. initchange(
  807. event,
  808. reslistitem.id,
  809. reslistitem.cnName,
  810. reslistindex
  811. )
  812. "></el-checkbox>
  813. </el-col>
  814. <el-col :span="2">
  815. <img :src="reslistitem.logo" alt style="
  816. width: 30px;
  817. height: 30px;
  818. vertical-align: middle;
  819. margin-left: 20px;
  820. " />
  821. <span>{{ reslistitem.namesimple }}</span>
  822. </el-col>
  823. <el-col :span="4">
  824. <el-select size="small" v-if="reslistitem.isTaxSource && reslistitem.isTaxSource == '1'
  825. " :disabled="true" placeholder="默认" style="width: 230px" v-model="isTaxSourceModel"
  826. :clearable="true"></el-select>
  827. <el-select size="small" v-else :disabled="!reslistitem.checked" v-model="reslistitem.agreementId"
  828. placeholder="请选择协议" style="width: 230px" :clearable="true" @change="(val) =>
  829. agreementChange(
  830. val,
  831. reslistitem.agreement,
  832. reslistindex,
  833. reslistitem
  834. )
  835. ">
  836. <div v-for="(
  837. agreementitem, agreementindex
  838. ) in reslistitem.agreement" :key="agreementindex">
  839. <div v-if="agreementitem.licenseNo &&
  840. agreementitem.licenseNo.length > 0 &&
  841. carInfo.licenseNo.length > 0
  842. ? agreementitem.licenseNo.includes(
  843. carInfo.licenseNo.slice(0, 2)
  844. )
  845. : 'true'
  846. ">
  847. <el-option
  848. :label="agreementitem.jobDescription ? agreementitem.businessDescription + '(' + agreementitem.jobDescription + ')' : agreementitem.businessDescription"
  849. :value="agreementitem.id" :disabled="agreementitem.disabled">{{ agreementitem.jobDescription ?
  850. agreementitem.businessDescription + '(' + agreementitem.jobDescription + ')' :
  851. agreementitem.businessDescription }}</el-option>
  852. </div>
  853. </div>
  854. </el-select>
  855. </el-col>
  856. <el-col :span="3">
  857. <div v-show="reslistitem.quoteCode == '0'">
  858. <span style="line-height: auto;">未报价</span>
  859. </div>
  860. <div class="loader" v-show="reslistitem.quoteCode == '1'">
  861. <!-- <i style="color: #d42426" class="el-icon-loading"></i> -->
  862. <p class="text">
  863. <span class="letter letter1">掌</span>
  864. <span class="letter letter2">柜</span>
  865. <span class="letter letter3">正</span>
  866. <span class="letter letter4">在</span>
  867. <span class="letter letter5">为</span>
  868. <span class="letter letter6">您</span>
  869. <span class="letter letter7">报</span>
  870. <span class="letter letter8">价</span>
  871. <span class="letter letter9">.</span>
  872. <span class="letter letter10">.</span>
  873. <span class="letter letter11">.</span>
  874. </p>
  875. </div>
  876. <div class="dis f-c" v-show="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  877. <span style="color: #d42426; font-weight: bold">
  878. ¥{{ reslistitem.result.sumPermium }}
  879. </span>
  880. <!-- <span style="font-size: 13px; color: #2d4d89" class="m-top-5">{{ reslistitem.result.feeView ? '总科技币:' : '优惠:' }}{{ reslistitem.result.sumExportFee}}</span> -->
  881. </div>
  882. <div class="dis f-c" v-show="reslistitem.quoteCode == '200' && (reslistitem.result.orderstatus == '10' || reslistitem.result.orderstatus == '11')">
  883. <span style="color: #d42426; font-weight: bold">
  884. {{ reslistitem.result.orderStatusInfo }}
  885. </span>
  886. </div>
  887. </el-col>
  888. <el-col :span="3" v-show="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  889. <div class="dis f-c">
  890. <span style="color: #d42426; font-weight: bold">
  891. ¥{{ reslistitem.result.jqPremium }}
  892. </span>
  893. <!-- <span v-if="reslistitem.result.jqPremium" style="font-size: 13px; color: #2d4d89" class="m-top-5">{{ reslistitem.result.feeView ? '掌柜科技币:' : '优惠:' }}{{ reslistitem.result.jqExportFee }}</span> -->
  894. </div>
  895. </el-col>
  896. <el-col :span="3" v-show="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  897. <span style="color: #d42426; font-weight: bold">
  898. ¥{{ reslistitem.result.taxAmount }}
  899. </span>
  900. </el-col>
  901. <el-col :span="3" v-show="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  902. <div class="dis f-c">
  903. <span style="color: #d42426; font-weight: bold">
  904. ¥{{ reslistitem.result.syPremium }}
  905. </span>
  906. <!-- <span v-if="reslistitem.result.syPremium" style="font-size: 13px; color: #2d4d89" class="m-top-5">{{ reslistitem.result.feeView ? '掌柜科技币:' : '优惠:' }}{{ reslistitem.result.syExportFee }}</span> -->
  907. </div>
  908. </el-col>
  909. <el-col :span="2" v-if="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'" style="">
  910. <div class="dis f-c">
  911. <span style="color: #d42426; font-weight: bold">
  912. {{
  913. reslistitem.result.jyPremium
  914. ? "¥" + reslistitem.result.jyPremium
  915. : "无"
  916. }}
  917. </span>
  918. <!-- <span v-if="reslistitem.result.jyPremium" style="font-size: 13px; color: #2d4d89" class="m-top-5">{{ reslistitem.result.feeView ? '掌柜科技币:' : '优惠:' }}{{ reslistitem.result.noExportFee }}</span> -->
  919. </div>
  920. </el-col>
  921. <el-col :span="24" v-show="reslistitem.quoteCode == '200' &&
  922. reslistitem.result.feeNoDescription
  923. ">
  924. <div class="flex offer-time" style="color: #d42426">
  925. <span>该车未匹配销管费用,不建议投保!</span>
  926. <el-tooltip class="item" effect="dark" content="费用匹配错误信息" placement="top">
  927. <i class="el-icon-s-goods" @click="
  928. open3(
  929. reslistitem.namesimple + '优惠信息',
  930. reslistitem.result.feeNoDescription
  931. )
  932. " style="
  933. font-size: 20px;
  934. transform: scale(0.8);
  935. vertical-align: middle;
  936. " :disabled="reslistitem.quoteCode == '200' &&
  937. reslistitem.result.feeNoDescription
  938. "></i>
  939. </el-tooltip>
  940. </div>
  941. </el-col>
  942. <el-col :span="24" v-show="reslistitem.quoteCode != '200' &&
  943. reslistitem.quoteCode != '0' &&
  944. reslistitem.quoteCode != '1'
  945. ">
  946. <div class="flex j-s offer-time" style="color: #d42426">
  947. 错误提示:
  948. {{
  949. reslistitem.msg.length > 500
  950. ? reslistitem.msg.slice(0, 500)
  951. : reslistitem.msg
  952. }}
  953. </div>
  954. </el-col>
  955. <el-col :span="24" v-show="reslistitem.quoteCode == '200' &&
  956. (reslistitem.result.orderstatus == '10' || reslistitem.result.orderstatus == '11')">
  957. <div class="flex j-s offer-time" style="color: #d42426">
  958. {{ reslistitem.result.quoteErrMsg }}
  959. </div>
  960. </el-col>
  961. <div class="baofeijisuan" @click="handleListJisuan(reslistitem, reslistindex)">计算保费</div>
  962. </el-row>
  963. <!-- 选中-方案选择 -->
  964. <div v-show="reslistitem.checked" :gutter="20" class="company-checked">
  965. <el-row class="width1280">
  966. <el-col :span="24">
  967. <el-row type="flex" align="middle" class="left-title" v-if="reslistitem.programme">
  968. <el-col :span="2">方案选择</el-col>
  969. <div style="margin-right: 20px;" v-for="(item, index) in reslistitem.schemes" :key="index" @click="checkedPopover(reslistindex, index, item)">
  970. <el-popover placement="top-start" trigger="hover" width="660">
  971. <!-- :disabled="reslistitem.checkedProgramme == index" -->
  972. <!-- <div>弹出</div> -->
  973. <Ktletter1Popover :data="item" :programme="reslistitem.programme" :productId="productId"></Ktletter1Popover>
  974. <el-col class="gray-style" :class="reslistitem.checkedProgramme == index ? 'blue-style' : ''" slot="reference"
  975. >
  976. <!-- <i v-show="reslistitem.checkedProgramme == index" class="el-icon-circle-check"></i> -->
  977. {{ item.schemeName }}
  978. <img v-show="reslistitem.checkedProgramme == index" src="@/assets/Frame.png" />
  979. </el-col>
  980. </el-popover>
  981. </div>
  982. <div @click="checkedPopover(reslistindex, 99)" style="margin-right: 20px;" v-show="reslistitem.programme99 && reslistitem.programme99.schemeId">
  983. <el-popover placement="top-start" width="660" :disabled="reslistitem.checkedProgramme == 99" trigger="hover">
  984. <Ktletter1Popover :data="reslistitem.programme99" :programme="reslistitem.programme" :productId="productId"></Ktletter1Popover>
  985. <el-col class="gray-style" :class="reslistitem.checkedProgramme == 99 ? 'blue-style' : ''" slot="reference">
  986. <!-- <i v-show="reslistitem.checkedProgramme == 99" class="el-icon-circle-check"></i> -->
  987. 自选方案
  988. <img v-show="reslistitem.checkedProgramme == 99" src="@/assets/Frame.png" />
  989. </el-col>
  990. </el-popover>
  991. </div>
  992. <div v-show="reslistitem.checkedProgramme == 99" style="margin-right: 20px;" class="juse-style">
  993. <span @click="showTypeDialog(reslistitem, reslistindex)">调整险种</span>
  994. </div>
  995. <!-- <el-popover placement="top-start" width="450" style="margin-right: 20px;" trigger="hover">
  996. <Ktletter1Popover></Ktletter1Popover>
  997. <el-col class="gray-style" slot="reference">服务方案</el-col>
  998. </el-popover> -->
  999. </el-row>
  1000. </el-col>
  1001. <el-col :span="2" v-if="reslistitem.programme" class="card-bg">
  1002. <div class="card-xianzhong">
  1003. <div>已选险种</div>
  1004. <div class="card-btn" v-show="reslistitem.programme.description">{{ reslistitem.programme.description }}</div>
  1005. <!-- <div v-if="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus">{{ reslistitem.result.orderstatus | cap }}</div> -->
  1006. </div>
  1007. </el-col>
  1008. <!-- 险种明细 -->
  1009. <el-col :span="8" class="card-bg" style="padding-left: 0;" v-if="reslistitem.programme && reslistitem.programme.kinds">
  1010. <div class="card-mingxi">
  1011. <div class="card-mingxi-title">险种明细:
  1012. <span v-show="reslistitem.checkedProgramme != 99" @click="showDetailJiaYi(reslistitem, reslistindex)">查看详情</span>
  1013. <span v-show="reslistitem.checkedProgramme == 99" @click="showTypeDialog(reslistitem, reslistindex)">调整险种</span>
  1014. </div>
  1015. <div class="card-table" v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1016. <div class="table-title">交强险</div>
  1017. <div class="table-list" v-if="reslistitem.programme.kinds">
  1018. <div class="table-list-title">
  1019. <div class="flex-1">产品名称</div>
  1020. </div>
  1021. <div class="table-list-content">
  1022. <div class="flex-1">
  1023. <img src="@/icon/icon-chengse.png">
  1024. <!-- <span>{{ reslistitem.programme.jqx.name }}</span> -->
  1025. <span>交通事故强制责任险</span>
  1026. </div>
  1027. </div>
  1028. </div>
  1029. </div>
  1030. <div class="card-table" v-show="reslistitem.programme.description != '单交'">
  1031. <div class="table-title">商业险</div>
  1032. <div class="table-list" v-if="reslistitem.programme && reslistitem.programme.kinds">
  1033. <div class="table-list-title">
  1034. <div class="flex-1">产品名称</div>
  1035. <div class="w-60">保额(元)</div>
  1036. </div>
  1037. <div class="table-list-content" v-for="(kinds, kindIndex) in reslistitem.programme.kinds.main" :key="kindIndex + 'main'">
  1038. <div class="flex-1">
  1039. <img src="@/icon/icon-chengse.png">
  1040. <!-- <span>{{ kinds.alias || kinds.kindName }}</span> -->
  1041. <span>{{ kinds.kindName }}</span>
  1042. </div>
  1043. <div v-if="kinds.kindCode != 'A'" class="w-60"> {{ toWan(kinds.amount) }}</div>
  1044. <div v-else class="w-60">&nbsp;</div>
  1045. </div>
  1046. <div class="table-list-content" v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">
  1047. <div class="flex-1">
  1048. <img src="@/icon/icon-chengse.png">
  1049. <!-- <span>{{ kinds.alias || kinds.kindName }}</span> -->
  1050. <span>{{ kinds.kindName }}</span>
  1051. </div>
  1052. <div class="w-60"> {{ toWan(kinds.amount) }}</div>
  1053. </div>
  1054. <div class="table-list-content" v-if="reslistitem.programme && reslistitem.programme.kinds && !reslistitem.programme.kinds.main.length && !reslistitem.programme.kinds.additional.length">暂无</div>
  1055. </div>
  1056. </div>
  1057. <div class="card-table" v-if="reslistitem.programme && reslistitem.programme.drivingList && reslistitem.programme.drivingList.length > 0">
  1058. <div class="table-title">驾意险</div>
  1059. <div class="table-list" v-if="reslistitem.programme.kinds">
  1060. <div class="table-list-title">
  1061. <div class="flex-1">产品名称</div>
  1062. <div class="w-60">份数</div>
  1063. <div class="w-60">保费</div>
  1064. </div>
  1065. <div class="table-list-content" v-for="(driving, drivingIndex) in reslistitem.programme.drivingList" :key="drivingIndex" @click="showDetailJiaYi(reslistitem, reslistindex, 'jiayi')">
  1066. <div class="flex-1">
  1067. <img src="@/icon/icon-chengse.png">
  1068. <span>
  1069. <!-- <span style="margin-right: 0;" v-if="reslistitem.cnName == 'guoRen' || reslistitem.cnName == 'ansheng'">{{ driving.select }}</span> -->
  1070. {{ driving.alias || driving.projectName }}
  1071. </span>
  1072. </div>
  1073. <div class="w-60">{{ driving.quantity }}份</div>
  1074. <div class="w-60">¥{{ Number(driving.sumPremium) * driving.quantity }}
  1075. <span v-show="reslistitem.checkedProgramme == 99"><i class="el-icon-delete" @click="deleteJiaYi(reslistindex, drivingIndex)"></i></span>
  1076. </div>
  1077. </div>
  1078. <div class="table-list-content" v-if="reslistitem.programme && reslistitem.programme.drivingList && !reslistitem.programme.drivingList.length">暂无</div>
  1079. </div>
  1080. </div>
  1081. <div class="card-table" v-show="reslistitem.cnName == 'guoRen'">
  1082. <!-- reslistitem.checkedProgramme == 99 && -->
  1083. <div class="table-title">其他</div>
  1084. <div class="table-list">
  1085. <!-- v-if="reslistitem.programme.kinds" -->
  1086. <div style="color: #FD9A25;" @click="contributingGuoRen(reslistitem.agreementId, reslistindex)">选择特约</div>
  1087. <div class="table-list-title" v-show="reslistitem.programme && reslistitem.programme.teyue && reslistitem.programme.teyue.length">
  1088. <div class="flex-1">特约名称</div>
  1089. </div>
  1090. <div class="table-list-content" v-for="(teyueitem, teyueindex) in reslistitem.programme.teyue" :key="teyueindex">
  1091. <div class="flex-1">
  1092. <img src="@/icon/icon-chengse.png">
  1093. {{ teyueitem.clauseName }}
  1094. </div>
  1095. </div>
  1096. <!-- <div class="table-list-content" v-if="!reslistitem.programme.teyue.length">暂无</div> -->
  1097. </div>
  1098. </div>
  1099. <div class="card-table" v-show="reslistitem.cnName == 'zijin'">
  1100. <div class="table-title">其他</div>
  1101. <div>自定义系数:
  1102. <el-input v-model="reslistitem.coefficient" size="mini" class="coefficient" placeholder="请输入"></el-input>
  1103. </div>
  1104. </div>
  1105. </div>
  1106. </el-col>
  1107. <!-- 服务明细 -->
  1108. <el-col :span="4" class="card-bg" style="padding-left: 0;" v-if="reslistitem.programme && reslistitem.programme.kinds">
  1109. <div class="card-mingxi fuwu">
  1110. <div class="card-mingxi-title">服务明细:</div>
  1111. <div class="card-table">
  1112. <div class="table-list">
  1113. <div class="table-list-title">
  1114. <div class="flex-1">增值服务</div>
  1115. <div class="w-50">次数</div>
  1116. </div>
  1117. <div class="table-list-content" v-for="(kinds, kindIndex) in reslistitem.programme.kinds.service" :key="kindIndex">
  1118. <div class="flex-1">
  1119. <img src="@/icon/icon-lanse.png">
  1120. <span style="margin-left: 0;">{{ kinds.alias || kinds.kindName }}</span>
  1121. </div>
  1122. <div class="w-50 w-55">{{ toWan(kinds.amount, 'fw') }}</div>
  1123. </div>
  1124. <div class="table-list-content" v-if="reslistitem.programme && reslistitem.programme.kinds && !reslistitem.programme.kinds.service.length">暂无</div>
  1125. </div>
  1126. </div>
  1127. </div>
  1128. </el-col>
  1129. <!-- 优惠明细 -->
  1130. <el-col :span="4" class="card-bg" style="padding-left: 0;" v-if="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  1131. <div class="card-mingxi youhui">
  1132. <div class="card-mingxi-title">优惠明细:</div>
  1133. <div class="card-table">
  1134. <div class="table-list">
  1135. <div class="table-list-title" style="padding-left: 0;">
  1136. <div class="w-50" style="width: 40px;">险种</div>
  1137. <div class="w-50" style="width: 50px; font-size: 10px;">优惠比例</div>
  1138. <div class="w-60" style=" font-size: 10px;">优惠金额(元)</div>
  1139. <div class="w-60" style="width: 50px; font-size: 10px;">合计优惠</div>
  1140. </div>
  1141. <div class="table-list-content" v-if="reslistitem.programme">
  1142. <div class="w-50" style="width: 40px;">
  1143. <div class="table-list-line" style="border-right: none; padding-left: 0;" v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1144. <span style="margin-left: 0; font-size: 10px;">交强险</span>
  1145. </div>
  1146. <div class="table-list-line" style="border-right: none; padding-left: 0;" v-show="reslistitem.programme.description != '单交'">
  1147. <span style="margin-left: 0; font-size: 10px;">商业险</span>
  1148. </div>
  1149. <div class="table-list-line table-list-line-last" style="border-right: none; padding-left: 0;" v-show="reslistitem.result.jyPremium">
  1150. <span style="margin-left: 0; font-size: 10px;">驾意险</span>
  1151. </div>
  1152. </div>
  1153. <div class="w-50" style="width: 50px;">
  1154. <div class="table-list-line" style="border-right: none;" v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1155. <span style="margin-left: 0;">{{ reslistitem.result.jqExportFee ? reslistitem.result.jqExportRadio : '无' }}</span>
  1156. </div>
  1157. <div class="table-list-line" style="border-right: none;" v-show="reslistitem.programme.description != '单交'">
  1158. <span style="margin-left: 0;">{{ reslistitem.result.syExportFee ? reslistitem.result.syExportRadio : '无' }}</span>
  1159. </div>
  1160. <div class="table-list-line table-list-line-last" style="border-right: none;" v-show="reslistitem.result.jyPremium">
  1161. <span style="margin-left: 0;">{{ reslistitem.result.noExportRadio }}</span>
  1162. </div>
  1163. </div>
  1164. <div class="w-60">
  1165. <div class="table-list-line" v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1166. <span style="margin-left: 0;">{{ reslistitem.result.jqExportFee ? reslistitem.result.jqExportFee : '无' }}</span>
  1167. </div>
  1168. <div class="table-list-line" v-show="reslistitem.programme.description != '单交'">
  1169. <span style="margin-left: 0;">{{ reslistitem.result.syExportFee ? reslistitem.result.syExportFee : '无' }}</span>
  1170. </div>
  1171. <div class="table-list-line table-list-line-last" v-show="reslistitem.result.jyPremium">
  1172. <span style="margin-left: 0;">{{ reslistitem.result.noExportFee ? reslistitem.result.noExportFee : '无' }}</span>
  1173. </div>
  1174. </div>
  1175. <div class="w-50 w-66"><span v-show="reslistitem.result.sumExportFee">¥</span>{{ reslistitem.result.sumExportFee }}</div>
  1176. </div>
  1177. </div>
  1178. </div>
  1179. <div class="card-mingxi-title" style="margin-top: 10px; border-top: 1px solid #fabdae;">返还测算:</div>
  1180. <div class="card-table">
  1181. <div class="table-list">
  1182. <div class="table-list-title" style="padding-left: 0;">
  1183. <div class="w-50" style="width: 40px;">险种</div>
  1184. <div class="w-50" style="width: 50px; font-size: 10px;">返还比例</div>
  1185. <div class="w-60" style=" font-size: 10px;">返还金额(元)</div>
  1186. <div class="w-60" style="width: 50px; font-size: 10px;">合计返还</div>
  1187. </div>
  1188. <div class="table-list-content" v-if="reslistitem.programme">
  1189. <div class="w-50" style="width: 40px;">
  1190. <div class="table-list-line" style="border-right: none; padding-left: 0;" v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1191. <span style="margin-left: 0; font-size: 10px;">交强险</span>
  1192. </div>
  1193. <div class="table-list-line" style="border-right: none; padding-left: 0;" v-show="reslistitem.programme.description != '单交'">
  1194. <span style="margin-left: 0; font-size: 10px;">商业险</span>
  1195. </div>
  1196. <div class="table-list-line table-list-line-last" style="border-right: none; padding-left: 0;" v-show="reslistitem.result.jyPremium">
  1197. <span style="margin-left: 0; font-size: 10px;">驾意险</span>
  1198. </div>
  1199. </div>
  1200. <div class="w-50" style="width: 50px;">
  1201. <div class="table-list-line" style="border-right: none; padding-left: 0;" v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1202. <span style="margin-left: 0;">
  1203. <el-input size="mini" style="width: 40px;" v-model="reslistitem.result.jqInput" class="mini-input"></el-input>
  1204. </span>
  1205. </div>
  1206. <div class="table-list-line" style="border-right: none; padding-left: 0;" v-show="reslistitem.programme.description != '单交'">
  1207. <span style="margin-left: 0;">
  1208. <el-input size="mini" style="width: 40px;" v-model="reslistitem.result.syInput" class="mini-input"></el-input>
  1209. </span>
  1210. </div>
  1211. <div class="table-list-line table-list-line-last" style="border-right: none; padding-left: 0;" v-show="reslistitem.result.jyPremium">
  1212. <span style="margin-left: 0;">
  1213. <el-input size="mini" style="width: 40px;" v-model="reslistitem.result.jyInput" class="mini-input"></el-input>
  1214. </span>
  1215. </div>
  1216. </div>
  1217. <div class="w-60">
  1218. <div class="table-list-line" v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
  1219. <span style="margin-left: 0;">{{ reslistitem.result.jqInput ? (reslistitem.result.jqPremium * (reslistitem.result.jqInput / 100)).toFixed(2) : 0 }}</span>
  1220. </div>
  1221. <div class="table-list-line" v-show="reslistitem.programme.description != '单交'">
  1222. <span style="margin-left: 0;">{{ reslistitem.result.syInput ? (reslistitem.result.syPremium * (reslistitem.result.syInput / 100)).toFixed(2) : 0 }}</span>
  1223. </div>
  1224. <div class="table-list-line table-list-line-last" v-show="reslistitem.result.jyPremium">
  1225. <span style="margin-left: 0;">{{ reslistitem.result.jyInput ? (reslistitem.result.jyPremium * (reslistitem.result.jyInput / 100)).toFixed(2) : 0 }}</span>
  1226. </div>
  1227. </div>
  1228. <div class="w-60 w-66">{{ (
  1229. (reslistitem.result.jqInput ? reslistitem.result.jqPremium * (reslistitem.result.jqInput / 100) : 0) +
  1230. (reslistitem.result.syInput ? reslistitem.result.syPremium * (reslistitem.result.syInput / 100) : 0 ) +
  1231. (reslistitem.result.jyInput ? reslistitem.result.jyPremium * (reslistitem.result.jyInput / 100) : 0)
  1232. ).toFixed(2)
  1233. }}</div>
  1234. </div>
  1235. </div>
  1236. </div>
  1237. </div>
  1238. </el-col>
  1239. <!-- 保险期限 -->
  1240. <el-col :span="6" class="card-bg" style="padding-left: 0;" v-if="reslistitem.quoteCode == '200' && reslistitem.result.orderstatus != '10' && reslistitem.result.orderstatus != '11'">
  1241. <div class="card-mingxi baoxian">
  1242. <div class="card-mingxi-title">保险期限:
  1243. <div @click="syncData(reslistitem.result)">
  1244. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  1245. <i style="color: red" class="el-icon-time"></i>
  1246. </el-tooltip>
  1247. </div>
  1248. </div>
  1249. <div class="card-table">
  1250. <div class="table-list">
  1251. <div class="table-list-title">
  1252. <div class="w-40">险种</div>
  1253. <div class="flex-1">起保日期</div>
  1254. <div class="flex-1">终保日期</div>
  1255. </div>
  1256. <div class="table-list-content" v-show="reslistitem.result.startDateJq">
  1257. <div class="w-40">交强险</div>
  1258. <div class="flex-1">{{ reslistitem.result.startDateJq }}</div>
  1259. <div class="flex-1">{{ reslistitem.result.endDateJq }}</div>
  1260. </div>
  1261. <div class="table-list-content" v-show="reslistitem.result.startDateSy">
  1262. <div class="w-40">商业险</div>
  1263. <div class="flex-1">{{ reslistitem.result.startDateSy }}</div>
  1264. <div class="flex-1">{{ reslistitem.result.endDateSy }}</div>
  1265. </div>
  1266. </div>
  1267. </div>
  1268. <div class="card-table">
  1269. <div class="table-list">
  1270. <div class="table-list-title">
  1271. <div class="flex-1">类型</div>
  1272. <div class="flex-1">评分</div>
  1273. </div>
  1274. <!-- <div class="table-list-content" v-show="reslistitem.result.JqExportFee">
  1275. <div class="flex-1">交强出口费用</div>
  1276. <div class="flex-1">{{ reslistitem.result.JqExportFee }}</div>
  1277. </div>
  1278. <div class="table-list-content" v-show="reslistitem.result.syExportFee">
  1279. <div class="flex-1">商业出口费用</div>
  1280. <div class="flex-1">{{ reslistitem.result.syExportFee }}</div>
  1281. </div>
  1282. <div class="table-list-content" v-show="reslistitem.result.noExportFee">
  1283. <div class="flex-1">非车出口费用</div>
  1284. <div class="flex-1">{{ reslistitem.result.noExportFee }}</div>
  1285. </div> -->
  1286. <div class="table-list-content" v-show="reslistitem.result.jqScore">
  1287. <div class="flex-1">交强类型评分:</div>
  1288. <div class="flex-1">{{ reslistitem.result.jqScore }}</div>
  1289. </div>
  1290. <div class="table-list-content" v-show="reslistitem.result.syScore">
  1291. <div class="flex-1">商业类型评分:</div>
  1292. <div class="flex-1">{{ reslistitem.result.syScore }}</div>
  1293. </div>
  1294. <div class="table-list-content" v-show="reslistitem.result.lossRation">
  1295. <div class="flex-1">总赔付率:</div>
  1296. <div class="flex-1">{{ reslistitem.result.lossRation }}</div>
  1297. </div>
  1298. <div class="table-list-content" v-show="reslistitem.result.jqLossRation">
  1299. <div class="flex-1">交强赔付率:</div>
  1300. <div class="flex-1">{{ reslistitem.result.jqLossRation }}</div>
  1301. </div>
  1302. <div class="table-list-content" v-show="reslistitem.result.syLossRation">
  1303. <div class="flex-1">商业赔付率:</div>
  1304. <div class="flex-1">{{ reslistitem.result.syLossRation }}</div>
  1305. </div>
  1306. <div class="table-list-content" v-show="reslistitem.result.totalAdjustRate">
  1307. <div class="flex-1">自主定价系数:</div>
  1308. <div class="flex-1">{{ reslistitem.result.totalAdjustRate }}</div>
  1309. </div>
  1310. <div class="table-list-content" v-show="reslistitem.result.jgAdjustRate">
  1311. <div class="flex-1">交强折扣系数:</div>
  1312. <div class="flex-1">{{ reslistitem.result.jgAdjustRate }}</div>
  1313. </div>
  1314. <div class="table-list-content" v-show="reslistitem.result.syAdjustRate">
  1315. <div class="flex-1">商业折扣系数:</div>
  1316. <div class="flex-1">{{ reslistitem.result.syAdjustRate }}</div>
  1317. </div>
  1318. <div class="table-list-content" v-show="reslistitem.result.jqRenewal">
  1319. <div class="flex-1">交强续保:</div>
  1320. <div class="flex-1">{{ reslistitem.result.jqRenewal ? reslistitem.result.jqRenewal : "无" }}</div>
  1321. </div>
  1322. <div class="table-list-content" v-show="reslistitem.result.syRenewal">
  1323. <div class="flex-1">商业续保:</div>
  1324. <div class="flex-1">{{ reslistitem.result.syRenewal ? reslistitem.result.syRenewal : "无" }}</div>
  1325. </div>
  1326. <div class="table-list-content" v-show="reslistitem.result.jqClaims">
  1327. <div class="flex-1">交强出险次数:</div>
  1328. <div class="flex-1">{{ reslistitem.result.jqClaims ? reslistitem.result.jqClaims : "无" }}</div>
  1329. </div>
  1330. <div class="table-list-content" v-show="reslistitem.result.syClaims">
  1331. <div class="flex-1">商业出险次数:</div>
  1332. <div class="flex-1">{{ reslistitem.result.syClaims ? reslistitem.result.syClaims : "无" }}</div>
  1333. </div>
  1334. <div class="table-list-content" v-if="reslistitem.namesimple == '紫金财险' &&
  1335. reslistitem.result.ubiPredictedInfoScore">
  1336. <div class="flex-1">紫金能源车(鼎然-车辆风险评分):</div>
  1337. <div class="flex-1">{{ reslistitem.result.ubiPredictedInfoScore }}</div>
  1338. </div>
  1339. <div class="table-list-content" v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '1' ">
  1340. <div class="flex-1">真单交</div>
  1341. </div>
  1342. <div class="table-list-content" v-if="reslistitem.result.iszdj && reslistitem.result.iszdj == '0' ">
  1343. <div class="flex-1">假单交</div>
  1344. </div>
  1345. <div class="table-list-content" v-if="reslistitem.namesimple == '永诚财险'">
  1346. <div class="flex-1">光博分:</div>
  1347. <div class="flex-1">{{ reslistitem.result.ilogPreUdwMess ? reslistitem.result.ilogPreUdwMess : "无" }}</div>
  1348. </div>
  1349. <div class="table-list-content" v-else>
  1350. <div class="flex-1">评分:</div>
  1351. <div class="flex-1">{{ reslistitem.result.ilogPreUdwMess ? reslistitem.result.ilogPreUdwMess : "无" }}</div>
  1352. </div>
  1353. </div>
  1354. </div>
  1355. <div style="flex: 1;"></div>
  1356. <div style="display: flex; align-items: center;">
  1357. <div style="flex: 1;"></div>
  1358. <div style="color: #2d4d89">
  1359. <el-tooltip class="item" effect="dark" content="上年信息" placement="top">
  1360. <i class="el-icon-chat-dot-round" @click="
  1361. open2(reslistitem.namesimple, reslistitem.lastYearMsg)
  1362. " style="
  1363. font-size: 20px;
  1364. transform: scale(0.8);
  1365. vertical-align: middle;
  1366. " :disabled="reslistitem.namesimple == '众安财险' &&
  1367. reslistitem.result.tips == '需要验车'
  1368. " v-show="reslistitem.quoteCode == '200' &&
  1369. reslistitem.lastYearMsg
  1370. "></i>
  1371. </el-tooltip>
  1372. <el-tooltip class="item" effect="dark" content="预核保信息" placement="top">
  1373. <i class="el-icon-chat-dot-round" @click="
  1374. openPredictInfo(
  1375. reslistitem.namesimple,
  1376. reslistitem.predictInfo
  1377. )
  1378. " style="
  1379. font-size: 20px;
  1380. transform: scale(0.8);
  1381. vertical-align: middle;
  1382. " v-show="reslistitem.quoteCode == '200' &&
  1383. reslistitem.predictInfo &&
  1384. reslistitem.predictInfo.length > 0 &&
  1385. reslistitem.namesimple == '中国人寿'
  1386. "></i>
  1387. </el-tooltip>
  1388. </div>
  1389. <el-button :disabled="reslistitem.namesimple == '众安财险' &&
  1390. reslistitem.result.tips == '需要验车'
  1391. " v-show="reslistitem.quoteCode == '200' &&
  1392. !('editStatus' in reslistitem.result)
  1393. " type="text" size="small" style="color: #2d4d89; font-size: 14px"
  1394. @click="hbsubmitdialog(reslistitem, reslistindex)">下单</el-button>
  1395. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
  1396. style="color: #2d4d89; font-size: 14px"
  1397. @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
  1398. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small" style="font-size: 14px"
  1399. @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
  1400. <el-button type="text" size="small" style="font-size: 14px"
  1401. @click="Payment(reslistitem.result.companyId, reslistitem)" v-show="reslistitem.orderstatus == '2' &&
  1402. !('editStatus' in reslistitem.result) && reslistitem.namesimple !== '平安财险'
  1403. ">付款码</el-button>
  1404. <el-button type="text" size="small" style="font-size: 14px"
  1405. @click="signature(reslistitem.result.companyId)" v-show="reslistitem.orderstatus == '2' &&
  1406. !('editStatus' in reslistitem.result) && reslistitem.namesimple == '平安财险'
  1407. ">生成签章</el-button>
  1408. </div>
  1409. </div>
  1410. <!-- <div style="line-height: 25px">
  1411. 保险期限:
  1412. <span v-show="reslistitem.result.startDateJq">
  1413. 【交强险】
  1414. <span>
  1415. {{ reslistitem.result.startDateJq }} -
  1416. {{ reslistitem.result.endDateJq }}
  1417. </span>
  1418. <br />
  1419. </span>
  1420. <span v-show="reslistitem.result.startDateSy">
  1421. 【商业险】
  1422. <span>
  1423. {{ reslistitem.result.startDateSy }} -
  1424. {{ reslistitem.result.endDateSy }}
  1425. </span>
  1426. <br />
  1427. </span>
  1428. <span @click="syncData(reslistitem.result)">
  1429. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  1430. <i style="color: red" class="el-icon-time"></i>
  1431. </el-tooltip>
  1432. </span>
  1433. <div>
  1434. <span v-show="reslistitem.result.JqExportFee">
  1435. 交强出口费用<span>{{
  1436. reslistitem.result.JqExportFee
  1437. }}</span>
  1438. <br />
  1439. </span>
  1440. <span v-show="reslistitem.result.syExportFee">
  1441. 商业出口费用<span>{{
  1442. reslistitem.result.syExportFee
  1443. }}</span>
  1444. <br />
  1445. </span>
  1446. <span v-show="reslistitem.result.noExportFee">
  1447. 非车出口费用<span>
  1448. {{ reslistitem.result.noExportFee }}</span>
  1449. </span>
  1450. <br />
  1451. </div>
  1452. <div>
  1453. <span v-if="reslistitem.result.jqScore" class="marginL">
  1454. 交强类型评分:
  1455. <span>{{ reslistitem.result.jqScore }}</span>
  1456. <br />
  1457. </span>
  1458. <span v-if="reslistitem.result.syScore" class="marginL">
  1459. 商业类型评分:
  1460. <span>{{ reslistitem.result.syScore }}</span>
  1461. <br />
  1462. </span>
  1463. <span v-if="reslistitem.result.lossRation" class="marginL">
  1464. 总赔付率:
  1465. <span>{{ reslistitem.result.lossRation }}</span>
  1466. <br />
  1467. </span>
  1468. <span v-if="reslistitem.result.jqLossRation" class="marginL">
  1469. 交强赔付率:
  1470. <span>{{ reslistitem.result.jqLossRation }}</span>
  1471. <br />
  1472. </span>
  1473. <span v-if="reslistitem.result.syLossRation" class="marginL">
  1474. 商业赔付率:
  1475. <span>{{ reslistitem.result.syLossRation }}</span>
  1476. <br />
  1477. </span>
  1478. <span v-if="reslistitem.result.totalAdjustRate" class="marginL">
  1479. 自主定价系数:
  1480. <span>{{ reslistitem.result.totalAdjustRate }}</span>
  1481. <br />
  1482. </span>
  1483. <span v-if="reslistitem.result.jgAdjustRate" class="marginL">
  1484. 交强折扣系数:
  1485. <span>{{ reslistitem.result.jgAdjustRate }}</span>
  1486. <br />
  1487. </span>
  1488. <span v-if="reslistitem.result.syAdjustRate" class="marginL">
  1489. 商业折扣系数:
  1490. <span>{{ reslistitem.result.syAdjustRate }}</span>
  1491. <br />
  1492. </span>
  1493. <span v-if="reslistitem.result.jqRenewal" class="marginL">
  1494. 交强续保:
  1495. <span>
  1496. {{
  1497. reslistitem.result.jqRenewal
  1498. ? reslistitem.result.jqRenewal
  1499. : "无"
  1500. }}
  1501. </span>
  1502. <br />
  1503. </span>
  1504. <span v-if="reslistitem.result.syRenewal" class="marginL">
  1505. 商业续保:
  1506. <span>
  1507. {{
  1508. reslistitem.result.syRenewal
  1509. ? reslistitem.result.syRenewal
  1510. : "无"
  1511. }}
  1512. </span>
  1513. <br />
  1514. </span>
  1515. <span v-if="reslistitem.result.jqClaims" class="marginL">
  1516. 交强出险次数:
  1517. <span>
  1518. {{
  1519. reslistitem.result.jqClaims
  1520. ? reslistitem.result.jqClaims
  1521. : "无"
  1522. }}
  1523. </span>
  1524. <br />
  1525. </span>
  1526. <span v-if="reslistitem.result.syClaims" class="marginL">
  1527. 商业出险次数:
  1528. <span>
  1529. {{
  1530. reslistitem.result.syClaims
  1531. ? reslistitem.result.syClaims
  1532. : "无"
  1533. }}
  1534. </span>
  1535. <br />
  1536. </span>
  1537. <span v-if="reslistitem.namesimple == '紫金财险' &&
  1538. reslistitem.result.ubiPredictedInfoScore
  1539. " class="marginL">
  1540. 紫金能源车(鼎然-车辆风险评分):
  1541. <span>{{ reslistitem.result.ubiPredictedInfoScore }}</span>
  1542. <br />
  1543. </span>
  1544. <span v-if="reslistitem.result.iszdj &&
  1545. reslistitem.result.iszdj == '1'
  1546. ">真单交</span>
  1547. <span v-if="reslistitem.result.iszdj &&
  1548. reslistitem.result.iszdj == '0'
  1549. ">假单交</span>
  1550. <span v-if="reslistitem.namesimple == '永诚财险'">
  1551. 光博分:
  1552. <span>
  1553. {{
  1554. reslistitem.result.ilogPreUdwMess
  1555. ? reslistitem.result.ilogPreUdwMess
  1556. : "无"
  1557. }}
  1558. </span>
  1559. <br />
  1560. </span>
  1561. <span v-else>
  1562. 评分:
  1563. <span>
  1564. {{
  1565. reslistitem.result.ilogPreUdwMess
  1566. ? reslistitem.result.ilogPreUdwMess
  1567. : "无"
  1568. }}
  1569. </span>
  1570. <br />
  1571. </span>
  1572. </div>
  1573. </div> -->
  1574. </el-col>
  1575. <!-- <el-col :gutter="20" :span="24" class="company-checked-left">
  1576. <div class="company-checked-card" v-if="reslistitem.programme">
  1577. <div>
  1578. <div class="checked-card-title">险种</div>
  1579. <div class="checked-card-content">
  1580. <span class="blue-style" v-show="reslistitem.programme.description">{{ reslistitem.programme.description }}</span>
  1581. <span v-show="reslistitem.checkedProgramme == 99" class="blue-button" @click="showTypeDialog(reslistitem, reslistindex)">调整险种</span>
  1582. </div>
  1583. </div>
  1584. <div>
  1585. <div class="checked-card-title">主险</div>
  1586. <div class="checked-card-content" v-if="reslistitem.programme.kinds">
  1587. <span class="blue-text" v-for="(kinds, kindIndex) in reslistitem.programme.kinds.main" :key="kindIndex">{{ kinds.alias || kinds.kindName }} {{ toWan(kinds.amount) }}</span>
  1588. <span style="color: rgba(51,51,51,0.65);" v-if="reslistitem.programme.kinds.main.length == 0">暂无</span>
  1589. </div>
  1590. </div>
  1591. <div>
  1592. <div class="checked-card-title">附加险</div>
  1593. <div class="checked-card-content" v-if="reslistitem.programme.kinds">
  1594. <span v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">{{ kinds.alias || kinds.kindName }} {{ toWan(kinds.amount) }}</span>
  1595. <span style="color: rgba(51,51,51,0.65);" v-if="reslistitem.programme.kinds.additional.length == 0">暂无</span>
  1596. </div>
  1597. </div>
  1598. <div>
  1599. <div class="checked-card-title">驾意险</div>
  1600. <div class="checked-card-content" v-if="reslistitem.programme.kinds">
  1601. <div v-for="(driving, drivingIndex) in reslistitem.programme.drivingList" :key="drivingIndex" style="margin-bottom: 10px;">
  1602. <span style="margin-right: 0;" v-if="reslistitem.cnName == 'guoRen' || reslistitem.cnName == 'ansheng'">{{ driving.select }}</span>
  1603. <span>{{ driving.alias || driving.projectName }} {{ driving.quantity }}份 ¥{{ Number(driving.sumPremium) * driving.quantity }}</span>
  1604. <span v-show="reslistitem.checkedProgramme == 99"><i class="el-icon-delete" @click="deleteJiaYi(reslistindex, drivingIndex)"></i></span>
  1605. <span class="blue-button" @click="showDetailJiaYi(reslistindex, driving)">查看详情</span>
  1606. <span class="blue-button" @click="addJiaYi(reslistitem)" v-show="drivingIndex == 0 && reslistitem.checkedProgramme == 99">+驾意险</span>
  1607. </div>
  1608. <span class="blue-button" @click="addJiaYi(reslistitem)" v-show="!reslistitem.programme.drivingList.length && reslistitem.checkedProgramme == 99">+驾意险</span>
  1609. </div>
  1610. </div>
  1611. <div style="margin-top: -10px;">
  1612. <div class="checked-card-title">服务</div>
  1613. <div class="checked-card-content" v-if="reslistitem.programme.kinds">
  1614. <span v-for="(kinds, kindIndex) in reslistitem.programme.kinds.service" :key="kindIndex">{{ kinds.alias || kinds.kindName }} {{ toWan(kinds.amount, 'fw') }}</span>
  1615. <span style="color: rgba(51,51,51,0.65);" v-if="reslistitem.programme.kinds.service.length == 0">暂无</span>
  1616. </div>
  1617. </div>
  1618. <div>
  1619. <div class="checked-card-title">其他</div>
  1620. <div class="checked-card-content" v-show="reslistitem.checkedProgramme == 99 && reslistitem.cnName == 'guoRen'">
  1621. <div v-if="reslistitem.programme">
  1622. <div v-for="(teyueitem, teyueindex) in reslistitem.programme.teyue" :key="teyueindex">{{ teyueitem.clauseName }}</div>
  1623. <span style="color: #F96646;" @click="contributingGuoRen(reslistitem.agreementId, reslistindex)">选择特约</span>
  1624. </div>
  1625. </div>
  1626. <el-col :span="20" v-show="reslistitem.cnName == 'zijin'">
  1627. <div v-show="reslistitem.cnName == 'zijin'">自定义系数:
  1628. <el-input v-model="reslistitem.coefficient" size="mini" class="coefficient" placeholder="请输入"></el-input>
  1629. </div>
  1630. </el-col>
  1631. </div>
  1632. </div>
  1633. </el-col> -->
  1634. </el-row>
  1635. </div>
  1636. <!--
  1637. <div class="flex j-s offer-time" v-if="reslistitem.quoteCode == '200'">
  1638. <div style="line-height: 25px">
  1639. 保险期限:
  1640. <span v-show="reslistitem.result.startDateJq">
  1641. 【交强险】
  1642. <span>
  1643. {{ reslistitem.result.startDateJq }} -
  1644. {{ reslistitem.result.endDateJq }}
  1645. </span>
  1646. </span>
  1647. <span v-show="reslistitem.result.startDateSy" style="margin-left: 20px">
  1648. 【商业险】
  1649. <span>
  1650. {{ reslistitem.result.startDateSy }} -
  1651. {{ reslistitem.result.endDateSy }}
  1652. </span>
  1653. </span>
  1654. <span @click="syncData(reslistitem.result)">
  1655. <el-tooltip class="item" effect="dark" content="使用此时间" placement="top">
  1656. <i style="color: red" class="el-icon-time"></i>
  1657. </el-tooltip>
  1658. </span>
  1659. <div>
  1660. <span v-show="reslistitem.result.JqExportFee">
  1661. 交强出口费用<span>{{
  1662. reslistitem.result.JqExportFee
  1663. }}</span>
  1664. </span>
  1665. <span v-show="reslistitem.result.syExportFee">
  1666. 商业出口费用<span>{{
  1667. reslistitem.result.syExportFee
  1668. }}</span>
  1669. </span>
  1670. <span v-show="reslistitem.result.noExportFee">
  1671. 非车出口费用<span>
  1672. {{ reslistitem.result.noExportFee }}</span>
  1673. </span>
  1674. </div>
  1675. <div>
  1676. <span v-if="reslistitem.namesimple == '永诚财险'">
  1677. 光博分:
  1678. <span>
  1679. {{
  1680. reslistitem.result.ilogPreUdwMess
  1681. ? reslistitem.result.ilogPreUdwMess
  1682. : "无"
  1683. }}
  1684. </span>
  1685. </span>
  1686. <span v-else>
  1687. 评分:
  1688. <span>
  1689. {{
  1690. reslistitem.result.ilogPreUdwMess
  1691. ? reslistitem.result.ilogPreUdwMess
  1692. : "无"
  1693. }}
  1694. </span>
  1695. </span>
  1696. <span v-if="reslistitem.result.jqScore" class="marginL">
  1697. 交强类型评分:
  1698. <span>{{ reslistitem.result.jqScore }}</span>
  1699. </span>
  1700. <span v-if="reslistitem.result.syScore" class="marginL">
  1701. 商业类型评分:
  1702. <span>{{ reslistitem.result.syScore }}</span>
  1703. </span>
  1704. <span v-if="reslistitem.result.lossRation" class="marginL">
  1705. 总赔付率:
  1706. <span>{{ reslistitem.result.lossRation }}</span>
  1707. </span>
  1708. <span v-if="reslistitem.result.jqLossRation" class="marginL">
  1709. 交强赔付率:
  1710. <span>{{ reslistitem.result.jqLossRation }}</span>
  1711. </span>
  1712. <span v-if="reslistitem.result.syLossRation" class="marginL">
  1713. 商业赔付率:
  1714. <span>{{ reslistitem.result.syLossRation }}</span>
  1715. </span>
  1716. <span v-if="reslistitem.result.totalAdjustRate" class="marginL">
  1717. 自主定价系数:
  1718. <span>{{ reslistitem.result.totalAdjustRate }}</span>
  1719. </span>
  1720. <span v-if="reslistitem.result.jgAdjustRate" class="marginL">
  1721. 交强折扣系数:
  1722. <span>{{ reslistitem.result.jgAdjustRate }}</span>
  1723. </span>
  1724. <span v-if="reslistitem.result.syAdjustRate" class="marginL">
  1725. 商业折扣系数:
  1726. <span>{{ reslistitem.result.syAdjustRate }}</span>
  1727. </span>
  1728. <span v-if="reslistitem.result.jqRenewal" class="marginL">
  1729. 交强续保:
  1730. <span>
  1731. {{
  1732. reslistitem.result.jqRenewal
  1733. ? reslistitem.result.jqRenewal
  1734. : "无"
  1735. }}
  1736. </span>
  1737. </span>
  1738. <span v-if="reslistitem.result.syRenewal" class="marginL">
  1739. 商业续保:
  1740. <span>
  1741. {{
  1742. reslistitem.result.syRenewal
  1743. ? reslistitem.result.syRenewal
  1744. : "无"
  1745. }}
  1746. </span>
  1747. </span>
  1748. <span v-if="reslistitem.result.jqClaims" class="marginL">
  1749. 交强出险次数:
  1750. <span>
  1751. {{
  1752. reslistitem.result.jqClaims
  1753. ? reslistitem.result.jqClaims
  1754. : "无"
  1755. }}
  1756. </span>
  1757. </span>
  1758. <span v-if="reslistitem.result.syClaims" class="marginL">
  1759. 商业出险次数:
  1760. <span>
  1761. {{
  1762. reslistitem.result.syClaims
  1763. ? reslistitem.result.syClaims
  1764. : "无"
  1765. }}
  1766. </span>
  1767. </span>
  1768. <span v-if="reslistitem.namesimple == '紫金财险' &&
  1769. reslistitem.result.ubiPredictedInfoScore
  1770. " class="marginL">
  1771. 紫金能源车(鼎然-车辆风险评分):
  1772. <span>{{ reslistitem.result.ubiPredictedInfoScore }}</span>
  1773. </span>
  1774. <span v-if="reslistitem.result.iszdj &&
  1775. reslistitem.result.iszdj == '1'
  1776. ">真单交</span>
  1777. <span v-if="reslistitem.result.iszdj &&
  1778. reslistitem.result.iszdj == '0'
  1779. ">假单交</span>
  1780. </div>
  1781. </div>
  1782. <div style="text-align: right">
  1783. <div style="color: #2d4d89">
  1784. <el-tooltip class="item" effect="dark" content="上年信息" placement="top">
  1785. <i class="el-icon-chat-dot-round" @click="
  1786. open2(reslistitem.namesimple, reslistitem.lastYearMsg)
  1787. " style="
  1788. font-size: 20px;
  1789. transform: scale(0.8);
  1790. vertical-align: middle;
  1791. " :disabled="reslistitem.namesimple == '众安财险' &&
  1792. reslistitem.result.tips == '需要验车'
  1793. " v-show="reslistitem.quoteCode == '200' &&
  1794. reslistitem.lastYearMsg
  1795. "></i>
  1796. </el-tooltip>
  1797. <el-tooltip class="item" effect="dark" content="预核保信息" placement="top">
  1798. <i class="el-icon-chat-dot-round" @click="
  1799. openPredictInfo(
  1800. reslistitem.namesimple,
  1801. reslistitem.predictInfo
  1802. )
  1803. " style="
  1804. font-size: 20px;
  1805. transform: scale(0.8);
  1806. vertical-align: middle;
  1807. " v-show="reslistitem.quoteCode == '200' &&
  1808. reslistitem.predictInfo &&
  1809. reslistitem.predictInfo.length > 0 &&
  1810. reslistitem.namesimple == '中国人寿'
  1811. "></i>
  1812. </el-tooltip>
  1813. <el-button :disabled="reslistitem.namesimple == '众安财险' &&
  1814. reslistitem.result.tips == '需要验车'
  1815. " v-show="reslistitem.quoteCode == '200' &&
  1816. !('editStatus' in reslistitem.result)
  1817. " type="text" size="small" style="color: #2d4d89; font-size: 14px"
  1818. @click="hbsubmitdialog(reslistitem)">下单</el-button>
  1819. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
  1820. style="color: #2d4d89; font-size: 14px"
  1821. @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
  1822. </div>
  1823. <div>
  1824. <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small" style="font-size: 14px"
  1825. @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
  1826. <el-button type="text" size="small" style="font-size: 14px"
  1827. @click="Payment(reslistitem.result.companyId, reslistitem)" v-show="reslistitem.orderstatus == '2' &&
  1828. !('editStatus' in reslistitem.result) && reslistitem.namesimple !== '平安财险'
  1829. ">付款码</el-button>
  1830. <el-button type="text" size="small" style="font-size: 14px"
  1831. @click="signature(reslistitem.result.companyId)" v-show="reslistitem.orderstatus == '2' &&
  1832. !('editStatus' in reslistitem.result) && reslistitem.namesimple == '平安财险'
  1833. ">生成签章</el-button>
  1834. </div>
  1835. </div>
  1836. </div>
  1837. <template>
  1838. <span v-if="reslistitem.checked &&
  1839. reslistitem.agreementId &&
  1840. reslistitem.underwritingDescription
  1841. " style="margin: 20px 20px 0 100px; display: inline-block">{{ reslistitem.underwritingDescription}}</span>
  1842. </template>
  1843. <template v-if="reslistitem.namesimple == '平安财险' &&
  1844. reslistitem.checked &&
  1845. reslistitem.agreementId
  1846. ">
  1847. <div class="flex f-c Driving-risk">
  1848. <div v-for="(val, index) in pinganInsuranceData" :key="index" >
  1849. <el-form :inline="true" :model="accidentFormPA[index-1]" class="demo-form-inline" size="small"
  1850. style="font-weight: bold;margin-top:15px ">
  1851. <el-form-item :label="index=='1'?'财意险':index=='2'?'小微险':'组合险'" style="margin-right: 30px">
  1852. <el-select clearable v-model="accidentFormPA[index-1].pingantemplateSelection" placeholder="未选择" @clear="clearAccidentFormPA(index-1,)"
  1853. @change="pinganInsuranceChange($event,index-1,val)">
  1854. <el-option v-for="(item, index1) in val" :key="index1" :label="item.projectName"
  1855. :value="item.projectName"></el-option>
  1856. </el-select>
  1857. </el-form-item>
  1858. <el-form-item label="选择份数" style="margin-right: 50px" v-if="index ==1||index ==2">
  1859. <el-input-number v-model="accidentFormPA[index-1].quantity" :disabled="!accidentFormPA[index-1].pinganInsurancetype" @change="numberCopieschangePA($event,index-1)" :min="1" :max="accidentFormPA[index-1].sellListSize"
  1860. controls-position="right"></el-input-number>
  1861. </el-form-item>
  1862. <el-form-item label="保费:" v-if="index ==1||index ==2">
  1863. <span>{{ accidentFormPA[index-1].premium || 0 }}&ensp;元</span>
  1864. </el-form-item>
  1865. </el-form>
  1866. <el-table class="pinganTable" style="margin-top: 20px" size="small" :data="accidentFormPA[index-1].pinganInsuranceDataTable" border
  1867. v-if="accidentFormPA[index-1].pingantemplateSelection" highlight-current-row :header-cell-style="{
  1868. background: '#F7F7F9 ',
  1869. fontWeight: '700',
  1870. color: '#333333',
  1871. }" ref="RsTable" @select="(selections,row)=>{PADrivingCheckbox(selections,row,reslistitem.agreementId,index-1)}">
  1872. <el-table-column align="center" width="55" label="选择" v-if="index ==1||index ==2">
  1873. <template slot-scope="scope">
  1874. <el-radio class="radio" v-model="accidentFormPA[index-1].pinganInsurancetype" :label="scope.row.code"
  1875. @click.native.stop.prevent="PADrivingRadio(scope.row,reslistitem.agreementId,index-1)">&nbsp;</el-radio>
  1876. </template>
  1877. </el-table-column>
  1878. <el-table-column
  1879. type="selection"
  1880. v-else
  1881. width="55">
  1882. </el-table-column>
  1883. <el-table-column prop="name" label="方案名称" align="center"></el-table-column>
  1884. <el-table-column prop="code" label="方案代码" align="center"></el-table-column>
  1885. <el-table-column prop="premium" label="保费 (元)/每份" align="center">
  1886. </el-table-column>
  1887. <el-table-column prop="quantity" label="份数" align="center" v-if="index ==3">
  1888. <template slot-scope="scope">
  1889. <el-input-number size='small' v-model="scope.row.quantity" :min="1" :max="Number(scope.row.sellListSize)"
  1890. controls-position="right"></el-input-number>
  1891. </template>
  1892. </el-table-column>
  1893. <el-table-column
  1894. label="操作"
  1895. width="100">
  1896. <template slot-scope="scope">
  1897. <el-button type="text" size="small" @click="pinganDetail(scope.row,reslistitem.agreementId)">查看</el-button>
  1898. </template>
  1899. </el-table-column>
  1900. </el-table>
  1901. </div>
  1902. </div>
  1903. </template>
  1904. <template v-if="reslistitem.namesimple == '泰康财险' &&
  1905. reslistitem.checked &&
  1906. reslistitem.agreementId &&
  1907. isLetter !== '3'
  1908. ">
  1909. <div class="flex f-c Driving-risk">
  1910. <el-form :inline="true" :model="accidentFormTk" class="demo-form-inline" size="small"
  1911. style="font-weight: bold; margin-top: 15px">
  1912. <el-form-item label="意外险类型" style="margin-right: 30px">
  1913. <el-select clearable v-model="taikangtemplateSelection" placeholder="未选择" @clear="clearAccidentFormTk"
  1914. @change="taikangInsuranceChange">
  1915. <el-option v-for="(item, index) in taikangaccidentDataList" :key="index" :label="item.projectName"
  1916. :value="item.projectCode"></el-option>
  1917. </el-select>
  1918. </el-form-item>
  1919. <el-form-item label="选择份数" style="margin-right: 50px">
  1920. <el-input-number v-model="accidentFormTk.quantity" @change="numberCopieschangeTk" :min="1"
  1921. controls-position="right"></el-input-number>
  1922. </el-form-item>
  1923. <el-form-item label="保费:">
  1924. <span>{{ accidentFormTk.sumPremium }}&ensp;元</span>
  1925. </el-form-item>
  1926. </el-form>
  1927. <el-table v-if="taikangtemplateSelection" size="small" :data="taikangInsuranceDataTable" border
  1928. ref="expandTable" highlight-current-row :header-cell-style="{
  1929. background: '#F7F7F9',
  1930. fontWeight: '700',
  1931. color: '#333333',
  1932. }">
  1933. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1934. <el-table-column prop="amount" label="每座保额 (元)/每份" align="center"></el-table-column>
  1935. <el-table-column prop="sumAmount" label="每车保额 (元)/每份" align="center"></el-table-column>
  1936. <el-table-column prop="premium" label="责任保费 (元)/每份" align="center"></el-table-column>
  1937. </el-table>
  1938. </div>
  1939. </template>
  1940. <template v-if="reslistitem.namesimple == '恒邦财险' &&
  1941. reslistitem.checked &&
  1942. reslistitem.agreementId &&
  1943. isLetter !== '3'
  1944. ">
  1945. <div class="flex f-c Driving-risk">
  1946. <div class="dis a-c" style="margin: 15px 0">
  1947. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  1948. <el-select style="width: 250px; margin-right: 60px" filterable size="small" clearable
  1949. v-model="hengbangtemplateSelection" placeholder="未选择" @clear="clearAccidentFormHB"
  1950. @change="hengbangInsuranceChange">
  1951. <el-option v-for="(item, index) in hengbangInsuranceData" :key="index" :label="item.projectName"
  1952. :value="item.projectCode"></el-option>
  1953. </el-select>
  1954. 保费:
  1955. <b>{{
  1956. hengbangaccidentalDrivingVo.sumPremium || 0
  1957. }}&ensp;元</b>
  1958. </div>
  1959. <el-table size="small" :data="hengbangInsuranceDataTable" border v-if="hengbangtemplateSelection"
  1960. ref="RsTable" highlight-current-row :header-cell-style="{
  1961. background: '#F7F7F9 ',
  1962. fontWeight: '700',
  1963. color: '#333333',
  1964. }">
  1965. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  1966. <el-table-column prop="amount" label="保额" align="center"></el-table-column>
  1967. </el-table>
  1968. </div>
  1969. </template>
  1970. <template v-if="reslistitem.namesimple == '华农财险' &&
  1971. reslistitem.checked &&
  1972. reslistitem.agreementId &&
  1973. isLetter !== '3'
  1974. ">
  1975. <div class="flex f-c Driving-risk">
  1976. <el-form :inline="true" :model="accidentFormHN" class="demo-form-inline"
  1977. style="font-weight: bold; margin-top: 15px" size="small">
  1978. <el-form-item label="意外险类型:" style="margin-right: 30px">
  1979. <el-select clearable v-model="accidentFormHN.accidentType" placeholder="未选择"
  1980. @clear="clearAccidentFormHN" @change="huanongInsuranceChange">
  1981. <el-option v-for="(item, index) in huanongInsuranceData" :key="index" :label="item.projectName"
  1982. :value="item.projectCode"></el-option>
  1983. </el-select>
  1984. </el-form-item>
  1985. <el-form-item label="选择份数" style="margin-right: 30px">
  1986. <el-input-number v-model="accidentFormHN.quantity" :min="1"
  1987. controls-position="right"></el-input-number>
  1988. </el-form-item>
  1989. </el-form>
  1990. <el-table v-if="accidentFormHN.accidentType" size="small" :data="huanongInsuranceDataTable" border
  1991. ref="expandTable" highlight-current-row :header-cell-style="{
  1992. background: '#F7F7F9 ',
  1993. fontWeight: '700',
  1994. color: '#333333',
  1995. }">
  1996. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  1997. <el-table-column prop="amount" label="保额" align="center">
  1998. <template slot-scope="scope">
  1999. <el-input v-model="scope.row.amount" placeholder="请输入内容" size="small" disabled></el-input>
  2000. </template>
  2001. </el-table-column>
  2002. </el-table>
  2003. </div>
  2004. </template>
  2005. <template v-if="reslistitem.namesimple == '太平财险' &&
  2006. reslistitem.checked &&
  2007. reslistitem.agreementId &&
  2008. isLetter !== '3'
  2009. ">
  2010. <div class="flex f-c Driving-risk">
  2011. <div class="dis a-c" style="margin: 15px 0">
  2012. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2013. <el-select style="width: 250px; margin-right: 60px" filterable size="small" clearable
  2014. v-model="taipingtemplateSelection" placeholder="未选择" @clear="clearAccidentFormTP"
  2015. @change="taipingInsuranceChange">
  2016. <el-option v-for="(item, index) in taipingInsuranceData" :key="index" :label="item.projectName"
  2017. :value="item.projectCode"></el-option>
  2018. </el-select>
  2019. 每份价税合计:
  2020. <b>{{ taipingaccidentalDrivingVo.sumPremium || 0 }}&ensp;元</b>
  2021. </div>
  2022. <el-table size="small" :data="taipingInsuranceDataTable" border v-if="taipingtemplateSelection"
  2023. ref="RsTable" highlight-current-row :header-cell-style="{
  2024. background: '#F7F7F9 ',
  2025. fontWeight: '700',
  2026. color: '#333333',
  2027. }">
  2028. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  2029. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  2030. </el-table>
  2031. </div>
  2032. </template>
  2033. <template v-if="reslistitem.namesimple == '安盛天平' &&
  2034. reslistitem.checked &&
  2035. reslistitem.agreementId &&
  2036. isLetter !== '3'
  2037. ">
  2038. <div class="flex f-c Driving-risk">
  2039. <div class="dis a-c" style="margin-top: 15px">
  2040. <span style="margin-right: 15px; font-weight: bold">意外险类型</span>
  2041. <el-select style="width: 250px" size="small" clearable v-model="anshengtemplateSelection"
  2042. placeholder="未选择" @clear="clearAccidentFormAS" @change="anshengInsuranceChange">
  2043. <el-option v-for="(item, index) in anshengInsuranceData" :key="index"
  2044. :label="item.projectCode + ' ' + item.projectName" :value="item.projectCode"></el-option>
  2045. </el-select>
  2046. </div>
  2047. <el-table style="margin-top: 20px" size="small" :data="anshengInsuranceDataTable" border
  2048. v-if="anshengtemplateSelection" ref="RsTable" highlight-current-row :header-cell-style="{
  2049. background: '#F7F7F9 ',
  2050. fontWeight: '700',
  2051. color: '#333333',
  2052. }">
  2053. <el-table-column align="center" width="55" label="选择">
  2054. <template slot-scope="scope">
  2055. <el-radio class="radio" v-model="anshengInsurancetype" :label="scope.row.projectCode"
  2056. @click.native.stop.prevent="ASDrivingRadio(scope.row)">&nbsp;</el-radio>
  2057. </template>
  2058. </el-table-column>
  2059. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  2060. <el-table-column prop="projectCode" label="方案代码" align="center"></el-table-column>
  2061. <el-table-column prop="quantity" label="份数" align="center">
  2062. </el-table-column>
  2063. </el-table>
  2064. </div>
  2065. </template>
  2066. <template v-if="reslistitem.namesimple == '中国人寿' &&
  2067. reslistitem.checked &&
  2068. reslistitem.agreementId &&
  2069. isLetter !== '3'
  2070. ">
  2071. <div style="margin: 15px 0 15px 100px">
  2072. <span>商业险折扣:</span>
  2073. <el-input style="width: 220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount"
  2074. placeholder="请输入内容" @input="
  2075. reslistitem.discount = reslistitem.discount.replace(
  2076. /[^\d.]/g,
  2077. ''
  2078. )
  2079. "></el-input>
  2080. </div>
  2081. <div class="flex f-c Driving-risk">
  2082. <div class="dis a-c">
  2083. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2084. <el-select style="width: 250px" filterable size="small" clearable v-model="renshoutemplateSelection"
  2085. placeholder="未选择" @clear="clearAccidentFormRS" @change="renshouInsuranceChange">
  2086. <el-option v-for="(item, index) in renshouInsuranceData" :key="index" :label="item.projectName"
  2087. :value="item.projectCode"></el-option>
  2088. </el-select>
  2089. </div>
  2090. <el-table size="small" style="margin-top: 20px" :data="renshouInsuranceDataTable" border
  2091. v-if="renshoutemplateSelection" @row-click="RSDrivingChange" ref="RsTable" highlight-current-row
  2092. :header-cell-style="{
  2093. background: '#F7F7F9 ',
  2094. fontWeight: '700',
  2095. color: '#333333',
  2096. }">
  2097. <el-table-column prop="name" label="方案名称" align="center"></el-table-column>
  2098. <el-table-column prop="premium" label="保费 (元)起" align="center">
  2099. <template slot-scope="scope">
  2100. <span>¥{{ scope.row.premium }}</span>
  2101. </template>
  2102. </el-table-column>
  2103. <el-table-column label="份数" align="center">
  2104. <template slot-scope="scope">
  2105. <span>{{ scope.row.quantity }}</span>
  2106. </template>
  2107. </el-table-column>
  2108. </el-table>
  2109. </div>
  2110. </template>
  2111. <template v-if="reslistitem.namesimple == '众安财险' &&
  2112. reslistitem.checked &&
  2113. reslistitem.agreementId &&
  2114. isLetter !== '3'
  2115. ">
  2116. <div class="flex f-c Driving-risk">
  2117. <div class="dis a-c" style="margin: 15px 0">
  2118. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2119. <el-select style="width: 250px" filterable size="small" clearable v-model="zhongantemplateSelection"
  2120. placeholder="未选择" @clear="clearAccidentFormZA" @change="zhonganInsuranceChange">
  2121. <el-option v-for="(item, index) in zhonganInsuranceData" :key="index" :label="item.projectName"
  2122. :value="item.projectCode"></el-option>
  2123. </el-select>
  2124. </div>
  2125. <el-table size="small" :data="zhonganInsuranceDataTable" border v-if="zhongantemplateSelection"
  2126. @row-click="ZADrivingChange" ref="RsTable" highlight-current-row :header-cell-style="{
  2127. background: '#F7F7F9 ',
  2128. fontWeight: '700',
  2129. color: '#333333',
  2130. }">
  2131. <el-table-column prop="name" label="险种名称" align="center"></el-table-column>
  2132. <el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
  2133. </el-table>
  2134. </div>
  2135. </template>
  2136. <template v-if="reslistitem.namesimple == '紫金财险' &&
  2137. reslistitem.checked &&
  2138. reslistitem.agreementId &&
  2139. isLetter !== '3'
  2140. ">
  2141. <div style="margin: 15px 0 15px 100px">
  2142. <span>自主定价系数:</span>
  2143. <el-input style="width: 220px" size="small" v-model="reslistitem.coefficient"
  2144. placeholder="请输入内容"></el-input>
  2145. </div>
  2146. <div class="flex f-c Driving-risk">
  2147. <div class="dis a-c" style="margin-bottom: 15px">
  2148. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2149. <el-select style="width: 250px" filterable multiple size="small" clearable
  2150. v-model="zijintemplateSelection" placeholder="未选择" @clear="clearAccidentFormZJ"
  2151. @change="zijinInsuranceChange">
  2152. <el-option v-for="(item, index) in ziJinInsuranceData" :key="index" :label="item.projectName"
  2153. :value="item.projectCode"></el-option>
  2154. </el-select>
  2155. </div>
  2156. <el-table size="small" :data="zijinInsuranceDataTable" border v-if="zijintemplateSelection"
  2157. @select="CheckboxChange" filterable ref="expandTable" highlight-current-row :header-cell-style="{
  2158. background: '#F7F7F9 ',
  2159. fontWeight: '700',
  2160. color: '#333333',
  2161. }">
  2162. <el-table-column type="selection" width="55"></el-table-column>
  2163. <el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
  2164. <el-table-column prop="sumAmount" label="总保额 (元)/每份" align="center"></el-table-column>
  2165. <el-table-column prop="sumPremium" label="保费 (元)/每份" align="center">
  2166. <template slot-scope="scope">
  2167. <span>¥{{ scope.row.sumPremium }}</span>
  2168. </template>
  2169. </el-table-column>
  2170. <el-table-column prop="quantity" label="份数" align="center">
  2171. <template slot-scope="scope">
  2172. <el-input-number v-model="scope.row.quantity" :min="1" size="small"
  2173. controls-position="right"></el-input-number>
  2174. </template>
  2175. </el-table-column>
  2176. <el-table-column prop="Totalprice" label="总保费 (元)" align="center">
  2177. <template slot-scope="scope">
  2178. <span v-if="scope.row.quantity">{{
  2179. scope.row.sumPremium * scope.row.quantity
  2180. }}</span>
  2181. <span v-else>{{ scope.row.sumPremium }}</span>
  2182. </template>
  2183. </el-table-column>
  2184. </el-table>
  2185. </div>
  2186. </template>
  2187. <template v-if="reslistitem.namesimple == '永诚财险' &&
  2188. reslistitem.checked &&
  2189. reslistitem.agreementId &&
  2190. isLetter !== '3'
  2191. ">
  2192. <div class="flex f-c Driving-risk">
  2193. <el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small"
  2194. style="font-weight: bold; margin-top: 15px">
  2195. <el-form-item label="意外险类型" style="margin-right: 30px">
  2196. <el-select clearable v-model="yongchengtemplateSelection" placeholder="未选择" @clear="clearAccidentForm"
  2197. @change="yongchengInsuranceChange">
  2198. <el-option v-for="(item, index) in yongchengaccidentDataList" :key="index" :label="item.projectName"
  2199. :value="item.projectCode"></el-option>
  2200. </el-select>
  2201. </el-form-item>
  2202. <el-form-item label="选择份数" style="margin-right: 50px">
  2203. <el-input-number v-model="accidentForm.quantity" @change="numberCopieschange" :min="1"
  2204. controls-position="right"></el-input-number>
  2205. </el-form-item>
  2206. <el-form-item label="保费:">
  2207. <span>{{ accidentForm.sumPremium }}&ensp;元</span>
  2208. </el-form-item>
  2209. </el-form>
  2210. <el-table v-if="yongchengtemplateSelection" size="small" :data="yongchengInsuranceDataTable" border
  2211. ref="expandTable" highlight-current-row :header-cell-style="{
  2212. background: '#F7F7F9',
  2213. fontWeight: '700',
  2214. color: '#333333',
  2215. }">
  2216. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  2217. <el-table-column prop="amount" label="每座保额 (元)/每份" align="center"></el-table-column>
  2218. <el-table-column prop="sumAmount" label="每车保额 (元)/每份" align="center"></el-table-column>
  2219. <el-table-column prop="premium" label="责任保费 (元)/每份" align="center"></el-table-column>
  2220. </el-table>
  2221. </div>
  2222. </template>
  2223. <template v-if="reslistitem.namesimple == '国任财险' &&
  2224. reslistitem.checked &&
  2225. reslistitem.agreementId &&
  2226. isLetter !== '3'
  2227. ">
  2228. <el-button type="text" style="margin: 10px 0 0 100px"
  2229. @click="contributingGuoRen(reslistitem.agreementId)">选择特约</el-button>
  2230. <div class="flex f-c Driving-risk">
  2231. <el-form :inline="true" :model="guoRenaccidentForm" class="demo-form-inline" size="small">
  2232. <el-form-item label="意外险类型" style="margin-right: 30px">
  2233. <el-select clearable placeholder="未选择" @clear="clearAccidentFormGr" @change="grcxchange"
  2234. v-model="guoRenaccidentForm.goodsCode">
  2235. <el-option v-for="(item, index) in guoRenaccidentDataList" :key="index" :label="item.projectName"
  2236. :value="item.projectCode"></el-option>
  2237. </el-select>
  2238. </el-form-item>
  2239. <el-form-item label=" ">
  2240. <el-select clearable v-model="guoRenaccidentForm.prodCode" @change="grcxchangeChild">
  2241. <el-option v-for="(item) in guoRenaccidentDataListChild" :key="item.projectCode"
  2242. :label="item.projectName" :value="item.projectCode"></el-option>
  2243. </el-select>
  2244. </el-form-item>
  2245. <el-form-item label="选择份数" style="margin-right: 30px">
  2246. <el-input-number v-model="guoRenaccidentForm.quantity" :min="1" controls-position="right"
  2247. @change="numberCopieschangeGR"></el-input-number>
  2248. </el-form-item>
  2249. <el-form-item label="保费:">
  2250. <span>{{ guoRenaccidentForm.sumPremium }}&ensp;元</span>
  2251. </el-form-item>
  2252. </el-form>
  2253. <el-table v-if="guoRenaccidentForm.prodCode" size="small" :data="guoRenInsuranceDataTable" border
  2254. ref="expandTable" highlight-current-row :header-cell-style="{
  2255. background: '#F7F7F9 ',
  2256. fontWeight: '700',
  2257. color: '#333333',
  2258. }">
  2259. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  2260. <el-table-column prop="amount" label="保额 (元)" align="center"></el-table-column>
  2261. <el-table-column prop="premium" label="保费 (元)" align="center">
  2262. <template slot-scope="scope">¥{{ scope.row.premium }}</template>
  2263. </el-table-column>
  2264. </el-table>
  2265. </div>
  2266. </template>
  2267. <template v-if="reslistitem.namesimple == '中煤财险' &&
  2268. reslistitem.checked &&
  2269. reslistitem.agreementId &&
  2270. isLetter !== '3'
  2271. ">
  2272. <div class="flex f-c Driving-risk accident-style zmDriving">
  2273. <el-form :inline="true" :model="accidentFormZM" class="demo-form-inline" size="small"
  2274. style="font-weight: bold; margin-top: 15px">
  2275. <el-form-item label="意外险类型" style="margin-right: 30px">
  2276. <el-select style="width: 250px" size="small" clearable v-model="zhongmeitemplateSelection"
  2277. placeholder="未选择" @clear="numberCopieschangeZM" @change="zhongmeiInsuranceChange">
  2278. <el-option v-for="(item, index) in zhongmeiInsuranceData" :key="index" :label="item.projectName"
  2279. :value="item.projectCode"></el-option>
  2280. </el-select>
  2281. </el-form-item>
  2282. <el-form-item label="选择份数" style="margin-right: 30px">
  2283. <el-input-number v-model="accidentFormZM.quantity" @change="numberCopieschangeZM" :min="1"
  2284. controls-position="right"></el-input-number>
  2285. </el-form-item>
  2286. <el-form-item label="保费:">
  2287. <span>{{ accidentFormZM.sumPremium }}&ensp;元</span>
  2288. </el-form-item>
  2289. </el-form>
  2290. <el-table size="small" :data="zhongmeiInsuranceDataTable" border ref="ZmMultipleTable"
  2291. v-if="zhongmeitemplateSelection" :header-cell-style="{
  2292. background: '#F7F7F9 ',
  2293. fontWeight: '700',
  2294. color: '#333333',
  2295. }">
  2296. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  2297. <el-table-column prop="amount" label="保险责任对应保额" align="center"></el-table-column>
  2298. </el-table>
  2299. </div>
  2300. </template>
  2301. <template v-if="reslistitem.namesimple == '大家财险' &&
  2302. reslistitem.checked &&
  2303. reslistitem.agreementId &&
  2304. isLetter !== '3'
  2305. ">
  2306. <div class="flex f-c Driving-risk">
  2307. <div class="dis a-c" style="margin-top: 15px">
  2308. <span style="margin-right: 15px; font-weight: bold">选择意外险</span>
  2309. <el-select style="width: 250px" v-if="reslistitem.apiType == 1" filterable size="small" clearable
  2310. v-model="dajiatemplateSelection" placeholder="未选择" @clear="clearAccidentFormDJ"
  2311. @change="dajiaInsuranceChange">
  2312. <el-option v-for="(item, index) in dajiaInsuranceData" :key="index" :label="item.projectName"
  2313. :value="item.projectCode"></el-option>
  2314. </el-select>
  2315. <div v-else>
  2316. <el-select size="small" style="width: 250px" clearable placeholder="未选择" @change="djcxchange"
  2317. v-model="dajiaaccidentForm.parentCode" @clear="clearAccidentFormDJ">
  2318. <el-option v-for="(item, index) in dajiaInsuranceData" :key="index" :label="item.projectName"
  2319. :value="item.projectCode"></el-option>
  2320. </el-select>
  2321. <el-select size="small" style="width: 250px" clearable v-model="dajiaaccidentForm.projectCode"
  2322. @change="djcxchangeChild">
  2323. <el-option v-for="(item) in dajiaaccidentDataListChild" :key="item.projectCode"
  2324. :label="item.projectName" :value="item.projectCode"></el-option>
  2325. </el-select>
  2326. </div>
  2327. </div>
  2328. <el-table size="small" :data="dajiaInsuranceDataTable" border ref="RsTable" highlight-current-row
  2329. :header-cell-style="{
  2330. background: '#F7F7F9 ',
  2331. fontWeight: '700',
  2332. color: '#333333',
  2333. }">
  2334. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  2335. <el-table-column prop="premium" label="保费 (元)/每份" align="center">
  2336. <template slot-scope="scope">¥{{ scope.row.premium }}</template>
  2337. </el-table-column>
  2338. </el-table>
  2339. </div>
  2340. </template>
  2341. <template v-if="reslistitem.namesimple == '渤海财险' &&
  2342. reslistitem.checked &&
  2343. reslistitem.agreementId &&
  2344. isLetter !== '3'
  2345. ">
  2346. <div class="flex f-c Driving-risk" style="margin-top: 15px">
  2347. <el-form :inline="true" :model="boHaiaccidentForm" class="demo-form-inline" size="small">
  2348. <el-form-item label="意外险类型" style="margin-right: 30px">
  2349. <el-select clearable placeholder="未选择" @clear="clearAccidentFormBh" @change="bohaiInsuranceChange"
  2350. v-model="boHaiaccidentForm.projectCode">
  2351. <el-option v-for="(item, index) in boHaiaccidentDataList" :key="index" :label="item.projectName"
  2352. :value="item.projectCode"></el-option>
  2353. </el-select>
  2354. </el-form-item>
  2355. <el-form-item label="选择份数" style="margin-right: 30px">
  2356. <el-input-number v-model="boHaiaccidentForm.copies" :min="1"
  2357. controls-position="right"></el-input-number>
  2358. </el-form-item>
  2359. <el-form-item label="保费:">
  2360. <span>{{
  2361. boHaiaccidentForm.premium * boHaiaccidentForm.copies
  2362. }}&ensp;元</span>
  2363. </el-form-item>
  2364. </el-form>
  2365. <el-table v-if="boHaiaccidentForm.projectCode" size="small" :data="bohaiInsuranceDataTable" border
  2366. ref="expandTable" highlight-current-row :header-cell-style="{
  2367. background: '#F7F7F9 ',
  2368. fontWeight: '700',
  2369. color: '#333333',
  2370. }">
  2371. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  2372. <el-table-column prop="amount" label="保额 (元)" align="center">
  2373. <template slot-scope="scope">¥{{ scope.row.amount }}</template>
  2374. </el-table-column>
  2375. </el-table>
  2376. </div>
  2377. </template> -->
  2378. </div>
  2379. </div>
  2380. </div>
  2381. </div>
  2382. <!-- 报价历史 -->
  2383. <div class="Enclosure flex f-c" v-if="isLetter == '1'">
  2384. <div class="home flex j-s a-c back">
  2385. <div class="flex j-s a-c color">
  2386. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  2387. <span style="margin-left: 10px">报价历史</span>
  2388. <div v-if="orderno">
  2389. <el-radio-group v-model="historyRadio" style="margin-left: 30px" @input="RadioHistoryChange"
  2390. v-for="item in insOrderStatusoptions" :key="item.dictValue">
  2391. <el-radio :label="item.dictValue">{{ item.dictTag }}</el-radio>
  2392. </el-radio-group>
  2393. </div>
  2394. </div>
  2395. </div>
  2396. <div style="padding: 20px">
  2397. <el-table size="small" :data="HistoryList" height="250" border style="width: 100%" v-loading="loading"
  2398. :header-cell-style="{
  2399. background: '#F7F7F9 ',
  2400. fontWeight: '700',
  2401. color: '#333333',
  2402. }" highlight-current-row>
  2403. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  2404. <el-table-column prop="username" label="业务员" align="center">
  2405. <template slot-scope="scope">
  2406. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  2407. </template>
  2408. </el-table-column>
  2409. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  2410. <el-table-column prop="product" label="险种" align="center"></el-table-column>
  2411. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  2412. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  2413. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  2414. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  2415. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  2416. <el-table-column prop="orderstatus" label="状态" align="center">
  2417. <template slot-scope="scope">
  2418. <el-tag style="
  2419. color: #33a08d;
  2420. border-color: #33a08d;
  2421. background: rgba(51, 160, 141, 0.1);
  2422. " v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'
  2423. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  2424. <el-tag type="danger" style="border-color: #e75b5d" v-else-if="scope.row.orderstatus == '3'" size="small">{{
  2425. scope.row.orderstatus | cap }}</el-tag>
  2426. <el-tag v-else style="
  2427. color: #2d4d89;
  2428. border-color: #2d4d89;
  2429. background: rgba(45, 77, 137, 0.1);
  2430. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  2431. </template>
  2432. </el-table-column>
  2433. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  2434. <template slot-scope="scope">
  2435. <el-button type="text" style="color: #2d4d89" size="small"
  2436. @click="qoutedetail(scope.row.id)">查看详情</el-button>
  2437. <el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
  2438. <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany!=='平安财险'" type="text"
  2439. @click="Payment(scope.row.id, scope.row)">付款码</el-button>
  2440. <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany=='平安财险'" type="text"
  2441. @click="signature(scope.row.id)">生成签章</el-button>
  2442. <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
  2443. scope.row.orderstatus == '2' ||
  2444. scope.row.orderstatus == '4') &&
  2445. ['紫金财险'].includes(scope.row.inscompany)
  2446. " @click="cancelorder(scope.row)">撤单</el-button>
  2447. <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' && scope.row.inscompany!=='平安财险'"
  2448. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  2449. </template>
  2450. </el-table-column>
  2451. </el-table>
  2452. </div>
  2453. </div>
  2454. <!-- 查看详情 -->
  2455. <detailsDialog ref="detailsDialog" :orderInfo.sync="queryOrders" :Feepermissions="false"></detailsDialog>
  2456. <el-dialog title="车型选择" :visible.sync="chexingdialogVisible" width="1300px">
  2457. <el-form :inline="true" class="demo-form-inline" size="small">
  2458. <el-form-item label="厂牌型号">
  2459. <el-input v-model="carInfo.modelcname" placeholder="厂牌型号" style="width: 500px"></el-input>
  2460. </el-form-item>
  2461. <el-form-item>
  2462. <el-button type="primary" size="small" @click="toChooseVehicleType(carInfo.modelcname)">查询</el-button>
  2463. </el-form-item>
  2464. </el-form>
  2465. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  2466. :header-cell-style="{
  2467. background: '#F7F7F9 ',
  2468. fontWeight: '700',
  2469. color: '#333333',
  2470. }" highlight-current-row @row-dblclick="reslistCurrentChange">
  2471. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  2472. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  2473. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  2474. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  2475. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  2476. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  2477. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  2478. </el-table>
  2479. </el-dialog>
  2480. <el-dialog title="车辆识别代码" :visible.sync="sbdmdialogVisible" width="1300px">
  2481. <el-form :inline="true" class="demo-form-inline" size="small">
  2482. <el-form-item label="车辆识别代码">
  2483. <el-input v-model="carInfo.frameNo" placeholder="车辆识别代码" style="width: 500px"></el-input>
  2484. </el-form-item>
  2485. <el-form-item>
  2486. <el-button type="primary" size="small" @click="toChooseVin(carInfo.frameNo)">查询</el-button>
  2487. </el-form-item>
  2488. </el-form>
  2489. <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
  2490. :header-cell-style="{
  2491. background: '#F7F7F9 ',
  2492. fontWeight: '700',
  2493. color: '#333333',
  2494. }" highlight-current-row @row-dblclick="reslistCurrentChange">
  2495. <el-table-column prop="modelCode" label="厂牌型号代码" align="center" width="200"></el-table-column>
  2496. <el-table-column prop="modelName" label="厂牌型号" align="center" width="300"></el-table-column>
  2497. <el-table-column prop="replacementValue" label="新车购置价" align="center" width="100"></el-table-column>
  2498. <el-table-column prop="marketYear" label="年款" align="center" width="100"></el-table-column>
  2499. <el-table-column prop="ratedPassengerCapacity" label="座位数" align="center" width="80"></el-table-column>
  2500. <el-table-column prop="displacement" label="排量" align="center" width="100"></el-table-column>
  2501. <el-table-column prop="remark" label="配置" align="center"></el-table-column>
  2502. </el-table>
  2503. </el-dialog>
  2504. <!--第一种 二维码 -->
  2505. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  2506. <div class="ORcodebody" v-watermark="userform.id || userId">
  2507. <div slot="title" class="dialog-title">
  2508. <span>扫码付款</span>
  2509. </div>
  2510. <div class="ORcode">
  2511. <div style="padding: 13px; position: relative">
  2512. <div v-if="['大家财险', '中煤财险', '华泰财险'].includes(inscompany)">
  2513. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  2514. <img v-else :src="paycodeimg" alt style="width: 100%" />
  2515. </div>
  2516. <div v-else>
  2517. <img v-if="['太平财险', '诚泰财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 100%" />
  2518. <div v-else id="qrcode" ref="qrcode"></div>
  2519. </div>
  2520. </div>
  2521. </div>
  2522. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  2523. <div style="
  2524. font-size: 32px;
  2525. text-align: center;
  2526. color: #d42426;
  2527. margin-top: 20px;
  2528. ">
  2529. <span style="font-size: 24px; font-weight: bold">¥</span>
  2530. {{ sumpremium }}
  2531. </div>
  2532. <div class="ORtitle">
  2533. <div>
  2534. <span>保险公司:</span>
  2535. <span>{{ inscompany }}</span>
  2536. </div>
  2537. <div>
  2538. <span>车牌号:</span>
  2539. <span>{{ licenseNo }}</span>
  2540. </div>
  2541. <div>
  2542. <span>投保人:</span>
  2543. <span>{{ applyName }}</span>
  2544. </div>
  2545. <!-- <div>
  2546. <span style="color:#f75c00">总金额:</span>
  2547. <span style="color:#f75c00">{{ sumpremium }}</span>
  2548. </div>-->
  2549. <div v-show="jqpremium">
  2550. <span>交强:</span>
  2551. <span>{{ jqpremium }}</span>
  2552. </div>
  2553. <div v-show="sypremium">
  2554. <span>商业:</span>
  2555. <span>{{ sypremium }}</span>
  2556. </div>
  2557. <div v-show="taxamount">
  2558. <span>车船税:</span>
  2559. <span>{{ taxamount }}</span>
  2560. </div>
  2561. <div v-show="jqstartdate">
  2562. <span>交强险起保日期:</span>
  2563. <span>{{ jqstartdate }}</span>
  2564. </div>
  2565. <div v-show="systartdate">
  2566. <span>商业险起保日期:</span>
  2567. <span>{{ systartdate }}</span>
  2568. </div>
  2569. <div v-if="jypremium">
  2570. <span>驾意险:</span>
  2571. <span>{{ jypremium }}</span>
  2572. </div>
  2573. <div v-if="jypremium">
  2574. <span>驾意险险起保日期:</span>
  2575. <span>{{ systartdate || jqstartdate }}</span>
  2576. </div>
  2577. </div>
  2578. <!-- <div class="display">
  2579. <el-button size="small" style="width:100px;" @click="codedialogVisible = false">关闭</el-button>
  2580. </div>-->
  2581. </div>
  2582. <span slot="footer" class="dialog-footer display">
  2583. <el-button size="small" style="width: 100px; border-color: #d42426; color: #d42426"
  2584. @click="codedialogVisible = false">关闭</el-button>
  2585. </span>
  2586. </el-dialog>
  2587. <!--第二种 二维码 -->
  2588. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh" title="扫码付款">
  2589. <div class="flex j-s">
  2590. <div class="scan-code">
  2591. <div style="font-weight: bold">
  2592. 总金额:
  2593. <span style="color: #2d4d89">{{ sumpremium }}</span>
  2594. </div>
  2595. <div>交强险:{{ jqpremium }}</div>
  2596. <div>车船税:{{ taxamount }}</div>
  2597. <div>商业险:{{ sypremium }}</div>
  2598. <div>驾意险:{{ jypremium }}</div>
  2599. </div>
  2600. <div v-if="['大家财险', '中煤财险', '华泰财险'].includes(inscompany)">
  2601. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  2602. <img v-else :src="paycodeimg" alt style="width: 100%" />
  2603. </div>
  2604. <div v-else>
  2605. <img v-if="['太平财险', '诚泰财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 200px; height: 200px" />
  2606. <div v-else id="qrcode" ref="qrcode"></div>
  2607. </div>
  2608. <div class="scan-code">
  2609. <div>保险公司:{{ inscompany }}</div>
  2610. <div>车牌号:{{ licenseNo }}</div>
  2611. <div>投保人:{{ applyName }}</div>
  2612. <div>交强险起保日期:{{ jqstartdate }}</div>
  2613. <div>商业险起保日期:{{ systartdate }}</div>
  2614. <div>驾意险起保日期:{{ systartdate || jqstartdate }}</div>
  2615. </div>
  2616. </div>
  2617. <span slot="footer" class="dialog-footer">
  2618. <el-button size="small" style="
  2619. width: 100px;
  2620. background: #eaedf1;
  2621. border-color: #eaedf1;
  2622. color: #2d4d89;
  2623. " @click="codedialogVisiblePro = false">关闭</el-button>
  2624. </span>
  2625. </el-dialog>
  2626. <el-dialog :visible.sync="uploadcardialogVisible" width="960px" style="padding: 10px 20px; box-sizing: border-box"
  2627. @open="closeDialog(0)">
  2628. <div slot="title" class="dialog-title">
  2629. <span>行驶证识别</span>
  2630. </div>
  2631. <el-row :gutter="20">
  2632. <div class="bodys1">
  2633. <div>
  2634. <div class="flex a-c">
  2635. <div class="OCR" style="text-align: center">行驶证主页</div>
  2636. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  2637. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carfrontChange">
  2638. <img v-show="carfrontImg" :src="carfrontImg" style="width: 100%; height: 100%" />
  2639. <img v-show="!carfrontImg" src="../../../../static/carfront.png" style="width: 100%; height: 100%" />
  2640. <span class="slot" v-show="carfrontImg" @click.stop>
  2641. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carfrontImg)"></i>
  2642. <i class="el-icon-delete" @click.stop="handleRemove('carfrontImg')"></i>
  2643. </span>
  2644. </el-upload>
  2645. </div>
  2646. </div>
  2647. <div class="flex a-c">
  2648. <div class="OCR" style="text-align: center">行驶证副页</div>
  2649. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  2650. <el-upload drag action="#" :show-file-list="false" :auto-upload="false" :on-change="carbackChange">
  2651. <img v-show="carbackImg" :src="carbackImg" style="width: 100%; height: 100%" />
  2652. <img v-show="!carbackImg" src="../../../../static/carback.png" style="width: 100%; height: 100%" />
  2653. <span class="slot" v-show="carbackImg" @click.stop>
  2654. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(carbackImg)"></i>
  2655. <i class="el-icon-delete" @click.stop="handleRemove('carbackImg')"></i>
  2656. </span>
  2657. </el-upload>
  2658. </div>
  2659. </div>
  2660. </div>
  2661. <div style="text-align: center">
  2662. <el-form :model="carform" label-width="130px" size="small">
  2663. <el-form-item label="所有人">
  2664. <el-input v-model="carform.carOwner" autocomplete="off"></el-input>
  2665. </el-form-item>
  2666. <el-form-item label="车牌号">
  2667. <el-input v-model="carform.licenseNo" autocomplete="off"></el-input>
  2668. </el-form-item>
  2669. <el-form-item label="车架号">
  2670. <el-input v-model="carform.frameNo" autocomplete="off"></el-input>
  2671. </el-form-item>
  2672. <el-form-item label="品牌型号">
  2673. <el-input v-model="carform.modelcname" autocomplete="off"></el-input>
  2674. </el-form-item>
  2675. <el-form-item label="发动机号">
  2676. <el-input v-model="carform.engineNo" autocomplete="off"></el-input>
  2677. </el-form-item>
  2678. <el-form-item label="总质量">
  2679. <el-input v-model="carform.grossMass" autocomplete="off"></el-input>
  2680. </el-form-item>
  2681. <el-form-item label="整备质量">
  2682. <el-input v-model="carform.unladenMass" autocomplete="off"></el-input>
  2683. </el-form-item>
  2684. <el-form-item label="核定载质量">
  2685. <el-input v-model="carform.limitLoad" autocomplete="off"></el-input>
  2686. </el-form-item>
  2687. <el-form-item label="核定载客数">
  2688. <el-input v-model="carform.approvedPassengersCapacity" autocomplete="off"></el-input>
  2689. </el-form-item>
  2690. <el-form-item label="注册日期">
  2691. <el-input v-model="carform.registerDate" autocomplete="off"></el-input>
  2692. </el-form-item>
  2693. <el-form-item label="发证日期">
  2694. <el-input v-model="carform.issueDate" autocomplete="off"></el-input>
  2695. </el-form-item>
  2696. </el-form>
  2697. </div>
  2698. </div>
  2699. </el-row>
  2700. <span slot="footer" class="dialog-footer">
  2701. <el-button type="primary" @click="CarOCRdiscern()" size="small">识 别</el-button>
  2702. <el-button type="primary" @click="CarOCRconfirm()" size="small">确 认</el-button>
  2703. </span>
  2704. </el-dialog>
  2705. <el-dialog :visible.sync="uploaduserdialogVisible" width="960px" style="padding: 10px 20px; box-sizing: border-box"
  2706. @open="closeDialog(userIndex)">
  2707. <el-tabs v-model="activeName">
  2708. <el-tab-pane label="身份证识别" name="1">
  2709. <el-row :gutter="20">
  2710. <div class="bodys1">
  2711. <div>
  2712. <div class="flex">
  2713. <div class="OCR" style="text-align: center">身份证主页</div>
  2714. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  2715. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  2716. :on-change="userfrontChange">
  2717. <img v-show="userfrontImg" :src="userfrontImg" style="width: 100%; height: 100%" />
  2718. <img v-show="!userfrontImg" src="../../../../static/userfront.png"
  2719. style="width: 100%; height: 100%" />
  2720. <span class="slot" v-show="userfrontImg" @click.stop>
  2721. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userfrontImg)"></i>
  2722. <i class="el-icon-delete" @click.stop="handleRemove('userfrontImg')"></i>
  2723. </span>
  2724. </el-upload>
  2725. </div>
  2726. </div>
  2727. <div class="flex">
  2728. <div class="OCR" style="text-align: center">身份证副页</div>
  2729. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  2730. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  2731. :on-change="userbackChange">
  2732. <img v-show="userbackImg" :src="userbackImg" style="width: 100%; height: 100%" />
  2733. <img v-show="!userbackImg" src="../../../../static/userback.png"
  2734. style="width: 100%; height: 100%" />
  2735. <span class="slot" v-show="userbackImg" @click.stop>
  2736. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(userbackImg)"></i>
  2737. <i class="el-icon-delete" @click.stop="handleRemove('userbackImg')"></i>
  2738. </span>
  2739. </el-upload>
  2740. </div>
  2741. </div>
  2742. </div>
  2743. <div style="text-align: center">
  2744. <el-form :model="ownerInfoform" label-width="130px" size="small">
  2745. <el-form-item label="姓名">
  2746. <el-input v-model="ownerInfoform.name" autocomplete="off"></el-input>
  2747. </el-form-item>
  2748. <el-form-item label="性别">
  2749. <el-input v-model="ownerInfoform.gender" autocomplete="off"></el-input>
  2750. </el-form-item>
  2751. <el-form-item label="证件类型">
  2752. <el-input v-model="ownerInfoform.identifyType" autocomplete="off"></el-input>
  2753. </el-form-item>
  2754. <el-form-item label="证件号码">
  2755. <el-input v-model="ownerInfoform.identifyNumber" autocomplete="off"></el-input>
  2756. </el-form-item>
  2757. <el-form-item label="车主手机号">
  2758. <el-input v-model="ownerInfoform.mobile" autocomplete="off"></el-input>
  2759. </el-form-item>
  2760. <el-form-item label="地址">
  2761. <el-input v-model="ownerInfoform.addr" autocomplete="off"></el-input>
  2762. </el-form-item>
  2763. <el-form-item label="有效期起期">
  2764. <el-input disabled v-model="ownerInfoform.identifyValidDate" autocomplete="off"></el-input>
  2765. </el-form-item>
  2766. <el-form-item label="有效期止期">
  2767. <el-input disabled v-model="ownerInfoform.identifyValidEndDate" autocomplete="off"></el-input>
  2768. </el-form-item>
  2769. <el-form-item label="电子邮箱">
  2770. <el-input v-model="ownerInfoform.email" autocomplete="off"></el-input>
  2771. </el-form-item>
  2772. </el-form>
  2773. </div>
  2774. </div>
  2775. </el-row>
  2776. </el-tab-pane>
  2777. <el-tab-pane label="营业执照" name="2">
  2778. <el-row :gutter="20">
  2779. <div class="bodys1">
  2780. <div>
  2781. <div class="flex">
  2782. <div class="OCR" style="text-align: center">营业执照</div>
  2783. <div style="text-align: center; margin: 20px" @drop="reportDrop">
  2784. <el-upload class="upload-demo" drag action="#" :show-file-list="false" :auto-upload="false"
  2785. :on-change="userfrontChange">
  2786. <img v-show="businessImg" :src="businessImg" style="width: 100%; height: 100%" />
  2787. <img v-show="!businessImg" src="../../../../static/userfront.png"
  2788. style="width: 100%; height: 100%" />
  2789. <span class="slot" v-show="businessImg" @click.stop>
  2790. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(businessImg)"></i>
  2791. <i class="el-icon-delete" @click.stop="handleRemove('businessImg')"></i>
  2792. </span>
  2793. </el-upload>
  2794. </div>
  2795. </div>
  2796. </div>
  2797. <div style="text-align: center">
  2798. <el-form :model="ownerInfoform" label-width="130px" size="small">
  2799. <el-form-item label="单位名称">
  2800. <el-input autocomplete="off"></el-input>
  2801. </el-form-item>
  2802. <el-form-item label="法人">
  2803. <el-input autocomplete="off"></el-input>
  2804. </el-form-item>
  2805. <el-form-item label="社会信用代码">
  2806. <el-input autocomplete="off"></el-input>
  2807. </el-form-item>
  2808. <el-form-item label="地址">
  2809. <el-input autocomplete="off"></el-input>
  2810. </el-form-item>
  2811. <el-form-item label="经营范围">
  2812. <el-input autocomplete="off"></el-input>
  2813. </el-form-item>
  2814. <el-form-item label="注册资本">
  2815. <el-input autocomplete="off"></el-input>
  2816. </el-form-item>
  2817. </el-form>
  2818. </div>
  2819. </div>
  2820. </el-row>
  2821. </el-tab-pane>
  2822. </el-tabs>
  2823. <span slot="footer" class="dialog-footer">
  2824. <el-button type="primary" @click="userOCRdiscern()" size="small">识 别</el-button>
  2825. <el-button type="primary" @click="userOCRconfirm()" size="small">确 认</el-button>
  2826. </span>
  2827. </el-dialog>
  2828. <el-dialog :visible.sync="pinganDataDetailVisible" width="40%" title="责任明细">
  2829. <el-table
  2830. :data="pinganDataDetail"
  2831. border
  2832. style="width: 100%">
  2833. <el-table-column
  2834. prop="insuranceCoverage"
  2835. label="责任名称">
  2836. </el-table-column>
  2837. <el-table-column
  2838. prop="unitInsuredAmount"
  2839. label="每份保额">
  2840. </el-table-column>
  2841. </el-table>
  2842. </el-dialog>
  2843. <div v-if="isLetter == '1'" class="flex j-c a-c footer" :class="$store.state.app.collapse ? 'position-collapse-left' : 'position-left'
  2844. ">
  2845. <el-button size="small" @click="add()">录下一单</el-button>
  2846. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote1()">保费计算</el-button>
  2847. </div>
  2848. <div v-if="isLetter == '2'" style="text-align: center">
  2849. <el-button type="primary" :loading="calculateLoading" size="small" @click="quote1()">保费计算</el-button>
  2850. </div>
  2851. <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter == '1'">
  2852. <div>
  2853. <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" @click="handleScroll('Car')" />
  2854. </div>
  2855. <div>
  2856. <img src="../../../../src/icon/投保信息.png" alt class="icon-img" @click="handleScroll('insurance')" />
  2857. </div>
  2858. <div>
  2859. <img src="../../../../src/icon/险别选择.png" alt class="icon-img" @click="handleScroll('more')" />
  2860. </div>
  2861. <div>
  2862. <img src="../../../../src/icon/保险公司.png" alt class="icon-img" @click="handleScroll('company')" />
  2863. </div>
  2864. </div>
  2865. <el-dialog title="核保信息" :visible.sync="underwritingdialogVisible" width="30%">
  2866. <div class="flex j-s f-c">
  2867. <div style="
  2868. font-size: 18px;
  2869. color: #d42426;
  2870. font-weight: 700;
  2871. padding: 10px 30px;
  2872. " v-if="orderstatus == '2'">
  2873. 订单状态:已核保待缴费
  2874. </div>
  2875. </div>
  2876. <span slot="footer" class="dialog-footer" >
  2877. <el-button style="width: 100px" type="primary" size="small" v-if="orderstatus == '2' && queryOrders.inscompany!=='平安财险'"
  2878. @click="Payment(companyId, queryOrders)">缴费二维码</el-button>
  2879. <el-button style="width: 100px" type="primary" size="small" v-if="orderstatus == '2' && queryOrders.inscompany=='平安财险'"
  2880. @click="signature(companyId)">生成签章</el-button>
  2881. </span>
  2882. </el-dialog>
  2883. <el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
  2884. <div class="flex a-c u-f-sa" v-if="renewalCodeJqImg">
  2885. <span>交强转保确认码</span>
  2886. <div class="flex a-c f-c">
  2887. <img :src="renewalCodeJqImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2888. <el-input v-model="renewalCodeJq" placeholder="请输入确认码" style="width: 150px"></el-input>
  2889. </div>
  2890. </div>
  2891. <div class="flex a-c u-f-sa" v-if="renewalCodeSyImg">
  2892. <span>商业转保确认码</span>
  2893. <div class="flex a-c f-c">
  2894. <img :src="renewalCodeSyImg" alt style="width: 150px; height: 40px; margin-bottom: 5px" />
  2895. <el-input v-model="renewalCodeSy" placeholder="请输入确认码" style="width: 150px"></el-input>
  2896. </div>
  2897. </div>
  2898. <span slot="footer" class="dialog-footer">
  2899. <el-button size="small" @click="renewalCodedialogVisible = false">取 消</el-button>
  2900. <el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
  2901. </span>
  2902. </el-dialog>
  2903. <el-dialog :title="contributingState ? '选择特约' : '提交核保'" :visible.sync="hbsubmitdialogVisible" width="1200px">
  2904. <div style="margin-bottom: 20px; font-weight: bold">特约选择</div>
  2905. <el-table size="small" :data="zijinengageListData" border v-loading="contributingLoading"
  2906. @select="zijinengageChange" @select-all="zijinengageChangeAll" ref="expandTablePro" highlight-current-row
  2907. @cell-dblclick="zijincellDblclick" :cell-class-name="tableCellClassName" :header-cell-style="{
  2908. background: '#F7F7F9 ',
  2909. fontWeight: '700',
  2910. color: '#333333',
  2911. }">
  2912. <el-table-column type="selection" width="55"></el-table-column>
  2913. <el-table-column prop="clauseCode" :width="80" label="特约代码" align="center"></el-table-column>
  2914. <el-table-column v-if="contributingState" :width="100" prop="riskName" label="特约险种"
  2915. align="center"></el-table-column>
  2916. <el-table-column prop="clauseName" label="特约名称" align="center"></el-table-column>
  2917. <el-table-column prop="clauseContent" label="特约内容">
  2918. <template slot-scope="scope">
  2919. <el-input @blur="hideInput" size="small" type="textarea" :ref="scope.row.index + ',' + scope.column.index"
  2920. v-model="scope.row.clauseContent" v-if="scope.row.index + ',' + scope.column.index == currentCell &&
  2921. scope.row.modifyFlag == '1'
  2922. "></el-input>
  2923. <span v-else>{{ scope.row.clauseContent }}</span>
  2924. </template>
  2925. </el-table-column>
  2926. </el-table>
  2927. <span slot="footer" class="dialog-footer">
  2928. <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
  2929. <el-button v-if="contributingState" size="small" type="primary"
  2930. @click="hbsubmitdialogVisible = false">确定</el-button>
  2931. <el-button v-else size="small" type="primary" @click="hbsubmit">提交核保</el-button>
  2932. </span>
  2933. </el-dialog>
  2934. <!-- <imageDialog ref="imageDialog" :quoteno="quoteno"></imageDialog>-->
  2935. <!-- 报价单 -->
  2936. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  2937. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  2938. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
  2939. <el-dialog :visible.sync="redictInfodialogVisible" width="70%">
  2940. <el-table :data="redictInfoMsg" style="width: 100%">
  2941. <el-table-column prop="description" label="审核意见"></el-table-column>
  2942. <el-table-column prop="opinion" label="备注"></el-table-column>
  2943. </el-table>
  2944. </el-dialog>
  2945. <!-- 生成签章 -->
  2946. <el-dialog :visible.sync="signaturedialogVisible" title="生成签章" width="14%">
  2947. <div >
  2948. <img :src="resultMessageImg" alt style="width: 100%" />
  2949. <!-- <div id="signaturecode" ref="signaturecode"></div> -->
  2950. </div>
  2951. </el-dialog>
  2952. <!-- 保单上传 -->
  2953. <el-dialog :visible.sync="policyUploaddialogVisible" width="30%">
  2954. <div slot="title" class="dialog-title">
  2955. <span>保单上传</span>
  2956. </div>
  2957. <el-form :model="policyNumberForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
  2958. <el-form-item label="交强保单:" prop="jqPolicy">
  2959. <el-upload class="upload-demo" ref="jqPolicyupload" action="#" :limit="1" :auto-upload="false"
  2960. :on-remove="(file) => removePhoto(file, policyNumberForm.jqPolicyList, 'jqPolicyList')"
  2961. :file-list="policyNumberForm.jqPolicyList" :on-change="(file) => policydrivingupload(file, 'jqPolicy')">
  2962. <el-button size="small" type="primary">点击上传</el-button>
  2963. <el-button size="small" type="primary" @click.stop="policyNumberForm.jqPolicyList = []">清空</el-button>
  2964. </el-upload>
  2965. </el-form-item>
  2966. <el-form-item label="商业保单:" prop="syPolicy">
  2967. <el-upload class="upload-demo" ref="syPolicyupload" action="#" :limit="1" :auto-upload="false"
  2968. :on-remove="(file) => removePhoto(file, policyNumberForm.syPolicyList, 'syPolicyList')"
  2969. :file-list="policyNumberForm.syPolicyList" :on-change="(file) => policydrivingupload(file, 'syPolicy')">
  2970. <el-button size="small" type="primary">点击上传</el-button>
  2971. <el-button size="small" type="primary" @click.stop="policyNumberForm.syPolicyList = []">清空</el-button>
  2972. </el-upload>
  2973. </el-form-item>
  2974. <el-form-item label="非车保单:" prop="noPolicy">
  2975. <el-upload class="upload-demo" ref="noPolicyupload" action="#" :limit="1" :auto-upload="false"
  2976. :on-remove="(file) => removePhoto(file, policyNumberForm.noPolicyList, 'noPolicyList')"
  2977. :file-list="policyNumberForm.noPolicyList" :on-change="(file) => policydrivingupload(file, 'noPolicy')">
  2978. <el-button size="small" type="primary">点击上传</el-button>
  2979. <el-button size="small" type="primary" @click.stop="policyNumberForm.noPolicyList = []">清空</el-button>
  2980. </el-upload>
  2981. </el-form-item>
  2982. <el-form-item label="交强电子标志:" prop="jqSign">
  2983. <el-upload class="upload-demo" ref="jqSignupload" action="#" :limit="1" :auto-upload="false"
  2984. :on-remove="(file) => removePhoto(file, policyNumberForm.jqSignList, 'jqSignList')"
  2985. :file-list="policyNumberForm.jqSignList" :on-change="(file) => policydrivingupload(file, 'jqSign')">
  2986. <el-button size="small" type="primary">点击上传</el-button>
  2987. <el-button size="small" type="primary" @click.stop="policyNumberForm.jqSignList = []">清空</el-button>
  2988. </el-upload>
  2989. </el-form-item>
  2990. </el-form>
  2991. <span slot="footer" class="dialog-footer">
  2992. <el-button size="small" @click="policyUploaddialogVisible = false">取 消</el-button>
  2993. <el-button size="small" type="primary" @click="policyUploaddialogVisible = false">确 定</el-button>
  2994. </span>
  2995. </el-dialog>
  2996. <!-- 影像上传 -->
  2997. <el-dialog :visible.sync="imageUploaddialogVisible" width="1070px">
  2998. <div slot="title" class="dialog-title">
  2999. <span>影像上传</span>
  3000. </div>
  3001. <el-row>
  3002. <el-col :span="4">
  3003. <div class="tab-style">
  3004. <li class="liMenu" :class="idx == tabLiIndex ? 'tabLi-style' : ''"
  3005. @click="tabLiScroll(item.scroll, idx)" v-for="(item, idx) in tabLimenu" :key="idx">
  3006. {{ item.name }}
  3007. </li>
  3008. </div>
  3009. </el-col>
  3010. <el-col :span="20" style="height: 320px; overflow-y: auto">
  3011. <div class="flex f-wrap" id="vehicle">
  3012. <div class="aaa">
  3013. <span>1.行驶证主页</span>
  3014. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList1', 'C01')
  3015. " :file-list="imgList1" ref="upload1" :class="{ styleB: imgList1.length == 1 }">
  3016. <img v-show="imgList1.length == 0" src="../../../../static/carfront.png"
  3017. style="width: 100%; height: 100%" />
  3018. <div slot="file" slot-scope="{ file }" v-if="imgList1.length > 0">
  3019. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3020. <span class="el-upload-list__item-actions">
  3021. <span class="el-upload-list__item-delete"
  3022. @click="handleRemove1(file, 'imageList1', 'imgList1')">
  3023. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3024. <i class="el-icon-delete"></i>
  3025. </span>
  3026. </span>
  3027. </div>
  3028. </el-upload>
  3029. </div>
  3030. <div class="aaa">
  3031. <span>2.行驶证副页</span>
  3032. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList2', 'D01')
  3033. " :file-list="imgList2" ref="upload2" :class="{ styleB: imgList2.length === 1 }">
  3034. <img v-show="imgList2.length == 0" src="../../../../static/carback.png"
  3035. style="width: 100%; height: 100%" />
  3036. <div slot="file" slot-scope="{ file }">
  3037. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3038. <span class="el-upload-list__item-actions">
  3039. <span class="el-upload-list__item-delete"
  3040. @click="handleRemove1(file, 'imageList1', 'imgList2')">
  3041. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3042. <i class="el-icon-delete"></i>
  3043. </span>
  3044. </span>
  3045. </div>
  3046. </el-upload>
  3047. </div>
  3048. <div class="aaa">
  3049. <span>3.机动车辆登记证书</span>
  3050. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList12', 'TAR05')
  3051. " :file-list="imgList12" ref="upload2" :class="{ styleB: imgList12.length === 1 }">
  3052. <img v-show="imgList12.length == 0" src="../../../../static/carback.png"
  3053. style="width: 100%; height: 100%" />
  3054. <div slot="file" slot-scope="{ file }">
  3055. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3056. <span class="el-upload-list__item-actions">
  3057. <span class="el-upload-list__item-delete"
  3058. @click="handleRemove1(file, 'imageList1', 'imgList12')">
  3059. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3060. <i class="el-icon-delete"></i>
  3061. </span>
  3062. </span>
  3063. </div>
  3064. </el-upload>
  3065. </div>
  3066. <div class="aaa">
  3067. <span>4.新车合格证</span>
  3068. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3069. drivingupload(file, 'imageList5', 'imgList9', 'XC00')
  3070. " :file-list="imgList9" multiple ref="upload3" :class="{ styleB: imgList9.length === 1 }">
  3071. <img v-show="imgList9.length == 0" src="../../../../static/userfront.png"
  3072. style="width: 100%; height: 100%" />
  3073. <div slot="file" slot-scope="{ file }">
  3074. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3075. <span class="el-upload-list__item-actions">
  3076. <span class="el-upload-list__item-delete"
  3077. @click="handleRemove1(file, 'imageList5', 'imgList9')">
  3078. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3079. <i class="el-icon-delete"></i>
  3080. </span>
  3081. </span>
  3082. </div>
  3083. </el-upload>
  3084. </div>
  3085. <div class="aaa">
  3086. <span>5.购车发票</span>
  3087. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3088. drivingupload(file, 'imageList5', 'imgList10', 'GC00')
  3089. " :file-list="imgList10" multiple ref="upload4"
  3090. :class="{ styleB: imgList10.length === 1 }">
  3091. <img v-show="imgList10.length == 0" src="../../../../static/userfront.png"
  3092. style="width: 100%; height: 100%" />
  3093. <div slot="file" slot-scope="{ file }">
  3094. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3095. <span class="el-upload-list__item-actions">
  3096. <span class="el-upload-list__item-delete"
  3097. @click="handleRemove1(file, 'imageList5', 'imgList10')">
  3098. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3099. <i class="el-icon-delete"></i>
  3100. </span>
  3101. </span>
  3102. </div>
  3103. </el-upload>
  3104. </div>
  3105. </div>
  3106. <div class="flex f-wrap" id="owner">
  3107. <div class="aaa">
  3108. <span>1.车主身份证(正面)</span>
  3109. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList3', 'C02')
  3110. " :file-list="imgList3" multiple ref="upload3" :class="{ styleB: imgList3.length === 1 }">
  3111. <img v-show="imgList3.length == 0" src="../../../../static/userfront.png"
  3112. style="width: 100%; height: 100%" />
  3113. <div slot="file" slot-scope="{ file }">
  3114. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3115. <span class="el-upload-list__item-actions">
  3116. <span class="el-upload-list__item-delete"
  3117. @click="handleRemove1(file, 'imageList2', 'imgList3')">
  3118. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3119. <i class="el-icon-delete"></i>
  3120. </span>
  3121. </span>
  3122. </div>
  3123. </el-upload>
  3124. </div>
  3125. <div class="aaa">
  3126. <span>2.车主身份证(反面)</span>
  3127. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList4', 'D02')
  3128. " :file-list="imgList4" multiple ref="upload4" :class="{ styleB: imgList4.length === 1 }">
  3129. <img v-show="imgList4.length == 0" src="../../../../static/userback.png"
  3130. style="width: 100%; height: 100%" />
  3131. <div slot="file" slot-scope="{ file }">
  3132. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3133. <span class="el-upload-list__item-actions">
  3134. <span class="el-upload-list__item-delete"
  3135. @click="handleRemove1(file, 'imageList2', 'imgList4')">
  3136. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3137. <i class="el-icon-delete"></i>
  3138. </span>
  3139. </span>
  3140. </div>
  3141. </el-upload>
  3142. </div>
  3143. <div class="aaa">
  3144. <span>3.营业执照</span>
  3145. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple
  3146. ref="upload4">
  3147. <img src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  3148. <div slot="file" slot-scope="{ file }">
  3149. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3150. <span class="el-upload-list__item-actions">
  3151. <span class="el-upload-list__item-delete"
  3152. @click="handleRemove1(file, 'imageList2', 'imgList4')">
  3153. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3154. <i class="el-icon-delete"></i>
  3155. </span>
  3156. </span>
  3157. </div>
  3158. </el-upload>
  3159. </div>
  3160. </div>
  3161. <div class="flex f-wrap" id="applicant">
  3162. <div class="aaa">
  3163. <span>1.投保人身份证(正面)</span>
  3164. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList5', 'C03')
  3165. " :file-list="imgList5" multiple ref="upload5" :class="{ styleB: imgList5.length === 1 }">
  3166. <img v-show="imgList5.length == 0" src="../../../../static/userfront.png"
  3167. style="width: 100%; height: 100%" />
  3168. <div slot="file" slot-scope="{ file }">
  3169. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3170. <span class="el-upload-list__item-actions">
  3171. <span class="el-upload-list__item-delete"
  3172. @click="handleRemove1(file, 'imageList3', 'imgList5')">
  3173. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3174. <i class="el-icon-delete"></i>
  3175. </span>
  3176. </span>
  3177. </div>
  3178. </el-upload>
  3179. </div>
  3180. <div class="aaa">
  3181. <span>2.投保人身份证(反面)</span>
  3182. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList6', 'D03')
  3183. " :file-list="imgList6" multiple ref="upload6" :class="{ styleB: imgList6.length === 1 }">
  3184. <img v-show="imgList6.length == 0" src="../../../../static/userback.png"
  3185. style="width: 100%; height: 100%" />
  3186. <div slot="file" slot-scope="{ file }">
  3187. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3188. <span class="el-upload-list__item-actions">
  3189. <span class="el-upload-list__item-delete"
  3190. @click="handleRemove1(file, 'imageList3', 'imgList6')">
  3191. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3192. <i class="el-icon-delete"></i>
  3193. </span>
  3194. </span>
  3195. </div>
  3196. </el-upload>
  3197. </div>
  3198. <div class="aaa">
  3199. <span>3.营业执照</span>
  3200. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple
  3201. ref="upload4">
  3202. <img src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  3203. <div slot="file" slot-scope="{ file }">
  3204. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3205. <span class="el-upload-list__item-actions">
  3206. <span class="el-upload-list__item-delete"
  3207. @click="handleRemove1(file, 'imageList2', 'imgList4')">
  3208. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3209. <i class="el-icon-delete"></i>
  3210. </span>
  3211. </span>
  3212. </div>
  3213. </el-upload>
  3214. </div>
  3215. </div>
  3216. <div class="flex f-wrap">
  3217. <div class="aaa">
  3218. <span id="insured">1.被保人身份证(正面)</span>
  3219. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList7', 'C04')
  3220. " :file-list="imgList7" multiple ref="upload7" :class="{ styleB: imgList7.length === 1 }">
  3221. <img v-show="imgList7.length == 0" src="../../../../static/userfront.png"
  3222. style="width: 100%; height: 100%" />
  3223. <div slot="file" slot-scope="{ file }">
  3224. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3225. <span class="el-upload-list__item-actions">
  3226. <span class="el-upload-list__item-delete"
  3227. @click="handleRemove1(file, 'imageList4', 'imgList7')">
  3228. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3229. <i class="el-icon-delete"></i>
  3230. </span>
  3231. </span>
  3232. </div>
  3233. </el-upload>
  3234. </div>
  3235. <div class="aaa">
  3236. <span>2.被保人身份证(反面)</span>
  3237. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList8', 'D04')
  3238. " :file-list="imgList8" multiple ref="upload8" :class="{ styleB: imgList8.length === 1 }">
  3239. <img v-show="imgList8.length == 0" src="../../../../static/userback.png"
  3240. style="width: 100%; height: 100%" />
  3241. <div slot="file" slot-scope="{ file }">
  3242. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3243. <span class="el-upload-list__item-actions">
  3244. <span class="el-upload-list__item-delete"
  3245. @click="handleRemove1(file, 'imageList4', 'imgList8')">
  3246. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3247. <i class="el-icon-delete"></i>
  3248. </span>
  3249. </span>
  3250. </div>
  3251. </el-upload>
  3252. </div>
  3253. <div class="aaa">
  3254. <span>3.营业执照</span>
  3255. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple
  3256. ref="upload4">
  3257. <img src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  3258. <div slot="file" slot-scope="{ file }">
  3259. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3260. <span class="el-upload-list__item-actions">
  3261. <span class="el-upload-list__item-delete"
  3262. @click="handleRemove1(file, 'imageList2', 'imgList4')">
  3263. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3264. <i class="el-icon-delete"></i>
  3265. </span>
  3266. </span>
  3267. </div>
  3268. </el-upload>
  3269. </div>
  3270. </div>
  3271. <div class="flex f-wrap" id="relationship">
  3272. <div class="aaa">
  3273. <span>1.关系证明</span>
  3274. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3275. drivingupload(file, 'imageList5', 'imgList11', 'GX00')
  3276. " :file-list="imgList11" multiple ref="upload3"
  3277. :class="{ styleB: imgList11.length === 1 }">
  3278. <img v-show="imgList11.length == 0" src="../../../../static/userfront.png"
  3279. style="width: 100%; height: 100%" />
  3280. <div slot="file" slot-scope="{ file }">
  3281. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3282. <span class="el-upload-list__item-actions">
  3283. <span class="el-upload-list__item-delete"
  3284. @click="handleRemove1(file, 'imageList5', 'imgList11')">
  3285. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3286. <i class="el-icon-delete"></i>
  3287. </span>
  3288. </span>
  3289. </div>
  3290. </el-upload>
  3291. </div>
  3292. </div>
  3293. <div class="flex f-wrap" id="yanchezhao">
  3294. <div class="aaa">
  3295. <span>1.验车照(车架)</span>
  3296. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3297. drivingupload(file, 'imageList6', 'imgList13', 'C0500')
  3298. " :file-list="imgList13" multiple ref="upload3"
  3299. :class="{ styleB: imgList13.length === 1 }">
  3300. <img v-show="imgList13.length == 0" src="../../../../static/userfront.png"
  3301. style="width: 100%; height: 100%" />
  3302. <div slot="file" slot-scope="{ file }">
  3303. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3304. <span class="el-upload-list__item-actions">
  3305. <span class="el-upload-list__item-delete"
  3306. @click="handleRemove1(file, 'imageList6', 'imgList13')">
  3307. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3308. <i class="el-icon-delete"></i>
  3309. </span>
  3310. </span>
  3311. </div>
  3312. </el-upload>
  3313. </div>
  3314. <div class="aaa">
  3315. <span>2.验车照(后左)</span>
  3316. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3317. drivingupload(file, 'imageList6', 'imgList14', 'C0501')
  3318. " :file-list="imgList14" multiple ref="upload3"
  3319. :class="{ styleB: imgList14.length === 1 }">
  3320. <img v-show="imgList14.length == 0" src="../../../../static/userfront.png"
  3321. style="width: 100%; height: 100%" />
  3322. <div slot="file" slot-scope="{ file }">
  3323. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3324. <span class="el-upload-list__item-actions">
  3325. <span class="el-upload-list__item-delete"
  3326. @click="handleRemove1(file, 'imageList6', 'imgList14')">
  3327. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3328. <i class="el-icon-delete"></i>
  3329. </span>
  3330. </span>
  3331. </div>
  3332. </el-upload>
  3333. </div>
  3334. <div class="aaa">
  3335. <span>3.验车照(后右)</span>
  3336. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3337. drivingupload(file, 'imageList6', 'imgList15', 'C0502')
  3338. " :file-list="imgList15" multiple ref="upload3"
  3339. :class="{ styleB: imgList15.length === 1 }">
  3340. <img v-show="imgList15.length == 0" src="../../../../static/userfront.png"
  3341. style="width: 100%; height: 100%" />
  3342. <div slot="file" slot-scope="{ file }">
  3343. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3344. <span class="el-upload-list__item-actions">
  3345. <span class="el-upload-list__item-delete"
  3346. @click="handleRemove1(file, 'imageList6', 'imgList15')">
  3347. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3348. <i class="el-icon-delete"></i>
  3349. </span>
  3350. </span>
  3351. </div>
  3352. </el-upload>
  3353. </div>
  3354. <div class="aaa">
  3355. <span>4.验车照(前右)</span>
  3356. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3357. drivingupload(file, 'imageList6', 'imgList16', 'C0503')
  3358. " :file-list="imgList16" multiple ref="upload3"
  3359. :class="{ styleB: imgList16.length === 1 }">
  3360. <img v-show="imgList16.length == 0" src="../../../../static/userfront.png"
  3361. style="width: 100%; height: 100%" />
  3362. <div slot="file" slot-scope="{ file }">
  3363. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3364. <span class="el-upload-list__item-actions">
  3365. <span class="el-upload-list__item-delete"
  3366. @click="handleRemove1(file, 'imageList6', 'imgList16')">
  3367. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3368. <i class="el-icon-delete"></i>
  3369. </span>
  3370. </span>
  3371. </div>
  3372. </el-upload>
  3373. </div>
  3374. <div class="aaa">
  3375. <span>5.验车照(前左)</span>
  3376. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3377. drivingupload(file, 'imageList6', 'imgList17', 'C0504')
  3378. " :file-list="imgList17" multiple ref="upload3"
  3379. :class="{ styleB: imgList17.length === 1 }">
  3380. <img v-show="imgList17.length == 0" src="../../../../static/userfront.png"
  3381. style="width: 100%; height: 100%" />
  3382. <div slot="file" slot-scope="{ file }">
  3383. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3384. <span class="el-upload-list__item-actions">
  3385. <span class="el-upload-list__item-delete"
  3386. @click="handleRemove1(file, 'imageList6', 'imgList17')">
  3387. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3388. <i class="el-icon-delete"></i>
  3389. </span>
  3390. </span>
  3391. </div>
  3392. </el-upload>
  3393. </div>
  3394. <div class="aaa">
  3395. <span>6.验车照(正前)</span>
  3396. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3397. drivingupload(file, 'imageList6', 'imgList18', 'C0506')
  3398. " :file-list="imgList18" multiple ref="upload3"
  3399. :class="{ styleB: imgList18.length === 1 }">
  3400. <img v-show="imgList18.length == 0" src="../../../../static/userfront.png"
  3401. style="width: 100%; height: 100%" />
  3402. <div slot="file" slot-scope="{ file }">
  3403. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3404. <span class="el-upload-list__item-actions">
  3405. <span class="el-upload-list__item-delete"
  3406. @click="handleRemove1(file, 'imageList6', 'imgList18')">
  3407. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3408. <i class="el-icon-delete"></i>
  3409. </span>
  3410. </span>
  3411. </div>
  3412. </el-upload>
  3413. </div>
  3414. <div class="aaa">
  3415. <span>7.验车照(正后)</span>
  3416. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3417. drivingupload(file, 'imageList6', 'imgList19', 'C0507')
  3418. " :file-list="imgList19" multiple ref="upload3"
  3419. :class="{ styleB: imgList19.length === 1 }">
  3420. <img v-show="imgList19.length == 0" src="../../../../static/userfront.png"
  3421. style="width: 100%; height: 100%" />
  3422. <div slot="file" slot-scope="{ file }">
  3423. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3424. <span class="el-upload-list__item-actions">
  3425. <span class="el-upload-list__item-delete"
  3426. @click="handleRemove1(file, 'imageList6', 'imgList19')">
  3427. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3428. <i class="el-icon-delete"></i>
  3429. </span>
  3430. </span>
  3431. </div>
  3432. </el-upload>
  3433. </div>
  3434. <div class="aaa">
  3435. <span>8.验车照(人车合影)</span>
  3436. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3437. drivingupload(file, 'imageList6', 'imgList20', 'C0505')
  3438. " :file-list="imgList20" multiple ref="upload3"
  3439. :class="{ styleB: imgList20.length === 1 }">
  3440. <img v-show="imgList20.length == 0" src="../../../../static/userfront.png"
  3441. style="width: 100%; height: 100%" />
  3442. <div slot="file" slot-scope="{ file }">
  3443. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3444. <span class="el-upload-list__item-actions">
  3445. <span class="el-upload-list__item-delete"
  3446. @click="handleRemove1(file, 'imageList6', 'imgList20')">
  3447. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3448. <i class="el-icon-delete"></i>
  3449. </span>
  3450. </span>
  3451. </div>
  3452. </el-upload>
  3453. </div>
  3454. <div class="aaa">
  3455. <span>9.验车照(地标合影)</span>
  3456. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3457. drivingupload(file, 'imageList6', 'imgList21', 'C0508')
  3458. " :file-list="imgList21" multiple ref="upload3"
  3459. :class="{ styleB: imgList21.length === 1 }">
  3460. <img v-show="imgList21.length == 0" src="../../../../static/userfront.png"
  3461. style="width: 100%; height: 100%" />
  3462. <div slot="file" slot-scope="{ file }">
  3463. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3464. <span class="el-upload-list__item-actions">
  3465. <span class="el-upload-list__item-delete"
  3466. @click="handleRemove1(file, 'imageList6', 'imgList21')">
  3467. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3468. <i class="el-icon-delete"></i>
  3469. </span>
  3470. </span>
  3471. </div>
  3472. </el-upload>
  3473. </div>
  3474. <div class="aaa">
  3475. <span>10.验车照(工作台)</span>
  3476. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3477. drivingupload(file, 'imageList6', 'imgList22', 'C0509')
  3478. " :file-list="imgList22" multiple ref="upload3"
  3479. :class="{ styleB: imgList22.length === 1 }">
  3480. <img v-show="imgList22.length == 0" src="../../../../static/userfront.png"
  3481. style="width: 100%; height: 100%" />
  3482. <div slot="file" slot-scope="{ file }">
  3483. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3484. <span class="el-upload-list__item-actions">
  3485. <span class="el-upload-list__item-delete"
  3486. @click="handleRemove1(file, 'imageList6', 'imgList22')">
  3487. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3488. <i class="el-icon-delete"></i>
  3489. </span>
  3490. </span>
  3491. </div>
  3492. </el-upload>
  3493. </div>
  3494. <div class="aaa">
  3495. <span>11.验车照(天窗)</span>
  3496. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3497. drivingupload(file, 'imageList6', 'imgList23', 'C0510')
  3498. " :file-list="imgList23" multiple ref="upload3"
  3499. :class="{ styleB: imgList23.length === 1 }">
  3500. <img v-show="imgList23.length == 0" src="../../../../static/userfront.png"
  3501. style="width: 100%; height: 100%" />
  3502. <div slot="file" slot-scope="{ file }">
  3503. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3504. <span class="el-upload-list__item-actions">
  3505. <span class="el-upload-list__item-delete"
  3506. @click="handleRemove1(file, 'imageList6', 'imgList23')">
  3507. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3508. <i class="el-icon-delete"></i>
  3509. </span>
  3510. </span>
  3511. </div>
  3512. </el-upload>
  3513. </div>
  3514. </div>
  3515. <div class="flex f-wrap" id="snbaodan">
  3516. <div class="aaa">
  3517. <span>1.上年商业险保单</span>
  3518. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  3519. drivingupload(file, 'imageList6', 'imgList24', 'LAST_INSURANCE_POLICY')
  3520. " :file-list="imgList24" multiple ref="upload3"
  3521. :class="{ styleB: imgList24.length === 1 }">
  3522. <img v-show="imgList24.length == 0" src="../../../../static/userfront.png"
  3523. style="width: 100%; height: 100%" />
  3524. <div slot="file" slot-scope="{ file }">
  3525. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  3526. <span class="el-upload-list__item-actions">
  3527. <span class="el-upload-list__item-delete"
  3528. @click="handleRemove1(file, 'imageList6', 'imgList24')">
  3529. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  3530. <i class="el-icon-delete"></i>
  3531. </span>
  3532. </span>
  3533. </div>
  3534. </el-upload>
  3535. </div>
  3536. </div>
  3537. </el-col>
  3538. </el-row>
  3539. <span slot="footer" class="dialog-footer">
  3540. <el-button size="small" @click="imageUploaddialogVisible = false">取 消</el-button>
  3541. <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
  3542. </span>
  3543. </el-dialog>
  3544. <!-- 调整险种弹窗 -->
  3545. <el-dialog title="调整险种" :visible.sync="typeDialogVisible" width="60%" top="5vh"
  3546. :before-close="handleCloseType">
  3547. <div class="typedialog-style addyiwai typedialog-style1" v-if="productId != '034001' && productId != '034002'">
  3548. <div class="typedialog-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>交通事故强制责任险:</div>
  3549. <el-table :data="typeJqTable" border style="width: 100%" stripe header-cell-class-name="table-header">
  3550. <el-table-column prop="date" label="保障范围" align="center"></el-table-column>
  3551. <el-table-column prop="date1" label="保额(元)" align="center"></el-table-column>
  3552. <!-- <el-table-column prop="date2" label="总计" align="center"></el-table-column> -->
  3553. </el-table>
  3554. </div>
  3555. <div class="typedialog-style addyiwai typedialog-style2" v-if="productId != '0330'">
  3556. <!-- 商业险 -->
  3557. <div class="typedialog-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>商业险详情:</div>
  3558. <div class="flex f-c">
  3559. <div class="flex j-s a-c more-title back">
  3560. <div style="width: 550px; padding-left: 100px" class="flex j-s a-c">
  3561. <span>险别</span>
  3562. <span>保额(元)</span>
  3563. </div>
  3564. </div>
  3565. <div class="a-c back" v-for="(insureitem, insureindex) in typeDialogData.kinds" :key="insureindex">
  3566. <el-row style="background: #FFF;" type="flex" align="middle">
  3567. <el-col :span="10" class="more-data-left">
  3568. <div class="zhuxian" v-if="insureitem.grouping == 'main'" style="background: #E0282A">主险</div>
  3569. <div class="zhuxian" v-if="insureitem.grouping == 'additional'">附加险</div>
  3570. <div class="zhuxian" v-if="insureitem.grouping == 'service'">增值服务</div>
  3571. <span>
  3572. <el-checkbox v-model="insureitem.checked" :disabled="insureitem.Required">
  3573. <!-- <span :class="insureitem.grouping != 'additional' ? 'opacity1' : 'opacity0'">{{ insureitem.kindName }}</span> -->
  3574. <span class="opacity1">{{ insureitem.kindName }}</span>
  3575. <el-input v-show="insureitem.kindCode == 'D4' ||
  3576. insureitem.kindCode == 'MJ4' ||
  3577. insureitem.kindCode == 'SY_FJ_YBW2'
  3578. " v-model="sumseatCount" style="width: 40px; margin: 0 5px" size="small" placeholder
  3579. disabled></el-input>
  3580. <span v-show="insureitem.kindCode == 'D4' ||
  3581. insureitem.kindCode == 'MJ4' ||
  3582. insureitem.kindCode == 'SY_FJ_YBW2'
  3583. ">座</span>
  3584. </el-checkbox>
  3585. </span>
  3586. </el-col>
  3587. <el-col :span="14" class="more-data-right">
  3588. <el-select v-if="insureitem.amtList" filterable v-model="insureitem.amount" placeholder="请选择"
  3589. @change="insureitemChange($event, insureitem)" size="small" style="width: 300px">
  3590. <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
  3591. :key="index"></el-option>
  3592. </el-select>
  3593. <span v-else>
  3594. <el-input-number size="small" style="width: 280px; margin-right: 10px" v-model="insureitem.amount"
  3595. :min="0"></el-input-number>次
  3596. </span>
  3597. </el-col>
  3598. </el-row>
  3599. </div>
  3600. </div>
  3601. </div>
  3602. <div class="typedialog-style addyiwai typedialog-style3">
  3603. <!-- <div class="typedialog-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险详情:</div> -->
  3604. <div class="typedialog-style">
  3605. <div class="flex a-c" style="margin-bottom: 20px;">
  3606. <div class="typedialog-title addyiwai-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险方案配置:</div>
  3607. <div v-if="false" class="addyiwai-title-btn">添加配置</div>
  3608. </div>
  3609. <div v-if="true">
  3610. <div v-for="(listItem, listIndex) in jiayiDialogData.drivingTypeList" :key="listIndex" v-show="listIndex == 0">
  3611. <el-checkbox-group v-model="checkList" @change="handleChangeJiayi(listItem, listIndex)">
  3612. <el-checkbox v-for="(item, index) in listItem.children" :key="index" :label="item">{{item.typeName}}</el-checkbox>
  3613. </el-checkbox-group>
  3614. <div v-for="(item, index) in checkList" :key="index" style="margin-bottom: 20px;">
  3615. <div v-if="totalCompanyList[typeDialogIndex].cnName == 'zijin'">
  3616. <el-row style="margin-bottom: 20px;">
  3617. <el-col :span="10">
  3618. {{ item.typeName }}
  3619. <el-select v-if="item.detail" style="width: 300px;" v-model="item.selectList" clearable multiple @change="handleChangeSelect(index)" size="small" placeholder="请选择">
  3620. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.alias" :value="i.alias">
  3621. </el-option>
  3622. </el-select>
  3623. </el-col>
  3624. </el-row>
  3625. <div v-for="(dataItem, dataIndex) in item.tableData" :key="dataIndex">
  3626. <el-col :span="6">
  3627. 份数
  3628. <el-input v-model="dataItem.quantity" style="width: 120px;" size="small">
  3629. <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',dataItem.minQuantity, dataIndex)"></i></template>
  3630. <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',dataItem.minQuantity, dataIndex)"></i></template>
  3631. </el-input>
  3632. 份
  3633. </el-col>
  3634. <el-col v-if="item.tableData" :span="4" class="flex a-c">保费:{{ Number(dataItem.sumPremium) * dataItem.quantity }}元</el-col>
  3635. </div>
  3636. <el-table v-if="item.tableData && item.tableData.length" :data="item.tableData" border style="width: 100%; margin-top: 20px;" stripe
  3637. header-cell-class-name="table-header">
  3638. <el-table-column prop="name" label="保险责任" align="center">
  3639. <template slot-scope="scope">
  3640. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].name }}</span>
  3641. </template>
  3642. </el-table-column>
  3643. <el-table-column prop="amount" label="保险金额" align="center">
  3644. <template slot-scope="scope">
  3645. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].amount }}</span>
  3646. </template>
  3647. </el-table-column>
  3648. <el-table-column prop="premium" label="保费(元)" align="center">
  3649. <template slot-scope="scope">
  3650. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].premium }}</span>
  3651. </template>
  3652. </el-table-column>
  3653. <el-table-column prop="quantity" label="份数" align="center"></el-table-column>
  3654. <el-table-column prop="sumPremium" label="总保费" align="center"></el-table-column>
  3655. </el-table>
  3656. </div>
  3657. <div v-else>
  3658. <!-- totalCompanyList[typeDialogIndex].cnName == 'guoRen' || totalCompanyList[typeDialogIndex].cnName == 'ansheng' || totalCompanyList[typeDialogIndex].cnName == 'dajia' -->
  3659. <el-row v-if="false">
  3660. <el-col :span="8">
  3661. {{ item.typeName }}
  3662. <el-select v-model="item.select" style="width: 400px;" clearable @change="handleChangeSelectGuoren(index)" size="small" placeholder="请选择" v-if="item.detail">
  3663. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.alias" :value="i.alias">
  3664. </el-option>
  3665. </el-select>
  3666. </el-col>
  3667. <el-col :span="5">
  3668. <el-select v-model="item.select1" clearable @change="handleChangeSelect(index)" size="small" placeholder="请选择" v-if="item.tableData1">
  3669. <el-option v-for="(i, ind) in item.tableData1" :key="ind" :label="i.alias" :value="i.alias">
  3670. </el-option>
  3671. </el-select>
  3672. </el-col>
  3673. <el-col :span="6" v-if="item.tableData">
  3674. 份数
  3675. <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" size="small"></el-input-number> -->
  3676. <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
  3677. <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
  3678. <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
  3679. </el-input>
  3680. 份
  3681. </el-col>
  3682. <el-col v-if="item.tableData" :span="4">保费:{{ Number(item.tableData.sumPremium) * item.tableData.quantity }}元</el-col>
  3683. <!-- <el-col :span="1"><i class="el-icon-delete"></i></el-col> -->
  3684. </el-row>
  3685. <el-row v-else>
  3686. <el-col :span="12">
  3687. {{ item.typeName }}
  3688. <el-select v-model="item.select" style="width: 400px;" clearable @change="handleChangeSelect(index)" size="small" placeholder="请选择" v-if="item.detail">
  3689. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.alias" :value="i.alias">
  3690. </el-option>
  3691. </el-select>
  3692. </el-col>
  3693. <el-col :span="6" v-if="item.tableData">
  3694. 份数
  3695. <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" label="描述文字" size="small"></el-input-number> -->
  3696. <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
  3697. <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
  3698. <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
  3699. </el-input>
  3700. 份
  3701. </el-col>
  3702. <el-col v-if="item.tableData" :span="4" class="flex a-c">保费:{{ Number(item.tableData.sumPremium) * item.tableData.quantity }}元</el-col>
  3703. <!-- <el-col :span="1"><i class="el-icon-delete"></i></el-col> -->
  3704. </el-row>
  3705. <el-table v-if="item.tableData" :data="item.tableData.insDrivingIntentionInsuranceSon" border style="width: 100%; margin-top: 20px;" stripe
  3706. header-cell-class-name="table-header">
  3707. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  3708. <el-table-column prop="amount" label="保险金额" align="center"></el-table-column>
  3709. <el-table-column prop="premium" label="保费(元)" align="center"></el-table-column>
  3710. </el-table>
  3711. </div>
  3712. </div>
  3713. </div>
  3714. </div>
  3715. <div v-else>
  3716. <div v-for="(item, index) in 3" :key="index" style="margin-bottom: 20px;">
  3717. <el-row style="margin-bottom: 20px;">
  3718. <el-col :span="10">
  3719. 驾意选择
  3720. <!-- v-model="value" -->
  3721. <el-select size="small" clearable placeholder="请选择">
  3722. <el-option v-for="item in 3" :key="item.value" :label="22" :value="22">
  3723. </el-option>
  3724. </el-select>
  3725. </el-col>
  3726. <el-col :span="9">
  3727. 份数
  3728. <el-input-number label="描述文字" size="small"></el-input-number>
  3729. 份
  3730. </el-col>
  3731. <el-col :span="4">保费:15元</el-col>
  3732. <el-col :span="1"><i class="el-icon-delete"></i></el-col>
  3733. </el-row>
  3734. <el-table :data="item.table" border style="width: 100%" stripe
  3735. header-cell-class-name="table-header">
  3736. <el-table-column prop="date" label="保险责任" align="center"></el-table-column>
  3737. <el-table-column prop="date1" label="保险金额" align="center"></el-table-column>
  3738. <el-table-column prop="date2" label="保费(元)" align="center"></el-table-column>
  3739. </el-table>
  3740. </div>
  3741. </div>
  3742. </div>
  3743. </div>
  3744. <span slot="footer" class="dialog-footer">
  3745. <el-button size="small" @click="handleCloseType">取 消</el-button>
  3746. <el-button size="small" type="primary" @click="subTypeDialog">确 定</el-button>
  3747. </span>
  3748. </el-dialog>
  3749. <!-- 驾意险 -->
  3750. <el-dialog title="驾意险" :visible.sync="addYiwaiDialogVisible" width="60%" top="5vh"
  3751. :before-close="handleCloseAddYiwai" class="addyiwai">
  3752. <div class="typedialog-style">
  3753. <el-card>
  3754. <div class="flex a-c" style="margin-bottom: 20px;">
  3755. <div class="addyiwai-title">驾意险方案配置</div>
  3756. <div v-if="false" class="addyiwai-title-btn">添加配置</div>
  3757. </div>
  3758. <div v-if="true">
  3759. <div v-for="(listItem, listIndex) in jiayiDialogData.drivingTypeList" :key="listIndex">
  3760. <el-checkbox-group v-model="checkList" @change="handleChangeJiayi(listItem, listIndex)">
  3761. <el-checkbox v-for="(item, index) in listItem.children" :key="index" :label="item">{{item.typeName}}</el-checkbox>
  3762. </el-checkbox-group>
  3763. <div v-for="(item, index) in checkList" :key="index" style="margin-bottom: 20px;">
  3764. <div v-if="totalCompanyList[typeDialogIndex].cnName == 'zijin'">
  3765. <el-row style="margin-bottom: 20px;">
  3766. <el-col :span="10">
  3767. {{ item.typeName }}
  3768. <el-select v-if="item.detail" v-model="item.selectList" clearable multiple @change="handleChangeSelect(index)" size="small" placeholder="请选择">
  3769. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.projectName" :value="i.projectName">
  3770. </el-option>
  3771. </el-select>
  3772. </el-col>
  3773. </el-row>
  3774. <el-table v-if="item.tableData" :data="item.tableData" border style="width: 100%; margin-top: 20px;" stripe
  3775. header-cell-class-name="table-header">
  3776. <el-table-column prop="name" label="保险责任" align="center">
  3777. <template slot-scope="scope">
  3778. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].name }}</span>
  3779. </template>
  3780. </el-table-column>
  3781. <el-table-column prop="amount" label="保险金额" align="center">
  3782. <template slot-scope="scope">
  3783. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].amount }}</span>
  3784. </template>
  3785. </el-table-column>
  3786. <el-table-column prop="premium" label="保费(元)" align="center">
  3787. <template slot-scope="scope">
  3788. <span>{{ scope.row.insDrivingIntentionInsuranceSon[0].premium }}</span>
  3789. </template>
  3790. </el-table-column>
  3791. <el-table-column prop="quantity" label="份数" align="center"></el-table-column>
  3792. <el-table-column prop="sumPremium" label="总保费" align="center"></el-table-column>
  3793. </el-table>
  3794. </div>
  3795. <div v-else>
  3796. <!-- totalCompanyList[typeDialogIndex].cnName == 'guoRen' || totalCompanyList[typeDialogIndex].cnName == 'ansheng' -->
  3797. <el-row v-if="false">
  3798. <el-col :span="8">
  3799. {{ item.typeName }}
  3800. <el-select v-model="item.select" clearable @change="handleChangeSelectGuoren(index)" size="small" placeholder="请选择" v-if="item.detail">
  3801. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.alias" :value="i.alias">
  3802. </el-option>
  3803. </el-select>
  3804. </el-col>
  3805. <el-col :span="5">
  3806. <el-select v-model="item.select1" clearable @change="handleChangeSelect(index)" size="small" placeholder="请选择" v-if="item.tableData1">
  3807. <el-option v-for="(i, ind) in item.tableData1" :key="ind" :label="i.alias" :value="i.alias">
  3808. </el-option>
  3809. </el-select>
  3810. </el-col>
  3811. <el-col :span="6" v-if="item.tableData">
  3812. 份数
  3813. <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" size="small"></el-input-number> -->
  3814. <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
  3815. <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
  3816. <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
  3817. </el-input>
  3818. 份
  3819. </el-col>
  3820. <el-col v-if="item.tableData" :span="4">保费:{{ Number(item.tableData.sumPremium) * item.tableData.quantity }}元</el-col>
  3821. <!-- <el-col :span="1"><i class="el-icon-delete"></i></el-col> -->
  3822. </el-row>
  3823. <el-row v-else>
  3824. <el-col :span="10">
  3825. {{ item.typeName }}
  3826. <el-select v-model="item.select" clearable @change="handleChangeSelect(index)" size="small" placeholder="请选择" v-if="item.detail">
  3827. <el-option v-for="(i, ind) in item.detail" :key="ind" :label="i.projectName" :value="i.projectName">
  3828. </el-option>
  3829. </el-select>
  3830. </el-col>
  3831. <el-col :span="9" v-if="item.tableData">
  3832. 份数
  3833. <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" label="描述文字" size="small"></el-input-number> -->
  3834. <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
  3835. <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
  3836. <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
  3837. </el-input>
  3838. 份
  3839. </el-col>
  3840. <el-col v-if="item.tableData" :span="4">保费:{{ Number(item.tableData.sumPremium) * item.tableData.quantity }}元</el-col>
  3841. <!-- <el-col :span="1"><i class="el-icon-delete"></i></el-col> -->
  3842. </el-row>
  3843. <el-table v-if="item.tableData" :data="item.tableData.insDrivingIntentionInsuranceSon" border style="width: 100%; margin-top: 20px;" stripe
  3844. header-cell-class-name="table-header">
  3845. <el-table-column prop="name" label="保险责任" align="center"></el-table-column>
  3846. <el-table-column prop="amount" label="保险金额" align="center"></el-table-column>
  3847. <el-table-column prop="premium" label="保费(元)" align="center"></el-table-column>
  3848. </el-table>
  3849. </div>
  3850. </div>
  3851. </div>
  3852. </div>
  3853. <div v-else>
  3854. <div v-for="(item, index) in 3" :key="index" style="margin-bottom: 20px;">
  3855. <el-row style="margin-bottom: 20px;">
  3856. <el-col :span="10">
  3857. 驾意选择
  3858. <!-- v-model="value" -->
  3859. <el-select size="small" clearable placeholder="请选择">
  3860. <el-option v-for="item in 3" :key="item.value" :label="22" :value="22">
  3861. </el-option>
  3862. </el-select>
  3863. </el-col>
  3864. <el-col :span="9">
  3865. 份数
  3866. <el-input-number label="描述文字" size="small"></el-input-number>
  3867. 份
  3868. </el-col>
  3869. <el-col :span="4">保费:15元</el-col>
  3870. <el-col :span="1"><i class="el-icon-delete"></i></el-col>
  3871. </el-row>
  3872. <el-table :data="item.table" border style="width: 100%" stripe
  3873. header-cell-class-name="table-header">
  3874. <el-table-column prop="date" label="保险责任" align="center"></el-table-column>
  3875. <el-table-column prop="date1" label="保险金额" align="center"></el-table-column>
  3876. <el-table-column prop="date2" label="保费(元)" align="center"></el-table-column>
  3877. </el-table>
  3878. </div>
  3879. </div>
  3880. </el-card>
  3881. </div>
  3882. <span slot="footer" class="dialog-footer">
  3883. <el-button size="small" @click="handleCloseAddYiwai">取 消</el-button>
  3884. <el-button size="small" type="primary" @click="handleAddYiWai">确 定</el-button>
  3885. </span>
  3886. </el-dialog>
  3887. <!-- 详情 -->
  3888. <el-dialog :title="detailJiaYiTitle" :visible.sync="showDetailJiaYiVisible" width="60%" top="5vh"
  3889. :before-close="handleCloseShowDetailJiaYi">
  3890. <div class="typedialog-style addyiwai typedialog-style1" v-if="productId != '034001' && productId != '034002' && detailJiaYiTitle == '查看详情'">
  3891. <div class="typedialog-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>交通事故强制责任险:</div>
  3892. <el-table :data="typeJqTable" border style="width: 100%" stripe header-cell-class-name="table-header">
  3893. <el-table-column prop="date" label="保障范围" align="center"></el-table-column>
  3894. <el-table-column prop="date1" label="保额(元)" align="center"></el-table-column>
  3895. </el-table>
  3896. </div>
  3897. <div class="typedialog-style typedialog-style2" v-if="productId != '0330' && detailJiaYiTitle == '查看详情'">
  3898. <div class="typedialog-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>商业险详情:</div>
  3899. <div class="a-c back">
  3900. <el-row style="background: #F7F7F9;">
  3901. <el-col :span="10" class="more-data-left">险别</el-col>
  3902. <el-col :span="14" class="more-data-right">保额(元)</el-col>
  3903. </el-row>
  3904. <el-row style="background: #FFF;" v-for="(insureitem, insureindex) in typeDialogData.shangyeList" :key="insureindex">
  3905. <el-col :span="10" class="more-data-left">
  3906. <div class="zhuxian" v-if="insureitem.grouping == 'main'" style="background: #E0282A">主险</div>
  3907. <div class="zhuxian" v-if="insureitem.grouping == 'additional'">附加险</div>
  3908. <div class="zhuxian" v-if="insureitem.grouping == 'service'">增值服务</div>
  3909. <span>
  3910. <span class="opacity1">{{ insureitem.kindName }}</span>
  3911. <el-input v-show="insureitem.kindCode == 'D4' ||
  3912. insureitem.kindCode == 'MJ4' ||
  3913. insureitem.kindCode == 'SY_FJ_YBW2'
  3914. " v-model="sumseatCount" style="width: 40px; margin: 0 5px" size="mini" placeholder
  3915. disabled></el-input>
  3916. <span v-show="insureitem.kindCode == 'D4' ||
  3917. insureitem.kindCode == 'MJ4' ||
  3918. insureitem.kindCode == 'SY_FJ_YBW2'
  3919. ">座</span>
  3920. </span>
  3921. </el-col>
  3922. <el-col :span="14" class="more-data-right">
  3923. {{ toWan(insureitem.amount) }}
  3924. </el-col>
  3925. </el-row>
  3926. <div v-show="typeDialogData && typeDialogData.shangyeList && !typeDialogData.shangyeList.length">暂无</div>
  3927. </div>
  3928. </div>
  3929. <div class="typedialog-style typedialog-style3" v-if="showDetailtable && showDetailtable.length">
  3930. <div class="typedialog-title" style="display: flex; justify-content: space-between;">
  3931. <div><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险详情:</div>
  3932. <div class="typedialog-title">( 驾驶人意外单份保额 )如下</div>
  3933. </div>
  3934. <el-table v-for="(item, index) in showDetailtable" :key="index" :data="item" border style="width: 100%" stripe
  3935. header-cell-class-name="table-header">
  3936. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  3937. <el-table-column prop="amount" label="保额(元)" align="center"></el-table-column>
  3938. <el-table-column prop="premium" label="保费(元)" align="center"></el-table-column>
  3939. </el-table>
  3940. <div v-if="showDetailtable && !showDetailtable.length">暂无</div>
  3941. <div class="typedialog-title" v-if="detailJiaYiTitle == '查看详情'">已选份数:</div>
  3942. <div class="jiayi-style" v-if="detailJiaYiTitle == '查看详情'">
  3943. <el-row v-for="(item, index) in typeDialogData.drivingList" :key="index">
  3944. <el-col :span="10">
  3945. <div class="jiayi-style-title">产品名称</div>
  3946. <div class="jiayi-style-line">{{ item.alias || item.projectName }}</div>
  3947. </el-col>
  3948. <!-- <el-col :span="6">
  3949. <div class="jiayi-style-title">座位数</div>
  3950. <div class="jiayi-style-line">{{ }}</div>
  3951. </el-col> -->
  3952. <el-col :span="6">
  3953. <div class="jiayi-style-title">份数</div>
  3954. <div class="jiayi-style-line">{{ item.quantity }}</div>
  3955. </el-col>
  3956. <el-col :span="3">
  3957. <div class="jiayi-style-title">每份</div>
  3958. <div class="jiayi-style-line">{{ item.sumPremium }}</div>
  3959. </el-col>
  3960. <el-col :span="3">
  3961. <div class="jiayi-style-title">合计</div>
  3962. <div class="jiayi-style-line">{{ Number(item.sumPremium) * item.quantity }}</div>
  3963. </el-col>
  3964. </el-row>
  3965. <div v-if="typeDialogData && typeDialogData.drivingList && !typeDialogData.drivingList.length">暂无</div>
  3966. </div>
  3967. </div>
  3968. <span slot="footer" class="dialog-footer">
  3969. <!-- <el-button size="small" @click="handleCloseShowDetailJiaYi">取 消</el-button> -->
  3970. <el-button size="small" type="primary" @click="handleCloseShowDetailJiaYi">确 定</el-button>
  3971. </span>
  3972. </el-dialog>
  3973. <!-- 驾意险详情 -->
  3974. <el-dialog :title="detailJiaYiTitle" :visible.sync="showDetailJiaYiVisible1" width="60%" top="5vh" v-dialogDrag
  3975. :before-close="handleCloseShowDetailJiaYi">
  3976. <div class="typedialog-style typedialog-style3" v-if="showDetailtable && showDetailtable.length">
  3977. <div class="typedialog-title" style="display: flex; justify-content: space-between;">
  3978. <div><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险详情:</div>
  3979. <div class="typedialog-title">( 驾驶人意外单份保额 )如下</div>
  3980. </div>
  3981. <el-table v-for="(item, index) in showDetailtable" :key="index" :data="item" border style="width: 100%" stripe
  3982. header-cell-class-name="table-header">
  3983. <el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
  3984. <el-table-column prop="amount" label="保额(元)" align="center"></el-table-column>
  3985. <el-table-column prop="premium" label="保费(元)" align="center"></el-table-column>
  3986. </el-table>
  3987. <div v-if="showDetailtable && !showDetailtable.length">暂无</div>
  3988. </div>
  3989. <span slot="footer" class="dialog-footer">
  3990. <!-- <el-button size="small" @click="handleCloseShowDetailJiaYi">取 消</el-button> -->
  3991. <el-button size="small" type="primary" @click="handleCloseShowDetailJiaYi">确 定</el-button>
  3992. </span>
  3993. </el-dialog>
  3994. <!-- 选择特约 showTeYueVisible -->
  3995. <el-dialog title="选择特约" :visible.sync="showTeYueVisible" width="40%" top="5vh"
  3996. :before-close="handleCloseTeYue" class="teYuedialog-style">
  3997. <div>
  3998. <!-- <el-input placeholder="请输入内容" style="margin-bottom: 20px;">
  3999. <el-button type="primary" slot="append" icon="el-icon-search"></el-button>
  4000. </el-input> -->
  4001. <el-table :data="teYueTable" style="width: 100%" stripe
  4002. header-cell-class-name="table-header">
  4003. <el-table-column type="selection" width="55"></el-table-column>
  4004. <el-table-column type="expand">
  4005. <!-- <template slot-scope="props">
  4006. <div class="table-title">特约内容</div>
  4007. <div class="table-title">保险公司温馨提示:根据车船税征收管理规定,次年生效交强险业务如本年提前续保,请您仍须在下一年度年底前完成跨年提前续保并缴纳车船税,否则会产生车船税滞纳金。</div>
  4008. </template> -->
  4009. </el-table-column>
  4010. <el-table-column prop="date" label="特约名称" align="center">
  4011. </el-table-column>
  4012. <el-table-column prop="date1" label="特约险种" align="center"></el-table-column>
  4013. <el-table-column prop="date2" label="特约代码" align="center"></el-table-column>
  4014. </el-table>
  4015. </div>
  4016. <span slot="footer" class="dialog-footer">
  4017. <span>已选择了 <b style="color: #F96646;"> 1</b> 条特约</span>
  4018. <span style="flex: 1;"></span>
  4019. <el-button size="small" @click="showTeYueVisible = false">取 消</el-button>
  4020. <el-button size="small" type="primary" @click="showTeYueVisible = false">确 定</el-button>
  4021. </span>
  4022. </el-dialog>
  4023. <floatingBar />
  4024. </div>
  4025. </template>
  4026. <script>
  4027. let _self;
  4028. import QRCode from "qrcodejs2";
  4029. import Cookies from "js-cookie";
  4030. import CommonUtil from "@/utils/comutil.js";
  4031. import floatingBar from '@/components/customerService/floatingBar.vue';
  4032. import {
  4033. getAgeByIdCard,
  4034. searchkey,
  4035. addressCode,
  4036. getGenderByIdCard,
  4037. } from "@/utils/validate.js";
  4038. import citydata from "@/assets/js/citydata.js";
  4039. // import yongchengData from '../../assets/js/yongchengData';
  4040. import { regionData, codeToText } from "element-china-area-data";
  4041. import { base64ToPath } from "@/common/image-tools-base64.js";
  4042. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  4043. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  4044. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  4045. import imageDialog from "@/views/Core/components/imageDialog.vue";
  4046. import { mapState } from "vuex";
  4047. import Ktletter1Popover from "./components/LetterPopover.vue"
  4048. export default {
  4049. inject: ["reload"],
  4050. name: "qrCode",
  4051. data() {
  4052. var checkpurchasePrice = (rule, value, callback) => {
  4053. if (!value) {
  4054. callback(new Error("新车购置价不能为空"));
  4055. } else if (value == 0) {
  4056. callback(new Error("新车购置价不能为零"));
  4057. } else {
  4058. callback();
  4059. }
  4060. };
  4061. var checkframeNo = (rule, value, callback) => {
  4062. if (value.length < 17) {
  4063. callback(new Error("车架号不足17位"));
  4064. } else if (
  4065. value.indexOf("I") != "-1" ||
  4066. value.indexOf("O") != "-1" ||
  4067. value.indexOf("Q") != "-1"
  4068. ) {
  4069. callback(new Error("车架号不能包含(I O Q)三个字母"));
  4070. } else {
  4071. callback();
  4072. }
  4073. };
  4074. var carPhoneValid = (rule, value, callback) => {
  4075. const plateNumber =
  4076. /^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领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})$/;
  4077. if (!value) {
  4078. callback(new Error("请输入车牌号"));
  4079. } else if (plateNumber.test(value)) {
  4080. callback();
  4081. } else {
  4082. callback(new Error("请输入正确的车牌号"));
  4083. }
  4084. };
  4085. return {
  4086. colSpan: {
  4087. xs: 24, // 超小屏幕
  4088. sm: 12, // 小屏幕
  4089. md: 12, // 中屏幕
  4090. lg: 6, // 大屏幕
  4091. xl: 6 // 超大屏幕
  4092. },
  4093. colgutter:80,
  4094. productList: [], // 产品id列表
  4095. productId: '', // 产品id
  4096. // 选择特约
  4097. teYueTable: [{}, {}],
  4098. showTeYueVisible: false,
  4099. // 驾意险详情
  4100. jiayiDialogData: {},
  4101. showDetailJiaYiVisible: false,
  4102. showDetailJiaYiVisible1: false,
  4103. showDetailtable: [],
  4104. // 添加驾意险
  4105. checkList: [],
  4106. addYiwaiDialogVisible: false,
  4107. typeJqTable: [
  4108. {date: '死亡伤残赔偿', date1: 180000},
  4109. {date: '医疗费用赔偿', date1: 18000},
  4110. {date: '财产损失赔偿', date1: 2000}
  4111. ], // 调整险种交强险表格
  4112. typeDialogVisible: false, // 调整险种弹窗
  4113. typeDialogData: [], // 调整险种弹窗商业险
  4114. typeDialogIndex: 0, // 当前 调整险种弹窗 index
  4115. inquiryNowList: [], // 现询列表
  4116. isInquiryNowDisable: false,
  4117. taikangtemplateSelection: [], // 泰康
  4118. taikangInsuranceDataTable: [],
  4119. taikangaccidentDataList: [],
  4120. accidentPremiumTk: "",
  4121. accidentPremiumPA:'',
  4122. accidentFormTk: {
  4123. quantity: "1",
  4124. sumPremium: 0,
  4125. },
  4126. pinganDataDetail:[],
  4127. pinganDataDetailVisible:false,
  4128. accidentFormPA: [{
  4129. quantity: "1",
  4130. premium: 0,
  4131. pingantemplateSelection:'',
  4132. pinganInsuranceDataTable:[],
  4133. pinganInsurancetype:'',
  4134. },
  4135. {
  4136. quantity: "1",
  4137. premium: 0,
  4138. pingantemplateSelection:'',
  4139. pinganInsuranceDataTable:[],
  4140. pinganInsurancetype:'',
  4141. },
  4142. {
  4143. quantity: "1",
  4144. premium: 0,
  4145. pingantemplateSelection:'',
  4146. pinganInsuranceDataTable:[],
  4147. pinganInsurancetype:'',
  4148. }],
  4149. taikangaccidentalDrivingVo: {},
  4150. pinganaccidentalDrivingVo: {
  4151. 0:{},
  4152. 1:{},
  4153. 2:[],
  4154. },
  4155. nowCostsId: undefined, // 现询
  4156. policyNumberForm: {
  4157. jqpolicyno: "",
  4158. sypolicyno: "",
  4159. jypolicyno: "",
  4160. jqpremium: "",
  4161. sypremium: "",
  4162. jypremium: "",
  4163. taxamount: "",
  4164. commissionFeevalue: "",
  4165. otherFeevalue: "",
  4166. jqSuperviseCostsProportion: "",
  4167. sySuperviseCostsProportion: "",
  4168. noSuperviseCostsProportion: "",
  4169. jqOtherCostsProportion: "",
  4170. syOtherCostsProportion: "",
  4171. noOtherCostsProportion: "",
  4172. jqReceivableProportion: "",
  4173. syReceivableProportion: "",
  4174. noReceivableProportion: "",
  4175. jqPolicyList: [],
  4176. syPolicyList: [],
  4177. jqSignList: [],
  4178. noPolicyList: [],
  4179. noCostsProportion: '',
  4180. jqCostsProportion: '',
  4181. syCostsProportion: '',
  4182. },
  4183. watermarkedImage: "",
  4184. redictInfoMsg: [],
  4185. redictInfodialogVisible: false,
  4186. qrcodeWidth: "180",
  4187. qrcodeHeight: "180",
  4188. activeName: "1",
  4189. isTaxSourceModel: "",
  4190. tabLiIndex: 0,
  4191. tabLimenu: [
  4192. {
  4193. name: "车辆信息",
  4194. scroll: "vehicle",
  4195. },
  4196. {
  4197. name: "车主信息",
  4198. scroll: "owner",
  4199. },
  4200. {
  4201. name: "投保人信息",
  4202. scroll: "applicant",
  4203. },
  4204. {
  4205. name: "被保人信息",
  4206. scroll: "insured",
  4207. },
  4208. {
  4209. name: "关系证明",
  4210. scroll: "relationship",
  4211. },
  4212. {
  4213. name: "验车照",
  4214. scroll: "yanchezhao",
  4215. },
  4216. {
  4217. name: "上年商业险保单",
  4218. scroll: "snbaodan",
  4219. },
  4220. ],
  4221. packageValue: "",
  4222. packageOptions: [],
  4223. zhongmeitemplateSelection: "", //中煤驾意险产品选中值
  4224. zhongmeiInsuranceData: [], //中煤驾意险产品列表数据
  4225. zhongmeiInsuranceDataTable: [], //中煤驾意险产品明细方案数据
  4226. zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
  4227. pinganInsuranceData: [], //平安驾意险产品列表数据
  4228. currentCell: null,
  4229. feeDetailInfo: [], //费用明细信息
  4230. immediatelyValue: false,
  4231. isRetractZJ: false,
  4232. isRetractHB: false,
  4233. isRetractZM: false,
  4234. isRetractASTP: false,
  4235. isRetractZA: false,
  4236. isRetractYC: false,
  4237. isRetractRS: false,
  4238. anshengInsurancetype: "",
  4239. iscCrownerShow: false,
  4240. isApplicantShow: false,
  4241. isInsuredShow: false,
  4242. formInline: {},
  4243. anshengtemplateSelection: "", //安盛
  4244. anshengInsuranceData: [], //安盛驾意险
  4245. anshengInsuranceDataTable: [], //安盛驾意险
  4246. anshengaccidentalDrivingVo: {}, //安盛驾意险
  4247. hengbangtemplateSelection: "", //恒邦
  4248. hengbangInsuranceData: [], //恒邦驾意险
  4249. hengbangInsuranceDataTable: [],
  4250. hengbangaccidentalDrivingVo: {}, //恒邦驾意险
  4251. insuranceHN: "", //华农
  4252. huanongInsuranceData: [], //华农驾意险
  4253. huanongInsuranceDataTable: [],
  4254. huanongaccidentalDrivingVo: {}, //华农驾意险
  4255. renshouaccidentalDrivingVo: {}, //人寿意外险
  4256. renshouInsuranceData: [], //-人寿意外险list
  4257. ziJinInsuranceData: [], //-紫金意外险list
  4258. zhonganInsuranceData: [], //众安驾意险
  4259. zhonganaccidentalDrivingVo: {}, //众安驾意险
  4260. zijinInsuranceDataTable: [],
  4261. zijintemplateSelection: "",
  4262. accidentalDrivingVo: [], //-紫金意外险传参
  4263. zijinengageListData: [], //紫金特约
  4264. zijinengageList: [], //紫金特约
  4265. // ------------紫金意外险
  4266. renshoutemplateSelection: "", //人寿
  4267. renshouInsuranceDataTable: [],
  4268. zhongantemplateSelection: "", //众安
  4269. zhonganInsuranceDataTable: [],
  4270. taipingtemplateSelection: "", //太平
  4271. taipingInsuranceData: [], //太平驾意险
  4272. TPDrivingChangeInsuranceData: [],
  4273. taipingaccidentalDrivingVo: {}, //太平驾意险
  4274. licenseplate: true,
  4275. calculateLoading: false, //保费计算按钮 节流
  4276. preserveQuoteLoading: false, //保存按钮
  4277. emporaryLoading: false,
  4278. accidentForm: {
  4279. quantity: "1",
  4280. sumPremium: 0,
  4281. }, //永诚意外险内容
  4282. accidentFormHN: {
  4283. allQuantity: "1",
  4284. quantity: "1",
  4285. }, //华农意外险内容
  4286. yongchengaccidentDataList: [], //永诚意外险
  4287. yongchengtemplateSelection: "",
  4288. guoRenaccidentDataList: [], //国任意外险
  4289. guoRenInsuranceDataTable: [],
  4290. guoRenaccidentDataListChild: [],
  4291. guoRenaccidentalDrivingVo: {}, //国任驾意险
  4292. dajiatemplateSelection: "",
  4293. dajiaaccidentDataListChild: [],
  4294. dajiaaccidentForm: {},
  4295. dajiaInsuranceData: [], //大家意外险
  4296. dajiaInsuranceDataTable: [],
  4297. dajiaaccidentalDrivingVo: {},
  4298. yongchengInsuranceDataTable: [],
  4299. guoRenaccidentLoading: false,
  4300. contributingLoading: false,
  4301. guoRenaccidentPremium: "",
  4302. guoRenaccidentForm: {
  4303. quantity: "1",
  4304. sumPremium: 0,
  4305. }, //国任意外险内容
  4306. accidentFormZM: {
  4307. quantity: "1",
  4308. sumPremium: 0,
  4309. }, //中煤意外险内容
  4310. boHaiaccidentDataList: [], //渤海意外险
  4311. boHaigtemplateSelection:'',
  4312. boHaiaccidentForm: {
  4313. copies: "1",
  4314. policyNum: 0,
  4315. },
  4316. bohaiInsuranceDataTable: [],
  4317. accidentPremium: "",
  4318. accidentPremiumZM: "",
  4319. contributingState: false, //是否为国任特约
  4320. pickerOptions: {
  4321. disabledDate(time) {
  4322. //若选择的日期小于当前日期(包含今天)
  4323. return time.getTime() > Date.now();
  4324. //若选择的日期大于当前日期(不包含今天): time.getTime() < Date.now()
  4325. //若选择的日期小于当前日期(不包含今天): time.getTime() > Date.now() - 8.64e7
  4326. //若选择的日期小于等于当前日期(包含今天): time.getTime() > Date.now()
  4327. },
  4328. },
  4329. attributionform: {
  4330. //续保查询数据
  4331. configure: [],
  4332. companyId: "",
  4333. },
  4334. continuousAction: [], //续保配置项
  4335. //永诚转保确认码
  4336. cqryCdeJq: "",
  4337. cqryCdeSy: "",
  4338. renewalCodeJq: "", //交强确认码
  4339. renewalCodeSy: "", //商业确认码
  4340. renewalCodeJqImg: "", //交强图片
  4341. renewalCodeSyImg: "", //商业图片
  4342. //-----------------
  4343. showViewer: false,
  4344. transferDateShow: false, //转移登记日期
  4345. yonganchecked: false, //永安驾意险
  4346. renbaochecked: false, //人保驾意险
  4347. zhongmeichecked: false, //中煤驾意险
  4348. hengbangchecked: false, //恒邦驾意险
  4349. yongchengchecked: false, //永诚驾意险
  4350. yonganDrivinglist: [],
  4351. renbaoDrivinglist: [],
  4352. zhongmeiDrivinglist: [],
  4353. hengbangDrivinglist: [],
  4354. yongchengDrivinglist: [],
  4355. tbczcarShow: true, //投保人同车主
  4356. bbczcarShow: false, //被保人同车主
  4357. bbtbcarShow: true, //被保人同投保人
  4358. imageUploadShow: true, //上传影像显示
  4359. ProViewImg: "", //预览图片
  4360. carfrontImg: "", //行驶证正面
  4361. carbackImg: "", //行驶证背面
  4362. userfrontImg: "", //身份证正面
  4363. userbackImg: "", //身份证背面
  4364. businessImg: "",
  4365. CarFrontFile: "", //车正面文件流
  4366. CarBackFile: "", //车背面文件流
  4367. C02File: "",
  4368. D02File: "",
  4369. C03File: "",
  4370. D03File: "",
  4371. C04File: "",
  4372. D04File: "",
  4373. userIndex: 1, //区分三种人员
  4374. TabName: "car", //默认选项卡
  4375. value1: "",
  4376. chexingdialogVisible: false, //车型选择 显示/隐藏
  4377. sbdmdialogVisible: false, //车型车辆识别代码选择 显示/隐藏
  4378. codedialogVisible: false, //二维码 显示/隐藏
  4379. codedialogVisiblePro: false,
  4380. uploadcardialogVisible: false, //行驶证识别 显示/隐藏
  4381. uploaduserdialogVisible: false, //身份证识别 显示/隐藏
  4382. imageUploaddialogVisible: false, //影像上传 显示/隐藏
  4383. policyUploaddialogVisible: false, //保单上传
  4384. underwritingdialogVisible: false, //核保信息 显示/隐藏
  4385. renewalCodedialogVisible: false, //转保确认码输入
  4386. hbsubmitdialogVisible: false, //核保弹框
  4387. signaturedialogVisible:false, //生成签章
  4388. signaturecode:null,
  4389. Carinsurance: {
  4390. jqinsurance: "1", //交强险
  4391. syinsurance: "1", //商业险
  4392. },
  4393. jqchecked: true,
  4394. sychecked: false,
  4395. jqstartDate: "", //交强时间
  4396. jqendDate: "", //交强时间
  4397. systartDate: "", //商业时间
  4398. syendDate: "", //商业时间
  4399. loading: false, //加载事件
  4400. reslist: [], //车型列表
  4401. userId: "", //出单工号
  4402. carInfo: {
  4403. powerScale: "", ///功率
  4404. licenseNo: "", //车牌号
  4405. brandName: "", //车辆品牌型号
  4406. vinNo: "", //车架号
  4407. engineNo: "", //发动机号
  4408. modelCode: "", //车型编码
  4409. seatCount: null, //核定载客量 核定载人数
  4410. purchasePrice: null, //新车购置价最低,行业实际价值,协商价值
  4411. carBrand: "", //车型品牌
  4412. ciCarName: "", //行业车型名称
  4413. ciModelCode: "", //行业车型编码
  4414. completeKerbMass: "", //整备质量
  4415. exhaustScale: "", //排量
  4416. factory: "", //工厂名称
  4417. factoryid: "", //工厂编码
  4418. frameNo: "", //车架号
  4419. licenseTypeCode: "02", //号牌种类
  4420. vehicleclass: "", //车辆类型
  4421. familyName: "", //车型
  4422. modelcname: "", //车型名称
  4423. powertypecode: "", //燃料类型编码
  4424. vehicleweight: "", //总质量
  4425. limitLoad: "", //核定载质量
  4426. caryear: null, //年款
  4427. cimodelclass: "A0", //车辆种类
  4428. energyType: "0", //能源类型
  4429. enginedesc: "", //排量
  4430. registerDate: "", //注册日期
  4431. issueDate: "", //发证日期
  4432. transferFlag: 0, //过户标志
  4433. transferFlagBi: false, //商业险是否过户
  4434. transferDate: "", //过户日期
  4435. loanStatus: 0, //贷款标志
  4436. firstBeneMan: "", //第一受益人
  4437. noLicenseFlag: false, //是否新车
  4438. cartype: "", //客车A0 货车H0
  4439. carnature: "02", //使用性质
  4440. vehicleUse: "05",
  4441. property: "1", //所属性质 1个人 2企业 3个人
  4442. },
  4443. carform: {
  4444. carOwner: "", //车主
  4445. licenseNo: "", //车牌号
  4446. modelcname: "", //车辆品牌型号
  4447. frameNo: "", //车架号
  4448. engineNo: "", //发动机号
  4449. registerDate: "", //注册日期
  4450. issueDate: "", //发证日期
  4451. grossMass: "", //总质量
  4452. unladenMass: "", //整备质量
  4453. limitLoad: "", //核定载质量
  4454. approvedPassengersCapacity: "", //核定载客数
  4455. },
  4456. ownerInfoform: {
  4457. name: "",
  4458. identifyType: "",
  4459. identifyNumber: "",
  4460. age: "", //年龄
  4461. gender: "", //性别
  4462. addr: "",
  4463. email: "",
  4464. mobile: "",
  4465. identifyValidDate: "", //有效期起期
  4466. identifyValidEndDate: "", //有效期止期
  4467. // province: "",//省
  4468. // city: "",//市
  4469. // county: "",//县
  4470. },
  4471. riskList: [], //险种大类信息
  4472. kindList: [], //商业险险别
  4473. ownerInfo: {
  4474. //车主
  4475. name: "", //姓名
  4476. identifyType: "01", //身份证类型
  4477. identifyNumber: "", //身份证号
  4478. age: "", //年龄
  4479. gender: "", //性别
  4480. addr: "", //地址
  4481. email: "", //邮箱
  4482. mobile: "", //电话
  4483. identifyValidDate: "", //有效期起期
  4484. identifyValidEndDate: "", //有效期止期
  4485. // province: "",//省
  4486. // city: "",//市
  4487. // county: "",//县
  4488. provinceData: [], //省市区
  4489. },
  4490. policyHolderInfo: {
  4491. //投保人
  4492. name: "", //姓名
  4493. identifyType: "01", //身份证类型
  4494. identifyNumber: "", //身份证号
  4495. age: "", //年龄
  4496. gender: "", //性别
  4497. addr: "", //地址
  4498. email: "", //邮箱
  4499. mobile: "", //电话
  4500. identifyValidDate: "", //有效期起期
  4501. identifyValidEndDate: "", //有效期止期
  4502. // province: "",//省
  4503. // city: "",//市
  4504. // county: "",//县
  4505. provinceData: [], //省市区
  4506. },
  4507. insuredPersonInfo: {
  4508. //被保人
  4509. name: "", //姓名
  4510. identifyType: "01", //身份证类型
  4511. identifyNumber: "", //身份证号
  4512. age: "", //年龄
  4513. gender: "", //性别
  4514. addr: "", //地址
  4515. email: "", //邮箱
  4516. mobile: "", //电话
  4517. identifyValidDate: "", //有效期起期
  4518. identifyValidEndDate: "", //有效期止期
  4519. provinceData: [], //省市区
  4520. // province: "",//省
  4521. // city: "",//市
  4522. // county: "",//县
  4523. },
  4524. //车船税form
  4525. vehicleAndVesselTaxForm: {
  4526. taxRelifFlag: "1", //类型
  4527. identifyNumber: "", //纳税人识别号
  4528. taxpayerIdentifier: "01", //纳税人证件类型
  4529. taxpayerName: "", //纳税人名称
  4530. extendChar2: "", //减免税凭证号
  4531. paidFreeCertificate: "", //完税凭证号
  4532. relifReason: "", //减免税原因
  4533. taxComCode: "", //税务机关代码
  4534. taxComName: "", ///税务机关名称
  4535. taxDocumentDate: "", //完税日期
  4536. taxPaidAreaCode: "", //完税凭证地区代码
  4537. taxRelief: "", //减税比例
  4538. },
  4539. //车辆用途列表
  4540. vehicleList: [],
  4541. //能源种类列表
  4542. rules: {
  4543. extendChar2: [
  4544. { required: true, message: "请输入减免税凭证号", trigger: "blur" },
  4545. ],
  4546. paidFreeCertificate: [
  4547. { required: true, message: "请输入完税凭证号", trigger: "blur" },
  4548. ],
  4549. relifReason: [
  4550. { required: true, message: "请输入减免税原因", trigger: "blur" },
  4551. ],
  4552. taxComCode: [
  4553. { required: true, message: "请输入税务机关代码", trigger: "blur" },
  4554. ],
  4555. taxComName: [
  4556. { required: true, message: "请输入税务机关名称", trigger: "blur" },
  4557. ],
  4558. taxDocumentDate: [
  4559. { required: true, message: "请输入完税日期", trigger: "blur" },
  4560. ],
  4561. taxPaidAreaCode: [
  4562. { required: true, message: "请选择完税地区", trigger: "blur" },
  4563. ],
  4564. taxRelief: [
  4565. { required: true, message: "请输入减税比例", trigger: "blur" },
  4566. ],
  4567. taxpayerName: [
  4568. { required: true, message: "请输入纳税人名称", trigger: "blur" },
  4569. ],
  4570. taxpayerIdentifier: [
  4571. { required: true, message: "请选择证件类型", trigger: "blur" },
  4572. ],
  4573. taxRelifFlag: [
  4574. { required: true, message: "请选择纳税类型", trigger: "blur" },
  4575. ],
  4576. energyType: [
  4577. { required: true, message: "请选择能源种类", trigger: "blur" },
  4578. ],
  4579. cimodelclass: [
  4580. { required: true, message: "请选择车辆种类", trigger: "blur" },
  4581. ],
  4582. carnature: [
  4583. { required: true, message: "请选择使用性质", trigger: "blur" },
  4584. ],
  4585. cartype: [
  4586. { required: true, message: "请选择车辆类型", trigger: "blur" },
  4587. ],
  4588. vehicleUse: [
  4589. { required: true, message: "请选择车辆用途", trigger: "blur" },
  4590. ],
  4591. brandName: [
  4592. { required: true, message: "请填写品牌型号", trigger: "blur" },
  4593. ],
  4594. licenseNo: [
  4595. { max: 8, message: "最多八个字符", trigger: "blur" },
  4596. { required: true, validator: carPhoneValid, trigger: "blur" },
  4597. ],
  4598. frameNo: [{ validator: checkframeNo, trigger: "blur" }],
  4599. engineNo: [
  4600. { required: true, message: "请填写发动机号", trigger: "blur" },
  4601. ],
  4602. purchasePrice: [
  4603. { required: true, validator: checkpurchasePrice, trigger: "blur" },
  4604. ],
  4605. registerDate: [
  4606. { required: true, message: "请选择注册时间", trigger: "blur" },
  4607. ],
  4608. issueDate: [
  4609. { required: true, message: "请选择发证日期", trigger: "blur" },
  4610. ],
  4611. transferDate: [
  4612. { required: true, message: "请选择转移登记日期", trigger: "blur" },
  4613. ],
  4614. seatCount: [
  4615. { required: true, message: "请输入座位数", trigger: "blur" },
  4616. ],
  4617. completeKerbMass: [
  4618. { required: true, message: "请输入整备质量", trigger: "blur" },
  4619. ],
  4620. name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
  4621. taxamount: [
  4622. { required: true, message: "请填写车船税", trigger: "blur" },
  4623. ],
  4624. signDate: [
  4625. { required: true, message: "请填写签单日期", trigger: "blur" },
  4626. ],
  4627. // identifyNumber: [
  4628. // { required: true, message: "请填写证件号", trigger: "blur" },
  4629. // { min: 18, max: 18, message: "长度在18个字符", trigger: "blur" },
  4630. // {
  4631. // 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]$/,
  4632. // message: "请输入正确的证件号",
  4633. // trigger: "blur"
  4634. // }
  4635. // ],
  4636. identifyValidDate: [
  4637. { required: true, message: "请选择起期", trigger: "blur" },
  4638. ],
  4639. identifyValidEndDate: [
  4640. { required: true, message: "请选择止期", trigger: "blur" },
  4641. ],
  4642. addr: [
  4643. { required: true, message: "请填写地址", trigger: "blur" },
  4644. { min: 8, message: "最少8个字符", trigger: "blur" },
  4645. ],
  4646. mobile: [
  4647. { required: true, message: "请填写手机号", trigger: "blur" },
  4648. { min: 11, max: 11, message: "长度在11个字符", trigger: "blur" },
  4649. {
  4650. pattern:
  4651. /^(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}$/,
  4652. message: "请输入正确的手机号",
  4653. trigger: "blur",
  4654. },
  4655. ],
  4656. email: [
  4657. { min: 10, max: 20, message: "最少10个字符", trigger: "blur" },
  4658. {
  4659. pattern:
  4660. /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
  4661. message: "请输入正确的邮箱",
  4662. trigger: "blur",
  4663. },
  4664. ],
  4665. },
  4666. CIInsureList: {
  4667. //交强险
  4668. amount: "1",
  4669. amountDesc: "投保",
  4670. amtList: [
  4671. {
  4672. label: "不投保",
  4673. value: "0",
  4674. },
  4675. {
  4676. label: "投保",
  4677. value: "1",
  4678. },
  4679. ],
  4680. kindCode: "0507",
  4681. kindName: "交强险",
  4682. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障",
  4683. },
  4684. BIInsureList: {
  4685. //商业险
  4686. amount: "0",
  4687. amountDesc: "投保",
  4688. amtList: [
  4689. {
  4690. label: "不投保",
  4691. value: "0",
  4692. },
  4693. {
  4694. label: "投保",
  4695. value: "1",
  4696. },
  4697. ],
  4698. kindCode: "0510",
  4699. kindName: "商业险",
  4700. desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障",
  4701. },
  4702. insureList: [
  4703. {
  4704. amount: "0",
  4705. amountDesc: "投保",
  4706. coveragePremium: 0,
  4707. amtList: [
  4708. {
  4709. label: "不投保",
  4710. value: "0",
  4711. },
  4712. {
  4713. label: "投保",
  4714. value: "1",
  4715. },
  4716. ],
  4717. kindCode: "A",
  4718. isMainRisk: true,
  4719. kindName: "机动车损失险",
  4720. desc: "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。",
  4721. },
  4722. {
  4723. amount: "0",
  4724. amountDesc: "不投保",
  4725. coveragePremium: 0,
  4726. amtList: [
  4727. {
  4728. label: "不投保",
  4729. value: "0",
  4730. },
  4731. {
  4732. label: "10万",
  4733. value: "100000",
  4734. },
  4735. {
  4736. label: "15万",
  4737. value: "150000",
  4738. },
  4739. {
  4740. label: "20万",
  4741. value: "200000",
  4742. },
  4743. {
  4744. label: "30万",
  4745. value: "300000",
  4746. },
  4747. {
  4748. label: "50万",
  4749. value: "500000",
  4750. },
  4751. {
  4752. label: "100万",
  4753. value: "1000000",
  4754. },
  4755. {
  4756. label: "150万",
  4757. value: "1500000",
  4758. },
  4759. {
  4760. label: "200万",
  4761. value: "2000000",
  4762. },
  4763. {
  4764. label: "250万",
  4765. value: "2500000",
  4766. },
  4767. {
  4768. label: "300万",
  4769. value: "3000000",
  4770. },
  4771. {
  4772. label: "400万",
  4773. value: "4000000",
  4774. },
  4775. {
  4776. label: "500万",
  4777. value: "5000000",
  4778. },
  4779. {
  4780. label: "600万",
  4781. value: "6000000",
  4782. },
  4783. {
  4784. label: "800万",
  4785. value: "8000000",
  4786. },
  4787. {
  4788. label: "1000万",
  4789. value: "10000000",
  4790. },
  4791. ],
  4792. kindCode: "B",
  4793. isMainRisk: true,
  4794. kindName: "第三者责任险",
  4795. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。",
  4796. },
  4797. {
  4798. amount: "0",
  4799. amountDesc: "1万",
  4800. coveragePremium: 0,
  4801. amtList: [
  4802. {
  4803. label: "不投保",
  4804. value: "0",
  4805. },
  4806. {
  4807. label: "1万",
  4808. value: "10000",
  4809. },
  4810. {
  4811. label: "2万",
  4812. value: "20000",
  4813. },
  4814. {
  4815. label: "3万",
  4816. value: "30000",
  4817. },
  4818. {
  4819. label: "4万",
  4820. value: "40000",
  4821. },
  4822. {
  4823. label: "5万",
  4824. value: "50000",
  4825. },
  4826. {
  4827. label: "6万",
  4828. value: "60000",
  4829. },
  4830. {
  4831. label: "7万",
  4832. value: "70000",
  4833. },
  4834. {
  4835. label: "8万",
  4836. value: "80000",
  4837. },
  4838. {
  4839. label: "9万",
  4840. value: "90000",
  4841. },
  4842. {
  4843. label: "10万",
  4844. value: "100000",
  4845. },
  4846. {
  4847. label: "15万",
  4848. value: "150000",
  4849. },
  4850. {
  4851. label: "20万",
  4852. value: "200000",
  4853. },
  4854. {
  4855. label: "25万",
  4856. value: "250000",
  4857. },
  4858. {
  4859. label: "30万",
  4860. value: "300000",
  4861. },
  4862. {
  4863. label: "35万",
  4864. value: "350000",
  4865. },
  4866. {
  4867. label: "40万",
  4868. value: "400000",
  4869. },
  4870. {
  4871. label: "45万",
  4872. value: "450000",
  4873. },
  4874. {
  4875. label: "50万",
  4876. value: "500000",
  4877. },
  4878. ],
  4879. kindCode: "D3",
  4880. isMainRisk: true,
  4881. kindName: "司机责任险",
  4882. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。",
  4883. },
  4884. {
  4885. amount: "0",
  4886. amountDesc: "1万",
  4887. coveragePremium: 0,
  4888. amtList: [
  4889. {
  4890. label: "不投保",
  4891. value: "0",
  4892. },
  4893. {
  4894. label: "1万",
  4895. value: "10000",
  4896. },
  4897. {
  4898. label: "2万",
  4899. value: "20000",
  4900. },
  4901. {
  4902. label: "3万",
  4903. value: "30000",
  4904. },
  4905. {
  4906. label: "4万",
  4907. value: "40000",
  4908. },
  4909. {
  4910. label: "5万",
  4911. value: "50000",
  4912. },
  4913. {
  4914. label: "6万",
  4915. value: "60000",
  4916. },
  4917. {
  4918. label: "7万",
  4919. value: "70000",
  4920. },
  4921. {
  4922. label: "8万",
  4923. value: "80000",
  4924. },
  4925. {
  4926. label: "9万",
  4927. value: "90000",
  4928. },
  4929. {
  4930. label: "10万",
  4931. value: "100000",
  4932. },
  4933. {
  4934. label: "15万",
  4935. value: "150000",
  4936. },
  4937. {
  4938. label: "20万",
  4939. value: "200000",
  4940. },
  4941. {
  4942. label: "25万",
  4943. value: "250000",
  4944. },
  4945. {
  4946. label: "30万",
  4947. value: "300000",
  4948. },
  4949. {
  4950. label: "35万",
  4951. value: "350000",
  4952. },
  4953. {
  4954. label: "40万",
  4955. value: "400000",
  4956. },
  4957. {
  4958. label: "45万",
  4959. value: "450000",
  4960. },
  4961. {
  4962. label: "50万",
  4963. value: "500000",
  4964. },
  4965. ],
  4966. kindCode: "D4",
  4967. isMainRisk: true,
  4968. kindName: "乘客责任险",
  4969. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。",
  4970. },
  4971. {
  4972. amount: "0",
  4973. amountDesc: "不投保",
  4974. coveragePremium: 0,
  4975. amtList: [
  4976. {
  4977. label: "不投保",
  4978. value: "0",
  4979. },
  4980. {
  4981. label: "2千",
  4982. value: "2000",
  4983. },
  4984. {
  4985. label: "5千",
  4986. value: "5000",
  4987. },
  4988. {
  4989. label: "1万",
  4990. value: "10000",
  4991. },
  4992. {
  4993. label: "2万",
  4994. value: "20000",
  4995. },
  4996. ],
  4997. desc: "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
  4998. isMainRisk: false,
  4999. kindCode: "L",
  5000. kindName: "车身划痕险",
  5001. mainRiskCodeList: "A",
  5002. },
  5003. {
  5004. amount: "0",
  5005. amountDesc: "不投保",
  5006. coveragePremium: 0,
  5007. amtList: [
  5008. {
  5009. label: "不投保",
  5010. value: "0",
  5011. },
  5012. {
  5013. label: "5%",
  5014. value: "5",
  5015. },
  5016. {
  5017. label: "10%",
  5018. value: "10",
  5019. },
  5020. {
  5021. label: "15%",
  5022. value: "15",
  5023. },
  5024. {
  5025. label: "20%",
  5026. value: "20",
  5027. },
  5028. ],
  5029. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  5030. isMainRisk: false,
  5031. kindCode: "MJ1",
  5032. kindName: "绝对免赔率特约险(车损)",
  5033. mainRiskCodeList: "A",
  5034. },
  5035. {
  5036. amount: "0",
  5037. amountDesc: "不投保",
  5038. coveragePremium: 0,
  5039. amtList: [
  5040. {
  5041. label: "不投保",
  5042. value: "0",
  5043. },
  5044. {
  5045. label: "5%",
  5046. value: "5",
  5047. },
  5048. {
  5049. label: "10%",
  5050. value: "10",
  5051. },
  5052. {
  5053. label: "15%",
  5054. value: "15",
  5055. },
  5056. {
  5057. label: "20%",
  5058. value: "20",
  5059. },
  5060. ],
  5061. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  5062. isMainRisk: false,
  5063. kindCode: "MJ2",
  5064. kindName: "绝对免赔率特约险(三者)",
  5065. mainRiskCodeList: "B",
  5066. },
  5067. {
  5068. amount: "0",
  5069. amountDesc: "不投保",
  5070. coveragePremium: 0,
  5071. amtList: [
  5072. {
  5073. label: "不投保",
  5074. value: "0",
  5075. },
  5076. {
  5077. label: "5%",
  5078. value: "5",
  5079. },
  5080. {
  5081. label: "10%",
  5082. value: "10",
  5083. },
  5084. {
  5085. label: "15%",
  5086. value: "15",
  5087. },
  5088. {
  5089. label: "20%",
  5090. value: "20",
  5091. },
  5092. ],
  5093. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  5094. isMainRisk: false,
  5095. kindCode: "MJ3",
  5096. kindName: "绝对免赔率特约险(司机)",
  5097. mainRiskCodeList: "D3",
  5098. },
  5099. {
  5100. amount: "0",
  5101. amountDesc: "不投保",
  5102. coveragePremium: 0,
  5103. amtList: [
  5104. {
  5105. label: "不投保",
  5106. value: "0",
  5107. },
  5108. {
  5109. label: "5%",
  5110. value: "5",
  5111. },
  5112. {
  5113. label: "10%",
  5114. value: "10",
  5115. },
  5116. {
  5117. label: "15%",
  5118. value: "15",
  5119. },
  5120. {
  5121. label: "20%",
  5122. value: "20",
  5123. },
  5124. ],
  5125. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  5126. isMainRisk: false,
  5127. kindCode: "MJ4",
  5128. kindName: "绝对免赔率特约险(乘客)",
  5129. mainRiskCodeList: "D4",
  5130. },
  5131. {
  5132. amount: "0",
  5133. amountDesc: "不投保",
  5134. coveragePremium: 0,
  5135. amtList: [
  5136. {
  5137. label: "不投保",
  5138. value: "0",
  5139. },
  5140. {
  5141. label: "1万",
  5142. value: "10000",
  5143. },
  5144. {
  5145. label: "2万",
  5146. value: "20000",
  5147. },
  5148. {
  5149. label: "4万",
  5150. value: "40000",
  5151. },
  5152. {
  5153. label: "5万",
  5154. value: "50000",
  5155. },
  5156. {
  5157. label: "8万",
  5158. value: "80000",
  5159. },
  5160. {
  5161. label: "10万",
  5162. value: "100000",
  5163. },
  5164. {
  5165. label: "20万",
  5166. value: "200000",
  5167. },
  5168. {
  5169. label: "30万",
  5170. value: "300000",
  5171. },
  5172. {
  5173. label: "50万",
  5174. value: "500000",
  5175. },
  5176. {
  5177. label: "100万",
  5178. value: "1000000",
  5179. },
  5180. {
  5181. label: "200万",
  5182. value: "2000000",
  5183. },
  5184. {
  5185. label: "300万",
  5186. value: "3000000",
  5187. },
  5188. ],
  5189. kindCode: "SY_FJ_YBW1",
  5190. isMainRisk: true,
  5191. kindName: "附加医保-三者",
  5192. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)",
  5193. },
  5194. {
  5195. amount: "0",
  5196. amountDesc: "不投保",
  5197. coveragePremium: 0,
  5198. amtList: [
  5199. {
  5200. label: "不投保",
  5201. value: "0",
  5202. },
  5203. {
  5204. label: "1万",
  5205. value: "10000",
  5206. },
  5207. {
  5208. label: "2万",
  5209. value: "20000",
  5210. },
  5211. {
  5212. label: "5万",
  5213. value: "50000",
  5214. },
  5215. {
  5216. label: "10万",
  5217. value: "100000",
  5218. },
  5219. ],
  5220. kindCode: "SY_FJ_YBW2",
  5221. isMainRisk: true,
  5222. kindName: "附加医保-座位险(乘客)",
  5223. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)",
  5224. },
  5225. {
  5226. amount: "0",
  5227. amountDesc: "不投保",
  5228. coveragePremium: 0,
  5229. amtList: [
  5230. {
  5231. label: "不投保",
  5232. value: "0",
  5233. },
  5234. {
  5235. label: "1万",
  5236. value: "10000",
  5237. },
  5238. {
  5239. label: "2万",
  5240. value: "20000",
  5241. },
  5242. {
  5243. label: "5万",
  5244. value: "50000",
  5245. },
  5246. {
  5247. label: "10万",
  5248. value: "100000",
  5249. },
  5250. ],
  5251. kindCode: "SY_FJ_YBW3",
  5252. isMainRisk: true,
  5253. kindName: "附加医保-座位险(司机)",
  5254. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)",
  5255. },
  5256. {
  5257. amount: "0",
  5258. amountDesc: "不投保",
  5259. coveragePremium: 0,
  5260. amtList: [
  5261. {
  5262. label: "不投保",
  5263. value: "0",
  5264. },
  5265. {
  5266. label: "50万",
  5267. value: "500000",
  5268. },
  5269. {
  5270. label: "100万",
  5271. value: "1000000",
  5272. },
  5273. {
  5274. label: "150万",
  5275. value: "1500000",
  5276. },
  5277. {
  5278. label: "200万",
  5279. value: "2000000",
  5280. },
  5281. {
  5282. label: "250万",
  5283. value: "2500000",
  5284. },
  5285. {
  5286. label: "300万",
  5287. value: "3000000",
  5288. },
  5289. {
  5290. label: "500万",
  5291. value: "5000000",
  5292. },
  5293. {
  5294. label: "1000万",
  5295. value: "10000000",
  5296. },
  5297. ],
  5298. desc: "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
  5299. isMainRisk: false,
  5300. kindCode: "BD",
  5301. kindName: "法定节假日限额翻倍险",
  5302. mainRiskCodeList: "B",
  5303. },
  5304. {
  5305. amount: "0",
  5306. amountDesc: "不投保",
  5307. coveragePremium: 0,
  5308. amtList: [
  5309. {
  5310. label: "不投保",
  5311. value: "0",
  5312. },
  5313. {
  5314. label: "2次",
  5315. value: "2",
  5316. },
  5317. {
  5318. label: "7次",
  5319. value: "7",
  5320. },
  5321. {
  5322. label: "12次",
  5323. value: "12",
  5324. },
  5325. {
  5326. label: "17次",
  5327. value: "17",
  5328. },
  5329. {
  5330. label: "22次",
  5331. value: "22",
  5332. },
  5333. ],
  5334. desc: "道路救援服务特约条款",
  5335. isMainRisk: false,
  5336. kindCode: "TY1",
  5337. kindName: "道路救援服务特约条款",
  5338. },
  5339. {
  5340. amount: "0",
  5341. amountDesc: "不投保",
  5342. coveragePremium: 0,
  5343. desc: "车辆安全检测特约条款",
  5344. isMainRisk: false,
  5345. kindCode: "TY2",
  5346. kindName: "车辆安全检测特约条款",
  5347. },
  5348. {
  5349. amount: "0",
  5350. amountDesc: "不投保",
  5351. coveragePremium: 0,
  5352. desc: "代为驾驶服务特约条款",
  5353. isMainRisk: false,
  5354. kindCode: "TY3",
  5355. kindName: "代为驾驶服务特约条款",
  5356. },
  5357. {
  5358. amount: "0",
  5359. amountDesc: "不投保",
  5360. coveragePremium: 0,
  5361. desc: "代为送检服务特约条款",
  5362. isMainRisk: false,
  5363. kindCode: "TY4",
  5364. kindName: "代为送检服务特约条款",
  5365. },
  5366. ],
  5367. totalCompanyList: [], //报价保险公司
  5368. continuousCompanyList: [], //续保保险公司
  5369. quoteno: "", //报价号
  5370. orderno: "", //订单号
  5371. queryOrders: {
  5372. extendInfo: {},
  5373. carinfo: {},
  5374. ownerinfo: {},
  5375. applyinfo: {},
  5376. insureinfo: {},
  5377. }, //核保详情
  5378. inscompany: "", //保险公司名称
  5379. licenseNo: "", //车牌号
  5380. applyName: "", //车主名字
  5381. orderstatus: "", //订单状态
  5382. sumpremium: "", //保费合计
  5383. jqpremium: "", //交强
  5384. sypremium: "", //商业
  5385. jypremium: "", //驾意险
  5386. taxamount: "", //车船税
  5387. jqstartdate: "", //交强时间
  5388. systartdate: "", //商业时间
  5389. mobile: "", //投保人手机号
  5390. //影像回显列表
  5391. // 是否禁用上传
  5392. uploadDisabled: false,
  5393. href: "",
  5394. pageRequest: {
  5395. //归属查询
  5396. pageNum: 1,
  5397. pageSize: 20,
  5398. columnFilters: {
  5399. deptId: {
  5400. name: "deptId",
  5401. value: "9",
  5402. },
  5403. containsSubDept: {
  5404. name: "containsSubDept",
  5405. value: 1,
  5406. },
  5407. usertype: {
  5408. name: "usertype",
  5409. value: null,
  5410. },
  5411. status: {
  5412. name: "status",
  5413. value: "1",
  5414. },
  5415. id: {
  5416. name: "id",
  5417. value: "",
  5418. },
  5419. name: {
  5420. name: "name",
  5421. value: "",
  5422. },
  5423. mobile: {
  5424. name: "mobile",
  5425. value: "",
  5426. },
  5427. },
  5428. },
  5429. userform: {},
  5430. qrcode: null,
  5431. paycodeimg: "", //展示二维码
  5432. ImageUrldialogVisible: false,
  5433. paramsEdit: "",
  5434. companyId: "",
  5435. apiType: "",
  5436. insureMore: true,
  5437. // insureLength: 5,
  5438. HistoryList: [], //历史记录数据
  5439. image1: "",
  5440. image2: "",
  5441. historyRadio: "888",
  5442. sumseatCount: "", // 投保险种座位数
  5443. deptName: "",
  5444. isBottom: true,
  5445. logoImg: "", //报价单保险公司logo图
  5446. vehicleTypeoptions: [], //车辆种类
  5447. trafficManagementVehicleTypeoptions: [], //车辆类型
  5448. energyTypeoptions: [], //能源种类
  5449. taxRelifFlagoptions: [], //车船税类型
  5450. taxpayerIdentifieroptions: [], //纳税人证件类型
  5451. relifReasonoptions: [], //减免税原因代码
  5452. relifReasonoptions: [], //减免税原因代码
  5453. provinceSelect: [],
  5454. natureOfVehicleUseoptions: [],
  5455. businessVehicleUseoptions: [],
  5456. outOfBusinessVehicleUseoptions: [],
  5457. insOrderStatusoptions: [],
  5458. lastCompanyId: "",
  5459. apiInterfaceName: "generateOrder",
  5460. isLetter3Arr: [],
  5461. isLetter3agreementId: "",
  5462. editorInfo: {},
  5463. resultMessageImg:'',
  5464. tabLiIndex: 0,
  5465. tabLimenu: [
  5466. {
  5467. name: "车辆信息",
  5468. scroll: "vehicle",
  5469. },
  5470. {
  5471. name: "车主信息",
  5472. scroll: "owner",
  5473. },
  5474. {
  5475. name: "投保人信息",
  5476. scroll: "applicant",
  5477. },
  5478. {
  5479. name: "被保人信息",
  5480. scroll: "insured",
  5481. },
  5482. {
  5483. name: "关系证明",
  5484. scroll: "relationship",
  5485. },
  5486. {
  5487. name: "验车照",
  5488. scroll: "yanchezhao",
  5489. },
  5490. {
  5491. name: "上年商业险保单",
  5492. scroll: "snbaodan",
  5493. },
  5494. ],
  5495. ProViewImg: "", //预览图片
  5496. carfrontImg: "", //行驶证正面
  5497. carbackImg: "", //行驶证背面
  5498. userfrontImg: "", //身份证正面
  5499. userbackImg: "", //身份证背面
  5500. businessImg: "",
  5501. CarFrontFile: "", //车正面文件流
  5502. CarBackFile: "", //车背面文件流
  5503. C02File: "",
  5504. D02File: "",
  5505. C03File: "",
  5506. D03File: "",
  5507. C04File: "",
  5508. D04File: "",
  5509. //影像回显列表
  5510. imgList1: [],
  5511. imgList2: [],
  5512. imgList3: [],
  5513. imgList4: [],
  5514. imgList5: [],
  5515. imgList6: [],
  5516. imgList7: [],
  5517. imgList8: [],
  5518. imgList9: [],
  5519. imgList10: [],
  5520. imgList11: [],
  5521. imgList12: [],
  5522. imgList13: [],
  5523. imgList14: [],
  5524. imgList15: [],
  5525. imgList16: [],
  5526. imgList17: [],
  5527. imgList18: [],
  5528. imgList19: [],
  5529. imgList20: [],
  5530. imgList21: [],
  5531. imgList22: [],
  5532. imgList23: [],
  5533. imgList24: [],
  5534. //影像上传列表
  5535. imageList1: [],
  5536. imageList2: [],
  5537. imageList3: [],
  5538. imageList4: [],
  5539. imageList5: [],
  5540. imageList6: [],
  5541. showLoading: false,
  5542. detailJiaYiTitle: '查看详情',
  5543. oldData: {}, // 旧获取公司参数
  5544. };
  5545. },
  5546. watch: {
  5547. "carInfo.licenseNo": {
  5548. handler(val) {
  5549. if (val) {
  5550. this.carInfo.licenseNo = val.toUpperCase();
  5551. }
  5552. },
  5553. deep: true,
  5554. },
  5555. "carInfo.frameNo": {
  5556. handler(val) {
  5557. if (val) {
  5558. this.carInfo.frameNo = val.toUpperCase();
  5559. }
  5560. },
  5561. deep: true,
  5562. },
  5563. "carInfo.enginedesc": {
  5564. handler(val) {
  5565. if (val) {
  5566. this.carInfo.enginedesc = val.replace(/[A-Za-z]/g, "");
  5567. }
  5568. },
  5569. deep: true,
  5570. },
  5571. "ownerInfo.mobile": {
  5572. handler(val) {
  5573. if (val) {
  5574. this.ownerInfo.mobile = val.replace(/\s/g, "");
  5575. }
  5576. },
  5577. deep: true,
  5578. },
  5579. "policyHolderInfo.mobile": {
  5580. handler(val) {
  5581. if (val) {
  5582. this.policyHolderInfo.mobile = val.replace(/\s/g, "");
  5583. }
  5584. },
  5585. deep: true,
  5586. },
  5587. "insuredPersonInfo.mobile": {
  5588. handler(val) {
  5589. if (val) {
  5590. this.insuredPersonInfo.mobile = val.replace(/\s/g, "");
  5591. }
  5592. },
  5593. deep: true,
  5594. },
  5595. "carInfo.engineNo": {
  5596. handler(val) {
  5597. if (val) {
  5598. this.carInfo.engineNo = val.replace(/[^\w-]/gi, "").toUpperCase();
  5599. }
  5600. },
  5601. deep: true,
  5602. },
  5603. "carInfo.seatCount": {
  5604. handler(val) {
  5605. if (val) {
  5606. this.sumseatCount = val - 1;
  5607. }
  5608. },
  5609. deep: true,
  5610. },
  5611. "policyHolderInfo.identifyNumber": {
  5612. handler(val) {
  5613. if (val) {
  5614. this.vehicleAndVesselTaxForm.identifyNumber = val;
  5615. }
  5616. },
  5617. deep: true,
  5618. },
  5619. "policyHolderInfo.name": {
  5620. handler(val) {
  5621. if (val) {
  5622. this.vehicleAndVesselTaxForm.taxpayerName = val;
  5623. }
  5624. },
  5625. deep: true,
  5626. },
  5627. },
  5628. props: {
  5629. isdisabled: {
  5630. type: Boolean,
  5631. default: true,
  5632. },
  5633. isLetter: {
  5634. type: String,
  5635. default: "1",
  5636. },
  5637. },
  5638. components: {
  5639. detailsDialog,
  5640. quotationDialog,
  5641. quotationDialogPro,
  5642. imageDialog,
  5643. Ktletter1Popover,
  5644. floatingBar,
  5645. "el-image-viewer": () =>
  5646. import("element-ui/packages/image/src/image-viewer"),
  5647. },
  5648. created() {
  5649. if (this.isLetter == "2") {
  5650. this.apiInterfaceName = "ordergenerateOrder";
  5651. }
  5652. if(this.isLetter == "1"){
  5653. this.$api.user.sysMenuRecordAdd(2,1).then((res) => {
  5654. });
  5655. }
  5656. // this.commpanyList(); //获取保险公司
  5657. this.getDicType("taxRelifFlag"); //车船税类型
  5658. this.getDicType("taxpayerIdentifier"); //纳税人证件类型
  5659. this.getDicType("relifReason"); //减免税原因代码
  5660. this.getDicType("vehicleType"); //车辆种类
  5661. this.getDicType("trafficManagementVehicleType"); //车辆类型
  5662. this.getDicType("energyType"); //能源种类
  5663. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  5664. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  5665. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  5666. this.getDicType("insOrderStatus"); //状态
  5667. this.$api.letter.queryCompany().then((res) => {
  5668. this.continuousCompanyList = res.data;
  5669. });
  5670. this.$api.letter.packageQuery().then((res) => {
  5671. this.packageOptions = res.data;
  5672. });
  5673. localStorage.setItem("carInfo", JSON.stringify(this.carInfo));
  5674. localStorage.setItem("insureList", JSON.stringify(this.insureList));
  5675. //--归属信息获取--
  5676. if (this.isLetter == 1 || this.isLetter == 2) {
  5677. var userId = Cookies.get("user");
  5678. if (userId == "admin") {
  5679. this.userId = "admin";
  5680. } else {
  5681. // this.userId = userId;
  5682. this.$api.user.getLoginUser().then((res) => {
  5683. if (res.code == 200) {
  5684. this.userform = res.data;
  5685. this.$api.dept.getDeptById(res.data.deptId).then((res) => {
  5686. this.deptName = res.data.name;
  5687. });
  5688. this.userId = res.data.id;
  5689. }
  5690. });
  5691. }
  5692. }
  5693. //--订单编辑回显--
  5694. // this.paramsEdit = this.$route.query.data; //接收参数
  5695. // this.obtainProtocol(this.$route.query.data);
  5696. this.getProductId() // 获取险别
  5697. // this.editingWay(this.$route.query.data)
  5698. if (this.$route.query.data) {
  5699. this.editingWay(this.$route.query.data)
  5700. }
  5701. },
  5702. mounted() {
  5703. this.getCompanyList(this.$route.query.data)
  5704. this.onScroll();
  5705. if (this.$route.query.data) {
  5706. if(this.isDateBeforeToday(this.$route.query.data.jqstartdate)){
  5707. this.jqstartDate = this.transformTime1();
  5708. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  5709. }else{
  5710. this.jqstartDate = this.$route.query.data.jqstartdate;
  5711. this.jqendDate = this.$route.query.data.jqenddate;
  5712. }
  5713. if (this.$route.query.data.jqstartdate.split(" ")[1] == "00:00:00") {
  5714. this.immediatelyValue = false;
  5715. } else {
  5716. this.immediatelyValue = true;
  5717. }
  5718. }
  5719. window.addEventListener("scroll", this.onScroll);
  5720. },
  5721. destroyed() {
  5722. window.removeEventListener("scroll", this.onScroll);
  5723. },
  5724. beforeCreate() {
  5725. _self = this;
  5726. },
  5727. computed: {
  5728. ...mapState({
  5729. collapse: (state) => state.app.collapse,
  5730. }),
  5731. issueDateOptions() {
  5732. return {
  5733. disabledDate: this.disabledDate,
  5734. };
  5735. },
  5736. },
  5737. filters: {
  5738. cap(ele) {
  5739. return _self.insOrderStatusoptions.find((item) => {
  5740. return item.dictValue === ele;
  5741. }).dictTag;
  5742. },
  5743. },
  5744. methods: {
  5745. deleteJiaYi(reslistindex, drivingIndex) {
  5746. this.totalCompanyList[reslistindex].programme.drivingList.splice(drivingIndex, 1)
  5747. this.$forceUpdate()
  5748. },
  5749. toWan(num, type) {
  5750. if (type == 'fw') {
  5751. return num + '次'
  5752. }
  5753. if (num > 10000) {
  5754. if (num % 10000 == 0) {
  5755. return (num / 10000) + '万'
  5756. } else {
  5757. return (num / 10000).toFixed(4) + '万'
  5758. }
  5759. } else {
  5760. return num
  5761. }
  5762. },
  5763. // 获取新公司列表
  5764. getCompanyList(data) {
  5765. var _this = this;
  5766. if (!this.productId) {
  5767. this.$message.warning('请选择险种')
  5768. return
  5769. }
  5770. let starttime = new Date(this.carInfo.registerDate);
  5771. let endtime = new Date(this.carInfo.issueDate);
  5772. if (endtime < starttime) {
  5773. this.$message({ message: "发证日期早于初登日期", type: "error" });
  5774. return;
  5775. }
  5776. this.policyHolderInfovalidate()
  5777. console.log(this.policyHolderInfo, 'policyHolderInfo')
  5778. this.$refs["carInfo"].validate((valid) => {
  5779. if (valid) {
  5780. _this.$refs["ownerInfo"].validate(async (valid1) => {
  5781. if (valid1) {
  5782. if (!this.bbczcarShow && !this.bbtbcarShow) {
  5783. this.$refs["insuredPersonInfo"].validate((valid2) => {
  5784. if (!valid2) {
  5785. document.getElementById("toubaor").scrollIntoView();
  5786. this.$message({ message: "请检查被投保人信息", type: "warning" });
  5787. return
  5788. }
  5789. });
  5790. }
  5791. if (!_this.productId) {
  5792. _this.$message.warning('请选择险别')
  5793. return
  5794. }
  5795. let res = {};
  5796. let param = {
  5797. productId: this.productId,
  5798. carInfo: this.carInfo,
  5799. ownerInfo: this.ownerInfo,
  5800. applyInfo: this.policyHolderInfo,
  5801. insureInfo: this.insuredPersonInfo,
  5802. userId:this.isLetter==2? this.userId:""
  5803. }
  5804. if (JSON.stringify(param) === this.oldData) {
  5805. return
  5806. } else {
  5807. this.oldData = JSON.stringify(param)
  5808. }
  5809. console.log('校验成功,获取列表')
  5810. this.showLoading = true
  5811. // this.$api.letter.getAllAgreement().then((res) => {
  5812. this.$api.letter.ruleFilterCompany(param).then((res) => {
  5813. if (res.code == 200) {
  5814. res.data.map((ele) => {
  5815. ele["result"] = {};
  5816. ele["quoteCode"] = 0;
  5817. ele["checked"] = false;
  5818. ele["msg"] = "";
  5819. ele["lastYearMsg"] = "";
  5820. ele["agreementId"] = "";
  5821. ele["apiType"] = "";
  5822. ele["orderstatus"] = 0;
  5823. ele.coefficient = "";
  5824. ele.underwritingDescription =
  5825. ele.agreement[0].underwritingDescription;
  5826. if (ele.isTaxSource && ele.isTaxSource == "1" && ele.agreement) {
  5827. ele.agreement.forEach((val) => {
  5828. if (val.isTaxSource && val.isTaxSource == "1") {
  5829. ele.agreementId = val.id;
  5830. ele.apiType = val.apiType;
  5831. }
  5832. });
  5833. }
  5834. });
  5835. if (this.$route.query.data) {
  5836. data = data || this.$route.query.data
  5837. }
  5838. if (data) {
  5839. this.productId = this.productId || data.productid
  5840. res.data.forEach((val, index) => {
  5841. if(!data.insAreaCompanyEditingDtos) {
  5842. return
  5843. }
  5844. data.insAreaCompanyEditingDtos.forEach((ele) => {
  5845. if (val.namesimple == ele.inscompany) {
  5846. if (ele.inscompany == "中国人寿" && ele.companyId) {
  5847. this.lastCompanyId = ele.companyId;
  5848. }
  5849. res.data[index].quoteCode = 200;
  5850. res.data[index].result = ele;
  5851. }
  5852. });
  5853. });
  5854. }
  5855. // //险种合并集合
  5856. } else {
  5857. this.$message.error(res.msg)
  5858. }
  5859. const combinedArray = [
  5860. ...this.riskList.map(item => item.riskCode),
  5861. ...this.kindList.map(item => item.kindCode),
  5862. ];
  5863. if (res.data) {
  5864. res.data = res.data.filter(obj => {
  5865. obj.agreement = obj.agreement.filter(agreementObj => {
  5866. // 险种配置为空,则过滤掉该协议
  5867. if (agreementObj.productsCodes == null) {
  5868. return true;
  5869. } else {
  5870. // 检查是否包含 A 的特殊处理
  5871. if (combinedArray.includes('A') && !agreementObj.productsCodes.includes(
  5872. 'A')) {
  5873. return false;
  5874. }
  5875. return agreementObj.productsCodes.some(item => combinedArray.includes(
  5876. item));
  5877. }
  5878. });
  5879. return obj.agreement.length > 0; // 返回true保留,返回false移除该保险公司
  5880. });
  5881. res.data.forEach((e) => {
  5882. if (e.agreement) {
  5883. e.agreement.forEach((el) => (el.disabled = false));
  5884. }
  5885. });
  5886. }
  5887. this.totalCompanyList = res.data;
  5888. this.showLoading = false
  5889. })
  5890. } else {
  5891. document.getElementById("CheZhu").scrollIntoView();
  5892. _this.$message({ message: "请检查人员信息", type: "warning" });
  5893. }
  5894. });
  5895. } else {
  5896. document.getElementById("Car").scrollIntoView();
  5897. this.$message({ message: "请检查车辆信息", type: "warning" });
  5898. return false;
  5899. }
  5900. });
  5901. },
  5902. // 保费计算(报价)按钮
  5903. handleListJisuan(item, index) {
  5904. this.quote(index)
  5905. },
  5906. // 修改险别
  5907. productIdChange() {
  5908. if (this.productId != '0330') {
  5909. this.sychecked = true
  5910. this.sycheckedChange(true)
  5911. } else {
  5912. this.sychecked = false
  5913. this.sycheckedChange(false)
  5914. }
  5915. if (this.productId == '034001' || this.productId == '034002') {
  5916. this.jqchecked = false
  5917. this.jqcheckedChange(false)
  5918. } else {
  5919. this.jqchecked = true
  5920. this.jqcheckedChange(true)
  5921. }
  5922. this.getCompanyList()
  5923. this.totalCompanyList.forEach((val) => {
  5924. val.checked = false
  5925. })
  5926. },
  5927. // 选择方案
  5928. checkedPopover(reslistindex, index, item) {
  5929. console.log(reslistindex, index, item, 'reslistindex, index, item')
  5930. if (index == 99) {
  5931. console.log(this.totalCompanyList[reslistindex].programme99,this.totalCompanyList[reslistindex].programme99.schemeId, 'this.totalCompanyList[reslistindex].programme99')
  5932. if (this.totalCompanyList[reslistindex].programme99 && !this.totalCompanyList[reslistindex].programme99.schemeId) {
  5933. return
  5934. }
  5935. if (!this.totalCompanyList[reslistindex].zxProgramme) {
  5936. this.totalCompanyList[reslistindex].zxProgramme = { // 自选方案详情
  5937. description: '',
  5938. drivingList: [],
  5939. jqx: {
  5940. name: '交通事故强制责任险'
  5941. },
  5942. kinds: {
  5943. additional: [],
  5944. main: [],
  5945. service: []
  5946. },
  5947. }
  5948. }
  5949. this.typeDialogIndex = reslistindex // 当前的公司index
  5950. this.totalCompanyList[reslistindex].programme = this.totalCompanyList[reslistindex].zxProgramme // 选中的自定义方案详情
  5951. } else {
  5952. this.totalCompanyList[reslistindex].programme = item // 选中的方案详情
  5953. }
  5954. this.totalCompanyList[reslistindex].checkedProgramme = index // 选中的方案
  5955. this.productList.forEach((val) => {
  5956. if (val.code == this.productId) {
  5957. this.totalCompanyList[reslistindex].programme.description = val.desc
  5958. }
  5959. })
  5960. console.log('当前选中方案', this.totalCompanyList[reslistindex].programme)
  5961. this.$forceUpdate()
  5962. },
  5963. // 获取方案信息
  5964. getCompanyProgramme(e, code, name, index) {
  5965. this.totalCompanyList[index].checked = false
  5966. this.$api.letter.getAllSchemeList({
  5967. companyId: code,
  5968. productId: this.productId,
  5969. seatNum: this.carInfo.seatCount,
  5970. vehicleType: this.carInfo.cimodelclass,
  5971. energyType: this.carInfo.energyType,
  5972. carnature: this.carInfo.carnature
  5973. }).then((res) => {
  5974. if (res.code == 200) {
  5975. this.totalCompanyList[index].schemes = res.data.schemes
  5976. this.totalCompanyList[index].programme99 = res.data.optionalScheme || {kinds: [],} // 获取自选方案弹窗信息
  5977. if (res.data.schemes[0]) {
  5978. this.checkedPopover(index, 0, res.data.schemes[0])
  5979. } else {
  5980. this.checkedPopover(index, 99)
  5981. }
  5982. this.totalCompanyList[index].checked = true
  5983. }
  5984. })
  5985. },
  5986. // 获取险别
  5987. getProductId() {
  5988. // /plt/scheme/getProductInfo
  5989. this.$api.letter.getProductInfo().then((res) => {
  5990. this.productList = res.data
  5991. })
  5992. },
  5993. // 选择特约
  5994. handleCloseTeYue() {
  5995. this.showTeYueVisible = false
  5996. },
  5997. checkTeYue(item) {
  5998. this.showTeYueVisible = true
  5999. },
  6000. // 驾意险详情
  6001. handleCloseShowDetailJiaYi() {
  6002. this.showDetailJiaYiVisible = false
  6003. this.showDetailJiaYiVisible1 = false
  6004. this.showDetailtable = []
  6005. this.typeDialogData = {}
  6006. },
  6007. // 确认驾意
  6008. handleAddYiWai() {
  6009. let arr = []
  6010. console.log(this.checkList,"驾意险")
  6011. this.checkList.forEach((val) => {
  6012. if (this.totalCompanyList[this.typeDialogIndex].cnName == 'zijin') {
  6013. if(val.tableData ) arr.push(...val.tableData)
  6014. // } else if (this.totalCompanyList[this.typeDialogIndex].cnName == 'guoRen' || this.totalCompanyList[this.typeDialogIndex].cnName == 'ansheng') {
  6015. // arr.push({...val.tableData, select: val.select})
  6016. } else {
  6017. if(val.tableData ) arr.push(val.tableData)
  6018. }
  6019. })
  6020. this.totalCompanyList[this.typeDialogIndex].zxProgramme.drivingList = arr;
  6021. this.totalCompanyList[this.typeDialogIndex].programme.drivingList = arr
  6022. console.log(arr, 'arr')
  6023. this.handleCloseAddYiwai()
  6024. },
  6025. // 驾意输入框按钮
  6026. numberChange(listIndex, index, type,minquantity, dataIndex) {
  6027. if (dataIndex >= 0) {
  6028. if (type == 'plus') {
  6029. if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData[dataIndex].quantity < 10) {
  6030. this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData[dataIndex].quantity += 1
  6031. }
  6032. } else {
  6033. if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData[dataIndex].quantity > minquantity) {
  6034. this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData[dataIndex].quantity -= 1
  6035. }
  6036. }
  6037. } else {
  6038. if (type == 'plus') {
  6039. if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity < 10) {
  6040. this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity += 1
  6041. }
  6042. } else {
  6043. if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity > minquantity) {
  6044. this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity -= 1
  6045. }
  6046. }
  6047. }
  6048. this.$forceUpdate()
  6049. },
  6050. // 选中驾意一层
  6051. handleChangeSelectGuoren(index) {
  6052. this.checkList[index].tableData1 = undefined
  6053. this.checkList[index].detail.forEach((val) => {
  6054. if (val.projectName == this.checkList[index].select) {
  6055. this.checkList[index].tableData1 = val.insDrivingIntentionInsurances
  6056. }
  6057. })
  6058. },
  6059. // 选中驾意
  6060. handleChangeSelect(index) {
  6061. if (this.totalCompanyList[this.typeDialogIndex].cnName == 'zijin') {
  6062. this.checkList[index].tableData = []
  6063. this.checkList[index].detail.forEach((val) => {
  6064. this.checkList[index].selectList.forEach((value) => {
  6065. if (val.alias == value) {
  6066. this.checkList[index].tableData.push(val)
  6067. this.$forceUpdate()
  6068. }
  6069. })
  6070. })
  6071. // } else if (this.totalCompanyList[this.typeDialogIndex].cnName == 'guoRen' || this.totalCompanyList[this.typeDialogIndex].cnName == 'ansheng' || this.totalCompanyList[this.typeDialogIndex].cnName == 'ansheng') {
  6072. // this.checkList[index].tableData1.forEach((val) => {
  6073. // if (val.projectName == this.checkList[index].select1) {
  6074. // this.checkList[index].tableData = val
  6075. // }
  6076. // })
  6077. } else {
  6078. this.checkList[index].detail.forEach((val) => {
  6079. val.quantity=val.minQuantity?val.minQuantity:val.quantity;
  6080. if (val.alias == this.checkList[index].select) {
  6081. this.checkList[index].tableData = val
  6082. }
  6083. })
  6084. }
  6085. },
  6086. handleChangeJiayi(listItem, listIndex) {
  6087. console.log(listItem, listIndex, this.jiayiDialogData, 'listItem, listIndex')
  6088. if (this.checkList.length) {
  6089. this.checkList.forEach((val) => {
  6090. this.$api.letter.getDriving({
  6091. schemeId: this.jiayiDialogData.schemeId,
  6092. seatNum: this.carInfo.seatCount
  6093. // companyId: this.totalCompanyList[this.typeDialogIndex].id,
  6094. // type: val.id,
  6095. // productId: this.productId,
  6096. // vehicleType: this.carInfo.cimodelclass,
  6097. // energyType: this.carInfo.energyType,
  6098. // carnature: this.carInfo.carnature
  6099. }).then((res) => {
  6100. if (res.code == 200) {
  6101. val.detail = res.data
  6102. this.$forceUpdate()
  6103. }
  6104. })
  6105. })
  6106. }
  6107. },
  6108. showDetailJiaYi(item, index, type) {
  6109. this.showDetailtable = []
  6110. item.programme.drivingList.forEach((val) => {
  6111. this.$api.letter.getDrivingSon({
  6112. companyId: this.totalCompanyList[index].id,
  6113. projectCode: val.projectCode
  6114. }).then((res) => {
  6115. if (res.code == 200) {
  6116. this.showDetailtable.push(res.data)
  6117. }
  6118. })
  6119. })
  6120. if (type) {
  6121. this.detailJiaYiTitle = '驾意险详情'
  6122. this.showDetailJiaYiVisible1 = true
  6123. } else {
  6124. this.detailJiaYiTitle = '查看详情'
  6125. this.showDetailJiaYiVisible = true
  6126. }
  6127. this.typeDialogData = item.programme
  6128. this.typeDialogData.shangyeList = [...item.programme.kinds.main,
  6129. ...item.programme.kinds.additional,
  6130. ...item.programme.kinds.service
  6131. ]
  6132. },
  6133. // 添加驾意险
  6134. addJiaYi(item) {
  6135. this.jiayiDialogData = item.programme99
  6136. this.addYiwaiDialogVisible = true
  6137. },
  6138. handleCloseAddYiwai() {
  6139. this.jiayiDialogData = {}
  6140. this.checkList = []
  6141. this.addYiwaiDialogVisible = false
  6142. },
  6143. // 调整险种
  6144. // 确定险种
  6145. subTypeDialog() {
  6146. // this.totalCompanyList[this.typeDialogIndex].zxProgramme = {}
  6147. // this.totalCompanyList[reslistindex].zxProgramme
  6148. let main = []
  6149. let additional = []
  6150. let service = []
  6151. this.typeDialogData.kinds.forEach((val, index) => {
  6152. if (val.checked) {
  6153. if (val.grouping == 'main') {
  6154. main.push(val)
  6155. }
  6156. if (val.grouping == 'additional') {
  6157. additional.push(val)
  6158. }
  6159. if (val.grouping == 'service') {
  6160. service.push(val)
  6161. }
  6162. }
  6163. })
  6164. this.totalCompanyList[this.typeDialogIndex].zxProgramme.kinds = {main, additional, service}
  6165. this.totalCompanyList[this.typeDialogIndex].programme.kinds = {main, additional, service}
  6166. this.handleAddYiWai()
  6167. this.handleCloseType()
  6168. },
  6169. showTypeDialog(item, index) {
  6170. item.programme99.kinds.map(item=>{
  6171. const itemamtList=item.amtList.map(val=>{return val.label})
  6172. if(!itemamtList.includes('不投保')){
  6173. item.checked=true;
  6174. item.Required=true;
  6175. item.amount=item.amtList[0].value;
  6176. }
  6177. return item;
  6178. })
  6179. this.typeDialogData = item.programme99
  6180. this.jiayiDialogData = item.programme99
  6181. this.typeDialogVisible = true
  6182. },
  6183. handleCloseType() {
  6184. this.typeDialogVisible = false
  6185. this.typeDialogData = []
  6186. this.jiayiDialogData = {}
  6187. this.checkList = []
  6188. },
  6189. //清空保单图片
  6190. removePhoto(file, fileList, type) {
  6191. this.policyNumberForm[type] = []
  6192. },
  6193. editingWay(paramsEdit) {
  6194. if (paramsEdit) {
  6195. var _this = this;
  6196. this.jqchecked = false;
  6197. this.tbczcarShow = false;
  6198. this.bbtbcarShow = false;
  6199. this.bbczcarShow = false;
  6200. const { carinfo, ownerinfo, applyinfo, insureinfo, quoteno, orderno } =
  6201. paramsEdit;
  6202. this.editorInfo = { ...paramsEdit };
  6203. // this.vehicleAndVesselTaxForm = { ...paramsEdit.vehicleAndVesselTax };
  6204. _this.carInfo = carinfo;
  6205. if (_this.carInfo.carnature == "8A") {
  6206. _this.carInfo.carnature = "02";
  6207. _this.carInfo.vehicleUse = "05";
  6208. } else {
  6209. _this.carInfo.carnature;
  6210. _this.carInfo.vehicleUse;
  6211. }
  6212. _this.ownerInfo = ownerinfo;
  6213. _this.policyHolderInfo = applyinfo;
  6214. _this.insuredPersonInfo = insureinfo;
  6215. _this.quoteno = quoteno;
  6216. _this.orderno = orderno;
  6217. _this.productId = paramsEdit.productid
  6218. _this.tbczcarShow = applyinfo.owner;
  6219. _this.bbczcarShow = insureinfo.owner;
  6220. _this.kindList = paramsEdit.king;
  6221. _this.bbtbcarShow = insureinfo.insuranceHolder;
  6222. _this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber);
  6223. _this.policyHolderInfo.age = getAgeByIdCard(
  6224. _this.policyHolderInfo.identifyNumber
  6225. );
  6226. _this.insuredPersonInfo.age = getAgeByIdCard(
  6227. _this.insuredPersonInfo.identifyNumber
  6228. );
  6229. if (paramsEdit.carinfo.transferFlag) {
  6230. this.transferDateShow = true;
  6231. }
  6232. paramsEdit.risk.map((ele) => {
  6233. if (ele.riskCode == "0507") {
  6234. _this.jqchecked = true;
  6235. this.protocolJudge("0507", true);
  6236. _this.riskList.push({
  6237. riskCode: "0507",
  6238. });
  6239. // _this.jqstartDate = ele.startDate;
  6240. // _this.jqendDate = ele.endDate;
  6241. // this.jqstartDate = this.$route.query.data.jqstartdate
  6242. // this.jqendDate = this.$route.query.data.jqenddate
  6243. _this.jqstartDate = this.transformTime1();
  6244. _this.jqendDate = this.oneYearPast1(this.jqstartDate);
  6245. } else if (ele.riskCode == "0510") {
  6246. _this.sychecked = true;
  6247. this.protocolJudge("0510", true);
  6248. _this.riskList.push({
  6249. riskCode: "0510",
  6250. });
  6251. // _this.systartDate = ele.startDate;
  6252. // _this.syendDate = ele.endDate;
  6253. if (new Date(ele.startDate).getTime() > new Date().getTime()) {
  6254. _this.systartDate = ele.startDate;
  6255. _this.syendDate = ele.endDate;
  6256. } else {
  6257. _this.systartDate = this.transformTime1();
  6258. _this.syendDate = this.oneYearPast1(this.systartDate);
  6259. }
  6260. _this.insureList.map((eleA) => {
  6261. paramsEdit.king.map((eleB) => {
  6262. if (eleA.kindCode == eleB.kindCode) {
  6263. switch (eleB.kindCode) {
  6264. case "D4":
  6265. case "SY_FJ_YBW2":
  6266. eleA.amount = JSON.stringify(eleB.unitAmount);
  6267. break;
  6268. case "MJ1":
  6269. case "MJ2":
  6270. case "MJ3":
  6271. case "MJ4":
  6272. eleA.amount = eleB.deductibleRate;
  6273. case "A":
  6274. eleA.amount = JSON.stringify(eleB.amount);
  6275. this.protocolJudge("A", true);
  6276. break;
  6277. default:
  6278. eleA.amount = JSON.stringify(eleB.amount);
  6279. }
  6280. }
  6281. });
  6282. });
  6283. }
  6284. });
  6285. // this.HistoryList = this.paramsEdit.insAreaCompanyList;
  6286. let params = {
  6287. orderNo: paramsEdit.orderno,
  6288. orderStatus: "",
  6289. };
  6290. this.$api.letter.queryQuoteHistory(params).then((res) => {
  6291. res.data.forEach((item) => {
  6292. if (item.accidentInfo) {
  6293. item.accidentInfo.constructor === Object
  6294. ? [item.accidentInfo]
  6295. : item.accidentInfo;
  6296. }
  6297. });
  6298. this.HistoryList = res.data;
  6299. });
  6300. //--获取影像信息--
  6301. _this.imageEcho(this.quoteno);
  6302. // this.$refs.imageDialog.imageEcho(this.quoteno)
  6303. // this.commpanyList()
  6304. //--显示影像按钮--
  6305. _this.imageUploadShow = true;
  6306. this.$forceUpdate()
  6307. _this.obtainProtocol(paramsEdit);
  6308. } else {
  6309. this.jqstartDate = this.transformTime1();
  6310. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  6311. this.systartDate = this.transformTime1();
  6312. this.syendDate = this.oneYearPast1(this.systartDate);
  6313. }
  6314. },
  6315. handleRemove1(file, imageIdList, imgList) {
  6316. this[imageIdList].map((ele, index) => {
  6317. if (file.imageId === ele.imageId) {
  6318. this[imageIdList].splice(index, 1);
  6319. }
  6320. return ele;
  6321. });
  6322. if (file.imageId) {
  6323. this[imgList].map((ele, index) => {
  6324. if (file.imageId === ele.imageId) {
  6325. this[imgList].splice(index, 1);
  6326. }
  6327. return ele;
  6328. });
  6329. } else {
  6330. this[imgList].map((ele, index) => {
  6331. if (file.uid === ele.uid) {
  6332. this[imgList].splice(index, 1);
  6333. }
  6334. return ele;
  6335. });
  6336. }
  6337. },
  6338. uploadinformation() {
  6339. // //上传图片
  6340. const mergedArray = [
  6341. ...this.imageList1,
  6342. ...this.imageList2,
  6343. ...this.imageList3,
  6344. ...this.imageList4,
  6345. ...this.imageList5,
  6346. ...this.imageList6,
  6347. ];
  6348. let imageparam = {
  6349. imageList: mergedArray,
  6350. quoteNo: this.quoteno,
  6351. };
  6352. this.$api.letter.uploadImages(imageparam).then((responses) => {
  6353. if (responses.code == "200") {
  6354. this.imageEcho(this.quoteno);
  6355. this.$message({ message: responses.msg, type: "success" });
  6356. } else {
  6357. this.$message({ message: responses.msg, type: "error" });
  6358. }
  6359. });
  6360. this.imageUploaddialogVisible = false;
  6361. },
  6362. repairinformation() {
  6363. // //上传图片
  6364. const mergedArray = [
  6365. ...this.imageList1,
  6366. ...this.imageList2,
  6367. ...this.imageList3,
  6368. ...this.imageList4,
  6369. ...this.imageList5,
  6370. ...this.imageList6,
  6371. ];
  6372. let imageparam = {
  6373. imageList: mergedArray,
  6374. companyId: this.companyId,
  6375. };
  6376. this.$api.letter.additionalInformation(imageparam).then((responses) => {
  6377. if (responses.code == "200") {
  6378. this.imageUploaddialogVisible = false;
  6379. this.$message({ message: responses.msg, type: "success" });
  6380. } else {
  6381. this.$message({ message: responses.msg, type: "error" });
  6382. }
  6383. });
  6384. },
  6385. //手机号复制粘贴处理
  6386. handlePaste(e, mobileKey) {
  6387. e.preventDefault(); //阻止默认行为
  6388. const clipboardData = e.clipboardData || window.clipboardData; //获取剪切板内容
  6389. let pastedText = clipboardData.getData("text").replace(/\s+/g, ""); //获取纯文本并处理空格
  6390. // 截取前11个字符,以确保不会超过手机号长度限制
  6391. pastedText = pastedText.substring(0, 11);
  6392. // 使用Vue.nextTick确保更新发生在DOM更新之后
  6393. this.$nextTick(() => {
  6394. this[mobileKey].mobile = pastedText;
  6395. });
  6396. },
  6397. // licenseNoFun(data){
  6398. // if(data && this.carInfo.enginedesc){
  6399. // this.obtainProtocol()
  6400. // }
  6401. // },
  6402. // enginedescFun(data){
  6403. // if(data && this.carInfo.licenseNo){
  6404. // this.obtainProtocol()
  6405. // }
  6406. // },
  6407. packageChange(val) {
  6408. let arr = this.packageOptions.find((ele) => ele.id == val).kind;
  6409. if (arr.length > 0) {
  6410. this.insureList.map((eleA) => {
  6411. arr.map((eleB) => {
  6412. if (eleA.kindCode == eleB.kindCode) {
  6413. switch (eleB.kindCode) {
  6414. case "D4":
  6415. case "SY_FJ_YBW2":
  6416. eleA.amount = JSON.stringify(eleB.unitAmount);
  6417. break;
  6418. case "MJ1":
  6419. case "MJ2":
  6420. case "MJ3":
  6421. case "MJ4":
  6422. eleA.amount = eleB.deductibleRate;
  6423. break;
  6424. case "TY2":
  6425. case "TY3":
  6426. case "TY4":
  6427. eleA.amount = eleB.serviceTimes;
  6428. break;
  6429. default:
  6430. eleA.amount = JSON.stringify(eleB.amount);
  6431. }
  6432. }
  6433. });
  6434. });
  6435. } else {
  6436. this.insureList.map((eleA) => {
  6437. eleA.amount = "0";
  6438. });
  6439. }
  6440. },
  6441. capType(val) {
  6442. if (val == "0") {
  6443. return "success";
  6444. }
  6445. if (val == "1") {
  6446. return "warning";
  6447. }
  6448. if (val == "2" || val == "3" || val == "4") {
  6449. return "danger";
  6450. }
  6451. },
  6452. handleCheckAllChange(ele) {
  6453. this.totalCompanyList.forEach((val, index) => {
  6454. ele ? (val.checked = true) : (val.checked = false);
  6455. // this.initchange(ele, val.id, val.cnName, index);
  6456. });
  6457. },
  6458. retractFun() {
  6459. this.isRetract = this.isRetract == false ? true : false;
  6460. },
  6461. //中煤意外险调整份数事件
  6462. ZMhandleChange(val) {
  6463. if (!val) {
  6464. this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  6465. }
  6466. },
  6467. //中煤意外险选中对应意外险方案
  6468. // ZMHandleSelectionChange(val) {
  6469. // // if(val.length > 0&& val[0].quantity==undefined){
  6470. // // this.$message({ message: "请先填写投保份数再勾选!", type: "error", });
  6471. // // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  6472. // // return false;
  6473. // // }
  6474. // if (val.length > 1) {
  6475. // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
  6476. // this.$refs.ZmMultipleTable[0].toggleRowSelection(val.pop()); //pop:最后一个
  6477. // } else {
  6478. // this.zhongmeiaccidentalDrivingVo = val[0]; //multipleSelection:当前选择的数组
  6479. // }
  6480. // },
  6481. //中煤意外险选中对应产品带出方案明细
  6482. zhongmeiInsuranceChange(index) {
  6483. //每次选中产品,清空之前选中的数据
  6484. this.zhongmeitemplateSelection = index;
  6485. this.zhongmeiaccidentalDrivingVo = {};
  6486. this.zhongmeiInsuranceDataTable = [];
  6487. let data = this.zhongmeiInsuranceData.find(
  6488. (val) => val.projectCode == index
  6489. );
  6490. //把返回的方案明细放入展示数据对象中
  6491. this.accidentFormZM = Object.assign(this.accidentFormZM, data);
  6492. this.accidentFormZM.quantity = "1";
  6493. if (data && data.son) {
  6494. this.accidentPremiumZM = data.sumPremium;
  6495. this.zhongmeiInsuranceDataTable = data.son;
  6496. }
  6497. },
  6498. // 截图粘贴
  6499. copybjd() {
  6500. let that = this;
  6501. html2Canvas(document.getElementById("pdfContentsDiv"), {
  6502. allowTaint: true,
  6503. taintTest: false,
  6504. }).then(function (canvas) {
  6505. let base64Data = "";
  6506. // let blob = null
  6507. base64Data = canvas.toDataURL("image/png", 1);
  6508. const date = new Date();
  6509. const saveInfo = {
  6510. download: date.getTime() + `.png`,
  6511. href: base64Data,
  6512. };
  6513. const element = document.createElement("a");
  6514. element.style.display = "none";
  6515. for (const key in saveInfo) {
  6516. element.setAttribute(key, saveInfo[key]);
  6517. }
  6518. document.body.appendChild(element);
  6519. element.click();
  6520. setTimeout(() => {
  6521. document.body.removeChild(element);
  6522. }, 300);
  6523. // var format = 'image/png'
  6524. // //将Base64图片编码转换成blob
  6525. // var base64 = base64Data
  6526. // var code = window.atob(base64.split(',')[1])
  6527. // var aBuffer = new window.ArrayBuffer(code.length)
  6528. // var uBuffer = new window.Uint8Array(aBuffer)
  6529. // for (var i = 0; i < code.length; i++) {
  6530. // uBuffer[i] = code.charCodeAt(i) & 0xff
  6531. // }
  6532. // try {
  6533. // blob = new Blob([uBuffer], { type: format })
  6534. // } catch (e) {
  6535. // window.BlobBuilder =
  6536. // window.BlobBuilder ||
  6537. // window.WebKitBlobBuilder ||
  6538. // window.MozBlobBuilder ||
  6539. // window.MSBlobBuilder
  6540. // if (e.name == 'TypeError' && window.BlobBuilder) {
  6541. // var bb = new window.BlobBuilder()
  6542. // bb.append(uBuffer.buffer)
  6543. // blob = bb.getBlob('image/png')
  6544. // } else if (e.name == 'InvalidStateError') {
  6545. // blob = new Blob([aBuffer], { type: format })
  6546. // }
  6547. // }
  6548. // const clipboardItemInput = new ClipboardItem({
  6549. // 'image/png': blob,
  6550. // })
  6551. // that.$copyText({
  6552. // 'image/png': blob,
  6553. // }).then(
  6554. //   function(e) {
  6555. //     console.log("copy arguments e:", e);
  6556. //     alert("复制成功!");
  6557. //   },
  6558. //   function(e) {
  6559. //     console.log("copy arguments e:", e);
  6560. //     alert("复制失败!");
  6561. //   }
  6562. //   ),
  6563. // navigator.clipboard.write([clipboardItemInput])
  6564. // that.$message({
  6565. // message: '已截图并复制到粘贴板!',
  6566. // type: 'success'
  6567. // });
  6568. });
  6569. },
  6570. // 即时起保
  6571. immediatelyChange(e) {
  6572. if (e) {
  6573. this.immediatelyValue = true;
  6574. const date = new Date();
  6575. date.setHours(date.getHours() + 2);
  6576. date.setMinutes(0);
  6577. date.setSeconds(0);
  6578. this.jqstartDate = date;
  6579. this.jqendDate = this.oneYearPast1(date);
  6580. } else {
  6581. this.immediatelyValue = false;
  6582. this.jqstartDate = this.transformTime1();
  6583. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  6584. }
  6585. },
  6586. // 使用性质方法
  6587. natureFun() {
  6588. if (this.carInfo.carnature == "01") {
  6589. this.carInfo.vehicleUse = "";
  6590. }
  6591. },
  6592. // 点击同步报价后的时间
  6593. syncData(item) {
  6594. this.jqstartDate = item.startDateJq ? item.startDateJq : this.jqstartDate;
  6595. this.jqendDate = item.endDateJq ? item.endDateJq : this.endDateJq;
  6596. this.systartDate = item.startDateSy ? item.startDateSy : this.systartDate;
  6597. this.syendDate = item.endDateSy ? item.endDateSy : this.syendDate;
  6598. },
  6599. //纳税类型事件
  6600. taxRelifFlagChange(val) {
  6601. if (val == 4) {
  6602. citydata.rawCitiesData.map((val) => {
  6603. this.provinceSelect.push({
  6604. name: val.name,
  6605. code: val.code,
  6606. });
  6607. return val;
  6608. });
  6609. }
  6610. },
  6611. //身份证前六位识别地区
  6612. // getAreaByCode(code) {
  6613. // let list = regionData;
  6614. // let provinceCode = code.substring(0, 2);
  6615. // let cityCode = code.substring(0, 4);
  6616. // let areaCode = code.substring(0, 6);
  6617. // // 获取省份信息
  6618. // let province = list.filter(function (item) {
  6619. // return item.value === provinceCode;
  6620. // });
  6621. // // 获取城市信息
  6622. // let city = province[0].children.filter(function (item) {
  6623. // return item.value === cityCode;
  6624. // });
  6625. // if (city.length > 0) {
  6626. // // 获取区/县信息
  6627. // let area = city[0].children.filter(function (item) {
  6628. // return item.value === areaCode;
  6629. // });
  6630. // return province[0].label + city[0].label + area[0].label;
  6631. // }
  6632. // },
  6633. //--数据字典 begin --
  6634. getDicType(type) {
  6635. this.$api.insCompany.dicType(type).then((res) => {
  6636. if (res.code == 200) {
  6637. if (type == "insOrderStatus") {
  6638. let data = JSON.parse(JSON.stringify(res.data.ddList));
  6639. data.unshift({
  6640. dictTag: "全部",
  6641. dictValue: "888",
  6642. });
  6643. this[type + "options"] = data;
  6644. } else {
  6645. this[type + "options"] = res.data.ddList;
  6646. }
  6647. }
  6648. });
  6649. },
  6650. //身份证失去焦点
  6651. identifyblur(info) {
  6652. this[info].age = getAgeByIdCard(this[info].identifyNumber);
  6653. this[info].gender = getGenderByIdCard(this[info].identifyNumber);
  6654. },
  6655. //车主信息选择性别
  6656. genderChange(e) {
  6657. if (this.tbczcarShow) {
  6658. this.policyHolderInfo.gender = e;
  6659. } else if (this.bbczcarShow) {
  6660. this.insuredPersonInfo.gender = e;
  6661. }
  6662. },
  6663. //省市区
  6664. // areahandleChange(event, info) {
  6665. // console.log(event)
  6666. // if (event[0] != null && event[1] != null && event[2] != null) {
  6667. // this[info].province = codeToText[event[0]]
  6668. // this[info].city = codeToText[event[1]]
  6669. // this[info].county = codeToText[event[2]]
  6670. // }
  6671. // },
  6672. iconfftter(icon) {
  6673. return CommonUtil.getDataName({
  6674. dataList: this.global.insCompanyList,
  6675. value: "name",
  6676. label: "icon",
  6677. data: icon,
  6678. });
  6679. },
  6680. disabledDate(time) {
  6681. let datetime = this.carInfo.registerDate;
  6682. return time.getTime() < new Date(datetime).getTime();
  6683. },
  6684. onScroll() {
  6685. // 变量scrollTop是滚动条滚动时,滚动条上端距离顶部的距离
  6686. var scrollTop =
  6687. document.documentElement.scrollTop || document.body.scrollTop;
  6688. // 变量windowHeight是可视区的高度
  6689. var windowHeight =
  6690. document.documentElement.clientHeight || document.body.clientHeight;
  6691. // 变量scrollHeight是滚动条的总高度(当前可滚动的页面的总高度)
  6692. var scrollHeight =
  6693. document.documentElement.scrollHeight || document.body.scrollHeight;
  6694. // 滚动条到底部
  6695. if (Math.ceil(scrollTop + windowHeight) >= scrollHeight) {
  6696. this.isBottom = true;
  6697. } else {
  6698. this.isBottom = false;
  6699. }
  6700. },
  6701. pinganInsuranceChange(index,index1,val) {
  6702. if (!index) {
  6703. return;
  6704. }
  6705. this.accidentFormPA[index1].pingantemplateSelection = index;
  6706. this.accidentFormPA[index1].projectName=index
  6707. val.map(val1=>{
  6708. if(val1.projectName == index){
  6709. val1.son.forEach(val3=>{
  6710. val3.quantity='1'
  6711. })
  6712. this.accidentFormPA[index1].pinganInsuranceDataTable= val1.son
  6713. this.accidentFormPA[index1].projectCode= val1.projectCode
  6714. }
  6715. })
  6716. // this.accidentFormPA[index1].projectCode=this.pinganInsuranceData.find(val1=>{
  6717. // // val1.map(
  6718. // // (val) => val.projectName == index
  6719. // // ).projectCode
  6720. // }
  6721. // )
  6722. // this.accidentFormPA[index1].pinganInsuranceDataTable = this.pinganInsuranceData.find(
  6723. // (val) => val.projectName == index
  6724. // ).son;
  6725. },
  6726. taikangInsuranceChange(index) {
  6727. if (index) {
  6728. this.TkDrivingChange(
  6729. this.taikangaccidentDataList.find((val) => val.projectCode == index)
  6730. );
  6731. }
  6732. if (!index) {
  6733. return;
  6734. }
  6735. this.taikangtemplateSelection = index;
  6736. this.accidentFormTk = Object.assign(
  6737. this.accidentFormTk,
  6738. this.taikangaccidentDataList.find((val) => val.projectCode == index)
  6739. );
  6740. this.taikangaccidentDataList
  6741. .find((val) => val.projectCode == index)
  6742. .son.forEach((item) => {
  6743. item.sumAmount =
  6744. Number(item.amount) * Number(this.accidentFormTk.seatNum);
  6745. });
  6746. this.taikangInsuranceDataTable = this.taikangaccidentDataList.find(
  6747. (val) => val.projectCode == index
  6748. ).son;
  6749. this.accidentPremiumTk = this.accidentFormTk.premium;
  6750. },
  6751. anshengInsuranceChange(index) {
  6752. this.anshengtemplateSelection = index;
  6753. let data = this.anshengInsuranceData.find(
  6754. (val) => val.projectCode == index
  6755. );
  6756. this.anshengaccidentalDrivingVo.parentName = data.projectName;
  6757. this.anshengaccidentalDrivingVo.parentCode = data.projectCode;
  6758. this.anshengInsuranceDataTable = [];
  6759. this.anshengInsuranceDataTable = data.children;
  6760. this.anshengInsuranceDataTable.forEach((e) => (e.quantity = "1"));
  6761. },
  6762. hengbangInsuranceChange(index) {
  6763. this.hengbangInsuranceDataTable = this.hengbangInsuranceData.find(
  6764. (val) => val.projectCode == index
  6765. ).son;
  6766. this.hengbangtemplateSelection = index;
  6767. if (this.hengbangInsuranceDataTable.length) {
  6768. this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(
  6769. (val) => val.projectCode == index
  6770. );
  6771. }
  6772. },
  6773. huanongInsuranceChange(index) {
  6774. this.huanongInsuranceDataTable = this.huanongInsuranceData.find(
  6775. (val) => val.projectCode == index
  6776. ).son;
  6777. this.accidentFormHN.accidentType = index;
  6778. this.huanongaccidentalDrivingVo = Object.assign(
  6779. this.huanongInsuranceData.find((val) => val.projectCode == index),
  6780. this.accidentFormHN
  6781. );
  6782. },
  6783. taipingInsuranceChange(index) {
  6784. this.taipingtemplateSelection = index;
  6785. this.taipingInsuranceDataTable = this.taipingInsuranceData.find(
  6786. (val) => val.projectCode == index
  6787. ).son;
  6788. if (
  6789. this.taipingInsuranceDataTable &&
  6790. this.taipingInsuranceDataTable.length
  6791. ) {
  6792. this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(
  6793. (val) => val.projectCode == index
  6794. );
  6795. }
  6796. },
  6797. zijinInsuranceChange(index) {
  6798. this.zijintemplateSelection = index;
  6799. this.zijinInsuranceDataTable = [];
  6800. this.$refs.expandTable[0].clearSelection();
  6801. index.forEach((item) => {
  6802. this.zijinInsuranceDataTable.push(
  6803. this.ziJinInsuranceData.find((val) => val.projectCode == item)
  6804. );
  6805. });
  6806. this.zijinInsuranceDataTable.forEach((item) => {
  6807. this.$nextTick(() => {
  6808. this.$refs.expandTable[0].toggleRowSelection(item);
  6809. });
  6810. });
  6811. this.CheckboxChange(this.zijinInsuranceDataTable);
  6812. },
  6813. renshouInsuranceChange(index) {
  6814. // this.renshouInsuranceDataTable = [
  6815. // this.renshouInsuranceData.find(val => val.projectCode == index)
  6816. // ];
  6817. this.renshoutemplateSelection = index;
  6818. this.renshouInsuranceDataTable = this.renshouInsuranceData.find(
  6819. (val) => val.projectCode == index
  6820. ).son;
  6821. if (index) {
  6822. this.RSDrivingChange(
  6823. this.renshouInsuranceData.find((val) => val.projectCode == index)
  6824. );
  6825. }
  6826. },
  6827. async dajiaInsuranceChange(index) {
  6828. this.dajiaaccidentalDrivingVo = {};
  6829. let data = await this.$api.letter.accidentalDrivingInfo(index);
  6830. if (data.code == 200) {
  6831. this.dajiaaccidentalDrivingVo = {
  6832. rideRiskCode: index,
  6833. rideRiskName: this.dajiaInsuranceData.find((val) => val.id == index)
  6834. .productName,
  6835. quantity: "1",
  6836. };
  6837. this.dajiaInsuranceDataTable = data.data;
  6838. }
  6839. },
  6840. zhonganInsuranceChange(index) {
  6841. this.zhongantemplateSelection = index;
  6842. this.zhonganInsuranceDataTable = this.zhonganInsuranceData.find(
  6843. (val) => val.projectCode == index
  6844. ).son;
  6845. if (index) {
  6846. this.ZADrivingChange(
  6847. this.zhonganInsuranceData.find((val) => val.projectCode == index)
  6848. );
  6849. }
  6850. },
  6851. // 渤海选择意外险类型
  6852. async bohaiInsuranceChange(index) {
  6853. if (index) {
  6854. this.boHaiaccidentForm.projectCode = index;
  6855. // this.boHaiaccidentForm.projectName = this.dajiaInsuranceData.find(
  6856. // (e) => e.projectCode == index
  6857. // ).projectName;
  6858. this.boHaiaccidentForm.copies = "1";
  6859. this.boHaiaccidentForm.premium = Number(
  6860. this.boHaiaccidentDataList.find((e) => e.projectCode == index).sumPremium
  6861. );
  6862. this.bohaiInsuranceDataTable=this.boHaiaccidentDataList.find(
  6863. (e) => e.projectCode == index
  6864. ).son;
  6865. // let data = await this.$api.letter.productDetailsQueryboHai({
  6866. // projectCode: index,
  6867. // productCode: this.boHaiaccidentDataList.find(
  6868. // (e) => e.packageCode == index
  6869. // ).productCode,
  6870. // agreementId: this.boHaiaccidentForm.agreementId,
  6871. // });
  6872. // if (data.code == 200 && data.data) {
  6873. // this.accidentLoadingbh = false;
  6874. // this.bohaiInsuranceDataTable = data.data;
  6875. // } else {
  6876. // this.$message.error(data.msg);
  6877. // this.bohaiInsuranceDataTable = [];
  6878. // }
  6879. }
  6880. },
  6881. djcxchange(index) {
  6882. if (index) {
  6883. this.dajiaaccidentForm.parentCode = index;
  6884. this.dajiaaccidentForm.quantity = "1";
  6885. this.dajiaaccidentForm.prodCode = "";
  6886. this.dajiaaccidentDataListChild = this.dajiaInsuranceData.find(
  6887. (e) => e.projectCode == index
  6888. ).children;
  6889. this.dajiaaccidentalDrivingVo.parentName = this.dajiaInsuranceData.find(
  6890. (e) => e.projectCode == index
  6891. ).projectName;
  6892. this.dajiaaccidentalDrivingVo.parentCode = this.dajiaInsuranceData.find(
  6893. (e) => e.projectCode == index
  6894. ).projectCode;
  6895. }
  6896. },
  6897. djcxchangeChild(index) {
  6898. if (index) {
  6899. let list = this.dajiaaccidentDataListChild.find(
  6900. (val) => val.projectCode == index
  6901. );
  6902. this.dajiaaccidentForm = {
  6903. ...this.dajiaaccidentForm,
  6904. prodCode: index,
  6905. projectName: list.projectName,
  6906. sumAmount: Number(list.sumAmount),
  6907. riskCode: list.riskCode,
  6908. sumPremium: Number(list.sumPremium),
  6909. };
  6910. list.productId = list.id;
  6911. this.dajiaInsuranceDataTable = list.son;
  6912. this.dajiaaccidentalDrivingVo = Object.assign({
  6913. ...this.dajiaaccidentalDrivingVo,
  6914. ...list,
  6915. });
  6916. } else {
  6917. this.dajiaInsuranceDataTable = [];
  6918. }
  6919. },
  6920. // 国任选择意外险类型
  6921. async grcxchange(index) {
  6922. if (index) {
  6923. this.accidentLoading = true;
  6924. this.guoRenaccidentForm.goodsCode = index;
  6925. this.guoRenaccidentForm.quantity = "1";
  6926. this.guoRenaccidentForm.prodCode = "";
  6927. this.guoRenaccidentDataListChild = this.guoRenaccidentDataList.find(
  6928. (e) => e.projectCode == index
  6929. ).children;
  6930. this.guoRenaccidentalDrivingVo.parentName =
  6931. this.guoRenaccidentDataList.find(
  6932. (e) => e.projectCode == index
  6933. ).projectName;
  6934. this.guoRenaccidentalDrivingVo.parentCode =
  6935. this.guoRenaccidentDataList.find(
  6936. (e) => e.projectCode == index
  6937. ).projectCode;
  6938. // let data = await this.$api.letter.syncNonAutoInsGuoren({
  6939. // goodsCode: index,
  6940. // agreementId: this.guoRenaccidentForm.agreementId
  6941. // });
  6942. // if (data.code == 200) {
  6943. // let num = 0;
  6944. // data.data.forEach(item => {
  6945. // num += Number(item.premium);
  6946. // });
  6947. // this.accidentLoading = false;
  6948. // } else {
  6949. // this.accidentLoading = false;
  6950. // this.$message.error(data.msg);
  6951. // this.guoRenaccidentDataListChild = [];
  6952. // }
  6953. }
  6954. },
  6955. // 国任选择意外险子级类型
  6956. async grcxchangeChild(index) {
  6957. let list = this.guoRenaccidentDataListChild.find(
  6958. (val) => val.projectCode == index
  6959. );
  6960. this.guoRenaccidentForm = {
  6961. ...this.guoRenaccidentForm,
  6962. prodCode: index,
  6963. policyNum: Number(list.sumPremium),
  6964. riskCode: list.riskCode,
  6965. // amount: list.amount,
  6966. sumPremium: Number(list.sumPremium),
  6967. // appnum:Number(list.appnum)
  6968. };
  6969. this.guoRenInsuranceDataTable = list.son;
  6970. this.guoRenaccidentalDrivingVo = Object.assign({
  6971. ...list,
  6972. ...this.guoRenaccidentalDrivingVo,
  6973. });
  6974. },
  6975. // 选择意外险类型
  6976. async yongchengInsuranceChange(index) {
  6977. if (!index) {
  6978. return;
  6979. }
  6980. this.yongchengtemplateSelection = index;
  6981. this.accidentForm = Object.assign(
  6982. this.accidentForm,
  6983. this.yongchengaccidentDataList.find((val) => val.projectCode == index)
  6984. );
  6985. this.yongchengaccidentDataList
  6986. .find((val) => val.projectCode == index)
  6987. .son.forEach((item) => {
  6988. item.sumAmount =
  6989. Number(item.amount) * Number(this.accidentForm.seatNum);
  6990. });
  6991. this.yongchengInsuranceDataTable = this.yongchengaccidentDataList.find(
  6992. (val) => val.projectCode == index
  6993. ).son;
  6994. this.accidentPremium = this.accidentForm.sumPremium;
  6995. // this.accidentForm.fen = "1";
  6996. // let data = await this.$api.letter.ycgainAccidentSchemeList({
  6997. // companyCode: this.accidentForm.companyId,
  6998. // code: index,
  6999. // agreementId: this.accidentForm.agreementId,
  7000. // seatNum: Number(this.carInfo.seatCount)
  7001. // });
  7002. // if (data.code == 200) {
  7003. // let num = 0;
  7004. // data.data.forEach(item => {
  7005. // num += Number(item.premium);
  7006. // });
  7007. // this.accidentPremium = num;
  7008. // this.accidentForm.premium = num;
  7009. // this.accidenttableData = data.data;
  7010. // }
  7011. },
  7012. numberCopieschange(index) {
  7013. this.accidentForm.sumPremium = Number(this.accidentPremium) * index;
  7014. },
  7015. numberCopieschangeTk(index) {
  7016. this.accidentFormTk.sumPremium = Number(this.accidentPremiumTk) * index;
  7017. },
  7018. numberCopieschangePA(index,index1) {
  7019. this.accidentFormPA.premium = Number(this.accidentFormPA[index1].accidentPremiumPA ) * index;
  7020. },
  7021. numberCopieschangeZM(index) {
  7022. this.accidentFormZM.sumPremium = Number(this.accidentPremiumZM) * index;
  7023. },
  7024. numberCopieschangeGR(index) {
  7025. this.guoRenaccidentForm.sumPremium =
  7026. Number(this.guoRenaccidentForm.policyNum) * index;
  7027. },
  7028. continuousChange(id) {
  7029. this.continuousCompanyList.map((ele) => {
  7030. if (ele.id == id) {
  7031. this.attributionform.configure = [];
  7032. ele.configure.map((ele, index) => {
  7033. this.attributionform.configure.push({
  7034. field: ele.field,
  7035. isEdit: ele.isEdit,
  7036. label: ele.label,
  7037. type: ele.type,
  7038. value: "",
  7039. });
  7040. });
  7041. }
  7042. });
  7043. },
  7044. //续保查询
  7045. continuousquery() {
  7046. this.$api.letter.queryRenewal(this.attributionform).then((res) => {
  7047. if (res.code == "200") {
  7048. this.carInfo = res.data.carInfo;
  7049. this.ownerInfo = res.data.ownerInfo;
  7050. this.policyHolderInfo = res.data.policyHolderInfo;
  7051. this.insuredPersonInfo = res.data.insuredPersonInfo;
  7052. res.data.riskList.map((ele) => {
  7053. if (ele.riskCode == "0507") {
  7054. this.jqchecked = true;
  7055. this.jqstartDate = ele.startDate;
  7056. this.jqendDate = ele.endDate;
  7057. } else if (ele.riskCode == "0510") {
  7058. this.sychecked = true;
  7059. this.systartDate = ele.startDate;
  7060. this.syendDate = ele.endDate;
  7061. }
  7062. county;
  7063. });
  7064. } else {
  7065. this.$message({
  7066. message: res.msg,
  7067. type: "error",
  7068. duration: 2000,
  7069. });
  7070. }
  7071. });
  7072. },
  7073. //永诚转保
  7074. renewalCodeconfirm() {
  7075. this.renewalCodedialogVisible = false;
  7076. this.quote();
  7077. },
  7078. //报价轨迹查询
  7079. RadioHistoryChange(e) {
  7080. let params = {
  7081. orderNo: this.orderno,
  7082. orderStatus: e == 888 ? "" : e,
  7083. };
  7084. this.$api.letter.queryQuoteHistory(params).then((res) => {
  7085. res.data.forEach((item) => {
  7086. if (item.accidentInfo) {
  7087. item.accidentInfo.constructor === Object
  7088. ? [item.accidentInfo]
  7089. : item.accidentInfo;
  7090. }
  7091. });
  7092. this.HistoryList = res.data;
  7093. });
  7094. },
  7095. protocolJudge(val, val1) {
  7096. if (val1) {
  7097. this.totalCompanyList.forEach((e) => {
  7098. if (
  7099. e.agreement.find(
  7100. (el) => el.productsCode && el.productsCode.includes(val)
  7101. )
  7102. ) {
  7103. e.agreement.find(
  7104. (el) => el.productsCode && el.productsCode.includes(val)
  7105. ).disabled = true;
  7106. }
  7107. });
  7108. } else {
  7109. this.totalCompanyList.forEach((e) => {
  7110. if (
  7111. e.agreement.find(
  7112. (el) => el.productsCode && el.productsCode.includes(val)
  7113. )
  7114. ) {
  7115. e.agreement.find(
  7116. (el) => el.productsCode && el.productsCode.includes(val)
  7117. ).disabled = false;
  7118. }
  7119. });
  7120. }
  7121. },
  7122. // 回显
  7123. async obtainProtocol(data) {
  7124. let res = {};
  7125. if (this.isLetter == "1") {
  7126. this.getCompanyList(data)
  7127. // res = await this.$api.letter.getAllAgreement();
  7128. }
  7129. if (this.isLetter == "2") {
  7130. setTimeout(() => {
  7131. this.getCompanyList(data)
  7132. }, 500);
  7133. }
  7134. },
  7135. //获取保险公司列表
  7136. // commpanyList() {
  7137. // this.$api.letter.gainAllowQuoteList("").then(res => {
  7138. // res.data.map(ele => {
  7139. // ele["result"] = {};
  7140. // ele["quoteCode"] = 0;
  7141. // ele["checked"] = false;
  7142. // ele["msg"] = "";
  7143. // ele["lastYearMsg"] = "";
  7144. // ele["agreementId"] = "";
  7145. // ele["apiType"] = "";
  7146. // ele["orderstatus"] = 0;
  7147. // ele.coefficient = "";
  7148. // // ele.agreementId = ele.agreement[0].id;
  7149. // ele.apiType = ele.agreement[0].apiType;
  7150. // ele.underwritingDescription =
  7151. // ele.agreement[0].underwritingDescription;
  7152. // });
  7153. // if (this.$route.query.data) {
  7154. // res.data.forEach((val, index) => {
  7155. // this.$route.query.data.insAreaCompanyEditingDtos.forEach(ele => {
  7156. // if (val.namesimple == ele.inscompany) {
  7157. // res.data[index].quoteCode = 200;
  7158. // res.data[index].result = ele;
  7159. // }
  7160. // });
  7161. // });
  7162. // }
  7163. // this.totalCompanyList = res.data;
  7164. // });
  7165. // },
  7166. Payment(id, item) {
  7167. this.carcode(id, item);
  7168. },
  7169. // 现询
  7170. getInquiryNowList(agreementId, riskList, kindList) {
  7171. let productId = ''
  7172. this.inquiryNowList = []
  7173. this.$api.letter.getProductId({
  7174. riskList: riskList,
  7175. kindList: kindList
  7176. }).then((res) => {
  7177. if (res.code == 200) {
  7178. productId = res.data
  7179. this.$api.letter.getInquiryNowFee({
  7180. agreementId: agreementId,
  7181. productId: productId
  7182. }).then((resp) => {
  7183. if (resp.code == 200) {
  7184. this.inquiryNowList = resp.data
  7185. }
  7186. })
  7187. }
  7188. })
  7189. },
  7190. inquiryNowListChange(data) {
  7191. if (data) {
  7192. this.nowCostsId = data // 现询id
  7193. this.isInquiryNowDisable = true
  7194. this.inquiryNowList.forEach((val) => {
  7195. if (val.id == data) {
  7196. this.policyNumberForm.jqCostsProportion = val.jqCostsProportion
  7197. this.policyNumberForm.noCostsProportion = val.noCostsProportion
  7198. this.policyNumberForm.syCostsProportion = val.syCostsProportion
  7199. }
  7200. })
  7201. } else {
  7202. this.nowCostsId = ''
  7203. this.isInquiryNowDisable = false
  7204. this.policyNumberForm.jqCostsProportion = ''
  7205. this.policyNumberForm.noCostsProportion = ''
  7206. this.policyNumberForm.syCostsProportion = ''
  7207. }
  7208. },
  7209. //选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
  7210. agreementChange(val, row, index, item) {
  7211. this.getInquiryNowList(val, this.riskList, this.kindList)
  7212. this.kindListFun(index);
  7213. let obj = {};
  7214. obj = row.find((item) => {
  7215. return item;
  7216. });
  7217. let selectRow = row.find((item) => {
  7218. return item.id == val;
  7219. });
  7220. let info = row.find((ele) => ele.id == val);
  7221. this.totalCompanyList[index].apiType = info.apiType;
  7222. this.totalCompanyList[index].underwritingDescription = val
  7223. ? selectRow.underwritingDescription
  7224. : ""; //重新赋值修改选中协议承保描述
  7225. if (this.$route.path != "/task/external/externalOrders")
  7226. if(item.namesimple == "平安财险" ){
  7227. this.$api.letter.getPingAnDrivingInsuranceRule({
  7228. cimodelclass: this.carInfo.cimodelclass,
  7229. isUseCombine:'Y',
  7230. tonNumber:this.carInfo.limitLoad,
  7231. ownAttribute:'03',
  7232. useAttribute: this.carInfo.carnature,
  7233. ruleSeatNum:Number(this.carInfo.seatCount),
  7234. agreementId: item.agreementId,
  7235. }).then(res=>{
  7236. this.pinganInsuranceData= res.data;
  7237. })
  7238. return
  7239. }
  7240. this.$api.letter
  7241. .getDrivingInsuranceRule({
  7242. companyCode: item.id,
  7243. agreementId: item.agreementId,
  7244. seatNum:
  7245. item.namesimple == "永诚财险" || item.namesimple == "中煤财险"
  7246. ? Number(this.carInfo.seatCount)
  7247. : "",
  7248. ruleUseNature: this.carInfo.carnature,
  7249. ruleSeatNum: Number(this.carInfo.seatCount),
  7250. risk: this.riskList,
  7251. kind: this.kindList,
  7252. ruleThirdPartyInsurance: this.insureList[1].amount,
  7253. })
  7254. .then((res) => {
  7255. if (res.code == 200) {
  7256. this.nonVehicle(res.data, item.cnName);
  7257. switch (item.namesimple) {
  7258. case "永诚财险":
  7259. this.yongchengaccidentDataList = res.data;
  7260. break;
  7261. case "国任财险":
  7262. this.guoRenaccidentDataList = res.data;
  7263. break;
  7264. case "渤海财险":
  7265. this.boHaiaccidentDataList = res.data;
  7266. break;
  7267. case "中煤财险":
  7268. this[item.cnName + +"InsuranceData"] = res.data;
  7269. break;
  7270. case "紫金财险":
  7271. let data = res.data;
  7272. data.map((ele) => {
  7273. ele.quantity = 1;
  7274. return ele;
  7275. });
  7276. this.ziJinInsuranceData = data;
  7277. break;
  7278. case "大家财险":
  7279. this.dajiaInsuranceData = res.data;
  7280. break;
  7281. case "泰康财险":
  7282. this.taikangaccidentDataList = res.data;
  7283. break;
  7284. case "中国人寿":
  7285. case "恒邦财险":
  7286. case "太平财险":
  7287. case "安盛天平":
  7288. case "华农财险":
  7289. case "众安财险":
  7290. res.data.map((ele) => {
  7291. ele.quantity = 1;
  7292. return ele;
  7293. });
  7294. this[item.cnName + "InsuranceData"] = res.data;
  7295. break;
  7296. }
  7297. } else {
  7298. this.$message.error(res.msg);
  7299. }
  7300. });
  7301. // switch (item.namesimple) {
  7302. // case "永诚财险":
  7303. // this.accidentForm.agreementId = item.agreementId;
  7304. // this.$api.letter
  7305. // .ycgainAccidentList({
  7306. // companyCode: item.id,
  7307. // agreementId: item.agreementId,
  7308. // seatNum: Number(this.carInfo.seatCount)
  7309. // })
  7310. // .then(res => {
  7311. // if (res.code == 200) {
  7312. // this.accidentDataList = res.data;
  7313. // }
  7314. // });
  7315. // break;
  7316. // case "国任财险":
  7317. // this.guoRenaccidentForm.agreementId = item.agreementId;
  7318. // this.$api.letter
  7319. // .syncNonAutoInsGuoren({ agreementId: item.agreementId })
  7320. // .then(res => {
  7321. // if (res.code == 200) {
  7322. // this.guoRenaccidentDataList = res.data;
  7323. // } else {
  7324. // this.guoRenaccidentDataList = [];
  7325. // }
  7326. // });
  7327. // break;
  7328. // case "渤海财险":
  7329. // this.boHaiaccidentForm.agreementId = item.agreementId;
  7330. // let policyHolderInfo = this.tbczcarShow
  7331. // ? this.ownerInfo
  7332. // : this.policyHolderInfo;
  7333. // let productQueryVo = {
  7334. // agreementId: item.agreementId,
  7335. // carnature: this.carInfo.carnature,
  7336. // cimodelclass: this.carInfo.cimodelclass,
  7337. // exhaustScale: this.carInfo.enginedesc,
  7338. // limitLoad: this.carInfo.limitLoad,
  7339. // powerScale: this.carInfo.powerScale,
  7340. // seatCount: this.carInfo.seatCount,
  7341. // vehicleUse: this.carInfo.vehicleUse,
  7342. // policyHolderInfo,
  7343. // insuredPersonInfo: this.bbczcarShow
  7344. // ? this.ownerInfo
  7345. // : this.bbtbcarShow
  7346. // ? policyHolderInfo
  7347. // : this.insuredPersonInfo
  7348. // };
  7349. // this.$api.letter.productQueryboHai(productQueryVo).then(res => {
  7350. // if (res.code == 200) {
  7351. // this.boHaiaccidentDataList = res.data;
  7352. // } else {
  7353. // this.boHaiaccidentDataList = [];
  7354. // }
  7355. // });
  7356. // break;
  7357. // case "紫金财险":
  7358. // this.$api.letter
  7359. // .zijinqueryVehicleProducts({
  7360. // agreementId: val,
  7361. // seatCount: Number(this.carInfo.seatCount)
  7362. // })
  7363. // .then(res => {
  7364. // if (res.code == 200) {
  7365. // let data = res.data;
  7366. // data.map(ele => {
  7367. // ele.quantity = 1;
  7368. // return ele;
  7369. // });
  7370. // this.ziJinInsuranceData = data;
  7371. // } else {
  7372. // this.$message.error(res.msg);
  7373. // }
  7374. // });
  7375. // break;
  7376. // case "中国人寿":
  7377. // case "恒邦财险":
  7378. // case "太平财险":
  7379. // case "安盛天平":
  7380. // case "华农财险":
  7381. // case "众安财险":
  7382. // this.$api.letter.pythongetDriving({ agreementId: val }).then(res => {
  7383. // if (res.code == 200) {
  7384. // let data = res.data;
  7385. // data.map(ele => {
  7386. // ele.quantity = 1;
  7387. // return ele;
  7388. // });
  7389. // this[item.cnName + "InsuranceData"] = data;
  7390. // }
  7391. // });
  7392. // break;
  7393. // case "大家财险":
  7394. // this.$api.letter
  7395. // .dajiagetDriving({ agreementId: item.agreementId })
  7396. // .then(res => {
  7397. // if (res.code == 200) {
  7398. // this.dajiaInsuranceData = res.data;
  7399. // }
  7400. // });
  7401. // break;
  7402. // default:
  7403. // break;
  7404. // }
  7405. },
  7406. nonVehicle(data, type) {
  7407. if (data.some((e) => e.isDefault)) {
  7408. if (type == "guoRen") {
  7409. this.grcxchange(data.find((ele) => ele.isDefault).projectCode);
  7410. this.grcxchangeChild(
  7411. data
  7412. .find((ele) => ele.isDefault)
  7413. .children.find((ele) => ele.isDefault).projectCode
  7414. );
  7415. }
  7416. if (type == "ansheng") {
  7417. this.anshengInsuranceChange(
  7418. data.find((ele) => ele.isDefault).projectCode
  7419. );
  7420. this.ASDrivingRadio(
  7421. data
  7422. .find((ele) => ele.isDefault)
  7423. .children.find((ele) => ele.isDefault)
  7424. );
  7425. }
  7426. if (type == "zijin") {
  7427. this[type + "InsuranceChange"]([
  7428. data.find((ele) => ele.isDefault).projectCode,
  7429. ]);
  7430. } else {
  7431. this[type + "InsuranceChange"](
  7432. data.find((ele) => ele.isDefault).projectCode
  7433. );
  7434. }
  7435. }
  7436. },
  7437. CheckboxChange(select, row) {
  7438. this.accidentalDrivingVo = [];
  7439. select.map((val) => {
  7440. this.accidentalDrivingVo.push(val);
  7441. return val;
  7442. });
  7443. },
  7444. //人寿驾意险选择
  7445. RSDrivingChange(row) {
  7446. this.renshouaccidentalDrivingVo = row;
  7447. },
  7448. TkDrivingChange(row) {
  7449. this.taikangaccidentalDrivingVo = row;
  7450. },
  7451. //众安驾意险选择
  7452. ZADrivingChange(row) {
  7453. this.zhonganaccidentalDrivingVo = row;
  7454. },
  7455. RSDrivingRadio(row) {
  7456. this.RSDrivingChange(row);
  7457. },
  7458. //安盛驾意险选择
  7459. ASDrivingRadio(row) {
  7460. this.anshengInsurancetype = row.projectCode;
  7461. this.anshengaccidentalDrivingVo = Object.assign({
  7462. ...this.anshengaccidentalDrivingVo,
  7463. ...row,
  7464. });
  7465. // this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
  7466. // this.anshengaccidentalDrivingVo.projectName = row.projectName;
  7467. },
  7468. pinganDetail(row,agreementId) {
  7469. this.pinganDataDetailVisible=false
  7470. this.$api.letter
  7471. .productDetailsQuery({ agreementId,
  7472. packageCode:row.code,
  7473. productCode:row.productCode,
  7474. version:row.version,
  7475. })
  7476. .then((res) => {
  7477. if(res.code==200){
  7478. this.pinganDataDetailVisible=true
  7479. this.pinganDataDetail=res.data
  7480. }
  7481. else{
  7482. this.$message.err(res.msg)
  7483. }
  7484. });
  7485. },
  7486. sameItem(array1,array2) {
  7487. return array2.find(item => {
  7488. array1.some(innerItem => innerItem.code === item.code)
  7489. }
  7490. );
  7491. },
  7492. PADrivingCheckbox(event,row,agreementId,index) {
  7493. // const checkedVal = this.accidentFormPA[index].pinganInsuranceDataTable.find(x => x.cameraId === item.cameraId)
  7494. const isSelected = event.some(selectedRow => selectedRow.code == row.code);
  7495. let isIndex =null
  7496. let amount =null
  7497. event.find((selectedRow,selectedIndex) => {
  7498. if(selectedRow.code == row.code){
  7499. isIndex= selectedIndex
  7500. }
  7501. });
  7502. if(event.length>0 && isSelected){
  7503. this.$api.letter
  7504. .productDetailsQuery({ agreementId,
  7505. packageCode:row.code,
  7506. productCode:row.productCode,
  7507. version:row.version,
  7508. })
  7509. .then((res) => {
  7510. if(res.code==200){
  7511. res.data.forEach(ele=>{
  7512. amount+=Number(ele.unitInsuredAmount)?Number(ele.unitInsuredAmount):0
  7513. })
  7514. event[isIndex].amount=amount
  7515. }
  7516. else{
  7517. this.$message.err(res.msg)
  7518. }
  7519. });
  7520. }
  7521. event.forEach((res,indexOf)=>{
  7522. res.projectName=this.accidentFormPA[index].projectName
  7523. res.projectCode=this.accidentFormPA[index].projectCode
  7524. res.combineProductType=this.accidentFormPA[index].combineProductType
  7525. })
  7526. this.pinganaccidentalDrivingVo[index]=event
  7527. },
  7528. //平安驾意险选择
  7529. PADrivingRadio(row,agreementId,index) {
  7530. // this.accidentPremiumPA = row.premium;
  7531. this.accidentFormPA[index].quantity = '1';
  7532. this.accidentFormPA[index].sellListSize =Number(row.sellListSize) ;
  7533. this.accidentFormPA[index].premium = row.premium
  7534. this.accidentFormPA[index].combineProductType = row.combineProductType
  7535. this.accidentFormPA[index].accidentPremiumPA = row.premium
  7536. this.accidentFormPA[index].pinganInsurancetype = row.code;
  7537. this.$api.letter
  7538. .productDetailsQuery({ agreementId,
  7539. packageCode:row.code,
  7540. productCode:row.productCode,
  7541. version:row.version,
  7542. })
  7543. .then((res) => {
  7544. if(res.code==200){
  7545. this.accidentFormPA[index].amount=0
  7546. res.data.forEach(e=>{
  7547. this.accidentFormPA[index].amount+=Number(e.unitInsuredAmount)?Number(e.unitInsuredAmount):0
  7548. })
  7549. this.pinganaccidentalDrivingVo[index]={
  7550. ...row,
  7551. ...this.accidentFormPA[index],
  7552. };
  7553. }
  7554. else{
  7555. this.$message.err(res.msg)
  7556. this.pinganaccidentalDrivingVo[index]={
  7557. ...row,
  7558. ...this.accidentFormPA[index],
  7559. };
  7560. }
  7561. });
  7562. },
  7563. ZADrivingRadio(row) {
  7564. this.ZADrivingChange(row);
  7565. },
  7566. // 国任特约选择
  7567. contributingGuoRen(id, index) {
  7568. this.typeDialogIndex = index
  7569. this.zijinengageListData = [];
  7570. this.contributingLoading = true;
  7571. this.contributingState = true;
  7572. this.hbsubmitdialogVisible = true;
  7573. this.$api.letter
  7574. .guorenqueryClauseData({ agreementId: id })
  7575. .then((res) => {
  7576. this.contributingLoading = false;
  7577. if (res.data) {
  7578. res.data.forEach((val) => {
  7579. val.clauseName = val.clauses;
  7580. val.clauseContent = val.clausesContext;
  7581. });
  7582. this.zijinengageListData = res.data;
  7583. }
  7584. });
  7585. },
  7586. //紫金特约选择
  7587. zijinengageChange(select, row) {
  7588. this.zijinengageList = [];
  7589. if (!this.totalCompanyList[this.typeDialogIndex].zxProgramme) {
  7590. this.totalCompanyList[this.typeDialogIndex].zxProgramme = { // 自选方案详情
  7591. description: '',
  7592. drivingList: [],
  7593. jqx: {
  7594. name: '交通事故强制责任险'
  7595. },
  7596. kinds: {
  7597. additional: [],
  7598. main: [],
  7599. service: []
  7600. },
  7601. teyue: [],
  7602. }
  7603. }
  7604. // this.totalCompanyList[this.typeDialogIndex].programme = {}
  7605. this.totalCompanyList[this.typeDialogIndex].programme.teyue = []
  7606. select.map((val) => {
  7607. this.zijinengageList.push({
  7608. clauseCode: val.clauseCode,
  7609. clauseName: val.clauseName,
  7610. clauses: val.clauseContent,
  7611. riskCode: val.riskCode,
  7612. });
  7613. this.totalCompanyList[this.typeDialogIndex].zxProgramme.teyue = this.zijinengageList
  7614. this.totalCompanyList[this.typeDialogIndex].programme.teyue = this.zijinengageList
  7615. return val;
  7616. });
  7617. },
  7618. zijinengageChangeAll(row) {
  7619. if (row) {
  7620. this.zijinengageChange(row);
  7621. } else {
  7622. this.$refs.expandTablePro.clearSelection();
  7623. this.zijinengageList = [];
  7624. }
  7625. },
  7626. //紫金特约内容编辑
  7627. zijincellDblclick(row, column) {
  7628. this.currentCell = row.index + "," + column.index;
  7629. if (
  7630. !["clauseContent"].includes(column.property) &&
  7631. row.modifyFlag == "1"
  7632. ) {
  7633. setTimeout(() => {
  7634. this.$refs[row.index + "," + column.index].focus();
  7635. });
  7636. }
  7637. },
  7638. tableCellClassName({ row, column, rowIndex, columnIndex }) {
  7639. row.index = rowIndex;
  7640. column.index = columnIndex;
  7641. },
  7642. hideInput() {
  7643. this.currentCell = null;
  7644. },
  7645. updateArray(arr, value, condition) {
  7646. if (condition) {
  7647. arr.push(value);
  7648. } else {
  7649. const index = arr.indexOf(value);
  7650. if (index !== -1) {
  7651. arr.splice(index, 1);
  7652. }
  7653. }
  7654. if (arr.length == 0) {
  7655. this.totalCompanyList.forEach((e) => {
  7656. e.disabled = false;
  7657. });
  7658. } else {
  7659. this.totalCompanyList.forEach((e) => {
  7660. e.disabled = e.id == arr[0] ? false : true;
  7661. });
  7662. }
  7663. },
  7664. //勾选保险公司
  7665. initchange(e, code, name, index) {
  7666. if (e) {
  7667. console.log(this.totalCompanyList[index], 'this.totalCompanyList[index]')
  7668. this.totalCompanyList[index].checked = e;
  7669. this.getCompanyProgramme(e, code, name, index)
  7670. this.kindListFun();
  7671. let ins = this.totalCompanyList[index].namesimple;
  7672. this.totalCompanyList[index].underwritingDescription =
  7673. this.totalCompanyList[index].agreement[0].underwritingDescription;
  7674. if (this.$route.path != "/task/external/externalOrders")
  7675. this.$api.letter
  7676. .getDrivingInsuranceRule({
  7677. agreementId: this.totalCompanyList[index].agreement[0].id,
  7678. seatNum:
  7679. ins == "永诚财险" || ins == "中煤财险"
  7680. ? Number(this.carInfo.seatCount)
  7681. : "",
  7682. ruleUseNature: this.carInfo.carnature,
  7683. ruleSeatNum: Number(this.carInfo.seatCount),
  7684. risk: this.riskList,
  7685. kind: this.kindList,
  7686. ruleThirdPartyInsurance: this.insureList[1].amount,
  7687. cimodelclass: ins == "平安财险"
  7688. ? this.carInfo.cimodelclass
  7689. : "",
  7690. isUseCombine:ins == "平安财险"
  7691. ? 'Y'
  7692. : "",
  7693. tonNumber:ins == "平安财险"
  7694. ? this.carInfo.limitLoad
  7695. : "",
  7696. ownAttribute:ins == "平安财险"
  7697. ? '03'
  7698. : "",
  7699. useAttribute: ins == "平安财险"
  7700. ? this.carInfo.carnature
  7701. : "",
  7702. })
  7703. .then((res) => {
  7704. if (res.code == 200) {
  7705. switch (ins) {
  7706. case "永诚财险":
  7707. this.yongchengaccidentDataList = res.data;
  7708. break;
  7709. case "国任财险":
  7710. this.guoRenaccidentDataList = res.data;
  7711. break;
  7712. case "渤海财险":
  7713. this.boHaiaccidentDataList = res.data;
  7714. break;
  7715. case "中煤财险":
  7716. case "平安财险":
  7717. this[name + "InsuranceData"] = res.data;
  7718. break;
  7719. case "紫金财险":
  7720. let data = res.data;
  7721. data.map((ele) => {
  7722. ele.quantity = 1;
  7723. return ele;
  7724. });
  7725. this.ziJinInsuranceData = data;
  7726. break;
  7727. case "大家财险":
  7728. this.dajiaInsuranceData = res.data;
  7729. break;
  7730. case "中国人寿":
  7731. case "恒邦财险":
  7732. case "太平财险":
  7733. case "华农财险":
  7734. case "安盛天平":
  7735. case "众安财险":
  7736. res.data.map((ele) => {
  7737. ele.quantity = 1;
  7738. return ele;
  7739. });
  7740. this[name + "InsuranceData"] = res.data;
  7741. break;
  7742. }
  7743. this.nonVehicle(res.data, name);
  7744. } else {
  7745. this.$message.error(res.msg);
  7746. }
  7747. });
  7748. // switch (ins) {
  7749. // case "永诚财险":
  7750. // this.accidentForm.agreementId = this.totalCompanyList[
  7751. // index
  7752. // ].agreement[0].id;
  7753. // this.$api.letter
  7754. // .ycgainAccidentList({
  7755. // companyCode: this.totalCompanyList[index].id,
  7756. // agreementId: this.totalCompanyList[index].agreement[0].id,
  7757. // seatNum: Number(this.carInfo.seatCount)
  7758. // })
  7759. // .then(res => {
  7760. // if (res.code == 200) {
  7761. // this.accidentDataList = res.data;
  7762. // } else {
  7763. // this.accidentDataList = [];
  7764. // }
  7765. // });
  7766. // break;
  7767. // case "国任财险":
  7768. // this.guoRenaccidentForm.agreementId = this.totalCompanyList[
  7769. // index
  7770. // ].agreement[0].id;
  7771. // this.$api.letter
  7772. // .syncNonAutoInsGuoren({
  7773. // goodsCode: "",
  7774. // agreementId: this.totalCompanyList[index].agreement[0].id
  7775. // })
  7776. // .then(res => {
  7777. // if (res.code == 200) {
  7778. // this.guoRenaccidentDataList = res.data;
  7779. // } else {
  7780. // this.guoRenaccidentDataList = [];
  7781. // }
  7782. // });
  7783. // break;
  7784. // case "紫金财险":
  7785. // this.$api.letter
  7786. // .zijinqueryVehicleProducts({
  7787. // agreementId: this.totalCompanyList[index].agreement[0].id,
  7788. // seatCount: Number(this.carInfo.seatCount)
  7789. // })
  7790. // .then(res => {
  7791. // if (res.code == 200) {
  7792. // let data = res.data;
  7793. // data.map(ele => {
  7794. // ele.quantity = 1;
  7795. // return ele;
  7796. // });
  7797. // this.ziJinInsuranceData = data;
  7798. // } else {
  7799. // this.$message.error(res.msg);
  7800. // }
  7801. // });
  7802. // break;
  7803. // case "安盛天平":
  7804. // this.$api.letter
  7805. // .pythongetDriving({
  7806. // agreementId: this.totalCompanyList[index].agreement[0].id
  7807. // })
  7808. // .then(res => {
  7809. // if (res.code == 200) {
  7810. // let data = res.data;
  7811. // data.map(ele => {
  7812. // ele.departmentProductList.map(val => {
  7813. // val.quantity = 1;
  7814. // });
  7815. // return ele;
  7816. // });
  7817. // this[name + "InsuranceData"] = data;
  7818. // } else {
  7819. // this.$message.error(res.msg);
  7820. // }
  7821. // });
  7822. // break;
  7823. // case "中国人寿":
  7824. // case "恒邦财险":
  7825. // case "太平财险":
  7826. // case "华农财险":
  7827. // case "众安财险":
  7828. // this.$api.letter
  7829. // .pythongetDriving({
  7830. // agreementId: this.totalCompanyList[index].agreement[0].id
  7831. // })
  7832. // .then(res => {
  7833. // if (res.code == 200) {
  7834. // let data = res.data;
  7835. // data.map(ele => {
  7836. // ele.quantity = 1;
  7837. // return ele;
  7838. // });
  7839. // this[name + "InsuranceData"] = data;
  7840. // } else {
  7841. // this.$message.error(res.msg);
  7842. // }
  7843. // });
  7844. // break;
  7845. // case "中煤财险":
  7846. // this.accidentFormZM.agreementId = this.totalCompanyList[
  7847. // index
  7848. // ].agreement[0].id;
  7849. // this.$api.letter
  7850. // .zmGetDrivingPro({
  7851. // agreementId: this.totalCompanyList[index].agreement[0].id,
  7852. // seatNum: this.carInfo.seatCount
  7853. // })
  7854. // .then(res => {
  7855. // if (res.code == 200) {
  7856. // let data = res.data;
  7857. // this[name + "InsuranceData"] = data;
  7858. // } else {
  7859. // this.$message.error(res.msg);
  7860. // }
  7861. // });
  7862. // break;
  7863. // case "大家财险":
  7864. // this.$api.letter
  7865. // .dajiagetDriving({
  7866. // agreementId: this.totalCompanyList[index].agreement[0].id
  7867. // })
  7868. // .then(res => {
  7869. // if (res.code == 200) {
  7870. // this.dajiaInsuranceData = res.data;
  7871. // } else {
  7872. // this.$message.error(res.msg);
  7873. // }
  7874. // });
  7875. // break;
  7876. // default:
  7877. // break;
  7878. // }
  7879. } else {
  7880. }
  7881. },
  7882. clearAccidentForm() {
  7883. this.yongchengInsuranceDataTable = [];
  7884. this.accidentForm = {};
  7885. this.accidentForm.fen = 1;
  7886. this.accidentForm.premium = 0;
  7887. },
  7888. clearAccidentFormPA(index) {
  7889. // this.accidentFormPA[index]={
  7890. // quantity: 1,
  7891. // premium: 0,
  7892. // pingantemplateSelection:'',
  7893. // pinganInsuranceDataTable:[],
  7894. // pinganInsurancetype:'',
  7895. // }
  7896. this.pinganaccidentalDrivingVo[index] = {};
  7897. },
  7898. clearAccidentFormTk() {
  7899. this.taikangaccidentalDrivingVo = {};
  7900. this.taikangInsuranceDataTable = [];
  7901. this.accidentFormTk = {};
  7902. this.accidentFormTk.fen = 1;
  7903. this.accidentFormTk.premium = 0;
  7904. },
  7905. clearAccidentFormGr() {
  7906. (this.guoRenInsuranceDataTable = []),
  7907. (this.guoRenaccidentDataListChild = []);
  7908. this.guoRenaccidentForm = {
  7909. quantity: "1",
  7910. premium: 0,
  7911. };
  7912. },
  7913. clearAccidentFormBh() {
  7914. this.bohaiInsuranceDataTable = [];
  7915. this.boHaiaccidentForm = {
  7916. copies: "1",
  7917. premium: 0,
  7918. };
  7919. // this.bohaiaccidentalDrivingVo={};
  7920. },
  7921. clearAccidentFormHN() {
  7922. this.huanongaccidentalDrivingVo = {};
  7923. },
  7924. clearAccidentFormHB() {
  7925. this.hengbangaccidentalDrivingVo = {};
  7926. },
  7927. clearAccidentFormTP() {
  7928. this.taipingaccidentalDrivingVo = {};
  7929. },
  7930. clearAccidentFormDJ() {
  7931. this.dajiaaccidentalDrivingVo = {};
  7932. },
  7933. clearAccidentFormZM() {
  7934. this.zhongmeiaccidentalDrivingVo = {};
  7935. },
  7936. clearAccidentFormZJ() {
  7937. this.accidentalDrivingVo = [];
  7938. },
  7939. clearAccidentFormZA() {
  7940. this.zhonganaccidentalDrivingVo = {};
  7941. },
  7942. clearAccidentFormRS() {
  7943. this.renshouaccidentalDrivingVo = {};
  7944. },
  7945. clearAccidentFormAS() {
  7946. this.anshengaccidentalDrivingVo = {};
  7947. },
  7948. //身份证有效期长期
  7949. insureLongterm(e) {
  7950. this[e].identifyValidEndDate = "9999-12-31";
  7951. },
  7952. //较强起保日期事件
  7953. jqChange(e) {
  7954. this.jqendDate = this.oneYearPast1(e);
  7955. },
  7956. //商业起保日期事件
  7957. syChange(e) {
  7958. this.syendDate = this.oneYearPast1(e);
  7959. },
  7960. // //查看更多
  7961. // selectMore(leg) {
  7962. // this.insureMore = false;
  7963. // this.insureLength = leg;
  7964. // },
  7965. // //收起
  7966. // packup() {
  7967. // this.insureMore = true;
  7968. // this.insureLength = 5;
  7969. // },
  7970. //险别选择框事件
  7971. insureitemChange(e, item) {
  7972. // if (e != 0) {
  7973. // this.sychecked = true;
  7974. // this.systartDate = this.transformTime1();
  7975. // this.syendDate = this.oneYearPast1(this.systartDate);
  7976. // this.kindList.push(item)
  7977. // this.obtainProtocol();
  7978. // } else {
  7979. // let list = this.kindList.filter(item => item.kindCode !== item.kindCode);
  7980. // this.kindList = list;
  7981. // this.obtainProtocol();
  7982. // }
  7983. },
  7984. all() {
  7985. this.$refs.detailsDialog.setBackupVisible(true);
  7986. },
  7987. base64ToBlob(code) {
  7988. code = code.replace(/[\n\r]/g, "");
  7989. // atob() 方法用于解码使用 base-64 编码的字符串。
  7990. const raw = window.atob(code);
  7991. const rawLength = raw.length;
  7992. const uInt8Array = new Uint8Array(rawLength);
  7993. for (let i = 0; i < rawLength; ++i) {
  7994. uInt8Array[i] = raw.charCodeAt(i);
  7995. }
  7996. return new Blob([uInt8Array], { type: "application/pdf" });
  7997. },
  7998. viewPdf(content) {
  7999. if (!content) {
  8000. this.$message.error("暂无文件");
  8001. return;
  8002. }
  8003. const blob = this.base64ToBlob(content);
  8004. this.href = blob;
  8005. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  8006. window.navigator.msSaveOrOpenBlob(blob);
  8007. } else {
  8008. const fileURL = URL.createObjectURL(blob);
  8009. window.open(fileURL);
  8010. }
  8011. },
  8012. //二维码生成插件
  8013. creatQrCode(text) {
  8014. // 查找并删除旧的二维码DOM元素
  8015. let element = document.getElementById("qrcode");
  8016. while (element.firstChild) {
  8017. element.removeChild(element.firstChild);
  8018. }
  8019. // 创建新的QRCode实例
  8020. this.qrcode = new QRCode("qrcode", {
  8021. text: text,
  8022. width: this.qrcodeWidth,
  8023. height: this.qrcodeHeight,
  8024. colorDark: "#000000",
  8025. colorLight: "#ffffff",
  8026. correctLevel: QRCode.CorrectLevel.H,
  8027. });
  8028. },
  8029. //人工核保
  8030. underwriting(id) {
  8031. let param = {
  8032. companyId: id,
  8033. };
  8034. this.$api.letter.manualUnderwriting(param).then((res) => {
  8035. if (res.code == "200") {
  8036. this.Payment(id);
  8037. }
  8038. });
  8039. },
  8040. signature(companyId){
  8041. this.$api.letter.pingAnsignEleApply({companyId}).then((res) => {
  8042. if (res.code == 200 && res.data) {
  8043. this.resultMessageImg=process.env.BASE_URL+res.data.resultMessage
  8044. this.signaturedialogVisible = true;
  8045. // 查找并删除旧的二维码DOM元素
  8046. // let element = document.getElementById("signaturecode");
  8047. // while (element.firstChild) {
  8048. // element.removeChild(element.firstChild);
  8049. // }
  8050. // this.signaturecode = new QRCode("signaturecode", {
  8051. // text: resultMessage,
  8052. // width: 180,
  8053. // height: 180,
  8054. // colorDark: "#000000",
  8055. // colorLight: "#ffffff",
  8056. // correctLevel: QRCode.CorrectLevel.H,
  8057. // });
  8058. // this.signaturedialogVisible = true;
  8059. // this.$api.letter.pingAnsignEleApply({companyId}).then((res) => {
  8060. // if (res.code == 200 && res.data) {
  8061. // // 查找并删除旧的二维码DOM元素
  8062. // let element = document.getElementById("signaturecode");
  8063. // while (element.firstChild) {
  8064. // element.removeChild(element.firstChild);
  8065. // }
  8066. // this.signaturecode = new QRCode("signaturecode", {
  8067. // text: res.data.resultMessage,
  8068. // width: 180,
  8069. // height: 180,
  8070. // colorDark: "#000000",
  8071. // colorLight: "#ffffff",
  8072. // correctLevel: QRCode.CorrectLevel.H,
  8073. // });
  8074. } else {
  8075. this.$message({
  8076. message: res.msg || "暂无数据!",
  8077. type: "warning",
  8078. });
  8079. }
  8080. });
  8081. },
  8082. jqcheckedChange(e) {
  8083. if (e) {
  8084. this.jqstartDate = this.transformTime1();
  8085. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  8086. this.riskList.push({
  8087. riskCode: "0507",
  8088. });
  8089. // this.obtainProtocol();
  8090. } else {
  8091. this.jqstartDate = "";
  8092. this.jqendDate = "";
  8093. let list = this.riskList.filter(item => item.riskCode !== "0507");
  8094. this.riskList = list;
  8095. // this.obtainProtocol();
  8096. }
  8097. },
  8098. sycheckedChange(e) {
  8099. if (e) {
  8100. this.systartDate = this.transformTime1();
  8101. this.syendDate = this.oneYearPast1(this.systartDate);
  8102. this.riskList.push({
  8103. riskCode: "0510",
  8104. });
  8105. // this.obtainProtocol();
  8106. } else {
  8107. this.systartDate = "";
  8108. this.syendDate = "";
  8109. let list = this.riskList.filter(item => item.riskCode !== "0510");
  8110. this.riskList = list;
  8111. // this.obtainProtocol();
  8112. }
  8113. },
  8114. //订单生成后保存接口
  8115. preserveOrderStageProcessing(type, btnLoading) {
  8116. // console.log(this.editorInfo);
  8117. // debugger;
  8118. //同车主的选择框
  8119. this[btnLoading] = true;
  8120. if (this.tbczcarShow && this.imageList2.length > 0) {
  8121. //投保人同车主
  8122. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  8123. if (this.imageList3.length == 1) {
  8124. this.imageList3[0].imageType = this.imageList3[0].imageType.includes(
  8125. "C0"
  8126. )
  8127. ? "C03"
  8128. : "D03";
  8129. } else {
  8130. this.imageList3.forEach((e) => {
  8131. e.imageType = e.imageType.includes("C0") ? "C03" : "D03";
  8132. });
  8133. }
  8134. }
  8135. if (this.bbczcarShow && this.imageList2.length > 0) {
  8136. //被保人同车主
  8137. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  8138. if (this.imageList4.length == 1) {
  8139. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  8140. "C0"
  8141. )
  8142. ? "C04"
  8143. : "D04";
  8144. } else {
  8145. this.imageList4.forEach((e) => {
  8146. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  8147. });
  8148. }
  8149. }
  8150. if (this.bbtbcarShow && this.imageList3.length > 0) {
  8151. //被保人同投保人
  8152. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  8153. if (this.imageList4.length == 1) {
  8154. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  8155. "C0"
  8156. )
  8157. ? "C04"
  8158. : "D04";
  8159. } else {
  8160. this.imageList4.forEach((e) => {
  8161. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  8162. });
  8163. }
  8164. }
  8165. //日期长度<10处理
  8166. const formatDate = (date) => {
  8167. if (date.length < 10) {
  8168. return this.timeformat(date);
  8169. }
  8170. return date;
  8171. };
  8172. if (this.carInfo.registerDate.length < 10) {
  8173. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  8174. }
  8175. if (this.carInfo.issueDate.length < 10) {
  8176. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  8177. }
  8178. if (
  8179. this.carInfo.transferDate &&
  8180. this.carInfo.transferDate.length < 10 &&
  8181. this.carInfo.transferDate !== ""
  8182. ) {
  8183. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  8184. }
  8185. //日期长度<10处理
  8186. //提交身份证/驾驶证 ——————————————————
  8187. this.policyHolderInfo.owner = this.tbczcarShow;
  8188. this.insuredPersonInfo.owner = this.bbczcarShow;
  8189. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  8190. if (typeof this.ownerInfo.provinceData == "string") {
  8191. this.ownerInfo.provinceData = [];
  8192. }
  8193. if (typeof this.insuredPersonInfo.provinceData == "string") {
  8194. this.insuredPersonInfo.provinceData = [];
  8195. }
  8196. if (typeof this.policyHolderInfo.provinceData == "string") {
  8197. this.policyHolderInfo.provinceData = [];
  8198. }
  8199. if (this.$route.query.data) {
  8200. const mergedArray = [
  8201. ...this.imageList1,
  8202. ...this.imageList2,
  8203. ...this.imageList3,
  8204. ...this.imageList4,
  8205. ...this.imageList5,
  8206. ...this.imageList6,
  8207. ];
  8208. if (mergedArray.length > 0) {
  8209. let imageparam = {
  8210. imageList: mergedArray,
  8211. quoteNo: this.$route.query.data.quoteno,
  8212. };
  8213. this.$api.letter.uploadImages(imageparam).then((responses) => {
  8214. // this.$refs.imageDialog.imageEcho(this.$route.query.data.quoteno)
  8215. this.imageEcho(this.$route.query.data.quoteno); // 获取图片
  8216. });
  8217. }
  8218. this.editorInfo.applyinfo.owner = this.tbczcarShow;
  8219. this.editorInfo.insureinfo.owner = this.bbczcarShow;
  8220. this.editorInfo.insureinfo.insuranceHolder = this.bbtbcarShow;
  8221. let params = {
  8222. orderNo: this.$route.query.data.orderno,
  8223. ...this.policyNumberForm,
  8224. agreementId: this.isLetter3agreementId,
  8225. stageFlag: type,
  8226. jqstartdate: this.jqstartDate,
  8227. jqenddate: this.jqendDate,
  8228. systartdate : this.systartDate,
  8229. syenddate : this.syendDate,
  8230. kind: this.kindList,
  8231. risk: this.riskList,
  8232. kindList: this.kindList,
  8233. riskList: this.riskList,
  8234. carInfo: this.carInfo,
  8235. insuredPersonInfo: this.insuredPersonInfo,
  8236. ownerInfo: this.ownerInfo,
  8237. policyHolderInfo: this.policyHolderInfo,
  8238. isExternal: "1",
  8239. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  8240. };
  8241. // debugger;
  8242. this.$api.letter.updateExternalOrder(params).then((res) => {
  8243. if (res.code == "200") {
  8244. this[btnLoading] = false;
  8245. this.$message({
  8246. message: res.msg || "编辑成功",
  8247. type: "success",
  8248. });
  8249. this.add();
  8250. } else {
  8251. this[btnLoading] = false;
  8252. this.$message.error(res.msg);
  8253. }
  8254. });
  8255. } else {
  8256. this.ownerInfo.owner = this.tbczcarShow;
  8257. this.insuredPersonInfo.owner = this.bbczcarShow;
  8258. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  8259. let param = {
  8260. userId: this.userId,
  8261. quoteno: this.quoteno,
  8262. orderNo: this.orderno,
  8263. carInfo: this.carInfo,
  8264. insuredPersonInfo: this.insuredPersonInfo,
  8265. ownerInfo: this.ownerInfo,
  8266. policyHolderInfo: this.policyHolderInfo,
  8267. kindList: this.kindList,
  8268. riskList: this.riskList,
  8269. isExternal: "1",
  8270. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  8271. };
  8272. this.$api.letter.generateOrder(param).then((res) => {
  8273. if (res.code == "200") {
  8274. //上传图片
  8275. const mergedArray = [
  8276. ...this.imageList1,
  8277. ...this.imageList2,
  8278. ...this.imageList3,
  8279. ...this.imageList4,
  8280. ...this.imageList5,
  8281. ...this.imageList6,
  8282. ];
  8283. if (mergedArray.length > 0) {
  8284. let imageparam = {
  8285. imageList: mergedArray,
  8286. quoteNo: res.data.quoteno,
  8287. };
  8288. this.$api.letter.uploadImages(imageparam).then((responses) => {
  8289. this.imageEcho(res.data.quoteno); // 获取图片
  8290. // this.$refs.imageDialog.imageEcho(res.data.quoteno)
  8291. });
  8292. }
  8293. let params1 = {
  8294. orderNo: res.data.orderno,
  8295. ...this.policyNumberForm,
  8296. agreementId: this.isLetter3agreementId,
  8297. stageFlag: type,
  8298. nowCostsId: this.nowCostsId
  8299. };
  8300. // debugger
  8301. this.$api.letter.saveSubOrder(params1).then((res) => {
  8302. if (res.code == "200") {
  8303. this[btnLoading] = false;
  8304. this.$message({
  8305. message: res.msg || "录入成功",
  8306. type: "success",
  8307. });
  8308. this.add();
  8309. } else {
  8310. this[btnLoading] = false;
  8311. this.$message.error(res.msg);
  8312. }
  8313. });
  8314. } else {
  8315. this[btnLoading] = false;
  8316. this.$message.error(res.msg);
  8317. }
  8318. });
  8319. }
  8320. // document.getElementById("company").scrollIntoView();
  8321. this.imageUploadShow = true;
  8322. },
  8323. policyHolderInfovalidate() {
  8324. let _this = this;
  8325. // tbczcarShow 同车主
  8326. if (_this.tbczcarShow == true) {
  8327. // 投保人信息 policyHolderInfo
  8328. _this.policyHolderInfo = JSON.parse(JSON.stringify(_this.ownerInfo));
  8329. } else {
  8330. _this.$refs["policyHolderInfo"].validate((valid2) => {
  8331. if (valid2) {
  8332. } else {
  8333. document.getElementById("toubaor").scrollIntoView();
  8334. _this.$message({ message: "请检查投保人信息", type: "warning" });
  8335. }
  8336. });
  8337. }
  8338. this.bbtbcarShowChange()
  8339. this.bbczcarShowChange()
  8340. },
  8341. //报价
  8342. quote(index) {
  8343. let starttime = new Date(this.carInfo.registerDate);
  8344. let endtime = new Date(this.carInfo.issueDate);
  8345. if (endtime < starttime) {
  8346. this.$message({ message: "发证日期早于初登日期", type: "error" });
  8347. return;
  8348. }
  8349. this.policyHolderInfovalidate();
  8350. this.$refs["carInfo"].validate((valid) => {
  8351. if (valid) {
  8352. var _this = this;
  8353. // this.policyHolderInfovalidate()
  8354. if (_this.tbczcarShow == true) {
  8355. _this.policyHolderInfo = JSON.parse(
  8356. JSON.stringify(_this.ownerInfo)
  8357. );
  8358. }
  8359. _this.$refs["ownerInfo"].validate((valid1) => {
  8360. if (valid1) {
  8361. if (_this.bbczcarShow == true) {
  8362. _this.insuredPersonInfo = JSON.parse(
  8363. JSON.stringify(_this.ownerInfo)
  8364. );
  8365. }
  8366. if (_this.bbtbcarShow == true) {
  8367. _this.insuredPersonInfo = JSON.parse(
  8368. JSON.stringify(_this.policyHolderInfo)
  8369. );
  8370. }
  8371. _this.carInfo.vinNo = _this.carInfo.frameNo;
  8372. _this.riskList = []; //险种大类
  8373. _this.kindList = []; //商业险险别
  8374. if (
  8375. (!_this.jqstartDate || !_this.jqendDate) &&
  8376. (!_this.systartDate || !_this.syendDate)
  8377. ) {
  8378. this.$message({ message: "投保日期不能为空", type: "warning" });
  8379. } else {
  8380. if (this.totalCompanyList[index].isTaxSource != 1 && this.totalCompanyList[index].agreementId == "") {
  8381. this.$message.warning('请选择协议')
  8382. return
  8383. }
  8384. this.calculateLoading = true;
  8385. setInterval(() => {
  8386. this.calculateLoading = false;
  8387. }, 3000);
  8388. _this.totalCompanyList[index].kindList = []
  8389. let kinds = [..._this.totalCompanyList[index].programme.kinds.main,
  8390. ..._this.totalCompanyList[index].programme.kinds.additional,
  8391. ..._this.totalCompanyList[index].programme.kinds.service]
  8392. kinds.forEach((value) => {
  8393. _this.totalCompanyList[index].kindList.push({
  8394. amount: value.amount,
  8395. serviceTimes: value.amount,
  8396. unitAmount: value.amount,
  8397. kindCode: value.kindCode,
  8398. kindName: value.kindName
  8399. })
  8400. })
  8401. console.log(_this.totalCompanyList[index].kindList, '_this.totalCompanyList[index].kindList')
  8402. if (_this.jqchecked) {
  8403. //交强
  8404. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  8405. _this.jqendDate = this.transformTime(_this.jqendDate);
  8406. _this.riskList.push({
  8407. amount: "200000",
  8408. premium: "0",
  8409. riskCode: "0507",
  8410. endDate: _this.jqendDate,
  8411. startDate: _this.jqstartDate,
  8412. instantFlag: "0",
  8413. });
  8414. }
  8415. if (_this.sychecked) {
  8416. _this.systartDate = this.transformTime(_this.systartDate);
  8417. _this.syendDate = this.transformTime(_this.syendDate);
  8418. //商业
  8419. _this.riskList.push({
  8420. premium: "0",
  8421. riskCode: "0510",
  8422. quotePreceptCode: "",
  8423. quotePreceptName: "",
  8424. endDate: _this.syendDate,
  8425. startDate: _this.systartDate,
  8426. instantFlag: "0",
  8427. });
  8428. // _this.totalCompanyList.forEach((val) => {
  8429. // if (val.checked) {
  8430. // console.log(val.programme, 'programmeeeeeeee')
  8431. // let kinds = [...val.programme.kinds.additional, ...val.programme.kinds.main, ...val.programme.kinds.service]
  8432. // kinds.forEach((value) => {
  8433. // _this.kindList.push({
  8434. // amount: value.amount,
  8435. // kindCode: value.kindCode,
  8436. // kindName: value.kindName
  8437. // })
  8438. // })
  8439. // }
  8440. // })
  8441. _this.insureList.map((ele, index) => {
  8442. // if (
  8443. // ele.amount != "0" &&
  8444. // (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  8445. // ) {
  8446. // _this.kindList.push({
  8447. // unitAmount: _this.insureList[index].amount,
  8448. // kindCode: _this.insureList[index].kindCode,
  8449. // kindName: _this.insureList[index].kindName,
  8450. // });
  8451. // } else if (
  8452. // ele.amount != "0" &&
  8453. // (ele.kindCode == "MJ1" ||
  8454. // ele.kindCode == "MJ2" ||
  8455. // ele.kindCode == "MJ3" ||
  8456. // ele.kindCode == "MJ4")
  8457. // ) {
  8458. // _this.kindList.push({
  8459. // deductibleRate: _this.insureList[index].amount,
  8460. // kindCode: _this.insureList[index].kindCode,
  8461. // kindName: _this.insureList[index].kindName,
  8462. // });
  8463. // } else if (
  8464. // ele.amount != "0" &&
  8465. // (ele.kindCode == "TY1" ||
  8466. // ele.kindCode == "TY2" ||
  8467. // ele.kindCode == "TY3" ||
  8468. // ele.kindCode == "TY4")
  8469. // ) {
  8470. // _this.kindList.push({
  8471. // serviceTimes: _this.insureList[index].amount,
  8472. // kindCode: _this.insureList[index].kindCode,
  8473. // kindName: _this.insureList[index].kindName,
  8474. // });
  8475. // } else if (ele.amount != "0") {
  8476. // _this.kindList.push({
  8477. // amount: _this.insureList[index].amount,
  8478. // kindCode: _this.insureList[index].kindCode,
  8479. // kindName: _this.insureList[index].kindName,
  8480. // });
  8481. // }
  8482. return ele;
  8483. });
  8484. } else {
  8485. _this.kindList = [];
  8486. }
  8487. // if (_this.orderno) {
  8488. this.OrderStageProcessing(index);
  8489. // } else {
  8490. // _this.$api.letter.getquote().then(res => {
  8491. // _this.quoteno = res.data; //获取报价号
  8492. // this.OrderStageProcessing();
  8493. // });
  8494. // }
  8495. }
  8496. } else {
  8497. document.getElementById("CheZhu").scrollIntoView();
  8498. _this.$message({ message: "请检查人员信息", type: "warning" });
  8499. }
  8500. });
  8501. } else {
  8502. document.getElementById("Car").scrollIntoView();
  8503. this.$message({ message: "请检查车辆信息", type: "warning" });
  8504. return false;
  8505. }
  8506. });
  8507. },
  8508. quote1() {
  8509. let starttime = new Date(this.carInfo.registerDate);
  8510. let endtime = new Date(this.carInfo.issueDate);
  8511. if (endtime < starttime) {
  8512. this.$message({ message: "发证日期早于初登日期", type: "error" });
  8513. return;
  8514. }
  8515. this.policyHolderInfovalidate();
  8516. var _this = this;
  8517. this.$refs["carInfo"].validate((valid) => {
  8518. if (valid) {
  8519. // this.policyHolderInfovalidate()
  8520. if (_this.tbczcarShow == true) {
  8521. _this.policyHolderInfo = JSON.parse(
  8522. JSON.stringify(_this.ownerInfo)
  8523. );
  8524. }
  8525. _this.$refs["ownerInfo"].validate((valid1) => {
  8526. if (valid1) {
  8527. if (_this.bbczcarShow == true) {
  8528. _this.insuredPersonInfo = JSON.parse(
  8529. JSON.stringify(_this.ownerInfo)
  8530. );
  8531. }
  8532. if (_this.bbtbcarShow == true) {
  8533. _this.insuredPersonInfo = JSON.parse(
  8534. JSON.stringify(_this.policyHolderInfo)
  8535. );
  8536. }
  8537. _this.carInfo.vinNo = _this.carInfo.frameNo;
  8538. _this.riskList = []; //险种大类
  8539. _this.kindList = []; //商业险险别
  8540. if (
  8541. (!_this.jqstartDate || !_this.jqendDate) &&
  8542. (!_this.systartDate || !_this.syendDate)
  8543. ) {
  8544. this.$message({ message: "投保日期不能为空", type: "warning" });
  8545. } else {
  8546. this.calculateLoading = true;
  8547. setInterval(() => {
  8548. this.calculateLoading = false;
  8549. }, 3000);
  8550. try {
  8551. this.totalCompanyList.forEach((val, index) => {
  8552. if (val.checked) {
  8553. val.kindList = []
  8554. if (!val.programme) {
  8555. // throw Error("没有方案")
  8556. return
  8557. }
  8558. let kinds = [...val.programme.kinds.main, ...val.programme.kinds.additional, ...val.programme.kinds.service]
  8559. kinds.forEach((value) => {
  8560. this.totalCompanyList[index].kindList.push({
  8561. amount: value.amount,
  8562. serviceTimes: value.amount,
  8563. unitAmount: value.amount,
  8564. kindCode: value.kindCode,
  8565. kindName: value.kindName
  8566. })
  8567. })
  8568. if (val.isTaxSource != 1 && val.agreementId == "") {
  8569. this.$message.warning('请选择协议')
  8570. throw Error("请选择协议")
  8571. }
  8572. }
  8573. })
  8574. } catch (error) {
  8575. return console.log(error)
  8576. }
  8577. if (_this.jqchecked) {
  8578. //交强
  8579. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  8580. _this.jqendDate = this.transformTime(_this.jqendDate);
  8581. _this.riskList.push({
  8582. amount: "200000",
  8583. premium: "0",
  8584. riskCode: "0507",
  8585. endDate: _this.jqendDate,
  8586. startDate: _this.jqstartDate,
  8587. instantFlag: "0",
  8588. });
  8589. }
  8590. if (_this.sychecked) {
  8591. _this.systartDate = this.transformTime(_this.systartDate);
  8592. _this.syendDate = this.transformTime(_this.syendDate);
  8593. //商业
  8594. _this.riskList.push({
  8595. premium: "0",
  8596. riskCode: "0510",
  8597. quotePreceptCode: "",
  8598. quotePreceptName: "",
  8599. endDate: _this.syendDate,
  8600. startDate: _this.systartDate,
  8601. instantFlag: "0",
  8602. });
  8603. } else {
  8604. _this.kindList = [];
  8605. }
  8606. // if (_this.orderno) {
  8607. this.OrderStageProcessing();
  8608. // } else {
  8609. // _this.$api.letter.getquote().then(res => {
  8610. // _this.quoteno = res.data; //获取报价号
  8611. // this.OrderStageProcessing();
  8612. // });
  8613. // }
  8614. }
  8615. } else {
  8616. document.getElementById("CheZhu").scrollIntoView();
  8617. _this.$message({ message: "请检查人员信息", type: "warning" });
  8618. }
  8619. });
  8620. } else {
  8621. document.getElementById("Car").scrollIntoView();
  8622. this.$message({ message: "请检查车辆信息", type: "warning" });
  8623. return false;
  8624. }
  8625. });
  8626. },
  8627. kindListFun(index) {
  8628. var _this = this;
  8629. _this.riskList = []; //险种大类
  8630. _this.kindList = []; //商业险险别
  8631. if (
  8632. (!_this.jqstartDate || !_this.jqendDate) &&
  8633. (!_this.systartDate || !_this.syendDate)
  8634. ) {
  8635. this.$message({ message: "投保日期不能为空", type: "warning" });
  8636. } else {
  8637. if (_this.jqchecked) {
  8638. //交强
  8639. _this.jqstartDate = this.transformTime(_this.jqstartDate);
  8640. _this.jqendDate = this.transformTime(_this.jqendDate);
  8641. _this.riskList.push({
  8642. amount: "200000",
  8643. premium: "0",
  8644. riskCode: "0507",
  8645. endDate: _this.jqendDate,
  8646. startDate: _this.jqstartDate,
  8647. instantFlag: "0",
  8648. });
  8649. }
  8650. if (_this.sychecked) {
  8651. _this.systartDate = this.transformTime(_this.systartDate);
  8652. _this.syendDate = this.transformTime(_this.syendDate);
  8653. //商业
  8654. _this.riskList.push({
  8655. premium: "0",
  8656. riskCode: "0510",
  8657. quotePreceptCode: "",
  8658. quotePreceptName: "",
  8659. endDate: _this.syendDate,
  8660. startDate: _this.systartDate,
  8661. instantFlag: "0",
  8662. });
  8663. // _this.insureList.map((ele, index) => {
  8664. // if (
  8665. // ele.amount != "0" &&
  8666. // (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
  8667. // ) {
  8668. // _this.kindList.push({
  8669. // unitAmount: _this.insureList[index].amount,
  8670. // kindCode: _this.insureList[index].kindCode,
  8671. // kindName: _this.insureList[index].kindName,
  8672. // });
  8673. // } else if (
  8674. // ele.amount != "0" &&
  8675. // (ele.kindCode == "MJ1" ||
  8676. // ele.kindCode == "MJ2" ||
  8677. // ele.kindCode == "MJ3" ||
  8678. // ele.kindCode == "MJ4")
  8679. // ) {
  8680. // _this.kindList.push({
  8681. // deductibleRate: _this.insureList[index].amount,
  8682. // kindCode: _this.insureList[index].kindCode,
  8683. // kindName: _this.insureList[index].kindName,
  8684. // });
  8685. // } else if (
  8686. // ele.amount != "0" &&
  8687. // (ele.kindCode == "TY1" ||
  8688. // ele.kindCode == "TY2" ||
  8689. // ele.kindCode == "TY3" ||
  8690. // ele.kindCode == "TY4")
  8691. // ) {
  8692. // _this.kindList.push({
  8693. // serviceTimes: _this.insureList[index].amount,
  8694. // kindCode: _this.insureList[index].kindCode,
  8695. // kindName: _this.insureList[index].kindName,
  8696. // });
  8697. // } else if (ele.amount != "0") {
  8698. // _this.kindList.push({
  8699. // amount: _this.insureList[index].amount,
  8700. // kindCode: _this.insureList[index].kindCode,
  8701. // kindName: _this.insureList[index].kindName,
  8702. // });
  8703. // }
  8704. // return ele;
  8705. // });
  8706. } else {
  8707. _this.kindList = [];
  8708. }
  8709. }
  8710. },
  8711. //动态函数
  8712. ToolClickFun(MethodName, Parameter, companyId, companyName, index) {
  8713. this[`${MethodName}`](Parameter, companyId, companyName, index);
  8714. },
  8715. //更新报价历史
  8716. QuotationHistory() {
  8717. let params = {
  8718. orderNo: this.orderno,
  8719. orderStatus: "",
  8720. };
  8721. this.$api.letter.queryQuoteHistory(params).then((res) => {
  8722. res.data.forEach((item) => {
  8723. if (item.accidentInfo) {
  8724. item.accidentInfo.constructor === Object
  8725. ? [item.accidentInfo]
  8726. : item.accidentInfo;
  8727. }
  8728. });
  8729. this.HistoryList = res.data;
  8730. });
  8731. },
  8732. open2(Name, Msg) {
  8733. this.$notify.info({
  8734. title: Name,
  8735. dangerouslyUseHTMLString: true,
  8736. type: "warning",
  8737. message: Msg,
  8738. customClass: "customNotifyClass",
  8739. duration: 7000,
  8740. });
  8741. },
  8742. open3(Name, Msg) {
  8743. this.$notify.info({
  8744. title: Name,
  8745. dangerouslyUseHTMLString: true,
  8746. type: "warning",
  8747. message: `<p>${Msg.replace(/\n/g, "<br>")}</p>`,
  8748. customClass: "customNotifyClass",
  8749. duration: 7000,
  8750. });
  8751. },
  8752. openPredictInfo(Name, Msg) {
  8753. this.redictInfoMsg = Msg;
  8754. this.redictInfodialogVisible = true;
  8755. },
  8756. //订单生成前数据处理事件
  8757. OrderStageProcessing(index) {
  8758. if (this.tbczcarShow && this.imageList2.length > 0) {
  8759. //投保人同车主
  8760. this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
  8761. if (this.imageList3.length == 1) {
  8762. this.imageList3[0].imageType = this.imageList3[0].imageType.includes(
  8763. "C0"
  8764. )
  8765. ? "C03"
  8766. : "D03";
  8767. } else {
  8768. this.imageList3.forEach((e) => {
  8769. e.imageType = e.imageType.includes("C0") ? "C03" : "D03";
  8770. });
  8771. }
  8772. }
  8773. if (this.bbczcarShow && this.imageList2.length > 0) {
  8774. //被保人同车主
  8775. this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
  8776. if (this.imageList4.length == 1) {
  8777. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  8778. "C0"
  8779. )
  8780. ? "C04"
  8781. : "D04";
  8782. } else {
  8783. this.imageList4.forEach((e) => {
  8784. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  8785. });
  8786. }
  8787. // if (this.imageList4.length == 1) {
  8788. // this.imageList4[0].imageType = "C04";
  8789. // }
  8790. // else {
  8791. // this.imageList4[0].imageType = "C04";
  8792. // this.imageList4[1].imageType = "D04";
  8793. // }
  8794. }
  8795. if (this.bbtbcarShow && this.imageList3.length > 0) {
  8796. //被保人同投保人
  8797. this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
  8798. if (this.imageList4.length == 1) {
  8799. this.imageList4[0].imageType = this.imageList4[0].imageType.includes(
  8800. "C0"
  8801. )
  8802. ? "C04"
  8803. : "D04";
  8804. } else {
  8805. this.imageList4.forEach((e) => {
  8806. e.imageType = e.imageType.includes("C0") ? "C04" : "D04";
  8807. });
  8808. }
  8809. // if (this.imageList4.length == 1) {
  8810. // this.imageList4[0].imageType = "C04";
  8811. // } else {
  8812. // this.imageList4[0].imageType = "C04";
  8813. // this.imageList4[1].imageType = "D04";
  8814. // }
  8815. }
  8816. //日期长度<10处理
  8817. const formatDate = (date) => {
  8818. if (date.length < 10) {
  8819. return this.timeformat(date);
  8820. }
  8821. return date;
  8822. };
  8823. if (this.carInfo.registerDate.length < 10) {
  8824. this.carInfo.registerDate = formatDate(this.carInfo.registerDate);
  8825. }
  8826. if (this.carInfo.issueDate.length < 10) {
  8827. this.carInfo.issueDate = formatDate(this.carInfo.issueDate);
  8828. }
  8829. if (
  8830. this.carInfo.transferDate &&
  8831. this.carInfo.transferDate.length < 10 &&
  8832. this.carInfo.transferDate !== ""
  8833. ) {
  8834. this.carInfo.transferDate = formatDate(this.carInfo.transferDate);
  8835. }
  8836. //日期长度<10处理
  8837. //提交身份证/驾驶证 ——————————————————
  8838. this.policyHolderInfo.owner = this.tbczcarShow;
  8839. this.insuredPersonInfo.owner = this.bbczcarShow;
  8840. this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
  8841. if (typeof this.ownerInfo.provinceData == "string") {
  8842. this.ownerInfo.provinceData = [];
  8843. }
  8844. if (typeof this.insuredPersonInfo.provinceData == "string") {
  8845. this.insuredPersonInfo.provinceData = [];
  8846. }
  8847. if (typeof this.policyHolderInfo.provinceData == "string") {
  8848. this.policyHolderInfo.provinceData = [];
  8849. }
  8850. let param = {
  8851. userId: this.userId,
  8852. quoteno: this.quoteno,
  8853. orderNo: this.orderno,
  8854. carInfo: this.carInfo,
  8855. insuredPersonInfo: this.insuredPersonInfo,
  8856. ownerInfo: this.ownerInfo,
  8857. policyHolderInfo: this.policyHolderInfo,
  8858. riskList: this.riskList,
  8859. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  8860. productId: this.productId
  8861. };
  8862. this.$api.letter[this.apiInterfaceName](param).then((res) => {
  8863. if (res.code == "200") {
  8864. //上传图片
  8865. const mergedArray = [
  8866. ...this.imageList1,
  8867. ...this.imageList2,
  8868. ...this.imageList3,
  8869. ...this.imageList4,
  8870. ...this.imageList5,
  8871. ...this.imageList6,
  8872. ];
  8873. if (mergedArray.length > 0) {
  8874. let imageparam = {
  8875. imageList: mergedArray,
  8876. quoteNo: res.data.quoteno,
  8877. };
  8878. this.$api.letter.uploadImages(imageparam).then((responses) => {
  8879. this.imageEcho(res.data.quoteno); // 获取图片
  8880. // this.$refs.imageDialog.imageEcho(res.data.quoteno)
  8881. });
  8882. }
  8883. this.quoteno = res.data.quoteno;
  8884. this.orderno = res.data.orderno;
  8885. if (index >= 0) {
  8886. this.totalCompanyList[index].quoteCode = 1
  8887. this.ToolClickFun(this.totalCompanyList[index].cnName, index, this.totalCompanyList[index].id, this.totalCompanyList[index].namesimple);
  8888. } else {
  8889. this.totalCompanyList.map((ele, index) => {
  8890. if (ele.checked) {
  8891. //动态调用报价接口
  8892. if (ele.programme) {
  8893. ele.quoteCode = 1;
  8894. ele.orderstatus = 0;
  8895. this.ToolClickFun(ele.cnName, index, ele.id, ele.namesimple);
  8896. }
  8897. }
  8898. });
  8899. }
  8900. } else if (res.code == 1001) {
  8901. this.$confirm("是否生成新订单?", "提示", {
  8902. confirmButtonText: "确定",
  8903. cancelButtonText: "取消",
  8904. type: "warning",
  8905. })
  8906. .then(() => {
  8907. this.orderno = "";
  8908. this.quoteno = "";
  8909. this.quote(index);
  8910. })
  8911. .catch(() => { });
  8912. } else {
  8913. this.$message({ message: res.msg, type: "warning" });
  8914. }
  8915. });
  8916. // document.getElementById("company").scrollIntoView();
  8917. this.imageUploadShow = true;
  8918. },
  8919. // 泰康报价--11
  8920. taikang(num, id, namesimple) {
  8921. this.quoteInsurance(
  8922. num,
  8923. id,
  8924. namesimple,
  8925. this.totalCompanyList[num].apiType
  8926. );
  8927. },
  8928. // 平安报价
  8929. pingan(num, id) {
  8930. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  8931. let accidentalDrivingVo=[]
  8932. if(this.pinganaccidentalDrivingVo){
  8933. accidentalDrivingVo=this.pinganaccidentalDrivingVo
  8934. // accidentalDrivingVo = Object.assign({
  8935. // ...this.pinganaccidentalDrivingVo,
  8936. // ...this.accidentFormPA,
  8937. // });
  8938. }
  8939. let params = {
  8940. accidentalDrivingVo,
  8941. orderNo: this.orderno,
  8942. companyId: id,
  8943. agreementId: this.totalCompanyList[num].agreementId,
  8944. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  8945. kindList: this.totalCompanyList[num].kindList,
  8946. riskList: this.riskList,
  8947. productId: this.productId,
  8948. };
  8949. this.$api.letter.pinganquote(params).then((res) => {
  8950. this.totalCompanyList[num].msg = res.msg;
  8951. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  8952. this.totalCompanyList[num].quoteCode = "4";
  8953. this.totalCompanyList[num].msg = res.msg;
  8954. return;
  8955. } else if (
  8956. res.data == null &&
  8957. res.msg.indexOf("交强险平台返回") > -1 &&
  8958. res.msg.indexOf(";终保日期") > -1
  8959. ) {
  8960. this.totalCompanyList[num].lastYearMsg =
  8961. "<b>交强险</b><br>" +
  8962. res.msg.slice(
  8963. res.msg.indexOf("起保日期 "),
  8964. res.msg.indexOf("地区 山西。") + 6
  8965. );
  8966. let time =
  8967. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  8968. this.jqstartDate = time;
  8969. this.jqendDate = this.oneYearPast1(time);
  8970. if (this.riskList.length > 0) {
  8971. for (let i = 0; i < this.riskList.length; i++) {
  8972. if (this.riskList[i].riskCode == "0507") {
  8973. this.riskList[i].startDate = time;
  8974. this.riskList[i].endDate = this.oneYearPast1(time);
  8975. }
  8976. }
  8977. }
  8978. let param = {
  8979. userId: this.userId,
  8980. quoteno: this.quoteno,
  8981. orderNo: this.orderno,
  8982. carInfo: this.carInfo,
  8983. insuredPersonInfo: this.insuredPersonInfo,
  8984. ownerInfo: this.ownerInfo,
  8985. policyHolderInfo: this.policyHolderInfo,
  8986. kindList: this.kindList,
  8987. riskList: this.riskList,
  8988. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  8989. };
  8990. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  8991. this.pingan(num, id);
  8992. });
  8993. } else if (!!res.data) {
  8994. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  8995. this.totalCompanyList[num].lastYearMsg = "";
  8996. let dat = res.data.warnMessageList;
  8997. dat.map((ele) => {
  8998. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  8999. });
  9000. }
  9001. this.totalCompanyList[num].quoteCode = 200;
  9002. this.totalCompanyList[num].result = res.data;
  9003. this.jqstartDate = res.data.startDateJq
  9004. this.jqendDate = res.data.endDateJq
  9005. this.systartDate = res.data.startDateSy
  9006. this.syendDate = res.data.endDateSy
  9007. this.QuotationHistory();
  9008. } else {
  9009. this.totalCompanyList[num].quoteCode = "3";
  9010. this.totalCompanyList[num].msg = res.msg;
  9011. return;
  9012. }
  9013. });
  9014. },
  9015. //永安报价
  9016. yongan(num, id) {
  9017. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9018. let params = {
  9019. orderNo: this.orderno,
  9020. companyId: id,
  9021. agreementId: this.totalCompanyList[num].agreementId,
  9022. kindList: this.totalCompanyList[num].kindList,
  9023. riskList: this.riskList,
  9024. productId: this.productId,
  9025. };
  9026. this.$api.letter.yonganquote(params).then((res) => {
  9027. this.totalCompanyList[num].msg = res.msg;
  9028. if (res.msg == "重复投保" && res.code == "501") {
  9029. if (!!res.data.jqStartDate && !res.data.syStartDate) {
  9030. this.jqstartDate = res.data.jqStartDate;
  9031. this.jqendDate = res.data.jqEndDate;
  9032. this.updateRiskDates(
  9033. "0507",
  9034. res.data.jqStartDate,
  9035. res.data.jqEndDate
  9036. );
  9037. let param = {
  9038. userId: this.userId,
  9039. quoteno: this.quoteno,
  9040. orderNo: this.orderno,
  9041. carInfo: this.carInfo,
  9042. insuredPersonInfo: this.insuredPersonInfo,
  9043. ownerInfo: this.ownerInfo,
  9044. policyHolderInfo: this.policyHolderInfo,
  9045. kindList: this.kindList,
  9046. riskList: this.riskList,
  9047. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9048. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9049. };
  9050. return this.$api.letter[this.apiInterfaceName](param).then(
  9051. (res) => {
  9052. this.yongan(num, id);
  9053. }
  9054. );
  9055. } else if (!!res.data.syStartDate && !res.data.jqStartDate) {
  9056. this.systartDate = res.data.syStartDate;
  9057. this.syendDate = res.data.syEndDate;
  9058. this.updateRiskDates(
  9059. "0510",
  9060. res.data.syStartDate,
  9061. res.data.syEndDate
  9062. );
  9063. let param = {
  9064. userId: this.userId,
  9065. quoteno: this.quoteno,
  9066. orderNo: this.orderno,
  9067. carInfo: this.carInfo,
  9068. insuredPersonInfo: this.insuredPersonInfo,
  9069. ownerInfo: this.ownerInfo,
  9070. policyHolderInfo: this.policyHolderInfo,
  9071. kindList: this.kindList,
  9072. riskList: this.riskList,
  9073. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9074. };
  9075. return this.$api.letter[this.apiInterfaceName](param).then(
  9076. (res) => {
  9077. this.yongan(num, id);
  9078. }
  9079. );
  9080. } else if (!!res.data.syStartDate && !!res.data.jqStartDate) {
  9081. this.jqstartDate = res.data.jqStartDate;
  9082. this.jqendDate = res.data.jqEndDate;
  9083. this.systartDate = res.data.syStartDate;
  9084. this.syendDate = res.data.syEndDate;
  9085. this.updateRiskDates(
  9086. "0507",
  9087. res.data.jqStartDate,
  9088. res.data.jqEndDate
  9089. );
  9090. this.updateRiskDates(
  9091. "0510",
  9092. res.data.syStartDate,
  9093. res.data.syEndDate
  9094. );
  9095. let param = {
  9096. userId: this.userId,
  9097. quoteno: this.quoteno,
  9098. orderNo: this.orderno,
  9099. carInfo: this.carInfo,
  9100. insuredPersonInfo: this.insuredPersonInfo,
  9101. ownerInfo: this.ownerInfo,
  9102. policyHolderInfo: this.policyHolderInfo,
  9103. kindList: this.kindList,
  9104. riskList: this.riskList,
  9105. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9106. };
  9107. return this.$api.letter[this.apiInterfaceName](param).then(
  9108. (res) => {
  9109. this.yongan(num, id);
  9110. }
  9111. );
  9112. } else {
  9113. this.totalCompanyList[num].quoteCode = "3";
  9114. this.totalCompanyList[num].msg = "重复投保";
  9115. }
  9116. } else if (
  9117. res.code == "500" ||
  9118. res.code == "502" ||
  9119. res.code == "-9999"
  9120. ) {
  9121. this.totalCompanyList[num].quoteCode = "-9999";
  9122. this.totalCompanyList[num].msg = res.msg;
  9123. } else {
  9124. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  9125. this.totalCompanyList[num].lastYearMsg = "";
  9126. let dat = res.data.warnMessageList;
  9127. dat.map((ele) => {
  9128. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9129. });
  9130. }
  9131. this.totalCompanyList[num].quoteCode = 200;
  9132. this.totalCompanyList[num].result = res.data;
  9133. this.jqstartDate = res.data.startDateJq
  9134. this.jqendDate = res.data.endDateJq
  9135. this.systartDate = res.data.startDateSy
  9136. this.syendDate = res.data.endDateSy
  9137. this.QuotationHistory();
  9138. }
  9139. });
  9140. },
  9141. updateRiskDates(riskCode, startDate, endDate) {
  9142. for (let i = 0; i < this.riskList.length; i++) {
  9143. if (this.riskList[i].riskCode == riskCode) {
  9144. this.riskList[i].startDate = startDate;
  9145. this.riskList[i].endDate = endDate;
  9146. }
  9147. }
  9148. },
  9149. //中煤报价
  9150. zhongmei(num, id) {
  9151. let accidentalDrivingVo = {};
  9152. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9153. let type = this.totalCompanyList[num].apiType;
  9154. let api = type == 2 ? "pythonquote" : "zhongmeiquote";
  9155. // if (this.accidentFormZM.projectCode) {
  9156. // accidentalDrivingVo = {
  9157. // projectCode: this.accidentFormZM.projectCode,
  9158. // projectName: this.accidentFormZM.projectName,
  9159. // quantity: this.accidentFormZM.quantity
  9160. // ? this.accidentFormZM.quantity
  9161. // : "1"
  9162. // };
  9163. // }
  9164. if (this.accidentFormZM.projectCode) {
  9165. accidentalDrivingVo = {
  9166. ...this.zhongmeiInsuranceData.find(
  9167. (e) => e.projectCode == this.accidentFormZM.projectCode
  9168. ),
  9169. quantity: this.accidentFormZM.quantity
  9170. ? this.accidentFormZM.quantity
  9171. : "1",
  9172. };
  9173. }
  9174. accidentalDrivingVo = this.totalCompanyList[num].programme.drivingList[0] || {}
  9175. let params = {
  9176. accidentalDrivingVo,
  9177. orderNo: this.orderno,
  9178. companyId: id,
  9179. agreementId: this.totalCompanyList[num].agreementId,
  9180. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9181. kinds: this.totalCompanyList[num].kindList,
  9182. risks: this.riskList,
  9183. productId: this.productId,
  9184. };
  9185. this.$api.letter.zhongmeiquote(params).then((res) => {
  9186. // this.$api.letter[api](params).then((res) => {
  9187. this.totalCompanyList[num].msg = res.msg;
  9188. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  9189. this.totalCompanyList[num].quoteCode = "4";
  9190. this.totalCompanyList[num].msg = res.msg;
  9191. return;
  9192. } else if (
  9193. res.data == null &&
  9194. res.msg.indexOf("交强险平台返回") > -1 &&
  9195. res.msg.indexOf(";终保日期") > -1
  9196. ) {
  9197. this.totalCompanyList[num].lastYearMsg =
  9198. "<b>交强险</b><br>" +
  9199. res.msg.slice(
  9200. res.msg.indexOf("起保日期 "),
  9201. res.msg.indexOf("地区 山西。") + 6
  9202. );
  9203. let time =
  9204. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  9205. this.jqstartDate = time;
  9206. this.jqendDate = this.oneYearPast1(time);
  9207. if (this.riskList.length > 0) {
  9208. for (let i = 0; i < this.riskList.length; i++) {
  9209. if (this.riskList[i].riskCode == "0507") {
  9210. this.riskList[i].startDate = time;
  9211. this.riskList[i].endDate = this.oneYearPast1(time);
  9212. }
  9213. }
  9214. }
  9215. let param = {
  9216. userId: this.userId,
  9217. quoteno: this.quoteno,
  9218. orderNo: this.orderno,
  9219. carInfo: this.carInfo,
  9220. insuredPersonInfo: this.insuredPersonInfo,
  9221. ownerInfo: this.ownerInfo,
  9222. policyHolderInfo: this.policyHolderInfo,
  9223. kindList: this.kindList,
  9224. riskList: this.riskList,
  9225. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9226. };
  9227. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  9228. this.zhongmei(num, id);
  9229. });
  9230. } else if (!!res.data) {
  9231. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  9232. this.totalCompanyList[num].lastYearMsg = "";
  9233. let dat = res.data.warnMessageList;
  9234. dat.map((ele) => {
  9235. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9236. });
  9237. }
  9238. this.totalCompanyList[num].quoteCode = 200;
  9239. this.totalCompanyList[num].result = res.data;
  9240. this.jqstartDate = res.data.startDateJq
  9241. this.jqendDate = res.data.endDateJq
  9242. this.systartDate = res.data.startDateSy
  9243. this.syendDate = res.data.endDateSy
  9244. this.QuotationHistory();
  9245. } else {
  9246. this.totalCompanyList[num].quoteCode = "3";
  9247. this.totalCompanyList[num].msg = res.msg;
  9248. return;
  9249. }
  9250. });
  9251. },
  9252. // 大家报价
  9253. dajia(num, id) {
  9254. // let accidentalDrivingVo=[]
  9255. // if(this.dajiaaccidentalDrivingVo){
  9256. // accidentalDrivingVo.rideRiskCode=this.dajiaaccidentalDrivingVo.schemeNo;
  9257. // accidentalDrivingVo.rideRiskName=this.dajiaaccidentalDrivingVo.cvrgName;
  9258. // accidentalDrivingVo.quantity=this.dajiaaccidentalDrivingVo.quantity;
  9259. // }
  9260. let type = this.totalCompanyList[num].apiType;
  9261. let api = type == 2 ? "pythonquote" : "dajiaquote";
  9262. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9263. let accidentalDrivingVo = this.totalCompanyList[num].programme.drivingList[0] || {}
  9264. let params = {
  9265. accidentalDrivingVo: accidentalDrivingVo,
  9266. orderNo: this.orderno,
  9267. companyId: id,
  9268. agreementId: this.totalCompanyList[num].agreementId,
  9269. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9270. kinds: this.totalCompanyList[num].kindList || [],
  9271. risks: this.riskList || []
  9272. };
  9273. this.$api.letter[api](params).then((res) => {
  9274. this.totalCompanyList[num].msg = res.msg;
  9275. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  9276. this.totalCompanyList[num].quoteCode = "4";
  9277. this.totalCompanyList[num].msg = res.msg;
  9278. return;
  9279. } else if (
  9280. res.data == null &&
  9281. res.msg.indexOf("交强险平台返回") > -1 &&
  9282. res.msg.indexOf(";终保日期") > -1
  9283. ) {
  9284. this.totalCompanyList[num].lastYearMsg =
  9285. "<b>交强险</b><br>" +
  9286. res.msg.slice(
  9287. res.msg.indexOf("起保日期 "),
  9288. res.msg.indexOf("地区 山西。") + 6
  9289. );
  9290. let time =
  9291. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  9292. this.jqstartDate = time;
  9293. this.jqendDate = this.oneYearPast1(time);
  9294. if (this.riskList.length > 0) {
  9295. for (let i = 0; i < this.riskList.length; i++) {
  9296. if (this.riskList[i].riskCode == "0507") {
  9297. this.riskList[i].startDate = time;
  9298. this.riskList[i].endDate = this.oneYearPast1(time);
  9299. }
  9300. }
  9301. }
  9302. let param = {
  9303. userId: this.userId,
  9304. quoteno: this.quoteno,
  9305. orderNo: this.orderno,
  9306. carInfo: this.carInfo,
  9307. insuredPersonInfo: this.insuredPersonInfo,
  9308. ownerInfo: this.ownerInfo,
  9309. policyHolderInfo: this.policyHolderInfo,
  9310. kindList: this.kindList,
  9311. riskList: this.riskList,
  9312. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9313. kinds: this.totalCompanyList[num].kindList,
  9314. risks: this.riskList
  9315. };
  9316. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  9317. this.dajia(num, id);
  9318. });
  9319. } else if (!!res.data) {
  9320. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  9321. this.totalCompanyList[num].lastYearMsg = "";
  9322. let dat = res.data.warnMessageList;
  9323. dat.map((ele) => {
  9324. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9325. });
  9326. }
  9327. this.totalCompanyList[num].quoteCode = 200;
  9328. this.totalCompanyList[num].result = res.data;
  9329. this.jqstartDate = res.data.startDateJq
  9330. this.jqendDate = res.data.endDateJq
  9331. this.systartDate = res.data.startDateSy
  9332. this.syendDate = res.data.endDateSy
  9333. this.QuotationHistory();
  9334. } else {
  9335. this.totalCompanyList[num].quoteCode = "3";
  9336. this.totalCompanyList[num].msg = res.msg;
  9337. return;
  9338. }
  9339. });
  9340. },
  9341. //华泰报价
  9342. huatai(num, id) {
  9343. let type = this.totalCompanyList[num].apiType;
  9344. let api = type == 2 ? "pythonquote" : "huataiquote";
  9345. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9346. let params = {
  9347. accidentalDrivingVo:{},
  9348. orderNo: this.orderno,
  9349. companyId: id,
  9350. agreementId: this.totalCompanyList[num].agreementId,
  9351. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9352. kinds: this.totalCompanyList[num].kindList || [],
  9353. risks: this.riskList || []
  9354. };
  9355. this.$api.letter[api](params).then((res) => {
  9356. this.totalCompanyList[num].msg = res.msg;
  9357. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  9358. this.totalCompanyList[num].quoteCode = "4";
  9359. this.totalCompanyList[num].msg = res.msg;
  9360. return;
  9361. } else if (
  9362. res.data == null &&
  9363. res.msg.indexOf("交强险平台返回") > -1 &&
  9364. res.msg.indexOf(";终保日期") > -1
  9365. ) {
  9366. //判断保司返回重复投保信息,进行默认赋值起终保日期,重新算费 后面联调需要调整
  9367. let time =
  9368. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  9369. this.jqstartDate = time;
  9370. this.jqendDate = this.oneYearPast1(time);
  9371. this.systartDate = time;
  9372. this.syendDate = this.oneYearPast1(time);
  9373. if (this.riskList.length > 0) {
  9374. for (let i = 0; i < this.riskList.length; i++) {
  9375. if (this.riskList[i].riskCode == "0507") {
  9376. this.riskList[i].startDate = time;
  9377. this.riskList[i].endDate = this.oneYearPast1(time);
  9378. } else if (this.riskList[i].riskCode == "0510") {
  9379. this.riskList[i].startDate = time;
  9380. this.riskList[i].endDate = this.oneYearPast1(time);
  9381. }
  9382. }
  9383. }
  9384. let param = {
  9385. userId: this.userId,
  9386. quoteno: this.quoteno,
  9387. orderNo: this.orderno,
  9388. carInfo: this.carInfo,
  9389. insuredPersonInfo: this.insuredPersonInfo,
  9390. ownerInfo: this.ownerInfo,
  9391. policyHolderInfo: this.policyHolderInfo,
  9392. kindList: this.kindList,
  9393. riskList: this.riskList,
  9394. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9395. kinds: this.totalCompanyList[num].kindList || [],
  9396. risks: this.riskList || []
  9397. };
  9398. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  9399. this.huatai(num, id);
  9400. });
  9401. } else if (!!res.data) {
  9402. this.totalCompanyList[num].quoteCode = 200;
  9403. this.totalCompanyList[num].result = res.data;
  9404. this.jqstartDate = res.data.startDateJq
  9405. this.jqendDate = res.data.endDateJq
  9406. this.systartDate = res.data.startDateSy
  9407. this.syendDate = res.data.endDateSy
  9408. this.QuotationHistory();
  9409. } else {
  9410. this.totalCompanyList[num].quoteCode = "3";
  9411. this.totalCompanyList[num].msg = res.msg;
  9412. return;
  9413. }
  9414. });
  9415. },
  9416. //紫金报价
  9417. zijin(num, id) {
  9418. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9419. let params = {
  9420. accidentalDrivingVo: this.totalCompanyList[num].programme.drivingList || [],
  9421. orderNo: this.orderno,
  9422. companyId: id,
  9423. agreementId: this.totalCompanyList[num].agreementId,
  9424. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9425. coefficient: this.totalCompanyList[num].coefficient,
  9426. kinds: this.totalCompanyList[num].kindList,
  9427. risks: this.riskList,
  9428. productId: this.productId
  9429. };
  9430. this.$api.letter.zijinquote(params).then((res) => {
  9431. this.totalCompanyList[num].msg = res.msg;
  9432. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  9433. this.totalCompanyList[num].quoteCode = "4";
  9434. this.totalCompanyList[num].msg = res.msg;
  9435. return;
  9436. } else if (
  9437. res.data == null &&
  9438. res.msg.indexOf("交强险平台返回") > -1 &&
  9439. res.msg.indexOf(";终保日期") > -1
  9440. ) {
  9441. let time =
  9442. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  9443. this.jqstartDate = time;
  9444. this.jqendDate = this.oneYearPast1(time);
  9445. this.systartDate = time;
  9446. this.syendDate = this.oneYearPast1(time);
  9447. if (this.riskList.length > 0) {
  9448. for (let i = 0; i < this.riskList.length; i++) {
  9449. if (this.riskList[i].riskCode == "0507") {
  9450. this.riskList[i].startDate = time;
  9451. this.riskList[i].endDate = this.oneYearPast1(time);
  9452. } else if (this.riskList[i].riskCode == "0510") {
  9453. this.riskList[i].startDate = time;
  9454. this.riskList[i].endDate = this.oneYearPast1(time);
  9455. }
  9456. }
  9457. }
  9458. let param = {
  9459. userId: this.userId,
  9460. quoteno: this.quoteno,
  9461. orderNo: this.orderno,
  9462. carInfo: this.carInfo,
  9463. insuredPersonInfo: this.insuredPersonInfo,
  9464. ownerInfo: this.ownerInfo,
  9465. policyHolderInfo: this.policyHolderInfo,
  9466. kindList: this.kindList,
  9467. riskList: this.riskList,
  9468. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9469. };
  9470. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  9471. this.zijin(num, id);
  9472. });
  9473. } else if (!!res.data) {
  9474. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  9475. this.totalCompanyList[num].lastYearMsg = "";
  9476. let dat = res.data.warnMessageList;
  9477. dat.map((ele) => {
  9478. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9479. });
  9480. }
  9481. this.totalCompanyList[num].quoteCode = 200;
  9482. this.totalCompanyList[num].result = res.data;
  9483. this.jqstartDate = res.data.startDateJq
  9484. this.jqendDate = res.data.endDateJq
  9485. this.systartDate = res.data.startDateSy
  9486. this.syendDate = res.data.endDateSy
  9487. this.QuotationHistory();
  9488. } else {
  9489. this.totalCompanyList[num].quoteCode = "3";
  9490. this.totalCompanyList[num].msg = res.msg;
  9491. return;
  9492. }
  9493. });
  9494. },
  9495. //永诚报价
  9496. yongcheng(num, id) {
  9497. this.iscCrownerShow = false;
  9498. this.isInsuredShow = false;
  9499. this.isApplicantShow = false;
  9500. let accidentalDrivingVo = {};
  9501. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9502. if (this.accidentForm.projectCode) {
  9503. let data = this.yongchengaccidentDataList.find(
  9504. (val) => val.projectCode == this.yongchengtemplateSelection
  9505. );
  9506. accidentalDrivingVo = {
  9507. ...data,
  9508. quantity: this.accidentForm.quantity
  9509. ? this.accidentForm.quantity
  9510. : "",
  9511. };
  9512. }
  9513. accidentalDrivingVo = this.totalCompanyList[num].programme.drivingList[0] || {}
  9514. let params = {
  9515. accidentalDrivingVo,
  9516. orderNo: this.orderno,
  9517. companyId: id,
  9518. cqryCdeJq: this.cqryCdeJq,
  9519. cqryCdeSy: this.cqryCdeSy,
  9520. renewalCodeJq: this.renewalCodeJq,
  9521. renewalCodeSy: this.renewalCodeSy,
  9522. agreementId: this.totalCompanyList[num].agreementId,
  9523. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9524. kinds: this.totalCompanyList[num].kindList,
  9525. risks: this.riskList
  9526. };
  9527. this.$api.letter.yongchengquote(params).then((res) => {
  9528. this.totalCompanyList[num].msg = res.msg;
  9529. if (
  9530. res.data == null &&
  9531. res.msg.indexOf("车险平台返回") > -1 &&
  9532. res.msg.indexOf(";终保日期") > -1
  9533. ) {
  9534. let time =
  9535. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  9536. this.jqstartDate = time;
  9537. this.jqendDate = this.oneYearPast1(time);
  9538. if (this.riskList.length > 0) {
  9539. for (let i = 0; i < this.riskList.length; i++) {
  9540. if (this.riskList[i].riskCode == "0507") {
  9541. this.riskList[i].startDate = time;
  9542. this.riskList[i].endDate = this.oneYearPast1(time);
  9543. }
  9544. }
  9545. }
  9546. let param = {
  9547. userId: this.userId,
  9548. quoteno: this.quoteno,
  9549. orderNo: this.orderno,
  9550. carInfo: this.carInfo,
  9551. insuredPersonInfo: this.insuredPersonInfo,
  9552. ownerInfo: this.ownerInfo,
  9553. policyHolderInfo: this.policyHolderInfo,
  9554. kindList: this.totalCompanyList[num].kindList,
  9555. riskList: this.riskList,
  9556. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9557. };
  9558. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  9559. this.yongcheng(num, id);
  9560. });
  9561. } else if (res.code == "200") {
  9562. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  9563. this.totalCompanyList[num].lastYearMsg = "";
  9564. let dat = res.data.warnMessageList;
  9565. dat.map((ele) => {
  9566. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9567. });
  9568. }
  9569. this.totalCompanyList[num].quoteCode = 200;
  9570. this.totalCompanyList[num].result = res.data;
  9571. this.jqstartDate = res.data.startDateJq
  9572. this.jqendDate = res.data.endDateJq
  9573. this.systartDate = res.data.startDateSy
  9574. this.syendDate = res.data.endDateSy
  9575. this.QuotationHistory();
  9576. } else if (res.code == "101") {
  9577. this.totalCompanyList[num].quoteCode = "101";
  9578. this.totalCompanyList[num].msg = res.msg;
  9579. this.cqryCdeJq = res.data.cqryCdeJq;
  9580. this.cqryCdeSy = res.data.cqryCdeSy;
  9581. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  9582. let jqBase64 = `data:image/png;base64,${jq}`;
  9583. this.renewalCodeJqImg = jqBase64;
  9584. if (res.data.renewalCodeSy) {
  9585. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  9586. let syBase64 = `data:image/png;base64,${sy}`;
  9587. this.renewalCodeSyImg = syBase64;
  9588. }
  9589. this.renewalCodedialogVisible = true;
  9590. } else if (res.code == "500") {
  9591. // this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
  9592. // this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
  9593. // this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
  9594. // this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
  9595. // this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
  9596. // this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
  9597. this.totalCompanyList[num].quoteCode = "3";
  9598. this.totalCompanyList[num].msg = res.msg;
  9599. } else {
  9600. this.totalCompanyList[num].quoteCode = "3";
  9601. this.totalCompanyList[num].msg = res.msg;
  9602. return;
  9603. }
  9604. });
  9605. },
  9606. //国任报价
  9607. guoRen(num, id) {
  9608. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9609. let guoRenSpecialAgreementVo = [];
  9610. this.zijinengageList.forEach((val) => {
  9611. guoRenSpecialAgreementVo.push({
  9612. clauses: val.clauseName,
  9613. clausesContext: val.clauses,
  9614. clauseCode: val.clauseCode,
  9615. riskCode: val.riskCode,
  9616. riskName: val.riskName,
  9617. });
  9618. });
  9619. let accidentalDrivingVo = {};
  9620. if (this.guoRenaccidentForm.goodsCode) {
  9621. accidentalDrivingVo = this.guoRenaccidentalDrivingVo;
  9622. }
  9623. accidentalDrivingVo = this.totalCompanyList[num].programme.drivingList[0] || {}
  9624. let params = {
  9625. accidentalDrivingVo,
  9626. orderNo: this.orderno,
  9627. companyId: id,
  9628. cqryCdeJq: this.cqryCdeJq,
  9629. cqryCdeSy: this.cqryCdeSy,
  9630. renewalCodeJq: this.renewalCodeJq,
  9631. renewalCodeSy: this.renewalCodeSy,
  9632. agreementId: this.totalCompanyList[num].agreementId,
  9633. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9634. guoRenSpecialAgreementVo,
  9635. kinds: this.totalCompanyList[num].kindList,
  9636. risks: this.riskList,
  9637. productId: this.productId
  9638. };
  9639. this.$api.letter.pythonquote(params).then((res) => {
  9640. this.totalCompanyList[num].msg = res.msg;
  9641. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  9642. this.totalCompanyList[num].quoteCode = "4";
  9643. this.totalCompanyList[num].msg = res.msg;
  9644. return;
  9645. } else if (
  9646. res.data == null &&
  9647. res.msg.indexOf("车险平台返回") > -1 &&
  9648. res.msg.indexOf(";终保日期") > -1
  9649. ) {
  9650. let time =
  9651. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  9652. this.jqstartDate = time;
  9653. this.jqendDate = this.oneYearPast1(time);
  9654. this.systartDate = time;
  9655. this.syendDate = this.oneYearPast1(time);
  9656. if (this.riskList.length > 0) {
  9657. for (let i = 0; i < this.riskList.length; i++) {
  9658. if (this.riskList[i].riskCode == "0507") {
  9659. this.riskList[i].startDate = time;
  9660. this.riskList[i].endDate = this.oneYearPast1(time);
  9661. } else if (this.riskList[i].riskCode == "0510") {
  9662. this.riskList[i].startDate = time;
  9663. this.riskList[i].endDate = this.oneYearPast1(time);
  9664. }
  9665. }
  9666. }
  9667. let param = {
  9668. userId: this.userId,
  9669. quoteno: this.quoteno,
  9670. orderNo: this.orderno,
  9671. carInfo: this.carInfo,
  9672. insuredPersonInfo: this.insuredPersonInfo,
  9673. ownerInfo: this.ownerInfo,
  9674. policyHolderInfo: this.policyHolderInfo,
  9675. kindList: this.totalCompanyList[num].kindList,
  9676. riskList: this.riskList,
  9677. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9678. };
  9679. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  9680. this.guoRen(num, id);
  9681. });
  9682. } else if (res.code == "200") {
  9683. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  9684. this.totalCompanyList[num].lastYearMsg = "";
  9685. let dat = res.data.warnMessageList;
  9686. dat.map((ele) => {
  9687. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9688. });
  9689. }
  9690. this.totalCompanyList[num].quoteCode = 200;
  9691. this.totalCompanyList[num].result = res.data;
  9692. this.jqstartDate = res.data.startDateJq
  9693. this.jqendDate = res.data.endDateJq
  9694. this.systartDate = res.data.startDateSy
  9695. this.syendDate = res.data.endDateSy
  9696. this.QuotationHistory();
  9697. } else if (res.code == "101") {
  9698. this.totalCompanyList[num].quoteCode = "101";
  9699. this.totalCompanyList[num].msg = res.msg;
  9700. this.cqryCdeJq = res.data.cqryCdeJq;
  9701. this.cqryCdeSy = res.data.cqryCdeSy;
  9702. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  9703. let jqBase64 = `data:image/png;base64,${jq}`;
  9704. this.renewalCodeJqImg = jqBase64;
  9705. if (res.data.renewalCodeSy) {
  9706. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  9707. let syBase64 = `data:image/png;base64,${sy}`;
  9708. this.renewalCodeSyImg = syBase64;
  9709. }
  9710. this.renewalCodedialogVisible = true;
  9711. } else {
  9712. this.totalCompanyList[num].quoteCode = "3";
  9713. this.totalCompanyList[num].msg = res.msg;
  9714. return;
  9715. }
  9716. });
  9717. },
  9718. //渤海报价
  9719. bohai(num, id) {
  9720. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9721. let accidentalDrivingVo ={};
  9722. if (this.boHaiaccidentForm.projectCode) {
  9723. accidentalDrivingVo = {
  9724. // packageCode: this.boHaiaccidentForm.packageCode,
  9725. // productCode: this.boHaiaccidentDataList.find(
  9726. // (e) => e.packageCode == this.boHaiaccidentForm.packageCode
  9727. // ).productCode,
  9728. // copies: this.boHaiaccidentForm.copies,
  9729. ...this.boHaiaccidentDataList.find(
  9730. (e) => e.projectCode == this.boHaiaccidentForm.projectCode
  9731. ),
  9732. quantity: this.boHaiaccidentForm.copies
  9733. ? this.boHaiaccidentForm.copies
  9734. : "1",
  9735. }
  9736. }
  9737. accidentalDrivingVo = this.totalCompanyList[num].programme.drivingList[0] || {}
  9738. let params = {
  9739. accidentalDrivingVo,
  9740. orderNo: this.orderno,
  9741. companyId: id,
  9742. cqryCdeJq: this.cqryCdeJq,
  9743. cqryCdeSy: this.cqryCdeSy,
  9744. renewalCodeJq: this.renewalCodeJq,
  9745. renewalCodeSy: this.renewalCodeSy,
  9746. agreementId: this.totalCompanyList[num].agreementId,
  9747. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9748. kinds: this.totalCompanyList[num].kindList,
  9749. risks: this.riskList,
  9750. userId: this.userId,
  9751. };
  9752. this.$api.letter.bohaiquote(params).then((res) => {
  9753. this.totalCompanyList[num].msg = res.msg;
  9754. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  9755. this.totalCompanyList[num].quoteCode = "4";
  9756. this.totalCompanyList[num].msg = res.msg;
  9757. return;
  9758. } else if (
  9759. res.data == null &&
  9760. res.msg.indexOf("车险平台返回") > -1 &&
  9761. res.msg.indexOf(";终保日期") > -1
  9762. ) {
  9763. let time =
  9764. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  9765. this.jqstartDate = time;
  9766. this.jqendDate = this.oneYearPast1(time);
  9767. this.systartDate = time;
  9768. this.syendDate = this.oneYearPast1(time);
  9769. if (this.riskList.length > 0) {
  9770. for (let i = 0; i < this.riskList.length; i++) {
  9771. if (this.riskList[i].riskCode == "0507") {
  9772. this.riskList[i].startDate = time;
  9773. this.riskList[i].endDate = this.oneYearPast1(time);
  9774. } else if (this.riskList[i].riskCode == "0510") {
  9775. this.riskList[i].startDate = time;
  9776. this.riskList[i].endDate = this.oneYearPast1(time);
  9777. }
  9778. }
  9779. }
  9780. let param = {
  9781. userId: this.userId,
  9782. quoteno: this.quoteno,
  9783. orderNo: this.orderno,
  9784. carInfo: this.carInfo,
  9785. insuredPersonInfo: this.insuredPersonInfo,
  9786. ownerInfo: this.ownerInfo,
  9787. policyHolderInfo: this.policyHolderInfo,
  9788. kindList: this.kindList,
  9789. riskList: this.riskList,
  9790. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  9791. };
  9792. return this.$api.letter[this.apiInterfaceName](param).then((res) => {
  9793. this.bohai(num, id);
  9794. });
  9795. } else if (res.code == "200") {
  9796. if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
  9797. this.totalCompanyList[num].lastYearMsg = "";
  9798. let dat = res.data.warnMessageList;
  9799. dat.map((ele) => {
  9800. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9801. });
  9802. }
  9803. this.totalCompanyList[num].quoteCode = 200;
  9804. this.totalCompanyList[num].result = res.data;
  9805. this.jqstartDate = res.data.startDateJq
  9806. this.jqendDate = res.data.endDateJq
  9807. this.systartDate = res.data.startDateSy
  9808. this.syendDate = res.data.endDateSy
  9809. this.QuotationHistory();
  9810. } else if (res.code == "101") {
  9811. this.totalCompanyList[num].quoteCode = "101";
  9812. this.totalCompanyList[num].msg = res.msg;
  9813. this.cqryCdeJq = res.data.cqryCdeJq;
  9814. this.cqryCdeSy = res.data.cqryCdeSy;
  9815. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  9816. let jqBase64 = `data:image/png;base64,${jq}`;
  9817. this.renewalCodeJqImg = jqBase64;
  9818. if (res.data.renewalCodeSy) {
  9819. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  9820. let syBase64 = `data:image/png;base64,${sy}`;
  9821. this.renewalCodeSyImg = syBase64;
  9822. }
  9823. this.renewalCodedialogVisible = true;
  9824. } else {
  9825. this.totalCompanyList[num].quoteCode = "3";
  9826. this.totalCompanyList[num].msg = res.msg;
  9827. return;
  9828. }
  9829. });
  9830. },
  9831. // 爬虫对接
  9832. quoteInsurance(num, id, namesimple, apiType) {
  9833. console.log(apiType, 'apiType')
  9834. let api = apiType == 2 ? "pythonquote" : "";
  9835. let ccidenttype = this.totalCompanyList[num].cnName;
  9836. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  9837. // accidentalDrivingVo = this.totalCompanyList[num].programme.drivingList[0] || {}
  9838. let params = {
  9839. // accidentalDrivingVo: this[ccidenttype + "accidentalDrivingVo"],
  9840. accidentalDrivingVo: this.totalCompanyList[num].programme.drivingList[0] || {},
  9841. orderNo: this.orderno,
  9842. companyId: id,
  9843. userId: this.userId,
  9844. agreementId: this.totalCompanyList[num].agreementId,
  9845. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  9846. kinds: this.totalCompanyList[num].kindList || [],
  9847. risks: this.riskList || [],
  9848. productId: this.productId
  9849. };
  9850. if (namesimple == "中国人寿" && this.lastCompanyId) {
  9851. params.discount = this.totalCompanyList[num].discount;
  9852. params.lastCompanyId = this.lastCompanyId;
  9853. }
  9854. if (
  9855. namesimple == "华农财险" &&
  9856. this.huanongaccidentalDrivingVo.quantity
  9857. ) {
  9858. params.accidentalDrivingVo.quantity = this.accidentFormHN.quantity;
  9859. // params.accidentalDrivingVo.allQuantity = this.accidentFormHN.allQuantity;
  9860. }
  9861. this.$api.letter[api] (params).then((res) => {
  9862. this.totalCompanyList[num].msg = res.msg;
  9863. switch (namesimple) {
  9864. case "安盛天平":
  9865. case "诚泰财险":
  9866. case "泰康财险":
  9867. case "中国人寿":
  9868. case "恒邦财险":
  9869. case "华农财险":
  9870. case "太平财险":
  9871. if (!!res.data) {
  9872. if (
  9873. res.data.warnMessageList &&
  9874. res.data.warnMessageList.length > 0
  9875. ) {
  9876. this.totalCompanyList[num].lastYearMsg = "";
  9877. let dat = res.data.warnMessageList;
  9878. dat.map((ele) => {
  9879. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9880. });
  9881. }
  9882. if (res.data.predictInfo && res.data.predictInfo.length > 0) {
  9883. this.totalCompanyList[num].predictInfo = res.data.predictInfo;
  9884. }
  9885. this.totalCompanyList[num].quoteCode = 200;
  9886. this.totalCompanyList[num].result = res.data;
  9887. if (namesimple == "中国人寿" && res.data.companyId) {
  9888. this.lastCompanyId = res.data.companyId;
  9889. }
  9890. this.jqstartDate = res.data.startDateJq
  9891. this.jqendDate = res.data.endDateJq
  9892. this.systartDate = res.data.startDateSy
  9893. this.syendDate = res.data.endDateSy
  9894. this.QuotationHistory();
  9895. } else {
  9896. this.totalCompanyList[num].quoteCode = "3";
  9897. this.totalCompanyList[num].msg = res.msg;
  9898. return;
  9899. }
  9900. break;
  9901. case "众安财险":
  9902. if (!!res.data) {
  9903. if (res.data.tips == "需要验车") {
  9904. this.$notify.error({
  9905. title: "通融单",
  9906. duration: 0,
  9907. dangerouslyUseHTMLString: true,
  9908. message: `<div> ${res.data.warnMessageList
  9909. .map((item) => {
  9910. return `<p>${item}</p>`;
  9911. })
  9912. .join("")}
  9913. </div>`,
  9914. });
  9915. }
  9916. if (
  9917. res.data.warnMessageList &&
  9918. res.data.warnMessageList.length > 0
  9919. ) {
  9920. this.totalCompanyList[num].lastYearMsg = "";
  9921. let dat = res.data.warnMessageList;
  9922. dat.map((ele) => {
  9923. this.totalCompanyList[num].lastYearMsg += ele + "<br>";
  9924. });
  9925. }
  9926. this.totalCompanyList[num].quoteCode = 200;
  9927. this.totalCompanyList[num].result = res.data;
  9928. this.jqstartDate = res.data.startDateJq
  9929. this.jqendDate = res.data.endDateJq
  9930. this.systartDate = res.data.startDateSy
  9931. this.syendDate = res.data.endDateSy
  9932. this.QuotationHistory();
  9933. } else {
  9934. this.totalCompanyList[num].quoteCode = "3";
  9935. this.totalCompanyList[num].msg = res.msg;
  9936. return;
  9937. }
  9938. break;
  9939. default:
  9940. break;
  9941. }
  9942. });
  9943. },
  9944. //安盛天平
  9945. ansheng(num, id, namesimple) {
  9946. this.quoteInsurance(
  9947. num,
  9948. id,
  9949. namesimple,
  9950. this.totalCompanyList[num].apiType
  9951. );
  9952. },
  9953. //众安
  9954. zhongan(num, id, namesimple) {
  9955. this.quoteInsurance(
  9956. num,
  9957. id,
  9958. namesimple,
  9959. this.totalCompanyList[num].apiType
  9960. );
  9961. },
  9962. //人寿
  9963. renshou(num, id, namesimple) {
  9964. this.quoteInsurance(
  9965. num,
  9966. id,
  9967. namesimple,
  9968. this.totalCompanyList[num].apiType
  9969. );
  9970. },
  9971. //恒邦
  9972. hengbang(num, id, namesimple) {
  9973. this.quoteInsurance(
  9974. num,
  9975. id,
  9976. namesimple,
  9977. this.totalCompanyList[num].apiType
  9978. );
  9979. },
  9980. //诚泰
  9981. chengtai(num, id, namesimple) {
  9982. this.quoteInsurance(
  9983. num,
  9984. id,
  9985. namesimple,
  9986. this.totalCompanyList[num].apiType
  9987. );
  9988. },
  9989. //太平
  9990. taiping(num, id, namesimple) {
  9991. this.quoteInsurance(
  9992. num,
  9993. id,
  9994. namesimple,
  9995. this.totalCompanyList[num].apiType
  9996. );
  9997. },
  9998. //华农
  9999. huanong(num, id, namesimple) {
  10000. this.quoteInsurance(
  10001. num,
  10002. id,
  10003. namesimple,
  10004. this.totalCompanyList[num].apiType
  10005. );
  10006. },
  10007. capTypedictTag(val, option) {
  10008. if (option.find((item) => item.dictValue == val)) {
  10009. return option.find((item) => item.dictValue == val).dictTag;
  10010. } else {
  10011. return "-";
  10012. }
  10013. },
  10014. // 爬虫对接
  10015. qoutedetail(companyId) {
  10016. let params = {
  10017. companyId: companyId,
  10018. };
  10019. this.$api.letter.getByCompanyId(params).then((res) => {
  10020. if (res.code == "200") {
  10021. var data = res.data;
  10022. data.kindinfo.map((ele, index) => {
  10023. switch (ele.kindCode) {
  10024. case "A":
  10025. ele.amount = "投保";
  10026. break;
  10027. case "D4":
  10028. case "SY_FJ_YBW2":
  10029. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  10030. break;
  10031. case "MJ1":
  10032. case "MJ2":
  10033. case "MJ3":
  10034. case "MJ4":
  10035. ele.deductibleRate = ele.deductibleRate + "%";
  10036. break;
  10037. default:
  10038. ele.amount = this.toChinesNum(ele.amount);
  10039. }
  10040. return ele;
  10041. });
  10042. if (
  10043. (data.carinfo.carnature && data.carinfo.carnature == "02") ||
  10044. data.carinfo.carnature == "非营业"
  10045. ) {
  10046. data.carinfo.vehicleUse = this.capTypedictTag(
  10047. data.carinfo.vehicleUse,
  10048. this.outOfBusinessVehicleUseoptions
  10049. );
  10050. } else {
  10051. data.carinfo.vehicleUse = this.capTypedictTag(
  10052. data.carinfo.vehicleUse,
  10053. this.businessVehicleUseoptions
  10054. );
  10055. }
  10056. data.carinfo.carnature = this.capTypedictTag(
  10057. data.carinfo.carnature,
  10058. this.natureOfVehicleUseoptions
  10059. );
  10060. data.carinfo.cartype = data.carinfo.cartype
  10061. ? this.capTypedictTag(
  10062. data.carinfo.cartype,
  10063. this.trafficManagementVehicleTypeoptions
  10064. )
  10065. : "";
  10066. data.carinfo.cimodelclass = data.carinfo.cimodelclass
  10067. ? this.capTypedictTag(
  10068. data.carinfo.cimodelclass,
  10069. this.vehicleTypeoptions
  10070. )
  10071. : "";
  10072. data.carinfo.energyType = data.carinfo.energyType
  10073. ? this.capTypedictTag(
  10074. data.carinfo.energyType,
  10075. this.energyTypeoptions
  10076. )
  10077. : "";
  10078. this.queryOrders = data;
  10079. //赋值费用信息
  10080. // this.feeDetailInfo=data.orderFeeResult;
  10081. }
  10082. });
  10083. this.$refs.detailsDialog.setBackupVisible(true);
  10084. },
  10085. imageUpload() {
  10086. this.imageUploaddialogVisible = true;
  10087. // this.$refs.imageDialog.setBackupVisible(true);
  10088. },
  10089. tabLiScroll(id, idx) {
  10090. this.tabLiIndex = idx;
  10091. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  10092. },
  10093. //影像上传
  10094. drivingupload(file, imageIdList, imgurl, type) {
  10095. let that = this;
  10096. let size = file.size / 1024 / 1024 < 5;
  10097. const isJPG =
  10098. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  10099. if (!size) {
  10100. this.$message.error("上传图片大小不能超过 5MB!");
  10101. this[imgurl] = [];
  10102. return false;
  10103. }
  10104. if (!isJPG) {
  10105. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  10106. this[imgurl] = [];
  10107. return false;
  10108. }
  10109. this[imgurl].push(file);
  10110. var file = file.raw;
  10111. const params = new FormData(); // 声明formData数据类型
  10112. params.append("multipartFile", file);
  10113. params.append("type", "image");
  10114. this.$api.letter.uploadFile(params).then((res) => {
  10115. if (res.code == "200") {
  10116. if (this[imageIdList].some((v) => v.imageType == type)) {
  10117. this[imageIdList].map((val) => {
  10118. if (val.imageType == type) {
  10119. val.imageId = res.data.id;
  10120. }
  10121. });
  10122. } else {
  10123. this[imageIdList].push({
  10124. imageId: res.data.id,
  10125. imageType: type,
  10126. });
  10127. }
  10128. }
  10129. });
  10130. },
  10131. imageEcho(quotenos) {
  10132. //影像查询
  10133. this.$api.letter.findByQuoteNo(quotenos).then((res) => {
  10134. if (res.code == "200") {
  10135. this.imageList1 = [];
  10136. this.imageList2 = [];
  10137. this.imageList3 = [];
  10138. this.imageList4 = [];
  10139. this.imageList5 = [];
  10140. this.imageList6 = [];
  10141. this.imgList1 = [];
  10142. this.imgList2 = [];
  10143. this.imgList3 = [];
  10144. this.imgList4 = [];
  10145. this.imgList5 = [];
  10146. this.imgList6 = [];
  10147. this.imgList7 = [];
  10148. this.imgList8 = [];
  10149. this.imgList9 = [];
  10150. this.imgList10 = [];
  10151. this.imgList11 = [];
  10152. this.imgList12 = [];
  10153. this.imgList13 = [];
  10154. this.imgList14 = [];
  10155. this.imgList15 = [];
  10156. this.imgList16 = [];
  10157. this.imgList17 = [];
  10158. this.imgList18 = [];
  10159. this.imgList19 = [];
  10160. this.imgList20 = [];
  10161. this.imgList21 = [];
  10162. this.imgList22 = [];
  10163. this.imgList23 = [];
  10164. this.imgList24 = [];
  10165. Object.keys(res.data).forEach((keys) => {
  10166. if (res.data[keys].url) {
  10167. res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
  10168. switch (keys) {
  10169. case "C01":
  10170. this.imageList1.push({
  10171. imageId: res.data[keys].imageId,
  10172. imageType: res.data[keys].imageType,
  10173. });
  10174. this.imgList1.push(res.data[keys]);
  10175. break;
  10176. case "D01":
  10177. this.imageList1.push({
  10178. imageId: res.data[keys].imageId,
  10179. imageType: res.data[keys].imageType,
  10180. });
  10181. this.imgList2.push(res.data[keys]);
  10182. break;
  10183. case "C02":
  10184. this.imageList2.push({
  10185. imageId: res.data[keys].imageId,
  10186. imageType: res.data[keys].imageType,
  10187. });
  10188. this.imgList3.push(res.data[keys]);
  10189. break;
  10190. case "D02":
  10191. this.imageList2.push({
  10192. imageId: res.data[keys].imageId,
  10193. imageType: res.data[keys].imageType,
  10194. });
  10195. this.imgList4.push(res.data[keys]);
  10196. break;
  10197. case "C03":
  10198. this.imageList3.push({
  10199. imageId: res.data[keys].imageId,
  10200. imageType: res.data[keys].imageType,
  10201. });
  10202. this.imgList5.push(res.data[keys]);
  10203. break;
  10204. case "D03":
  10205. this.imageList3.push({
  10206. imageId: res.data[keys].imageId,
  10207. imageType: res.data[keys].imageType,
  10208. });
  10209. this.imgList6.push(res.data[keys]);
  10210. break;
  10211. case "C04":
  10212. this.imageList4.push({
  10213. imageId: res.data[keys].imageId,
  10214. imageType: res.data[keys].imageType,
  10215. });
  10216. this.imgList7.push(res.data[keys]);
  10217. break;
  10218. case "D04":
  10219. this.imageList4.push({
  10220. imageId: res.data[keys].imageId,
  10221. imageType: res.data[keys].imageType,
  10222. });
  10223. this.imgList8.push(res.data[keys]);
  10224. break;
  10225. case "XC00":
  10226. this.imageList5.push({
  10227. imageId: res.data[keys].imageId,
  10228. imageType: res.data[keys].imageType,
  10229. });
  10230. this.imgList9.push(res.data[keys]);
  10231. break;
  10232. case "GC00":
  10233. this.imageList5.push({
  10234. imageId: res.data[keys].imageId,
  10235. imageType: res.data[keys].imageType,
  10236. });
  10237. this.imgList10.push(res.data[keys]);
  10238. break;
  10239. case "GX00":
  10240. this.imageList5.push({
  10241. imageId: res.data[keys].imageId,
  10242. imageType: res.data[keys].imageType,
  10243. });
  10244. this.imgList11.push(res.data[keys]);
  10245. break;
  10246. case "TAR05":
  10247. this.imageList1.push({
  10248. imageId: res.data[keys].imageId,
  10249. imageType: res.data[keys].imageType,
  10250. });
  10251. this.imgList12.push(res.data[keys]);
  10252. break;
  10253. case "C0500":
  10254. this.imageList6.push({
  10255. imageId: res.data[keys].imageId,
  10256. imageType: res.data[keys].imageType,
  10257. });
  10258. this.imgList13.push(res.data[keys]);
  10259. break;
  10260. case "C0501":
  10261. this.imageList6.push({
  10262. imageId: res.data[keys].imageId,
  10263. imageType: res.data[keys].imageType,
  10264. });
  10265. this.imgList14.push(res.data[keys]);
  10266. break;
  10267. case "C0502":
  10268. this.imageList6.push({
  10269. imageId: res.data[keys].imageId,
  10270. imageType: res.data[keys].imageType,
  10271. });
  10272. this.imgList15.push(res.data[keys]);
  10273. break;
  10274. case "C0503":
  10275. this.imageList6.push({
  10276. imageId: res.data[keys].imageId,
  10277. imageType: res.data[keys].imageType,
  10278. });
  10279. this.imgList16.push(res.data[keys]);
  10280. break;
  10281. case "C0504":
  10282. this.imageList6.push({
  10283. imageId: res.data[keys].imageId,
  10284. imageType: res.data[keys].imageType,
  10285. });
  10286. this.imgList17.push(res.data[keys]);
  10287. break;
  10288. case "C0506":
  10289. this.imageList6.push({
  10290. imageId: res.data[keys].imageId,
  10291. imageType: res.data[keys].imageType,
  10292. });
  10293. this.imgList18.push(res.data[keys]);
  10294. break;
  10295. case "C0507":
  10296. this.imageList6.push({
  10297. imageId: res.data[keys].imageId,
  10298. imageType: res.data[keys].imageType,
  10299. });
  10300. this.imgList19.push(res.data[keys]);
  10301. break;
  10302. case "C0505":
  10303. this.imageList6.push({
  10304. imageId: res.data[keys].imageId,
  10305. imageType: res.data[keys].imageType,
  10306. });
  10307. this.imgList20.push(res.data[keys]);
  10308. break;
  10309. case "C0508":
  10310. this.imageList6.push({
  10311. imageId: res.data[keys].imageId,
  10312. imageType: res.data[keys].imageType,
  10313. });
  10314. this.imgList21.push(res.data[keys]);
  10315. break;
  10316. case "C0509":
  10317. this.imageList6.push({
  10318. imageId: res.data[keys].imageId,
  10319. imageType: res.data[keys].imageType,
  10320. });
  10321. this.imgList22.push(res.data[keys]);
  10322. break;
  10323. case "C0510":
  10324. this.imageList6.push({
  10325. imageId: res.data[keys].imageId,
  10326. imageType: res.data[keys].imageType,
  10327. });
  10328. this.imgList23.push(res.data[keys]);
  10329. break;
  10330. case "LAST_INSURANCE_POLICY":
  10331. this.imageList6.push({
  10332. imageId: res.data[keys].imageId,
  10333. imageType: res.data[keys].imageType,
  10334. });
  10335. this.imgList24.push(res.data[keys]);
  10336. break;
  10337. default:
  10338. break;
  10339. }
  10340. }
  10341. });
  10342. } else {
  10343. this.$message({ message: res.msg, type: "info" });
  10344. }
  10345. });
  10346. },
  10347. policyUpload() {
  10348. this.policyNumberForm.jqPolicyList = !this.policyNumberForm.jqPolicyList
  10349. ? []
  10350. : this.policyNumberForm.jqPolicyList;
  10351. this.policyNumberForm.jqSignList = !this.policyNumberForm.jqSignList
  10352. ? []
  10353. : this.policyNumberForm.jqSignList;
  10354. this.policyNumberForm.syPolicyList = !this.policyNumberForm.syPolicyList
  10355. ? []
  10356. : this.policyNumberForm.syPolicyList;
  10357. this.policyNumberForm.noPolicyList = !this.policyNumberForm.noPolicyList
  10358. ? []
  10359. : this.policyNumberForm.noPolicyList;
  10360. this.policyUploaddialogVisible = true;
  10361. },
  10362. cancelorder(item) {
  10363. this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
  10364. if (res.code == 200) {
  10365. this.$message({
  10366. message: res.msg,
  10367. type: "success",
  10368. });
  10369. this.QuotationHistory();
  10370. }
  10371. });
  10372. },
  10373. hbsubmitdialog(data, index) {
  10374. this.typeDialogIndex = index // 当前的公司index
  10375. if (this.imageList1.length == 0 && this.imageList2.length == 0) {
  10376. this.$message({ message: "影像不全,先上传影像", type: "error" });
  10377. return;
  10378. }
  10379. this.companyId = data.result.companyId;
  10380. this.apiType = data.result.apiType;
  10381. this.hbsubmitdialogVisible = true;
  10382. this.contributingState = false;
  10383. if (data.namesimple == "紫金财险") {
  10384. this.$api.letter
  10385. .zijinqueryClauseData({ companyId: this.companyId })
  10386. .then((res) => {
  10387. this.zijinengageListData = res.data;
  10388. });
  10389. }
  10390. if (data.namesimple == "华泰财险") {
  10391. this.zijinengageList = [];
  10392. this.$api.letter
  10393. .huataiqueryClauseData({ companyId: this.companyId })
  10394. .then((res) => {
  10395. res.data.forEach((val) => {
  10396. val.clauseCode = val.engageCode;
  10397. val.clauseName = val.engageTitle;
  10398. val.clauseContent = val.engageDetail;
  10399. val.clauses = val.engageDetail;
  10400. });
  10401. this.zijinengageListData = res.data;
  10402. this.zijinengageListData.forEach((val) => {
  10403. this.$nextTick(() => {
  10404. if (val.optType == "2") {
  10405. this.zijinengageList.push(val);
  10406. this.$refs.expandTablePro.toggleRowSelection(val, true);
  10407. }
  10408. });
  10409. });
  10410. });
  10411. } else {
  10412. this.zijinengageListData = [];
  10413. }
  10414. // switch (data.namesimple) {
  10415. // case "紫金财险":
  10416. // this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
  10417. // this.zijinengageListData = res.data;
  10418. // });
  10419. // break;
  10420. // default:
  10421. // break;
  10422. // }
  10423. },
  10424. hbsubmit() {
  10425. this.hbsubmitdialogVisible = false;
  10426. this.contributingState = false;
  10427. this.$api.letter
  10428. .getByCompanyId({ companyId: this.companyId })
  10429. .then(async (res) => {
  10430. if (res.code == 200) {
  10431. var data = res.data;
  10432. this.queryOrders = data;
  10433. const loading = this.$loading({
  10434. lock: true,
  10435. text: "Loading",
  10436. spinner: "el-icon-loading",
  10437. background: "rgba(0, 0, 0, 0.7)",
  10438. });
  10439. switch (this.queryOrders.inscompany) {
  10440. case "永安财险":
  10441. let api = "";
  10442. api =
  10443. this.apiType == 2
  10444. ? "pythonsubmitImage"
  10445. : "insyongansubmitImage";
  10446. await this.$api.letter[api]({
  10447. companyId: this.companyId,
  10448. }).then((res) => {
  10449. if (res.code == "200") {
  10450. var _this = this;
  10451. let api1 = "";
  10452. api1 = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
  10453. this.$api.letter[api1]({
  10454. companyId: this.companyId,
  10455. }).then((res) => {
  10456. var _this = this;
  10457. if (res.code == "200") {
  10458. loading.close();
  10459. this.$message({
  10460. message: "核保成功",
  10461. type: "success",
  10462. });
  10463. this.QuotationHistory();
  10464. _this.$api.letter
  10465. .getByCompanyId({ companyId: this.companyId })
  10466. .then((res) => {
  10467. _this.orderstatus = res.data.orderstatus; //订单状态
  10468. _this.underwritingdialogVisible = true;
  10469. let indexid = this.totalCompanyList.findIndex(
  10470. (item) =>
  10471. item.namesimple == this.queryOrders.inscompany
  10472. );
  10473. this.totalCompanyList[indexid].orderstatus =
  10474. res.data.orderstatus;
  10475. });
  10476. } else {
  10477. loading.close();
  10478. this.$message({
  10479. showClose: true,
  10480. message:
  10481. this.queryOrders.inscompany + "提核--:" + res.msg,
  10482. type: "error",
  10483. duration: 0,
  10484. });
  10485. }
  10486. });
  10487. } else {
  10488. this.$message({
  10489. message: this.queryOrders.inscompany + "影像:" + res.msg,
  10490. type: "error",
  10491. duration: 7000,
  10492. });
  10493. loading.close();
  10494. }
  10495. });
  10496. break;
  10497. case "中煤财险":
  10498. let ZMApiImage = "";
  10499. ZMApiImage =
  10500. this.apiType == 2
  10501. ? "pythonsubmitImage"
  10502. : "insZhongmeisubmitImage";
  10503. await this.$api.letter[ZMApiImage]({
  10504. [this.apiType == 2 ? "subOrderNo" : "companyId"]:
  10505. this.companyId,
  10506. }).then((res) => {
  10507. // await this.$api.letter
  10508. // .insZhongmeisubmitImage({
  10509. // companyId: this.companyId,
  10510. // })
  10511. // .then((res) => {
  10512. if (res.code == "200") {
  10513. var _this = this;
  10514. let ZMApiaudit = "";
  10515. ZMApiaudit =
  10516. this.apiType == 2 ? "pythonaudit" : "Zhongmeiaudit";
  10517. _this.$api.letter[ZMApiaudit]({
  10518. // _this.$api.letter
  10519. // .Zhongmeiaudit({
  10520. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
  10521. // companyId: this.companyId,
  10522. jqappoint: "",
  10523. syappoint: "",
  10524. })
  10525. .then((res) => {
  10526. if (res.code == "200") {
  10527. loading.close();
  10528. _this.$message({
  10529. message: "核保成功",
  10530. type: "success",
  10531. });
  10532. this.QuotationHistory();
  10533. _this.$api.letter
  10534. .getByCompanyId({ companyId: this.companyId })
  10535. .then((res) => {
  10536. _this.orderstatus = res.data.orderstatus; //订单状态
  10537. _this.underwritingdialogVisible = true;
  10538. let indexid = this.totalCompanyList.findIndex(
  10539. (item) =>
  10540. item.namesimple ==
  10541. this.queryOrders.inscompany
  10542. );
  10543. this.totalCompanyList[indexid].orderstatus =
  10544. res.data.orderstatus;
  10545. });
  10546. } else {
  10547. loading.close();
  10548. _this.$message({
  10549. showClose: true,
  10550. message:
  10551. this.queryOrders.inscompany +
  10552. "提核--:" +
  10553. res.msg,
  10554. type: "error",
  10555. duration: 0,
  10556. });
  10557. _this.$api.letter
  10558. .getByCompanyId({ companyId: this.companyId })
  10559. .then((res) => {
  10560. _this.orderstatus = res.data.orderstatus; //订单状态
  10561. });
  10562. }
  10563. });
  10564. } else {
  10565. this.$message({
  10566. message:
  10567. this.queryOrders.inscompany + "影像--:" + res.msg,
  10568. type: "error",
  10569. duration: 7000,
  10570. });
  10571. loading.close();
  10572. }
  10573. });
  10574. break;
  10575. case "华泰财险":
  10576. let HtApiImage = "";
  10577. HtApiImage =
  10578. this.apiType == 2
  10579. ? "pythonsubmitImage"
  10580. : "insHuataisubmitImage";
  10581. await this.$api.letter[HtApiImage]({
  10582. [this.apiType == 2 ? "subOrderNo" : "companyId"]:
  10583. this.companyId,
  10584. }).then((res) => {
  10585. if (res.code == "200") {
  10586. var _this = this;
  10587. let HtApiaudit = "";
  10588. HtApiaudit =
  10589. this.apiType == 2 ? "pythonaudit" : "huataiaudit";
  10590. let engageList = [];
  10591. this.zijinengageList.forEach((val) => {
  10592. engageList.push({
  10593. engageCode: val.clauseCode,
  10594. engageDetail: val.clauses,
  10595. engageTitle: val.clauseName,
  10596. riskCode: val.riskCode,
  10597. });
  10598. });
  10599. _this.$api.letter[HtApiaudit]({
  10600. [this.apiType == 2 ? "subOrderNo" : "companyId"]:
  10601. this.companyId,
  10602. engageList,
  10603. }).then((res) => {
  10604. if (res.code == "200") {
  10605. loading.close();
  10606. _this.$message({
  10607. message: "核保成功",
  10608. type: "success",
  10609. });
  10610. this.QuotationHistory();
  10611. _this.$api.letter
  10612. .getByCompanyId({ companyId: this.companyId })
  10613. .then((res) => {
  10614. _this.orderstatus = res.data.orderstatus; //订单状态
  10615. _this.underwritingdialogVisible = true;
  10616. let indexid = this.totalCompanyList.findIndex(
  10617. (item) =>
  10618. item.namesimple == this.queryOrders.inscompany
  10619. );
  10620. this.totalCompanyList[indexid].orderstatus =
  10621. res.data.orderstatus;
  10622. });
  10623. } else {
  10624. loading.close();
  10625. _this.$message({
  10626. showClose: true,
  10627. message:
  10628. this.queryOrders.inscompany + "提核--:" + res.msg,
  10629. type: "error",
  10630. duration: 0,
  10631. });
  10632. _this.$api.letter
  10633. .getByCompanyId({ companyId: this.companyId })
  10634. .then((res) => {
  10635. _this.orderstatus = res.data.orderstatus; //订单状态
  10636. });
  10637. }
  10638. });
  10639. } else {
  10640. this.$message({
  10641. message:
  10642. this.queryOrders.inscompany + "影像--:" + res.msg,
  10643. type: "error",
  10644. duration: 7000,
  10645. });
  10646. loading.close();
  10647. }
  10648. });
  10649. break;
  10650. case "紫金财险":
  10651. await this.$api.letter
  10652. .zijinsubmitImage({
  10653. companyId: this.companyId,
  10654. })
  10655. .then((res) => {
  10656. if (res.code == "200") {
  10657. var _this = this;
  10658. _this.$api.letter
  10659. .zijinaudit({
  10660. companyId: this.companyId,
  10661. engageList: this.zijinengageList,
  10662. })
  10663. .then((res) => {
  10664. if (res.code == "200") {
  10665. loading.close();
  10666. _this.$message({
  10667. message: "核保成功",
  10668. type: "success",
  10669. });
  10670. this.QuotationHistory();
  10671. _this.$api.letter
  10672. .getByCompanyId({ companyId: this.companyId })
  10673. .then((res) => {
  10674. _this.orderstatus = res.data.orderstatus; //订单状态
  10675. _this.underwritingdialogVisible = true;
  10676. let indexid = this.totalCompanyList.findIndex(
  10677. (item) =>
  10678. item.namesimple ==
  10679. this.queryOrders.inscompany
  10680. );
  10681. this.totalCompanyList[indexid].orderstatus =
  10682. res.data.orderstatus;
  10683. });
  10684. } else {
  10685. loading.close();
  10686. _this.$message({
  10687. showClose: true,
  10688. dangerouslyUseHTMLString: true,
  10689. message:
  10690. this.queryOrders.inscompany +
  10691. "提核--:" +
  10692. res.msg,
  10693. type: "error",
  10694. duration: 0,
  10695. });
  10696. _this.$api.letter
  10697. .getByCompanyId({ companyId: this.companyId })
  10698. .then((res) => {
  10699. _this.orderstatus = res.data.orderstatus; //订单状态
  10700. });
  10701. }
  10702. });
  10703. } else {
  10704. this.$message({
  10705. message:
  10706. this.queryOrders.inscompany + "影像--:" + res.msg,
  10707. type: "error",
  10708. duration: 7000,
  10709. });
  10710. loading.close();
  10711. }
  10712. });
  10713. break;
  10714. case "国任财险":
  10715. await this.$api.letter
  10716. .insguorensubmitImage({
  10717. companyId: this.companyId,
  10718. })
  10719. .then((res) => {
  10720. if (res.code == "200") {
  10721. var _this = this;
  10722. _this.$api.letter
  10723. .gunrenaudit({
  10724. companyId: this.companyId,
  10725. })
  10726. .then((res) => {
  10727. if (res.code == "200") {
  10728. loading.close();
  10729. _this.cqryCdeJq = "";
  10730. _this.cqryCdeSy = "";
  10731. _this.renewalCodeJq = "";
  10732. _this.renewalCodeSy = "";
  10733. this.$message({
  10734. message: "核保成功",
  10735. type: "success",
  10736. });
  10737. this.QuotationHistory();
  10738. _this.$api.letter
  10739. .getByCompanyId({ companyId: this.companyId })
  10740. .then((res) => {
  10741. _this.orderstatus = res.data.orderstatus; //订单状态
  10742. _this.underwritingdialogVisible = true;
  10743. let indexid = this.totalCompanyList.findIndex(
  10744. (item) =>
  10745. item.namesimple ==
  10746. this.queryOrders.inscompany
  10747. );
  10748. this.totalCompanyList[indexid].orderstatus =
  10749. res.data.orderstatus;
  10750. });
  10751. } else {
  10752. loading.close();
  10753. this.$message({
  10754. showClose: true,
  10755. message: res.msg,
  10756. type: "error",
  10757. duration: 0,
  10758. });
  10759. }
  10760. });
  10761. } else {
  10762. loading.close();
  10763. this.$message({
  10764. message: res.msg,
  10765. type: "error",
  10766. duration: 7000,
  10767. });
  10768. }
  10769. });
  10770. break;
  10771. case "渤海财险":
  10772. await this.$api.letter
  10773. .insbohaisubmitImage({
  10774. companyId: this.companyId,
  10775. })
  10776. .then((res) => {
  10777. if (res.code == "200") {
  10778. var _this = this;
  10779. _this.$api.letter
  10780. .bohaiaudit({
  10781. companyId: this.companyId,
  10782. })
  10783. .then((res) => {
  10784. if (res.code == "200") {
  10785. loading.close();
  10786. _this.cqryCdeJq = "";
  10787. _this.cqryCdeSy = "";
  10788. _this.renewalCodeJq = "";
  10789. _this.renewalCodeSy = "";
  10790. this.$message({
  10791. message: "核保成功",
  10792. type: "success",
  10793. });
  10794. this.QuotationHistory();
  10795. _this.$api.letter
  10796. .getByCompanyId({ companyId: this.companyId })
  10797. .then((res) => {
  10798. _this.orderstatus = res.data.orderstatus; //订单状态
  10799. _this.underwritingdialogVisible = true;
  10800. let indexid = this.totalCompanyList.findIndex(
  10801. (item) =>
  10802. item.namesimple ==
  10803. this.queryOrders.inscompany
  10804. );
  10805. this.totalCompanyList[indexid].orderstatus =
  10806. res.data.orderstatus;
  10807. });
  10808. } else {
  10809. loading.close();
  10810. this.$message({
  10811. showClose: true,
  10812. message: res.msg,
  10813. type: "error",
  10814. duration: 0,
  10815. });
  10816. }
  10817. });
  10818. } else {
  10819. loading.close();
  10820. this.$message({
  10821. message: res.msg,
  10822. type: "error",
  10823. duration: 7000,
  10824. });
  10825. }
  10826. });
  10827. break;
  10828. case "恒邦财险":
  10829. case "华农财险":
  10830. case "太平财险":
  10831. case "安盛天平":
  10832. case "众安财险":
  10833. case "中国人寿":
  10834. case "诚泰财险":
  10835. case "泰康财险":
  10836. let hengbangapi = "";
  10837. hengbangapi =
  10838. this.apiType == 2
  10839. ? "pythonsubmitImage"
  10840. : "anshengsubmitImage";
  10841. console.log(hengbangapi, "hengbangapi");
  10842. await this.$api.letter[hengbangapi]({
  10843. subOrderNo: this.companyId,
  10844. }).then((res) => {
  10845. if (res.code == "200") {
  10846. var _this = this;
  10847. let hengbangapi1 = "";
  10848. hengbangapi1 =
  10849. this.apiType == 2 ? "pythonaudit" : "anshengaudit";
  10850. console.log(hengbangapi1, "hengbangapi1");
  10851. _this.$api.letter[hengbangapi1]({
  10852. subOrderNo: this.companyId,
  10853. }).then((res) => {
  10854. if (res.code == "200") {
  10855. loading.close();
  10856. this.$message({
  10857. message: "核保成功",
  10858. type: "success",
  10859. });
  10860. this.QuotationHistory();
  10861. _this.$api.letter
  10862. .getByCompanyId({ companyId: this.companyId })
  10863. .then((res) => {
  10864. _this.orderstatus = res.data.orderstatus; //订单状态
  10865. _this.underwritingdialogVisible = true;
  10866. let indexid = this.totalCompanyList.findIndex(
  10867. (item) =>
  10868. item.namesimple == this.queryOrders.inscompany
  10869. );
  10870. this.totalCompanyList[indexid].orderstatus =
  10871. res.data.orderstatus;
  10872. });
  10873. } else {
  10874. loading.close();
  10875. this.$message({
  10876. showClose: true,
  10877. dangerouslyUseHTMLString: true,
  10878. message:
  10879. this.queryOrders.inscompany +
  10880. "提核--:" +
  10881. res.msg.replace(/\n/g, "<br><br>"),
  10882. type: "error",
  10883. duration: 0,
  10884. });
  10885. }
  10886. });
  10887. } else {
  10888. loading.close();
  10889. this.$message({
  10890. message:
  10891. this.queryOrders.inscompany + "影像--:" + res.msg,
  10892. type: "error",
  10893. duration: 7000,
  10894. });
  10895. }
  10896. });
  10897. break;
  10898. case "永诚财险":
  10899. await this.$api.letter
  10900. .insyongchengsubmitImage({
  10901. companyId: this.companyId,
  10902. })
  10903. .then((res) => {
  10904. if (res.code == "200") {
  10905. var _this = this;
  10906. _this.$api.letter
  10907. .yongchengaudit({
  10908. companyId: this.companyId,
  10909. })
  10910. .then((res) => {
  10911. if (res.code == "200") {
  10912. loading.close();
  10913. _this.cqryCdeJq = "";
  10914. _this.cqryCdeSy = "";
  10915. _this.renewalCodeJq = "";
  10916. _this.renewalCodeSy = "";
  10917. this.$message({
  10918. message: "核保成功",
  10919. type: "success",
  10920. });
  10921. this.QuotationHistory();
  10922. _this.$api.letter
  10923. .getByCompanyId({ companyId: this.companyId })
  10924. .then((res) => {
  10925. _this.orderstatus = res.data.orderstatus; //订单状态
  10926. _this.underwritingdialogVisible = true;
  10927. let indexid = this.totalCompanyList.findIndex(
  10928. (item) =>
  10929. item.namesimple ==
  10930. this.queryOrders.inscompany
  10931. );
  10932. this.totalCompanyList[indexid].orderstatus =
  10933. res.data.orderstatus;
  10934. });
  10935. } else {
  10936. loading.close();
  10937. this.$message({
  10938. showClose: true,
  10939. message:
  10940. this.queryOrders.inscompany +
  10941. "提核--:" +
  10942. res.msg,
  10943. customClass: "customNotifyClass",
  10944. type: "error",
  10945. duration: 0,
  10946. });
  10947. }
  10948. });
  10949. } else {
  10950. loading.close();
  10951. this.$message({
  10952. message:
  10953. this.queryOrders.inscompany + "影像--:" + res.msg,
  10954. type: "error",
  10955. duration: 7000,
  10956. });
  10957. }
  10958. });
  10959. break;
  10960. case "大家财险":
  10961. let DJApiImage = "";
  10962. DJApiImage =
  10963. this.apiType == 2 ? "pythonsubmitImage" : "dajiasubmitImage";
  10964. await this.$api.letter[DJApiImage]({
  10965. [this.apiType == 2 ? "subOrderNo" : "companyId"]:
  10966. this.companyId,
  10967. }).then((res) => {
  10968. if (res.code == "200") {
  10969. var _this = this;
  10970. let DJApiaudit = "";
  10971. DJApiaudit =
  10972. this.apiType == 2 ? "pythonaudit" : "dajiaaudit";
  10973. _this.$api.letter[DJApiaudit]({
  10974. [this.apiType == 2 ? "subOrderNo" : "companyId"]:
  10975. this.companyId,
  10976. }).then((res) => {
  10977. if (res.code == "200") {
  10978. loading.close();
  10979. _this.cqryCdeJq = "";
  10980. _this.cqryCdeSy = "";
  10981. _this.renewalCodeJq = "";
  10982. _this.renewalCodeSy = "";
  10983. this.$message({
  10984. message: "核保成功",
  10985. type: "success",
  10986. });
  10987. this.QuotationHistory();
  10988. _this.$api.letter
  10989. .getByCompanyId({ companyId: this.companyId })
  10990. .then((res) => {
  10991. _this.orderstatus = res.data.orderstatus; //订单状态
  10992. _this.underwritingdialogVisible = true;
  10993. let indexid = this.totalCompanyList.findIndex(
  10994. (item) =>
  10995. item.namesimple == this.queryOrders.inscompany
  10996. );
  10997. this.totalCompanyList[indexid].orderstatus =
  10998. res.data.orderstatus;
  10999. });
  11000. } else {
  11001. loading.close();
  11002. this.$message({
  11003. showClose: true,
  11004. message:
  11005. this.queryOrders.inscompany + "提核--:" + res.msg,
  11006. customClass: "customNotifyClass",
  11007. type: "error",
  11008. duration: 0,
  11009. });
  11010. }
  11011. });
  11012. } else {
  11013. loading.close();
  11014. this.$message({
  11015. message:
  11016. this.queryOrders.inscompany + "影像--:" + res.msg,
  11017. type: "error",
  11018. duration: 7000,
  11019. });
  11020. }
  11021. });
  11022. break;
  11023. case "平安财险":
  11024. await this.$api.letter
  11025. .pingansubmitImage({
  11026. companyId: this.companyId,
  11027. })
  11028. .then((res) => {
  11029. if (res.code == "200") {
  11030. var _this = this;
  11031. _this.$api.letter
  11032. .pinganaudit({
  11033. companyId: this.companyId,
  11034. jqappoint: "",
  11035. syappoint: "",
  11036. })
  11037. .then((res) => {
  11038. if (res.code == "200") {
  11039. loading.close();
  11040. _this.$message({
  11041. message: "核保成功",
  11042. type: "success",
  11043. });
  11044. this.QuotationHistory();
  11045. _this.$api.letter
  11046. .getByCompanyId({ companyId: this.companyId })
  11047. .then((res) => {
  11048. _this.orderstatus = res.data.orderstatus; //订单状态
  11049. _this.underwritingdialogVisible = true;
  11050. let indexid = this.totalCompanyList.findIndex(
  11051. (item) =>
  11052. item.namesimple ==
  11053. this.queryOrders.inscompany
  11054. );
  11055. this.totalCompanyList[indexid].orderstatus =
  11056. res.data.orderstatus;
  11057. });
  11058. } else {
  11059. loading.close();
  11060. _this.$message({
  11061. showClose: true,
  11062. message:
  11063. this.queryOrders.inscompany +
  11064. "提核--:" +
  11065. res.msg,
  11066. type: "error",
  11067. duration: 0,
  11068. });
  11069. _this.$api.letter
  11070. .getByCompanyId({ companyId: this.companyId })
  11071. .then((res) => {
  11072. _this.orderstatus = res.data.orderstatus; //订单状态
  11073. });
  11074. }
  11075. });
  11076. } else {
  11077. this.$message({
  11078. message:
  11079. this.queryOrders.inscompany + "影像--:" + res.msg,
  11080. type: "error",
  11081. duration: 7000,
  11082. });
  11083. loading.close();
  11084. }
  11085. });
  11086. break;
  11087. }
  11088. }
  11089. });
  11090. },
  11091. //当前日期的次日
  11092. transformTime1() {
  11093. var date = new Date();
  11094. date.setFullYear(date.getFullYear());
  11095. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  11096. var strYear = date.getFullYear();
  11097. var strDay = date.getDate();
  11098. var strMonth = date.getMonth() + 1;
  11099. var hh = date.getHours();
  11100. if (hh < 10) {
  11101. hh = "0" + hh;
  11102. }
  11103. if (strMonth < 10) {
  11104. strMonth = "0" + strMonth;
  11105. }
  11106. if (strDay < 10) {
  11107. strDay = "0" + strDay;
  11108. }
  11109. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  11110. return datastr;
  11111. },
  11112. //传入日期的次日
  11113. transformTime2(time) {
  11114. var date = new Date(time);
  11115. date.setFullYear(date.getFullYear());
  11116. date.setTime(date.getTime() + 24 * 60 * 60 * 1000); //一年后的前一天
  11117. var strYear = date.getFullYear();
  11118. var strDay = date.getDate();
  11119. var strMonth = date.getMonth() + 1;
  11120. var hh = date.getHours();
  11121. if (hh < 10) {
  11122. hh = "0" + hh;
  11123. }
  11124. if (strMonth < 10) {
  11125. strMonth = "0" + strMonth;
  11126. }
  11127. if (strDay < 10) {
  11128. strDay = "0" + strDay;
  11129. }
  11130. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  11131. return datastr;
  11132. },
  11133. isDateBeforeToday(date) {
  11134. const inputDate = new Date(date); // 将输入的日期转换为 Date 对象
  11135. const today = new Date(); // 获取当前日期
  11136. // 比较日期是否小于当前日期
  11137. if (inputDate < today) {
  11138. return true; // 输入日期小于当前日期
  11139. } else {
  11140. return false; // 输入日期大于等于当前日期
  11141. }
  11142. },
  11143. //时间转换
  11144. transformTime(date) {
  11145. var d = new Date(date);
  11146. var strYear = d.getFullYear();
  11147. var strMonth = d.getMonth() + 1;
  11148. var strDay = d.getDate();
  11149. var hh = d.getHours();
  11150. var minutes = d.getMinutes(); // 分
  11151. var Seconds = d.getSeconds();
  11152. if (hh < 10) {
  11153. hh = "0" + hh;
  11154. }
  11155. if (minutes < 10) {
  11156. minutes = "0" + minutes;
  11157. }
  11158. if (Seconds < 10) {
  11159. Seconds = "0" + Seconds;
  11160. }
  11161. if (strMonth < 10) {
  11162. strMonth = "0" + strMonth;
  11163. }
  11164. if (strDay < 10) {
  11165. strDay = "0" + strDay;
  11166. }
  11167. var datetime =
  11168. strYear +
  11169. "-" +
  11170. strMonth +
  11171. "-" +
  11172. strDay +
  11173. " " +
  11174. hh +
  11175. ":" +
  11176. minutes +
  11177. ":" +
  11178. Seconds;
  11179. return datetime;
  11180. },
  11181. timeformat(date) {
  11182. var d = new Date(date);
  11183. var strYear = d.getFullYear();
  11184. var strMonth = d.getMonth() + 1;
  11185. var strDay = d.getDate();
  11186. var hh = d.getHours();
  11187. if (hh < 10) {
  11188. hh = "0" + hh;
  11189. }
  11190. if (strMonth < 10) {
  11191. strMonth = "0" + strMonth;
  11192. }
  11193. if (strDay < 10) {
  11194. strDay = "0" + strDay;
  11195. }
  11196. var datetime = strYear + "-" + strMonth + "-" + strDay;
  11197. return datetime;
  11198. },
  11199. oneYearPast1(time) {
  11200. //明年减一秒
  11201. var date = new Date(time);
  11202. date.setSeconds(date.getSeconds() - 1);
  11203. date.setFullYear(date.getFullYear() + 1); //一年后
  11204. date.setTime(date.getTime()); //一年后的前一天
  11205. var strYear = date.getFullYear();
  11206. var strDay = date.getDate();
  11207. var strMonth = date.getMonth() + 1;
  11208. var hh = date.getHours();
  11209. var minutes = date.getMinutes(); // 分
  11210. var Seconds = date.getSeconds();
  11211. if (hh < 10) {
  11212. hh = "0" + hh;
  11213. }
  11214. if (minutes < 10) {
  11215. minutes = "0" + minutes;
  11216. }
  11217. if (Seconds < 10) {
  11218. Seconds = "0" + Seconds;
  11219. }
  11220. if (strMonth < 10) {
  11221. strMonth = "0" + strMonth;
  11222. }
  11223. if (strDay < 10) {
  11224. strDay = "0" + strDay;
  11225. }
  11226. var datastr =
  11227. strYear +
  11228. "-" +
  11229. strMonth +
  11230. "-" +
  11231. strDay +
  11232. " " +
  11233. hh +
  11234. ":" +
  11235. minutes +
  11236. ":" +
  11237. Seconds;
  11238. return datastr;
  11239. },
  11240. tbczcarShowChange() {
  11241. //投保人同车主
  11242. switch (this.tbczcarShow) {
  11243. case true:
  11244. this.policyHolderInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  11245. break;
  11246. default:
  11247. for (let key in this.policyHolderInfo) {
  11248. this.policyHolderInfo[key] = "";
  11249. this.policyHolderInfo.provinceData = [];
  11250. this.selectedOptions2 = [];
  11251. }
  11252. this.policyHolderInfo = {}
  11253. }
  11254. this.$forceUpdate()
  11255. },
  11256. bbczcarShowChange() {
  11257. if (this.bbczcarShow) {
  11258. this.bbtbcarShow = false
  11259. }
  11260. //被保人同车主
  11261. if (this.bbczcarShow && !this.bbtbcarShow) {
  11262. this.insuredPersonInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  11263. this.bbtbcarShow = false
  11264. }
  11265. // if (!this.bbczcarShow && !this.bbtbcarShow) {
  11266. // for (let key in this.insuredPersonInfo) {
  11267. // this.insuredPersonInfo[key] = "";
  11268. // this.insuredPersonInfo.provinceData = [];
  11269. // // this.selectedOptions3 = [];
  11270. // }
  11271. // this.insuredPersonInfo = {}
  11272. // }
  11273. // if (this.bbtbcarShow) {
  11274. // return
  11275. // }
  11276. // switch (this.bbczcarShow) {
  11277. // case true:
  11278. // this.insuredPersonInfo = JSON.parse(JSON.stringify(this.ownerInfo));
  11279. // this.bbtbcarShow = false;
  11280. // console.log( '车主信息111111', this.ownerInfo, '投保人信息', this.policyHolderInfo, '被保人信息', this.insuredPersonInfo, '被保人同车主', this.bbczcarShow)
  11281. // break;
  11282. // default:
  11283. // for (let key in this.insuredPersonInfo) {
  11284. // this.insuredPersonInfo[key] = "";
  11285. // this.insuredPersonInfo.provinceData = [];
  11286. // // this.selectedOptions3 = [];
  11287. // }
  11288. // }
  11289. this.$forceUpdate()
  11290. },
  11291. bbtbcarShowChange() {
  11292. if (this.bbtbcarShow) {
  11293. this.bbczcarShow = false
  11294. }
  11295. if (this.bbtbcarShow && !this.bbczcarShow) {
  11296. this.insuredPersonInfo = JSON.parse(JSON.stringify(this.policyHolderInfo));
  11297. this.bbczcarShow = false
  11298. }
  11299. this.$forceUpdate()
  11300. },
  11301. // 清空被保人信息
  11302. clearBbxx() {
  11303. for (let key in this.insuredPersonInfo) {
  11304. this.insuredPersonInfo[key] = "";
  11305. this.insuredPersonInfo.provinceData = [];
  11306. }
  11307. },
  11308. // 查询车牌信息
  11309. toCheckLicenseNo(licenseNo) {
  11310. if (licenseNo) {
  11311. this.$api.letter.licenseSearch({
  11312. licenseNo: licenseNo
  11313. }).then((res) => {
  11314. if (res.code == 200) {{
  11315. this.carInfo.engineNo = res.data.engineNo
  11316. this.carInfo.vinNo = res.data.vinNo
  11317. this.carInfo.registerDate = res.data.registerDate
  11318. this.$forceUpdate()
  11319. }}
  11320. })
  11321. }
  11322. },
  11323. //VIN查询
  11324. toChooseVin(cartype) {
  11325. if (cartype == "" || cartype == null) {
  11326. this.$message({
  11327. message: "请输入车架号",
  11328. type: "warning",
  11329. });
  11330. } else {
  11331. const loading = this.$loading({
  11332. lock: true,
  11333. text: "Loading",
  11334. spinner: "el-icon-loading",
  11335. background: "rgba(0, 0, 0, 0.7)",
  11336. });
  11337. this.$api.letter.insZhongmeiVIN(this.carInfo.frameNo).then((res) => {
  11338. if (res.code == "200") {
  11339. this.reslist = res.data;
  11340. loading.close();
  11341. this.sbdmdialogVisible = true;
  11342. } else {
  11343. loading.close();
  11344. this.$message.error(res.msg);
  11345. }
  11346. });
  11347. }
  11348. },
  11349. // 撤销二维码
  11350. revokeCode(id) {
  11351. this.$confirm('确定撤销二维码?', '提示', {
  11352. confirmButtonText: '确定',
  11353. cancelButtonText: '取消',
  11354. type: 'warning'
  11355. }).then(() => {
  11356. this.$api.letter.getRevokeQrCode(id).then((res) => {
  11357. if (res.code == 200) {
  11358. this.$message({
  11359. message: res.msg,
  11360. type: "success",
  11361. });
  11362. this.QuotationHistory();
  11363. }
  11364. });
  11365. }).catch(() => {
  11366. this.$message({
  11367. type: 'info',
  11368. message: '已取消撤销二维码'
  11369. });
  11370. });
  11371. },
  11372. //品牌型号查询
  11373. toChooseVehicleType(cartype) {
  11374. if (cartype == "" || cartype == null) {
  11375. this.$message({
  11376. message: "请输入车型名称",
  11377. type: "warning",
  11378. });
  11379. } else {
  11380. const loading = this.$loading({
  11381. lock: true,
  11382. text: "Loading",
  11383. spinner: "el-icon-loading",
  11384. background: "rgba(0, 0, 0, 0.7)",
  11385. });
  11386. let param = {
  11387. modelName: cartype.replace(/[^u4e00-u9fa5|,]+/gi, ""),
  11388. };
  11389. this.$api.letter.ModelsQuery(param).then((res) => {
  11390. if (res.code == "200") {
  11391. loading.close();
  11392. this.reslist = res.data;
  11393. this.chexingdialogVisible = true;
  11394. } else {
  11395. loading.close();
  11396. this.$message.error(res.msg);
  11397. }
  11398. });
  11399. }
  11400. },
  11401. //车型列表双击选中事件
  11402. reslistCurrentChange(row, column, event) {
  11403. this.carInfo.brandName = row.brandCN; //品牌型号
  11404. this.carInfo.modelcname = row.modelName; //品牌型号
  11405. this.carInfo.caryear = row.marketYear; //年款
  11406. this.carInfo.seatCount = row.ratedPassengerCapacity; //座位数
  11407. this.carInfo.purchasePrice = row.replacementValue; //购置价
  11408. this.carInfo.modelCode = row.modelCode; //型号代码
  11409. this.carInfo.familyName = row.series; //系列
  11410. this.carInfo.enginedesc = row.displacement; //排量
  11411. this.carInfo.energyType = row.energyTypes;
  11412. this.carInfo.powerScale = row.powerScale; //功率
  11413. this.chexingdialogVisible = false;
  11414. this.sbdmdialogVisible = false;
  11415. },
  11416. //是否过户事件
  11417. transferFlagChange(e) {
  11418. if (e) {
  11419. this.transferDateShow = true;
  11420. this.carInfo.transferDate = this.carInfo.issueDate;
  11421. } else {
  11422. this.transferDateShow = false;
  11423. this.carInfo.transferDate = "";
  11424. }
  11425. },
  11426. //影像上传
  11427. drivingupload(file, imageIdList, imgurl, type) {
  11428. let that = this;
  11429. let size = file.size / 1024 / 1024 < 5;
  11430. const isJPG =
  11431. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  11432. if (!size) {
  11433. this.$message.error("上传图片大小不能超过 5MB!");
  11434. this[imgurl] = [];
  11435. return false;
  11436. }
  11437. if (!isJPG) {
  11438. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  11439. this[imgurl] = [];
  11440. return false;
  11441. }
  11442. this[imgurl].push(file);
  11443. var file = file.raw;
  11444. const params = new FormData(); // 声明formData数据类型
  11445. params.append("multipartFile", file);
  11446. params.append("type", "image");
  11447. this.$api.letter.uploadFile(params).then((res) => {
  11448. if (res.code == "200") {
  11449. if (this[imageIdList].some((v) => v.imageType == type)) {
  11450. this[imageIdList].map((val) => {
  11451. if (val.imageType == type) {
  11452. val.imageId = res.data.id;
  11453. }
  11454. });
  11455. } else {
  11456. this[imageIdList].push({
  11457. imageId: res.data.id,
  11458. imageType: type,
  11459. });
  11460. }
  11461. }
  11462. });
  11463. },
  11464. policydrivingupload(file, val) {
  11465. // this.policyNumberForm[val + 'List'] = []
  11466. switch (val) {
  11467. case "jqPolicy":
  11468. this.policyNumberForm.jqPolicyList = [];
  11469. break;
  11470. case "syPolicy":
  11471. this.policyNumberForm.syPolicyList = [];
  11472. break;
  11473. case "noPolicy":
  11474. this.policyNumberForm.noPolicyList = [];
  11475. break;
  11476. case "jqSign":
  11477. this.policyNumberForm.jqSignList = [];
  11478. break;
  11479. default:
  11480. break;
  11481. }
  11482. var file = file.raw;
  11483. const params = new FormData(); // 声明formData数据类型
  11484. params.append("multipartFile", file);
  11485. params.append("type", "file");
  11486. this.$api.letter.uploadFile(params).then((res) => {
  11487. if (res.code == "200") {
  11488. res.data.name = res.data.fileName;
  11489. this.policyNumberForm[val + "List"].push(res.data);
  11490. }
  11491. });
  11492. },
  11493. handleRemove1(file, imageIdList, imgList) {
  11494. this[imageIdList].map((ele, index) => {
  11495. if (file.imageId === ele.imageId) {
  11496. this[imageIdList].splice(index, 1);
  11497. }
  11498. return ele;
  11499. });
  11500. if (file.imageId) {
  11501. this[imgList].map((ele, index) => {
  11502. if (file.imageId === ele.imageId) {
  11503. this[imgList].splice(index, 1);
  11504. }
  11505. return ele;
  11506. });
  11507. } else {
  11508. this[imgList].map((ele, index) => {
  11509. if (file.uid === ele.uid) {
  11510. this[imgList].splice(index, 1);
  11511. }
  11512. return ele;
  11513. });
  11514. }
  11515. },
  11516. compress(img, width, height, ratio) {
  11517. var canvas, ctx, img64;
  11518. canvas = document.createElement("canvas");
  11519. canvas.width = width;
  11520. canvas.height = height;
  11521. ctx = canvas.getContext("2d");
  11522. ctx.drawImage(img, 0, 0, width, height);
  11523. img64 = canvas.toDataURL("image/jpeg", ratio);
  11524. return img64;
  11525. },
  11526. base64ToFile(base64, fileName) {
  11527. let data = base64.split(",");
  11528. let type = data[0].match(/:(.*?);/)[1]; // let suffix = type.split('/')[1];
  11529. const bstr = window.atob(data[1]);
  11530. let n = bstr.length;
  11531. const u8arr = new Uint8Array(n);
  11532. while (n--) {
  11533. u8arr[n] = bstr.charCodeAt(n);
  11534. } // const file =  new File([u8arr], `${fileName}.${suffix}`, {
  11535. const file = new File([u8arr], `${fileName}`, {
  11536. type: type,
  11537. });
  11538. return file;
  11539. },
  11540. carfrontChange(file) {
  11541. //选择行驶证正面
  11542. let that = this;
  11543. let size = file.size / 1024 / 1024 < 5;
  11544. const isJPG =
  11545. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  11546. if (!size) {
  11547. this.$message.error("上传图片大小不能超过 5MB!");
  11548. return false;
  11549. }
  11550. if (!isJPG) {
  11551. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  11552. return false;
  11553. }
  11554. // let name=file.raw.name
  11555. //       var image = new Image();
  11556. //       image.src = window.URL.createObjectURL(file.raw);
  11557. //       that.carfrontImg =  image.src
  11558. //       image.onload = function(){
  11559. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  11560. // that.carfrontImg = image.src;
  11561. // const params = new FormData(); // 声明formData数据类型
  11562. // params.append("multipartFile", aaa);
  11563. // params.append("type", "image");
  11564. // that.$api.letter.uploadFile(params).then(res => {
  11565. // if (res.code == "200") {
  11566. // that.CarFrontFile = aaa;//文件流
  11567. // if (that.imageList1.some(v => v.imageType == 'C01')) {
  11568. // that.imageList1.map(val => {
  11569. // if (val.imageType == 'C01') {
  11570. // val.imageId = res.data.id;
  11571. // }
  11572. // })
  11573. // } else {
  11574. // that.imageList1.push({
  11575. // imageId: res.data.id,
  11576. // imageType: "C01",
  11577. // })
  11578. // }
  11579. // } else {
  11580. // that.$message({ message: res.msg, type: "warning" });
  11581. // }
  11582. // });
  11583. // }
  11584. var file = file.raw;
  11585. let files = window.URL.createObjectURL(file); //转临时路径
  11586. this.carfrontImg = files;
  11587. const params = new FormData(); // 声明formData数据类型
  11588. params.append("multipartFile", file);
  11589. params.append("type", "image");
  11590. this.$api.letter.uploadFile(params).then((res) => {
  11591. if (res.code == "200") {
  11592. this.CarFrontFile = file; //文件流
  11593. if (this.imageList1.some((v) => v.imageType == "C01")) {
  11594. this.imageList1.map((val) => {
  11595. if (val.imageType == "C01") {
  11596. val.imageId = res.data.id;
  11597. }
  11598. });
  11599. } else {
  11600. this.imageList1.push({
  11601. imageId: res.data.id,
  11602. imageType: "C01",
  11603. });
  11604. }
  11605. } else {
  11606. this.$message({ message: res.msg, type: "warning" });
  11607. }
  11608. });
  11609. },
  11610. carbackChange(file) {
  11611. let that = this;
  11612. let size = file.size / 1024 / 1024 < 2;
  11613. const isJPG =
  11614. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  11615. if (!size) {
  11616. this.$message.error("上传图片大小不能超过 5MB!");
  11617. return false;
  11618. }
  11619. if (!isJPG) {
  11620. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  11621. return false;
  11622. }
  11623. // let name=file.raw.name
  11624. //       var image = new Image();
  11625. //       image.src = window.URL.createObjectURL(file.raw);
  11626. //       image.onload = function(){
  11627. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  11628. // that.carbackImg = image.src;
  11629. // const params = new FormData(); // 声明formData数据类型
  11630. // params.append("multipartFile", aaa);
  11631. // params.append("type", "image");
  11632. // that.$api.letter.uploadFile(params).then(res => {
  11633. // if (res.code == "200") {
  11634. // that.CarBackFile = aaa;//文件流
  11635. // if (that.imageList1.some(v => v.imageType == 'D01')) {
  11636. // that.imageList1.map(val => {
  11637. // if (val.imageType == 'D01') {
  11638. // val.imageId = res.data.id;
  11639. // }
  11640. // })
  11641. // } else {
  11642. // that.imageList1.push({
  11643. // imageId: res.data.id,
  11644. // imageType: "D01",
  11645. // })
  11646. // }
  11647. // } else {
  11648. // that.$message({ message: res.msg, type: "warning" });
  11649. // }
  11650. // });
  11651. // }
  11652. //选择行驶证反面
  11653. var file = file.raw;
  11654. let files = window.URL.createObjectURL(file); //转临时路径
  11655. this.carbackImg = files;
  11656. const params = new FormData(); // 声明formData数据类型
  11657. params.append("multipartFile", file);
  11658. params.append("type", "image");
  11659. this.$api.letter.uploadFile(params).then((res) => {
  11660. if (res.code == "200") {
  11661. this.CarBackFile = file;
  11662. if (this.imageList1.some((v) => v.imageType == "D01")) {
  11663. this.imageList1.map((val) => {
  11664. if (val.imageType == "D01") {
  11665. val.imageId = res.data.id;
  11666. }
  11667. });
  11668. } else {
  11669. this.imageList1.push({
  11670. imageId: res.data.id,
  11671. imageType: "D01",
  11672. });
  11673. }
  11674. } else {
  11675. this.$message({ message: res.msg, type: "warning" });
  11676. }
  11677. });
  11678. },
  11679. userfrontChange(file) {
  11680. let that = this;
  11681. let size = file.size / 1024 / 1024 < 5;
  11682. const isJPG =
  11683. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  11684. if (!size) {
  11685. this.$message.error("上传图片大小不能超过 5MB!");
  11686. return false;
  11687. }
  11688. if (!isJPG) {
  11689. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  11690. return false;
  11691. }
  11692. // let name=file.raw.name
  11693. //       var image = new Image();
  11694. //       image.src = window.URL.createObjectURL(file.raw);
  11695. //       image.onload = function(){
  11696. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  11697. // that.userfrontImg = image.src;
  11698. // const params = new FormData(); // 声明formData数据类型
  11699. // params.append("multipartFile", aaa);
  11700. // params.append("type", "image");
  11701. // that.$api.letter.uploadFile(params).then(res => {
  11702. // if (res.code == "200") {
  11703. // let type = 'C0' + that.userIndex;
  11704. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  11705. // that['imageList' + that.userIndex].map(val => {
  11706. // if (val.imageType == type) {
  11707. // val.imageId = res.data.id;
  11708. // }
  11709. // })
  11710. // } else {
  11711. // that['imageList' + that.userIndex].push({
  11712. // imageId: res.data.id,
  11713. // imageType: type,
  11714. // })
  11715. // }
  11716. // that[type + 'File'] = aaa;
  11717. // } else {
  11718. // that.$message({ message: res.msg, type: "warning" });
  11719. // }
  11720. // });
  11721. // }
  11722. //选择身份证正面
  11723. var file = file.raw;
  11724. let files = window.URL.createObjectURL(file); //转链接
  11725. this.userfrontImg = files;
  11726. const params = new FormData(); // 声明formData数据类型
  11727. params.append("multipartFile", file);
  11728. params.append("type", "image");
  11729. this.$api.letter.uploadFile(params).then((res) => {
  11730. if (res.code == "200") {
  11731. let type = "C0" + this.userIndex;
  11732. if (
  11733. this["imageList" + this.userIndex].some((v) => v.imageType == type)
  11734. ) {
  11735. this["imageList" + this.userIndex].map((val) => {
  11736. if (val.imageType == type) {
  11737. val.imageId = res.data.id;
  11738. }
  11739. });
  11740. } else {
  11741. this["imageList" + this.userIndex].push({
  11742. imageId: res.data.id,
  11743. imageType: type,
  11744. });
  11745. }
  11746. this[type + "File"] = file;
  11747. } else {
  11748. this.$message({ message: res.msg, type: "warning" });
  11749. }
  11750. });
  11751. },
  11752. userbackChange(file) {
  11753. let that = this;
  11754. let size = file.size / 1024 / 1024 < 5;
  11755. const isJPG =
  11756. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  11757. if (!size) {
  11758. this.$message.error("上传图片大小不能超过 5MB!");
  11759. return false;
  11760. }
  11761. if (!isJPG) {
  11762. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  11763. return false;
  11764. }
  11765. // let name=file.raw.name
  11766. //       var image = new Image();
  11767. //       image.src = window.URL.createObjectURL(file.raw);
  11768. //       image.onload = function(){
  11769. //         let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
  11770. // that.userbackImg = image.src;
  11771. // const params = new FormData(); // 声明formData数据类型
  11772. // params.append("multipartFile", aaa);
  11773. // params.append("type", "image");
  11774. // that.$api.letter.uploadFile(params).then(res => {
  11775. // if (res.code == "200") {
  11776. // let type = 'D0' + that.userIndex;
  11777. // if (that['imageList' + that.userIndex].some(v => v.imageType == type)) {
  11778. // that['imageList' + that.userIndex].map(val => {
  11779. // if (val.imageType == type) {
  11780. // val.imageId = res.data.id;
  11781. // }
  11782. // })
  11783. // } else {
  11784. // that['imageList' + that.userIndex].push({
  11785. // imageId: res.data.id,
  11786. // imageType: type,
  11787. // })
  11788. // }
  11789. // that[type + 'File'] = aaa;
  11790. // } else {
  11791. // that.$message({ message: res.msg, type: "warning" });
  11792. // }
  11793. // });
  11794. // }
  11795. //选择身份证背面
  11796. var file = file.raw;
  11797. let files = window.URL.createObjectURL(file); //转链接
  11798. this.userbackImg = files;
  11799. const params = new FormData(); // 声明formData数据类型
  11800. params.append("multipartFile", file);
  11801. params.append("type", "image");
  11802. this.$api.letter.uploadFile(params).then((res) => {
  11803. if (res.code == "200") {
  11804. let type = "D0" + this.userIndex;
  11805. if (
  11806. this["imageList" + this.userIndex].some((v) => v.imageType == type)
  11807. ) {
  11808. this["imageList" + this.userIndex].map((val) => {
  11809. if (val.imageType == type) {
  11810. val.imageId = res.data.id;
  11811. }
  11812. });
  11813. } else {
  11814. this["imageList" + this.userIndex].push({
  11815. imageId: res.data.id,
  11816. imageType: type,
  11817. });
  11818. }
  11819. this[type + "File"] = file;
  11820. } else {
  11821. this.$message({ message: res.msg, type: "warning" });
  11822. }
  11823. });
  11824. },
  11825. CarOCRdiscern() {
  11826. // if (!this.CarFrontFile || !this.CarBackFile) {
  11827. // this.$message.warning('请上传行驶证主页和副页')
  11828. // return
  11829. // }
  11830. //car识别
  11831. const loading = this.$loading({
  11832. lock: true,
  11833. text: "Loading",
  11834. spinner: "el-icon-loading",
  11835. background: "rgba(0, 0, 0, 0.7)",
  11836. });
  11837. const params = new FormData(); // 声明formData数据类型
  11838. params.append("image1", this.CarFrontFile);
  11839. params.append("image2", this.CarBackFile);
  11840. this.$api.letter.drivingPermit(params).then((res) => {
  11841. loading.close();
  11842. if (res.msg == "201") {
  11843. this.$message({ message: "请正确选择驾驶证", type: "warning" });
  11844. }
  11845. var carInfo = res.data.carInfo;
  11846. if (carInfo.issueDate) {
  11847. carInfo.issueDate =
  11848. carInfo.issueDate.substring(0, 4) +
  11849. "-" +
  11850. carInfo.issueDate.substring(4, 6) +
  11851. "-" +
  11852. carInfo.issueDate.substring(6, 8);
  11853. }
  11854. if (carInfo.registerDate) {
  11855. carInfo.registerDate =
  11856. carInfo.registerDate.substring(0, 4) +
  11857. "-" +
  11858. carInfo.registerDate.substring(4, 6) +
  11859. "-" +
  11860. carInfo.registerDate.substring(6, 8);
  11861. }
  11862. this.carform.carOwner = carInfo.carOwner; //车主
  11863. this.carform.licenseNo = carInfo.plateNo; //车牌号
  11864. this.carform.modelcname = carInfo.backOcrID; //品牌型号
  11865. this.carform.frameNo = carInfo.vin; //车架号
  11866. this.carform.engineNo = carInfo.engine; //发动机号
  11867. this.carform.registerDate = carInfo.registerDate; //车牌号
  11868. this.carform.issueDate = carInfo.issueDate; //车牌号
  11869. this.carform.grossMass = carInfo.grossMass; //总质量
  11870. this.carform.unladenMass = carInfo.unladenMass; //整备质量
  11871. this.carform.limitLoad = carInfo.limitLoad; //核定载质量
  11872. this.carform.category = carInfo.category; //车辆类型
  11873. this.carform.carnature = carInfo.useNature; //使用性质
  11874. this.carform.vehicleUse = carInfo.vehicleUse; //车辆用途
  11875. this.carform.plateType = carInfo.plateType; //车辆种类
  11876. this.carform.approvedPassengersCapacity =
  11877. carInfo.approvedPassengersCapacity; //核定载客数
  11878. });
  11879. },
  11880. CarOCRconfirm() {
  11881. //传参 carnature
  11882. this.ownerInfo.name = this.carform.carOwner; //车主
  11883. this.carInfo.cartype = "K33";
  11884. this.carInfo.licenseNo = this.carform.licenseNo; //车牌号
  11885. this.carInfo.modelcname = this.carform.modelcname; //品牌型号
  11886. this.carInfo.vinNo = this.carform.frameNo; //车架号
  11887. this.carInfo.frameNo = this.carform.frameNo; //车架号
  11888. this.carInfo.engineNo = this.carform.engineNo; //发动机号
  11889. this.carInfo.seatCount = this.carform.approvedPassengersCapacity; //核定载客数
  11890. this.carInfo.vehicleweight = this.carform.grossMass; //总质量
  11891. this.carInfo.completeKerbMass = this.carform.unladenMass; //整备质量
  11892. this.carInfo.limitLoad = this.carform.limitLoad; //核定载质量
  11893. this.carInfo.cartype = this.carform.category; //车辆类型
  11894. this.carInfo.carnature = this.carform.carnature
  11895. ? this.carform.carnature
  11896. : "02"; //使用性质
  11897. this.carInfo.vehicleUse = this.carform.vehicleUse
  11898. ? this.carform.vehicleUse
  11899. : "05"; //车辆用途
  11900. this.carInfo.cimodelclass = this.carform.plateType; //车辆种类
  11901. if (this.timeformat(this.carform.registerDate) != "NaN-NaN-NaN") {
  11902. this.carInfo.registerDate = this.carform.registerDate; //车牌号
  11903. }
  11904. if (this.timeformat(this.carform.issueDate) != "NaN-NaN-NaN") {
  11905. this.carInfo.issueDate = this.carform.issueDate; //车牌号
  11906. }
  11907. if (this.carform.registerDate.length < 10) {
  11908. this.$message.warning('检查注册日期')
  11909. return
  11910. }
  11911. if (this.carform.issueDate.length < 10) {
  11912. this.$message.warning('检查发证日期')
  11913. return
  11914. }
  11915. this.uploadcardialogVisible = false;
  11916. },
  11917. handleRemove(e) {
  11918. //删除图片
  11919. this[e] = "";
  11920. switch (this.userIndex) {
  11921. case 0:
  11922. this.carfrontImg = "";
  11923. this.carbackImg = "";
  11924. this.CarFrontFile = ""; // 行驶证正面base64
  11925. this.CarBackFile = ""; // 行驶证背面base64
  11926. break;
  11927. case 2:
  11928. this.userfrontImg = "";
  11929. this.userbackImg = "";
  11930. this.C02File = ""; // 车主正面base64
  11931. this.D02File = ""; // 车主背面base64
  11932. break;
  11933. case 3:
  11934. this.userfrontImg = "";
  11935. this.userbackImg = "";
  11936. this.C03File = ""; // 投保人正面base64
  11937. this.D03File = ""; // 投保人背面base64
  11938. break;
  11939. case 4:
  11940. this.userfrontImg = "";
  11941. this.userbackImg = "";
  11942. this.C04File = ""; // 被保人正面base64
  11943. this.D04File = ""; // 被保人背面base64
  11944. break;
  11945. default:
  11946. }
  11947. },
  11948. //预览图片
  11949. handlePictureCardPreview(img) {
  11950. this.ProViewImg = img;
  11951. this.showViewer = true;
  11952. },
  11953. // 关闭查看器
  11954. closeViewer() {
  11955. this.showViewer = false;
  11956. },
  11957. uploaduser(index) {
  11958. this.userIndex = index;
  11959. this.uploaduserdialogVisible = true;
  11960. },
  11961. userOCRdiscern() {
  11962. //OCR识别
  11963. switch (this.userIndex) {
  11964. case 2:
  11965. // if (!this.C02File || !this.D02File) {
  11966. // this.$message.warning('请上传照片')
  11967. // return
  11968. // }
  11969. const params1 = new FormData(); // 声明formData数据类型
  11970. params1.append("image1", this.C02File);
  11971. params1.append("image2", this.D02File);
  11972. this.userOCRjoggle(params1);
  11973. break;
  11974. case 3:
  11975. // if (!this.C03File || !this.D03File) {
  11976. // this.$message.warning('请上传照片')
  11977. // return
  11978. // }
  11979. const params2 = new FormData(); // 声明formData数据类型
  11980. params2.append("image1", this.C03File);
  11981. params2.append("image2", this.D03File);
  11982. this.userOCRjoggle(params2);
  11983. break;
  11984. case 4:
  11985. // if (!this.C04File || !this.D04File) {
  11986. // this.$message.warning('请上传照片')
  11987. // return
  11988. // }
  11989. const params3 = new FormData(); // 声明formData数据类型
  11990. params3.append("image1", this.C04File);
  11991. params3.append("image2", this.D04File);
  11992. this.userOCRjoggle(params3);
  11993. break;
  11994. default:
  11995. }
  11996. },
  11997. userOCRjoggle(param) {
  11998. const loading = this.$loading({
  11999. lock: true,
  12000. text: "Loading",
  12001. spinner: "el-icon-loading",
  12002. background: "rgba(0, 0, 0, 0.7)",
  12003. });
  12004. this.$api.letter.idCard(param).then((res) => {
  12005. loading.close();
  12006. if (res.msg == "201") {
  12007. this.$message({ message: "请正确选择身份证", type: "warning" });
  12008. }
  12009. var customerInfo = res.data.customerInfo;
  12010. if (customerInfo) {
  12011. this.ownerInfoform.name = customerInfo.name;
  12012. if (customerInfo.identifyType == "01") {
  12013. this.ownerInfoform.identifyType = "身份证";
  12014. } else {
  12015. this.ownerInfoform.identifyType = "";
  12016. }
  12017. this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;
  12018. this.ownerInfoform.gender = customerInfo.identifyIssuedCom;
  12019. this.ownerInfoform.addr = customerInfo.addr;
  12020. if (customerInfo.identifyNumber) {
  12021. this.ownerInfoform.age = getAgeByIdCard(
  12022. customerInfo.identifyNumber
  12023. );
  12024. }
  12025. if (
  12026. customerInfo.identifyValidDate ||
  12027. customerInfo.identifyValidEndDate
  12028. ) {
  12029. this.ownerInfoform.identifyValidDate =
  12030. customerInfo.identifyValidDate.substring(0, 4) +
  12031. "-" +
  12032. customerInfo.identifyValidDate.substring(4, 6) +
  12033. "-" +
  12034. customerInfo.identifyValidDate.substring(6, 8);
  12035. this.ownerInfoform.identifyValidEndDate =
  12036. customerInfo.identifyValidEndDate.substring(0, 4) +
  12037. "-" +
  12038. customerInfo.identifyValidEndDate.substring(4, 6) +
  12039. "-" +
  12040. customerInfo.identifyValidEndDate.substring(6, 8);
  12041. if (customerInfo.identifyValidEndDate == "长期") {
  12042. this.ownerInfoform.identifyValidEndDate = "9999-12-31";
  12043. }
  12044. }
  12045. // let values = addressCode(this.ownerInfoform.addr);
  12046. // this.ownerInfoform.province = codeToText[values[0]]
  12047. // this.ownerInfoform.city = codeToText[values[1]]
  12048. // this.ownerInfoform.county = codeToText[values[2]]
  12049. }
  12050. });
  12051. },
  12052. userOCRconfirm() {
  12053. //传参
  12054. switch (this.userIndex) {
  12055. case 2:
  12056. // this.selectedOptions1 = addressCode(this.ownerInfoform.addr);
  12057. this.ownerInfo = JSON.parse(JSON.stringify(this.ownerInfoform));
  12058. break;
  12059. case 3:
  12060. // this.selectedOptions2 = addressCode(this.ownerInfoform.addr);
  12061. this.policyHolderInfo = JSON.parse(
  12062. JSON.stringify(this.ownerInfoform)
  12063. );
  12064. break;
  12065. case 4:
  12066. // this.selectedOptions3 = addressCode(this.ownerInfoform.addr);
  12067. this.insuredPersonInfo = JSON.parse(
  12068. JSON.stringify(this.ownerInfoform)
  12069. );
  12070. break;
  12071. }
  12072. this.uploaduserdialogVisible = false;
  12073. },
  12074. closeDialog(index) {
  12075. // 0:车辆 1:车主 2:投保人 3:被保人
  12076. switch (index) {
  12077. case 0:
  12078. this.carfrontImg = "";
  12079. this.carbackImg = "";
  12080. this.CarFrontFile = ""; // 行驶证正面base64
  12081. this.CarBackFile = ""; // 行驶证背面base64
  12082. Object.keys(this.carform).forEach((key) => {
  12083. this.carform[key] = "";
  12084. });
  12085. break;
  12086. case 2:
  12087. this.userfrontImg = "";
  12088. this.userbackImg = "";
  12089. this.C02File = ""; // 车主正面base64
  12090. this.D02File = ""; // 车主背面base64
  12091. Object.keys(this.ownerInfoform).forEach((key) => {
  12092. this.ownerInfoform[key] = "";
  12093. });
  12094. break;
  12095. case 3:
  12096. this.userfrontImg = "";
  12097. this.userbackImg = "";
  12098. this.C03File = ""; // 投保人正面base64
  12099. this.D03File = ""; // 投保人背面base64
  12100. Object.keys(this.ownerInfoform).forEach((key) => {
  12101. this.ownerInfoform[key] = "";
  12102. });
  12103. break;
  12104. case 4:
  12105. this.userfrontImg = "";
  12106. this.userbackImg = "";
  12107. this.C04File = ""; // 被保人正面base64
  12108. this.D04File = ""; // 被保人背面base64
  12109. Object.keys(this.ownerInfoform).forEach((key) => {
  12110. this.ownerInfoform[key] = "";
  12111. });
  12112. break;
  12113. case 5:
  12114. this.businessImg = "";
  12115. // this.C04File = ''; // 被保人正面base64
  12116. // this.D04File = ''; // 被保人背面base64
  12117. // Object.keys(this.ownerInfoform).forEach((key) => {
  12118. // this.ownerInfoform[key] = '';
  12119. // });
  12120. break;
  12121. default:
  12122. }
  12123. },
  12124. bjdpreview(id) {
  12125. let params = {
  12126. companyId: id,
  12127. };
  12128. this.$api.letter.getByCompanyId(params).then((res) => {
  12129. if (res.code == "200") {
  12130. var data = res.data;
  12131. if (data.kindinfo != null) {
  12132. data.kindinfo.map((ele, index) => {
  12133. switch (ele.kindCode) {
  12134. case "A":
  12135. if (ele.amount == 1) {
  12136. ele.amount = "投保";
  12137. } else {
  12138. ele.amount = ele.amount;
  12139. }
  12140. break;
  12141. case "D4":
  12142. case "SY_FJ_YBW2":
  12143. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  12144. break;
  12145. case "MJ1":
  12146. case "MJ2":
  12147. case "MJ3":
  12148. case "MJ4":
  12149. ele.deductibleRate = ele.deductibleRate + "%";
  12150. break;
  12151. default:
  12152. ele.amount = this.toChinesNum(ele.amount);
  12153. }
  12154. return ele;
  12155. });
  12156. }
  12157. data.logoImg = this.iconfftter(res.data.inscompany);
  12158. this.queryOrders = data;
  12159. this.$api.letter.getThemeByUserId(this.userId).then((res) => {
  12160. if (res.code == 200) {
  12161. if (res.data[0] == "GD") {
  12162. this.$refs.quotationDialogPro.setBackupVisible(true);
  12163. } else {
  12164. this.$refs.quotationDialog.setBackupVisible(true);
  12165. }
  12166. }
  12167. });
  12168. // if (
  12169. // this.$store.state.user.roles.managementSource &&
  12170. // this.$store.state.user.roles.managementSource == "3"
  12171. // ) {
  12172. // this.$refs.quotationDialogPro.setBackupVisible(true);
  12173. // } else {
  12174. // this.$refs.quotationDialog.setBackupVisible(true);
  12175. // }
  12176. }
  12177. });
  12178. },
  12179. //返回上一步
  12180. Back() { },
  12181. carcode(id, item) {
  12182. this.$api.letter.getQrCode(id).then((res) => {
  12183. if (res.code == "200") {
  12184. this.inscompany = res.data.inscompany; //保险公司
  12185. this.sumpremium = res.data.sumpremium; //总价
  12186. this.licenseNo = res.data.cPlateNo; //车牌号
  12187. this.applyName = res.data.cApplyNme; //车主
  12188. this.jqpremium = res.data.jqpremium; //交强
  12189. this.sypremium = res.data.sypremium; //商业
  12190. this.taxamount = res.data.taxamount; //车船税
  12191. this.jypremium = res.data.jypremium; //驾意险
  12192. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  12193. this.systartdate = res.data.syStartDate; //商业起保日期
  12194. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  12195. let qrCodeUrl = res.data.qrCodeUrl;
  12196. this.$api.letter.getThemeByUserId(this.userId).then((res) => {
  12197. if (res.code == 200) {
  12198. if (res.data[0] == "GD") {
  12199. this.codedialogVisiblePro = true;
  12200. this.qrcodeWidth = "154";
  12201. this.qrcodeHeight = "154";
  12202. } else {
  12203. this.codedialogVisible = true;
  12204. }
  12205. this.$nextTick(function () {
  12206. var _that = this;
  12207. switch (_that.inscompany) {
  12208. case "太平财险":
  12209. case "诚泰财险":
  12210. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  12211. let animgBase64 = `data:image/png;base64,${anresult}`;
  12212. base64ToPath(animgBase64).then((path) => {
  12213. this.paycodeimg = path;
  12214. });
  12215. break;
  12216. case "华泰财险":
  12217. switch (item.apiType) {
  12218. case 1:
  12219. this.creatQrCode(qrCodeUrl);
  12220. break;
  12221. case 2:
  12222. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  12223. let animgBase64 = `data:image/png;base64,${anresult}`;
  12224. base64ToPath(animgBase64).then((path) => {
  12225. this.paycodeimg = path;
  12226. });
  12227. break;
  12228. }
  12229. break;
  12230. case "大家财险":
  12231. case "中煤财险":
  12232. switch (item.apiType) {
  12233. case 1:
  12234. this.creatQrCode(qrCodeUrl);
  12235. break;
  12236. case 2:
  12237. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  12238. let animgBase64 = `data:image/png;base64,${anresult}`;
  12239. base64ToPath(animgBase64).then((path) => {
  12240. this.paycodeimg = path;
  12241. });
  12242. break;
  12243. }
  12244. break;
  12245. default:
  12246. this.creatQrCode(qrCodeUrl);
  12247. }
  12248. });
  12249. }
  12250. });
  12251. } else {
  12252. this.$message({ message: res.msg, type: "warning" });
  12253. }
  12254. });
  12255. },
  12256. //同步
  12257. synchronization() {
  12258. this.systartDate = this.jqstartDate;
  12259. this.syendDate = this.jqendDate;
  12260. },
  12261. add() {
  12262. // this.obtainProtocol();
  12263. if (this.isLetter == "1") {
  12264. this.$router.push({ path: "/letter/letter" });
  12265. }
  12266. for (let key in this.ownerInfo) {
  12267. this.ownerInfo[key] = "";
  12268. }
  12269. for (let key in this.policyHolderInfo) {
  12270. this.policyHolderInfo[key] = "";
  12271. }
  12272. for (let key in this.insuredPersonInfo) {
  12273. this.insuredPersonInfo[key] = "";
  12274. }
  12275. this.vehicleAndVesselTaxForm = {
  12276. taxRelifFlag: "1",
  12277. taxpayerIdentifier: "01",
  12278. };
  12279. // 清空保险公司列表
  12280. this.totalCompanyList = []
  12281. this.ownerInfo.provinceData = [];
  12282. this.insuredPersonInfo.provinceData = [];
  12283. this.policyHolderInfo.provinceData = [];
  12284. this.carInfo = JSON.parse(localStorage.getItem("carInfo"));
  12285. this.insureList = JSON.parse(localStorage.getItem("insureList"));
  12286. this.sychecked = false;
  12287. this.yonganchecked = false;
  12288. this.zhongmeichecked = false;
  12289. this.transferDateShow = false;
  12290. this.tbczcarShow = true //投保人同车主
  12291. // this.bbczcarShow = false, //被保人同车主
  12292. this.bbtbcarShow = true //被保人同投保人
  12293. // this.$refs.imageDialog.emptyList()
  12294. this.imageList1 = [];
  12295. this.imageList2 = [];
  12296. this.imageList3 = [];
  12297. this.imageList4 = [];
  12298. this.imageList5 = [];
  12299. this.imageList6 = [];
  12300. this.imgList1 = [];
  12301. this.imgList2 = [];
  12302. this.imgList3 = [];
  12303. this.imgList4 = [];
  12304. this.imgList5 = [];
  12305. this.imgList6 = [];
  12306. this.imgList7 = [];
  12307. this.imgList8 = [];
  12308. this.imgList9 = [];
  12309. this.imgList10 = [];
  12310. this.imgList11 = [];
  12311. this.imgList12 = [];
  12312. this.imgList13 = [];
  12313. this.imgList14 = [];
  12314. this.imgList15 = [];
  12315. this.imgList16 = [];
  12316. this.imgList17 = [];
  12317. this.imgList18 = [];
  12318. this.imgList19 = [];
  12319. this.imgList20 = [];
  12320. this.imgList21 = [];
  12321. this.imgList22 = [];
  12322. this.imgList23 = [];
  12323. this.imgList24 = [];
  12324. // 清空保险公司选中的意外险
  12325. this.zijintemplateSelection = "";
  12326. this.zhongantemplateSelection = "";
  12327. this.hengbangtemplateSelection = "";
  12328. this.taipingtemplateSelection = "";
  12329. this.insuranceHN = "";
  12330. this.renshoutemplateSelection = "";
  12331. this.dajiatemplateSelection = "";
  12332. this.accidentForm = {
  12333. fen: "1",
  12334. premium: 0,
  12335. };
  12336. this.accidentFormHN = {
  12337. allQuantity: "1",
  12338. quantity: "1",
  12339. };
  12340. this.productId = ''
  12341. this.hengbangaccidentalDrivingVo = {};
  12342. this.huanongaccidentalDrivingVo = {};
  12343. this.taipingaccidentalDrivingVo = {};
  12344. this.zhongmeiaccidentalDrivingVo = {};
  12345. this.accidentalDrivingVo = [];
  12346. this.zhonganaccidentalDrivingVo = {};
  12347. this.renshouaccidentalDrivingVo = {};
  12348. this.anshengaccidentalDrivingVo = {};
  12349. this.dajiaaccidentalDrivingVo = {};
  12350. // this.selectedOptions1 = [];
  12351. // this.selectedOptions2 = [];
  12352. // this.selectedOptions3 = [];
  12353. this.orderno = "";
  12354. this.quoteno = "";
  12355. this.lastCompanyId = "";
  12356. this.HistoryList = [];
  12357. this.jqstartDate = this.transformTime1();
  12358. this.jqendDate = this.oneYearPast1(this.jqstartDate);
  12359. this.systartDate = this.transformTime1();
  12360. this.syendDate = this.oneYearPast1(this.jqstartDate);
  12361. this.policyNumberForm = {
  12362. jqpolicyno: "",
  12363. sypolicyno: "",
  12364. jypolicyno: "",
  12365. jqpremium: "",
  12366. sypremium: "",
  12367. jypremium: "",
  12368. taxamount: "",
  12369. commissionFeevalue: "",
  12370. otherFeevalue: "",
  12371. jqSuperviseCostsProportion: "",
  12372. sySuperviseCostsProportion: "",
  12373. noSuperviseCostsProportion: "",
  12374. jqOtherCostsProportion: "",
  12375. syOtherCostsProportion: "",
  12376. noOtherCostsProportion: "",
  12377. jqReceivableProportion: "",
  12378. syReceivableProportion: "",
  12379. noReceivableProportion: "",
  12380. jqPolicyList: [],
  12381. syPolicyList: [],
  12382. jqSignList: [],
  12383. noPolicyList: [],
  12384. noCostsProportion: '',
  12385. jqCostsProportion: '',
  12386. syCostsProportion: '',
  12387. };
  12388. },
  12389. toChinesNum(num) {
  12390. if (num.toString().length == 4) {
  12391. let overQian = Math.floor(num / 1000);
  12392. let result = overQian + "千";
  12393. return result;
  12394. } else {
  12395. let overWan = Math.floor(num / 10000);
  12396. let result = overWan + "万";
  12397. return result;
  12398. }
  12399. },
  12400. reportDrop(event) {
  12401. event.preventDefault();
  12402. event.stopPropagation();
  12403. },
  12404. tabLiScroll(id, idx) {
  12405. this.tabLiIndex = idx;
  12406. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  12407. },
  12408. handleScroll(id) {
  12409. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  12410. },
  12411. },
  12412. };
  12413. </script>
  12414. <style>
  12415. /* .customNotifyClass {
  12416. word-break: break-all;
  12417. width: 600px;
  12418. } */
  12419. </style>
  12420. <style lang="scss" scoped>
  12421. .el-row{
  12422. display: flex;
  12423. flex-wrap: wrap;
  12424. align-content: flex-start;
  12425. }
  12426. // .marginL {
  12427. // margin-left: 10px;
  12428. // }
  12429. .el-notification {
  12430. width: 600px;
  12431. }
  12432. .styleB .el-upload--picture-card {
  12433. // display: none;
  12434. opacity: 0;
  12435. }
  12436. .ORcodebody {
  12437. height: auto;
  12438. background-color: #fff;
  12439. //background: url(../../../assets/image/group.png) #fff;
  12440. padding: 16px;
  12441. }
  12442. .csstool {
  12443. font-weight: 600;
  12444. color: #606266;
  12445. font-size: 14px;
  12446. margin: 0 20px;
  12447. span {
  12448. margin-right: 5px;
  12449. }
  12450. }
  12451. .ORcode {
  12452. width: 100%;
  12453. height: auto;
  12454. display: flex;
  12455. justify-content: center;
  12456. align-items: center;
  12457. padding: 30px;
  12458. box-sizing: border-box;
  12459. &>div {
  12460. width: 176px;
  12461. height: 176px;
  12462. border: 1px solid var(--themeColor);
  12463. border-radius: 5px;
  12464. }
  12465. }
  12466. .ORtitle {
  12467. width: 100%;
  12468. padding-bottom: 20px;
  12469. box-sizing: border-box;
  12470. &>div {
  12471. width: 100%;
  12472. margin: 10px 0;
  12473. font-size: 14px;
  12474. &>span {
  12475. &:nth-child(1) {
  12476. color: #868b98;
  12477. text-align: end;
  12478. width: 150px;
  12479. }
  12480. &:nth-child(2) {
  12481. color: #333333;
  12482. }
  12483. }
  12484. }
  12485. }
  12486. .Risk {
  12487. width: 100%;
  12488. height: auto;
  12489. display: flex;
  12490. flex-direction: column;
  12491. align-items: center;
  12492. font-size: 12px;
  12493. }
  12494. .dis {
  12495. display: flex;
  12496. }
  12497. .align {
  12498. align-items: center;
  12499. }
  12500. .jus {
  12501. justify-content: space-between;
  12502. }
  12503. .shangyexian {
  12504. padding-left: 100px;
  12505. }
  12506. .headertotal {
  12507. padding: 30px;
  12508. }
  12509. .my-label {
  12510. background: #e1f3d8;
  12511. }
  12512. .my-content {
  12513. background: #fde2e2;
  12514. color: aqua;
  12515. }
  12516. .el-button--mini {
  12517. padding: 5px;
  12518. }
  12519. #qqq {
  12520. background-color: #111;
  12521. width: 300px;
  12522. height: 300px;
  12523. margin: 0 auto;
  12524. position: relative;
  12525. }
  12526. #qrCode {
  12527. display: inline-block;
  12528. margin: 0 auto;
  12529. position: relative;
  12530. top: 15%;
  12531. img {
  12532. width: 200px;
  12533. height: 200px;
  12534. background-color: #fff;
  12535. padding: 6px;
  12536. }
  12537. }
  12538. .code {
  12539. box-sizing: border-box;
  12540. display: flex;
  12541. flex-direction: column;
  12542. justify-content: space-between;
  12543. align-items: center;
  12544. &>span {
  12545. margin-bottom: 10px;
  12546. }
  12547. }
  12548. .code_name {
  12549. width: 350px;
  12550. display: flex;
  12551. justify-content: space-between;
  12552. align-items: center;
  12553. font-weight: bold;
  12554. &>span {
  12555. &:nth-child(1) {
  12556. color: #979797;
  12557. width: 120px;
  12558. text-align: right;
  12559. }
  12560. &:nth-child(2) {
  12561. color: #2d2d2d;
  12562. width: 120px;
  12563. text-align: left;
  12564. }
  12565. }
  12566. }
  12567. .header {
  12568. font-size: 18px;
  12569. font-weight: bold;
  12570. }
  12571. .body {
  12572. border-top: none;
  12573. padding-bottom: 100px;
  12574. box-sizing: border-box;
  12575. }
  12576. .u-f-ac {
  12577. -webkit-box-align: center;
  12578. align-items: center;
  12579. padding: 10px;
  12580. }
  12581. .bodyTitle {
  12582. height: 45px;
  12583. background: #f3f3f3;
  12584. border: 1px solid #dddddd;
  12585. line-height: 45px;
  12586. padding: 0 20px;
  12587. box-sizing: border-box;
  12588. }
  12589. .start {
  12590. justify-content: flex-start;
  12591. }
  12592. .end {
  12593. justify-content: flex-end;
  12594. }
  12595. .descriptions {
  12596. padding: 20px;
  12597. box-sizing: border-box;
  12598. display: flex;
  12599. flex-direction: column;
  12600. }
  12601. .bodys {
  12602. display: flex;
  12603. justify-content: space-between;
  12604. align-items: center;
  12605. flex-wrap: wrap;
  12606. }
  12607. .bodys1 {
  12608. display: flex;
  12609. justify-content: center;
  12610. align-items: center;
  12611. flex-wrap: wrap;
  12612. }
  12613. .widths {
  12614. width: 230px;
  12615. }
  12616. .widths1 {
  12617. width: 300px;
  12618. }
  12619. .back {
  12620. color: #333333;
  12621. // font-weight: 700;
  12622. }
  12623. .home {
  12624. // padding-left: 10px;
  12625. box-sizing: border-box;
  12626. padding-bottom: 10px;
  12627. border-bottom: 1px solid #eef1f6;
  12628. &>span {
  12629. margin-right: 10px;
  12630. }
  12631. }
  12632. .border-red {
  12633. border: 1px solid #ff0606;
  12634. }
  12635. .border-blue {
  12636. border: 1px solid #0634ff;
  12637. }
  12638. .hovers {
  12639. margin: 20px 0;
  12640. cursor: pointer;
  12641. padding: 10px 0;
  12642. box-sizing: border-box;
  12643. box-shadow: 0 2px 8px 0 rgba(231, 163, 36, 0.205);
  12644. border-radius: 8px;
  12645. .offer-time {
  12646. margin: 20px 0 0px 100px;
  12647. padding: 10px;
  12648. background: rgba(45, 77, 137, 0.06);
  12649. &>span {
  12650. margin: 0 10px;
  12651. }
  12652. }
  12653. }
  12654. /* 内容待定 */
  12655. .coll {
  12656. font-size: 14px;
  12657. }
  12658. .display {
  12659. display: flex;
  12660. justify-content: center;
  12661. align-items: center;
  12662. box-sizing: border-box;
  12663. }
  12664. .black {
  12665. color: #000;
  12666. }
  12667. .gray {
  12668. color: #999;
  12669. }
  12670. .OCR {
  12671. font-weight: bold;
  12672. color: #333;
  12673. margin: 20px;
  12674. }
  12675. .slot {
  12676. position: absolute;
  12677. width: 100%;
  12678. height: 100%;
  12679. left: 0;
  12680. top: 0;
  12681. cursor: default;
  12682. text-align: center;
  12683. color: #fff;
  12684. opacity: 0;
  12685. font-size: 20px;
  12686. background-color: rgba(0, 0, 0, 0.5);
  12687. transition: opacity 0.3s;
  12688. display: flex;
  12689. justify-content: center;
  12690. align-items: center;
  12691. &>i {
  12692. margin: 10px;
  12693. color: #fff;
  12694. font-size: 30px;
  12695. font-weight: bold;
  12696. cursor: pointer;
  12697. }
  12698. &:hover {
  12699. opacity: 1;
  12700. }
  12701. }
  12702. .companyhead {
  12703. width: 100%;
  12704. margin: 0 auto;
  12705. padding: 15px 10px;
  12706. color: #333;
  12707. font-weight: bold;
  12708. font-size: 14px;
  12709. background-color: rgba(0, 89, 255, 0.1);
  12710. }
  12711. .position-left {
  12712. width: calc(100% - 220px);
  12713. }
  12714. .position-collapse-left {
  12715. width: calc(100% - 80px);
  12716. }
  12717. .footer {
  12718. position: fixed;
  12719. bottom: 0;
  12720. right: 0;
  12721. background-color: #fff;
  12722. z-index: 9;
  12723. padding: 20px;
  12724. box-sizing: border-box;
  12725. box-shadow: 0 0 1px 0 #ccc;
  12726. transition: all 0.1s, box-shadow 0.5s;
  12727. &.shadow {
  12728. box-shadow: 0 -10px 10px -10px #ccc;
  12729. }
  12730. }
  12731. .Enclosure {
  12732. width: 100%;
  12733. background-color: #fff;
  12734. padding: 20px;
  12735. box-sizing: border-box;
  12736. margin-bottom: 15px;
  12737. border-radius: 6px;
  12738. border: 1px solid #ebeef5;
  12739. transition: all 0.2s ease-in-out;
  12740. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  12741. }
  12742. .Enclosure:hover {
  12743. box-shadow: 0 0 10px 0 #d42427;
  12744. }
  12745. .icon-img {
  12746. display: block;
  12747. width: 30px;
  12748. height: 30px;
  12749. }
  12750. .Anchor-link {
  12751. width: 40px;
  12752. background-color: #fff;
  12753. box-shadow: #ccc 0 0px 3px 0;
  12754. border-radius: 6px;
  12755. position: fixed;
  12756. top: 50%;
  12757. right: 0;
  12758. z-index: 99;
  12759. div {
  12760. margin: 5px;
  12761. border-bottom: 1px solid #f2f2f2;
  12762. cursor: pointer;
  12763. display: block;
  12764. }
  12765. }
  12766. .color {
  12767. padding-top: 150px;
  12768. margin-top: -150px;
  12769. }
  12770. .more {
  12771. width: 100%;
  12772. padding: 20px;
  12773. box-sizing: border-box;
  12774. }
  12775. .more-title {
  12776. padding: 15px 10px;
  12777. background-color: #f7f7f9;
  12778. // border-bottom: 1px solid #e3e3e3;
  12779. font-size: 14px;
  12780. }
  12781. .more-data {
  12782. padding: 10px;
  12783. border-bottom: 1px solid #f2f2f2;
  12784. color: #333;
  12785. font-size: 14px;
  12786. }
  12787. .Driving-risk {
  12788. padding-left: 100px;
  12789. // padding-top:20px
  12790. }
  12791. .checkbox {
  12792. transform: scale(1.2);
  12793. margin-right: 20px;
  12794. line-height: 32px;
  12795. }
  12796. .insure-long-term {
  12797. display: inline-flex;
  12798. padding-left: 8px;
  12799. padding-right: 8px;
  12800. background: var(--themeColor);
  12801. color: #fff;
  12802. font-size: 12px;
  12803. margin-left: -5px;
  12804. border-radius: 0px 5px 5px 0px;
  12805. cursor: pointer;
  12806. }
  12807. .textareaSty {
  12808. width: 160px;
  12809. height: 210px;
  12810. border: 1px solid #d2d2d2;
  12811. border-radius: 4px;
  12812. img {
  12813. width: 50px;
  12814. height: 50px;
  12815. }
  12816. }
  12817. .image-title {
  12818. width: 100px;
  12819. height: 30px;
  12820. color: #fff;
  12821. text-align: center;
  12822. line-height: 30px;
  12823. font-weight: bold;
  12824. margin-bottom: 15px;
  12825. background: #fc4a1a;
  12826. background: #f2994a;
  12827. /* fallback for old browsers */
  12828. background: -webkit-linear-gradient(to left, #f2c94c, #f2994a);
  12829. /* Chrome 10-25, Safari 5.1-6 */
  12830. background: linear-gradient(to left, #f2c94c, #f2994a);
  12831. /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  12832. }
  12833. .aaa {
  12834. /deep/ {
  12835. margin-bottom: 20px;
  12836. margin-right: 30px;
  12837. span {
  12838. display: inline-block;
  12839. margin-bottom: 10px;
  12840. }
  12841. .el-upload .el-upload-dragger {
  12842. width: 180px;
  12843. height: 120px;
  12844. border: 1px dashed #c0ccda;
  12845. padding: 0;
  12846. }
  12847. .el-upload-list--picture-card .el-upload-list__item {
  12848. width: 180px;
  12849. height: 120px;
  12850. }
  12851. .el-upload-list__item:first-child {
  12852. margin-top: 0;
  12853. }
  12854. .el-upload--picture-card {
  12855. width: 180px;
  12856. height: 120px;
  12857. }
  12858. .el-upload-list__item {
  12859. width: 180px;
  12860. height: 120px;
  12861. margin: 0 !important;
  12862. display: block !important;
  12863. }
  12864. .el-upload-list--picture-card .el-upload-list__item-thumbnail {
  12865. width: 180px;
  12866. height: 120px;
  12867. }
  12868. }
  12869. }
  12870. .jyxStyle>span {
  12871. display: inline-block;
  12872. text-align: center;
  12873. }
  12874. .tab-style {
  12875. width: 120px;
  12876. li {
  12877. text-align: right;
  12878. padding-right: 20px;
  12879. line-height: 40px;
  12880. cursor: pointer;
  12881. box-sizing: border-box;
  12882. border-right: 1px solid #e2e5eb;
  12883. }
  12884. li:focus {
  12885. background: rgba(212, 36, 38, 0.1);
  12886. border-right: 2px solid var(--themeColor);
  12887. color: var(--themeColor);
  12888. }
  12889. }
  12890. .tabLi-style {
  12891. background: rgba(212, 36, 38, 0.1);
  12892. border-right: 2px solid var(--themeColor);
  12893. color: var(--themeColor);
  12894. }
  12895. .scan-code {
  12896. div {
  12897. margin-top: 10px;
  12898. }
  12899. }
  12900. /* 清除图片上传动画bug */
  12901. /deep/ {
  12902. .proSaomazhifucodeClass .el-dialog__header {
  12903. background: rgba(45, 77, 137, 0.1);
  12904. font-weight: bold;
  12905. }
  12906. .proSaomazhifucodeClass .el-dialog__footer {
  12907. border-top: 1px solid #eef1f6;
  12908. }
  12909. .el-upload-list__item {
  12910. transition: none !important;
  12911. }
  12912. .el-checkbox__input {
  12913. &.is-checked {
  12914. .el-checkbox__inner {
  12915. background-color: #d42426;
  12916. border-color: #d42426;
  12917. }
  12918. }
  12919. }
  12920. .el-checkbox__inner {
  12921. border: 1px solid var(--themeColor);
  12922. &:hover {
  12923. border-color: var(--themeColorHover);
  12924. }
  12925. &:focus {
  12926. border-color: var(--themeColor);
  12927. }
  12928. }
  12929. .el-upload .el-upload-dragger {
  12930. height: 250px;
  12931. width: 400px;
  12932. border: 1px dashed #ced4da;
  12933. }
  12934. // .el-button--warning {
  12935. // color: #fff;
  12936. // background-color: #D42426;
  12937. // border-color: #D42426;
  12938. // &:hover {
  12939. // color: #fff;
  12940. // background-color: #ee6f00ce;
  12941. // border-color: #ee6f00ce;
  12942. // }
  12943. // }
  12944. .el-descriptions-item__label {
  12945. &:not(.is-bordered-label) {
  12946. color: #333;
  12947. }
  12948. }
  12949. // .el-radio__input.is-checked + .el-radio__label {
  12950. // color: #ff7000;
  12951. // }
  12952. // .el-radio__input.is-checked .el-radio__inner {
  12953. // border-color: #ff7000;
  12954. // background: #ff7000;
  12955. // }
  12956. // .el-radio__inner {
  12957. // &:hover {
  12958. // border-color: #ff7000;
  12959. // }
  12960. // }
  12961. // .el-input--small .el-icon-date {
  12962. // color: #ee6f00ce;
  12963. // }
  12964. .el-select {
  12965. width: 100%;
  12966. }
  12967. .el-date-editor.el-input {
  12968. width: 100%;
  12969. }
  12970. .el-cascader--small {
  12971. width: 100%;
  12972. }
  12973. .styleB {
  12974. height: 128px;
  12975. }
  12976. .styleB .el-upload--picture-card {
  12977. display: none;
  12978. }
  12979. .saomazhifucodeClass .el-dialog__body,
  12980. .saomazhifucodeClass .el-dialog__header,
  12981. .saomazhifucodeClass .el-dialog__footer {
  12982. padding: 0;
  12983. background: #f4e9e9;
  12984. }
  12985. .saomazhifucodeClass .el-dialog__body {
  12986. padding: 15px;
  12987. }
  12988. .saomazhifucodeClass .el-dialog__footer {
  12989. background: #f4e9e9;
  12990. padding-bottom: 15px;
  12991. }
  12992. .saomazhifucodeClass .el-dialog__headerbtn {
  12993. margin-top: 10px;
  12994. }
  12995. .zmDriving {
  12996. thead .el-table-column--selection .cell {
  12997. display: none !important;
  12998. }
  12999. }
  13000. .line_style {
  13001. margin-top: 20px;
  13002. }
  13003. .el-input-group__append {
  13004. vertical-align: baseline;
  13005. }
  13006. .pinganTable .el-table__header-wrapper .el-checkbox {
  13007. display: none;
  13008. }
  13009. }
  13010. </style>
  13011. <style lang="scss" scoped>
  13012. .company-checked {
  13013. background: rgba(45,77,137,0.15);
  13014. padding: 12px 20px;
  13015. box-sizing: border-box;
  13016. margin-top: 10px;
  13017. font-size: 13px;
  13018. color: #333;
  13019. line-height: 24px;
  13020. overflow-x: auto;
  13021. .width1280 {
  13022. min-width: 1576px;
  13023. }
  13024. .bg-white {
  13025. background: #FFF;
  13026. padding: 10px 12px;
  13027. border-radius: 4px;
  13028. width: 100%;
  13029. }
  13030. .flex-1 {
  13031. flex: 1;
  13032. }
  13033. .w-60 {
  13034. box-sizing: border-box;
  13035. width: 60px;
  13036. text-align: center;
  13037. border-left: 1px solid #FCE5BD;
  13038. }
  13039. .w-50 {
  13040. box-sizing: border-box;
  13041. width: 60px;
  13042. text-align: center;
  13043. border-left: 1px solid #FCE5BD;
  13044. }
  13045. .card-bg {
  13046. background: #FFF;
  13047. padding: 10px;
  13048. display: flex;
  13049. }
  13050. .card-xianzhong {
  13051. border: 1px solid #2AB79E;
  13052. flex: 1;
  13053. background: rgba(42, 183, 158, 0.15);
  13054. border-radius: 0;
  13055. text-align: center;
  13056. color: #2AB79E;
  13057. // border: 10px solid #FFF;
  13058. font-size: 15px;
  13059. padding: 0 18px;
  13060. display: flex;
  13061. flex-direction: column;
  13062. justify-content: center;
  13063. .card-btn {
  13064. margin-top: 20px;
  13065. border-radius: 2px;
  13066. border: 1px solid #2AB79E;
  13067. background: #FFF;
  13068. padding: 4px 8px;
  13069. font-size: 16px;
  13070. font-weight: 600;
  13071. }
  13072. }
  13073. .card-table {
  13074. display: flex;
  13075. margin-top: 12px;
  13076. .table-title {
  13077. color: #333;
  13078. width: 58px;
  13079. font-size: 14px;
  13080. }
  13081. .table-list {
  13082. flex: 1;
  13083. .table-list-title {
  13084. background: #FDEDC2;
  13085. border: 1px solid #FCE5BD;
  13086. color: #333;
  13087. line-height: 28px;
  13088. padding-left: 12px;
  13089. display: flex;
  13090. }
  13091. .table-list-content {
  13092. line-height: 28px;
  13093. padding-left: 12px;
  13094. display: flex;
  13095. align-items: center;
  13096. border: 1px solid #FDEDC2;
  13097. border-top: none;
  13098. background: #FFF;
  13099. img {
  13100. width: 14px;
  13101. height: 14px;
  13102. transform: translateY(2px);
  13103. }
  13104. span {
  13105. margin-left: 8px;
  13106. font-size: 14px;
  13107. }
  13108. }
  13109. }
  13110. }
  13111. .card-mingxi {
  13112. border: 1px solid #FD9A25;
  13113. flex: 1;
  13114. background: rgba(253, 154, 37, 0.15);
  13115. padding: 8px 12px;
  13116. font-size: 13px;
  13117. .card-mingxi-title {
  13118. color: #FD9A25;
  13119. font-size: 15px;
  13120. span {
  13121. color: #FFF;
  13122. background: linear-gradient( 90deg, #FF981F 0%, #FF5C00 100%);
  13123. padding: 4px 8px;
  13124. border-radius: 2px;
  13125. }
  13126. }
  13127. }
  13128. .fuwu {
  13129. background: #E9F1FF;
  13130. border: 1px solid #315BA9;
  13131. .card-mingxi-title {
  13132. color: #315BA9;
  13133. }
  13134. .table-list-title {
  13135. background: #C1DAFF !important;
  13136. border: 1px solid #C1DAFF !important;
  13137. }
  13138. .table-list-content {
  13139. border-color: #C1DAFF !important;
  13140. }
  13141. .w-50 {
  13142. border-color: #afccfa !important;
  13143. }
  13144. .flex-1 {
  13145. border-right: 1px solid #afccfa;
  13146. }
  13147. .w-55 {
  13148. border-left: none !important;
  13149. }
  13150. }
  13151. .baoxian {
  13152. padding: 10px;
  13153. border: 1px solid rgba(45,77,137,0.5);
  13154. // background: #F2F4F8;
  13155. background: #f3f3f3;
  13156. display: flex;
  13157. flex-direction: column;
  13158. .card-mingxi-title {
  13159. color: #333;
  13160. display: flex;
  13161. }
  13162. .table-list-title {
  13163. background: #DCDCE8 !important;
  13164. }
  13165. .table-list-title, .table-list-content {
  13166. padding-left: 0 !important;
  13167. text-align: center;
  13168. border-color: #DCDCE8 !important;
  13169. }
  13170. .table-list-title {
  13171. padding-left: 0 !important;
  13172. text-align: center;
  13173. border: 1px solid #DCDCE8 !important;
  13174. }
  13175. .flex-1 {
  13176. border-left: 1px solid #DCDCE8;
  13177. }
  13178. .w-40 {
  13179. box-sizing: border-box;
  13180. width: 50px;
  13181. text-align: center;
  13182. }
  13183. }
  13184. .youhui {
  13185. background: #FEEEEC;
  13186. border: 1px solid #ED5626;
  13187. .card-mingxi-title {
  13188. color: #ED5626;
  13189. }
  13190. .table-list-title {
  13191. background: #FFD2C8 !important;
  13192. border: 1px solid #FFD2C8 !important;
  13193. }
  13194. .table-list-content {
  13195. border-color: #FFD2C8 !important;
  13196. padding-left: 0 !important;
  13197. }
  13198. .table-list-line {
  13199. border-bottom: 1px solid #FFD2C8;
  13200. border-right: 1px solid #FFD2C8;
  13201. padding-left: 6px;
  13202. }
  13203. .table-list-line-last {
  13204. border-bottom: none !important;
  13205. }
  13206. .w-60 {
  13207. width: 70px !important;
  13208. border-color: #fabdae !important;
  13209. }
  13210. .w-66 {
  13211. border-left: none !important;
  13212. }
  13213. }
  13214. .el-popover {
  13215. margin-right: 20px;
  13216. padding: 0 !important;
  13217. }
  13218. .gray-style {
  13219. border: 1px solid #333333;
  13220. border-radius: 2px;
  13221. color: #333;
  13222. text-align: center;
  13223. line-height: 24px;
  13224. box-sizing: border-box;
  13225. padding: 4px 8px;
  13226. margin-right: 10px;
  13227. opacity: .65;
  13228. // transition: all ease .3s;
  13229. img {
  13230. margin-bottom: -4px;
  13231. }
  13232. &:hover {
  13233. opacity: 1;
  13234. }
  13235. }
  13236. .juse-style {
  13237. color: #FFF;
  13238. background: linear-gradient( 90deg, #FF981F 0%, #FF5C00 100%);
  13239. padding: 4px 8px;
  13240. border-radius: 2px;
  13241. }
  13242. .blue-style {
  13243. // background: #2D4D89;
  13244. background: linear-gradient( 270deg, #0052FF 0%, #6899FF 100%);
  13245. // border: 1px solid #2D4D89;
  13246. border: none;
  13247. color: #FFF;
  13248. border-radius: 2px;
  13249. padding: 4px 8px;
  13250. text-align: center;
  13251. line-height: 24px;
  13252. box-sizing: border-box;
  13253. opacity: 1;
  13254. position: relative;
  13255. // ::after {
  13256. // content: '✔';
  13257. // color: red;
  13258. // position: absolute;
  13259. // bottom: 0;
  13260. // right: 0;
  13261. // width: 4px;
  13262. // height: 4px;
  13263. // }
  13264. }
  13265. .blue-text {
  13266. color: #2D4D89;
  13267. }
  13268. .left-title {
  13269. font-size: 14px;
  13270. margin-bottom: 12px;
  13271. }
  13272. .blue-button {
  13273. background: #2D4D89;
  13274. color: #FFF;
  13275. padding: 4px 8px;
  13276. line-height: 24px;
  13277. border: 1px solid #2D4D89;
  13278. border-radius: 2px;
  13279. }
  13280. .company-checked-card {
  13281. background: #FFF;
  13282. padding: 12px;
  13283. margin-top: 12px;
  13284. > div {
  13285. display: flex;
  13286. margin: 10px;
  13287. }
  13288. .checked-card-title {
  13289. width: 60px;
  13290. }
  13291. span {
  13292. margin-right: 20px;
  13293. }
  13294. }
  13295. .company-checked-right {
  13296. padding: 0 12px;
  13297. color: #333;
  13298. line-height: 22px;
  13299. font-size: 14px;
  13300. position: relative;
  13301. .btn-list {
  13302. display: flex;
  13303. justify-content: right;
  13304. align-items: center;
  13305. span {
  13306. margin: 0 10px;
  13307. color: #2D4D89;
  13308. font-size: 12px;
  13309. }
  13310. }
  13311. }
  13312. }
  13313. .typedialog-style {
  13314. .typedialog-title {
  13315. font-size: 15px;
  13316. line-height: 30px;
  13317. font-weight: 700;
  13318. margin: 10px 0;
  13319. color: #000;
  13320. }
  13321. >>> .table-header {
  13322. background: #F7F7F9;
  13323. color: #333333;
  13324. }
  13325. .el-checkbox-group {
  13326. font-size: 16px;
  13327. color: #333;
  13328. margin-bottom: 20px;
  13329. }
  13330. .more-data-left {
  13331. border: 1px solid #F5F5F8;
  13332. line-height: 48px;
  13333. padding: 0 20px;
  13334. border-top: none;
  13335. position: relative;
  13336. .zhuxian {
  13337. position: absolute;
  13338. top: 0;
  13339. right: 0;
  13340. padding: 4px 12px;
  13341. color: #FFF;
  13342. background: #ED9E23;
  13343. font-size: 13px;
  13344. line-height: 12px;
  13345. }
  13346. }
  13347. .more-data-right {
  13348. border: 1px solid #F5F5F8;
  13349. line-height: 48px;
  13350. padding: 0 20px;
  13351. border-top: none;
  13352. border-left: none;
  13353. }
  13354. >>> .is-checked, >>> .is-indeterminate{
  13355. .el-checkbox__inner {
  13356. background: #2D4D89 !important;
  13357. border-color: #2D4D89 !important;
  13358. }
  13359. .el-checkbox__label {
  13360. color: #2D4D89;
  13361. }
  13362. }
  13363. .opacity1 {
  13364. opacity: 1;
  13365. }
  13366. .opacity0 {
  13367. opacity: .65;
  13368. }
  13369. .jiayi-style {
  13370. font-size: 13px;
  13371. text-align: center;
  13372. .el-col {
  13373. border: 1px solid #2D4D89;
  13374. margin: 0 1px;
  13375. background: rgba(45, 77, 137, 0.05);
  13376. }
  13377. .jiayi-style-title {
  13378. background: #2D4D89;
  13379. color: #FFF;
  13380. line-height: 40px;
  13381. }
  13382. .jiayi-style-line {
  13383. color: #333;
  13384. padding: 16px 20px;
  13385. }
  13386. }
  13387. }
  13388. .typedialog-style1 {
  13389. background: rgba(42,183,158,0.15);
  13390. padding: 20px;
  13391. margin-bottom: 20px;
  13392. border-radius: 10px;
  13393. }
  13394. .typedialog-style2 {
  13395. background: rgba(253,154,37,0.15);
  13396. padding: 20px;
  13397. margin-bottom: 20px;
  13398. border-radius: 10px;
  13399. }
  13400. .typedialog-style3 {
  13401. background: #E9F1FF;
  13402. padding: 20px;
  13403. border-radius: 10px;
  13404. }
  13405. .addyiwai {
  13406. >>> .el-input-group__append, >>> .el-input-group__prepend {
  13407. padding: 0 10px;
  13408. }
  13409. >>> .el-dialog__body {
  13410. padding: 24px;
  13411. background: #F2F2F2;
  13412. }
  13413. .addyiwai-title {
  13414. color: #262626;
  13415. font-size: 16px;
  13416. line-height: 24px;
  13417. margin-right: 10px;
  13418. }
  13419. .addyiwai-title-btn {
  13420. background: #EAEDF1;
  13421. box-shadow: 0px 2px 0px 0px rgba(0,0,0,0.02);
  13422. border-radius: 2px 2px 2px 2px;
  13423. border: 1px solid #D9D9D9;
  13424. font-size: 14px;
  13425. color: #2D4D89;
  13426. padding: 4px 10px;
  13427. cursor: pointer;
  13428. }
  13429. .el-select {
  13430. width: 200px;
  13431. }
  13432. }
  13433. .teYuedialog-style {
  13434. >>> .el-dialog__body {
  13435. padding: 10px 20px;
  13436. }
  13437. >>> .el-input__inner:focus {
  13438. border-color: #F96646;
  13439. }
  13440. >>> .el-input-group__append, .el-input-group__prepend, >>> .el-button--primary, .el-button--primary:focus {
  13441. border-color: #F96646;
  13442. background: linear-gradient( 90deg, #F6734A 0%, #F14B3A 100%);
  13443. color: #FFF;
  13444. }
  13445. >>> .is-checked, >>> .is-indeterminate{
  13446. .el-checkbox__inner {
  13447. background: #F96646 !important;
  13448. border-color: #F96646 !important;
  13449. }
  13450. .el-checkbox__label {
  13451. color: #F96646;
  13452. }
  13453. }
  13454. >>> .table-header {
  13455. background: #F7F7F9;
  13456. color: #333333;
  13457. }
  13458. .table-title {
  13459. font-size: 12px;
  13460. color: #333;
  13461. line-height: 20px;
  13462. padding: 2px 20px;
  13463. }
  13464. .dialog-footer {
  13465. display: flex;
  13466. align-items: center;
  13467. > span {
  13468. color: #333;
  13469. font-size: 13px;
  13470. }
  13471. }
  13472. }
  13473. .red-btn {
  13474. >>> .el-input-group__append {
  13475. border-color: #D42426;
  13476. background: #D42426;
  13477. }
  13478. >>> .el-input__prefix {
  13479. color: #D42426;
  13480. }
  13481. .insure-long-term {
  13482. position: relative;
  13483. top: 1px;
  13484. }
  13485. >>> .input {
  13486. border-radius: 4px 0 0 4px;
  13487. }
  13488. }
  13489. .synchronous {
  13490. width: 75px;
  13491. height: 45px;
  13492. line-height: 45px;
  13493. color: #fff;
  13494. position: relative;
  13495. img {
  13496. position: absolute;
  13497. top: 0;
  13498. left: 0;
  13499. width: 75px;
  13500. height: 45px;
  13501. z-index: 0;
  13502. }
  13503. > div {
  13504. width: 75px;
  13505. height: 45px;
  13506. line-height: 45px;
  13507. color: #fff;
  13508. cursor: pointer;
  13509. position: relative;
  13510. text-align: center;
  13511. font-size: 14px;
  13512. }
  13513. }
  13514. .bxgs-list {
  13515. position: relative;
  13516. .baofeijisuan {
  13517. position: absolute;
  13518. right: 8.333%;
  13519. top: 0;
  13520. background: linear-gradient( 270deg, #0052FF 0%, #6899FF 100%);
  13521. border-radius: 4px;
  13522. // border: 1px solid rgb(26, 77, 219);
  13523. // color: rgb(26, 77, 219);
  13524. color: #FFF;
  13525. font-size: 14px;
  13526. line-height: 20px;
  13527. padding: 4px 8px;
  13528. font-weight: 700;
  13529. }
  13530. }
  13531. .coefficient {
  13532. width: 100px;
  13533. >>> .el-input__inner {
  13534. border: none;
  13535. }
  13536. }
  13537. .loader {
  13538. /* Wave text loader made by: csozi | Website: english.csozi.hu*/
  13539. height: 30px;
  13540. .text {
  13541. margin: 0;
  13542. line-height: 24px;
  13543. color: red;
  13544. font-weight: bolder;
  13545. background: -webkit-linear-gradient(45deg, orange, orangered); /* Chrome, Safari */
  13546. background: linear-gradient(45deg, orange, orangered); /* Standard syntax */
  13547. -webkit-background-clip: text; /* Chrome, Safari */
  13548. background-clip: text;
  13549. -webkit-text-fill-color: transparent; /* Chrome, Safari */
  13550. color: transparent; /* Standard syntax (currently not supported by browsers) */
  13551. font-family: "'Gill Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif'";
  13552. }
  13553. @keyframes letter {
  13554. 0% {
  13555. font-size: 14px;
  13556. }
  13557. 50% {
  13558. font-size: 15px;
  13559. }
  13560. 100% {
  13561. font-size: 14px;
  13562. }
  13563. }
  13564. .letter {
  13565. animation: letter 1s infinite;
  13566. }
  13567. .letter1 {
  13568. animation-delay: 0s;
  13569. }
  13570. .letter2 {
  13571. animation-delay: -0.9s;
  13572. }
  13573. .letter3 {
  13574. animation-delay: -0.8s;
  13575. }
  13576. .letter4 {
  13577. animation-delay: -0.7s;
  13578. }
  13579. .letter5 {
  13580. animation-delay: -0.6s;
  13581. }
  13582. .letter6 {
  13583. animation-delay: -0.5s;
  13584. }
  13585. .letter7 {
  13586. animation-delay: -0.4s;
  13587. }
  13588. .letter8 {
  13589. animation-delay: -0.3s;
  13590. }
  13591. .letter9 {
  13592. animation-delay: -0.2s;
  13593. }
  13594. .letter10 {
  13595. animation-delay: -0.1s;
  13596. }
  13597. }
  13598. .xianbie {
  13599. // border: 5px dashed #D42426;
  13600. background: #d4242734;
  13601. .home {
  13602. border-bottom: none !important;
  13603. }
  13604. }
  13605. .mini-input {
  13606. >>> .el-input__inner {
  13607. padding: 0 4px !important;
  13608. text-align: center;
  13609. }
  13610. }
  13611. </style>