@dongkboy 1 год назад
Родитель
Сommit
8ea3b530c1
1 измененных файлов с 53 добавлено и 9 удалено
  1. 53 9
      pages/carInsure/quoteDetail.vue

+ 53 - 9
pages/carInsure/quoteDetail.vue

@@ -137,7 +137,7 @@
 				<view class="header d-flex a-center j-sb " @tap="showOwerInfo = !showOwerInfo"
 					style="padding: 0 10px;background: linear-gradient( 180deg, #E0D5FF 0%, rgba(231,213,255,0) 100%);">
 					<view class="title">人员信息</view>
-					<text style="color: #7000FF;font-size: 12px;">{{showCarInfo?'收起':'展开'}}</text>
+					<text style="color: #7000FF;font-size: 12px;">{{showOwerInfo?'收起':'展开'}}</text>
 				</view>
 				<view class="body" v-if="showOwerInfo" style="padding: 8px;">
 					<u-table border-color="#F0E3F8">
@@ -148,7 +148,7 @@
 						</u-tr>
 						<u-tr>
 							<u-td>{{ownerInfo.name}}</u-td>
-							<u-td>{{ownerInfo.identifyNumber.slice(0,4)+"******"+ownerInfo.identifyNumber.slice(14,18)}}</u-td>
+							<u-td>{{ownerInfo.identifyNumber}}</u-td>
 							<u-td>{{ownerInfo.mobile}}</u-td>
 						</u-tr>
 					</u-table>
@@ -158,13 +158,13 @@
 					</view>
 					<u-table border-color="#F0E3F8">
 						<u-tr>
-							<u-th class="fen">车主姓名</u-th>
+							<u-th class="fen">投保人姓名</u-th>
 							<u-th class="fen">身份证</u-th>
 							<u-th class="fen">手机号</u-th>
 						</u-tr>
 						<u-tr>
 							<u-td>{{policyHolderInfo.name}}</u-td>
-							<u-td>{{policyHolderInfo.identifyNumber.slice(0,4)+"******"+policyHolderInfo.identifyNumber.slice(14,18)}}</u-td>
+							<u-td>{{policyHolderInfo.identifyNumber}}</u-td>
 							<u-td>{{policyHolderInfo.mobile}}</u-td>
 						</u-tr>
 					</u-table>
@@ -174,13 +174,13 @@
 					</view>
 					<u-table border-color="#F0E3F8">
 						<u-tr>
-							<u-th class="fen">车主姓名</u-th>
+							<u-th class="fen">被保人姓名</u-th>
 							<u-th class="fen">身份证</u-th>
 							<u-th class="fen">手机号</u-th>
 						</u-tr>
 						<u-tr>
 							<u-td>{{insuredPersonInfo.name}}</u-td>
-							<u-td>{{insuredPersonInfo.identifyNumber.slice(0,4)+"******"+insuredPersonInfo.identifyNumber.slice(14,18)}}</u-td>
+							<u-td>{{insuredPersonInfo.identifyNumber}}</u-td>
 							<u-td>{{insuredPersonInfo.mobile}}</u-td>
 						</u-tr>
 					</u-table>
@@ -193,7 +193,7 @@
 			<view class="car">
 				<view class="header d-flex a-center j-sb" @tap="policyInfoDetailsInfo = !policyInfoDetailsInfo"
 					style="background: linear-gradient( 180deg, #FFD7C2 0%, rgba(255,215,194,0) 100%);">
-					<view class="title">保单详情</view>
+					<view class="title">保费信息</view>
 					<text style="color: #FF8B50;font-size: 12px;">{{policyInfoDetailsInfo?'收起':'展开'}}</text>
 				</view>
 				<view class="body" v-if="policyInfoDetailsInfo" style="padding:5px 8px;">
@@ -238,6 +238,11 @@
 								<u-td v-else>{{item.amount}}</u-td>
 								<u-td>¥{{item.coveragePremium}}</u-td>
 							</u-tr>
+							<u-tr>
+								<u-td style="color: #8B563E">商业合计</u-td>
+								<u-td>-</u-td>
+								<u-td>¥{{orderInfo.sypremium}}</u-td>
+							</u-tr>
 						</u-table>
 					</view>
 					<view class="dis f-c mt-1 policyInfo" v-if="orderInfo.jyName">
@@ -285,7 +290,7 @@
 				<view class="header d-flex a-center j-sb"
 					style="background: linear-gradient( 180deg, #FFD5D5 0%, rgba(255,213,213,0) 100%);"
 					@tap="showPolicyHolderInfo = !showPolicyHolderInfo">
-					<view class="title">保费信息</view>
+					<view class="title">优惠信息</view>
 					<text style="color: #FF4D4D;font-size: 12px;">{{showPolicyHolderInfo?'收起':'展开'}}</text>
 				</view>
 				<view class="body" v-if="showPolicyHolderInfo" style="padding: 5px 8px ;">
@@ -1373,6 +1378,12 @@
 						}
 						this.carInfo.transferDate = year3 + '-' + month3 + '-' + day3
 					}
+					res.data.ownerinfo.identifyNumber = res.data.ownerinfo.identifyNumber.slice(0, 4) + '******' + res
+						.data.ownerinfo.identifyNumber.slice(14, 18);
+					res.data.applyinfo.identifyNumber = res.data.applyinfo.identifyNumber.slice(0, 4) + '******' + res
+						.data.applyinfo.identifyNumber.slice(14, 18);
+					res.data.insureinfo.identifyNumber = res.data.insureinfo.identifyNumber.slice(0, 4) + '******' +
+						res.data.insureinfo.identifyNumber.slice(14, 18);
 					this.ownerInfo = res.data.ownerinfo;
 					this.policyHolderInfo = res.data.applyinfo;
 					this.insuredPersonInfo = res.data.insureinfo;
@@ -2169,6 +2180,23 @@
 						})
 					}
 				}
+				if (this.orderInfo.crossInsurance.length > 0) {
+					this.orderInfo.crossInsurance.map(async ele => {
+						let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
+							companyId: this.companyId,
+							ridePolicyNo: ele.ridePolicyNo,
+							riskCode: "0513",
+							type: '2', //2:保单
+						});
+						if (res.code == '200') {
+							this.policyList.push({
+								fileTitle: "驾意险保单",
+								filename: ele.ridePolicyNo,
+								fileurl: res.data[0],
+							})
+						}
+					})
+				}
 
 			},
 			async yongChenggetPolicyPrint() {
@@ -2284,7 +2312,6 @@
 						fileurl: this.$base.baseUrl + res.data.jqSign,
 					})
 				}
-
 				if (res.data.syPolicy) {
 					this.policyList.push({
 						fileTitle: "商业电子保单",
@@ -2408,6 +2435,23 @@
 								})
 							}
 						}
+						if (this.orderInfo.crossInsurance.length > 0) {
+							this.orderInfo.crossInsurance.map(async ele => {
+								let res = await this.$http.post('/api/dajia/obtainWarranty', {
+									companyId: this.companyId,
+									policyNumber: ele.policyNumber,
+									riskCode: "0513",
+									type: '2', //2:保单
+								});
+								if (res.code == '200') {
+									this.policyList.push({
+										fileTitle: "驾意险保单",
+										filename: ele.policyNumber,
+										fileurl: res.data,
+									})
+								}
+							})
+						}
 						break;
 					case 2:
 						if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {