|
@@ -178,16 +178,17 @@
|
|
|
inactive-color="#eee" size='30'
|
|
|
@change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
</view>
|
|
|
- <view class="" v-if="renshouaccidentalDrivingVo.id">
|
|
|
+ <view class=""
|
|
|
+ v-if="renshouaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="renshouPopupshow=true">
|
|
|
- <text>{{renshouaccidentalDrivingVo.productName}}</text>
|
|
|
+ <text>{{renshouaccidentalDrivingVo.projectName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
<view class=" dis j-s a-c">
|
|
|
<view class="">
|
|
|
<text>保费:</text>
|
|
|
<text
|
|
|
- style="color: #ee7000;">¥{{renshouaccidentalDrivingVo.totalPremium*renshouaccidentalDrivingVo.quantity}}.00起</text>
|
|
|
+ style="color: #ee7000;">¥{{renshouaccidentalDrivingVo.sumPremium*renshouaccidentalDrivingVo.quantity}}.00起</text>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<text>份数:</text>
|
|
@@ -208,23 +209,23 @@
|
|
|
inactive-color="#eee" size='30'
|
|
|
@change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
</view>
|
|
|
- <view class="" v-if="zhongmeiaccidentalDrivingVo.rideRiskCode">
|
|
|
+ <view class=""
|
|
|
+ v-if="zhongmeiaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="zhongmeiPopupshow=true">
|
|
|
- <text>{{zhongmeiaccidentalDrivingVo.rideRiskName}}</text>
|
|
|
+ <text>{{zhongmeiaccidentalDrivingVo.projectName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
<view class=" dis j-s a-c">
|
|
|
<view class="">
|
|
|
<text>保费:</text>
|
|
|
<text
|
|
|
- style="color: #ee7000;">¥{{zhongmeiaccidentalDrivingVo.unitPremium*zhongmeiaccidentalDrivingVo.quantity}}</text>
|
|
|
+ style="color: #ee7000;">¥{{zhongmeiaccidentalDrivingVo.sumPremium*zhongmeiaccidentalDrivingVo.quantity}}</text>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<text>份数:</text>
|
|
|
<u-number-box v-model="zhongmeiaccidentalDrivingVo.quantity"
|
|
|
- :min="1" :max="Number(zhongmeiaccidentalDrivingVo.maxQuantity)"
|
|
|
- :disabled-input="true" :input-width="70" :input-height="44"
|
|
|
- :long-press="false" size="26"></u-number-box>
|
|
|
+ :min="1" :max="10" :disabled-input="true" :input-width="70"
|
|
|
+ :input-height="44" :long-press="false" size="26"></u-number-box>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -256,9 +257,7 @@
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<text>份数:</text>
|
|
|
- <u-number-box v-model="item.quantity" :min="1"
|
|
|
- :max="item.maxQuantity"
|
|
|
- :disabled-input="item.maxQuantity==1?true :false"
|
|
|
+ <u-number-box v-model="item.quantity" :min="1" :max="1"
|
|
|
:input-width="70" :input-height="44" size="26"
|
|
|
:long-press="false"></u-number-box>
|
|
|
</view>
|
|
@@ -306,16 +305,17 @@
|
|
|
inactive-color="#eee" size='30'
|
|
|
@change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
</view>
|
|
|
- <view class="" v-if="hengbangaccidentalDrivingVo.programcode">
|
|
|
+ <view class=""
|
|
|
+ v-if="hengbangaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="hengbangPopupshow=true">
|
|
|
- <text>{{hengbangaccidentalDrivingVo.programname}}</text>
|
|
|
+ <text>{{hengbangaccidentalDrivingVo.projectName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
<view class=" dis j-s a-c">
|
|
|
<view class="">
|
|
|
<text>保费:</text>
|
|
|
<text
|
|
|
- style="color: #ee7000;">¥{{hengbangaccidentalDrivingVo.sumgrosspremium*hengbangaccidentalDrivingVo.quantity}}.00</text>
|
|
|
+ style="color: #ee7000;">¥{{hengbangaccidentalDrivingVo.sumPremium*hengbangaccidentalDrivingVo.quantity}}.00</text>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<text>份数:</text>
|
|
@@ -338,23 +338,23 @@
|
|
|
inactive-color="#eee" size='30'
|
|
|
@change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
</view>
|
|
|
- <view class="" v-if="taipingaccidentalDrivingVo.id">
|
|
|
+ <view class=""
|
|
|
+ v-if="taipingaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="taipingPopupshow=true">
|
|
|
- <text>{{taipingaccidentalDrivingVo.rationName}}</text>
|
|
|
+ <text>{{taipingaccidentalDrivingVo.projectName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
<view class=" dis j-s a-c">
|
|
|
<view class="">
|
|
|
<text>保费:</text>
|
|
|
<text
|
|
|
- style="color: #ee7000;">¥{{taipingaccidentalDrivingVo.price*taipingaccidentalDrivingVo.quantity}}.00</text>
|
|
|
+ style="color: #ee7000;">¥{{taipingaccidentalDrivingVo.sumPremium*taipingaccidentalDrivingVo.quantity}}.00</text>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<text>份数:</text>
|
|
|
<u-number-box v-model="taipingaccidentalDrivingVo.quantity" :min="1"
|
|
|
- :max="taipingaccidentalDrivingVo.maxQuantity"
|
|
|
- :disabled-input="true" :input-width="70" :input-height="44"
|
|
|
- :long-press="false" size="26"></u-number-box>
|
|
|
+ :max="10" :disabled-input="true" :input-width="70"
|
|
|
+ :input-height="44" :long-press="false" size="26"></u-number-box>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -369,9 +369,10 @@
|
|
|
inactive-color="#eee" size='30'
|
|
|
@change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
</view>
|
|
|
- <view class="" v-if="zhonganaccidentalDrivingVo.combination">
|
|
|
+ <view class=""
|
|
|
+ v-if="zhonganaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="zhonganPopupshow=true">
|
|
|
- <text>{{zhonganaccidentalDrivingVo.name}}</text>
|
|
|
+ <text>{{zhonganaccidentalDrivingVo.projectName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
<view class=" dis j-s a-c">
|
|
@@ -392,14 +393,15 @@
|
|
|
inactive-color="#eee" size='30'
|
|
|
@change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
</view>
|
|
|
- <view class="" v-if="huanongaccidentalDrivingVo.planCode">
|
|
|
+ <view class=""
|
|
|
+ v-if="huanongaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="huanongPopupshow=true">
|
|
|
- <text>{{huanongaccidentalDrivingVo.planName}}</text>
|
|
|
+ <text>{{huanongaccidentalDrivingVo.projectName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
<view class=" dis j-s a-c">
|
|
|
<text>份数:</text>
|
|
|
- <u-number-box v-model="huanongaccidentalDrivingVo.allQuantity" :min="1"
|
|
|
+ <u-number-box v-model="huanongaccidentalDrivingVo.quantity" :min="1"
|
|
|
:long-press="false" :input-width="70" :input-height="44"
|
|
|
size="26"></u-number-box>
|
|
|
</view>
|
|
@@ -415,16 +417,17 @@
|
|
|
inactive-color="#eee" size='30'
|
|
|
@change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
</view>
|
|
|
- <view class="" v-if="yongchengaccidentalDrivingVo.rideRiskCode">
|
|
|
+ <view class=""
|
|
|
+ v-if="yongchengaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="yongchengPopupshow=true">
|
|
|
- <text>{{yongchengaccidentalDrivingVo.rideRiskName}}</text>
|
|
|
+ <text>{{yongchengaccidentalDrivingVo.projectName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="26"></u-icon>
|
|
|
</view>
|
|
|
<view class=" dis j-s a-c">
|
|
|
<view class="">
|
|
|
<text>保费:</text>
|
|
|
<text
|
|
|
- style="color: #ee7000;">¥{{yongchengaccidentalDrivingVo.premium*yongchengaccidentalDrivingVo.quantity}}</text>
|
|
|
+ style="color: #ee7000;">¥{{yongchengaccidentalDrivingVo.sumPremium*yongchengaccidentalDrivingVo.quantity}}</text>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<text>份数:</text>
|
|
@@ -445,14 +448,15 @@
|
|
|
inactive-color="#eee" size='30'
|
|
|
@change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
</view>
|
|
|
- <view class="" v-if="anshengaccidentalDrivingVo.planCode">
|
|
|
+ <view class=""
|
|
|
+ v-if="anshengaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="anshengPopupshow=true">
|
|
|
- <text>{{anshengaccidentalDrivingVo.planCode}}{{anshengaccidentalDrivingVo.planChineseName}}</text>
|
|
|
+ <text>{{anshengaccidentalDrivingVo.parentCode}}{{anshengaccidentalDrivingVo.parentName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
<template v-if="anshengInsuranceData.length>0">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="anshengPopupshow1=true">
|
|
|
- <text>{{anshengaccidentalDrivingVo.productCode}}{{anshengaccidentalDrivingVo.productName}}</text>
|
|
|
+ <text>{{anshengaccidentalDrivingVo.projectCode}}{{anshengaccidentalDrivingVo.projectName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
<view class=" dis j-s a-c">
|
|
@@ -474,28 +478,28 @@
|
|
|
inactive-color="#eee" size='30'
|
|
|
@change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
</view>
|
|
|
- <view class="" v-if="guoRenaccidentalDrivingVo.goodsCode">
|
|
|
+ <view class=""
|
|
|
+ v-if="guoRenaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="guorenPopupshow=true">
|
|
|
- <text>{{guoRenaccidentalDrivingVo.goodDesc}}</text>
|
|
|
+ <text>{{guoRenaccidentalDrivingVo.parentName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
- <template v-if="guoRenInsuranceData.length>0">
|
|
|
+ <template v-if="guoRenaccidentalDrivingVo.projectName">
|
|
|
<view class=" accident-ins dis a-c j-s" @click="guorenPopupshow1=true">
|
|
|
- <text>{{guoRenaccidentalDrivingVo.prodCName}}</text>
|
|
|
+ <text>{{guoRenaccidentalDrivingVo.projectName}}</text>
|
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
</view>
|
|
|
<view class=" dis j-s a-c">
|
|
|
<view class="">
|
|
|
<text>保费:</text>
|
|
|
<text
|
|
|
- style="color: #ee7000;">¥{{guoRenaccidentalDrivingVo.premium*guoRenaccidentalDrivingVo.quantity}}.00</text>
|
|
|
+ style="color: #ee7000;">¥{{guoRenaccidentalDrivingVo.sumPremium*guoRenaccidentalDrivingVo.quantity}}.00</text>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<text>份数:</text>
|
|
|
<u-number-box v-model="guoRenaccidentalDrivingVo.quantity"
|
|
|
- :min="1" :max="Number(guoRenaccidentalDrivingVo.policyNum)"
|
|
|
- :input-width="70" :input-height="44" :long-press="false"
|
|
|
- size="26"></u-number-box>
|
|
|
+ :min="1" :max="1" :input-width="70" :input-height="44"
|
|
|
+ :long-press="false" size="26"></u-number-box>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -535,7 +539,7 @@
|
|
|
</template>
|
|
|
|
|
|
<view class="Premium dis f-c" v-show="totalitem.quoteCode==200">
|
|
|
- <view class="dis price " v-if="totalitem.result.feeNoDescription">
|
|
|
+ <view class="dis price" v-if="totalitem.result.feeNoDescription">
|
|
|
<text>该车未匹配销管费用,不建议投保!</text>
|
|
|
<u-icon name="chat-fill" color="#ff0000" size="40"
|
|
|
@click="discountErrorMessageMsg(totalitem.result.feeNoDescription,totalitem.namesimple)"></u-icon>
|
|
@@ -654,8 +658,8 @@
|
|
|
<u-radio-group size="30" wrap>
|
|
|
<u-radio style="margin: 4px 0; align-items: flex-start;" label-size="30" shape="square"
|
|
|
@change="RSradioChange" v-for="(item, index) in renshouInsuranceData" :key="index"
|
|
|
- :name="item.id">
|
|
|
- {{item.productName}}w
|
|
|
+ :name="item.projectCode">
|
|
|
+ {{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -668,8 +672,8 @@
|
|
|
<view class="slot-content">
|
|
|
<u-radio-group size="30" wrap>
|
|
|
<u-radio style="margin: 4px 0;" label-size="30" @change="ZMradioChange" shape="square"
|
|
|
- v-for="(item, index) in zhongmeiInsuranceData" :key="index" :name="item.rideRiskCode">
|
|
|
- {{item.rideRiskName}}
|
|
|
+ v-for="(item, index) in zhongmeiInsuranceData" :key="index" :name="item.projectCode">
|
|
|
+ {{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -681,8 +685,8 @@
|
|
|
<view class="slot-content">
|
|
|
<u-radio-group size="30" wrap>
|
|
|
<u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="HBradioChange" shape="square"
|
|
|
- v-for="(item, index) in hengbangInsuranceData" :key="index" :name="item.programcode">
|
|
|
- {{item.programname}}
|
|
|
+ v-for="(item, index) in hengbangInsuranceData" :key="index" :name="item.projectCode">
|
|
|
+ {{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -694,8 +698,8 @@
|
|
|
<view class="slot-content">
|
|
|
<u-radio-group size="30" wrap>
|
|
|
<u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ZAradioChange" shape="square"
|
|
|
- v-for="(item, index) in zhonganInsuranceData" :key="index" :name="item.combination">
|
|
|
- {{item.name}}
|
|
|
+ v-for="(item, index) in zhonganInsuranceData" :key="index" :name="item.projectCode">
|
|
|
+ {{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -708,8 +712,8 @@
|
|
|
<u-radio-group size="30" wrap>
|
|
|
<u-radio style="margin: 4px 0;flex: auto;align-items: flex-start;" label-size="30"
|
|
|
@change="HNradioChange" shape="square" v-for="(item, index) in huanongInsuranceData"
|
|
|
- :key="index" :name="item.planCode">
|
|
|
- {{item.planName}}
|
|
|
+ :key="index" :name="item.projectCode">
|
|
|
+ {{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -721,8 +725,8 @@
|
|
|
<u-radio-group size="30" wrap>
|
|
|
<u-radio style="margin: 4px 0;flex: auto;align-items: flex-start;" label-size="30"
|
|
|
@change="YCradioChange" shape="square" v-for="(item, index) in yongchengInsuranceData"
|
|
|
- :key="index" :name="item.code">
|
|
|
- {{item.name}}
|
|
|
+ :key="index" :name="item.projectCode">
|
|
|
+ {{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -733,10 +737,10 @@
|
|
|
:scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
<view class="slot-content">
|
|
|
<u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto; align-items: flex-start;" label-size="30"
|
|
|
- @change="ASprogrammeradioChange" shape="square" v-for="(item, index) in anshengprogrammeData"
|
|
|
- :key="index" :name="item.planCode">
|
|
|
- {{item.planCode}}{{item.planChineseName}}
|
|
|
+ <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ASprogrammeradioChange"
|
|
|
+ shape="square" v-for="(item, index) in anshengprogrammeData" :key="index"
|
|
|
+ :name="item.projectCode">
|
|
|
+ {{item.projectCode}}{{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -746,10 +750,10 @@
|
|
|
:scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
<view class="slot-content">
|
|
|
<u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto; align-items: flex-start;" label-size="30"
|
|
|
- @change="ASInsuranceradioChange" shape="square" v-for="(item, index) in anshengInsuranceData"
|
|
|
- :key="index" :name="item.productCode">
|
|
|
- {{item.productCode}}{{item.productName}}
|
|
|
+ <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ASInsuranceradioChange"
|
|
|
+ shape="square" v-for="(item, index) in anshengInsuranceData" :key="index"
|
|
|
+ :name="item.projectCode">
|
|
|
+ {{item.projectCode}}{{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -784,8 +788,9 @@
|
|
|
<view class="slot-content">
|
|
|
<u-radio-group size="30" wrap>
|
|
|
<u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="GRprogrammeradioChange"
|
|
|
- shape="square" v-for="(item, index) in guorenprogrammeData" :key="index" :name="item.goodId">
|
|
|
- {{item.goodDesc}}
|
|
|
+ shape="square" v-for="(item, index) in guorenprogrammeData" :key="index"
|
|
|
+ :name="item.projectCode">
|
|
|
+ {{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -796,8 +801,9 @@
|
|
|
<view class="slot-content">
|
|
|
<u-radio-group size="30" wrap>
|
|
|
<u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="GRInsuranceradioChange"
|
|
|
- shape="square" v-for="(item, index) in guoRenInsuranceData" :key="index" :name="item.prodCode">
|
|
|
- {{item.prodCName}}
|
|
|
+ shape="square" v-for="(item, index) in guoRenInsuranceData" :key="index"
|
|
|
+ :name="item.projectCode">
|
|
|
+ {{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -837,10 +843,9 @@
|
|
|
:scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
<view class="slot-content">
|
|
|
<u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;align-items: flex-start;" label-size="30"
|
|
|
- @change="TPradioChange" shape="square" v-for="(item, index) in taipingInsuranceData"
|
|
|
- :key="index" :name="item.id">
|
|
|
- {{item.rationName}}
|
|
|
+ <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="TPradioChange" shape="square"
|
|
|
+ v-for="(item, index) in taipingInsuranceData" :key="index" :name="item.projectCode">
|
|
|
+ {{item.projectName}}
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -897,7 +902,8 @@
|
|
|
mapState
|
|
|
} from "vuex"
|
|
|
import {
|
|
|
- delEmptyQueryNodes
|
|
|
+ delEmptyQueryNodes,
|
|
|
+ findDefaultProject
|
|
|
} from '@/plugins/utils';
|
|
|
import wybPopup from '@/components/common/wyb-popup/wyb-popup.vue'
|
|
|
import lsLoading from '@/components/common/ls-loading/ls-loading.vue';
|
|
@@ -1921,6 +1927,7 @@
|
|
|
url: "/pages/orders1/quotation1?companyId=" + id
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
//选择协议
|
|
|
selectConfirm(e, index) {
|
|
@@ -1964,11 +1971,6 @@
|
|
|
if (value) {
|
|
|
let ins = this.totalCompanyList[index].namesimple;
|
|
|
let list = this.totalCompanyList[index].agreement;
|
|
|
- // let arr = this.totalCompanyList[index].agreement;
|
|
|
- // let list = [];
|
|
|
- // list = arr.filter(item => {
|
|
|
- // return item.licenseNo.length > 0 ? item.licenseNo.includes(this.carInfo.licenseNo.slice(0,2)) : "true"
|
|
|
- // })
|
|
|
list.map(ele => {
|
|
|
ele.extra = ele.apiType;
|
|
|
return ele;
|
|
@@ -1980,57 +1982,44 @@
|
|
|
this.totalCompanyList[index].apiType = this.totalCompanyList[index].agreement[0].extra;
|
|
|
this.totalCompanyList[index].underwritingDescription = this.totalCompanyList[index].agreement[0]
|
|
|
.underwritingDescription;
|
|
|
- }
|
|
|
- },
|
|
|
- //驾意险勾选框
|
|
|
- async accidentChange(event, code, name, index) {
|
|
|
- if (event) {
|
|
|
- this.totalCompanyList[index].jychecked = event;
|
|
|
- let ins = this.totalCompanyList[index].namesimple;
|
|
|
+ let ruleThirdPartyInsurance = this.kindList.find(val => val.kindCode == 'B'); //获取三者保额
|
|
|
switch (ins) {
|
|
|
case '永诚财险':
|
|
|
- let yccallback = await this.$http.post('/api/yongCheng/gainAccidentList', {
|
|
|
+ let yccallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
companyCode: code,
|
|
|
- seatNum: Number(this.carInfo.seatCount)
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
+ .amount : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
});
|
|
|
-
|
|
|
if (yccallback.code == '200') {
|
|
|
- let yccallback1 = await this.$http.post(
|
|
|
- '/api/yongCheng/gainAccidentSchemeList', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- companyCode: code,
|
|
|
- code: yccallback.data[0].code,
|
|
|
- seatNum: Number(this.carInfo.seatCount)
|
|
|
- });
|
|
|
- yccallback1.data.map(val => {
|
|
|
- yccallback.data[0].premium += Number(val.premium)
|
|
|
- return val;
|
|
|
- })
|
|
|
let data = yccallback.data;
|
|
|
-
|
|
|
data.map(ele => {
|
|
|
ele.quantity = 1;
|
|
|
return ele;
|
|
|
})
|
|
|
this.yongchengInsuranceData = data;
|
|
|
- this.yongchengaccidentalDrivingVo = {
|
|
|
- rideRiskCode: data[0].code,
|
|
|
- rideRiskName: data[0].name,
|
|
|
- quantity: data[0].quantity,
|
|
|
- premium: data[0].premium,
|
|
|
- };
|
|
|
- this.ycdrivingJoyCoverage = {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- companyCode: code,
|
|
|
- seatNum: Number(this.carInfo.seatCount)
|
|
|
+ const defaultProject = findDefaultProject(data);
|
|
|
+ if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
+ this.totalCompanyList[index].jychecked = true;
|
|
|
+ this.yongchengInsuranceData = defaultProject.list;
|
|
|
+ this.yongchengaccidentalDrivingVo = defaultProject.result;
|
|
|
+ } else {
|
|
|
+ this.yongchengInsuranceData = data;
|
|
|
+ this.yongchengaccidentalDrivingVo = data[0];
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
break;
|
|
|
case '紫金财险':
|
|
|
- let zjcallback = await this.$http.post('/order/zijin/queryVehicleProducts', {
|
|
|
+ let zjcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- seatCount: Number(this.carInfo.seatCount)
|
|
|
+ companyCode: code,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
+ .amount : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
});
|
|
|
if (zjcallback.code == '200') {
|
|
|
let data = zjcallback.data;
|
|
@@ -2039,59 +2028,80 @@
|
|
|
return ele;
|
|
|
})
|
|
|
this.zijinInsuranceData = data;
|
|
|
-
|
|
|
+ const defaultProject = findDefaultProject(data);
|
|
|
+ if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
+ this.totalCompanyList[index].jychecked = true;
|
|
|
+ this.zijinaccidentalDrivingVo.push(defaultProject.result);
|
|
|
+ } else {
|
|
|
+ this.zijinaccidentalDrivingVo = [];
|
|
|
+ }
|
|
|
}
|
|
|
break;
|
|
|
case '安盛天平':
|
|
|
- let ascallback = await this.$http.post('/insurance/crawler/getDrivingInsurance', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id
|
|
|
+ let ascallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
+ agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
+ companyCode: code,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
+ .amount : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
});
|
|
|
if (ascallback.code == '200') {
|
|
|
let data = ascallback.data;
|
|
|
data.map(ele => {
|
|
|
- ele.departmentProductList.map(val => {
|
|
|
+ ele.children.map(val => {
|
|
|
val.quantity = 1;
|
|
|
})
|
|
|
return ele;
|
|
|
})
|
|
|
this.anshengprogrammeData = data;
|
|
|
- this.anshengInsuranceData = data[0].departmentProductList;
|
|
|
- this.anshengaccidentalDrivingVo = {
|
|
|
- personFlag: data[0].personFlag,
|
|
|
- planChineseName: data[0].planChineseName,
|
|
|
- planCode: data[0].planCode,
|
|
|
- planSeries: data[0].planSeries,
|
|
|
- productCode: data[0].departmentProductList[0].productCode,
|
|
|
- productName: data[0].departmentProductList[0].productName,
|
|
|
- quantity: data[0].departmentProductList[0].quantity
|
|
|
+ const defaultProject = findDefaultProject(data);
|
|
|
+ if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
+ this.totalCompanyList[index].jychecked = true;
|
|
|
+ this.anshengInsuranceData = defaultProject.list;
|
|
|
+ this.anshengaccidentalDrivingVo = defaultProject.result;
|
|
|
+ } else {
|
|
|
+ this.anshengaccidentalDrivingVo = {
|
|
|
+ parentCode: data[0].projectCode, //驾意险商品号
|
|
|
+ parentName: data[0].projectName, //驾意险商品名称
|
|
|
+ ...data[0].children[0]
|
|
|
+ }
|
|
|
+ this.anshengInsuranceData = data[0].children;
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
case '国任财险':
|
|
|
- let grcallback = await this.$http.post('/api/guoRen/syncNonAutoIns', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id
|
|
|
+ let grcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
+ agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
+ companyCode: code,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
+ .amount : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
});
|
|
|
if (grcallback.code == '200') {
|
|
|
let data = grcallback.data;
|
|
|
+ data.map(ele => {
|
|
|
+ ele.children.map(val => {
|
|
|
+ val.quantity = 1;
|
|
|
+ })
|
|
|
+ return ele;
|
|
|
+ })
|
|
|
this.guorenprogrammeData = data;
|
|
|
- let grcallback1 = await this.$http.post('/api/guoRen/syncNonAutoIns', {
|
|
|
- goodsCode: grcallback.data[0].goodId
|
|
|
- });
|
|
|
- this.guoRenInsuranceData = grcallback1.data;
|
|
|
- this.guoRenaccidentalDrivingVo = {
|
|
|
- goodsCode: data[0].goodId, //驾意险商品号
|
|
|
- prodCode: grcallback1.data[0].prodCode, //产品code
|
|
|
- riskCode: grcallback1.data[0].riskCode, //险种code
|
|
|
- premium: grcallback1.data[0].premium, //保费
|
|
|
- amount: grcallback1.data[0].amount, //保额
|
|
|
- quantity: Number(grcallback1.data[0].policyNum), //份数
|
|
|
- goodDesc: data[0].goodDesc, //驾意险商品名称
|
|
|
- prodCName: grcallback1.data[0].prodCName, //产品名称
|
|
|
- policyNum: Number(grcallback1.data[0].appnum), //最大份数
|
|
|
+ const defaultProject = findDefaultProject(data);
|
|
|
+ if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
+ this.totalCompanyList[index].jychecked = true;
|
|
|
+ this.guoRenInsuranceData = defaultProject.list;
|
|
|
+ this.guoRenaccidentalDrivingVo = defaultProject.result;
|
|
|
+ } else {
|
|
|
+ this.guoRenaccidentalDrivingVo = {
|
|
|
+ parentCode: data[0].projectCode, //驾意险商品号
|
|
|
+ parentName: data[0].projectName, //驾意险商品名称
|
|
|
+ ...data[0].children[0]
|
|
|
+ }
|
|
|
+ this.guoRenInsuranceData = data[0].children;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
break;
|
|
|
case '大家财险':
|
|
|
let djcallback = await this.$http.post('/api/dajia/accidentalDrivingList', {
|
|
@@ -2113,9 +2123,13 @@
|
|
|
}
|
|
|
break;
|
|
|
case '中煤财险':
|
|
|
- let zmcallback = await this.$http.post('/order/zhongMeiApi/queryRideAccident', {
|
|
|
+ let zmcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- seatNum: Number(this.carInfo.seatCount)
|
|
|
+ companyCode: code,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
+ .amount : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
});
|
|
|
if (zmcallback.code == '200') {
|
|
|
let data = zmcallback.data;
|
|
@@ -2124,6 +2138,7 @@
|
|
|
return ele;
|
|
|
})
|
|
|
this.zhongmeiInsuranceData = data;
|
|
|
+
|
|
|
this.zhongmeiaccidentalDrivingVo = {
|
|
|
rideRiskCode: data[0].rideRiskCode,
|
|
|
rideRiskName: data[0].rideRiskName,
|
|
@@ -2131,6 +2146,16 @@
|
|
|
maxQuantity: data[0].maxQuantity,
|
|
|
unitPremium: data[0].unitPremium,
|
|
|
};
|
|
|
+ const defaultProject = findDefaultProject(data);
|
|
|
+ if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
+ this.totalCompanyList[index].jychecked = true;
|
|
|
+ this.zhongmeiInsuranceData = defaultProject.list;
|
|
|
+ this.zhongmeiaccidentalDrivingVo = defaultProject.result;
|
|
|
+ } else {
|
|
|
+ this.zhongmeiInsuranceData = data;
|
|
|
+ this.zhongmeiaccidentalDrivingVo = data[0];
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
break;
|
|
|
case '渤海财险':
|
|
@@ -2168,38 +2193,58 @@
|
|
|
case '太平财险':
|
|
|
case '华农财险':
|
|
|
let Insurancecallback = await this.$http.post(
|
|
|
- '/insurance/crawler/getDrivingInsurance', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id
|
|
|
+ '/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
+ agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
+ companyCode: code,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
+ .amount : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
});
|
|
|
if (Insurancecallback.code == 200) {
|
|
|
let data = Insurancecallback.data;
|
|
|
-
|
|
|
- if (ins == '华农财险') {
|
|
|
- data.map(ele => {
|
|
|
- ele.accidentType = "";
|
|
|
- ele.allQuantity = 1;
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- data[0].accidentType = data[0].planCode;
|
|
|
+ data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ })
|
|
|
+ const defaultProject = findDefaultProject(data);
|
|
|
+ if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
+ this.totalCompanyList[index].jychecked = true;
|
|
|
+ this[name + "InsuranceData"] = defaultProject.list;
|
|
|
+ this[name + 'accidentalDrivingVo'] = defaultProject.result;
|
|
|
} else {
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- })
|
|
|
+ this[name + "InsuranceData"] = data;
|
|
|
+ this[name + 'accidentalDrivingVo'] = data[0];
|
|
|
}
|
|
|
- this[name + "InsuranceData"] = data;
|
|
|
- this[name + 'accidentalDrivingVo'] = data[0];
|
|
|
+ // if (ins == '华农财险') {
|
|
|
+ // data.map(ele => {
|
|
|
+ // ele.accidentType = "";
|
|
|
+ // ele.allQuantity = 1;
|
|
|
+ // return ele;
|
|
|
+ // })
|
|
|
+ // data[0].accidentType = data[0].planCode;
|
|
|
+ // } else {
|
|
|
+ // data.map(ele => {
|
|
|
+ // ele.quantity = 1;
|
|
|
+ // return ele;
|
|
|
+ // })
|
|
|
+ // }
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
- } else {
|
|
|
- this.totalCompanyList[index].jychecked = event;
|
|
|
- this[name + "InsuranceData"] = [];
|
|
|
- this[name + 'accidentalDrivingVo'] = {};
|
|
|
}
|
|
|
+ },
|
|
|
+ //驾意险勾选框
|
|
|
+ /**
|
|
|
+ * @param {boolean} event //是否选中
|
|
|
+ * @param {string} code //保险公司code
|
|
|
+ * @param {string} name //字段关键词
|
|
|
+ * @param {string} index //当前勾选保险公司下标
|
|
|
+ */
|
|
|
+ async accidentChange(event, code, name, index) {
|
|
|
+ this.totalCompanyList[index].jychecked = event;
|
|
|
|
|
|
},
|
|
|
checkboxChangeInfo(event, index) {
|
|
@@ -2207,14 +2252,7 @@
|
|
|
},
|
|
|
//中煤
|
|
|
ZMradioChange(id) {
|
|
|
- let info = this.zhongmeiInsuranceData.find(val => val.rideRiskCode == id)
|
|
|
- this.zhongmeiaccidentalDrivingVo = {
|
|
|
- rideRiskCode: info.rideRiskCode,
|
|
|
- rideRiskName: info.rideRiskName,
|
|
|
- quantity: info.quantity,
|
|
|
- maxQuantity: info.maxQuantity,
|
|
|
- unitPremium: info.unitPremium,
|
|
|
- }
|
|
|
+ this.zhongmeiaccidentalDrivingVo = this.zhongmeiInsuranceData.find(val => val.projectCode == id)
|
|
|
this.zhongmeiPopupshow = false;
|
|
|
},
|
|
|
//渤海意外险
|
|
@@ -2231,23 +2269,23 @@
|
|
|
},
|
|
|
//人寿意外险
|
|
|
RSradioChange(id) {
|
|
|
- this.renshouaccidentalDrivingVo = this.renshouInsuranceData.find(val => val.id == id)
|
|
|
+ this.renshouaccidentalDrivingVo = this.renshouInsuranceData.find(val => val.projectCode == id)
|
|
|
this.renshouPopupshow = false;
|
|
|
},
|
|
|
//恒邦意外险
|
|
|
HBradioChange(id) {
|
|
|
- this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(val => val.programcode ==
|
|
|
+ this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(val => val.projectCode ==
|
|
|
id)
|
|
|
this.hengbangPopupshow = false;
|
|
|
},
|
|
|
//众安意外险
|
|
|
ZAradioChange(id) {
|
|
|
- this.zhonganaccidentalDrivingVo = this.zhonganInsuranceData.find(val => val.combination == id)
|
|
|
+ this.zhonganaccidentalDrivingVo = this.zhonganInsuranceData.find(val => val.projectCode == id)
|
|
|
this.zhonganPopupshow = false;
|
|
|
},
|
|
|
//华农驾意险
|
|
|
HNradioChange(id) {
|
|
|
- this.huanongaccidentalDrivingVo = this.huanongInsuranceData.find(val => val.planCode == id);
|
|
|
+ this.huanongaccidentalDrivingVo = this.huanongInsuranceData.find(val => val.projectCode == id);
|
|
|
this.huanongaccidentalDrivingVo.accidentType = this.huanongaccidentalDrivingVo.planCode;
|
|
|
this.huanongPopupshow = false;
|
|
|
},
|
|
@@ -2263,93 +2301,51 @@
|
|
|
this.dajiaPopupshow = false;
|
|
|
},
|
|
|
TPradioChange(id) {
|
|
|
- this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.id == id)
|
|
|
+ this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.projectCode == id)
|
|
|
this.taipingPopupshow = false;
|
|
|
},
|
|
|
//永诚意外险
|
|
|
- async YCradioChange(id) {
|
|
|
- let premium = 0;
|
|
|
- let yccallback1 = await this.$http.post(
|
|
|
- '/api/yongCheng/gainAccidentSchemeList', {
|
|
|
- agreementId: this.ycdrivingJoyCoverage.agreementId,
|
|
|
- companyCode: this.ycdrivingJoyCoverage.companyCode,
|
|
|
- code: id,
|
|
|
- seatNum: this.ycdrivingJoyCoverage.seatNum
|
|
|
- });
|
|
|
- yccallback1.data.forEach(val => {
|
|
|
- premium += Number(val.premium);
|
|
|
- })
|
|
|
- let info = this.yongchengInsuranceData.find(val => val.code == id)
|
|
|
- this.yongchengaccidentalDrivingVo.rideRiskCode = info.code;
|
|
|
- this.yongchengaccidentalDrivingVo.rideRiskName = info.name;
|
|
|
- this.yongchengaccidentalDrivingVo.quantity = info.quantity;
|
|
|
- this.yongchengaccidentalDrivingVo.premium = premium;
|
|
|
+ YCradioChange(id) {
|
|
|
+ this.yongchengaccidentalDrivingVo = this.yongchengInsuranceData.find(val => val.projectCode == id)
|
|
|
this.yongchengPopupshow = false;
|
|
|
},
|
|
|
//安盛一级选择
|
|
|
ASprogrammeradioChange(id) {
|
|
|
- let info = this.anshengprogrammeData.find((val => val.planCode == id))
|
|
|
+ let info = this.anshengprogrammeData.find((val => val.projectCode == id))
|
|
|
this.anshengPopupshow = false;
|
|
|
- this.anshengInsuranceData = info.departmentProductList;
|
|
|
- let dataInfo = {
|
|
|
- personFlag: info.personFlag,
|
|
|
- planChineseName: info.planChineseName,
|
|
|
- planCode: info.planCode,
|
|
|
- planSeries: info.planSeries,
|
|
|
- productCode: info.departmentProductList[0].productCode,
|
|
|
- productName: info.departmentProductList[0].productName,
|
|
|
- quantity: info.departmentProductList[0].quantity
|
|
|
+ this.anshengaccidentalDrivingVo.parentCode = info.projectCode;
|
|
|
+ this.anshengaccidentalDrivingVo.parentName = info.projectName;
|
|
|
+ if (info.children) {
|
|
|
+ this.anshengInsuranceData = info.children;
|
|
|
+ Object.assign(this.anshengaccidentalDrivingVo, info.children[0]);
|
|
|
+ } else {
|
|
|
+ this.anshengInsuranceData = []
|
|
|
}
|
|
|
- Object.assign(this.anshengaccidentalDrivingVo, dataInfo);
|
|
|
},
|
|
|
//安盛二级选择
|
|
|
ASInsuranceradioChange(id) {
|
|
|
- let info = this.anshengInsuranceData.find((val => val.productCode == id))
|
|
|
+ let info = this.anshengInsuranceData.find((val => val.projectCode == id))
|
|
|
Object.assign(this.anshengaccidentalDrivingVo, info);
|
|
|
this.anshengPopupshow1 = false;
|
|
|
},
|
|
|
//国任一级选择
|
|
|
async GRprogrammeradioChange(id) {
|
|
|
- let info = this.guorenprogrammeData.find((val => val.goodId == id))
|
|
|
+ let info = this.guorenprogrammeData.find((val => val.projectCode == id))
|
|
|
this.guorenPopupshow = false;
|
|
|
- this.guoRenaccidentalDrivingVo.goodsCode = info.goodId;
|
|
|
- this.guoRenaccidentalDrivingVo.goodDesc = info.goodDesc;
|
|
|
- let res = await this.$http.post('/api/guoRen/syncNonAutoIns', {
|
|
|
- goodsCode: info.goodId
|
|
|
- });
|
|
|
- if (res.code == '200') {
|
|
|
- this.guoRenInsuranceData = res.data;
|
|
|
- let dataInfo = {
|
|
|
- prodCode: res.data[0].prodCode, //产品code
|
|
|
- riskCode: res.data[0].riskCode, //险种code
|
|
|
- premium: res.data[0].premium, //保费
|
|
|
- amount: res.data[0].amount, //保额
|
|
|
- quantity: Number(res.data[0].policyNum), //份数
|
|
|
- prodCName: res.data[0].prodCName, //产品名称
|
|
|
- policyNum: res.data[0].appnum, //最大份数
|
|
|
- }
|
|
|
- Object.assign(this.guoRenaccidentalDrivingVo, dataInfo);
|
|
|
+ this.guoRenaccidentalDrivingVo.parentCode = info.projectCode;
|
|
|
+ this.guoRenaccidentalDrivingVo.parentName = info.projectName;
|
|
|
+ if (info.children) {
|
|
|
+ this.guoRenInsuranceData = info.children;
|
|
|
+ Object.assign(this.guoRenaccidentalDrivingVo, info.children[0]);
|
|
|
} else {
|
|
|
- uni.showToast({
|
|
|
- title: res.msg,
|
|
|
- icon: 'none',
|
|
|
- });
|
|
|
this.guoRenInsuranceData = []
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
//国任二级选择
|
|
|
GRInsuranceradioChange(id) {
|
|
|
- let info = this.guoRenInsuranceData.find((val => val.prodCode == id))
|
|
|
- let dataInfo = {
|
|
|
- prodCode: info.prodCode, //产品code
|
|
|
- riskCode: info.riskCode, //险种code
|
|
|
- premium: info.premium, //保费
|
|
|
- amount: info.amount, //保额
|
|
|
- quantity: Number(info.policyNum), //份数
|
|
|
- prodCName: info.prodCName, //产品名称
|
|
|
- policyNum: info.appnum, //最大份数
|
|
|
- }
|
|
|
- Object.assign(this.guoRenaccidentalDrivingVo, dataInfo);
|
|
|
+ let info = this.guoRenInsuranceData.find((val => val.projectCode == id))
|
|
|
+ Object.assign(this.guoRenaccidentalDrivingVo, info);
|
|
|
this.guorenPopupshow1 = false;
|
|
|
},
|
|
|
//紫金意外险
|
|
@@ -3059,10 +3055,10 @@
|
|
|
.cnName;
|
|
|
let namesimple = this.totalCompanyList[num]
|
|
|
.namesimple;
|
|
|
- if (ccidenttype == "huanong") {
|
|
|
- this[ccidenttype + 'accidentalDrivingVo'].quantity = this[ccidenttype + 'accidentalDrivingVo']
|
|
|
- .allQuantity;
|
|
|
- }
|
|
|
+ // if (ccidenttype == "huanong") {
|
|
|
+ // this[ccidenttype + 'accidentalDrivingVo'].quantity = this[ccidenttype + 'accidentalDrivingVo']
|
|
|
+ // .allQuantity;
|
|
|
+ // }
|
|
|
let params = {
|
|
|
orderNo: this.orderno,
|
|
|
companyId: id,
|
|
@@ -3286,7 +3282,6 @@
|
|
|
confirmText: "关闭"
|
|
|
})
|
|
|
},
|
|
|
- //上年信息
|
|
|
discountErrorMessageMsg(msg, title) {
|
|
|
let content = msg.replace(/\n/g, "\r\n")
|
|
|
uni.showModal({
|
|
@@ -3364,7 +3359,6 @@
|
|
|
" " + hh + ":" + minutes + ":" + Seconds;
|
|
|
return datastr;
|
|
|
},
|
|
|
-
|
|
|
},
|
|
|
|
|
|
|
|
@@ -3938,4 +3932,4 @@
|
|
|
color: #333333;
|
|
|
}
|
|
|
}
|
|
|
-</style>s
|
|
|
+</style>
|