Преглед изворни кода

二层数字类型保存时校验

sunny пре 3 недеља
родитељ
комит
ba2213a960
1 измењених фајлова са 12 додато и 0 уклоњено
  1. 12 0
      src/views/deviceWithin/addStoreVisit.vue

+ 12 - 0
src/views/deviceWithin/addStoreVisit.vue

@@ -5678,6 +5678,18 @@ export default {
       if (this.$route.query.taskType == 1 || this.$route.query.taskType == 4) {
         for (var b = 0; b < this.collectionItemList.length; b++) {
           this.filterCollectionInfos(this.collectionItemList[b], 'A');
+          const collectionItem = this.collectionItemList[b];
+          if (collectionItem.collectionOptionList) {
+            for (let c = 0; c < collectionItem.collectionOptionList.length; c++) {
+              const collectionOption = collectionItem.collectionOptionList[c];
+              this.filterCollectionInfos(collectionOption);
+              if (collectionOption.collectionItems) { 
+                for (let d = 0; d < collectionOption.collectionItems.length; d++) {
+                    this.filterCollectionInfos(collectionOption.collectionItems[d]);
+                }
+              }
+            }
+          }
           if (
             this.collectionItemList[b].answerType == 'sz' ||
             this.collectionItemList[b].answerType == 'sm' ||