From 2e973a583b18e8546ae8f75990b7470ad7436b57 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 23 一月 2026 14:20:00 +0800
Subject: [PATCH] #

---
 pages/AGV/StartInTask.vue |   44 ++++++++++++++++++++++++--------------------
 1 files changed, 24 insertions(+), 20 deletions(-)

diff --git a/pages/AGV/StartInTask.vue b/pages/AGV/StartInTask.vue
index e49360d..c0ede78 100644
--- a/pages/AGV/StartInTask.vue
+++ b/pages/AGV/StartInTask.vue
@@ -8,8 +8,8 @@
 			</view>	
 			<view class="cu-form-group">
 				<view class="title">瀹瑰櫒鍙�</view>
-				<input placeholder="璇锋壂鎻忓鍣ㄧ紪鐮�" v-model="barcode" ></input>
-				<text class='cuIcon-search text-blue' @click="search"></text>
+				<input placeholder="璇锋壂鎻忓鍣ㄧ紪鐮�" v-model="barcode" @input="search"></input>
+				<!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
 			</view>	
 <!-- 			<view class="flex solid-bottom padding-sm justify-between">
 				<view class="text-blue margin-left">瀹瑰櫒鐮�:{{container}}</view>				
@@ -112,8 +112,8 @@
 			...mapState('user', ['dynamicFields']),
 		},
 		mounted() {
-			this.getRece()
-			this.whAreaId = uni.getStorageSync('whAreaId')
+			// this.getRece()
+			// this.whAreaId = uni.getStorageSync('whAreaId')
 			
 			// 鑾峰彇鎸夐挳鏉冮檺
 			this.buttonPermissions = uni.getStorageSync('buttonPermissions') || [];
@@ -127,28 +127,32 @@
 				uni.setStorageSync('whAreaId', val)
 			},
 			async search() {
-				let that = this
-				const {
-					code,
-					data,
-					msg
-				} = await request('/staBind/list', {
-					sta: this.barcode
-				})
-				if (code === 200) {	
-					if(data.list.length >0){
-						that.container = data.barcode						
-						that.list = data.list
+				if (this.barcode === '' || this.barcode === null) {
+					uni.showToast({
+						title: '瀹瑰櫒鐮佷负绌�',
+						icon: 'none',
+						position: 'top'
+					})
+					return
+				}
+				const { code, data, msg } = await request(
+					'/asnOrderItem/container',
+					{
+						barcode: this.barcode
 					}
-					that.range = data.warehouseAreasList.map(item => ({
+				)
+				if (code === 200) {
+					this.range = data.map((item) => ({
 						value: item.id,
 						text: item.name
-					}));
-					that.whAreaId = data.area
+					}))
+				
+					this.whAreaId = this.range[0].value
 				} else {
 					uni.showToast({
 						title: msg,
-						icon: "none",
+						icon: 'none',
+						position: 'top'
 					})
 				}
 			},

--
Gitblit v1.9.1