| | |
| | | <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 |
| | |
| | | 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(); |