From 7f7c2174f905f1d8b83c038e3d92058a3e47a7ad Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 29 五月 2024 13:34:12 +0800
Subject: [PATCH] #

---
 pages/pakin/pakin.vue |   51 ++++++++++++++++++++++++++++++++-------------------
 1 files changed, 32 insertions(+), 19 deletions(-)

diff --git a/pages/pakin/pakin.vue b/pages/pakin/pakin.vue
index 8635bf2..5612110 100644
--- a/pages/pakin/pakin.vue
+++ b/pages/pakin/pakin.vue
@@ -223,17 +223,18 @@
 				}, 200)
 			},
 			asBarcodeInput() {
+				// this.asBarcode = this.asBarcode.replace(/\s+/g, '')
 				setTimeout(() => {
-					var len = this.asBarcode.length
-					if (len != 12) {
-						uni.showToast({
-							title: '鎵樼洏鐮佹湁璇閲嶈瘯',
-							icon: "none",
-							position: 'top'
-						});
-						this.asBarcodeFocuss()
-						return;
-					}
+					// var len = this.asBarcode.length
+					// if (len != 12) {
+					// 	uni.showToast({
+					// 		title: 'AS400鏈夎璇烽噸璇�',
+					// 		icon: "none",
+					// 		position: 'top'
+					// 	});
+					// 	this.asBarcodeFocuss()
+					// 	return;
+					// }
 					this.focuss()
 				}, 200)
 			},
@@ -257,11 +258,11 @@
 			},
 			// 鍟嗗搧鍏夋爣娓呯┖閲嶇疆
 			focuss() {
-				this.focus = false;
+				this.matFocus = false;
 				setTimeout(() => {
 					this.matnr = '';
 					this.matFocus = true;
-				}, 100);
+				}, 200);
 			},
 			codeInput(code) {
 				switch (code) {
@@ -285,9 +286,6 @@
 						break;
 					case "barcode4":
 						this.barcode4Focus = false;
-						setTimeout(() => {
-							this.barcode4Focus = true;
-						}, 100);
 						break;
 				}
 			},
@@ -307,7 +305,6 @@
 						if (result.code === 200 && result.data) {
 							that.matData = result.data
 							that.matnr = ''
-							that.matData['model'] = ''
 							uni.navigateTo({
 								url: "../mat/matSelected",
 								// 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
@@ -464,7 +461,7 @@
 					return;
 				}
 				if (that.asBarcode === '') {
-					this.messageText = "璇锋壂鎻忔墭鐩樻潯鐮�"
+					this.messageText = "璇锋壂鎻廇S400鏉$爜"
 					this.messageToggle('error')
 					return;
 				}
@@ -484,7 +481,12 @@
 					url: that.baseUrl + '/mobile/comb/auth',
 					data: JSON.stringify({
 						barcode: that.barcode,
-						combMats: that.dataList
+						asBarcode: that.asBarcode,
+						combMats: that.dataList,
+						code1: that.barcode1,
+						code2: that.barcode2,
+						code3: that.barcode3,
+						code4: that.barcode4
 					}),
 					method: 'POST',
 					header: {
@@ -523,7 +525,13 @@
 			// 纭閲嶇疆
 			resetConfirm() {
 				this.dataList = []
+				this.asBarcode = ''
+				this.barcode1 = ''
+				this.barcode2 = ''
+				this.barcode3 = ''
+				this.barcode4 = ''
 				this.messageText = "閲嶇疆瀹屾垚"
+				this.barcodeFocuss()
 				this.messageToggle('success')
 			},
 			// 鍙栨秷閲嶇疆
@@ -534,6 +542,11 @@
 			resst() {
 				this.dataList = []
 				this.barcode = ''
+				this.asBarcode = ''
+				this.barcode1 = ''
+				this.barcode2 = ''
+				this.barcode3 = ''
+				this.barcode4 = ''
 				this.barcodeFocuss()
 			},
 		}
@@ -575,7 +588,7 @@
 	}
 
 	.code-decs {
-		width: 20vw;
+		/* width: 20vw; */
 		font-size: 14px;
 		color: #303133;
 	}

--
Gitblit v1.9.1