Forráskód Böngészése

feature_20260115_直发类色卡销售发放时必须拍照

zhujindu 1 hete
szülő
commit
5375317c3a
1 módosított fájl, 56 hozzáadás és 54 törlés
  1. 56 54
      src/views/deviceWithin/addStoreVisit.vue

+ 56 - 54
src/views/deviceWithin/addStoreVisit.vue

@@ -801,7 +801,7 @@
                         @click="
                           getNyr(
                             childitem.collectionOptionList[0],
-                            childitem.collectionOptionList[0].answerValue
+                            childitem.collectionOptionList[0].answerValue,
                           )
                         "></van-field>
                       <p
@@ -1285,7 +1285,7 @@
                                           childIndex,
                                           indexc,
                                           indexc1,
-                                          childIndex1
+                                          childIndex1,
                                         )
                                       " />
                                   </template>
@@ -1349,7 +1349,7 @@
                                           childIndex,
                                           indexc,
                                           indexc1,
-                                          childIndex1
+                                          childIndex1,
                                         )
                                       " />
                                   </template>
@@ -1413,7 +1413,7 @@
                                           childIndex,
                                           indexc,
                                           indexc1,
-                                          childIndex1
+                                          childIndex1,
                                         )
                                       " />
                                   </template>
@@ -1477,7 +1477,7 @@
                                           childIndex,
                                           indexc,
                                           indexc1,
-                                          childIndex1
+                                          childIndex1,
                                         )
                                       " />
                                   </template>
@@ -1494,7 +1494,7 @@
                                       indexc,
                                       childIndex,
                                       indexc1,
-                                      childIndex1
+                                      childIndex1,
                                     )
                                   " />
                                 <p
@@ -1617,7 +1617,7 @@
                                           childIndex,
                                           indexc,
                                           indexc1,
-                                          childIndex1
+                                          childIndex1,
                                         )
                                       " />
                                   </template>
@@ -1672,7 +1672,7 @@
                                             childIndex,
                                             indexc,
                                             indexc1,
-                                            childIndex1
+                                            childIndex1,
                                           )
                                         " />
                                     </template>
@@ -1750,7 +1750,7 @@
                                                     indexc1,
                                                     childIndex1,
                                                     indexc33,
-                                                    child33Index1
+                                                    child33Index1,
                                                   )
                                                 " />
                                             </template>
@@ -1835,7 +1835,7 @@
                                                     indexc1,
                                                     childIndex1,
                                                     indexc33,
-                                                    child33Index1
+                                                    child33Index1,
                                                   )
                                                 " />
                                             </template>
@@ -1923,7 +1923,7 @@
                                                     indexc1,
                                                     childIndex1,
                                                     indexc33,
-                                                    child33Index1
+                                                    child33Index1,
                                                   )
                                                 " />
                                             </template>
@@ -2011,7 +2011,7 @@
                                                     indexc1,
                                                     childIndex1,
                                                     indexc33,
-                                                    child33Index1
+                                                    child33Index1,
                                                   )
                                                 " />
                                             </template>
@@ -2032,7 +2032,7 @@
                                                 indexc1,
                                                 childIndex1,
                                                 indexc33,
-                                                child33Index1
+                                                child33Index1,
                                               )
                                             " />
                                           <p
@@ -2114,7 +2114,7 @@
                                                     indexc1,
                                                     childIndex1,
                                                     indexc33,
-                                                    child33Index1
+                                                    child33Index1,
                                                   )
                                                 " />
                                             </template>
@@ -2164,7 +2164,7 @@
                                             @click="
                                               getNyr(
                                                 child33item1.collectionOptionList[0],
-                                                child33item1.collectionOptionList[0].answerValue
+                                                child33item1.collectionOptionList[0].answerValue,
                                               )
                                             "></van-field>
                                           <p
@@ -2229,7 +2229,7 @@
                                                     indexc1,
                                                     childIndex1,
                                                     indexc33,
-                                                    child33Index1
+                                                    child33Index1,
                                                   )
                                                 " />
                                             </template>
@@ -2295,7 +2295,7 @@
                                                     indexc1,
                                                     childIndex1,
                                                     indexc33,
-                                                    child33Index1
+                                                    child33Index1,
                                                   )
                                                 " />
                                             </template>
@@ -2357,7 +2357,7 @@
                                                     indexc1,
                                                     childIndex1,
                                                     indexc33,
-                                                    child33Index1
+                                                    child33Index1,
                                                   )
                                                 " />
                                             </template>
@@ -2504,7 +2504,7 @@
                                                       indexc1,
                                                       childIndex1,
                                                       indexc33,
-                                                      child33Index1
+                                                      child33Index1,
                                                     )
                                                   " />
                                               </template>
