From bfdfeb40c7ba97511584a30477acf5ad801398ba Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期二, 11 三月 2025 11:26:34 +0800
Subject: [PATCH] 一些更改

---
 src/views/tigerprojects/wms/factory/index.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/tigerprojects/wms/factory/index.vue b/src/views/tigerprojects/wms/factory/index.vue
index c2fa64b..26801c9 100644
--- a/src/views/tigerprojects/wms/factory/index.vue
+++ b/src/views/tigerprojects/wms/factory/index.vue
@@ -2,7 +2,7 @@
   <div>
     <BasicTable @register="registerTable">
       <template #toolbar>
-        <a-button type="primary" @click="handleCreate"> 鏂板宸ュ巶 </a-button>
+        <a-button type="primary" @click="handleCreate" preIcon="add_02|svg"> 鏂板 </a-button>
       </template>
       <template #action="{ record }">
         <TableAction
@@ -36,7 +36,7 @@
   import FactoryDrawer from './factoryDrawer.vue';
 
   import { columns, searchFormSchema } from './factory.data';
-  import { DeleteFactory, getFactoryListByPage } from '/@/api/tigerapi/wms/factory';
+  import { DeleteEntity, getListByPage } from '/@/api/tigerapi/system';
 
   export default defineComponent({
     name: 'WHManagement',
@@ -45,7 +45,8 @@
       const [registerDrawer, { openDrawer }] = useDrawer();
       const [registerTable, { reload }] = useTable({
         title: '宸ュ巶鍒楄〃',
-        api: getFactoryListByPage,
+        api: getListByPage,
+        searchInfo: { TABLE_NAME: 'MES_FACTORY' },
         columns,
         formConfig: {
           labelWidth: 120,
@@ -81,7 +82,7 @@
       function handleDelete(record: Recordable) {
         console.log(record);
         //鍒犻櫎宸ュ巶
-        const apiAction = DeleteFactory(record);
+        const apiAction = DeleteEntity(record, 'MES_FACTORY');
         apiAction.then((action) => {
           if (action.IsSuccessed) {
             reload();

--
Gitblit v1.9.3