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' }) - } } } }