From 2ad931a09f80d02608101967a63e43212ebfa8f5 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 06 五月 2025 13:41:13 +0800
Subject: [PATCH] #物料组盘

---
 pages/listing/matnrPalletising.vue |   18 ++++++++++--------
 pages/listing/disc.vue             |    4 ++--
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/pages/listing/disc.vue b/pages/listing/disc.vue
index 114dd16..d2debba 100644
--- a/pages/listing/disc.vue
+++ b/pages/listing/disc.vue
@@ -137,7 +137,7 @@
 				batch: '',
 				repeatClick: false,
 				isconfirm: false,
-				batch:''
+				
 			}
 		},
 		computed: {
@@ -169,7 +169,7 @@
 					batch: this.batch
 				}, "post")
 				if (code === 200) {
-					data && this.list.push(data);
+					this.list = data
 				} else {
 					uni.showToast({
 						title: msg,
diff --git a/pages/listing/matnrPalletising.vue b/pages/listing/matnrPalletising.vue
index e7e0fa9..e4f8d9d 100644
--- a/pages/listing/matnrPalletising.vue
+++ b/pages/listing/matnrPalletising.vue
@@ -11,6 +11,10 @@
 				<input placeholder="璇锋壂鎻忕墿鏂欑紪鐮�" v-model="matnrCode"></input>
 				<text class='cuIcon-search text-blue' @click="search"></text>
 			</view>
+			<!-- <view class="cu-form-group">
+				<view class="title">鎵规鍙�</view>
+				<input placeholder="璇疯緭鍏ョ墿鏂欐壒娆�" v-model="batch"></input>
+			</view> -->
 		</form>
 
 		<view class="flex solid-bottom padding-sm justify-between">
@@ -68,14 +72,14 @@
 							<text class="text-grey ">{{item.batch}}</text>
 						</view>
 					</view>
-					<view class="cu-item">
+					<!-- <view class="cu-item">
 						<view class="content">
 							<text class="text-black">骞冲彴琛屽彿: <text class="text-grey ">{{item.platformId}}</text></text>
 						</view>
 						<view class="content">
 							<text class="text-black">璐ㄦ缁撴灉: <text class="text-grey ">{{item.inspect}}</text></text>
 						</view>
-					</view>
+					</view> -->
 
 					<view class="cu-item">
 						<view class="content">
@@ -102,7 +106,7 @@
 								<view class="title text-blue"><text
 										class="text-red text-xl vertical-middle">*</text>缁勭洏鏁伴噺:
 								</view>
-								<uni-number-box style="width: 70%;" :max="max" v-model="megreQty"
+								<uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty"
 									:step='1'></uni-number-box>
 							</view>
 						</view>
@@ -137,8 +141,7 @@
 				range: [],
 				batch: '',
 				repeatClick: false,
-				isconfirm: false,
-				batch:'',
+				isconfirm: false,				
 				matnrCode:'',
 				max: 99999999,
 			}
@@ -165,7 +168,7 @@
 					matnrCode: this.matnrCode
 				}, "post")
 				if (code === 200) {
-					data && this.list.push(data);
+					this.list = data
 				} else {
 					uni.showToast({
 						title: msg,
@@ -224,8 +227,7 @@
 				const newArr = this.list.map(item => {
 					return {
 						...item,
-						anfme: item.anfme === null ? 0 : +item.anfme,
-						receiptQty: this.megreQty,
+						anfme: item.anfme === null ? 0 : +item.anfme,						
 					};
 				});
 

--
Gitblit v1.9.1