@dongkboy 2 лет назад
Родитель
Сommit
34686600f8

+ 1 - 1
pages/carInsure/Information.vue

@@ -1336,7 +1336,7 @@
 						.policyHolderInfo,
 						'email') && this.isEveryPropertyFilled(this.insuredPersonInfo, 'email')) {
 					this.navigate({
-						url: '/pages/carInsure/companyQuotable',
+						url: '/pages/carInsure/insureItems',
 						success: (res) => {
 							res.eventChannel.emit(
 								"acceptData", {

+ 2 - 1
pages/carInsure/companyQuotable.vue

@@ -372,7 +372,8 @@
 									.policyHolderInfoPositiveList, //投保
 								insuredPersonInfoPositiveList: this
 									.insuredPersonInfoPositiveList, //被保人
-								quotableCompanyList: this.quotableCompanyList,
+								quotableCompanyList: this.quotableCompanyList, //可报价公司
+								productId: this.insuranceTypeId, //险种id
 
 							})
 					}

+ 27 - 27
pages/carInsure/premiumCalc.vue

@@ -183,7 +183,7 @@
 								<view class="footer-btn dis j-s a-c">
 									<u-button type="primary" size="mini"
 										style="background:#E6EEFF;color:#0052FF; width: 45%;"
-										@tap="SchemeSelection">方案选择</u-button>
+										@tap="SchemeSelection(totalitem)">方案选择</u-button>
 									<u-button type="primary" size="mini"
 										style="background:#FFEFE6;color: #FF5600; width: 45%;"
 										@tap="next">单独报价</u-button>
@@ -222,7 +222,7 @@
 					<view class="Plancontent dis  f-c ">
 						<text class="title mb-1">方案选择</text>
 						<view class="dis  a-c f-wrap j-s modelformcss" style="margin-top: 10px;">
-							<view class="status-data" :class="item.value==SelectedPlanId? 'active':''"
+							<view class="status-data" :class="index+1==SelectedPlanId? 'active':''"
 								v-for="(item,index) in InsurerPlanList" @tap.stop.prevent="statusclick(item.value)"
 								:key="index">
 								{{item.label}}
@@ -509,34 +509,19 @@
 					area: false
 				},
 				quotableCompanyList: [],
+				productId: "",
 				animation: 'twinkle', //动画类型
 				InsureGuidePopup: false,
 				/* 投保指引弹窗*/
 				InsureGuideContent: "", // 指引内容
 				PlanPopup: false, //方案选择弹窗
-				SelectedPlanId: "1", //已选方案id
+				SelectedPlanId: "2", //已选方案id
 				InsurerPlanList: [{
-						label: "方案一",
-						value: "1",
-						PlanSet: []
-					},
-					{
-						label: "方案二",
-						value: "2",
-						PlanSet: []
-					},
-					{
-						label: "方案三",
-						value: "3",
-						PlanSet: []
-					},
-					{
-						label: "自选方案",
-						value: "4",
-						PlanSet: []
-					}
-				],
-
+					label: "自选方案",
+					value: "4",
+					PlanSet: []
+				}],
+				anshenginsurancePlanInfo: {},
 
 			}
 		},
@@ -556,8 +541,8 @@
 				this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
 				this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
 				this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
-				this.quotableCompanyList = data.quotableCompanyList;
-
+				this.productId = data.productId; //险种id
+				this.quotableCompanyList = data.quotableCompanyList; //可报价公司
 				this.commpanyList();
 			})
 			this.getDicType("taxRelifFlag"); //车船税类型
@@ -622,8 +607,18 @@
 			InsureGuideclick() {
 				this.InsureGuidePopup = true;
 			},
-			SchemeSelection() {
+			async SchemeSelection(item) {
+				let params = {
+					companyId: item.id,
+					productId: this.productId,
+					seatNum: this.carInfo.seatCount,
+				}
+				let res = await this.$http.post('/plt/scheme/getCompanySchemeInfo', params);
+				if (res.code == '200') {
+					this[item.cnName + 'insurancePlanInfo'].planList = res.data;
+				}
 				this.PlanPopup = true;
+				console.log(this.$data);
 			},
 			//即使投保时处理时间
 			datelyClick(value, name, startDate, endDate) {
@@ -658,6 +653,11 @@
 					ele['planDetailsshow'] = false;
 					ele['isComparableshowHide'] = false;
 					ele['isComparableDisabled'] = false;
+					this.$set(this, `${ele.cnName}insurancePlanInfo`, {
+						isSelectedPlan: {},
+						kindList: [],
+						accidentalDrivingVo: {},
+					});
 					return ele;
 				})
 			},

+ 1 - 0
pages/carInsure/quote.vue

@@ -2766,6 +2766,7 @@
 			//动态函数
 			async ToolClickFun(MethodName, Parameter, companyId) {
 				await this[`${MethodName}`](Parameter, companyId)
+				//获取已报价成功个数
 				let filteredObjects = [];
 				this.totalCompanyList.map(ele => {
 					if (ele.quoteCode == 200) {