| | |
| | | import { BasicTable, TableAction } from '/@/components/Table' |
| | | import { useListPage } from '/@/hooks/system/useListPage' |
| | | import { downloadFile } from '/@/utils/common/renderUtils' |
| | | import { router } from '/@/router' |
| | | |
| | | const checkedKeys = ref<Array<string | number>>([]) |
| | | //注册model |
| | | const [registerModal, { openModal }] = useModal() |
| | |
| | | function getTableAction(record) { |
| | | return [ |
| | | { |
| | | label: '编辑', |
| | | onClick: handleEdit.bind(null, record), |
| | | label: '操作记录', |
| | | onClick: openReport.bind(null, record), |
| | | }, |
| | | ] |
| | | } |
| | |
| | | */ |
| | | function getDropDownAction(record) { |
| | | return [ |
| | | { |
| | | label: '编辑', |
| | | onClick: handleEdit.bind(null, record), |
| | | }, |
| | | { |
| | | label: '详情', |
| | | onClick: handleDetail.bind(null, record), |
| | |
| | | }, |
| | | ] |
| | | } |
| | | |
| | | /**打开报表 */ |
| | | function openReport(record: Recordable) { |
| | | console.log(`output->record`, record) |
| | | router.push({ |
| | | path: '/dry/order/report', |
| | | query: { |
| | | batch: record.code, |
| | | }, |
| | | }) |
| | | } |
| | | </script> |
| | | |
| | | <style scoped></style> |