Files
zkxw/web-admin/src/views/pilot-service/pilot-application/ApplicationViewDialog.vue
T
zlwuandCursor 9242ed0538 feat(pilot): 临床科研申请单增加必填渠道
开通 showChannel,保存校验并回写 channel_id/name;表单/列表/详情展示渠道,不绑定服务订单。用户确认免除 Figma。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 16:05:05 +08:00

1876 lines
64 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- 中试服务申请单 — 只读查看(样式对齐采集协议单 ProtocolViewDialog) -->
<template>
<div>
<el-dialog
:model-value="modelValue"
:title="dialogTitle"
width="1600px"
class="dialog-form-layout protocol-view-dialog"
align-center
append-to-body
modal-class="protocol-dialog-mask"
destroy-on-close
:close-on-click-modal="false"
@update:model-value="emit('update:modelValue', $event)"
@closed="handleClosed"
>
<div
class="protocol-view-body"
:class="{ 'is-detail-loading': detailLoading && !applicationDetail.id }"
v-loading="detailLoading && !applicationDetail.id"
element-loading-text="加载中…"
>
<div class="detail-tabs">
<div
v-for="tab in viewTabs"
:key="tab.key"
class="detail-tab"
:class="{
active: activeTab === tab.key,
'is-disabled': detailLoading && !applicationDetail.id
}"
@click="scrollToSection(tab.key)"
>
{{ tab.label }}
</div>
</div>
<template v-if="applicationDetail.id">
<div class="kpi-strip" :class="{ 'kpi-strip--cols5': isBasicExperiment }">
<div class="kpi-card">
<div class="kpi-card__icon" aria-hidden="true">
<el-icon><Document /></el-icon>
</div>
<div class="kpi-card__main">
<div class="kpi-label">申请单号</div>
<div class="kpi-value kpi-value--emphasis">{{
dash(applicationDetail.applicationNo)
}}</div>
</div>
</div>
<div class="kpi-card">
<div class="kpi-card__icon" aria-hidden="true">
<el-icon><CircleCheck /></el-icon>
</div>
<div class="kpi-card__main">
<div class="kpi-label">状态</div>
<div class="kpi-value">
<el-tag
:type="applicationStatusTagType(applicationDetail.applicationStatus)"
size="small"
>
{{ applicationStatusLabel(applicationDetail.applicationStatus) }}
</el-tag>
</div>
</div>
</div>
<div v-if="isBasicExperiment" class="kpi-card">
<div class="kpi-card__icon" aria-hidden="true">
<el-icon><Document /></el-icon>
</div>
<div class="kpi-card__main">
<div class="kpi-label">课题名称</div>
<div class="kpi-value">{{ dash(applicationDetail.projectTitle) }}</div>
</div>
</div>
<div v-if="isBasicExperiment" class="kpi-card">
<div class="kpi-card__icon" aria-hidden="true">
<el-icon><User /></el-icon>
</div>
<div class="kpi-card__main">
<div class="kpi-label">客户名称</div>
<div class="kpi-value">{{ dash(applicationDetail.customerName) }}</div>
</div>
</div>
<div class="kpi-card">
<div class="kpi-card__icon" aria-hidden="true">
<el-icon><User /></el-icon>
</div>
<div class="kpi-card__main">
<div class="kpi-label">渠道名称</div>
<div class="kpi-value">{{ dash(applicationDetail.channelName) }}</div>
</div>
</div>
<div class="kpi-card">
<div class="kpi-card__icon" aria-hidden="true">
<el-icon><Calendar /></el-icon>
</div>
<div class="kpi-card__main">
<div class="kpi-label">创建时间</div>
<div class="kpi-value">{{ dash(applicationDetail.createTime) }}</div>
</div>
</div>
</div>
<!-- 申请单信息 -->
<div id="view-section-application" class="section-card section-card--white">
<div class="section-title section-title--banner"><h3>申请单信息</h3></div>
<div v-if="applicationDetail.bizType !== 'clinical_application'" class="data-grid data-grid--2">
<div class="data-item">
<div class="data-label">所属项目</div>
<div class="data-value">{{ applicationDetail.projectName || '未归属' }}</div>
</div>
<div class="data-item">
<div class="data-label">项目组</div>
<div class="data-value">{{ applicationDetail.teamName || '—' }}</div>
</div>
</div>
<template v-if="isBasicExperiment">
<div class="data-grid data-grid--5">
<div class="data-item">
<div class="data-label">申请单名称</div>
<div class="data-value">{{ dash(applicationDetail.applicationName) }}</div>
</div>
<div class="data-item">
<div class="data-label">业务类型</div>
<div class="data-value">
{{ dash(clinicalResearchCategoryLabel(applicationDetail.researchCategory)) }}
</div>
</div>
<div class="data-item">
<div class="data-label">渠道名称</div>
<div class="data-value">{{ dash(applicationDetail.channelName) }}</div>
</div>
<div class="data-item">
<div class="data-label">课题名称</div>
<div class="data-value">{{ dash(applicationDetail.projectTitle) }}</div>
</div>
<div class="data-item">
<div class="data-label">客户名称</div>
<div class="data-value">{{ dash(applicationDetail.customerName) }}</div>
</div>
<div class="data-item">
<div class="data-label">客户联系人</div>
<div class="data-value">{{ dash(applicationDetail.customerContact) }}</div>
</div>
<div class="data-item">
<div class="data-label">客户联系方式</div>
<div class="data-value">{{ dash(applicationDetail.customerPhone) }}</div>
</div>
</div>
<div v-if="applicationDetail.remark" class="data-item data-item--remark">
<div class="data-label">备注</div>
<div class="data-value data-value--muted">{{ dash(applicationDetail.remark) }}</div>
</div>
</template>
<div v-else class="data-grid data-grid--4">
<div class="data-item">
<div class="data-label">申请单名称</div>
<div class="data-value">{{ dash(applicationDetail.applicationName) }}</div>
</div>
<div class="data-item">
<div class="data-label">申请单号</div>
<div class="data-value">{{ dash(applicationDetail.applicationNo) }}</div>
</div>
<div class="data-item">
<div class="data-label">渠道名称</div>
<div class="data-value">{{ dash(applicationDetail.channelName) }}</div>
</div>
<div class="data-item">
<div class="data-label">服务订单名称</div>
<div class="data-value">
<div class="field-with-action">
<span class="field-with-action__main">{{ dash(serviceOrderDisplayName) }}</span>
<el-button
class="field-with-action__btn"
:disabled="!applicationDetail.channelServiceOrderId"
@click="openServiceOrderView"
>
<el-icon><View /></el-icon>查看
</el-button>
</div>
</div>
</div>
<div class="data-item">
<div class="data-label">状态</div>
<div class="data-value">
<el-tag
v-if="applicationDetail.applicationStatus"
:type="applicationStatusTagType(applicationDetail.applicationStatus)"
size="small"
>
{{ applicationStatusLabel(applicationDetail.applicationStatus) }}
</el-tag>
<span v-else>-</span>
</div>
</div>
<div class="data-item data-item--full">
<div class="data-label">备注</div>
<div class="data-value data-value--muted">{{ dash(applicationDetail.remark) }}</div>
</div>
</div>
<div v-if="!isBasicExperiment && otherAttachmentFiles.length" class="attachment-row">
<div class="data-label">附件</div>
<ProtocolAttachmentReadonly
:files="otherAttachmentFiles"
@preview="openPreview"
@download="downloadFile"
/>
</div>
<div v-if="isBasicExperiment && otherAttachmentFiles.length" class="attachment-row">
<div class="data-label">标准附件</div>
<ProtocolAttachmentReadonly
:files="otherAttachmentFiles"
@preview="openPreview"
@download="downloadFile"
/>
</div>
</div>
<!-- 患者信息 -->
<div
v-if="!isBasicExperiment"
id="view-section-basic"
class="section-card section-card--green"
>
<div class="section-title section-title--banner"><h3>患者信息</h3></div>
<div class="data-grid data-grid--4">
<div class="data-item">
<div class="data-label">患者姓名</div>
<div class="data-value">{{ dash(patient.patientName) }}</div>
</div>
<div class="data-item">
<div class="data-label">性别</div>
<div class="data-value">{{ formatSex(patient.sex) }}</div>
</div>
<div class="data-item">
<div class="data-label">年龄</div>
<div class="data-value">{{ patient.age != null ? patient.age : '-' }}</div>
</div>
<div class="data-item">
<div class="data-label">身份证号</div>
<div class="data-value">{{ dash(patient.idCardNo) }}</div>
</div>
<div class="data-item">
<div class="data-label">联系电话</div>
<div class="data-value">{{ dash(patient.phoneNo) }}</div>
</div>
<div class="data-item">
<div class="data-label">紧急联系人</div>
<div class="data-value">{{ dash(patient.emergencyContact) }}</div>
</div>
<div class="data-item">
<div class="data-label">紧急联系人电话</div>
<div class="data-value">{{ dash(patient.emergencyPhone) }}</div>
</div>
<div class="data-item">
<div class="data-label">是否需要体检</div>
<div class="data-value">{{ formatNeedCheckup(patient.needCheckup) }}</div>
</div>
<div class="data-item data-item--full">
<div class="data-label">临床诊断</div>
<div class="data-value data-value--muted">{{
dash(patient.clinicalDiagnosis)
}}</div>
</div>
</div>
<div v-if="diagnosisFiles.length" class="attachment-row">
<div class="data-label">诊断附件</div>
<ProtocolAttachmentReadonly
:files="diagnosisFiles"
@preview="openPreview"
@download="downloadFile"
/>
</div>
</div>
<!-- 体检信息(患者需体检时展示) -->
<div
v-if="showCheckupInfo"
id="view-section-checkup"
class="section-card section-card--white"
v-loading="checkupLoading"
>
<div class="section-title section-title--banner"><h3>体检信息</h3></div>
<template v-if="checkupData?.id">
<div class="section-subtitle">预约信息</div>
<div class="data-grid data-grid--4">
<div class="data-item">
<div class="data-label">体检机构</div>
<div class="data-value">{{ dash(checkupData.institutionName) }}</div>
</div>
<div class="data-item">
<div class="data-label">预约时间</div>
<div class="data-value">{{ dash(checkupData.reserveTime) }}</div>
</div>
<div class="data-item">
<div class="data-label">预约费用</div>
<div class="data-value data-value--amount">
{{
checkupData.reserveFee != null
? `¥${formatMoneyDisplay(checkupData.reserveFee)}`
: '-'
}}
</div>
</div>
<div class="data-item">
<div class="data-label">体检状态</div>
<div class="data-value">
<el-tag
v-if="checkupData.checkupStatus"
:type="checkupStatusTagType(checkupData.checkupStatus)"
size="small"
>
{{ checkupStatusLabel(checkupData.checkupStatus) }}
</el-tag>
<span v-else>-</span>
</div>
</div>
<div class="data-item">
<div class="data-label">费用状态</div>
<div class="data-value">
<el-tag
v-if="checkupData.feeStatus"
:type="feeStatusTagType(checkupData.feeStatus)"
size="small"
>
{{ feeStatusLabel(checkupData.feeStatus) }}
</el-tag>
<span v-else>-</span>
</div>
</div>
</div>
<div class="checkup-block-gap" />
<div class="section-subtitle">预约项目</div>
<div class="list-body list-wrap view-inner-table-wrap">
<el-table
v-if="checkupReserveItems.length"
:data="checkupReserveItems"
stripe
class="list-table inner-table"
max-height="320"
>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
/>
<el-table-column
prop="projectName"
label="项目名称"
min-width="200"
show-overflow-tooltip
/>
<el-table-column
label="项目费用(元)"
min-width="120"
align="right"
header-align="center"
>
<template #default="{ row }">
{{ row.projectFee != null ? `¥${formatMoneyDisplay(row.projectFee)}` : '-' }}
</template>
</el-table-column>
</el-table>
<el-empty v-else description="暂无预约项目" :image-size="48" />
</div>
<div class="checkup-block-gap" />
<div class="section-subtitle">实际体检登记</div>
<div class="data-grid data-grid--3">
<div class="data-item">
<div class="data-label">实际体检时间</div>
<div class="data-value">{{ dash(checkupData.actualCheckupTime) }}</div>
</div>
<div class="data-item">
<div class="data-label">实际体检费用</div>
<div class="data-value data-value--amount">
{{
checkupData.actualCheckupFee != null
? `¥${formatMoneyDisplay(checkupData.actualCheckupFee)}`
: '-'
}}
</div>
</div>
<div class="data-item data-item--full">
<div class="data-label">体检备注</div>
<div class="data-value data-value--muted">{{
dash(checkupData.checkupRemark)
}}</div>
</div>
</div>
<div class="checkup-block-gap" />
<div class="section-subtitle">实际项目</div>
<div class="list-body list-wrap view-inner-table-wrap">
<el-table
v-if="checkupActualItems.length"
:data="checkupActualItems"
stripe
class="list-table inner-table"
max-height="320"
>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
/>
<el-table-column
prop="projectName"
label="项目名称"
min-width="200"
show-overflow-tooltip
/>
<el-table-column
label="项目费用(元)"
min-width="120"
align="right"
header-align="center"
>
<template #default="{ row }">
{{ row.projectFee != null ? `¥${formatMoneyDisplay(row.projectFee)}` : '-' }}
</template>
</el-table-column>
</el-table>
<el-empty v-else description="暂无实际项目" :image-size="48" />
</div>
<div class="attachment-row">
<div class="data-label">体检报告</div>
<ProtocolAttachmentReadonly
:files="checkupReportFiles"
@preview="openPreview"
@download="downloadFile"
/>
</div>
</template>
<el-empty v-else description="暂无体检登记信息" :image-size="64" />
</div>
<!-- 输注方案 / 交付计划 -->
<div id="view-section-infusion" class="section-card section-card--white">
<div class="section-title section-title--banner">
<h3>{{ viewBizConfig.planLabel }}</h3>
</div>
<div v-if="!isBasicExperiment" class="data-grid data-grid--3 infusion-order-meta">
<div class="data-item">
<div class="data-label">渠道协议</div>
<div class="data-value">
<div class="field-with-action">
<span class="field-with-action__main agreement-display">{{
dash(agreementLabel)
}}</span>
<el-button
class="field-with-action__btn"
:disabled="!currentAgreementId"
@click="openAgreementView"
>
<el-icon><View /></el-icon>查看
</el-button>
</div>
</div>
</div>
<div class="data-item">
<div class="data-label">服务订单类型</div>
<div class="data-value">
<el-tag
v-if="serviceOrderDetail?.orderType"
:type="channelServiceOrderTypeTagType(serviceOrderDetail.orderType)"
size="small"
>
{{ channelServiceOrderTypeLabel(serviceOrderDetail.orderType) }}
</el-tag>
<span v-else>-</span>
</div>
</div>
<div class="data-item">
<div class="data-label">结算方式</div>
<div class="data-value data-value--muted">{{ settlementModeLabel }}</div>
</div>
</div>
<div v-if="!isBasicExperiment" class="data-grid data-grid--4">
<div class="data-item">
<div class="data-label">疗程数</div>
<div class="data-value">{{ dash(infusionPlan.totalCourseCount) }}</div>
</div>
<div class="data-item">
<div class="data-label">疗程间隔(月)</div>
<div class="data-value">{{ dash(infusionPlan.courseInterval) }}</div>
</div>
<div class="data-item">
<div class="data-label">输注开始日期</div>
<div class="data-value">{{ dash(infusionPlan.infusionStartDate) }}</div>
</div>
<div v-if="isYfkOrder" class="data-item">
<div class="data-label">方案总金额</div>
<div class="data-value data-value--amount">
¥{{ formatOrderBalance(infusionPlanTotalAmount) }}
</div>
</div>
<div v-else-if="isGmcpOrder" class="data-item data-item--full">
<div class="data-label">输注份数汇总</div>
<div class="data-value data-value--muted">{{ infusionPlanQtySummaryText }}</div>
</div>
</div>
<div class="schedule-block" :class="{ 'schedule-block--standalone': isBasicExperiment }">
<div v-if="!isBasicExperiment" class="section-subtitle">输注计划</div>
<div v-if="infusionSchedules.length" class="schedule-details">
<div
v-for="(schedule, sIdx) in infusionSchedules"
:key="schedule.id || sIdx"
class="schedule-card"
:class="{ expanded: schedule._expanded }"
>
<div class="schedule-header" @click="toggleScheduleExpand(sIdx)">
<span class="schedule-chevron">▶</span>
<span class="schedule-title"
>{{ viewBizConfig.scheduleLabel }} #{{ sIdx + 1 }}</span
>
</div>
<div v-show="schedule._expanded" class="schedule-body">
<div class="schedule-body-inner">
<div class="data-grid data-grid--3">
<div class="data-item">
<div class="data-label">{{ viewBizConfig.pickupTimeLabel }}</div>
<div class="data-value">{{ dash(schedule.infusionTime) }}</div>
</div>
<div v-if="!isBasicExperiment" class="data-item">
<div class="data-label">{{ viewBizConfig.locationLabel }}</div>
<div class="data-value">{{ dash(schedule.infusionLocation) }}</div>
</div>
<div v-if="!isBasicExperiment" class="data-item">
<div class="data-label">{{ viewBizConfig.methodLabel }}</div>
<div class="data-value">{{
formatInfusionMethod(schedule.infusionMethod)
}}</div>
</div>
</div>
<div class="data-grid data-grid--3 schedule-status-grid">
<div class="data-item">
<div class="data-label">计划生产状态</div>
<div class="data-value">
<el-tag
v-if="schedule.scheduleStatus"
:type="scheduleStatusTagType(schedule.scheduleStatus)"
size="small"
>
{{ scheduleStatusLabel(schedule.scheduleStatus) }}
</el-tag>
<span v-else>-</span>
</div>
</div>
<div v-if="!isBasicExperiment" class="data-item">
<div class="data-label">{{ viewBizConfig.statusLabel }}</div>
<div class="data-value">
<el-tag
v-if="schedule.infusionStatus"
:type="infusionStatusTagType(schedule.infusionStatus)"
size="small"
>
{{ infusionStatusLabel(schedule.infusionStatus) }}
</el-tag>
<span v-else>-</span>
</div>
</div>
<div class="data-item">
<div class="data-label">质检状态</div>
<div class="data-value">
<el-tag
v-if="schedule.qcStatus"
:type="qcStatusTagType(schedule.qcStatus)"
size="small"
>
{{ qcStatusLabel(schedule.qcStatus) }}
</el-tag>
<span v-else>-</span>
</div>
</div>
</div>
<div class="cell-product-block">
<div class="section-subtitle">细胞产品</div>
<div
v-if="schedule.cellProducts?.length"
class="list-body list-wrap view-inner-table-wrap"
>
<el-table
:data="schedule.cellProducts"
stripe
class="list-table inner-table"
>
<el-table-column
prop="projectName"
label="细胞项目名称"
min-width="150"
show-overflow-tooltip
/>
<el-table-column
prop="cellTypeName"
label="细胞类型"
min-width="100"
show-overflow-tooltip
/>
<el-table-column
prop="specText"
label="规格"
min-width="100"
show-overflow-tooltip
/>
<el-table-column
label="协议单价(元)"
min-width="130"
align="right"
header-align="center"
>
<template #default="{ row }">
¥{{ formatOrderBalance(row.agreementPrice) }}
</template>
</el-table-column>
<el-table-column
label="实际单价(元)"
min-width="130"
align="right"
header-align="center"
>
<template #default="{ row }">
¥{{ formatOrderBalance(row.actualPrice) }}
</template>
</el-table-column>
<el-table-column
prop="quantity"
label="份数"
min-width="80"
align="center"
header-align="center"
/>
<el-table-column
prop="remark"
label="备注"
min-width="120"
show-overflow-tooltip
/>
</el-table>
</div>
<el-empty v-else description="暂无细胞产品" :image-size="32" />
<div
v-if="isYfkOrder && schedule.cellProducts?.length"
class="schedule-amount-summary"
>
本次{{ viewBizConfig.scheduleLabel }}金额:
<span class="schedule-amount-summary__value">
¥{{ formatOrderBalance(calcScheduleAmount(schedule)) }}
</span>
</div>
</div>
<div v-if="viewBizConfig.showPayment" class="schedule-payment-block">
<div class="section-subtitle">缴费明细</div>
<ClinicalSchedulePaymentDetailView
v-if="schedule.payment"
:payment="schedule.payment"
@preview="openPreview"
@download="downloadFile"
/>
<el-empty v-else description="暂无缴费记录" :image-size="32" />
</div>
<InfusionScheduleOutboundChainView
v-if="schedule.id"
:schedule-id="schedule.id"
:active="!!schedule._expanded"
/>
</div>
</div>
</div>
</div>
<el-empty
v-else
:description="'暂无' + viewBizConfig.scheduleLabel"
:image-size="48"
/>
</div>
</div>
</template>
</div>
<template #footer>
<el-button class="btn-ghost" @click="emit('update:modelValue', false)">
<el-icon><Close /></el-icon>
关闭
</el-button>
</template>
</el-dialog>
<!-- 服务订单查看 -->
<SystemViewDialog
v-model:visible="serviceOrderViewVisible"
:title="serviceOrderViewData.orderName || serviceOrderViewData.channelName || '订单详情'"
:icon="Document"
:code="serviceOrderViewData.id"
code-label="订单编号"
:sections="serviceOrderViewSections"
:loading="serviceOrderViewLoading"
width="960px"
:grid-columns="4"
append-to-body
>
<template v-if="serviceOrderViewData.orderType === 'gmcp'" #order-products>
<div class="list-body list-wrap view-inner-table-wrap">
<el-table
v-if="serviceOrderViewData.products?.length"
:data="serviceOrderViewData.products"
stripe
class="list-table inner-table"
max-height="360"
>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
/>
<el-table-column
prop="projectName"
label="项目名称"
min-width="150"
show-overflow-tooltip
/>
<el-table-column
prop="cellType"
label="细胞类型"
min-width="120"
show-overflow-tooltip
/>
<el-table-column
prop="specText"
label="规格文本"
min-width="150"
show-overflow-tooltip
/>
<el-table-column
label="协议单价(元)"
min-width="130"
align="right"
header-align="center"
>
<template #default="{ row }"
>¥{{ formatOrderBalance(row.agreementUnitPrice) }}</template
>
</el-table-column>
<el-table-column
prop="currentQty"
label="当前持有"
min-width="100"
align="center"
header-align="center"
/>
<el-table-column
prop="totalBuyQty"
label="累计购买"
min-width="100"
align="center"
header-align="center"
/>
<el-table-column
prop="totalUnsubscribeQty"
label="累计退订"
min-width="100"
align="center"
header-align="center"
/>
</el-table>
<el-empty v-else description="暂无产品持仓" :image-size="48" />
</div>
</template>
<template #txn-timeline>
<ServiceOrderTxnTable :rows="serviceOrderViewData.transactions || []" />
</template>
</SystemViewDialog>
<!-- 渠道协议查看 -->
<SystemViewDialog
v-model:visible="agreementViewVisible"
:title="agreementViewTitle"
:icon="Document"
:code="agreementViewData.id"
code-label="协议编号"
:sections="agreementViewSections"
:loading="agreementViewLoading"
width="960px"
:grid-columns="4"
append-to-body
>
<template #agreement-prices>
<div class="list-body list-wrap view-inner-table-wrap">
<el-table
v-if="agreementViewPrices.length"
:data="agreementViewPrices"
stripe
class="list-table inner-table"
max-height="360"
>
<el-table-column
type="index"
label="序号"
min-width="68"
align="center"
header-align="center"
/>
<el-table-column
prop="projectName"
label="项目名称"
min-width="140"
show-overflow-tooltip
/>
<el-table-column
prop="projectCode"
label="项目编码"
min-width="110"
show-overflow-tooltip
/>
<el-table-column
prop="cellTypeName"
label="细胞类型"
min-width="110"
show-overflow-tooltip
/>
<el-table-column prop="specText" label="规格" min-width="120" show-overflow-tooltip />
<el-table-column
label="协议单价(元)"
min-width="130"
align="right"
header-align="center"
>
<template #default="{ row }">¥{{ formatOrderBalance(row.unitPrice) }}</template>
</el-table-column>
</el-table>
<el-empty v-else description="暂无协议价格" :image-size="48" />
</div>
</template>
</SystemViewDialog>
<el-dialog
v-model="previewVisible"
title="文件预览"
width="800px"
align-center
append-to-body
destroy-on-close
>
<div v-if="previewType === 'image'" class="preview-container">
<img
:src="previewUrl"
alt="预览"
style="max-width: 100%; max-height: 70vh; display: block; margin: 0 auto"
/>
</div>
<div v-else class="preview-container">
<video
:src="previewUrl"
controls
style="max-width: 100%; max-height: 70vh; display: block; margin: 0 auto"
/>
</div>
</el-dialog>
</div>
</template>
<script setup lang="ts">
import { ref, reactive, computed, watch, nextTick } from 'vue'
import { Document, User, Calendar, CircleCheck, Close, View } from '@element-plus/icons-vue'
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
import SystemViewDialog, {
type ViewSection
} from '@/components/business/system-view-dialog/index.vue'
import ServiceOrderTxnTable from '@/views/pilot-service/channel-service-order/ServiceOrderTxnTable.vue'
import InfusionScheduleOutboundChainView from '@/components/business/infusion-schedule-outbound-chain-view/index.vue'
import ClinicalSchedulePaymentDetailView from '@/components/business/clinical-schedule-payment-detail/index.vue'
import {
fetchPilotApplicationDetail,
fetchPilotPatient,
fetchPilotCheckupDetail,
fetchPilotCheckupReserveItems,
fetchPilotCheckupActualItems,
fetchChannelServiceOrderDetail,
fetchChannelAgreements,
fetchChannelAgreementPrices,
fetchDictDataOptions
} from '@/api/admin'
import { downloadAttachmentFile } from '@/utils/download-attachment'
import { formatMoneyDisplay } from '@/utils/money-format'
import { getPilotBizConfig } from '@/config/pilot-biz-type'
import { clinicalResearchCategoryLabel } from '@/constants/clinical-research-category'
import {
applicationStatusLabel,
applicationStatusTagType,
channelServiceOrderTypeLabel,
channelServiceOrderTypeTagType,
channelServiceOrderStatusLabel,
channelServiceOrderStatusTagType,
agreementTypeLabel,
agreementTypeTagType,
agreementStatusLabel,
agreementStatusTagType,
settlementTypeLabel,
settlementTypeTagType,
scheduleStatusLabel,
scheduleStatusTagType,
infusionStatusLabel,
infusionStatusTagType,
qcStatusLabel,
qcStatusTagType,
checkupStatusLabel,
checkupStatusTagType,
feeStatusLabel,
feeStatusTagType
} from '@/utils/status-tag-registry'
defineOptions({ name: 'ApplicationViewDialog' })
const props = defineProps<{
modelValue: boolean
applicationId: string
}>()
const emit = defineEmits<{
(e: 'update:modelValue', val: boolean): void
}>()
const viewBizConfig = computed(() => getPilotBizConfig(applicationDetail.value?.bizType))
const viewTabs = computed(() => {
const cfg = viewBizConfig.value
const tabs = [{ key: 'application', label: '申请单信息' }]
if (cfg.showPatient) {
tabs.push({ key: 'basic', label: '基本信息' })
}
if (showCheckupInfo.value) {
tabs.push({ key: 'checkup', label: '体检信息' })
}
tabs.push({
key: 'infusion',
label: cfg.planLabel
})
return tabs
})
const activeTab = ref('application')
const detailLoading = ref(false)
const applicationDetail = ref<Record<string, any>>({})
const patient = ref<Record<string, any>>({})
const infusionPlan = ref<Record<string, any>>({})
const infusionSchedules = ref<any[]>([])
const serviceOrderDetail = ref<Record<string, any> | null>(null)
const agreementLabel = ref('')
const infusionMethodOptions = ref<Api.Dict.DictDataOption[]>([])
const checkupLoading = ref(false)
const checkupData = ref<Record<string, any> | null>(null)
const checkupReserveItems = ref<any[]>([])
const checkupActualItems = ref<any[]>([])
const previewVisible = ref(false)
const previewUrl = ref('')
const previewType = ref<'image' | 'video'>('image')
const minioBaseUrl = (import.meta.env.VITE_MINIO_BASE_URL || '').replace(/\/$/, '')
const dialogTitle = computed(() => {
const name = (applicationDetail.value.applicationName || '').trim()
if (name) return `申请单详情 · ${name}`
const no = (applicationDetail.value.applicationNo || '').trim()
return no ? `申请单详情 · ${no}` : '申请单详情'
})
const serviceOrderDisplayName = computed(() => {
const order = serviceOrderDetail.value
if (order?.orderName) return order.orderName
return applicationDetail.value.serviceOrderNo || ''
})
const currentAgreementId = computed(
() =>
infusionPlan.value?.channelAgreementId || serviceOrderDetail.value?.channelAgreementId || ''
)
const isYfkOrder = computed(() => serviceOrderDetail.value?.orderType === 'yfk')
const isGmcpOrder = computed(() => serviceOrderDetail.value?.orderType === 'gmcp')
const isBasicExperiment = computed(
() => applicationDetail.value?.bizType === 'basic_experiment'
)
const settlementModeLabel = computed(() => {
const t = serviceOrderDetail.value?.orderType
if (t === 'yfk') return '按协议单价扣减订单余额'
if (t === 'gmcp') return '按份数扣减订单产品持仓'
return '—'
})
const showCheckupInfo = computed(() => {
const v = patient.value.needCheckup
return v === 1 || v === '1'
})
const diagnosisFiles = computed(() => {
const urls = (patient.value.diagnosisAttachments || '').split(',').filter(Boolean)
return urls.map((url: string, idx: number) => {
const parts = url.split('/')
const name = decodeURIComponent(parts[parts.length - 1] || '附件')
return { id: `diag_${idx}`, fileName: name, fileUrl: url }
})
})
const consentAttachmentFiles = computed(() => {
const files = applicationDetail.value?.consentAttachmentFiles
if (Array.isArray(files) && files.length) return files
const str = String(applicationDetail.value?.consentFormUrls || '').trim()
if (!str) return []
return str.split(',').filter(Boolean).map((url: string, idx: number) => {
const parts = url.split('/')
const name = decodeURIComponent(parts[parts.length - 1] || '附件')
return { id: `consent_${idx}`, fileName: name, fileUrl: url }
})
})
const otherAttachmentFiles = computed(() => {
const files = applicationDetail.value?.attachmentFiles
if (Array.isArray(files) && files.length) return files
const str = String(applicationDetail.value?.attachmentUrls || '').trim()
if (!str) return []
return str.split(',').filter(Boolean).map((url: string, idx: number) => {
const parts = url.split('/')
const name = decodeURIComponent(parts[parts.length - 1] || '附件')
return { id: `other_${idx}`, fileName: name, fileUrl: url }
})
})
const checkupReportFiles = computed(() => {
const urls = (checkupData.value?.reportAttachments || '').split(',').filter(Boolean)
return urls.map((url: string, idx: number) => {
const parts = url.split('/')
const name = decodeURIComponent(parts[parts.length - 1] || '附件')
return { id: `checkup_report_${idx}`, fileName: name, fileUrl: url }
})
})
const dash = (v: unknown) => {
if (v == null || v === '') return '-'
return String(v)
}
const formatSex = (sex: unknown) => {
if (sex == null || sex === '') return '-'
const s = String(sex)
if (s === '0') return '男'
if (s === '1') return '女'
if (s === '男' || s === '女') return s
return s
}
const formatNeedCheckup = (v: unknown) => {
if (v === 1 || v === '1') return '是'
if (v === 0 || v === '0') return '否'
return '-'
}
const formatOrderBalance = (v: unknown) => formatMoneyDisplay(v, 2)
const formatInfusionMethod = (code: unknown) => {
if (!code) return '-'
const hit = infusionMethodOptions.value.find((o) => o.value === code)
return hit?.label || String(code)
}
const calcScheduleAmount = (schedule: any): number =>
(schedule?.cellProducts || []).reduce((sum: number, cp: any) => {
const price = Number(cp.actualPrice) || 0
const qty = Number(cp.quantity) || 0
return sum + price * qty
}, 0)
const infusionPlanTotalAmount = computed(() =>
infusionSchedules.value.reduce((sum, s) => sum + calcScheduleAmount(s), 0)
)
const infusionPlanQtySummaryText = computed(() => {
if (!isGmcpOrder.value) return '—'
const map = new Map<string, { label: string; qty: number }>()
for (const schedule of infusionSchedules.value) {
for (const cp of schedule.cellProducts || []) {
const key = (cp.projectCode || cp.priceId || '').trim()
if (!key) continue
const label = `${cp.projectName || '-'}(${cp.cellTypeName || '-'}、${cp.specText || '-'})`
const q = Number(cp.quantity) || 0
const existing = map.get(key)
if (existing) existing.qty += q
else map.set(key, { label, qty: q })
}
}
const items = Array.from(map.values()).map((i) => `${i.label} * ${i.qty}`)
return items.length ? items.join(',') : '—'
})
const fullFileUrl = (suffix: string) => {
if (!suffix) return ''
if (suffix.startsWith('http://') || suffix.startsWith('https://') || suffix.startsWith('/')) {
return suffix
}
return `${minioBaseUrl}/${suffix}`
}
const isImageUrl = (file: { fileUrl?: string; fileName?: string }) => {
const url = (file.fileUrl || '').toLowerCase()
const name = (file.fileName || '').toLowerCase()
return (
/\.(jpg|jpeg|png|gif|bmp|webp|svg)(\?|$)/.test(url) ||
/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/.test(name)
)
}
const openPreview = (file: Record<string, any>) => {
previewUrl.value = fullFileUrl(file.fileUrl || '')
previewType.value = isImageUrl(file) ? 'image' : 'video'
previewVisible.value = true
}
const downloadFile = (file: Record<string, any>) => {
downloadAttachmentFile(file, { fullFileUrl })
}
const toggleScheduleExpand = (idx: number) => {
const s = infusionSchedules.value[idx]
if (s) s._expanded = !s._expanded
}
const scrollToSection = (key: string) => {
if (detailLoading.value && !applicationDetail.value.id) return
activeTab.value = key
nextTick(() => {
document
.getElementById(`view-section-${key}`)
?.scrollIntoView({ behavior: 'smooth', block: 'start' })
})
}
const unwrapApiList = (res: unknown): any[] => {
const d = (res as any)?.data ?? res
if (Array.isArray(d)) return d
return d?.list ?? d?.records ?? []
}
function normalizeAgreementRow(row: Record<string, any>) {
const status = String(row.agreementStatus ?? row.status ?? 'dsx').trim() || 'dsx'
return {
...row,
settlementType: row.settleMode ?? row.settlementType ?? '',
creditLimit: row.creditLimitAmount ?? row.creditLimit ?? null,
expiryDate: row.expireDate ?? row.expiryDate ?? '',
effectiveDate: row.effectiveDate ?? '',
status
}
}
const normalizeAgreementPriceRows = (rows: any[]) =>
(Array.isArray(rows) ? rows : []).map((p) => ({
priceId: p.id,
projectCode: p.projectCode || '',
projectName: p.projectName || '',
cellTypeCode: p.cellTypeCode || '',
cellTypeName: p.cellTypeName || '',
specText: p.specText || '',
unitPrice: p.agreementPrice ?? p.unitPrice ?? 0
}))
const formatAgreementLabel = (ag: any) => {
const type = agreementTypeLabel(ag?.agreementType || '')
const period = [ag?.effectiveDate, ag?.expiryDate || ag?.expireDate].filter(Boolean).join(' ~ ')
return period ? `${type} · ${period}` : type || '—'
}
const resolveAgreementLabel = async (channelId: string, agreementId: string) => {
if (!channelId || !agreementId) {
agreementLabel.value = ''
return
}
try {
const res: any = await fetchChannelAgreements(channelId)
const rows = unwrapApiList(res).map(normalizeAgreementRow)
const hit = rows.find((a: any) => a.id === agreementId)
agreementLabel.value = hit ? formatAgreementLabel(hit) : agreementId
} catch {
agreementLabel.value = agreementId
}
}
// ── 服务订单查看弹窗 ───────────────────────────────────────────────────
const serviceOrderViewVisible = ref(false)
const serviceOrderViewLoading = ref(false)
const serviceOrderViewData = ref<any>({})
const serviceOrderViewAgreementLabel = ref('')
const serviceOrderViewSections = computed((): ViewSection[] => {
const d = serviceOrderViewData.value || {}
const sections: ViewSection[] = [
{
title: '基本信息',
fields: [
{ label: '订单名称', value: d.orderName },
{ label: '渠道名称', value: d.channelName },
{ label: '部门名称', value: d.deptName },
{
label: '订单类型',
value: channelServiceOrderTypeLabel(d.orderType),
tagType: channelServiceOrderTypeTagType(d.orderType)
},
{
label: '订单状态',
value: channelServiceOrderStatusLabel(d.orderStatus),
tagType: channelServiceOrderStatusTagType(d.orderStatus)
},
{ label: '创建人', value: d.createByName || d.createBy },
{ label: '创建时间', value: d.createTime },
{ label: '备注', value: d.remark, span: true }
]
}
]
if (d.orderType === 'yfk') {
sections.push({
title: '金额汇总',
fields: [
{ label: '累计充值(元)', value: `¥${formatOrderBalance(d.totalRechargeAmount)}` },
{ label: '累计退款(元)', value: `¥${formatOrderBalance(d.totalRefundAmount)}` },
{ label: '当前余额(元)', value: `¥${formatOrderBalance(d.currentBalance)}` },
{
label: '渠道协议',
value: serviceOrderViewAgreementLabel.value || d.channelAgreementId
}
]
})
}
if (d.orderType === 'gmcp') {
sections.push({
title: '金额信息',
fields: [
{ label: '购买总额(元)', value: `¥${formatOrderBalance(d.purchaseTotalAmount)}` },
{
label: '渠道协议',
value: serviceOrderViewAgreementLabel.value || d.channelAgreementId
}
]
})
sections.push({
title: '产品持仓',
fields: [],
slot: 'order-products'
})
}
sections.push({
title: '操作记录',
fields: [],
slot: 'txn-timeline'
})
return sections
})
const resolveServiceOrderViewAgreementLabel = async (detail: any) => {
const agreementId = detail?.channelAgreementId || ''
const channelId = detail?.channelId || applicationDetail.value.channelId || ''
if (!agreementId || !channelId) {
serviceOrderViewAgreementLabel.value = ''
return
}
try {
const res: any = await fetchChannelAgreements(channelId)
const rows = unwrapApiList(res).map(normalizeAgreementRow)
const hit = rows.find((ag: any) => ag.id === agreementId)
serviceOrderViewAgreementLabel.value = hit ? formatAgreementLabel(hit) : agreementId
} catch {
serviceOrderViewAgreementLabel.value = agreementId
}
}
const openServiceOrderView = async () => {
const orderId = applicationDetail.value.channelServiceOrderId
if (!orderId) return
serviceOrderViewVisible.value = true
serviceOrderViewLoading.value = true
serviceOrderViewAgreementLabel.value = ''
try {
const res: any = await fetchChannelServiceOrderDetail(orderId)
const detail = res?.data ?? res ?? {}
serviceOrderViewData.value = detail
if (detail.channelAgreementId && (detail.channelId || applicationDetail.value.channelId)) {
await resolveServiceOrderViewAgreementLabel(detail)
}
} catch (e: any) {
ElMessage.error(e?.message || '加载订单详情失败')
serviceOrderViewData.value = {}
} finally {
serviceOrderViewLoading.value = false
}
}
// ── 渠道协议查看弹窗 ───────────────────────────────────────────────────
const agreementViewVisible = ref(false)
const agreementViewLoading = ref(false)
const agreementViewData = ref<any>({})
const agreementViewPrices = ref<any[]>([])
const agreementViewTitle = computed(() => {
const label = formatAgreementLabel(agreementViewData.value)
return label && label !== '—' ? label : '渠道协议详情'
})
const agreementViewSections = computed((): ViewSection[] => {
const agr = agreementViewData.value || {}
const fields: ViewSection['fields'] = [
{
label: '协议类型',
value: agreementTypeLabel(agr.agreementType),
tagType: agreementTypeTagType(agr.agreementType)
},
{
label: '协议状态',
value: agreementStatusLabel(agr.status),
tagType: agreementStatusTagType(agr.status)
}
]
if (agr.settlementType) {
fields.push({
label: '结算方式',
value: settlementTypeLabel(agr.settlementType),
tagType: settlementTypeTagType(agr.settlementType)
})
}
if (agr.creditLimit != null && agr.creditLimit !== '') {
fields.push({
label: '授信额度(元)',
value: `¥${formatOrderBalance(agr.creditLimit)}`
})
}
if (agr.effectiveDate) {
fields.push({ label: '生效日期', value: agr.effectiveDate })
}
if (agr.expiryDate) {
fields.push({ label: '到期日期', value: agr.expiryDate })
}
if (agr.remark) {
fields.push({ label: '备注', value: agr.remark, span: true })
}
return [
{ title: '协议信息', fields },
{
title: '细胞产品价格',
fields: [],
slot: 'agreement-prices'
}
]
})
const openAgreementView = async () => {
const agreementId = currentAgreementId.value
const channelId = applicationDetail.value.channelId || serviceOrderDetail.value?.channelId || ''
if (!agreementId) return
agreementViewVisible.value = true
agreementViewLoading.value = true
agreementViewPrices.value = []
try {
let ag: any = null
if (channelId) {
const res: any = await fetchChannelAgreements(channelId)
const rows = unwrapApiList(res).map(normalizeAgreementRow)
ag = rows.find((a: any) => a.id === agreementId)
}
agreementViewData.value = ag || { id: agreementId }
const priceRes: any = await fetchChannelAgreementPrices(agreementId)
agreementViewPrices.value = normalizeAgreementPriceRows(unwrapApiList(priceRes))
} catch (e: any) {
ElMessage.error(e?.message || '加载协议详情失败')
agreementViewData.value = { id: agreementId }
} finally {
agreementViewLoading.value = false
}
}
const resetCheckupView = () => {
checkupData.value = null
checkupReserveItems.value = []
checkupActualItems.value = []
checkupLoading.value = false
}
const loadCheckupView = async () => {
if (!props.applicationId) return
checkupLoading.value = true
resetCheckupView()
try {
const res: any = await fetchPilotCheckupDetail({ applicationId: props.applicationId })
const data = res?.data ?? res
if (!data?.id) return
checkupData.value = data
const [reserveRes, actualRes]: any[] = await Promise.all([
fetchPilotCheckupReserveItems({ pilotCheckupId: data.id }),
fetchPilotCheckupActualItems({ pilotCheckupId: data.id })
])
checkupReserveItems.value = Array.isArray(reserveRes) ? reserveRes : (reserveRes?.list ?? [])
checkupActualItems.value = Array.isArray(actualRes) ? actualRes : (actualRes?.list ?? [])
} catch {
checkupData.value = null
checkupReserveItems.value = []
checkupActualItems.value = []
} finally {
checkupLoading.value = false
}
}
const loadDetail = async () => {
if (!props.applicationId) return
detailLoading.value = true
resetCheckupView()
try {
const [detailRes, patientRes] = await Promise.all([
fetchPilotApplicationDetail({ id: props.applicationId }),
fetchPilotPatient({ pilotApplicationId: props.applicationId }).catch(() => null)
])
const detail = (detailRes as any)?.data ?? detailRes ?? {}
applicationDetail.value = detail
const patientData = (patientRes as any)?.data ?? patientRes
patient.value = patientData && typeof patientData === 'object' ? patientData : {}
const needCheckup = patient.value.needCheckup === 1 || patient.value.needCheckup === '1'
if (needCheckup) {
await loadCheckupView()
}
infusionPlan.value = detail.infusionPlan || {}
infusionSchedules.value = (
Array.isArray(detail.infusionSchedules) ? detail.infusionSchedules : []
).map((s: any, i: number) => ({
...s,
_expanded: i === 0
}))
serviceOrderDetail.value = null
agreementLabel.value = ''
const orderId = detail.channelServiceOrderId
if (orderId) {
try {
const orderRes: any = await fetchChannelServiceOrderDetail(orderId)
const order = orderRes?.data ?? orderRes ?? null
serviceOrderDetail.value = order
const agreementId =
order?.channelAgreementId || detail.infusionPlan?.channelAgreementId || ''
if (agreementId && (order?.channelId || detail.channelId)) {
await resolveAgreementLabel(order.channelId || detail.channelId, agreementId)
}
} catch {
const agreementId = detail.infusionPlan?.channelAgreementId || ''
if (agreementId && detail.channelId) {
await resolveAgreementLabel(detail.channelId, agreementId)
}
}
}
} catch (e) {
console.error('加载申请单详情失败:', e)
} finally {
detailLoading.value = false
}
}
const loadInfusionMethodOptions = async () => {
try {
infusionMethodOptions.value = (await fetchDictDataOptions('szfs')) || []
} catch {
infusionMethodOptions.value = []
}
}
const handleClosed = () => {
applicationDetail.value = {}
patient.value = {}
infusionPlan.value = {}
infusionSchedules.value = []
serviceOrderDetail.value = null
agreementLabel.value = ''
resetCheckupView()
activeTab.value = 'application'
detailLoading.value = false
}
watch(
() => [props.modelValue, props.applicationId] as const,
([visible, id]) => {
if (visible && id) {
loadInfusionMethodOptions()
loadDetail()
}
}
)
</script>
<style scoped lang="scss">
.protocol-view-body {
overflow: visible;
&.is-detail-loading {
min-height: min(680px, calc(100vh - 220px));
}
}
.kpi-strip {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0;
margin-bottom: 24px;
padding: 18px 20px;
background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
border: none;
border-radius: 12px;
box-shadow: none;
&--cols5 {
grid-template-columns: repeat(5, 1fr);
}
}
.kpi-card {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 8px 16px;
background: transparent;
border-radius: 8px;
transition: background 0.2s;
&:hover {
background: rgba(255, 255, 255, 0.35);
}
}
.kpi-card__icon {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
flex-shrink: 0;
border-radius: 10px;
background: rgba(255, 255, 255, 0.72);
border: none;
color: #065f46;
font-size: 18px;
}
.kpi-card__main {
min-width: 0;
flex: 1;
}
.kpi-label {
margin-bottom: 4px;
font-size: 11px;
font-weight: 500;
color: var(--mint-text-muted, #334155);
}
.kpi-value {
font-size: 15px;
font-weight: 600;
color: #0f172a;
display: flex;
align-items: center;
gap: 6px;
&--emphasis {
font-size: 16px;
font-weight: 700;
color: #047857;
letter-spacing: 0.02em;
}
}
.section-card {
border-radius: 12px;
padding: 22px 24px;
margin-bottom: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
background: #fff;
&--green {
background: #f0fdf4;
}
}
.section-title {
display: flex;
align-items: center;
margin-bottom: 18px;
padding-bottom: 12px;
border-bottom: 1px solid #e2e8f0;
&::before {
content: '';
width: 3px;
height: 18px;
background: #047857;
border-radius: 2px;
margin-right: 10px;
flex-shrink: 0;
}
h3 {
margin: 0;
font-size: 15px;
font-weight: 600;
color: #1e293b;
}
&--banner {
margin: -22px -24px 18px;
padding: 10px 24px;
border-bottom: 1px solid rgba(16, 185, 129, 0.12);
border-radius: 12px 12px 0 0;
background: var(--primary-bg, #ecfdf5);
h3 {
color: var(--primary-dark, #059669);
}
}
}
.data-grid {
display: grid;
gap: 14px 20px;
&--3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
&--4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
&--5 {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
}
.data-item {
min-width: 0;
&--full {
grid-column: 1 / -1;
}
&--remark {
margin-top: 14px;
}
}
.data-label {
font-size: 12px;
color: var(--mint-text-muted, #334155);
margin-bottom: 3px;
}
.data-value {
font-size: 14px;
color: #1e293b;
font-weight: 500;
word-break: break-word;
&--muted {
color: var(--mint-text-muted, #334155);
font-weight: 400;
}
&--amount {
color: #065f46;
font-weight: 600;
}
}
.infusion-order-meta {
margin-bottom: 16px;
padding-bottom: 16px;
border-bottom: 1px dashed #e2e8f0;
}
.attachment-row {
margin-top: 14px;
padding-top: 14px;
border-top: 1px dashed #e2e8f0;
display: flex;
flex-direction: column;
gap: 8px;
}
.schedule-payment-block {
margin-top: 16px;
padding-top: 16px;
border-top: 1px dashed #e2e8f0;
}
.checkup-block-gap {
height: 16px;
}
.view-inner-table-wrap.list-body.list-wrap {
border: 1px solid #e2e8f0;
border-radius: 10px;
overflow: hidden;
background: #fff;
:deep(.el-table) {
--el-table-header-bg-color: #f8fafc;
--el-table-border-color: #e2e8f0;
--el-table-row-hover-bg-color: #f0fdf4;
font-size: 14px;
}
:deep(.el-table th.el-table__cell) {
font-size: 12px;
font-weight: 600;
color: var(--mint-text-muted, #334155);
}
:deep(.el-empty) {
padding: 20px 0;
}
}
.section-subtitle {
display: flex;
align-items: center;
font-size: 13px;
font-weight: 600;
color: #334155;
margin-bottom: 12px;
&::before {
content: '';
width: 3px;
height: 14px;
background: #047857;
border-radius: 2px;
margin-right: 8px;
flex-shrink: 0;
}
}
.schedule-block {
margin-top: 20px;
}
.schedule-details {
display: flex;
flex-direction: column;
gap: 12px;
}
.schedule-card {
border: 1px solid #e2e8f0;
border-radius: 10px;
overflow: hidden;
&.expanded {
border-color: #a8d4c4;
}
}
.schedule-header {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 18px;
cursor: pointer;
background: #f8fafc;
&:hover {
background: #f0fdf4;
}
}
.schedule-chevron {
font-size: 12px;
color: var(--mint-text-muted, #334155);
transition: transform 0.3s;
}
.expanded .schedule-chevron {
transform: rotate(90deg);
}
.schedule-title {
font-size: 14px;
font-weight: 500;
color: #1e293b;
}
.schedule-body-inner {
padding: 18px;
}
.schedule-status-grid {
margin-top: 12px;
}
.cell-product-block {
margin-top: 14px;
}
.view-inner-table-wrap {
margin-top: 4px;
}
.schedule-amount-summary {
margin-top: 12px;
padding: 10px 12px;
font-size: 13px;
color: var(--mint-text-muted, #334155);
background: #f8fafc;
border-radius: 8px;
border: 1px solid #e2e8f0;
&__value {
font-weight: 600;
color: #065f46;
}
}
.preview-container {
text-align: center;
}
.field-with-action {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
&__main {
flex: 1;
min-width: 0;
}
&__btn {
flex-shrink: 0;
}
}
.agreement-display {
font-size: 14px;
color: #1e293b;
font-weight: 500;
line-height: 1.5;
}
</style>