premiumCalc.vue 164 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967
  1. <template>
  2. <view class="">
  3. <service-widget @btnClick="btn_click"></service-widget>
  4. <image src="/static/image/car-insure/Quotablebanner.png" mode=""
  5. style="width: 100%;height: 110px;position: absolute;"></image>
  6. <view class="page">
  7. <view class="car-header dis a-c mt-2">
  8. <image src="/static/image/car-insure/Group.png" mode="" style="width: 40px;height: 40px;"></image>
  9. <view class="dis f-c head-name">
  10. <text>{{carInfo.licenseNo}} <text style="color: rgba(35,40,50,0.65);">丨</text> <text
  11. style="font-weight: 400;"> {{insuredPersonInfo.name}} (被保人)</text> </text>
  12. <view class="name1">
  13. <text>{{carInfo.modelcname}}</text>
  14. </view>
  15. </view>
  16. <view class="carJump" @tap="toCarInfo">修改信息</view>
  17. </view>
  18. <view class="" style="position: relative;">
  19. <view class=" dis f-c" v-if="['0330','0330034002','0330034001'].includes(productId)">
  20. <text class="plan-ins-title">交强险</text>
  21. <view class="quotePlan">
  22. <view class=" dis a-c j-s modelformcss">
  23. <text>即时投保</text>
  24. <view class="dis a-c j-c">
  25. <view class="status-data" :class="item.value==jqimmediately? 'active':''"
  26. v-for="(item,index) in jqimmediatelyList"
  27. @tap="datelyClick(item.value,'jqimmediately','jqstartDate','jqendDate')"
  28. :key="index">
  29. {{item.label}}
  30. </view>
  31. </view>
  32. </view>
  33. <u-form ref="uForm" label-width="120px">
  34. <u-form-item label="交强险投保日期" class="modelformcss">
  35. <u-input type="select" :select-open="jqstartShow" :custom-style="{textAlign:'right'}"
  36. v-model="jqstartDate" placeholder="请选择开始时间" @click="jqstartShow = true"></u-input>
  37. <u-picker v-model="jqstartShow" mode="time" :params="params"
  38. @confirm="jqstartconfirm"></u-picker>
  39. </u-form-item>
  40. <u-form-item label="交强险终保日期" class="modelformcss">
  41. <u-input type="select" :select-open="jqendShow" :custom-style="{textAlign:'right'}"
  42. v-model="jqendDate" placeholder="请选择结束时间" @click="jqendShow = true"></u-input>
  43. <u-picker v-model="jqendShow" mode="time" :params="params"
  44. @confirm="jqendconfirm"></u-picker>
  45. </u-form-item>
  46. </u-form>
  47. </view>
  48. </view>
  49. <view class=" dis f-c " v-if="['034001','034002','0330034002','0330034001'].includes(productId)">
  50. <text class="plan-ins-title">商业险</text>
  51. <view class="quotePlan">
  52. <view class=" dis a-c j-s modelformcss">
  53. <text>即时投保</text>
  54. <view class="dis a-c j-c">
  55. <view class="status-data" :class="item.value==syimmediately? 'active':''"
  56. v-for="(item,index) in syimmediatelyList"
  57. @tap="datelyClick(item.value,'syimmediately','systartDate','syendDate')"
  58. :key="index">
  59. {{item.label}}
  60. </view>
  61. </view>
  62. </view>
  63. <u-form ref="uForm" label-width="120px">
  64. <u-form-item label="商业险投保日期" class="modelformcss">
  65. <u-input type="select" :select-open="systartShow" :custom-style="{textAlign:'right'}"
  66. v-model="systartDate" placeholder="请选择开始时间" @click="systartShow = true"></u-input>
  67. <u-picker v-model="systartShow" mode="time" :params="params"
  68. @confirm="systartconfirm"></u-picker>
  69. </u-form-item>
  70. <u-form-item label="商业险终保日期" class="modelformcss">
  71. <u-input type="select" :select-open="syendShow" :custom-style="{textAlign:'right'}"
  72. v-model="syendDate" placeholder="请选择结束时间" @click="syendShow = true"></u-input>
  73. <u-picker v-model="syendShow" mode="time" :params="params"
  74. @confirm="syendconfirm"></u-picker>
  75. </u-form-item>
  76. </u-form>
  77. </view>
  78. </view>
  79. </view>
  80. <view class=" dis a-c j-s mt-3" style="position: relative;">
  81. <view style="color:#FF5600;font-size: 15px;font-weight: bold;">投保注意:</view>
  82. <view class="dis a-c f-wrap">
  83. <view class="status-data" :class="carInfo.transferFlag? 'active1':''"
  84. @tap="immediatelyClick('transferFlag')">
  85. 过户车
  86. </view>
  87. <view class="status-data" v-if="['034001','0330034002','0330034001'].includes(productId)"
  88. :class="carInfo.transferFlagBi? 'active1':''" @tap="immediatelyClick('transferFlagBi')">
  89. 商业险过户
  90. </view>
  91. <view class="status-data" :class="carInfo.outOfInsurance? 'active1':''"
  92. @tap="immediatelyClick('outOfInsurance')">
  93. 脱保
  94. </view>
  95. <view class="status-data" :class="carInfo.usedCar? 'active1':''" @tap="immediatelyClick('usedCar')">
  96. 二手车
  97. </view>
  98. </view>
  99. </view>
  100. <view class="quotePlan dis a-c j-s mt-2 " style="padding: 5px 10px;" v-if="carInfo.transferFlag">
  101. <view>转移登记日期:</view>
  102. <u-input type="select" :select-open="transferDateShow" :custom-style="{textAlign:'right'}"
  103. v-model="carInfo.transferDate" @click="transferDateShow = true" style="width: 100px;"></u-input>
  104. <u-picker v-model="transferDateShow" mode="time" :params="params1"
  105. @confirm="transferconfirm"></u-picker>
  106. </view>
  107. <view class="quoteCompany mt-3">
  108. <view class="header dis a-c">
  109. <view class="title d-flex" style="font-family: jiangxizhuokai, jiangxizhuokai;">保险公司</view>
  110. <text style="color:#0052FF;font-size: 13px;">(请选择任意一家保险公司投保)</text>
  111. </view>
  112. <block v-for="(totalitem,totalindex) in quotableCompanyList" :key="totalindex">
  113. <template>
  114. <view class="quoteCompanyItem dis f-c j-s ">
  115. <view class="headers dis a-c"
  116. :style="{backgroundImage:totalitem.quoteCode=='3' ? `url('../../static/image/car-insure/baojiashibai.png')` :!totalitem.insurancePlanInfo? `url('../../static/image/car-insure/weixuanfangan.png')` : `url('../../static/image/car-insure/yixuanfangan.png')`}">
  117. <view class="logo dis a-c j-c">
  118. <image :src="totalitem.logo"></image>
  119. <view class="companyName">{{totalitem.namesimple}}</view>
  120. </view>
  121. <view class="insuranceGuide dis a-c j-c "
  122. :style="{background:totalitem.quoteCode=='3' ? '#FD9159' :!totalitem.insurancePlanInfo? '#FD9159' : '#548EFF'}"
  123. @click.stop="InsureGuideclick(totalitem)">
  124. 投保指引
  125. </view>
  126. </view>
  127. <view class="top dis f-c "
  128. :class="[totalitem.quoteCode=='3' ?'':!totalitem.insurancePlanInfo?'':'selectedPlanBackground']">
  129. <view v-if="totalitem.quoteCode"
  130. :class="[totalitem.quoteCode=='200'?'j-start':'j-end','companyIcon','dis','a-c']"
  131. :style="{borderBottom:totalitem.quoteCode=='3' ?'1px solid #FFCFC0':!totalitem.insurancePlanInfo?'none':'1px solid #C0E4FF'}">
  132. <view class="dis a-c">
  133. <view class="" @click.stop>
  134. <u-checkbox @change="priceComparisonChange(totalindex,totalitem)"
  135. v-if="totalitem.isComparableshowHide"
  136. v-model="totalitem.isComparableShow" active-color="#23C1CB"
  137. :disabled='totalitem.isComparableDisabled'></u-checkbox>
  138. </view>
  139. </view>
  140. <view class="dis a-c" v-if="totalitem.quoteCode=='200'">
  141. <text class="sum">总保费:¥{{totalitem.result.sumPermium}}</text>
  142. <view class="dis a-c" style="margin-left: 10px;"
  143. v-if="totalitem.result.feeDisplay">
  144. <text style="color: #FF4D4D;font-size: 12px;"
  145. v-if="totalitem.result.sumExportFee">{{totalitem.result.feeView?'掌柜科技币':'优惠金额¥'}}{{totalitem.result.sumExportFee}}</text>
  146. </view>
  147. </view>
  148. <ls-loading v-if="totalitem.quoteCode ==1" text="掌柜正在为您报价,请稍等......"
  149. :animation="animation" fontSize="22" />
  150. <text v-if="totalitem.quoteCode=='3'" class="quoteFailed"
  151. @tap.stop.prevent="ErrorMsg(totalitem.msg,totalitem.namesimple)">报价失败,查看原因</text>
  152. </view>
  153. <view class=" dis j-end a-c mt-2 f-wrap">
  154. <view class="ml-2 mb-1" v-if="totalitem.result.companyId" @click="handleCustomerInterest(totalitem)" style="border: 1px solid #303133;border-radius: 2px;padding:1px 6px;font-size: 24rpx;">客户权益</view>
  155. <view class="ml-2 mb-1 "
  156. v-if="totalitem.namesimple=='诚泰财险' && totalitem.result.companyId"
  157. style="border: 1px solid #06A8DC;border-radius: 2px;padding:1px 6px;color:#06A8DC;font-size: 24rpx;"
  158. @click="CTadjustmentCoefficient(totalindex)">调整系数</view>
  159. <view class="ml-2 mb-1 "
  160. v-if="totalitem.namesimple=='紫金财险' && totalitem.result.companyId"
  161. style="border: 1px solid #06A8DC;border-radius: 2px;padding:1px 6px;color:#06A8DC;font-size: 24rpx;"
  162. @click="ZJadjustmentCoefficient(totalindex)">调整系数</view>
  163. <view class="ml-2 mb-1"
  164. v-if="totalitem.namesimple=='国任财险' && totalitem.insurancePlanInfo"
  165. style="border: 1px solid #06A8DC;border-radius: 2px;padding:1px 6px;color:#06A8DC;font-size: 24rpx;"
  166. @click="specialAgreementSelection(totalitem.id)">调整特约</view>
  167. <view class="ml-2 mb-1"
  168. v-if="totalitem.namesimple=='紫金财险' && totalitem.result.orderstatus"
  169. style="border: 1px solid #06A8DC;border-radius: 2px;padding:1px 6px;color:#06A8DC;font-size: 24rpx;"
  170. @click="zijinspecialAgreementSelection(totalitem.result.companyId)">调整特约</view>
  171. <view class="ml-2 mb-1"
  172. v-if="totalitem.namesimple=='华泰财险' && totalitem.result.orderstatus"
  173. style="border: 1px solid #06A8DC;border-radius: 2px;padding:1px 6px;color:#06A8DC;font-size: 24rpx;"
  174. @click="huataispecialAgreementSelection(totalitem.result.companyId)">调整特约</view>
  175. <view class="ml-2 mb-1"
  176. style="border: 1px solid #FF5600;border-radius: 2px;padding:1px 6px;color:#FF5600;font-size: 24rpx;"
  177. @click="SchemeSelection(totalitem)">
  178. {{!totalitem.insurancePlanInfo?'选择方案':'重选方案'}}
  179. </view>
  180. <view class="ml-2 mb-1" v-if="totalitem.insurancePlanInfo"
  181. style="border: 1px solid #0052FF;border-radius: 2px;padding:1px 6px;color:#0052FF;font-size: 24rpx;"
  182. @click="checkSelection(totalitem)">查看方案</view>
  183. <view class="ml-2 mb-1" v-if="totalitem.insurancePlanInfo"
  184. style="background:#FF4D4D;color: #fff;border: 1px solid #FF4D4D;border-radius: 2px;padding:1px 6px;font-size: 24rpx;"
  185. @click="individualQuote(totalitem)">单独报价</view>
  186. </view>
  187. <view class="Premium dis f-c mb-2 " v-if="totalitem.quoteCode=='200'">
  188. <view class="dis price" v-if="totalitem.result.feeNoDescription">
  189. <text>该车未匹配销管费用,不建议投保!</text>
  190. <u-icon name="chat-fill" color="#ff0000" size="40"
  191. @click="discountErrorMessageMsg(totalitem.result.feeNoDescription,totalitem.namesimple)"></u-icon>
  192. </view>
  193. <view class="dis a-c f-wrap price">
  194. <text
  195. v-if="totalitem.result.jqPremium">交强险:¥{{totalitem.result.jqPremium}}</text>
  196. <text
  197. v-if="totalitem.result.syPremium">商业险:¥{{totalitem.result.syPremium}}</text>
  198. <text
  199. v-if="totalitem.result.taxAmount">车船税:¥{{totalitem.result.taxAmount}}</text>
  200. <text
  201. v-if="totalitem.result.jyPremium">驾意险:¥{{totalitem.result.jyPremium}}</text>
  202. </view>
  203. <view class="dis a-c f-wrap price" style="font-size: 20rpx;color: #FF4D4D;"
  204. v-if="totalitem.result.feeDisplay">
  205. <text>{{totalitem.result.feeView?'掌柜科技币:【':'优惠金额:【'}}
  206. <text
  207. v-if="totalitem.result.jqPremium">交强险:{{totalitem.result.jqExportFee?totalitem.result.jqExportFee:'无'}}</text>
  208. <text
  209. v-if="totalitem.result.syPremium">商业险:{{totalitem.result.syExportFee?totalitem.result.syExportFee:'无'}}</text>
  210. <text
  211. v-if="totalitem.result.jyPremium">驾意险:{{totalitem.result.noExportFee?totalitem.result.noExportFee:"无"}}</text>
  212. 】</text>
  213. </view>
  214. <view class="dis a-c j-s ">
  215. <view class="dis f-c time">
  216. <text
  217. v-if="totalitem.result.jqPremium">交强起保时间:{{totalitem.result.startDateJq}}
  218. </text>
  219. <text
  220. v-if="totalitem.result.jqPremium">交强终保时间:{{totalitem.result.endDateJq}}
  221. </text>
  222. <text
  223. v-if="totalitem.result.syPremium">商业起保时间:{{totalitem.result.startDateSy}}
  224. </text>
  225. <text
  226. v-if="totalitem.result.syPremium">商业终保时间:{{totalitem.result.endDateSy}}
  227. </text>
  228. </view>
  229. <image src="/static/image/car-insure/Group30.png" mode=""
  230. style="width: 14px;height: 14px;" @click="syncData(totalitem.result)">
  231. </image>
  232. </view>
  233. <view class="dis a-c f-wrap time">
  234. <text v-if="totalitem.namesimple == '永诚财险'">光博分:{{ totalitem.result.ilogPreUdwMess ?
  235. totalitem.result.ilogPreUdwMess : '无' }}</text>
  236. <text v-else>评分:{{ totalitem.result.ilogPreUdwMess ?
  237. totalitem.result.ilogPreUdwMess : '无' }}</text>
  238. <text v-if="totalitem.result.jqScore">交强类型评分:{{ totalitem.result.jqScore ?
  239. totalitem.result.jqScore : '无' }}</text>
  240. <text v-if="totalitem.result.syScore">商业类型评分:{{ totalitem.result.syScore ?
  241. totalitem.result.syScore : '无' }}</text>
  242. <text v-if="totalitem.result.lossRation">总赔付率:{{ totalitem.result.lossRation ?
  243. totalitem.result.lossRation : '无' }}</text>
  244. <text v-if="totalitem.result.jqLossRation">交强赔付率:{{ totalitem.result.jqLossRation ?
  245. totalitem.result.jqLossRation : '无' }}</text>
  246. <text v-if="totalitem.result.syLossRation">商业赔付率:{{ totalitem.result.syLossRation ?
  247. totalitem.result.syLossRation : '无' }}</text>
  248. <text
  249. v-if="totalitem.namesimple == '紫金财险'">鼎然-车辆风险评分:{{totalitem.result.ubiPredictedInfoScore ?
  250. totalitem.result.ubiPredictedInfoScore : '无'}}</text>
  251. <text v-if="totalitem.result.jqRenewal">交强续保:{{ totalitem.result.jqRenewal ?
  252. totalitem.result.jqRenewal : '无' }}</text>
  253. <text v-if="totalitem.result.syRenewal">商业续保:{{ totalitem.result.syRenewal ?
  254. totalitem.result.syRenewal : '无' }}</text>
  255. <text v-if="totalitem.result.jqClaims">交强出险次数:{{ totalitem.result.jqClaims ?
  256. totalitem.result.jqClaims : '无' }}</text>
  257. <text v-if="totalitem.result.syClaims">商业出险次数:{{ totalitem.result.syClaims ?
  258. totalitem.result.syClaims : '无' }}</text>
  259. </view>
  260. <template v-if="totalitem.result.iszdj !=null && totalitem.result.iszdj!=''">
  261. <text v-if="totalitem.result.iszdj==0" style="color: red;">假单交</text>
  262. <text v-if="totalitem.result.iszdj==1" style="color: red;">真单交</text>
  263. </template>
  264. <view class="dis j-end f-c lastyear">
  265. <view class="dis a-c j-end ">
  266. <view class=" left dis j-c a-c" v-if="totalitem.lastYearMsg"
  267. @click="YearMsg(totalitem.lastYearMsg,totalitem.namesimple)">
  268. <text>上年信息</text>
  269. </view>
  270. <view class=" right ml-2 dis j-c a-c" v-if='totalitem.result.predictInfo'
  271. @click="preUnderwriting(totalitem.result.predictInfo)">
  272. <text>预核保信息</text>
  273. </view>
  274. </view>
  275. <view class="dis a-c j-end mt-1">
  276. <u-button class="ml-2" type="error" size="mini"
  277. :custom-style="{borderRadius:'2px'}"
  278. style="background: linear-gradient( 90deg, #10D8D8 0%, #00CBE6 100%);"
  279. @click="resubmitImage(totalitem.result.companyId)">补传影像</u-button>
  280. <u-button class="ml-2" type="error" size="mini"
  281. :custom-style="{borderRadius:'2px'}"
  282. style="background: linear-gradient( 90deg, #FF4D4D 0%, #FF784D 100%);"
  283. @click="bjdpreview(totalitem.result.companyId)">报价单</u-button>
  284. <u-button class="ml-2" type="primary" size="mini"
  285. :custom-style="{borderRadius:'2px'}"
  286. style="background: linear-gradient( 90deg, #FF9415 0%, #FFB525 100%);"
  287. @click="querydetial(totalitem.result.companyId,totalitem.cnName)">查看详情</u-button>
  288. <u-button class="ml-2" type="primary" size="mini"
  289. v-if="totalitem.result.orderstatus==0"
  290. :custom-style="{borderRadius:'2px'}"
  291. style="background: linear-gradient( 90deg, #0052FF 0%, #0D8BFF 100%);"
  292. @click="submitUnderwriting(totalitem.result.companyId,totalitem.result.apiType ,totalitem.namesimple, totalitem)">提交核保</u-button>
  293. </view>
  294. </view>
  295. </view>
  296. </view>
  297. </view>
  298. </template>
  299. </block>
  300. </view>
  301. </view>
  302. <view class="footer-btn dis a-c j-s">
  303. <u-button type="primary" style="background:#E6EEFF;color: #0052FF; width: 20%;" @tap="back">上一步</u-button>
  304. <u-button type="primary" style="background:#FF9900;width: 20%;" @tap="tempSave">暂存</u-button>
  305. <u-button type="primary" style="background:#C9C9C9;width: 20%;" @click="priceComparison"
  306. v-if="comparableQuantity<2 ">查最优</u-button>
  307. <u-button type="primary" style="background:#1DB1E0;width: 20%;" @click="priceComparison1"
  308. v-if="comparableQuantity>=2 && selectedCount<2">查最优</u-button>
  309. <u-button type="primary" class="priceComparison" @click="priceComparison2"
  310. v-if="selectedCount>=2">查最优</u-button>
  311. <u-button type="primary" style="background:#0052FF; width: 30%;" @tap="toNext">多家报价</u-button>
  312. </view>
  313. <!-- 商业选择方案 -->
  314. <wyb-popup ref="popupBI" type="bottom" mode="size-fixed" height="900" radius="6" :showCloseIcon="true">
  315. <view class="popup-content">
  316. <view class="popHeader d-flex a-center j-center">
  317. 选择方案
  318. </view>
  319. <scroll-view scroll-top="0" scroll-y="true" class="popContent">
  320. <view class="popContentTitle">{{insureItem.kindName}}</view>
  321. <view style="color: #999;font-size: 24upx;">{{insureItem.desc}}</view>
  322. <view class="dis a-c j-s p-3" v-if="['TY2','TY3','TY4'].includes(insureItem.kindCode)">
  323. <text>自定义次数</text>
  324. <u-number-box v-model="insureItem.amount" :input-width="100" :input-height="60" :min="0"
  325. color="#fff" size="30" @change="numberBoxChange"></u-number-box>
  326. </view>
  327. <view v-else style="margin-top: 10px;">
  328. <block v-for="(amt,index) in insureItem.amtList" :key="index">
  329. <view class="amtSingle" @tap="adjustBIItemLabel(index)"
  330. :class="(amt.label== insureItem.amountDesc)?'active':''">
  331. {{amt.label}}
  332. </view>
  333. </block>
  334. </view>
  335. </scroll-view>
  336. <view class="popBottom">
  337. <button type="primary" style="background-color: #0052FF;"
  338. @tap="adjustBIItemLabelSubmit()">完成</button>
  339. </view>
  340. </view>
  341. </wyb-popup>
  342. <!-- 安盛驾意险弹框 -->
  343. <u-modal v-model="anshengPopupshow" title="驾意险"
  344. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  345. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  346. <view class="slot-content p-2">
  347. <u-radio-group size="30" wrap>
  348. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ASradioChange" shape="square"
  349. v-for="(item, index) in anshengInsuranceData" :key="index" :name="item.projectCode">
  350. {{item.alias}}
  351. </u-radio>
  352. </u-radio-group>
  353. </view>
  354. </u-modal>
  355. <!-- 人寿驾意险弹框 -->
  356. <u-modal v-model="renshouPopupshow" title="驾意险"
  357. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  358. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  359. <view class="slot-content p-2">
  360. <u-radio-group size="30" wrap>
  361. <u-radio style="margin: 4px 0; align-items: flex-start;" label-size="30" shape="square"
  362. @change="RSradioChange" v-for="(item, index) in renshouInsuranceData" :key="index"
  363. :name="item.projectCode">
  364. {{item.alias}}
  365. </u-radio>
  366. </u-radio-group>
  367. </view>
  368. </u-modal>
  369. <!-- 中煤驾意险弹框 -->
  370. <u-modal v-model="zhongmeiPopupshow" title="驾意险"
  371. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  372. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  373. <view class="slot-content p-2">
  374. <u-radio-group size="30" wrap>
  375. <u-radio style="margin: 4px 0;" label-size="30" @change="ZMradioChange" shape="square"
  376. v-for="(item, index) in zhongmeiInsuranceData" :key="index" :name="item.projectCode">
  377. {{item.alias}}
  378. </u-radio>
  379. </u-radio-group>
  380. </view>
  381. </u-modal>
  382. <!-- 恒邦驾意险弹框 -->
  383. <u-modal v-model="hengbangPopupshow" title="驾意险"
  384. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  385. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  386. <view class="slot-content p-2">
  387. <u-radio-group size="30" wrap>
  388. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="HBradioChange" shape="square"
  389. v-for="(item, index) in hengbangInsuranceData" :key="index" :name="item.projectCode">
  390. {{item.alias}}
  391. </u-radio>
  392. </u-radio-group>
  393. </view>
  394. </u-modal>
  395. <!-- 众安驾意险弹框 -->
  396. <u-modal v-model="zhonganPopupshow" title="驾意险"
  397. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  398. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  399. <view class="slot-content p-2">
  400. <u-radio-group size="30" wrap>
  401. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ZAradioChange" shape="square"
  402. v-for="(item, index) in zhonganInsuranceData" :key="index" :name="item.projectCode">
  403. {{item.alias}}
  404. </u-radio>
  405. </u-radio-group>
  406. </view>
  407. </u-modal>
  408. <!-- 华农驾意险弹框 -->
  409. <u-modal v-model="huanongPopupshow" title="驾意险"
  410. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  411. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  412. <view class="slot-content p-2">
  413. <u-radio-group size="30" wrap>
  414. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="HNradioChange" shape="square"
  415. v-for="(item, index) in huanongInsuranceData" :key="index" :name="item.projectCode">
  416. {{item.alias}}
  417. </u-radio>
  418. </u-radio-group>
  419. </view>
  420. </u-modal>
  421. <!-- 泰康驾意险弹框 -->
  422. <u-modal v-model="taikangPopupshow" title="驾意险"
  423. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  424. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  425. <view class="slot-content p-2">
  426. <u-radio-group size="30" wrap>
  427. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="TkradioChange" shape="square"
  428. v-for="(item, index) in taikangInsuranceData" :key="index" :name="item.projectCode">
  429. {{item.alias}}
  430. </u-radio>
  431. </u-radio-group>
  432. </view>
  433. </u-modal>
  434. <u-modal v-model="yongchengPopupshow" title="驾意险"
  435. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  436. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  437. <view class="slot-content p-2">
  438. <u-radio-group size="30" wrap>
  439. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="YCradioChange" shape="square"
  440. v-for="(item, index) in yongchengInsuranceData" :key="index" :name="item.projectCode">
  441. {{item.alias}}
  442. </u-radio>
  443. </u-radio-group>
  444. </view>
  445. </u-modal>
  446. <!-- 太平驾意险弹框 -->
  447. <u-modal v-model="taipingPopupshow" title="驾意险"
  448. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  449. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  450. <view class="slot-content p-2">
  451. <u-radio-group size="30" wrap>
  452. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="TPradioChange" shape="square"
  453. v-for="(item, index) in taipingInsuranceData" :key="index" :name="item.projectCode">
  454. {{item.alias}}
  455. </u-radio>
  456. </u-radio-group>
  457. </view>
  458. </u-modal>
  459. <!-- 渤海驾意险弹框 -->
  460. <u-modal v-model="bohaiPopupshow" title="驾意险"
  461. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  462. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  463. <view class="slot-content p-2">
  464. <u-radio-group size="30" style="" wrap>
  465. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="BHradioChange" shape="square"
  466. v-for="(item, index) in bohaiInsuranceData" :key="index" :name="item.projectCode">
  467. {{item.alias}}
  468. </u-radio>
  469. </u-radio-group>
  470. </view>
  471. </u-modal>
  472. <u-modal v-model="priceComparisonShow" title="比价提醒"
  473. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  474. :show-cancel-button="false"
  475. :confirm-style="{background:'#E6EEFF',color:'#0052FF',height:'40px',lineHeight:'40px'}"
  476. @confirm="priceComparisonShow=false">
  477. <view class="slot-content dis j-c a-c ">
  478. <view class="p-2">
  479. <text>可选择有报价结果的公司进行比价,最少选择两家,最多可选择三家</text>
  480. </view>
  481. </view>
  482. </u-modal>
  483. <!-- 紫金驾意弹框 -->
  484. <u-popup v-model="zijinPopupshow" mode="bottom" border-radius="10" height="1000">
  485. <view class="ZJcheckboxGroup dis f-c">
  486. <view class="title dis a-c j-c">
  487. <text>意外险选择</text>
  488. </view>
  489. <scroll-view scroll-y="true" class="scolcentent">
  490. <u-checkbox-group @change="ZJcheckboxGroupChange">
  491. <u-checkbox style="margin: 8px 0;flex: auto;" active-color="#FF4D4D" label-size="28"
  492. v-model="item.checked" v-for="(item, index) in zijinInsuranceData" :key="index"
  493. :name="item.projectCode">{{item.alias}}</u-checkbox>
  494. </u-checkbox-group>
  495. </scroll-view>
  496. <view class="operateBtn dis ">
  497. <view class="cancel dis a-c j-c" @click="zijinPopupshow=false">
  498. 取消
  499. </view>
  500. <view class="confirm dis a-c j-c" @click="zijinPopupshow=false">
  501. 确定
  502. </view>
  503. </view>
  504. </view>
  505. </u-popup>
  506. <!-- 国任特约 -->
  507. <u-popup v-model="guoRencontributingshow" mode="bottom" border-radius="10" height="1200" :closeable="true">
  508. <view class="ZJcheckboxGroup dis f-c">
  509. <view class="headers dis a-start f-c mb-2">
  510. <text class="title">调整特约</text>
  511. <u-tabs :list="list" :is-scroll="false" :current="GRcurrent" @change="change($event,'GR')"
  512. active-color="#06A8DC" inactive-color="#81869B"
  513. style="background: transparent;width: 100px;"></u-tabs>
  514. </view>
  515. <scroll-view scroll-y="true" class="scolcentent ">
  516. <u-checkbox-group @change="guoRencontributingChange" style="display: contents;" class="mb-4">
  517. <view v-show="GRcurrent==0 && ['0330','0330034002','0330034001'].includes(productId)">
  518. <u-checkbox v-model="item.checked" v-for="(item, index) in guoRenSpecialAgreementDatajq"
  519. :key="index" :name="item.clauseCode" active-color="#06A8DC"
  520. style="align-items: baseline;">
  521. <view class="dis f-c ">
  522. <text>{{item.clauseCode}}{{item.clauses}}</text>
  523. <text style="font-size: 20rpx;color: #999;">{{item.clausesContext}}</text>
  524. </view>
  525. </u-checkbox>
  526. </view>
  527. <view v-show="GRcurrent==1 && ['034001','0330034002','0330034001'].includes(productId)">
  528. <u-checkbox v-model="item.checked" v-for="(item, index) in guoRenSpecialAgreementDatasy"
  529. :key="index" :name="item.clauseCode" active-color="#06A8DC"
  530. style="align-items: baseline;">
  531. <view class="dis f-c ">
  532. <text>{{item.clauseCode}}{{item.clauses}}</text>
  533. <text style="font-size: 20rpx;color: #999;">{{item.clausesContext}}</text>
  534. </view>
  535. </u-checkbox>
  536. </view>
  537. </u-checkbox-group>
  538. </scroll-view>
  539. <view class="operateBtn dis ">
  540. <view class="cancel dis a-c j-c" @click="guoRencontributingshow=false">
  541. 取消
  542. </view>
  543. <view class="confirm dis a-c j-c" @click="guoRencontributingshow=false">
  544. 确定
  545. </view>
  546. </view>
  547. </view>
  548. </u-popup>
  549. <!-- 紫金特约 -->
  550. <u-popup v-model="zijincontributingshow" mode="bottom" border-radius="10" height="1200" :closeable="true">
  551. <view class="ZJcheckboxGroup dis f-c">
  552. <view class="headers dis a-start f-c mb-2">
  553. <text class="title">调整特约</text>
  554. <u-tabs :list="list" :is-scroll="false" :current="ZJcurrent" @change="change($event,'ZJ')"
  555. active-color="#06A8DC" inactive-color="#81869B"
  556. style="background: transparent;width: 100px;"></u-tabs>
  557. </view>
  558. <view class="hint dis a-c ">
  559. <image src="../../static/image/car-insure/tishi.png" mode=""></image>
  560. <text>带有输入框的条款为可编辑内容,含*号内容可替换!</text>
  561. </view>
  562. <scroll-view scroll-y="true" class="scolcentent mt-2">
  563. <u-checkbox-group @change="ziJincontributingChange" class="dis f-c">
  564. <view v-show="ZJcurrent==0">
  565. <u-checkbox v-model="item.checked" v-for="(item, index) in ziJinengageListDatajq"
  566. :key="index" :name="item.clauseId" active-color="#06A8DC"
  567. style="align-items: baseline;">
  568. <view class="dis f-c " style="width:calc(100vw - 70px);">
  569. <text>{{item.clauseCode}}{{item.clauseName}}</text>
  570. <u-input style="width: 100%;" v-if="item.modifyFlag==1" :border="true"
  571. v-model="item.clauseContent" size="mini" type="textarea"
  572. :custom-style="{fontSize:'12px'}" />
  573. <text v-else style="font-size: 20rpx;color: #999;">{{item.clauseContent}}</text>
  574. </view>
  575. </u-checkbox>
  576. </view>
  577. <view v-show="ZJcurrent==1">
  578. <u-checkbox v-model="item.checked" v-for="(item, index) in ziJinengageListDatasy"
  579. :key="index" :name="item.clauseId" active-color="#06A8DC"
  580. style="align-items: baseline;">
  581. <view class="dis f-c " style="width:calc(100vw - 70px);">
  582. <text>{{item.clauseCode}}{{item.clauseName}}</text>
  583. <u-input style="width: 100%;" v-if="item.modifyFlag==1" :border="true"
  584. v-model="item.clauseContent" size="mini" type="textarea"
  585. :custom-style="{fontSize:'12px'}" />
  586. <text v-else style="font-size: 20rpx;color: #999;">{{item.clauseContent}}</text>
  587. </view>
  588. </u-checkbox>
  589. </view>
  590. </u-checkbox-group>
  591. </scroll-view>
  592. <view class="operateBtn dis ">
  593. <view class="cancel dis a-c j-c" @click="zijincontributingshow=false">
  594. 取消
  595. </view>
  596. <view class="confirm dis a-c j-c" @click="zijincontributingshow=false">
  597. 确定
  598. </view>
  599. </view>
  600. </view>
  601. </u-popup>
  602. <!-- 华泰特约 -->
  603. <u-popup v-model="huataicontributingshow" mode="bottom" border-radius="10" height="1200" :closeable="true">
  604. <view class="ZJcheckboxGroup dis f-c">
  605. <view class="headers dis a-start f-c mb-2">
  606. <text class="title">调整特约</text>
  607. <u-tabs :list="list" :is-scroll="false" :current="HTcurrent" @change="change($event,'HT')"
  608. active-color="#06A8DC" inactive-color="#81869B"
  609. style="background: transparent;width: 100px;"></u-tabs>
  610. </view>
  611. <view class="hint dis a-c ">
  612. <image src="../../static/image/car-insure/tishi.png" mode=""></image>
  613. <text>带有输入框的条款为可编辑内容,含x号内容可替换!</text>
  614. </view>
  615. <scroll-view scroll-y="true" class="scolcentent mt-2">
  616. <u-checkbox-group @change="huaTaicontributingChange" class="dis f-c" style="display: contents;">
  617. <view v-show="HTcurrent==0">
  618. <u-checkbox v-model="item.checked" v-for="(item, index) in huaTaiengageListDatajq"
  619. :key="index" :name="item.engageCode" active-color="#06A8DC"
  620. style="align-items: baseline;">
  621. <view class="dis f-c " style="width:calc(100vw - 70px);">
  622. <text>{{item.engageTitle}}</text>
  623. <u-input style="width: 100%;" v-if="item.modifyFlag==1" :border="true"
  624. v-model="item.engageDetail" size="mini" type="textarea"
  625. :custom-style="{fontSize:'12px'}" />
  626. <text v-else style="font-size: 20rpx;color: #999;">{{item.engageDetail}}</text>
  627. </view>
  628. </u-checkbox>
  629. </view>
  630. <view v-show="HTcurrent==1">
  631. <u-checkbox v-model="item.checked" v-for="(item, index) in huaTaiengageListDatasy"
  632. :key="index" :name="item.engageCode" active-color="#06A8DC"
  633. style="align-items: baseline;">
  634. <view class="dis f-c " style="width:calc(100vw - 70px);">
  635. <text>{{item.engageTitle}}</text>
  636. <u-input style="width: 100%;" v-if="item.modifyFlag==1" :border="true"
  637. v-model="item.engageDetail" size="mini" type="textarea"
  638. :custom-style="{fontSize:'12px'}" />
  639. <text style="font-size: 20rpx;color: #999;">{{item.engageDetail}}</text>
  640. </view>
  641. </u-checkbox>
  642. </view>
  643. </u-checkbox-group>
  644. </scroll-view>
  645. <view class="operateBtn dis ">
  646. <view class="cancel dis a-c j-c" @click="huataicontributingshow=false">
  647. 取消
  648. </view>
  649. <view class="confirm dis a-c j-c" @click="huataicontributingshow=false">
  650. 确定
  651. </view>
  652. </view>
  653. </view>
  654. </u-popup>
  655. <!-- 诚泰系数 -->
  656. <u-popup v-model="CTcoefficientShow" mode="bottom" border-radius="10" height="600" :closeable="true">
  657. <view class="ZJcheckboxGroup dis f-c">
  658. <view class="headers dis a-start f-c mb-2">
  659. <text class="title">调整系数</text>
  660. </view>
  661. <scroll-view scroll-y="true" class="scolcentent mt-2">
  662. <view class="dis j-s f-c" style="width: 90%;">
  663. <text>扩展内容</text>
  664. <view class="dis a-c j-s">
  665. <text>自主定价系数</text>
  666. <u-input type="number" v-model="CTcoefficientForm.pricingCoefficient"
  667. :custom-style="{textAlign:'right',width:'50px',marginRight:'10px'}"
  668. placeholder="请输入"></u-input>
  669. </view>
  670. <view class="dis a-c j-s">
  671. <text>初始折扣</text>
  672. <u-input type="number" v-model="CTcoefficientForm.initialProposalDiscount" disabled
  673. :custom-style="{textAlign:'right',width:'50px',marginRight:'10px'}"
  674. placeholder="请输入"></u-input>
  675. </view>
  676. <view class="dis a-c j-s">
  677. <text>商业险折扣</text>
  678. <u-input type="number" v-model="CTcoefficientForm.expectedDiscount"
  679. :custom-style="{textAlign:'right',width:'50px',marginRight:'10px'}"
  680. placeholder="请输入"></u-input>
  681. </view>
  682. <view class="dis a-c j-s">
  683. <text>是否验车</text>
  684. <u-switch v-model="isInspectchange" active-color="#0052FF" inactive-color="#eee"
  685. size='30'></u-switch>
  686. </view>
  687. </view>
  688. </scroll-view>
  689. <view class="operateBtn dis ">
  690. <view class="cancel dis a-c j-c" @click="CTcoefficientShow=false">
  691. 取消
  692. </view>
  693. <view class="confirm dis a-c j-c" @click="CTcoefficientSubmit">
  694. 确定
  695. </view>
  696. </view>
  697. </view>
  698. </u-popup>
  699. <!-- 紫金系数 -->
  700. <u-popup v-model="ZJcoefficientShow" mode="bottom" border-radius="10" height="500" :closeable="true">
  701. <view class="ZJcheckboxGroup dis f-c">
  702. <view class="headers dis a-start f-c mb-2">
  703. <text class="title">调整系数</text>
  704. </view>
  705. <scroll-view scroll-y="true" class="scolcentent mt-2">
  706. <view class="dis j-s f-c" style="width: 90%;">
  707. <text>扩展内容</text>
  708. <view class="dis a-c j-end">
  709. <text>自主定价系数</text>
  710. <u-input type="number" v-model="ZJcoefficientForm.coefficient"
  711. :custom-style="{textAlign:'right',width:'50px',marginRight:'10px'}"
  712. placeholder="请输入"></u-input>
  713. </view>
  714. </view>
  715. </scroll-view>
  716. <view class="operateBtn dis ">
  717. <view class="cancel dis a-c j-c" @click="ZJcoefficientShow=false">
  718. 取消
  719. </view>
  720. <view class="confirm dis a-c j-c" @click="ZJcoefficientSubmit">
  721. 确定
  722. </view>
  723. </view>
  724. </view>
  725. </u-popup>
  726. <u-modal v-model="guoRenPopupshow" title="驾意险"
  727. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  728. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  729. <view class="slot-content p-2">
  730. <u-radio-group size="30" wrap>
  731. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="GRradioChange" shape="square"
  732. v-for="(item, index) in guoRenInsuranceData" :key="index" :name="item.projectCode">
  733. {{item.alias}}
  734. </u-radio>
  735. </u-radio-group>
  736. </view>
  737. </u-modal>
  738. <u-modal v-model="dajiaPopupshow" title="驾意险"
  739. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  740. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  741. <view class="slot-content p-2">
  742. <u-radio-group size="30" wrap>
  743. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="DJradioChange" shape="square"
  744. v-for="(item, index) in dajiaInsuranceData" :key="index" :name="item.projectCode">
  745. {{item.alias}}
  746. </u-radio>
  747. </u-radio-group>
  748. </view>
  749. </u-modal>
  750. <u-modal v-model="Generateshow" content="是否生成新的订单?" :content-style="{fontWeight: 'bold'}"
  751. :show-cancel-button="true" :show-title="false" :confirm-style="{color: '#ff9000'}"
  752. @confirm="GenerateModalConfirm"></u-modal>
  753. <u-modal v-model="preUnderwritingshow" width="72%" title="预核保信息" :title-style="{fontWeight: 'bold'}">
  754. <view class="" style="padding: 10px;overflow-y:auto;height: 400px;">
  755. <view v-for="(item,index) in RSpreUnderwritingList" :key="index">
  756. <view class="dis f-c " style="background-color: #FFEEEE;">
  757. <text style="font-weight: bold;">审核意见</text>
  758. <text style="font-size: 12px;">{{item.opinion}}</text>
  759. </view>
  760. <view class="dis f-c" style="background-color: #FFEEEE;">
  761. <text style="font-weight: bold;">备注</text>
  762. <text style="font-size: 12px;">{{item.description}}</text>
  763. </view>
  764. </view>
  765. </view>
  766. </u-modal>
  767. <!-- 优惠信息弹窗 -->
  768. <u-popup v-model="discountInfoPopup" mode="center" width="78%" border-radius="6">
  769. <view class="">
  770. <view class="p-2 dis j-c a-c">
  771. <text class="font-weight">{{discountInfoPopupTitle}}优惠信息</text>
  772. </view>
  773. <view style="padding: 0 20px;">
  774. <scroll-view :scroll-top="scrollTop" scroll-y="true" class="discountInfoscroll">
  775. <rich-text :nodes="discountInfoPopupContent"></rich-text>
  776. </scroll-view>
  777. </view>
  778. <view class="PlanPopup-btn dis a-c j-c">
  779. <u-button shape="circle" size="medium" @click="discountInfoPopup=false">取消</u-button>
  780. </view>
  781. </view>
  782. </u-popup>
  783. <u-modal v-model="InsureGuidePopup" ref="uModal" :show-title="false" border-radius="12" confirm-color="#FF5600"
  784. :confirm-style="{background:'#FFEFE6',height:'36px',lineHeight:'36px'}">
  785. <view class="">
  786. <image src="/static/image/car-insure/InsureGuide.png" mode="" style="width: 100%;height: 40px;"></image>
  787. <scroll-view class="scrollBar" scroll-y="true"
  788. style="max-height: 500px; padding: 10px; box-sizing: border-box;">
  789. <view class="dis a-c ">
  790. <image src="../../static/image/car-insure/duigou1.png" mode=""
  791. style="width: 16px;height: 16px;">
  792. </image>
  793. <text class="font-weight"
  794. style="font-size: 14px;color: #FF5600;font-family: Source Han Sans SC, Source Han Sans SC;">{{insGuideTitle}}-{{productName}}</text>
  795. </view>
  796. <rich-text :nodes="insGuide"></rich-text>
  797. </scroll-view>
  798. </view>
  799. </u-modal>
  800. <!-- 确认核保弹窗 -->
  801. <u-modal v-model="auditNextShow" content="是否确认提交核保" :show-title="false"
  802. :confirm-style="{background:'#0052FF',color:'#fff'}" :mask-close-able='true' @confirm="auditNextconfirm"
  803. :show-cancel-button="true" :async-close="true">
  804. </u-modal>
  805. <!-- 核保提示弹窗 -->
  806. <u-modal v-model="underwriteShow" :title="underwriteTitle" :title-style="{fontWeight:'bold'}"
  807. :confirm-text="confirmText" :cancel-text="cancelText" :confirm-style="{background:'#0052FF',color:'#fff'}"
  808. :show-cancel-button="true" @confirm="underwriteconfirm" @cancel="underwritecancel">
  809. <view class="slot-content">
  810. <scroll-view class="scrollBar" scroll-y="true"
  811. style="max-height: 300px; padding: 10px 20px; box-sizing: border-box;">
  812. <view class="content">
  813. <rich-text :nodes="underwriteMsg"></rich-text>
  814. </view>
  815. </scroll-view>
  816. </view>
  817. </u-modal>
  818. <!-- 华泰特约 -->
  819. <u-popup v-model="resubmitDocumentsShow" mode="bottom" border-radius="10" height="1300" :closeable="true"
  820. width="90%">
  821. <view class="ZJcheckboxGroup dis f-c">
  822. <view class="headers dis a-start f-c mb-2"
  823. :style="{backgroundImage: `url('../../static/image/car-insure/buluimgheader.png')`,borderBottom:'none'}">
  824. <text class="title">补录影像</text>
  825. <u-tabs :list="imagelist" :is-scroll="false" :current="imagecurrent" @change="imagechange"
  826. active-color="#06A8DC" inactive-color="#81869B"
  827. style="background: transparent;width: 200px;"></u-tabs>
  828. </view>
  829. <scroll-view scroll-y="true" class="scolcentent mt-2"
  830. style=" padding: 0 20px 0; box-sizing: border-box;">
  831. <view class="content">
  832. <view v-show="imagecurrent==0">
  833. <view class="uni-uploader mb-2">
  834. <view class="uni-uploader-body dis j-s a-c">
  835. <view class="uni-uploader__files dis f-c a-start ">
  836. <block v-for="(image,index) in imgList1" :key="index">
  837. <view class="uni-uploader__file">
  838. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  839. @tap="previewImage($event,'imgList1')"></image>
  840. <view class="delImgIcon d-flex a-center j-center"
  841. @tap="delCheckImage(image,'carImageListId','imgList1')">
  842. <image src="../../static/image/car-insure/imgdel.png" mode=""
  843. style="width: 100%;height: 100%;"></image>
  844. </view>
  845. <view class="imgtitle dis a-c j-c">行驶证主页</view>
  846. </view>
  847. </block>
  848. <view v-if="imgList1.length==0 " class="uni-uploader__input-box"
  849. style="box-sizing: border-box;">
  850. <view class="imgtitle dis a-c j-c">行驶证主页</view>
  851. <view class="uni-uploader__input"
  852. @tap="chooseImage('C01','carImageListId','imgList1')">
  853. </view>
  854. </view>
  855. </view>
  856. <view class="uni-uploader__files dis f-c a-start">
  857. <block v-for="(image,index) in imgList2" :key="index">
  858. <view class="uni-uploader__file">
  859. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  860. @tap="previewImage($event,'imgList2')"></image>
  861. <view class="delImgIcon d-flex a-center j-center"
  862. @tap="delCheckImage(image,'carImageListId','imgList2')">
  863. <image src="../../static/image/car-insure/imgdel.png" mode=""
  864. style="width: 100%;height: 100%;"></image>
  865. </view>
  866. <view class="imgtitle dis a-c j-c">行驶证副本</view>
  867. </view>
  868. </block>
  869. <view v-if="imgList2.length==0" class="uni-uploader__input-box"
  870. style="box-sizing: border-box;">
  871. <view class="imgtitle dis a-c j-c">行驶证副本</view>
  872. <view class="uni-uploader__input"
  873. @tap="chooseImage('D01','carImageListId','imgList2')">
  874. </view>
  875. </view>
  876. </view>
  877. </view>
  878. </view>
  879. <view class="uni-uploader mb-2">
  880. <view class="uni-uploader-body dis j-s a-c">
  881. <view class="uni-uploader__files dis f-c a-start">
  882. <block v-for="(image,index) in imgList3" :key="index">
  883. <view class="uni-uploader__file">
  884. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  885. @tap="previewImage($event,'imgList3')"></image>
  886. <view class="delImgIcon d-flex a-center j-center"
  887. @tap="delCheckImage(image,'ownerImageListId','imgList3')">
  888. <image src="../../static/image/car-insure/imgdel.png" mode=""
  889. style="width: 100%;height: 100%;"></image>
  890. </view>
  891. <view class="imgtitle dis a-c j-c">车主身份证正面</view>
  892. </view>
  893. </block>
  894. <view v-if="imgList3.length==0" class="uni-uploader__input-box"
  895. style="box-sizing: border-box;">
  896. <view class="imgtitle dis a-c j-c">车主身份证正面</view>
  897. <view class="uni-uploader__input"
  898. @tap="chooseImage('C02','ownerImageListId','imgList3')"></view>
  899. </view>
  900. </view>
  901. <view class="uni-uploader__files dis f-c a-start">
  902. <block v-for="(image,index) in imgList4" :key="index">
  903. <view class="uni-uploader__file">
  904. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  905. @tap="previewImage($event,'imgList4')"></image>
  906. <view class="delImgIcon d-flex a-center j-center"
  907. @tap="delCheckImage(image,'ownerImageListId','imgList4')">
  908. <image src="../../static/image/car-insure/imgdel.png" mode=""
  909. style="width: 100%;height: 100%;"></image>
  910. </view>
  911. <view class="imgtitle dis a-c j-c">车主身份证反面</view>
  912. </view>
  913. </block>
  914. <view v-if="imgList4.length==0" class="uni-uploader__input-box"
  915. style="box-sizing: border-box;">
  916. <view class="imgtitle dis a-c j-c">车主身份证反面</view>
  917. <view class="uni-uploader__input"
  918. @tap="chooseImage('D02','ownerImageListId','imgList4')"></view>
  919. </view>
  920. </view>
  921. </view>
  922. </view>
  923. <view class="uni-uploader mb-2">
  924. <view class="uni-uploader-body dis j-s a-c">
  925. <view class="uni-uploader__files dis f-c a-start">
  926. <block v-for="(image,index) in imgList5" :key="index">
  927. <view class="uni-uploader__file">
  928. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  929. @tap="previewImage($event,'imgList5')"></image>
  930. <view class="delImgIcon d-flex a-center j-center"
  931. @tap="delCheckImage(image,'policyImageListId','imgList5')">
  932. <image src="../../static/image/car-insure/imgdel.png" mode=""
  933. style="width: 100%;height: 100%;"></image>
  934. </view>
  935. <view class="imgtitle dis a-c j-c">投保人身份证正面</view>
  936. </view>
  937. </block>
  938. <view v-if="imgList5.length==0" class="uni-uploader__input-box"
  939. style="box-sizing: border-box;">
  940. <view class="imgtitle dis a-c j-c">投保人身份证正面</view>
  941. <view class="uni-uploader__input"
  942. @tap="chooseImage('C03','policyImageListId','imgList5')"></view>
  943. </view>
  944. </view>
  945. <view class="uni-uploader__files dis f-c a-start">
  946. <block v-for="(image,index) in imgList6" :key="index">
  947. <view class="uni-uploader__file">
  948. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  949. @tap="previewImage($event,'imgList6')"></image>
  950. <view class="delImgIcon d-flex a-center j-center"
  951. @tap="delCheckImage(image,'policyImageListId','imgList6')">
  952. <image src="../../static/image/car-insure/imgdel.png" mode=""
  953. style="width: 100%;height: 100%;"></image>
  954. </view>
  955. <view class="imgtitle dis a-c j-c">投保人身份证反面</view>
  956. </view>
  957. </block>
  958. <view v-if="imgList6.length==0" class="uni-uploader__input-box"
  959. style="box-sizing: border-box;">
  960. <view class="imgtitle dis a-c j-c">投保人身份证反面</view>
  961. <view class="uni-uploader__input"
  962. @tap="chooseImage('D03','policyImageListId','imgList6')"></view>
  963. </view>
  964. </view>
  965. </view>
  966. </view>
  967. <view class="uni-uploader mb-2">
  968. <view class="uni-uploader-body dis j-s a-c">
  969. <view class="uni-uploader__files dis f-c a-start">
  970. <block v-for="(image,index) in imgList7" :key="index">
  971. <view class="uni-uploader__file">
  972. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  973. @tap="previewImage($event,'imgList7')"></image>
  974. <view class="delImgIcon d-flex a-center j-center"
  975. @tap="delCheckImage(image,'insuredImageListId','imgList7')">
  976. <image src="../../static/image/car-insure/imgdel.png" mode=""
  977. style="width: 100%;height: 100%;"></image>
  978. </view>
  979. <view class="imgtitle dis a-c j-c">被保人身份证正面</view>
  980. </view>
  981. </block>
  982. <view v-if="imgList7.length==0" class="uni-uploader__input-box"
  983. style="box-sizing: border-box;">
  984. <view class="imgtitle dis a-c j-c">被保人身份证正面</view>
  985. <view class="uni-uploader__input"
  986. @tap="chooseImage('C04','insuredImageListId','imgList7')"></view>
  987. </view>
  988. </view>
  989. <view class="uni-uploader__files dis f-c a-start">
  990. <block v-for="(image,index) in imgList8" :key="index">
  991. <view class="uni-uploader__file">
  992. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  993. @tap="previewImage($event,'imgList8')"></image>
  994. <view class="delImgIcon d-flex a-center j-center"
  995. @tap="delCheckImage(image,'insuredImageListId','imgList8')">
  996. <image src="../../static/image/car-insure/imgdel.png" mode=""
  997. style="width: 100%;height: 100%;"></image>
  998. </view>
  999. <view class="imgtitle dis a-c j-c">被保人身份证反面</view>
  1000. </view>
  1001. </block>
  1002. <view v-if="imgList8.length==0" class="uni-uploader__input-box"
  1003. style="box-sizing: border-box;">
  1004. <view class="imgtitle dis a-c j-c">被保人身份证反面</view>
  1005. <view class="uni-uploader__input"
  1006. @tap="chooseImage('D04','insuredImageListId','imgList8')"></view>
  1007. </view>
  1008. </view>
  1009. </view>
  1010. </view>
  1011. <view class="uni-uploader mb-2">
  1012. <view class="uni-uploader-body dis j-s a-c">
  1013. <view class="uni-uploader__files dis f-c a-start">
  1014. <block v-for="(image,index) in imgNewCarQualified" :key="index">
  1015. <view class="uni-uploader__file">
  1016. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1017. @tap="previewImage($event,'imgNewCarQualified')"></image>
  1018. <view class="delImgIcon d-flex a-center j-center"
  1019. @tap="delCheckImage(image,'imgNewCarinvoiceId','imgNewCarQualified')">
  1020. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1021. style="width: 100%;height: 100%;"></image>
  1022. </view>
  1023. <view class="imgtitle dis a-c j-c">新车合格证</view>
  1024. </view>
  1025. </block>
  1026. <view v-if="imgNewCarQualified.length==0" class="uni-uploader__input-box"
  1027. style="box-sizing: border-box;">
  1028. <view class="imgtitle dis a-c j-c">新车合格证</view>
  1029. <view class="uni-uploader__input"
  1030. @tap="chooseImage('XC00','imgNewCarinvoiceId','imgNewCarQualified')">
  1031. </view>
  1032. </view>
  1033. </view>
  1034. <view class="uni-uploader__files dis f-c a-start">
  1035. <block v-for="(image,index) in imgNewCarInvoice" :key="index">
  1036. <view class="uni-uploader__file">
  1037. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1038. @tap="previewImage($event,'imgNewCarInvoice')"></image>
  1039. <view class="delImgIcon d-flex a-center j-center"
  1040. @tap="delCheckImage(image,'imgNewCarinvoiceId','imgNewCarInvoice')">
  1041. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1042. style="width: 100%;height: 100%;"></image>
  1043. </view>
  1044. <view class="imgtitle dis a-c j-c">购车发票</view>
  1045. </view>
  1046. </block>
  1047. <view v-if="imgNewCarInvoice.length==0" class="uni-uploader__input-box"
  1048. style="box-sizing: border-box;">
  1049. <view class="imgtitle dis a-c j-c">购车发票</view>
  1050. <view class="uni-uploader__input"
  1051. @tap="chooseImage('GC00','imgNewCarinvoiceId','imgNewCarInvoice')">
  1052. </view>
  1053. </view>
  1054. </view>
  1055. </view>
  1056. </view>
  1057. <view class="uni-uploader">
  1058. <view class="uni-uploader-body dis j-s a-c">
  1059. <view class="uni-uploader__files dis f-c a-start">
  1060. <block v-for="(image,index) in imgRelationship" :key="index">
  1061. <view class="uni-uploader__file">
  1062. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1063. @tap="previewImage($event,'imgRelationship')"></image>
  1064. <view class="delImgIcon d-flex a-center j-center "
  1065. @tap="delCheckImage('imgRelationship',index)">
  1066. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1067. style="width: 100%;height: 100%;"></image>
  1068. </view>
  1069. <view class="imgtitle dis a-c j-c">其他关系证明</view>
  1070. </view>
  1071. </block>
  1072. <view class="uni-uploader__input-box" style="box-sizing: border-box;">
  1073. <view class="imgtitle dis a-c j-c">其他关系证明</view>
  1074. <view class="uni-uploader__input"
  1075. @tap="chooseImage('GX00','imgRelationshipid','imgRelationship')"></view>
  1076. </view>
  1077. </view>
  1078. </view>
  1079. </view>
  1080. </view>
  1081. <view v-show="imagecurrent==1">
  1082. <view class="uni-uploader mb-2">
  1083. <view class="uni-uploader-body dis j-s a-c">
  1084. <view class="uni-uploader__files dis f-c a-start ">
  1085. <block v-for="(image,index) in imgList9" :key="index">
  1086. <view class="uni-uploader__file">
  1087. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1088. @tap="previewImage($event,'imgList9')"></image>
  1089. <view class="delImgIcon d-flex a-center j-center"
  1090. @tap="delCheckImage(image,'carInspectionImage','imgList9')">
  1091. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1092. style="width: 100%;height: 100%;"></image>
  1093. </view>
  1094. <view class="imgtitle dis a-c j-c">验车照(车架)</view>
  1095. </view>
  1096. </block>
  1097. <view v-if="imgList9.length==0 " class="uni-uploader__input-box"
  1098. style="box-sizing: border-box;">
  1099. <view class="imgtitle dis a-c j-c">验车照(车架)</view>
  1100. <view class="uni-uploader__input"
  1101. @tap="chooseImage('C0500','carInspectionImage','imgList9')">
  1102. </view>
  1103. </view>
  1104. </view>
  1105. <view class="uni-uploader__files dis f-c a-start">
  1106. <block v-for="(image,index) in imgList10" :key="index">
  1107. <view class="uni-uploader__file">
  1108. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1109. @tap="previewImage($event,'imgList10')"></image>
  1110. <view class="delImgIcon d-flex a-center j-center"
  1111. @tap="delCheckImage(image,'carInspectionImage','imgList10')">
  1112. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1113. style="width: 100%;height: 100%;"></image>
  1114. </view>
  1115. <view class="imgtitle dis a-c j-c">验车照(后左)</view>
  1116. </view>
  1117. </block>
  1118. <view v-if="imgList10.length==0" class="uni-uploader__input-box"
  1119. style="box-sizing: border-box;">
  1120. <view class="imgtitle dis a-c j-c">验车照(后左)</view>
  1121. <view class="uni-uploader__input"
  1122. @tap="chooseImage('C0501','carInspectionImage','imgList10')">
  1123. </view>
  1124. </view>
  1125. </view>
  1126. </view>
  1127. </view>
  1128. <view class="uni-uploader mb-2">
  1129. <view class="uni-uploader-body dis j-s a-c">
  1130. <view class="uni-uploader__files dis f-c a-start ">
  1131. <block v-for="(image,index) in imgList11" :key="index">
  1132. <view class="uni-uploader__file">
  1133. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1134. @tap="previewImage($event,'imgList11')"></image>
  1135. <view class="delImgIcon d-flex a-center j-center"
  1136. @tap="delCheckImage(image,'carInspectionImage','imgList11')">
  1137. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1138. style="width: 100%;height: 100%;"></image>
  1139. </view>
  1140. <view class="imgtitle dis a-c j-c">验车照(后右)</view>
  1141. </view>
  1142. </block>
  1143. <view v-if="imgList11.length==0 " class="uni-uploader__input-box"
  1144. style="box-sizing: border-box;">
  1145. <view class="imgtitle dis a-c j-c">验车照(后右)</view>
  1146. <view class="uni-uploader__input"
  1147. @tap="chooseImage('C0502','carInspectionImage','imgList11')">
  1148. </view>
  1149. </view>
  1150. </view>
  1151. <view class="uni-uploader__files dis f-c a-start">
  1152. <block v-for="(image,index) in imgList12" :key="index">
  1153. <view class="uni-uploader__file">
  1154. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1155. @tap="previewImage($event,'imgList12')"></image>
  1156. <view class="delImgIcon d-flex a-center j-center"
  1157. @tap="delCheckImage(image,'carInspectionImage','imgList12')">
  1158. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1159. style="width: 100%;height: 100%;"></image>
  1160. </view>
  1161. <view class="imgtitle dis a-c j-c">验车照(前右)</view>
  1162. </view>
  1163. </block>
  1164. <view v-if="imgList12.length==0" class="uni-uploader__input-box"
  1165. style="box-sizing: border-box;">
  1166. <view class="imgtitle dis a-c j-c">验车照(前右)</view>
  1167. <view class="uni-uploader__input"
  1168. @tap="chooseImage('C0503','carInspectionImage','imgList12')">
  1169. </view>
  1170. </view>
  1171. </view>
  1172. </view>
  1173. </view>
  1174. <view class="uni-uploader mb-2">
  1175. <view class="uni-uploader-body dis j-s a-c">
  1176. <view class="uni-uploader__files dis f-c a-start ">
  1177. <block v-for="(image,index) in imgList13" :key="index">
  1178. <view class="uni-uploader__file">
  1179. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1180. @tap="previewImage($event,'imgList13')"></image>
  1181. <view class="delImgIcon d-flex a-center j-center"
  1182. @tap="delCheckImage(image,'carInspectionImage','imgList13')">
  1183. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1184. style="width: 100%;height: 100%;"></image>
  1185. </view>
  1186. <view class="imgtitle dis a-c j-c">验车照(前左)</view>
  1187. </view>
  1188. </block>
  1189. <view v-if="imgList13.length==0 " class="uni-uploader__input-box"
  1190. style="box-sizing: border-box;">
  1191. <view class="imgtitle dis a-c j-c">验车照(前左)</view>
  1192. <view class="uni-uploader__input"
  1193. @tap="chooseImage('C0504','carInspectionImage','imgList13')">
  1194. </view>
  1195. </view>
  1196. </view>
  1197. <view class="uni-uploader__files dis f-c a-start">
  1198. <block v-for="(image,index) in imgList14" :key="index">
  1199. <view class="uni-uploader__file">
  1200. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1201. @tap="previewImage($event,'imgList14')"></image>
  1202. <view class="delImgIcon d-flex a-center j-center"
  1203. @tap="delCheckImage(image,'carInspectionImage','imgList14')">
  1204. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1205. style="width: 100%;height: 100%;"></image>
  1206. </view>
  1207. <view class="imgtitle dis a-c j-c">验车照(人车合影)</view>
  1208. </view>
  1209. </block>
  1210. <view v-if="imgList14.length==0" class="uni-uploader__input-box"
  1211. style="box-sizing: border-box;">
  1212. <view class="imgtitle dis a-c j-c">验车照(人车合影)</view>
  1213. <view class="uni-uploader__input"
  1214. @tap="chooseImage('C0505','carInspectionImage','imgList14')">
  1215. </view>
  1216. </view>
  1217. </view>
  1218. </view>
  1219. </view>
  1220. <view class="uni-uploader mb-2">
  1221. <view class="uni-uploader-body dis j-s a-c">
  1222. <view class="uni-uploader__files dis f-c a-start ">
  1223. <block v-for="(image,index) in imgList15" :key="index">
  1224. <view class="uni-uploader__file">
  1225. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1226. @tap="previewImage($event,'imgList15')"></image>
  1227. <view class="delImgIcon d-flex a-center j-center"
  1228. @tap="delCheckImage(image,'carInspectionImage','imgList15')">
  1229. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1230. style="width: 100%;height: 100%;"></image>
  1231. </view>
  1232. <view class="imgtitle dis a-c j-c">验车照(正前)</view>
  1233. </view>
  1234. </block>
  1235. <view v-if="imgList15.length==0 " class="uni-uploader__input-box"
  1236. style="box-sizing: border-box;">
  1237. <view class="imgtitle dis a-c j-c">验车照(正前)</view>
  1238. <view class="uni-uploader__input"
  1239. @tap="chooseImage('C0506','carInspectionImage','imgList15')">
  1240. </view>
  1241. </view>
  1242. </view>
  1243. <view class="uni-uploader__files dis f-c a-start">
  1244. <block v-for="(image,index) in imgList16" :key="index">
  1245. <view class="uni-uploader__file">
  1246. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1247. @tap="previewImage($event,'imgList16')"></image>
  1248. <view class="delImgIcon d-flex a-center j-center"
  1249. @tap="delCheckImage(image,'carInspectionImage','imgList16')">
  1250. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1251. style="width: 100%;height: 100%;"></image>
  1252. </view>
  1253. <view class="imgtitle dis a-c j-c">验车照(正后)</view>
  1254. </view>
  1255. </block>
  1256. <view v-if="imgList16.length==0" class="uni-uploader__input-box"
  1257. style="box-sizing: border-box;">
  1258. <view class="imgtitle dis a-c j-c">验车照(正后)</view>
  1259. <view class="uni-uploader__input"
  1260. @tap="chooseImage('C0507','carInspectionImage','imgList16')">
  1261. </view>
  1262. </view>
  1263. </view>
  1264. </view>
  1265. </view>
  1266. <view class="uni-uploader mb-2">
  1267. <view class="uni-uploader-body dis j-s a-c">
  1268. <view class="uni-uploader__files dis f-c a-start ">
  1269. <block v-for="(image,index) in imgList17" :key="index">
  1270. <view class="uni-uploader__file">
  1271. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1272. @tap="previewImage($event,'imgList17')"></image>
  1273. <view class="delImgIcon d-flex a-center j-center"
  1274. @tap="delCheckImage(image,'carInspectionImage','imgList17')">
  1275. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1276. style="width: 100%;height: 100%;"></image>
  1277. </view>
  1278. <view class="imgtitle dis a-c j-c">验车照(地标合影)</view>
  1279. </view>
  1280. </block>
  1281. <view v-if="imgList17.length==0 " class="uni-uploader__input-box"
  1282. style="box-sizing: border-box;">
  1283. <view class="imgtitle dis a-c j-c">验车照(地标合影)</view>
  1284. <view class="uni-uploader__input"
  1285. @tap="chooseImage('C0508','carInspectionImage','imgList17')">
  1286. </view>
  1287. </view>
  1288. </view>
  1289. <view class="uni-uploader__files dis f-c a-start">
  1290. <block v-for="(image,index) in imgList18" :key="index">
  1291. <view class="uni-uploader__file">
  1292. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1293. @tap="previewImage($event,'imgList18')"></image>
  1294. <view class="delImgIcon d-flex a-center j-center"
  1295. @tap="delCheckImage(image,'carInspectionImage','imgList18')">
  1296. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1297. style="width: 100%;height: 100%;"></image>
  1298. </view>
  1299. <view class="imgtitle dis a-c j-c">验车照(工作台)</view>
  1300. </view>
  1301. </block>
  1302. <view v-if="imgList18.length==0" class="uni-uploader__input-box"
  1303. style="box-sizing: border-box;">
  1304. <view class="imgtitle dis a-c j-c">验车照(工作台)</view>
  1305. <view class="uni-uploader__input"
  1306. @tap="chooseImage('C0509','carInspectionImage','imgList18')">
  1307. </view>
  1308. </view>
  1309. </view>
  1310. </view>
  1311. </view>
  1312. <view class="uni-uploader mb-2">
  1313. <view class="uni-uploader-body dis j-s a-c">
  1314. <view class="uni-uploader__files dis f-c a-start ">
  1315. <block v-for="(image,index) in imgList19" :key="index">
  1316. <view class="uni-uploader__file">
  1317. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  1318. @tap="previewImage($event,'imgList19')"></image>
  1319. <view class="delImgIcon d-flex a-center j-center"
  1320. @tap="delCheckImage(image,'carInspectionImage','imgList19')">
  1321. <image src="../../static/image/car-insure/imgdel.png" mode=""
  1322. style="width: 100%;height: 100%;"></image>
  1323. </view>
  1324. <view class="imgtitle dis a-c j-c">验车照(天窗)</view>
  1325. </view>
  1326. </block>
  1327. <view v-if="imgList19.length==0 " class="uni-uploader__input-box"
  1328. style="box-sizing: border-box;">
  1329. <view class="imgtitle dis a-c j-c">验车照(天窗)</view>
  1330. <view class="uni-uploader__input"
  1331. @tap="chooseImage('C0510','carInspectionImage','imgList19')">
  1332. </view>
  1333. </view>
  1334. </view>
  1335. </view>
  1336. </view>
  1337. </view>
  1338. </view>
  1339. </scroll-view>
  1340. <view class="operateBtn1 dis a-c j-c">
  1341. <view class="cancel dis a-c j-c" @click="resubmitDocumentsShow=false">
  1342. 取消
  1343. </view>
  1344. <view class="confirm dis a-c j-c" @click="resubmitImageconfirm">
  1345. 确定
  1346. </view>
  1347. </view>
  1348. </view>
  1349. </u-popup>
  1350. <previewImage ref="previewImage" :opacity="0.8" :circular="true" :imgs="previewImgs"></previewImage>
  1351. <!-- 提交核保确认是否选择了某种优惠方式 -->
  1352. <uni-popup ref='popup' type="bottom">
  1353. <view class="popup">
  1354. <view class="dis a-c j-c title">
  1355. <view>选择优惠方式</view>
  1356. <view class="close" @click="closePopup()">
  1357. <uni-icons type='closeempty' size='16'></uni-icons>
  1358. </view>
  1359. </view>
  1360. <view class="list">
  1361. <view class="radio" @click='handleAcceptCustomer(1)'>
  1362. <view>客户权益</view>
  1363. <view>当前客户出单后,可赠送客户价值688的权益礼包</view>
  1364. </view>
  1365. <view class="radio" @click='handleAcceptCustomer(0)'>
  1366. <view>现金优惠</view>
  1367. <view>选择为当前客户最多优惠365.25元</view>
  1368. </view>
  1369. </view>
  1370. </view>
  1371. </uni-popup>
  1372. </view>
  1373. </template>
  1374. <script>
  1375. import uniIcons from '../../components/uni-icons/components/uni-icons/uni-icons.vue'
  1376. import {
  1377. mapState
  1378. } from "vuex"
  1379. import lsLoading from '@/components/common/ls-loading/ls-loading.vue';
  1380. import wybPopup from '@/components/modules/carInsure/wyb-popup/wyb-popup.vue'
  1381. import previewImage from '@/components/common/previewImage/previewImage.vue'; //引用插件
  1382. export default {
  1383. components: {
  1384. wybPopup,
  1385. lsLoading,
  1386. previewImage,
  1387. uniIcons
  1388. },
  1389. watch: {
  1390. comparableQuantity: {
  1391. handler(val) {
  1392. console.log(val);
  1393. },
  1394. },
  1395. },
  1396. computed: {
  1397. ...mapState(['userInfo', 'token', 'quotationType']),
  1398. guoRenSpecialAgreementDatajq() {
  1399. return this.guoRenSpecialAgreementData.filter(item => item.riskCode === "0507");
  1400. },
  1401. guoRenSpecialAgreementDatasy() {
  1402. return this.guoRenSpecialAgreementData.filter(item => item.riskCode === "0510");
  1403. },
  1404. ziJinengageListDatajq() {
  1405. return this.ziJinengageListData.filter(item => item.riskCode === "0507");
  1406. },
  1407. ziJinengageListDatasy() {
  1408. return this.ziJinengageListData.filter(item => item.riskCode === "0510");
  1409. },
  1410. huaTaiengageListDatajq() {
  1411. return this.huaTaiengageListData.filter(item => item.riskCode === "0507");
  1412. },
  1413. huaTaiengageListDatasy() {
  1414. return this.huaTaiengageListData.filter(item => item.riskCode === "0510");
  1415. }
  1416. },
  1417. // 监听导航栏的按钮
  1418. onNavigationBarButtonTap(e) {
  1419. if (e.index == 0) {
  1420. this.navigate({
  1421. url: '/pages/index/index'
  1422. }, "switchTab", true);
  1423. }
  1424. },
  1425. data() {
  1426. return {
  1427. imagelist: [{
  1428. name: '车辆/人员信息'
  1429. },
  1430. {
  1431. name: '验车照'
  1432. }
  1433. ],
  1434. imagecurrent: 0,
  1435. //特约分类
  1436. list: [{
  1437. name: '交强'
  1438. }, {
  1439. name: '商业'
  1440. }],
  1441. ZJcurrent: 0,
  1442. GRcurrent: 0,
  1443. HTcurrent: 0,
  1444. //特约分类
  1445. CTcoefficientForm: {
  1446. initialProposalDiscount: "", //初始折扣
  1447. expectedDiscount: "", //期望折扣
  1448. pricingCoefficient: "", //自主定价系数
  1449. },
  1450. ZJcoefficientForm: {
  1451. coefficient: null, //系数
  1452. },
  1453. CTcoefficientIndex: "",
  1454. ZJcoefficientIndex: "",
  1455. CTcoefficientShow: false, //诚泰系数
  1456. ZJcoefficientShow: false, //紫金系数
  1457. previewImgs: [],
  1458. carImageListId: [],
  1459. ownerImageListId: [],
  1460. policyImageListId: [],
  1461. insuredImageListId: [],
  1462. imgRelationshipid: [], //其他关系
  1463. imgNewCarinvoiceId: [], //购车发票
  1464. imgRelationship: [], //其他证明
  1465. imgNewCarQualified: [], //合格证
  1466. imgNewCarInvoice: [], //发票
  1467. carInspectionImage: [], //验车照
  1468. imgList1: [],
  1469. imgList2: [],
  1470. imgList3: [],
  1471. imgList4: [],
  1472. imgList5: [],
  1473. imgList6: [],
  1474. imgList7: [],
  1475. imgList8: [],
  1476. imgList9: [],
  1477. imgList10: [],
  1478. imgList11: [],
  1479. imgList12: [],
  1480. imgList13: [],
  1481. imgList14: [],
  1482. imgList15: [],
  1483. imgList16: [],
  1484. imgList17: [],
  1485. imgList18: [],
  1486. imgList19: [],
  1487. resubmitDocumentsShow: false,
  1488. insuranceCompanyName: "", //保险公司简称
  1489. companyId: "", //子订单ID
  1490. apiType: "", //区分核保接口请求类型
  1491. auditNextShow: false, //核保确认弹窗
  1492. //核保提示
  1493. underwriteShow: false,
  1494. underwriteTitle: "订单自核成功", //核保状态
  1495. confirmText: "立即缴费", //核保提示自定义按钮
  1496. cancelText: "暂不缴费",
  1497. underwriteMsg: "",
  1498. //核保提示
  1499. /* 优惠信息弹窗*/
  1500. discountInfoPopup: false,
  1501. discountInfoPopupTitle: "",
  1502. discountInfoPopupContent: ``,
  1503. /* 优惠信息弹窗*/
  1504. /* 投保指引*/
  1505. insGuide: "",
  1506. insGuideTitle: "",
  1507. /* 投保指引*/
  1508. guoRenSpecialAgreementData: [],
  1509. guoRenSpecialAgreementVo: [],
  1510. ziJinengageListData: [], //紫金特约list
  1511. huaTaiengageListData: [], //华泰特约list
  1512. huaTaiengageList: [],
  1513. ziJinengageList: [],
  1514. preUnderwritingshow: false, //预核保信息弹窗
  1515. Generateshow: false,
  1516. guoRencontributingshow: false, //国任特约弹窗
  1517. zijincontributingshow: false, //紫金特约弹窗
  1518. huataicontributingshow: false, //华泰特约弹窗
  1519. priceComparisonShow: false, //比价弹窗
  1520. comparableQuantity: 0, //报价成功总数
  1521. selectedCount: 0, //比价勾选数量
  1522. riskList: [], //险种大类
  1523. model: {
  1524. taxRelifFlag: "正常交税",
  1525. taxpayerIdentifier: "身份证",
  1526. relifReason: "",
  1527. taxPaidAreaCode: "",
  1528. },
  1529. //车船税form
  1530. vehicleAndVesselTaxForm: {
  1531. taxRelifFlag: "1", //类型
  1532. identifyNumber: "", //纳税人识别号
  1533. taxpayerIdentifier: "01", //纳税人证件类型
  1534. taxpayerName: "", //纳税人名称
  1535. extendChar2: "", //减免税凭证号
  1536. paidFreeCertificate: "", //完税凭证号
  1537. relifReason: "", //减免税原因
  1538. taxComCode: "", //税务机关代码
  1539. taxComName: "", ///税务机关名称
  1540. taxDocumentDate: "", //完税日期
  1541. taxPaidAreaCode: "", //完税凭证地区代码
  1542. taxRelief: "", //减税比例
  1543. },
  1544. taxRelifFlagoptions: [],
  1545. taxpayerIdentifieroptions: [],
  1546. relifReasonoptions: [],
  1547. taxPaidAreaCodeShow: false, //完税凭证地区
  1548. taxDocumentDateShow: false, //完税凭证填发日期
  1549. taxRelifFlagShow: false, //车船税类型
  1550. taxpayerIdentifierShow: false, //纳税人证件类型
  1551. relifReasonShow: false, //减免税原因代码
  1552. params: {
  1553. year: true, //年
  1554. month: true, //月
  1555. day: true, //日
  1556. hour: true, //时
  1557. minute: true, //分
  1558. second: true, //秒
  1559. },
  1560. jqimmediately: "0",
  1561. jqimmediatelyList: [{
  1562. label: '是',
  1563. value: "1",
  1564. },
  1565. {
  1566. label: '否',
  1567. value: "0",
  1568. },
  1569. ],
  1570. syimmediately: "0",
  1571. syimmediatelyList: [{
  1572. label: '是',
  1573. value: "1",
  1574. },
  1575. {
  1576. label: '否',
  1577. value: "0",
  1578. },
  1579. ],
  1580. jqchecked: false,
  1581. sychecked: false,
  1582. jqstartShow: false,
  1583. jqendShow: false,
  1584. systartShow: false,
  1585. syendShow: false,
  1586. jqstartDate: "",
  1587. jqendDate: "",
  1588. systartDate: "",
  1589. syendDate: "",
  1590. scrollTop: 0,
  1591. carInfo: {},
  1592. ownerInfo: {},
  1593. policyHolderInfo: {},
  1594. insuredPersonInfo: {},
  1595. carInfoPositiveList: [],
  1596. ownerInfoPositiveList: [],
  1597. policyHolderInfoPositiveList: [],
  1598. insuredPersonInfoPositiveList: [],
  1599. transferDateShow: false,
  1600. params1: {
  1601. year: true, //年
  1602. month: true, //月
  1603. day: true, //日
  1604. hour: false, //时
  1605. minute: false, //分
  1606. second: false, //秒
  1607. },
  1608. params2: {
  1609. province: true,
  1610. city: false,
  1611. area: false
  1612. },
  1613. quotableCompanyList: [],
  1614. RSpreUnderwritingList: [],
  1615. productId: "",
  1616. productName: "",
  1617. animation: 'twinkle', //动画类型
  1618. InsureGuidePopup: false,
  1619. /* 投保指引弹窗*/
  1620. InsureGuideContent: "", // 指引内容
  1621. SelectedPlanId: "2", //已选方案id
  1622. genericPlanPopup: false, //方案选择弹窗
  1623. planDataExpansion: { //方案综合数据
  1624. id: "",
  1625. namesimple: "",
  1626. cnName: "",
  1627. genericPlanList: [], //方案通用列表
  1628. genericPlanInfo: {}, //方案展示信息
  1629. },
  1630. insureItem: {},
  1631. orderno: "", //订单号
  1632. quoteno: "", //报价号
  1633. accidentInsuranceCategoryList: [],
  1634. accidentCategoryId: "",
  1635. /* 安盛 */
  1636. anshengPopupshow: false,
  1637. anshengInsuranceData: [],
  1638. anshengaccidentalDrivingVo: {},
  1639. /* 国任 */
  1640. guoRenPopupshow: false,
  1641. guoRenInsuranceData: [],
  1642. guoRenaccidentalDrivingVo: {},
  1643. /* 大家 */
  1644. dajiaPopupshow: false,
  1645. dajiaInsuranceData: [],
  1646. dajiaaccidentalDrivingVo: {},
  1647. /* 永诚 */
  1648. yongchengPopupshow: false,
  1649. yongchengInsuranceData: [],
  1650. yongchengaccidentalDrivingVo: {},
  1651. /* 恒邦 */
  1652. hengbangPopupshow: false,
  1653. hengbangInsuranceData: [],
  1654. hengbangaccidentalDrivingVo: {},
  1655. /* 诚泰 */
  1656. chengtaiPopupshow: false,
  1657. chengtaiInsuranceData: [],
  1658. chengtaiaccidentalDrivingVo: {},
  1659. /* 中煤 */
  1660. zhongmeiPopupshow: false,
  1661. zhongmeiInsuranceData: [],
  1662. zhongmeiaccidentalDrivingVo: {},
  1663. /* 泰康 */
  1664. taikangPopupshow: false,
  1665. taikangInsuranceData: [],
  1666. taikangaccidentalDrivingVo: {},
  1667. /* 渤海 */
  1668. bohaiPopupshow: false,
  1669. bohaiInsuranceData: [],
  1670. bohaiaccidentalDrivingVo: {},
  1671. /* 众安 */
  1672. zhonganPopupshow: false,
  1673. zhonganInsuranceData: [],
  1674. zhonganaccidentalDrivingVo: {},
  1675. /* 太平 */
  1676. taipingPopupshow: false,
  1677. taipingInsuranceData: [],
  1678. taipingaccidentalDrivingVo: {},
  1679. /* 华农 */
  1680. huanongPopupshow: false,
  1681. huanongInsuranceData: [],
  1682. huanongaccidentalDrivingVo: {},
  1683. /* 人寿 */
  1684. renshouPopupshow: false,
  1685. renshouInsuranceData: [],
  1686. renshouaccidentalDrivingVo: {},
  1687. /* 紫金 */
  1688. zijinPopupshow: false,
  1689. zijinInsuranceData: [],
  1690. zijinaccidentalDrivingVo: [],
  1691. isInspectchange: false,
  1692. }
  1693. },
  1694. onShow() {
  1695. },
  1696. async onLoad(params) {
  1697. if (params.orderno) {
  1698. let res = await this.$http.post('/insurance/order/reviseApp', {
  1699. orderNo: params.orderno
  1700. });
  1701. this.productId = res.data.productid; //险种id
  1702. this.productName = res.data.product; //险种name
  1703. this.quotableCompanyList = JSON.parse(JSON.stringify(res.data.companyDtos));
  1704. this.commpanyList();
  1705. this.carInfo = res.data.carinfo; //车辆信息
  1706. this.ownerInfo = res.data.ownerinfo; //车主信息
  1707. this.policyHolderInfo = res.data.applyinfo; //投保人信息
  1708. this.insuredPersonInfo = res.data.insureinfo; //被保人信息
  1709. this.riskList = res.data.risk; //险种大类
  1710. this.vehicleAndVesselTaxForm = res.data.vehicleAndVesselTax; //车船税信息
  1711. this.orderno = res.data.orderno;
  1712. this.quoteno = res.data.quoteno;
  1713. this.imageEcho(res.data.quoteno) // 影像获取完毕
  1714. if (this.riskList.length > 0) {
  1715. for (let i = 0; i < this.riskList.length; i++) {
  1716. if (this.riskList[i].riskCode == '0507') {
  1717. if (this.isDateBeforeToday(this.riskList[i].startDate)) {
  1718. this.jqstartDate = this.nextday();
  1719. this.jqendDate = this.oneYearPast(this.jqstartDate)
  1720. this.riskList[i].startDate = this.nextday()
  1721. this.riskList[i].endDate = this.oneYearPast(this.jqstartDate)
  1722. } else {
  1723. this.jqstartDate = this.riskList[i].startDate;
  1724. this.jqendDate = this.riskList[i].endDate;
  1725. }
  1726. }
  1727. if (this.riskList[i].riskCode == '0510') {
  1728. if (this.isDateBeforeToday(this.riskList[i].startDate)) {
  1729. this.systartDate = this.nextday();
  1730. this.syendDate = this.oneYearPast(this.systartDate)
  1731. this.riskList[i].startDate = this.nextday()
  1732. this.riskList[i].endDate = this.oneYearPast(this.systartDate)
  1733. } else {
  1734. this.systartDate = this.riskList[i].startDate;
  1735. this.syendDate = this.riskList[i].endDate;
  1736. }
  1737. }
  1738. }
  1739. }
  1740. } else {
  1741. this.jqstartDate = this.nextday();
  1742. this.jqendDate = this.oneYearPast(this.jqstartDate);
  1743. this.systartDate = this.nextday();
  1744. this.syendDate = this.oneYearPast(this.jqstartDate);
  1745. const eventChannel = this.getOpenerEventChannel()
  1746. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  1747. await eventChannel.on('acceptData', (data) => {
  1748. this.carInfo = data.carInfo; //车辆信息
  1749. this.ownerInfo = data.ownerInfo; //车主信息
  1750. this.policyHolderInfo = data.policyHolderInfo; //投保人信息
  1751. this.vehicleAndVesselTaxForm.identifyNumber = this.policyHolderInfo.identifyNumber;
  1752. this.vehicleAndVesselTaxForm.taxpayerName = this.policyHolderInfo.name;
  1753. this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
  1754. this.carInfoPositiveList = data.carInfoPositiveList; //车辆
  1755. this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
  1756. this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
  1757. this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
  1758. this.productId = data.productId; //险种id
  1759. this.productName = data.productName; //险种name
  1760. this.riskTypeEchoProcessing(this.productId)
  1761. this.quotableCompanyList = JSON.parse(JSON.stringify(data.quotableCompanyList)); //可报价公司
  1762. this.commpanyList();
  1763. })
  1764. }
  1765. this.getDicType("taxRelifFlag"); //车船税类型
  1766. this.getDicType("taxpayerIdentifier"); //纳税人证件类型
  1767. this.getDicType("relifReason"); //减免税原因代码
  1768. },
  1769. methods: {
  1770. CTcoefficientSubmit() {
  1771. this.quotableCompanyList[this.CTcoefficientIndex].coefficient = this.CTcoefficientForm.pricingCoefficient;
  1772. this.quotableCompanyList[this.CTcoefficientIndex].discount = this.CTcoefficientForm.expectedDiscount;
  1773. this.CTcoefficientShow = false;
  1774. },
  1775. ZJcoefficientSubmit() {
  1776. this.quotableCompanyList[this.ZJcoefficientIndex].coefficient = this.ZJcoefficientForm.coefficient;
  1777. this.ZJcoefficientShow = false;
  1778. },
  1779. CTadjustmentCoefficient(index) {
  1780. this.CTcoefficientIndex = index;
  1781. this.CTcoefficientShow = true;
  1782. },
  1783. ZJadjustmentCoefficient(index) {
  1784. this.ZJcoefficientIndex = index;
  1785. this.ZJcoefficientShow = true;
  1786. },
  1787. handleCustomerInterest(item) {
  1788. let params = {
  1789. option: [
  1790. {
  1791. type: '车主', // 2
  1792. name: this.ownerInfo.name,
  1793. mobile: this.ownerInfo.mobile,
  1794. identifyNumber: this.ownerInfo.identifyNumber,
  1795. },
  1796. {
  1797. type: '投保人', // 0
  1798. name: this.policyHolderInfo.name,
  1799. mobile: this.policyHolderInfo.mobile,
  1800. identifyNumber: this.policyHolderInfo.identifyNumber
  1801. },
  1802. {
  1803. type: '被保人', // 1
  1804. name: this.insuredPersonInfo.name,
  1805. mobile: this.insuredPersonInfo.mobile,
  1806. identifyNumber: this.insuredPersonInfo.identifyNumber
  1807. },
  1808. ],
  1809. companyId: item.editingDto.companyId
  1810. }
  1811. uni.navigateTo({
  1812. url: `/pages/carInsure/customerInterest?params=${JSON.stringify(params)}`,
  1813. })
  1814. },
  1815. change(index, name) {
  1816. this[name + 'current'] = index;
  1817. },
  1818. imagechange(index) {
  1819. this.imagecurrent = index;
  1820. },
  1821. btn_click() {
  1822. uni.navigateTo({
  1823. url: '/pages/chat/chat'
  1824. })
  1825. },
  1826. isDateBeforeToday(date) {
  1827. const inputDate = new Date(date); // 将输入的日期转换为 Date 对象
  1828. const today = new Date(); // 获取当前日期
  1829. // 比较日期是否小于当前日期
  1830. if (inputDate < today) {
  1831. return true; // 输入日期小于当前日期
  1832. } else {
  1833. return false; // 输入日期大于等于当前日期
  1834. }
  1835. },
  1836. //影像查询
  1837. async imageEcho(quotenos) {
  1838. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  1839. if (imgres.code == "200") {
  1840. Object.keys(imgres.data).forEach((keys) => {
  1841. if (imgres.data[keys].url) {
  1842. imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
  1843. switch (keys) {
  1844. case 'C01':
  1845. this.carInfoPositiveList.push({
  1846. imageId: imgres.data[keys].imageId,
  1847. imageType: imgres.data[keys].imageType,
  1848. })
  1849. break;
  1850. case 'D01':
  1851. this.carInfoPositiveList.push({
  1852. imageId: imgres.data[keys].imageId,
  1853. imageType: imgres.data[keys].imageType,
  1854. })
  1855. break;
  1856. case 'C02':
  1857. this.ownerInfoPositiveList.push({
  1858. imageId: imgres.data[keys].imageId,
  1859. imageType: imgres.data[keys].imageType,
  1860. });
  1861. break;
  1862. case 'D02':
  1863. this.ownerInfoPositiveList.push({
  1864. imageId: imgres.data[keys].imageId,
  1865. imageType: imgres.data[keys].imageType,
  1866. });
  1867. break;
  1868. case 'C03':
  1869. this.policyHolderInfoPositiveList.push({
  1870. imageId: imgres.data[keys].imageId,
  1871. imageType: imgres.data[keys].imageType,
  1872. });
  1873. break;
  1874. case 'D03':
  1875. this.policyHolderInfoPositiveList.push({
  1876. imageId: imgres.data[keys].imageId,
  1877. imageType: imgres.data[keys].imageType,
  1878. });
  1879. break;
  1880. case 'C04':
  1881. this.insuredPersonInfoPositiveList.push({
  1882. imageId: imgres.data[keys].imageId,
  1883. imageType: imgres.data[keys].imageType,
  1884. });
  1885. break;
  1886. case 'D04':
  1887. this.insuredPersonInfoPositiveList.push({
  1888. imageId: imgres.data[keys].imageId,
  1889. imageType: imgres.data[keys].imageType,
  1890. });
  1891. break;
  1892. default:
  1893. break;
  1894. }
  1895. }
  1896. });
  1897. }
  1898. },
  1899. //影像查询
  1900. async imageEcho1(quotenos) {
  1901. this.imgList1 = [];
  1902. this.imgList2 = [];
  1903. this.imgList3 = [];
  1904. this.imgList4 = [];
  1905. this.imgList5 = [];
  1906. this.imgList6 = [];
  1907. this.imgList7 = [];
  1908. this.imgList8 = [];
  1909. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  1910. if (imgres.code == "200") {
  1911. Object.keys(imgres.data).forEach((keys) => {
  1912. if (imgres.data[keys].url) {
  1913. imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
  1914. switch (keys) {
  1915. case 'C01':
  1916. this.carImageListId.push({
  1917. imageId: imgres.data[keys].imageId,
  1918. imageType: imgres.data[keys].imageType,
  1919. })
  1920. this.imgList1.push(imgres.data[keys]);
  1921. break;
  1922. case 'D01':
  1923. this.carImageListId.push({
  1924. imageId: imgres.data[keys].imageId,
  1925. imageType: imgres.data[keys].imageType,
  1926. })
  1927. this.imgList2.push(imgres.data[keys]);
  1928. break;
  1929. case 'C02':
  1930. this.ownerImageListId.push({
  1931. imageId: imgres.data[keys].imageId,
  1932. imageType: imgres.data[keys].imageType,
  1933. })
  1934. this.imgList3.push(imgres.data[keys]);
  1935. break;
  1936. case 'D02':
  1937. this.ownerImageListId.push({
  1938. imageId: imgres.data[keys].imageId,
  1939. imageType: imgres.data[keys].imageType,
  1940. })
  1941. this.imgList4.push(imgres.data[keys]);
  1942. break;
  1943. case 'C03':
  1944. this.policyImageListId.push({
  1945. imageId: imgres.data[keys].imageId,
  1946. imageType: imgres.data[keys].imageType,
  1947. })
  1948. this.imgList5.push(imgres.data[keys]);
  1949. break;
  1950. case 'D03':
  1951. this.policyImageListId.push({
  1952. imageId: imgres.data[keys].imageId,
  1953. imageType: imgres.data[keys].imageType,
  1954. })
  1955. this.imgList6.push(imgres.data[keys]);
  1956. break;
  1957. case 'C04':
  1958. this.insuredImageListId.push({
  1959. imageId: imgres.data[keys].imageId,
  1960. imageType: imgres.data[keys].imageType,
  1961. })
  1962. this.imgList7.push(imgres.data[keys]);
  1963. break;
  1964. case 'D04':
  1965. this.insuredImageListId.push({
  1966. imageId: imgres.data[keys].imageId,
  1967. imageType: imgres.data[keys].imageType,
  1968. })
  1969. this.imgList8.push(imgres.data[keys]);
  1970. break;
  1971. default:
  1972. break;
  1973. }
  1974. }
  1975. });
  1976. }
  1977. },
  1978. back() {
  1979. uni.navigateBack(1)
  1980. },
  1981. //-------------驾意险处理开始
  1982. //国任
  1983. GRradioChange(id) {
  1984. let obj = this.guoRenInsuranceData.find((val => val.projectCode == id))
  1985. Object.assign(this.guoRenaccidentalDrivingVo, obj);
  1986. this.guoRenPopupshow = false;
  1987. },
  1988. //大家
  1989. DJradioChange(id) {
  1990. let obj = this.dajiaInsuranceData.find((val => val.projectCode == id))
  1991. Object.assign(this.dajiaaccidentalDrivingVo, obj);
  1992. this.dajiaPopupshow = false;
  1993. },
  1994. //紫金意外险
  1995. ZJcheckboxGroupChange(detail) {
  1996. this.zijinaccidentalDrivingVo = [];
  1997. detail.map(val => {
  1998. let list = this.zijinInsuranceData.find(item => item.projectCode == val)
  1999. this.zijinaccidentalDrivingVo.push(list)
  2000. })
  2001. },
  2002. //安盛
  2003. ASradioChange(id) {
  2004. let obj = this.anshengInsuranceData.find((val => val.projectCode == id))
  2005. Object.assign(this.anshengaccidentalDrivingVo, obj);
  2006. this.anshengPopupshow = false;
  2007. },
  2008. //太平
  2009. TPradioChange(id) {
  2010. let obj = this.taipingInsuranceData.find(val => val.projectCode == id)
  2011. Object.assign(this.taipingaccidentalDrivingVo, obj);
  2012. this.taipingPopupshow = false;
  2013. },
  2014. //泰康
  2015. TkradioChange(id) {
  2016. let obj = this.taikangInsuranceData.find(val => val.projectCode == id)
  2017. Object.assign(this.taikangaccidentalDrivingVo, obj);
  2018. this.taikangPopupshow = false;
  2019. },
  2020. //永诚
  2021. YCradioChange(id) {
  2022. let obj = this.yongchengInsuranceData.find(val => val.projectCode == id)
  2023. Object.assign(this.yongchengaccidentalDrivingVo, obj);
  2024. this.yongchengPopupshow = false;
  2025. },
  2026. //中煤
  2027. ZMradioChange(id) {
  2028. let obj = this.zhongmeiInsuranceData.find(val => val.projectCode == id)
  2029. Object.assign(this.zhongmeiaccidentalDrivingVo, obj);
  2030. this.zhongmeiPopupshow = false;
  2031. },
  2032. //渤海意外险
  2033. BHradioChange(id) {
  2034. let info = this.bohaiInsuranceData.find(val => val.projectCode == id)
  2035. Object.assign(this.bohaiaccidentalDrivingVo, obj);
  2036. this.bohaiPopupshow = false;
  2037. },
  2038. //人寿意外险
  2039. RSradioChange(id) {
  2040. let obj = this.renshouInsuranceData.find(val => val.projectCode == id)
  2041. Object.assign(this.renshouaccidentalDrivingVo, obj);
  2042. this.renshouPopupshow = false;
  2043. },
  2044. //恒邦意外险
  2045. HBradioChange(id) {
  2046. let obj = this.hengbangInsuranceData.find(val => val.projectCode ==
  2047. id)
  2048. Object.assign(this.hengbangaccidentalDrivingVo, obj);
  2049. this.hengbangPopupshow = false;
  2050. },
  2051. //众安意外险
  2052. ZAradioChange(id) {
  2053. let obj = this.zhonganInsuranceData.find(val => val.projectCode == id)
  2054. Object.assign(this.zhonganaccidentalDrivingVo, obj);
  2055. this.zhonganPopupshow = false;
  2056. },
  2057. //华农驾意险
  2058. HNradioChange(id) {
  2059. let obj = this.huanongInsuranceData.find(val => val.projectCode == id);
  2060. Object.assign(this.huanongaccidentalDrivingVo, obj);
  2061. this.huanongaccidentalDrivingVo.accidentType = this.huanongaccidentalDrivingVo.planCode;
  2062. this.huanongPopupshow = false;
  2063. },
  2064. //-------------驾意险处理结束
  2065. adjustBIItemLabelSubmit() {
  2066. for (let i = 0; i < this.planDataExpansion.genericPlanInfo.kinds.length; i++) {
  2067. if (this.insureItem.kindCode == this.planDataExpansion.genericPlanInfo.kinds[i].kindCode) {
  2068. this.planDataExpansion.genericPlanInfo.kinds[i].amount = this.insureItem.amount; /* 保额 */
  2069. this.planDataExpansion.genericPlanInfo.kinds[i].amountDesc = this.insureItem.amountDesc; /* 保额名称 */
  2070. }
  2071. }
  2072. this.$refs.popupBI.hide();
  2073. },
  2074. numberBoxChange(val) {
  2075. if (val.value > 0) {
  2076. this.insureItem.amount = val.value;
  2077. this.insureItem.amountDesc = val.value + '次';
  2078. } else {
  2079. this.insureItem.amount = 0;
  2080. this.insureItem.amountDesc = '不投保';
  2081. }
  2082. },
  2083. //弹出popup框并显示基本信息
  2084. adjustBIItem(index) {
  2085. var a = {};
  2086. Object.assign(a, this.planDataExpansion.genericPlanInfo.kinds[index])
  2087. this.insureItem = a;
  2088. this.$refs.popupBI.show() // 显示
  2089. },
  2090. //popup内容的label改变
  2091. adjustBIItemLabel(index) {
  2092. this.insureItem.amount = this.insureItem.amtList[index].value;
  2093. this.insureItem.amountDesc = this.insureItem.amtList[index].label;
  2094. },
  2095. jqterms() {
  2096. let file = 'https://sxzgkj.baoxianzhanggui.com/web-api/upload/specification/commercialInsurance.pdf';
  2097. //#ifdef APP-PLUS
  2098. uni.showLoading({
  2099. title: '正在打开'
  2100. });
  2101. let dtask = plus.downloader.createDownload(file, {
  2102. filename: "_downloads/" + '交强条款.pdf'
  2103. }, function(d, status) {
  2104. if (status == 200) {
  2105. uni.hideLoading()
  2106. //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
  2107. let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
  2108. plus.runtime.openFile(d.filename); //选择软件打开文件
  2109. } else {
  2110. uni.hideLoading()
  2111. //下载失败
  2112. plus.downloader.clear(); //清除下载任务
  2113. }
  2114. })
  2115. dtask.start();
  2116. //#endif
  2117. //#ifdef H5
  2118. var win = window.open();
  2119. win.document.write(
  2120. '<body style="margin:0px;"><object data="' +
  2121. file +
  2122. '" type="application/pdf" width="100%" height="100%"><iframe src="' +
  2123. file +
  2124. '" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
  2125. );
  2126. //#endif
  2127. },
  2128. syterms() {
  2129. let file = 'https://sxzgkj.baoxianzhanggui.com/web-api/upload/specification/compulsoryInsurance.pdf';
  2130. //#ifdef APP-PLUS
  2131. uni.showLoading({
  2132. title: '正在打开'
  2133. });
  2134. let dtask = plus.downloader.createDownload(file, {
  2135. filename: "_downloads/" + '商业条款.pdf'
  2136. }, function(d, status) {
  2137. if (status == 200) {
  2138. uni.hideLoading()
  2139. //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
  2140. let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
  2141. plus.runtime.openFile(d.filename); //选择软件打开文件
  2142. } else {
  2143. uni.hideLoading()
  2144. //下载失败
  2145. plus.downloader.clear(); //清除下载任务
  2146. }
  2147. })
  2148. dtask.start();
  2149. //#endif
  2150. //#ifdef H5
  2151. var win = window.open();
  2152. win.document.write(
  2153. '<body style="margin:0px;"><object data="' +
  2154. file +
  2155. '" type="application/pdf" width="100%" height="100%"><iframe src="' +
  2156. file +
  2157. '" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
  2158. );
  2159. //#endif
  2160. },
  2161. //国任特约
  2162. async specialAgreementSelection(id) {
  2163. let guoRen = await this.$http.post('/api/guoRen/queryClauseDataCompany', {
  2164. companyId: id,
  2165. });
  2166. this.guoRenSpecialAgreementData = guoRen.data;
  2167. this.guoRencontributingshow = true;
  2168. },
  2169. //紫金特约
  2170. async zijinspecialAgreementSelection(id) {
  2171. let Zijinres = await this.$http.post('/order/zijin/queryClauseData', {
  2172. companyId: id,
  2173. });
  2174. this.ziJinengageListData = Zijinres.data;
  2175. this.zijincontributingshow = true;
  2176. let data = this.ziJinengageListData.find(val => val.optType == 3)
  2177. if (data) {
  2178. this.ziJinengageList.push({
  2179. clauseCode: data.clauseCode,
  2180. clauseName: data.clauseName,
  2181. clauses: data.clauseContent,
  2182. riskCode: data.riskCode,
  2183. modifyFlag: data.modifyFlag,
  2184. optType: data.optType,
  2185. })
  2186. }
  2187. },
  2188. //华泰特约
  2189. async huataispecialAgreementSelection(id) {
  2190. let huaTaires = await this.$http.post('/order/huaTaiApi/queryClauseData', {
  2191. companyId: id,
  2192. });
  2193. this.huaTaiengageListData = huaTaires.data;
  2194. this.huataicontributingshow = true;
  2195. huaTaires.data.map(val => {
  2196. if (val.optType == '2') {
  2197. this.huaTaiengageList.push({
  2198. engageCode: val.engageCode,
  2199. engageDetail: val.engageDetail,
  2200. engageTitle: val.engageTitle,
  2201. riskCode: val.riskCode,
  2202. modifyFlag: val.modifyFlag,
  2203. })
  2204. }
  2205. })
  2206. },
  2207. guoRencontributingChange(param) {
  2208. this.guoRenSpecialAgreementVo = [];
  2209. param.map(val => {
  2210. let list = this.guoRenSpecialAgreementData.find(item => item.clauseCode == val)
  2211. this.guoRenSpecialAgreementVo.push({
  2212. clauseCode: list.clauseCode,
  2213. clauses: list.clauses,
  2214. clausesContext: list.clausesContext,
  2215. riskCode: list.riskCode,
  2216. riskName: list.riskName,
  2217. })
  2218. })
  2219. },
  2220. ziJincontributingChange(param) {
  2221. this.ziJinengageList = [];
  2222. param.map(val => {
  2223. let list = this.ziJinengageListData.find(item => item.clauseId == val)
  2224. this.ziJinengageList.push({
  2225. clauseCode: list.clauseCode,
  2226. clauseName: list.clauseName,
  2227. clauses: list.clauseContent,
  2228. riskCode: list.riskCode,
  2229. modifyFlag: list.modifyFlag,
  2230. })
  2231. })
  2232. },
  2233. huaTaicontributingChange(param) {
  2234. this.huaTaiengageList = [];
  2235. param.map(val => {
  2236. let list = this.huaTaiengageListData.find(item => item.engageCode == val)
  2237. this.huaTaiengageList.push({
  2238. engageCode: list.engageCode,
  2239. engageDetail: list.engageDetail,
  2240. engageTitle: list.engageTitle,
  2241. riskCode: list.riskCode,
  2242. modifyFlag: list.modifyFlag,
  2243. })
  2244. })
  2245. },
  2246. //--------比价
  2247. priceComparison() {
  2248. this.priceComparisonShow = true;
  2249. },
  2250. priceComparison1() {
  2251. this.quotableCompanyList.map((ele, index) => {
  2252. if (ele.quoteCode == 200) {
  2253. const updatedItem = {
  2254. ...this.quotableCompanyList[index],
  2255. isComparableshowHide: true
  2256. };
  2257. this.quotableCompanyList.splice(index, 1, updatedItem);
  2258. }
  2259. return ele;
  2260. })
  2261. },
  2262. priceComparison2() {
  2263. let subOrderNoslist = [];
  2264. this.quotableCompanyList.map(ele => {
  2265. if (ele.isComparableShow) {
  2266. subOrderNoslist.push(ele.result.companyId);
  2267. }
  2268. return ele;
  2269. })
  2270. uni.navigateTo({
  2271. url: `/pages/orders/priceComparison?subOrderNoslist=${JSON.stringify(subOrderNoslist)}`
  2272. })
  2273. },
  2274. //--------比价
  2275. //重新生成订单
  2276. GenerateModalConfirm() {
  2277. this.orderno = "";
  2278. this.quoteno = "";
  2279. this.toNext();
  2280. },
  2281. async toNext() {
  2282. var allAreFalse = this.quotableCompanyList.every(function(element) {
  2283. return element.insurancePlanInfo == null;
  2284. });
  2285. if (!allAreFalse) {
  2286. if (this.carInfo.licenseNo.length == '8' && this.carInfo.energyType == '0') {
  2287. return uni.showToast({
  2288. icon: "none",
  2289. title: '检测到能源种类错误,与车辆信息不符。请修改后继续操作',
  2290. duration: 3000
  2291. });
  2292. }
  2293. this.comparableQuantity = 0; //报价成功总数
  2294. this.selectedCount = 0; //比价勾选数量
  2295. this.quotableCompanyList.map((ele) => {
  2296. ele.isComparableShow = false;
  2297. ele.isComparableshowHide = false;
  2298. return ele;
  2299. })
  2300. this.riskList.map(val => {
  2301. if (val.riskCode == '0507') {
  2302. val.startDate = this.jqstartDate;
  2303. val.endDate = this.jqendDate;
  2304. }
  2305. if (val.riskCode == '0510') {
  2306. val.startDate = this.systartDate;
  2307. val.endDate = this.syendDate;
  2308. }
  2309. return val;
  2310. })
  2311. let param = {
  2312. userId: this.userInfo.sysUser.id,
  2313. quoteno: this.quoteno ? this.quoteno : "",
  2314. orderNo: this.orderno ? this.orderno : "",
  2315. riskList: this.riskList,
  2316. carInfo: this.carInfo,
  2317. insuredPersonInfo: this.insuredPersonInfo,
  2318. ownerInfo: this.ownerInfo,
  2319. policyHolderInfo: this.policyHolderInfo,
  2320. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2321. productId: this.productId,
  2322. orderSource: "1",
  2323. };
  2324. let orders = await this.$http.post('/insurance/order/generateOrder', param);
  2325. if (orders.code == '200') {
  2326. this.orderno = orders.data.orderno;
  2327. this.quoteno = orders.data.quoteno;
  2328. let mergedArray = [];
  2329. let mergedArrayList = mergedArray.concat(this.carInfoPositiveList, this
  2330. .ownerInfoPositiveList, this
  2331. .policyHolderInfoPositiveList, this.insuredPersonInfoPositiveList)
  2332. if (mergedArrayList.length > 0) {
  2333. await this.$http.post('/ins/taskImage/uploadImages', {
  2334. imageList: mergedArrayList,
  2335. quoteNo: this.quoteno,
  2336. })
  2337. }
  2338. this.quotableCompanyList = this.quotableCompanyList.map((ele, index) => {
  2339. if (ele.insurancePlanInfo !== null) {
  2340. // 动态调用报价接口
  2341. ele.quoteCode = '1';
  2342. this.ToolClickFun(ele.cnName, index, ele.id);
  2343. }
  2344. return ele
  2345. });
  2346. } else if (orders.code == '1001') {
  2347. this.Generateshow = true;
  2348. } else {
  2349. uni.showToast({
  2350. title: orders.msg,
  2351. icon: 'none',
  2352. });
  2353. }
  2354. } else {
  2355. uni.showToast({
  2356. title: "请选择方案后,在进行报价",
  2357. icon: 'none',
  2358. });
  2359. }
  2360. },
  2361. async tempSave() {
  2362. let param = {
  2363. userId: this.userInfo.sysUser.id,
  2364. quoteno: this.quoteno ? this.quoteno : "",
  2365. orderNo: this.orderno ? this.orderno : "",
  2366. riskList: this.riskList,
  2367. carInfo: this.carInfo,
  2368. insuredPersonInfo: this.insuredPersonInfo,
  2369. ownerInfo: this.ownerInfo,
  2370. policyHolderInfo: this.policyHolderInfo,
  2371. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2372. productId: this.productId,
  2373. orderSource: "1",
  2374. };
  2375. let orders = await this.$http.post('/insurance/order/generateOrder', param);
  2376. if (orders.code == '200') {
  2377. uni.showToast({
  2378. title: '暂存成功',
  2379. icon: 'none',
  2380. });
  2381. } else {
  2382. uni.showToast({
  2383. title: res.msg,
  2384. icon: 'none',
  2385. });
  2386. }
  2387. },
  2388. async individualQuote(item) {
  2389. if (this.carInfo.licenseNo.length == '8' && this.carInfo.energyType == '0') {
  2390. return uni.showToast({
  2391. icon: "none",
  2392. title: '检测到能源种类错误,与车辆信息不符。请修改后继续操作',
  2393. duration: 3000
  2394. });
  2395. }
  2396. if (!item.insurancePlanInfo) {
  2397. uni.showToast({
  2398. title: "请选择方案后,在进行报价",
  2399. icon: 'none',
  2400. });
  2401. } else {
  2402. this.riskList.map(val => {
  2403. if (val.riskCode == '0507') {
  2404. val.startDate = this.jqstartDate;
  2405. val.endDate = this.jqendDate;
  2406. }
  2407. if (val.riskCode == '0510') {
  2408. val.startDate = this.systartDate;
  2409. val.endDate = this.syendDate;
  2410. }
  2411. return val;
  2412. })
  2413. let param = {
  2414. userId: this.userInfo.sysUser.id,
  2415. quoteno: this.quoteno ? this.quoteno : "",
  2416. orderNo: this.orderno ? this.orderno : "",
  2417. riskList: this.riskList,
  2418. carInfo: this.carInfo,
  2419. insuredPersonInfo: this.insuredPersonInfo,
  2420. ownerInfo: this.ownerInfo,
  2421. policyHolderInfo: this.policyHolderInfo,
  2422. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2423. productId: this.productId,
  2424. orderSource: "1",
  2425. };
  2426. let orders = await this.$http.post('/insurance/order/generateOrder', param);
  2427. if (orders.code == '200') {
  2428. this.orderno = orders.data.orderno;
  2429. this.quoteno = orders.data.quoteno;
  2430. let mergedArray = [];
  2431. let mergedArrayList = mergedArray.concat(this.carInfoPositiveList, this
  2432. .ownerInfoPositiveList, this
  2433. .policyHolderInfoPositiveList, this.insuredPersonInfoPositiveList)
  2434. if (mergedArrayList.length > 0) {
  2435. await this.$http.post('/ins/taskImage/uploadImages', {
  2436. imageList: mergedArrayList,
  2437. quoteNo: this.quoteno,
  2438. })
  2439. }
  2440. this.quotableCompanyList = this.quotableCompanyList.map((ele, index) => {
  2441. if (ele.id == item.id) {
  2442. // 动态调用报价接口
  2443. ele.quoteCode = '1';
  2444. this.ToolClickFun(ele.cnName, index, ele.id);
  2445. }
  2446. return ele
  2447. });
  2448. } else if (orders.code == '1001') {
  2449. this.Generateshow = true;
  2450. } else {
  2451. uni.showToast({
  2452. title: orders.msg,
  2453. icon: 'none',
  2454. });
  2455. }
  2456. }
  2457. },
  2458. async ToolClickFun(MethodName, Parameter, companyId) {
  2459. await this[`${MethodName}`](Parameter, companyId)
  2460. //获取已报价成功个数
  2461. let filteredObjects = [];
  2462. this.quotableCompanyList.map(ele => {
  2463. if (ele.quoteCode == 200) {
  2464. filteredObjects.push(ele.result.companyId)
  2465. }
  2466. return ele;
  2467. })
  2468. this.comparableQuantity = filteredObjects.length;
  2469. },
  2470. //永诚报价
  2471. async yongcheng(num, id) {
  2472. let isTaxSource = this.quotableCompanyList[num].isTaxSource;
  2473. let ccidenttype = this.quotableCompanyList[num].cnName;
  2474. let params = {
  2475. accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
  2476. .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
  2477. orderNo: this.orderno,
  2478. companyId: id,
  2479. kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
  2480. risks: this.riskList,
  2481. cqryCdeJq: this.cqryCdeJq,
  2482. cqryCdeSy: this.cqryCdeSy,
  2483. renewalCodeJq: this.renewalCodeJq,
  2484. renewalCodeSy: this.renewalCodeSy,
  2485. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2486. agreementId: this.quotableCompanyList[num].agreement[0].id,
  2487. systemType: '2'
  2488. };
  2489. try {
  2490. let res = await this.$http.post('/quote/quote', params);
  2491. this.quotableCompanyList[num].msg = res.msg;
  2492. if (res.code == "200") {
  2493. if (res.data.warnMessageList != null && res.data
  2494. .warnMessageList[0] != null && res.data
  2495. .warnMessageList[
  2496. 0] != "") {
  2497. this.quotableCompanyList[num].lastYearMsg = "";
  2498. let dat = res.data.warnMessageList;
  2499. dat.map(ele => {
  2500. this.quotableCompanyList[num].lastYearMsg += ele +
  2501. '<br>';
  2502. })
  2503. }
  2504. const updatedItem = {
  2505. ...this.quotableCompanyList[num],
  2506. quoteCode: 200
  2507. };
  2508. this.quotableCompanyList.splice(num, 1, updatedItem);
  2509. this.quotableCompanyList[num].result = res.data;
  2510. this.subOrderId = res.data.companyId;
  2511. } else {
  2512. const updatedItem = {
  2513. ...this.quotableCompanyList[num],
  2514. quoteCode: '3'
  2515. };
  2516. this.quotableCompanyList.splice(num, 1, updatedItem);
  2517. this.quotableCompanyList[num].msg = res.msg;
  2518. return;
  2519. }
  2520. } catch (error) {
  2521. const updatedItem = {
  2522. ...this.quotableCompanyList[num],
  2523. quoteCode: '3'
  2524. };
  2525. this.quotableCompanyList.splice(num, 1, updatedItem);
  2526. this.quotableCompanyList[num].msg = '接口请求超时,请重新尝试';
  2527. }
  2528. },
  2529. //中煤报价
  2530. async zhongmei(num, id) {
  2531. let isTaxSource = this.quotableCompanyList[num].isTaxSource;
  2532. let params = {
  2533. accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
  2534. .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
  2535. orderNo: this.orderno,
  2536. companyId: id,
  2537. kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
  2538. risks: this.riskList,
  2539. agreementId: this.quotableCompanyList[num].agreement[0].id,
  2540. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2541. systemType: '2'
  2542. };
  2543. try {
  2544. let res = await this.$http.post("/quote/quote", params);
  2545. this.quotableCompanyList[num].msg = res.msg;
  2546. if (res.code == '200') {
  2547. if (res.data.warnMessageList != null && res.data.warnMessageList[
  2548. 0] != null && res.data
  2549. .warnMessageList[
  2550. 0] != "") {
  2551. this.quotableCompanyList[num].lastYearMsg = "";
  2552. let dat = res.data.warnMessageList;
  2553. dat.map(ele => {
  2554. this.quotableCompanyList[num].lastYearMsg += ele +
  2555. '<br>';
  2556. })
  2557. }
  2558. const updatedItem = {
  2559. ...this.quotableCompanyList[num],
  2560. quoteCode: 200
  2561. };
  2562. this.quotableCompanyList.splice(num, 1, updatedItem);
  2563. this.quotableCompanyList[num].result = res.data;
  2564. this.subOrderId = res.data.companyId;
  2565. } else {
  2566. const updatedItem = {
  2567. ...this.quotableCompanyList[num],
  2568. quoteCode: '3'
  2569. };
  2570. this.quotableCompanyList.splice(num, 1, updatedItem);
  2571. this.quotableCompanyList[num].msg = res.msg;
  2572. return;
  2573. }
  2574. } catch (error) {
  2575. const updatedItem = {
  2576. ...this.quotableCompanyList[num],
  2577. quoteCode: '3'
  2578. };
  2579. this.quotableCompanyList.splice(num, 1, updatedItem);
  2580. this.quotableCompanyList[num].msg = '接口请求超时,请重新尝试';
  2581. }
  2582. },
  2583. //渤海报价
  2584. async bohai(num, id) {
  2585. let isTaxSource = this.quotableCompanyList[num].isTaxSource;
  2586. let params = {
  2587. accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
  2588. .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
  2589. orderNo: this.orderno,
  2590. companyId: id,
  2591. kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
  2592. risks: this.riskList,
  2593. agreementId: this.quotableCompanyList[num].agreement[0].id,
  2594. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2595. systemType: '2'
  2596. };
  2597. try {
  2598. let res = await this.$http.post('/quote/quote', params);
  2599. this.quotableCompanyList[num].msg = res.msg;
  2600. if (res.code == '200') {
  2601. if (res.data.warnMessageList != null && res.data.warnMessageList[
  2602. 0] != null && res.data
  2603. .warnMessageList[
  2604. 0] != "") {
  2605. this.quotableCompanyList[num].lastYearMsg = "";
  2606. let dat = res.data.warnMessageList;
  2607. dat.map(ele => {
  2608. this.quotableCompanyList[num].lastYearMsg += ele +
  2609. '<br>';
  2610. })
  2611. }
  2612. const updatedItem = {
  2613. ...this.quotableCompanyList[num],
  2614. quoteCode: 200
  2615. };
  2616. this.quotableCompanyList.splice(num, 1, updatedItem);
  2617. this.quotableCompanyList[num].result = res.data;
  2618. this.subOrderId = res.data.companyId;
  2619. } else {
  2620. const updatedItem = {
  2621. ...this.quotableCompanyList[num],
  2622. quoteCode: '3'
  2623. };
  2624. this.quotableCompanyList.splice(num, 1, updatedItem);
  2625. this.quotableCompanyList[num].msg = res.msg;
  2626. return;
  2627. }
  2628. } catch (error) {
  2629. const updatedItem = {
  2630. ...this.quotableCompanyList[num],
  2631. quoteCode: '3'
  2632. };
  2633. this.quotableCompanyList.splice(num, 1, updatedItem);
  2634. this.quotableCompanyList[num].msg = '接口请求超时,请重新尝试';
  2635. }
  2636. },
  2637. //阳光报价
  2638. async yangguang(num, id) {
  2639. let isTaxSource = this.quotableCompanyList[num].isTaxSource;
  2640. let params = {
  2641. accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
  2642. .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
  2643. orderNo: this.orderno,
  2644. companyId: id,
  2645. kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
  2646. risks: this.riskList,
  2647. agreementId: this.quotableCompanyList[num].agreement[0].id,
  2648. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2649. systemType: '2'
  2650. };
  2651. try {
  2652. let res = await this.$http.post('/quote/quote', params);
  2653. this.quotableCompanyList[num].msg = res.msg;
  2654. if (res.code == '200') {
  2655. if (res.data.warnMessageList != null && res.data.warnMessageList[
  2656. 0] != null && res.data
  2657. .warnMessageList[
  2658. 0] != "") {
  2659. this.quotableCompanyList[num].lastYearMsg = "";
  2660. let dat = res.data.warnMessageList;
  2661. dat.map(ele => {
  2662. this.quotableCompanyList[num].lastYearMsg += ele +
  2663. '<br>';
  2664. })
  2665. }
  2666. const updatedItem = {
  2667. ...this.quotableCompanyList[num],
  2668. quoteCode: 200
  2669. };
  2670. this.quotableCompanyList.splice(num, 1, updatedItem);
  2671. this.quotableCompanyList[num].result = res.data;
  2672. this.subOrderId = res.data.companyId;
  2673. } else {
  2674. const updatedItem = {
  2675. ...this.quotableCompanyList[num],
  2676. quoteCode: '3'
  2677. };
  2678. this.quotableCompanyList.splice(num, 1, updatedItem);
  2679. this.quotableCompanyList[num].msg = res.msg;
  2680. return;
  2681. }
  2682. } catch (error) {
  2683. const updatedItem = {
  2684. ...this.quotableCompanyList[num],
  2685. quoteCode: '3'
  2686. };
  2687. this.quotableCompanyList.splice(num, 1, updatedItem);
  2688. this.quotableCompanyList[num].msg = '接口请求超时,请重新尝试';
  2689. }
  2690. },
  2691. //华泰报价
  2692. async huatai(num, id) {
  2693. let isTaxSource = this.quotableCompanyList[num].isTaxSource;
  2694. let params = {
  2695. accidentalDrivingVo: {},
  2696. orderNo: this.orderno,
  2697. companyId: id,
  2698. kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
  2699. risks: this.riskList,
  2700. cqryCdeJq: this.cqryCdeJq,
  2701. cqryCdeSy: this.cqryCdeSy,
  2702. renewalCodeJq: this.renewalCodeJq,
  2703. renewalCodeSy: this.renewalCodeSy,
  2704. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2705. agreementId: this.quotableCompanyList[num].agreement[0].id,
  2706. systemType: '2'
  2707. };
  2708. try {
  2709. let res = await this.$http.post(
  2710. "/quote/quote", params);
  2711. this.quotableCompanyList[num].msg = res.msg;
  2712. if (res.code == '200') {
  2713. if (res.data.warnMessageList != null && res
  2714. .data.warnMessageList[0] != null && res
  2715. .data
  2716. .warnMessageList[
  2717. 0] != "") {
  2718. this.quotableCompanyList[num].lastYearMsg =
  2719. "";
  2720. let dat = res.data.warnMessageList;
  2721. dat.map(ele => {
  2722. this.quotableCompanyList[num]
  2723. .lastYearMsg += ele + '<br>';
  2724. })
  2725. }
  2726. const updatedItem = {
  2727. ...this.quotableCompanyList[num],
  2728. quoteCode: 200
  2729. };
  2730. this.quotableCompanyList.splice(num, 1, updatedItem);
  2731. this.quotableCompanyList[num].result = res.data;
  2732. this.subOrderId = res.data.companyId;
  2733. } else {
  2734. const updatedItem = {
  2735. ...this.quotableCompanyList[num],
  2736. quoteCode: '3'
  2737. };
  2738. this.quotableCompanyList.splice(num, 1, updatedItem);
  2739. this.quotableCompanyList[num].msg = res.msg;
  2740. return;
  2741. }
  2742. } catch (error) {
  2743. const updatedItem = {
  2744. ...this.quotableCompanyList[num],
  2745. quoteCode: '3'
  2746. };
  2747. this.quotableCompanyList.splice(num, 1, updatedItem);
  2748. this.quotableCompanyList[num].msg = '接口请求超时,请重新尝试';
  2749. }
  2750. },
  2751. //紫金报价
  2752. async zijin(num, id) {
  2753. let isTaxSource = this.quotableCompanyList[num].isTaxSource;
  2754. let ccidenttype = this.quotableCompanyList[num].cnName;
  2755. let params = {
  2756. accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList,
  2757. orderNo: this.orderno,
  2758. companyId: id,
  2759. kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
  2760. risks: this.riskList,
  2761. agreementId: this.quotableCompanyList[num].agreement[0].id,
  2762. coefficient: this.quotableCompanyList[num].coefficient,
  2763. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2764. systemType: '2'
  2765. };
  2766. try {
  2767. let res = await this.$http.post('/quote/quote', params);
  2768. this.quotableCompanyList[num].msg = res.msg;
  2769. if (res.code == '200') {
  2770. if (res.data.warnMessageList != null && res.data
  2771. .warnMessageList[0] != null && res.data
  2772. .warnMessageList[
  2773. 0] != "") {
  2774. this.quotableCompanyList[num].lastYearMsg = "";
  2775. let dat = res.data.warnMessageList;
  2776. dat.map(ele => {
  2777. this.quotableCompanyList[num].lastYearMsg +=
  2778. ele + '<br>';
  2779. })
  2780. }
  2781. const updatedItem = {
  2782. ...this.quotableCompanyList[num],
  2783. quoteCode: 200
  2784. };
  2785. this.quotableCompanyList.splice(num, 1, updatedItem);
  2786. this.quotableCompanyList[num].result = res.data;
  2787. this.subOrderId = res.data.companyId;
  2788. } else {
  2789. const updatedItem = {
  2790. ...this.quotableCompanyList[num],
  2791. quoteCode: '3'
  2792. };
  2793. this.quotableCompanyList.splice(num, 1, updatedItem);
  2794. this.quotableCompanyList[num].msg = res.msg;
  2795. return;
  2796. }
  2797. } catch (error) {
  2798. const updatedItem = {
  2799. ...this.quotableCompanyList[num],
  2800. quoteCode: '3'
  2801. };
  2802. this.quotableCompanyList.splice(num, 1, updatedItem);
  2803. this.quotableCompanyList[num].msg = '接口请求超时,请重新尝试';
  2804. }
  2805. },
  2806. //国任报价
  2807. async guoRen(num, id) {
  2808. let isTaxSource = this.quotableCompanyList[num].isTaxSource;
  2809. let ccidenttype = this.quotableCompanyList[num].cnName;
  2810. let params = {
  2811. accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
  2812. .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
  2813. orderNo: this.orderno,
  2814. companyId: id,
  2815. kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
  2816. risks: this.riskList,
  2817. agreementId: this.quotableCompanyList[num].agreement[0].id,
  2818. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2819. guoRenSpecialAgreementVo: this.guoRenSpecialAgreementVo,
  2820. systemType: '2'
  2821. };
  2822. try {
  2823. let res = await this.$http.post('/quote/quote',
  2824. params);
  2825. this.quotableCompanyList[num].msg = res.msg;
  2826. if (res.code == '200') {
  2827. if (res.data.warnMessageList != null && res.data
  2828. .warnMessageList[0] != null && res.data
  2829. .warnMessageList[
  2830. 0] != "") {
  2831. this.quotableCompanyList[num].lastYearMsg = "";
  2832. let dat = res.data.warnMessageList;
  2833. dat.map(ele => {
  2834. this.quotableCompanyList[num]
  2835. .lastYearMsg += ele + '<br>';
  2836. })
  2837. }
  2838. const updatedItem = {
  2839. ...this.quotableCompanyList[num],
  2840. quoteCode: 200
  2841. };
  2842. this.quotableCompanyList.splice(num, 1, updatedItem);
  2843. this.quotableCompanyList[num].result = res.data;
  2844. this.subOrderId = res.data.companyId;
  2845. } else {
  2846. const updatedItem = {
  2847. ...this.quotableCompanyList[num],
  2848. quoteCode: '3'
  2849. };
  2850. this.quotableCompanyList.splice(num, 1, updatedItem);
  2851. this.quotableCompanyList[num].msg = res.msg;
  2852. return;
  2853. }
  2854. } catch (error) {
  2855. const updatedItem = {
  2856. ...this.quotableCompanyList[num],
  2857. quoteCode: '3'
  2858. };
  2859. this.quotableCompanyList.splice(num, 1, updatedItem);
  2860. this.quotableCompanyList[num].msg = '接口请求超时,请重新尝试';
  2861. }
  2862. },
  2863. //大家报价
  2864. async dajia(num, id) {
  2865. let isTaxSource = this.quotableCompanyList[num].isTaxSource;
  2866. let ccidenttype = this.quotableCompanyList[num].cnName;
  2867. let params = {
  2868. accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
  2869. .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
  2870. orderNo: this.orderno,
  2871. companyId: id,
  2872. kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
  2873. risks: this.riskList,
  2874. cqryCdeJq: this.cqryCdeJq,
  2875. cqryCdeSy: this.cqryCdeSy,
  2876. renewalCodeJq: this.renewalCodeJq,
  2877. renewalCodeSy: this.renewalCodeSy,
  2878. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2879. agreementId: this.quotableCompanyList[num].agreement[0].id,
  2880. systemType: '2'
  2881. };
  2882. try {
  2883. let res = await this.$http.post("/quote/quote",
  2884. params);
  2885. this.quotableCompanyList[num].msg = res.msg;
  2886. if (res.code == '200') {
  2887. if (res.data.warnMessageList != null && res.data
  2888. .warnMessageList[0] != null && res.data
  2889. .warnMessageList[
  2890. 0] != "") {
  2891. this.quotableCompanyList[num].lastYearMsg = "";
  2892. let dat = res.data.warnMessageList;
  2893. dat.map(ele => {
  2894. this.quotableCompanyList[num]
  2895. .lastYearMsg += ele + '<br>';
  2896. })
  2897. }
  2898. const updatedItem = {
  2899. ...this.quotableCompanyList[num],
  2900. quoteCode: 200
  2901. };
  2902. this.quotableCompanyList.splice(num, 1, updatedItem);
  2903. this.quotableCompanyList[num].result = res.data;
  2904. this.subOrderId = res.data.companyId;
  2905. } else {
  2906. const updatedItem = {
  2907. ...this.quotableCompanyList[num],
  2908. quoteCode: '3'
  2909. };
  2910. this.quotableCompanyList.splice(num, 1, updatedItem);
  2911. this.quotableCompanyList[num].msg = res.msg;
  2912. return;
  2913. }
  2914. } catch (error) {
  2915. const updatedItem = {
  2916. ...this.quotableCompanyList[num],
  2917. quoteCode: '3'
  2918. };
  2919. this.quotableCompanyList.splice(num, 1, updatedItem);
  2920. this.quotableCompanyList[num].msg = '接口请求超时,请重新尝试';
  2921. }
  2922. },
  2923. //安盛天平
  2924. ansheng(num, id) {
  2925. this.quoteInsurance(num, id);
  2926. },
  2927. //华农
  2928. huanong(num, id) {
  2929. this.quoteInsurance(num, id);
  2930. },
  2931. //太平
  2932. taiping(num, id) {
  2933. this.quoteInsurance(num, id);
  2934. },
  2935. //众安
  2936. zhongan(num, id) {
  2937. this.quoteInsurance(num, id);
  2938. },
  2939. //人寿
  2940. renshou(num, id) {
  2941. this.quoteInsurance(num, id);
  2942. },
  2943. //恒邦
  2944. hengbang(num, id) {
  2945. this.quoteInsurance(num, id);
  2946. },
  2947. taikang(num, id) {
  2948. this.quoteInsurance(num, id);
  2949. },
  2950. chengtai(num, id) {
  2951. this.quoteInsurance(num, id);
  2952. },
  2953. //爬虫统一报价接口
  2954. async quoteInsurance(num, id) {
  2955. const companyId = uni.getStorageSync('companyId');
  2956. let ccidenttype = this.quotableCompanyList[num]
  2957. .cnName;
  2958. let namesimple = this.quotableCompanyList[num]
  2959. .namesimple;
  2960. let isTaxSource = this.quotableCompanyList[num].isTaxSource;
  2961. let params = {
  2962. orderNo: this.orderno,
  2963. companyId: id,
  2964. agreementId: this.quotableCompanyList[num].agreement[0].id,
  2965. kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
  2966. risks: this.riskList,
  2967. accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
  2968. .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
  2969. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2970. systemType: '2'
  2971. };
  2972. if (id = 'GPIC1000000') {
  2973. if (companyId) {
  2974. params.discount = this.quotableCompanyList[num]
  2975. .syAdjustRate;
  2976. params.lastCompanyId = this.subOrderId;
  2977. }
  2978. }
  2979. if (namesimple == "诚泰财险") {
  2980. if (this.subOrderId && this.quotableCompanyList[num].coefficient && this.quotableCompanyList[num]
  2981. .discount) {
  2982. params.coefficient = this.quotableCompanyList[num].coefficient;
  2983. params.discount = this.quotableCompanyList[num].discount;
  2984. params.lastCompanyId = this.subOrderId;
  2985. }
  2986. params.isInspect = this.isInspectchange;
  2987. }
  2988. try {
  2989. let res = await this.$http.post('/quote/quote',
  2990. params);
  2991. switch (namesimple) {
  2992. case '安盛天平':
  2993. case '恒邦财险':
  2994. case '诚泰财险':
  2995. case '中国人寿':
  2996. case '太平财险':
  2997. case '华农财险':
  2998. case '泰康财险':
  2999. if (res.code == '200') {
  3000. if (res.data.warnMessageList !=
  3001. null && res.data
  3002. .warnMessageList[0] != null &&
  3003. res.data
  3004. .warnMessageList[
  3005. 0] != "") {
  3006. this.quotableCompanyList[num]
  3007. .lastYearMsg = "";
  3008. let dat = res.data
  3009. .warnMessageList;
  3010. dat.map(ele => {
  3011. this.quotableCompanyList[
  3012. num]
  3013. .lastYearMsg +=
  3014. ele + '<br>';
  3015. })
  3016. }
  3017. const updatedItem = {
  3018. ...this.quotableCompanyList[num],
  3019. quoteCode: 200
  3020. };
  3021. this.quotableCompanyList.splice(num, 1, updatedItem);
  3022. this.quotableCompanyList[num].result =
  3023. res.data;
  3024. this.subOrderId = res.data.companyId;
  3025. this.CTcoefficientForm.initialProposalDiscount = res.data.initialProposalDiscount;
  3026. this.CTcoefficientForm.expectedDiscount = res.data.expectedDiscount;
  3027. this.CTcoefficientForm.pricingCoefficient = res.data.pricingCoefficient;
  3028. if (res.data.syAdjustRate) {
  3029. this.quotableCompanyList[num].syAdjustRate = res.data.syAdjustRate;
  3030. uni.setStorageSync('companyId', res.data.companyId);
  3031. }
  3032. } else {
  3033. const updatedItem = {
  3034. ...this.quotableCompanyList[num],
  3035. quoteCode: '3'
  3036. };
  3037. this.quotableCompanyList.splice(num, 1, updatedItem);
  3038. this.quotableCompanyList[num].msg =
  3039. res.msg;
  3040. }
  3041. break;
  3042. case '众安财险':
  3043. if (res.code == '200') {
  3044. if (res.data.warnMessageList !=
  3045. null && res.data
  3046. .warnMessageList[0] != null &&
  3047. res.data
  3048. .warnMessageList[
  3049. 0] != "") {
  3050. this.quotableCompanyList[num]
  3051. .lastYearMsg = "";
  3052. let dat = res.data
  3053. .warnMessageList;
  3054. dat.map(ele => {
  3055. this.quotableCompanyList[
  3056. num]
  3057. .lastYearMsg +=
  3058. ele + '<br>';
  3059. })
  3060. }
  3061. const updatedItem = {
  3062. ...this.quotableCompanyList[num],
  3063. quoteCode: 200
  3064. };
  3065. this.quotableCompanyList.splice(num, 1, updatedItem);
  3066. this.quotableCompanyList[num].result =
  3067. res.data;
  3068. this.subOrderId = res.data.companyId;
  3069. } else {
  3070. const updatedItem = {
  3071. ...this.quotableCompanyList[num],
  3072. quoteCode: '3'
  3073. };
  3074. this.quotableCompanyList.splice(num, 1, updatedItem);
  3075. this.quotableCompanyList[num].msg =
  3076. res.msg;
  3077. }
  3078. break;
  3079. default:
  3080. break;
  3081. }
  3082. } catch (error) {
  3083. const updatedItem = {
  3084. ...this.quotableCompanyList[num],
  3085. quoteCode: '3'
  3086. };
  3087. this.quotableCompanyList.splice(num, 1, updatedItem);
  3088. this.quotableCompanyList[num].msg = '接口请求超时,请重新尝试';
  3089. }
  3090. },
  3091. convertedValue(num) {
  3092. if (num < 10000) {
  3093. return num.toString();
  3094. } else if (num < 100000000) {
  3095. return (Math.floor(num / 10000 * 10) / 10) + '万';
  3096. } else {
  3097. return (Math.floor(num / 100000000 * 10) / 10) + '亿';
  3098. }
  3099. },
  3100. riskTypeEchoProcessing(code) {
  3101. this.riskList = [];
  3102. switch (code) {
  3103. case '0330':
  3104. this.riskList.push({
  3105. amount: 0,
  3106. endDate: this.jqendDate,
  3107. instantFlag: "0",
  3108. premium: 0,
  3109. riskCode: "0507",
  3110. startDate: this.jqstartDate,
  3111. })
  3112. break;
  3113. case '034001':
  3114. case '034002':
  3115. this.riskList.push({
  3116. amount: 0,
  3117. endDate: this.syendDate,
  3118. instantFlag: "0",
  3119. premium: 0,
  3120. riskCode: "0510",
  3121. startDate: this.systartDate,
  3122. })
  3123. break;
  3124. case '0330034002':
  3125. case '0330034001':
  3126. this.riskList.push({
  3127. amount: 0,
  3128. endDate: this.jqendDate,
  3129. instantFlag: "0",
  3130. premium: 0,
  3131. riskCode: "0507",
  3132. startDate: this.jqstartDate,
  3133. }, {
  3134. amount: 0,
  3135. endDate: this.syendDate,
  3136. instantFlag: "0",
  3137. premium: 0,
  3138. riskCode: "0510",
  3139. startDate: this.systartDate,
  3140. })
  3141. break;
  3142. }
  3143. },
  3144. //查看详情
  3145. querydetial(id, cnName) {
  3146. this.navigate({
  3147. url: '/pages/carInsure/quoteDetail',
  3148. success: (res) => {
  3149. res.eventChannel.emit("acceptData", {
  3150. companyId: id,
  3151. cnName: cnName,
  3152. quotableCompanyList: this.quotableCompanyList,
  3153. })
  3154. }
  3155. }, "navigateTo", true);
  3156. },
  3157. //报价单
  3158. bjdpreview(id) {
  3159. let pro = this.quotationType.themeCode;
  3160. if (pro == "QD") {
  3161. uni.navigateTo({
  3162. url: "/pages/orders/quotation?companyId=" + id
  3163. })
  3164. } else {
  3165. uni.navigateTo({
  3166. url: "/pages/orders/quotation1?companyId=" + id
  3167. })
  3168. }
  3169. },
  3170. //预核保信息
  3171. preUnderwriting(list) {
  3172. this.RSpreUnderwritingList = list;
  3173. this.preUnderwritingshow = true;
  3174. },
  3175. //上年信息
  3176. YearMsg(msg, title) {
  3177. let content = msg.replace(/<br>/g, "\r\n")
  3178. uni.showModal({
  3179. title: title + "上年信息",
  3180. content: content,
  3181. showCancel: false,
  3182. confirmText: "关闭"
  3183. })
  3184. },
  3185. // 显示报错信息
  3186. ErrorMsg(msg, title) {
  3187. uni.showModal({
  3188. title: title + "报价提示",
  3189. content: msg,
  3190. showCancel: false,
  3191. confirmText: "关闭"
  3192. })
  3193. },
  3194. discountErrorMessageMsg(msg, title) {
  3195. this.discountInfoPopup = true;
  3196. this.discountInfoPopupContent = msg.replace(/\n/g, '<br>');
  3197. this.discountInfoPopupTitle = title;
  3198. // let content = msg.replace(/\n/g, "\r\n")
  3199. // uni.showModal({
  3200. // title: title + "优惠信息",
  3201. // content: content,
  3202. // showCancel: false,
  3203. // confirmText: "关闭"
  3204. // })
  3205. },
  3206. //使用此时间
  3207. syncData(item) {
  3208. this.jqstartDate = item.startDateJq ? item
  3209. .startDateJq : this.jqstartDate
  3210. this.jqendDate = item.endDateJq ? item
  3211. .endDateJq : this.endDateJq
  3212. this.systartDate = item.startDateSy ? item
  3213. .startDateSy : this.systartDate
  3214. this.syendDate = item.endDateSy ? item
  3215. .endDateSy : this.syendDate
  3216. uni.showToast({
  3217. title: '时间已替换',
  3218. icon: 'none',
  3219. duration: 1000
  3220. });
  3221. },
  3222. //车船税类型选择
  3223. taxRelifFlagConfirm(val, name) {
  3224. this.vehicleAndVesselTaxForm[name] = val[0].value;
  3225. this.model[name] = val[0].label;
  3226. },
  3227. taxDocumentDateconfirm(e) {
  3228. this.vehicleAndVesselTaxForm.taxDocumentDate = e.year + '-' + e.month + '-' + e.day;
  3229. },
  3230. taxPaidAreaCodeconfirm(e) {
  3231. this.vehicleAndVesselTaxForm.taxPaidAreaCode = e.province.value;
  3232. this.model.taxPaidAreaCode = e.province.label;
  3233. },
  3234. //数据字典
  3235. async getDicType(type) {
  3236. let res = await this.$http.get('/sysDict/dictDetails/' + type);
  3237. this[type + "options"] = res.data.ddList;
  3238. },
  3239. jqstartconfirm(e) {
  3240. this.jqstartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
  3241. this.jqendDate = this.oneYearPast(this.jqstartDate)
  3242. },
  3243. //
  3244. jqendconfirm(e) {
  3245. this.jqendDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
  3246. },
  3247. systartconfirm(e) {
  3248. this.systartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
  3249. this.syendDate = this.oneYearPast(this.systartDate)
  3250. },
  3251. syendconfirm(e) {
  3252. this.syendDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
  3253. },
  3254. statusclick(value) {
  3255. this.SelectedPlanId = value;
  3256. let planObj = this.planDataExpansion.genericPlanList.find(item => item.schemeId == value);
  3257. if (planObj.kinds && planObj.schemeName == '自选方案') {
  3258. planObj.kinds.map(item => {
  3259. const itemamtList = item.amtList.map(val => {
  3260. return val.label
  3261. })
  3262. if (!itemamtList.includes('不投保')) {
  3263. item.amount = item.amtList[0].value;
  3264. item.amountDesc = item.amtList[0].label;
  3265. }
  3266. return item;
  3267. })
  3268. }
  3269. this.planDataExpansion.genericPlanInfo = planObj;
  3270. },
  3271. InsureGuideclick(item) {
  3272. this.insGuide = item.insGuide;
  3273. this.insGuideTitle = item.namesimple;
  3274. this.InsureGuidePopup = true;
  3275. },
  3276. // 可删
  3277. async accidentCategoryclick(item, items, index) {
  3278. this.accidentInsuranceCategoryList[index].checked = !this.accidentInsuranceCategoryList[index].checked;
  3279. if (this.accidentInsuranceCategoryList[index].checked) {
  3280. let res = await this.$http.get('/plt/scheme/optionalSchemeDriving?schemeId=' + this
  3281. .SelectedPlanId + '&seatNum=' + this.carInfo.seatCount)
  3282. switch (items.namesimple) {
  3283. case '安盛天平':
  3284. case '国任财险':
  3285. case '大家财险':
  3286. case '永诚财险':
  3287. case '恒邦财险':
  3288. case '诚泰财险':
  3289. case '中煤财险':
  3290. case '泰康财险':
  3291. case '渤海财险':
  3292. case '众安财险':
  3293. case '太平财险':
  3294. case '华农财险':
  3295. case '中国人寿':
  3296. if (res.data.length > 0) {
  3297. this[items.cnName + 'InsuranceData'] = res.data; //意外险list
  3298. this[items.cnName + 'accidentalDrivingVo'] = {
  3299. typeName: item.typeName,
  3300. ...res.data[0]
  3301. };
  3302. } else {
  3303. uni.showToast({
  3304. title: "驾意险为空",
  3305. icon: 'none',
  3306. });
  3307. }
  3308. break;
  3309. case '紫金财险':
  3310. this[items.cnName + 'InsuranceData'] = res.data; //意外险list
  3311. this[items.cnName + 'accidentalDrivingVo'] = [];
  3312. break;
  3313. }
  3314. } else {
  3315. if (items.namesimple == '紫金财险') {
  3316. this[items.cnName + 'InsuranceData'] = [];
  3317. this[items.cnName + 'accidentalDrivingVo'] = []
  3318. } else {
  3319. this[items.cnName + 'accidentalDrivingVo'] = {}
  3320. }
  3321. }
  3322. },
  3323. //查看方案
  3324. checkSelection(item) {
  3325. this.navigate({
  3326. url: '/pages/carInsure/checkOption',
  3327. success: (res) => {
  3328. res.eventChannel.emit("acceptData", {
  3329. item: item,
  3330. seatNum: this.carInfo.seatCount,
  3331. jqstartDate: this.jqstartDate,
  3332. jqendDate: this.jqendDate,
  3333. systartDate: this.systartDate,
  3334. syendDate: this.syendDate,
  3335. productName: this.productName,
  3336. productId: this.productId,
  3337. taxRelifFlag: this.model.taxRelifFlag,
  3338. })
  3339. }
  3340. }, "navigateTo", true);
  3341. },
  3342. //选择方案
  3343. async SchemeSelection(item) {
  3344. this.navigate({
  3345. url: '/pages/carInsure/chooseOption',
  3346. success: (res) => {
  3347. res.eventChannel.emit("acceptData", {
  3348. params: {
  3349. companyId: item.id,
  3350. productId: this.productId,
  3351. seatNum: this.carInfo.seatCount,
  3352. vehicleType: this.carInfo.cimodelclass,
  3353. energyType: this.carInfo.energyType,
  3354. carnature: this.carInfo.carnature,
  3355. },
  3356. namesimple: item.namesimple,
  3357. cnName: item.cnName,
  3358. jqstartDate: this.jqstartDate,
  3359. jqendDate: this.jqendDate,
  3360. systartDate: this.systartDate,
  3361. syendDate: this.syendDate,
  3362. productName: this.productName,
  3363. quotableCompanyList: this.quotableCompanyList,
  3364. identifyNumber: this.policyHolderInfo.identifyNumber,
  3365. taxpayerName: this.policyHolderInfo.name,
  3366. })
  3367. }
  3368. }, "navigateTo", true);
  3369. // let params = {
  3370. // companyId: item.id,
  3371. // productId: this.productId,
  3372. // seatNum: this.carInfo.seatCount,
  3373. // vehicleType: this.carInfo.cimodelclass,
  3374. // energyType: this.carInfo.energyType,
  3375. // carnature: this.carInfo.carnature,
  3376. // };
  3377. // let res = await this.$http.post('/plt/scheme/getCompanySchemeInfo', params);
  3378. // let res1 = await this.$http.post('/plt/scheme/getCompanyOptionalSchemeInfo', params);
  3379. // let typelist = [];
  3380. // this.planDataExpansion.id = item.id;
  3381. // this.planDataExpansion.namesimple = item.namesimple;
  3382. // this.planDataExpansion.cnName = item.cnName;
  3383. // if (res.code == '200' && res.data.length > 0) {
  3384. // this.planDataExpansion.genericPlanList = [...res.data];
  3385. // this.planDataExpansion.genericPlanInfo = res.data[0];
  3386. // this.SelectedPlanId = res.data[0].schemeId;
  3387. // } else {
  3388. // this.planDataExpansion.genericPlanList = [];
  3389. // this.planDataExpansion.genericPlanInfo = {};
  3390. // this.SelectedPlanId = "";
  3391. // }
  3392. // if (res1.code == '200') {
  3393. // this.planDataExpansion.genericPlanList = [...res.data, res1.data];
  3394. // res1.data.drivingTypeList.map(val => {
  3395. // if (val.children) {
  3396. // val.children.map(ele => {
  3397. // typelist.push(ele)
  3398. // return ele
  3399. // })
  3400. // }
  3401. // })
  3402. // } else {
  3403. // this.planDataExpansion.genericPlanList = [...res.data];
  3404. // }
  3405. // this.accidentInsuranceCategoryList = typelist;
  3406. // this.genericPlanPopup = true;
  3407. },
  3408. //即使投保时处理时间
  3409. datelyClick(value, name, startDate, endDate) {
  3410. this[name] = value;
  3411. if (value == 1) {
  3412. const date = new Date();
  3413. date.setHours(date.getHours() + 2);
  3414. date.setMinutes(0)
  3415. date.setSeconds(0)
  3416. this[startDate] = this.transformTime(date)
  3417. this[endDate] = this.oneYearPast(date);
  3418. } else {
  3419. this[startDate] = this.nextday();
  3420. this[endDate] = this.oneYearPast(this.jqstartDate);
  3421. }
  3422. },
  3423. //获取保险公司列表
  3424. commpanyList() {
  3425. let list = [];
  3426. this.quotableCompanyList.map(ele => {
  3427. ele["result"] = {};
  3428. ele["quoteCode"] = 0;
  3429. ele["checked"] = false;
  3430. ele["msg"] = "";
  3431. ele["lastYearMsg"] = "";
  3432. ele["agreementName"] = "";
  3433. ele["apiType"] = "";
  3434. ele["coefficient"] = "";
  3435. ele["discount"] = "";
  3436. ele["isInspect"] = false;
  3437. ele["syAdjustRate"] = "";
  3438. ele["selectShow"] = false;
  3439. ele['underwritingDescription'] = "";
  3440. ele['isComparableShow'] = false;
  3441. ele['isComparableshowHide'] = false;
  3442. ele['isComparableDisabled'] = false;
  3443. ele['insurancePlanInfo'] = null;
  3444. if (ele.editingDto) {
  3445. if (ele.editingDto.sumPermium) {
  3446. ele.result = ele.editingDto;
  3447. ele.insurancePlanInfo = {};
  3448. ele.insurancePlanInfo.drivingList = ele.editingDto.drivingList;
  3449. ele.insurancePlanInfo.kinds = ele.editingDto.kindList;
  3450. ele.quoteCode = 200;
  3451. list.push(1);
  3452. } else {
  3453. ele.msg = ele.editingDto.quoteErrMsg;
  3454. ele.insurancePlanInfo = {};
  3455. ele.insurancePlanInfo.drivingList = ele.editingDto.drivingList;
  3456. ele.insurancePlanInfo.kinds = ele.editingDto.kindList;
  3457. ele.quoteCode = 3;
  3458. }
  3459. }
  3460. return ele;
  3461. })
  3462. this.comparableQuantity = list.length;
  3463. },
  3464. priceComparisonChange(index, item) {
  3465. if (!item.isComparableDisabled) {
  3466. item.isComparableShow = !item.isComparableShow;
  3467. if (item.isComparableShow) {
  3468. this.selectedCount++;
  3469. } else {
  3470. this.selectedCount--;
  3471. }
  3472. this.updateCheckboxStates();
  3473. }
  3474. },
  3475. updateCheckboxStates() {
  3476. this.quotableCompanyList.forEach(item => {
  3477. item.isComparableDisabled = this.selectedCount >= 3 && !item.isComparableShow;
  3478. });
  3479. },
  3480. immediatelyClick(name) {
  3481. this.carInfo[name] = !this.carInfo[name];
  3482. if (name == 'transferFlag') {
  3483. if (this.carInfo[name]) {
  3484. this.carInfo.transferDate = this.carInfo.issueDate;
  3485. } else {
  3486. this.carInfo.transferDate = "";
  3487. }
  3488. }
  3489. },
  3490. toCarInfo() {
  3491. this.navigate({
  3492. url: '/pages/carInsure/Information',
  3493. success: (res) => {
  3494. res.eventChannel.emit(
  3495. "acceptData", {
  3496. carInfo: this
  3497. .carInfo,
  3498. ownerInfo: this
  3499. .ownerInfo,
  3500. policyHolderInfo: this
  3501. .policyHolderInfo,
  3502. insuredPersonInfo: this
  3503. .insuredPersonInfo,
  3504. riskList: this
  3505. .riskList,
  3506. kindList: this
  3507. .kindList,
  3508. carInfoPositiveList: this
  3509. .carInfoPositiveList, //车辆
  3510. ownerInfoPositiveList: this
  3511. .ownerInfoPositiveList, //车主
  3512. policyHolderInfoPositiveList: this
  3513. .policyHolderInfoPositiveList, //投保
  3514. insuredPersonInfoPositiveList: this
  3515. .insuredPersonInfoPositiveList, //被保人
  3516. productId: this.productId, //险种id
  3517. productName: this.productName, //险种名称
  3518. quoteno: this.quoteno, //报价号
  3519. })
  3520. }
  3521. }, "navigateTo", true);
  3522. },
  3523. //计算输入时间一年后的的前一天(输入的参数为字符串("2019-03-02")最终输出也为日期的字符串)
  3524. oneYearPast(time) {
  3525. var date = new Date(time);
  3526. date.setSeconds(date.getSeconds() - 1);
  3527. date.setFullYear(date.getFullYear() + 1); //一年后
  3528. date.setTime(date.getTime()); //一年后的前一天
  3529. var strYear = date.getFullYear();
  3530. var strDay = date.getDate();
  3531. var strMonth = date.getMonth() + 1;
  3532. var hh = date.getHours();
  3533. var minutes = date.getMinutes(); // 分
  3534. var Seconds = date.getSeconds();
  3535. if (hh < 10) {
  3536. hh = "0" + hh;
  3537. }
  3538. if (minutes < 10) {
  3539. minutes = "0" + minutes;
  3540. }
  3541. if (Seconds < 10) {
  3542. Seconds = "0" + Seconds;
  3543. }
  3544. if (strMonth < 10) {
  3545. strMonth = "0" + strMonth;
  3546. }
  3547. if (strDay < 10) {
  3548. strDay = "0" + strDay;
  3549. }
  3550. var datastr =
  3551. strYear + "-" + strMonth + "-" + strDay + " " + hh + ":" + minutes + ":" + Seconds;
  3552. return datastr;
  3553. },
  3554. //次日
  3555. nextday() {
  3556. var date = new Date();
  3557. date.setFullYear(date.getFullYear());
  3558. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  3559. var strYear = date.getFullYear();
  3560. var strDay = date.getDate();
  3561. var strMonth = date.getMonth() + 1;
  3562. var hh = date.getHours();
  3563. if (hh < 10) {
  3564. hh = "0" + hh;
  3565. }
  3566. if (strMonth < 10) {
  3567. strMonth = "0" + strMonth;
  3568. }
  3569. if (strDay < 10) {
  3570. strDay = "0" + strDay;
  3571. }
  3572. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  3573. return datastr;
  3574. },
  3575. //时间转换
  3576. transformTime(date) {
  3577. var d = new Date(date);
  3578. var strYear = d.getFullYear();
  3579. var strMonth = d.getMonth() + 1;
  3580. var strDay = d.getDate();
  3581. var hh = d.getHours();
  3582. var minutes = d.getMinutes(); // 分
  3583. var Seconds = d.getSeconds();
  3584. if (hh < 10) {
  3585. hh = "0" + hh;
  3586. }
  3587. if (minutes < 10) {
  3588. minutes = "0" + minutes;
  3589. }
  3590. if (Seconds < 10) {
  3591. Seconds = "0" + Seconds;
  3592. }
  3593. if (strMonth < 10) {
  3594. strMonth = "0" + strMonth;
  3595. }
  3596. if (strDay < 10) {
  3597. strDay = "0" + strDay;
  3598. }
  3599. var datetime =
  3600. strYear + "-" + strMonth + "-" + strDay + " " + hh + ":" + minutes + ":" + Seconds;
  3601. return datetime;
  3602. },
  3603. toChinesNum(num) {
  3604. let overWan = Math.floor(num / 10000);
  3605. let result = overWan + "万";
  3606. return result;
  3607. },
  3608. resubmitImageconfirm() {
  3609. this.uploadRetry();
  3610. this.resubmitDocumentsShow = false;
  3611. },
  3612. //影像预览
  3613. previewImage(e, type) {
  3614. this.previewImgs = this[type];
  3615. var current = e.currentTarget.dataset.src;
  3616. this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
  3617. },
  3618. //删除图片
  3619. delCheckImage(param, IdList, srcList) {
  3620. this[IdList].map((ele, index) => {
  3621. if (param.imageId === ele.imageId) {
  3622. this[IdList].splice(index, 1);
  3623. }
  3624. return ele;
  3625. });
  3626. this[srcList].map((ele, index) => {
  3627. if (param.imageId === ele.imageId) {
  3628. this[srcList].splice(index, 1);
  3629. }
  3630. return ele;
  3631. });
  3632. },
  3633. async chooseImage(type, imageIdList, imgurl) {
  3634. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  3635. count: 1,
  3636. sizeType: ['compressed']
  3637. });
  3638. chooseImageRes.tempFilePaths.map((ele, index) => {
  3639. uni.uploadFile({
  3640. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  3641. filePath: ele,
  3642. name: "multipartFile",
  3643. formData: {
  3644. 'type': 'image',
  3645. },
  3646. header: {
  3647. Authorization: this.token,
  3648. },
  3649. success: async (imgRes) => {
  3650. let data = JSON.parse(imgRes.data);
  3651. data.data.url = this.$base.baseUrl + data.data.url;
  3652. if (data.code == "200") {
  3653. if (this[imageIdList].some(v => v.imageType == type)) {
  3654. this[imageIdList].map(val => {
  3655. if (val.imageType == type) {
  3656. val.imageId = data.data.id;
  3657. }
  3658. })
  3659. } else {
  3660. this[imageIdList].push({
  3661. imageId: data.data.id,
  3662. imageType: type,
  3663. })
  3664. }
  3665. this[imgurl].push(data.data)
  3666. }
  3667. }
  3668. });
  3669. })
  3670. },
  3671. //补传影像
  3672. resubmitImage() {
  3673. this.resubmitDocumentsShow = true;
  3674. this.imageEcho1(this.quoteno) // 影像获取完毕
  3675. },
  3676. //提交核保
  3677. async uploadRetry() {
  3678. const mergedArray = [...this.carImageListId, ...this.ownerImageListId, ...this
  3679. .policyImageListId, ...this.insuredImageListId, ...this
  3680. .imgRelationshipid, ...this.carInspectionImage
  3681. ];
  3682. if (mergedArray.length > 0) {
  3683. let res = await this.$http.post('/ins/taskImage/uploadImages', {
  3684. imageList: mergedArray,
  3685. quoteNo: this.quoteno,
  3686. })
  3687. if (res.code == '200') {
  3688. uni.showToast({
  3689. title: "上传成功",
  3690. icon: 'none',
  3691. });
  3692. }
  3693. }
  3694. },
  3695. auditNextconfirm() {
  3696. setTimeout(async () => {
  3697. switch (this.insuranceCompanyName) {
  3698. case "永安财险":
  3699. let yaimage = await this.$http.post(
  3700. '/order/yongAn/submitImage', {
  3701. companyId: this.companyId
  3702. });
  3703. if (yaimage.code == '200') {
  3704. let yaaudit = await this.$http.post(
  3705. '/order/yongAn/audit', {
  3706. companyId: this.companyId,
  3707. jqappoint: "",
  3708. syappoint: ""
  3709. });
  3710. if (yaaudit.code == '200') {
  3711. this.underwriteTitle = '订单自核成功';
  3712. this.cancelText = '暂不缴费';
  3713. this.confirmText = '立即缴费';
  3714. this.underwriteShow = true;
  3715. } else {
  3716. this.underwriteTitle = '核保失败';
  3717. this.cancelText = '返回订单';
  3718. this.confirmText = '关闭';
  3719. this.underwriteMsg = yaaudit.msg;
  3720. this.underwriteShow = true;
  3721. }
  3722. } else {
  3723. this.underwriteTitle = '影像上传失败';
  3724. this.cancelText = '返回订单';
  3725. this.confirmText = '关闭';
  3726. this.underwriteMsg = yaimage.msg;
  3727. this.underwriteShow = true;
  3728. }
  3729. break;
  3730. case "中煤财险":
  3731. let zmapiImage = this.apiType == "2" ? "/insurance/crawler/submitImage" :
  3732. '/order/zhongMeiApi/submitImage';
  3733. let zmimage = await this.$http.post(
  3734. `${zmapiImage}`, {
  3735. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
  3736. });
  3737. if (zmimage.code == '200') {
  3738. let zmapiAudit = this.apiType == "2" ? "/insurance/crawler/audit" :
  3739. '/order/zhongMeiApi/audit';
  3740. let zmaudit = await this.$http.post(
  3741. `${zmapiAudit}`, {
  3742. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
  3743. jqappoint: "",
  3744. syappoint: ""
  3745. });
  3746. if (zmaudit.code == '200') {
  3747. this.underwriteTitle = '订单自核成功';
  3748. this.cancelText = '暂不缴费';
  3749. this.confirmText = '立即缴费';
  3750. this.underwriteShow = true;
  3751. } else {
  3752. this.underwriteTitle = '核保失败';
  3753. this.cancelText = '返回订单';
  3754. this.confirmText = '关闭';
  3755. this.underwriteMsg = zmaudit.msg;
  3756. this.underwriteShow = true;
  3757. }
  3758. } else {
  3759. this.underwriteTitle = '影像上传失败';
  3760. this.cancelText = '返回订单';
  3761. this.confirmText = '关闭';
  3762. this.underwriteMsg = zmimage.msg;
  3763. this.underwriteShow = true;
  3764. }
  3765. break;
  3766. case "永诚财险":
  3767. let ycimage = await this.$http.post(
  3768. '/api/yongCheng/uploadImage', {
  3769. companyId: this.companyId
  3770. });
  3771. if (ycimage.code == '200') {
  3772. let ycaudit = await this.$http.post(
  3773. '/api/yongCheng/audit', {
  3774. companyId: this.companyId,
  3775. });
  3776. if (ycaudit.code == '200') {
  3777. this.underwriteTitle = '订单自核成功';
  3778. this.cancelText = '暂不缴费';
  3779. this.confirmText = '立即缴费';
  3780. this.underwriteShow = true;
  3781. } else {
  3782. this.underwriteTitle = '核保失败';
  3783. this.cancelText = '返回订单';
  3784. this.confirmText = '关闭';
  3785. this.underwriteMsg = ycaudit.msg;
  3786. this.underwriteShow = true;
  3787. }
  3788. } else {
  3789. this.underwriteTitle = '影像上传失败';
  3790. this.cancelText = '返回订单';
  3791. this.confirmText = '关闭';
  3792. this.underwriteMsg = ycimage.msg;
  3793. this.underwriteShow = true;
  3794. }
  3795. break;
  3796. case "国任财险":
  3797. let grimage = await this.$http.post(
  3798. '/api/guoRen/uploadImage', {
  3799. companyId: this.companyId
  3800. });
  3801. if (grimage.code == '200') {
  3802. let graudit = await this.$http.post(
  3803. '/api/guoRen/audit', {
  3804. companyId: this.companyId,
  3805. });
  3806. if (graudit.code == '200') {
  3807. this.underwriteTitle = '订单自核成功';
  3808. this.cancelText = '暂不缴费';
  3809. this.confirmText = '立即缴费';
  3810. this.underwriteShow = true;
  3811. } else {
  3812. this.underwriteTitle = '核保失败';
  3813. this.cancelText = '返回订单';
  3814. this.confirmText = '关闭';
  3815. this.underwriteMsg = graudit.msg;
  3816. this.underwriteShow = true;
  3817. }
  3818. } else {
  3819. this.underwriteTitle = '影像上传失败';
  3820. this.cancelText = '返回订单';
  3821. this.confirmText = '关闭';
  3822. this.underwriteMsg = grimage.msg;
  3823. this.underwriteShow = true;
  3824. }
  3825. break;
  3826. case "大家财险":
  3827. let djapiImage = this.apiType == "2" ? "/insurance/crawler/submitImage" :
  3828. "/api/dajia/submitImage";
  3829. let djimage = await this.$http.post(
  3830. `${djapiImage}`, {
  3831. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
  3832. });
  3833. if (djimage.code == '200') {
  3834. let djapiAudit = this.apiType == "2" ? "/insurance/crawler/audit" :
  3835. '/api/dajia/audit';
  3836. let djaudit = await this.$http.post(
  3837. `${djapiAudit}`, {
  3838. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
  3839. });
  3840. if (djaudit.code == '200') {
  3841. this.underwriteTitle = '订单自核成功';
  3842. this.cancelText = '暂不缴费';
  3843. this.confirmText = '立即缴费';
  3844. this.underwriteShow = true;
  3845. } else {
  3846. this.underwriteTitle = '核保失败';
  3847. this.cancelText = '返回订单';
  3848. this.confirmText = '关闭';
  3849. this.underwriteMsg = djaudit.msg;
  3850. this.underwriteShow = true;
  3851. }
  3852. } else {
  3853. this.underwriteTitle = '影像上传失败';
  3854. this.cancelText = '返回订单';
  3855. this.confirmText = '关闭';
  3856. this.underwriteMsg = djimage.msg;
  3857. this.underwriteShow = true;
  3858. }
  3859. break;
  3860. case "紫金财险":
  3861. let zjimage = await this.$http.post(
  3862. '/order/zijin/submitImage', {
  3863. companyId: this.companyId
  3864. });
  3865. if (zjimage.code == '200') {
  3866. let zjaudit = await this.$http.post(
  3867. '/order/zijin/audit', {
  3868. companyId: this.companyId,
  3869. engageList: this.ziJinengageList,
  3870. });
  3871. if (zjaudit.code == '200') {
  3872. this.underwriteTitle = '订单自核成功';
  3873. this.cancelText = '暂不缴费';
  3874. this.confirmText = '立即缴费';
  3875. this.underwriteShow = true;
  3876. } else {
  3877. this.underwriteTitle = '核保失败';
  3878. this.cancelText = '返回订单';
  3879. this.confirmText = '关闭';
  3880. this.underwriteMsg = zjaudit.msg;
  3881. this.underwriteShow = true;
  3882. }
  3883. } else {
  3884. this.underwriteTitle = '影像上传失败';
  3885. this.cancelText = '返回订单';
  3886. this.confirmText = '关闭';
  3887. this.underwriteMsg = zjimage.msg;
  3888. this.underwriteShow = true;
  3889. }
  3890. break;
  3891. case "华泰财险":
  3892. let htapiImage = this.apiType == "2" ? "/insurance/crawler/submitImage" :
  3893. "/order/huaTaiApi/submitImage";
  3894. let htimage = await this.$http.post(
  3895. `${htapiImage}`, {
  3896. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
  3897. });
  3898. if (htimage.code == '200') {
  3899. let htapiAudit = this.apiType == "2" ? "/insurance/crawler/audit" :
  3900. '/order/huaTaiApi/audit';
  3901. let htaudit = await this.$http.post(
  3902. `${htapiAudit}`, {
  3903. [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
  3904. engageList: this.huaTaiengageList,
  3905. });
  3906. if (htaudit.code == '200') {
  3907. this.underwriteTitle = '订单自核成功';
  3908. this.cancelText = '暂不缴费';
  3909. this.confirmText = '立即缴费';
  3910. this.underwriteShow = true;
  3911. } else {
  3912. this.underwriteTitle = '核保失败';
  3913. this.cancelText = '返回订单';
  3914. this.confirmText = '关闭';
  3915. this.underwriteMsg = htaudit.msg;
  3916. this.underwriteShow = true;
  3917. }
  3918. } else {
  3919. this.underwriteTitle = '影像上传失败';
  3920. this.cancelText = '返回订单';
  3921. this.confirmText = '关闭';
  3922. this.underwriteMsg = htimage.msg;
  3923. this.underwriteShow = true;
  3924. }
  3925. break;
  3926. case "渤海财险":
  3927. let bhimage = await this.$http.post(
  3928. '/order/boHaiApi/submitImage', {
  3929. companyId: this.companyId
  3930. });
  3931. if (bhimage.code == '200') {
  3932. let bhaudit = await this.$http.post(
  3933. '/order/boHaiApi/audit', {
  3934. companyId: this.companyId,
  3935. jqappoint: "",
  3936. syappoint: ""
  3937. });
  3938. if (bhaudit.code == '200') {
  3939. this.underwriteTitle = '订单自核成功';
  3940. this.cancelText = '暂不缴费';
  3941. this.confirmText = '立即缴费';
  3942. this.underwriteShow = true;
  3943. } else {
  3944. this.underwriteTitle = '核保失败';
  3945. this.cancelText = '返回订单';
  3946. this.confirmText = '关闭';
  3947. this.underwriteMsg = bhaudit.msg;
  3948. this.underwriteShow = true;
  3949. }
  3950. } else {
  3951. this.underwriteTitle = '影像上传失败';
  3952. this.cancelText = '返回订单';
  3953. this.confirmText = '关闭';
  3954. this.underwriteMsg = bhimage.msg;
  3955. this.underwriteShow = true;
  3956. }
  3957. break;
  3958. case "恒邦财险":
  3959. case "诚泰财险":
  3960. case "安盛天平":
  3961. case "众安财险":
  3962. case "中国人寿":
  3963. case "太平财险":
  3964. case "华农财险":
  3965. case "泰康财险":
  3966. let pythonimage = await this.$http.post(
  3967. '/insurance/crawler/submitImage', {
  3968. subOrderNo: this.companyId
  3969. });
  3970. if (pythonimage.code == '200') {
  3971. let pythonaudit = await this.$http.post(
  3972. '/insurance/crawler/audit', {
  3973. subOrderNo: this.companyId,
  3974. });
  3975. if (pythonaudit.code == '200') {
  3976. this.underwriteTitle = '订单自核成功';
  3977. this.cancelText = '暂不缴费';
  3978. this.confirmText = '立即缴费';
  3979. this.underwriteShow = true;
  3980. } else {
  3981. this.underwriteTitle = '核保失败';
  3982. this.cancelText = '返回订单';
  3983. this.confirmText = '关闭';
  3984. this.underwriteMsg = pythonaudit.msg;
  3985. this.underwriteShow = true;
  3986. }
  3987. } else {
  3988. this.underwriteTitle = '影像上传失败';
  3989. this.cancelText = '返回订单';
  3990. this.confirmText = '关闭';
  3991. this.underwriteMsg = pythonimage.msg;
  3992. this.underwriteShow = true;
  3993. }
  3994. break;
  3995. }
  3996. this.auditNextShow = false;
  3997. }, 1000)
  3998. },
  3999. // 上传影像并提交核保
  4000. async submitUnderwriting(id, apiType, name, item) {
  4001. console.log(1111, item)
  4002. this.companyId = id;
  4003. this.apiType = apiType;
  4004. this.insuranceCompanyName = name;
  4005. this.$http.post(`/equity/createEquityOrder?companyId=${id}`).then(res => {
  4006. if(res.code === 200) {
  4007. if(item.editingDto.equityType === 1 || item.editingDto.equityType === 0) {
  4008. this.auditNextShow = true;
  4009. } else {
  4010. this.$refs.popup.open()
  4011. }
  4012. }
  4013. })
  4014. },
  4015. closePopup() {
  4016. this.$refs.popup.close()
  4017. },
  4018. handleAcceptCustomer(type) {
  4019. if(type === 1) {
  4020. let params = {
  4021. option: [
  4022. {
  4023. type: '车主', // 2
  4024. name: this.ownerInfo.name,
  4025. mobile: this.ownerInfo.mobile,
  4026. identifyNumber: this.ownerInfo.identifyNumber,
  4027. },
  4028. {
  4029. type: '投保人', // 0
  4030. name: this.policyHolderInfo.name,
  4031. mobile: this.policyHolderInfo.mobile,
  4032. identifyNumber: this.policyHolderInfo.identifyNumber
  4033. },
  4034. {
  4035. type: '被保人', // 1
  4036. name: this.insuredPersonInfo.name,
  4037. mobile: this.insuredPersonInfo.mobile,
  4038. identifyNumber: this.insuredPersonInfo.identifyNumber
  4039. },
  4040. ],
  4041. companyId: this.companyId
  4042. }
  4043. uni.navigateTo({
  4044. url: `/pages/carInsure/customerInterest?params=${JSON.stringify(params)}`,
  4045. })
  4046. }
  4047. this.$http.post(`/equity/saveEquityType?companyId=${this.companyId}&type=${type}`).then(res => {
  4048. this.closePopup()
  4049. })
  4050. },
  4051. //核保弹窗关闭事件
  4052. underwritecancel() {
  4053. this.navigate({
  4054. url: "/pages/orders/orders"
  4055. }, "switchTab",
  4056. true);
  4057. },
  4058. //核保弹窗确认事件
  4059. underwriteconfirm() {
  4060. switch (this.underwriteTitle) {
  4061. case '订单自核成功':
  4062. if (this.quotationType.themeCode == 'QD') {
  4063. uni.navigateTo({
  4064. url: "/pages/orders/paymentCode?companyId=" +
  4065. this
  4066. .companyId + '&apiType=' + this.apiType,
  4067. })
  4068. } else {
  4069. uni.navigateTo({
  4070. url: "/pages/orders/paymentCode1?companyId=" +
  4071. this
  4072. .companyId + '&apiType=' + this.apiType,
  4073. })
  4074. }
  4075. break;
  4076. case '核保失败':
  4077. break;
  4078. case '影像上传失败':
  4079. break;
  4080. }
  4081. },
  4082. }
  4083. }
  4084. </script>
  4085. <style lang="scss" scoped>
  4086. @import '@/style/mixin.scss';
  4087. .page {
  4088. background: #F8FAFE;
  4089. padding: 16px 16px 100px 16px;
  4090. }
  4091. .sum {
  4092. color: #0052FF;
  4093. font-size: 14px;
  4094. font-weight: bold;
  4095. }
  4096. .scroll-Y {
  4097. height: 600px;
  4098. }
  4099. .discountInfoscroll {
  4100. height: 300px;
  4101. }
  4102. .scroll-view-item {
  4103. height: 300rpx;
  4104. line-height: 300rpx;
  4105. text-align: center;
  4106. font-size: 36rpx;
  4107. }
  4108. .modelformcss {
  4109. padding: 5px 15px;
  4110. }
  4111. .PlanPopup-btn {
  4112. width: 100%;
  4113. height: 48px;
  4114. background: #FFFFFF;
  4115. box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.05);
  4116. }
  4117. .circle {
  4118. width: 16px;
  4119. height: 16px;
  4120. border-radius: 50%;
  4121. border: 2px solid #0052FF;
  4122. }
  4123. .circle:after {
  4124. content: "✔";
  4125. /* 对勾符号 */
  4126. font-size: 10px;
  4127. font-weight: bold;
  4128. /* 根据需要调整大小 */
  4129. color: #0052FF;
  4130. }
  4131. .policyInfo {
  4132. .tagHeader {
  4133. font-family: Source Han Sans SC, Source Han Sans SC;
  4134. text {
  4135. position: relative;
  4136. font-weight: bold;
  4137. font-size: 13px;
  4138. color: #333;
  4139. }
  4140. .tag {
  4141. position: absolute;
  4142. left: 0;
  4143. bottom: -1px;
  4144. width: 50%;
  4145. height: 5px;
  4146. background: linear-gradient(90deg, #0874FF 0%, rgba(8, 116, 255, 0) 100%);
  4147. border-radius: 6px;
  4148. }
  4149. }
  4150. .accident {
  4151. width: 75%;
  4152. .diss {
  4153. border-bottom: 1px solid #E3E9F8;
  4154. .boss {
  4155. border-right: 1px solid #E3E9F8;
  4156. text-align: center;
  4157. padding: 5px 3px;
  4158. }
  4159. }
  4160. }
  4161. .right {
  4162. width: 25%;
  4163. border-right: 1px solid #E3E9F8;
  4164. border-bottom: 1px solid #E3E9F8;
  4165. padding: 5px 3px;
  4166. }
  4167. }
  4168. .selectedCoverage {
  4169. background-color: #FFDFCE;
  4170. width: 100%;
  4171. border-radius: 22px;
  4172. position: relative;
  4173. padding: 7px 8px;
  4174. .title1 {
  4175. color: #232832;
  4176. font-size: 15px;
  4177. font-weight: bold;
  4178. }
  4179. .title-before {
  4180. position: absolute;
  4181. width: 3px;
  4182. height: 14px;
  4183. background: #FF5600;
  4184. left: 0;
  4185. top: 50%;
  4186. transform: translateY(-50%);
  4187. }
  4188. .product {
  4189. width: 65px;
  4190. background: #FFFFFF;
  4191. border-radius: 16px;
  4192. border: 1px solid #FF5600;
  4193. padding: 2px 6px;
  4194. box-sizing: border-box;
  4195. }
  4196. }
  4197. .Plancontent {
  4198. padding: 8px;
  4199. .title {
  4200. color: #232832;
  4201. font-size: 15px;
  4202. font-weight: bold;
  4203. ::before {
  4204. content: "丨";
  4205. width: 10px;
  4206. height: 10px;
  4207. color: #0052FF;
  4208. }
  4209. }
  4210. .title-before {}
  4211. .Accident {
  4212. width: 100%;
  4213. border: 1px solid #0874FF;
  4214. border-radius: 6px;
  4215. overflow: hidden;
  4216. .head {
  4217. width: 20%;
  4218. height: 40px;
  4219. background-color: #0874FF;
  4220. color: #FFFFFF;
  4221. &:nth-child(1) {
  4222. width: 60%;
  4223. }
  4224. }
  4225. .tr {
  4226. width: 20%;
  4227. height: 60px;
  4228. color: #232832;
  4229. border: 1rpx solid #0874FF;
  4230. font-size: 24rpx;
  4231. color: #232832;
  4232. &:nth-child(1) {
  4233. width: 60%;
  4234. background: rgba(8, 116, 255, 0.05);
  4235. }
  4236. &:nth-child(3) {
  4237. background: rgba(8, 116, 255, 0.05);
  4238. }
  4239. }
  4240. }
  4241. .insuranceType {
  4242. margin: 5px 10px;
  4243. background: #F2F6FF;
  4244. border-radius: 10px;
  4245. }
  4246. .terms {
  4247. color: #FFFFFF;
  4248. background: linear-gradient(90deg, #FF4D4D 0%, #FF784D 100%);
  4249. border-radius: 4px 4px 4px 4px;
  4250. }
  4251. }
  4252. .quotePlan {
  4253. background: #FFFFFF;
  4254. box-shadow: 0px 4px 10px 0px #DAE3F4;
  4255. border-radius: 6px;
  4256. }
  4257. .status-data {
  4258. width: auto;
  4259. padding: 2px 8px;
  4260. margin-left: 10px;
  4261. font-size: 12px;
  4262. border: 1px solid #CDCDCD;
  4263. cursor: pointer;
  4264. text-align: center;
  4265. line-height: 25px;
  4266. }
  4267. .active {
  4268. position: relative;
  4269. background: rgba(0, 82, 255, 0.1);
  4270. color: #0052FF;
  4271. border: 1px solid #0052FF !important;
  4272. font-weight: 700;
  4273. }
  4274. .active::before {
  4275. content: "";
  4276. position: absolute;
  4277. top: 0;
  4278. left: 0;
  4279. width: 10px;
  4280. height: 10px;
  4281. background-image: url("/static/image/car-insure/before.png");
  4282. background-size: cover;
  4283. }
  4284. .active1 {
  4285. position: relative;
  4286. background: rgba(255, 86, 0, 0.1);
  4287. color: #FF5600;
  4288. border: 1px solid #FF5600;
  4289. font-weight: 700;
  4290. }
  4291. .active1::before {
  4292. content: "";
  4293. position: absolute;
  4294. top: 0;
  4295. left: 0;
  4296. width: 10px;
  4297. height: 10px;
  4298. background-image: url("/static/image/car-insure/before1.png");
  4299. background-size: cover;
  4300. }
  4301. .car-header {
  4302. width: 100%;
  4303. height: auto;
  4304. background: linear-gradient(0, #FFFFFF 0%, rgba(241, 246, 255, 0.8) 100%);
  4305. box-shadow: 0px 4px 10px 0px rgba(158, 173, 229, 0.1);
  4306. border-radius: 6px;
  4307. padding: 8px 15px;
  4308. position: relative;
  4309. .head-name {
  4310. margin-left: 10px;
  4311. &>text {
  4312. font-weight: bold;
  4313. font-size: 14px;
  4314. color: #232832;
  4315. }
  4316. .name1 text {
  4317. font-size: 14px;
  4318. color: #333333;
  4319. }
  4320. }
  4321. .carJump {
  4322. position: absolute;
  4323. top: 5px;
  4324. right: 10px;
  4325. font-size: 14px;
  4326. color: #0052FF;
  4327. }
  4328. }
  4329. /* 报价公司Start */
  4330. .quoteCompany {
  4331. box-sizing: border-box;
  4332. /* background:#FFFFFF; */
  4333. position: relative;
  4334. border-radius: 20upx;
  4335. }
  4336. .quoteCompany .header {
  4337. height: 80upx;
  4338. }
  4339. .quoteCompany .header .title {
  4340. font-size: 30upx;
  4341. font-weight: bold;
  4342. }
  4343. .quoteCompany .header .title .icon {
  4344. color: rgba($themeColor, 0.6);
  4345. margin-left: 15upx;
  4346. }
  4347. .quoteCompanyItem {
  4348. margin-bottom: 20upx;
  4349. background: #FFFFFF;
  4350. border-radius: 6px;
  4351. box-shadow: 0px 4px 10px 0px #DAE3F4;
  4352. box-sizing: border-box;
  4353. cursor: pointer;
  4354. .selectedPlanBackground {
  4355. background: linear-gradient(180deg, #DFF1FF 0%, #FFFFFF 100%);
  4356. box-shadow: 0px 2px 5px 0px #DAE3F4;
  4357. border-radius: 0px 0px 6px 6px;
  4358. }
  4359. >.headers {
  4360. height: 30px;
  4361. background-image: url('../../static/image/car-insure/weixuanfangan.png');
  4362. background-position: 0% 0%;
  4363. background-size: 100% 100%;
  4364. background-repeat: no-repeat;
  4365. .logo {
  4366. width: 30%;
  4367. image {
  4368. width: 20px;
  4369. height: 20px;
  4370. margin-right: 10px;
  4371. }
  4372. .companyName {
  4373. font-size: 14px;
  4374. font-weight: bold;
  4375. color: #fff;
  4376. }
  4377. }
  4378. }
  4379. }
  4380. .quoteCompanyItem .top {
  4381. position: relative;
  4382. padding: 8px;
  4383. }
  4384. .quoteCompanyItem .top .companyIcon {
  4385. border-radius: 6px 6px 0 0;
  4386. padding: 0 0 4px;
  4387. }
  4388. .insuranceGuide {
  4389. background: #FD9159;
  4390. border-radius: 2px;
  4391. font-weight: bold;
  4392. font-size: 12px;
  4393. color: #fff;
  4394. padding: 0px 8px;
  4395. margin-left: 5%;
  4396. }
  4397. .planDetails {
  4398. width: 100%;
  4399. height: auto;
  4400. background: #F9F9F9;
  4401. border-radius: 6px;
  4402. padding: 6px;
  4403. .headers {
  4404. >image {
  4405. width: 14px;
  4406. height: 14px;
  4407. }
  4408. >text {
  4409. font-size: 12px;
  4410. color: #4B6FBA;
  4411. margin-left: 10px;
  4412. }
  4413. }
  4414. }
  4415. .content {
  4416. padding: 0 8px;
  4417. margin-bottom: 5px;
  4418. }
  4419. .quoteCompanyItem .top .Premium {
  4420. padding: 10px 8px;
  4421. border-radius: 4px;
  4422. .price {
  4423. font-size: 12px;
  4424. color: #FF5600;
  4425. text {
  4426. margin-right: 5px;
  4427. }
  4428. }
  4429. .time {
  4430. font-size: 12px;
  4431. color: #2D4D89;
  4432. >text {
  4433. margin-right: 5px;
  4434. }
  4435. }
  4436. }
  4437. .quoteCompanyItem .top .quotebtn {
  4438. width: 100%;
  4439. height: auto;
  4440. >view {
  4441. width: 50%;
  4442. font-size: 14px;
  4443. padding: 4px 0;
  4444. }
  4445. }
  4446. .lastyear {
  4447. view {
  4448. font-size: 12px;
  4449. }
  4450. .left {
  4451. border: 1px solid #229805;
  4452. border-radius: 2px;
  4453. padding: 1px 6px;
  4454. color: #229805;
  4455. }
  4456. .right {
  4457. border-radius: 2px;
  4458. padding: 1px 6px;
  4459. border: 1px solid #FF5600;
  4460. color: #FF5600;
  4461. }
  4462. }
  4463. .quoteCompanyItem .top .totalMoney {
  4464. font-size: 40upx;
  4465. font-weight: bold;
  4466. color: $themeColor;
  4467. position: absolute;
  4468. top: -15upx;
  4469. right: 0;
  4470. }
  4471. .quoteCompanyItem .top .tip {
  4472. font-size: 26upx;
  4473. font-weight: bold;
  4474. color: #999;
  4475. position: absolute;
  4476. top: 0upx;
  4477. right: 0;
  4478. }
  4479. .sum {
  4480. color: #0052FF;
  4481. font-size: 14px;
  4482. font-weight: bold;
  4483. }
  4484. .quoteFailed {
  4485. background: rgba(255, 77, 77, 0.1);
  4486. border-radius: 2px;
  4487. color: #FF4D4D;
  4488. font-size: 12px;
  4489. font-weight: bold;
  4490. padding: 2px 8px;
  4491. }
  4492. .quoteCompanyItem .top .signs {
  4493. width: 500upx;
  4494. overflow: hidden;
  4495. text-overflow: ellipsis;
  4496. white-space: nowrap;
  4497. }
  4498. .quoteCompanyItem .top .sign {
  4499. height: 40upx;
  4500. margin: 0upx 10upx;
  4501. background: rgba($themeColor, 0.6);
  4502. color: $themeColor;
  4503. font-size: 20upx;
  4504. margin-right: 10upx;
  4505. border-radius: 6upx;
  4506. padding: 0 2px;
  4507. line-height: 40upx;
  4508. }
  4509. .jqsign {
  4510. height: 20px;
  4511. background: rgba(255, 177, 177, 0.55);
  4512. color: #fd0a0a;
  4513. font-size: 20upx;
  4514. border-radius: 6upx;
  4515. padding: 0 10px;
  4516. box-sizing: border-box;
  4517. }
  4518. .quoteCompanyItem .body {
  4519. padding: 20upx 0;
  4520. flex-wrap: wrap;
  4521. }
  4522. .quoteCompanyItem .body>view {
  4523. flex-shrink: 0;
  4524. width: 50%;
  4525. overflow: hidden;
  4526. text-overflow: ellipsis;
  4527. white-space: nowrap;
  4528. }
  4529. .quoteCompanyItem .body .icon-exchange {
  4530. margin-right: 15upx;
  4531. display: inline-block;
  4532. }
  4533. /* 报价公司End */
  4534. /* 整个页面的统一样式 End */
  4535. .plan-ins-title {
  4536. color: #FF5600;
  4537. font-size: 15px;
  4538. font-weight: bold;
  4539. padding: 8px;
  4540. }
  4541. .immediately {
  4542. padding: 19rpx 15px;
  4543. .common-ins-cell:last-child {
  4544. border-bottom: none;
  4545. }
  4546. }
  4547. .common-title {
  4548. font-size: 32upx;
  4549. font-weight: bold;
  4550. }
  4551. .common-ins-cell {
  4552. font-size: 30upx;
  4553. padding: 0upx 30upx;
  4554. height: 90upx;
  4555. border-bottom: 1px solid #eee;
  4556. }
  4557. /* 交强险和商业险弹出框Start */
  4558. .popup-content {
  4559. position: relative;
  4560. }
  4561. .popHeader {
  4562. box-sizing: border-box;
  4563. font-size: 32upx;
  4564. font-weight: bold;
  4565. height: 120upx;
  4566. border-bottom: 1px solid #eee;
  4567. }
  4568. .popup-content .popContent {
  4569. padding: 0upx 30upx;
  4570. height: 620upx;
  4571. box-sizing: border-box;
  4572. }
  4573. .popup-content .popContent .popContentTitle {
  4574. font-weight: bold;
  4575. font-size: 32upx;
  4576. margin: 20upx 0upx 5upx 0upx;
  4577. }
  4578. .popup-content .popContent .amtSingle {
  4579. width: 22%;
  4580. box-sizing: border-box;
  4581. display: inline-block;
  4582. text-align: center;
  4583. vertical-align: middle;
  4584. border: 1px solid #eee;
  4585. margin: 0 15rpx 15rpx 0;
  4586. }
  4587. .popup-content .popBottom {
  4588. margin: 30upx 30upx 0 30upx;
  4589. padding-bottom: 30upx;
  4590. }
  4591. /* 交强险和商业险弹出框End */
  4592. .drivingSelection {
  4593. padding: 8px;
  4594. >view {
  4595. padding: 4px 8px;
  4596. }
  4597. .header {
  4598. width: 100%;
  4599. background: rgba(255, 86, 0, 0.05);
  4600. border-radius: 2px;
  4601. margin-bottom: 4px;
  4602. text {
  4603. font-size: 15px;
  4604. color: #FF5600;
  4605. font-weight: bold;
  4606. }
  4607. }
  4608. }
  4609. .footer-btn {
  4610. position: fixed;
  4611. bottom: 0;
  4612. left: 0;
  4613. width: 100%;
  4614. height: 62px;
  4615. background: #FFFFFF;
  4616. box-shadow: 0px -4px 10px 0px #DAE3F4;
  4617. border-radius: 0px 0px 0px 0px;
  4618. padding: 12px 16px;
  4619. z-index: 99;
  4620. }
  4621. .priceComparison {
  4622. width: 20%;
  4623. background: linear-gradient(180deg, #FA6464 0%, #E53F3F 100%);
  4624. box-shadow: 0px 2px 5px 0px rgba(232, 66, 66, 0.3);
  4625. border-radius: 4px;
  4626. border: 1px solid #FF9A9A;
  4627. }
  4628. .ZJcheckboxGroup {
  4629. .headers {
  4630. min-height: 73px;
  4631. background-image: url('../../static/image/car-insure/teyueheader.png');
  4632. background-position: 0% 0%;
  4633. background-size: 100% 100%;
  4634. background-repeat: no-repeat;
  4635. padding: 10px 20px;
  4636. border-bottom: 1px solid #EEEEEE;
  4637. .title {
  4638. font-weight: bold;
  4639. font-size: 16px;
  4640. color: #333333;
  4641. }
  4642. }
  4643. .hint {
  4644. width: 90%;
  4645. margin: auto;
  4646. background: #DFF9FF;
  4647. border-radius: 2px;
  4648. padding: 3px 8px;
  4649. image {
  4650. width: 16px;
  4651. height: 16px;
  4652. margin-right: 10px;
  4653. }
  4654. text {
  4655. font-size: 12px;
  4656. color: #18AAE8;
  4657. }
  4658. }
  4659. .scolcentent {
  4660. max-height: 450px;
  4661. padding-bottom: 40px;
  4662. padding: 0 10px;
  4663. }
  4664. .operateBtn {
  4665. position: absolute;
  4666. bottom: 0;
  4667. left: 0;
  4668. right: 0;
  4669. font-weight: bold;
  4670. font-size: 16px;
  4671. .cancel {
  4672. width: 50%;
  4673. height: 46px;
  4674. color: #A7AFC3;
  4675. background-color: #F3F5F9;
  4676. }
  4677. .confirm {
  4678. width: 50%;
  4679. height: 46px;
  4680. color: #fff;
  4681. background: linear-gradient(90deg, #17A9E8 0%, #4DD4FF 100%);
  4682. ;
  4683. }
  4684. }
  4685. .operateBtn1 {
  4686. position: absolute;
  4687. bottom: 0;
  4688. left: 0;
  4689. right: 0;
  4690. font-weight: bold;
  4691. font-size: 16px;
  4692. padding: 10px;
  4693. .cancel {
  4694. width: 40%;
  4695. height: 46px;
  4696. background: #F3F5F9;
  4697. border-radius: 4px;
  4698. font-size: 16px;
  4699. color: #A7AFC3;
  4700. margin-right: 30px;
  4701. }
  4702. .confirm {
  4703. width: 40%;
  4704. height: 46px;
  4705. background: linear-gradient(90deg, #0153FF 0%, #0D89FF 100%);
  4706. border-radius: 4px;
  4707. font-size: 16px;
  4708. color: #fff;
  4709. }
  4710. }
  4711. }
  4712. /deep/ {
  4713. .jq {
  4714. .u-th {
  4715. background: #F6F7FE;
  4716. padding: 5px 10px !important;
  4717. }
  4718. .u-td {
  4719. padding: 5px 10px !important;
  4720. }
  4721. }
  4722. .sy {
  4723. .u-th {
  4724. background: #F6F7FE;
  4725. }
  4726. }
  4727. .u-tabs__wrapper__nav__line {
  4728. left: 2400rpx;
  4729. height: 4rpx !important;
  4730. border-radius: 4rpx;
  4731. }
  4732. }
  4733. .uni-uploader__file {
  4734. position: relative;
  4735. }
  4736. .uni-uploader__files {
  4737. position: relative;
  4738. }
  4739. .delImgIcon {
  4740. width: 40upx;
  4741. height: 40upx;
  4742. position: absolute;
  4743. right: 4px;
  4744. bottom: 4px;
  4745. color: #FFFFFF;
  4746. }
  4747. .imgtitle {
  4748. background: #4682F9;
  4749. border-radius: 0px 2px 2px 0px;
  4750. padding: 1px 2px;
  4751. position: absolute;
  4752. left: 0upx;
  4753. top: 2px;
  4754. color: #FFFFFF;
  4755. font-size: 20rpx;
  4756. }
  4757. .popup{
  4758. width: 100%;
  4759. height: 410rpx;
  4760. background-color: #ffffff;
  4761. .title{
  4762. padding: 27rpx 0;
  4763. color: #333333;
  4764. font-size: 34rpx;
  4765. position: relative;
  4766. .close{
  4767. position: absolute;
  4768. top: 20rpx;
  4769. right: 20rpx;
  4770. }
  4771. }
  4772. .list{
  4773. height: calc(100% - 100rpx);
  4774. overflow-y: auto;
  4775. .radio{
  4776. padding: 28rpx 20px;
  4777. border-top: 1px solid #eeeeee;
  4778. }
  4779. }
  4780. }
  4781. </style>