fix(web-admin): use registry tag types for protocol payMode and auditStatus

Align ProtocolViewDialog tags with status-tag-registry instead of hard-coded success/warning.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-10-15 09:50:45 +08:00
1 parent b592aaec2e
commit 920b432491
1 file changed
+5 -16
@@ -578,10 +578,7 @@
<el-tag v-if="sp.sampleCode" size="small" type="info">{{
sp.sampleCode
}}</el-tag>
<el-tag
:type="String(sp.payMode) === 'fq' ? 'warning' : 'success'"
size="small"
>
<el-tag :type="payModeTagType(String(sp.payMode || ''))" size="small">
{{ payModeLabel(String(sp.payMode || '')) }}
</el-tag>
</div>
@@ -823,14 +820,7 @@
<div class="sample-pay-readonly__head">
<div class="sample-pay-readonly__title">
<span>协议缴费</span>
<el-tag
:type="
isInstallmentPayMode(String(payment?.payMode || ''))
? 'warning'
: 'success'
"
size="small"
>
<el-tag :type="payModeTagType(String(payment?.payMode || ''))" size="small">
{{ payModeLabel(String(payment?.payMode || '')) }}
</el-tag>
</div>
@@ -1047,10 +1037,7 @@
header-align="center"
>
<template #default="{ row }">
<el-tag
:type="String(row.auditStatus) === 'shtg' ? 'success' : 'warning'"
size="small"
>
<el-tag :type="auditStatusTagType(String(row.auditStatus || ''))" size="small">
{{ auditStatusLabel(String(row.auditStatus || '')) }}
</el-tag>
</template>
@@ -1242,7 +1229,9 @@
protocolStatusDisplayLabel,
protocolStatusTagType,
auditStatusLabel,
auditStatusTagType,
payModeLabel,
payModeTagType,
newbornSexLabel,
deliveryModeLabel,
sampleStatusLabel,