فهرست منبع

增加报价单号为空时的校验

祁鹏飞 4 روز پیش
والد
کامیت
1eaeefd8ac
1فایلهای تغییر یافته به همراه8 افزوده شده و 5 حذف شده
  1. 8 5
      src/views/insurancePolicy/index.vue

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

@@ -986,7 +986,7 @@
                                     :value="item.value"></el-option>
                                 </el-select>
                                 <span v-if="props.row.kindName == '乘客责任险'">*{{ insurancePolicyForm.seatCount - 1
-                                  }}/座</span>
+                                }}/座</span>
                               </div>
                             </template>
                           </el-table-column>
@@ -1058,7 +1058,7 @@
                           <el-table-column label="产品名称" prop="productName" align="center">
                             <template #default="props">
                               <el-button link type="primary" @click="getJYXDetail(props.row)">{{ props.row.productName
-                                }}</el-button>
+                              }}</el-button>
                             </template>
                           </el-table-column>
                           <el-table-column label="数量" align="center">
@@ -1111,12 +1111,12 @@
                             <div class="Factor-item flex a-c f-c ">
                               <span class="item-header flex a-c ">交强续保</span>
                               <span>{{ ['', '新保', '续保', '转保'][Number(scope.row.quoteResult?.scoreVo?.jqRenewal)] || '--'
-                              }}</span>
+                                }}</span>
                             </div>
                             <div class="Factor-item flex a-c f-c ">
                               <span class="item-header flex a-c ">商业续保</span>
                               <span>{{ ['', '新保', '续保', '转保'][Number(scope.row.quoteResult?.scoreVo?.syRenewal)] || '--'
-                              }}</span>
+                                }}</span>
                             </div>
                             <div class="Factor-item flex a-c f-c ">
                               <span class="item-header flex a-c ">总折扣率</span>
@@ -3749,7 +3749,10 @@ const paramValidate = () => {
 }
 // 统一报价
 const quoteInsurance = async (companyId: any, companyIndex: any, val: any) => {
-
+  if(!insurancePolicyForm.value.order.quoteNo){
+    ElMessage.warning('找不到报价单号')
+    return
+  }
   quoteData.value[companyIndex].loading = true
   let company = quoteData.value[companyIndex]
   let product = company.projectList?.find((v, i) => val.productIndex === i)