From 50d116e28a8827f7bb3a8aee32880038a7ab32c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BA=86=E6=BA=90?= Date: Mon, 12 May 2025 15:27:21 +0800 Subject: [PATCH] =?UTF-8?q?[SBBJ-932]=20=E5=85=B3=E9=97=AD=E3=80=81?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=8C=89=E9=92=AE=20=E6=98=BE=E9=9A=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/item/applicationRecord/index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/eam/item/applicationRecord/index.vue b/src/views/eam/item/applicationRecord/index.vue index 5efaac0..d107098 100644 --- a/src/views/eam/item/applicationRecord/index.vue +++ b/src/views/eam/item/applicationRecord/index.vue @@ -172,18 +172,18 @@ // 根据状态返回该按钮是否显示 const isShowCloseButton = (row) => { - if (row.status == 1) { - return false - } else { + if (row.status == 4) { return true + } else { + return false } } const isShowApproveButton = (row) => { - if (row.isApprove == 'FALSE') { - return false - } else { + if (row.status == 4 || row.isApprove == 'TRUE') { return true + } else { + return false } } @@ -191,7 +191,7 @@ const butttondata = (row) => { return [ defaultButtons.approveBtn({ hide: isShowApproveButton(row) ,hasPermi:'item:itemApplyMain:approve'}), // 审批 - defaultButtons.mainListOrderCloBtn({ hasPermi:'item:itemApplyMain:close'}), // 关闭 + defaultButtons.mainListOrderCloBtn({ hide: isShowCloseButton(row), hasPermi:'item:itemApplyMain:close'}), // 关闭 // defaultButtons.mainListEditBtn(null), // 编辑 // defaultButtons.mainListDeleteBtn(null), // 删除 ]