From 3248fb0c8bd02ae9fde9724b9c1f5d03216b0108 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 20 五月 2024 16:52:43 +0800
Subject: [PATCH] #

---
 pages/phyz/stationManage/stationDetl.vue |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/pages/phyz/stationManage/stationDetl.vue b/pages/phyz/stationManage/stationDetl.vue
index 53fd999..d6afba1 100644
--- a/pages/phyz/stationManage/stationDetl.vue
+++ b/pages/phyz/stationManage/stationDetl.vue
@@ -175,6 +175,7 @@
 		
 		<!-- 搴曢儴鎿嶄綔鎸夐挳 -->
 		<view class="buttom">
+			<button size="mini" type="warn" @click="doBack()" v-if="btnType == 'out' || btnType == 'pick'">閫�搴�</button>
 			<button size="mini" type="primary" @click="emptyPakin()" v-if="btnType == 'emptyPakin'">绌烘澘鍏ュ簱</button>
 			<button size="mini" type="primary" @click="emptyOut()" v-if="btnType == 'emptyPakin'">鍛煎彨绌烘澘</button>
 			<button size="mini" type="primary" @click="doContainerMoveOut2()" v-if="btnType == 'out'">璐ф灦绂诲満</button>
@@ -710,6 +711,34 @@
 						}
 					}
 				});
+			},
+			doBack() {
+				let that = this
+				let params = []
+				let param = { devNo: this.station.devNo, containerCode: this.station.barcode, }
+				params.push(param)
+				uni.request({
+					url: that.baseUrl + '/agvMobile/hand/control/doBack',
+					header: {'token': uni.getStorageSync('token')},
+					data: {devNo: that.station.devNo, barcode: that.barcode},
+					method: 'POST',
+					success(result) {
+						var res = result.data
+						if (res.code === 200) {
+							// that.$refs.allocationIn.close()
+							setTimeout(()=> {
+								that.barcode = ''
+								that.reloadStation()
+							},1000)
+							uni.showToast({ title: '杩涘満鎴愬姛', icon: "success", position: 'top' })
+						} else if (res.code == 403) {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+						} else {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+						}
+					}
+				});
 			}
 			
 		}

--
Gitblit v1.9.1