From 71d91b1afb66aa7f316e56191275c2ba836f0fde Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 10 Mar 2026 17:14:17 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E7=94=9F=E4=BA=A7=E8=AE=A1?= =?UTF-8?q?=E5=88=92-=E6=A3=80=E9=AA=8C=E6=98=8E=E7=BB=86-=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E6=8C=89=E9=92=AE=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zjproduct/components/ZjProductPreList.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/views/mes/zjproduct/components/ZjProductPreList.vue b/src/views/mes/zjproduct/components/ZjProductPreList.vue index 9e3ef2c1..99fd13ba 100644 --- a/src/views/mes/zjproduct/components/ZjProductPreList.vue +++ b/src/views/mes/zjproduct/components/ZjProductPreList.vue @@ -39,14 +39,12 @@ @@ -100,9 +98,21 @@ const getList = async () => { } } +const isInspected = (row: ZjTaskListRow) => { + const result = (row as any)?.result + if (result === 1 || result === '1' || result === 2 || result === '2') return true + const status = (row as any)?.status + return String(status ?? '') !== '0' +} + const handleRowClick = (row: ZjTaskListRow) => { if (!row?.id) return - resultDialogRef.value?.open({ id: row.id, status: row.status, cancelReason: (row as any).cancelReason }) + resultDialogRef.value?.open({ + id: row.id, + status: row.status, + cancelReason: (row as any).cancelReason, + readOnly: isInspected(row), + }) } watch(