Эх сурвалжийг харах

1、报价页面增加协议核保规则 2、报价历史增加状态更新按钮

@dongkboy 1 жил өмнө
parent
commit
3fcb9a1d67

+ 23 - 16
pages/carInsure1/quote1.vue

@@ -170,22 +170,26 @@
 									<text v-if="totalitem.result.iszdj==0" style="color: red;">假单交</text>
 									<text v-else="totalitem.result.iszdj==1" style="color: red;">真单交</text>
 								</template>
-								<view class="dis a-c j-s" v-if="totalitem.checked">
-									<u-form-item label="报价协议选择" :prop="totalitem.agreementId" label-width="200"
-										:border-bottom='false' style="padding: 0;">
-										<u-input type="select" :select-open="totalitem.selectShow"
-											v-model="totalitem.agreementName" placeholder="请选择协议"
-											@click="totalitem.selectShow = true"></u-input>
-										<u-select mode="single-column" :list="totalitem.agreement" value-name="id"
-											label-name="agreementName" v-model="totalitem.selectShow"
-											@confirm="val=>selectConfirm(val,totalindex)"></u-select>
-									</u-form-item>
-									<u-button v-if="totalitem.namesimple == '紫金财险'" size="mini " type="warning"
-										:hair-line="false" @click="zijinPopupshow=true"
-										style="margin-left: 10px;">意外险选择</u-button>
-									<u-button v-if="totalitem.namesimple == '国任财险'" size="mini " type="warning"
-										:hair-line="false" @click="guoRencontributing(totalitem.agreementId)"
-										style="margin-left: 10px;">特约选择</u-button>
+								<view class="dis  j-s f-c" v-if="totalitem.checked">
+									<view class="dis  j-s a-c">
+										<u-form-item label="报价协议选择" :prop="totalitem.agreementId" label-width="200"
+											:border-bottom='false' style="padding: 0;">
+											<u-input type="select" :select-open="totalitem.selectShow"
+												v-model="totalitem.agreementName" placeholder="请选择协议"
+												@click="totalitem.selectShow = true"></u-input>
+											<u-select mode="single-column" :list="totalitem.agreement" value-name="id"
+												label-name="agreementName" v-model="totalitem.selectShow"
+												@confirm="val=>selectConfirm(val,totalindex)"></u-select>
+										</u-form-item>
+										<u-button v-if="totalitem.namesimple == '紫金财险'" size="mini " type="warning"
+											:hair-line="false" @click="zijinPopupshow=true"
+											style="margin-left: 10px;">意外险选择</u-button>
+										<u-button v-if="totalitem.namesimple == '国任财险'" size="mini " type="warning"
+											:hair-line="false" @click="guoRencontributing(totalitem.agreementId)"
+											style="margin-left: 10px;">特约选择</u-button>
+									</view>
+									<text
+										style="color: #ff9000;font-weight: bold;">{{totalitem.underwritingDescription}}</text>
 								</view>
 								<template
 									v-if="totalitem.namesimple == '中国人寿' && totalitem.checked && totalitem.agreementId && renshouaccidentalDrivingVo.id">
@@ -1597,6 +1601,8 @@
 					this.totalCompanyList[index].agreementName = this.totalCompanyList[index].agreement[0]
 						.agreementName;
 					this.totalCompanyList[index].apiType = this.totalCompanyList[index].agreement[0].extra;
