skyouc
2 天以前 6e81e03ae020c149481bb840f26466029b76d5c7
pages/AGV/AGVOutCall.vue
@@ -133,46 +133,7 @@
               this.matFocus = true;
            }, 100);
         },
         // 搜索物料
         getSites() {
            let that = this
            let staResults = [];
            uni.request({
               url: that.baseUrl + '/mobile/cache/locs',
               header: {
                  'token':uni.getStorageSync('token')
               },
               method: 'GET',
               success(result) {
                  result = result.data
                  if (result.code === 200 && result.data) {
                     staResults.push(...result.data);
                     staResults.forEach(item => {
                        that.staList.push(item?.locNo)
                     })
                     console.log(that.staList);
                  } else if (result.code == 403) {
                     uni.showToast({
                        title: result.msg,
                        icon: "none",
                        position: 'top'
                     })
                     setTimeout(() => {
                        uni.reLaunch({
                           url: '../login/login'
                        });
                     }, 1000);
                  } else {
                     uni.showToast({
                        title: result.msg,
                        icon: "none",
                        position: 'top'
                     })
                  }
               }
            });
         },
         selectMat() {
            let that = this
            uni.navigateTo({