Browse Source

10/10提交

@dongkboy 1 year ago
parent
commit
cad2707b2e

+ 2 - 2
manifest.json

@@ -7,8 +7,8 @@
 		"sizes": "分辨率,192x192",
 		"src": "图片路径"
 	}],
-	"versionName": "2.8.5",
-	"versionCode": 285,
+	"versionName": "2.8.7",
+	"versionCode": 287,
 	"app-plus": {
 		"error": {
 			"url": "hybrid/html/error.html"

+ 94 - 12
pages/carInsure/Information.vue

@@ -1054,20 +1054,27 @@
 			});
 		},
 		onLoad(params) {
-			this.getDicType("businessVehicleUse"); //车辆用途(营业)
-			this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
-			this.getDicType("natureOfVehicleUse"); //车辆性质
-			this.getDicType("vehicleType"); //车辆种类
-			this.getDicType("trafficManagementVehicleType"); //车辆类型
-			this.getDicType("energyType"); //能源种类
+
 			let pages = getCurrentPages(); // 当前页面路由
 			if (pages.length > 1) {
 				let beforePage = pages[pages.length - 2].route; // 上一个页面路由
 				this.routepage = beforePage;
 			}
 			if (!!params.licenseNo) {
+				let historys = JSON.parse(params.historyInfo);
 				this.carExpand = true;
 				this.carInfo.licenseNo = decodeURIComponent(params.licenseNo);
+				this.carInfo = historys.carInfo;
+				this.ownerInfo = historys.ownerInfo;
+				this.policyHolderInfo = historys.policyHolderInfo;
+				this.insuredPersonInfo = historys.insuredPersonInfo;
+				this.carInfoPositiveList = historys.carInfoPositiveList;
+				this.ownerInfoPositiveList = historys.ownerInfoPositiveList;
+				this.policyHolderInfoPositiveList = historys.policyHolderInfoPositiveList;
+				this.insuredPersonInfoPositiveList = historys.insuredPersonInfoPositiveList;
+				if (this.ownerInfo.identifyNumber) {
+					this.ownersExpand = true;
+				}
 			} else {
 				const eventChannel = this.getOpenerEventChannel()
 				eventChannel.on('acceptData', (data) => {
@@ -1078,6 +1085,9 @@
 							case 'pages/carInsure/entry':
 								this.carInfoShow = false;
 								this.carInfo = info.carInfo; //车辆信息
+								this.ownerInfo = info.ownerInfo; //车辆信息
+								this.policyHolderInfo = info.policyHolderInfo; //车辆信息
+								this.insuredPersonInfo = info.insuredPersonInfo; //车辆信息
 								if (this.carInfo.cimodelclass == 'A0') {
 									this.carInfo1.cimodelclass = "客车"
 								} else {
@@ -1124,6 +1134,35 @@
 
 				})
 			}
+			this.getDicType("businessVehicleUse"); //车辆用途(营业)
+			this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
+			this.getDicType("natureOfVehicleUse"); //车辆性质
+			this.getDicType("vehicleType"); //车辆种类
+			this.getDicType("trafficManagementVehicleType"); //车辆类型
+			this.getDicType("energyType"); //能源种类
+
+		},
+		onUnload() {
+			//投保人同车主
+			if (this.policyHolderholder == '1') {
+				this.setPersonInfoAndImageType('ownerInfo', 'policyHolderInfo', "C03");
+			}
+			if (this.Insuredholder == '1') {
+				this.setPersonInfoAndImageType('ownerInfo', 'insuredPersonInfo', "C04");
+			}
+			if (this.Insuredholder == '2') {
+				this.setPersonInfoAndImageType('policyHolderInfo', 'insuredPersonInfo', "C04");
+			}
+			uni.setStorageSync('historyInfo', {
+				carInfo: this.carInfo,
+				ownerInfo: this.ownerInfo,
+				policyHolderInfo: this.policyHolderInfo,
+				insuredPersonInfo: this.insuredPersonInfo,
+				carInfoPositiveList: this.carInfoPositiveList,
+				ownerInfoPositiveList: this.ownerInfoPositiveList,
+				policyHolderInfoPositiveList: this.policyHolderInfoPositiveList,
+				insuredPersonInfoPositiveList: this.insuredPersonInfoPositiveList,
+			});
 
 		},
 		onPageScroll(e) {
@@ -1149,6 +1188,37 @@
 							.carInfo
 							.energyType)
 					}
