From 3ea56586c9df10c864946c71fe4b422d091feb0a Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 10 四月 2024 19:16:14 +0800
Subject: [PATCH] #

---
 pages/phyz/order/orderCar.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/pages/phyz/order/orderCar.vue b/pages/phyz/order/orderCar.vue
index 43b5ce3..434d5ae 100644
--- a/pages/phyz/order/orderCar.vue
+++ b/pages/phyz/order/orderCar.vue
@@ -66,8 +66,8 @@
 				orderCarList: [],
 				count: 0,
 				index: 0,
-				barcode: '100997',
-				agvDevp: 'DI_01F2',
+				barcode: '',
+				agvDevp: '',
 			}
 		},
 		onShow() {
@@ -165,8 +165,18 @@
 					success(result) {
 						var res = result.data
 						if (res.code === 200) {
+							_this.orderCarList = []
+							_this.$refs.agvStart.close()
+							uni.showToast({ title: '鍚姩鎴愬姛锛�', icon: "success", position: 'top' })
+							setTimeout(()=> {
+								_this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: 1});
+								uni.navigateBack({})
+							},1000)
 						} 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