|
|
@@ -150,7 +150,7 @@
|
|
|
<ls-loading v-if="totalitem.quoteCode ==1" text="掌柜正在为您报价,请稍等......"
|
|
|
:animation="animation" fontSize="22" />
|
|
|
<text v-if="totalitem.quoteCode=='3'" class="quoteFailed"
|
|
|
- @tap.stop.prevent="ErrorMsg(errorMessage,totalitem.nameSimple)">报价失败,查看原因</text>
|
|
|
+ @tap.stop.prevent="ErrorMsg(totalitem.msg,totalitem.nameSimple)">报价失败,查看原因</text>
|
|
|
</view>
|
|
|
<view class=" dis j-end a-c mt-2 f-wrap">
|
|
|
<view class="ml-2 mb-1 "
|
|
|
@@ -180,7 +180,7 @@
|
|
|
</view>
|
|
|
<view class="ml-2 mb-1" v-if="totalitem.insurancePlanInfo"
|
|
|
style="border: 1px solid #0052FF;border-radius: 2px;padding:1px 6px;color:#0052FF;font-size: 24rpx;"
|
|
|
- @click="checkSelection">查看方案</view>
|
|
|
+ @click="checkSelection(totalitem)">查看方案</view>
|
|
|
<view class="ml-2 mb-1" v-if="totalitem.insurancePlanInfo"
|
|
|
style="background:#FF4D4D;color: #fff;border: 1px solid #FF4D4D;border-radius: 2px;padding:1px 6px;font-size: 24rpx;"
|
|
|
@click="individualQuote(totalitem)">单独报价</view>
|
|
|
@@ -288,10 +288,10 @@
|
|
|
:custom-style="{borderRadius:'2px'}"
|
|
|
style="background: linear-gradient( 90deg, #FF9415 0%, #FFB525 100%);"
|
|
|
@click="querydetial(totalitem.result.ordersNo,totalitem.cnName)">查看详情</u-button>
|
|
|
- <u-button class="ml-2" type="primary" size="mini"
|
|
|
+ <!-- <u-button class="ml-2" type="primary" size="mini"
|
|
|
v-if="order.orderStatus==1" :custom-style="{borderRadius:'2px'}"
|
|
|
style="background: linear-gradient( 90deg, #0052FF 0%, #0D8BFF 100%);"
|
|
|
- @click="submitUnderwriting(totalitem.result.ordersNo,totalitem.result.apiType ,totalitem.nameSimple)">提交核保</u-button>
|
|
|
+ @click="submitUnderwriting(totalitem.result.ordersNo,totalitem.result.apiType ,totalitem.nameSimple)">提交核保</u-button> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -1685,7 +1685,6 @@
|
|
|
this.quotableCompanyList = JSON.parse(JSON.stringify(res.data.insCompanyVo));
|
|
|
this.order = res.data.order;
|
|
|
this.costs = res.data.costs; //价格
|
|
|
- this.errorMessage = res.data.errorMessage; //报价失败原因
|
|
|
this.accidentalDrivings = res.data.accidentalDrivings; //驾意险
|
|
|
this.carInfo = res.data.carInfoVo; //车辆信息
|
|
|
this.ownerInfo = res.data.ownersInfo; //车主信息
|
|
|
@@ -1697,7 +1696,7 @@
|
|
|
this.vehicleAndVesselTaxVo = res.data.vehicleAndVesselTaxVo; //车船税信息
|
|
|
this.orderno = res.data.order.ordersNo;
|
|
|
this.quoteno = res.data.order.quoteNo;
|
|
|
- await this.commpanyList();
|
|
|
+ await this.commpanyList(res.data);
|
|
|
this.imageEcho(this.quoteno) // 影像获取完毕
|
|
|
if (this.ciRiskInfoVo) {
|
|
|
if (this.isDateBeforeToday(this.ciRiskInfoVo.startDate)) {
|
|
|
@@ -2470,7 +2469,6 @@
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].result = res.data;
|
|
|
this.subOrderId = res.data.ordersNo;
|
|
|
- console.log(this.quotableCompanyList);
|
|
|
} else {
|
|
|
const updatedItem = {
|
|
|
...this.quotableCompanyList[num],
|
|
|
@@ -3182,31 +3180,25 @@
|
|
|
|
|
|
//查看详情
|
|
|
querydetial(id, cnName) {
|
|
|
- this.navigate({
|
|
|
- url: '/pages/carInsure/quoteDetail',
|
|
|
+ console.log(cnName);
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/quote/quoteDetail',
|
|
|
success: (res) => {
|
|
|
res.eventChannel.emit("acceptData", {
|
|
|
- companyId: id,
|
|
|
+ id: id,
|
|
|
cnName: cnName,
|
|
|
quotableCompanyList: this.quotableCompanyList,
|
|
|
|
|
|
})
|
|
|
}
|
|
|
- }, "navigateTo", true);
|
|
|
+ });
|
|
|
},
|
|
|
//报价单
|
|
|
bjdpreview(id) {
|
|
|
- let pro = this.quotationType.themeCode;
|
|
|
- if (pro == "QD") {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/orders/quotation?companyId=" + id
|
|
|
- })
|
|
|
- } else {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/orders/quotation1?companyId=" + id
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
+ console.log(id);
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/quote/quotation?ordersNo=" + id
|
|
|
+ })
|
|
|
},
|
|
|
//预核保信息
|
|
|
preUnderwriting(list) {
|
|
|
@@ -3367,16 +3359,12 @@
|
|
|
}
|
|
|
},
|
|
|
//查看方案
|
|
|
- checkSelection() {
|
|
|
+ checkSelection(item) {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/quote/checkOption',
|
|
|
success: (res) => {
|
|
|
res.eventChannel.emit("acceptData", {
|
|
|
- item: {
|
|
|
- costs: this.costs, //价格
|
|
|
- kindInfoVo: this.kindInfoVo, //商业险险别
|
|
|
- accidentalDrivings: this.accidentalDrivings, //驾意险
|
|
|
- },
|
|
|
+ item: item,
|
|
|
seatNum: this.carInfo.seatCount,
|
|
|
jqstartDate: this.jqstartDate,
|
|
|
jqendDate: this.jqendDate,
|
|
|
@@ -3431,7 +3419,7 @@
|
|
|
}
|
|
|
},
|
|
|
//获取保险公司列表
|
|
|
- commpanyList() {
|
|
|
+ commpanyList(item) {
|
|
|
let list = [];
|
|
|
this.quotableCompanyList.map(ele => {
|
|
|
ele["result"] = {};
|
|
|
@@ -3453,11 +3441,16 @@
|
|
|
ele['insurancePlanInfo'] = null;
|
|
|
if (this.order && this.order.orderStatus) {
|
|
|
if (this.costs.sumPremium) {
|
|
|
+ ele.result = item;
|
|
|
ele.insurancePlanInfo = {};
|
|
|
+ ele.insurancePlanInfo.drivings = item.accidentalDrivings;
|
|
|
+ ele.insurancePlanInfo.kinds = item.kindInfoVo;
|
|
|
ele.quoteCode = 200;
|
|
|
} else {
|
|
|
- ele.msg = this.errorMessage;
|
|
|
+ ele.msg = item.errorMessage;
|
|
|
ele.insurancePlanInfo = {};
|
|
|
+ ele.insurancePlanInfo.drivings = item.accidentalDrivings;
|
|
|
+ ele.insurancePlanInfo.kinds = item.kindInfoVo;
|
|
|
ele.quoteCode = 3;
|
|
|
}
|
|
|
|
|
|
@@ -3465,7 +3458,6 @@
|
|
|
return ele;
|
|
|
})
|
|
|
console.log(this.quotableCompanyList);
|
|
|
- console.log(this.costs);
|
|
|
this.comparableQuantity = list.length;
|
|
|
|
|
|
},
|