From 77b083d347eb8e75eb29a4146238b3f7304489f6 Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期一, 17 八月 2026 09:54:07 +0800
Subject: [PATCH] Merge branch 'refs/heads/dev_pro2.0' into fix/hsy/20260812

---
 src/views/mes/md/item/index.vue |   33 +--------------------------------
 1 files changed, 1 insertions(+), 32 deletions(-)

diff --git a/src/views/mes/md/item/index.vue b/src/views/mes/md/item/index.vue
index f8855f6..55dd8cd 100644
--- a/src/views/mes/md/item/index.vue
+++ b/src/views/mes/md/item/index.vue
@@ -6,12 +6,9 @@
   import { ref } from "vue";
 
   import {
-    confirm,
     Page,
     useVbenModal,
   } from "@vben/common-ui";
-  import { DICT_TYPE } from "@vben/constants";
-  import { getDictLabel } from "@vben/hooks";
   import { downloadFileFromBlobPart } from "@vben/utils";
 
   import { Button, Card, message } from "ant-design-vue";
@@ -21,7 +18,6 @@
     deleteItem,
     exportItem,
     getItemPage,
-    updateItemStatus,
   } from "#/api/mes/md/item";
   import { $t } from "#/locales";
   import { MdItemTypeTree } from "#/views/mes/md/item/type/components";
@@ -95,32 +91,12 @@
     handleRefresh();
   }
 
-  /** 鏇存柊鐗╂枡鐘舵�� */
-  async function handleStatusChange(
-    newStatus: number,
-    row: MesMdItemApi.Item
-  ): Promise<boolean | undefined> {
-    try {
-      await confirm(
-        `纭瑕佸皢"${row.name}"鐗╂枡鍒囨崲涓恒��${getDictLabel(
-          DICT_TYPE.COMMON_STATUS,
-          newStatus
-        )}銆戝悧锛焋
-      );
-    } catch {
-      return false;
-    }
-    await updateItemStatus(row.id!, newStatus);
-    message.success($t("ui.actionMessage.operationSuccess"));
-    return true;
-  }
-
   const [Grid, gridApi] = useVbenVxeGrid({
     formOptions: {
       schema: useGridFormSchema(),
     },
     gridOptions: {
-      columns: useGridColumns(handleStatusChange),
+      columns: useGridColumns(),
       height: "auto",
       keepSource: true,
       proxyConfig: {
@@ -159,13 +135,6 @@
         <Grid table-title="鐗╂枡浜у搧鍒楄〃">
           <template #toolbar-tools>
             <TableAction :actions="[
-                {
-                  label: $t('ui.actionTitle.import'),
-                  type: 'primary',
-                  icon: ACTION_ICON.UPLOAD,
-                  auth: ['mes:md-item:import'],
-                  onClick: handleImport,
-                },
                 {
                   label: $t('ui.actionTitle.export'),
                   type: 'primary',

--
Gitblit v1.9.3