Ben Lin
2024-06-20 de7e6c408b6209158b08991d729c4bcc72055eec
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();