| | |
| | | |
| | | import { computed } from 'vue'; |
| | | |
| | | import { useRouter } from 'vue-router'; |
| | | |
| | | import { useVbenModal } from '@vben/common-ui'; |
| | | |
| | | import { message } from 'ant-design-vue'; |
| | | import { Button, message } from 'ant-design-vue'; |
| | | |
| | | import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; |
| | | import { |
| | |
| | | formType: FormType; |
| | | noticeId: number; |
| | | }>(); |
| | | |
| | | const router = useRouter(); |
| | | |
| | | const isEditable = computed(() => |
| | | // 是否可编辑明细行 |
| | |
| | | handleRefresh(); |
| | | } finally { |
| | | hideLoading(); |
| | | } |
| | | } |
| | | |
| | | /** 跳转 IQC 检验单详情 */ |
| | | function handleOpenIqc(row: MesWmArrivalNoticeLineApi.ArrivalNoticeLine) { |
| | | if (row.iqcId) { |
| | | router.push({ path: '/mes/qc/iqc', query: { id: row.iqcId } }); |
| | | } |
| | | } |
| | | |
| | |
| | | ]" |
| | | /> |
| | | </template> |
| | | <template #iqcCode="{ row }"> |
| | | <Button |
| | | v-if="row.iqcCode" |
| | | size="small" |
| | | type="link" |
| | | @click="handleOpenIqc(row)" |
| | | > |
| | | {{ row.iqcCode }} |
| | | </Button> |
| | | <span v-else>-</span> |
| | | </template> |
| | | <template #actions="{ row }"> |
| | | <TableAction |
| | | :actions="[ |