From 56654a6046f11a1e3a1a975942f0e46dfc3c4080 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com>
Date: Wed, 11 Oct 2023 18:15:54 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E8=A3=85=E4=BF=A1=E6=81=AF=E8=AF=A6?=
=?UTF-8?q?=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Table/src/Table.vue | 1 +
src/router/modules/remaining.ts | 12 +
src/utils/disposition/defaultButtons.ts | 15 +-
.../wms/itempackaging/ItempackagingDetail.vue | 122 ++++++++++
.../wms/itempackaging/ItempackagingForm.vue | 2 +-
src/views/wms/itempackaging/index.vue | 209 ++++++------------
6 files changed, 219 insertions(+), 142 deletions(-)
create mode 100644 src/views/wms/itempackaging/ItempackagingDetail.vue
diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue
index 1e045d9b1..d7e6e59c1 100644
--- a/src/components/Table/src/Table.vue
+++ b/src/components/Table/src/Table.vue
@@ -292,6 +292,7 @@ export default defineComponent({
onSelection-change={selectionChange}
onSort-change={sortChange}
{...unref(getBindValue)}
+ stripe
>
{{
default: () => rnderTableColumn(),
diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts
index 3d1f8d357..f6065978f 100644
--- a/src/router/modules/remaining.ts
+++ b/src/router/modules/remaining.ts
@@ -349,6 +349,18 @@ const remainingRouter: AppRouteRecordRaw[] = [
title: '物品详情',
activeMenu: '/wms/itembasic-manage/itembasic'
}
+ },
+ {
+ path: '/wms/itempackaging-manage/itempackaging-detail',
+ component: () => import('@/views/wms/itempackaging/ItempackagingDetail.vue'),
+ name: 'ItempackagingDetail',
+ meta: {
+ noCache: true,
+ hidden: true,
+ canTo: true,
+ title: '包装详情',
+ activeMenu: '/wms/itempackaging-manage/itempackaging'
+ }
}
]
}
diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts
index c28f71b9e..0303d6ba5 100644
--- a/src/utils/disposition/defaultButtons.ts
+++ b/src/utils/disposition/defaultButtons.ts
@@ -164,13 +164,26 @@ export function drawerDeleteBtn(option:any) {
})
}
+// 主列表-详情按钮
+export function mainListDetailBtn(option:any) {
+ return __defaultBtnOption(option,{
+ label: '详情',
+ name: 'detail',
+ hide: false,
+ type: 'primary',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
+
// 主列表-编辑按钮
export function mainListEditBtn(option:any) {
return __defaultBtnOption(option,{
label: '编辑',
name: 'edit',
hide: false,
- type: 'primary',
+ type: 'warning',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
diff --git a/src/views/wms/itempackaging/ItempackagingDetail.vue b/src/views/wms/itempackaging/ItempackagingDetail.vue
new file mode 100644
index 000000000..306d7ff58
--- /dev/null
+++ b/src/views/wms/itempackaging/ItempackagingDetail.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/wms/itempackaging/ItempackagingForm.vue b/src/views/wms/itempackaging/ItempackagingForm.vue
index 407cb6519..92d504c46 100644
--- a/src/views/wms/itempackaging/ItempackagingForm.vue
+++ b/src/views/wms/itempackaging/ItempackagingForm.vue
@@ -121,7 +121,7 @@
@@ -24,121 +24,19 @@
v-model:sort="tableObject.sort"
>
-
- 编辑
-
-
- 删除
-
+
-
-
-
+
+
+