Ben Lin
2025-03-08 72675157c774fc4c6490bd1e49ca3c4aa25581f0
src/views/tigerprojects/wms/factory/index.vue
@@ -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();