|
@@ -92,9 +92,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="quoteCompany">
|
|
|
- <view class="header j-sb d-flex a-center">
|
|
|
+ <view class="header dis a-c j-s">
|
|
|
<view class="title d-flex">精选保险公司<view class="icon iconfont icon-Group-"></view>
|
|
|
</view>
|
|
|
+ <view class="">
|
|
|
+ <u-checkbox v-model="Selectchecked" @change="SelectAll($event)"
|
|
|
+ active-color="rgb(250, 53, 52)">全选</u-checkbox>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<block v-for="(totalitem,totalindex) in totalCompanyList" :key="totalindex">
|
|
|
<template>
|
|
@@ -130,13 +134,15 @@
|
|
|
<text v-if="totalitem.result.taxAmount">车船税:¥{{totalitem.result.taxAmount}}</text>
|
|
|
<text v-if="totalitem.result.jyPremium">驾意险:¥{{totalitem.result.jyPremium}}</text>
|
|
|
</view>
|
|
|
- <view v-show="totalitem.quoteCode==200" class="dis f-c"
|
|
|
+ <view v-show="totalitem.quoteCode==200" class="dis Premium f-wrap"
|
|
|
style="font-size: 12px;color: #6495ed;border-top: 1px solid #f2f2f2;">
|
|
|
+
|
|
|
<text
|
|
|
v-if="totalitem.result.jqPremium">交强险:{{totalitem.result.startDateJq}}~{{totalitem.result.endDateJq}}
|
|
|
- <u-icon style="color:#ee7000;margin-left: 20px;font-size: 16px;" name="clock"
|
|
|
- @click="syncData(totalitem.result)"></u-icon>
|
|
|
+
|
|
|
</text>
|
|
|
+ <u-icon style="color:#ee7000;font-size: 16px;" name="clock"
|
|
|
+ @click="syncData(totalitem.result)"></u-icon>
|
|
|
<text
|
|
|
v-if="totalitem.result.startDateSy">商业险:{{totalitem.result.startDateSy}}~{{totalitem.result.endDateSy}}
|
|
|
|
|
@@ -147,6 +153,16 @@
|
|
|
totalitem.result.ilogPreUdwMess : '无' }}</text>
|
|
|
<text v-if="totalitem.result.accidentInfoStr">出险信息:{{ totalitem.result.accidentInfoStr ?
|
|
|
totalitem.result.accidentInfoStr : '无' }}</text>
|
|
|
+ <text v-if="totalitem.result.jqScore">交强类型评分:{{ totalitem.result.jqScore ?
|
|
|
+ totalitem.result.jqScore : '无' }}</text>
|
|
|
+ <text v-if="totalitem.result.syScore">商业类型评分:{{ totalitem.result.syScore ?
|
|
|
+ totalitem.result.syScore : '无' }}</text>
|
|
|
+ <text v-if="totalitem.result.TossRation">总赔付率:{{ totalitem.result.TossRation ?
|
|
|
+ totalitem.result.TossRation : '无' }}</text>
|
|
|
+ <text v-if="totalitem.result.jgLossRation">交强赔付率:{{ totalitem.result.jgLossRation ?
|
|
|
+ totalitem.result.jgLossRation : '无' }}</text>
|
|
|
+ <text v-if="totalitem.result.syLossRation">商业赔付率:{{ totalitem.result.syLossRation ?
|
|
|
+ totalitem.result.syLossRation : '无' }}</text>
|
|
|
</view>
|
|
|
<text v-if="totalitem.result.tips && totalitem.namesimple == '众安财险'"
|
|
|
style="color: red;">{{ totalitem.result.tips}}</text>
|
|
@@ -207,7 +223,7 @@
|
|
|
<text style="font-weight: bold;font-size: 12px;"
|
|
|
v-if="zijinaccidentalDrivingVo.length>0">意外险信息</text>
|
|
|
<view class="accident-style dis f-c "
|
|
|
- v-for="(item,index) in zijinaccidentalDrivingVo">
|
|
|
+ v-for="(item,index) in zijinaccidentalDrivingVo" :key="index">
|
|
|
<view class=" accident-ins dis a-c j-s">
|
|
|
|
|
|
<view class=" dis a-c j-s ">
|
|
@@ -260,6 +276,36 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
+ <template
|
|
|
+ v-if="totalitem.namesimple == '太平财险' && totalitem.checked && totalitem.agreementId && taipingaccidentalDrivingVo.id">
|
|
|
+ <view class="accident-style dis f-c ">
|
|
|
+ <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
|
|
|
+ <view class=" accident-ins dis a-c j-s">
|
|
|
+ <u-checkbox shape="circle" size="30" v-model="totalitem.jychecked"
|
|
|
+ @change="checkboxChangeInfo($event,totalindex)"
|
|
|
+ active-color="rgb(255, 170, 0)"></u-checkbox>
|
|
|
+ <view class=" dis a-c j-s " @click="taipingPopupshow=true">
|
|
|
+ <text
|
|
|
+ style="font-size: 14px;">{{taipingaccidentalDrivingVo.rationName}}</text>
|
|
|
+ <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class=" dis j-s a-c">
|
|
|
+ <view class="">
|
|
|
+ <text style="font-size: 14px;">保费:</text>
|
|
|
+ <text
|
|
|
+ style="font-size: 14px;color: #ee7000;">¥{{taipingaccidentalDrivingVo.price*taipingaccidentalDrivingVo.quantity}}.00</text>
|
|
|
+ </view>
|
|
|
+ <view class="">
|
|
|
+ <text style="font-size: 14px;">份数:</text>
|
|
|
+ <u-number-box v-model="taipingaccidentalDrivingVo.quantity" :min="1"
|
|
|
+ :max="taipingaccidentalDrivingVo.maxQuantity" :disabled-input="true"
|
|
|
+ :input-width="70" :input-height="44" size="26"></u-number-box>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
<template
|
|
|
v-if="totalitem.namesimple == '众安财险' && totalitem.checked && totalitem.agreementId && zhonganaccidentalDrivingVo.combination">
|
|
|
<view class="accident-style dis f-c ">
|
|
@@ -384,6 +430,36 @@
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
+ <template
|
|
|
+ v-if="totalitem.namesimple == '大家财险' && totalitem.checked && totalitem.agreementId && dajiaaccidentalDrivingVo.rideRiskCode">
|
|
|
+ <view class="accident-style dis f-c ">
|
|
|
+ <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
|
|
|
+ <view class=" accident-ins dis a-c j-s">
|
|
|
+ <u-checkbox shape="circle" size="30" v-model="totalitem.jychecked"
|
|
|
+ @change="checkboxChangeInfo($event,totalindex)"
|
|
|
+ active-color="rgb(255, 170, 0)"></u-checkbox>
|
|
|
+ <view class=" dis a-c j-s " @click="dajiaPopupshow=true">
|
|
|
+ <text
|
|
|
+ style="font-size: 14px;">{{dajiaaccidentalDrivingVo.rideRiskName}}</text>
|
|
|
+ <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class=" dis j-s a-c">
|
|
|
+ <view class="">
|
|
|
+ <text style="font-size: 14px;">保费:</text>
|
|
|
+ <text
|
|
|
+ style="font-size: 14px;color: #ee7000;">¥{{dajiaaccidentalDrivingVo.price*dajiaaccidentalDrivingVo.quantity}}.00</text>
|
|
|
+ </view>
|
|
|
+ <view class="">
|
|
|
+ <text style="font-size: 14px;">份数:</text>
|
|
|
+ <u-number-box v-model="dajiaaccidentalDrivingVo.quantity" :min="1"
|
|
|
+ :max="1" :disabled-input="true" :input-width="70" :input-height="44"
|
|
|
+ size="26"></u-number-box>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
<view v-if="totalitem.namesimple == '国任财险' && guoRenSpecialAgreementVo.length>0">
|
|
|
<text style="font-weight: bold;font-size: 12px;">特别约定</text>
|
|
|
<view class="contributing dis f-c"
|
|
@@ -529,6 +605,28 @@
|
|
|
</u-checkbox-group>
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
+ <!-- 大家驾意险弹框 -->
|
|
|
+ <u-popup v-model="dajiaPopupshow" mode="center" width="80%" border-radius="10">
|
|
|
+ <view class="popContent dis f-c a-c">
|
|
|
+ <u-radio-group size="30" active-color="rgb(255, 170, 0)">
|
|
|
+ <u-radio style="margin: 4px 0;flex: auto;" @change="DJradioChange"
|
|
|
+ v-for="(item, index) in dajiaInsuranceData" :key="index" :name="item.id">
|
|
|
+ {{item.productName}}
|
|
|
+ </u-radio>
|
|
|
+ </u-radio-group>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
+ <!-- 太平驾意险弹框 -->
|
|
|
+ <u-popup v-model="taipingPopupshow" mode="center" width="80%" border-radius="10">
|
|
|
+ <view class="popContent dis f-c a-c">
|
|
|
+ <u-radio-group size="30" active-color="rgb(255, 170, 0)">
|
|
|
+ <u-radio style="margin: 4px 0;flex: auto;" @change="TPradioChange"
|
|
|
+ v-for="(item, index) in taipingInsuranceData" :key="index" :name="item.id">
|
|
|
+ {{item.rationName}}
|
|
|
+ </u-radio>
|
|
|
+ </u-radio-group>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
<u-modal v-model="Generateshow" content="是否生成新的订单?" :content-style="{fontWeight: 'bold'}"
|
|
|
:show-cancel-button="true" :show-title="false" :confirm-style="{color: '#ff9000'}"
|
|
|
@confirm="GenerateModalConfirm"></u-modal>
|
|
@@ -568,6 +666,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ Selectchecked: false,
|
|
|
params: {
|
|
|
year: true, //年
|
|
|
month: true, //月
|
|
@@ -580,6 +679,9 @@
|
|
|
zijinPopupshow: false,
|
|
|
zijinInsuranceData: [], //紫金意外险list
|
|
|
zijinaccidentalDrivingVo: [], //紫金意外险
|
|
|
+ taipingPopupshow: false,
|
|
|
+ taipingInsuranceData: [], //太平意外险list
|
|
|
+ taipingaccidentalDrivingVo: [], //太平意外险
|
|
|
anshengPopupshow: false,
|
|
|
anshengPopupshow1: false,
|
|
|
anshengprogrammeData: [],
|
|
@@ -591,6 +693,9 @@
|
|
|
guorenInsuranceData: [], //国任意外险list
|
|
|
guorenaccidentalDrivingVo: {}, //国任意外险
|
|
|
guoRencontributingshow: false, //国任特约
|
|
|
+ dajiaPopupshow: false,
|
|
|
+ dajiaInsuranceData: [], //大家意外险list
|
|
|
+ dajiaaccidentalDrivingVo: {}, //大家意外险
|
|
|
guoRenSpecialAgreementData: [],
|
|
|
guoRenSpecialAgreementVo: [],
|
|
|
yongchengPopupshow: false,
|
|
@@ -1184,32 +1289,27 @@
|
|
|
renewalCodeSy: "", //商业确认码
|
|
|
//-----------------
|
|
|
totalCompanyList: [], //保险公司列表
|
|
|
+ insAreaCompanyEditingDtos: [],
|
|
|
notStartedQuote: true, //未开始报价(true表示未开始报价,false表示已经报价结束)
|
|
|
quoteCompanyCount: 0,
|
|
|
}
|
|
|
},
|
|
|
- async onLoad() {
|
|
|
- const eventChannel = this.getOpenerEventChannel()
|
|
|
- // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
|
|
|
- eventChannel.on('acceptData', async (data) => {
|
|
|
- console.log(data)
|
|
|
- this.carInfo = data.carInfo; //车辆信息
|
|
|
- this.ownerInfo = data.ownerInfo; //车主信息
|
|
|
- this.policyHolderInfo = data.policyHolderInfo; //投保人信息
|
|
|
- this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
|
|
|
- this.riskList = data.riskList; //险种大类
|
|
|
- this.kindList = data.kindList; //商业险险别
|
|
|
- this.vehicleAndVesselTaxForm = data.vehicleAndVesselTaxForm; //车船税信息
|
|
|
- if (data.quoteno) {
|
|
|
- this.orderno = data.orderno;
|
|
|
- this.quoteno = data.quoteno;
|
|
|
- this.imageEcho(data.quoteno) // 影像获取完毕
|
|
|
- } else {
|
|
|
- this.carInfoPositiveList = data.carInfoPositiveList; //车辆
|
|
|
- this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
|
|
|
- this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
|
|
|
- this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
|
|
|
- }
|
|
|
+ async onLoad(params) {
|
|
|
+ if (params.orderno) {
|
|
|
+ let res = await this.$http.post('/insurance/order/revise', {
|
|
|
+ orderNo: params.orderno
|
|
|
+ });
|
|
|
+ this.carInfo = res.data.carinfo; //车辆信息
|
|
|
+ this.ownerInfo = res.data.ownerinfo; //车主信息
|
|
|
+ this.policyHolderInfo = res.data.applyinfo; //投保人信息
|
|
|
+ this.insuredPersonInfo = res.data.insureinfo; //被保人信息
|
|
|
+ this.riskList = res.data.risk; //险种大类
|
|
|
+ this.kindList = res.data.king; //商业险险别
|
|
|
+ this.vehicleAndVesselTaxForm = res.data.vehicleAndVesselTax; //车船税信息
|
|
|
+ this.orderno = res.data.orderno;
|
|
|
+ this.quoteno = res.data.quoteno;
|
|
|
+ this.imageEcho(res.data.quoteno) // 影像获取完毕
|
|
|
+ this.insAreaCompanyEditingDtos = res.data.insAreaCompanyEditingDtos;
|
|
|
if (this.riskList.length > 0) {
|
|
|
for (let i = 0; i < this.riskList.length; i++) {
|
|
|
if (this.riskList[i].riskCode == '0507') {
|
|
@@ -1238,7 +1338,8 @@
|
|
|
case "TY3":
|
|
|
case "TY4":
|
|
|
ele2.amount = ele1.serviceTimes;
|
|
|
- ele2.amountDesc = ele1.serviceTimes + '次'
|
|
|
+ ele2.amountDesc = ele1.serviceTimes +
|
|
|
+ '次'
|
|
|
break;
|
|
|
default:
|
|
|
ele2.amount = ele1.amount;
|
|
@@ -1250,7 +1351,65 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- })
|
|
|
+ } else {
|
|
|
+ const eventChannel = this.getOpenerEventChannel()
|
|
|
+ // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
|
|
|
+ eventChannel.on('acceptData', async (data) => {
|
|
|
+ console.log(data)
|
|
|
+ this.carInfo = data.carInfo; //车辆信息
|
|
|
+ this.ownerInfo = data.ownerInfo; //车主信息
|
|
|
+ this.policyHolderInfo = data.policyHolderInfo; //投保人信息
|
|
|
+ this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
|
|
|
+ this.riskList = data.riskList; //险种大类
|
|
|
+ this.kindList = data.kindList; //商业险险别
|
|
|
+ this.vehicleAndVesselTaxForm = data.vehicleAndVesselTaxForm; //车船税信息
|
|
|
+ this.carInfoPositiveList = data.carInfoPositiveList; //车辆
|
|
|
+ this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
|
|
|
+ this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
|
|
|
+ this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
|
|
|
+ if (this.riskList.length > 0) {
|
|
|
+ for (let i = 0; i < this.riskList.length; i++) {
|
|
|
+ if (this.riskList[i].riskCode == '0507') {
|
|
|
+ this.jqstartDate = this.riskList[i].startDate;
|
|
|
+ this.jqendDate = this.riskList[i].endDate;
|
|
|
+ }
|
|
|
+ if (this.riskList[i].riskCode == '0510') {
|
|
|
+ this.systartDate = this.riskList[i].startDate;
|
|
|
+ this.syendDate = this.riskList[i].endDate;
|
|
|
+ this.kindList.map(ele1 => {
|
|
|
+ this.insureList.map(ele2 => {
|
|
|
+ if (ele2.kindCode == ele1.kindCode) {
|
|
|
+ switch (ele1.kindCode) {
|
|
|
+ case 'D4':
|
|
|
+ case 'SY_FJ_YBW2':
|
|
|
+ ele2.amount = ele1.unitAmount;
|
|
|
+ break;
|
|
|
+ case "MJ1":
|
|
|
+ case "MJ2":
|
|
|
+ case "MJ3":
|
|
|
+ case "MJ4":
|
|
|
+ ele2.amount = ele1.deductibleRate;
|
|
|
+ break;
|
|
|
+ case "TY1":
|
|
|
+ case "TY2":
|
|
|
+ case "TY3":
|
|
|
+ case "TY4":
|
|
|
+ ele2.amount = ele1.serviceTimes;
|
|
|
+ ele2.amountDesc = ele1.serviceTimes +
|
|
|
+ '次'
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ ele2.amount = ele1.amount;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
const storage = uni.getStorageSync('historyInfo');
|
|
|
if (storage) {
|
|
|
Object.keys(storage).forEach(key => {
|
|
@@ -1260,6 +1419,7 @@
|
|
|
this.commpanyList();
|
|
|
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
onHide() {
|
|
|
let historyInfo = {
|
|
@@ -1284,6 +1444,13 @@
|
|
|
uni.setStorageSync('historyInfo', res);
|
|
|
},
|
|
|
methods: {
|
|
|
+ SelectAll(e) {
|
|
|
+ this.totalCompanyList.map((ele, index) => {
|
|
|
+ e.value ? ele.checked = true : ele.checked = false;
|
|
|
+ this.checkboxChange(e, ele.id, ele.cnName, index)
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
jqstartconfirm(e) {
|
|
|
this.jqstartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
|
|
|
this.jqendDate = this.oneYearPast(this.jqstartDate)
|
|
@@ -1415,15 +1582,12 @@
|
|
|
if (event.value) {
|
|
|
let ins = this.totalCompanyList[index].namesimple;
|
|
|
this.totalCompanyList[index].checked = event.value;
|
|
|
- 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"
|
|
|
- })
|
|
|
+ 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;
|
|
@@ -1530,10 +1694,29 @@
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
+ case '大家财险':
|
|
|
+ let djcallback = await this.$http.post('/api/dajia/accidentalDrivingList', {
|
|
|
+ agreementId: this.totalCompanyList[index].agreement[0].id
|
|
|
+ });
|
|
|
+ if (djcallback.code == '200') {
|
|
|
+ let data = djcallback.data;
|
|
|
+ data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ })
|
|
|
+ this.dajiaInsuranceData = data;
|
|
|
+ this.dajiaaccidentalDrivingVo = {
|
|
|
+ rideRiskCode: data[0].id,
|
|
|
+ rideRiskName: data[0].productName,
|
|
|
+ quantity: data[0].quantity,
|
|
|
+ price: data[0].price,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ break;
|
|
|
case '中国人寿':
|
|
|
case '恒邦财险':
|
|
|
case '众安财险':
|
|
|
-
|
|
|
+ case '太平财险':
|
|
|
let Insurancecallback = await this.$http.post(
|
|
|
'/insurance/crawler/getDrivingInsurance', {
|
|
|
agreementId: this.totalCompanyList[index].agreement[0].id
|
|
@@ -1574,6 +1757,21 @@
|
|
|
this.zhonganaccidentalDrivingVo = this.zhonganInsuranceData.find(val => val.combination == id)
|
|
|
this.zhonganPopupshow = false;
|
|
|
},
|
|
|
+ //大家意外险
|
|
|
+ DJradioChange(id) {
|
|
|
+ let info = this.dajiaInsuranceData.find(val => val.id == id)
|
|
|
+ this.dajiaaccidentalDrivingVo = {
|
|
|
+ rideRiskCode: info.id,
|
|
|
+ rideRiskName: info.productName,
|
|
|
+ quantity: info.quantity,
|
|
|
+ price: info.price,
|
|
|
+ };
|
|
|
+ this.dajiaPopupshow = false;
|
|
|
+ },
|
|
|
+ TPradioChange(id) {
|
|
|
+ this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.id == id)
|
|
|
+ this.taipingPopupshow = false;
|
|
|
+ },
|
|
|
//永诚意外险
|
|
|
YCradioChange(id) {
|
|
|
let info = this.yongchengInsuranceData.find(val => val.id == id)
|
|
@@ -1649,6 +1847,7 @@
|
|
|
Object.assign(this.guorenaccidentalDrivingVo, dataInfo);
|
|
|
this.guorenPopupshow1 = false;
|
|
|
},
|
|
|
+
|
|
|
//紫金意外险
|
|
|
ZJcheckboxGroupChange(detail) {
|
|
|
this.zijinaccidentalDrivingVo = [];
|
|
@@ -1672,6 +1871,16 @@
|
|
|
ele["apiType"] = "";
|
|
|
ele["selectShow"] = false;
|
|
|
})
|
|
|
+ if (this.insAreaCompanyEditingDtos.length > 0) {
|
|
|
+ commpanykad.data.forEach((val, index) => {
|
|
|
+ this.insAreaCompanyEditingDtos.map(ele => {
|
|
|
+ if (val.namesimple == ele.inscompany) {
|
|
|
+ commpanykad.data[index].quoteCode = 200;
|
|
|
+ commpanykad.data[index].result = ele;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
this.totalCompanyList = commpanykad.data;
|
|
|
},
|
|
|
async toNext() {
|
|
@@ -2075,8 +2284,10 @@
|
|
|
},
|
|
|
//大家报价
|
|
|
async dajia(num, id) {
|
|
|
+ let jychecked = this.totalCompanyList[num].jychecked
|
|
|
let params = {
|
|
|
- accidentalDrivingVo: {},
|
|
|
+ accidentalDrivingVo: jychecked ? this
|
|
|
+ .dajiaaccidentalDrivingVo : {},
|
|
|
orderNo: this.orderno,
|
|
|
companyId: id,
|
|
|
cqryCdeJq: this.cqryCdeJq,
|
|
@@ -2248,6 +2459,7 @@
|
|
|
|
|
|
//爬虫统一报价接口
|
|
|
async quoteInsurance(num, id, apiType, jychecked) {
|
|
|
+ console.log(apiType)
|
|
|
let api = apiType === 2 ?
|
|
|
"/insurance/crawler/quote" :
|
|
|
"anshengquote";
|
|
@@ -2362,6 +2574,28 @@
|
|
|
return;
|
|
|
}
|
|
|
break;
|
|
|
+ case '太平财险':
|
|
|
+ if (!!res.data) {
|
|
|
+ if (res.data.warnMessageList != null && res.data.warnMessageList[0] != null && res.data
|
|
|
+ .warnMessageList[0] != "") {
|
|
|
+ this.totalCompanyList[num].lastYearMsg = "";
|
|
|
+ let dat = res.data.warnMessageList;
|
|
|
+ dat.map(ele => {
|
|
|
+ this.totalCompanyList[num].lastYearMsg += ele;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.totalCompanyList[num]
|
|
|
+ .quoteCode = 200;
|
|
|
+ this.totalCompanyList[num].result =
|
|
|
+ res.data;
|
|
|
+ } else {
|
|
|
+ this.totalCompanyList[num]
|
|
|
+ .quoteCode = "3";
|
|
|
+ this.totalCompanyList[num].msg =
|
|
|
+ res.msg;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ break;
|
|
|
case '众安财险':
|
|
|
if (!!res.data) {
|
|
|
if (res.data.warnMessageList !=
|
|
@@ -2397,6 +2631,21 @@
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
|
+ //华农
|
|
|
+ huanong(num, id) {
|
|
|
+ this.quoteInsurance(num, id, this
|
|
|
+ .totalCompanyList[num].apiType, this
|
|
|
+ .totalCompanyList[num].jychecked);
|
|
|
+ },
|
|
|
+ //太平
|
|
|
+ taiping(num, id) {
|
|
|
+ this.quoteInsurance(num, id, this
|
|
|
+ .totalCompanyList[num].apiType, this
|
|
|
+ .totalCompanyList[num].jychecked);
|
|
|
+ console.log(num, id, this
|
|
|
+ .totalCompanyList[num].apiType, this
|
|
|
+ .totalCompanyList[num].jychecked)
|
|
|
+ },
|
|
|
//安盛天平
|
|
|
ansheng(num, id) {
|
|
|
this.quoteInsurance(num, id, this
|
|
@@ -2487,7 +2736,7 @@
|
|
|
insuredPersonInfoPositiveList: this
|
|
|
.insuredPersonInfoPositiveList, //被保人
|
|
|
vehicleModel: this
|
|
|
- .vehicleModel,
|
|
|
+ .vehicleAndVesselTaxForm,
|
|
|
})
|
|
|
}
|
|
|
}, "navigateTo", true);
|
|
@@ -2774,15 +3023,7 @@
|
|
|
padding-left: 25upx;
|
|
|
}
|
|
|
|
|
|
- .quoteCompany .header .title:before {
|
|
|
- content: "";
|
|
|
- position: absolute;
|
|
|
- left: 30upx;
|
|
|
- top: 25upx;
|
|
|
- width: 8upx;
|
|
|
- height: 30upx;
|
|
|
- background-color: rgba($themeColor, 0.6);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
.quoteCompany .header .title .icon {
|
|
|
color: rgba($themeColor, 0.6);
|