@dongkboy 1 anno fa
parent
commit
09e75fb441
2 ha cambiato i file con 82 aggiunte e 58 eliminazioni
  1. 81 57
      pages/carInsure/Information.vue
  2. 1 1
      pages/carInsure/premiumCalc.vue

+ 81 - 57
pages/carInsure/Information.vue

@@ -2039,71 +2039,95 @@
 			},
 			//校验事件
 			async next() {
+
 				let _this = this;
+				if (this.policyHolderholder == '1') {
+					await this.setPersonInfoAndImageType('ownerInfo',
+						'policyHolderInfo',
+						"C03");
+					this.policyHolderInfo.owner = true;
+					this.policyHolderInfo = {
+						...this.policyHolderInfo
+					};
+				}
+				if (this.Insuredholder == '1') {
+					await this.setPersonInfoAndImageType('ownerInfo',
+						'insuredPersonInfo',
+						"C04");
+					this.insuredPersonInfo.owner = true;
+					this.insuredPersonInfo = {
+						...this.insuredPersonInfo
+					};
+				}
+				if (this.Insuredholder == '2') {
+					await this.setPersonInfoAndImageType('policyHolderInfo',
+						'insuredPersonInfo', "C04");
+					this.insuredPersonInfo.insuranceHolder = true;
+					this.insuredPersonInfo = {
+						...this.insuredPersonInfo
+					};
+				}
 				_this.$refs[this.carSwitching ? 'carForm' : 'carForm1'].validate(carvalid => {
 					if (carvalid) {
-						_this.$refs[this.ownerSwitching ? 'ownerForm' : 'ownerForm1'].validate(ownervalid => {
-							if (ownervalid) {
-								_this.$refs[this.policySwitching ? 'policyForm' : 'policyForm1']
-									.validate(
-										policyvalid => {
-											if (policyvalid) {
-												_this.$refs[this.insuredSwitching ? 'insuredForm' :
-														'insuredForm1']
-													.validate(insuredvalid => {
-														if (insuredvalid) {
-															_this.navigate({
-																url: '/pages/carInsure/companyQuotable',
-																success: (res) => {
-																	res.eventChannel
-																		.emit(
-																			"acceptData", {
-																				carInfo: _this
-																					.carInfo,
-																				ownerInfo: _this
-																					.ownerInfo,
-																				policyHolderInfo: _this
-																					.policyHolderInfo,
-																				insuredPersonInfo: _this
-																					.insuredPersonInfo,
-																				riskList: _this
-																					.riskList,
-																				kindList: _this
-																					.kindList,
-																				carInfoPositiveList: _this
-																					.carInfoPositiveList, //车辆
-																				ownerInfoPositiveList: _this
-																					.ownerInfoPositiveList, //车主
-																				policyHolderInfoPositiveList: _this
-																					.policyHolderInfoPositiveList, //投保人
-																				insuredPersonInfoPositiveList: _this
-																					.insuredPersonInfoPositiveList, //被保人
-																				productId: _this
-																					.productId,
-																				productName: _this
-																					.productName,
-																				quoteno: this
-																					.quoteno
-																			})
-
-																}
-															}, "navigateTo", true);
-														}
-													});
-											}
-
-										});
-							}
+						_this.$refs[this.ownerSwitching ? 'ownerForm' : 'ownerForm1'].validate(
+							ownervalid => {
+								if (ownervalid) {
+									_this.$refs[this.policySwitching ? 'policyForm' : 'policyForm1']
+										.validate(
+											policyvalid => {
+												if (policyvalid) {
+													_this.$refs[this.insuredSwitching ? 'insuredForm' :
+															'insuredForm1']
+														.validate(insuredvalid => {
+															if (insuredvalid) {
+																_this.navigate({
+																	url: '/pages/carInsure/companyQuotable',
+																	success: (res) => {
+																		res.eventChannel
+																			.emit(
+																				"acceptData", {
+																					carInfo: _this
+																						.carInfo,
+																					ownerInfo: _this
+																						.ownerInfo,
+																					policyHolderInfo: _this
+																						.policyHolderInfo,
+																					insuredPersonInfo: _this
+																						.insuredPersonInfo,
+																					riskList: _this
+																						.riskList,
+																					kindList: _this
+																						.kindList,
+																					carInfoPositiveList: _this
+																						.carInfoPositiveList, //车辆
+																					ownerInfoPositiveList: _this
+																						.ownerInfoPositiveList, //车主
+																					policyHolderInfoPositiveList: _this
+																						.policyHolderInfoPositiveList, //投保人
+																					insuredPersonInfoPositiveList: _this
+																						.insuredPersonInfoPositiveList, //被保人
+																					productId: _this
+																						.productId,
+																					productName: _this
+																						.productName,
+																					quoteno: this
+																						.quoteno
+																				})
+
+																	}
+																}, "navigateTo", true);
+															}
+														});
+												}
+
+											});
+								}
 
-						});
+							});
 					}
 
 				});
 
-
-
-
-
 			},
 			expand(int) {
 				this[int] = true;

+ 1 - 1
pages/carInsure/premiumCalc.vue

@@ -156,7 +156,7 @@
 										style="border: 1px solid #06A8DC;border-radius: 2px;padding:1px 6px;color:#06A8DC;font-size: 24rpx;"
 										@click="CTadjustmentCoefficient(totalindex)">调整系数</view>
 									<view class="ml-2 mb-1 "
-										v-if="totalitem.namesimple=='紫金财险' && totalitem.result.companyIdss"
+										v-if="totalitem.namesimple=='紫金财险' && totalitem.result.companyId"
 										style="border: 1px solid #06A8DC;border-radius: 2px;padding:1px 6px;color:#06A8DC;font-size: 24rpx;"
 										@click="ZJadjustmentCoefficient(totalindex)">调整系数</view>
 									<view class="ml-2 mb-1"