| | |
| | | import { MdItemTypeTree } from '#/views/mes/md/item/type/components'; |
| | | import { WmBatchDetail } from '#/views/wls/batch/components'; |
| | | import AreaForm from '#/views/wls/warehouse/area/modules/form.vue'; |
| | | import { WmStockAdjustModal } from './components'; |
| | | |
| | | import { useGridColumns, useGridFormSchema } from './data'; |
| | | |
| | | const [AreaModal, areaModalApi] = useVbenModal({ |
| | | connectedComponent: AreaForm, |
| | | destroyOnClose: true, |
| | | }); |
| | | |
| | | const [StockAdjustModal, stockAdjustModalApi] = useVbenModal({ |
| | | connectedComponent: WmStockAdjustModal, |
| | | destroyOnClose: true, |
| | | }); |
| | | |
| | |
| | | return; |
| | | } |
| | | areaModalApi.setData({ formType: 'detail', id: row.areaId }).open(); |
| | | } |
| | | |
| | | /** 打开库存调整弹窗 */ |
| | | function handleOpenStockAdjust() { |
| | | stockAdjustModalApi.setData({}).open(); |
| | | } |
| | | |
| | | /** 库存调整成功回调 */ |
| | | function handleStockAdjustSuccess() { |
| | | gridApi.query(); |
| | | } |
| | | |
| | | /** 打开批次详情弹窗 */ |
| | |
| | | <template> |
| | | <Page auto-content-height><AreaModal /> |
| | | <WmBatchDetail ref="batchDetailRef" /> |
| | | <StockAdjustModal @success="handleStockAdjustSuccess" /> |
| | | |
| | | <div class="flex h-full w-full"> |
| | | <!-- 左侧物料分类树 --> |
| | |
| | | <TableAction |
| | | :actions="[ |
| | | { |
| | | label: '库存调整', |
| | | type: 'default', |
| | | icon: ACTION_ICON.EDIT, |
| | | auth: ['mes:wm-material-stock:adjust'], |
| | | onClick: handleOpenStockAdjust, |
| | | }, |
| | | { |
| | | label: $t('ui.actionTitle.export'), |
| | | type: 'primary', |
| | | icon: ACTION_ICON.DOWNLOAD, |