+					if (type == "vehicleType") {
+						this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
+							this
+							.carInfo
+							.cimodelclass)
+					}
+					if (type == "trafficManagementVehicleType") {
+						this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions,
+							this
+							.carInfo
+							.cartype);
+					}
+					if (type == "natureOfVehicleUse") {
+						this.carInfo1.carnature = this.carInfo.carnature ? this.dictionaryMatching(this
+							.natureOfVehicleUseoptions,
+							this
+							.carInfo
+							.carnature) : "";
+					}
+					if ((type == "BusinessVehicleUse" || type == 'outOfBusinessVehicleUse') && this.carInfo
+						.carnature) {
+						this.carInfo1.vehicleUse = this.carInfo.carnature == '01' ? this.dictionaryMatching(this
+							.businessVehicleUseoptions,
+							this
+							.carInfo
+							.vehicleUse) : this.dictionaryMatching(this
+							.outOfBusinessVehicleUseoptions,
+							this
+							.carInfo
+							.vehicleUse);
+					}
 				}
 			},
 			dictionaryConfirm(e, name) {
@@ -1211,10 +1281,13 @@
 			//字典name匹配
 			dictionaryMatching(list, value) {
 				let obj = list.find(val => val.dictValue == value);
-				return obj.dictTag;
+				if (obj) {
+					return obj.dictTag;
+				}
 			},
 			//OC识别返回信息
 			carCallback(obj) {
+
 				this.carfrontImg = obj.frontImg;
 				this.carbackImg = obj.backImg;
 				this.carInfoPositiveList = obj.ImgList;
@@ -1233,11 +1306,20 @@
 					this
 					.carInfo
 					.carnature) : "";
-				this.carInfo1.vehicleUse = this.carInfo.carnature == '02' ? this.dictionaryMatching(this
-					.outOfBusinessVehicleUseoptions,
-					this
-					.carInfo
-					.vehicleUse) : "";
+				if (this.carInfo.carnature && this.carInfo.vehicleUse) {
+					this.carInfo1.vehicleUse = this.carInfo.carnature == '02' ? this.dictionaryMatching(this
+						.outOfBusinessVehicleUseoptions,
+						this
+						.carInfo
+						.vehicleUse) : this.dictionaryMatching(this
+						.BusinessVehicleUseoptions,
+						this
+						.carInfo
+						.vehicleUse);
+				} else {
+					this.carInfo1.vehicleUse = "";
+				}
+
 				this.OCRShow = false;
 				this.carExpand = true;
 			},

+ 108 - 15
pages/carInsure/entry.vue

@@ -514,6 +514,45 @@
 				LicenseInputValue: ['晋', 'A', '', '', '', '', '', ''],
 				currentInputIndex: 0,
 				carInfoPositiveList: [], //车辆
