From b38d60e4cc25c1a6f809c9652f87071d92179f2f Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 24 九月 2025 15:25:20 +0800
Subject: [PATCH] pda新增修改

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

diff --git a/pages/mat/matSelected.vue b/pages/mat/matSelected.vue
index 6b3a8eb..552ed50 100644
--- a/pages/mat/matSelected.vue
+++ b/pages/mat/matSelected.vue
@@ -1,13 +1,17 @@
 <template>
 	<view>
-		<view class="form">
+		<view class="form" v-for="mat in mats">
+			<view class="form-item">
+				<view class="form-item-desc"><text>璁㈠崟鍙�</text></view>
+				<view class="form-item-content"><text>{{mat.orderNo}}</text></view>
+			</view>
 			<view class="form-item">
 				<view class="form-item-desc"><text>鍟嗗搧缂栫爜</text></view>
 				<view class="form-item-content"><text>{{mat.matnr}}</text></view>
 			</view>
 			<view class="form-item">
 				<view class="form-item-desc"><text>鍟嗗搧鍚嶇О</text></view>
-				<view class="form-item-content"><text>{{mat.maktx}}</text></view>
+				<view class="form-item-content" style="word-break: break-all;line-height: 1.5;"><text>{{mat.maktx}}</text></view>
 			</view>
 			<view class="form-item">
 				<view class="form-item-desc"><text>瑙勬牸</text></view>
@@ -17,14 +21,14 @@
 				<view class="form-item-desc"><text>鎵瑰彿</text></view>
 				<view class="form-item-content">
 					<view class="form-input">
-						<input type="text">
+						<input type="text" v-model="mat.batch">
 					</view>
 				</view>
 			</view>
 			<view class="form-item">
 				<view class="form-item-desc"><text>鏁伴噺</text></view>
 				<view class="form-item-content">
-					<uni-number-box :max="99999999" :step='1' color="#747474" />
+					<uni-number-box :value="mat.enableQty" :max="99999999" :step='1' color="#747474" @change="changeValue" />
 				</view>
 			</view>
 		</view>
@@ -44,8 +48,10 @@
 					maktx: null,
 					specs: null,
 					batch: null,
-					anfme: null,
+					anfme: 0,
 				},
+				selectNum: null,
+				mats: null,
 				baseIP:'',
 				basePORT:'',
 			}
@@ -61,9 +67,7 @@
 			
 			// 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
 			eventChannel.on('mat', function(data) {
-				console.log(data);
-				that.mat = data.data
-				that.mat.anfme = 0
+				that.mats = data.data
 			})
 			
 			
@@ -76,15 +80,22 @@
 				
 			},
 			changeValue(value) {
-				this.mat.anfme = value
+				this.mats[0].anfme = value
+				this.selectNum = value
 			},
 			back() {
-				if (this.mat.anfme === 0) {
+				if (this.mats[0].anfme === 0) {
 					uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'});
 					return;
 				}
-				this.getOpenerEventChannel().emit('matList', {data: this.mat});
-				uni.vibrateShort();
+				console.log("=======>");
+				console.log(this.mats[0]);
+				if (this.selectNum != null) {
+					this.mats[0].anfme = this.selectNum
+				} else {
+					this.mats[0].anfme = this.mats[0].enableQty
+				}
+				this.getOpenerEventChannel().emit('matList', {data: this.mats[0]});
 				uni.navigateBack({
 					
 				})
@@ -103,8 +114,8 @@
 		box-shadow: 0px 0px 50px 0px rgba(0,0,0,0.2) ;
 	}
 	.form-item {
-		height: 100rpx;
-		line-height: 100rpx;
+		min-height: 100rpx;
+		line-height: 1;
 		border-bottom: 1px solid #DCDFE6;
 		margin-left: 40rpx;
 		display: flex;

--
Gitblit v1.9.1