@@ -2589,7 +2589,7 @@
                                                               indexc33,
                                                               child33Index1,
                                                               indexc44,
-                                                              child44Index1
+                                                              child44Index1,
                                                             )
                                                           " />
                                                       </template>
@@ -2683,7 +2683,7 @@
                                                               indexc33,
                                                               child33Index1,
                                                               indexc44,
-                                                              child44Index1
+                                                              child44Index1,
                                                             )
                                                           " />
                                                       </template>
@@ -2780,7 +2780,7 @@
                                                               indexc33,
                                                               child33Index1,
                                                               indexc44,
-                                                              child44Index1
+                                                              child44Index1,
                                                             )
                                                           " />
                                                       </template>
@@ -2877,7 +2877,7 @@
                                                               indexc33,
                                                               child33Index1,
                                                               indexc44,
-                                                              child44Index1
+                                                              child44Index1,
                                                             )
                                                           " />
                                                       </template>
@@ -2901,7 +2901,7 @@
                                                           indexc33,
                                                           child33Index1,
                                                           indexc44,
-                                                          child44Index1
+                                                          child44Index1,
                                                         )
                                                       " />
                                                     <p
@@ -2990,7 +2990,7 @@
                                                               indexc33,
                                                               child33Index1,
                                                               indexc44,
-                                                              child44Index1
+                                                              child44Index1,
                                                             )
                                                           " />
                                                       </template>
@@ -3049,7 +3049,7 @@
                                                         getNyr(
                                                           child44item1.collectionOptionList[0],
                                                           child44item1.collectionOptionList[0]
-                                                            .answerValue
+                                                            .answerValue,
                                                         )
                                                       "></van-field>
                                                     <p
@@ -3119,7 +3119,7 @@
                                                               indexc33,
                                                               child33Index1,
                                                               indexc44,
-                                                              child44Index1
+                                                              child44Index1,
                                                             )
                                                           " />
                                                       </template>
@@ -3193,7 +3193,7 @@
                                                               indexc33,
                                                               child33Index1,
                                                               indexc44,
-                                                              child44Index1
+                                                              child44Index1,
                                                             )
                                                           " />
                                                       </template>
@@ -3265,7 +3265,7 @@
                                                               indexc33,
                                                               child33Index1,
                                                               indexc44,
-                                                              child44Index1
+                                                              child44Index1,
                                                             )
                                                           " />
                                                       </template>
@@ -3443,7 +3443,7 @@
                                                                 indexc33,
                                                                 child33Index1,
                                                                 indexc44,
-                                                                child44Index1
+                                                                child44Index1,
                                                               )
                                                             " />
                                                         </template>
@@ -3522,7 +3522,7 @@
                                           childIndex,
                                           indexc,
                                           indexc1,
-                                          childIndex1
+                                          childIndex1,
                                         )
                                       " />
                                   </template>
@@ -3570,7 +3570,7 @@
                                           childIndex,
                                           indexc,
                                           indexc1,
-                                          childIndex1
+                                          childIndex1,
                                         )
                                       " />
                                   </template>
@@ -3616,7 +3616,7 @@
                                           childIndex,
                                           indexc,
                                           indexc1,
-                                          childIndex1
+                                          childIndex1,
                                         )
                                       " />
                                   </template>
