12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781 |
- <template>
- <view :style="getHeight" style="background-color: #F5F5F5;">
- <!-- 公共组件-每个页面必须引入 -->
- <public-module></public-module>
- <!-- 头部 -->
- <view class="carInfo w-100 px-3 box-sizing">
- <view class="d-flex">
- <view class="icon iconfont icon-tree-round-car flex-shrink topLeft"></view>
- <view class="topRight d-flex flex-1 p-3 flex-column" style="color: #FFFFFF;">
- <view class="d-flex flex-1">
- <view class="font-lg d-flex a-center">{{this.licenseNo}}
- <view class="icon iconfont icon-bianji1 ml-2" @tap="toCarInfo"></view>
- </view>
- </view>
- <view class="brandName">{{carInfo.modelcname}}</view>
- </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="personInfo">
- <view class="title d-flex a-center j-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 d-flex flex-1">{{ownerInfo.identifyType}}</view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">手机号:</view>
- <view class="right d-flex flex-1">{{ownerInfo.mobile}}</view>
- </view>
- <view class="row d-flex a-center">
- <view class="left">证件号:</view>
- <view class="right d-flex 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 d-flex 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}}</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">{{insuredPersonInfo.identifyType}}</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 dis ">
- <view class="uni-uploader__files f-c dis a-c">
- <text>行驶证主页</text>
- <block v-for="(image,index) in imgList1" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgList1')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'carImageListId','imgList1')"></view>
- </view>
- </block>
- <view v-if="imgList1.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input" @tap="chooseImage('C01','carImageListId','imgList1')">
- </view>
- </view>
- </view>
- <view class="uni-uploader__files f-c dis a-c">
- <text>行驶证副本</text>
- <block v-for="(image,index) in imgList2" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgList2')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'carImageListId','imgList2')"></view>
- </view>
- </block>
- <view v-if="imgList2.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input" @tap="chooseImage('D01','carImageListId','imgList2')">
- </view>
- </view>
- </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 dis ">
- <view class="uni-uploader__files dis f-c a-c">
- <text>正面</text>
- <block v-for="(image,index) in imgList3" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgList3')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'ownerImageListId','imgList3')"></view>
- </view>
- </block>
- <view v-if="imgList3.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input"
- @tap="chooseImage('C02','ownerImageListId','imgList3')"></view>
- </view>
- </view>
- <view class="uni-uploader__files dis f-c a-c">
- <text>反面</text>
- <block v-for="(image,index) in imgList4" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgList4')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'ownerImageListId','imgList4')"></view>
- </view>
- </block>
- <view v-if="imgList4.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input"
- @tap="chooseImage('D02','ownerImageListId','imgList4')"></view>
- </view>
- </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 dis ">
- <view class="uni-uploader__files dis f-c a-c">
- <text>正面</text>
- <block v-for="(image,index) in imgList5" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgList5')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'policyImageListId','imgList5')"></view>
- </view>
- </block>
- <view v-if="imgList5.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input"
- @tap="chooseImage('C03','policyImageListId','imgList5')"></view>
- </view>
- </view>
- <view class="uni-uploader__files dis f-c a-c">
- <text>反面</text>
- <block v-for="(image,index) in imgList6" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgList6')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'policyImageListId','imgList6')"></view>
- </view>
- </block>
- <view v-if="imgList6.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input"
- @tap="chooseImage('D03','policyImageListId','imgList6')"></view>
- </view>
- </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 dis ">
- <view class="uni-uploader__files dis f-c a-start">
- <text>正面</text>
- <block v-for="(image,index) in imgList7" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgList7')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'insuredImageListId','imgList7')"></view>
- </view>
- </block>
- <view v-if="imgList7.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input"
- @tap="chooseImage('C04','insuredImageListId','imgList7')"></view>
- </view>
- </view>
- <view class="uni-uploader__files dis f-c a-c">
- <text>反面</text>
- <block v-for="(image,index) in imgList8" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgList8')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'insuredImageListId','imgList8')"></view>
- </view>
- </block>
- <view v-if="imgList8.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input"
- @tap="chooseImage('D04','insuredImageListId','imgList8')"></view>
- </view>
- </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('showNewCarImageInfo')">
- {{showNewCarImageInfo?'收起':'展开'}}
- </view>
- </view>
- <view class="uni-uploader" v-if="showNewCarImageInfo">
- <view class="uni-uploader-body dis ">
- <view class="uni-uploader__files dis f-c a-c">
- <text>新车合格证</text>
- <block v-for="(image,index) in imgNewCarQualified" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgNewCarQualified')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'imgNewCarinvoiceId','imgNewCarQualified')"></view>
- </view>
- </block>
- <view v-if="imgNewCarQualified.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input"
- @tap="chooseImage('XC00','imgNewCarinvoiceId','imgNewCarQualified')"></view>
- </view>
- </view>
- <view class="uni-uploader__files dis f-c a-c">
- <text>购车发票</text>
- <block v-for="(image,index) in imgNewCarInvoice" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgNewCarInvoice')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center"
- @tap="delCheckImage(image,'imgNewCarinvoiceId','imgNewCarInvoice')"></view>
- </view>
- </block>
- <view v-if="imgNewCarInvoice.length==0" class="uni-uploader__input-box"
- style="box-sizing: border-box;">
- <view class="uni-uploader__input"
- @tap="chooseImage('GC00','imgNewCarinvoiceId','imgNewCarInvoice')"></view>
- </view>
- </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 imgRelationship" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
- @tap="previewImage($event,'imgRelationship')"></image>
- <view class="delImgIcon iconfont icon-cuo d-flex a-center j-center "
- @tap="delCheckImage('imgRelationship',index)"></view>
- </view>
- </block>
- <view class="uni-uploader__input-box" style="box-sizing: border-box;">
- <view class="uni-uploader__input"
- @tap="chooseImage('GX00','imgRelationshipid','imgRelationship')"></view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 验车照End -->
- <!-- 特约 -->
- <block v-if="['紫金财险','华泰财险'].includes(this.name)">
- <template>
- <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 dis f-c j-c a-end" v-if="showAppoint">
- <template v-if="this.name=='紫金财险'">
- <u-button type="warning" size="mini" style="width: 80px;margin-top: 5px;"
- @click="ziJinshow=true">特约选择</u-button>
- <view class="contributing dis f-c" v-for="(item,index) in ziJinengageList">
- <text>{{item.clauseName}}</text>
- <u-input v-if="item.modifyFlag==1" :border="true" v-model="item.clauses" size="mini"
- type="textarea" :custom-style="{fontSize:'14px'}" />
- <text v-else>{{item.clauses}}</text>
- </view>
- </template>
- <template v-if="this.name=='华泰财险'">
- <u-button type="warning" size="mini" style="width: 80px;margin-top: 5px;"
- @click="huaTaishow=true">特约选择</u-button>
- <view class="contributing dis f-c" v-for="(item,index) in huaTaiengageList">
- <text>{{item.engageTitle}}</text>
- <u-input v-if="item.modifyFlag==1" :border="true" v-model="item.engageDetail"
- size="mini" type="textarea" :custom-style="{fontSize:'14px'}" />
- <text v-else>{{item.engageDetail}}</text>
- </view>
- </template>
- </view>
- </view>
- </template>
- </block>
- <view class="advancePayment">
- <view class="title d-flex a-center j-sb">
- <text style="font-weight: bold;">保费</text>
- <view class="showStatus" @tap="controlShow('showAdvancePayment')">{{showAdvancePayment?'收起':'展开'}}
- </view>
- </view>
- <view class="content" v-if="showAdvancePayment">
- <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>
- </template>
- </block>
- <view class="row d-flex a-center j-sb">
- <view>车船税</view>
- <view>¥{{taxAmount}}</view>
- </view>
- <block>
- <view class="row d-flex a-center j-sb">
- <view class="d-flex a-center">驾意险</view>
- <view>¥{{jypremium}}</view>
- </view>
- </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: 160upx;"></view>
- <view class="bottomBtn">
- <view class="agree d-flex a-center">
- <checkbox @tap="agreed" :checked="agree" style="transform:scale(0.6)"></checkbox> 我已确认并同意 <text
- class="tip">保险条款</text> | <text class="tip">投保须知</text> | <text class="tip">隐私条款</text>
- </view>
- <view class="btnView d-flex">
- <view class="d-flex flex-1 a-center">
- <view class="d-flex flex-column a-center listener">
- <view class="icon iconfont icon-xiaomishu"></view> 客服
- </view>
- <view style="font-weight: bold;font-size: 34upx;color: #333; ">¥{{sumPermium}}</view>
- </view>
- <view class="btn d-flex a-center j-center" @tap="submitAudit">申请核保</view>
- </view>
- </view>
- <u-modal v-model="ziJinshow" title="紫金特约选择" :title-style="{fontWeight: 'bold'}"
- :scroll-height="{height: '300px'}">
- <view class="slot-content">
- <u-checkbox-group @change="ziJincontributingChange">
- <u-checkbox v-model="item.checked" active-color="rgb(255, 153, 0)"
- v-for="(item, index) in ziJinengageListData" :key="index"
- :name="item.clauseId">{{item.clauseName}}</u-checkbox>
- </u-checkbox-group>
- </view>
- </u-modal>
- <u-modal v-model="huaTaishow" title="华泰特约选择" :title-style="{fontWeight: 'bold'}"
- :scroll-height="{height: '300px'}">
- <view class="slot-content">
- <u-checkbox-group @change="huaTaicontributingChange">
- <u-checkbox v-model="item.checked" active-color="rgb(255, 153, 0)"
- v-for="(item, index) in huaTaiengageListData" :key="index"
- :name="item.engageCode">{{item.engageTitle}}</u-checkbox>
- </u-checkbox-group>
- </view>
- </u-modal>
- <previewImage ref="previewImage" :opacity="0.8" :circular="true" :imgs="previewImgs"></previewImage>
- </view>
- </template>
- <script>
- import {
- mapState
- } from "vuex"
- import store from '@/store';
- import previewImage from '@/components/common/previewImage/previewImage.vue'; //引用插件
- // import wPicker from "@/components/w-picker/w-picker.vue";
- import {
- pathToBase64,
- base64ToPath
- } from '@/common/image-tools-base64.js';
- import * as imageConversion from 'image-conversion'
- export default {
- components: {
- // wPicker,
- previewImage
- },
- computed: {
- ...mapState(['userInfo']),
- getHeight() {
- let height = uni.getSystemInfoSync().windowHeight;
- return `minHeight: ${height}px;`;
- }
- },
- data() {
- return {
- ziJinshow: false,
- huaTaishow: false,
- quoteno: "", //报价号
- previewImgs: [],
- sumPermium: "",
- carInfo: {},
- vehicleModel: {},
- companyId: "",
- licenseNo: "",
- riskList: [],
- kindList: [],
- name: "",
- icon: "",
- taxAmount: "",
- jqpremium: "",
- sypremium: "",
- jypremium: "",
- ownerInfo: {},
- policyHolderInfo: {},
- insuredPersonInfo: {},
- agree: false,
- jqappoint: "", //交强险特别约定
- syappoint: "", //商业特别约定
- identifyList: [{
- label: '身份证',
- id: "01"
- },
- {
- label: '护照',
- id: "02"
- },
- {
- label: '港澳台居民居住证',
- id: "03"
- },
- {
- label: '组织机构代码证',
- id: "04"
- },
- {
- label: '统一社会信用代码证',
- id: "05"
- },
- {
- label: '营业执照',
- id: "06"
- }
- ],
- showOwerInfo: false, //展示车主信息
- showPolicyHolderInfo: false, //展示投保人信息
- showInsuredPersonInfo: false, //展示被保人信息
- showProposalWay: false, //获取保单方式
- showAdvancePayment: false, //展示保费
- showAppoint: false, //展示特约
- showCarImageInfo: false, //显示车辆影像
- carImageListId: [],
- showOwnerImageInfo: false, //显示车主影像
- ownerImageListId: [],
- showPolicyImageInfo: false, //显示投保人影像
- policyImageListId: [],
- showInsuredImageInfo: false, //显示被保人影像
- insuredImageListId: [],
- showCarCheckImageInfo: false, //显示验车照影像
- imgRelationshipid: [],
- showNewCarImageInfo: false, //显示新车影像
- imgNewCarinvoiceId: [],
- existenceimg: 0,
- token: "",
- imgList1: [],
- imgList2: [],
- imgList3: [],
- imgList4: [],
- imgList5: [],
- imgList6: [],
- imgList7: [],
- imgList8: [],
- imgRelationship: [], //其他证明
- imgNewCarQualified: [], //合格证
- imgNewCarInvoice: [], //发票
- ziJinengageListData: [],
- ziJinengageList: [],
- huaTaiengageListData: [],
- huaTaiengageList: [],
- }
- },
- async onLoad(params) {
- this.token = store.state.token
- if (!!params.companyId) {
- this.companyId = params.companyId;
- let param = {
- companyId: params.companyId
- };
- let res = await this.$http.post('/insurance/order/getByCompanyId', param);
- //获取前一个页面传过来的信息(车辆信息,人员信息,险种信息)
- this.icon = "";
- this.name = res.data.inscompany;
- this.quoteno = res.data.quoteno;
- this.carInfo = res.data.carinfo;
- 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.licenseNo = res.data.licenseno;
- this.sumPermium = res.data.sumpremium;
- this.taxAmount = res.data.taxamount;
- this.jqpremium = res.data.jqpremium;
- this.sypremium = res.data.sypremium;
- this.jypremium = res.data.jypremium;
- // 图片类型(C01车辆影像,C02车主身份证,C03投保人身份证,C04被保人身份证,C05验车照)
- this.imageEcho(this.quoteno)
- if (this.name == '紫金财险') {
- let Zijinres = await this.$http.post('/order/zijin/queryClauseData', param);
- this.ziJinengageListData = Zijinres.data;
- let data = this.ziJinengageListData.find(val => val.optType == 3)
- if (data) {
- this.ziJinengageList.push({
- clauseCode: data.clauseCode,
- clauseName: data.clauseName,
- clauses: data.clauseContent,
- riskCode: data.riskCode,
- modifyFlag: data.modifyFlag,
- optType: data.optType,
- })
- }
- }
- if (this.name == '华泰财险') {
- let huaTaires = await this.$http.post('/order/huaTaiApi/queryClauseData', param);
- this.huaTaiengageListData = huaTaires.data;
- huaTaires.data.map(val => {
- if (val.optType == '2') {
- this.huaTaiengageList.push({
- engageCode: val.engageCode,
- engageDetail: val.engageDetail,
- engageTitle: val.engageTitle,
- riskCode: val.riskCode,
- modifyFlag: val.modifyFlag,
- })
- }
- })
- }
- // 影像获取完毕
- } else {
- uni.showModal({
- showCancel: false,
- title: "未查询到该订单"
- })
- }
- },
- methods: {
- ziJincontributingChange(param) {
- this.ziJinengageList = [];
- param.map(val => {
- let list = this.ziJinengageListData.find(item => item.clauseId == val)
- this.ziJinengageList.push({
- clauseCode: list.clauseCode,
- clauseName: list.clauseName,
- clauses: list.clauseContent,
- riskCode: list.riskCode,
- })
- })
- },
- huaTaicontributingChange(param) {
- this.huaTaiengageList = [];
- param.map(val => {
- let list = this.huaTaiengageListData.find(item => item.engageCode == val)
- this.huaTaiengageList.push({
- engageCode: list.engageCode,
- engageDetail: list.engageDetail,
- engageTitle: list.engageTitle,
- riskCode: list.riskCode,
- modifyFlag: list.modifyFlag,
- })
- })
- },
- //影像查询
- async imageEcho(quotenos) {
- let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
- if (imgres.code == "200") {
- Object.keys(imgres.data).forEach((keys) => {
- if (imgres.data[keys].url) {
- imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
- switch (keys) {
- case 'C01':
- this.carImageListId.push({
- imageId: imgres.data[keys].imageId,
- imageType: imgres.data[keys].imageType,
- })
- this.imgList1.push(imgres.data[keys]);
- break;
- case 'D01':
- this.carImageListId.push({
- imageId: imgres.data[keys].imageId,
- imageType: imgres.data[keys].imageType,
- })
- this.imgList2.push(imgres.data[keys]);
- break;
- case 'C02':
- this.ownerImageListId.push({
- imageId: imgres.data[keys].imageId,
- imageType: imgres.data[keys].imageType,
- })
- this.imgList3.push(imgres.data[keys]);
- break;
- case 'D02':
- this.ownerImageListId.push({
- imageId: imgres.data[keys].imageId,
- imageType: imgres.data[keys].imageType,
- })
- this.imgList4.push(imgres.data[keys]);
- break;
- case 'C03':
- this.policyImageListId.push({
- imageId: imgres.data[keys].imageId,
- imageType: imgres.data[keys].imageType,
- })
- this.imgList5.push(imgres.data[keys]);
- break;
- case 'D03':
- this.policyImageListId.push({
- imageId: imgres.data[keys].imageId,
- imageType: imgres.data[keys].imageType,
- })
- this.imgList6.push(imgres.data[keys]);
- break;
- case 'C04':
- this.insuredImageListId.push({
- imageId: imgres.data[keys].imageId,
- imageType: imgres.data[keys].imageType,
- })
- this.imgList7.push(imgres.data[keys]);
- break;
- case 'D04':
- this.insuredImageListId.push({
- imageId: imgres.data[keys].imageId,
- imageType: imgres.data[keys].imageType,
- })
- this.imgList8.push(imgres.data[keys]);
- break;
- default:
- break;
- }
- }
- });
- }
- },
- // 重新选择车型
- toCarInfo() {
- this.navigate({
- url: '/pages/carInsure1/carInfo1',
- 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);
- },
- //控制详情的展开和收起
- controlShow(type) {
- this[type] = !this[type];
- },
- //阅读并同意协议
- agreed() {
- if (this.agree == false) {
- this.agree = true;
- } else {
- this.agree = false;
- }
- },
- async chooseImage(type, imageIdList, imgurl) {
- let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
- count: 1,
- sizeType: ['compressed']
- });
- chooseImageRes.tempFilePaths.map((ele, index) => {
- uni.uploadFile({
- url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
- filePath: ele,
- name: "multipartFile",
- formData: {
- 'type': 'image',
- },
- header: {
- Authorization: this.token,
- },
- success: async (imgRes) => {
- let data = JSON.parse(imgRes.data);
- data.data.url = this.$base.baseUrl + data.data.url;
- if (data.code == "200") {
- console.log()
- if (this[imageIdList].some(v => v.imageType == type)) {
- this[imageIdList].map(val => {
- if (val.imageType == type) {
- val.imageId = data.data.id;
- }
- })
- } else {
- this[imageIdList].push({
- imageId: data.data.id,
- imageType: type,
- })
- }
- this[imgurl].push(data.data)
- }
- }
- });
- })
- },
- previewImage(e, type) {
- this.previewImgs = this[type];
- var current = e.currentTarget.dataset.src;
- this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
- },
- //删除图片
- delCheckImage(param, IdList, srcList) {
- this[IdList].map((ele, index) => {
- if (param.imageId === ele.imageId) {
- this[IdList].splice(index, 1);
- }
- return ele;
- });
- this[srcList].map((ele, index) => {
- if (param.imageId === ele.imageId) {
- this[srcList].splice(index, 1);
- }
- return ele;
- });
- },
- // 上传影像并提交核保
- async submitAudit() {
- if (!this.agree) {
- return uni.showToast({
- title: '请阅读并同意协议',
- icon: "none",
- duration: 2000
- });
- }
- const mergedArray = [...this.carImageListId, ...this.ownerImageListId, ...this
- .policyImageListId, ...this.insuredImageListId, ...this.imgRelationshipid
- ];
- if (mergedArray.length > 0) {
- await this.$http.post('/ins/taskImage/uploadImages', {
- imageList: mergedArray,
- quoteNo: this.quoteno,
- })
- }
- uni.showModal({
- content: '是否确认提交核保?',
- success: async (res) => {
- if (res.confirm) {
- switch (this.name) {
- case "永安财险":
- let yaimage = await this.$http.post(
- '/order/yongAn/submitImage', {
- companyId: this.companyId
- });
- if (yaimage.code == '200') {
- let yaaudit = await this.$http.post(
- '/order/yongAn/audit', {
- companyId: this.companyId,
- jqappoint: "",
- syappoint: ""
- });
- if (yaaudit.code == '200') {
- uni.showModal({
- content: '订单自核成功',
- cancelText: '暂不缴费',
- confirmText: '立即缴费',
- success: (res1) => {
- if (res1.confirm) {
- let pro = this.userInfo.sysUser
- .managementSource;
- if (pro == "3") {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode2?companyId=" +
- this
- .companyId
- })
- } else {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode1?companyId=" +
- this
- .companyId
- })
- }
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- } else {
- uni.showModal({
- content: '核保失败(' + yaaudit.msg + ')',
- cancelText: '返回订单',
- confirmText: '继续核保',
- success: async (res2) => {
- if (res2.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- } else {
- uni.showModal({
- content: '影像上传失败(' + yaimage.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res3) => {
- if (res3.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- break;
- case "中煤财险":
- let zmimage = await this.$http.post(
- '/order/zhongMeiApi/submitImage', {
- companyId: this.companyId
- });
- if (zmimage.code == '200') {
- let zmaudit = await this.$http.post(
- '/order/zhongMeiApi/audit', {
- companyId: this.companyId,
- jqappoint: "",
- syappoint: ""
- });
- if (zmaudit.code == '200') {
- uni.showModal({
- content: '订单自核成功',
- cancelText: '暂不缴费',
- confirmText: '立即缴费',
- success: (res1) => {
- if (res1.confirm) {
- let pro = this.userInfo.sysUser
- .managementSource;
- if (pro == "3") {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode2?companyId=" +
- this
- .companyId
- })
- } else {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode1?companyId=" +
- this
- .companyId
- })
- }
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- } else {
- uni.showModal({
- content: '核保失败(' + zmaudit.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res2) => {
- if (res2.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- } else {
- uni.showModal({
- content: '影像上传失败(' + zmimage.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res3) => {
- if (res3.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- break;
- case "永诚财险":
- let ycimage = await this.$http.post(
- '/api/yongCheng/uploadImage', {
- companyId: this.companyId
- });
- if (ycimage.code == '200') {
- let ycaudit = await this.$http.post(
- '/api/yongCheng/audit', {
- companyId: this.companyId,
- });
- if (ycaudit.code == '200') {
- uni.showModal({
- content: '订单自核成功',
- cancelText: '暂不缴费',
- confirmText: '立即缴费',
- success: (res1) => {
- if (res1.confirm) {
- let pro = this.userInfo.sysUser
- .managementSource;
- if (pro == "3") {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode2?companyId=" +
- this
- .companyId
- })
- } else {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode1?companyId=" +
- this
- .companyId
- })
- }
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- } else {
- uni.showModal({
- content: '核保失败(' + ycaudit.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res2) => {
- if (res2.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- } else {
- uni.showModal({
- content: '影像上传失败(' + ycimage.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res3) => {
- if (res3.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- break;
- case "国任财险":
- let grimage = await this.$http.post(
- '/api/guoRen/uploadImage', {
- companyId: this.companyId
- });
- if (grimage.code == '200') {
- let graudit = await this.$http.post(
- '/api/guoRen/audit', {
- companyId: this.companyId,
- });
- if (graudit.code == '200') {
- uni.showModal({
- content: '订单自核成功',
- cancelText: '暂不缴费',
- confirmText: '立即缴费',
- success: (res1) => {
- if (res1.confirm) {
- let pro = this.userInfo.sysUser
- .managementSource;
- if (pro == "3") {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode2?companyId=" +
- this
- .companyId
- })
- } else {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode1?companyId=" +
- this
- .companyId
- })
- }
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- } else {
- uni.showModal({
- content: '核保失败(' + graudit.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res2) => {
- if (res2.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- } else {
- uni.showModal({
- content: '影像上传失败(' + grimage.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res3) => {
- if (res3.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- break;
- case "大家财险":
- let djimage = await this.$http.post(
- '/api/dajia/submitImage', {
- companyId: this.companyId
- });
- if (djimage.code == '200') {
- let djaudit = await this.$http.post(
- '/api/dajia/audit', {
- companyId: this.companyId,
- });
- if (djaudit.code == '200') {
- uni.showModal({
- content: '订单自核成功',
- cancelText: '暂不缴费',
- confirmText: '立即缴费',
- success: (res1) => {
- if (res1.confirm) {
- let pro = this.userInfo.sysUser
- .managementSource;
- if (pro == "3") {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode2?companyId=" +
- this
- .companyId
- })
- } else {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode1?companyId=" +
- this
- .companyId
- })
- }
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- } else {
- uni.showModal({
- content: '核保失败(' + djaudit.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res2) => {
- if (res2.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- } else {
- uni.showModal({
- content: '影像上传失败(' + djimage.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res3) => {
- if (res3.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- break;
- case "紫金财险":
- let zjimage = await this.$http.post(
- '/order/zijin/submitImage', {
- companyId: this.companyId
- });
- if (zjimage.code == '200') {
- let zjaudit = await this.$http.post(
- '/order/zijin/audit', {
- companyId: this.companyId,
- engageList: this.ziJinengageList,
- });
- if (zjaudit.code == '200') {
- uni.showModal({
- content: '订单自核成功',
- cancelText: '暂不缴费',
- confirmText: '立即缴费',
- success: (res1) => {
- if (res1.confirm) {
- let pro = this.userInfo.sysUser
- .managementSource;
- if (pro == "3") {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode2?companyId=" +
- this
- .companyId
- })
- } else {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode1?companyId=" +
- this
- .companyId
- })
- }
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- } else {
- uni.showModal({
- content: '核保失败(' + zjaudit.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res2) => {
- if (res2.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- } else {
- uni.showModal({
- content: '影像上传失败(' + zjimage.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res3) => {
- if (res3.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- break;
- case "华泰财险":
- let htimage = await this.$http.post(
- '/order/huaTaiApi/submitImage', {
- companyId: this.companyId
- });
- if (htimage.code == '200') {
- let htaudit = await this.$http.post(
- '/order/huaTaiApi/audit', {
- companyId: this.companyId,
- engageList: this.huaTaiengageList,
- });
- if (htaudit.code == '200') {
- uni.showModal({
- content: '订单自核成功',
- cancelText: '暂不缴费',
- confirmText: '立即缴费',
- success: (res1) => {
- if (res1.confirm) {
- let pro = this.userInfo.sysUser
- .managementSource;
- if (pro == "3") {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode2?companyId=" +
- this
- .companyId
- })
- } else {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode1?companyId=" +
- this
- .companyId
- })
- }
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- } else {
- uni.showModal({
- content: '核保失败(' + htaudit.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res2) => {
- if (res2.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- } else {
- uni.showModal({
- content: '影像上传失败(' + htimage.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res3) => {
- if (res3.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- break;
- case "渤海财险":
- let bhimage = await this.$http.post(
- '/order/boHaiApi/submitImage', {
- companyId: this.companyId
- });
- if (bhimage.code == '200') {
- let bhaudit = await this.$http.post(
- '/order/boHaiApi/audit', {
- companyId: this.companyId,
- jqappoint: "",
- syappoint: ""
- });
- if (bhaudit.code == '200') {
- uni.showModal({
- content: '订单自核成功',
- cancelText: '暂不缴费',
- confirmText: '立即缴费',
- success: (res1) => {
- if (res1.confirm) {
- let pro = this.userInfo.sysUser
- .managementSource;
- if (pro == "3") {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode2?companyId=" +
- this
- .companyId
- })
- } else {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode1?companyId=" +
- this
- .companyId
- })
- }
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- } else {
- uni.showModal({
- content: '核保失败(' + bhaudit.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res2) => {
- if (res2.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- } else {
- uni.showModal({
- content: '影像上传失败(' + bhimage.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res3) => {
- if (res3.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- break;
- case "恒邦财险":
- case "安盛天平":
- case "众安财险":
- case "中国人寿":
- case "太平财险":
- case "华农财险":
- let pythonimage = await this.$http.post(
- '/insurance/crawler/submitImage', {
- subOrderNo: this.companyId
- });
- if (pythonimage.code == '200') {
- let pythonaudit = await this.$http.post(
- '/insurance/crawler/audit', {
- subOrderNo: this.companyId,
- });
- if (pythonaudit.code == '200') {
- uni.showModal({
- content: '订单自核成功',
- cancelText: '暂不缴费',
- confirmText: '立即缴费',
- success: (res1) => {
- if (res1.confirm) {
- let pro = this.userInfo.sysUser
- .managementSource;
- if (pro == "3") {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode2?companyId=" +
- this
- .companyId
- })
- } else {
- uni.navigateTo({
- url: "/pages/carInsure1/payCode1?companyId=" +
- this
- .companyId
- })
- }
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- } else {
- uni.showModal({
- content: '核保失败(' + pythonaudit.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res2) => {
- if (res2.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- } else {
- uni.showModal({
- content: '影像上传失败(' + pythonimage.msg + ')',
- cancelText: '返回订单',
- confirmText: '修改',
- success: async (res3) => {
- if (res3.confirm) {
- } else {
- this.navigate({
- url: "/pages/orders/orders"
- }, "switchTab",
- true);
- }
- }
- });
- }
- break;
- }
- } else if (res.cancel) {}
- }
- });
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- @import '@/style/mixin.scss';
- /* 头部车辆信息和特权Start */
- .carInfo {
- height: 290upx;
- background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
- background-size: 100% 100%;
- }
- .carInfo .topLeft {
- width: 120upx;
- font-size: 90upx;
- color: #FFFFFF;
- }
- .carInfo .topRight .brandName {
- width: 400upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .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;
- width: 60upx;
- }
- .carInfo .other .content {
- width: 460upx;
- margin-left: 15upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .carInfo .other .icon {
- width: 30upx;
- }
- /* 头部车辆信息和特权End */
- /* 人员信息Start */
- .personInfo,
- .advancePayment,
- .imageInfo,
- .appoint {
- margin-bottom: 20upx;
- background: #FFFFFF;
- padding: 0upx 30upx;
- }
- .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: $themeColor;
- }
- .personInfo .content .row,
- .advancePayment .content .row {
- height: 80upx;
- border-bottom: 1px solid #F9F9F9;
- }
- .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 {
- padding: 15upx;
- box-sizing: border-box;
- font-size: 26upx;
- min-height: 160upx;
- height: 100upx;
- border: 1px solid #fafafa;
- }
- .personInfo .content .row .right,
- .advancePayment .content .row .right,
- .appoint .content .row .right {
- font-size: 28upx;
- }
- /* 人员信息End */
- .uni-uploader__file {
- position: relative;
- }
- .delImgIcon {
- width: 40upx;
- height: 40upx;
- background-color: #999;
- position: absolute;
- right: 0upx;
- top: 0upx;
- color: #FFFFFF;
- }
- /* 底部按钮Start */
- .bottomBtn {
- z-index: 99;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- border-top: 1px solid #F1F1F1;
- background-color: #FFFFFF;
- height: 150upx;
- }
- .bottomBtn .agree {
- height: 60upx;
- font-size: 24upx;
- }
- .bottomBtn .agree .tip {
- color: $themeColor;
- margin: 0upx 10upx;
- }
- .bottomBtn .btnView {
- height: 100upx;
- border-top: 1px solid #F1F1F1;
- }
- .bottomBtn .listener {
- width: 120upx;
- font-size: 20upx;
- line-height: 1;
- color: #999;
- }
- .bottomBtn .listener .icon {
- font-size: 40upx;
- padding: 0;
- line-height: 1.2;
- }
- .bottomBtn .btn {
- font-size: 34upx;
- background-color: $themeColor;
- color: #fff;
- width: 280upx;
- flex-shrink: 0;
- }
- .contributing {
- width: 100%;
- margin: 4px 0;
- font-size: 14px;
- text:nth-child(1) {
- font-weight: bold;
- color: #ff9000;
- }
- }
- .slot-content {
- padding: 10px;
- box-sizing: border-box;
- }
- /* 底部按钮End */
- </style>
|