|
@@ -43,7 +43,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<uni-forms :rules="carRules" :value="carInfo" ref="carForm" validate-trigger="bind"
|
|
|
- err-show-type="toast" label-width="100">
|
|
|
+ style="padding: 0 15px;" err-show-type="toast" label-width="100">
|
|
|
<uni-forms-item label="车牌号: ">
|
|
|
<input class="uni-input-input textColor" placeholder="输入车牌号" v-model="carInfo.licenseNo"
|
|
|
placeholder-style="font-size:28upx" @input="upperCaseType('licenseNo')" />
|
|
@@ -89,8 +89,8 @@
|
|
|
@confirm="e=> Dateconfirm(e,'carInfo','issueDate')"></u-picker>
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item v-if="carInfo.transferFlag" required label="转移登记日期" name="transferDate">
|
|
|
- <u-input type="select" :select-open="transferDateShow" v-model="carInfo.transferDate"
|
|
|
- placeholder="请选择过户日期" @click="transferDateShow = true"
|
|
|
+ <u-input type="select" :custom-style="{textAlign:'right'}" :select-open="transferDateShow"
|
|
|
+ v-model="carInfo.transferDate" placeholder="请选择过户日期" @click="transferDateShow = true"
|
|
|
placeholder-style="color:#808080"></u-input>
|
|
|
<u-picker v-model="transferDateShow" mode="time" :params="params" :end-year="endYear"
|
|
|
:end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','transferDate')"></u-picker>
|
|
@@ -103,13 +103,56 @@
|
|
|
<input class="uni-input-input textColor" placeholder="请输入核定载质量" v-model="carInfo.limitLoad"
|
|
|
placeholder-style="font-size:28upx" />
|
|
|
</uni-forms-item>
|
|
|
+ <uni-forms-item label="使用性质: " required name="carnature">
|
|
|
+ <u-input v-model="carInfo1.carnature" type="select" :select-open="carnatureShow"
|
|
|
+ @click="carnatureShow = true" :custom-style="{textAlign:'right'}"
|
|
|
+ placeholder-style="color:#808080" placeholder="请选择使用性质" />
|
|
|
+ <u-select mode="single-column" :list="natureOfVehicleUseoptions" v-model="carnatureShow"
|
|
|
+ label-name="dictTag" value-name="dictValue"
|
|
|
+ @confirm="dictionaryConfirm($event,'carnature')"></u-select>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item label="能源种类: " required name="energyType">
|
|
|
+ <u-input v-model="carInfo1.energyType" type="select" :select-open="energyTypeShow"
|
|
|
+ @click="energyTypeShow = true" :custom-style="{textAlign:'right'}"
|
|
|
+ placeholder-style="color:#808080" placeholder="请选择能源种类" />
|
|
|
+ <u-select mode="single-column" :list="energyTypeoptions" v-model="energyTypeShow"
|
|
|
+ label-name="dictTag" value-name="dictValue"
|
|
|
+ @confirm="dictionaryConfirm($event,'energyType')"></u-select>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item label="车辆用途: " required name="vehicleUse">
|
|
|
+ <u-input v-model="carInfo1.vehicleUse" type="select" :select-open="vehicleUseShow"
|
|
|
+ @click="vehicleUseShow = true" :custom-style="{textAlign:'right'}"
|
|
|
+ placeholder-style="color:#808080" placeholder="请选择车辆用途" />
|
|
|
+ <u-select v-if="carInfo.carnature=='01'" mode="single-column"
|
|
|
+ :list="businessVehicleUseoptions" v-model="vehicleUseShow" label-name="dictTag"
|
|
|
+ value-name="dictValue" @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
|
|
|
+ <u-select v-else mode="single-column" :list="outOfBusinessVehicleUseoptions"
|
|
|
+ v-model="vehicleUseShow" label-name="dictTag" value-name="dictValue"
|
|
|
+ @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item label="车辆类型: " required name="cartype">
|
|
|
+ <u-input v-model="carInfo1.cartype" type="select" :select-open="cartypeShow"
|
|
|
+ @click="cartypeShow = true" :custom-style="{textAlign:'right'}"
|
|
|
+ placeholder-style="color:#808080" placeholder="请选择车辆类型" />
|
|
|
+ <u-select mode="single-column" :list="trafficManagementVehicleTypeoptions"
|
|
|
+ v-model="cartypeShow" label-name="dictTag" value-name="dictValue"
|
|
|
+ @confirm="dictionaryConfirm($event,'cartype')"></u-select>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item label="车辆种类: " required name="cimodelclass">
|
|
|
+ <u-input v-model="carInfo1.cimodelclass" type="select" :select-open="cimodelclassShow"
|
|
|
+ @click="cimodelclassShow = true" :custom-style="{textAlign:'right'}"
|
|
|
+ placeholder-style="color:#808080" placeholder="请选择车辆种类" />
|
|
|
+ <u-select mode="single-column" :list="vehicleTypeoptions" v-model="cimodelclassShow"
|
|
|
+ label-name="dictTag" value-name="dictValue"
|
|
|
+ @confirm="dictionaryConfirm($event,'cimodelclass')"></u-select>
|
|
|
+ </uni-forms-item>
|
|
|
<uni-forms-item label="年款: ">
|
|
|
<input class="uni-input-input textColor" placeholder="请输入年款" v-model="carInfo.caryear"
|
|
|
placeholder-style="font-size:28upx" />
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item label="座位数: ">
|
|
|
- <input class="uni-input-input textColor" placeholder="请输入座位数" v-model="carInfo.seatCount"
|
|
|
- placeholder-style="font-size:28upx" />
|
|
|
+ <input class="uni-input-input textColor" placeholder="请输入座位数" maxlength="1"
|
|
|
+ v-model="carInfo.seatCount" placeholder-style="font-size:28upx" />
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item label="排量: ">
|
|
|
<input class="uni-input-input textColor" placeholder="请输入排量" v-model="carInfo.enginedesc"
|
|
@@ -127,7 +170,7 @@
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item label="是否过户: ">
|
|
|
<view class="d-flex j-end a-c" style="height:100%">
|
|
|
- <u-switch v-model="carInfo.transferFlag" active-color="#ea552d " size="30"
|
|
|
+ <u-switch v-model="carInfo.transferFlag" active-color="#0052FF " size="30"
|
|
|
@change="transferFlagchange"></u-switch>
|
|
|
</view>
|
|
|
</uni-forms-item>
|
|
@@ -141,7 +184,7 @@
|
|
|
<view class="top-ocr dis j-c a-c" v-show="!ownerimg">
|
|
|
<image src="../../static/image/car-insure/Frame1.png" mode="">
|
|
|
</image>
|
|
|
- <text @tap="ocrIdentify('ownerInfo')" style="margin-left: 5px;">点击上传/拍摄行驶证 自动填写信息</text>
|
|
|
+ <text @tap="ocrIdentify('ownerInfo')" style="margin-left: 5px;">点击上传/拍摄身份证 自动填写信息</text>
|
|
|
</view>
|
|
|
<view v-show="!ownersExpand && !ownerimg" class="btn-collapse dis a-c j-c"
|
|
|
@click="expand('ownersExpand')">
|
|
@@ -149,7 +192,7 @@
|
|
|
<u-icon name="arrow-down" size="30" color="rgb(60 60 60 / 60%)" style="margin-left: 5px;"></u-icon>
|
|
|
</view>
|
|
|
<view v-show="ownersExpand">
|
|
|
- <view v-if=" ownerimg" class="movable-view dis f-c a-c">
|
|
|
+ <view v-show=" ownerimg" class="movable-view dis f-c a-c">
|
|
|
<movable-area>
|
|
|
<movable-view direction="all" out-of-bounds :scale="true">
|
|
|
<image :src="ownerimg" mode=""
|
|
@@ -173,7 +216,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<uni-forms :rules="ownerRules" :value="ownerInfo" ref="ownerForm" validate-trigger="bind"
|
|
|
- err-show-type="toast" label-width="80">
|
|
|
+ style="padding: 0 15px;" err-show-type="toast" label-width="80">
|
|
|
<uni-forms-item name="name" required label="姓名: ">
|
|
|
<input class="uni-input-input textColor" placeholder="请输入姓名" v-model="ownerInfo.name"
|
|
|
maxlength="5" placeholder-style="font-size:28upx" />
|
|
@@ -234,105 +277,112 @@
|
|
|
<view class=" dis j-s a-c">
|
|
|
<text class="title">投保人信息</text>
|
|
|
<view class="dis a-c j-c">
|
|
|
- <view class="status-data" :class="item.value==applicantholder? 'active':''"
|
|
|
+ <view class="status-data" :class="item.value==policyHolderholder? 'active':''"
|
|
|
v-for="(item,index) in holderstatusList" @tap="applicantholderClick(item.value)" :key="index">
|
|
|
{{item.label}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-show="applicantholder=='99'" class="collapse">
|
|
|
- <view class="top-ocr dis j-c a-c" v-show="!applicantimg">
|
|
|
- <image src="../../static/image/car-insure/Frame1.png" mode="">
|
|
|
- </image>
|
|
|
- <text @tap="ocrIdentify('policyHolderInfo')" style="margin-left: 5px;">点击上传/拍摄行驶证 自动填写信息</text>
|
|
|
- </view>
|
|
|
- <view v-show="!applicantExpand && !applicantimg" class="btn-collapse dis a-c j-c"
|
|
|
- @click="expand('applicantExpand')">
|
|
|
- <text>展开手动输入投保人信息</text>
|
|
|
- <u-icon name="arrow-down" size="30" color="rgb(60 60 60 / 60%)" style="margin-left: 5px;"></u-icon>
|
|
|
- </view>
|
|
|
- <view v-show="applicantExpand">
|
|
|
- <view v-if=" applicantimg" class="movable-view dis f-c a-c">
|
|
|
- <movable-area>
|
|
|
- <movable-view direction="all" out-of-bounds :scale="true">
|
|
|
- <image :src="applicantimg" mode=""
|
|
|
- :style="{width:'100%',height:'100%',transform:`rotate(-${user2deg}deg)`}">
|
|
|
- </image>
|
|
|
- </movable-view>
|
|
|
- </movable-area>
|
|
|
- <view class="operate-img dis j-s a-c">
|
|
|
- <view class="dis a-c" @tap="rotatefront('user2deg')">
|
|
|
- <image src="/static/image/car-insure/rotate1.png" mode=""></image>
|
|
|
- 左转
|
|
|
- </view>
|
|
|
- <view class="dis a-c" @tap="ocrIdentify('policyHolderInfo')">
|
|
|
- <image src="/static/image/car-insure/upload.png" mode=""></image>
|
|
|
- 上传
|
|
|
- </view>
|
|
|
- <view class="dis a-c" @tap="rotateback('user2deg')">
|
|
|
- <image src="/static/image/car-insure/rotate2.png" mode=""></image>
|
|
|
- 右转
|
|
|
+ <uni-forms :rules="policyHolderRules" :value="policyHolderInfo" ref="policyHolderForm"
|
|
|
+ validate-trigger="bind" err-show-type="toast" label-width="80">
|
|
|
+ <view v-show="policyHolderholder=='99'" class="collapse">
|
|
|
+ <view class="top-ocr dis j-c a-c" v-show="!policyHolderimg">
|
|
|
+ <image src="../../static/image/car-insure/Frame1.png" mode="">
|
|
|
+ </image>
|
|
|
+ <text @tap="ocrIdentify('policyHolderInfo')" style="margin-left: 5px;">点击上传/拍摄身份证 自动填写信息</text>
|
|
|
+ </view>
|
|
|
+ <view v-show="!policyHolderExpand && !policyHolderimg" class="btn-collapse dis a-c j-c"
|
|
|
+ @click="expand('policyHolderExpand')">
|
|
|
+ <text>展开手动输入投保人信息</text>
|
|
|
+ <u-icon name="arrow-down" size="30" color="rgb(60 60 60 / 60%)"
|
|
|
+ style="margin-left: 5px;"></u-icon>
|
|
|
+ </view>
|
|
|
+ <view v-show="policyHolderExpand">
|
|
|
+ <view v-show=" policyHolderimg" class="movable-view dis f-c a-c">
|
|
|
+ <movable-area>
|
|
|
+ <movable-view direction="all" out-of-bounds :scale="true">
|
|
|
+ <image :src="policyHolderimg" mode=""
|
|
|
+ :style="{width:'100%',height:'100%',transform:`rotate(-${user2deg}deg)`}">
|
|
|
+ </image>
|
|
|
+ </movable-view>
|
|
|
+ </movable-area>
|
|
|
+ <view class="operate-img dis j-s a-c">
|
|
|
+ <view class="dis a-c" @tap="rotatefront('user2deg')">
|
|
|
+ <image src="/static/image/car-insure/rotate1.png" mode=""></image>
|
|
|
+ 左转
|
|
|
+ </view>
|
|
|
+ <view class="dis a-c" @tap="ocrIdentify('policyHolderInfo')">
|
|
|
+ <image src="/static/image/car-insure/upload.png" mode=""></image>
|
|
|
+ 上传
|
|
|
+ </view>
|
|
|
+ <view class="dis a-c" @tap="rotateback('user2deg')">
|
|
|
+ <image src="/static/image/car-insure/rotate2.png" mode=""></image>
|
|
|
+ 右转
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view style="padding: 0 15px;">
|
|
|
+ <uni-forms-item name="name" required label="姓名: ">
|
|
|
+ <input class="uni-input-input textColor" placeholder="请输入姓名"
|
|
|
+ v-model="policyHolderInfo.name" maxlength="5" placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item name="identifyType" required label="证件类型:">
|
|
|
+ <view class="dis a-c j-end" style="width:100%;height: 100%;">
|
|
|
+ 身份证
|
|
|
+ </view>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required name="identifyNumber" label="证件号: ">
|
|
|
+ <input class="uni-input-input textColor" placeholder="请输入证件号"
|
|
|
+ v-model="policyHolderInfo.identifyNumber" maxlength="18"
|
|
|
+ @blur="binddata('identifyNumber', $event.detail.value,'policyHolderInfo')"
|
|
|
+ placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required name="age" label="年龄: ">
|
|
|
+ <input class="uni-input-input textColor" disabled placeholder="请输入年龄"
|
|
|
+ v-model="policyHolderInfo.age" maxlength="18" placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item name="gender" required label="性别:">
|
|
|
+ <u-input v-model="policyHolderInfo.gender" type="select"
|
|
|
+ :select-open="applicantgenderShow" @click="applicantgenderShow = true"
|
|
|
+ :custom-style="{textAlign:'right'}" placeholder-style="color:#808080"
|
|
|
+ placeholder="请选择性别" />
|
|
|
+ <u-select mode="single-column" :list="genderList" v-model="applicantgenderShow"
|
|
|
+ @confirm="e=>genderConfirm(e,'policyHolderInfo')"></u-select>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required name="mobile" label="手机号: ">
|
|
|
+ <input class="uni-input-input textColor" placeholder="请输入手机号"
|
|
|
+ v-model="policyHolderInfo.mobile" maxlength="11"
|
|
|
+ placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required name="addr" label="地址: ">
|
|
|
+ <u-input type="textarea" v-model="policyHolderInfo.addr"
|
|
|
+ :custom-style="{textAlign:'right'}" placeholder-style="color:#808080"
|
|
|
+ placeholder="请输入地址" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item name="email" label="邮箱: ">
|
|
|
+ <input class="uni-input-input textColor" placeholder="请输入邮箱"
|
|
|
+ v-model="policyHolderInfo.email" placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required label="有效期起期" name="identifyValidDate">
|
|
|
+ <u-input type="select" :select-open="applicantDateShow"
|
|
|
+ v-model="policyHolderInfo.identifyValidDate" placeholder="请选择有效期起期"
|
|
|
+ @click="applicantDateShow = true" :custom-style="{textAlign:'right'}"
|
|
|
+ placeholder-style="color:#808080"></u-input>
|
|
|
+ <u-picker v-model="applicantDateShow" mode="time" :params="params"
|
|
|
+ @confirm="e=> Dateconfirm(e,'policyHolderInfo','identifyValidDate')"></u-picker>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
|
|
|
+ <u-input v-model="policyHolderInfo.identifyValidEndDate"
|
|
|
+ :custom-style="{textAlign:'right'}" type="select" placeholder="请输入有效期止期"
|
|
|
+ :select-open="applicantEndDateShow" placeholder-style="color:#808080"
|
|
|
+ @click="applicantEndDateShow=true"></u-input>
|
|
|
+ <u-select mode="single-column" :list="endDateList" v-model="applicantEndDateShow"
|
|
|
+ @confirm="e=>endDateConfirm(e,'policyHolderInfo','identifyValidDate','identifyValidEndDate')"></u-select>
|
|
|
+ </uni-forms-item>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <uni-forms :rules="applicantRules" :value="policyHolderInfo" ref="applicantForm"
|
|
|
- validate-trigger="bind" err-show-type="toast" label-width="80">
|
|
|
- <uni-forms-item name="name" required label="姓名: ">
|
|
|
- <input class="uni-input-input textColor" placeholder="请输入姓名" v-model="policyHolderInfo.name"
|
|
|
- maxlength="5" placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item name="identifyType" required label="证件类型:">
|
|
|
- <view class="dis a-c j-end" style="width:100%;height: 100%;">
|
|
|
- 身份证
|
|
|
- </view>
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required name="identifyNumber" label="证件号: ">
|
|
|
- <input class="uni-input-input textColor" placeholder="请输入证件号"
|
|
|
- v-model="policyHolderInfo.identifyNumber" maxlength="18"
|
|
|
- @blur="binddata('identifyNumber', $event.detail.value,'policyHolderInfo')"
|
|
|
- placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required name="age" label="年龄: ">
|
|
|
- <input class="uni-input-input textColor" disabled placeholder="请输入年龄"
|
|
|
- v-model="policyHolderInfo.age" maxlength="18" placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item name="gender" required label="性别:">
|
|
|
- <u-input v-model="policyHolderInfo.gender" type="select" :select-open="ownergenderShow"
|
|
|
- @click="ownergenderShow = true" :custom-style="{textAlign:'right'}"
|
|
|
- placeholder-style="color:#808080" placeholder="请选择性别" />
|
|
|
- <u-select mode="single-column" :list="genderList" v-model="ownergenderShow"
|
|
|
- @confirm="e=>genderConfirm(e,'policyHolderInfo')"></u-select>
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required name="mobile" label="手机号: ">
|
|
|
- <input class="uni-input-input textColor" placeholder="请输入手机号"
|
|
|
- v-model="policyHolderInfo.mobile" maxlength="11" placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required name="addr" label="地址: ">
|
|
|
- <u-input type="textarea" v-model="policyHolderInfo.addr" :custom-style="{textAlign:'right'}"
|
|
|
- placeholder-style="color:#808080" placeholder="请输入地址" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item name="email" label="邮箱: ">
|
|
|
- <input class="uni-input-input textColor" placeholder="请输入邮箱"
|
|
|
- v-model="policyHolderInfo.email" placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required label="有效期起期" name="identifyValidDate">
|
|
|
- <u-input type="select" :select-open="applicantDateShow"
|
|
|
- v-model="policyHolderInfo.identifyValidDate" placeholder="请选择有效期起期"
|
|
|
- @click="applicantDateShow = true" :custom-style="{textAlign:'right'}"
|
|
|
- placeholder-style="color:#808080"></u-input>
|
|
|
- <u-picker v-model="applicantDateShow" mode="time" :params="params"
|
|
|
- @confirm="e=> Dateconfirm(e,'policyHolderInfo','identifyValidDate')"></u-picker>
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
|
|
|
- <u-input v-model="policyHolderInfo.identifyValidEndDate" :custom-style="{textAlign:'right'}"
|
|
|
- type="select" placeholder="请输入有效期止期" :select-open="applicantEndDateShow"
|
|
|
- placeholder-style="color:#808080" @click="applicantEndDateShow=true"></u-input>
|
|
|
- <u-select mode="single-column" :list="endDateList" v-model="applicantEndDateShow"
|
|
|
- @confirm="e=>endDateConfirm(e,'policyHolderInfo','identifyValidDate','identifyValidEndDate')"></u-select>
|
|
|
- </uni-forms-item>
|
|
|
- </uni-forms>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </uni-forms>
|
|
|
</view>
|
|
|
<view class="Information " style="padding-bottom: 10px;border-bottom: 1px solid #f2f2f2;">
|
|
|
<view class="dis j-s a-c">
|
|
@@ -344,101 +394,108 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-show="Insuredholder=='99'" class="collapse">
|
|
|
- <view class="top-ocr dis j-c a-c" v-show="!Insuredimg">
|
|
|
- <image src="../../static/image/car-insure/Frame1.png" mode="">
|
|
|
- </image>
|
|
|
- <text @tap="ocrIdentify('insuredPersonInfo')" style="margin-left: 5px;">点击上传/拍摄行驶证 自动填写信息</text>
|
|
|
- </view>
|
|
|
- <view v-show="!InsuredExpand && !Insuredimg" class="btn-collapse dis a-c j-c"
|
|
|
- @click="expand('InsuredExpand')">
|
|
|
- <text>展开手动输入被保人信息</text>
|
|
|
- <u-icon name="arrow-down" size="30" color="rgb(60 60 60 / 60%)" style="margin-left: 5px;"></u-icon>
|
|
|
- </view>
|
|
|
- <view v-show='InsuredExpand'>
|
|
|
- <view v-if=" Insuredimg" class="movable-view dis f-c a-c">
|
|
|
- <movable-area>
|
|
|
- <movable-view direction="all" out-of-bounds :scale="true">
|
|
|
- <image :src="Insuredimg" mode=""
|
|
|
- :style="{width:'100%',height:'100%',transform:`rotate(-${user3deg}deg)`}">
|
|
|
- </image>
|
|
|
- </movable-view>
|
|
|
- </movable-area>
|
|
|
- <view class="operate-img dis j-s a-c">
|
|
|
- <view class="dis a-c" @tap="rotatefront('user3deg')">
|
|
|
- <image src="/static/image/car-insure/rotate1.png" mode=""></image>
|
|
|
- 左转
|
|
|
- </view>
|
|
|
- <view class="dis a-c" @tap="ocrIdentify('insuredPersonInfo')">
|
|
|
- <image src="/static/image/car-insure/upload.png" mode=""></image>
|
|
|
- 上传
|
|
|
- </view>
|
|
|
- <view class="dis a-c" @tap="rotateback('user3deg')">
|
|
|
- <image src="/static/image/car-insure/rotate2.png" mode=""></image>
|
|
|
- 右转
|
|
|
+ <uni-forms :rules="InsuredRules" :value="insuredPersonInfo" ref="InsuredForm" validate-trigger="bind"
|
|
|
+ err-show-type="toast" label-width="80">
|
|
|
+ <view v-show="Insuredholder=='99'" class="collapse">
|
|
|
+ <view class="top-ocr dis j-c a-c" v-show="!Insuredimg">
|
|
|
+ <image src="../../static/image/car-insure/Frame1.png" mode="">
|
|
|
+ </image>
|
|
|
+ <text @tap="ocrIdentify('insuredPersonInfo')" style="margin-left: 5px;">点击上传/拍摄身份证 自动填写信息</text>
|
|
|
+ </view>
|
|
|
+ <view v-show="!InsuredExpand && !Insuredimg" class="btn-collapse dis a-c j-c"
|
|
|
+ @click="expand('InsuredExpand')">
|
|
|
+ <text>展开手动输入被保人信息</text>
|
|
|
+ <u-icon name="arrow-down" size="30" color="rgb(60 60 60 / 60%)"
|
|
|
+ style="margin-left: 5px;"></u-icon>
|
|
|
+ </view>
|
|
|
+ <view v-show='InsuredExpand'>
|
|
|
+ <view v-show=" Insuredimg" class="movable-view dis f-c a-c">
|
|
|
+ <movable-area>
|
|
|
+ <movable-view direction="all" out-of-bounds :scale="true">
|
|
|
+ <image :src="Insuredimg" mode=""
|
|
|
+ :style="{width:'100%',height:'100%',transform:`rotate(-${user3deg}deg)`}">
|
|
|
+ </image>
|
|
|
+ </movable-view>
|
|
|
+ </movable-area>
|
|
|
+ <view class="operate-img dis j-s a-c">
|
|
|
+ <view class="dis a-c" @tap="rotatefront('user3deg')">
|
|
|
+ <image src="/static/image/car-insure/rotate1.png" mode=""></image>
|
|
|
+ 左转
|
|
|
+ </view>
|
|
|
+ <view class="dis a-c" @tap="ocrIdentify('insuredPersonInfo')">
|
|
|
+ <image src="/static/image/car-insure/upload.png" mode=""></image>
|
|
|
+ 上传
|
|
|
+ </view>
|
|
|
+ <view class="dis a-c" @tap="rotateback('user3deg')">
|
|
|
+ <image src="/static/image/car-insure/rotate2.png" mode=""></image>
|
|
|
+ 右转
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view style="padding: 0 15px;">
|
|
|
+ <uni-forms-item name="name" required label="姓名: ">
|
|
|
+ <input class="uni-input-input textColor" placeholder="请输入姓名"
|
|
|
+ v-model="insuredPersonInfo.name" maxlength="5"
|
|
|
+ placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item name="identifyType" required label="证件类型:">
|
|
|
+ <view class="dis a-c j-end" style="width:100%;height: 100%;">
|
|
|
+ 身份证
|
|
|
+ </view>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required name="identifyNumber" label="证件号: ">
|
|
|
+ <input class="uni-input-input textColor" placeholder="请输入证件号"
|
|
|
+ v-model="insuredPersonInfo.identifyNumber" maxlength="18"
|
|
|
+ @blur="binddata('identifyNumber', $event.detail.value,'insuredPersonInfo')"
|
|
|
+ placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required name="age" label="年龄: ">
|
|
|
+ <input class="uni-input-input textColor" disabled placeholder="请输入年龄"
|
|
|
+ v-model="insuredPersonInfo.age" maxlength="18"
|
|
|
+ placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item name="gender" required label="性别:">
|
|
|
+ <u-input v-model="insuredPersonInfo.gender" type="select"
|
|
|
+ :select-open="InsuredgenderShow" @click="InsuredgenderShow = true"
|
|
|
+ :custom-style="{textAlign:'right'}" placeholder-style="color:#808080"
|
|
|
+ placeholder="请选择性别" />
|
|
|
+ <u-select mode="single-column" :list="genderList" v-model="InsuredgenderShow"
|
|
|
+ @confirm="e=>genderConfirm(e,'insuredPersonInfo')"></u-select>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required name="mobile" label="手机号: ">
|
|
|
+ <input class="uni-input-input textColor" placeholder="请输入手机号"
|
|
|
+ v-model="insuredPersonInfo.mobile" maxlength="11"
|
|
|
+ placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required name="addr" label="地址: ">
|
|
|
+ <u-input type="textarea" v-model="insuredPersonInfo.addr"
|
|
|
+ :custom-style="{textAlign:'right'}" :auto-height="true"
|
|
|
+ placeholder-style="color:#808080" placeholder="请输入地址" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item name="email" label="邮箱: ">
|
|
|
+ <input class="uni-input-input textColor" placeholder="请输入邮箱"
|
|
|
+ v-model="insuredPersonInfo.email" placeholder-style="font-size:28upx" />
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required label="有效期起期" name="identifyValidDate">
|
|
|
+ <u-input type="select" :select-open="InsuredDateShow"
|
|
|
+ v-model="insuredPersonInfo.identifyValidDate" placeholder="请选择有效期起期"
|
|
|
+ @click="InsuredDateShow = true" :custom-style="{textAlign:'right'}"
|
|
|
+ placeholder-style="color:#808080"></u-input>
|
|
|
+ <u-picker v-model="InsuredDateShow" mode="time" :params="params"
|
|
|
+ @confirm="e=> Dateconfirm(e,'insuredPersonInfo','identifyValidDate')"></u-picker>
|
|
|
+ </uni-forms-item>
|
|
|
+ <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
|
|
|
+ <u-input v-model="insuredPersonInfo.identifyValidEndDate"
|
|
|
+ :custom-style="{textAlign:'right'}" type="select" placeholder="请输入有效期止期"
|
|
|
+ :select-open="InsuredEndDateShow" placeholder-style="color:#808080"
|
|
|
+ @click="InsuredEndDateShow=true"></u-input>
|
|
|
+ <u-select mode="single-column" :list="endDateList" v-model="InsuredEndDateShow"
|
|
|
+ @confirm="e=>endDateConfirm(e,'insuredPersonInfo','identifyValidDate','identifyValidEndDate')"></u-select>
|
|
|
+ </uni-forms-item>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <uni-forms :rules="InsuredRules" :value="insuredPersonInfo" ref="InsuredForm"
|
|
|
- validate-trigger="bind" err-show-type="toast" label-width="80">
|
|
|
- <uni-forms-item name="name" required label="姓名: ">
|
|
|
- <input class="uni-input-input textColor" placeholder="请输入姓名"
|
|
|
- v-model="insuredPersonInfo.name" maxlength="5" placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item name="identifyType" required label="证件类型:">
|
|
|
- <view class="dis a-c j-end" style="width:100%;height: 100%;">
|
|
|
- 身份证
|
|
|
- </view>
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required name="identifyNumber" label="证件号: ">
|
|
|
- <input class="uni-input-input textColor" placeholder="请输入证件号"
|
|
|
- v-model="insuredPersonInfo.identifyNumber" maxlength="18"
|
|
|
- @blur="binddata('identifyNumber', $event.detail.value,'insuredPersonInfo')"
|
|
|
- placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required name="age" label="年龄: ">
|
|
|
- <input class="uni-input-input textColor" disabled placeholder="请输入年龄"
|
|
|
- v-model="insuredPersonInfo.age" maxlength="18" placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item name="gender" required label="性别:">
|
|
|
- <u-input v-model="insuredPersonInfo.gender" type="select" :select-open="ownergenderShow"
|
|
|
- @click="ownergenderShow = true" :custom-style="{textAlign:'right'}"
|
|
|
- placeholder-style="color:#808080" placeholder="请选择性别" />
|
|
|
- <u-select mode="single-column" :list="genderList" v-model="ownergenderShow"
|
|
|
- @confirm="e=>genderConfirm(e,'insuredPersonInfo')"></u-select>
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required name="mobile" label="手机号: ">
|
|
|
- <input class="uni-input-input textColor" placeholder="请输入手机号"
|
|
|
- v-model="insuredPersonInfo.mobile" maxlength="11" placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required name="addr" label="地址: ">
|
|
|
- <u-input type="textarea" v-model="insuredPersonInfo.addr"
|
|
|
- :custom-style="{textAlign:'right'}" :auto-height="true"
|
|
|
- placeholder-style="color:#808080" placeholder="请输入地址" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item name="email" label="邮箱: ">
|
|
|
- <input class="uni-input-input textColor" placeholder="请输入邮箱"
|
|
|
- v-model="insuredPersonInfo.email" placeholder-style="font-size:28upx" />
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required label="有效期起期" name="identifyValidDate">
|
|
|
- <u-input type="select" :select-open="InsuredDateShow"
|
|
|
- v-model="insuredPersonInfo.identifyValidDate" placeholder="请选择有效期起期"
|
|
|
- @click="InsuredDateShow = true" :custom-style="{textAlign:'right'}"
|
|
|
- placeholder-style="color:#808080"></u-input>
|
|
|
- <u-picker v-model="InsuredDateShow" mode="time" :params="params"
|
|
|
- @confirm="e=> Dateconfirm(e,'insuredPersonInfo','identifyValidDate')"></u-picker>
|
|
|
- </uni-forms-item>
|
|
|
- <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
|
|
|
- <u-input v-model="insuredPersonInfo.identifyValidEndDate"
|
|
|
- :custom-style="{textAlign:'right'}" type="select" placeholder="请输入有效期止期"
|
|
|
- :select-open="InsuredEndDateShow" placeholder-style="color:#808080"
|
|
|
- @click="InsuredEndDateShow=true"></u-input>
|
|
|
- <u-select mode="single-column" :list="endDateList" v-model="InsuredEndDateShow"
|
|
|
- @confirm="e=>endDateConfirm(e,'insuredPersonInfo','identifyValidDate','identifyValidEndDate')"></u-select>
|
|
|
- </uni-forms-item>
|
|
|
- </uni-forms>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </uni-forms>
|
|
|
</view>
|
|
|
<view class="footer-btn">
|
|
|
<u-button type="primary" style="background:#0052FF;" @tap="next">下一步</u-button>
|
|
@@ -503,11 +560,11 @@
|
|
|
firstBeneMan: "", //第一受益人
|
|
|
noLicenseFlag: false, //是否新车
|
|
|
cartype: "K33", //客车A0 货车H0
|
|
|
- carnature: "", //使用性质 家庭自用8A 非营业企业8B 非营业党政机关,事业团体8C 非营业货车8D
|
|
|
+ carnature: "02", //使用性质 家庭自用8A 非营业企业8B 非营业党政机关,事业团体8C 非营业货车8D
|
|
|
property: "1", //所属性质 1个人 2企业 3个人
|
|
|
outOfInsurance: false, //脱保
|
|
|
- secondhandcarflag: false, //二手车
|
|
|
- vehicleUse: "" //车辆用途
|
|
|
+ usedCar: false, //二手车
|
|
|
+ vehicleUse: "05" //车辆用途
|
|
|
},
|
|
|
ownerInfo: {
|
|
|
name: "",
|
|
@@ -555,7 +612,7 @@
|
|
|
//影像信息
|
|
|
carimg: "", //显示图片
|
|
|
ownerimg: "", //显示图片
|
|
|
- applicantimg: "", //显示图片
|
|
|
+ policyHolderimg: "", //显示图片
|
|
|
Insuredimg: "", //显示图片
|
|
|
OCRShow: false,
|
|
|
tabsCurrent: 0,
|
|
@@ -715,7 +772,7 @@
|
|
|
}]
|
|
|
},
|
|
|
},
|
|
|
- applicantRules: {
|
|
|
+ policyHolderRules: {
|
|
|
name: {
|
|
|
rules: [{
|
|
|
required: true,
|
|
@@ -858,6 +915,7 @@
|
|
|
}]
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
endYear: Year,
|
|
|
endMonth: Month,
|
|
|
ownergenderShow: false, //性别选择
|
|
@@ -875,7 +933,7 @@
|
|
|
identifyType: "身份证",
|
|
|
carExpand: false,
|
|
|
ownersExpand: false,
|
|
|
- applicantExpand: false,
|
|
|
+ policyHolderExpand: false,
|
|
|
InsuredExpand: false,
|
|
|
carInfoShow: true, //车辆信息显示
|
|
|
headerText: '信息录入',
|
|
@@ -883,7 +941,7 @@
|
|
|
backgroundColor: 'transparent',
|
|
|
},
|
|
|
prevScrollTop: 0,
|
|
|
- applicantholder: "1",
|
|
|
+ policyHolderholder: "1",
|
|
|
Insuredholder: "2",
|
|
|
holderstatusList: [{
|
|
|
label: '同车主',
|
|
@@ -938,6 +996,24 @@
|
|
|
user2deg: 0, //旋转角度
|
|
|
user3deg: 0, //旋转角度
|
|
|
routepage: "",
|
|
|
+ carInfo1: {
|
|
|
+ carnature: "非营业",
|
|
|
+ energyType: "燃油",
|
|
|
+ vehicleUse: "家庭自用",
|
|
|
+ cartype: "轿车",
|
|
|
+ cimodelclass: "客车",
|
|
|
+ },
|
|
|
+ carnatureShow: false, //使用性质
|
|
|
+ energyTypeShow: false, //能源种类
|
|
|
+ vehicleUseShow: false, //车辆用途
|
|
|
+ cartypeShow: false, //车辆类型
|
|
|
+ cimodelclassShow: false, //车辆种类
|
|
|
+ natureOfVehicleUseoptions: [],
|
|
|
+ vehicleTypeoptions: [],
|
|
|
+ trafficManagementVehicleTypeoptions: [],
|
|
|
+ energyTypeoptions: [],
|
|
|
+ businessVehicleUseoptions: [],
|
|
|
+ outOfBusinessVehicleUseoptions: [],
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -964,6 +1040,7 @@
|
|
|
|
|
|
},
|
|
|
onLoad(params) {
|
|
|
+
|
|
|
let pages = getCurrentPages(); // 当前页面路由
|
|
|
if (pages.length > 1) {
|
|
|
let beforePage = pages[pages.length - 2].route; // 上一个页面路由
|
|
@@ -979,11 +1056,11 @@
|
|
|
if (!!data) {
|
|
|
let info = JSON.parse(JSON.stringify(data));
|
|
|
let page = this.routepage;
|
|
|
- console.log(page);
|
|
|
switch (page) {
|
|
|
case 'pages/carInsure2/entry':
|
|
|
this.carInfoShow = false;
|
|
|
this.carInfo = info.carInfo; //车辆信息
|
|
|
+ this.ownerInfo.name = info.carInfo.carOwner; //车主
|
|
|
this.carInfoPositiveList = info.carInfoPositiveList; //车辆
|
|
|
break;
|
|
|
case 'pages/carInsure2/quote':
|
|
@@ -1000,6 +1077,10 @@
|
|
|
this.insuredPersonInfoPositiveList = info.insuredPersonInfoPositiveList; //被保人
|
|
|
this.carExpand = true;
|
|
|
this.ownersExpand = true;
|
|
|
+ this.policyHolderExpand = true;
|
|
|
+ this.InsuredExpand = true;
|
|
|
+ this.policyHolderholder = "99";
|
|
|
+ this.Insuredholder = "99";
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -1010,6 +1091,12 @@
|
|
|
|
|
|
})
|
|
|
}
|
|
|
+ this.getDicType("businessVehicleUse"); //车辆用途(营业)
|
|
|
+ this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
|
|
|
+ this.getDicType("natureOfVehicleUse"); //车辆性质
|
|
|
+ this.getDicType("vehicleType"); //车辆种类
|
|
|
+ this.getDicType("trafficManagementVehicleType"); //车辆类型
|
|
|
+ this.getDicType("energyType"); //能源种类
|
|
|
},
|
|
|
onPageScroll(e) {
|
|
|
this.handleScroll(e);
|
|
@@ -1025,6 +1112,28 @@
|
|
|
uni.$off('scroll', this.handleScroll);
|
|
|
},
|
|
|
methods: {
|
|
|
+ async getDicType(type) {
|
|
|
+ let res = await this.$http.get('/sysDict/dictDetails/' + type);
|
|
|
+ if (res.code == 200) {
|
|
|
+ this[type + 'options'] = res.data.ddList;
|
|
|
+ // if (type == "trafficManagementVehicleType") {
|
|
|
+ // this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions, this
|
|
|
+ // .carInfo
|
|
|
+ // .cartype)
|
|
|
+ // this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
|
|
|
+ // this
|
|
|
+ // .carInfo
|
|
|
+ // .cimodelclass)
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ dictionaryConfirm(e, name) {
|
|
|
+ if (name == 'carnature') {
|
|
|
+ this.carInfo1['vehicleUse'] = "";
|
|
|
+ }
|
|
|
+ this.carInfo[name] = e[0].value;
|
|
|
+ this.carInfo1[name] = e[0].label;
|
|
|
+ },
|
|
|
async toChooseVin(cctype) {
|
|
|
if (cctype == '' || cctype == null) {
|
|
|
return uni.showToast({
|
|
@@ -1083,6 +1192,7 @@
|
|
|
this.carExpand = true;
|
|
|
},
|
|
|
ownerInfoCallback(obj) {
|
|
|
+ console.log(obj);
|
|
|
this.ownerimg = obj.img;
|
|
|
this.ownerInfoPositiveList = obj.ImgList;
|
|
|
Object.assign(this.ownerInfo, obj.Info);
|
|
@@ -1090,13 +1200,15 @@
|
|
|
this.ownersExpand = true;
|
|
|
},
|
|
|
applicantInfoCallback(obj) {
|
|
|
- this.applicantimg = obj.img;
|
|
|
+ console.log(obj);
|
|
|
+ this.policyHolderimg = obj.img;
|
|
|
this.policyHolderInfoPositiveList = obj.ImgList;
|
|
|
Object.assign(this.policyHolderInfo, obj.Info);
|
|
|
this.OCRShow = false;
|
|
|
- this.applicantExpand = true;
|
|
|
+ this.policyHolderExpand = true;
|
|
|
},
|
|
|
InsuredInfoCallback(obj) {
|
|
|
+ console.log(obj);
|
|
|
this.Insuredimg = obj.img;
|
|
|
this.insuredPersonInfoPositiveList = obj.ImgList;
|
|
|
Object.assign(this.insuredPersonInfo, obj.Info);
|
|
@@ -1129,8 +1241,8 @@
|
|
|
//转变大写(车型/车架号/发动机号)
|
|
|
upperCaseType(type) {
|
|
|
this.carInfo[type] = this.carInfo[type].toUpperCase();
|
|
|
- if (type == 'vinNo') {
|
|
|
- this.carInfo.frameNo = this.carInfo.vinNo.trim();
|
|
|
+ if (type == 'frameNo') {
|
|
|
+ this.carInfo.vinNo = this.carInfo.frameNo.trim();
|
|
|
}
|
|
|
},
|
|
|
//身份证止期(10/20/长期)处理
|
|
@@ -1172,7 +1284,7 @@
|
|
|
//校验事件
|
|
|
next() {
|
|
|
//投保人同车主
|
|
|
- if (this.applicantholder == '1') {
|
|
|
+ if (this.policyHolderholder == '1') {
|
|
|
this.setPersonInfoAndImageType('ownerInfo', 'policyHolderInfo', "C03");
|
|
|
}
|
|
|
if (this.Insuredholder == '1') {
|
|
@@ -1181,50 +1293,57 @@
|
|
|
if (this.Insuredholder == '2') {
|
|
|
this.setPersonInfoAndImageType('policyHolderInfo', 'insuredPersonInfo', "C04");
|
|
|
}
|
|
|
- this.$refs.carForm.submit().then(res => {
|
|
|
- this.$refs.ownerForm.submit().then(res1 => {
|
|
|
- this.$refs.applicantForm.submit().then(res2 => {
|
|
|
- this.$refs.InsuredForm.submit().then(res3 => {
|
|
|
- this.navigate({
|
|
|
- url: '/pages/carInsure2/insureItems',
|
|
|
- success: (res) => {
|
|
|
- res.eventChannel.emit(
|
|
|
- "acceptData", {
|
|
|
- carInfo: this
|
|
|
- .carInfo,
|
|
|
- ownerInfo: this
|
|
|
- .ownerInfo,
|
|
|
- policyHolderInfo: this
|
|
|
- .policyHolderInfo,
|
|
|
- insuredPersonInfo: this
|
|
|
- .insuredPersonInfo,
|
|
|
- riskList: this
|
|
|
- .riskList,
|
|
|
- kindList: this
|
|
|
- .kindList,
|
|
|
- carInfoPositiveList: this
|
|
|
- .carInfoPositiveList, //车辆
|
|
|
- ownerInfoPositiveList: this
|
|
|
- .ownerInfoPositiveList, //车主
|
|
|
- policyHolderInfoPositiveList: this
|
|
|
- .policyHolderInfoPositiveList, //投保人
|
|
|
- insuredPersonInfoPositiveList: this
|
|
|
- .insuredPersonInfoPositiveList, //被保人
|
|
|
- })
|
|
|
+ if (this.ownerInfo.name && this.policyHolderInfo.name && this.insuredPersonInfo.name) {
|
|
|
+ this.navigate({
|
|
|
+ url: '/pages/carInsure2/insureItems',
|
|
|
+ success: (res) => {
|
|
|
+ res.eventChannel.emit(
|
|
|
+ "acceptData", {
|
|
|
+ carInfo: this
|
|
|
+ .carInfo,
|
|
|
+ ownerInfo: this
|
|
|
+ .ownerInfo,
|
|
|
+ policyHolderInfo: this
|
|
|
+ .policyHolderInfo,
|
|
|
+ insuredPersonInfo: this
|
|
|
+ .insuredPersonInfo,
|
|
|
+ riskList: this
|
|
|
+ .riskList,
|
|
|
+ kindList: this
|
|
|
+ .kindList,
|
|
|
+ carInfoPositiveList: this
|
|
|
+ .carInfoPositiveList, //车辆
|
|
|
+ ownerInfoPositiveList: this
|
|
|
+ .ownerInfoPositiveList, //车主
|
|
|
+ policyHolderInfoPositiveList: this
|
|
|
+ .policyHolderInfoPositiveList, //投保人
|
|
|
+ insuredPersonInfoPositiveList: this
|
|
|
+ .insuredPersonInfoPositiveList, //被保人
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+ }, "navigateTo", true);
|
|
|
|
|
|
- }
|
|
|
- }, "navigateTo", true);
|
|
|
+ } else {
|
|
|
+ this.$refs.carForm.submit().then(res => {
|
|
|
+ this.$refs.ownerForm.submit().then(res1 => {
|
|
|
+ this.$refs.policyHolderForm.submit().then(res2 => {
|
|
|
+ this.$refs.InsuredForm.submit().then(res3 => {}).catch(err => {
|
|
|
+ console.log('表单错误信息:', err);
|
|
|
+ })
|
|
|
+ }).catch(err => {
|
|
|
+ console.log('表单错误信息:', err);
|
|
|
})
|
|
|
- })
|
|
|
- })
|
|
|
- })
|
|
|
+ }).catch(err => {})
|
|
|
+ }).catch(err => {})
|
|
|
+ }
|
|
|
},
|
|
|
expand(int) {
|
|
|
this[int] = true;
|
|
|
},
|
|
|
//投保人同车主
|
|
|
applicantholderClick(value) {
|
|
|
- this.applicantholder = value;
|
|
|
+ this.policyHolderholder = value;
|
|
|
if (value == '99') {
|
|
|
for (let key in this.policyHolderInfo) {
|
|
|
if (key !== 'identifyType') {
|
|
@@ -1310,7 +1429,7 @@
|
|
|
}
|
|
|
|
|
|
.page {
|
|
|
- min-height: 100%;
|
|
|
+ height: auto;
|
|
|
background: #F8FAFE;
|
|
|
padding: 12px 16px 50px 16px;
|
|
|
}
|