From 59666efbb197c83fc3fa71ceb2e0c96240e6cc1c Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 12 一月 2024 08:21:42 +0800
Subject: [PATCH] #

---
 pages/pakin/modulePakin.vue |   49 ++++++++++++++++++++++++-------------------------
 1 files changed, 24 insertions(+), 25 deletions(-)

diff --git a/pages/pakin/modulePakin.vue b/pages/pakin/modulePakin.vue
index 2bd0649..f2de52d 100644
--- a/pages/pakin/modulePakin.vue
+++ b/pages/pakin/modulePakin.vue
@@ -46,15 +46,17 @@
 							<uni-tag :text="item.batch" type="warning"></uni-tag>
 						</view>
 					</view>
-					<!-- <view class="list-left-item">
-						<view class="desc">閲嶉噺锛�</view>
-						<view class="left-item">
-							<uni-tag :text="item.weight" type="warning"></uni-tag>
-						</view>
-					</view> -->
+					<view class="list-left-item">
+						<view class="desc">缁勬垚鏁伴噺锛�</view>
+						<view class="left-item">{{item.beBatch}}</view>
+					</view>
 					<view class="list-left-item">
 						<view class="desc">鏁伴噺锛�</view>
 						<view class="left-item">{{item.anfme}}</view>
+					</view>
+					<view class="list-left-item">
+						<view class="desc">澶囨敞锛�</view>
+						<view class="left-item">{{item.memo}}</view>
 					</view>
 				</view>
 				<view class="list-right">
@@ -90,6 +92,10 @@
 						<view class="popup-item-left">閲嶉噺:</view>
 						<view class="popup-item-right"><input type="text" v-model="weight"></view>
 					</view> -->
+					<view class="popup-item">
+						<view class="popup-item-left">澶囨敞:</view>
+						<view class="popup-item-right"><input type="text" v-model="memo"></view>
+					</view>
 					<view class="popup-item">
 						<view class="popup-item-left">鏁伴噺:</view>
 						<view class="popup-item-right" style="border: none;justify-content: center;">
@@ -161,6 +167,7 @@
 				matnr: '',
 				batch: '',
 				weight: '',
+				memo: '',
 				msgType1: 'success',
 				msgType: 'success',
 				messageText: '',
@@ -237,25 +244,12 @@
 					success(result) {
 						result = result.data
 						if (result.code === 200 && result.data) {
-							that.matData = result.data
-							that.matnr = ''
-							that.matData['batch'] = ''
-							uni.navigateTo({
-								url: "../mat/matSelected",
-								// 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
-								success: function(res) {
-									res.eventChannel.emit('mat', {
-										data: result.data
-									})
-								},
-								// 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
-								events: {
-									matList: function(data) {
-										that.checkMat(data.data)
-										that.focuss()
-									},
-								},
-							});
+							for(let k of result.data) {
+								k.anfme = k.beBatch
+								that.dataList.push(k)
+								that.$refs.inputDialog.close()
+								that.matnr = ''
+							}
 						} else if (result.code == 403) {
 							uni.showToast({
 								title: result.msg,
@@ -338,6 +332,7 @@
 				this.count = this.dataList[i].anfme
 				this.batch = this.dataList[i].batch
 				this.weight = this.dataList[i].weight
+				this.memo = this.dataList[i].memo
 				this.rowNum = i
 				this.eject()
 			},
@@ -367,6 +362,7 @@
 				this.dataList[this.rowNum].anfme = this.count
 				this.dataList[this.rowNum].batch = this.batch
 				this.dataList[this.rowNum].weight = this.weight
+				this.dataList[this.rowNum].memo = this.memo
 				this.matnr = ''
 				this.messageText = "淇敼鎴愬姛"
 				this.messageToggle('success')
@@ -478,6 +474,9 @@
 		z-index: 10;
 	}
 
+	.list:first-child {
+		margin-top: 320rpx;
+	}
 	.item {
 		display: flex;
 		align-items: center;

--
Gitblit v1.9.1