| | |
| | | import { ref } from 'vue'; |
| | | import { useRoute, useRouter } from 'vue-router'; |
| | | |
| | | import { Page, useVbenModal } from '../../../../packages/effects/common-ui/src'; |
| | | import { BarcodeBizTypeEnum } from '../../../../packages/constants/src'; |
| | | 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'; |
| | | |
| | |
| | | import { BarcodeDetail } from '../../barcode/components'; |
| | | import { useGridColumns, useGridFormSchema } from './data'; |
| | | import Form from './modules/form.vue'; |
| | | |
| | | defineOptions({ name: 'WlsLocation' }); |
| | | |
| | | const route = useRoute(); |
| | | const router = useRouter(); |
| | |
| | | } |
| | | } |
| | | loadWarehouseName(); |
| | | |
| | | const tabs = useTabs(); |
| | | |
| | | /** 返回上级 */ |
| | | function handleBack() { |
| | | tabs.closeCurrentTab(); |
| | | router.push({ path: '/wls/warehouse' }); |
| | | } |
| | | |
| | | /** 刷新表格 */ |
| | | function handleRefresh() { |
| | |
| | | /** 跳转库位列表 */ |
| | | function handleOpenArea(row: MesWmWarehouseLocationApi.WarehouseLocation) { |
| | | router.push({ |
| | | name: 'WlsArea', |
| | | path: '/wls/area', |
| | | query: { locationId: String(row.id) }, |
| | | }); |
| | | } |
| | |
| | | :message="`当前仓库:${currentWarehouse.name || `#${currentWarehouse.id}`}`" |
| | | show-icon |
| | | type="info" |
| | | /> |
| | | > |
| | | <template #action> |
| | | <Button size="small" type="primary" @click="handleBack"> 返回 </Button> |
| | | </template> |
| | | </Alert> |
| | | |
| | | <Grid table-title="库区列表"> |
| | | <template #toolbar-tools> |