#
whycq
2022-10-12 7195780847f34630364b22796dae7ed40cfff90e
pages/basics/startPakin.vue
@@ -153,16 +153,29 @@
               return;
            }
            uni.request({
               url: that.commonUrl + "open/asrs/pakin/start/default/v1",
               url: that.commonUrl + "/open/asrs/pakin/start/default/v1",
               header: {'token':uni.getStorageSync('token'),
                  },
                  'appkey':'ea1f0459efc02a79f046f982767939ae'},
               method:'POST',
               data: {startInItems:[{
                     inSite: that.siteId,
                     barcode: that.barcode
                 }]},
               success(result) {
                  console.log(result);
                  var res = result.data
                  if(res.code == 200) {
                     uni.showToast({title: "启动成功!", icon: "none", position: 'top'})
                     that.resst()
                  } else if (res.code == 403) {
                     uni.showToast({title: res.msg, icon: "none", position: 'top'})
                     setTimeout(() => {
                        uni.reLaunch({
                           url: '../login/login'
                        });
                     }, 1000);
                  } else {
                     uni.showToast({title: res.msg, icon: "none",position: 'top'})
                  }
               }
            })
         }