Quellcode durchsuchen

feature_20250722_金牌店档案收集

zhujindu vor 4 Monaten
Ursprung
Commit
3a493ec6d0

BIN
src/assets/送祝福按钮 粉色.png


+ 17 - 7
src/views/deviceWithin/addStoreVisit.vue

@@ -193,8 +193,9 @@
                   size="small"
                   style="color: white; background: rgb(0, 87, 186); border-radius: 6px"
                   @click="sendCode(item, index)"
-                  :disabled="time != null"
-                  >发送验证码<span v-if="time">({{ timeNum }})</span>
+                  :disabled="time != null">
+                  <span v-if="time">已发送({{ timeNum }})</span>
+                  <span v-else>发送验证码</span>
                 </van-button>
               </template>
             </van-field>
@@ -580,8 +581,9 @@
                             size="small"
                             style="color: white; background: rgb(0, 87, 186); border-radius: 6px"
                             @click="sendCode(childitem, index)"
-                            :disabled="time != null"
-                            >发送验证码<span v-if="time">({{ timeNum }})</span>
+                            :disabled="time != null">
+                            <span v-if="time">已发送({{ timeNum }})</span>
+                            <span v-else>发送验证码</span>
                           </van-button>
                         </template>
                       </van-field>
@@ -2992,9 +2994,10 @@ export default {
       inspectionType: '',
       competitortableData: [],
       time: null, //计时
-      timeNum: 30,
+      timeNum: 60,
       datetimeShowPicker: false,
       activatNyrItem: '',
+      verificationPassedPhoneNum: '',
     };
   },
   beforeRouteLeave(to, from, next) {
@@ -3034,7 +3037,7 @@ export default {
     this.stillDistribute = false;
     clearInterval(this.time);
     this.time = null; //计时
-    this.timeNum = 30;
+    this.timeNum = 60;
   },
   watch: {
     $route(to, from) {
@@ -3545,6 +3548,10 @@ export default {
           this.processKey = false;
         }
         this.infoShow = res.data.isMust;
+        // 主经营者电话验证是否通过
+        // if( false ){
+        //   this.verificationPassed =
+        // }
         if (this.$route.query.taskType == 1 || this.$route.query.taskType == 4) {
           for (var q = 0; q < collectionItemLists.length; q++) {
             if (
@@ -3638,6 +3645,9 @@ export default {
                         if (listchild[qq1].collectionOptionList[0].answerValue != null) {
                           listchild[qq1].answerValue =
                             listchild[qq1].collectionOptionList[0].answerValue;
+                          this.verificationPassedPhoneNum =
+                            listchild[qq1].collectionOptionList[0].answerValue;
+                          console.log(this.verificationPassedPhoneNum);
                         } else {
                           listchild[qq1].answerValue = '';
                         }
@@ -5059,7 +5069,7 @@ export default {
       }
       if (this.time) return;
       clearInterval(this.time);
-      this.timeNum = 30;
+      this.timeNum = 60;
       this.sendCodeFun(
         {
           type: '1', //String	调用类型:1:发送验证码 2:校验验证码

+ 2 - 2
src/views/home/bottomBtn.vue

@@ -165,11 +165,11 @@ export default {
           this.approvalPendingNum = res.data.approvalPendingNum;
           this.type = res.data.userType;
           // 金牌店老板生日提醒
-          if (res.data.ownerBirthdayRemind) {
+          if (res.data.ownerBirthdayRemind && res.data.ownerBirthdayRemind.length) {
             this.ownerBirthdayBoxFlag = true;
             this.reportInfoData.ownerBirthdayRemind = res.data.ownerBirthdayRemind.join(',');
           } else {
-            this.ownerBirthdayBoxFlag = true;
+            this.ownerBirthdayBoxFlag = false;
           }
         } else {
           this.$toast(res.msg);

+ 18 - 2
src/views/storeManagement/JPattributeEditor.vue

@@ -49,7 +49,7 @@
           autosize
           type="textarea"
           label="门店24年总销量(以进货额计)" />
-        <van-field v-model="detail.performanceRatio" label="立邦业绩占比(%)" />
+        <van-field v-model="detail.performanceRatio" type="number" label="立邦业绩占比(%)" />
         <van-field v-model="detail.mainBrand" autosize type="textarea" label="主营T0P3品牌" />
 
         <van-field v-model="detail.emergencyContact" label="紧急联系人姓名" />
@@ -57,7 +57,11 @@
           v-model="detail.emergencyContactBirthday"
           label="紧急联系人出生日期"
           @click="getNyr('emergencyContactBirthday')" />
-        <van-field v-model="detail.emergencyContactMobile" label="紧急联系人电话" />
+        <van-field
+          v-model="detail.emergencyContactMobile"
+          type="number"
+          @blur="emergencyContactBlur(detail.emergencyContactMobile)"
+          label="紧急联系人电话" />
         <van-field label="紧急联系人身份">
           <template #input>
             <van-radio-group v-model="detail.emergencyContactRelation" direction="horizontal">
@@ -213,6 +217,13 @@ export default {
         this.$toast('请验证手机号');
         return;
       }
+      if (
+        !/^1[3456789]\d{9}$/.test(this.detail.emergencyContactMobile) ||
+        this.detail.emergencyContactMobile == ''
+      ) {
+        this.$toast('紧急联系人电话格式错误');
+        return;
+      }
       this.toastLoading(0, '加载中...', true);
       let params = JSON.parse(JSON.stringify(this.detail));
       params.mainProductCategorys = params.mainProductCategorys.join(',');
@@ -226,6 +237,11 @@ export default {
         }
       });
     },
+    emergencyContactBlur(val) {
+      if (!/^1[3456789]\d{9}$/.test(val) || val == '') {
+        this.$toast('格式错误');
+      }
+    },
     onClickLeft() {
       this.$router.go(-1);
     },