Merge pull request 'refactor: 将基础实验展示名统一改为临床科研' (#155) from codex/issue-rename-basic-experiment-96cc7a73d023 into V2.0

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cykjandCursor committed 2026-11-20 15:05:02 +08:00
commit f7890f5560
37 files changed
+78 -64

No files matched your search

+2 -2
View File
@@ -56,9 +56,9 @@ export interface ProductionWorkOrderItem {
/** 出库工单:输注计划总次数 */
totalCourseCount?: number | null
infusionTime?: string
/** 基础实验出库:课题名称(列表 enrich) */
/** 临床科研出库:课题名称(列表 enrich) */
projectTitle?: string
/** 基础实验出库:客户名称(列表 enrich) */
/** 临床科研出库:客户名称(列表 enrich) */
customerName?: string
/** 出库工单:输注计划细胞类型(列表 enrich,无产品明细时兜底) */
cellType?: string
+1 -1
View File
@@ -10,7 +10,7 @@ export const bizLabels: Record<BizType, string> = {
cell_storage: '细胞存储',
research_donation: '科研捐赠',
pilot_service: '中试服务',
basic_experiment: '基础实验'
basic_experiment: '临床科研'
}
export type ProjectOption = {
id: string
+1 -1
View File
@@ -751,7 +751,7 @@ body {
}
}
// 面板级步骤胶囊 Tab(样本信息管理 / 采集协议单 / 中试·基础实验申请单等)
// 面板级步骤胶囊 Tab(样本信息管理 / 采集协议单 / 中试·临床科研申请单等)
.pill-tab-nav {
padding: 16px 20px 0;
display: flex;
+1 -1
View File
@@ -60,7 +60,7 @@ export const PILOT_BIZ_TYPE_CONFIG: Record<PilotBizType, PilotBizTypeConfig> = {
statusLabel: '输注状态'
},
basic_experiment: {
label: '基础实验',
label: '临床科研',
applicationNoPrefix: 'JCSY',
showChannel: false,
showPatient: false,
+6 -6
View File
@@ -60,8 +60,8 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
},
// ═══════════════════════════════════════════════════════════════════════════
// 1. 市场 (menu:market)
// 二级菜单:存储服务、科研捐赠、市场基础信息、基础实验、器械销售
// (主推存储/捐赠在前;中试/基础实验及关联基础信息后置;器械销售在末位)
// 二级菜单:存储服务、科研捐赠、市场基础信息、临床科研、器械销售
// (主推存储/捐赠在前;中试/临床科研及关联基础信息后置;器械销售在末位)
// ═══════════════════════════════════════════════════════════════════════════
{
id: 'TOP00000000000000000000000000001',
@@ -329,7 +329,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
]
},
// ── 市场基础信息(前段:存储/捐赠相关;后段:中试/基础实验相关)──
// ── 市场基础信息(前段:存储/捐赠相关;后段:中试/临床科研相关)──
{
id: 'MKT00000000000000000000000000001',
name: 'MarketInfo',
@@ -553,14 +553,14 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
]
},
// ── 基础实验 ──────────────────────────────────────────────────────────
// ── 临床科研 ──────────────────────────────────────────────────────────
{
id: 'BEX00000000000000000000000000001',
name: 'BasicExperiment',
path: 'basic-experiment',
component: '',
meta: {
title: '基础实验',
title: '临床科研',
icon: 'ri:flask-line',
keepAlive: false,
roles: ['admin']
@@ -572,7 +572,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
path: 'application',
component: '/pilot-service/pilot-application/index',
meta: {
title: '基础实验申请单',
title: '临床科研申请单',
keepAlive: true,
menuCode: 'basic-experiment:application:list'
},
@@ -32,7 +32,7 @@ const SECTION_TITLES: Record<
schedule: '临床应用输注计划信息'
},
basic_experiment: {
application: '基础实验申请信息',
application: '临床科研申请信息',
schedule: '交付计划信息'
}
}
@@ -25,7 +25,7 @@ const CATEGORY_LABELS: Record<ProductionWorkOrderCategoryKey, string> = {
inbound_cell_storage: '细胞存储',
inbound_research_donation: '科研捐赠',
outbound_pilot_service: '中试服务',
outbound_basic_experiment: '基础实验',
outbound_basic_experiment: '临床科研',
temporary: '临时'
}
@@ -59,7 +59,7 @@ export const PRODUCTION_WORK_ORDER_TABS: ProductionWorkOrderTabConfig[] = [
},
{
key: 'outbound_basic_experiment',
label: '基础实验生产',
label: '临床科研生产',
group: 'outbound',
workOrderType: 'outbound',
bizType: 'basic_experiment',
@@ -24,7 +24,7 @@ const CATEGORY_LABELS: Record<QcWorkOrderCategoryKey, string> = {
inbound_cell_storage: '细胞存储',
inbound_research_donation: '科研捐赠',
outbound_pilot_service: '中试服务',
outbound_basic_experiment: '基础实验',
outbound_basic_experiment: '临床科研',
temporary: '临时'
}
+1 -1
View File
@@ -59,7 +59,7 @@ export const QC_WORK_ORDER_TABS: QcWorkOrderTabConfig[] = [
},
{
key: 'outbound_basic_experiment',
label: '基础实验质检',
label: '临床科研质检',
group: 'outbound',
workOrderType: 'outbound',
bizType: 'basic_experiment',
+3 -3
View File
@@ -228,7 +228,7 @@ export const receptionSource: StatusRegistry = {
outbound: { label: '出库', tagType: 'primary' },
pilot_service: { label: '中试服务', tagType: 'primary' },
clinical_application: { label: '临床应用', tagType: 'warning' },
basic_experiment: { label: '基础实验', tagType: 'primary' }
basic_experiment: { label: '临床科研', tagType: 'primary' }
}
export const receptionSourceLabel = createLabelGetter(receptionSource)
export const receptionSourceTagType = createTagTypeGetter(receptionSource)
@@ -386,7 +386,7 @@ export const agreementType: StatusRegistry = {
kyxy: { label: '框架协议', tagType: 'primary' },
zsxy: { label: '中试协议', tagType: 'success' },
lcxy: { label: '临床协议', tagType: 'warning' },
jcsy: { label: '基础实验', tagType: 'primary' }
jcsy: { label: '临床科研', tagType: 'primary' }
}
export const agreementTypeLabel = createLabelGetter(agreementType)
export const agreementTypeTagType = createTagTypeGetter(agreementType)
@@ -761,7 +761,7 @@ export function bizTypeLabel(type: string): string {
const map: Record<string, string> = {
pilot_service: '中试服务',
clinical_application: '临床应用',
basic_experiment: '基础实验'
basic_experiment: '临床科研'
}
return map[type] || type || '-'
}
@@ -288,7 +288,7 @@
const contextSections: ViewSection[] = basic
? [
{
title: '基础实验申请信息',
title: '临床科研申请信息',
fields: [
{ label: '申请单号', value: app.applicationNo || d.applicationNo || '—' },
{ label: '课题名称', value: app.projectTitle || d.projectTitle || '—' },
@@ -256,7 +256,7 @@
total: number
selectedIds: string[]
pickupTimeLabel: string
/** 中试/临床展示患者;基础实验展示课题与客户 */
/** 中试/临床展示患者;临床科研展示课题与客户 */
showPatient?: boolean
bizType?: string
}>()
@@ -1,4 +1,4 @@
<!-- 中试/临床/基础实验申请单页:Tab 由 bizType 策略配置驱动 -->
<!-- 中试/临床/临床科研申请单页:Tab 由 bizType 策略配置驱动 -->
<template>
<div class="page-container">
<section class="panel">
@@ -1,9 +1,9 @@
<!-- 基础实验生产工单 — 查看详情 -->
<!-- 临床科研生产工单 — 查看详情 -->
<!-- eslint-disable vue/no-v-model-argument -->
<template>
<ProductionWorkOrderViewDialogFrame
v-model:visible="dialogVisible"
title="基础实验生产工单详情"
title="临床科研生产工单详情"
:loading="loading"
:detail="detail"
:sections="sections"
@@ -10,7 +10,7 @@ export const assignmentTabs: { key: AssignmentBizType; title: string }[] = [
{ key: 'cell_storage', title: '细胞存储' },
{ key: 'research_donation', title: '科研捐赠' },
{ key: 'pilot_service', title: '中试服务' },
{ key: 'basic_experiment', title: '基础实验' }
{ key: 'basic_experiment', title: '临床科研' }
]
const collectionColumns: AssignmentColumn[] = [
@@ -1,4 +1,4 @@
<!-- 质检工单 · 用户费用摘要条(采集协议 / 基础实验) -->
<!-- 质检工单 · 用户费用摘要条(采集协议 / 临床科研) -->
<template>
<div v-if="visible" class="qc-fee-summary">
<span class="qc-fee-summary__label">{{ label }}</span>
@@ -1,9 +1,9 @@
<!-- 基础实验出库质检工单 — 查看详情 -->
<!-- 临床科研出库质检工单 — 查看详情 -->
<!-- eslint-disable vue/no-v-model-argument -->
<template>
<QcWorkOrderSystemViewDialog
v-model:visible="dialogVisible"
title="基础实验出库质检工单详情"
title="临床科研出库质检工单详情"
width="1200px"
:grid-columns="4"
compact
@@ -75,7 +75,7 @@
defineProps<{
products?: OutboundQcDetail['products']
/** 基础实验时产品状态 dtz 展示为「待交付」 */
/** 临床科研时产品状态 dtz 展示为「待交付」 */
bizType?: string
}>()
</script>