From d6a90e12b547d9182a7615882c1494a17538f127 Mon Sep 17 00:00:00 2001
From: wangyufei <2267742828@qq.com>
Date: Mon, 29 Jul 2024 17:10:49 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E5=BC=80=E5=85=B3=20?=
=?UTF-8?q?=E9=9A=90=E8=97=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../documentSetting/switch/index.vue | 22 ++++++++++++++-----
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/src/views/wms/basicDataManage/documentSetting/switch/index.vue b/src/views/wms/basicDataManage/documentSetting/switch/index.vue
index 9cfc75791..138b6cae1 100644
--- a/src/views/wms/basicDataManage/documentSetting/switch/index.vue
+++ b/src/views/wms/basicDataManage/documentSetting/switch/index.vue
@@ -32,8 +32,8 @@
{{ row.code }}
-
-
+
+
@@ -129,10 +129,20 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = [
- defaultButtons.mainListEditBtn(null), // 编辑
- // defaultButtons.mainListDeleteBtn({hasPermi:'wms:switch:delete'}), // 删除
-]
+
+const butttondata = (row, $index)=>{
+ const hiddenArray = ['CreatePutawayRequestAfterInspectRecordCreated',
+'CreateBackflushRecordAfterProductreceiptRecordCreated',
+'CreateProductputawayRequestAfterProductreceiptRecordCreated',
+'ExecuteProductreceiptJobPredictIsCreatePutawayRequest',
+'CreatePurchasePlanAfterDiscretePurchaseOrderPublished',
+'ExemptItemCreatePutawayRequestAfterPurchaseReceiptRecordCreated',
+'CreatePurchaseReceiptRequestAfterSupplierDeliverRecordCreated']
+ return [
+ defaultButtons.mainListEditBtn({hide:hiddenArray.indexOf(row.code)>-1}), // 编辑
+ // defaultButtons.mainListDeleteBtn({hasPermi:'wms:switch:delete'}), // 删除
+ ]
+}
// 列表-操作按钮事件
const buttonTableClick = async (val, row) => {