| | |
| | | import type { MesWmWarehouseAreaApi } from '#/api/mes/wm/warehouse/area'; |
| | | |
| | | import { ref } from 'vue'; |
| | | import { useRoute } from 'vue-router'; |
| | | import { useRoute, useRouter } from 'vue-router'; |
| | | |
| | | import { Page, useVbenModal } from '@vben/common-ui'; |
| | | import { BarcodeBizTypeEnum } from '@vben/constants'; |
| | | import { useTabs } from '@vben/hooks'; |
| | | |
| | | import { Alert, Button, message } from 'ant-design-vue'; |
| | | |
| | |
| | | defineOptions({ name: 'WlsArea' }); |
| | | |
| | | const route = useRoute(); |
| | | const router = useRouter(); |
| | | const tabs = useTabs(); |
| | | |
| | | const [FormModal, formModalApi] = useVbenModal({ |
| | | connectedComponent: Form, |
| | |
| | | } |
| | | } |
| | | loadLocationName(); |
| | | |
| | | /** 返回上级 */ |
| | | function handleBack() { |
| | | tabs.closeCurrentTab(); |
| | | if (currentLocation.value.warehouseId) { |
| | | router.push({ |
| | | path: '/wls/location', |
| | | query: { warehouseId: String(currentLocation.value.warehouseId) }, |
| | | }); |
| | | } else { |
| | | router.push({ path: '/wls/location' }); |
| | | } |
| | | } |
| | | |
| | | /** 刷新表格 */ |
| | | function handleRefresh() { |
| | |
| | | :message="`当前仓库/库区:${currentLocation.warehouseName || `#${currentLocation.warehouseId || '-'}`} / ${currentLocation.name || `#${currentLocation.id}`}`" |
| | | show-icon |
| | | type="info" |
| | | /> |
| | | > |
| | | <template #action> |
| | | <Button size="small" type="primary" @click="handleBack"> 返回 </Button> |
| | | </template> |
| | | </Alert> |
| | | |
| | | <Grid table-title="库位列表"> |
| | | <template #toolbar-tools> |