Pārlūkot izejas kodu

单位信息采集BUG修复

fanghuisheng 1 gadu atpakaļ
vecāks
revīzija
02dcd7f6cd
1 mainītis faili ar 20 papildinājumiem un 3 dzēšanām
  1. 20 3
      src/pages/business/mhxf/unitInfoCollection/index.vue

+ 20 - 3
src/pages/business/mhxf/unitInfoCollection/index.vue

@@ -196,7 +196,7 @@
                 </u-checkbox-group>
               </u-form-item>
 
-              <u-form-item label="其他设施" prop="li.baseBuild.otherSystem" :borderBottom="true">
+              <u-form-item label="其他设施" :prop="`baseBuildList.${index}.baseBuild.otherSystem`" required :borderBottom="true">
                 <u-checkbox-group v-model="li.baseBuild.otherSystem" placement="column" @change="checkboxChange">
                   <u-checkbox :customStyle="{ marginBottom: '8px' }" label="泡沫灭火系统" :name="1"> </u-checkbox>
                   <u-checkbox :customStyle="{ marginBottom: '8px' }" label="水喷雾、细水雾灭火系统" :name="2"> </u-checkbox>
@@ -230,7 +230,7 @@
                 </view>
                 <u-button
                   type="primary"
-                  style="width: 25%; height: 25px; margin-top: 10px"
+                  style="width: 100px; height: 25px; margin-top: 10px"
                   v-if="li.baseBuildExtinguishList.length < 6"
                   @click="addSubmit('灭火器', index)"
                   shape="circle"
@@ -331,6 +331,7 @@ const checkboxValue = ref([]);
 //基本信息-单位使用性质下拉数据存储
 const companyNatureList = ref([
   [
+    { value: 33, name: "办公" },
     { value: 1, name: "餐饮场所" },
     { value: 2, name: "超市" },
     { value: 3, name: "宾(旅)馆" },
@@ -621,7 +622,7 @@ const dataList = reactive({
       completeYear: [
         {
           required: true,
-          message: "请输入建成年份",
+          message: "请选择建成年份",
           trigger: ["blur", "change"],
         },
       ],
@@ -632,6 +633,22 @@ const dataList = reactive({
           trigger: ["blur", "change"],
         },
       ],
+
+      fireFacilitySystem: [
+        {
+          required: true,
+          message: "请选择消防设施设置",
+          trigger: ["blur", "change"],
+        },
+      ],
+
+      otherSystem: [
+        {
+          required: true,
+          message: "请选择其它设施",
+          trigger: ["blur", "change"],
+        },
+      ],
     },
     baseBuildExtinguishList: [],
   },