From 5eec8667dd53348173e3d06534aa418e64a49d19 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期日, 29 九月 2024 10:01:25 +0800
Subject: [PATCH] #

---
 pages/mat/matSelected.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/pages/mat/matSelected.vue b/pages/mat/matSelected.vue
index 8b35956..743d8ea 100644
--- a/pages/mat/matSelected.vue
+++ b/pages/mat/matSelected.vue
@@ -14,7 +14,7 @@
 				<view class="form-item-content"><text>{{mat.specs}}</text></view>
 			</view>
 			<view class="form-item">
-				<view class="form-item-desc"><text>鎵瑰彿</text></view>
+				<view class="form-item-desc"><text>鎯呭喌璇存槑</text></view>
 				<view class="form-item-content">
 					<view class="form-input">
 						<input type="text" v-model="mat.batch">
@@ -64,11 +64,14 @@
 			eventChannel.on('mat', function(data) {
 				that.mat = data.data
 				console.log(data.data);
-				if (data.data.maxNum) {
+				if (data.data.maxNum > 0) {
 					that.mat.anfme = data.data.maxNum
-				} else {
+					that.max = data.data.maxNum
+				} else if (data.data.maxNum == 0) {
+					uni.showToast({title: '褰撳墠鐗╂枡鏈�澶у彲鍏ユ暟閲忎负 0', icon: "none", position: 'top'});
 					that.mat.anfme = 0
-				}
+					that.max = data.data.maxNum
+				} 
 				
 			})
 			
@@ -83,12 +86,15 @@
 			},
 			changeValue(value) {
 				this.mat.anfme = value
+				console.log(this.mat);
 			},
 			back() {
+				
 				if (this.mat.anfme === 0) {
 					uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'});
 					return;
 				}
+				console.log(this.mat);
 				this.getOpenerEventChannel().emit('matList', {data: this.mat});
 				uni.navigateBack({
 					

--
Gitblit v1.9.1