祁鹏飞 il y a 1 semaine
Parent
commit
dcc3e2fdc5
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/views/quoteConfig/project/modules/projectAdd.vue

+ 4 - 4
src/views/quoteConfig/project/modules/projectAdd.vue

@@ -28,7 +28,7 @@
             <el-form-item label="险种类型" prop="productId">
             <el-form-item label="险种类型" prop="productId">
               <el-radio-group :disabled="isEdit" v-model="projectAddFrom.productId" @change="initProduct">
               <el-radio-group :disabled="isEdit" v-model="projectAddFrom.productId" @change="initProduct">
                 <el-radio-button v-for="item in insuranceType" :key="item.value" :value="item.value">{{ item.label
                 <el-radio-button v-for="item in insuranceType" :key="item.value" :value="item.value">{{ item.label
-                }}</el-radio-button>
+                  }}</el-radio-button>
               </el-radio-group>
               </el-radio-group>
             </el-form-item>
             </el-form-item>
 
 
@@ -85,7 +85,7 @@
                         <el-table-column label="名称" prop="productName">
                         <el-table-column label="名称" prop="productName">
                           <template #default="scope">
                           <template #default="scope">
                             <el-button link type="primary" @click="getJYXDetail(scope.row)">{{ scope.row.productName
                             <el-button link type="primary" @click="getJYXDetail(scope.row)">{{ scope.row.productName
-                              }}</el-button>
+                            }}</el-button>
                           </template>
                           </template>
                         </el-table-column>
                         </el-table-column>
                         <!-- 客户端状态(仅自选方案显示) -->
                         <!-- 客户端状态(仅自选方案显示) -->
@@ -881,14 +881,14 @@ const save = async (ProjectAddRef: FormInstance | undefined) => {
           }
           }
           item.drivingIntentionList.push(obj)
           item.drivingIntentionList.push(obj)
         })
         })
-
+        const arr = Array.isArray(ins.moneyId) ? ins.moneyId : [ins.moneyId]
         // 处理险种数据
         // 处理险种数据
         item.tableData.forEach(ins => {
         item.tableData.forEach(ins => {
           let obj = {
           let obj = {
             id: ins.id,
             id: ins.id,
             insuranceId: ins.insuranceId,
             insuranceId: ins.insuranceId,
             kindName: ins.kindName,
             kindName: ins.kindName,
-            optionId: Array.isArray(ins.moneyId) ? ins.moneyId : [ins.moneyId ?? '']
+            optionId: arr.filter(v => v)
           }
           }
           item.schemeInsuranceList.push(obj)
           item.schemeInsuranceList.push(obj)
         })
         })