linwenxin 1 vuosi sitten
vanhempi
commit
7d5d76a819

+ 5 - 5
src/views/valueAddedService/orderSettleManag/pages/offline.vue

@@ -202,12 +202,12 @@ export default {
     codeUrl(newVal) {
       this.isPay = !!newVal
       if (!this.isPay) {
-        if(this.wxpayTimeId){
+        if (this.wxpayTimeId) {
           clearTimeout(this.wxpayTimeId)
         }
         this.formCancel()
         this.addFormCancel()
-        this.$refs.pageRef.refreshList()
+        this.$refs?.pageRef?.refreshList()
       }
     }
   },
@@ -327,7 +327,7 @@ export default {
     },
     // 关闭弹窗
     formCancel() {
-      this.$refs.formRef.$refs.inlineForm.clearValidate()
+      this.$refs?.formRef?.$refs?.inlineForm?.clearValidate()
       this.$data.formData = this.$options.data().formData
       this.formDialog = false
     },
@@ -340,13 +340,13 @@ export default {
           increOrderSettleExamine(this.formData).then(res => {
             this.$message({ type: 'success', message: `审核完成!` })
             this.formCancel()
-            this.$refs.pageRef.refreshList()
+            this.$refs?.pageRef?.refreshList()
           })
         }
       })
     },
     addFormCancel() {
-      this.$refs.addFormRef.$refs.inlineForm.clearValidate()
+      this.$refs?.addFormRef?.$refs?.inlineForm?.clearValidate()
       this.$data.addFormData = this.$options.data().addFormData
       this.addFormDialog = false
     },