123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911 |
- <template>
- <view :style="getHeight" style="background-color: #F5F5F5;">
- <!-- 公共组件-每个页面必须引入 -->
- <public-module></public-module>
- <!-- 头部 -->
- <view class="carInfo w-100 p-3 box-sizing">
- <view class="d-flex mb-1">
- <view class="topLeft d-flex flex-1 flex-column">
- <view class="license">{{this.licenseNo}} | {{carInfo.modelcname}}</view>
- <view class="totalMoney">¥{{sumPermium}}</view>
- </view>
- <view class="topRight d-flex a-center j-center">
- <image :src="icon" mode="aspectFit" lazy-load></image>
- </view>
- </view>
- <view class="other d-flex j-sb px-3">
- <view class="d-flex flex-1 a-center">
- <view class="privilege d-flex a-center j-center flex-shrink px-2">特权</view>
- <view class="content">每月自动查违章,无违章领奖励</view>
- </view>
- <view class="flex-shrink icon iconfont icon-youjiantou d-flex a-center font-sm"></view>
- </view>
- </view>
- <view>
- <view class="welfare">
- <view class="header d-flex a-center j-sb">
- <view class="title">投保享福利</view>
- <view class="icon iconfont icon-youjiantou d-flex a-center" style="font-size: 24upx;"></view>
- </view>
- <view class="body d-flex">
- <view class="welfareItem">
- <view class="name">2次体检服务</view>
- <view class="content">八项检查:血常规,尿常规,心电图等</view>
- </view>
- <view class="welfareItem">
- <view class="name">2次体检服务</view>
- <view class="content">八项检查:血常规,尿常规,心电图等</view>
- </view>
- </view>
- </view>
- <view class="quotePlan">
- <view class="header d-flex a-center j-sb">
- <view class="title">报价方案</view>
- <template v-if="((orderstatus == 0) ||(orderstatus == 3)) && (!!token)">
- <view class="adjustPlan" @tap="toInsureItems">调整方案</view>
- </template>
- </view>
- <view class="body">
- <view class="insurance">
- <block v-for="(item,index) in riskList" :key="index">
- <template v-if="item.riskCode=='0507'">
- <view class="row d-flex a-center j-sb">
- <view class="d-flex a-center">交强险 <view class="date">起保日期:{{item.startDate}}</view>
- </view>
- <view>¥{{jqpremium}}</view>
- </view>
- <view class="row d-flex a-center j-sb">
- <view class="d-flex a-center">车船税</view>
- <view>¥{{taxAmount}}</view>
- </view>
- <view class="row d-flex a-center j-sb" v-if="jypremium">
- <view class="d-flex a-center">驾意险</view>
- <view>¥{{jypremium}}</view>
- </view>
- </template>
- </block>
- <block v-for="(item,index) in riskList" :key="index">
- <template v-if="item.riskCode == '0510'">
- <view class="row d-flex a-center j-sb">
- <view class="d-flex a-center">商业险 <view class="date">起保日期:{{item.startDate}}</view>
- </view>
- <view>¥{{sypremium}}</view>
- </view>
- </template>
- </block>
- <view class="kindList" v-if="kindList.length>0">
- <view class="kindItem d-flex a-center j-sb">
- <view class="d-flex flex-1">商业险险别</view>
- <view class="flex-1 d-flex a-center j-center">保额(元)</view>
- <view class="d-flex flex-1 j-end">保费(元)</view>
- </view>
- <block v-for="(item,index) in kindList" :key="index">
- <template v-if="item.coveragePremium">
- <view class="kindItem d-flex a-center j-sb">
- <view class="d-flex flex-1">{{item.kindName}}</view>
- <text
- v-if="['D4', 'SY_FJ_YBW2'].includes(item.kindCode)">{{item.unitAmount}}</text>
- <text
- v-else-if="['MJ1', 'MJ2', 'MJ3', 'MJ4'].includes(item.kindCode)">{{item.deductibleRate}}</text>
- <text v-else>{{item.amount}}</text>
- <view class="d-flex flex-1 j-end">¥{{item.coveragePremium}}</view>
- </view>
- </template>
- </block>
- </view>
- </view>
- <view class="addedServices" v-if="kindList.length>0">
- <view class="row d-flex a-center j-sb">
- <view class="d-flex">增值服务<view class="d-flex a-center"
- style="color:#999;margin-left: 10upx;font-size: 24upx;">不收费,使用不影响明年保费</view>
- </view>
- <view>赠送</view>
- </view>
- <view class="kindList">
- <view class="kindItem d-flex a-center j-sb">
- <view>道路救援</view>
- <view class="d-flex j-end">7次</view>
- </view>
- <view class="kindItem d-flex a-center j-sb">
- <view>代为送检</view>
- <view class="d-flex j-end">1次</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="quotePlan">
- <view class="header d-flex a-center j-sb">
- <view class="title">{{name}}官方无忧理赔</view>
- </view>
- <view class="body d-flex" style="flex-wrap: wrap;">
- <view
- style="width: 50%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap; padding-right: 20upx;box-sizing: border-box;">
- 智慧理赔服务</view>
- <view
- style="width: 50%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;padding-right: 20upx;box-sizing: border-box;">
- 异地出险全国通赔</view>
- <view
- style="width: 50%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;padding-right: 20upx;box-sizing: border-box;">
- 掌柜车险管控质量</view>
- </view>
- </view>
- <template v-if="!!token">
- <view class="quotePlan">
- <view class="header d-flex a-center j-sb">
- <view class="title">优惠政策</view>
- </view>
- <view class="body">
- <view class="insurance">
- <view class="row d-flex a-center j-sb">
- <view class="d-flex a-center flex-1">险种</view>
- <view class="d-flex a-center j-center flex-1">优惠比例</view>
- <view class="d-flex j-end flex-1">优惠金额</view>
- </view>
- <block v-for="(item,index) in riskList" :key="index">
- <template v-if="item.riskCode == '0507'">
- <view class="row d-flex a-center j-sb">
- <view class="d-flex a-center flex-1">交强险</view>
- <view class="d-flex a-center j-center flex-1">{{jqdiscountrate}}%</view>
- <view class="d-flex j-end flex-1">
- {{(item.premium*jqdiscountrate/100).toFixed(2)}}
- </view>
- </view>
- </template>
- </block>
- <block v-for="(item,index) in riskList" :key="index">
- <template v-if="item.riskCode == '0510'">
- <view class="row d-flex a-center j-sb">
- <view class="d-flex a-center flex-1">商业险</view>
- <view class="d-flex a-center j-center flex-1">{{sydiscountrate}}%</view>
- <view class="d-flex j-end flex-1">
- {{(item.premium*sydiscountrate/100).toFixed(2)}}
- </view>
- </view>
- </template>
- </block>
- </view>
- </view>
- </view>
- </template>
- <view class="car">
- <view class="header d-flex a-center j-sb">
- <view class="title">车辆信息</view>
- <view class="adjustPlan d-flex" @tap="showCarInfo = !showCarInfo">{{carInfo.licenseNo}}
- <view class="icon iconfont icon-xiala" style="margin-left: 15upx;"></view>
- </view>
- </view>
- <view class="body" v-if="showCarInfo">
- <view class="row d-flex a-center j-sb">
- <view>品牌型号</view>
- <view>{{carInfo.brandName}}</view>
- </view>
- <view class="row d-flex a-center j-sb">
- <view>车辆识别代码</view>
- <view>{{carInfo.vinNo}}</view>
- </view>
- <view class="row d-flex a-center j-sb">
- <view>发动机号</view>
- <view>{{carInfo.engineNo}}</view>
- </view>
- <view class="row d-flex a-center j-sb">
- <view>注册日期</view>
- <view>{{carInfo.registerDate }}</view>
- </view>
- <view class="row d-flex a-center j-sb">
- <view>核定载人数</view>
- <view>{{carInfo.seatCount}}</view>
- </view>
- <view class="row d-flex a-center j-sb">
- <view>车主</view>
- <view>{{ownerInfo.name}}</view>
- </view>
- </view>
- </view>
- <template v-if="orderstatus != 0">
- <view class="personInfo">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">车主</text>
- <view class="showStatus" @tap="controlShow('showOwerInfo')">{{showOwerInfo?'收起':'展开'}}</view>
- </view>
- <view class="content" v-if="showOwerInfo">
- <view class="row d-flex a-center">
- <view class="left">姓名:</view>
- <view class="right d-flex flex-1">{{ownerInfo.name}}</view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">证件类型:</view>
- <view class="right flex-1">{{(policyHolderInfo.identifyType=='01')?'身份证':'其他'}}</view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">手机号:</view>
- <view class="right flex-1">{{ownerInfo.mobile}}</view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">证件号:</view>
- <view class="right flex-1">{{ownerInfo.identifyNumber}}</view>
- </view>
- <view class="row d-flex a-center"
- style="height:auto;min-height: 80upx;padding: 15upx 0;box-sizing: border-box; ">
- <view class="left">地址:</view>
- <view class="right flex-1">{{ownerInfo.addr}}</view>
- </view>
- </view>
- </view>
- <!-- 投保人信息 -->
- <view class="personInfo">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">投保人</text>
- <view class="showStatus" @tap="controlShow('showPolicyHolderInfo')">
- {{showPolicyHolderInfo?'收起':'展开'}}
- </view>
- </view>
- <view class="content" v-if="showPolicyHolderInfo">
- <view class="row d-flex a-center">
- <view class="left">姓名:</view>
- <view class="right d-flex flex-1">{{policyHolderInfo.name}}</view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">证件类型:</view>
- <view class="right d-flex flex-1">{{(policyHolderInfo.identifyType=='01')?'身份证':'其他'}}
- </view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">手机号:</view>
- <view class="right d-flex flex-1">{{policyHolderInfo.mobile}}</view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">证件号:</view>
- <view class="right d-flex flex-1">{{policyHolderInfo.identifyNumber}}</view>
- </view>
- <view class="row d-flex a-center"
- style="height:auto;min-height: 80upx;padding: 15upx 0;box-sizing: border-box; ">
- <view class="left">地址:</view>
- <view class="right d-flex flex-1">{{policyHolderInfo.addr}}</view>
- </view>
- </view>
- </view>
- <!-- 被保人信息 -->
- <view class="personInfo">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">被保人</text>
- <view class="showStatus" @tap="controlShow('showInsuredPersonInfo')">
- {{showInsuredPersonInfo?'收起':'展开'}}
- </view>
- </view>
- <view class="content" v-if="showInsuredPersonInfo">
- <view class="row d-flex a-center">
- <view class="left">姓名:</view>
- <view class="right d-flex flex-1">{{insuredPersonInfo.name}}</view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">证件类型:</view>
- <view class="right d-flex flex-1">{{(policyHolderInfo.identifyType=='01')?'身份证':'其他'}}
- </view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">手机号:</view>
- <view class="right d-flex flex-1">{{insuredPersonInfo.mobile}}</view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">证件号:</view>
- <view class="right d-flex flex-1">{{insuredPersonInfo.identifyNumber}}</view>
- </view>
- <view class="row d-flex a-center"
- style="height:auto;min-height: 80upx;padding: 15upx 0;box-sizing: border-box; ">
- <view class="left">地址:</view>
- <view class="right d-flex flex-1">{{insuredPersonInfo.addr}}</view>
- </view>
- </view>
- </view>
- <!-- 车辆影像信息Start -->
- <view class="imageInfo">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">车辆影像信息</text>
- <view class="showStatus" @tap="controlShow('showCarImageInfo')">{{showCarImageInfo?'收起':'展开'}}
- </view>
- </view>
- <view class="uni-uploader" v-if="showCarImageInfo">
- <view class="uni-uploader-body">
- <view class="uni-uploader__files">
- <block v-for="(image,index) in carImageList" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'car')"></image>
- </view>
- </block>
- </view>
- </view>
- </view>
- </view>
- <!-- 车辆影像信息End -->
- <!-- 车主影像信息Start -->
- <view class="imageInfo">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">车主影像信息</text>
- <view class="showStatus" @tap="controlShow('showOwnerImageInfo')">
- {{showOwnerImageInfo?'收起':'展开'}}
- </view>
- </view>
- <view class="uni-uploader" v-if="showOwnerImageInfo">
- <view class="uni-uploader-body">
- <view class="uni-uploader__files">
- <block v-for="(image,index) in ownerImageList" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'owner')"></image>
- </view>
- </block>
- </view>
- </view>
- </view>
- </view>
- <!-- 车主影像信息End -->
- <!-- 投保人影像信息Start -->
- <view class="imageInfo">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">投保人影像信息</text>
- <view class="showStatus" @tap="controlShow('showPolicyImageInfo')">
- {{showPolicyImageInfo?'收起':'展开'}}
- </view>
- </view>
- <view class="uni-uploader" v-if="showPolicyImageInfo">
- <view class="uni-uploader-body">
- <view class="uni-uploader__files">
- <block v-for="(image,index) in policyImageList" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'policy')"></image>
- </view>
- </block>
- </view>
- </view>
- </view>
- </view>
- <!-- 投保人影像信息End -->
- <!-- 被保人影像信息Start -->
- <view class="imageInfo">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">被保人影像信息</text>
- <view class="showStatus" @tap="controlShow('showInsuredImageInfo')">
- {{showInsuredImageInfo?'收起':'展开'}}
- </view>
- </view>
- <view class="uni-uploader" v-if="showInsuredImageInfo">
- <view class="uni-uploader-body">
- <view class="uni-uploader__files">
- <block v-for="(image,index) in insuredImageList" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'insured')"></image>
- </view>
- </block>
- </view>
- </view>
- </view>
- </view>
- <!-- 被保人影像信息End -->
- <!-- 验车照Start -->
- <view class="imageInfo">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">验车照</text>
- <view class="showStatus" @tap="controlShow('showCarCheckImageInfo')">
- {{showCarCheckImageInfo?'收起':'展开'}}
- </view>
- </view>
- <view class="uni-uploader" v-if="showCarCheckImageInfo">
- <view class="uni-uploader-body">
- <view class="uni-uploader__files">
- <block v-for="(image,index) in carCheckImageList" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'carCheck')"></image>
- </view>
- </block>
- </view>
- </view>
- </view>
- </view>
- <!-- 验车照End -->
- <!-- 特约 -->
- <template v-if="!!syappoint">
- <view class="appoint">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">特约</text>
- <view class="showStatus" @tap="controlShow('showAppoint')">{{showAppoint?'收起':'展开'}}</view>
- </view>
- <view class="content" v-if="showAppoint">
- <view class="row d-flex a-center j-sb">
- <view>商业特约险:</view>
- <textarea disabled maxlength="300" v-model="syappoint"
- placeholder="请输入商业险特别约定,最多可输入300个字符" /></textarea>
- </view>
- </view>
- </view>
- </template>
- </template>
- <view class="personInfo" v-if="!!orderInfo.jqapplyno">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">投保单号</text>
- <view class="showStatus" @tap="controlShow('showApplyno')">{{showApplyno?'收起':'展开'}}</view>
- </view>
- <view class="content" v-if="showApplyno">
- <view class="row d-flex a-center" v-if="!!orderInfo.jqapplyno">
- <view class="left">交强险:</view>
- <view class="right d-flex flex-1">{{orderInfo.jqapplyno}}</view>
- </view>
- <view class="row d-flex a-center" v-if="!!orderInfo.syapplyno">
- <view class="left">商业险:</view>
- <view class="right d-flex flex-1">{{orderInfo.syapplyno}}</view>
- </view>
- </view>
- </view>
- <view class="personInfo" v-if="!!orderInfo.jqpolicyno">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">保单号</text>
- <view class="showStatus" @tap="controlShow('showPolicyno')">{{showPolicyno?'收起':'展开'}}</view>
- </view>
- <view class="content" v-if="showPolicyno">
- <view class="row d-flex a-center" v-if="!!orderInfo.jqpolicyno">
- <view class="left">交强险:</view>
- <view class="right d-flex flex-1">{{orderInfo.jqpolicyno}}</view>
- </view>
- <view class="row d-flex a-center" v-if="!!orderInfo.sypolicyno">
- <view class="left">商业险:</view>
- <view class="right d-flex flex-1">{{orderInfo.sypolicyno}}</view>
- </view>
- </view>
- </view>
- <view class="personInfo" v-if="policyList.length>0">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">电子保单(点击即可预览下载)</text>
- <view class="showStatus" @tap="controlShow('showPolicyFile')">{{showPolicyFile?'收起':'展开'}}</view>
- </view>
- <view class="content" v-if="showPolicyFile" v-for="(policyListitem,policyListindex) in policyList"
- :key="policyListindex">
- <view class="row d-flex a-center">
- <view class="left" style="width: 110px;flex-shrink: 0;">{{policyListitem.fileTitle}}:
- </view>
- <view class="right d-flex flex-1"
- style="flex-shrink: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
- {{policyListitem.filename}}
- </view>
- <view class="right d-flex a-center j-center" style="width: 160upx;flex-shrink: 0;">
- <text class="checkButton d-flex a-center j-center"
- @tap="downloadPolicy(policyListitem.fileurl)">下载</text>
- </view>
- </view>
- </view>
- </view>
- <view class="personInfo" v-if="policyList1.length>0">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">电子标志(点击即可预览下载)</text>
- <view class="showStatus" @tap="controlShow('showPolicybzFile')">{{showPolicybzFile?'收起':'展开'}}
- </view>
- </view>
- <view class="content" v-if="showPolicybzFile" v-for="(policyListitem,policyListindex) in policyList1"
- :key="policyListindex">
- <view class="row d-flex a-center">
- <view class="left" style="width: 110px;flex-shrink: 0;">{{policyListitem.fileTitle}}:
- </view>
- <view class="right d-flex flex-1"
- style="flex-shrink: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
- {{policyListitem.filename}}
- </view>
- <view class="right d-flex a-center j-center" style="width: 160upx;flex-shrink: 0;">
- <text class="checkButton d-flex a-center j-center"
- @tap="downloadPolicy(policyListitem.fileurl)">下载</text>
- </view>
- </view>
- </view>
- </view>
- <view class="advancePaymentTotal">
- <view class="header d-flex a-center j-sb">
- <view class="title">保费</view>
- </view>
- <view class="body">
- <block v-for="(item,index) in riskList" :key="index">
- <template v-if="item.riskCode == '0507'">
- <view class="row d-flex a-center j-sb">
- <view class="d-flex a-center">交强险</view>
- <view>¥{{jqpremium}}</view>
- </view>
- <view class="row j-sb d-flex a-center">
- <view>车船税</view>
- <view>¥{{taxAmount}}</view>
- </view>
- </template>
- </block>
- <block v-for="(item,index) in riskList" :key="index">
- <template v-if="item.riskCode == '0510'">
- <view class="row d-flex a-center j-sb">
- <view class="d-flex a-center">商业险</view>
- <view>¥{{sypremium}}</view>
- </view>
- </template>
- </block>
- </view>
- </view>
- </view>
- <view style="height: 90upx;"></view>
- <template>
- <view class="bottomBtn d-flex j-sb">
- <view class="d-flex a-center">
- <view class="d-flex flex-column a-center j-center listener">
- <view style="line-height: 1;" class="icon iconfont icon-xiaomishu"></view>
- <view class="font-sm">客服</view>
- </view>
- <view style="font-weight: bold;font-size: 34upx;color: #333; ">¥{{sumPermium}}</view>
- </view>
- <template v-if="orderstatus ==0">
- <view class="btn d-flex a-center j-center" @tap="toUnderwriting">确认核保</view>
- </template>
- <!-- <template v-if="orderstatus ==5">
- <view class="btn d-flex a-center j-center" @tap="cancelUnderwriting">撤销核保</view>
- </template> -->
- <!-- <template v-if="orderstatus ==2">
- <view class="btn d-flex a-center j-center" @tap="openPayWay">申请支付</view>
- </template>
- <template v-if="orderstatus ==3">
- <view class="btn d-flex a-center j-center" @tap="toUnderwriting">下一步</view>
- </template> -->
- </view>
- </template>
- <!-- 底部分享弹窗 -->
- <previewImage ref="previewImage" :opacity="0.8" :circular="true" :imgs="previewImgs"></previewImage>
- </view>
- </template>
- <script>
- import {
- mapState,
- mapMutations
- } from "vuex"
- import {
- pathToBase64,
- base64ToPath
- } from '@/common/pdf.js'
- import uniPopup from '@/components/uni-popup/uni-popup.vue';
- import previewImage from '@/components/common/previewImage/previewImage.vue'; //引用插件
- export default {
- components: {
- uniPopup,
- previewImage
- },
- computed: {
- ...mapState(['userInfo', 'token']),
- getHeight() {
- let height = uni.getSystemInfoSync().windowHeight;
- return `minHeight: ${height}px;`;
- }
- },
- data() {
- return {
- companyId: "", //订单号
- orderInfo: {},
- licenseNo: "", //车牌号
- icon: "", //保险公司logo
- name: "", //保险公司名称
- carInfo: {}, //车辆信息
- ownerInfo: {}, //车主信息
- policyHolderInfo: {}, //投保人信息
- insuredPersonInfo: {}, //被保人信息
- riskList: [], //险种大类信息
- kindList: [], //商业险险别
- sumPermium: "", //报价金额
- taxAmount: "", //车船税金额
- jqpremium: "", //交强险金额
- sypremium: "", //商业险金额
- feerate: "",
- disrate: "",
- syappoint: "",
- orderstatus: "0", //订单状态
- CIStartDate: "", //交强险日期
- BIStartDate: "", //商业险日期
- showCarInfo: false,
- insureList: [{
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "投保",
- "value": "1"
- }],
- kindCode: "A",
- isMainRisk: true,
- kindName: "机动车损失险"
- },
- {
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "10万",
- "value": "100000"
- }, {
- "label": "15万",
- "value": "150000"
- }, {
- "label": "20万",
- "value": "200000"
- }, {
- "label": "30万",
- "value": "300000"
- }, {
- "label": "50万",
- "value": "500000"
- }, {
- "label": "100万",
- "value": "1000000"
- }, {
- "label": "150万",
- "value": "1500000"
- }, {
- "label": "200万",
- "value": "2000000"
- }, {
- "label": "250万",
- "value": "2500000"
- }, {
- "label": "300万",
- "value": "3000000"
- }, {
- "label": "500万",
- "value": "5000000"
- }, {
- "label": "1000万",
- "value": "10000000"
- }],
- kindCode: "B",
- isMainRisk: true,
- kindName: "第三者责任险"
- },
- {
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "1万",
- "value": "10000"
- }, {
- "label": "2万",
- "value": "20000"
- }, {
- "label": "5万",
- "value": "50000"
- }, {
- "label": "10万",
- "value": "100000"
- }, {
- "label": "15万",
- "value": "150000"
- }, {
- "label": "20万",
- "value": "200000"
- }],
- kindCode: "D3",
- isMainRisk: true,
- kindName: "司机责任险"
- },
- {
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "1万",
- "value": "10000"
- }, {
- "label": "2万",
- "value": "20000"
- }, {
- "label": "5万",
- "value": "50000"
- }, {
- "label": "10万",
- "value": "100000"
- }, {
- "label": "15万",
- "value": "150000"
- }, {
- "label": "20万",
- "value": "200000"
- }],
- kindCode: "D4",
- isMainRisk: true,
- kindName: "乘客责任险"
- },
- {
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "2000",
- "value": "2000"
- }, {
- "label": "5000",
- "value": "5000"
- }, {
- "label": "1万",
- "value": "10000"
- }],
- isMainRisk: false,
- kindCode: "L",
- kindName: "车身划痕险",
- mainRiskCodeList: "A"
- },
- {
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "5%",
- "value": "5"
- }, {
- "label": "10%",
- "value": "10"
- }, {
- "label": "15%",
- "value": "15"
- }, {
- "label": "20%",
- "value": "20"
- }],
- isMainRisk: false,
- kindCode: "MJ1",
- kindName: "绝对免赔率特约险(车损)",
- mainRiskCodeList: "A"
- },
- {
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "5%",
- "value": "5"
- }, {
- "label": "10%",
- "value": "10"
- }, {
- "label": "15%",
- "value": "15"
- }, {
- "label": "20%",
- "value": "20"
- }],
- isMainRisk: false,
- kindCode: "MJ2",
- kindName: "绝对免赔率特约险(三者)",
- mainRiskCodeList: "B"
- },
- {
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "5%",
- "value": "5"
- }, {
- "label": "10%",
- "value": "10"
- }, {
- "label": "15%",
- "value": "15"
- }, {
- "label": "20%",
- "value": "20"
- }],
- isMainRisk: false,
- kindCode: "MJ3",
- kindName: "绝对免赔率特约险(司机)",
- mainRiskCodeList: "D3"
- },
- {
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "5%",
- "value": "5"
- }, {
- "label": "10%",
- "value": "10"
- }, {
- "label": "15%",
- "value": "15"
- }, {
- "label": "20%",
- "value": "20"
- }],
- isMainRisk: false,
- kindCode: "MJ4",
- kindName: "绝对免赔率特约险(乘客)",
- mainRiskCodeList: "D4"
- },
- {
- amount: "0",
- coveragePremium: "",
- amtList: [{
- "label": "投保",
- "value": "1"
- }],
- isMainRisk: false,
- kindCode: "BD",
- kindName: "法定节假日限额翻倍险",
- mainRiskCodeList: "B"
- },
- {
- amount: "0",
- amountDesc: "不投保",
- coveragePremium: "",
- amtList: [{
- label: "不投保",
- value: "0"
- },
- {
- label: "1万",
- value: "10000"
- },
- {
- label: "2万",
- value: "20000"
- },
- {
- label: "5万",
- value: "50000"
- },
- {
- label: "10万",
- value: "100000"
- }
- ],
- kindCode: "SY_FJ_YBW1",
- isMainRisk: false,
- kindName: "附加医保-三者",
- desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
- },
- {
- amount: "0",
- amountDesc: "不投保",
- coveragePremium: 0,
- amtList: [{
- label: "不投保",
- value: "0"
- },
- {
- label: "1万",
- value: "10000"
- },
- {
- label: "2万",
- value: "20000"
- },
- {
- label: "5万",
- value: "50000"
- },
- {
- label: "10万",
- value: "100000"
- }
- ],
- kindCode: "SY_FJ_YBW2",
- isMainRisk: false,
- kindName: "附加医保-座位险(乘客)",
- desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
- },
- {
- amount: "0",
- amountDesc: "不投保",
- coveragePremium: 0,
- amtList: [{
- label: "不投保",
- value: "0"
- },
- {
- label: "1万",
- value: "10000"
- },
- {
- label: "2万",
- value: "20000"
- },
- {
- label: "5万",
- value: "50000"
- },
- {
- label: "10万",
- value: "100000"
- }
- ],
- kindCode: "SY_FJ_YBW3",
- isMainRisk: false,
- kindName: "附加医保-座位险(司机)",
- desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
- },
- ],
- bottomData: [
- // #ifdef APP-PLUS
- {
- text: '微信好友',
- icon: '/static/image/share/weixinhaoyou.png',
- name: 'wx'
- },
- {
- text: '短信发送',
- icon: '/static/image/share/shortMessage.png',
- name: 'dx'
- },
- // #endif
- {
- text: '报价单',
- icon: '/static/image/share/shortMessage.png',
- name: 'bjd'
- }
- ],
- vehicleModel: {}, //车型信息
- showOwerInfo: false, //展示车主信息
- showPolicyHolderInfo: false, //展示投保人信息
- showInsuredPersonInfo: false, //展示被保人信息
- showProposalWay: false, //获取保单方式
- showAdvancePayment: false, //展示保费
- showAppoint: false, //展示特约
- showDistribution: false, //展示快递
- showApplyno: false, //展示投保单号
- showPolicyno: false, //展示保单号
- showPolicyFile: false, //展示电子保单
- showPolicybzFile: false, //展示电子保单
- policyList: [], //电子保单文件
- policyList1: [], //电子标志文件
- showCarImageInfo: false, //显示车辆影像
- carImageList: [],
- showOwnerImageInfo: false, //显示车主影像
- ownerImageList: [],
- showPolicyImageInfo: false, //显示投保人影像
- policyImageList: [],
- showInsuredImageInfo: false, //显示被保人影像
- insuredImageList: [],
- showCarCheckImageInfo: false, //显示验车照影像
- carCheckImageList: [],
- previewImgs: [],
- dianzibaodan: "",
- jypremium: "",
- quoteno: "",
- }
- },
- // 监听导航栏的按钮
- onNavigationBarButtonTap(e) {
- if (e.index == 0) {
- this.$refs.showshare.open()
- }
- },
- async onLoad(params) {
- if (!this.token) {
- document.getElementsByTagName('uni-page-head')[0].style.display = 'none'
- }
- if (!!params.companyId) {
- this.companyId = params.companyId;
- let param = {
- companyId: params.companyId
- };
- let res = await this.$http.post('/insurance/order/getByCompanyId', param);
- if (res.code == 200) {
- //获取前一个页面传过来的信息(车辆信息,人员信息,险种信息)
- this.icon = "";
- this.quoteno = res.data.quoteno;
- this.name = res.data.inscompany;
- this.carInfo = res.data.carinfo;
- this.licenseNo = res.data.licenseno;
- if (!!this.carInfo.transferFlag) {
- this.carInfo.transferFlag = 1;
- } else {
- this.carInfo.transferFlag = 0;
- }
- if (!!this.carInfo.loanStatus) {
- this.carInfo.loanStatus = 1;
- } else {
- this.carInfo.loanStatus = 0;
- }
- if (!!this.carInfo.registerDate) {
- let year1 = new Date(this.carInfo.registerDate).getFullYear()
- let month1 = new Date(this.carInfo.registerDate).getMonth() + 1
- if (month1 < 10) {
- month1 = '0' + month1;
- }
- let day1 = new Date(this.carInfo.registerDate).getDate()
- if (day1 < 10) {
- day1 = '0' + day1;
- }
- this.carInfo.registerDate = year1 + '-' + month1 + '-' + day1
- }
- if (!!this.carInfo.issueDate) {
- let year2 = new Date(this.carInfo.issueDate).getFullYear()
- let month2 = new Date(this.carInfo.issueDate).getMonth() + 1
- if (month2 < 10) {
- month2 = '0' + month2;
- }
- let day2 = new Date(this.carInfo.issueDate).getDate()
- if (day2 < 10) {
- day2 = '0' + day2;
- }
- this.carInfo.issueDate = year2 + '-' + month2 + '-' + day2
- }
- if (!!this.carInfo.transferDate) {
- let year3 = new Date(this.carInfo.transferDate).getFullYear()
- let month3 = new Date(this.carInfo.transferDate).getMonth() + 1
- if (month3 < 10) {
- month3 = '0' + month3;
- }
- let day3 = new Date(this.carInfo.transferDate).getDate()
- if (day3 < 10) {
- day3 = '0' + day3;
- }
- this.carInfo.transferDate = year3 + '-' + month3 + '-' + day3
- }
- this.ownerInfo = res.data.ownerinfo;
- this.policyHolderInfo = res.data.applyinfo;
- this.insuredPersonInfo = res.data.insureinfo;
- this.riskList = res.data.riskinfo;
- this.kindList = res.data.kindinfo;
- this.sumPermium = res.data.sumpremium;
- this.taxAmount = res.data.taxamount;
- this.sypremium = res.data.sypremium;
- this.jqpremium = res.data.jqpremium;
- this.jypremium = res.data.jypremium;
- this.orderstatus = res.data.orderstatus;
- this.feerate = res.data.feerate;
- this.disrate = res.data.disrate;
- this.jqdiscountrate = res.data.jqdiscountrate;
- this.sydiscountrate = res.data.sydiscountrate;
- this.syappoint = res.data.syappoint;
- this.orderInfo = {};
- Object.assign(this.orderInfo, res.data)
- this.imageEcho(this.quoteno) // 影像获取完毕
- this.kindList.map(ele => {
- switch (ele.kindCode) {
- case "A":
- ele.amount = "投保";
- break;
- case "D4":
- case "SY_FJ_YBW2":
- ele.unitAmount = this.toChinesNum(ele.unitAmount);
- break;
- case "MJ1":
- case "MJ2":
- case "MJ3":
- case "MJ4":
- ele.deductibleRate = ele.deductibleRate + "%";
- break;
- default:
- ele.amount = this.toChinesNum(ele.amount);
- }
- return ele;
- })
- switch (this.name) {
- case "永安财险":
- this.yonganprint(); //电子保单
- break;
- case "中煤财险":
- this.zmgetPolicyPrint(); //电子保单
- break;
- case "恒邦财险":
- case "安盛天平":
- case "众安财险":
- case "中国人寿":
- this.pythonprint(); //电子保单
- break;
- case "永诚财险":
- this.ycgetPolicyPrint(); //电子保单
- break;
- }
- }
- } else {
- uni.showModal({
- showCancel: false,
- title: "未查询到该订单"
- })
- }
- },
- methods: {
- ...mapMutations(['setOrderStage', 'setOrderType']),
- //影像查询
- async imageEcho(quotenos) {
- let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
- if (imgres.code == "200") {
- Object.keys(imgres.data).forEach((keys) => {
- imgres.data[keys].forEach((ele) => {
- ele.url = this.$base.baseUrl + ele.url;
- return ele;
- });
- });
- this.carImageList = imgres.data.C01;
- this.ownerImageList = imgres.data.C02;
- this.policyImageList = imgres.data.C03;
- this.insuredImageList = imgres.data.C04;
- this.carCheckImageList = imgres.data.C05;
- }
- },
- //去选择险种页面
- toInsureItems() {
- this.navigate({
- url: '/pages/carInsure1/insureItems1',
- success: (res) => {
- res.eventChannel.emit("acceptData", {
- carInfo: this.carInfo,
- ownerInfo: this.ownerInfo,
- policyHolderInfo: this.policyHolderInfo,
- insuredPersonInfo: this.insuredPersonInfo,
- riskList: this.riskList,
- kindList: this.kindList
- })
- }
- }, "navigateTo", true);
- },
- //去确认核保页面
- toUnderwriting() {
- this.navigate({
- url: "/pages/carInsure1/underwriting1?companyId=" + this.companyId
- },
- "navigateTo", true);
- },
- //影像预览
- previewImage(e, type) {
- this.previewImgs = this[type + 'ImageList'];
- var current = e.currentTarget.dataset.src;
- this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
- },
- //查询电子保单
- async yonganprint() {
- this.policyList = [];
- this.policyList1 = [];
- let res = await this.$http.post('/order/yongAn/getPolicyPrint', {
- companyId: this.companyId,
- policytype: "jq"
- }); //永安
- if (res.data) {
- let result = res.data.replace(/[\r\n]/g, "");
- let pdfBase64 = `data:application/pdf;base64,${result}`;
- base64ToPath(pdfBase64)
- .then(path => {
- this.policyList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: path,
- })
- })
- }
- let res1 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
- companyId: this.companyId,
- policytype: "jq"
- }); //永安
- if (res1.data) {
- let result = res1.data.replace(/[\r\n]/g, "");
- let pdfBase64 = `data:application/pdf;base64,${result}`;
- base64ToPath(pdfBase64)
- .then(path => {
- this.policyList1.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: path,
- })
- })
- }
- if (this.orderInfo.sypolicyno) {
- let res2 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
- companyId: this.companyId,
- policytype: "sy"
- }); //永安
- if (res2.data) {
- let result = res1.data.replace(/[\r\n]/g, "");
- let pdfBase64 = `data:application/pdf;base64,${result}`;
- base64ToPath(pdfBase64)
- .then(path => {
- this.policyList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: path,
- })
- })
- }
- }
- },
- async zmgetPolicyPrint() {
- this.policyList = [];
- this.policyList1 = [];
- if (this.orderInfo.jqpolicyno) {
- let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
- companyId: this.companyId,
- riskCode: "0507",
- type: '2', //2:保单
- });
- if (res.code == '200') {
- this.policyList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data[0],
- })
- }
- let res1 = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
- companyId: this.companyId,
- riskCode: "0507",
- type: '1', //1:标志
- });
- if (res1.code == '200') {
- this.policyList1.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data[0],
- })
- }
- }
- if (this.orderInfo.sypolicyno) {
- let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
- companyId: this.companyId,
- riskCode: "0510",
- type: '2', //2:标志
- });
- if (res.code == '200') {
- this.policyList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data[0],
- })
- }
- }
- },
- async ycgetPolicyPrint() {
- this.policyList = [];
- this.policyList1 = [];
- let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
- companyId: this.companyId,
- riskCode: "0507",
- type: '2', //2:保单
- }); //永诚财险
- if (res.code == '200') {
- this.policyList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqUrl,
- })
- if (res.data.jqFlagUrl) {
- this.policyList1.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res.data.jqFlagUrl,
- })
- }
- }
- if (this.orderInfo.sypolicyno) {
- let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
- companyId: this.companyId,
- riskCode: "0510",
- type: '2', //2:保单
- }); //永诚财险
- if (res.code == '200') {
- this.policyList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res.data.syUrl,
- });
- }
- }
- },
- //爬虫电子保单统一调用
- async pythonprint() {
- let params = {
- subOrderNo: this.companyId,
- };
- let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
- if (res1.code == '200') {
- this.policyList = [];
- this.policyList1 = [];
- this.policyList.push({
- fileTitle: "交强电子保单",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res1.data.jqxPolicyUrl,
- })
- this.policyList1.push({
- fileTitle: "交强电子标志",
- filename: this.orderInfo.jqpolicyno,
- fileurl: res1.data.jqxFlagUrl,
- })
- if (res.data.syxPolicyUrl) {
- this.policyList.push({
- fileTitle: "商业电子保单",
- filename: this.orderInfo.sypolicyno,
- fileurl: res1.data.syxPolicyUrl,
- });
- }
- if (res.data.jyxPolicyUrl) {
- this.policyList.push({
- fileTitle: "驾意险保单",
- filename: 'xxxxxxxxxxxxxxxxxxxxxx',
- fileurl: res1.data.jyxPolicyUrl,
- });
- }
- }
- },
- downloadPolicy(file) {
- //#ifdef APP-PLUS
- uni.showLoading({
- title: '文件下载中'
- });
- uni.downloadFile({
- url: file,
- success(val) {
- uni.saveFile({
- tempFilePath: val.tempFilePath, //临时路径
- success: function(res) {
- uni.hideLoading();
- uni.showToast({
- icon: 'none',
- mask: true,
- title: '文件已保存到:' + res.savedFilePath + ',正在打开文件', //保存路径
- duration: 3000,
- });
- setTimeout(() => {
- //打开文档查看
- uni.openDocument({
- filePath: res.savedFilePath,
- success: function(res) {}
- });
- }, 3000)
- }
- });
- }
- });
- //#endif
- //#ifdef H5
- var win = window.open();
- win.document.write(
- '<body style="margin:0px;"><object data="' +
- file +
- '" type="application/pdf" width="100%" height="100%"><iframe src="' +
- file +
- '" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
- );
- //#endif
- },
- //选择缴费方式
- openPayWay() {
- this.navigate({
- url: "/pages/carInsure/payWay?orderno=" + this.orderno
- }, 'navigateTo', true)
- },
- cancelShare() {
- this.$refs.showshare.close()
- },
- //控制详情的展开和收起
- controlShow(type) {
- this[type] = !this[type];
- },
- //撤销核保
- cancelUnderwriting() {
- uni.showModal({
- content: '是否确认撤销核保?',
- success: async (res) => {
- if (res.confirm) {
- let param = {
- "auditid": this.userInfo.sysUser.id, //核保人会员号
- "auditopinion": '', //核保意见
- "jqapplyno": "", //交强险投保单号
- "jqappoint": "", //交强特别约定
- "jqpolicyno": "", //交强保单号
- "orderno": this.orderno, //订单号
- "orderstatus": "0", //订单类型
- "syapplyno": "", //商业险投保单号
- "syappoint": "", //商业险特别约定
- "sypolicyno": "" //商业保单号
- }
- let res = await this.$http.post('/insOrder/saveAudit', param);
- uni.showToast({
- title: '撤销成功',
- icon: "none",
- duration: 2000
- });
- setTimeout(() => {
- this.setOrderStage(0);
- this.setOrderType(0);
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab", true);
- }, 2000);
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- },
- toChinesNum(num) {
- let changeNum = [
- "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
- ];
- let unit = ["", "0", "00", "000", "0000"];
- num = parseInt(num);
- let getWan = temp => {
- let strArr = temp
- .toString()
- .split("")
- .reverse();
- let newNum = "";
- let newArr = [];
- strArr.forEach((item, index) => {
- newArr.unshift(
- item === "0" ? changeNum[item] : changeNum[item] + unit[index]
- );
- });
- let numArr = [];
- newArr.forEach((m, n) => {
- if (m !== "0") numArr.push(n);
- });
- if (newArr.length > 1) {
- newArr.forEach((m, n) => {
- if (newArr[newArr.length - 1] === "0") {
- if (n <= numArr[numArr.length - 1]) {
- newNum += m;
- }
- } else {
- newNum += m;
- }
- });
- } else {
- newNum = newArr[0];
- }
- return newNum;
- };
- let overWan = Math.floor(num / 10000);
- let noWan = num % 10000;
- if (noWan.toString().length < 4) {
- noWan = "0" + noWan;
- }
- return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- @import '@/style/mixin.scss';
- /* 头部车辆信息和特权Start */
- .carInfo {
- height: 280upx;
- background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
- background-size: 100% 100%;
- }
- .carInfo .topLeft {
- font-size: 90upx;
- color: #FFFFFF;
- }
- .carInfo .topLeft .license {
- width: 420upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .carInfo .topLeft .totalMoney {
- font-size: 40upx;
- font-weight: bold;
- }
- .carInfo .topRight {
- flex-shrink: 0;
- width: 140upx;
- color: #FFFFFF;
- }
- .carInfo .topRight image {
- width: 100upx;
- height: 100upx;
- }
- .carInfo .other {
- background-color: #FFFFFF;
- height: 80upx;
- border-radius: 15upx;
- box-sizing: border-box;
- }
- .carInfo .other .privilege {
- background-color: rgba($themeColor, 0.6);
- font-size: 24upx;
- color: #FFFFFF;
- font-weight: bold;
- }
- .carInfo .other .content {
- width: 460upx;
- margin-left: 15upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .carInfo .other .icon {
- width: 30upx;
- }
- /* 头部车辆信息和特权End */
- .header {
- height: 80upx;
- padding: 0 30upx;
- position: relative;
- }
- .header .title {
- font-size: 30upx;
- font-weight: bold;
- padding-left: 10upx;
- }
- .welfare {
- margin-bottom: 20upx;
- width: 100%;
- box-sizing: border-box;
- background: #FFFFFF;
- border-radius: 20upx;
- }
- .welfare .body {
- padding: 0 30upx 30upx;
- box-sizing: border-box;
- flex-wrap: wrap;
- }
- .welfare .body>.welfareItem {
- width: 320upx;
- height: 120upx;
- padding: 10upx 20upx;
- margin: 20upx 10upx 0upx;
- border: 1px solid rgba($themeColor, 0.6);
- box-sizing: border-box;
- background: rgba($themeColor, 0.4);
- border-radius: 10upx;
- }
- .welfare .body>.welfareItem .name {
- color: $themeColor;
- font-size: 30upx;
- width: 210upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .welfare .body>.welfareItem .content {
- font-size: 24upx;
- width: 260upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- /* 报价方案Start */
- .quotePlan {
- margin-bottom: 20upx;
- width: 100%;
- box-sizing: border-box;
- background: #FFFFFF;
- border-radius: 20upx;
- }
- .quotePlan .header .adjustPlan {
- color: $themeColor;
- }
- .quotePlan .body {
- padding: 0 40upx 10upx;
- }
- .quotePlan .body .insurance {
- padding-bottom: 20upx;
- border-bottom: 1px dashed #E6E8EA;
- }
- .quotePlan .body .row {
- height: 70upx;
- }
- .quotePlan .body .row .date {
- color: #A4A4A4;
- font-size: 22upx;
- margin-left: 40upx;
- }
- .quotePlan .body .insurance .kindList {
- background: #F3F3F3;
- padding: 0 10upx;
- }
- .addedServices .kindList {
- background: #F3F3F3;
- padding: 0 10upx;
- }
- .quotePlan .body .insurance .kindList .kindItem {
- height: 65upx;
- }
- .quotePlan .body .insurance .kindList .kindItem>view {
- font-size: 24upx;
- }
- .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(1) {
- width: 310upx;
- }
- .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(2) {
- width: 170upx;
- }
- .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(3) {
- width: 170upx;
- }
- .addedServices .kindList .kindItem {
- height: 65upx;
- }
- .addedServices .kindList .kindItem>view {
- font-size: 24upx;
- padding: 0upx 15upx;
- }
- /* 报价方案End */
- .car {
- margin-bottom: 20upx;
- width: 100%;
- box-sizing: border-box;
- background: #FFFFFF;
- }
- .car .body {
- padding: 0upx 30upx 10upx;
- }
- .car .body .row {
- height: 80upx;
- border-bottom: 1px solid #F3F3F3;
- }
- /* 预缴费Start */
- .advancePaymentTotal {
- margin-bottom: 20upx;
- width: 100%;
- box-sizing: border-box;
- background: #FFFFFF;
- border-radius: 20upx;
- }
- .advancePaymentTotal .body {
- padding: 0upx 40upx 10upx;
- }
- .advancePaymentTotal .body .row {
- height: 80upx;
- border-bottom: 1px solid #F3F3F3;
- }
- /* 预缴费End */
- /* 底部按钮Start */
- .bottomBtn {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- border-top: 1px solid #F1F1F1;
- background-color: #FFFFFF;
- height: 90upx;
- }
- .bottomBtn .listener {
- width: 120upx;
- font-size: 20upx;
- line-height: 1.2;
- color: #999;
- }
- .bottomBtn .listener .icon {
- font-size: 40upx;
- padding: 0;
- }
- .bottomBtn .btn {
- font-size: 34upx;
- background-color: $themeColor;
- color: #fff;
- width: 280upx;
- flex-shrink: 0;
- }
- /* 底部按钮End */
- /* 人员信息Start */
- .personInfo,
- .advancePayment,
- .imageInfo,
- .appoint {
- margin-bottom: 20upx;
- background: #FFFFFF;
- padding: 0upx 40upx;
- }
- .personInfo .title,
- .advancePayment .title,
- .imageInfo .title,
- .appoint .title {
- height: 80upx;
- font-size: 32upx;
- box-shadow: inset 0 -3upx 0px #fafafa;
- }
- .showStatus {
- font-size: 26upx;
- color: #007AFF;
- }
- .personInfo .content .row,
- .advancePayment .content .row {
- height: 80upx;
- border-bottom: 1px solid #F9F9F9;
- flex-wrap: nowrap;
- }
- .personInfo .content .row .left,
- .advancePayment .content .row .left {
- width: 170upx;
- flex-shrink: 0;
- font-size: 28upx;
- }
- .appoint .content .row {
- height: auto;
- margin-top: 10upx;
- }
- .appoint .content .row>view {
- width: 240upx;
- flex-shrink: 1;
- font-size: 28upx;
- }
- .appoint .content .row>textarea {
- /* background: #007AFF; */
- padding: 15upx;
- box-sizing: border-box;
- font-size: 26upx;
- min-height: 160upx;
- height: 100upx;
- border: 1px solid #fafafa;
- /* over */
- }
- .personInfo .content .row .right,
- .advancePayment .content .row .right,
- .appoint .content .row .right {
- font-size: 28upx;
- }
- /* 人员信息End */
- .checkButton {
- margin: 0 20upx 0 20upx;
- font-size: 24upx;
- width: 80upx;
- height: 50upx;
- background: $themeColor;
- font-weight: bold;
- color: #FFFFFF;
- border-radius: 5upx;
- }
- .uni-popup__wrapper-box {
- display: block;
- position: relative;
- }
- .uni-share {
- display: flex;
- flex-direction: column;
- background-color: #fff;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- }
- .uni-share-title {
- line-height: 30px;
- font-size: 12px;
- padding: 7px 0;
- text-align: center;
- }
- .uni-share-content {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: center;
- padding: 15px;
- }
- .uni-share-content-box {
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 100px;
- }
- .uni-share-content-image {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- width: 30px;
- height: 30px;
- overflow: hidden;
- border-radius: 5px;
- }
- .uni-share-content-text {
- font-size: 13px;
- color: #333;
- padding-top: 5px;
- padding-bottom: 10px;
- }
- .uni-share-btn {
- height: 45px;
- line-height: 45px;
- font-size: 14px;
- border-top-color: #f5f5f5;
- border-top-width: 1px;
- border-top-style: solid;
- text-align: center;
- color: #666;
- }
- uni-image>img {
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- opacity: 0;
- }
- uni-image>div,
- uni-image>img {
- width: 100%;
- height: 100%;
- }
- </style>
|