From 4ae00c1faf3d4e05d14e8955687eb70a869d8168 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 11 Sep 2023 15:40:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/device/RepairWork.vue | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/pages/device/RepairWork.vue b/pages/device/RepairWork.vue index dde3d72..9a48f45 100644 --- a/pages/device/RepairWork.vue +++ b/pages/device/RepairWork.vue @@ -46,8 +46,8 @@ - - + + @@ -105,6 +105,14 @@ this.disabled = false return } + if (this.pkObj.invstatus !== '02') { + this.disabled = false + uni.showToast({ + title: '请选择提交状态行数据', + icon: 'none' + }) + return + } try { let res = await deviceRepairBegin(this.pkObj) this.disabled = false @@ -124,12 +132,20 @@ this.pkObj = this.pkId === e.device_code ? e : {} }, toJump () { - if (this.pkId) { + if (!this.pkId) { + return + } + if (this.pkObj.invstatus !== '03') { + uni.showToast({ + title: '请选择维修开始状态行数据', + icon: 'none' + }) + return + } this.$store.dispatch('setPublicObj', this.pkObj) uni.navigateTo({ url: '/pages/device/RepairFill' }) - } } } }