From 0cdc24ed926ec628d932027fd4aa7af8d0e5ae86 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期二, 16 八月 2022 23:31:43 +0800
Subject: [PATCH] #

---
 pages/basics/pakin.vue    |    8 +++-----
 pages/basics/matQuery.vue |    8 +++-----
 2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue
index 991cd95..827e1da 100644
--- a/pages/basics/matQuery.vue
+++ b/pages/basics/matQuery.vue
@@ -15,14 +15,14 @@
 					<view class="text-title">{{matData.specs}}</view>
 				</view>
 				<view class="text-box">
-					<view class="text-title"><text>搴忓垪鍙�</text></view>
+					<view class="text-title"><text>鎵瑰彿</text></view>
 					<view class="text-title"><input type="text" v-model="matData.batch"></view>
 				</view>
 				<view class="text-box">
 					<view class="text-title"><text>鏁伴噺</text></view>
 					<view class="text-title">
 						<view>
-							<uni-number-box v-model="matData.anfme" :max="9999" color="#747474"  @change="changeValue"/>
+							<uni-number-box v-model="matData.anfme" :max="9999" color="#747474" />
 						</view>
 					</view>
 				</view>
@@ -63,10 +63,8 @@
 			eventChannel.on('matData', function(data) {
 			that.matData = data.data
 			})
-			
-		},
-		onShow() {
 			this.matData.anfme = 0
+			
 		},
 		methods: {
 			blur() {
diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue
index 9a70f1f..093b904 100644
--- a/pages/basics/pakin.vue
+++ b/pages/basics/pakin.vue
@@ -8,8 +8,8 @@
 				</view>
 				<view class="square-content">
 					<view class="content-input">
-						<input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="10" 
-						:focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height:  85rpx;">
+						<input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" 
+						:focus="barcodeFocus" @input="barcodeInput()" placeholder-style="line-height:  85rpx;">
 						<uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
 					</view>
 				</view>
@@ -158,6 +158,7 @@
 			},
 			// barcode input 浜嬩欢
 			barcodeInput() {
+				console.log(1)
 				// 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏�
 				setTimeout(()=>{
 					var len = this.barcode.length
@@ -173,14 +174,12 @@
 			},
 			// 鎵樼洏鐮佹湁璇噸缃�
 			barcodeFocuss() {
-				// #ifdef APP
 				let that = this;
 				that.barcodeFocus = false;
 				setTimeout(()=>{
 					that.barcode = '';
 					that.barcodeFocus = true;
 				}, 100);
-				// #endif
 			},
 			// 鍟嗗搧鍏夋爣娓呯┖閲嶇疆
 			focuss() {
@@ -312,7 +311,6 @@
 								    // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
 								    matList: function(data) {
 										that.matList.push(data.data)
-										console.log(that.matList)
 									},
 								},
 								success: function(res) {

--
Gitblit v1.9.1