Przeglądaj źródła

解决app方案查询无数据的问题

祁鹏飞 2 miesięcy temu
rodzic
commit
cc5220c728

+ 12 - 0
components/commonFormItem/CarInfoForm.vue

@@ -25,6 +25,12 @@
 						placeholderStyle="text-align:right;" clearable border="none"
 						style="pointer-events: none"></u--input>
 				</u-form-item>
+				<u-form-item label="车辆种类" prop="carKindCode" borderBottom @tap="plateTypeShow=true">
+					<u--input v-model="carInfos.carKindCode" disabled disabledColor="#ffffff" suffixIcon='arrow-down'
+						suffixIconStyle="color:#333;font-size:30rpx" placeholder="请选择车辆种类"
+						placeholderStyle="text-align:right;" clearable border="none"
+						style="pointer-events: none"></u--input>
+				</u-form-item>
 
 				<u-form-item label="车辆用途" prop="vehicleUseCode" borderBottom @click="vehicleUseShow=true">
 					<u--input v-model="carInfos.vehicleUseCode" disabled disabledColor="#ffffff" suffixIcon='arrow-down'
@@ -130,6 +136,10 @@
 		<u-picker :show="carnatureShow" :columns="natureOfVehicleUseoptions" keyName="label"
 			@cancel="carnatureShow=false" @confirm="dictionaryConfirm($event, 'carNatureCode','carnatureShow')"
 			@close="carnatureShow=false" :closeOnClickOverlay="true"></u-picker>
+		<!-- 车辆种类 -->
+		<u-picker :show="plateTypeShow" :columns="plateVehicleUseoptions" keyName="label"
+			@cancel="plateTypeShow=false" @confirm="dictionaryConfirm($event, 'carKindCode','plateTypeShow')"
+			@close="plateTypeShow=false" :closeOnClickOverlay="true"></u-picker>
 		<!-- 所属性质 -->
 		<u-picker :show="propertyShow" :columns="[filterepropertyOptions]" keyName="label" @cancel="propertyShow=false"
 			@confirm="dictionaryConfirm($event, 'property', 'propertyShow')" @close="propertyShow=false"
@@ -174,6 +184,7 @@
 			currentPagePath: String,
 			carInfos: Object,
 			natureOfVehicleUseoptions: Array,
+			plateVehicleUseoptions: Array,
 			energyTypeoptions: Array,
 			trafficManagementVehicleTypeoptions: Array,
 			vehicleTypeoptions: Array,
@@ -188,6 +199,7 @@
 				issueDateShow: false, //发证日期
 				carnatureShow: false, //使用性质
 				propertyShow: false, //所属性质
+				plateTypeShow: false, //车辆种类
 				energyTypeShow: false,
 				vehicleUseShow: false,
 				cartypeShow: false,

+ 4 - 0
pages/quote/premiumCalc1.vue

@@ -767,6 +767,10 @@
 							params: {
 								companyId: item.id,
 								productId: this.productId,
+								seatCount: this.carInfo.seatCount,
+								energyType: this.carInfo.energyTypeCode,
+								vehicleType: this.carInfo.carKindCode,
+								carnature: this.carInfo.carNatureCode,
 							},
 							nameSimple: item.nameSimple,
 							logo: item.logo,

+ 4 - 0
pages/quote/quoteInfo.vue

@@ -24,6 +24,7 @@
 								<CarInfoForm :carInfo="carInfo" ref="carForm" :carInfos="carInfo1"
 									:currentPagePath="currentPagePath"
 									:natureOfVehicleUseoptions="car_nature_codeoptions"
+									:plateVehicleUseoptions="car_kind_codeoptions"
 									:businessVehicleUseoptions="vehicle_use_code01options"
 									:outOfBusinessVehicleUseoptions="vehicle_use_code02options" />
 							</view>
@@ -310,6 +311,7 @@
 				currentPagePath: "", //页面路由
 				// 字典集合
 				car_nature_codeoptions: [], //使用性质
+				car_kind_codeoptions: [], //车辆种类
 				vehicle_use_code01options: [], //营业
 				vehicle_use_code02options: [], //非营业
 				productId: "",
@@ -410,6 +412,7 @@
 
 				}
 				await this.getDicType("car_nature_code"); //使用性质
+				await this.getDicType("car_kind_code"); //使用性质
 				await this.getDicType("vehicle_use_code", "01"); //营业
 				await this.getDicType("vehicle_use_code", "02"); //非营业
 				const pages = getCurrentPages(); // 获取当前页面栈的数组,数组的第一项是首页,最后一项是当前页面
@@ -493,6 +496,7 @@
 			},
 			//影像识别回调事件
 			carCallback(obj) {
+				console.log("🚀 ~ obj:", obj)
 				this.carInfoImgViewList = [];
 				if (obj.frontImg) {
 					this.carInfoImgViewList.push({