+					this.totalCompanyList[index].underwritingDescription = this.totalCompanyList[index].agreement[0]
+						.underwritingDescription;
 					switch (ins) {
 						case '永诚财险':
 							let yccallback = await this.$http.post('/api/yongCheng/gainAccidentList', {
@@ -1870,6 +1876,7 @@
 					ele["agreementName"] = "";
 					ele["apiType"] = "";
 					ele["selectShow"] = false;
+					ele['underwritingDescription'] = "";
 				})
 				if (this.insAreaCompanyEditingDtos.length > 0) {
 					commpanykad.data.forEach((val, index) => {

+ 135 - 2
pages/orders/quoteHistory.vue

@@ -40,13 +40,16 @@
 					</view>
 				</view>
 				<view class="orders-below dis j-end">
+					<u-button
+						v-if="item.orderstatus==2 && ['恒邦财险','安盛天平','中国人寿','众安财险','太平财险','紫金财险','永诚财险','国任财险','大家财险','华泰财险','中煤财险'].includes(item.inscompany)"
+						size="mini" type="error" :plain="true" :hair-line="false" shape="circle"
+						@click="queryStatus(item.id,item.inscompany)">查询缴费状态</u-button>
 					<u-button v-if="item.orderstatus==2" size="mini" type="error" :plain="true" :hair-line="false"
 						shape="circle" @click="revokeCode(item.id)">撤销二维码</u-button>
 					<u-button v-if="item.orderstatus==4 && item.inscompany=='华泰财险'" size="mini" type="error"
 						:plain="true" :hair-line="false" shape="circle"
 						@click="underwritingCode(item.id)">核保状态查询</u-button>
-					<u-button size="mini" type="error" :plain="true" :hair-line="false" shape="circle"
-						@click="bjdpreview(item.id)">报价单</u-button>
+
 					<u-button v-if="item.orderstatus==2" size="mini" type="error" :plain="true" :hair-line="false"
 						shape="circle" @click="Payment(item.id)">付款码</u-button>
 					<u-button size="mini" type="primary" :plain="true" :hair-line="false" shape="circle"
@@ -142,6 +145,136 @@
 					});
 				}
 			},
+			/** 缴费状态查询 */
+			async queryStatus(id, inscompany) {
+				switch (inscompany) {
+					case "紫金财险":
+						let zjres = await this.$http.post('/order/zijin/getOrderDetail', {
+							companyId: id
+						});
+						if (zjres.code == '200') {
+							uni.showToast({
+								title: zjres.msg,
+								icon: 'none',
+								duration: 2000
+							});
+							this.querylist();
+						} else {
+							uni.showToast({
+								title: zjres.msg,
+								icon: 'error',
+							});
+						}
+						break;
+					case "大家财险":
+						let djres = await this.$http.post('/api/dajia/verifyPayment', {
+							companyId: id
+						});
+						if (djres.code == '200') {
+							uni.showToast({
+								title: djres.msg,
+								icon: 'none',
+								duration: 2000
+							});
+							this.querylist();
+						} else {
+							uni.showToast({
+								title: djres.msg,
+								icon: 'error',
+							});
+						}
+						break;
+					case "华泰财险":
+						let htres = await this.$http.post('/order/huaTaiApi/paymentEnquiry', {
+							companyId: id
+						});
+						if (htres.code == '200') {
+							uni.showToast({
+								title: htres.msg,
+								icon: 'none',
+								duration: 2000
+							});
+							this.querylist();
+						} else {
+							uni.showToast({
+								title: htres.msg,
+								icon: 'error',
+							});
+						}
+						break;
+					case "永诚财险":
+						let ycres = await this.$http.get('/api/yongCheng/orderStatusBySuborderId/' + id);
+						if (ycres.code == '200') {
+							uni.showToast({
+								title: ycres.msg,
+								icon: 'none',
+								duration: 2000
+							});
+							this.querylist();
+						} else {
+							uni.showToast({
+								title: ycres.msg,
+								icon: 'error',
+							});
+						}
+						break;
+					case "国任财险":
+						let grres = await this.$http.post('/api/guoRen/updateOrderInfo', {
+							companyId: id
+						});
+						if (grres.code == '200') {
+							uni.showToast({
+								title: grres.msg,
+								icon: 'none',
+								duration: 2000
+							});
+							this.querylist();
+						} else {
+							uni.showToast({
+								title: grres.msg,
+								icon: 'error',
+							});
+						}
+						break;
+					case "中煤财险":
+						let zmres = await this.$http.post('/order/zhongMeiApi/paymentEnquiry', {
+							companyId: id
+						});
+						if (zmres.code == '200') {
+							uni.showToast({
+								title: zmres.msg,
+								icon: 'none',
+								duration: 2000
+							});
+							this.querylist();
+						} else {
+							uni.showToast({
+								title: zmres.msg,
+								icon: 'error',
+							});
+						}
+						break;
+					default:
+						let pythonres = await this.$http.post('/insurance/crawler/verifyPayment', {
+							subOrderNo: id
+						});
+						if (pythonres.code == '200') {
+							uni.showToast({
+								title: pythonres.msg,
+								icon: 'none',
+								duration: 2000
+							});
+							this.querylist();
+						} else {
+							uni.showToast({
+								title: pythonres.msg,
+								icon: 'error',
+							});
+						}
+						break;
+				}
+			},
+			/** 华泰核保状态查询 */
 			async underwritingCode(id) {
 				let params = {
 					companyId: id,