From fbaab6b342bf6756798ce65a1aeaff6b5769bddc Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Wed, 30 Nov 2022 12:10:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/style/uni.css | 14 +------------- components/SearchBox.vue | 3 ++- pages/WarehouseManage/CustomerLabelPrint.vue | 10 +++++++--- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/common/style/uni.css b/common/style/uni.css index 12a9de4..c72ebf0 100644 --- a/common/style/uni.css +++ b/common/style/uni.css @@ -9,16 +9,4 @@ text-decoration: none; text-align: center; } -/* .icon-check{ - position: relative; -} -.icon-check::before{ - position: absolute; - top: 50%; - left: 50%; - content: "\EA08"; - font-size: 16px; - color: #ffffff; - transform: translate(-50%,-48%) scale(.73); - -webkit-transform: translate(-50%,-48%) scale(.73); -} */ + diff --git a/components/SearchBox.vue b/components/SearchBox.vue index 85aed3a..048d41d 100644 --- a/components/SearchBox.vue +++ b/components/SearchBox.vue @@ -35,7 +35,7 @@ handleChange ($event) { this.cur = $event.target.value this.$emit('input', this.cur) - this.$emit('handleChange', this.cur) + this.$emit('handleChange', this.cur) }, toSearch () { this.$emit('toSearch', this.cur) @@ -50,6 +50,7 @@ uni.scanCode({ success: (res) => { this.$emit('input', res.result) + this.$emit('handleChange', res.result) }, fail: (err) => { // uni.showToast({ diff --git a/pages/WarehouseManage/CustomerLabelPrint.vue b/pages/WarehouseManage/CustomerLabelPrint.vue index da8bb51..2ccf92b 100644 --- a/pages/WarehouseManage/CustomerLabelPrint.vue +++ b/pages/WarehouseManage/CustomerLabelPrint.vue @@ -10,6 +10,7 @@ @@ -53,7 +54,7 @@ - + @@ -76,8 +77,11 @@ }; }, methods: { + handleChange (e) { + this._customerInfo(e) + }, /** 查询 */ - async _customerInfo () { + async _customerInfo (e) { this.disabled1 = true if (!this.val1) { uni.showToast({ @@ -88,7 +92,7 @@ return } try { - let res = await customerInfo(this.val1) + let res = await customerInfo(e) this.dataList = [...res.data] this.disabled1 = false } catch (e) {