From 69a199e56c2262a23d5b71dfefad14482548e42e Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期六, 09 十一月 2024 10:52:18 +0800 Subject: [PATCH] 增加工号 --- components/z-input/z-input.vue | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/components/z-input/z-input.vue b/components/z-input/z-input.vue index cabe92b..287ed1b 100644 --- a/components/z-input/z-input.vue +++ b/components/z-input/z-input.vue @@ -85,10 +85,11 @@ return } if (val.length != this.lenCheck) { + console.log(val); setTimeout(()=>{ this.data = '' this.$emit('input','') - },0) + },10) } else { this.$emit('input',val) } @@ -115,17 +116,15 @@ this.$emit('clickBtn'); }, inputVal() { - this.$emit('inputVal',[this.data,this.name]); + this.$emit('inputVal',{title:this.name,value:this.data}); }, scanCode() { let _this = this uni.scanCode({ onlyFromCamera: true, success(res) { - _this.$parent.scanCode(res.result) _this.data = res.result - console.log('鎵埌浜�'); - console.log(res); + _this.$emit('inputVal',{title:_this.name,value:_this.data}) } }) } -- Gitblit v1.9.1