feat(market): 新增委托加工业务并复用临床科研流程
独立 biz_type=contract_processing,申请/缴费/出库与临床科研共用逻辑; 业务子类型支持胎盘冻干粉/脂肪外泌体/NK/MSC/其他自定义,并补充菜单与生产质检 Tab。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
964384108a
commit
9b5e68f4ae
58 files changed
+717
-116
No files matched your search
@@ -594,6 +594,7 @@
|
||||
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import { getPilotBizConfig, resolvePilotBizType } from '@/config/pilot-biz-type'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
defineOptions({ name: 'ClinicalRefundConfirmTab' })
|
||||
|
||||
@@ -602,7 +603,7 @@
|
||||
const props = defineProps<{ bizType?: string }>()
|
||||
const bizConfig = computed(() => getPilotBizConfig(props.bizType))
|
||||
const isBasicExperiment = computed(
|
||||
() => resolvePilotBizType(props.bizType) === 'basic_experiment'
|
||||
() => isResearchLikeBiz(props.bizType)
|
||||
)
|
||||
const pickupTimeLabel = computed(() => bizConfig.value.pickupTimeLabel)
|
||||
const keywordPlaceholder = computed(() =>
|
||||
|
||||
@@ -636,13 +636,14 @@
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import { getPilotBizConfig, resolvePilotBizType } from '@/config/pilot-biz-type'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
defineOptions({ name: 'ClinicalPaymentConfirm' })
|
||||
|
||||
const props = defineProps<{ bizType?: string }>()
|
||||
const bizConfig = computed(() => getPilotBizConfig(props.bizType))
|
||||
const effectiveBizType = computed(() => resolvePilotBizType(props.bizType))
|
||||
const isBasicExperiment = computed(() => effectiveBizType.value === 'basic_experiment')
|
||||
const isBasicExperiment = computed(() => isResearchLikeBiz(effectiveBizType.value))
|
||||
const pickupTimeLabel = computed(() => bizConfig.value.pickupTimeLabel)
|
||||
const route = useRoute()
|
||||
const mainTab = ref<'payment' | 'refund'>('payment')
|
||||
|
||||
+2
-1
@@ -247,6 +247,7 @@
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { getPilotBizConfig, resolvePilotBizType } from '@/config/pilot-biz-type'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
type AttachmentItem = {
|
||||
id: string
|
||||
@@ -269,7 +270,7 @@
|
||||
() => getPilotBizConfig(resolvePilotBizType(props.bizType)).pickupTimeLabel
|
||||
)
|
||||
const isBasicExperiment = computed(
|
||||
() => resolvePilotBizType(props.bizType) === 'basic_experiment'
|
||||
() => isResearchLikeBiz(props.bizType)
|
||||
)
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
||||
+2
-1
@@ -480,6 +480,7 @@
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import { fetchAllPagedRecords } from '@/utils/fetch-paged-list'
|
||||
import { getPilotBizConfig } from '@/config/pilot-biz-type'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: boolean
|
||||
@@ -529,7 +530,7 @@
|
||||
const optionsLoadIssue = ref('')
|
||||
|
||||
const bizConfig = computed(() => getPilotBizConfig(scheduleContext.bizType))
|
||||
const isBasicExperiment = computed(() => scheduleContext.bizType === 'basic_experiment')
|
||||
const isBasicExperiment = computed(() => isResearchLikeBiz(scheduleContext.bizType))
|
||||
|
||||
const applicationContextLabel = computed(() => {
|
||||
const no = scheduleContext.applicationNo?.trim()
|
||||
|
||||
+2
-2
@@ -133,6 +133,7 @@
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { getPilotBizConfig } from '@/config/pilot-biz-type'
|
||||
import { resolveOutboundViewVariant } from '@/utils/outbound-qc-pilot-view-sections'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
defineOptions({ name: 'ScheduleViewDialog' })
|
||||
|
||||
@@ -179,8 +180,7 @@
|
||||
|
||||
const isBasicExperiment = computed(
|
||||
() =>
|
||||
detail.value?.application?.bizType === 'basic_experiment' ||
|
||||
detail.value?.bizType === 'basic_experiment'
|
||||
isResearchLikeBiz(detail.value?.application?.bizType || detail.value?.bizType)
|
||||
)
|
||||
|
||||
const scheduleBizType = computed(() =>
|
||||
|
||||
+4
-4
@@ -49,7 +49,7 @@
|
||||
</div>
|
||||
<dl
|
||||
class="review-context-grid"
|
||||
:class="{ 'review-context-grid--cols3': reviewBizType === 'basic_experiment' }"
|
||||
:class="{ 'review-context-grid--cols3': isResearchLikeReview }"
|
||||
>
|
||||
<div
|
||||
v-for="item in reviewContextItems"
|
||||
@@ -230,6 +230,7 @@
|
||||
type OutboundReleaseReviewDetail
|
||||
} from '@/api/outbound-release-review'
|
||||
import { getPilotBizConfig, resolvePilotBizType } from '@/config/pilot-biz-type'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
import {
|
||||
bizTypeLabel,
|
||||
qcStatusLabel,
|
||||
@@ -275,6 +276,7 @@
|
||||
const reviewBizType = computed(() =>
|
||||
resolvePilotBizType(singleDetail.value?.application?.bizType)
|
||||
)
|
||||
const isResearchLikeReview = computed(() => isResearchLikeBiz(reviewBizType.value))
|
||||
const reviewBizConfig = computed(() => getPilotBizConfig(reviewBizType.value))
|
||||
const reviewBizTypeLabel = computed(() => {
|
||||
const fromApi = singleDetail.value?.application?.bizTypeLabel
|
||||
@@ -371,9 +373,7 @@
|
||||
const d = singleDetail.value
|
||||
if (!d) return [] as Array<{ label: string; value: string; span?: boolean }>
|
||||
const pickupLabel = reviewBizConfig.value.pickupTimeLabel
|
||||
const isBasicExperiment = reviewBizType.value === 'basic_experiment'
|
||||
|
||||
if (isBasicExperiment) {
|
||||
if (isResearchLikeReview.value) {
|
||||
return [
|
||||
{ label: '课题名称', value: d.application?.projectTitle || '—' },
|
||||
{ label: '客户名称', value: d.application?.customerName || '—' },
|
||||
|
||||
@@ -150,6 +150,7 @@
|
||||
type OutboundReleaseReview
|
||||
} from '@/api/outbound-release-review'
|
||||
import { getPilotBizConfig, resolvePilotBizType } from '@/config/pilot-biz-type'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
defineOptions({ name: 'PilotServiceOutboundReleaseReview' })
|
||||
|
||||
@@ -170,7 +171,7 @@
|
||||
const effectiveBizType = computed(() => resolvePilotBizType(props.bizType))
|
||||
const bizConfig = computed(() => getPilotBizConfig(effectiveBizType.value))
|
||||
const pickupTimeLabel = computed(() => bizConfig.value.pickupTimeLabel)
|
||||
const isBasicExperiment = computed(() => effectiveBizType.value === 'basic_experiment')
|
||||
const isBasicExperiment = computed(() => isResearchLikeBiz(effectiveBizType.value))
|
||||
const keywordPlaceholder = computed(() =>
|
||||
isBasicExperiment.value ? '申请单号/课题名称/客户名称' : '申请单号/患者姓名'
|
||||
)
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
:required="!isEdit && projectRequired"
|
||||
><ProjectSelect
|
||||
v-model="formData.projectId"
|
||||
:biz-type="isBasicExperiment ? 'basic_experiment' : 'pilot_service'"
|
||||
:biz-type="isBasicExperiment ? props.bizType || 'basic_experiment' : 'pilot_service'"
|
||||
:disabled="isEdit"
|
||||
:project-name="formData.projectName"
|
||||
@required="projectRequired = $event"
|
||||
@@ -71,21 +71,35 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<template v-if="isBasicExperiment">
|
||||
<el-form-item label="业务类型" prop="researchCategory">
|
||||
<el-form-item label="业务类型" prop="researchCategorySelect">
|
||||
<el-select
|
||||
v-model="formData.researchCategory"
|
||||
v-model="researchCategorySelect"
|
||||
class="w-full"
|
||||
clearable
|
||||
placeholder="请选择业务类型"
|
||||
@change="onResearchCategorySelectChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="opt in clinicalResearchCategoryOptions"
|
||||
v-for="opt in researchCategoryOptions"
|
||||
:key="opt.value"
|
||||
:label="opt.label"
|
||||
:value="opt.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="showResearchCategoryOther"
|
||||
label="自定义业务类型"
|
||||
prop="researchCategoryCustom"
|
||||
>
|
||||
<el-input
|
||||
v-model="researchCategoryCustom"
|
||||
maxlength="64"
|
||||
show-word-limit
|
||||
placeholder="请输入业务类型"
|
||||
@input="syncResearchCategoryFromOther"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="渠道" prop="channelId">
|
||||
<el-select
|
||||
v-model="formData.channelId"
|
||||
@@ -1321,12 +1335,15 @@
|
||||
} from '@/utils/status-tag-registry'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import { getPilotBizConfig } from '@/config/pilot-biz-type'
|
||||
import { CLINICAL_RESEARCH_CATEGORY_OPTIONS } from '@/constants/clinical-research-category'
|
||||
import {
|
||||
RESEARCH_CATEGORY_OTHER_VALUE,
|
||||
isFixedContractProcessingCategory,
|
||||
researchCategoryOptionsForBiz
|
||||
} from '@/constants/clinical-research-category'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
defineOptions({ name: 'ApplicationFormDialog' })
|
||||
|
||||
const clinicalResearchCategoryOptions = CLINICAL_RESEARCH_CATEGORY_OPTIONS
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: boolean
|
||||
editId: string | null
|
||||
@@ -1342,7 +1359,53 @@
|
||||
const isEdit = computed(() => !!props.editId)
|
||||
const bizConfig = computed(() => getPilotBizConfig(props.bizType))
|
||||
const isClinical = computed(() => props.bizType === 'clinical_application')
|
||||
const isBasicExperiment = computed(() => props.bizType === 'basic_experiment')
|
||||
const isBasicExperiment = computed(() => isResearchLikeBiz(props.bizType))
|
||||
const researchCategoryOptions = computed(() => researchCategoryOptionsForBiz(props.bizType))
|
||||
const researchCategorySelect = ref('')
|
||||
const researchCategoryCustom = ref('')
|
||||
const showResearchCategoryOther = computed(
|
||||
() =>
|
||||
props.bizType === 'contract_processing' &&
|
||||
researchCategorySelect.value === RESEARCH_CATEGORY_OTHER_VALUE
|
||||
)
|
||||
|
||||
function applyResearchCategoryToForm() {
|
||||
if (showResearchCategoryOther.value) {
|
||||
formData.researchCategory = (researchCategoryCustom.value || '').trim()
|
||||
} else {
|
||||
formData.researchCategory = researchCategorySelect.value || ''
|
||||
}
|
||||
}
|
||||
|
||||
function onResearchCategorySelectChange() {
|
||||
if (!showResearchCategoryOther.value) {
|
||||
researchCategoryCustom.value = ''
|
||||
}
|
||||
applyResearchCategoryToForm()
|
||||
}
|
||||
|
||||
function syncResearchCategoryFromOther() {
|
||||
applyResearchCategoryToForm()
|
||||
}
|
||||
|
||||
function hydrateResearchCategorySelect(code?: string | null) {
|
||||
const value = (code || '').trim()
|
||||
if (!value) {
|
||||
researchCategorySelect.value = ''
|
||||
researchCategoryCustom.value = ''
|
||||
formData.researchCategory = ''
|
||||
return
|
||||
}
|
||||
if (props.bizType === 'contract_processing' && !isFixedContractProcessingCategory(value)) {
|
||||
researchCategorySelect.value = RESEARCH_CATEGORY_OTHER_VALUE
|
||||
researchCategoryCustom.value = value
|
||||
formData.researchCategory = value
|
||||
return
|
||||
}
|
||||
researchCategorySelect.value = value
|
||||
researchCategoryCustom.value = ''
|
||||
formData.researchCategory = value
|
||||
}
|
||||
|
||||
// ── Tabs ───────────────────────────────────────────────────────────────
|
||||
const formTabs = computed(() => {
|
||||
@@ -1412,7 +1475,42 @@
|
||||
channelServiceOrderId: [
|
||||
{ required: true, message: '请选择服务订单', trigger: 'change' }
|
||||
],
|
||||
researchCategory: [{ required: true, message: '请选择业务类型', trigger: 'change' }],
|
||||
researchCategorySelect: [
|
||||
{
|
||||
validator: (_rule: any, _value: any, callback: (e?: Error) => void) => {
|
||||
if (!isBasicExperiment.value) {
|
||||
callback()
|
||||
return
|
||||
}
|
||||
if (!researchCategorySelect.value) {
|
||||
callback(new Error('请选择业务类型'))
|
||||
return
|
||||
}
|
||||
if (showResearchCategoryOther.value && !(researchCategoryCustom.value || '').trim()) {
|
||||
callback(new Error('请填写自定义业务类型'))
|
||||
return
|
||||
}
|
||||
callback()
|
||||
},
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
researchCategoryCustom: [
|
||||
{
|
||||
validator: (_rule: any, _value: any, callback: (e?: Error) => void) => {
|
||||
if (!showResearchCategoryOther.value) {
|
||||
callback()
|
||||
return
|
||||
}
|
||||
if (!(researchCategoryCustom.value || '').trim()) {
|
||||
callback(new Error('请填写自定义业务类型'))
|
||||
return
|
||||
}
|
||||
callback()
|
||||
},
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
projectTitle: [{ required: true, message: '请填写课题名称', trigger: 'blur' }],
|
||||
customerName: [{ required: true, message: '请填写客户名称', trigger: 'blur' }],
|
||||
customerContact: [{ required: true, message: '请填写客户联系人', trigger: 'blur' }],
|
||||
@@ -2842,7 +2940,7 @@
|
||||
formData.customerName = ''
|
||||
formData.customerContact = ''
|
||||
formData.customerPhone = ''
|
||||
formData.researchCategory = ''
|
||||
hydrateResearchCategorySelect('')
|
||||
saleProductLines.value = []
|
||||
saleLineSeq = 0
|
||||
patientForm.customerId = ''
|
||||
@@ -2895,7 +2993,7 @@
|
||||
formData.customerName = detail.customerName || ''
|
||||
formData.customerContact = detail.customerContact || ''
|
||||
formData.customerPhone = detail.customerPhone || ''
|
||||
formData.researchCategory = detail.researchCategory || ''
|
||||
hydrateResearchCategorySelect(detail.researchCategory || '')
|
||||
|
||||
if (detail.consentAttachmentFiles?.length) {
|
||||
consentFileList.value = mapAttachmentFilesFromDetail(detail.consentAttachmentFiles)
|
||||
@@ -3108,6 +3206,7 @@
|
||||
}
|
||||
|
||||
if (isBasicExperiment.value) {
|
||||
applyResearchCategoryToForm()
|
||||
payload.researchCategory = formData.researchCategory || undefined
|
||||
payload.channelId = formData.channelId || undefined
|
||||
payload.projectTitle = formData.projectTitle || undefined
|
||||
|
||||
@@ -899,6 +899,7 @@
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import { getPilotBizConfig } from '@/config/pilot-biz-type'
|
||||
import { clinicalResearchCategoryLabel } from '@/constants/clinical-research-category'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
import {
|
||||
applicationStatusLabel,
|
||||
applicationStatusTagType,
|
||||
@@ -994,7 +995,7 @@
|
||||
const isYfkOrder = computed(() => serviceOrderDetail.value?.orderType === 'yfk')
|
||||
const isGmcpOrder = computed(() => serviceOrderDetail.value?.orderType === 'gmcp')
|
||||
const isBasicExperiment = computed(
|
||||
() => applicationDetail.value?.bizType === 'basic_experiment'
|
||||
() => isResearchLikeBiz(applicationDetail.value?.bizType)
|
||||
)
|
||||
|
||||
const settlementModeLabel = computed(() => {
|
||||
|
||||
@@ -544,12 +544,13 @@
|
||||
|
||||
const transferTypeOptions = ref<Api.Dict.DictDataOption[]>([])
|
||||
import { getPilotBizConfig, resolvePilotBizType } from '@/config/pilot-biz-type'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
defineOptions({ name: 'ClinicalPaymentTab' })
|
||||
|
||||
const props = defineProps<{ bizType?: string }>()
|
||||
const bizConfig = computed(() => getPilotBizConfig(props.bizType))
|
||||
const isBasicExperiment = computed(() => props.bizType === 'basic_experiment')
|
||||
const isBasicExperiment = computed(() => isResearchLikeBiz(props.bizType))
|
||||
const pickupTimeLabel = computed(() => bizConfig.value.pickupTimeLabel)
|
||||
|
||||
type PayStatusKey = 'dfj' | 'jfqrz' | 'yjf' | 'tfqrz' | 'ytf'
|
||||
|
||||
@@ -399,13 +399,14 @@
|
||||
import ScheduleCancelDialog from '../infusion-schedule-management/ScheduleCancelDialog.vue'
|
||||
import InfusionScheduleHandoverDialog from '../infusion-schedule-management/InfusionScheduleHandoverDialog.vue'
|
||||
import { getPilotBizConfig, resolvePilotBizType } from '@/config/pilot-biz-type'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
defineOptions({ name: 'InfusionScheduleTab' })
|
||||
|
||||
const props = defineProps<{ bizType?: string }>()
|
||||
const bizConfig = computed(() => getPilotBizConfig(props.bizType))
|
||||
const isClinical = computed(() => props.bizType === 'clinical_application')
|
||||
const isBasicExperiment = computed(() => props.bizType === 'basic_experiment')
|
||||
const isBasicExperiment = computed(() => isResearchLikeBiz(props.bizType))
|
||||
const keywordPlaceholder = computed(() =>
|
||||
isBasicExperiment.value ? '申请单号/课题名称/客户名称' : '申请单号/患者姓名/渠道名称'
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
team
|
||||
v-model="teamFilter"
|
||||
:biz-type="
|
||||
props.bizType === 'basic_experiment'
|
||||
isResearchLikeBiz(props.bizType)
|
||||
? 'basic_experiment'
|
||||
: 'pilot_service'
|
||||
"
|
||||
@@ -18,7 +18,7 @@
|
||||
><ProjectSelect filter
|
||||
v-model="projectFilter"
|
||||
:biz-type="
|
||||
props.bizType === 'basic_experiment'
|
||||
isResearchLikeBiz(props.bizType)
|
||||
? 'basic_experiment'
|
||||
: 'pilot_service'
|
||||
"
|
||||
@@ -342,13 +342,14 @@
|
||||
import { fetchAllPagedRecords } from '@/utils/fetch-paged-list'
|
||||
import { getPilotBizConfig, resolvePilotBizType } from '@/config/pilot-biz-type'
|
||||
import { clinicalResearchCategoryLabel } from '@/constants/clinical-research-category'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
defineOptions({ name: 'PilotApplicationTab' })
|
||||
|
||||
const props = defineProps<{ bizType?: string }>()
|
||||
const bizConfig = computed(() => getPilotBizConfig(props.bizType))
|
||||
const isClinical = computed(() => props.bizType === 'clinical_application')
|
||||
const isBasicExperiment = computed(() => props.bizType === 'basic_experiment')
|
||||
const isBasicExperiment = computed(() => isResearchLikeBiz(props.bizType))
|
||||
const keywordPlaceholder = computed(() =>
|
||||
isBasicExperiment.value ? '申请单号/课题名称/客户名称' : '申请单号/订单名称/患者姓名'
|
||||
)
|
||||
|
||||
+2
-1
@@ -390,6 +390,7 @@
|
||||
import ProductionStepBadge from './ProductionStepBadge.vue'
|
||||
import QcWorkOrderFeeSummaryBar from '@/views/quality-inspection/qc-work-order/QcWorkOrderFeeSummaryBar.vue'
|
||||
import QcWorkOrderProtocolPaymentPanel from '@/views/quality-inspection/qc-work-order/QcWorkOrderProtocolPaymentPanel.vue'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
defineOptions({ name: 'ProductionWorkOrderCardList' })
|
||||
|
||||
@@ -663,7 +664,7 @@
|
||||
if (row.workOrderStatus === 'yzf') return false
|
||||
const tabKey = resolveEffectiveRowTabKey(listTabKey.value, row)
|
||||
if (tabKey === 'outbound_basic_experiment') return true
|
||||
return row.bizType === 'basic_experiment' && (row.workOrderType || '') === 'outbound'
|
||||
return isResearchLikeBiz(row.bizType) && (row.workOrderType || '') === 'outbound'
|
||||
}
|
||||
|
||||
function canVoidWorkOrder(row: ProductionWorkOrderItem) {
|
||||
|
||||
+8
-3
@@ -17,7 +17,7 @@ import type { TagType } from '@/utils/status-tag-registry'
|
||||
import {
|
||||
buildOutboundPilotContextSections,
|
||||
resolveOutboundViewVariant,
|
||||
type OutboundViewVariant
|
||||
type OutboundViewContextVariant
|
||||
} from '@/utils/outbound-qc-pilot-view-sections'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import {
|
||||
@@ -25,6 +25,7 @@ import {
|
||||
buildQcReceptionViewFields
|
||||
} from '@/utils/sample-reception-view-sections'
|
||||
import type { ProductionReceptionRecord } from '@/utils/sample-production-reception-fields'
|
||||
import { isResearchLikeBiz } from '@/utils/research-like-biz'
|
||||
|
||||
function woStatusTag(status: string) {
|
||||
const map: Record<string, { label: string; type: TagType }> = {
|
||||
@@ -181,7 +182,11 @@ function buildFeeSection(d: ProductionWorkOrderDetail): ViewSection {
|
||||
}
|
||||
}
|
||||
|
||||
function buildOutboundSections(d: ProductionWorkOrderDetail, variant: OutboundViewVariant, showFee: boolean) {
|
||||
function buildOutboundSections(
|
||||
d: ProductionWorkOrderDetail,
|
||||
variant: OutboundViewContextVariant,
|
||||
showFee: boolean
|
||||
) {
|
||||
const sections: ViewSection[] = [
|
||||
{
|
||||
title: '基本信息',
|
||||
@@ -271,6 +276,6 @@ export function isOutboundProductionView(d: ProductionWorkOrderDetail | null): b
|
||||
d?.workOrderType === 'outbound' &&
|
||||
(d.bizType === 'pilot_service' ||
|
||||
d.bizType === 'clinical_application' ||
|
||||
d.bizType === 'basic_experiment')
|
||||
isResearchLikeBiz(d.bizType))
|
||||
)
|
||||
}
|
||||
@@ -12,6 +12,7 @@ export const PRODUCTION_WORK_ORDER_TAB_COMPONENTS: Record<ProductionWorkOrderTab
|
||||
inbound_research_donation: InboundResearchDonationTab,
|
||||
outbound_pilot_service: OutboundPilotTab,
|
||||
outbound_basic_experiment: OutboundBasicExperimentTab,
|
||||
outbound_contract_processing: OutboundBasicExperimentTab,
|
||||
outbound_clinical_application: OutboundClinicalTab,
|
||||
temporary: TemporaryTab
|
||||
}
|
||||
|
||||
+1
@@ -15,6 +15,7 @@ export const PRODUCTION_WORK_ORDER_VIEW_DIALOG_COMPONENTS: Record<
|
||||
inbound_research_donation: InboundResearchDonationProductionViewDialog,
|
||||
outbound_pilot_service: OutboundPilotProductionViewDialog,
|
||||
outbound_basic_experiment: OutboundBasicExperimentProductionViewDialog,
|
||||
outbound_contract_processing: OutboundBasicExperimentProductionViewDialog,
|
||||
outbound_clinical_application: OutboundClinicalProductionViewDialog,
|
||||
temporary: TemporaryProductionViewDialog
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@ 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: '临床科研' },
|
||||
{ key: 'contract_processing', title: '委托加工' }
|
||||
]
|
||||
|
||||
const collectionColumns: AssignmentColumn[] = [
|
||||
@@ -45,6 +46,13 @@ export const assignmentColumns: Record<AssignmentBizType, AssignmentColumn[]> =
|
||||
{ prop: 'customerName', label: '客户名称', minWidth: 180 },
|
||||
{ prop: 'customerContact', label: '客户联系人', minWidth: 140 },
|
||||
{ prop: 'customerPhone', label: '联系电话', minWidth: 150 }
|
||||
],
|
||||
contract_processing: [
|
||||
{ prop: 'bizNo', label: '申请单号', minWidth: 180 },
|
||||
{ prop: 'projectTitle', label: '课题名称', minWidth: 200 },
|
||||
{ prop: 'customerName', label: '客户名称', minWidth: 180 },
|
||||
{ prop: 'customerContact', label: '客户联系人', minWidth: 140 },
|
||||
{ prop: 'customerPhone', label: '联系电话', minWidth: 150 }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -52,5 +60,6 @@ export const assignmentKeywordHints: Record<AssignmentBizType, string> = {
|
||||
cell_storage: '样本编码 / 母亲姓名、电话 / 医院 / 市场专员',
|
||||
research_donation: '样本编码 / 母亲姓名、电话 / 医院 / 市场专员',
|
||||
pilot_service: '申请单号、名称 / 渠道 / 服务订单 / 患者姓名、电话',
|
||||
basic_experiment: '申请单号 / 课题 / 客户名称、联系人、电话'
|
||||
basic_experiment: '申请单号 / 课题 / 客户名称、联系人、电话',
|
||||
contract_processing: '申请单号 / 课题 / 客户名称、联系人、电话'
|
||||
}
|
||||
@@ -96,7 +96,8 @@
|
||||
'cell_storage',
|
||||
'research_donation',
|
||||
'pilot_service',
|
||||
'basic_experiment'
|
||||
'basic_experiment',
|
||||
'contract_processing'
|
||||
]
|
||||
const applied = ref<ProjectRecord>({ groupBy: 'team' })
|
||||
const displayRows = computed(() => [
|
||||
|
||||
@@ -14,6 +14,7 @@ export const QC_WORK_ORDER_TAB_COMPONENTS: Record<QcWorkOrderTabKey, Component>
|
||||
inbound_research_donation: InboundResearchDonationTab,
|
||||
outbound_pilot_service: OutboundPilotTab,
|
||||
outbound_basic_experiment: OutboundBasicExperimentTab,
|
||||
outbound_contract_processing: OutboundBasicExperimentTab,
|
||||
outbound_clinical_application: OutboundClinicalTab,
|
||||
temporary: TemporaryTab
|
||||
}
|
||||
|
||||
+1
@@ -13,6 +13,7 @@ export const QC_WORK_ORDER_VIEW_DIALOG_COMPONENTS: Record<QcWorkOrderTabKey, Com
|
||||
inbound_research_donation: InboundResearchDonationViewDialog,
|
||||
outbound_pilot_service: OutboundPilotViewDialog,
|
||||
outbound_basic_experiment: OutboundBasicExperimentViewDialog,
|
||||
outbound_contract_processing: OutboundBasicExperimentViewDialog,
|
||||
outbound_clinical_application: OutboundClinicalViewDialog,
|
||||
temporary: TemporaryQcViewDialog
|
||||
}
|
||||
Reference in new issue
Block a user