This commit is contained in:
zlwu committed 2026-05-26 19:04:27 +08:00
1 parent 4a00f21bfb
commit edf88dc016
1503 files changed
+329728 -41987

No files matched your search

@@ -1,10 +1,6 @@
<!-- 弹窗正文:加载中显示 v-loading,避免 dialog-form-layout 先小后大 -->
<template>
<div
class="dialog-form-body"
:class="bodyClass"
v-loading="loading"
>
<div class="dialog-form-body" :class="bodyClass" v-loading="loading">
<slot />
</div>
</template>
@@ -1,6 +1,10 @@
<template>
<teleport to="body">
<div v-show="visibleProxy" class="order-operate-bridge-layer" @click.self="visibleProxy = false">
<div
v-show="visibleProxy"
class="order-operate-bridge-layer"
@click.self="visibleProxy = false"
>
<div class="order-operate-bridge-dialog">
<iframe ref="frameRef" class="order-operate-bridge-frame" :src="frameSrc" frameborder="0" />
</div>
@@ -1,7 +1,12 @@
<template>
<teleport to="body">
<div v-show="visibleProxy" class="order-operate-local-layer" @click.self="visibleProxy = false">
<iframe class="order-operate-local-frame" :src="frameSrc" frameborder="0" allowtransparency="true" />
<iframe
class="order-operate-local-frame"
:src="frameSrc"
frameborder="0"
allowtransparency="true"
/>
</div>
</teleport>
</template>
File diff suppressed because it is too large. Load diff
@@ -32,7 +32,9 @@
header-align="center"
show-overflow-tooltip
>
<template #default="{ row }">{{ row.productCode || row.outputBarcode || '—' }}</template>
<template #default="{ row }">{{
row.productCode || row.outputBarcode || '—'
}}</template>
</el-table-column>
<el-table-column
label="产品名称"
@@ -67,11 +69,18 @@
<el-table-column label="储物格位置" min-width="160" align="center" header-align="center">
<template #default="{ row }">{{ row.storageSlotName || '—' }}</template>
</el-table-column>
<el-table-column label="预计细胞数量(亿)" min-width="130" align="center" header-align="center">
<el-table-column
label="预计细胞数量(亿)"
min-width="130"
align="center"
header-align="center"
>
<template #default="{ row }">{{ row.expectedCellCount ?? '—' }}</template>
</el-table-column>
<el-table-column label="活性" min-width="80" align="center" header-align="center">
<template #default="{ row }">{{ row.viability != null ? row.viability : '—' }}</template>
<template #default="{ row }">{{
row.viability != null ? row.viability : '—'
}}</template>
</el-table-column>
<el-table-column label="冻存日期" min-width="110" align="center" header-align="center">
<template #default="{ row }">{{ formatDateOnly(row.freezeDate) }}</template>
@@ -82,7 +91,13 @@
<el-table-column label="数量" min-width="80" align="center" header-align="center">
<template #default="{ row }">{{ row.quantity ?? '—' }}</template>
</el-table-column>
<el-table-column prop="unit" label="单位" min-width="70" align="center" header-align="center" />
<el-table-column
prop="unit"
label="单位"
min-width="70"
align="center"
header-align="center"
/>
<el-table-column label="状态" min-width="90" align="center" header-align="center">
<template #default="{ row }">
<el-tag :type="productStatusTagType(row.productStatus)" size="small">
@@ -103,10 +118,7 @@
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
import type { ViewSection } from '@/components/business/system-view-dialog/index.vue'
import { fetchProductionTaskDetail } from '@/api/production-task'
import {
productionConclusionLabel,
productionConclusionTagType
} from '@/utils/production-labels'
import { productionConclusionLabel, productionConclusionTagType } from '@/utils/production-labels'
const props = defineProps<{
visible: boolean
@@ -78,14 +78,7 @@
<script setup lang="ts">
import { ElMessage } from 'element-plus'
import {
Plus,
Document,
Delete,
Download,
Loading,
VideoPlay
} from '@element-plus/icons-vue'
import { Plus, Document, Delete, Download, Loading, VideoPlay } from '@element-plus/icons-vue'
import { fetchUploadAttachment } from '@/api/business'
import { downloadAttachmentFile } from '@/utils/download-attachment'
import type { FinanceAttachmentItem } from './finance-attachments'
@@ -31,35 +31,35 @@
<template #material-usages>
<div v-if="viewMaterialUsages.length" class="view-subtable-wrap">
<el-table :data="viewMaterialUsages" stripe class="list-table view-subtable">
<el-table-column
type="index"
label="序号"
min-width="56"
align="center"
header-align="center"
:index="(index) => index + 1"
/>
<el-table-column
prop="materialName"
label="物料名称"
min-width="160"
align="center"
header-align="center"
/>
<el-table-column label="规格型号" min-width="120" align="center" header-align="center">
<template #default="{ row }">{{ row.specModel || '—' }}</template>
</el-table-column>
<el-table-column label="用量" min-width="100" align="center" header-align="center">
<template #default="{ row }">
{{ row.qty != null && row.qty !== '' ? row.qty : '—' }}
</template>
</el-table-column>
<el-table-column label="单位" min-width="72" align="center" header-align="center">
<template #default="{ row }">{{ row.unit || '—' }}</template>
</el-table-column>
<el-table-column label="备注" min-width="140" align="center" header-align="center">
<template #default="{ row }">{{ row.remark || '—' }}</template>
</el-table-column>
<el-table-column
type="index"
label="序号"
min-width="56"
align="center"
header-align="center"
:index="(index) => index + 1"
/>
<el-table-column
prop="materialName"
label="物料名称"
min-width="160"
align="center"
header-align="center"
/>
<el-table-column label="规格型号" min-width="120" align="center" header-align="center">
<template #default="{ row }">{{ row.specModel || '—' }}</template>
</el-table-column>
<el-table-column label="用量" min-width="100" align="center" header-align="center">
<template #default="{ row }">
{{ row.qty != null && row.qty !== '' ? row.qty : '—' }}
</template>
</el-table-column>
<el-table-column label="单位" min-width="72" align="center" header-align="center">
<template #default="{ row }">{{ row.unit || '—' }}</template>
</el-table-column>
<el-table-column label="备注" min-width="140" align="center" header-align="center">
<template #default="{ row }">{{ row.remark || '—' }}</template>
</el-table-column>
</el-table>
</div>
<p v-else class="view-empty-hint">暂无物料使用记录</p>
@@ -275,7 +275,10 @@
{ label: '样本编码', value: r.sampleCode || d.sampleCode || '—' },
{
label: '样本来源',
value: r.sourceTypeLabel || d.receptionSourceLabel || receptionSourceLabel(d.receptionSource || ''),
value:
r.sourceTypeLabel ||
d.receptionSourceLabel ||
receptionSourceLabel(d.receptionSource || ''),
tagType: 'primary'
},
{ label: '样本类型', value: r.sampleTypeName || d.sampleTypeName || '—' }
@@ -299,8 +302,7 @@
{
label: '结论',
value:
r.acceptConclusionLabel ||
acceptConclusionLabel(String(r.acceptConclusion || ''))
r.acceptConclusionLabel || acceptConclusionLabel(String(r.acceptConclusion || ''))
},
{ label: '检查项', value: formatCheckResults(r.checkResults), span: true },
{ label: '备注', value: r.remark || '—', span: true }
@@ -353,14 +355,27 @@
title: '任务信息',
fields: [
{ label: '任务号', value: d.taskNo },
{ label: '业务类型', value: d.qcBizTypeLabel || qcBizTypeLabel(d.qcBizType || ''), tagType: qcBizTypeTagType(d.qcBizType || '') },
{
label: '业务类型',
value: d.qcBizTypeLabel || qcBizTypeLabel(d.qcBizType || ''),
tagType: qcBizTypeTagType(d.qcBizType || '')
},
{ label: '工单号', value: d.workOrderNo || '—' },
{
label: '工单状态',
value: d.workOrderStatus ? workOrderStatusLabel(d.workOrderStatus) : '—',
tagType: d.workOrderStatus === 'ywc' ? 'success' : d.workOrderStatus === 'ypz' ? 'warning' : 'info'
tagType:
d.workOrderStatus === 'ywc'
? 'success'
: d.workOrderStatus === 'ypz'
? 'warning'
: 'info'
},
{
label: '检测类型',
value: taskTypeLabel(d.taskType),
tagType: d.taskType === 'sysz' ? 'success' : 'info'
},
{ label: '检测类型', value: taskTypeLabel(d.taskType), tagType: d.taskType === 'sysz' ? 'success' : 'info' },
{ label: '检测项目', value: d.itemName },
{ label: '项目编码', value: d.itemCode || '—' },
{ label: '第三方公司', value: d.companyName || '—' },
@@ -422,5 +437,4 @@
}
}
}
</style>
@@ -74,7 +74,11 @@
</div>
</div>
<div class="production-task-card__foot">
<button type="button" class="production-task-card__link" @click.stop="openTaskView(task)">
<button
type="button"
class="production-task-card__link"
@click.stop="openTaskView(task)"
>
点击查看详情
</button>
</div>
@@ -95,10 +99,7 @@
<script setup lang="ts">
import { ref } from 'vue'
import ProductionTaskViewDialog from '@/components/business/production-task-view-dialog/index.vue'
import {
productionConclusionLabel,
productionConclusionTagType
} from '@/utils/production-labels'
import { productionConclusionLabel, productionConclusionTagType } from '@/utils/production-labels'
export type ProductionTaskInput = {
inputType?: string
@@ -21,7 +21,9 @@
<span class="qc-kv__label">工单状态</span>
<span class="qc-kv__value">
<el-tag :type="workOrderStatusTagType(qcInfo.workOrderStatus || '')" size="small">
{{ qcInfo.workOrderStatusLabel || workOrderStatusLabel(qcInfo.workOrderStatus || '') }}
{{
qcInfo.workOrderStatusLabel || workOrderStatusLabel(qcInfo.workOrderStatus || '')
}}
</el-tag>
</span>
</div>
@@ -78,12 +80,7 @@
</div>
</div>
<div
v-else-if="qcInfo.workOrderStatus !== 'dpz'"
class="sample-qc-hint"
>
暂无检测任务
</div>
<div v-else-if="qcInfo.workOrderStatus !== 'dpz'" class="sample-qc-hint"> 暂无检测任务 </div>
</template>
<Teleport to="body">
@@ -44,7 +44,9 @@
>
<dt>{{ field.label }}</dt>
<dd>
<el-tag v-if="field.tagType" :type="field.tagType" size="small">{{ field.value ?? '—' }}</el-tag>
<el-tag v-if="field.tagType" :type="field.tagType" size="small">{{
field.value ?? '—'
}}</el-tag>
<ul v-else-if="field.items?.length" class="view-plain-list">
<li v-for="(item, idx) in field.items" :key="idx">{{ item }}</li>
</ul>
@@ -153,9 +155,7 @@
})
/** 须为 @element-plus/icons-vue 组件;字符串或未传时使用默认 Document */
const iconComponent = computed(() =>
isIconComponent(props.icon) ? props.icon : Document
)
const iconComponent = computed(() => (isIconComponent(props.icon) ? props.icon : Document))
const heroMeta = computed(() => {
if (props.meta) return props.meta
@@ -23,7 +23,9 @@
</el-form-item>
</el-form>
<template #footer>
<el-button class="btn-ghost" @click="handleClose"><el-icon><Close /></el-icon>取消</el-button>
<el-button class="btn-ghost" @click="handleClose"
><el-icon><Close /></el-icon>取消</el-button
>
<el-button class="btn-main" type="primary" :loading="submitting" @click="handleSubmit">
<el-icon><Check /></el-icon>保存
</el-button>