From 166b9c6d7517fbff3a400e07d47d1f33c8634c69 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期六, 05 七月 2025 15:08:47 +0800
Subject: [PATCH] #

---
 pages/basics/matQuery.vue |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue
index dbd037b..4be2b34 100644
--- a/pages/basics/matQuery.vue
+++ b/pages/basics/matQuery.vue
@@ -35,6 +35,14 @@
 						</view>
 					</view>
 				</view>
+				<view class="text-box">
+					<view class="text-title"><text>杈呮暟閲�</text></view>
+					<view class="text-title">
+						<view>
+							<uni-number-box v-model="matData.weight" :value="matData.weight" :max="99999999" color="#747474" @change="changeValue2"/>
+						</view>
+					</view>
+				</view>
 			</view>
 		</view>
 		<view class="foot flex justify-center">
@@ -55,6 +63,7 @@
 					batch: null,
 					anfme: null,
 					anfme2: null,
+					origin: null,
 				},
 				baseIP:'',
 				basePORT:'',
@@ -84,13 +93,22 @@
 				
 			},
 			changeValue(value) {
-				this.matData.anfme = value
+				// this.matData.anfme = value
+			},
+			changeValue2(value) {
+				let arr = this.matData.origin.split("/")
+				let mainAnfme = value * parseFloat(arr[1]) * parseFloat(arr[0])
+				let flooredNum = Math.floor(mainAnfme * 10000) / 10000; // 鎴柇鍒板皬鏁扮偣鍚�4浣�
+				this.matData.weight = value
+				this.matData.anfme = flooredNum
 			},
 			back() {
 				if (this.matData.anfme === 0) {
 					uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'});
 					return;
 				}
+				
+				console.log(this.matData);
 				this.getOpenerEventChannel().emit('matList', {data: this.matData});
 				uni.vibrateShort();
 				uni.navigateBack({

--
Gitblit v1.9.1