From 71a28ca5cc773c966f3cb502914ca85eaf4c89df Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 25 Apr 2025 08:52:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BB=B4=E4=BF=AE=E9=A2=86?= =?UTF-8?q?=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/maintenanceReceive/index.vue | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/yxt-as-ui/src/views/maintenanceReceive/index.vue b/yxt-as-ui/src/views/maintenanceReceive/index.vue index fa524f8d6c..89964e531b 100644 --- a/yxt-as-ui/src/views/maintenanceReceive/index.vue +++ b/yxt-as-ui/src/views/maintenanceReceive/index.vue @@ -281,11 +281,15 @@ export default { }, toOut() { if (this.sids.length === 1) { - if (this.selectionList[0].repairState === '维修中') { - this.viewState = 2 - this.$refs['divOutInfo'].showAdd(this.sids[0]) + if (this.selectionList[0].isLL) { + if (this.selectionList[0].repairState === '维修中') { + this.viewState = 2 + this.$refs['divOutInfo'].showAdd(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择维修状态为维修中的记录进行操作' }) + } } else { - this.$message({ showClose: true, type: 'error', message: '请选择维修状态为维修中的记录进行操作' }) + this.$message({ showClose: true, type: 'error', message: '请先盘点完成后再进行操作' }) } } else { this.$message({ showClose: true, type: 'warning', message: '请选择一条记录进行操作' }) @@ -293,11 +297,15 @@ export default { }, toReturn() { if (this.sids.length === 1) { - if (this.selectionList[0].nodeName === '维修') { - this.viewState = 3 - this.$refs['divReturnInfo'].showAdd(this.sids[0]) + if (this.selectionList[0].isLL) { + if (this.selectionList[0].nodeName === '维修') { + this.viewState = 3 + this.$refs['divReturnInfo'].showAdd(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择维修单处于维修阶段的进行操作' }) + } } else { - this.$message({ showClose: true, type: 'error', message: '请选择维修单处于维修阶段的进行操作' }) + this.$message({ showClose: true, type: 'error', message: '请先盘点完成后再进行操作' }) } } else { this.$message({