From 71f7476809c4a41074b9e5164751faeb1c0b47e2 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 25 五月 2024 15:05:25 +0800
Subject: [PATCH] #

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

diff --git a/pages/phyz/stationManage/stationDetl.vue b/pages/phyz/stationManage/stationDetl.vue
index 8732f84..b1c321e 100644
--- a/pages/phyz/stationManage/stationDetl.vue
+++ b/pages/phyz/stationManage/stationDetl.vue
@@ -192,6 +192,7 @@
 		
 		<!-- 搴曢儴鎿嶄綔鎸夐挳 -->
 		<view class="buttom">
+			<button size="mini" type="primary" @click="handBack()" v-if="btnType == 'handBack'">杞墜鍔�</button>
 			<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>
@@ -445,6 +446,9 @@
 								} else if (wrkMast.ioType == 103) {
 									wrkMast['ioTitle'] = '鎷f枡鍑哄簱'
 									_this.btnType = 'pick'
+								} else if (wrkMast.ioType == 109) {
+									wrkMast['ioTitle'] = '鑷姩鍥炴祦'
+									_this.btnType = 'handBack'
 								} else if (wrkMast.ioType == 110) {
 									wrkMast['ioTitle'] = '绌烘澘鍑哄簱'
 								} else if (wrkMast.ioType == 111) {
@@ -765,6 +769,32 @@
 						}
 					}
 				});
+			},
+			handBack() {
+				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/handBack',
+					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) {
+							setTimeout(()=> {
+								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