+				ownerInfoPositiveList: [], //车主
+				policyHolderInfoPositiveList: [], //投保人
+				insuredPersonInfoPositiveList: [], //被保人
+				ownerInfo: {
+					name: "",
+					identifyType: "01",
+					identifyNumber: "",
+					addr: "",
+					gender: "", //性别
+					email: "", //邮箱
+					mobile: "",
+					identifyValidDate: "", //有效期起期
+					identifyValidEndDate: "", //有效期止期
+					age: "", //年龄
+				},
+				policyHolderInfo: {
+					name: "",
+					identifyType: "01",
+					identifyNumber: "",
+					addr: "",
+					gender: "", //性别
+					email: "",
+					mobile: "",
+					identifyValidDate: "", //有效期起期
+					identifyValidEndDate: "", //有效期止期
+					age: "", //年龄
+				},
+				insuredPersonInfo: {
+					name: "",
+					identifyType: "01",
+					identifyNumber: "",
+					addr: "",
+					gender: "", //性别
+					email: "",
+					mobile: "",
+					identifyValidDate: "", //有效期起期
+					identifyValidEndDate: "", //有效期止期
+					age: "", //年龄
+				},
 				//车辆信息
 				carInfo: {
 					licenseNo: "", //车牌号
@@ -596,6 +635,7 @@
 		},
 
 		async onLoad() {
+
 			this.$http.get('/sysMenuRecord/add?type=1&menuType=1')
 			this.getDicType("businessVehicleUse"); //车辆用途(营业)
 			this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
@@ -618,6 +658,21 @@
 				})
 				this.carInfo.licenseNo = "";
 			}
+
+
+		},
+		onShow() {
+			let historyInfo = uni.getStorageSync('historyInfo');
+			if (historyInfo) {
+				this.carInfo = historyInfo.carInfo;
+				this.ownerInfo = historyInfo.ownerInfo;
+				this.policyHolderInfo = historyInfo.policyHolderInfo;
+				this.insuredPersonInfo = historyInfo.insuredPersonInfo;
+				this.carInfoPositiveList = historyInfo.carInfoPositiveList;
+				this.ownerInfoPositiveList = historyInfo.ownerInfoPositiveList;
+				this.policyHolderInfoPositiveList = historyInfo.policyHolderInfoPositiveList;
+				this.insuredPersonInfoPositiveList = historyInfo.insuredPersonInfoPositiveList;
+			}
 		},
 		watch: {
 			currentInputIndex(newVal) {
@@ -651,18 +706,6 @@
 				},
 				deep: true
 			},
-			"carInfo.vehicleUse": {
-				handler(val) {
-					if (val) {
-						this.carInfo1.vehicleUse = this.carInfo.carnature == '02' ? this.dictionaryMatching(this
-							.outOfBusinessVehicleUseoptions,
-							this
-							.carInfo
-							.vehicleUse) : "";
-					}
-				},
-				deep: true
-			},
 		},
 		methods: {
 			toggleSwitch() {
@@ -712,6 +755,28 @@
 					this
 					.carInfo
 					.cimodelclass)
+				this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions,
+					this
+					.carInfo
+					.cartype);
+				this.carInfo1.carnature = this.carInfo.carnature ? this.dictionaryMatching(this
+					.natureOfVehicleUseoptions,
+					this
+					.carInfo
+					.carnature) : "";
+				if (this.carInfo.carnature && this.carInfo.vehicleUse) {
+					this.carInfo1.vehicleUse = this.carInfo.carnature == '02' ? this.dictionaryMatching(this
+						.outOfBusinessVehicleUseoptions,
+						this
+						.carInfo
+						.vehicleUse) : this.dictionaryMatching(this
+						.BusinessVehicleUseoptions,
+						this
+						.carInfo
+						.vehicleUse);
+				} else {
+					this.carInfo1.vehicleUse = "";
+				}
 				this.OCRShow = false;
 			},
 			upperCaseType(type) {
@@ -743,9 +808,27 @@
 								duration: 1500
 							});
 						}
+						let params = {
+							carInfo: this
+								.carInfo,
+							ownerInfo: this
+								.ownerInfo,
+							policyHolderInfo: this
+								.policyHolderInfo,
+							insuredPersonInfo: this
+								.insuredPersonInfo,
+							carInfoPositiveList: this
+								.carInfoPositiveList, //车辆
+							ownerInfoPositiveList: this
+								.ownerInfoPositiveList, //车主
+							policyHolderInfoPositiveList: this
+								.policyHolderInfoPositiveList, //投保人
+							insuredPersonInfoPositiveList: this
+								.insuredPersonInfoPositiveList, //被保人
+						}
 						this.navigate({
 							url: "/pages/carInsure/Information?licenseNo=" + encodeURIComponent(this.carInfo
-								.licenseNo)
+								.licenseNo) + '&historyInfo=' + `${JSON.stringify(params)}`
 						}, "navigateTo", true)
 						break;
 					case 2:
