From 05e891c85909a0716a161987941e321879bc5d52 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 16 三月 2026 14:37:47 +0800
Subject: [PATCH] #

---
 pages/emptyTray/outBound.vue |   43 ++++++++++++++++++++++++++++++++++++-------
 1 files changed, 36 insertions(+), 7 deletions(-)

diff --git a/pages/emptyTray/outBound.vue b/pages/emptyTray/outBound.vue
index 8c81b0a..474a79e 100644
--- a/pages/emptyTray/outBound.vue
+++ b/pages/emptyTray/outBound.vue
@@ -5,7 +5,8 @@
 				<view class="title">鎺ラ┏绔欑偣</view>
 				<input
 					placeholder=" 璇锋壂鎻忔帴椹崇珯鐐规潯鐮�"
-					v-model="barcode"
+					v-model="agvStationInput"
+					@input="checkAgvStation"
 				/>
 			</view>
 
@@ -55,7 +56,9 @@
 			range: [],
 			curCode: '',
 			palletTypeId: '',
-			isconfirm : false
+			isconfirm: false,
+			agvStationInput: '', // AGV绔欑偣杈撳叆鍊�
+			agvStationName: ''
 		}
 	},
 	computed: {
@@ -66,6 +69,33 @@
 			(this.palletTypeId = uni.getStorageSync('palletTypeId'))
 	},
 	methods: {
+		async checkAgvStation() {
+			const that = this
+			if (this.agvStationInput === '' || this.agvStationInput === null) {
+				uni.showToast({
+					title: '瀹瑰櫒鐮佷负绌�',
+					icon: 'none',
+					position: 'top'
+				})
+				return
+			}
+			const { code, data, msg } = await request('/check/agvStation', {
+				transferStationNo: this.agvStationInput
+			})
+			if (code === 200) {
+				this.agvStationName = data.stationName
+			} else {
+				uni.showToast({
+					title: msg,
+					icon: 'none',
+					position: 'top'
+				})
+				setTimeout(function () {
+					that.agvStationName = ''
+					that.agvStationInput = ''
+				}, 200)
+			}
+		},
 		selChange(val) {
 			uni.setStorageSync('palletTypeId', val.value)
 		},
@@ -133,7 +163,7 @@
 		},
 
 		async confirm() {
-			if (this.barcode === '' || this.barcode === null) {
+			if (this.agvStationName === '' || this.agvStationName === null) {
 				uni.showToast({
 					title: '鎺ラ┏绔欑偣涓嶈兘涓虹┖',
 					icon: 'none'
@@ -148,11 +178,11 @@
 				return
 			} else {
 				this.isconfirm = true
-				try{
+				try {
 					const { code, data, msg } = await request(
 						'/callForEmptyContainers',
 						{
-							staNo: this.barcode,
+							staNo: this.agvStationName,
 							type: this.palletTypeId
 						}
 					)
@@ -170,10 +200,9 @@
 							position: 'top'
 						})
 					}
-				}finally{
+				} finally {
 					this.isconfirm = false
 				}
-
 			}
 
 			// const {

--
Gitblit v1.9.1