LaveyD hai 1 mes
pai
achega
8f2dca6c39

+ 7 - 0
src/pages/sellManage/common/confirmMixin.js

@@ -404,6 +404,13 @@ export default {
       if (val) {
         this.handlePayCodeInput()
       }
+    },
+    payCodeDialogVisible (val) {
+      if (val) {
+        this.$nextTick(() => {
+          this.$refs.payCodeInputRef?.focus()
+        })
+      }
     }
   }
 }

+ 1 - 0
src/pages/sellManage/retail/Confirm.vue

@@ -206,6 +206,7 @@
       width="50%">
       <el-input
         autofocus
+        ref="payCodeInputRef"
         v-model="payCode"
       ></el-input>
       <div class="dialog-footer" style="margin-top: 10px;">