From 08dd2afd7a9614dad029e94918516b068d413cac Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期四, 04 七月 2024 17:46:41 +0800
Subject: [PATCH] 大屏

---
 代码管理/太重PDA/pages/feeding/feeding.vue |   54 +++++++++++++++++++++++++++++++-----------------------
 1 files changed, 31 insertions(+), 23 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/feeding/feeding.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/feeding/feeding.vue"
index d3b4a09..c05d7b1 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/feeding/feeding.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/feeding/feeding.vue"
@@ -53,14 +53,14 @@
 					this.barcode = e.detail.value;
 				} else {
 					var len = this.barcode.split(',').length;
-					if (len <= 4) {
+					if (len <= 5) {
 						this.barcode = this.barcode + ',';
 					}
-					else if(len < 5){ 
+					else if(len < 6){ 
 						this.barcode = this.barcode;
 					}
 					 else {
-						this.$t.message.toast('鏁伴噺鏈�澶氫负5涓�');
+						this.$t.message.toast('鏁伴噺鏈�澶氫负6涓�');
 						this.isfill=true;
 						return;
 					}
@@ -86,26 +86,34 @@
 					this.$t.message.toast('璇烽�夋嫨涓嬫枡鍙o紒')
 					return;
 				}
-
-				this.$u.post("/api/ToWms/OutsourceInbound", {
-					MainData: {
-						dataSN: this.barcode,
-						stationNo: this.stationNo,
-						creator: uni.getStorageSync('jo_user').userName,
-					}
-				}).then(res => {
-					if (res.status) {
-						this.barcode = '',
-							this.station = '',
-							this.stationNo = '',
-							this.$t.message.toast('鍛煎彨AGV鎴愬姛锛岃绛夊緟AGV鍙栬揣');
-					} else {
-						this.$t.message.toast(res.message);
-					}
-					console.log(res);
-				}).catch(err => {
-
-				})
+				
+				uni.showModal({
+				    title: '纭',
+				    content: '杞﹁疆淇℃伅锛�'+this.barcode+',鏄惁鍛煎彨AGV锛�',
+				    success: (res) => {
+				      if (res.confirm) {
+				       // this.$u.post("/api/ToWms/OutsourceInbound", {
+				       // 	MainData: {
+				       // 		dataSN: this.barcode,
+				       // 		stationNo: this.stationNo,
+				       // 		creator: uni.getStorageSync('jo_user').userName,
+				       // 	}
+				       // }).then(res => {
+				       // 	if (res.status) {
+				       // 		this.barcode = '',
+				       // 			this.station = '',
+				       // 			this.stationNo = '',
+				       // 			this.$t.message.toast('鍛煎彨AGV鎴愬姛锛岃绛夊緟AGV鍙栬揣');
+				       // 	} else {
+				       // 		this.$t.message.toast(res.message);
+				       // 	}
+				       // 	console.log(res);
+				       // }).catch(err => {
+				       
+				       // })
+				      }
+				    }
+				  });
 			}
 		}
 	}

--
Gitblit v1.9.3