From aa32c73e1595140d99202fd1d732fc3f4f680b79 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 05 十月 2023 09:21:00 +0800
Subject: [PATCH] #
---
pages/tzsk/AGV/AGVPick.vue.vue | 38 ++++++++++++++++++++++++++++++++++++--
1 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/pages/tzsk/AGV/AGVPick.vue.vue b/pages/tzsk/AGV/AGVPick.vue.vue
index 5112656..f8019ee 100644
--- a/pages/tzsk/AGV/AGVPick.vue.vue
+++ b/pages/tzsk/AGV/AGVPick.vue.vue
@@ -185,7 +185,6 @@
methods: {
// 瀹瑰櫒绂诲満
containerMove() {
- console.log(123);
let _this = this
var param = {'devNo' : _this.pickCode}
uni.request({
@@ -195,16 +194,33 @@
method: 'POST',
success(res) {
res = res.data
+ console.log(res);
if (res.code === 200) {
_this.pickCode = ''
_this.messageText = "绂诲満鎴愬姛"
_this.messageToggle('success')
+ } else if (res.code == 403) {
+ uni.showToast({
+ title: res.msg,
+ icon: "none",
+ position: 'top'
+ })
+ setTimeout(() => {
+ uni.reLaunch({
+ url: '../login/login'
+ });
+ }, 1000);
+ } else {
+ uni.showToast({
+ title: res.msg,
+ icon: "none",
+ position: 'top'
+ })
}
}
})
},
containerPick() {
- console.log(123);
let _this = this
var param = {'devNo' : _this.pickCode}
uni.request({
@@ -214,10 +230,28 @@
method: 'POST',
success(res) {
res = res.data
+ console.log(res);
if (res.code === 200) {
_this.pickCode = ''
_this.messageText = "鐩樼偣 / 鎷h揣鎴愬姛"
_this.messageToggle('success')
+ } else if (res.code == 403) {
+ uni.showToast({
+ title: res.msg,
+ icon: "none",
+ position: 'top'
+ })
+ setTimeout(() => {
+ uni.reLaunch({
+ url: '../login/login'
+ });
+ }, 1000);
+ } else {
+ uni.showToast({
+ title: res.msg,
+ icon: "none",
+ position: 'top'
+ })
}
}
})
--
Gitblit v1.9.1