feat(web-admin): align outbound release cards with protocol-card layout
Reuse protocol-card class names and structure; map outbound fields into aside and three sections. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
745802ce61
commit
6445e51523
1 file changed
+502
-273
+502
-273
@@ -1,149 +1,217 @@
|
||||
<!-- 出库放行审核 · 卡片列表 -->
|
||||
<template>
|
||||
<div class="list-body list-wrap outbound-release-review-cards-body">
|
||||
<div v-loading="loading" class="outbound-release-review-cards-wrap">
|
||||
<article
|
||||
v-for="(row, idx) in rows"
|
||||
:key="String(row.scheduleId || row.id || idx)"
|
||||
class="outbound-release-review-card"
|
||||
@dblclick="emit('card-dblclick', row)"
|
||||
>
|
||||
<header class="outbound-release-review-card__head">
|
||||
<div class="outbound-release-review-card__head-main">
|
||||
<div class="outbound-release-review-card__title-row">
|
||||
<el-checkbox
|
||||
:model-value="isSelected(row)"
|
||||
class="outbound-release-review-card__checkbox"
|
||||
@change="(val) => emit('toggle-select', row, Boolean(val))"
|
||||
@click.stop
|
||||
/>
|
||||
<span class="outbound-release-review-card__index">{{ cardIndex(idx) }}</span>
|
||||
<span class="outbound-release-review-card__code">{{ row.applicationNo || '—' }}</span>
|
||||
<el-tag v-if="row.bizType" :type="bizTypeTagType(row.bizType) as any" size="small">
|
||||
{{ row.bizTypeLabel || bizTypeLabel(row.bizType) }}
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-if="row.scheduleStatus"
|
||||
:type="scheduleStatusTagType(row.scheduleStatus)"
|
||||
size="small"
|
||||
>
|
||||
{{ scheduleStatusLabel(row.scheduleStatus) }}
|
||||
</el-tag>
|
||||
<el-tag v-if="row.qcStatus" :type="qcStatusTagType(row.qcStatus)" size="small">
|
||||
{{ qcStatusLabel(row.qcStatus) }}
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-if="row.reviewConclusion"
|
||||
:type="storageReleaseConclusionTagType(row.reviewConclusion)"
|
||||
size="small"
|
||||
>
|
||||
{{ storageReleaseConclusionLabel(row.reviewConclusion) }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="info" size="small">待审核</el-tag>
|
||||
</div>
|
||||
<dl class="outbound-release-review-card__meta">
|
||||
<template v-if="showPatient">
|
||||
<div class="outbound-release-review-card__meta-item">
|
||||
<dt>患者姓名</dt>
|
||||
<dd>{{ row.patientName || '—' }}</dd>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="outbound-release-review-card__meta-item">
|
||||
<dt>课题名称</dt>
|
||||
<dd>{{ row.projectTitle || '—' }}</dd>
|
||||
</div>
|
||||
<div class="outbound-release-review-card__meta-item">
|
||||
<dt>客户名称</dt>
|
||||
<dd>{{ row.customerName || '—' }}</dd>
|
||||
</div>
|
||||
</template>
|
||||
<div class="outbound-release-review-card__meta-item">
|
||||
<dt>{{ pickupTimeLabel }}</dt>
|
||||
<dd>{{ formatDisplayOrDash(row.infusionTime) }}</dd>
|
||||
</div>
|
||||
<div class="outbound-release-review-card__meta-item">
|
||||
<dt>审核人</dt>
|
||||
<dd>{{ row.reviewByName || '—' }}</dd>
|
||||
</div>
|
||||
<div class="outbound-release-review-card__meta-item">
|
||||
<dt>审核时间</dt>
|
||||
<dd>{{ formatDisplayOrDash(row.reviewTime) }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
<div v-loading="loading" class="protocol-card-section">
|
||||
<div v-if="rows.length" class="protocol-card-list">
|
||||
<article
|
||||
v-for="(row, idx) in rows"
|
||||
:key="String(row.scheduleId || row.id || idx)"
|
||||
class="protocol-card"
|
||||
:class="{ 'is-selected': isSelected(row) }"
|
||||
@dblclick="emit('card-dblclick', row)"
|
||||
>
|
||||
<div class="protocol-card__select" @click.stop>
|
||||
<el-checkbox
|
||||
:model-value="isSelected(row)"
|
||||
@change="(val) => emit('toggle-select', row, Boolean(val))"
|
||||
/>
|
||||
</div>
|
||||
<section class="outbound-release-review-card__cells">
|
||||
<div class="outbound-release-review-card__cells-title">需求细胞</div>
|
||||
<div v-if="cellProducts(row).length" class="outbound-release-review-card__cell-list">
|
||||
<div
|
||||
v-for="(product, pi) in cellProducts(row)"
|
||||
:key="`${product.projectCode || product.projectName || pi}`"
|
||||
class="outbound-release-review-card__cell-item"
|
||||
>
|
||||
<dl class="outbound-release-review-card__cell-fields">
|
||||
<div class="outbound-release-review-card__cell-field">
|
||||
<dt>项目编码</dt>
|
||||
<dd>{{ product.projectCode || '—' }}</dd>
|
||||
|
||||
<div class="protocol-card__aside">
|
||||
<div class="protocol-card__name-row">
|
||||
<span class="protocol-card__index">{{ cardIndex(idx) }}</span>
|
||||
<span class="protocol-card__name">{{ asideTitle(row) }}</span>
|
||||
</div>
|
||||
<div class="protocol-card__contact">
|
||||
<div class="protocol-card__sub">{{ row.applicationNo || '—' }}</div>
|
||||
<div v-if="!showPatient" class="protocol-card__sub">
|
||||
{{ row.projectTitle || '—' }}
|
||||
</div>
|
||||
</div>
|
||||
<el-tag
|
||||
v-if="row.reviewConclusion"
|
||||
:type="storageReleaseConclusionTagType(row.reviewConclusion)"
|
||||
size="small"
|
||||
class="protocol-card__status"
|
||||
>
|
||||
{{ storageReleaseConclusionLabel(row.reviewConclusion) }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="info" size="small" class="protocol-card__status">待审核</el-tag>
|
||||
<el-tag
|
||||
v-if="row.bizType"
|
||||
:type="bizTypeTagType(row.bizType) as any"
|
||||
size="small"
|
||||
class="protocol-card__status"
|
||||
>
|
||||
{{ row.bizTypeLabel || bizTypeLabel(row.bizType) }}
|
||||
</el-tag>
|
||||
<div class="protocol-card__create-time">
|
||||
{{ scheduleStatusLabel(row.scheduleStatus || '') || '—' }}
|
||||
·
|
||||
{{ qcStatusLabel(row.qcStatus || '') || '—' }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="protocol-card__sections">
|
||||
<section class="protocol-card__block protocol-card__block--basic">
|
||||
<div class="protocol-card__block-title">基础信息</div>
|
||||
<div class="protocol-card__kv-grid">
|
||||
<div class="protocol-card__kv">
|
||||
<label>申请单号</label><span>{{ row.applicationNo || '—' }}</span>
|
||||
</div>
|
||||
<template v-if="showPatient">
|
||||
<div class="protocol-card__kv">
|
||||
<label>患者姓名</label><span>{{ row.patientName || '—' }}</span>
|
||||
</div>
|
||||
<div class="outbound-release-review-card__cell-field">
|
||||
<dt>项目名称</dt>
|
||||
<dd>{{ product.projectName || '—' }}</dd>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="protocol-card__kv">
|
||||
<label>课题名称</label
|
||||
><span :title="row.projectTitle || ''">{{ row.projectTitle || '—' }}</span>
|
||||
</div>
|
||||
<div class="outbound-release-review-card__cell-field">
|
||||
<dt>细胞类型</dt>
|
||||
<dd>{{ product.cellTypeName || row.cellType || '—' }}</dd>
|
||||
<div class="protocol-card__kv">
|
||||
<label>客户名称</label><span>{{ row.customerName || '—' }}</span>
|
||||
</div>
|
||||
<div class="outbound-release-review-card__cell-field">
|
||||
<dt>规格</dt>
|
||||
<dd>{{ product.specText || row.specText || '—' }}</dd>
|
||||
</div>
|
||||
<div class="outbound-release-review-card__cell-field">
|
||||
<dt>数量</dt>
|
||||
<dd>{{ product.quantity != null ? product.quantity : '—' }}</dd>
|
||||
</div>
|
||||
<div class="outbound-release-review-card__cell-field">
|
||||
<dt>产品状态</dt>
|
||||
<dd>
|
||||
</template>
|
||||
<div class="protocol-card__kv">
|
||||
<label>{{ pickupTimeLabel }}</label>
|
||||
<span>{{ formatDisplayOrDash(row.infusionTime) }}</span>
|
||||
</div>
|
||||
<div class="protocol-card__kv">
|
||||
<label>审核人</label><span>{{ row.reviewByName || '—' }}</span>
|
||||
</div>
|
||||
<div class="protocol-card__kv">
|
||||
<label>审核时间</label><span>{{ formatDisplayOrDash(row.reviewTime) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="protocol-card__block protocol-card__block--cells">
|
||||
<div class="protocol-card__block-title">
|
||||
需求细胞
|
||||
<span v-if="cellProducts(row).length" class="protocol-card__block-count">
|
||||
{{ cellProducts(row).length }} 项
|
||||
</span>
|
||||
</div>
|
||||
<div v-if="cellProducts(row).length" class="protocol-card__sample-list">
|
||||
<div
|
||||
v-for="(product, pi) in cellProducts(row)"
|
||||
:key="`${product.projectCode || product.projectName || pi}`"
|
||||
class="protocol-card__sample-item"
|
||||
>
|
||||
<span class="protocol-card__sample-seq">{{ pi + 1 }}</span>
|
||||
<div class="protocol-card__sample-main">
|
||||
<div class="protocol-card__sample-line">
|
||||
<span class="protocol-card__sample-label">项目</span>
|
||||
<span class="protocol-card__sample-value">{{
|
||||
product.projectName || '—'
|
||||
}}</span>
|
||||
<el-tag
|
||||
v-if="product.productStatus"
|
||||
:type="productStatusTagType(product.productStatus) as any"
|
||||
size="small"
|
||||
class="protocol-card__sample-status"
|
||||
>
|
||||
{{ productStatusLabel(product.productStatus, bizType) }}
|
||||
</el-tag>
|
||||
<span v-else>—</span>
|
||||
</dd>
|
||||
</div>
|
||||
<div class="protocol-card__sample-line">
|
||||
<span class="protocol-card__sample-label">编码</span>
|
||||
<span
|
||||
class="protocol-card__sample-value protocol-card__sample-value--code"
|
||||
>{{ product.projectCode || '—' }}</span>
|
||||
</div>
|
||||
<div class="protocol-card__sample-line">
|
||||
<span class="protocol-card__sample-label">类型</span>
|
||||
<span class="protocol-card__sample-value">
|
||||
{{ product.cellTypeName || row.cellType || '—' }}
|
||||
<template v-if="product.specText || row.specText">
|
||||
· {{ product.specText || row.specText }}
|
||||
</template>
|
||||
<template v-if="product.quantity != null">
|
||||
· ×{{ product.quantity }}
|
||||
</template>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p v-else class="outbound-release-review-card__cells-fallback">
|
||||
<template v-if="row.cellType || row.specText">
|
||||
<span v-if="row.cellType">细胞类型:{{ row.cellType }}</span>
|
||||
<span v-if="row.cellType && row.specText"> · </span>
|
||||
<span v-if="row.specText">规格:{{ row.specText }}</span>
|
||||
</template>
|
||||
<template v-else>暂无细胞需求明细</template>
|
||||
</p>
|
||||
</section>
|
||||
<div class="outbound-release-review-card__ops">
|
||||
<el-button class="btn-op-item" @click.stop="emit('view', row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click.stop="emit('material', row)">
|
||||
<el-icon><Box /></el-icon>出库物料
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click.stop="emit('review', row)">
|
||||
<el-icon><CircleCheck /></el-icon>审核
|
||||
</el-button>
|
||||
<div v-else class="protocol-card__empty">
|
||||
<template v-if="row.cellType || row.specText">
|
||||
<span v-if="row.cellType">细胞类型:{{ row.cellType }}</span>
|
||||
<span v-if="row.cellType && row.specText"> · </span>
|
||||
<span v-if="row.specText">规格:{{ row.specText }}</span>
|
||||
</template>
|
||||
<template v-else>暂无细胞需求明细</template>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="protocol-card__block protocol-card__block--status">
|
||||
<div class="protocol-card__block-title">状态摘要</div>
|
||||
<div class="protocol-card__kv-grid">
|
||||
<div class="protocol-card__kv">
|
||||
<label>计划状态</label>
|
||||
<span>
|
||||
<el-tag
|
||||
v-if="row.scheduleStatus"
|
||||
:type="scheduleStatusTagType(row.scheduleStatus)"
|
||||
size="small"
|
||||
>
|
||||
{{ scheduleStatusLabel(row.scheduleStatus) }}
|
||||
</el-tag>
|
||||
<template v-else>—</template>
|
||||
</span>
|
||||
</div>
|
||||
<div class="protocol-card__kv">
|
||||
<label>质检状态</label>
|
||||
<span>
|
||||
<el-tag
|
||||
v-if="row.qcStatus"
|
||||
:type="qcStatusTagType(row.qcStatus)"
|
||||
size="small"
|
||||
>
|
||||
{{ qcStatusLabel(row.qcStatus) }}
|
||||
</el-tag>
|
||||
<template v-else>—</template>
|
||||
</span>
|
||||
</div>
|
||||
<div class="protocol-card__kv">
|
||||
<label>审核结论</label>
|
||||
<span>
|
||||
<el-tag
|
||||
v-if="row.reviewConclusion"
|
||||
:type="storageReleaseConclusionTagType(row.reviewConclusion)"
|
||||
size="small"
|
||||
>
|
||||
{{ storageReleaseConclusionLabel(row.reviewConclusion) }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="info" size="small">待审核</el-tag>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</header>
|
||||
</article>
|
||||
|
||||
<div class="protocol-card__foot">
|
||||
<div class="protocol-card__actions">
|
||||
<el-button class="btn-op-item" @click.stop="emit('review', row)">
|
||||
<el-icon><CircleCheck /></el-icon>审核
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click.stop="emit('view', row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click.stop="emit('material', row)">
|
||||
<el-icon><Box /></el-icon>出库物料
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
<el-empty
|
||||
v-if="!loading && !rows.length"
|
||||
class="outbound-release-review-cards-empty"
|
||||
v-else-if="!loading"
|
||||
class="protocol-card-empty"
|
||||
description="暂无出库放行审核记录"
|
||||
:image-size="72"
|
||||
:image-size="80"
|
||||
/>
|
||||
</div>
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -221,6 +289,11 @@
|
||||
function cellProducts(row: OutboundReleaseReview): OutboundQcDetailProduct[] {
|
||||
return row.products?.length ? row.products : []
|
||||
}
|
||||
|
||||
function asideTitle(row: OutboundReleaseReview) {
|
||||
if (showPatient.value) return row.patientName || '—'
|
||||
return row.customerName || '—'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@@ -228,209 +301,365 @@
|
||||
border-top: 1px solid var(--mint-border, #e2e8f0);
|
||||
}
|
||||
|
||||
.outbound-release-review-cards-wrap {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
|
||||
gap: 14px;
|
||||
.protocol-card-section {
|
||||
min-height: 120px;
|
||||
padding: 16px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.outbound-release-review-card {
|
||||
min-width: 0;
|
||||
border: 1px solid #e2e8f0;
|
||||
.protocol-card-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.protocol-card {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid var(--mint-border, #e2e8f0);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
box-shadow:
|
||||
0 1px 3px rgba(15, 23, 42, 0.06),
|
||||
0 1px 2px rgba(15, 23, 42, 0.04);
|
||||
padding: 12px 14px 12px 40px;
|
||||
transition:
|
||||
border-color 0.15s ease,
|
||||
box-shadow 0.15s ease;
|
||||
border-color 0.15s,
|
||||
box-shadow 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: #a8d4c4;
|
||||
box-shadow: 0 4px 12px rgba(4, 120, 87, 0.1);
|
||||
border-color: #c5e0d4;
|
||||
box-shadow: 0 2px 8px rgb(15 23 42 / 5%);
|
||||
}
|
||||
|
||||
&.is-selected {
|
||||
border-color: var(--primary, #10b981);
|
||||
box-shadow: 0 0 0 1px rgb(16 185 129 / 25%);
|
||||
}
|
||||
}
|
||||
|
||||
.outbound-release-review-card__head {
|
||||
.protocol-card__select {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
left: 12px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.protocol-card__aside {
|
||||
flex: 0 0 148px;
|
||||
min-width: 132px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 14px 16px;
|
||||
background: #fff;
|
||||
gap: 6px;
|
||||
padding-right: 12px;
|
||||
border-right: 1px solid #eef2f6;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__head-main {
|
||||
min-width: 0;
|
||||
.protocol-card__status {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__title-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__checkbox {
|
||||
flex-shrink: 0;
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__index {
|
||||
flex-shrink: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
.protocol-card__create-time {
|
||||
margin-top: auto;
|
||||
font-size: 11px;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
min-width: 20px;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__code {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: #0f172a;
|
||||
line-height: 1.35;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__meta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px 12px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__meta-item {
|
||||
min-width: 0;
|
||||
|
||||
dt {
|
||||
margin: 0 0 2px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
line-height: 1.45;
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
.outbound-release-review-card__cells {
|
||||
padding: 12px 14px;
|
||||
border: 1px solid #d1fae5;
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
|
||||
}
|
||||
|
||||
.outbound-release-review-card__cells-title {
|
||||
.protocol-card__name-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.protocol-card__index {
|
||||
flex-shrink: 0;
|
||||
min-width: 22px;
|
||||
height: 22px;
|
||||
padding: 0 6px;
|
||||
border-radius: 6px;
|
||||
background: var(--primary-bg, #ecfdf5);
|
||||
color: var(--primary-dark, #059669);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #047857;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
width: 3px;
|
||||
height: 14px;
|
||||
margin-right: 8px;
|
||||
background: #047857;
|
||||
border-radius: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
line-height: 22px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__cell-list {
|
||||
.protocol-card__name {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--text, #1e293b);
|
||||
line-height: 1.4;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.protocol-card__contact {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__cell-item {
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
.protocol-card__sub {
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
line-height: 1.4;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
&:not(:last-child) {
|
||||
padding-bottom: 10px;
|
||||
margin-bottom: 10px;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
&--id {
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
|
||||
.outbound-release-review-card__cell-fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px 12px;
|
||||
margin: 0;
|
||||
.protocol-card__sections {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__cell-field {
|
||||
.protocol-card__block {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #eef2f6;
|
||||
|
||||
&--basic {
|
||||
flex: 1.1;
|
||||
min-width: 180px;
|
||||
}
|
||||
|
||||
dt {
|
||||
margin: 0 0 2px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
line-height: 1.4;
|
||||
&--newborn {
|
||||
flex: 0.85;
|
||||
min-width: 140px;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
line-height: 1.45;
|
||||
word-break: break-word;
|
||||
&--samples {
|
||||
flex: 1.35;
|
||||
min-width: 220px;
|
||||
}
|
||||
}
|
||||
|
||||
&--cells {
|
||||
flex: 1.35;
|
||||
min-width: 220px;
|
||||
}
|
||||
|
||||
.outbound-release-review-card__cells-fallback {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
color: #334155;
|
||||
line-height: 1.5;
|
||||
&--status {
|
||||
flex: 0.9;
|
||||
min-width: 140px;
|
||||
}
|
||||
}
|
||||
|
||||
.outbound-release-review-card__ops {
|
||||
.protocol-card__block-title {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
margin-bottom: 6px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--primary-dark, #059669);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
:deep(.el-button + .el-button) {
|
||||
margin-left: 0 !important;
|
||||
.protocol-card__block-count {
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
}
|
||||
|
||||
.protocol-card__kv-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.protocol-card__kv {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
|
||||
label {
|
||||
flex-shrink: 0;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
}
|
||||
|
||||
span {
|
||||
min-width: 0;
|
||||
color: var(--text, #1e293b);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.outbound-release-review-cards-empty {
|
||||
grid-column: 1 / -1;
|
||||
padding: 24px 0;
|
||||
.protocol-card__empty {
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.outbound-release-review-cards-wrap {
|
||||
grid-template-columns: 1fr;
|
||||
.protocol-card__sample-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.protocol-card__sample-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
padding: 6px 8px;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
border: 1px solid var(--mint-border, #e2e8f0);
|
||||
}
|
||||
|
||||
.protocol-card__sample-seq {
|
||||
flex-shrink: 0;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 4px;
|
||||
background: var(--primary-bg, #ecfdf5);
|
||||
color: var(--primary-dark, #059669);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
line-height: 18px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.protocol-card__sample-main {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.protocol-card__sample-line {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.protocol-card__sample-label {
|
||||
flex-shrink: 0;
|
||||
width: 28px;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
}
|
||||
|
||||
.protocol-card__sample-value {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
color: var(--text, #1e293b);
|
||||
word-break: break-all;
|
||||
|
||||
&--code {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
&--reception {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px 8px;
|
||||
word-break: normal;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.outbound-release-review-card__meta,
|
||||
.outbound-release-review-card__cell-fields {
|
||||
grid-template-columns: 1fr;
|
||||
.protocol-card__sample-remark {
|
||||
min-width: 0;
|
||||
flex: 1 1 120px;
|
||||
overflow: hidden;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.protocol-card__sample-status {
|
||||
flex-shrink: 0;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.protocol-card__foot {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding-left: 12px;
|
||||
border-left: 1px solid #eef2f6;
|
||||
}
|
||||
|
||||
.protocol-card__actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
align-items: stretch;
|
||||
gap: 6px;
|
||||
min-width: 72px;
|
||||
|
||||
:deep(.el-button) {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
.protocol-card-empty {
|
||||
padding: 32px 16px;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.protocol-card {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.protocol-card__sections {
|
||||
flex-basis: 100%;
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.protocol-card__foot {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
border-left: none;
|
||||
border-top: 1px solid #eef2f6;
|
||||
padding-left: 0;
|
||||
padding-top: 10px;
|
||||
margin-left: 0;
|
||||
order: 4;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.protocol-card__sections {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.protocol-card__block {
|
||||
min-width: 0 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user