From f62410d5ff3124f13612235eea6583088fadffcf Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 30 十月 2024 15:51:07 +0800
Subject: [PATCH] #

---
 pages/order/orderPakin2.vue |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/pages/order/orderPakin2.vue b/pages/order/orderPakin2.vue
index 938edcf..5b9ed4d 100644
--- a/pages/order/orderPakin2.vue
+++ b/pages/order/orderPakin2.vue
@@ -6,16 +6,14 @@
 				<view style="flex: 1;">
 					<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="orderNo" :focus="orderNoFocus">
 				</view>
-				<view style="height:100%;line-height:2;width:40rpx;margin-right: 20rpx;">
-					<uni-icons type="clear" color="#c1c1c1" @click="clearOrderNo()"></uni-icons>
-				</view>
+				
 			</view>
 			<view class="item">
 				<view class="code-decs">鎵樼洏鐮�:</view>
 				<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="barcode" :focus="barcodeFocus"
 					@input="barcodeInput()">
 			</view>
-			<view class="item">
+			<!-- <view class="item">
 				<view class="code-decs">鐗╂枡鐮�:</view>
 				<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="matnr" :focus="matFocus" @input="findMat()">
 				<view class="item-right">
@@ -23,7 +21,7 @@
 					<text style="text-align: right;color: #409EFF;" @click="selectMat()">鎻愬彇+</text>
 					<uni-icons type="right" color="#c1c1c1"></uni-icons>
 				</view>
-			</view>
+			</view> -->
 		</view>
 		<view class="mat-list-title">
 			鍟嗗搧鍒楄〃
@@ -162,15 +160,22 @@
 				messageText: '',
 				title: '',
 				content: '',
-				orderNoFocus: true,
-				barcodeFocus: false,
+				orderNoFocus: false,
+				barcodeFocus: true,
 				matFocus: false,
 				matData: '',
 				removeNum: 0,
 			}
 		},
 		onLoad() {
-
+			let that = this
+			const eventChannel = this.getOpenerEventChannel();
+			
+			eventChannel.on('orderItem', function(data) {
+				console.log(data.item)
+				that.orderNo = data.item.orderNo
+				that.checkMat(data.item)
+			});
 		},
 		onShow() {
 			this.baseUrl = uni.getStorageSync('baseUrl');
@@ -234,10 +239,12 @@
 			// 鎼滅储鐗╂枡
 			findMat() {
 				let that = this
+				let m = that.matnr.split(";")
+				let matnr1 = m[0].slice(3)
 				uni.request({
 					url: that.baseUrl + '/mat/auth',
 					data: {
-						matnr: that.matnr
+						matnr: matnr1
 					},
 					header: {
 						'token': uni.getStorageSync('token')
@@ -493,7 +500,7 @@
 	.code {
 		width: 100%;
 		position: fixed;
-		min-height: 210rpx;
+		min-height: 200rpx;
 		background-color: #FFF;
 		z-index: 10;
 	}
@@ -501,7 +508,7 @@
 	.item {
 		display: flex;
 		align-items: center;
-		height: 70rpx;
+		height: 100rpx;
 		margin-left: 20rpx;
 		border-bottom: 1px solid #DCDFE6;
 	}

--
Gitblit v1.9.1