From c64bb94c7e1758f47e8c946e4656a71bb5fd53e8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 12 八月 2026 17:10:57 +0800
Subject: [PATCH] feat(system): 新增部门管理和岗位管理的 Excel 导入功能

---
 src/views/mes/md/workstation/index.vue |   42 +++++++++++++++++++++---------------------
 1 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/src/views/mes/md/workstation/index.vue b/src/views/mes/md/workstation/index.vue
index 6f505e4..8baf7e2 100644
--- a/src/views/mes/md/workstation/index.vue
+++ b/src/views/mes/md/workstation/index.vue
@@ -5,7 +5,7 @@
 import { ref } from 'vue';
 
 import { Page, useVbenModal } from '@vben/common-ui';
-import { BarcodeBizTypeEnum } from '@vben/constants';
+// import { BarcodeBizTypeEnum } from '@vben/constants';
 import { downloadFileFromBlobPart } from '@vben/utils';
 
 import { Button, message } from 'ant-design-vue';
@@ -17,12 +17,12 @@
   getWorkstationPage,
 } from '#/api/mes/md/workstation';
 import { $t } from '#/locales';
-import { BarcodeDetail } from '#/views/wls/barcode/components';
+// import { BarcodeDetail } from '#/views/wls/barcode/components';
 
 import { useGridColumns, useGridFormSchema } from './data';
 import Form from './modules/form.vue';
 
-const barcodeDetailRef = ref<InstanceType<typeof BarcodeDetail>>(); // 鏉$爜璇︽儏寮圭獥
+// const barcodeDetailRef = ref<InstanceType<typeof BarcodeDetail>>(); // 鏉$爜璇︽儏寮圭獥
 
 const [FormModal, formModalApi] = useVbenModal({
   connectedComponent: Form,
@@ -65,17 +65,17 @@
 }
 
 /** 鏌ョ湅宸ヤ綔绔欐潯鐮� */
-function handleBarcode(row: MesMdWorkstationApi.Workstation) {
-  if (!row.id) {
-    return;
-  }
-  barcodeDetailRef.value?.openByBusiness(
-    row.id,
-    BarcodeBizTypeEnum.WORKSTATION,
-    row.code,
-    row.name,
-  );
-}
+// function handleBarcode(row: MesMdWorkstationApi.Workstation) {
+//   if (!row.id) {
+//     return;
+//   }
+//   barcodeDetailRef.value?.openByBusiness(
+//     row.id,
+//     BarcodeBizTypeEnum.WORKSTATION,
+//     row.code,
+//     row.name,
+//   );
+// }
 
 /** 瀵煎嚭宸ヤ綔绔� */
 async function handleExport() {
@@ -116,7 +116,7 @@
 
 <template>
   <Page auto-content-height><FormModal @success="handleRefresh" />
-    <BarcodeDetail ref="barcodeDetailRef" />
+    <!-- <BarcodeDetail ref="barcodeDetailRef" /> -->
 
     <Grid table-title="宸ヤ綔绔欏垪琛�">
       <template #toolbar-tools>
@@ -165,12 +165,12 @@
                 confirm: handleDelete.bind(null, row),
               },
             },
-            {
-              label: '鏉$爜',
-              type: 'link',
-              auth: ['mes:md-workstation:query'],
-              onClick: handleBarcode.bind(null, row),
-            },
+            // {
+            //   label: '鏉$爜',
+            //   type: 'link',
+            //   auth: ['mes:md-workstation:query'],
+            //   onClick: handleBarcode.bind(null, row),
+            // },
           ]"
         />
       </template>

--
Gitblit v1.9.3