Files
zkxw/web-admin/src/views/quality-inspection/qc-work-order/view-dialogs/OutboundBasicExperimentViewDialog.vue
T
zlwuandCursor e85645a649 refactor: 将基础实验展示名统一改为临床科研
保留 basic_experiment 等内部编码与业务逻辑,全量替换用户可见及源码中文;新增 sys_menu REPLACE 迁移(不改 perms/path)。Gitea 工单因凭据 401 待补关联。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 13:51:27 +08:00

57 lines
1.6 KiB
Vue

<!-- 临床科研出库质检工单 — 查看详情 -->
<!-- eslint-disable vue/no-v-model-argument -->
<template>
<QcWorkOrderSystemViewDialog
v-model:visible="dialogVisible"
title="临床科研出库质检工单详情"
width="1200px"
:grid-columns="4"
compact
:loading="loading"
:icon="Document"
:meta="detail?.workOrder?.workOrderNo || ''"
:sections="sections"
:detail="detail?.workOrder"
:view-tasks="viewTasks"
:view-batches="viewBatches"
>
<template #product-table>
<OutboundQcProductTable :products="detail?.products" biz-type="basic_experiment" />
</template>
</QcWorkOrderSystemViewDialog>
</template>
<script setup lang="ts">
import { computed, watch } from 'vue'
import QcWorkOrderSystemViewDialog from './QcWorkOrderSystemViewDialog.vue'
import OutboundQcProductTable from './OutboundQcProductTable.vue'
import { useOutboundQcViewDialog } from '../composables/useOutboundQcViewDialog'
defineOptions({ name: 'OutboundBasicExperimentViewDialog' })
const props = defineProps<{
visible: boolean
workOrderId: string
}>()
const emit = defineEmits<{
(e: 'update:visible', v: boolean): void
}>()
const dialogVisible = computed({
get: () => props.visible,
set: (v) => emit('update:visible', v)
})
const { Document, loading, detail, sections, viewTasks, viewBatches, load } =
useOutboundQcViewDialog({ variant: 'basic_experiment', showFeeSection: true })
watch(
() => [props.visible, props.workOrderId] as const,
([v, id]) => {
if (v && id) load(id)
},
{ immediate: true }
)
</script>