From e58316187232a0489e9e004bc038f404ca7f5948 Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期三, 23 七月 2025 10:03:43 +0800 Subject: [PATCH] # --- pages/basics/combQuery.vue | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/pages/basics/combQuery.vue b/pages/basics/combQuery.vue index feabde5..1a5b1e3 100644 --- a/pages/basics/combQuery.vue +++ b/pages/basics/combQuery.vue @@ -5,7 +5,7 @@ <view class="searchBox"> <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view> <view class="searchArea"> - <input v-model="barcode" type="text" placeholder="鎵樼洏鐮�" @input="searchByBarcode" + <input v-model="barcode" type="text" placeholder="鎵樼洏鐮�" @input="searchByBarcodeTime" placeholder-style="line-height: 85rpx;"> </view> <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada" @@ -33,6 +33,7 @@ <view><text style="width: 700rpx;">鍝佸悕锛歿{item.maktx}}</text></view> <view><text style="width: 700rpx;">鎵规锛歿{item.batch}}</text></view> <view><text style="width: 700rpx;">鍗曞彿锛歿{item.orderNo}}</text></view> + <view><text style="width: 700rpx;">鍨嬪彿锛歿{item.model}}</text></view> <view><text style="width: 700rpx;">鏁伴噺锛歿{item.anfme}}</text></view> <view> <text style="width: 700rpx;">杈呮暟閲忥細{{item.weight}}</text> @@ -66,8 +67,8 @@ return { commonUrl: null, matList: [], - barcode: null - + barcode: null, + timeout: null, } }, mounted() { @@ -93,6 +94,11 @@ }, request() { let that = this + if(that.barcode == null || that.barcode == "") { + that.matList = [] + return; + } + uni.request({ url: that.commonUrl + '/waitPakin/list/auth', header: { @@ -139,6 +145,12 @@ } } }) + }, + searchByBarcodeTime() { + clearTimeout(this.timeout) + this.timeout = setTimeout(() => { + this.searchByBarcode() + },600) }, // 鏍规嵁鎵樼洏鐮佹悳绱� searchByBarcode() { @@ -203,7 +215,7 @@ .data-list { border-bottom: 1px solid #d8d8d8; - height: 240rpx; + height: 410rpx; margin: 15rpx; border-radius: 20rpx; } @@ -238,7 +250,7 @@ /* background-color: #ffff7f; */ display: inline-block; float: left; - height: 180rpx; + height: 280rpx; width: 500rpx; color: #676767; } @@ -253,7 +265,7 @@ float: right; width: 100rpx; height: 180rpx; - line-height: 180rpx; + line-height: 450rpx; } .data-list-right label { -- Gitblit v1.9.1