@@ -758,8 +841,6 @@
 						}
 						this.$refs.carForm.submit().then(res => {
 							if (this.vehicleType) {
-								console.log(this
-									.carInfo);
 								this.navigate({
 									url: '/pages/carInsure/Information',
 									success: (res) => {
@@ -767,8 +848,20 @@
 											"acceptData", {
 												carInfo: this
 													.carInfo,
+												ownerInfo: this
+													.ownerInfo,
+												policyHolderInfo: this
+													.policyHolderInfo,
+												insuredPersonInfo: this
+													.insuredPersonInfo,
 												carInfoPositiveList: this
 													.carInfoPositiveList, //车辆
+												ownerInfoPositiveList: this
+													.ownerInfoPositiveList, //车主
+												policyHolderInfoPositiveList: this
+													.policyHolderInfoPositiveList, //投保人
+												insuredPersonInfoPositiveList: this
+													.insuredPersonInfoPositiveList, //被保人
 											})
 									}
 								}, "navigateTo", true);

+ 3 - 5
pages/carInsure/premiumCalc.vue

@@ -2717,7 +2717,7 @@
 					systemType: '2'
 				};
 				try {
-					let res = await this.$http.post('/quote/quote', params);
+					let res = await this.$http.post("/quote/quote", params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {
 						if (res.data.warnMessageList != null && res.data.warnMessageList[
@@ -2814,7 +2814,6 @@
 			},
 			//华泰报价
 			async huatai(num, id) {
-				let type = this.quotableCompanyList[num].apiType;
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
 				let params = {
 					accidentalDrivingVo: {},
@@ -2832,7 +2831,7 @@
 				};
 				try {
 					let res = await this.$http.post(
-						'/quote/quote', params);
+						"/quote/quote", params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {
 						if (res.data.warnMessageList != null && res
@@ -2989,7 +2988,6 @@
 			},
 			//大家报价
 			async dajia(num, id) {
-				let type = this.quotableCompanyList[num].apiType;
 				let isTaxSource = this.quotableCompanyList[num].isTaxSource;
 				let ccidenttype = this.quotableCompanyList[num].cnName;
 				let params = {
@@ -3008,7 +3006,7 @@
 					systemType: '2'
 				};
 				try {
-					let res = await this.$http.post('/quote/quote',
+					let res = await this.$http.post("/quote/quote",
 						params);
 					this.quotableCompanyList[num].msg = res.msg;
 					if (res.code == '200') {

+ 153 - 89
pages/carInsure/quoteDetail.vue

@@ -246,6 +246,9 @@
 						</u-table>
 					</view>
 					<view class="dis f-c mt-1 policyInfo" v-if="orderInfo.jyName">
+						<view class="dis j-s a-c">
+							<text class="font-weight" style="color: #6B2709;font-size: 15px;">驾意险</text>
+						</view>
 						<text class="tagHeader dis a-c">
 							<text>{{orderInfo.jyName}}
 								<view class="tag"></view>
@@ -1764,14 +1767,18 @@
 						}
 						break;
 					case "中煤财险":
+						let zmapiImage = this.orderInfo.apiType == "2" ? "/insurance/crawler/submitImage" :
+							'/order/zhongMeiApi/submitImage';
 						let zmimage = await this.$http.post(
-							'/order/zhongMeiApi/submitImage', {
-								companyId: this.companyId
+							`${zmapiImage}`, {
+								[this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
 							});
 						if (zmimage.code == '200') {
+							let zmapiAudit = this.orderInfo.apiType == "2" ? "/insurance/crawler/audit" :
+								'/order/zhongMeiApi/audit';
 							let zmaudit = await this.$http.post(
-								'/order/zhongMeiApi/audit', {
-									companyId: this.companyId,
+								`${zmapiAudit}`, {
+									[this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
 									jqappoint: "",
 									syappoint: ""
 								});
@@ -2138,64 +2145,110 @@
 				}
 			},
 			async zhongMeigetPolicyPrint() {
-				this.policyList = [];
-				this.policyList1 = [];
-				if (this.orderInfo.jqpolicyno) {
-					let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
-						companyId: this.companyId,
-						riskCode: "0507",
-						type: '2', //2:保单
-					});
-					if (res.code == '200') {
-						this.policyList.push({
-							fileTitle: "交强电子保单",
-							filename: this.orderInfo.jqpolicyno,
-							fileurl: res.data[0],
-						})
-					}
-					let res1 = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
-						companyId: this.companyId,
-						riskCode: "0507",
-						type: '1', //1:标志
-					});
-					if (res1.code == '200') {
-						this.policyList1.push({
-							fileTitle: "交强电子标志",
-							filename: this.orderInfo.jqpolicyno,
-							fileurl: res1.data[0],
-						})
-					}
-				}
-				if (this.orderInfo.sypolicyno) {
-					let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
-						companyId: this.companyId,
-						riskCode: "0510",
-						type: '2', //2:标志
-					});
-					if (res.code == '200') {
-						this.policyList.push({
-							fileTitle: "商业电子保单",
-							filename: this.orderInfo.sypolicyno,
-							fileurl: res.data[0],
-						})
-					}
-				}
-				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],
+				let apiType = this.orderInfo.apiType;
+				switch (apiType) {
+					case 1:
+						this.policyList = [];
+						this.policyList1 = [];
+						if (this.orderInfo.jqpolicyno) {
+							let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
+								companyId: this.companyId,
+								riskCode: "0507",
+								type: '2', //2:保单
+							});
+							if (res.code == '200') {
+								this.policyList.push({
+									fileTitle: "交强电子保单",
+									filename: this.orderInfo.jqpolicyno,
+									fileurl: res.data[0],
+								})
+							}
+							let res1 = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
+								companyId: this.companyId,
+								riskCode: "0507",
+								type: '1', //1:标志
+							});
+							if (res1.code == '200') {
+								this.policyList1.push({
+									fileTitle: "交强电子标志",
+									filename: this.orderInfo.jqpolicyno,
+									fileurl: res1.data[0],
+								})
+							}
+						}
+						if (this.orderInfo.sypolicyno) {
+							let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
+								companyId: this.companyId,
+								riskCode: "0510",
+								type: '2', //2:标志
+							});
+							if (res.code == '200') {
+								this.policyList.push({
+									fileTitle: "商业电子保单",
+									filename: this.orderInfo.sypolicyno,
+									fileurl: res.data[0],
+								})
+							}
+						}
+						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],
+									})
+								}
 							})
 						}
