From 77e4c3d0201a83cf41b73d7bd7a79255759575f4 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期六, 17 十月 2026 11:19:23 +0800
Subject: [PATCH] fix(mdm): 修正计量单位类型选项和API文档

---
 src/views/basicData/mdm/index.vue |   54 ++++++++++++++++++++++--------------------------------
 1 files changed, 22 insertions(+), 32 deletions(-)

diff --git a/src/views/basicData/mdm/index.vue b/src/views/basicData/mdm/index.vue
index b5a84fa..5b173a8 100644
--- a/src/views/basicData/mdm/index.vue
+++ b/src/views/basicData/mdm/index.vue
@@ -4,16 +4,16 @@
 
 import { ref } from 'vue';
 
-import { confirm, Page, useVbenModal } from '@vben/common-ui';
-import { downloadFileFromBlobPart, isEmpty } from '@vben/utils';
+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 {
   deleteItem,
   deleteItemList,
-  exportItem,
+  // exportItem,
   getItemPage,
   updateItemStatus,
 } from '#/api/mdm/item';
@@ -35,22 +35,22 @@
 }
 
 /** 瀵煎嚭琛ㄦ牸 */
-async function handleExport() {
-  const data = await exportItem(await gridApi.formApi.getValues());
-  downloadFileFromBlobPart({ fileName: '鐗╂枡.xls', source: data });
-}
+// async function handleExport() {
+//   const data = await exportItem(await gridApi.formApi.getValues());
+//   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,24 +145,24 @@
 <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'],
               onClick: handleCreate,
             },
-            {
-              label: $t('ui.actionTitle.export'),
-              type: 'primary',
-              icon: ACTION_ICON.DOWNLOAD,
-              auth: ['mdm:item:export'],
-              onClick: handleExport,
-            },
+            // {
+            //   label: $t('ui.actionTitle.export'),
+            //   type: 'primary',
+            //   icon: ACTION_ICON.DOWNLOAD,
+            //   auth: ['mdm:item:export'],
+            //   onClick: handleExport,
+            // },
             {
               label: $t('ui.actionTitle.deleteBatch'),
               type: 'primary',
@@ -175,10 +175,6 @@
           ]"
         />
       </template>
-      <template #isBatchManaged="{ row }">
-        <Tag v-if="row.isBatchManaged" color="success">鏄�</Tag>
-        <Tag v-else>鍚�</Tag>
-      </template>
       <template #actions="{ row }">
         <TableAction
           :actions="[
@@ -188,12 +184,6 @@
               icon: ACTION_ICON.EDIT,
               auth: ['mdm:item:update'],
               onClick: handleEdit.bind(null, row),
-            },
-            {
-              label: row.status === 0 ? '鍋滅敤' : '鍚敤',
-              type: 'link',
-              auth: ['mdm:item:update'],
-              onClick: handleStatusChange.bind(null, row, row.status === 0),
             },
             {
               label: $t('common.delete'),
@@ -211,4 +201,4 @@
       </template>
     </Grid>
   </Page>
-</template>
\ No newline at end of file
+</template>

--
Gitblit v1.9.3