From e9c313237ea537005aa4a12b42ba3fd0c23b910b Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期四, 22 九月 2022 14:42:46 +0800 Subject: [PATCH] # --- pages/basics/pickOffLines.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pages/basics/pickOffLines.vue b/pages/basics/pickOffLines.vue index 5bf4caa..11786b0 100644 --- a/pages/basics/pickOffLines.vue +++ b/pages/basics/pickOffLines.vue @@ -171,23 +171,30 @@ }, confirm() { let that = this - if(!that.matList[that.index].locNo == this) { + if(!that.matList[that.index].locNo == that.locNo) { uni.showToast({title: '璇风‘璁ゅ簱浣嶅彿鏄惁姝g‘', icon: "none", position: 'top'}); + return } this.matList[this.index].status= 1 - console.log(this.matList[this.index]); uni.request({ url: that.commonUrl + '/manPakOut/finish', data:JSON.stringify(that.matList[that.index]), method:'POST', success(result) { - console.log(result); var res = result.data if(res.code === 200) { that.popShow = false that.matList[that.index].btnText= '宸插嚭搴�' that.matList[that.index].btnType = 'primary' - + } 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