| | |
| | | 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', |
| | |
| | | const [registerDrawer, { openDrawer }] = useDrawer(); |
| | | const [registerTable, { reload }] = useTable({ |
| | | title: '工厂列表', |
| | | api: getFactoryListByPage, |
| | | api: getListByPage, |
| | | searchInfo: { TABLE_NAME: 'MES_FACTORY' }, |
| | | columns, |
| | | formConfig: { |
| | | labelWidth: 120, |
| | |
| | | function handleDelete(record: Recordable) { |
| | | console.log(record); |
| | | //删除工厂 |
| | | const apiAction = DeleteFactory(record); |
| | | const apiAction = DeleteEntity(record, 'MES_FACTORY'); |
| | | apiAction.then((action) => { |
| | | if (action.IsSuccessed) { |
| | | reload(); |