瀏覽代碼

重复投保

@dongkboy 1 年之前
父節點
當前提交
7c67bba041
共有 2 個文件被更改,包括 35 次插入13 次删除
  1. 14 5
      pages/carInsure/premiumCalc.vue
  2. 21 8
      pages/orders/orders.vue

+ 14 - 5
pages/carInsure/premiumCalc.vue

@@ -3592,11 +3592,20 @@
 					ele['isComparableDisabled'] = false;
 					ele['insurancePlanInfo'] = null;
 					if (ele.editingDto) {
-						ele.result = ele.editingDto;
-						ele.insurancePlanInfo = {};
-						ele.insurancePlanInfo.drivingList = ele.editingDto.drivingList;
-						ele.insurancePlanInfo.kinds = ele.editingDto.kindList;
-						ele.quoteCode = 200;
+						if (ele.editingDto.sumPermium) {
+							ele.result = ele.editingDto;
+							ele.insurancePlanInfo = {};
+							ele.insurancePlanInfo.drivingList = ele.editingDto.drivingList;
+							ele.insurancePlanInfo.kinds = ele.editingDto.kindList;
+							ele.quoteCode = 200;
+						} else {
+							ele.msg = ele.editingDto.quoteErrMsg;
+							ele.insurancePlanInfo = {};
+							ele.insurancePlanInfo.drivingList = ele.editingDto.drivingList;
+							ele.insurancePlanInfo.kinds = ele.editingDto.kindList;
+							ele.quoteCode = 3;
+						}
+
 					}
 					return ele;
 				})

+ 21 - 8
pages/orders/orders.vue

@@ -19,7 +19,7 @@
 							<view style="padding: 0px 20px;">
 								<view class="term">
 									<text>订单状态</text>
-									<view class="dis  a-c f-wrap j-s" style="margin-top: 10px;">
+									<view class="dis  a-c f-wrap j-start" style="margin-top: 10px;">
 										<view class="status-data"
 											:class="item.value===pageRequest.orderStatus? 'active':''"
 											v-for="(item,index) in statusList"
@@ -30,7 +30,7 @@
 								</view>
 								<view class="term">
 									<text>投保险种</text>
-									<view class="dis  a-c f-wrap j-s" style="margin-top: 10px;">
+									<view class="dis  a-c f-wrap j-start" style="margin-top: 10px;">
 										<view class="status-data"
 											:class="item.dictValue==pageRequest.productid? 'active':''"
 											v-for="(item,index) in productsTypeoptions"
@@ -71,7 +71,7 @@
 								</view>
 								<view class="term">
 									<text>订单日期</text>
-									<view class="dis  a-c f-wrap j-s" style="margin-top: 10px;">
+									<view class="dis  a-c f-wrap j-start" style="margin-top: 10px;">
 										<view class="status-data" :class="item.value==timespecifications? 'active':''"
 											v-for="(item,index) in dateList" @tap="dateclick(item.value)" :key="index">
 											{{item.label}}
@@ -207,29 +207,29 @@
 						</view>
 					</view>
 					<view class="orderItemPane-below dis a-c  j-end f-wrap">
-						<u-button v-if="item.orderstatus!='3'"
+						<u-button v-if="!['3','11'].includes(item.orderstatus)"
 							:custom-style="{fontSize:'12px',background:'rgba(34,152,5,0.05)',color:'#229805',borderColor:'#229805'}"
 							shape="circle" size="mini" :hair-line="false" :plain="true"
 							@click="CloseEdit(item.orderno)">进行中 <u-badge type="error" bgColor="#FF0F00"
 								v-if="item.orderStatus0" :count="item.orderStatus0"
 								:offset="[-8, -8]"></u-badge></u-button>
-						<u-button v-if="item.orderstatus!='3'"
+						<u-button v-if="!['3','11'].includes(item.orderstatus)"
 							:custom-style="{fontSize:'12px',background:'rgba(255,86,0,0.05)',color:'#FF5600',borderColor:'#FF5600'}"
 							shape="circle" size="mini" :hair-line="false" :plain="true"
 							@click="quotehistory(item,'1')">核保中 <u-badge type="error" bgColor="#FF0F00"
 								v-if="item.orderStatus1" :count="item.orderStatus1"
 								:offset="[-8, -8]"></u-badge></u-button>
-						<u-button v-if="item.orderstatus!='3'"
+						<u-button v-if="!['3','11'].includes(item.orderstatus)"
 							:custom-style="{fontSize:'12px',background:'rgba(255,15,0,0.05)',color:'#FF0F00',borderColor:'#FF0F00'}"
 							shape="circle" size="mini" :hair-line="false" :plain="true"
 							@click="quotehistory(item,'2')">待缴费 <u-badge type="error" bgColor="#FF0F00"
 								v-if="item.orderStatus2" :count="item.orderStatus2"
 								:offset="[-8, -8]"></u-badge></u-button>
-						<u-button
+						<u-button v-if="!['11'].includes(item.orderstatus)"
 							: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-button>
-						<u-button v-if="item.orderstatus!='3'"
+						<u-button v-if="!['3','11'].includes(item.orderstatus)"
 							:custom-style="{fontSize:'12px',background:'rgba(158,0,255,0.05)',color:'#9E00FF',borderColor:'#9E00FF'}"
 							shape="circle" size="mini" :hair-line="false" :plain="true"
 							@click="quotehistory(item,'4')">核保退回 <u-badge type="error" bgColor="#FF0F00"
@@ -366,6 +366,19 @@
 						btnbackground: "rgba(158,0,255,0.05)",
 						itemback: "linear-gradient( 180deg, #FDECFF 0%, #F5CCFF 100%)",
 						src: "/static/image/car-insure/state.png"
+					},
+					{
+						label: '报价失败',
+						value: 10,
+						btnbackground: "rgba(158,0,255,0.05)",
+						itemback: "linear-gradient( 180deg, #FFF4E4 0%, #FFEBB6 100%)",
+						src: "/static/image/car-insure/state.png"
+					}, {
+						label: '重复投保',
+						value: 11,
+						btnbackground: "rgba(158,0,255,0.05)",
+						itemback: "linear-gradient( 180deg, #ECFFF8 0%, #CCFFED 100%)",
+						src: "/static/image/car-insure/state.png"
 					}
 				],
 				//日期筛选list