|
|
@@ -3506,6 +3506,13 @@ const paramValidate = () => {
|
|
|
}
|
|
|
// 统一报价
|
|
|
const quoteInsurance = async (companyId: any, companyIndex: any, val: any) => {
|
|
|
+ if(!insurancePolicyForm.value.purchasePrice){
|
|
|
+ ElMessage({
|
|
|
+ message: '请重新选择车型',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
quoteData.value[companyIndex].loading = true
|
|
|
let company = quoteData.value[companyIndex]
|
|
|
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.insurancePlanInfo = {}
|
|
|
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.checked = true
|
|
|
// 如果有错误信息,设置状态为失败 并记录错误信息
|