提交
This commit is contained in:
1 parent
28f233c922
commit
038a60b09e
478 files changed
+67530
-51951
No files matched your search
@@ -724,14 +724,15 @@
|
||||
}
|
||||
|
||||
.sample-type-view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -301,6 +301,7 @@
|
||||
:sections="viewSections"
|
||||
:loading="viewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1126,6 +1126,7 @@
|
||||
:sections="viewSections"
|
||||
:loading="viewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
>
|
||||
<template #usage-details>
|
||||
<div v-if="viewUsageRecords.length" class="view-subtable-wrap">
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="protocolStatusTagType(String(row.protocolStatus || ''))" size="small">{{
|
||||
protocolStatusLabel(String(row.protocolStatus || ''))
|
||||
protocolStatusDisplayLabel(String(row.protocolStatus || ''), String(row.voidType || ''))
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -489,6 +489,7 @@
|
||||
formatPaymentDueDate,
|
||||
payModeLabel,
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
loadTransferTypeDict,
|
||||
transferTypeLabel
|
||||
|
||||
@@ -293,7 +293,7 @@
|
||||
<el-tag
|
||||
:type="protocolStatusTagType(String(row.protocolStatus || ''))"
|
||||
size="small"
|
||||
>{{ protocolStatusLabel(String(row.protocolStatus || '')) }}</el-tag
|
||||
>{{ protocolStatusDisplayLabel(String(row.protocolStatus || ''), String(row.voidType || '')) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -536,6 +536,7 @@
|
||||
formatPaymentDueDate,
|
||||
payModeLabel,
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
loadTransferTypeDict,
|
||||
transferTypeLabel
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="protocolStatusTagType(String(row.protocolStatus || ''))" size="small">{{
|
||||
protocolStatusLabel(String(row.protocolStatus || ''))
|
||||
protocolStatusDisplayLabel(String(row.protocolStatus || ''), String(row.voidType || ''))
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -328,7 +328,11 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="保险单附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isInsuranceAttachDragover }"
|
||||
v-bind="insuranceAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="attachmentUploadRef"
|
||||
@@ -391,7 +395,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="办理备注" class="form-col-span-2">
|
||||
@@ -788,13 +794,14 @@
|
||||
} from '@/api/collection-protocol'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import {
|
||||
fetchFullmoonTodoList,
|
||||
fetchUpdateFullmoonTodoInsurance,
|
||||
fetchInsuranceCompanyList,
|
||||
fetchInsuranceProjectPrices
|
||||
} from '@/api/admin'
|
||||
import { protocolStatusLabel, protocolStatusTagType } from '@/utils/status-tag-registry'
|
||||
import { protocolStatusDisplayLabel, protocolStatusTagType } from '@/utils/status-tag-registry'
|
||||
import { transferTypeLabel, transferTypeTagType, loadTransferTypeDict } from '@/utils/protocol-payment-labels'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
|
||||
@@ -1416,6 +1423,15 @@
|
||||
formData.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isInsuranceAttachDragover, dropZoneHandlers: insuranceAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/* 附件预览 */
|
||||
const previewVisible = ref(false)
|
||||
const previewUrl = ref('')
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
size="small"
|
||||
class="payment-card__status"
|
||||
>
|
||||
{{ protocolStatusLabel(String(row.protocolStatus || '')) }}
|
||||
{{ protocolStatusDisplayLabel(String(row.protocolStatus || ''), String(row.voidType || '')) }}
|
||||
</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
@@ -271,7 +271,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="上传凭证" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isReceiptAttachDragover }"
|
||||
v-bind="receiptAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -313,7 +317,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="form-tip">支持图片、文档等,多个附件将一并保存或提交。</p>
|
||||
<p class="form-tip">
|
||||
支持拖拽或点击上传图片、文档等,多个附件将一并保存或提交,单文件不超过 20MB
|
||||
</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -375,7 +381,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="退费附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isRefundAttachDragover }"
|
||||
v-bind="refundAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -413,7 +423,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="form-tip">支持图片、文档等,多个附件将一并提交。</p>
|
||||
<p class="form-tip">
|
||||
支持拖拽或点击上传图片、文档等,多个附件将一并提交,单文件不超过 20MB
|
||||
</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -499,10 +511,12 @@
|
||||
type PaymentDetailDraftPayload
|
||||
} from '@/api/collection-protocol'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { maskIdCard } from '@/utils/mask-sensitive'
|
||||
import {
|
||||
isPaymentDueWithinWarnWindow,
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
payModeLabel,
|
||||
loadTransferTypeDict,
|
||||
@@ -815,6 +829,15 @@
|
||||
receiptForm.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isReceiptAttachDragover, dropZoneHandlers: receiptAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleReceiptAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
async function saveReceiptDraft() {
|
||||
if (!receiptTargetId.value) return
|
||||
if (receiptForm.attachments.some((f) => f._uploading)) {
|
||||
@@ -929,6 +952,15 @@
|
||||
refundForm.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isRefundAttachDragover, dropZoneHandlers: refundAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleRefundAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
async function submitRefundFinance() {
|
||||
if (!refundTargetIds.value.length) return
|
||||
const valid = await refundFormRef.value?.validate().catch(() => false)
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<el-option label="生效中" value="sxz" />
|
||||
<el-option label="已过期" value="ygq" />
|
||||
<el-option label="已作废" value="yzf" />
|
||||
<el-option label="属地废弃" value="sdfq" />
|
||||
<el-option label="转科研" value="zky" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -235,7 +236,12 @@
|
||||
<div class="protocol-card__sample-line">
|
||||
<span class="protocol-card__sample-label">编码</span>
|
||||
<span class="protocol-card__sample-value protocol-card__sample-value--code">
|
||||
{{ item.sampleCode || '—' }}
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="item.sampleCode"
|
||||
:is-special="!!item.isSpecial"
|
||||
:special-remark="item.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="protocol-card__sample-line">
|
||||
@@ -360,6 +366,7 @@
|
||||
type StatusChangeTarget
|
||||
} from '../protocol/ProtocolStatusChangeDialog.vue'
|
||||
import QcWorkOrderProtocolPaymentPanel from '@/views/quality-inspection/qc-work-order/QcWorkOrderProtocolPaymentPanel.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import type { QcProtocolPaymentSummary } from '@/api/qc-work-order'
|
||||
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
|
||||
import {
|
||||
@@ -398,6 +405,8 @@
|
||||
sampleCode: string
|
||||
sampleStatus: string
|
||||
labStorageCode: string
|
||||
isSpecial?: boolean
|
||||
specialRemark?: string
|
||||
transport?: ProtocolSampleTransport | null
|
||||
}
|
||||
|
||||
@@ -443,6 +452,8 @@
|
||||
sampleCode: String(rec.sampleCode || '').trim(),
|
||||
sampleStatus: String(rec.sampleStatus || '').trim(),
|
||||
labStorageCode: String(rec.labStorageCode || '').trim(),
|
||||
isSpecial: !!rec.isSpecial,
|
||||
specialRemark: String(rec.specialRemark || '').trim(),
|
||||
transport
|
||||
}
|
||||
})
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<el-tag
|
||||
:type="protocolStatusTagType(String(row.protocolStatus || ''))"
|
||||
size="small"
|
||||
>{{ protocolStatusLabel(String(row.protocolStatus || '')) }}</el-tag
|
||||
>{{ protocolStatusDisplayLabel(String(row.protocolStatus || ''), String(row.voidType || '')) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -95,10 +95,19 @@
|
||||
<el-table-column
|
||||
prop="sampleCode"
|
||||
label="样本编码"
|
||||
min-width="130"
|
||||
min-width="160"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="labStorageCode"
|
||||
label="实验室入库编码"
|
||||
@@ -209,10 +218,11 @@
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Search, RefreshLeft, View } from '@element-plus/icons-vue'
|
||||
import ProtocolViewDialog from '../protocol/ProtocolViewDialog.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import { fetchProtocolSampleCollectionList } from '@/api/protocol-sample-collection'
|
||||
import { type CollectionProtocolRow } from '@/api/collection-protocol'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
sampleStatusLabel,
|
||||
sampleStatusTagType
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
<el-tag
|
||||
:type="protocolStatusTagType(String(row.protocolStatus || ''))"
|
||||
size="small"
|
||||
>{{ protocolStatusLabel(String(row.protocolStatus || '')) }}</el-tag
|
||||
>{{ protocolStatusDisplayLabel(String(row.protocolStatus || ''), String(row.voidType || '')) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -110,10 +110,19 @@
|
||||
<el-table-column
|
||||
prop="sampleCode"
|
||||
label="样本编码"
|
||||
min-width="130"
|
||||
min-width="170"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="labStorageCode"
|
||||
label="实验室入库编码"
|
||||
@@ -219,8 +228,9 @@
|
||||
fetchGenerateQcSms
|
||||
} from '@/api/qc-sms-notification'
|
||||
import { type CollectionProtocolRow } from '@/api/collection-protocol'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<el-tag
|
||||
:type="protocolStatusTagType(String(row.protocolStatus || ''))"
|
||||
size="small"
|
||||
>{{ protocolStatusLabel(String(row.protocolStatus || '')) }}</el-tag
|
||||
>{{ protocolStatusDisplayLabel(String(row.protocolStatus || ''), String(row.voidType || '')) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -108,10 +108,19 @@
|
||||
<el-table-column
|
||||
prop="sampleCode"
|
||||
label="样本编码"
|
||||
min-width="130"
|
||||
min-width="170"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="labStorageCode"
|
||||
label="实验室入库编码"
|
||||
@@ -235,7 +244,8 @@
|
||||
fetchGenerateSms
|
||||
} from '@/api/sample-sms-notification'
|
||||
import { type CollectionProtocolRow } from '@/api/collection-protocol'
|
||||
import { protocolStatusLabel, protocolStatusTagType } from '@/utils/status-tag-registry'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import { protocolStatusDisplayLabel, protocolStatusTagType } from '@/utils/status-tag-registry'
|
||||
|
||||
defineOptions({ name: 'CellStorageSampleReceptionInfoTab' })
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<el-tag
|
||||
:type="protocolStatusTagType(String(row.protocolStatus || ''))"
|
||||
size="small"
|
||||
>{{ protocolStatusLabel(String(row.protocolStatus || '')) }}</el-tag
|
||||
>{{ protocolStatusDisplayLabel(String(row.protocolStatus || ''), String(row.voidType || '')) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -207,7 +207,11 @@
|
||||
<el-input :model-value="uploadRow?.motherName" disabled />
|
||||
</el-form-item>
|
||||
<el-form-item label="储存证附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isCertAttachDragover }"
|
||||
v-bind="certAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="certAttachmentUploadRef"
|
||||
@@ -270,7 +274,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<div class="form-grid-2">
|
||||
@@ -365,8 +371,9 @@
|
||||
} from '@/api/collection-protocol'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { maskIdCard } from '@/utils/mask-sensitive'
|
||||
import { protocolStatusLabel, protocolStatusTagType } from '@/utils/status-tag-registry'
|
||||
import { protocolStatusDisplayLabel, protocolStatusTagType } from '@/utils/status-tag-registry'
|
||||
|
||||
interface CertAttachmentItem {
|
||||
id: string
|
||||
@@ -577,6 +584,15 @@
|
||||
certAttachments.value.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isCertAttachDragover, dropZoneHandlers: certAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleCertAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
function handlePreviewAttachment(file: CertAttachmentItem) {
|
||||
if (file._uploading) return
|
||||
previewUrl.value = fullFileUrl(file.fileUrl)
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<el-tag
|
||||
:type="protocolStatusTagType(String(row.protocolStatus || ''))"
|
||||
size="small"
|
||||
>{{ protocolStatusLabel(String(row.protocolStatus || '')) }}</el-tag
|
||||
>{{ protocolStatusDisplayLabel(String(row.protocolStatus || ''), String(row.voidType || '')) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -108,10 +108,19 @@
|
||||
<el-table-column
|
||||
prop="sampleCode"
|
||||
label="样本编码"
|
||||
min-width="130"
|
||||
min-width="170"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="labStorageCode"
|
||||
label="实验室入库编码"
|
||||
@@ -226,7 +235,8 @@
|
||||
fetchGenerateStorageEntrySms
|
||||
} from '@/api/storage-entry-sms-notification'
|
||||
import { type CollectionProtocolRow } from '@/api/collection-protocol'
|
||||
import { protocolStatusLabel, protocolStatusTagType } from '@/utils/status-tag-registry'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import { protocolStatusDisplayLabel, protocolStatusTagType } from '@/utils/status-tag-registry'
|
||||
|
||||
defineOptions({ name: 'CellStorageStorageEntryInfoTab' })
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
<el-option label="生效中" value="sxz" />
|
||||
<el-option label="已过期" value="ygq" />
|
||||
<el-option label="已作废" value="yzf" />
|
||||
<el-option label="属地废弃" value="sdfq" />
|
||||
<el-option label="转科研" value="zky" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -92,7 +93,11 @@
|
||||
</div>
|
||||
<div class="form-grid form-grid--attachment">
|
||||
<el-form-item label="协议附件">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isProtocolAttachDragover }"
|
||||
v-bind="protocolAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="attachmentUploadRef"
|
||||
@@ -159,7 +164,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -740,7 +747,11 @@
|
||||
</div>
|
||||
<!-- 每条明细的附件上传区 -->
|
||||
<div v-if="!isPayDetailLocked(detail)" class="payment-detail-card__attachments">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isPaymentDetailDragover(dIdx) }"
|
||||
v-bind="paymentDetailDropHandlers(dIdx)"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -808,7 +819,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过
|
||||
20MB</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -887,6 +901,10 @@
|
||||
} from '@/api/collection-protocol'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import {
|
||||
useAttachmentDropZone,
|
||||
useIndexedAttachmentDropZone
|
||||
} from '@/composables/useAttachmentDropZone'
|
||||
import { formatDatetimeToMinute } from '@/utils/chinese-datetime-parse'
|
||||
import {
|
||||
fetchCustomerList,
|
||||
@@ -1600,6 +1618,7 @@
|
||||
isEdit.value = false
|
||||
dialogTitle.value = '新增协议单'
|
||||
resetForm()
|
||||
formData.protocolStatus = 'sxz'
|
||||
formData.motherEthnic = DEFAULT_MOTHER_ETHNIC
|
||||
formData.registerDate = new Date().toISOString().slice(0, 10).replace(/-/g, '')
|
||||
void loadEthnicOptions()
|
||||
@@ -2702,6 +2721,28 @@
|
||||
formData.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isProtocolAttachDragover, dropZoneHandlers: protocolAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const { isDragover: isPaymentDetailDragover, handlersFor: paymentDetailDropHandlers } =
|
||||
useIndexedAttachmentDropZone({
|
||||
onFiles: (detailIndex, files) => {
|
||||
for (const file of files) {
|
||||
void handleDetailAttachmentChange(detailIndex, { raw: file })
|
||||
}
|
||||
},
|
||||
disabled: (detailIndex) => {
|
||||
const detail = formData.paymentDetails[detailIndex]
|
||||
return !detail || isPayDetailLocked(detail)
|
||||
}
|
||||
})
|
||||
|
||||
/* ====== 缴费明细附件上传 ====== */
|
||||
async function handleDetailAttachmentChange(detailIndex: number, uploadFile: any) {
|
||||
const file = uploadFile.raw || uploadFile
|
||||
|
||||
@@ -39,6 +39,16 @@
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="actionType === 'void'" label="作废类型" prop="voidType">
|
||||
<el-select v-model="form.voidType" placeholder="请选择作废类型" style="width: 100%">
|
||||
<el-option
|
||||
v-for="opt in voidTypeOptionsRef"
|
||||
:key="opt.value"
|
||||
:label="opt.label"
|
||||
:value="opt.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="descLabel">
|
||||
<el-input
|
||||
v-model="form.changeDesc"
|
||||
@@ -72,6 +82,7 @@
|
||||
import { fetchConvertFromStorage } from '@/api/research-donation'
|
||||
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
|
||||
import { formatProtocolDocSubject } from '@/utils/protocol-doc-label'
|
||||
import { loadVoidTypeDict, voidTypeOptionsRef } from '@/utils/void-type-dict'
|
||||
|
||||
export type StatusChangeAction = 'activate' | 'expire' | 'void' | 'toResearch'
|
||||
export type StatusChangeTarget = {
|
||||
@@ -151,16 +162,31 @@
|
||||
const submitting = ref(false)
|
||||
const form = reactive({
|
||||
changeTime: '',
|
||||
changeDesc: ''
|
||||
changeDesc: '',
|
||||
voidType: ''
|
||||
})
|
||||
|
||||
const rules: FormRules = {
|
||||
changeTime: [{ required: true, message: '请选择时间', trigger: 'change' }]
|
||||
}
|
||||
const rules = computed<FormRules>(() => {
|
||||
const base: FormRules = {
|
||||
changeTime: [{ required: true, message: '请选择时间', trigger: 'change' }]
|
||||
}
|
||||
if (props.actionType === 'void') {
|
||||
base.voidType = [{ required: true, message: '请选择作废类型', trigger: 'change' }]
|
||||
}
|
||||
return base
|
||||
})
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
(visible) => {
|
||||
if (visible && props.actionType === 'void') void loadVoidTypeDict()
|
||||
}
|
||||
)
|
||||
|
||||
function resetForm() {
|
||||
form.changeTime = ''
|
||||
form.changeDesc = ''
|
||||
form.voidType = ''
|
||||
formRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
@@ -222,6 +248,9 @@
|
||||
[cfg.timeKey]: form.changeTime,
|
||||
[cfg.descKey]: form.changeDesc.trim() || undefined
|
||||
}
|
||||
if (props.actionType === 'void') {
|
||||
payload.voidType = form.voidType
|
||||
}
|
||||
|
||||
submitting.value = true
|
||||
try {
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
><el-tag
|
||||
:type="protocolStatusTagType(String(protocol?.protocolStatus || ''))"
|
||||
size="small"
|
||||
>{{ protocolStatusLabel(String(protocol?.protocolStatus || '')) }}</el-tag
|
||||
>{{ protocolStatusDisplayLabel(String(protocol?.protocolStatus || ''), String(protocol?.voidType || '')) }}</el-tag
|
||||
></div
|
||||
></div
|
||||
>
|
||||
@@ -89,6 +89,10 @@
|
||||
>
|
||||
</template>
|
||||
<template v-if="protocol?.voidTime">
|
||||
<div class="data-item"
|
||||
><div class="data-label">作废类型</div
|
||||
><div class="data-value">{{ voidTypeLabel(String(protocol?.voidType || '')) || '—' }}</div></div
|
||||
>
|
||||
<div class="data-item"
|
||||
><div class="data-label">协议作废时间</div
|
||||
><div class="data-value">{{ dash(protocol.voidTime) }}</div></div
|
||||
@@ -200,6 +204,10 @@
|
||||
>
|
||||
</template>
|
||||
<template v-if="protocol?.voidTime">
|
||||
<div class="data-item"
|
||||
><div class="data-label">作废类型</div
|
||||
><div class="data-value">{{ voidTypeLabel(String(protocol?.voidType || '')) || '—' }}</div></div
|
||||
>
|
||||
<div class="data-item"
|
||||
><div class="data-label">协议作废时间</div
|
||||
><div class="data-value">{{ dash(protocol.voidTime) }}</div></div
|
||||
@@ -283,7 +291,14 @@
|
||||
<div class="data-grid data-grid--4">
|
||||
<div class="data-item">
|
||||
<div class="data-label">样本编码</div>
|
||||
<div class="data-value data-value--code">{{ dash(row.sampleCode) }}</div>
|
||||
<div class="data-value data-value--code">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">原价格(元)</div>
|
||||
@@ -1059,6 +1074,7 @@
|
||||
import ProtocolAttachmentReadonly from './ProtocolAttachmentReadonly.vue'
|
||||
import SampleQcInfoGroupedPanel from '@/components/business/sample-qc-info-grouped-panel/index.vue'
|
||||
import SampleReceptionDualReadonlyPanel from '@/components/business/sample-reception-dual-readonly-panel/index.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import SampleProductionInfoCards from '@/components/business/sample-production-info-cards/index.vue'
|
||||
import SampleStorageReleaseInfo from '@/components/business/sample-storage-release-info/index.vue'
|
||||
import {
|
||||
@@ -1078,7 +1094,7 @@
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
auditStatusLabel,
|
||||
payModeLabel,
|
||||
@@ -1093,6 +1109,7 @@
|
||||
acceptConclusionTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
import { loadTransferTypeDict, transferTypeLabel } from '@/utils/protocol-payment-labels'
|
||||
import { loadVoidTypeDict, voidTypeLabel } from '@/utils/void-type-dict'
|
||||
import { formatProtocolDocSubject } from '@/utils/protocol-doc-label'
|
||||
|
||||
const props = withDefaults(
|
||||
@@ -1827,7 +1844,10 @@
|
||||
watch(
|
||||
() => [props.modelValue, props.protocolId] as const,
|
||||
([visible, id]) => {
|
||||
if (visible) void loadTransferTypeDict()
|
||||
if (visible) {
|
||||
void loadTransferTypeDict()
|
||||
void loadVoidTypeDict()
|
||||
}
|
||||
if (visible && id) loadDetail()
|
||||
}
|
||||
)
|
||||
@@ -3005,10 +3025,6 @@
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.data-grid--4 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.storage-cert-info-row.data-grid--3 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
<el-option label="生效中" value="sxz" />
|
||||
<el-option label="已过期" value="ygq" />
|
||||
<el-option label="已作废" value="yzf" />
|
||||
<el-option label="属地废弃" value="sdfq" />
|
||||
<el-option label="转科研" value="zky" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
@@ -1861,14 +1861,15 @@
|
||||
}
|
||||
|
||||
.clean-room-view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -216,6 +216,7 @@
|
||||
:sections="viewSections"
|
||||
:loading="detailLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
>
|
||||
<template v-if="viewData.products?.length" #txn-products>
|
||||
<el-table :data="viewData.products" stripe class="list-table inner-table" size="small">
|
||||
@@ -372,7 +373,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="确认凭证" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isConfirmAttachDragover }"
|
||||
v-bind="confirmAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="confirmUploadRef"
|
||||
@@ -442,7 +447,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -556,6 +563,7 @@
|
||||
fetchVoidTxn
|
||||
} from '@/api/admin'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import {
|
||||
@@ -1005,6 +1013,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
const { isDragover: isConfirmAttachDragover, dropZoneHandlers: confirmAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleConfirmAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 提交操作
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@@ -475,7 +475,11 @@
|
||||
v-if="canEditAttachments(editTxn)"
|
||||
:label="editTxn?.txnType === 'refund' ? '退款附件' : '附件'"
|
||||
>
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isEditAttachDragover }"
|
||||
v-bind="editAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="editUploadRef"
|
||||
@@ -533,7 +537,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF 等</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF 等,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -619,6 +625,7 @@
|
||||
fetchChannelServiceOrderDetail
|
||||
} from '@/api/admin'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import {
|
||||
txnTypeLabel,
|
||||
@@ -1050,6 +1057,15 @@
|
||||
uploadAttachmentItem(file, editForm.attachments, editUploadRef, 'channel-service-order')
|
||||
}
|
||||
|
||||
const { isDragover: isEditAttachDragover, dropZoneHandlers: editAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleEditAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
async function uploadAttachmentItem(
|
||||
file: File,
|
||||
list: any[],
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
:sections="viewSections"
|
||||
:loading="viewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
>
|
||||
<!-- Product holdings for gmcp -->
|
||||
<template v-if="viewData.orderType === 'gmcp'" #order-products>
|
||||
@@ -491,7 +492,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isRechargeAttachDragover }"
|
||||
v-bind="rechargeAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="rechargeUploadRef"
|
||||
@@ -554,7 +559,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等,可上传多个</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等,可上传多个,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -612,7 +619,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isRefundAttachDragover }"
|
||||
v-bind="refundAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="refundUploadRef"
|
||||
@@ -675,7 +686,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等,可上传多个</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等,可上传多个,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -991,6 +1004,7 @@
|
||||
fetchChannelAgreementPrices
|
||||
} from '@/api/admin'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import AmountInput from '@/components/common/amount-input/index.vue'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
@@ -1659,6 +1673,15 @@
|
||||
rechargeForm.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isRechargeAttachDragover, dropZoneHandlers: rechargeAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleRechargeAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const submitRecharge = async () => {
|
||||
if (!rechargeForm.amount || rechargeForm.amount <= 0) {
|
||||
ElMessage.warning('请输入充值金额')
|
||||
@@ -1734,6 +1757,15 @@
|
||||
refundTxnForm.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isRefundAttachDragover, dropZoneHandlers: refundAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleRefundAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const submitRefundTxn = async () => {
|
||||
if (!refundTxnForm.amount || refundTxnForm.amount <= 0) {
|
||||
ElMessage.warning('请输入退款金额')
|
||||
|
||||
@@ -1013,11 +1013,6 @@
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.data-grid--3,
|
||||
.data-grid--4 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
|
||||
@@ -243,7 +243,11 @@
|
||||
class="form-col-span-2"
|
||||
style="margin-top: 18px"
|
||||
>
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isChannelAttachDragover }"
|
||||
v-bind="channelAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="attachmentUploadRef"
|
||||
@@ -310,7 +314,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" class="form-col-span-2">
|
||||
@@ -1169,6 +1175,7 @@
|
||||
import ChannelViewDialog from './ChannelViewDialog.vue'
|
||||
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import AmountInput from '@/components/common/amount-input/index.vue'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
@@ -2457,6 +2464,15 @@
|
||||
formData.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isChannelAttachDragover, dropZoneHandlers: channelAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/* 附件预览 */
|
||||
const previewVisible = ref(false)
|
||||
const previewUrl = ref('')
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<!-- 基本信息 -->
|
||||
<div class="section-card" style="margin-bottom: 16px">
|
||||
<div class="section-title"><h3>基本信息</h3></div>
|
||||
<div class="form-grid form-grid-2">
|
||||
<div class="form-grid form-grid-4">
|
||||
<div class="view-field"
|
||||
><span class="view-label">申请单号</span
|
||||
><span class="view-value">{{ checkupData.applicationNo || '—' }}</span></div
|
||||
@@ -148,7 +148,11 @@
|
||||
<!-- 体检报告 -->
|
||||
<div class="section-card" style="margin-bottom: 16px">
|
||||
<div class="section-title"><h3>体检报告</h3></div>
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isReportAttachDragover }"
|
||||
v-bind="reportAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="reportUploadRef"
|
||||
@@ -194,7 +198,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -246,6 +252,7 @@
|
||||
markPilotCheckupChecked
|
||||
} from '@/api/admin'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { checkupStatusLabel, checkupStatusTagType, sexLabel } from '@/utils/status-tag-registry'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
|
||||
@@ -413,6 +420,15 @@
|
||||
reportFiles.value.splice(idx, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isReportAttachDragover, dropZoneHandlers: reportAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleReportUpload({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// ── 状态操作 ──────────────────────────
|
||||
const handleMarkChecked = async () => {
|
||||
try {
|
||||
|
||||
@@ -98,7 +98,11 @@
|
||||
|
||||
<div class="section-card" style="margin-bottom: 16px">
|
||||
<div class="section-title section-title--mint-bar"><h3>体检报告</h3></div>
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isReportAttachDragover }"
|
||||
v-bind="reportAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="reportUploadRef"
|
||||
@@ -144,7 +148,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -471,6 +477,7 @@
|
||||
markPilotCheckupChecked
|
||||
} from '@/api/admin'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
import AmountInput from '@/components/common/amount-input/index.vue'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
@@ -777,6 +784,15 @@
|
||||
reportFiles.value.splice(idx, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isReportAttachDragover, dropZoneHandlers: reportAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleReportUpload({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const handleSubmit = async () => {
|
||||
if (!actualCheckupTime.value) {
|
||||
ElMessage.warning('请选择实际体检时间')
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
code-label="申请单号"
|
||||
:sections="sections"
|
||||
:loading="loading"
|
||||
:grid-columns="3"
|
||||
:grid-columns="4"
|
||||
width="1080px"
|
||||
append-to-body
|
||||
>
|
||||
|
||||
@@ -352,7 +352,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isConfirmAttachDragover }"
|
||||
v-bind="confirmAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -396,7 +400,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="form-tip">支持图片、文档等,多个附件将一并提交。</p>
|
||||
<p class="form-tip">
|
||||
支持拖拽或点击上传图片、文档等,多个附件将一并提交,单文件不超过 20MB
|
||||
</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -429,7 +435,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isConfirmAttachDragover }"
|
||||
v-bind="confirmAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -473,7 +483,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="form-tip">支持图片、文档等,多个附件将一并提交。</p>
|
||||
<p class="form-tip">
|
||||
支持拖拽或点击上传图片、文档等,多个附件将一并提交,单文件不超过 20MB
|
||||
</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -579,6 +591,7 @@
|
||||
fetchClinicalRefundConfirmed
|
||||
} from '@/api/business'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import ClinicalPaymentSubmitReadonly from '@/components/business/clinical-payment-submit-readonly/index.vue'
|
||||
import ClinicalPaymentConfirmTimeline from '@/components/business/clinical-payment-confirm-timeline/index.vue'
|
||||
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
|
||||
@@ -789,6 +802,15 @@
|
||||
confirmForm.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isConfirmAttachDragover, dropZoneHandlers: confirmAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleConfirmAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
function confirmAttachmentsToUrls() {
|
||||
return confirmForm.attachments
|
||||
.filter((f) => f.fileUrl && !f._uploading)
|
||||
|
||||
@@ -381,7 +381,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isConfirmAttachDragover }"
|
||||
v-bind="confirmAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -425,7 +429,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="form-tip">支持图片、文档等,多个附件将一并提交。</p>
|
||||
<p class="form-tip">
|
||||
支持拖拽或点击上传图片、文档等,多个附件将一并提交,单文件不超过 20MB
|
||||
</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -459,7 +465,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isConfirmAttachDragover }"
|
||||
v-bind="confirmAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -503,7 +513,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="form-tip">支持图片、文档等,多个附件将一并提交。</p>
|
||||
<p class="form-tip">
|
||||
支持拖拽或点击上传图片、文档等,多个附件将一并提交,单文件不超过 20MB
|
||||
</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -625,6 +637,7 @@
|
||||
fetchClinicalRefundPending
|
||||
} from '@/api/business'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import { getPilotBizConfig, resolvePilotBizType } from '@/config/pilot-biz-type'
|
||||
|
||||
@@ -854,6 +867,15 @@
|
||||
confirmForm.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isConfirmAttachDragover, dropZoneHandlers: confirmAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleConfirmAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
function confirmAttachmentsToUrls() {
|
||||
return confirmForm.attachments
|
||||
.filter((f) => f.fileUrl && !f._uploading)
|
||||
|
||||
+18
-2
@@ -103,7 +103,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isHandoverAttachDragover }"
|
||||
v-bind="handoverAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="attachmentUploadRef"
|
||||
@@ -168,7 +172,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -228,6 +234,7 @@
|
||||
} from '@element-plus/icons-vue'
|
||||
import { fetchUserList } from '@/api/admin'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import {
|
||||
fetchInfusionScheduleOutboundHandover,
|
||||
saveInfusionScheduleOutboundHandover
|
||||
@@ -434,6 +441,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
const { isDragover: isHandoverAttachDragover, dropZoneHandlers: handoverAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
async function remoteSearchHandoverUsers(query: string) {
|
||||
handoverUserLoading.value = true
|
||||
try {
|
||||
|
||||
@@ -308,6 +308,7 @@
|
||||
:sections="serviceOrderViewSections"
|
||||
:loading="serviceOrderViewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
append-to-body
|
||||
>
|
||||
<template v-if="serviceOrderViewData.orderType === 'gmcp'" #order-products>
|
||||
@@ -384,6 +385,7 @@
|
||||
:sections="agreementViewSections"
|
||||
:loading="agreementViewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
append-to-body
|
||||
>
|
||||
<template #agreement-prices>
|
||||
|
||||
+15
-1
@@ -172,7 +172,11 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="附件" min-width="320">
|
||||
<template #default="{ row, $index }">
|
||||
<div class="paper-att-cards">
|
||||
<div
|
||||
class="paper-att-cards paper-att-list"
|
||||
:class="{ 'is-dragover': isPaperRowDragover($index) }"
|
||||
v-bind="paperRowDropHandlers($index)"
|
||||
>
|
||||
<div
|
||||
v-for="(att, attIdx) in row.attachments"
|
||||
:key="attIdx"
|
||||
@@ -419,6 +423,7 @@
|
||||
VideoPlay
|
||||
} from '@element-plus/icons-vue'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useIndexedAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { fetchCellProductList } from '@/api/cell-product'
|
||||
import {
|
||||
fetchOutboundReleaseMaterial,
|
||||
@@ -738,6 +743,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
const { isDragover: isPaperRowDragover, handlersFor: paperRowDropHandlers } =
|
||||
useIndexedAttachmentDropZone({
|
||||
onFiles: (index, files) => {
|
||||
for (const file of files) {
|
||||
void handlePaperAttachmentChange(index, { raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
async function handleSubmit() {
|
||||
if (!props.scheduleId) return
|
||||
if (paperRows.value.some((r) => r._uploading)) {
|
||||
|
||||
+18
-2
@@ -92,7 +92,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isReviewAttachDragover }"
|
||||
v-bind="reviewAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="attachmentUploadRef"
|
||||
@@ -157,7 +161,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -214,6 +220,7 @@
|
||||
VideoPlay
|
||||
} from '@element-plus/icons-vue'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import {
|
||||
fetchOutboundReleaseReviewDetail,
|
||||
@@ -486,6 +493,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
const { isDragover: isReviewAttachDragover, dropZoneHandlers: reviewAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
watch(
|
||||
() => [props.modelValue, props.scheduleIds, props.contextRow] as const,
|
||||
async ([vis, ids, contextRow]) => {
|
||||
|
||||
@@ -169,7 +169,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="诊断附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isDiagnosisAttachDragover }"
|
||||
v-bind="diagnosisAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:show-file-list="false"
|
||||
@@ -218,7 +222,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -444,7 +450,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="诊断附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isDiagnosisAttachDragover }"
|
||||
v-bind="diagnosisAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:show-file-list="false"
|
||||
@@ -493,7 +503,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -1178,7 +1190,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="体检报告" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isCheckupAttachDragover }"
|
||||
v-bind="checkupAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:show-file-list="false"
|
||||
@@ -1223,7 +1239,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -1388,7 +1406,11 @@
|
||||
</el-form-item>
|
||||
<div class="form-grid-2">
|
||||
<el-form-item label="交付附件" class="form-col-span-2">
|
||||
<div class="attachment-upload-row">
|
||||
<div
|
||||
class="attachment-upload attachment-upload-row"
|
||||
:class="{ 'is-dragover': isDeliveryAttachDragover }"
|
||||
v-bind="deliveryAttachDropHandlers"
|
||||
>
|
||||
<div
|
||||
v-for="(file, idx) in deliveryMethodFileList"
|
||||
:key="idx"
|
||||
@@ -1708,7 +1730,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件">
|
||||
<div class="attachment-upload-row">
|
||||
<div
|
||||
class="attachment-upload attachment-upload-row"
|
||||
:class="{ 'is-dragover': isScheduleAttachDragover }"
|
||||
v-bind="scheduleAttachDropHandlers"
|
||||
>
|
||||
<div v-for="(file, idx) in scheduleFileList" :key="idx" class="attachment-card">
|
||||
<el-icon class="attachment-icon"><Document /></el-icon>
|
||||
<span class="attachment-name" :title="file.name">{{ file.name }}</span>
|
||||
@@ -1967,6 +1993,7 @@
|
||||
} from '@/api/admin'
|
||||
import { fetchReleaseReviewList, updateReleaseReview, deleteReleaseReview } from '@/api/outbound-release-review'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { fetchAllPagedRecords } from '@/utils/fetch-paged-list'
|
||||
import {
|
||||
applicationStatusLabel,
|
||||
@@ -3349,6 +3376,42 @@
|
||||
deliveryMethodFileList.value.splice(idx, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isDiagnosisAttachDragover, dropZoneHandlers: diagnosisAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleDiagnosisFileChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const { isDragover: isCheckupAttachDragover, dropZoneHandlers: checkupAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleCheckupDialogFileChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const { isDragover: isScheduleAttachDragover, dropZoneHandlers: scheduleAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleScheduleFileChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const { isDragover: isDeliveryAttachDragover, dropZoneHandlers: deliveryAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleDeliveryMethodFileChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const handleSaveDeliveryMethod = async () => {
|
||||
deliveryMethodSaving.value = true
|
||||
try {
|
||||
|
||||
@@ -149,7 +149,11 @@
|
||||
|
||||
<div v-if="bizConfig.showConsent" class="form-col-full">
|
||||
<div class="section-subtitle" style="margin-bottom: 12px">知情同意书</div>
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isConsentAttachDragover }"
|
||||
v-bind="consentAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="consentUploadRef"
|
||||
@@ -205,13 +209,20 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式,可稍后补充</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,可稍后补充,单文件不超过
|
||||
20MB</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="bizConfig.showOtherAttachments" class="form-col-full">
|
||||
<div class="section-subtitle" style="margin-top: 8px; margin-bottom: 12px">附件</div>
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isOtherAttachDragover }"
|
||||
v-bind="otherAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="otherUploadRef"
|
||||
@@ -267,7 +278,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -277,7 +290,11 @@
|
||||
class="form-grid form-grid--attachment"
|
||||
>
|
||||
<el-form-item label="标准附件">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isStandardAttachDragover }"
|
||||
v-bind="standardAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="standardUploadRef"
|
||||
@@ -325,7 +342,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -426,7 +445,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="诊断附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isDiagnosisAttachDragover }"
|
||||
v-bind="diagnosisAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="diagnosisUploadRef"
|
||||
@@ -482,7 +505,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -1016,6 +1041,7 @@
|
||||
:sections="serviceOrderViewSections"
|
||||
:loading="serviceOrderViewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
append-to-body
|
||||
>
|
||||
<template v-if="serviceOrderViewData.orderType === 'gmcp'" #order-products>
|
||||
@@ -1092,6 +1118,7 @@
|
||||
:sections="agreementViewSections"
|
||||
:loading="agreementViewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
append-to-body
|
||||
>
|
||||
<template #agreement-prices>
|
||||
@@ -1173,6 +1200,7 @@
|
||||
fetchCreateCustomer
|
||||
} from '@/api/admin'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { fetchAllPagedRecords } from '@/utils/fetch-paged-list'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
import SystemViewDialog, {
|
||||
@@ -2250,6 +2278,42 @@
|
||||
diagnosisFileList.value.splice(idx, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isConsentAttachDragover, dropZoneHandlers: consentAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleConsentFileChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const { isDragover: isOtherAttachDragover, dropZoneHandlers: otherAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleOtherFileChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const { isDragover: isStandardAttachDragover, dropZoneHandlers: standardAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleOtherFileChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const { isDragover: isDiagnosisAttachDragover, dropZoneHandlers: diagnosisAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleDiagnosisFileChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const downloadFile = (file: any) => {
|
||||
const link = document.createElement('a')
|
||||
link.href = fullFileUrl(file.fileUrl || file.url)
|
||||
|
||||
@@ -689,6 +689,7 @@
|
||||
:sections="serviceOrderViewSections"
|
||||
:loading="serviceOrderViewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
append-to-body
|
||||
>
|
||||
<template v-if="serviceOrderViewData.orderType === 'gmcp'" #order-products>
|
||||
@@ -775,6 +776,7 @@
|
||||
:sections="agreementViewSections"
|
||||
:loading="agreementViewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
append-to-body
|
||||
>
|
||||
<template #agreement-prices>
|
||||
|
||||
@@ -245,7 +245,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isReceiptAttachDragover }"
|
||||
v-bind="receiptAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -287,7 +291,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="form-tip">支持图片、文档等,多个附件将一并提交。</p>
|
||||
<p class="form-tip">
|
||||
支持拖拽或点击上传图片、文档等,多个附件将一并提交,单文件不超过 20MB
|
||||
</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -347,7 +353,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="退费附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isRefundAttachDragover }"
|
||||
v-bind="refundAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -389,7 +399,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="form-tip">支持图片、文档等,多个附件将一并提交。</p>
|
||||
<p class="form-tip">
|
||||
支持拖拽或点击上传图片、文档等,多个附件将一并提交,单文件不超过 20MB
|
||||
</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -518,6 +530,7 @@
|
||||
submitClinicalRefund,
|
||||
fetchUploadAttachment
|
||||
} from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import ClinicalPaymentSubmitReadonly from '@/components/business/clinical-payment-submit-readonly/index.vue'
|
||||
import ClinicalPaymentConfirmTimeline from '@/components/business/clinical-payment-confirm-timeline/index.vue'
|
||||
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
|
||||
@@ -816,6 +829,15 @@
|
||||
receiptForm.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isReceiptAttachDragover, dropZoneHandlers: receiptAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleReceiptAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
async function submitReceipt() {
|
||||
if (!receiptTargetIds.value.length) return
|
||||
const valid = await receiptFormRef.value?.validate().catch(() => false)
|
||||
@@ -896,6 +918,15 @@
|
||||
refundForm.attachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isRefundAttachDragover, dropZoneHandlers: refundAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleRefundAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
async function submitRefund() {
|
||||
if (!refundTargetIds.value.length) return
|
||||
const valid = await refundFormRef.value?.validate().catch(() => false)
|
||||
|
||||
@@ -397,7 +397,11 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品图片" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isProductImageDragover }"
|
||||
v-bind="productImageDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="productImageUploadRef"
|
||||
@@ -456,7 +460,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片上传</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" class="form-col-span-2">
|
||||
@@ -590,7 +596,7 @@
|
||||
code-label="产品编码"
|
||||
:sections="viewSections"
|
||||
width="1200px"
|
||||
:grid-columns="3"
|
||||
:grid-columns="4"
|
||||
>
|
||||
<template #basicInfo>
|
||||
<div v-if="viewRow" class="cell-product-basic">
|
||||
@@ -789,6 +795,7 @@
|
||||
} from '@/utils/expected-cell-count'
|
||||
import { normalizeCellProductRow } from '@/utils/cell-product-spec'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
|
||||
defineOptions({ name: 'ProductionCellProduct' })
|
||||
@@ -1465,6 +1472,15 @@
|
||||
syncImagesToForm()
|
||||
}
|
||||
|
||||
const { isDragover: isProductImageDragover, dropZoneHandlers: productImageDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleProductImageChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
function handlePreviewProductImage(file: ProductImageFile) {
|
||||
if (file._uploading || !file.fileUrl) return
|
||||
previewUrl.value = fullFileUrl(file.fileUrl)
|
||||
@@ -1757,7 +1773,7 @@
|
||||
|
||||
.cell-product-basic__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 12px 16px;
|
||||
}
|
||||
|
||||
|
||||
+11
-4
@@ -6,18 +6,27 @@
|
||||
width="640px"
|
||||
:grid-columns="2"
|
||||
:icon="User"
|
||||
:meta="metaText"
|
||||
:sections="sections"
|
||||
append-to-body
|
||||
compact
|
||||
modal-class="sample-customer-view-dialog-mask"
|
||||
/>
|
||||
>
|
||||
<template v-if="props.sample?.sampleCode || props.sample?.isSpecial" #hero-meta>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="props.sample?.sampleCode"
|
||||
:is-special="!!props.sample?.isSpecial"
|
||||
:special-remark="props.sample?.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
</SystemViewDialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { User } from '@element-plus/icons-vue'
|
||||
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import type { ViewSection } from '@/components/business/system-view-dialog/index.vue'
|
||||
import type { ChainCustomerInfo, ChainNode } from './chain-types'
|
||||
|
||||
@@ -37,8 +46,6 @@
|
||||
|
||||
const customer = computed(() => props.sample?.customer || {})
|
||||
|
||||
const metaText = computed(() => props.sample?.sampleCode || '')
|
||||
|
||||
const sections = computed((): ViewSection[] => {
|
||||
const c = customer.value as ChainCustomerInfo
|
||||
return [
|
||||
|
||||
@@ -16,6 +16,8 @@ export interface ChainNode {
|
||||
passage?: string
|
||||
sampleCode?: string
|
||||
sampleTypeName?: string
|
||||
isSpecial?: boolean
|
||||
specialRemark?: string
|
||||
protocolNo?: string
|
||||
collectionProtocolId?: string
|
||||
receptionSource?: string
|
||||
|
||||
@@ -173,6 +173,7 @@
|
||||
code-label="编号"
|
||||
:sections="viewSections"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
>
|
||||
<template #pack-items>
|
||||
<el-table
|
||||
|
||||
@@ -308,6 +308,7 @@
|
||||
:sections="viewSections"
|
||||
:loading="viewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
>
|
||||
<template #task-consumptions>
|
||||
<div v-if="viewTaskUsages.length" class="view-subtable-wrap">
|
||||
|
||||
@@ -1329,6 +1329,7 @@
|
||||
:sections="viewSections"
|
||||
:loading="viewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
>
|
||||
<template #usage-details>
|
||||
<div v-if="viewUsageRecords.length" class="view-subtable-wrap">
|
||||
|
||||
@@ -19,7 +19,13 @@
|
||||
<span
|
||||
>工单号:<b>{{ workOrderRow?.workOrderNo }}</b></span
|
||||
>
|
||||
<span>样本编码:{{ workOrderRow?.sampleCode || '—' }}</span>
|
||||
<span
|
||||
>样本编码:<SampleCodeWithSpecialDisplay
|
||||
:sample-code="workOrderRow?.sampleCode"
|
||||
:is-special="!!workOrderRow?.isSpecial"
|
||||
:special-remark="workOrderRow?.specialRemark"
|
||||
monospace
|
||||
/></span>
|
||||
</div>
|
||||
<el-form
|
||||
v-if="phase === 'form'"
|
||||
@@ -251,6 +257,7 @@
|
||||
import { Rank, Plus, CopyDocument, Delete, Close, Check } from '@element-plus/icons-vue'
|
||||
import { VueDraggable as draggable } from 'vue-draggable-plus'
|
||||
import { fetchCreateProductionTask } from '@/api/production-task'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import {
|
||||
productionTaskTypeForWorkOrder,
|
||||
productionStepAssigneeText,
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
<!-- 生产工单 · 工艺步骤待办角标(卡片标题行,X+Y 与 Tab 栏一致) -->
|
||||
<template>
|
||||
<span
|
||||
v-if="visible"
|
||||
class="production-step-badge"
|
||||
:title="title"
|
||||
aria-hidden="true"
|
||||
>
|
||||
{{ label }}
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import {
|
||||
formatProductionWorkOrderTabStepBadge,
|
||||
type ProductionWorkOrderTabStepCount
|
||||
} from '@/api/production-work-order'
|
||||
import {
|
||||
isProductionWorkOrderStepBadgeVisible,
|
||||
productionWorkOrderStepBadgeTitle
|
||||
} from '@/utils/production-work-order-step-badge'
|
||||
|
||||
defineOptions({ name: 'ProductionStepBadge' })
|
||||
|
||||
const props = defineProps<{
|
||||
count: ProductionWorkOrderTabStepCount
|
||||
}>()
|
||||
|
||||
const visible = computed(() => isProductionWorkOrderStepBadgeVisible(props.count))
|
||||
const label = computed(() => formatProductionWorkOrderTabStepBadge(props.count))
|
||||
const title = computed(() => productionWorkOrderStepBadgeTitle(props.count))
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.production-step-badge {
|
||||
flex-shrink: 0;
|
||||
min-width: 34px;
|
||||
height: 18px;
|
||||
padding: 0 6px;
|
||||
border-radius: 999px;
|
||||
background: #ef4444;
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
line-height: 18px;
|
||||
letter-spacing: -0.02em;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
+51
-7
@@ -7,6 +7,10 @@
|
||||
<div class="production-work-order-card__title-band">
|
||||
<div class="production-work-order-card__title-row">
|
||||
<div class="production-work-order-card__title-left">
|
||||
<ProductionStepBadge
|
||||
v-if="tasksBatchReady"
|
||||
:count="resolveStepBadgeCount(row)"
|
||||
/>
|
||||
<el-checkbox
|
||||
v-if="!isMineMode"
|
||||
:model-value="isSelected(row.id)"
|
||||
@@ -14,7 +18,19 @@
|
||||
@change="(val) => handleCardSelect(row, Boolean(val))"
|
||||
/>
|
||||
<span class="production-work-order-card__index">{{ cardIndex(idx) }}</span>
|
||||
<span class="production-work-order-card__no">{{ cardTitleLabel(row) }}</span>
|
||||
<template v-if="isInboundSampleTitle(row)">
|
||||
<span class="production-work-order-card__no">
|
||||
{{ inboundCardTitleLab(row) }} -
|
||||
</span>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
class="production-work-order-card__no"
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
<span v-else class="production-work-order-card__no">{{ cardTitleLabel(row) }}</span>
|
||||
<el-tag
|
||||
v-if="rowCardMeta(row).showCategoryTag"
|
||||
:type="productionWorkOrderCategoryTagType(row)"
|
||||
@@ -50,6 +66,9 @@
|
||||
>
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click="emit('view-qc', row)">
|
||||
<el-icon><DataLine /></el-icon>查看质检数据
|
||||
</el-button>
|
||||
<el-tooltip
|
||||
v-if="!isMineMode && rowCardMeta(row).allowDispatchQc"
|
||||
:content="dispatchQcTooltip(row)"
|
||||
@@ -251,10 +270,11 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, ref } from 'vue'
|
||||
import { View, Position, Document, Check, More, EditPen, Delete, ArrowDown, ArrowUp } from '@element-plus/icons-vue'
|
||||
import { View, Position, Document, Check, More, EditPen, Delete, ArrowDown, ArrowUp, DataLine } from '@element-plus/icons-vue'
|
||||
import type { ProductionWorkOrderItem } from '@/api/production-work-order'
|
||||
import type { OutboundQcDetailProduct } from '@/api/qc-work-order'
|
||||
import type { ProductionWorkOrderCardMetaConfig } from '@/utils/production-work-order-card-meta'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import {
|
||||
getCardMetaConfigForLegacyTab,
|
||||
resolveCardMetaForRow
|
||||
@@ -266,7 +286,10 @@
|
||||
import { resolveEffectiveRowTabKey } from '@/utils/production-work-order-tabs'
|
||||
import type { TagType } from '@/utils/status-tag-registry'
|
||||
import { productStatusLabel, productStatusTagType } from '@/utils/status-tag-registry'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
import { sumProductionWorkOrderStepBadgeCount } from '@/utils/production-work-order-step-badge'
|
||||
import WorkOrderTaskSubList from './WorkOrderTaskSubList.vue'
|
||||
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'
|
||||
|
||||
@@ -299,8 +322,22 @@
|
||||
}
|
||||
)
|
||||
|
||||
const userStore = useUserStore()
|
||||
const isMineMode = computed(() => props.pageMode === 'mine')
|
||||
|
||||
function resolveCurrentUserId() {
|
||||
return String(userStore.info?.id || userStore.info?.userId || '').trim()
|
||||
}
|
||||
|
||||
function resolveStepBadgeCount(row: ProductionWorkOrderItem) {
|
||||
return sumProductionWorkOrderStepBadgeCount(
|
||||
row,
|
||||
props.presetTasksByWorkOrderId?.[row.id],
|
||||
props.pageMode,
|
||||
resolveCurrentUserId()
|
||||
)
|
||||
}
|
||||
|
||||
const expandedFeeIds = ref<Set<string>>(new Set())
|
||||
|
||||
function isFeeExpanded(id: string) {
|
||||
@@ -334,18 +371,25 @@
|
||||
'inbound_research_donation'
|
||||
])
|
||||
|
||||
function cardTitleLabel(row: ProductionWorkOrderItem) {
|
||||
function isInboundSampleTitle(row: ProductionWorkOrderItem) {
|
||||
const effectiveTabKey = resolveEffectiveRowTabKey(listTabKey.value, row)
|
||||
if (INBOUND_SAMPLE_TITLE_TAB_KEYS.has(effectiveTabKey)) {
|
||||
const lab = (row.labStorageCode || '').trim() || '—'
|
||||
const sample = (row.sampleCode || '').trim() || '—'
|
||||
return `${lab} - ${sample}`
|
||||
return INBOUND_SAMPLE_TITLE_TAB_KEYS.has(effectiveTabKey)
|
||||
}
|
||||
|
||||
function inboundCardTitleLab(row: ProductionWorkOrderItem) {
|
||||
return (row.labStorageCode || '').trim() || '—'
|
||||
}
|
||||
|
||||
function cardTitleLabel(row: ProductionWorkOrderItem) {
|
||||
if (isInboundSampleTitle(row)) {
|
||||
return `${inboundCardTitleLab(row)} - ${(row.sampleCode || '').trim() || '—'}`
|
||||
}
|
||||
return row.workOrderNo || '—'
|
||||
}
|
||||
|
||||
const emit = defineEmits<{
|
||||
view: [row: ProductionWorkOrderItem]
|
||||
'view-qc': [row: ProductionWorkOrderItem]
|
||||
dispatch: [row: ProductionWorkOrderItem]
|
||||
'dispatch-qc': [row: ProductionWorkOrderItem]
|
||||
complete: [row: ProductionWorkOrderItem]
|
||||
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
<!-- 生产工单 — 查看质检数据(只读) -->
|
||||
<!-- eslint-disable vue/no-v-model-argument -->
|
||||
<template>
|
||||
<el-dialog
|
||||
v-model="innerVisible"
|
||||
title="质检数据"
|
||||
width="1120px"
|
||||
class="dialog-form-layout production-work-order-qc-view-dialog"
|
||||
align-center
|
||||
append-to-body
|
||||
modal-class="protocol-dialog-mask"
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<div v-loading="loading" class="production-work-order-qc-view-dialog__body">
|
||||
<p v-if="workOrderMeta" class="production-work-order-qc-view-dialog__meta">
|
||||
{{ workOrderMeta }}
|
||||
</p>
|
||||
<SampleQcInfoGroupedPanel
|
||||
v-if="detail"
|
||||
:gate-qc-info="detail.gateQcInfo"
|
||||
:process-qc-info-list="detail.processQcInfoList"
|
||||
:sample-reception="detail.sampleReception"
|
||||
:show-gate-section="detail.showGateSection"
|
||||
:show-section-label="false"
|
||||
hide-sample-context
|
||||
/>
|
||||
<div
|
||||
v-else-if="!loading"
|
||||
class="production-work-order-qc-view-dialog__empty"
|
||||
>
|
||||
暂无质检数据
|
||||
</div>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button class="btn-ghost" @click="innerVisible = false">
|
||||
<el-icon><Close /></el-icon>关闭
|
||||
</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { Close } from '@element-plus/icons-vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import type { ProductionWorkOrderItem } from '@/api/production-work-order'
|
||||
import {
|
||||
fetchProductionWorkOrderQcInfo,
|
||||
type ProductionWorkOrderQcInfoDetail
|
||||
} from '@/api/production-work-order'
|
||||
import SampleQcInfoGroupedPanel from '@/components/business/sample-qc-info-grouped-panel/index.vue'
|
||||
import { resolveEffectiveRowTabKey } from '@/utils/production-work-order-tabs'
|
||||
|
||||
defineOptions({ name: 'ProductionWorkOrderQcViewDialog' })
|
||||
|
||||
const props = defineProps<{
|
||||
visible: boolean
|
||||
workOrderRow?: ProductionWorkOrderItem | null
|
||||
tabKey?: string
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
'update:visible': [value: boolean]
|
||||
}>()
|
||||
|
||||
const innerVisible = computed({
|
||||
get: () => props.visible,
|
||||
set: (v) => emit('update:visible', v)
|
||||
})
|
||||
|
||||
const loading = ref(false)
|
||||
const detail = ref<ProductionWorkOrderQcInfoDetail | null>(null)
|
||||
|
||||
const INBOUND_SAMPLE_TITLE_TAB_KEYS = new Set([
|
||||
'inbound_cell_storage',
|
||||
'inbound_research_donation'
|
||||
])
|
||||
|
||||
const workOrderMeta = computed(() => {
|
||||
const row = props.workOrderRow
|
||||
if (!row) return ''
|
||||
const tabKey = resolveEffectiveRowTabKey(props.tabKey || 'all', row)
|
||||
if (INBOUND_SAMPLE_TITLE_TAB_KEYS.has(tabKey)) {
|
||||
const lab = (row.labStorageCode || '').trim() || '—'
|
||||
const sample = (row.sampleCode || '').trim() || '—'
|
||||
return `${lab} - ${sample}`
|
||||
}
|
||||
return row.workOrderNo || '—'
|
||||
})
|
||||
|
||||
async function loadDetail() {
|
||||
const id = props.workOrderRow?.id
|
||||
if (!id) {
|
||||
detail.value = null
|
||||
return
|
||||
}
|
||||
loading.value = true
|
||||
detail.value = null
|
||||
try {
|
||||
detail.value = await fetchProductionWorkOrderQcInfo(id)
|
||||
} catch (e: any) {
|
||||
ElMessage.error(e?.message || '加载质检数据失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
watch(
|
||||
() => [props.visible, props.workOrderRow?.id] as const,
|
||||
([visible]) => {
|
||||
if (visible) {
|
||||
void loadDetail()
|
||||
} else {
|
||||
detail.value = null
|
||||
}
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.production-work-order-qc-view-dialog__body {
|
||||
min-height: 120px;
|
||||
}
|
||||
|
||||
.production-work-order-qc-view-dialog__meta {
|
||||
margin: 0 0 12px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #334155;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.production-work-order-qc-view-dialog__empty {
|
||||
padding: 16px 0;
|
||||
font-size: 13px;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@@ -1,6 +1,6 @@
|
||||
<!-- 生产工单 Tab 栏(工艺步骤到期/未安排角标) -->
|
||||
<template>
|
||||
<div class="panel-pill-tabs panel-pill-tabs--lg">
|
||||
<div class="panel-pill-tabs panel-pill-tabs--lg panel-pill-tabs--alert-badge">
|
||||
<div class="panel-pill-tabs__track" role="tablist">
|
||||
<button
|
||||
v-for="tab in PRODUCTION_WORK_ORDER_VISIBLE_TABS"
|
||||
|
||||
@@ -40,7 +40,8 @@
|
||||
{{
|
||||
protocolStatusLabelBySource(
|
||||
String(currentRow.protocolStatus || ''),
|
||||
resolvedSourceType
|
||||
resolvedSourceType,
|
||||
String(currentRow.voidType || '')
|
||||
)
|
||||
}}
|
||||
</el-tag>
|
||||
@@ -48,7 +49,14 @@
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">样本编码</div>
|
||||
<div class="data-value">{{ currentRow.sampleCode || '—' }}</div>
|
||||
<div class="data-value">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="currentRow.sampleCode"
|
||||
:is-special="!!currentRow.isSpecial"
|
||||
:special-remark="currentRow.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">样本类型</div>
|
||||
@@ -241,6 +249,7 @@
|
||||
import { Close, Check } from '@element-plus/icons-vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import SampleReceptionDualReadonlyPanel from '@/components/business/sample-reception-dual-readonly-panel/index.vue'
|
||||
import {
|
||||
fetchProductionReceptionBySampleCode,
|
||||
@@ -258,8 +267,10 @@
|
||||
import {
|
||||
transportTypeLabel,
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
import type { TagType } from '@/utils/status-tag-registry'
|
||||
@@ -293,10 +304,10 @@
|
||||
props.sourceType === 'research_donation' ? 'research_donation' : 'cell_storage'
|
||||
)
|
||||
|
||||
function protocolStatusLabelBySource(status: string, source: string): string {
|
||||
function protocolStatusLabelBySource(status: string, source: string, voidType?: string): string {
|
||||
return source === 'research_donation'
|
||||
? donationStatusLabel(status)
|
||||
: protocolStatusLabel(status)
|
||||
? donationStatusDisplayLabel(status, voidType)
|
||||
: protocolStatusDisplayLabel(status, voidType)
|
||||
}
|
||||
|
||||
function protocolStatusTagTypeBySource(status: string, source: string): TagType {
|
||||
|
||||
+6
-3
@@ -7,9 +7,9 @@ import {
|
||||
transportTypeLabel
|
||||
} from '@/utils/qc-labels'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType,
|
||||
payStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
@@ -106,11 +106,14 @@ function buildInboundBasicSection(
|
||||
): ViewSection {
|
||||
const r = d.reception || {}
|
||||
const status = String(d.protocolStatus || '')
|
||||
const voidType = String(d.voidType || '')
|
||||
const fields: ViewSection['fields'] = [
|
||||
{ label: '工单号', value: d.workOrderNo },
|
||||
{
|
||||
label: options.statusLabel,
|
||||
value: options.useDonationStatus ? donationStatusLabel(status) : protocolStatusLabel(status),
|
||||
value: options.useDonationStatus
|
||||
? donationStatusDisplayLabel(status, voidType)
|
||||
: protocolStatusDisplayLabel(status, voidType),
|
||||
tagType: options.useDonationStatus
|
||||
? donationStatusTagType(status)
|
||||
: protocolStatusTagType(status)
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ export function useProductionViewDialog(
|
||||
|
||||
const isOutboundContextView = computed(() => isOutboundProductionView(detail.value))
|
||||
const viewDialogWidth = computed(() => (isOutboundContextView.value ? '1280px' : '1120px'))
|
||||
const viewDialogGridColumns = computed<2 | 3 | 4>(() => (isOutboundContextView.value ? 4 : 2))
|
||||
const viewDialogGridColumns = computed<2 | 3 | 4>(() => 4)
|
||||
const viewDialogCompact = computed(() => isOutboundContextView.value)
|
||||
|
||||
const sections = computed(() => (detail.value ? buildSections(detail.value) : []))
|
||||
|
||||
+1
@@ -137,6 +137,7 @@ export function useProductionWorkOrderTabPage(
|
||||
tableData.value = tableModel.rows
|
||||
presetTasksByWorkOrderId.value = tableModel.presetTasksByWorkOrderId
|
||||
pagination.total = pageResult.total
|
||||
tasksBatchReady.value = true
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
+15
@@ -184,6 +184,7 @@
|
||||
:tasks-batch-ready="tasksBatchReady"
|
||||
:tasks-batch-loading="tasksBatchLoading"
|
||||
@view="handleView"
|
||||
@view-qc="handleViewQc"
|
||||
@dispatch="(row) => emit('dispatch', row)"
|
||||
@dispatch-qc="(row) => emit('dispatch-qc', row)"
|
||||
@complete="(row) => emit('complete', row)"
|
||||
@@ -196,6 +197,12 @@
|
||||
@page-size-change="onWorkOrderPageSizeChange"
|
||||
/>
|
||||
|
||||
<ProductionWorkOrderQcViewDialog
|
||||
v-model:visible="qcViewVisible"
|
||||
:work-order-row="qcViewRow"
|
||||
:tab-key="tabKey"
|
||||
/>
|
||||
|
||||
<component
|
||||
:is="viewDialogComponent"
|
||||
v-model:visible="viewVisible"
|
||||
@@ -221,6 +228,7 @@
|
||||
import { PRODUCTION_WORK_ORDER_CATEGORY_OPTIONS } from '@/utils/production-work-order-category'
|
||||
import { PRODUCTION_WORK_ORDER_STATUS_FILTER_OPTIONS } from '@/utils/status-tag-registry'
|
||||
import ProductionWorkOrderCardList from '../ProductionWorkOrderCardList.vue'
|
||||
import ProductionWorkOrderQcViewDialog from '../ProductionWorkOrderQcViewDialog.vue'
|
||||
import SampleReceptionDialog from '../SampleReceptionDialog.vue'
|
||||
import { PRODUCTION_WORK_ORDER_VIEW_DIALOG_COMPONENTS } from '../view-dialogs/view-dialog-registry'
|
||||
import {
|
||||
@@ -252,6 +260,8 @@
|
||||
const sampleReceptionVisible = ref(false)
|
||||
const sampleReceptionSampleCode = ref('')
|
||||
const sampleReceptionSourceType = ref<string | undefined>(undefined)
|
||||
const qcViewVisible = ref(false)
|
||||
const qcViewRow = ref<ProductionWorkOrderItem | null>(null)
|
||||
|
||||
const {
|
||||
cardMetaConfig,
|
||||
@@ -322,6 +332,11 @@
|
||||
emit('open-sample-reception', row)
|
||||
}
|
||||
|
||||
function handleViewQc(row: ProductionWorkOrderItem) {
|
||||
qcViewRow.value = row
|
||||
qcViewVisible.value = true
|
||||
}
|
||||
|
||||
function handleSampleReceptionSuccess() {
|
||||
bumpTaskRefresh()
|
||||
loadData()
|
||||
|
||||
@@ -184,7 +184,11 @@
|
||||
<el-input v-model="formData.versionNo" placeholder="请输入版本号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isAttachDragover }"
|
||||
v-bind="attachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="attachmentUploadRef"
|
||||
@@ -251,7 +255,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel等文件</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" class="form-col-span-2">
|
||||
@@ -381,6 +387,7 @@
|
||||
import { fetchSopList, fetchCreateSop, fetchUpdateSop, fetchDeleteSop } from '@/api/production'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
|
||||
defineOptions({ name: 'ProductionSop' })
|
||||
|
||||
@@ -570,6 +577,15 @@
|
||||
syncSopAttachmentsFromList()
|
||||
}
|
||||
|
||||
const { isDragover: isAttachDragover, dropZoneHandlers: attachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
function handlePreviewAttachment(file: SopAttachment) {
|
||||
if (file._uploading) return
|
||||
previewUrl.value = fullFileUrl(file.fileUrl)
|
||||
|
||||
@@ -294,7 +294,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="检测附件" class="form-col-span-2">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isAttachDragover }"
|
||||
v-bind="attachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="attachmentUploadRef"
|
||||
@@ -364,7 +368,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint"
|
||||
>支持图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
@@ -447,6 +451,7 @@
|
||||
import { fetchUserList } from '@/api/admin'
|
||||
import { fetchUploadAttachment, fetchAttachmentDownloadUrl } from '@/api/business'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import FileSaver from 'file-saver'
|
||||
import JSZip from 'jszip'
|
||||
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
|
||||
@@ -954,6 +959,15 @@
|
||||
attachmentFiles.value.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isAttachDragover, dropZoneHandlers: attachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
async function handleAttachmentChange(uploadFile: { raw?: File }) {
|
||||
const file = uploadFile.raw
|
||||
if (!file) return
|
||||
|
||||
+113
-10
@@ -15,7 +15,8 @@
|
||||
class="protocol-card is-compact"
|
||||
:class="{
|
||||
'is-active': isExpanded(row),
|
||||
'is-urgent': isUrgentCard(row)
|
||||
'is-urgent': isUrgentCard(row),
|
||||
'has-special-sample': getSpecialSampleItems(row).length > 0
|
||||
}"
|
||||
@click="toggleExpand(row)"
|
||||
@dblclick.stop="emit('view', row)"
|
||||
@@ -37,6 +38,24 @@
|
||||
{{ statusLabel(row) }}
|
||||
</el-tag>
|
||||
</div>
|
||||
<div
|
||||
v-if="getSpecialSampleItems(row).length"
|
||||
class="protocol-card-compact__special"
|
||||
>
|
||||
<div
|
||||
v-for="(item, si) in getSpecialSampleItems(row)"
|
||||
:key="si"
|
||||
class="protocol-card-compact__special-line"
|
||||
>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="item.sampleCode"
|
||||
:is-special="true"
|
||||
:special-remark="item.specialRemark"
|
||||
layout="block"
|
||||
monospace
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="protocol-card-compact__body">
|
||||
<template v-if="mode === 'in_transit'">
|
||||
<div class="protocol-card-compact__field">
|
||||
@@ -165,6 +184,24 @@
|
||||
>
|
||||
{{ statusLabel(getGroupExpandedItem(group)!.row) }}
|
||||
</el-tag>
|
||||
<div
|
||||
v-if="getSpecialSampleItems(getGroupExpandedItem(group)!.row).length"
|
||||
class="protocol-card__special-banner"
|
||||
>
|
||||
<div
|
||||
v-for="(item, si) in getSpecialSampleItems(getGroupExpandedItem(group)!.row)"
|
||||
:key="si"
|
||||
class="protocol-card__special-banner-line"
|
||||
>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="item.sampleCode"
|
||||
:is-special="true"
|
||||
:special-remark="item.specialRemark"
|
||||
layout="block"
|
||||
monospace
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-if="getGroupExpandedItem(group)!.row.createTime"
|
||||
class="protocol-card__create-time"
|
||||
@@ -316,7 +353,12 @@
|
||||
<div class="protocol-card__sample-line">
|
||||
<span class="protocol-card__sample-label">编码</span>
|
||||
<span class="protocol-card__sample-value protocol-card__sample-value--code">
|
||||
{{ item.sampleCode || '—' }}
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="item.sampleCode"
|
||||
:is-special="!!item.isSpecial"
|
||||
:special-remark="item.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="protocol-card__sample-line">
|
||||
@@ -386,8 +428,10 @@
|
||||
import type { PreTransitProtocolRow } from '@/api/pre-transit-sample'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType,
|
||||
newbornSexLabel,
|
||||
sampleStatusLabel,
|
||||
@@ -395,6 +439,7 @@
|
||||
transportTypeLabel
|
||||
} from '@/utils/status-tag-registry'
|
||||
import type { TagType } from '@/utils/status-tag-registry'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
|
||||
defineOptions({ name: 'PreTransitProtocolCardList' })
|
||||
|
||||
@@ -413,6 +458,8 @@
|
||||
sampleCode: string
|
||||
sampleStatus: string
|
||||
labStorageCode: string
|
||||
isSpecial?: boolean
|
||||
specialRemark?: string
|
||||
transport?: ProtocolSampleTransport | null
|
||||
}
|
||||
|
||||
@@ -583,9 +630,10 @@
|
||||
|
||||
function statusLabel(row: PreTransitProtocolRow) {
|
||||
const status = String(row.protocolStatus || '')
|
||||
const voidType = String(row.voidType || '')
|
||||
return row.sourceType === 'research_donation'
|
||||
? donationStatusLabel(status)
|
||||
: protocolStatusLabel(status)
|
||||
? donationStatusDisplayLabel(status, voidType)
|
||||
: protocolStatusDisplayLabel(status, voidType)
|
||||
}
|
||||
|
||||
function statusTagType(row: PreTransitProtocolRow): TagType {
|
||||
@@ -635,12 +683,18 @@
|
||||
sampleCode: String(rec.sampleCode || '').trim(),
|
||||
sampleStatus: String(rec.sampleStatus || '').trim(),
|
||||
labStorageCode: String(rec.labStorageCode || '').trim(),
|
||||
isSpecial: !!rec.isSpecial,
|
||||
specialRemark: String(rec.specialRemark || '').trim(),
|
||||
transport
|
||||
}
|
||||
})
|
||||
}
|
||||
return []
|
||||
}
|
||||
|
||||
function getSpecialSampleItems(row: PreTransitProtocolRow): ProtocolSampleItem[] {
|
||||
return getSampleItems(row).filter((item) => item.isSpecial)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@@ -649,8 +703,8 @@
|
||||
}
|
||||
|
||||
.protocol-card-list {
|
||||
--compact-card-width: 196px;
|
||||
--compact-card-height: 260px;
|
||||
--compact-card-width: 220px;
|
||||
--compact-card-height: 290px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -701,6 +755,10 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.is-compact.has-special-sample {
|
||||
--compact-card-height: 330px;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
border-color: var(--primary, #10b981);
|
||||
box-shadow: 0 0 0 1px rgb(16 185 129 / 20%);
|
||||
@@ -759,6 +817,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
.protocol-card-compact__special {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 4px 6px;
|
||||
border-radius: 6px;
|
||||
background: #fff5f5;
|
||||
border: 1px solid #fecaca;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.protocol-card-compact__special-line {
|
||||
min-width: 0;
|
||||
font-size: 11px;
|
||||
line-height: 1.35;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.protocol-card-compact__body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
@@ -884,6 +960,25 @@
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.protocol-card__special-banner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
padding: 6px 8px;
|
||||
border-radius: 6px;
|
||||
background: #fff5f5;
|
||||
border: 1px solid #fecaca;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.protocol-card__special-banner-line {
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.protocol-card__create-time {
|
||||
margin-top: auto;
|
||||
font-size: 11px;
|
||||
@@ -1150,8 +1245,12 @@
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.protocol-card-list {
|
||||
--compact-card-width: 176px;
|
||||
--compact-card-height: 232px;
|
||||
--compact-card-width: 200px;
|
||||
--compact-card-height: 262px;
|
||||
}
|
||||
|
||||
.protocol-card.is-compact.has-special-sample {
|
||||
--compact-card-height: 302px;
|
||||
}
|
||||
|
||||
.protocol-card--detail {
|
||||
@@ -1178,8 +1277,12 @@
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.protocol-card-list {
|
||||
--compact-card-width: 160px;
|
||||
--compact-card-height: 208px;
|
||||
--compact-card-width: 184px;
|
||||
--compact-card-height: 238px;
|
||||
}
|
||||
|
||||
.protocol-card.is-compact.has-special-sample {
|
||||
--compact-card-height: 278px;
|
||||
}
|
||||
|
||||
.protocol-card-row {
|
||||
|
||||
@@ -326,6 +326,7 @@
|
||||
:sections="viewSections"
|
||||
:loading="viewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
>
|
||||
<template #task-consumptions>
|
||||
<div v-if="viewTaskUsages.length" class="view-subtable-wrap">
|
||||
|
||||
@@ -1108,6 +1108,7 @@
|
||||
:sections="viewSections"
|
||||
:loading="viewLoading"
|
||||
width="960px"
|
||||
:grid-columns="4"
|
||||
>
|
||||
<template #usage-details>
|
||||
<div v-if="viewUsageRecords.length" class="view-subtable-wrap">
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
<!-- 质检工单 · 未完成待办角标(标题栏 / 卡片标题行) -->
|
||||
<template>
|
||||
<span
|
||||
v-if="count > 0"
|
||||
class="qc-unfinished-badge"
|
||||
:class="{ 'qc-unfinished-badge--inline': inline }"
|
||||
:title="title"
|
||||
aria-hidden="true"
|
||||
>
|
||||
{{ label }}
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import {
|
||||
formatQcWorkOrderUnfinishedBadgeCount,
|
||||
qcWorkOrderUnfinishedBadgeTitle
|
||||
} from '@/utils/qc-work-order-unfinished-badge'
|
||||
|
||||
defineOptions({ name: 'QcUnfinishedBadge' })
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
count: number
|
||||
/** 标题栏内联展示(不突出到容器外) */
|
||||
inline?: boolean
|
||||
}>(),
|
||||
{
|
||||
inline: true
|
||||
}
|
||||
)
|
||||
|
||||
const label = computed(() => formatQcWorkOrderUnfinishedBadgeCount(props.count))
|
||||
const title = computed(() => qcWorkOrderUnfinishedBadgeTitle(props.count))
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.qc-unfinished-badge {
|
||||
flex-shrink: 0;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 5px;
|
||||
border-radius: 999px;
|
||||
background: #ef4444;
|
||||
color: #fff;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
line-height: 18px;
|
||||
text-align: center;
|
||||
box-shadow: 0 0 0 2px #fff;
|
||||
}
|
||||
|
||||
.qc-unfinished-badge--inline {
|
||||
box-shadow: none;
|
||||
}
|
||||
</style>
|
||||
@@ -20,6 +20,7 @@
|
||||
@view="(row) => emit('view', row)"
|
||||
@command="(cmd, row) => emit('command', cmd, row)"
|
||||
@tasks-changed="emit('tasks-changed')"
|
||||
@sample-special-changed="emit('sample-special-changed')"
|
||||
/>
|
||||
<QcWorkOrderSingleCard
|
||||
v-else
|
||||
@@ -38,6 +39,7 @@
|
||||
@view="(row) => emit('view', row)"
|
||||
@command="(cmd, row) => emit('command', cmd, row)"
|
||||
@tasks-changed="emit('tasks-changed')"
|
||||
@sample-special-changed="emit('sample-special-changed')"
|
||||
/>
|
||||
</template>
|
||||
</template>
|
||||
@@ -59,6 +61,7 @@
|
||||
@view="(row) => emit('view', row)"
|
||||
@command="(cmd, row) => emit('command', cmd, row)"
|
||||
@tasks-changed="emit('tasks-changed')"
|
||||
@sample-special-changed="emit('sample-special-changed')"
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
@@ -78,6 +81,7 @@
|
||||
@view="(row) => emit('view', row)"
|
||||
@command="(cmd, row) => emit('command', cmd, row)"
|
||||
@tasks-changed="emit('tasks-changed')"
|
||||
@sample-special-changed="emit('sample-special-changed')"
|
||||
/>
|
||||
</template>
|
||||
</template>
|
||||
@@ -99,6 +103,7 @@
|
||||
@view="(row) => emit('view', row)"
|
||||
@command="(cmd, row) => emit('command', cmd, row)"
|
||||
@tasks-changed="emit('tasks-changed')"
|
||||
@sample-special-changed="emit('sample-special-changed')"
|
||||
/>
|
||||
</template>
|
||||
<el-empty
|
||||
@@ -175,6 +180,7 @@
|
||||
view: [row: QcWorkOrder]
|
||||
command: [cmd: string, row: QcWorkOrder]
|
||||
'tasks-changed': []
|
||||
'sample-special-changed': []
|
||||
'page-change': [page: number]
|
||||
'page-size-change': [size: number]
|
||||
}>()
|
||||
|
||||
@@ -6,8 +6,16 @@
|
||||
:class="{ 'qc-protocol-row__ctx--has-sample-tabs': group.sampleGroups.length > 1 }"
|
||||
>
|
||||
<div class="qc-protocol-row__ctx-left">
|
||||
<QcUnfinishedBadge :count="groupUnfinishedBadgeCount" />
|
||||
<span class="qc-protocol-row__idx">{{ groupIndex }}</span>
|
||||
<span class="qc-protocol-row__code">{{ group.protocolNo || '—' }}</span>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
v-if="group.sampleGroups.length === 1"
|
||||
class="qc-protocol-row__sample-code"
|
||||
:sample-code="group.sampleGroups[0]?.sampleCode"
|
||||
:is-special="!!group.sampleGroups[0]?.workOrders[0]?.isSpecial"
|
||||
:special-remark="group.sampleGroups[0]?.workOrders[0]?.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
<template v-if="protocolUserInfo.motherName || protocolUserInfo.newbornName">
|
||||
<span v-if="protocolUserInfo.motherName" class="qc-protocol-row__user">
|
||||
母亲 {{ protocolUserInfo.motherName }}
|
||||
@@ -16,7 +24,7 @@
|
||||
新生儿 {{ protocolUserInfo.newbornName }}
|
||||
</span>
|
||||
</template>
|
||||
<el-tag v-if="protocolStatus.label" :type="protocolStatus.tagType" size="small">
|
||||
<el-tag :type="protocolStatus.tagType" size="small">
|
||||
{{ protocolStatus.label }}
|
||||
</el-tag>
|
||||
<span class="qc-protocol-row__sub">
|
||||
@@ -42,7 +50,13 @@
|
||||
@click="activeSampleKey = sampleTabKey(sampleGroup)"
|
||||
>
|
||||
<span class="qc-wo-tab__index">{{ tabIndex + 1 }}</span>
|
||||
<span class="qc-wo-tab__no">{{ sampleGroup.sampleCode || '—' }}</span>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
class="qc-wo-tab__no"
|
||||
:sample-code="sampleGroup.sampleCode"
|
||||
:is-special="!!sampleGroup.workOrders[0]?.isSpecial"
|
||||
:special-remark="sampleGroup.workOrders[0]?.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
<span
|
||||
v-if="sampleTypeLabel(sampleGroup)"
|
||||
class="qc-wo-tab__source qc-wo-tab__source--reception"
|
||||
@@ -61,6 +75,14 @@
|
||||
</div>
|
||||
|
||||
<div class="qc-protocol-row__ctx-right">
|
||||
<el-button
|
||||
v-if="activeSampleSpecialMarkTarget"
|
||||
class="btn-op-item"
|
||||
size="small"
|
||||
@click="openSampleSpecialDialog"
|
||||
>
|
||||
<el-icon><EditPen /></el-icon>特殊样本
|
||||
</el-button>
|
||||
<span v-if="group.workOrders.length > 1" class="qc-protocol-row__badge">
|
||||
{{ group.workOrders.length }} 条质检
|
||||
</span>
|
||||
@@ -91,6 +113,13 @@
|
||||
@view="(row) => emit('view', row)"
|
||||
@command="(cmd, row) => emit('command', cmd, row)"
|
||||
@tasks-changed="emit('tasks-changed')"
|
||||
@sample-special-changed="emit('sample-special-changed')"
|
||||
/>
|
||||
|
||||
<SampleSpecialMarkDialog
|
||||
v-model:visible="sampleSpecialDialogVisible"
|
||||
:target="activeSampleSpecialMarkTarget"
|
||||
@success="emit('sample-special-changed')"
|
||||
/>
|
||||
</article>
|
||||
</template>
|
||||
@@ -108,6 +137,7 @@
|
||||
resolveGateWorkOrderForSampleGroup
|
||||
} from '@/utils/qc-work-order-groups'
|
||||
import type { QcWorkOrderCardMetaConfig } from '@/utils/qc-work-order-card-meta'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import {
|
||||
buildProtocolGroupProgressLabel,
|
||||
resolveProtocolGroupPaymentSummary,
|
||||
@@ -115,6 +145,11 @@
|
||||
} from '@/utils/qc-work-order-card-meta'
|
||||
import QcWorkOrderSampleGroup from './QcWorkOrderSampleGroup.vue'
|
||||
import QcWorkOrderProtocolPaymentPanel from './QcWorkOrderProtocolPaymentPanel.vue'
|
||||
import { sumQcWorkOrderGroupUnfinishedBadgeCount } from '@/utils/qc-work-order-unfinished-badge'
|
||||
import QcUnfinishedBadge from './QcUnfinishedBadge.vue'
|
||||
import SampleSpecialMarkDialog from '@/components/business/sample-special-mark-dialog/index.vue'
|
||||
import { resolveInboundSampleSpecialMarkTarget } from '@/utils/inbound-sample-special-mark'
|
||||
import { EditPen } from '@element-plus/icons-vue'
|
||||
|
||||
defineOptions({ name: 'QcWorkOrderProtocolGroup' })
|
||||
|
||||
@@ -142,8 +177,11 @@
|
||||
view: [row: QcWorkOrder]
|
||||
command: [cmd: string, row: QcWorkOrder]
|
||||
'tasks-changed': []
|
||||
'sample-special-changed': []
|
||||
}>()
|
||||
|
||||
const sampleSpecialDialogVisible = ref(false)
|
||||
|
||||
function sampleTabKey(sampleGroup: QcWorkOrderSampleGroupModel) {
|
||||
return sampleGroup.groupKey
|
||||
}
|
||||
@@ -166,6 +204,17 @@
|
||||
props.group.sampleGroups.find((g) => sampleTabKey(g) === activeSampleKey.value)
|
||||
)
|
||||
|
||||
const activeSampleSpecialMarkTarget = computed(() => {
|
||||
const group = activeSampleGroup.value
|
||||
if (!group) return null
|
||||
return resolveInboundSampleSpecialMarkTarget(group.workOrders)
|
||||
})
|
||||
|
||||
function openSampleSpecialDialog() {
|
||||
if (!activeSampleSpecialMarkTarget.value) return
|
||||
sampleSpecialDialogVisible.value = true
|
||||
}
|
||||
|
||||
const gateRow = computed(() =>
|
||||
resolveGateWorkOrderForSampleGroup(
|
||||
props.group.sampleGroups[0]?.workOrders || props.group.workOrders
|
||||
@@ -182,6 +231,10 @@
|
||||
|
||||
const progressLabel = computed(() => buildProtocolGroupProgressLabel(props.group))
|
||||
|
||||
const groupUnfinishedBadgeCount = computed(() =>
|
||||
sumQcWorkOrderGroupUnfinishedBadgeCount(props.group.workOrders)
|
||||
)
|
||||
|
||||
const protocolPaymentSummary = computed(() => resolveProtocolGroupPaymentSummary(props.group))
|
||||
|
||||
const protocolUserInfo = computed(() => {
|
||||
@@ -303,11 +356,10 @@
|
||||
min-width: 20px;
|
||||
}
|
||||
|
||||
.qc-protocol-row__code {
|
||||
.qc-protocol-row__sample-code {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
}
|
||||
|
||||
.qc-protocol-row__user {
|
||||
|
||||
@@ -2,12 +2,27 @@
|
||||
<template>
|
||||
<article class="qc-sample-row">
|
||||
<div v-if="!hideContextBar" class="qc-sample-row__ctx">
|
||||
<QcUnfinishedBadge :count="groupUnfinishedBadgeCount" />
|
||||
<span class="qc-sample-row__idx">{{ groupIndex }}</span>
|
||||
<span class="qc-sample-row__code">{{ group.groupTitle || group.sampleCode || '—' }}</span>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
class="qc-sample-row__code"
|
||||
:sample-code="group.groupTitle || group.sampleCode"
|
||||
:is-special="!!group.workOrders[0]?.isSpecial"
|
||||
:special-remark="group.workOrders[0]?.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
<span class="qc-sample-row__sub">{{ contextSubtitle }}</span>
|
||||
<el-tag v-if="showInboundProtocolStatus" :type="protocolStatus.tagType" size="small">
|
||||
{{ protocolStatus.label }}
|
||||
</el-tag>
|
||||
<span v-if="group.workOrders.length > 1" class="qc-sample-row__badge">
|
||||
{{ group.workOrders.length }} 条质检
|
||||
</span>
|
||||
<div v-if="sampleSpecialMarkTarget" class="qc-sample-row__ctx-actions">
|
||||
<el-button class="btn-op-item" size="small" @click="openSampleSpecialDialog">
|
||||
<el-icon><EditPen /></el-icon>特殊样本
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="group.workOrders.length > 1" class="qc-wo-indep-tabs">
|
||||
@@ -57,10 +72,18 @@
|
||||
:preset-tasks="activePresetTasks"
|
||||
:preset-batches="activePresetBatches"
|
||||
:hide-protocol-fee-summary="hideProtocolFeeSummary"
|
||||
:hide-sample-special-in-title="!hideContextBar"
|
||||
@configure="(row) => emit('configure', row)"
|
||||
@view="(row) => emit('view', row)"
|
||||
@command="(cmd, row) => emit('command', cmd, row)"
|
||||
@tasks-changed="emit('tasks-changed')"
|
||||
@sample-special-changed="emit('sample-special-changed')"
|
||||
/>
|
||||
|
||||
<SampleSpecialMarkDialog
|
||||
v-model:visible="sampleSpecialDialogVisible"
|
||||
:target="sampleSpecialMarkTarget"
|
||||
@success="emit('sample-special-changed')"
|
||||
/>
|
||||
</article>
|
||||
</template>
|
||||
@@ -78,9 +101,15 @@
|
||||
isGateTriggerSource
|
||||
} from '@/utils/qc-work-order-groups'
|
||||
import type { QcWorkOrderCardMetaConfig } from '@/utils/qc-work-order-card-meta'
|
||||
import { buildGroupContextSubtitle, cardMetaUsesInboundGroups, resolveInboundWorkOrderCardTitle } from '@/utils/qc-work-order-card-meta'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import { buildGroupContextSubtitle, cardMetaUsesInboundGroups, resolveInboundWorkOrderCardTitle, resolveProtocolGroupStatus } from '@/utils/qc-work-order-card-meta'
|
||||
import { resolveEffectiveRowTabKey } from '@/utils/qc-work-order-tabs'
|
||||
import { sumQcWorkOrderGroupUnfinishedBadgeCount } from '@/utils/qc-work-order-unfinished-badge'
|
||||
import QcUnfinishedBadge from './QcUnfinishedBadge.vue'
|
||||
import QcWorkOrderSingleCard from './QcWorkOrderSingleCard.vue'
|
||||
import SampleSpecialMarkDialog from '@/components/business/sample-special-mark-dialog/index.vue'
|
||||
import { resolveInboundSampleSpecialMarkTarget } from '@/utils/inbound-sample-special-mark'
|
||||
import { EditPen } from '@element-plus/icons-vue'
|
||||
|
||||
defineOptions({ name: 'QcWorkOrderSampleGroup' })
|
||||
|
||||
@@ -112,8 +141,20 @@
|
||||
view: [row: QcWorkOrder]
|
||||
command: [cmd: string, row: QcWorkOrder]
|
||||
'tasks-changed': []
|
||||
'sample-special-changed': []
|
||||
}>()
|
||||
|
||||
const sampleSpecialDialogVisible = ref(false)
|
||||
|
||||
const sampleSpecialMarkTarget = computed(() =>
|
||||
resolveInboundSampleSpecialMarkTarget(props.group.workOrders)
|
||||
)
|
||||
|
||||
function openSampleSpecialDialog() {
|
||||
if (!sampleSpecialMarkTarget.value) return
|
||||
sampleSpecialDialogVisible.value = true
|
||||
}
|
||||
|
||||
const activeWorkOrderId = ref(props.group.workOrders[0]?.id || '')
|
||||
|
||||
watch(
|
||||
@@ -169,6 +210,23 @@
|
||||
return buildGroupContextSubtitle(row, tabKey)
|
||||
})
|
||||
|
||||
const showInboundProtocolStatus = computed(() => {
|
||||
const row = contextRow.value
|
||||
if (!row) return false
|
||||
const source = (row.receptionSource || '').trim()
|
||||
return source === 'cell_storage' || source === 'research_donation'
|
||||
})
|
||||
|
||||
const protocolStatus = computed(() =>
|
||||
contextRow.value
|
||||
? resolveProtocolGroupStatus(contextRow.value)
|
||||
: { label: '—', tagType: 'info' as TagType }
|
||||
)
|
||||
|
||||
const groupUnfinishedBadgeCount = computed(() =>
|
||||
sumQcWorkOrderGroupUnfinishedBadgeCount(props.group.workOrders)
|
||||
)
|
||||
|
||||
function workOrderTabTitle(wo: QcWorkOrder) {
|
||||
const tabKey = resolveEffectiveRowTabKey(props.cardMetaConfig.tabKey, wo)
|
||||
if (cardMetaUsesInboundGroups(tabKey)) {
|
||||
@@ -225,7 +283,6 @@
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
}
|
||||
|
||||
.qc-sample-row__sub {
|
||||
@@ -247,6 +304,11 @@
|
||||
border: 1px solid #d1fae5;
|
||||
}
|
||||
|
||||
.qc-sample-row__ctx-actions {
|
||||
flex-shrink: 0;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.qc-wo-indep-tabs {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
|
||||
@@ -5,8 +5,38 @@
|
||||
<div class="qc-work-order-card__head-inner">
|
||||
<div class="qc-work-order-card__head-main">
|
||||
<div class="qc-work-order-card__title-row">
|
||||
<QcUnfinishedBadge
|
||||
v-if="showStandaloneUnfinishedBadge"
|
||||
:count="unfinishedBadgeCount"
|
||||
/>
|
||||
<el-checkbox
|
||||
v-if="selection"
|
||||
class="qc-work-order-card__select"
|
||||
:model-value="selection.isSelected(row.id)"
|
||||
aria-label="选择质检工单"
|
||||
@change="handleSelectToggle"
|
||||
@click.stop
|
||||
/>
|
||||
<span v-if="cardIndex != null" class="qc-work-order-card__index">{{ cardIndex }}</span>
|
||||
<span class="qc-work-order-card__no">{{ cardTitle }}</span>
|
||||
<span v-if="!showSampleSpecialTitle" class="qc-work-order-card__no">{{ cardTitle }}</span>
|
||||
<template v-else-if="showInboundReceptionSpecialTitle">
|
||||
<span class="qc-work-order-card__no">{{ cardTitle }} - </span>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
class="qc-work-order-card__no"
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="true"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
v-else
|
||||
class="qc-work-order-card__no"
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="true"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
<el-tag
|
||||
v-if="effectiveCardMeta.showCategoryTag"
|
||||
:type="qcWorkOrderCategoryTagType(row)"
|
||||
@@ -122,6 +152,13 @@
|
||||
<el-button class="btn-op-item primary" type="primary" @click="emit('view', row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="showSampleSpecialMarkButton"
|
||||
class="btn-op-item"
|
||||
@click="openSampleSpecialDialog"
|
||||
>
|
||||
<el-icon><EditPen /></el-icon>特殊样本
|
||||
</el-button>
|
||||
</template>
|
||||
<template v-else-if="showWorkOrderOps">
|
||||
<el-button
|
||||
@@ -136,6 +173,13 @@
|
||||
<el-button v-else class="btn-op-item primary" @click="emit('view', row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="showSampleSpecialMarkButton"
|
||||
class="btn-op-item"
|
||||
@click="openSampleSpecialDialog"
|
||||
>
|
||||
<el-icon><EditPen /></el-icon>特殊样本
|
||||
</el-button>
|
||||
<el-dropdown
|
||||
v-if="hasMoreWorkOrderActions(row)"
|
||||
trigger="hover"
|
||||
@@ -188,11 +232,16 @@
|
||||
@changed="emit('tasks-changed')"
|
||||
/>
|
||||
</section>
|
||||
<SampleSpecialMarkDialog
|
||||
v-model:visible="sampleSpecialDialogVisible"
|
||||
:target="sampleSpecialMarkTarget"
|
||||
@success="emit('sample-special-changed')"
|
||||
/>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { computed, inject, ref } from 'vue'
|
||||
import { Setting, View, More, EditPen, Delete } from '@element-plus/icons-vue'
|
||||
import type { QcWorkOrder, OutboundQcDetailProduct } from '@/api/qc-work-order'
|
||||
import type { QcTask } from '@/api/qc-task'
|
||||
@@ -217,12 +266,22 @@
|
||||
temporaryQcSourceTagType
|
||||
} from '@/utils/qc-work-order-groups'
|
||||
import { resolveCellProductSpecDisplay } from '@/utils/cell-product-spec'
|
||||
import {
|
||||
resolveQcWorkOrderUnfinishedBadgeCount
|
||||
} from '@/utils/qc-work-order-unfinished-badge'
|
||||
import QcUnfinishedBadge from './QcUnfinishedBadge.vue'
|
||||
import QcWorkOrderBatchSubList from './QcWorkOrderBatchSubList.vue'
|
||||
import QcWorkOrderFeeSummaryBar from './QcWorkOrderFeeSummaryBar.vue'
|
||||
import QcWorkOrderProtocolPaymentPanel from './QcWorkOrderProtocolPaymentPanel.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import SampleSpecialMarkDialog from '@/components/business/sample-special-mark-dialog/index.vue'
|
||||
import { resolveInboundSampleSpecialMarkTargetFromRow } from '@/utils/inbound-sample-special-mark'
|
||||
import { QC_WORK_ORDER_SELECTION_KEY } from './composables/qc-work-order-selection'
|
||||
|
||||
defineOptions({ name: 'QcWorkOrderSingleCard' })
|
||||
|
||||
const selection = inject(QC_WORK_ORDER_SELECTION_KEY, null)
|
||||
|
||||
type CardLayout = 'standalone' | 'inbound-grouped' | 'grouped'
|
||||
|
||||
const props = withDefaults(
|
||||
@@ -238,12 +297,15 @@
|
||||
presetBatches?: QcInspectionBatch[]
|
||||
taskListMode?: 'workOrder' | 'mine'
|
||||
hideProtocolFeeSummary?: boolean
|
||||
/** 父级 SampleGroup 已展示样本编码+特殊样本时,避免标题栏重复 */
|
||||
hideSampleSpecialInTitle?: boolean
|
||||
}>(),
|
||||
{
|
||||
showWorkOrderOps: true,
|
||||
showWorkOrderViewOnly: false,
|
||||
taskListMode: 'workOrder',
|
||||
hideProtocolFeeSummary: false
|
||||
hideProtocolFeeSummary: false,
|
||||
hideSampleSpecialInTitle: false
|
||||
}
|
||||
)
|
||||
|
||||
@@ -252,8 +314,24 @@
|
||||
view: [row: QcWorkOrder]
|
||||
command: [cmd: string, row: QcWorkOrder]
|
||||
'tasks-changed': []
|
||||
'sample-special-changed': []
|
||||
}>()
|
||||
|
||||
const sampleSpecialDialogVisible = ref(false)
|
||||
|
||||
const sampleSpecialMarkTarget = computed(() =>
|
||||
resolveInboundSampleSpecialMarkTargetFromRow(props.row)
|
||||
)
|
||||
|
||||
const showSampleSpecialMarkButton = computed(
|
||||
() => props.layout === 'standalone' && !!sampleSpecialMarkTarget.value
|
||||
)
|
||||
|
||||
function openSampleSpecialDialog() {
|
||||
if (!sampleSpecialMarkTarget.value) return
|
||||
sampleSpecialDialogVisible.value = true
|
||||
}
|
||||
|
||||
const effectiveCardMeta = computed(() =>
|
||||
resolveCardMetaForRow(props.row, props.cardMetaConfig.tabKey)
|
||||
)
|
||||
@@ -273,6 +351,22 @@
|
||||
return props.row.workOrderNo || '—'
|
||||
})
|
||||
|
||||
const showSampleSpecialTitle = computed(
|
||||
() =>
|
||||
!props.hideSampleSpecialInTitle &&
|
||||
!!props.row.isSpecial &&
|
||||
!!(props.row.sampleCode || '').trim()
|
||||
)
|
||||
|
||||
const showInboundReceptionSpecialTitle = computed(() => {
|
||||
if (!cardMetaUsesInboundGroups(effectiveRowTabKey.value)) return false
|
||||
const ts = (props.row.triggerSource || 'reception').trim()
|
||||
if (ts !== 'reception') return false
|
||||
const title = cardTitle.value.trim()
|
||||
const sample = String(props.row.sampleCode || '').trim()
|
||||
return !!title && !!sample && title !== sample
|
||||
})
|
||||
|
||||
const showProtocolFeeSummary = computed(
|
||||
() =>
|
||||
!props.hideProtocolFeeSummary &&
|
||||
@@ -284,6 +378,13 @@
|
||||
() => effectiveCardMeta.value.showOutboundFeeSummary && !!props.row.feeSummary
|
||||
)
|
||||
|
||||
const unfinishedBadgeCount = computed(() => resolveQcWorkOrderUnfinishedBadgeCount(props.row))
|
||||
|
||||
/** 分组内卡片由 SampleGroup / ProtocolGroup 标题栏展示角标 */
|
||||
const showStandaloneUnfinishedBadge = computed(
|
||||
() => props.layout !== 'grouped' && unfinishedBadgeCount.value > 0
|
||||
)
|
||||
|
||||
function triggerSourceTagType(source?: string): TagType {
|
||||
const ts = source || 'reception'
|
||||
if (ts === 'production') return 'warning'
|
||||
@@ -366,6 +467,10 @@
|
||||
if (canConfigureWorkOrder(row)) return true
|
||||
return canEditTemporaryWorkOrder() || canEditRemarkWorkOrder(row) || canDeleteWorkOrder(row)
|
||||
}
|
||||
|
||||
function handleSelectToggle() {
|
||||
selection?.toggle(props.row.id)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@@ -408,6 +513,10 @@
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.qc-work-order-card__select {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.qc-work-order-card__index {
|
||||
flex-shrink: 0;
|
||||
font-size: 12px;
|
||||
@@ -433,6 +542,7 @@
|
||||
.qc-work-order-card__meta-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
|
||||
@@ -449,6 +559,11 @@
|
||||
line-height: 1.4;
|
||||
color: var(--mint-text, #1e293b);
|
||||
word-break: break-word;
|
||||
|
||||
> .el-tag {
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&--wide {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!-- 质检工单 Tab 栏(含未完成数量角标) -->
|
||||
<template>
|
||||
<div class="panel-pill-tabs panel-pill-tabs--lg">
|
||||
<div class="panel-pill-tabs panel-pill-tabs--lg panel-pill-tabs--alert-badge">
|
||||
<div class="panel-pill-tabs__track" role="tablist">
|
||||
<button
|
||||
v-for="tab in QC_WORK_ORDER_VISIBLE_TABS"
|
||||
|
||||
+1
-16
@@ -49,13 +49,6 @@
|
||||
<dt>第三方公司</dt>
|
||||
<dd>{{ task.companyName || '—' }}</dd>
|
||||
</div>
|
||||
<div
|
||||
v-if="showThirdPartyFee && task.taskType === 'dsfjc' && task.feeAmount != null"
|
||||
class="qc-wo-task-card__meta-item"
|
||||
>
|
||||
<dt>费用(元)</dt>
|
||||
<dd>¥{{ formatMoneyDisplay(task.feeAmount) }}</dd>
|
||||
</div>
|
||||
<div class="qc-wo-task-card__meta-item">
|
||||
<dt>完成时间</dt>
|
||||
<dd>{{ task.completedTime || '—' }}</dd>
|
||||
@@ -153,8 +146,6 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { useMenuPerm } from '@/hooks/core/useMenuPerm'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import type { QcWorkOrderDetail } from '@/api/qc-work-order'
|
||||
import { taskStatusLabel, qcTaskConclusionLabel } from '@/utils/qc-labels'
|
||||
import { SHOW_QC_TASK_MATERIAL_USAGE } from '@/utils/qc-material-ui'
|
||||
@@ -178,8 +169,6 @@
|
||||
}>()
|
||||
|
||||
const showMaterialUsage = SHOW_QC_TASK_MATERIAL_USAGE
|
||||
const { hasQcThirdPartyViewAmount } = useMenuPerm()
|
||||
const showThirdPartyFee = computed(() => hasQcThirdPartyViewAmount.value)
|
||||
|
||||
const displayTasks = computed(() => {
|
||||
if (!props.taskType) return props.tasks
|
||||
@@ -198,11 +187,7 @@
|
||||
primary: li.itemName || '—',
|
||||
secondary: [li.companyName, li.itemCode ? `编码 ${li.itemCode}` : '']
|
||||
.filter(Boolean)
|
||||
.join(' · '),
|
||||
meta:
|
||||
showThirdPartyFee.value && li.feeAmount != null
|
||||
? `¥${formatMoneyDisplay(li.feeAmount)}`
|
||||
: undefined
|
||||
.join(' · ')
|
||||
}))
|
||||
})
|
||||
|
||||
|
||||
@@ -357,6 +357,19 @@
|
||||
:sections="viewSections"
|
||||
append-to-body
|
||||
>
|
||||
<template
|
||||
v-if="viewSampleSpecial.isSpecial"
|
||||
#prepend
|
||||
>
|
||||
<div class="view-special-sample-banner">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="viewSampleCode"
|
||||
:is-special="viewSampleSpecial.isSpecial"
|
||||
:special-remark="viewSampleSpecial.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template #diagnosis-attachments>
|
||||
<ProtocolAttachmentReadonly
|
||||
:files="viewDiagnosisAttachmentFiles"
|
||||
@@ -495,11 +508,11 @@
|
||||
More,
|
||||
Delete
|
||||
} from '@element-plus/icons-vue'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import ProtocolFinanceConfirmFields from '@/components/business/protocol-finance-confirm-fields/index.vue'
|
||||
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import type { ViewSection } from '@/components/business/system-view-dialog/index.vue'
|
||||
import {
|
||||
financeAttachmentsToUrlString,
|
||||
@@ -544,8 +557,10 @@
|
||||
} from '@/utils/qc-labels'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType,
|
||||
productStatusLabel,
|
||||
productStatusTagType
|
||||
@@ -562,10 +577,10 @@
|
||||
import type { TagType } from '@/utils/status-tag-registry'
|
||||
|
||||
/** 根据来源类型返回协议状态标签 */
|
||||
function protocolStatusLabelBySource(status: string, source: string): string {
|
||||
function protocolStatusLabelBySource(status: string, source: string, voidType?: string): string {
|
||||
return source === 'research_donation'
|
||||
? donationStatusLabel(status)
|
||||
: protocolStatusLabel(status)
|
||||
? donationStatusDisplayLabel(status, voidType)
|
||||
: protocolStatusDisplayLabel(status, voidType)
|
||||
}
|
||||
function protocolStatusTagTypeBySource(status: string, source: string): TagType {
|
||||
return source === 'research_donation'
|
||||
@@ -886,12 +901,28 @@
|
||||
const viewDetail = ref<QcTaskDetail | null>(null)
|
||||
const viewOutboundDetail = ref<OutboundQcDetail | null>(null)
|
||||
const viewMaterialUsages = ref<MaterialUsageRow[]>([])
|
||||
|
||||
const viewSampleSpecial = computed(() => {
|
||||
const d = viewDetail.value
|
||||
if (!d) return { isSpecial: false, specialRemark: '' }
|
||||
const r = (d.reception || {}) as Record<string, unknown>
|
||||
return {
|
||||
isSpecial: !!(d.isSpecial || r.isSpecial),
|
||||
specialRemark: String(d.specialRemark || r.specialRemark || '').trim()
|
||||
}
|
||||
})
|
||||
|
||||
const viewSampleCode = computed(() => {
|
||||
const d = viewDetail.value
|
||||
if (!d) return ''
|
||||
const r = (d.reception || {}) as Record<string, unknown>
|
||||
return String(r.sampleCode || d.sampleCode || '').trim()
|
||||
})
|
||||
|
||||
const viewDialogWidth = computed(() =>
|
||||
isOutboundPilotServiceQcTask(viewDetail.value) ? '1200px' : '960px'
|
||||
)
|
||||
const viewDialogGridColumns = computed<2 | 3 | 4>(() =>
|
||||
isOutboundPilotServiceQcTask(viewDetail.value) ? 4 : 3
|
||||
)
|
||||
const viewDialogGridColumns = computed<2 | 3 | 4>(() => 4)
|
||||
const viewDialogCompact = computed(() => isOutboundPilotServiceQcTask(viewDetail.value))
|
||||
const minioBaseUrl = (import.meta.env.VITE_MINIO_BASE_URL || '').replace(/\/$/, '')
|
||||
|
||||
@@ -1041,10 +1072,13 @@
|
||||
fields: [
|
||||
{
|
||||
label: '协议状态',
|
||||
value: protocolStatusLabelBySource(
|
||||
String(d.protocolStatus || r.protocolStatus || ''),
|
||||
d.receptionSource || r.sourceType || 'cell_storage'
|
||||
),
|
||||
value:
|
||||
d.protocolStatusLabel ||
|
||||
protocolStatusLabelBySource(
|
||||
String(d.protocolStatus || r.protocolStatus || ''),
|
||||
d.receptionSource || r.sourceType || 'cell_storage',
|
||||
String(d.voidType || r.voidType || '')
|
||||
),
|
||||
tagType: protocolStatusTagTypeBySource(
|
||||
String(d.protocolStatus || r.protocolStatus || ''),
|
||||
d.receptionSource || r.sourceType || 'cell_storage'
|
||||
@@ -1132,10 +1166,6 @@
|
||||
{ label: '检测项目', value: d.itemName },
|
||||
{ label: '项目编码', value: d.itemCode || '—' },
|
||||
{ label: '第三方公司', value: d.companyName || '—' },
|
||||
{
|
||||
label: '检测费用',
|
||||
value: d.feeAmount != null ? '¥' + formatMoneyDisplay(d.feeAmount) : '—'
|
||||
},
|
||||
{
|
||||
label: '任务状态',
|
||||
value: taskStatusLabel(d.taskStatus),
|
||||
@@ -1773,14 +1803,15 @@
|
||||
margin-top: 4px;
|
||||
|
||||
.view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
+25
-9
@@ -8,9 +8,9 @@ import {
|
||||
qcBizTypeLabel
|
||||
} from '@/utils/qc-labels'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
import {
|
||||
@@ -110,6 +110,24 @@ function buildInboundBasicSection(
|
||||
}
|
||||
}
|
||||
|
||||
function resolveInboundProtocolStatus(detail: QcWorkOrderDetail) {
|
||||
const reception = detail.reception as Record<string, unknown> | undefined
|
||||
const status = String(
|
||||
detail.protocolStatus || reception?.protocolStatus || ''
|
||||
).trim()
|
||||
const voidType = String(detail.voidType || reception?.voidType || '')
|
||||
const source = detail.receptionSource || String(reception?.sourceType || 'cell_storage')
|
||||
const label =
|
||||
source === 'research_donation'
|
||||
? donationStatusDisplayLabel(status, voidType)
|
||||
: protocolStatusDisplayLabel(status, voidType)
|
||||
const tagType =
|
||||
source === 'research_donation'
|
||||
? donationStatusTagType(status)
|
||||
: protocolStatusTagType(status)
|
||||
return { status, label: status ? label : '—', tagType: status ? tagType : 'info' }
|
||||
}
|
||||
|
||||
/** 采集入库:含协议缴费 */
|
||||
export function buildInboundCellStorageViewSections(
|
||||
detail: QcWorkOrderDetail,
|
||||
@@ -117,10 +135,9 @@ export function buildInboundCellStorageViewSections(
|
||||
batches?: QcInspectionBatch[] | null
|
||||
): ViewSection[] {
|
||||
const r = detail.reception || {}
|
||||
const statusLabel = protocolStatusLabel(String(detail.protocolStatus || ''))
|
||||
const statusTag = protocolStatusTagType(String(detail.protocolStatus || ''))
|
||||
const protocolStatus = resolveInboundProtocolStatus(detail)
|
||||
return [
|
||||
buildInboundBasicSection(detail, '协议状态', statusLabel, statusTag),
|
||||
buildInboundBasicSection(detail, '协议状态', protocolStatus.label, protocolStatus.tagType),
|
||||
...buildTransportSection(r),
|
||||
{ title: '协议缴费信息', fields: [], slot: 'protocol-payment-details' },
|
||||
...buildReceptionSection(detail),
|
||||
@@ -128,17 +145,16 @@ export function buildInboundCellStorageViewSections(
|
||||
]
|
||||
}
|
||||
|
||||
/** 捐赠入库:无协议缴费;协议状态字段展示捐赠状态 */
|
||||
/** 捐赠入库:无协议缴费;协议状态与采集入库字段名一致 */
|
||||
export function buildInboundResearchDonationViewSections(
|
||||
detail: QcWorkOrderDetail,
|
||||
tasks: QcWorkOrderTaskView[],
|
||||
batches?: QcInspectionBatch[] | null
|
||||
): ViewSection[] {
|
||||
const r = detail.reception || {}
|
||||
const statusLabel = donationStatusLabel(String(detail.protocolStatus || ''))
|
||||
const statusTag = donationStatusTagType(String(detail.protocolStatus || ''))
|
||||
const protocolStatus = resolveInboundProtocolStatus(detail)
|
||||
return [
|
||||
buildInboundBasicSection(detail, '捐赠状态', statusLabel, statusTag),
|
||||
buildInboundBasicSection(detail, '协议状态', protocolStatus.label, protocolStatus.tagType),
|
||||
...buildTransportSection(r),
|
||||
...buildReceptionSection(detail),
|
||||
...appendTaskResultSections(detail, tasks, batches)
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import type { InjectionKey, Ref } from 'vue'
|
||||
|
||||
export type QcWorkOrderSelectionContext = {
|
||||
selectedWorkOrderIds: Ref<Set<string>>
|
||||
isSelected: (id: string) => boolean
|
||||
toggle: (id: string) => void
|
||||
clear: () => void
|
||||
}
|
||||
|
||||
export const QC_WORK_ORDER_SELECTION_KEY: InjectionKey<QcWorkOrderSelectionContext> =
|
||||
Symbol('qcWorkOrderSelection')
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
import { ref } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import type { QcWorkOrder } from '@/api/qc-work-order'
|
||||
import { fetchQcInspectionBatchesBatch } from '@/utils/qc-inspection-batch'
|
||||
import { formatZipDateStamp } from '@/utils/attachment-zip'
|
||||
import {
|
||||
buildQcWorkOrderZipEntries,
|
||||
reportPreparingProgress,
|
||||
runAttachmentZipExport,
|
||||
type AttachmentZipExportProgress
|
||||
} from '@/utils/qc-work-order-attachment-export'
|
||||
|
||||
const MAX_WORK_ORDERS_SOFT_LIMIT = 50
|
||||
const MAX_FILES_SOFT_LIMIT = 500
|
||||
|
||||
const initialProgress = (): AttachmentZipExportProgress => ({
|
||||
phase: 'preparing',
|
||||
percent: 0
|
||||
})
|
||||
|
||||
export function useQcWorkOrderAttachmentExport() {
|
||||
const progressVisible = ref(false)
|
||||
const exportRunning = ref(false)
|
||||
const exportPreparing = ref(false)
|
||||
const progress = ref<AttachmentZipExportProgress>(initialProgress())
|
||||
let abortController: AbortController | null = null
|
||||
|
||||
function resetProgress() {
|
||||
progress.value = initialProgress()
|
||||
}
|
||||
|
||||
function handleCancelExport() {
|
||||
abortController?.abort()
|
||||
exportRunning.value = false
|
||||
progress.value = { phase: 'cancelled', percent: progress.value.percent }
|
||||
progressVisible.value = false
|
||||
ElMessage.info('已取消导出')
|
||||
}
|
||||
|
||||
async function confirmLargeExport(workOrderCount: number, fileCount: number) {
|
||||
if (workOrderCount <= MAX_WORK_ORDERS_SOFT_LIMIT && fileCount <= MAX_FILES_SOFT_LIMIT) {
|
||||
return true
|
||||
}
|
||||
try {
|
||||
await ElMessageBox.confirm(
|
||||
`本次将导出 ${workOrderCount} 个工单、约 ${fileCount} 个附件,可能耗时较长,是否继续?`,
|
||||
'导出确认',
|
||||
{ type: 'warning', confirmButtonText: '继续导出', cancelButtonText: '取消' }
|
||||
)
|
||||
return true
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
async function exportWorkOrderAttachments(selectedIds: string[], workOrderRows: QcWorkOrder[]) {
|
||||
if (!selectedIds.length) {
|
||||
ElMessage.warning('请先勾选质检工单')
|
||||
return
|
||||
}
|
||||
|
||||
const rowMap = new Map(workOrderRows.map((row) => [row.id, row]))
|
||||
const workOrders = selectedIds
|
||||
.map((id) => rowMap.get(id))
|
||||
.filter((row): row is QcWorkOrder => !!row)
|
||||
|
||||
if (!workOrders.length) {
|
||||
ElMessage.warning('未找到所选工单,请刷新后重试')
|
||||
return
|
||||
}
|
||||
|
||||
exportPreparing.value = true
|
||||
try {
|
||||
const batchMap = (await fetchQcInspectionBatchesBatch(workOrders.map((row) => row.id))) || {}
|
||||
const entries = buildQcWorkOrderZipEntries(workOrders, batchMap)
|
||||
|
||||
if (!entries.length) {
|
||||
ElMessage.warning('所选工单暂无附件')
|
||||
return
|
||||
}
|
||||
|
||||
const confirmed = await confirmLargeExport(workOrders.length, entries.length)
|
||||
if (!confirmed) return
|
||||
|
||||
abortController = new AbortController()
|
||||
exportRunning.value = true
|
||||
progressVisible.value = true
|
||||
resetProgress()
|
||||
reportPreparingProgress((value) => {
|
||||
progress.value = value
|
||||
})
|
||||
|
||||
const result = await runAttachmentZipExport({
|
||||
entries,
|
||||
zipFileName: `质检任务附件_${formatZipDateStamp()}.zip`,
|
||||
signal: abortController.signal,
|
||||
onProgress: (value) => {
|
||||
progress.value = value
|
||||
}
|
||||
})
|
||||
|
||||
exportRunning.value = false
|
||||
|
||||
if (result.cancelled) {
|
||||
return
|
||||
}
|
||||
|
||||
if (result.added === 0) {
|
||||
progressVisible.value = false
|
||||
ElMessage.error('附件下载失败,请稍后重试')
|
||||
return
|
||||
}
|
||||
|
||||
progress.value = { phase: 'done', percent: 100, totalFiles: entries.length }
|
||||
window.setTimeout(() => {
|
||||
progressVisible.value = false
|
||||
}, 1000)
|
||||
|
||||
if (result.failed > 0) {
|
||||
ElMessage.warning(`已下载 ${result.added} 个,${result.failed} 个失败`)
|
||||
} else {
|
||||
ElMessage.success(`已打包下载 ${result.added} 个附件`)
|
||||
}
|
||||
} catch {
|
||||
exportRunning.value = false
|
||||
progressVisible.value = false
|
||||
if (!abortController?.signal.aborted) {
|
||||
ElMessage.error('导出失败,请稍后重试')
|
||||
}
|
||||
} finally {
|
||||
exportPreparing.value = false
|
||||
abortController = null
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
progressVisible,
|
||||
exportRunning,
|
||||
exportPreparing,
|
||||
progress,
|
||||
exportWorkOrderAttachments,
|
||||
handleCancelExport
|
||||
}
|
||||
}
|
||||
@@ -280,11 +280,27 @@
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<div v-if="pageMode === 'manage' && tabKey === 'temporary'" class="list-toolbar">
|
||||
<div class="list-toolbar">
|
||||
<div class="list-toolbar-row">
|
||||
<el-button class="btn-main" type="primary" @click="emit('add-temporary')">
|
||||
<div class="list-toolbar-selected">
|
||||
已选 <span class="sel-num">{{ selectedCount }}</span> 项
|
||||
</div>
|
||||
<el-button
|
||||
v-if="pageMode === 'manage' && tabKey === 'temporary'"
|
||||
class="btn-main"
|
||||
type="primary"
|
||||
@click="emit('add-temporary')"
|
||||
>
|
||||
<el-icon><Plus /></el-icon>新增临时工单
|
||||
</el-button>
|
||||
<el-button
|
||||
class="btn-ghost"
|
||||
:disabled="selectedCount === 0 || exportRunning || exportPreparing"
|
||||
:loading="exportPreparing"
|
||||
@click="handleExportAttachments"
|
||||
>
|
||||
<el-icon><Download /></el-icon>导出附件
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -303,8 +319,16 @@
|
||||
@view="handleView"
|
||||
@command="handleCommand"
|
||||
@tasks-changed="onWorkOrderTasksChanged"
|
||||
@page-change="onWorkOrderPageChange"
|
||||
@page-size-change="onWorkOrderPageSizeChange"
|
||||
@sample-special-changed="onSampleSpecialChanged"
|
||||
@page-change="handleWorkOrderPageChange"
|
||||
@page-size-change="handleWorkOrderPageSizeChange"
|
||||
/>
|
||||
|
||||
<AttachmentZipProgressDialog
|
||||
v-model:visible="progressVisible"
|
||||
:progress="progress"
|
||||
:running="exportRunning"
|
||||
@cancel="handleCancelExport"
|
||||
/>
|
||||
|
||||
<component
|
||||
@@ -316,8 +340,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, toRef } from 'vue'
|
||||
import { Search, RefreshLeft, Plus, ArrowDown, ArrowUp } from '@element-plus/icons-vue'
|
||||
import { computed, provide, ref, toRef } from 'vue'
|
||||
import { Search, RefreshLeft, Plus, ArrowDown, ArrowUp, Download } from '@element-plus/icons-vue'
|
||||
import type { QcWorkOrder } from '@/api/qc-work-order'
|
||||
import type { QcWorkOrderTabKey } from '@/utils/qc-work-order-tabs'
|
||||
import { isAllQcWorkOrderTab } from '@/utils/qc-work-order-tabs'
|
||||
@@ -332,6 +356,9 @@
|
||||
useQcWorkOrderTabPage,
|
||||
type QcWorkOrderTabPageMode
|
||||
} from '../composables/useQcWorkOrderTabPage'
|
||||
import { QC_WORK_ORDER_SELECTION_KEY } from '../composables/qc-work-order-selection'
|
||||
import { useQcWorkOrderAttachmentExport } from '../composables/useQcWorkOrderAttachmentExport'
|
||||
import AttachmentZipProgressDialog from '@/components/business/attachment-zip-progress-dialog/index.vue'
|
||||
|
||||
defineOptions({ name: 'QcWorkOrderTabPanel' })
|
||||
|
||||
@@ -352,6 +379,26 @@
|
||||
const tabKeyRef = toRef(props, 'tabKey')
|
||||
const isAllTab = computed(() => isAllQcWorkOrderTab(props.tabKey))
|
||||
|
||||
const selectedWorkOrderIds = ref<Set<string>>(new Set())
|
||||
|
||||
function clearWorkOrderSelection() {
|
||||
selectedWorkOrderIds.value = new Set()
|
||||
}
|
||||
|
||||
provide(QC_WORK_ORDER_SELECTION_KEY, {
|
||||
selectedWorkOrderIds,
|
||||
isSelected: (id: string) => selectedWorkOrderIds.value.has(id),
|
||||
toggle: (id: string) => {
|
||||
const next = new Set(selectedWorkOrderIds.value)
|
||||
if (next.has(id)) next.delete(id)
|
||||
else next.add(id)
|
||||
selectedWorkOrderIds.value = next
|
||||
},
|
||||
clear: clearWorkOrderSelection
|
||||
})
|
||||
|
||||
const selectedCount = computed(() => selectedWorkOrderIds.value.size)
|
||||
|
||||
const {
|
||||
tabConfig,
|
||||
cardMetaConfig,
|
||||
@@ -371,8 +418,8 @@
|
||||
viewWorkOrderId,
|
||||
viewTabKey,
|
||||
loadData,
|
||||
handleSearch,
|
||||
handleReset,
|
||||
handleSearch: baseHandleSearch,
|
||||
handleReset: baseHandleReset,
|
||||
onWorkOrderPageChange,
|
||||
onWorkOrderPageSizeChange,
|
||||
handleWorkOrderTasksChanged,
|
||||
@@ -381,13 +428,51 @@
|
||||
bumpTaskRefresh
|
||||
} = useQcWorkOrderTabPage(tabKeyRef, pageModeComputed)
|
||||
|
||||
const {
|
||||
progressVisible,
|
||||
exportRunning,
|
||||
exportPreparing,
|
||||
progress,
|
||||
exportWorkOrderAttachments,
|
||||
handleCancelExport
|
||||
} = useQcWorkOrderAttachmentExport()
|
||||
|
||||
const viewDialogComponent = computed(() => QC_WORK_ORDER_VIEW_DIALOG_COMPONENTS[viewTabKey.value])
|
||||
|
||||
function handleSearch() {
|
||||
clearWorkOrderSelection()
|
||||
baseHandleSearch()
|
||||
}
|
||||
|
||||
function handleReset() {
|
||||
clearWorkOrderSelection()
|
||||
baseHandleReset()
|
||||
}
|
||||
|
||||
function handleWorkOrderPageChange(page: number) {
|
||||
clearWorkOrderSelection()
|
||||
onWorkOrderPageChange(page)
|
||||
}
|
||||
|
||||
function handleWorkOrderPageSizeChange(size: number) {
|
||||
clearWorkOrderSelection()
|
||||
onWorkOrderPageSizeChange(size)
|
||||
}
|
||||
|
||||
function handleExportAttachments() {
|
||||
exportWorkOrderAttachments([...selectedWorkOrderIds.value], tableData.value)
|
||||
}
|
||||
|
||||
async function onWorkOrderTasksChanged() {
|
||||
await handleWorkOrderTasksChanged()
|
||||
emit('data-changed')
|
||||
}
|
||||
|
||||
async function onSampleSpecialChanged() {
|
||||
await loadData()
|
||||
emit('data-changed')
|
||||
}
|
||||
|
||||
function handleCommand(command: string, row: QcWorkOrder) {
|
||||
if (command === 'view') {
|
||||
handleView(row)
|
||||
|
||||
+16
-4
@@ -20,7 +20,13 @@
|
||||
@click.stop
|
||||
/>
|
||||
<span class="sample-reception-card__index">{{ cardIndex(idx) }}</span>
|
||||
<span class="sample-reception-card__code">{{ row.sampleCode || '—' }}</span>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
class="sample-reception-card__code"
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
<el-tag
|
||||
:type="
|
||||
protocolStatusTagTypeBySource(
|
||||
@@ -33,7 +39,8 @@
|
||||
{{
|
||||
protocolStatusLabelBySource(
|
||||
String(row.protocolStatus || ''),
|
||||
String(row.sourceType || 'cell_storage')
|
||||
String(row.sourceType || 'cell_storage'),
|
||||
String(row.voidType || '')
|
||||
)
|
||||
}}
|
||||
</el-tag>
|
||||
@@ -196,12 +203,15 @@
|
||||
transportTypeLabel,
|
||||
acceptConclusionLabel,
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
import type { TagType } from '@/utils/status-tag-registry'
|
||||
import type { QcProtocolPaymentSummary } from '@/api/qc-work-order'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import QcWorkOrderProtocolPaymentPanel from '@/views/quality-inspection/qc-work-order/QcWorkOrderProtocolPaymentPanel.vue'
|
||||
|
||||
defineOptions({ name: 'SampleReceptionCardList' })
|
||||
@@ -234,8 +244,10 @@
|
||||
'page-size-change': [size: number]
|
||||
}>()
|
||||
|
||||
function protocolStatusLabelBySource(status: string, source: string): string {
|
||||
return source === 'research_donation' ? donationStatusLabel(status) : protocolStatusLabel(status)
|
||||
function protocolStatusLabelBySource(status: string, source: string, voidType?: string): string {
|
||||
return source === 'research_donation'
|
||||
? donationStatusDisplayLabel(status, voidType)
|
||||
: protocolStatusDisplayLabel(status, voidType)
|
||||
}
|
||||
|
||||
function protocolStatusTagTypeBySource(status: string, source: string): TagType {
|
||||
|
||||
@@ -168,7 +168,8 @@
|
||||
{{
|
||||
protocolStatusLabelBySource(
|
||||
String(currentRow.protocolStatus || ''),
|
||||
currentRow.sourceType || 'cell_storage'
|
||||
currentRow.sourceType || 'cell_storage',
|
||||
String(currentRow.voidType || '')
|
||||
)
|
||||
}}
|
||||
</el-tag>
|
||||
@@ -176,7 +177,15 @@
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">样本编码</div>
|
||||
<div class="data-value">{{ currentRow.sampleCode || '-' }}</div>
|
||||
<div class="data-value">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="currentRow.sampleCode"
|
||||
:is-special="!!currentRow.isSpecial"
|
||||
:special-remark="currentRow.specialRemark"
|
||||
fallback="-"
|
||||
monospace
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">样本类型</div>
|
||||
@@ -381,7 +390,7 @@
|
||||
>
|
||||
<template v-if="viewRow">
|
||||
<h4 class="detail-section-title">样本信息</h4>
|
||||
<div class="readonly-grid form-grid-2">
|
||||
<div class="readonly-grid form-grid-4">
|
||||
<div class="readonly-item"
|
||||
><span class="label">协议状态</span
|
||||
><el-tag
|
||||
@@ -395,13 +404,21 @@
|
||||
>{{
|
||||
protocolStatusLabelBySource(
|
||||
String(viewRow.protocolStatus || ''),
|
||||
viewRow.sourceType || 'cell_storage'
|
||||
viewRow.sourceType || 'cell_storage',
|
||||
String(viewRow.voidType || '')
|
||||
)
|
||||
}}</el-tag
|
||||
></div
|
||||
>
|
||||
<div class="readonly-item"
|
||||
><span class="label">样本编码</span>{{ viewRow.sampleCode || '-' }}</div
|
||||
><span class="label">样本编码</span
|
||||
><SampleCodeWithSpecialDisplay
|
||||
:sample-code="viewRow.sampleCode"
|
||||
:is-special="!!viewRow.isSpecial"
|
||||
:special-remark="viewRow.specialRemark"
|
||||
fallback="-"
|
||||
monospace
|
||||
/></div
|
||||
>
|
||||
<div class="readonly-item"
|
||||
><span class="label">样本类型</span>{{ viewRow.sampleTypeName || '-' }}</div
|
||||
@@ -418,7 +435,7 @@
|
||||
</div>
|
||||
<div class="form-section-divider" />
|
||||
<h4 class="detail-section-title">运输信息</h4>
|
||||
<div class="readonly-grid form-grid-2">
|
||||
<div class="readonly-grid form-grid-4">
|
||||
<div class="readonly-item">
|
||||
<span class="label">运输方式</span
|
||||
>{{ transportTypeLabel(String(viewRow.transportType || '')) }}
|
||||
@@ -445,7 +462,7 @@
|
||||
</div>
|
||||
<div class="form-section-divider" />
|
||||
<h4 class="detail-section-title">接收信息</h4>
|
||||
<div class="readonly-grid form-grid-2">
|
||||
<div class="readonly-grid form-grid-4">
|
||||
<div class="readonly-item"
|
||||
><span class="label">接收时间</span>{{ formatDisplayOrDash(viewRow.receptionTime) }}</div
|
||||
>
|
||||
@@ -499,7 +516,7 @@
|
||||
<div class="form-section-divider" />
|
||||
<h4 class="detail-section-title">生产接收信息</h4>
|
||||
<div v-if="!viewProductionReception" class="production-view-empty">生产尚未登记</div>
|
||||
<div v-else class="readonly-grid form-grid-2">
|
||||
<div v-else class="readonly-grid form-grid-4">
|
||||
<div class="readonly-item">
|
||||
<span class="label">处理时间</span
|
||||
>{{ formatProcessTimeDate(viewProductionReception.processTime) || '—' }}
|
||||
@@ -546,9 +563,15 @@
|
||||
class="batch-receive-card"
|
||||
>
|
||||
<h4 class="detail-section-title batch-receive-card__title">
|
||||
样本 {{ index + 1 }}:{{ entry.sampleCode || '—' }}
|
||||
样本 {{ index + 1 }}:
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="entry.sampleCode"
|
||||
:is-special="!!entry.isSpecial"
|
||||
:special-remark="entry.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</h4>
|
||||
<div class="readonly-grid form-grid-2 batch-receive-card__meta">
|
||||
<div class="readonly-grid form-grid-4 batch-receive-card__meta">
|
||||
<div class="readonly-item"
|
||||
><span class="label">协议状态</span
|
||||
><el-tag
|
||||
@@ -562,7 +585,8 @@
|
||||
>{{
|
||||
protocolStatusLabelBySource(
|
||||
String(entry.protocolStatus || ''),
|
||||
entry.sourceType || 'cell_storage'
|
||||
entry.sourceType || 'cell_storage',
|
||||
String(entry.voidType || '')
|
||||
)
|
||||
}}</el-tag
|
||||
></div
|
||||
@@ -713,6 +737,7 @@
|
||||
type SampleReceptionCheckItem
|
||||
} from '@/api/sample-reception-check-item'
|
||||
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import ProtocolFinanceConfirmFields from '@/components/business/protocol-finance-confirm-fields/index.vue'
|
||||
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
|
||||
import SampleReceptionCardList from './SampleReceptionCardList.vue'
|
||||
@@ -727,8 +752,10 @@
|
||||
transportTypeLabel,
|
||||
acceptConclusionLabel,
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
import type { TagType } from '@/utils/status-tag-registry'
|
||||
@@ -744,10 +771,10 @@
|
||||
} from '@/utils/sample-production-reception-fields'
|
||||
|
||||
/** 根据来源类型返回协议状态标签 */
|
||||
function protocolStatusLabelBySource(status: string, source: string): string {
|
||||
function protocolStatusLabelBySource(status: string, source: string, voidType?: string): string {
|
||||
return source === 'research_donation'
|
||||
? donationStatusLabel(status)
|
||||
: protocolStatusLabel(status)
|
||||
? donationStatusDisplayLabel(status, voidType)
|
||||
: protocolStatusDisplayLabel(status, voidType)
|
||||
}
|
||||
function protocolStatusTagTypeBySource(status: string, source: string): TagType {
|
||||
return source === 'research_donation'
|
||||
@@ -837,6 +864,8 @@
|
||||
protocolSampleId: string
|
||||
protocolNo: string
|
||||
sampleCode: string
|
||||
isSpecial?: boolean
|
||||
specialRemark?: string
|
||||
sampleTypeName: string
|
||||
waybillNo: string
|
||||
motherName: string
|
||||
@@ -1236,6 +1265,8 @@
|
||||
protocolSampleId: String(row.protocolSampleId || ''),
|
||||
protocolNo: String(row.protocolNo || ''),
|
||||
sampleCode: String(row.sampleCode || ''),
|
||||
isSpecial: !!row.isSpecial,
|
||||
specialRemark: String(row.specialRemark || ''),
|
||||
sampleTypeName: String(row.sampleTypeName || ''),
|
||||
waybillNo: String(row.waybillNo || ''),
|
||||
motherName: String(row.motherName || ''),
|
||||
@@ -1823,15 +1854,26 @@
|
||||
}
|
||||
|
||||
.readonly-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
|
||||
.label {
|
||||
display: inline-block;
|
||||
min-width: 72px;
|
||||
margin-right: 8px;
|
||||
display: block;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
}
|
||||
|
||||
> .el-tag {
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+27
-3
@@ -18,7 +18,14 @@
|
||||
<div v-if="isSingleMode && singleDetail" class="review-info-summary">
|
||||
<div class="review-summary-row">
|
||||
<span class="review-summary-label">样本编码</span>
|
||||
<span class="review-summary-value">{{ singleDetail.review?.sampleCode || '—' }}</span>
|
||||
<span class="review-summary-value">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="singleDetail.review?.sampleCode"
|
||||
:is-special="!!singleDetail.protocolInfo?.isSpecial"
|
||||
:special-remark="singleDetail.protocolInfo?.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="review-summary-row">
|
||||
<span class="review-summary-label">样本名称</span>
|
||||
@@ -55,7 +62,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件">
|
||||
<div class="attachment-upload-area">
|
||||
<div
|
||||
class="attachment-upload attachment-upload-area"
|
||||
:class="{ 'is-dragover': isAttachDragover }"
|
||||
v-bind="attachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
:auto-upload="false"
|
||||
@@ -94,7 +105,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</p>
|
||||
<p class="upload-hint">
|
||||
支持拖拽或点击上传图片、视频、PDF、Word、Excel 等常见文件格式,单文件不超过 20MB
|
||||
</p>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -117,6 +130,8 @@
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Check, Close, Plus, Document, Delete } from '@element-plus/icons-vue'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import {
|
||||
fetchStorageReleaseReviewDetail,
|
||||
submitStorageReleaseReview,
|
||||
@@ -234,6 +249,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
const { isDragover: isAttachDragover, dropZoneHandlers: attachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
watch(
|
||||
() => [props.modelValue, props.reviewIds] as const,
|
||||
async ([vis, ids]) => {
|
||||
|
||||
+20
-8
@@ -8,12 +8,19 @@
|
||||
:grid-columns="4"
|
||||
compact
|
||||
:icon="CircleCheck"
|
||||
:meta="detail?.review?.sampleCode || ''"
|
||||
:sections="viewSections"
|
||||
:loading="loading"
|
||||
append-to-body
|
||||
modal-class="storage-release-view-dialog-mask"
|
||||
>
|
||||
<template #hero-meta>
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="detail?.review?.sampleCode || detail?.protocolInfo?.sampleCode"
|
||||
:is-special="!!detail?.protocolInfo?.isSpecial"
|
||||
:special-remark="detail?.protocolInfo?.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
<template #reception-extra>
|
||||
<div class="view-reception-attachments">
|
||||
<div class="view-kv view-kv-span-2">
|
||||
@@ -57,6 +64,7 @@
|
||||
<script setup lang="ts">
|
||||
import { CircleCheck } from '@element-plus/icons-vue'
|
||||
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import type { ViewSection } from '@/components/business/system-view-dialog/index.vue'
|
||||
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
|
||||
import SampleQcInfoGroupedPanel from '@/components/business/sample-qc-info-grouped-panel/index.vue'
|
||||
@@ -73,9 +81,9 @@
|
||||
receptionSourceTagType,
|
||||
storageReleaseConclusionLabel,
|
||||
storageReleaseConclusionTagType,
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
import { acceptConclusionLabel, transportTypeLabel } from '@/utils/qc-labels'
|
||||
@@ -131,10 +139,13 @@
|
||||
|
||||
function protocolStatusDisplay(proto: Partial<ProtocolInfo>, source: string) {
|
||||
const status = proto.protocolStatus || ''
|
||||
const voidType = String(proto.voidType || '')
|
||||
if (!status) return { value: '—', tagType: 'info' as const }
|
||||
const isDonation = source === 'research_donation'
|
||||
return {
|
||||
value: isDonation ? donationStatusLabel(status) : protocolStatusLabel(status),
|
||||
value: isDonation
|
||||
? donationStatusDisplayLabel(status, voidType)
|
||||
: protocolStatusDisplayLabel(status, voidType),
|
||||
tagType: isDonation ? donationStatusTagType(status) : protocolStatusTagType(status)
|
||||
}
|
||||
}
|
||||
@@ -341,14 +352,15 @@
|
||||
margin-top: 4px;
|
||||
|
||||
.view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -113,10 +113,19 @@
|
||||
<el-table-column
|
||||
prop="sampleCode"
|
||||
label="样本编码"
|
||||
min-width="140"
|
||||
min-width="170"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="labStorageCode"
|
||||
label="实验室入库编码"
|
||||
@@ -295,6 +304,7 @@
|
||||
import { View, Search, RefreshLeft, CircleCheck, Box } from '@element-plus/icons-vue'
|
||||
import StorageReleaseViewDialog from './StorageReleaseViewDialog.vue'
|
||||
import StorageReleaseReviewDialog from './StorageReleaseReviewDialog.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import {
|
||||
fetchStorageReleaseReviewList,
|
||||
storeSample,
|
||||
@@ -309,8 +319,10 @@
|
||||
storageStatusLabel,
|
||||
storageStatusTagType,
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
|
||||
@@ -320,10 +332,11 @@
|
||||
function protocolStatusLabelForRow(row: StorageReleaseReview) {
|
||||
if (row.protocolStatusLabel) return row.protocolStatusLabel
|
||||
const status = row.protocolStatus || ''
|
||||
const voidType = String(row.voidType || '')
|
||||
if (!status) return '—'
|
||||
return row.receptionSource === 'research_donation'
|
||||
? donationStatusLabel(status)
|
||||
: protocolStatusLabel(status)
|
||||
? donationStatusDisplayLabel(status, voidType)
|
||||
: protocolStatusDisplayLabel(status, voidType)
|
||||
}
|
||||
|
||||
function protocolStatusTagForRow(row: StorageReleaseReview) {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<el-option label="生效中" value="sxz" />
|
||||
<el-option label="已过期" value="ygq" />
|
||||
<el-option label="已作废" value="yzf" />
|
||||
<el-option label="属地废弃" value="sdfq" />
|
||||
<el-option label="转细胞存储" value="zckc" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -148,7 +149,7 @@
|
||||
:type="donationStatusTagType(String(row.donationStatus || ''))"
|
||||
size="small"
|
||||
class="protocol-card__status"
|
||||
>{{ donationStatusLabel(String(row.donationStatus || '')) }}</el-tag
|
||||
>{{ donationStatusDisplayLabel(String(row.donationStatus || ''), String(row.voidType || '')) }}</el-tag
|
||||
>
|
||||
<div v-if="row.createTime" class="protocol-card__create-time">
|
||||
创建 {{ formatDisplayOrDash(row.createTime) }}
|
||||
@@ -246,7 +247,12 @@
|
||||
<div class="protocol-card__sample-line">
|
||||
<span class="protocol-card__sample-label">编码</span>
|
||||
<span class="protocol-card__sample-value protocol-card__sample-value--code">
|
||||
{{ item.sampleCode || '—' }}
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="item.sampleCode"
|
||||
:is-special="!!item.isSpecial"
|
||||
:special-remark="item.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="protocol-card__sample-line">
|
||||
@@ -347,6 +353,7 @@
|
||||
} from '@element-plus/icons-vue'
|
||||
import DonationFormDialog from '../list/DonationFormDialog.vue'
|
||||
import DonationViewDialog from '../list/DonationViewDialog.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import DonationAuditDialog, { type DonationAuditTarget } from '../list/DonationAuditDialog.vue'
|
||||
import DonationStatusChangeDialog, {
|
||||
type DonationStatusChangeAction,
|
||||
@@ -360,6 +367,7 @@
|
||||
} from '@/api/research-donation'
|
||||
import {
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType,
|
||||
newbornSexLabel,
|
||||
deliveryModeLabel
|
||||
@@ -376,9 +384,24 @@
|
||||
sampleTypeName: string
|
||||
sampleCode: string
|
||||
labStorageCode: string
|
||||
isSpecial?: boolean
|
||||
specialRemark?: string
|
||||
}
|
||||
|
||||
function getSampleItems(row: ResearchDonationRow): DonationSampleItem[] {
|
||||
const rawItems = row.sampleItems
|
||||
if (Array.isArray(rawItems) && rawItems.length) {
|
||||
return rawItems.map((item) => {
|
||||
const rec = item as Record<string, unknown>
|
||||
return {
|
||||
sampleTypeName: String(rec.sampleTypeName || '').trim(),
|
||||
sampleCode: String(rec.sampleCode || '').trim(),
|
||||
labStorageCode: String(rec.labStorageCode || '').trim(),
|
||||
isSpecial: !!rec.isSpecial,
|
||||
specialRemark: String(rec.specialRemark || '').trim()
|
||||
}
|
||||
})
|
||||
}
|
||||
const types = String(row.sampleTypeNames || '')
|
||||
.split(',')
|
||||
.map((s) => s.trim())
|
||||
|
||||
@@ -79,6 +79,7 @@
|
||||
<el-option label="生效中" value="sxz" />
|
||||
<el-option label="已过期" value="ygq" />
|
||||
<el-option label="已作废" value="yzf" />
|
||||
<el-option label="属地废弃" value="sdfq" />
|
||||
<el-option label="转细胞存储" value="zckc" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -497,7 +498,11 @@
|
||||
<!-- 知情同意书 -->
|
||||
<div class="form-grid form-grid--attachment">
|
||||
<el-form-item label="知情同意书">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isConsentAttachDragover }"
|
||||
v-bind="consentAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="consentUploadRef"
|
||||
@@ -559,7 +564,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式,可稍后补充</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel
|
||||
等常见文件格式,可稍后补充,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -567,7 +575,11 @@
|
||||
<!-- 其他附件 -->
|
||||
<div class="form-grid form-grid--attachment">
|
||||
<el-form-item label="其他附件">
|
||||
<div class="attachment-upload">
|
||||
<div
|
||||
class="attachment-upload"
|
||||
:class="{ 'is-dragover': isOtherAttachDragover }"
|
||||
v-bind="otherAttachDropHandlers"
|
||||
>
|
||||
<div class="attachment-list">
|
||||
<el-upload
|
||||
ref="otherUploadRef"
|
||||
@@ -629,7 +641,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint">支持图片、视频、PDF、Word、Excel 等常见文件格式</span>
|
||||
<span class="upload-hint"
|
||||
>支持拖拽或点击上传图片、视频、PDF、Word、Excel
|
||||
等常见文件格式,单文件不超过 20MB</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -697,6 +712,7 @@
|
||||
fetchNextDonationSampleCode
|
||||
} from '@/api/research-donation'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { useAttachmentDropZone } from '@/composables/useAttachmentDropZone'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { handleChineseDatetimePaste, formatDatetimeToMinute } from '@/utils/chinese-datetime-parse'
|
||||
import { extractNumericPart } from '@/utils/numeric-input-parse'
|
||||
@@ -2246,6 +2262,15 @@
|
||||
formData.consentAttachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isConsentAttachDragover, dropZoneHandlers: consentAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleConsentAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/* ====== 其他附件上传 ====== */
|
||||
const otherUploadRef = ref()
|
||||
|
||||
@@ -2290,6 +2315,15 @@
|
||||
formData.otherAttachments.splice(index, 1)
|
||||
}
|
||||
|
||||
const { isDragover: isOtherAttachDragover, dropZoneHandlers: otherAttachDropHandlers } =
|
||||
useAttachmentDropZone({
|
||||
onFiles: (files) => {
|
||||
for (const file of files) {
|
||||
void handleOtherAttachmentChange({ raw: file })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/* ====== 文件预览 ====== */
|
||||
const previewVisible = ref(false)
|
||||
const previewUrl = ref('')
|
||||
|
||||
@@ -39,6 +39,16 @@
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="actionType === 'void'" label="作废类型" prop="voidType">
|
||||
<el-select v-model="form.voidType" placeholder="请选择作废类型" style="width: 100%">
|
||||
<el-option
|
||||
v-for="opt in voidTypeOptionsRef"
|
||||
:key="opt.value"
|
||||
:label="opt.label"
|
||||
:value="opt.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="descLabel">
|
||||
<el-input
|
||||
v-model="form.changeDesc"
|
||||
@@ -71,6 +81,7 @@
|
||||
import { fetchDonationStatusChange, fetchConvertToStorage } from '@/api/research-donation'
|
||||
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
|
||||
import { formatProtocolDocSubject } from '@/utils/protocol-doc-label'
|
||||
import { loadVoidTypeDict, voidTypeOptionsRef } from '@/utils/void-type-dict'
|
||||
|
||||
export type DonationStatusChangeAction = 'activate' | 'expire' | 'void' | 'toStorage'
|
||||
export type DonationStatusChangeTarget = {
|
||||
@@ -151,16 +162,31 @@
|
||||
const submitting = ref(false)
|
||||
const form = reactive({
|
||||
changeTime: '',
|
||||
changeDesc: ''
|
||||
changeDesc: '',
|
||||
voidType: ''
|
||||
})
|
||||
|
||||
const rules: FormRules = {
|
||||
changeTime: [{ required: true, message: '请选择时间', trigger: 'change' }]
|
||||
}
|
||||
const rules = computed<FormRules>(() => {
|
||||
const base: FormRules = {
|
||||
changeTime: [{ required: true, message: '请选择时间', trigger: 'change' }]
|
||||
}
|
||||
if (props.actionType === 'void') {
|
||||
base.voidType = [{ required: true, message: '请选择作废类型', trigger: 'change' }]
|
||||
}
|
||||
return base
|
||||
})
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
(visible) => {
|
||||
if (visible && props.actionType === 'void') void loadVoidTypeDict()
|
||||
}
|
||||
)
|
||||
|
||||
function resetForm() {
|
||||
form.changeTime = ''
|
||||
form.changeDesc = ''
|
||||
form.voidType = ''
|
||||
formRef.value?.clearValidate()
|
||||
}
|
||||
|
||||
@@ -220,7 +246,8 @@
|
||||
const payload = {
|
||||
newStatus: cfg.status,
|
||||
timeVal: form.changeTime,
|
||||
desc: form.changeDesc.trim() || undefined
|
||||
desc: form.changeDesc.trim() || undefined,
|
||||
voidType: props.actionType === 'void' ? form.voidType : undefined
|
||||
}
|
||||
|
||||
submitting.value = true
|
||||
|
||||
@@ -232,7 +232,14 @@
|
||||
<div class="data-grid data-grid--4">
|
||||
<div class="data-item">
|
||||
<div class="data-label">样本编码</div>
|
||||
<div class="data-value data-value--code">{{ dash(row.sampleCode) }}</div>
|
||||
<div class="data-value data-value--code">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">存储年限(年)</div>
|
||||
@@ -539,6 +546,7 @@
|
||||
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
|
||||
import SampleQcInfoGroupedPanel from '@/components/business/sample-qc-info-grouped-panel/index.vue'
|
||||
import SampleReceptionDualReadonlyPanel from '@/components/business/sample-reception-dual-readonly-panel/index.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import SampleProductionInfoCards from '@/components/business/sample-production-info-cards/index.vue'
|
||||
import SampleStorageReleaseInfo from '@/components/business/sample-storage-release-info/index.vue'
|
||||
import {
|
||||
@@ -1424,11 +1432,6 @@
|
||||
.client-sub-cards {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.data-grid--3,
|
||||
.data-grid--4 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<el-option label="生效中" value="sxz" />
|
||||
<el-option label="已过期" value="ygq" />
|
||||
<el-option label="已作废" value="yzf" />
|
||||
<el-option label="属地废弃" value="sdfq" />
|
||||
<el-option label="转细胞存储" value="zckc" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -113,7 +114,7 @@
|
||||
<el-tag
|
||||
:type="donationStatusTagType(String(row.donationStatus || ''))"
|
||||
size="small"
|
||||
>{{ donationStatusLabel(String(row.donationStatus || '')) }}</el-tag
|
||||
>{{ donationStatusDisplayLabel(String(row.donationStatus || ''), String(row.voidType || '')) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -301,6 +302,7 @@
|
||||
} from '@/api/research-donation'
|
||||
import {
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType,
|
||||
newbornSexLabel,
|
||||
deliveryModeLabel
|
||||
|
||||
+14
-3
@@ -66,7 +66,7 @@
|
||||
<el-tag
|
||||
:type="donationStatusTagType(String(row.donationStatus || ''))"
|
||||
size="small"
|
||||
>{{ donationStatusLabel(String(row.donationStatus || '')) }}</el-tag
|
||||
>{{ donationStatusDisplayLabel(String(row.donationStatus || ''), String(row.voidType || '')) }}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -95,10 +95,19 @@
|
||||
<el-table-column
|
||||
prop="sampleCode"
|
||||
label="样本编码"
|
||||
min-width="130"
|
||||
min-width="160"
|
||||
align="center"
|
||||
header-align="center"
|
||||
/>
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<SampleCodeWithSpecialDisplay
|
||||
:sample-code="row.sampleCode"
|
||||
:is-special="!!row.isSpecial"
|
||||
:special-remark="row.specialRemark"
|
||||
monospace
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="labStorageCode"
|
||||
label="实验室入库编码"
|
||||
@@ -207,10 +216,12 @@
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Search, RefreshLeft, View } from '@element-plus/icons-vue'
|
||||
import DonationViewDialog from '../list/DonationViewDialog.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import { fetchResearchDonationSampleCollectionList } from '@/api/research-donation-sample-collection'
|
||||
import { type ResearchDonationRow } from '@/api/research-donation'
|
||||
import {
|
||||
donationStatusLabel,
|
||||
donationStatusDisplayLabel,
|
||||
donationStatusTagType,
|
||||
sampleStatusLabel,
|
||||
sampleStatusTagType
|
||||
|
||||
@@ -637,14 +637,15 @@
|
||||
}
|
||||
|
||||
.express-view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -3959,29 +3959,10 @@
|
||||
}
|
||||
|
||||
.order-module-dialog .view-kv-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 12px 28px;
|
||||
}
|
||||
|
||||
.order-module-dialog .view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.order-module-dialog .view-kv dt {
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.order-module-dialog .view-kv dd {
|
||||
color: #1e293b;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.order-module-dialog .view-kv.view-multiline {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
@@ -3990,10 +3971,7 @@
|
||||
.order-module-dialog .view-kv-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.order-module-dialog .view-kv {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.order-module-dialog .view-kv.view-multiline {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
@@ -935,14 +935,15 @@
|
||||
}
|
||||
|
||||
.site-view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -236,40 +236,13 @@
|
||||
}
|
||||
|
||||
.view-kv-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px 28px;
|
||||
}
|
||||
|
||||
.view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
color: #1e293b;
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.view-kv-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.view-kv {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -381,40 +381,13 @@
|
||||
}
|
||||
|
||||
.view-kv-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px 28px;
|
||||
}
|
||||
|
||||
.view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
color: #1e293b;
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.view-kv-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.view-kv {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
/* horizontal timeline */
|
||||
|
||||
@@ -391,40 +391,13 @@
|
||||
}
|
||||
|
||||
.view-kv-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px 28px;
|
||||
}
|
||||
|
||||
.view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
color: #1e293b;
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.view-kv-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.view-kv {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── horizontal timeline ── */
|
||||
|
||||
@@ -406,40 +406,13 @@
|
||||
}
|
||||
|
||||
.view-kv-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px 28px;
|
||||
}
|
||||
|
||||
.view-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 96px 1fr;
|
||||
gap: 8px 12px;
|
||||
font-size: 13px;
|
||||
align-items: start;
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
color: var(--mint-text-muted, #334155);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
color: #1e293b;
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.view-kv-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.view-kv {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── horizontal timeline ── */
|
||||
|
||||
Reference in new issue
Block a user