祁鹏飞 1 месяц назад
Родитель
Сommit
89af18ab97
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      src/views/insurancePolicy/index.vue

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

@@ -988,7 +988,7 @@
                           <el-col :span="6" class="quoteFlex">
                             救援
                             <el-select v-model="filterKind(scope.row, 'TY1').amount"
-                              :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY1')"
+                              :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY1').kindCode"
                               size="small" style="width: 80px; margin: 0 10px">
                               <el-option v-for="item in filterKind(scope.row, 'TY1').options" :label="item.label"
                                 :value="item.value"></el-option>
@@ -998,7 +998,7 @@
                           <el-col :span="6" class="quoteFlex">
                             检测
                             <el-select v-model="filterKind(scope.row, 'TY2').amount"
-                              :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY2')"
+                              :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY2').kindCode"
                               size="small" style="width: 80px; margin: 0 10px">
                               <el-option v-for="item in filterKind(scope.row, 'TY2').options" :label="item.label"
                                 :value="item.value"></el-option>
@@ -1008,7 +1008,7 @@
                           <el-col :span="6" class="quoteFlex">
                             代驾
                             <el-select v-model="filterKind(scope.row, 'TY3').amount"
-                              :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY3')"
+                              :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY3').kindCode"
                               size="small" style="width: 80px; margin: 0 10px">
                               <el-option v-for="item in filterKind(scope.row, 'TY3').options" :label="item.label"
                                 :value="item.value"></el-option>
@@ -1018,7 +1018,7 @@
                           <el-col :span="6" class="quoteFlex">
                             送检
                             <el-select v-model="filterKind(scope.row, 'TY4').amount"
-                              :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY4')"
+                              :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY4').kindCode"
                               size="small" style="width: 80px; margin: 0 10px">
                               <el-option v-for="item in filterKind(scope.row, 'TY4').options" :label="item.label"
                                 :value="item.value"></el-option>
@@ -3960,16 +3960,16 @@ const filterKind = (row, key) => {
     return kinds.find(v => ['TY1', 'TY2', 'TY3', 'TY4'].includes(v.kindCode))
   }
   if (key === 'TY1') {
-    return kinds.find(v => ['TY1'].includes(v.kindCode))
+    return kinds.find(v => ['TY1'].includes(v.kindCode)) ?? {}
   }
   if (key === 'TY2') {
-    return kinds.find(v => ['TY2'].includes(v.kindCode))
+    return kinds.find(v => ['TY2'].includes(v.kindCode)) ?? {}
   }
   if (key === 'TY3') {
-    return kinds.find(v => ['TY3'].includes(v.kindCode))
+    return kinds.find(v => ['TY3'].includes(v.kindCode)) ?? {}
   }
   if (key === 'TY4') {
-    return kinds.find(v => ['TY4'].includes(v.kindCode))
+    return kinds.find(v => ['TY4'].includes(v.kindCode)) ?? {}
   }
   return []
 }