Przeglądaj źródła

app订单编辑回去之后,放开全部可报价保险公司

@dongkboy 1 tydzień temu
rodzic
commit
c5b79a87ac
2 zmienionych plików z 7 dodań i 6 usunięć
  1. 4 3
      pages/quote/Mixin.js
  2. 3 3
      pages/quote/premiumCalc1.vue

+ 4 - 3
pages/quote/Mixin.js

@@ -442,7 +442,8 @@ export default {
 		},
 		//保险公司数据前置处理
 		commpanyList(item) {
-			let list = [];
+			console.log(this.quotableCompanyList);
+			let quoteRecord = (item && item.insCompanyVo && item.insCompanyVo[0]) || {};
 			this.quotableCompanyList.map(ele => {
 				ele["result"] = {};
 				ele["quoteCode"] = 0;
@@ -461,8 +462,8 @@ export default {
 				ele['isComparableshowHide'] = false;
 				ele['isComparableDisabled'] = false;
 				ele['insurancePlanInfo'] = null;
-				if (this.order && this.order.orderStatus) {
-					if (this.costs.sumPremium) {
+				if (quoteRecord.id && ele.id === quoteRecord.id) {
+					if (quoteRecord.costs && quoteRecord.costs.sumPremium) {
 						ele.result = item;
 						ele.insurancePlanInfo = {};
 						ele.insurancePlanInfo.drivings = item.accidentalDrivings;

+ 3 - 3
pages/quote/premiumCalc1.vue

@@ -440,7 +440,7 @@
 					});
 					this.productId = res.data.order.productId; //险种id
 					this.productName = res.data.order.productsName; //险种name
-					this.quotableCompanyList = JSON.parse(JSON.stringify(res.data.insCompanyVo));
+					// this.quotableCompanyList = JSON.parse(JSON.stringify(res.data.insCompanyVo));
 					this.order = res.data.order;
 					this.costs = res.data.costs; //价格
 					this.carInfo = res.data.carInfoVo; //车辆信息
@@ -453,7 +453,6 @@
 					this.vehicleAndVesselTaxVo = res.data.vehicleAndVesselTaxVo; //车船税信息
 					this.orderno = res.data.order.ordersNo;
 					this.quoteno = res.data.order.quoteNo;
-					this.insCompanyVo = res.data.insCompanyVo[0]; //历史保险公司
 					await this.ruleFilterCompany();
 					await this.commpanyList(res.data);
 					this.imageEcho(res.data.imageVoList) // 影像获取完毕
@@ -536,7 +535,8 @@
 				}
 				let res = await this.$http.post('/scheme/ruleFilterCompanyApp', params);
 				if (res.code == '200') {
-					this.quotableCompanyList = res.data.filter(val => val.id == this.insCompanyVo.id);
+					this.quotableCompanyList = res.data;
+					console.log(this.quotableCompanyList);
 				} else {
 					this.quotableCompanyList = [];
 					uni.showToast({