ソースを参照

保险公司配置

@dongkboy 1 年間 前
コミット
5cf94b75f4

+ 8 - 1
pages/index/index.vue

@@ -51,7 +51,8 @@
 
 						</view>
 						<view class="licenslist dis mt-3">
-							<view class="item dis a-c j-c" v-for="(items,index) in historicalVehicle" :key="index">
+							<view class="item dis a-c j-c" v-for="(items,index) in historicalVehicle" :key="index"
+								@click="licensePlateQuery(items)">
 								<text>{{items.licenseNo}}</text>
 							</view>
 						</view>
@@ -234,6 +235,12 @@
 			}
 		},
 		methods: {
+			//车牌号查询相关历史订单
+			licensePlateQuery(item) {
+				uni.navigateTo({
+					url: '/pages/quote/quoteInfo?info=' + JSON.stringify(params)
+				})
+			},
 			//获取轮播图
 			async bannerquery() {
 				let res = await this.$http.post('/poster/queryPage');

+ 19 - 13
pages/orders/orders.vue

@@ -250,29 +250,21 @@
 						label: '全部',
 						value: " ",
 					}, {
-						label: '进行中',
-						value: 0,
+						label: '待核保',
+						value: 1,
 						btnColor: "#229805",
 						btnbackground: "rgba(34,152,5,0.05)",
 						itemback: "linear-gradient( 180deg, #EEFFE4 0%, #CDFFB6 100%)",
 						src: "/static/image/car-insure/state.png"
 					},
 					{
-						label: '核保中',
-						value: 2,
+						label: '人工处理',
+						value: 3,
 						btnColor: "#FF5600",
 						btnbackground: "rgba(255,86,0,0.05)",
 						itemback: "linear-gradient( 180deg, #FFEDE3 0%, #FFC7AB 100%)",
 						src: "/static/image/car-insure/state.png"
 					},
-					{
-						label: '核保退回',
-						value: 3,
-						btnColor: "#9E00FF",
-						btnbackground: "rgba(158,0,255,0.05)",
-						itemback: "linear-gradient( 180deg, #FDECFF 0%, #F5CCFF 100%)",
-						src: "/static/image/car-insure/state.png"
-					},
 					{
 						label: '待缴费',
 						value: 4,
@@ -296,6 +288,20 @@
 						btnbackground: "rgba(158,0,255,0.05)",
 						itemback: "linear-gradient( 180deg, #FFF4E4 0%, #FFEBB6 100%)",
 						src: "/static/image/car-insure/state.png"
+					},
+					{
+						label: '核保失败',
+						value: 7,
+						btnbackground: "rgba(158,0,255,0.05)",
+						itemback: "linear-gradient( 180deg, #FFF4E4 0%, #FFEBB6 100%)",
+						src: "/static/image/car-insure/state.png"
+					},
+					{
+						label: '订单关闭',
+						value: 8,
+						btnbackground: "rgba(158,0,255,0.05)",
+						itemback: "linear-gradient( 180deg, #FFF4E4 0%, #FFEBB6 100%)",
+						src: "/static/image/car-insure/state.png"
 					}
 				],
 				//日期筛选list
@@ -431,7 +437,7 @@
 				uni.stopPullDownRefresh();
 			}, 1000);
 		},
-		async onLoad(e) {
+		async onLoad() {
 			this.getOrdersList(1, 20)
 			this.getDicType("insurance_type"); //车船税类型
 		},

+ 150 - 74
pages/quote/premiumCalc.vue

@@ -2434,8 +2434,7 @@
 				this.comparableQuantity = filteredObjects.length;
 			},
 			//永诚报价
