From d8c2e4943409efa3ad1a6e8229d33a1e43247886 Mon Sep 17 00:00:00 2001 From: whycq <whycq> Date: 星期四, 19 五月 2022 13:49:55 +0800 Subject: [PATCH] # --- pages/basics/outPakin.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/basics/outPakin.vue b/pages/basics/outPakin.vue index 9a7720d..3efc5b4 100644 --- a/pages/basics/outPakin.vue +++ b/pages/basics/outPakin.vue @@ -104,13 +104,20 @@ this.foucss() } }, + barcodeFocuss() { + let that = this; + that.barcodeFocus = false; + setTimeout(()=>{ + that.matnrId = ''; + that.barcodeFocus = true; + }, 100); + }, foucss() { let that = this; that.focus = false; setTimeout(()=>{ that.matnrId = ''; that.focus = true; - }, 100); }, clear() { @@ -122,10 +129,10 @@ this.$refs.message.open() }, resst() { - this.barcodeFocus = true this.matnrId = ''; this.matList = []; this.barcode = ''; + this.barcodeFocuss(); }, removeBarcode() { this.barcode = '' @@ -174,6 +181,7 @@ that.barcode = ''; that.matList = ''; that.matList = []; + that.barcodeFocuss(); } else if (res.code == 403) { uni.showToast({title: res.msg, icon: "none", position: 'top'}) setTimeout(() => { -- Gitblit v1.9.1