From c34153297f866ce25445c5dba6d0f22f63c61ece Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期五, 08 四月 2022 14:40:21 +0800
Subject: [PATCH] #

---
 pages/basics/pakin.vue |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue
index 6ae9022..6d7f53c 100644
--- a/pages/basics/pakin.vue
+++ b/pages/basics/pakin.vue
@@ -44,13 +44,10 @@
 		</scroll-view>
 		<view class="footer flex justify-around">
 			<view>
-				<button class="cu-btn">閲嶇疆</button>
+				<button class="cu-btn" @click="resst()">閲嶇疆</button>
 			</view>
 			<view>
 				<button class="cu-btn pakin-btn bg-blue" @click="comb()">缁勬墭</button>
-			</view>
-			<view>
-				<button class="cu-btn bg-blue" @click="searchEject()"><text class="button-text">灞呬腑</text></button>
 			</view>
 		</view>
 	</view>
@@ -77,10 +74,19 @@
 		onShow() {
 			let that = this;
 			uni.$on('matData', function(data) {
-				that.matList.push(data);
+				console.log(that.matList)
+				console.log(data)
+				// that.matList.push(data)
 			})
+			
+			
 		},
 		methods: {
+			resst() {
+				this.matList = []
+				this.barcode = ''
+				this.matnr = ''
+			},
 			comb() {
 				let that = this;
 				if (that.barcode === '') {
@@ -122,11 +128,6 @@
 							uni.showToast({title: res.msg, icon: "none",position: 'top'})
 						}
 					}
-				});
-			},
-			searchEject() {
-				uni.navigateTo({
-				    url: "matQuery"
 				});
 			},
 			selectMat() {

--
Gitblit v1.9.1