-			async yongcheng(num, id) {
-				console.log(id);
+			async AICS(num, id) {
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
 				let ccidenttype = this.quotableCompanyList[num].cnName;
 				let params = {
@@ -2504,21 +2503,35 @@
 				}
 			},
 			//中煤报价
-			async zhongmei(num, id) {
+			async ZMBX(num, id) {
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
+				let ccidenttype = this.quotableCompanyList[num].cnName;
 				let params = {
-					accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
-						.quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
-					orderNo: this.orderno,
-					companyId: id,
-					kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
-					risks: this.riskList,
-					agreementId: this.quotableCompanyList[num].agreement[0].id,
+					order: {
+						insuranceCompanyCode: id,
+						quoteNo: this.quoteno,
+						productsCode: this.productId,
+					},
+					accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
+						.quotableCompanyList[num].insurancePlanInfo.drivings[0]
+					] : [],
+					kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
+					// risks: this.riskList,
+					ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
+						.ciRiskInfoVo : null, //交强大类
+					biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
+						.biRiskInfoVo : null, //商业大类
+					carInfoVo: this.carInfo,
+					ownersInfo: this.ownerInfo,
+					policyHolderInfo: this.policyHolderInfo,
+					insuredPersonInfo: this.insuredPersonInfo,
+					vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
 					isTaxSource: isTaxSource == 1 ? isTaxSource : null,
+					// agreementId: this.quotableCompanyList[num].agreement[0].id,
 					systemType: '2'
 				};
 				try {
-					let res = await this.$http.post("/quote/quote", params);
+					let res = await this.$http.post("/unify/order/quote", params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {
 						if (res.data.warnMessageList != null && res.data.warnMessageList[
@@ -2559,21 +2572,35 @@
 				}
 			},
 			//渤海报价
-			async bohai(num, id) {
+			async BPIC(num, id) {
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
+				let ccidenttype = this.quotableCompanyList[num].cnName;
 				let params = {
-					accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
-						.quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
-					orderNo: this.orderno,
-					companyId: id,
-					kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
-					risks: this.riskList,
-					agreementId: this.quotableCompanyList[num].agreement[0].id,
+					order: {
+						insuranceCompanyCode: id,
+						quoteNo: this.quoteno,
+						productsCode: this.productId,
+					},
+					accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
+						.quotableCompanyList[num].insurancePlanInfo.drivings[0]
+					] : [],
+					kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
+					// risks: this.riskList,
+					ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
+						.ciRiskInfoVo : null, //交强大类
+					biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
+						.biRiskInfoVo : null, //商业大类
+					carInfoVo: this.carInfo,
+					ownersInfo: this.ownerInfo,
+					policyHolderInfo: this.policyHolderInfo,
+					insuredPersonInfo: this.insuredPersonInfo,
+					vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
 					isTaxSource: isTaxSource == 1 ? isTaxSource : null,
+					// agreementId: this.quotableCompanyList[num].agreement[0].id,
 					systemType: '2'
 				};
 				try {
-					let res = await this.$http.post('/quote/quote', params);
+					let res = await this.$http.post('/unify/order/quote', params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {
 						if (res.data.warnMessageList != null && res.data.warnMessageList[
@@ -2614,21 +2641,35 @@
 				}
 			},
 			//阳光报价
-			async yangguang(num, id) {
+			async YGBX(num, id) {
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
+				let ccidenttype = this.quotableCompanyList[num].cnName;
 				let params = {
-					accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
-						.quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
-					orderNo: this.orderno,
-					companyId: id,
-					kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
-					risks: this.riskList,
-					agreementId: this.quotableCompanyList[num].agreement[0].id,
+					order: {
+						insuranceCompanyCode: id,
+						quoteNo: this.quoteno,
+						productsCode: this.productId,
+					},
+					accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
+						.quotableCompanyList[num].insurancePlanInfo.drivings[0]
+					] : [],
+					kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
+					// risks: this.riskList,
+					ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
+						.ciRiskInfoVo : null, //交强大类
+					biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
+						.biRiskInfoVo : null, //商业大类
+					carInfoVo: this.carInfo,
+					ownersInfo: this.ownerInfo,
+					policyHolderInfo: this.policyHolderInfo,
+					insuredPersonInfo: this.insuredPersonInfo,
+					vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
 					isTaxSource: isTaxSource == 1 ? isTaxSource : null,
+					// agreementId: this.quotableCompanyList[num].agreement[0].id,
 					systemType: '2'
 				};
 				try {
-					let res = await this.$http.post('/quote/quote', params);
+					let res = await this.$http.post('/unify/order/quote', params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {
 						if (res.data.warnMessageList != null && res.data.warnMessageList[
@@ -2669,25 +2710,36 @@
 				}
 			},
 			//华泰报价
-			async huatai(num, id) {
+			async HTIC(num, id) {
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
+				let ccidenttype = this.quotableCompanyList[num].cnName;
 				let params = {
-					accidentalDrivingVo: {},
-					orderNo: this.orderno,
-					companyId: id,
-					kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
-					risks: this.riskList,
-					cqryCdeJq: this.cqryCdeJq,
-					cqryCdeSy: this.cqryCdeSy,
-					renewalCodeJq: this.renewalCodeJq,
-					renewalCodeSy: this.renewalCodeSy,
+					order: {
+						insuranceCompanyCode: id,
+						quoteNo: this.quoteno,
+						productsCode: this.productId,
+					},
+					accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
+						.quotableCompanyList[num].insurancePlanInfo.drivings[0]
+					] : [],
+					kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
+					// risks: this.riskList,
+					ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
+						.ciRiskInfoVo : null, //交强大类
+					biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
+						.biRiskInfoVo : null, //商业大类
+					carInfoVo: this.carInfo,
+					ownersInfo: this.ownerInfo,
+					policyHolderInfo: this.policyHolderInfo,
+					insuredPersonInfo: this.insuredPersonInfo,
+					vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
 					isTaxSource: isTaxSource == 1 ? isTaxSource : null,
-					agreementId: this.quotableCompanyList[num].agreement[0].id,
+					// agreementId: this.quotableCompanyList[num].agreement[0].id,
 					systemType: '2'
 				};
 				try {
 					let res = await this.$http.post(
-						"/quote/quote", params);
+						"/unify/order/quote", params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {
 						if (res.data.warnMessageList != null && res
@@ -2730,7 +2782,7 @@
 				}
 			},
 			//紫金报价
-			async zijin(num, id) {
+			async ZKIC(num, id) {
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
 				let ccidenttype = this.quotableCompanyList[num].cnName;
 				let params = {
@@ -2745,7 +2797,7 @@
 					systemType: '2'
 				};
 				try {
-					let res = await this.$http.post('/quote/quote', params);
+					let res = await this.$http.post('/unify/order/quote', params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {
 						if (res.data.warnMessageList != null && res.data
@@ -2786,7 +2838,7 @@
 				}
 			},
 			//国任报价
-			async guoRen(num, id) {
+			async XDCX(num, id) {
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
 				let ccidenttype = this.quotableCompanyList[num].cnName;
 				let params = {
@@ -2802,7 +2854,7 @@
 					systemType: '2'
 				};
 				try {
-					let res = await this.$http.post('/quote/quote',
+					let res = await this.$http.post('/unify/order/quote',
 						params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {
@@ -2843,26 +2895,35 @@
 				}
 			},
 			//大家报价
-			async dajia(num, id) {
+			async DJPC(num, id) {
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
 				let ccidenttype = this.quotableCompanyList[num].cnName;
 				let params = {
-					accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
-						.quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
-					orderNo: this.orderno,
-					companyId: id,
-					kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
-					risks: this.riskList,
-					cqryCdeJq: this.cqryCdeJq,
-					cqryCdeSy: this.cqryCdeSy,
-					renewalCodeJq: this.renewalCodeJq,
-					renewalCodeSy: this.renewalCodeSy,
+					order: {
+						insuranceCompanyCode: id,
+						quoteNo: this.quoteno,
+						productsCode: this.productId,
+					},
+					accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
+						.quotableCompanyList[num].insurancePlanInfo.drivings[0]
+					] : [],
+					kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
+					// risks: this.riskList,
+					ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
+						.ciRiskInfoVo : null, //交强大类
+					biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
+						.biRiskInfoVo : null, //商业大类
+					carInfoVo: this.carInfo,
+					ownersInfo: this.ownerInfo,
+					policyHolderInfo: this.policyHolderInfo,
+					insuredPersonInfo: this.insuredPersonInfo,
+					vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
 					isTaxSource: isTaxSource == 1 ? isTaxSource : null,
-					agreementId: this.quotableCompanyList[num].agreement[0].id,
+					// agreementId: this.quotableCompanyList[num].agreement[0].id,
 					systemType: '2'
 				};
 				try {
-					let res = await this.$http.post("/quote/quote",
+					let res = await this.$http.post("/unify/order/quote",
 						params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {
@@ -2904,33 +2965,35 @@
 				}
 			},
 			//安盛天平
-			ansheng(num, id) {
+			TPBX(num, id) {
 				this.quoteInsurance(num, id);
 			},
 			//华农
-			huanong(num, id) {
+			HNIC(num, id) {
 				this.quoteInsurance(num, id);
 			},
 			//太平
-			taiping(num, id) {
+			TPIC(num, id) {
 				this.quoteInsurance(num, id);
 			},
 			//众安
-			zhongan(num, id) {
+			ZAPA(num, id) {
 				this.quoteInsurance(num, id);
 			},
 			//人寿
-			renshou(num, id) {
+			GPIC(num, id) {
 				this.quoteInsurance(num, id);
 			},
 			//恒邦
-			hengbang(num, id) {
+			HBIC(num, id) {
 				this.quoteInsurance(num, id);
 			},
-			taikang(num, id) {
+			//泰康
+			TKIC(num, id) {
 				this.quoteInsurance(num, id);
 			},
-			chengtai(num, id) {
+			//诚泰
+			CHAC(num, id) {
 				this.quoteInsurance(num, id);
 			},
 			//爬虫统一报价接口
@@ -2942,14 +3005,27 @@
 					.nameSimple;
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
 				let params = {
-					orderNo: this.orderno,
-					companyId: id,
-					agreementId: this.quotableCompanyList[num].agreement[0].id,
-					kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
-					risks: this.riskList,
-					accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
-						.quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
+					order: {
+						insuranceCompanyCode: id,
+						quoteNo: this.quoteno,
+						productsCode: this.productId,
+					},
+					accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
+						.quotableCompanyList[num].insurancePlanInfo.drivings[0]
+					] : [],
+					kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
+					// risks: this.riskList,
+					ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
+						.ciRiskInfoVo : null, //交强大类
+					biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
+						.biRiskInfoVo : null, //商业大类
+					carInfoVo: this.carInfo,
+					ownersInfo: this.ownerInfo,
+					policyHolderInfo: this.policyHolderInfo,
+					insuredPersonInfo: this.insuredPersonInfo,
+					vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
 					isTaxSource: isTaxSource == 1 ? isTaxSource : null,
+					// agreementId: this.quotableCompanyList[num].agreement[0].id,
 					systemType: '2'
 				};
 				if (id = 'GPIC1000000') {
@@ -2969,7 +3045,7 @@
 					params.isInspect = this.isInspectchange;
 				}
 				try {
-					let res = await this.$http.post('/quote/quote',
+					let res = await this.$http.post('/unify/order/quote',
 						params);
 					switch (nameSimple) {
 						case '安盛天平':

+ 0 - 2
pages/quote/quoteDetail.vue

@@ -359,9 +359,7 @@
 							ordersNo: this.ordersNo,
 						}
 					});
-
 				}
-
 			},
 			//影像预览
 			previewImage(e, type) {

+ 0 - 1
pages/quote/quoteInfo.vue

@@ -269,7 +269,6 @@
 						label: '其他',
 						value: '99',
 					},
-
 				],
 				riskList: [], //交强险和商业险的选择
 				kindList: [], //商业险险种的选择