| | |
| | | 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, WmStockMoveModal } from './components'; |
| | | import { |
| | | WmMaterialStockImportModal, |
| | | WmStockAdjustModal, |
| | | WmStockMoveModal, |
| | | } from './components'; |
| | | |
| | | import { useGridColumns, useGridFormSchema } from './data'; |
| | | |
| | |
| | | |
| | | const [StockMoveModal, stockMoveModalApi] = useVbenModal({ |
| | | connectedComponent: WmStockMoveModal, |
| | | destroyOnClose: true, |
| | | }); |
| | | |
| | | const [ImportModal, importModalApi] = useVbenModal({ |
| | | connectedComponent: WmMaterialStockImportModal, |
| | | destroyOnClose: true, |
| | | }); |
| | | |
| | |
| | | /** 打开库存调整弹窗 */ |
| | | function handleOpenStockAdjust() { |
| | | stockAdjustModalApi.setData({}).open(); |
| | | } |
| | | |
| | | /** 打开库存现有量导入弹窗 */ |
| | | function handleOpenImport() { |
| | | importModalApi.open(); |
| | | } |
| | | |
| | | /** 导入成功回调 */ |
| | | function handleStockImportSuccess() { |
| | | gridApi.query(); |
| | | } |
| | | |
| | | /** 库存调整成功回调 */ |
| | |
| | | <WmBatchDetail ref="batchDetailRef" /> |
| | | <StockAdjustModal @success="handleStockAdjustSuccess" /> |
| | | <StockMoveModal @success="handleStockMoveSuccess" /> |
| | | <ImportModal @success="handleStockImportSuccess" /> |
| | | |
| | | <div class="flex h-full w-full"> |
| | | <!-- 左侧物料分类树 --> |
| | |
| | | onClick: handleOpenStockAdjust, |
| | | }, |
| | | { |
| | | label: '导入', |
| | | type: 'primary', |
| | | icon: ACTION_ICON.UPLOAD, |
| | | auth: ['mes:wm-material-stock:import'], |
| | | onClick: handleOpenImport, |
| | | }, |
| | | { |
| | | label: $t('ui.actionTitle.export'), |
| | | type: 'primary', |
| | | icon: ACTION_ICON.DOWNLOAD, |