-					})
+						break;
+					case 2:
+						if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
+							let params = {
+								subOrderNo: this.companyId,
+							};
+							let res1 = await this.$http.post(
+								'/insurance/crawler/getPolicyPrint', params);
+							if (res1.code == '200') {
+								this.policyList = [];
+								this.policyList1 = [];
+								this.policyList.push({
+									fileTitle: "交强电子保单",
+									filename: this.orderInfo.jqpolicyno,
+									fileurl: res1.data.jqxPolicyUrl,
+								})
+								this.policyList1.push({
+									fileTitle: "交强电子标志",
+									filename: this.orderInfo.jqpolicyno,
+									fileurl: res1.data.jqxFlagUrl,
+								})
+								if (res1.data.syxPolicyUrl) {
+									this.policyList.push({
+										fileTitle: "商业电子保单",
+										filename: this.orderInfo.sypolicyno,
+										fileurl: res1.data.syxPolicyUrl,
+									});
+								}
+								if (res1.data.jyxInfoList.length > 0) {
+									res1.data.jyxInfoList.map(ele => {
+										this.policyList.push({
+											fileTitle: "驾意险保单",
+											filename: ele.application,
+											fileurl: ele.jyx_policy_url,
+										});
+										return ele;
+									})
+
+								}
+							}
+						}
+						break;
 				}
 
 			},
