From a7f5a4c8dcf96371566e56a8744f459dc5074f40 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期一, 29 九月 2025 13:05:05 +0800
Subject: [PATCH] 1
---
pages/AGV/AGVStart.vue | 62 ++++++++++--------------------
1 files changed, 21 insertions(+), 41 deletions(-)
diff --git a/pages/AGV/AGVStart.vue b/pages/AGV/AGVStart.vue
index 7010001..a6a57ae 100644
--- a/pages/AGV/AGVStart.vue
+++ b/pages/AGV/AGVStart.vue
@@ -1,19 +1,18 @@
<template>
<view>
- <view class="code">
+ <view class="code">
<view class="item">
- <view class="code-decs">妤煎彿:</view>
- <uni-combox :candidates="floorList" placeholder="璇烽�夋嫨妤煎彿" v-model="floor" @input="getFloor"></uni-combox>
+ <view class="code-decs">婧愮珯鐐�:</view>
+ <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="stationCode" :focus="stationCodeFocus">
</view>
<view class="item">
- <view class="code-decs">鏆傚瓨浣�:</view>
- <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="stationCode" :focus="stationCodeFocus"
- @input="stationCodeInput()">
+ <view class="code-decs">鐩爣绔�:</view>
+ <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="sta" :focus="stationCodeFocus">
</view>
</view>
<view class="mat-list-title">
- <view style="-webkit-flex: 1;flex: 1;">绔欑偣鍒楄〃</view>
+ <view style="-webkit-flex: 1;flex: 1;"></view>
</view>
<scroll-view>
<view class="list" v-for="(item,i) in dataList" :key="i" :class="'bg-'+item.color">
@@ -126,7 +125,9 @@
removeNum: 0,
floorList: [1,3],
floor: "",
- devNo: []
+ devNo: [],
+ staList:[],
+ sta:'',
}
},
onLoad() {
@@ -136,23 +137,6 @@
this.token = uni.getStorageSync('token');
},
methods: {
- stationCodeInput() {
- setTimeout(() => {
- var len = this.stationCode.length
- if (len != 15) {
- this.stationCode = ''
- this.stationCodeFocus = true
- uni.showToast({
- title: '鏆傚瓨鐮佹湁璇閲嶈瘯',
- icon: "none",
- position: 'top'
- });
- return;
- }
- this.pushDevNo()
- this.stationCodeFocuss()
- }, 200)
- },
pushDevNo() {
var devNo = {"devNo":this.stationCode}
if (this.dataList.length == 0) {
@@ -423,21 +407,17 @@
combClose() {
this.$refs.combConfirm.close()
},
- comb() {
- this.devNo = []
- uni.vibrateShort();
+ comb() {
let that = this;
- for (var i = 0; i < this.dataList.length; i++) {
- if (this.dataList[i].checked) {
- this.devNo.push(this.dataList[i].devNo)
- }
+ if (that.stationCode === '') {
+ this.messageText = "璇锋壂鎻忔殏瀛樹綅鏉$爜"
+ this.messageToggle('error')
+ return;
}
+ let newSta = that.sta.split("-")
+
uni.request({
- url: that.baseUrl + '/agvMobile/pakin/auth',
- data: JSON.stringify({
- devNo: that.devNo
- }),
- method: 'POST',
+ url: that.baseUrl + '/mobile/SITESITEAGVMove?sourceStaNo='+that.stationCode+'&staNo='+newSta[0],
header: {
'token': uni.getStorageSync('token')
},
@@ -445,7 +425,7 @@
var res = result.data
if (res.code === 200) {
that.resst();
- that.messageText = "鍚姩鎴愬姛"
+ that.messageText = "绉诲姩鎴愬姛"
that.messageToggle('success')
} else if (res.code == 403) {
that.messageText = res.msg
@@ -482,8 +462,8 @@
},
// 娓呯┖
resst() {
- this.dataList = []
- this.barcode = ''
+ this.staList = []
+ this.sta = ''
this.stationCode = ''
this.floor = ''
this.barcodeFocuss()
@@ -553,7 +533,7 @@
.mat-list-title {
display: flex;
align-items: center;
- height: 80rpx;
+ height: 30rpx;
width: 100%;
background-color: white;
position: fixed;
--
Gitblit v1.9.1