Parcourir la source

判断重新选择车型

祁鹏飞 il y a 2 mois
Parent
commit
b2f17cb3ab
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      src/views/insurancePolicy/index.vue

+ 8 - 1
src/views/insurancePolicy/index.vue

@@ -3506,6 +3506,13 @@ const paramValidate = () => {
 }
 }
 // 统一报价
 // 统一报价
 const quoteInsurance = async (companyId: any, companyIndex: any, val: any) => {
 const quoteInsurance = async (companyId: any, companyIndex: any, val: any) => {
+  if(!insurancePolicyForm.value.purchasePrice){
+    ElMessage({
+      message: '请重新选择车型',
+      type: 'warning'
+    })
+    return
+  }
   quoteData.value[companyIndex].loading = true
   quoteData.value[companyIndex].loading = true
   let company = quoteData.value[companyIndex]
   let company = quoteData.value[companyIndex]
   let product = company.projectList?.find((v, i) => val.productIndex === i)
   let product = company.projectList?.find((v, i) => val.productIndex === i)
@@ -3832,7 +3839,7 @@ const ruleFilterCompany = (item: any, obj: any) => {
               item.quoteResult = { ...a, ...obj };
               item.quoteResult = { ...a, ...obj };
               item.insurancePlanInfo = {}
               item.insurancePlanInfo = {}
               item.insurancePlanInfo.drivings = obj.accidentalDrivings;
               item.insurancePlanInfo.drivings = obj.accidentalDrivings;
-              item.insurancePlanInfo.kinds = obj.kindInfoVo.filter(v=>v.id);
+              item.insurancePlanInfo.kinds = obj.kindInfoVo.filter(v => v.id);
               item.quoteCode = 200
               item.quoteCode = 200
               item.checked = true
               item.checked = true
               // 如果有错误信息,设置状态为失败 并记录错误信息
               // 如果有错误信息,设置状态为失败 并记录错误信息