| | |
| | | } from '#/api/mes/wm/barcode'; |
| | | import { $t } from '#/locales'; |
| | | |
| | | import { Barcode, BarcodeDetail } from './components'; |
| | | import { Barcode, BarcodeDetail, ScanModal } from './components'; |
| | | import { useGridColumns, useGridFormSchema } from './data'; |
| | | import Form from './modules/form.vue'; |
| | | |
| | |
| | | }); |
| | | |
| | | const barcodeDetailRef = ref<InstanceType<typeof BarcodeDetail>>(); |
| | | const scanModalRef = ref<InstanceType<typeof ScanModal>>(); |
| | | |
| | | /** 扫码解析 / 成图预览 */ |
| | | function handleScan() { |
| | | scanModalRef.value?.open(); |
| | | } |
| | | |
| | | const checkedIds = ref<number[]>([]); |
| | | function handleRowCheckboxChange({ |
| | |
| | | <template> |
| | | <Page auto-content-height><FormModal @success="handleRefresh" /> |
| | | <BarcodeDetail ref="barcodeDetailRef" /> |
| | | <ScanModal ref="scanModalRef" /> |
| | | |
| | | <Grid table-title="条码列表"> |
| | | <template #toolbar-tools> |
| | | <TableAction |
| | | :actions="[ |
| | | { |
| | | label: '扫码解析', |
| | | type: 'primary', |
| | | icon: ACTION_ICON.SCAN, |
| | | auth: ['mes:wm-barcode:query'], |
| | | onClick: handleScan, |
| | | }, |
| | | { |
| | | label: $t('ui.actionTitle.create', ['条码']), |
| | | type: 'primary', |
| | | icon: ACTION_ICON.ADD, |