From fbbbc66329808249c7a0689f2efca6c79a6bf892 Mon Sep 17 00:00:00 2001 From: lty <876263681@qq.com> Date: 星期四, 28 八月 2025 08:37:11 +0800 Subject: [PATCH] # --- pages/basics/startPakin.vue | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/pages/basics/startPakin.vue b/pages/basics/startPakin.vue index 0850ba6..d449a32 100644 --- a/pages/basics/startPakin.vue +++ b/pages/basics/startPakin.vue @@ -74,8 +74,9 @@ barcode: null, barcodeFocus: true, matList:[], - sites: [1,3,5,7,9,11,13,15], + sites: [2,4,5,7,9,11,13,15], siteId: '', + commonUrl: null } }, mounted(){ @@ -153,16 +154,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'}) + } } }) } -- Gitblit v1.9.1