koushanshan 3 лет назад
Родитель
Сommit
3c38a3c5f9

+ 3 - 1
src/view/pdm/data-collection/climbKiln-add.vue

@@ -184,7 +184,6 @@
           }
           this.excute(this.$service.collectService, this.$service.collectService.checkProdUserCode, params).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
-              this.onProdUserCodeFlag = false
               this.formData.prodUserId = parseInt(res.data)
             }
             //没有打卡
@@ -196,6 +195,7 @@
                 },
                 {
                   ok: () => {
+                    this.onProdUserCodeFlag = false
                     this.$router.push('/pdm/ws-clock/clock-user')
                   },
                   cancel: () => {
@@ -206,6 +206,8 @@
               this.$Message.error(res.message)
             }
           })
+        }else{
+          this.onProdUserCodeFlag = false
         }
       },
       /**

+ 3 - 1
src/view/pdm/data-collection/finishCheck-add.vue

@@ -325,7 +325,6 @@
           }
           this.excute(this.$service.collectService, this.$service.collectService.checkProdUserCode, params).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
-              this.onProdUserCodeFlag = false
               this.formData.prodUserId = parseInt(res.data)
             }
             //没有打卡
@@ -337,6 +336,7 @@
                 },
                 {
                   ok: () => {
+                    this.onProdUserCodeFlag = false
                     this.$router.push('/pdm/ws-clock/clock-user')
                   },
                   cancel: () => {
@@ -347,6 +347,8 @@
               this.$Message.error(res.message)
             }
           })
+        }else{
+          this.onProdUserCodeFlag = false
         }
       },
       /**

+ 3 - 1
src/view/pdm/data-collection/halfCheck-add.vue

@@ -325,7 +325,6 @@
           }
           this.excute(this.$service.collectService, this.$service.collectService.checkProdUserCode, params).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
-              this.onProdUserCodeFlag = false
               this.formData.prodUserId = parseInt(res.data)
             }
             //没有打卡
@@ -337,6 +336,7 @@
                 },
                 {
                   ok: () => {
+                    this.onProdUserCodeFlag = false
                     this.$router.push('/pdm/ws-clock/clock-user')
                   },
                   cancel: () => {
@@ -347,6 +347,8 @@
               this.$Message.error(res.message)
             }
           })
+        }else{
+          this.onProdUserCodeFlag = false
         }
       },
       /**

+ 3 - 1
src/view/pdm/data-collection/inKiln-add.vue

@@ -235,7 +235,6 @@
           }
           this.excute(this.$service.collectService, this.$service.collectService.checkProdUserCode, params).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
-              this.onProdUserCodeFlag = false
               this.formData.prodUserId = parseInt(res.data)
             }
             //没有打卡
@@ -247,6 +246,7 @@
                 },
                 {
                   ok: () => {
+                    this.onProdUserCodeFlag = false
                     this.$router.push('/pdm/ws-clock/clock-user')
                   },
                   cancel: () => {
@@ -257,6 +257,8 @@
               this.$Message.error(res.message)
             }
           })
+        }else{
+          this.onProdUserCodeFlag = false
         }
       },
       /**

+ 3 - 1
src/view/pdm/data-collection/outKiln-add.vue

@@ -233,7 +233,6 @@
           }
           this.excute(this.$service.collectService, this.$service.collectService.checkProdUserCode, params).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
-              this.onProdUserCodeFlag = false
               this.formData.prodUserId = parseInt(res.data)
             }
             //没有打卡
@@ -245,6 +244,7 @@
                 },
                 {
                   ok: () => {
+                    this.onProdUserCodeFlag = false
                     this.$router.push('/pdm/ws-clock/clock-user')
                   },
                   cancel: () => {
@@ -255,6 +255,8 @@
               this.$Message.error(res.message)
             }
           })
+        }else{
+          this.onProdUserCodeFlag = false
         }
       },
       /**

+ 3 - 1
src/view/pdm/data-collection/recover-add.vue

@@ -129,7 +129,6 @@
           }
           this.excute(this.$service.collectService, this.$service.collectService.checkProdUserCode, params).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
-              this.onProdUserCodeFlag = false
               this.formData.prodUserId = parseInt(res.data)
             }
             //没有打卡
@@ -141,6 +140,7 @@
                 },
                 {
                   ok: () => {
+                    this.onProdUserCodeFlag = false
                     this.$router.push('/pdm/ws-clock/clock-user')
                   },
                   cancel: () => {
@@ -151,6 +151,8 @@
               this.$Message.error(res.message)
             }
           })
+        }else{
+          this.onProdUserCodeFlag = false
         }
       },
       /**

+ 3 - 1
src/view/pdm/data-collection/register-add.vue

@@ -190,7 +190,6 @@
           }
           this.excute(this.$service.collectService, this.$service.collectService.checkProdUserCode, params).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
-              this.onProdUserCodeFlag = false
               this.formData.prodUserId = parseInt(res.data)
             }
             //没有打卡
@@ -202,6 +201,7 @@
                 },
                 {
                   ok: () => {
+                    this.onProdUserCodeFlag = false
                     this.$router.push('/pdm/ws-clock/clock-user')
                   },
                   cancel: () => {
@@ -212,6 +212,8 @@
               this.$Message.error(res.message)
             }
           })
+        }else{
+          this.onProdUserCodeFlag = false
         }
       },
       /**

+ 3 - 1
src/view/pdm/data-collection/uninstallKiln-add.vue

@@ -182,7 +182,6 @@
           }
           this.excute(this.$service.collectService, this.$service.collectService.checkProdUserCode, params).then(res => {
             if (res.code === this.$config.SUCCESS_CODE) {
-              this.onProdUserCodeFlag = false
               this.formData.prodUserId = parseInt(res.data)
             }
             //没有打卡
@@ -194,6 +193,7 @@
                 },
                 {
                   ok: () => {
+                    this.onProdUserCodeFlag = false
                     this.$router.push('/pdm/ws-clock/clock-user')
                   },
                   cancel: () => {
@@ -204,6 +204,8 @@
               this.$Message.error(res.message)
             }
           })
+        }else{
+          this.onProdUserCodeFlag = false
         }
       },
       /**