From 3a5a8c6da7903b389588f9eae3ad5ecbbe20b184 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 11 Mar 2025 15:01:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9=E4=BB=BB=E5=8A=A1=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../countManage/count/countJobMain/index.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/views/wms/countManage/count/countJobMain/index.vue b/src/views/wms/countManage/count/countJobMain/index.vue index 3bb9b999e..ac84d400e 100644 --- a/src/views/wms/countManage/count/countJobMain/index.vue +++ b/src/views/wms/countManage/count/countJobMain/index.vue @@ -213,6 +213,21 @@ const isShowMainButton = (row, val) => { } } + +// 导入导出展示与隐藏 +const isShowMainExprotOrImportButton = (row, val) => { + if(row.countMode == 2){ + if (val.indexOf(row.status) > -1) { + return false + } else { + return true + } + }else{ + return true; + } +} + + // 列表-操作按钮 const butttondata = (row, $index) => { return [ @@ -224,7 +239,7 @@ const butttondata = (row, $index) => { { label: '导出', name: 'exportCountJob', - hide: isShowMainButton(row, ['1', '2']), + hide: isShowMainExprotOrImportButton(row, ['1', '2']), type: 'primary', color: '', link: true, //文本展现按钮 @@ -233,7 +248,7 @@ const butttondata = (row, $index) => { { label: '导入', name: 'importCountJob', - hide: isShowMainButton(row, ['2']), + hide: isShowMainExprotOrImportButton(row, ['2']), type: 'success', color: '', link: true, //文本展现按钮