zhujindu hai 1 ano
pai
achega
d86724aa98
Modificáronse 2 ficheiros con 21 adicións e 36 borrados
  1. 19 34
      src/components/imageAIVerifyErr.vue
  2. 2 2
      src/views/storeManagement/storeAdd.vue

+ 19 - 34
src/components/imageAIVerifyErr.vue

@@ -4,7 +4,7 @@
       <div class="title">图像识别结果</div>
       <div class="content">
         <div class="AIVerify">{{ contentMessage }}</div>
-        <div class="uploadImg" @uploadImg="uploadImg">
+        <div class="uploadImg" @click="uploadImg">
           <div class="label"><span class="van-f-red">*</span>重新拍照上传</div>
           <div class="icon">
             <van-icon class="photo photos" name="photograph" size="22px" color="#969696" />
@@ -53,34 +53,6 @@ export default {
   },
   methods: {
     initData() {
-      let imageAIVerifyData = [
-        {
-          businessId: 'f82c7c7a-f88d-485e-ad41-2cf310d82e2a',
-          url: 'https://cdn-svs-test.nipponpaint.com.cn/%E5%90%B4%E5%BA%B7-%E9%97%A8%E5%BA%97%E7%85%A7-%E7%9C%8B%E4%BB%80%E4%B9%88-20241121095404.jpg?Expires=2047686846&OSSAccessKeyId=LTAI5tG1DTJFA16BHkzHVxjz&Signature=XO9QJSYwUh9NRWErkyGNdHJ1f44%3D',
-          size: '9527',
-          npkpiData: {
-            storeCode: '999523520',
-            recognizeType: 1,
-            shopSignInfo: {
-              name: '立邦门店正佳店',
-              npStoreCode: '121423',
-              phone: '13018882888',
-              address: '广州市正佳广场',
-              contact: '李某',
-              businessScope: '涂料',
-              mainBrand: '立邦',
-            },
-            shopSignChange: 1,
-            checkInfo: {
-              cheatState: 0,
-              cheatType: '重复',
-              qualifiedState: 1,
-              unqualifiedReason: '翻拍',
-            },
-            shopSignMatchList: null,
-          },
-        },
-      ];
       // 图匠识别目的(1:店招内容识别,2:门店代码识别,3:调色机识别,4:更换店招)
       // if( imageAIVerifyData[0].npkpiData.recognizeType == 1 ){}
       // checkInfo 图片检查结果
@@ -88,11 +60,12 @@ export default {
       // cheatType	作弊类型
       // qualifiedState 是否合格(0:不合格,1:合格)
       // unqualifiedReason	不合格原因
-      let checkInfo = imageAIVerifyData[0].npkpiData.checkInfo || null;
+      let checkInfo = this.imageAIVerifyData[0].npkpiData.checkInfo || null;
       if (checkInfo) {
         if (checkInfo.qualifiedState == 0) {
           // 失败次数增加超过三次特殊处理
-          store.dispatch('setShotsNum', this.shotsNum + 1);
+          let shotsNum = this.shotsNum + 1;
+          store.dispatch('setShotsNum', shotsNum);
           // 不合格
           this.contentMessage = this.contentMessage + checkInfo.unqualifiedReason;
           if (checkInfo.cheatState == 1) {
@@ -108,7 +81,7 @@ export default {
     },
     // 仍要上传
     confirmUpload() {
-      this.$emit('confirmUpload', { data: this.imageAIVerifyData });
+      this.$emit('confirmUpload', { data: this.this. });
     },
     close() {
       this.$emit('close');
@@ -133,7 +106,7 @@ export default {
     float: right;
   }
   .title {
-    font-size: 14px;
+    font-size: 16px;
     text-align: center;
     padding: 5px;
   }
@@ -142,7 +115,7 @@ export default {
     border-bottom: 1px solid #ccc;
     .AIVerify {
       padding: 5px;
-      font-size: 12px;
+      font-size: 14px;
       color: red;
       text-align: center;
     }
@@ -150,6 +123,18 @@ export default {
       display: flex;
       align-items: center;
       justify-content: space-between;
+      .label {
+        font-size: 14px;
+      }
+    }
+  }
+  .btn {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    .tips {
+      font-size: 14px;
+      color: rgb(231, 221, 86);
     }
   }
 }

+ 2 - 2
src/views/storeManagement/storeAdd.vue

@@ -772,6 +772,8 @@ export default {
     this.dictTypeQGJZFormShow = false;
     this.dictTypeSJSFormShow = false;
     this.dictTypeFormShow = false;
+    // 拍照次数重置
+    store.dispatch('setShotsNum', 0);
   },
   watch: {
     $route(to, from) {
@@ -849,8 +851,6 @@ export default {
         this.getLocation();
       });
     });
-    // 拍照次数重置
-    store.dispatch('setShotsNum', 0);
   },
   methods: {
     addressFns(val) {