From 659f07e1a25e0c307a2984ee592a6610534c1301 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 16 六月 2023 16:43:30 +0800
Subject: [PATCH] #

---
 pages/basics/pakin.vue |   48 +++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 41 insertions(+), 7 deletions(-)

diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue
index 2c0e658..d719a88 100644
--- a/pages/basics/pakin.vue
+++ b/pages/basics/pakin.vue
@@ -9,7 +9,7 @@
 				<view class="square-content">
 					<view class="content-input">
 						<input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" 
-						:focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height:  85rpx;">
+						:focus="barcodeFocus" @input="checkedBarcode()" @confirm="barcodeInput()" placeholder-style="line-height:  85rpx;">
 						<uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
 					</view>
 				</view>
@@ -68,9 +68,12 @@
 						<!-- <view>
 							<checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
 						</view> -->
-						<view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
+						<table>
+							<tr><td>缂栧彿锛�</td><td>{{item.matnr}}</td></tr>
+						</table>
 						<view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
 						<view><text style="width: 400rpx;">瑙勬牸锛歿{item.specs}}</text></view>
+						<view><text style="width: 400rpx;">鍏ュ簱鍖哄煙锛歿{item.matType$}}</text></view>
 						<view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
 						<view><text style="width: 400rpx;">瀹㈡埛淇℃伅锛歿{item.cstmr}}</text></view>
 						<view>
@@ -193,6 +196,22 @@
 			// 鑾峰彇url
 			getUrl() {
 				this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
+			},
+			// 妫�鏌ユ潯鐮�
+			checkedBarcode() {
+				let that = this
+				uni.request({
+					url: that.commonUrl + '/mobile/barcode/auth',
+					data: {
+						barcode: that.barcode,
+					},
+					header: {
+						'token':uni.getStorageSync('token')
+					},
+					success(result) {
+						console.log(result);
+					}
+				})
 			},
 			// 鍐荤粨
 			isFrozen() {
@@ -632,7 +651,8 @@
 		background-color: #ebebeb;
 	}
 	.data-list {
-		min-height: 250rpx;
+		border-bottom: 1px solid #d8d8d8;
+		min-height: 320rpx;
 		margin: 15rpx;
 		border-radius: 20rpx;
 		display: flex;
@@ -653,6 +673,9 @@
 	} */
 	.data-list-left {
 		margin-left: 6%;
+		min-height: 320rpx;
+		color: #676767;
+		width: 500rpx;
 		color: #676767;
 		max-width: 450rpx;
 	}
@@ -660,9 +683,20 @@
 		padding-top: 10rpx;
 	}
 	.data-list-right {
-		width: 200rpx;
-		display: flex;
-		justify-content: space-around;
-		align-items: center;
+		display: inline-block;
+		float: right;
+		min-height: 290rpx;
+		line-height: 290rpx;
+	}
+	/* display: inline-block;
+	float: right;
+	width: 200rpx;
+	height: 180rpx;
+	line-height: 180rpx; */
+	.data-list-right label {
+		display: inline-block;
+		float: left;
+		width: 80rpx;
+		height: 180rpx;
 	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1