#
whycq
2024-04-09 442772e4b934444a1168eba55972fbbd1aa3dc4e
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: "error", 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' })
                  }
               }
            });