From 166b9c6d7517fbff3a400e07d47d1f33c8634c69 Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期六, 05 七月 2025 15:08:47 +0800 Subject: [PATCH] # --- pages/basics/order.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pages/basics/order.vue b/pages/basics/order.vue index 0680ba2..520902c 100644 --- a/pages/basics/order.vue +++ b/pages/basics/order.vue @@ -23,7 +23,7 @@ </view> <view class="square-content"> <view class="content-input"> - <input v-model="matnr" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()" + <input v-model="matnr" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMatInput()" :focus="focus" placeholder-style="line-height: 85rpx;"> <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> </view> @@ -143,7 +143,8 @@ check:false, checkText:'鍏ㄩ��', checkedData:[], - batch:'' + batch:'', + timeout: null, } }, onShow() { @@ -297,6 +298,12 @@ }); that.matnr = '' }, + findMatInput() { + clearTimeout(this.timeout) + this.timeout = setTimeout(() => { + this.findMat() + },600) + }, findMat() { let that = this uni.request({ -- Gitblit v1.9.1