From c4717434cb864536b0f40aa97005af04fa50b49b Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期五, 17 十月 2025 09:08:37 +0800
Subject: [PATCH] 12

---
 pages/AGV/AGVkongban.vue |   38 ++++++++++++++++++++++++++++++--------
 1 files changed, 30 insertions(+), 8 deletions(-)

diff --git a/pages/AGV/AGVkongban.vue b/pages/AGV/AGVkongban.vue
index e70a71d..9e114e5 100644
--- a/pages/AGV/AGVkongban.vue
+++ b/pages/AGV/AGVkongban.vue
@@ -5,9 +5,20 @@
 				<view class="code-decs">绔欑偣:</view>
 				<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="stationCode" :focus="stationCodeFocus"
 					>
-			</view>			
+			</view>
+			<view class="item">
+			<view class="code-decs" style="width: 25vw;">澶у皬鎵樼洏:</view>
+			<radio-group @change="isFullPlt">
+				<label>
+					<radio :checked="ck1" style="transform: scale(0.7)"/><text>灏忔墭鐩�</text>
+				</label>
+				<label>
+					<radio :checked="ck2" style="margin-left: 50rpx;transform: scale(0.7);"/><text>澶ф墭鐩�</text>
+				</label>
+			</radio-group>
+			</view>
 		</view>
-		
+
 		<view class="mat-list-title">
 			<view style="-webkit-flex: 1;flex: 1;"></view>
 		</view>
@@ -125,6 +136,9 @@
 				devNo: [],
 				staList:[],
 				sta:'',	
+				fullPlt: '1',
+				ck1: true,
+				ck2: false,
 			}
 		},
 		onLoad() {
@@ -134,15 +148,26 @@
 			this.token = uni.getStorageSync('token');
 		},
 		methods: {
+			// 澶у皬鎵樼洏
+			isFullPlt() {
+				var temp = this.ck1
+				this.ck1 = this.ck2
+				this.ck2 = temp
+				if (this.ck1) {
+					this.fullPlt = '1'
+				} else {
+					this.fullPlt = '2'
+				}
+			},
 			stationCodeInput() {
 				let that = this;
 				that.staList = []
 				uni.request({
-					url: that.baseUrl + '/mobile/AGVSite?locNo='+that.stationCode,
-					
+					url: that.baseUrl + '/mobile/FillEmptyPallets?locNo='+that.stationCode+'&size='+that.fullPlt,
 					header: {
 						'token': uni.getStorageSync('token')
 					},					
+					
 					success(res) {
 						res = res.data
 						if (res.code === 200) {
@@ -436,12 +461,9 @@
 					return;
 				}
 				uni.request({
-					url: that.baseUrl + '/mobile/supplementEmpty',					
+					url: that.baseUrl + '/mobile/FillEmptyPallets?locNo='+that.stationCode+'&size='+that.fullPlt,				
 					header: {
 						'token': uni.getStorageSync('token')
-					},
-					data:{
-						locNo: that.stationCode
 					},
 					method: 'POST',
 					success(result) {

--
Gitblit v1.9.1