From 172d04fc9d2d7afb28dd3de207f05bbf90a1b58e Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期二, 07 五月 2024 19:40:51 +0800
Subject: [PATCH] #

---
 pages/phyz/stationManage/stationDetl.vue |   59 ++++++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 40 insertions(+), 19 deletions(-)

diff --git a/pages/phyz/stationManage/stationDetl.vue b/pages/phyz/stationManage/stationDetl.vue
index 3321b55..e966559 100644
--- a/pages/phyz/stationManage/stationDetl.vue
+++ b/pages/phyz/stationManage/stationDetl.vue
@@ -23,6 +23,7 @@
 				<view style="flex:3;text-align: right;">{{wrkMast.ioTitle}}</view>
 			</view>
 			<view>宸ヤ綔绫诲瀷: {{wrkMast.ioType$}}</view>
+			<view>宸ヤ綔鐘舵��: {{wrkMast.wrkSts$}}</view>
 			<view>婧愬簱浣�: {{wrkMast.sourceLocNo}}</view>
 			<view>璐ф灦鐮�: {{wrkMast.barcode}}</view>
 		</view>
@@ -35,7 +36,7 @@
 				<view>鍟嗗搧缂栫爜:{{wrkDetl.matnr}}</view>
 				<view>閿�鍞鍗曞彿:{{wrkDetl.threeCode ? wrkDetl.threeCode : ' --'}}</view>
 				<view>鑷敱椤�:{{wrkDetl.deadTime ? wrkDetl.deadTime : ' --'}}</view>
-				<view>鏁伴噺:{{wrkDetl.anfme}}</view>
+				<view>鍑哄簱鏁伴噺:{{wrkDetl.anfme}}</view>
 			</view>
 		</view>
 		
@@ -87,7 +88,7 @@
 					</view>
 					<view class="btn">
 						<view class="btn-left" @click="containerMoveOutClose">鍙栨秷</view>
-						<view class="btn-right" @click="containerMoveOut()">鍏ュ簱</view>
+						<view class="btn-right" @click="containerMoveOut()">纭鍑哄簱</view>
 					</view>
 				</view>
 			</uni-popup>
@@ -105,7 +106,7 @@
 					</view>
 					<view class="btn">
 						<view class="btn-left" @click="containerMoveOutClose">鍙栨秷</view>
-						<view class="btn-right" @click="containerMoveOut()">鍏ュ簱</view>
+						<view class="btn-right" @click="containerMoveOut2()">纭绂诲満</view>
 					</view>
 				</view>
 			</uni-popup>
@@ -159,9 +160,10 @@
 		<view class="buttom">
 			<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>
+			<button size="mini" type="primary" @click="doContainerMoveOut2()" v-if="btnType == 'out'">璐ф灦绂诲満</button>
 			<button size="mini" type="primary" @click="doContainerMoveOut()" v-if="btnType == 'out'">纭鍑哄簱</button>
 			<button size="mini" type="primary" @click="doPickIn()" v-if="btnType == 'pick'">宸叉嫞鏂欏洖搴�</button>
+			<button size="mini" type="primary" @click="doPickIn2()" v-if="btnType == 'pick'">鍐嶆鎷f枡</button>
 			<button size="mini" type="primary" @click="startPakin()" v-if="btnType == 'start'">鍚姩鍏ュ簱</button>
 		</view>
 	</view>
@@ -249,7 +251,7 @@
 							uni.showToast({ title: '鏇存柊鎴愬姛锛�', icon: "none", position: 'top' })
 						} else if (res.code == 403) {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
-							setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -274,7 +276,7 @@
 							_this.reloadStation()
 						} else if (res.code == 403) {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
-							setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -313,7 +315,7 @@
 							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);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -338,7 +340,7 @@
 					method: 'POST',
 					header: { 'token': uni.getStorageSync('token') },
 					success(res) {
-						var res = result.data
+						var res = res.data
 						if (res.code === 200) {
 							setTimeout(()=> {
 								_this.containerType = ''
@@ -347,7 +349,7 @@
 							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);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -367,7 +369,7 @@
 							_this.selects = res.data
 						} else if (res.code == 403) {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
-							setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -429,7 +431,7 @@
 							}
 						} else if (res.code == 403) {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
-							setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -454,7 +456,7 @@
 							_this.wrkDetls = res.data.records
 						} else if (res.code == 403) {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
-							setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -480,7 +482,7 @@
 							_this.btnType = 'start'
 						} else if (res.code == 403) {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
-							setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -512,7 +514,7 @@
 							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);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -527,7 +529,7 @@
 			containerMoveOutClose() {
 				this.$refs.doContainerMoveOut2.close()
 			},
-			containerMoveOut() {
+			containerMoveOut2() {
 				let _this = this
 				let devNo = {devNo:[this.station.devNo],barcode: _this.barcode}
 				uni.request({
@@ -537,7 +539,7 @@
 					success(res) {
 						res = res.data
 						if (res.code === 200) {
-							_this.$refs.doContainerMoveOut.close()
+							_this.$refs.doContainerMoveOut2.close()
 							setTimeout(()=> {
 								_this.barcode = ''
 								_this.reloadStation()
@@ -545,9 +547,28 @@
 							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);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+						}
+					}
+				})
+			},
+			// 鍐嶆鎷f枡
+			doPickIn2() {
+				let _this = this
+				let item = this.wrkMast
+				uni.navigateTo({
+					url: './pickAgain',
+					success(res) {
+						res.eventChannel.emit('item', {
+							item: item,
+							wrkDetls: _this.wrkDetls,
+						})
+					},
+					events: {
+						acceptDataFromOpenedPage: function(data) {
+							_this.reloadStation()
 						}
 					}
 				})
@@ -573,7 +594,7 @@
 							_this.reloadStation()
 						} else if (res.code == 403) {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
-							setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
@@ -601,7 +622,7 @@
 							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);
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}

--
Gitblit v1.9.1