From c6a42c10d5e49596bf67a6d6fdf8fa2678f31296 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 10 七月 2023 17:00:08 +0800
Subject: [PATCH] #

---
 pages/AGV/AGVStart.vue |   31 ++++++++++++++-----------------
 1 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/pages/AGV/AGVStart.vue b/pages/AGV/AGVStart.vue
index 563604f..1c9eae7 100644
--- a/pages/AGV/AGVStart.vue
+++ b/pages/AGV/AGVStart.vue
@@ -31,7 +31,7 @@
 					<checkbox :value="item.matnr" :checked="item.checked" @click="set(i)"/>
 				</view>
 				<view class="list-left" style="display: flex;justify-content: center;">
-					{{item.name}}
+					{{item.devNo}}
 				</view>
 				<view class="list-right">
 					<!-- <uni-icons type="compose" color="#9add8b" size="24" @click="revise(item,i)"></uni-icons> -->
@@ -118,7 +118,7 @@
 				token: '',
 				barcode: '',
 				stationCode: '',
-				dataList: [{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'},{name:'123'},{name:'456'}],
+				dataList: [],
 				count: 0,
 				rowNum: '',
 				matnr: '',
@@ -133,8 +133,8 @@
 				matFocus: false,
 				matData: '',
 				removeNum: 0,
-				floorList: [1,2,3],
-				floor: '',
+				floorList: [1,3],
+				floor: "",
 			}
 		},
 		onLoad() {
@@ -161,15 +161,18 @@
 			getFloor() {
 				let that = this
 				uni.request({
-					url: that.baseUrl + '/mat/auth',
+					url: that.baseUrl + '/agvMobile/getBasDevp/auth',
 					data: {
-						matnr: that.matnr
+						floor: that.floor
 					},
 					header: {
 						'token': uni.getStorageSync('token')
 					},
-					success(result) {
-				
+					method: 'POST',
+					success(res) {
+						console.log(res);
+						res = res.data
+						that.dataList = res.data
 					}
 				});
 			},
@@ -381,16 +384,10 @@
 			comb() {
 				uni.vibrateShort();
 				let that = this;
-				if (that.barcode === '') {
-					this.messageText = "璇锋壂鎻忔墭鐩樻潯鐮�"
-					this.messageToggle('error')
-					return;
-				}
 				uni.request({
-					url: that.baseUrl + '/mobile/combBinging/auth',
+					url: that.baseUrl + '/agvMobile/pakin/auth',
 					data: JSON.stringify({
-						barcode: that.barcode,
-						stationCode: that.stationCode
+						devNo: that.devNo
 					}),
 					method: 'POST',
 					header: {
@@ -404,7 +401,7 @@
 							that.messageToggle('success')
 							// const innerAudioContext = uni.createInnerAudioContext();
 							// innerAudioContext.src = '/static/music/pakinOk.mp3';
-							innerAudioContext.play()
+							// innerAudioContext.play()
 						} else if (res.code == 403) {
 							that.messageText = res.msg
 							that.messageToggle('error')

--
Gitblit v1.9.1