Explorar el Código

驾意险匹配座位数

祁鹏飞 hace 3 meses
padre
commit
2cdff8b280
Se han modificado 2 ficheros con 7 adiciones y 4 borrados
  1. 2 2
      src/api/modules/insurancePolicy.ts
  2. 5 2
      src/views/insurancePolicy/index.vue

+ 2 - 2
src/api/modules/insurancePolicy.ts

@@ -10,7 +10,7 @@ const insurancePolicyApi = (axiosInstance: ApiInstance) => ({
       system_code: localStorage.getItem('login_system')
       system_code: localStorage.getItem('login_system')
     }
     }
   }), // 获取保司
   }), // 获取保司
-  getSchemeResult: (data: any) => axiosInstance.get(`scheme/getSchemeResult?companyId=${data.companyId}&&productId=${data.productId}`), // 获取保司下的险种和驾意险
+  getSchemeResult: (data: any) => axiosInstance.get(`scheme/getSchemeResult?companyId=${data.companyId}&productId=${data.productId}&seatCount=${data.seatCount}`), // 获取保司下的险种和驾意险
   imagesUpload: (data: any) => axiosInstance.post('/unify/order/imagesUpload', data), // 上传影像保存
   imagesUpload: (data: any) => axiosInstance.post('/unify/order/imagesUpload', data), // 上传影像保存
   underwriting: (data: any) => axiosInstance.post('/unify/order/underwriting', data), // 核保
   underwriting: (data: any) => axiosInstance.post('/unify/order/underwriting', data), // 核保
   imageSave: (data: any) => axiosInstance.post('/unify/order/imageSave', data), // 本地影像存储
   imageSave: (data: any) => axiosInstance.post('/unify/order/imageSave', data), // 本地影像存储
@@ -47,4 +47,4 @@ const insurancePolicyApi = (axiosInstance: ApiInstance) => ({
   downloadPolicy: (data: any) => axiosInstance.post(`/unify/order/downloadPolicy`,data), // 下载电子保单
   downloadPolicy: (data: any) => axiosInstance.post(`/unify/order/downloadPolicy`,data), // 下载电子保单
 })
 })
 
 
-export default insurancePolicyApi
+export default insurancePolicyApi

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

@@ -1054,6 +1054,7 @@
                               </el-input>
                               </el-input>
                             </template>
                             </template>
                           </el-table-column>
                           </el-table-column>
+                          <el-table-column label="驾意险代码" prop="productCode" align="center"></el-table-column>
                           <el-table-column label="保费" prop="premium" align="center"></el-table-column>
                           <el-table-column label="保费" prop="premium" align="center"></el-table-column>
                         </el-table>
                         </el-table>
                         <el-button size="small" link type="primary" @click="handleSelectSpecial(scope)">选择特约</el-button>
                         <el-button size="small" link type="primary" @click="handleSelectSpecial(scope)">选择特约</el-button>
@@ -2657,7 +2658,8 @@ const handleSelect = (row: any) => {
   if (insurancePolicyForm.value.productId) {
   if (insurancePolicyForm.value.productId) {
     api.insurancePolicyApi.getSchemeResult({
     api.insurancePolicyApi.getSchemeResult({
       companyId: row.id,
       companyId: row.id,
-      productId: insurancePolicyForm.value.productId
+      productId: insurancePolicyForm.value.productId,
+      seatCount: insurancePolicyForm.value.seatCount,
     }).then((res: any) => {
     }).then((res: any) => {
       let list = res.data?.schemes || [];
       let list = res.data?.schemes || [];
       if (res.data?.optionalScheme) {
       if (res.data?.optionalScheme) {
@@ -2699,7 +2701,8 @@ const handelExpend = (e: any) => {
   if (insurancePolicyForm.value.productId) {
   if (insurancePolicyForm.value.productId) {
     api.insurancePolicyApi.getSchemeResult({
     api.insurancePolicyApi.getSchemeResult({
       companyId: e.id,
       companyId: e.id,
-      productId: insurancePolicyForm.value.productId
+      productId: insurancePolicyForm.value.productId,
+      seatCount: insurancePolicyForm.value.seatCount,
     }).then((res: any) => {
     }).then((res: any) => {
       let list = res.data?.schemes || [];
       let list = res.data?.schemes || [];
       if (res.data?.optionalScheme) {
       if (res.data?.optionalScheme) {