fix: MOM
1.生产订单展示优化
2.生产订单页面归档按钮点击没有反应问题
| | |
| | | destroyOnClose: true, |
| | | }); |
| | | |
| | | const archiveDetailRef = ref<InstanceType<typeof ArchiveDetail>>(); |
| | | const archiveVisible = ref(false); |
| | | const archiveProductCode = ref(''); |
| | | // const barcodeDetailRef = ref<InstanceType<typeof BarcodeDetail>>(); // 条码详情弹窗 |
| | | |
| | | /** 刷新表格 */ |
| | |
| | | await cancelWorkOrder(row.id!); |
| | | message.success("订单已取消"); |
| | | handleRefresh(); |
| | | } |
| | | |
| | | /** 打开归档详情 */ |
| | | function handleArchive(row: MesProWorkOrderApi.WorkOrder) { |
| | | archiveProductCode.value = row.productCode || ''; |
| | | archiveVisible.value = true; |
| | | } |
| | | |
| | | /** 查看订单条码 */ |
| | |
| | | }, |
| | | }, |
| | | { |
| | | label: $t('common.create'), |
| | | label: '新增子订单', |
| | | type: 'link', |
| | | auth: ['mes:pro-work-order:create'], |
| | | ifShow: |
| | |
| | | { |
| | | label: '归档', |
| | | type: 'link', |
| | | onClick: () => archiveDetailRef.value?.open(row.productCode), |
| | | onClick: handleArchive.bind(null, row), |
| | | }, |
| | | ]" /> |
| | | </template> |
| | | </Grid> |
| | | <!-- <BarcodeDetail ref="barcodeDetailRef" /> --> |
| | | <ArchiveDetail ref="archiveDetailRef" /> |
| | | <ArchiveDetail :visible="archiveVisible" :product-code="archiveProductCode" @update:visible="archiveVisible = $event" /> |
| | | </Page> |
| | | </template> |
| | | |