@@ -4280,7 +4280,7 @@ export default {
           this.Tindex5
         ].collectionItems[this.Tindex6].collectionOptionList[0].answerValue = this.parseTime(
           time,
-          '{y}-{m}-{d}'
+          '{y}-{m}-{d}',
         );
       }
       if (this.Ttype == 'E') {
@@ -4342,7 +4342,7 @@ export default {
     formatter(value) {
       return value.replace(
         /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030|\s*/gi,
-        ''
+        '',
       );
     },
     editDwellTimes() {
@@ -4405,7 +4405,7 @@ export default {
         if (!/^[+-]?\d*\.{0,1}\d{0,1}$/.test(value)) {
           value = this.collectionItemList[index].answerValue.replace(
             /\.\d{2,}$/,
-            value.substr(value.indexOf('.'), 3)
+            value.substr(value.indexOf('.'), 3),
           );
         }
       }
@@ -4531,7 +4531,7 @@ export default {
     dhwbFormatter(value) {
       return value.replace(
         /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030|\s*/gi,
-        ''
+        '',
       );
     },
     XMsizeComparison(item, type) {
@@ -4586,7 +4586,7 @@ export default {
     xmFormatter(value) {
       return value.replace(
         /[0-9]|[a-zA-Z]|[`~~!@#$%^&*()_\-+×÷=<>?:"{}|<>,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030|\s*/gi,
-        ''
+        '',
       );
     },
     logshowFN() {
@@ -4758,7 +4758,7 @@ export default {
               for (var qq = 0; qq < collectionItemLists[q].collectionOptionList.length; qq++) {
                 if (collectionItemLists[q].collectionOptionList[qq].isCheck == 1) {
                   collectionItemLists[q].answerValue.push(
-                    collectionItemLists[q].collectionOptionList[qq].collectionOptionId
+                    collectionItemLists[q].collectionOptionList[qq].collectionOptionId,
                   );
                   collectionItemLists[q].collectionOptionList[qq].code =
                     collectionItemLists[q].collectionCode;
@@ -4883,7 +4883,7 @@ export default {
                             listchild[qq1].secondCollectionId;
                           if (listchild[qq1].collectionOptionList[qq2].isCheck == 1) {
                             listchild[qq1].answerValue.push(
-                              listchild[qq1].collectionOptionList[qq2].collectionOptionId
+                              listchild[qq1].collectionOptionList[qq2].collectionOptionId,
                             );
                           }
                         }
@@ -5012,18 +5012,18 @@ export default {
                                                   lisc4[
                                                     l5
                                                   ].collectionOptionList[0].answerValue.split(
-                                                    ','
+                                                    ',',
                                                   )[1];
                                                 if (
                                                   lisc4[
                                                     l5
                                                   ].collectionOptionList[0].answerValue.split(
-                                                    ','
+                                                    ',',
                                                   )[0] ==
                                                   lisc4[
                                                     l5
                                                   ].collectionOptionList[0].answerValue.split(
-                                                    ','
+                                                    ',',
                                                   )[1]
                                                 ) {
                                                   lisc4[l5].success = true;
@@ -5048,7 +5048,7 @@ export default {
                                                   lisc4[l5].secondCollectionId;
                                                 if (listc5[lc4].isCheck == 1) {
                                                   lisc4[l5].answerValue.push(
-                                                    listc5[lc4].collectionOptionId
+                                                    listc5[lc4].collectionOptionId,
                                                   );
                                                   if (listc5[lc4].answerType == 'dx') {
                                                     let lisc5 = listc5[lc4].collectionItems;
@@ -5071,18 +5071,18 @@ export default {
                                                               lisc5[
                                                                 l5
                                                               ].collectionOptionList[0].answerValue.split(
-                                                                ','
+                                                                ',',
                                                               )[1];
                                                             if (
                                                               lisc5[
                                                                 l5
                                                               ].collectionOptionList[0].answerValue.split(
-                                                                ','
+                                                                ',',
                                                               )[0] ==
                                                               lisc5[
                                                                 l5
                                                               ].collectionOptionList[0].answerValue.split(
-                                                                ','
+                                                                ',',
                                                               )[1]
                                                             ) {
                                                               lisc5[l5].success = true;
@@ -5116,7 +5116,7 @@ export default {
                                                               lisc5[l5].secondCollectionId;
                                                             if (listc6[lc4].isCheck == 1) {
                                                               lisc5[l5].answerValue.push(
-                                                                listc6[lc4].collectionOptionId
+                                                                listc6[lc4].collectionOptionId,
                                                               );
                                                             }
                                                           }
@@ -5198,7 +5198,9 @@ export default {
       });
     },
     deleteImg() {},
-    uploadWLImgClick() {},
+    uploadWLImgClick() {
+      this.info();
+    },
     tipTitle(val) {
       this.$toast(val);
     },
@@ -5305,7 +5307,7 @@ export default {
       childIndex4,
       childIndex5,
       childIndex6,
-      childIndex7
+      childIndex7,
     ) {
       this.collectionId = val.collectionId + '';
       this.parentCollectionId = val.parentCollectionId + '';
@@ -5480,7 +5482,7 @@ export default {
             this.collectionItemList[this.indeximg].fileInfoList = val.fileInfoList;
             console.log(
               'fileInfoList222=' +
-                JSON.stringify(this.collectionItemList[this.indeximg].fileInfoList)
+                JSON.stringify(this.collectionItemList[this.indeximg].fileInfoList),
             );
           } else {
             let collectionItems = this.collectionItemList[this.indeximg];
@@ -6336,7 +6338,7 @@ export default {
     filterFormData(formData) {
       let collectionAnswers = formData.collectionAnswers;
       let SMObj = collectionAnswers.find(
-        (item) => item.answerType == 'sm' && item.isMust == '0' && !item.success
+        (item) => item.answerType == 'sm' && item.isMust == '0' && !item.success,
       );
       if (SMObj) {
         return false;
@@ -6375,7 +6377,7 @@ export default {
             }
           }, 1000);
           this.$toast('发送成功');
-        }
+        },
       );
     },
     telConfirm(val) {
@@ -6454,7 +6456,7 @@ export default {
               })
               .then(() => {});
           }
-        }
+        },
       );
     },
     sendCodeFun(params, callback) {