| | |
| | | import { ref } from 'vue'; |
| | | |
| | | import { Page, useVbenModal } from '@vben/common-ui'; |
| | | import { BarcodeBizTypeEnum } from '@vben/constants'; |
| | | // import { BarcodeBizTypeEnum } from '@vben/constants'; |
| | | import { downloadFileFromBlobPart } from '@vben/utils'; |
| | | |
| | | import { Button, message } from 'ant-design-vue'; |
| | |
| | | getWorkstationPage, |
| | | } from '#/api/mes/md/workstation'; |
| | | import { $t } from '#/locales'; |
| | | import { BarcodeDetail } from '#/views/wls/barcode/components'; |
| | | // import { BarcodeDetail } from '#/views/wls/barcode/components'; |
| | | |
| | | import { useGridColumns, useGridFormSchema } from './data'; |
| | | import Form from './modules/form.vue'; |
| | | |
| | | const barcodeDetailRef = ref<InstanceType<typeof BarcodeDetail>>(); // 条码详情弹窗 |
| | | // const barcodeDetailRef = ref<InstanceType<typeof BarcodeDetail>>(); // 条码详情弹窗 |
| | | |
| | | const [FormModal, formModalApi] = useVbenModal({ |
| | | connectedComponent: Form, |
| | |
| | | } |
| | | |
| | | /** 查看工作站条码 */ |
| | | function handleBarcode(row: MesMdWorkstationApi.Workstation) { |
| | | if (!row.id) { |
| | | return; |
| | | } |
| | | barcodeDetailRef.value?.openByBusiness( |
| | | row.id, |
| | | BarcodeBizTypeEnum.WORKSTATION, |
| | | row.code, |
| | | row.name, |
| | | ); |
| | | } |
| | | // function handleBarcode(row: MesMdWorkstationApi.Workstation) { |
| | | // if (!row.id) { |
| | | // return; |
| | | // } |
| | | // barcodeDetailRef.value?.openByBusiness( |
| | | // row.id, |
| | | // BarcodeBizTypeEnum.WORKSTATION, |
| | | // row.code, |
| | | // row.name, |
| | | // ); |
| | | // } |
| | | |
| | | /** 导出工作站 */ |
| | | async function handleExport() { |
| | |
| | | |
| | | <template> |
| | | <Page auto-content-height><FormModal @success="handleRefresh" /> |
| | | <BarcodeDetail ref="barcodeDetailRef" /> |
| | | <!-- <BarcodeDetail ref="barcodeDetailRef" /> --> |
| | | |
| | | <Grid table-title="工作站列表"> |
| | | <template #toolbar-tools> |
| | |
| | | confirm: handleDelete.bind(null, row), |
| | | }, |
| | | }, |
| | | { |
| | | label: '条码', |
| | | type: 'link', |
| | | auth: ['mes:md-workstation:query'], |
| | | onClick: handleBarcode.bind(null, row), |
| | | }, |
| | | // { |
| | | // label: '条码', |
| | | // type: 'link', |
| | | // auth: ['mes:md-workstation:query'], |
| | | // onClick: handleBarcode.bind(null, row), |
| | | // }, |
| | | ]" |
| | | /> |
| | | </template> |