From be42a59e52e49ba484312517f924286083b9dfd2 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 16 十月 2026 20:26:45 +0800
Subject: [PATCH] feat(mes): 二维码导出功能新增文件大小字段和兼容性支持
---
src/views/basicData/mdm/index.vue | 30 ++++++++++--------------------
1 files changed, 10 insertions(+), 20 deletions(-)
diff --git a/src/views/basicData/mdm/index.vue b/src/views/basicData/mdm/index.vue
index 16b34d4..5b173a8 100644
--- a/src/views/basicData/mdm/index.vue
+++ b/src/views/basicData/mdm/index.vue
@@ -7,7 +7,7 @@
import { confirm, Page, useVbenModal } from '#/packages/effects/common-ui/src';
import { downloadFileFromBlobPart, isEmpty } from '#/packages/utils/src';
-import { message, Tag } from 'ant-design-vue';
+import { message } from 'ant-design-vue';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -19,7 +19,7 @@
} from '#/api/mdm/item';
import { $t } from '#/locales';
-import { useGridColumns, useGridFormSchema, ITEM_TYPE_MAP, ITEM_TYPE_COLOR_MAP } from './data';
+import { useGridColumns, useGridFormSchema } from './data';
import Form from './modules/form.vue';
defineOptions({ name: 'MdmItem' });
@@ -37,20 +37,20 @@
/** 瀵煎嚭琛ㄦ牸 */
// async function handleExport() {
// const data = await exportItem(await gridApi.formApi.getValues());
-// downloadFileFromBlobPart({ fileName: '鐗╂枡.xls', source: data });
+// downloadFileFromBlobPart({ fileName: '鍝佺.xls', source: data });
// }
-/** 鍒涘缓鐗╂枡 */
+/** 鍒涘缓鍝佺 */
function handleCreate() {
formModalApi.setData(null).open();
}
-/** 缂栬緫鐗╂枡 */
+/** 缂栬緫鍝佺 */
function handleEdit(row: MdmItemApi.Item) {
formModalApi.setData(row).open();
}
-/** 鍒犻櫎鐗╂枡 */
+/** 鍒犻櫎鍝佺 */
async function handleDelete(row: MdmItemApi.Item) {
const hideLoading = message.loading({
content: $t('ui.actionMessage.deleting', [row.name]),
@@ -65,7 +65,7 @@
}
}
-/** 鎵归噺鍒犻櫎鐗╂枡 */
+/** 鎵归噺鍒犻櫎鍝佺 */
async function handleDeleteBatch() {
await confirm($t('ui.actionMessage.deleteBatchConfirm'));
const hideLoading = message.loading({
@@ -145,12 +145,12 @@
<template>
<Page auto-content-height>
<FormModal @success="handleRefresh" />
- <Grid table-title="鐗╂枡鍒楄〃">
+ <Grid table-title="鍝佺鍒楄〃">
<template #toolbar-tools>
<TableAction
:actions="[
{
- label: $t('ui.actionTitle.create', ['鐗╂枡']),
+ label: $t('ui.actionTitle.create', ['鍝佺']),
type: 'primary',
icon: ACTION_ICON.ADD,
auth: ['mdm:item:create'],
@@ -174,16 +174,6 @@
},
]"
/>
- </template>
- <template #itemType="{ row }">
- <Tag v-if="row.itemType === 1" color="green">鍘熸枡</Tag>
- <Tag v-else-if="row.itemType === 2" color="orange">鍗婃垚鍝�</Tag>
- <Tag v-else-if="row.itemType === 3" color="blue">鎴愬搧</Tag>
- <Tag v-else-if="row.itemType === 4" color="purple">杈呮枡</Tag>
- </template>
- <template #isBatchManaged="{ row }">
- <Tag v-if="row.isBatchManaged" color="success">鏄�</Tag>
- <Tag v-else>鍚�</Tag>
</template>
<template #actions="{ row }">
<TableAction
@@ -211,4 +201,4 @@
</template>
</Grid>
</Page>
-</template>
\ No newline at end of file
+</template>
--
Gitblit v1.9.3