Parcourir la source

feature_20251015_主管任务门店扫码签到

zhujindu il y a 1 mois
Parent
commit
3d543ec19e
1 fichiers modifiés avec 16 ajouts et 4 suppressions
  1. 16 4
      src/views/week/ActivityQRCode.vue

+ 16 - 4
src/views/week/ActivityQRCode.vue

@@ -3,7 +3,11 @@
     <van-form
       ref="tabstoreVal"
       class="QRCodeActivity"
-      :disabled="approvalStatus == '1' || approvalStatus == '2' || approvalStatus == null">
+      :disabled="
+        approvalStatus == '1' ||
+        approvalStatus == '2' ||
+        (approvalStatus == null && !!userSummaryId)
+      ">
       <div class="activityItem">
         <span class="van-f-red">*</span>
         <van-field
@@ -179,7 +183,7 @@ export default {
         this.approvalStatus == '1' ||
         this.approvalStatus == '2' ||
         this.approvalStatus == '3' ||
-        this.approvalStatus == null
+        (this.approvalStatus == null && this.userSummaryId)
       ) {
         getSummaryQrCodeUUID({ qrUuid: this.qrUuid, userSummaryId: this.userSummaryId }).then(
           (res) => {
@@ -208,12 +212,20 @@ export default {
       }
     },
     activityShowCalendarFun() {
-      if (this.approvalStatus == '1' || this.approvalStatus == '2' || this.approvalStatus == null)
+      if (
+        this.approvalStatus == '1' ||
+        this.approvalStatus == '2' ||
+        (this.approvalStatus == null && this.userSummaryId)
+      )
         return;
       this.activityShowCalendar = true;
     },
     clickValidDateShow(type) {
-      if (this.approvalStatus == '1' || this.approvalStatus == '2' || this.approvalStatus == null)
+      if (
+        this.approvalStatus == '1' ||
+        this.approvalStatus == '2' ||
+        (this.approvalStatus == null && this.userSummaryId)
+      )
         return;
       if (type == 'start') {
         this.activate = {