|
|
@@ -153,7 +153,7 @@
|
|
|
@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" v-if="totalitem.result.companyId" @click="handleCustomerInterest(totalitem)" style="border: 1px solid #303133;border-radius: 2px;padding:1px 6px;font-size: 24rpx;">客户权益</view>
|
|
|
+ <view class="ml-2 mb-1" v-if="totalitem.result.companyId" @click="handleCustomerInterest(totalitem)" style="border: 1px solid rgb(255 153 0);border-radius: 2px;padding:1px 6px;font-size: 24rpx; color: rgb(255 153 0);">客户权益</view>
|
|
|
<view class="ml-2 mb-1 "
|
|
|
v-if="totalitem.namesimple=='诚泰财险' && totalitem.result.companyId"
|
|
|
style="border: 1px solid #06A8DC;border-radius: 2px;padding:1px 6px;color:#06A8DC;font-size: 24rpx;"
|
|
|
@@ -1372,11 +1372,11 @@
|
|
|
<view class="list">
|
|
|
<view class="radio" @click='handleAcceptCustomer(1)'>
|
|
|
<view>客户权益</view>
|
|
|
- <view>当前客户出单后,可赠送客户价值688的权益礼包</view>
|
|
|
+ <view>当前客户出单后,可赠送客户价值{{ acceptCustomerObj.maxPackagePrice }}的权益礼包</view>
|
|
|
</view>
|
|
|
<view class="radio" @click='handleAcceptCustomer(0)'>
|
|
|
<view>现金优惠</view>
|
|
|
- <view>选择为当前客户最多优惠365.25元</view>
|
|
|
+ <view>选择为当前客户最多优惠{{ acceptCustomerObj.amount }}元</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -1709,13 +1709,88 @@
|
|
|
zijinInsuranceData: [],
|
|
|
zijinaccidentalDrivingVo: [],
|
|
|
isInspectchange: false,
|
|
|
+
|
|
|
+ // 优惠方式
|
|
|
+ acceptCustomerObj: {}
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
-
|
|
|
+ if(localStorage.getItem('orderno')) {
|
|
|
+ this.$http.post('/insurance/order/reviseApp', {
|
|
|
+ orderNo: localStorage.getItem('orderno')
|
|
|
+ }).then(res => {
|
|
|
+ this.productId = res.data.productid; //险种id
|
|
|
+ this.productName = res.data.product; //险种name
|
|
|
+ this.quotableCompanyList = JSON.parse(JSON.stringify(res.data.companyDtos));
|
|
|
+ this.commpanyList();
|
|
|
+ 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.vehicleAndVesselTaxForm = res.data.vehicleAndVesselTax; //车船税信息
|
|
|
+ this.orderno = res.data.orderno;
|
|
|
+ this.quoteno = res.data.quoteno;
|
|
|
+ this.imageEcho(res.data.quoteno) // 影像获取完毕
|
|
|
+ if (this.riskList.length > 0) {
|
|
|
+ for (let i = 0; i < this.riskList.length; i++) {
|
|
|
+ if (this.riskList[i].riskCode == '0507') {
|
|
|
+ if (this.isDateBeforeToday(this.riskList[i].startDate)) {
|
|
|
+ this.jqstartDate = this.nextday();
|
|
|
+ this.jqendDate = this.oneYearPast(this.jqstartDate)
|
|
|
+ this.riskList[i].startDate = this.nextday()
|
|
|
+ this.riskList[i].endDate = this.oneYearPast(this.jqstartDate)
|
|
|
+ } else {
|
|
|
+ this.jqstartDate = this.riskList[i].startDate;
|
|
|
+ this.jqendDate = this.riskList[i].endDate;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.riskList[i].riskCode == '0510') {
|
|
|
+ if (this.isDateBeforeToday(this.riskList[i].startDate)) {
|
|
|
+ this.systartDate = this.nextday();
|
|
|
+ this.syendDate = this.oneYearPast(this.systartDate)
|
|
|
+ this.riskList[i].startDate = this.nextday()
|
|
|
+ this.riskList[i].endDate = this.oneYearPast(this.systartDate)
|
|
|
+ } else {
|
|
|
+ this.systartDate = this.riskList[i].startDate;
|
|
|
+ this.syendDate = this.riskList[i].endDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.jqstartDate = this.nextday();
|
|
|
+ this.jqendDate = this.oneYearPast(this.jqstartDate);
|
|
|
+ this.systartDate = this.nextday();
|
|
|
+ this.syendDate = this.oneYearPast(this.jqstartDate);
|
|
|
+ const eventChannel = this.getOpenerEventChannel()
|
|
|
+ // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
|
|
|
+ eventChannel.on('acceptData', (data) => {
|
|
|
+ this.quoteno = data.quoteno;
|
|
|
+ this.orderno = data.orderno;
|
|
|
+ this.carInfo = data.carInfo; //车辆信息
|
|
|
+ this.ownerInfo = data.ownerInfo; //车主信息
|
|
|
+ this.policyHolderInfo = data.policyHolderInfo; //投保人信息
|
|
|
+ this.vehicleAndVesselTaxForm.identifyNumber = this.policyHolderInfo.identifyNumber;
|
|
|
+ this.vehicleAndVesselTaxForm.taxpayerName = this.policyHolderInfo.name;
|
|
|
+ this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
|
|
|
+ this.carInfoPositiveList = data.carInfoPositiveList; //车辆
|
|
|
+ this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
|
|
|
+ this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
|
|
|
+ this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
|
|
|
+ this.productId = data.productId; //险种id
|
|
|
+ this.productName = data.productName; //险种name
|
|
|
+ this.riskTypeEchoProcessing(this.productId)
|
|
|
+ this.quotableCompanyList = JSON.parse(JSON.stringify(data.quotableCompanyList)); //可报价公司
|
|
|
+ this.commpanyList();
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
async onLoad(params) {
|
|
|
if (params.orderno) {
|
|
|
+ localStorage.setItem('orderno', params.orderno)
|
|
|
let res = await this.$http.post('/insurance/order/reviseApp', {
|
|
|
orderNo: params.orderno
|
|
|
});
|
|
|
@@ -1793,7 +1868,6 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
CTcoefficientSubmit() {
|
|
|
this.quotableCompanyList[this.CTcoefficientIndex].coefficient = this.CTcoefficientForm.pricingCoefficient;
|
|
|
this.quotableCompanyList[this.CTcoefficientIndex].discount = this.CTcoefficientForm.expectedDiscount;
|
|
|
@@ -2550,7 +2624,6 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
-
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2606,7 +2679,6 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
-
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2662,7 +2734,6 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
-
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2718,7 +2789,6 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
-
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2780,7 +2850,6 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
-
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2837,7 +2906,6 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
-
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2895,7 +2963,6 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
-
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2957,7 +3024,6 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
-
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -3098,7 +3164,6 @@
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg =
|
|
|
res.msg;
|
|
|
-
|
|
|
}
|
|
|
break;
|
|
|
case '众安财险':
|
|
|
@@ -3137,7 +3202,6 @@
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg =
|
|
|
res.msg;
|
|
|
-
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
@@ -3806,6 +3870,17 @@
|
|
|
syappoint: ""
|
|
|
});
|
|
|
if (yaaudit.code == '200') {
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
this.underwriteTitle = '订单自核成功';
|
|
|
this.cancelText = '暂不缴费';
|
|
|
this.confirmText = '立即缴费';
|
|
|
@@ -3842,6 +3917,17 @@
|
|
|
syappoint: ""
|
|
|
});
|
|
|
if (zmaudit.code == '200') {
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
this.underwriteTitle = '订单自核成功';
|
|
|
this.cancelText = '暂不缴费';
|
|
|
this.confirmText = '立即缴费';
|
|
|
@@ -3872,6 +3958,17 @@
|
|
|
companyId: this.companyId,
|
|
|
});
|
|
|
if (ycaudit.code == '200') {
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
this.underwriteTitle = '订单自核成功';
|
|
|
this.cancelText = '暂不缴费';
|
|
|
this.confirmText = '立即缴费';
|
|
|
@@ -3902,6 +3999,17 @@
|
|
|
companyId: this.companyId,
|
|
|
});
|
|
|
if (graudit.code == '200') {
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
this.underwriteTitle = '订单自核成功';
|
|
|
this.cancelText = '暂不缴费';
|
|
|
this.confirmText = '立即缴费';
|
|
|
@@ -3936,6 +4044,17 @@
|
|
|
[this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
|
|
|
});
|
|
|
if (djaudit.code == '200') {
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
this.underwriteTitle = '订单自核成功';
|
|
|
this.cancelText = '暂不缴费';
|
|
|
this.confirmText = '立即缴费';
|
|
|
@@ -3967,6 +4086,17 @@
|
|
|
engageList: this.ziJinengageList,
|
|
|
});
|
|
|
if (zjaudit.code == '200') {
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
this.underwriteTitle = '订单自核成功';
|
|
|
this.cancelText = '暂不缴费';
|
|
|
this.confirmText = '立即缴费';
|
|
|
@@ -4002,6 +4132,17 @@
|
|
|
engageList: this.huaTaiengageList,
|
|
|
});
|
|
|
if (htaudit.code == '200') {
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
this.underwriteTitle = '订单自核成功';
|
|
|
this.cancelText = '暂不缴费';
|
|
|
this.confirmText = '立即缴费';
|
|
|
@@ -4034,6 +4175,17 @@
|
|
|
syappoint: ""
|
|
|
});
|
|
|
if (bhaudit.code == '200') {
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
this.underwriteTitle = '订单自核成功';
|
|
|
this.cancelText = '暂不缴费';
|
|
|
this.confirmText = '立即缴费';
|
|
|
@@ -4054,12 +4206,96 @@
|
|
|
}
|
|
|
break;
|
|
|
case "恒邦财险":
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ break;
|
|
|
case "诚泰财险":
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ break;
|
|
|
case "安盛天平":
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ break;
|
|
|
case "众安财险":
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ break;
|
|
|
case "中国人寿":
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ break;
|
|
|
case "太平财险":
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ break;
|
|
|
case "华农财险":
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ break;
|
|
|
case "华安财险":
|
|
|
case "泰山财险":
|
|
|
case "泰康财险":
|
|
|
@@ -4073,6 +4309,17 @@
|
|
|
subOrderNo: this.companyId,
|
|
|
});
|
|
|
if (pythonaudit.code == '200') {
|
|
|
+ this.$http.post(`/equity/createEquityOrder?companyId=${this.companyId}`).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
this.underwriteTitle = '订单自核成功';
|
|
|
this.cancelText = '暂不缴费';
|
|
|
this.confirmText = '立即缴费';
|
|
|
@@ -4099,19 +4346,21 @@
|
|
|
},
|
|
|
// 上传影像并提交核保
|
|
|
async submitUnderwriting(id, apiType, name, item) {
|
|
|
- console.log(1111, item)
|
|
|
this.companyId = id;
|
|
|
this.apiType = apiType;
|
|
|
this.insuranceCompanyName = name;
|
|
|
- this.$http.post(`/equity/createEquityOrder?companyId=${id}`).then(res => {
|
|
|
- if(res.code === 200) {
|
|
|
- if(item.editingDto.equityType === 1 || item.editingDto.equityType === 0) {
|
|
|
- this.auditNextShow = true;
|
|
|
- } else {
|
|
|
- this.$refs.popup.open()
|
|
|
+ if(item.editingDto.equityType === 1 || item.editingDto.equityType === 0) {
|
|
|
+ this.auditNextShow = true;
|
|
|
+ } else {
|
|
|
+ this.$http.post(`/equity/equityList`, {
|
|
|
+ companyId: id
|
|
|
+ }).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+ this.acceptCustomerObj = res.data
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ this.$refs.popup.open()
|
|
|
+ }
|
|
|
},
|
|
|
closePopup() {
|
|
|
this.$refs.popup.close()
|
|
|
@@ -5025,4 +5274,4 @@
|
|
|
border-width: 4rpx;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|