From 5ae5d39dfbaaaca5162cfe1e5c552426233d1488 Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期五, 08 四月 2022 17:01:56 +0800
Subject: [PATCH] #

---
 pages/basics/matQuery.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue
index 12f1e5b..8648be5 100644
--- a/pages/basics/matQuery.vue
+++ b/pages/basics/matQuery.vue
@@ -22,7 +22,7 @@
 					<view class="text-title"><text>鏁伴噺</text></view>
 					<view class="text-title">
 						<view>
-							<uni-number-box v-model="matData.anfme" value="0" :max="9999" color="#747474"  @change="changeValue"/>
+							<uni-number-box v-model="matData.anfme" :max="9999" color="#747474"  @change="changeValue"/>
 						</view>
 					</view>
 				</view>
@@ -40,7 +40,6 @@
 	export default {
 		data() {
 			return {
-				matList:[],
 				matData: {
 					matnr: null,
 					maktx: null,
@@ -67,6 +66,8 @@
 			
 		},
 		onShow() {
+			this.matData.anfme = 0
+			console.log(this.matData)
 			// this.matData = this.matData
 		},
 		methods: {
@@ -80,6 +81,10 @@
 				
 			},
 			back() {
+				if (this.matData.anfme === 0) {
+					uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'});
+					return;
+				}
 				this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: this.matData});
 				uni.navigateBack({
 					

--
Gitblit v1.9.1