@@ -2295,7 +2348,8 @@
 				}
 			},
 			async externalOrder() {
-				let res = await this.$http.get('/api/externalOrder/getPolicyPrint?subOrderNo=' + this.companyId);
+				let res = await this.$http.get('/api/externalOrder/getPolicyPrint?subOrderNo=' + this
+					.companyId);
 				this.policyList = [];
 				this.policyList1 = [];
 				if (res.data.jqPolicy) {
@@ -2371,12 +2425,13 @@
 				}
 				if (this.orderInfo.crossInsurance.length > 0) {
 					this.orderInfo.crossInsurance.map(async ele => {
-						let res = await this.$http.post('/order/zijin/getPolicyPrint', {
-							companyId: this.companyId,
-							policyNumber: ele.policyNumber,
-							riskCode: "0513",
-							type: '2', //2:保单
-						});
+						let res = await this.$http.post(
+							'/order/zijin/getPolicyPrint', {
+								companyId: this.companyId,
+								policyNumber: ele.policyNumber,
+								riskCode: "0513",
+								type: '2', //2:保单
+							});
 						if (res.code == '200') {
 							this.policyList.push({
 								fileTitle: "驾意险保单",
@@ -2437,12 +2492,13 @@
 						}
 						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:保单
-								});
+								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: "驾意险保单",
@@ -2458,7 +2514,8 @@
 							let params = {
 								subOrderNo: this.companyId,
 							};
-							let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
+							let res1 = await this.$http.post(
+								'/insurance/crawler/getPolicyPrint', params);
 							if (res1.code == '200') {
 								this.policyList = [];
 								this.policyList1 = [];
@@ -2501,10 +2558,11 @@
 				switch (apiType) {
 					case 1:
 						if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
-							let res = await this.$http.post('/order/huaTaiApi/getPolicyPrint', {
-								companyId: this.companyId,
-								riskCode: "0507",
-							});
+							let res = await this.$http.post(
+								'/order/huaTaiApi/getPolicyPrint', {
+									companyId: this.companyId,
+									riskCode: "0507",
+								});
 							if (res.code == '200') {
 								this.policyList = [];
 								this.policyList1 = [];
@@ -2533,7 +2591,8 @@
 							let params = {
 								subOrderNo: this.companyId,
 							};
-							let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
+							let res1 = await this.$http.post(
+								'/insurance/crawler/getPolicyPrint', params);
 							if (res1.code == '200') {
 								this.policyList = [];
 								this.policyList1 = [];
@@ -2615,12 +2674,13 @@
 				}
 				if (this.orderInfo.crossInsurance.length > 0) {
 					this.orderInfo.crossInsurance.map(async ele => {
-						let res = await this.$http.post('/api/guoRen/policyPrint', {
-							companyId: this.companyId,
-							policyNumber: ele.policyNumber,
-							riskCode: "0513",
-							type: '2', //2:保单
-						});
+						let res = await this.$http.post(
+							'/api/guoRen/policyPrint', {
+								companyId: this.companyId,
+								policyNumber: ele.policyNumber,
+								riskCode: "0513",
+								type: '2', //2:保单
+							});
 						if (res.code == '200') {
 							this.policyList.push({
 								fileTitle: "驾意险保单",
@@ -2640,12 +2700,14 @@
 				let index = file.lastIndexOf("\/")
 				let licensename = file.substring(index + 1, file.length)
 				let dtask = plus.downloader.createDownload(file, {
-					filename: "_downloads/" + this.name + '-' + this.insuredPersonInfo.name + '-' + licensename
+					filename: "_downloads/" + this.name + '-' + this
+						.insuredPersonInfo.name + '-' + licensename
 				}, function(d, status) {
 					if (status == 200) {
 						uni.hideLoading()
 						//下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
-						let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
+						let fileSaveUrl = plus.io.convertLocalFileSystemURL(d
+							.filename);
 						plus.runtime.openFile(d.filename); //选择软件打开文件
 					} else {
 						uni.hideLoading()
@@ -2687,7 +2749,8 @@
 					success: async (res) => {
 						if (res.confirm) {
 							let param = {
-								"auditid": this.userInfo.sysUser.id, //核保人会员号
+								"auditid": this.userInfo.sysUser
+									.id, //核保人会员号
 								"auditopinion": '', //核保意见
 								"jqapplyno": "", //交强险投保单号
 								"jqappoint": "", //交强特别约定
@@ -2698,7 +2761,8 @@
 								"syappoint": "", //商业险特别约定
 								"sypolicyno": "" //商业保单号
 							}
-							let res = await this.$http.post('/insOrder/saveAudit', param);
+							let res = await this.$http.post(
+								'/insOrder/saveAudit', param);
 							uni.showToast({
 								title: '撤销成功',
 								icon: "none",

+ 1 - 3
pages/orders/orders.vue

@@ -228,9 +228,7 @@
 						<u-button
 							:custom-style="{fontSize:'12px',background:'rgba(0,82,255,0.05)',color:'#0052FF',borderColor:'#0052FF'}"
 							shape="circle" size="mini" :hair-line="false" :plain="true"
-							@click="quotehistory(item,'3')">已承保 <u-badge type="error" bgColor="#FF0F00"
-								v-if="item.orderStatus3" :count="item.orderStatus3"
-								:offset="[-8, -8]"></u-badge></u-button>
+							@click="quotehistory(item,'3')">已承保</u-button>
 						<u-button v-if="item.orderstatus!='3'"
 							:custom-style="{fontSize:'12px',background:'rgba(158,0,255,0.05)',color:'#9E00FF',borderColor:'#9E00FF'}"
 							shape="circle" size="mini" :hair-line="false" :plain="true"

+ 7 - 3
pages/orders/quoteHistory.vue

@@ -1144,7 +1144,9 @@
 			async underwriting(id, inscompany) {
 				switch (inscompany) {
 					case "中煤财险":
-						let zmres = await this.$http.post('/order/zhongMeiApi/auditStatusQuery', {
+						let zmapi = item.apiType == '2' ? '/insurance/crawler/auditStatusQuery' :
+							'/order/zhongMeiApi/auditStatusQuery';
+						let zmres = await this.$http.post(`${zmapi}`, {
 							companyId: id
 						})
 						if (zmres.code == '200') {
@@ -1369,8 +1371,10 @@
 						}
 						break;
 					case "中煤财险":
-						let zmres = await this.$http.post('/order/zhongMeiApi/paymentEnquiry', {
-							companyId: id
+						let zmapi = item.apiType == '2' ? '/insurance/crawler/verifyPayment' :
+							'/order/zhongMeiApi/paymentEnquiry';
+						let zmres = await this.$http.post(`${zmapi}`, {
+							[item.apiType == 2 ? "subOrderNo" : "companyId"]: id
 						});
 						if (zmres.code == '200') {
 							uni.showToast({

+ 1 - 1
pages/wallet/bindBank.vue

@@ -25,7 +25,7 @@
 							@click="show = true" placeholder-style="color: grey;"></u-input>
 					</u-form-item>
 					<u-form-item label="开户行">
-						<u-input placeholder="输入开户行" v-model="bankform.bankAddress" dis type="text"
+						<u-input placeholder="输入开户行" v-model="bankform.bankAddress" type="text"
 							placeholder-style="color: grey;"></u-input>
 					</u-form-item>
 				</u-form>