556 lines
22 KiB
Vue
556 lines
22 KiB
Vue
<template>
|
||
<div>
|
||
<div v-if="loading" class="mp-cert-page-loading"><van-loading /></div>
|
||
<p v-if="error" class="mp-wv-empty" role="alert">
|
||
{{ error }}
|
||
<button class="mp-wv-btn" type="button" @click="load">重试</button>
|
||
</p>
|
||
<template v-else-if="plan">
|
||
<section class="mp-wv-section mp-cert-quota">
|
||
<p class="mp-wv-card__meta">当前车号 {{ plan.licensePlate || '待安排' }}</p>
|
||
<p v-if="plan.certQuotaRuleVersion === 'customer_category'" class="plan-empty-hint">
|
||
新规则计划由系统按客户+品类自动选证,本页仅查看占用;安排不提供手工选证。
|
||
</p>
|
||
<p v-else-if="plan.canSaveConfiguration === false" class="plan-empty-hint">
|
||
已安排计划请从调整运输提交用证变更;已归档计划仅查看占用。
|
||
</p>
|
||
<h3>全部装送段用证</h3>
|
||
<p v-if="!sourceOptions.length" class="plan-empty-hint">当前计划没有易制毒产品,无需购买证、运输证。</p>
|
||
<article v-for="row in sourceOptions" :key="row.sourceStopType + row.sourceStopProductId" class="mp-cert-stop">
|
||
<h4>{{ stopTitle(row) }}</h4>
|
||
<div class="detail-field-grid">
|
||
<div class="mp-wv-kv"><span>关联合同</span><span>{{ row.contractNo || '未关联合同' }}</span></div>
|
||
<div class="mp-wv-kv"><span>装送单位</span><span>{{ row.partyName || '—' }}</span></div>
|
||
<div class="mp-wv-kv"><span>需用量</span><span>{{ qtyText(row.quantity) }} {{ unitText(row.unit) }}</span></div>
|
||
<div class="mp-wv-kv">
|
||
<span>购买证</span>
|
||
<span><template v-if="bound(row, 'purchase').length"><button v-for="cert in bound(row, 'purchase')" :key="cert.certId" class="mp-cert-face-link" type="button" @click="showCertFace(cert)">{{ cert.certNo }}</button></template><template v-else>未绑定</template></span>
|
||
</div>
|
||
<div class="mp-wv-kv">
|
||
<span>运输证</span>
|
||
<span><template v-if="bound(row, 'transport').length"><button v-for="cert in bound(row, 'transport')" :key="cert.certId" class="mp-cert-face-link" type="button" @click="showCertFace(cert)">{{ cert.certNo }}</button></template><template v-else>未绑定</template></span>
|
||
</div>
|
||
</div>
|
||
</article>
|
||
</section>
|
||
<section v-if="conversionGroups.length" class="mp-wv-section mp-cert-form">
|
||
<h3>单位不一致,填写换算系数</h3>
|
||
<p class="plan-empty-hint">
|
||
只列出计划单位和证面单位不同的段次。系数表示 1 个计划单位等于多少证面单位,计划数量保持不变。
|
||
</p>
|
||
<article v-for="group in conversionGroups" :key="group.sourceId" class="mp-cert-stop">
|
||
<h4>{{ sourceLabel(group.sourceId, measured) }}</h4>
|
||
<p class="plan-empty-hint">
|
||
计划数量 {{ qtyText(group.source.quantity) }} {{ unitText(group.source.unit) }}
|
||
</p>
|
||
<div v-for="row in group.rows" :key="conversionKey(row)" class="mp-cert-factor">
|
||
<strong class="mp-cert-kind-heading">
|
||
<span
|
||
class="status-tag mp-cert-kind-tag"
|
||
:class="`status-tag--${certKindMobileTone(row.cert.certType)}`"
|
||
>{{ certKindLabel(row.cert.certType) }}</span
|
||
>
|
||
<span>{{ row.cert.certNo }}</span>
|
||
</strong>
|
||
<van-field
|
||
v-model="coefficients[conversionKey(row)]"
|
||
label="换算系数"
|
||
label-align="top"
|
||
type="number"
|
||
:disabled="saving || plan.canSaveConfiguration === false"
|
||
:placeholder="`1 ${unitText(row.source.unit)} = ? ${unitText(row.cert.quantityUnit)}`"
|
||
/>
|
||
<p class="plan-empty-hint">
|
||
{{ conversionPreview(row) ? `证面数量 ${conversionPreview(row)}` : '填写系数后显示证面数量' }}
|
||
</p>
|
||
<van-field
|
||
v-model="allocationOf(row).note"
|
||
label="换算依据"
|
||
label-align="top"
|
||
:disabled="saving || plan.canSaveConfiguration === false"
|
||
placeholder="选填"
|
||
/>
|
||
</div>
|
||
</article>
|
||
<button
|
||
class="mp-wv-btn mp-wv-btn--primary mp-wv-btn--block"
|
||
type="button"
|
||
:disabled="saving || plan.canSaveConfiguration === false"
|
||
@click="saveConversion"
|
||
>
|
||
保存换算
|
||
</button>
|
||
</section>
|
||
<section v-if="plan.usages.length" class="mp-wv-section">
|
||
<h3>已有占用与结转</h3>
|
||
<article v-for="(row, index) in plan.usages" :key="`${row.certId || row.certNoSnapshot || index}:${index}`" class="mp-cert-stop">
|
||
<div class="detail-field-grid">
|
||
<div class="mp-wv-kv"><span>证件</span><span>{{ row.certNoSnapshot || '—' }}</span></div>
|
||
<div class="mp-wv-kv">
|
||
<span>状态</span>
|
||
<span class="status-tag" :class="row.usageStatus === 'exception' ? 'status-tag--danger' : 'status-tag--info'">
|
||
{{ usageLabels[row.usageStatus] || row.usageStatus || '—' }}
|
||
</span>
|
||
</div>
|
||
<div class="mp-wv-kv"><span>证面单位</span><span>{{ unitText(row.quantityUnit) || '—' }}</span></div>
|
||
<div class="mp-wv-kv"><span>预占量</span><span>{{ qtyText(row.reservedQty) }}</span></div>
|
||
<div class="mp-wv-kv"><span>使用量</span><span>{{ qtyText(row.usedQty) }}</span></div>
|
||
</div>
|
||
</article>
|
||
</section>
|
||
<section v-if="isPerStop && faceCards.length" class="mp-wv-section">
|
||
<h3>关联证件证面</h3>
|
||
<article v-for="face in faceCards" :id="faceDomId(face.key)" :key="face.key" class="mp-cert-face-card">
|
||
<h4 class="mp-cert-kind-heading">
|
||
<span
|
||
class="status-tag mp-cert-kind-tag"
|
||
:class="`status-tag--${certKindMobileTone(face.kind)}`"
|
||
>{{ certKindLabel(face.kind) }}</span
|
||
>
|
||
<span>{{ face.certNo }}</span>
|
||
</h4>
|
||
<p v-if="!face.cert" class="plan-empty-hint">没有读到这张证的证面档案。</p>
|
||
<template v-else>
|
||
<div v-for="(group, groupIndex) in groupsOf(face.cert, face.kind)" :key="groupIndex">
|
||
<h3 v-if="group.title">{{ group.title }}</h3>
|
||
<div class="detail-field-grid">
|
||
<div
|
||
v-for="field in group.fields"
|
||
:key="field.label"
|
||
class="mp-wv-kv"
|
||
:class="{ 'detail-wide': field.wide }"
|
||
>
|
||
<span>{{ field.label }}</span><span>{{ field.value }}</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<template v-if="face.kind === 'transport'">
|
||
<h3>关联购买证</h3>
|
||
<p v-if="!face.cert.purchaseRefs?.length" class="plan-empty-hint">没有关联购买证。</p>
|
||
<article
|
||
v-for="(refRow, index) in face.cert.purchaseRefs || []"
|
||
:key="refRow.id || index"
|
||
class="mp-cert-stop"
|
||
>
|
||
<div class="detail-field-grid">
|
||
<div class="mp-wv-kv">
|
||
<span>引用类型</span><span>{{ refLabels[refRow.referenceType] || refRow.referenceType || '—' }}</span>
|
||
</div>
|
||
<div class="mp-wv-kv"><span>购买许可/备案/出口许可证号</span><span>{{ refRow.referenceNo || '—' }}</span></div>
|
||
<div class="mp-wv-kv detail-wide">
|
||
<span>对应购买证</span>
|
||
<span>{{ purchaseNo(refRow.purchaseCertId) }}</span>
|
||
</div>
|
||
</div>
|
||
</article>
|
||
</template>
|
||
<template v-if="face.cert.attachmentUrls">
|
||
<h3>证件附件</h3>
|
||
<AttachmentUploadField :model-value="face.cert.attachmentUrls" disabled />
|
||
</template>
|
||
</template>
|
||
</article>
|
||
</section>
|
||
</template>
|
||
</div>
|
||
</template>
|
||
<script setup lang="ts">
|
||
import AttachmentUploadField from '@/components/business/attachment-upload-field/index.vue'
|
||
import {
|
||
planQuotaApi,
|
||
quotaCertApi,
|
||
type CertType,
|
||
type PlanQuota,
|
||
type QuotaCert,
|
||
type ManualQuotaQuantity,
|
||
type QuotaConfiguration,
|
||
type QuotaSourceOption
|
||
} from '@/api/pl/quota-cert'
|
||
import {
|
||
coefficientFromQuantities,
|
||
configurationPayload,
|
||
initialLegacySelection,
|
||
measuredSources,
|
||
permitQuantityFromCoefficient,
|
||
sourceLabel,
|
||
unitConversions
|
||
} from '@/components/business/pl-plan-quota-dialog/stop-model'
|
||
import { certKindLabel, certKindMobileTone } from '@/views/pl/quota-cert/cert-list-face'
|
||
import { formatCertQty } from '@/views/pl/quota-cert/model'
|
||
import { useDictStore } from '@/store/modules/dict'
|
||
import { getProductUnitLabel } from '@/utils/crm-product-display'
|
||
import { certFaceGroups, certStatusLabels, refLabels } from './face-model'
|
||
import '../plan/plan-read-fields.scss'
|
||
import './cert-mobile.scss'
|
||
|
||
const props = defineProps<{ planId: string }>()
|
||
const loading = ref(false)
|
||
const error = ref('')
|
||
const plan = ref<PlanQuota>()
|
||
const certs = ref<Record<string, QuotaCert | null>>({})
|
||
const purchases = ref<QuotaCert[]>([])
|
||
const saving = ref(false)
|
||
const allocations = ref<ManualQuotaQuantity[]>([])
|
||
const coefficients = reactive<Record<string, string>>({})
|
||
const sides = reactive<Record<string, string>>({})
|
||
const pairs = reactive<Record<string, string[]>>({})
|
||
let epoch = 0
|
||
const usageLabels: Record<string, string> = {
|
||
reserved: '已预占',
|
||
in_transit: '执行中',
|
||
settled: '已核销',
|
||
released: '已释放',
|
||
exception: '结转异常',
|
||
draft: '草稿'
|
||
}
|
||
|
||
const measured = computed(() => measuredSources(plan.value, sides))
|
||
const sourceOptions = computed(() => plan.value?.sourceOptions || [])
|
||
const faceCards = computed(() => {
|
||
const seen = new Set<string>()
|
||
const tabs: {
|
||
key: string
|
||
label: string
|
||
kind: CertType
|
||
certNo: string
|
||
cert: QuotaCert | null
|
||
}[] = []
|
||
const push = (kind: string, id: string, certNo: string) => {
|
||
if ((kind !== 'purchase' && kind !== 'transport') || !id || seen.has(`${kind}:${id}`)) return
|
||
seen.add(`${kind}:${id}`)
|
||
const cert = certs.value[`${kind}:${id}`] ?? null
|
||
const number = cert?.certNo || certNo || '证号未提供'
|
||
tabs.push({
|
||
key: `${kind}:${id}`,
|
||
kind,
|
||
cert,
|
||
certNo: number,
|
||
label: `${certKindLabel(kind)} ${number}`
|
||
})
|
||
}
|
||
for (const row of plan.value?.stopProducts || []) {
|
||
for (const cert of row.certificates || []) push(cert.certType, cert.certId, cert.certNo)
|
||
}
|
||
for (const usage of plan.value?.usages || []) {
|
||
push(String(usage.certType || ''), String(usage.certId || ''), String(usage.certNoSnapshot || ''))
|
||
}
|
||
tabs.sort((a, b) => Number(a.kind !== 'purchase') - Number(b.kind !== 'purchase'))
|
||
return tabs
|
||
})
|
||
const conversions = computed(() => unitConversions(plan.value, measured.value))
|
||
const conversionGroups = computed(() => {
|
||
const groups = new Map<
|
||
string,
|
||
{ sourceId: string; source: QuotaSourceOption; rows: ReturnType<typeof unitConversions> }
|
||
>()
|
||
for (const row of conversions.value) {
|
||
const current = groups.get(row.sourceId) || { sourceId: row.sourceId, source: row.source, rows: [] }
|
||
current.rows.push(row)
|
||
groups.set(row.sourceId, current)
|
||
}
|
||
return [...groups.values()]
|
||
})
|
||
|
||
function faceDomId(key: string) {
|
||
return `cert-face-${key.replace(/:/g, '-')}`
|
||
}
|
||
function unitText(unit?: string | null) {
|
||
const label = getProductUnitLabel(useDictStore().getLabel, unit)
|
||
return !label || label === '—' ? '' : label
|
||
}
|
||
function qtyText(value: unknown) {
|
||
return formatCertQty(value)
|
||
}
|
||
function stopTitle(row: QuotaSourceOption) {
|
||
return sourceLabel(`${row.sourceStopType}:${row.sourceStopProductId}`, sourceOptions.value)
|
||
}
|
||
function showCertFace(cert: { certType: string; certId: string }) {
|
||
const key = `${cert.certType}:${cert.certId}`
|
||
if (!faceCards.value.some((item) => item.key === key)) return
|
||
void nextTick(() => document.getElementById(faceDomId(key))?.scrollIntoView({ block: 'start' }))
|
||
}
|
||
function applySelection(value: PlanQuota) {
|
||
const next = initialLegacySelection(value)
|
||
for (const key of Object.keys(sides)) delete sides[key]
|
||
for (const key of Object.keys(pairs)) delete pairs[key]
|
||
Object.assign(sides, next.sides)
|
||
for (const [key, ids] of Object.entries(next.pairs)) pairs[key] = ids
|
||
}
|
||
function bound(row: QuotaSourceOption, kind: CertType) {
|
||
const fromStop = (
|
||
plan.value?.stopProducts?.find(
|
||
(item) =>
|
||
item.sourceStopType === row.sourceStopType && item.sourceStopProductId === row.sourceStopProductId
|
||
)?.certificates || []
|
||
).filter((cert) => cert.certType === kind)
|
||
if (fromStop.length) return fromStop
|
||
// 新规则无合同绑证时,安排后从占用明细回填证号
|
||
const sourceId = `${row.sourceStopType}:${row.sourceStopProductId}`
|
||
const fromUsage: { certType: CertType; certId: string; certNo: string; quantityUnit: string }[] = []
|
||
for (const usage of plan.value?.usages || []) {
|
||
if (String(usage.certType || '') !== kind) continue
|
||
const items = Array.isArray(usage.items) ? usage.items : []
|
||
const hit = items.some((item: Record<string, unknown>) => {
|
||
const typed = `${String(item.sourceStopType || '')}:${String(item.sourceStopProductId || '')}`
|
||
return String(item.sourceId || '') === sourceId || typed === sourceId
|
||
})
|
||
if (!hit) continue
|
||
fromUsage.push({
|
||
certType: kind,
|
||
certId: String(usage.certId || ''),
|
||
certNo: String(usage.certNoSnapshot || ''),
|
||
quantityUnit: String(usage.quantityUnit || '')
|
||
})
|
||
}
|
||
return fromUsage
|
||
}
|
||
function display(cert: QuotaCert, key: string) {
|
||
if (key === 'status') return certStatusLabels[cert.status] || cert.status || '—'
|
||
if (key === 'totalQty') {
|
||
const qty = qtyText(cert.totalQty)
|
||
const unit = unitText(cert.quantityUnit)
|
||
return unit && qty !== '—' ? `${qty} ${unit}` : qty
|
||
}
|
||
if (key === 'quantityUnit') return unitText(cert.quantityUnit) || '—'
|
||
if (key === 'remark') return String(cert.remark || '').trim() || '—'
|
||
const raw = cert[key as keyof QuotaCert]
|
||
if (raw == null || raw === '') return '—'
|
||
return typeof raw === 'string' || typeof raw === 'number' ? String(raw) : '—'
|
||
}
|
||
function groupsOf(cert: QuotaCert, kind: CertType) {
|
||
return certFaceGroups(cert, kind, display)
|
||
}
|
||
function conversionKey(row: { sourceId: string; cert: { certType: string; certId: string } }) {
|
||
return `${row.sourceId}:${row.cert.certType}:${row.cert.certId}`
|
||
}
|
||
function inputQty(value: unknown) {
|
||
const text = qtyText(value)
|
||
return text === '—' ? '' : text
|
||
}
|
||
function allocationOf(row: (typeof conversions.value)[number]) {
|
||
return (
|
||
allocations.value.find(
|
||
(item) =>
|
||
item.sourceId === row.sourceId &&
|
||
item.permitKind === row.cert.certType &&
|
||
item.permitId === row.cert.certId
|
||
) || { note: '' }
|
||
)
|
||
}
|
||
function conversionPreview(row: (typeof conversions.value)[number]) {
|
||
const permit = permitQuantityFromCoefficient(row.source.quantity, coefficients[conversionKey(row)])
|
||
return permit ? `${qtyText(permit)} ${unitText(row.cert.quantityUnit)}` : ''
|
||
}
|
||
function syncConversions(value: PlanQuota, keepCurrent = false) {
|
||
const rows = unitConversions(value, measuredSources(value, sides))
|
||
const previous = (keepCurrent ? allocations.value : value.configuration.manualAllocations) || []
|
||
allocations.value = rows.map((row) => {
|
||
const saved = previous.find(
|
||
(item) =>
|
||
item.sourceId === row.sourceId &&
|
||
item.permitKind === row.cert.certType &&
|
||
item.permitId === row.cert.certId
|
||
)
|
||
return (
|
||
saved || {
|
||
permitKind: row.cert.certType,
|
||
sourceId: row.sourceId,
|
||
permitId: row.cert.certId,
|
||
sourceQuantity: inputQty(row.source.quantity),
|
||
permitQuantity: '',
|
||
note: ''
|
||
}
|
||
)
|
||
})
|
||
for (const key of Object.keys(coefficients)) delete coefficients[key]
|
||
for (const row of rows) {
|
||
const saved = allocations.value.find(
|
||
(item) =>
|
||
item.sourceId === row.sourceId &&
|
||
item.permitKind === row.cert.certType &&
|
||
item.permitId === row.cert.certId
|
||
)
|
||
coefficients[conversionKey(row)] = coefficientFromQuantities(saved?.sourceQuantity, saved?.permitQuantity)
|
||
}
|
||
}
|
||
async function saveConversion() {
|
||
if (!plan.value || saving.value || plan.value.canSaveConfiguration === false) return
|
||
const rows = conversions.value
|
||
const manual: ManualQuotaQuantity[] = []
|
||
for (const row of rows) {
|
||
const input = allocations.value.find(
|
||
(item) =>
|
||
item.sourceId === row.sourceId &&
|
||
item.permitKind === row.cert.certType &&
|
||
item.permitId === row.cert.certId
|
||
)
|
||
const permit = permitQuantityFromCoefficient(row.source.quantity, coefficients[conversionKey(row)])
|
||
if (!permit || !input) {
|
||
ElMessage.warning('请填写大于 0 的换算系数')
|
||
return
|
||
}
|
||
manual.push({
|
||
...input,
|
||
sourceQuantity: inputQty(row.source.quantity),
|
||
permitQuantity: permit,
|
||
note: String(input.note || '')
|
||
})
|
||
}
|
||
const current = plan.value.configuration
|
||
const body: QuotaConfiguration = configurationPayload(
|
||
plan.value,
|
||
{
|
||
measurementVersion: current.measurementVersion,
|
||
sourceMapping: current.sourceMapping ?? null,
|
||
purchaseCertIds: current.purchaseCertIds || [],
|
||
transportCertIds: current.transportCertIds || [],
|
||
manualAllocations: manual,
|
||
conditions: current.conditions || []
|
||
},
|
||
measured.value,
|
||
pairs
|
||
)
|
||
saving.value = true
|
||
try {
|
||
await planQuotaApi.save(plan.value.planId, body)
|
||
ElMessage.success('换算已保存')
|
||
await load()
|
||
} catch {
|
||
ElMessage.error('换算保存失败,请重试')
|
||
} finally {
|
||
saving.value = false
|
||
}
|
||
}
|
||
function purchaseNo(id?: string | null) {
|
||
if (!id) return '未关联'
|
||
return purchases.value.find((item) => item.id === id)?.certNo || '无查看权限或已失效'
|
||
}
|
||
|
||
async function load() {
|
||
const current = ++epoch
|
||
loading.value = true
|
||
error.value = ''
|
||
try {
|
||
const value = await planQuotaApi.get(props.planId)
|
||
if (current !== epoch) return
|
||
plan.value = value
|
||
applySelection(value)
|
||
syncConversions(value)
|
||
const ids = new Map<string, CertType>()
|
||
for (const row of value.stopProducts || []) {
|
||
for (const cert of row.certificates || []) {
|
||
if (cert.certId) ids.set(`${cert.certType}:${cert.certId}`, cert.certType)
|
||
}
|
||
}
|
||
for (const usage of value.usages || []) {
|
||
const kind = String(usage.certType || '')
|
||
const id = String(usage.certId || '')
|
||
if ((kind === 'purchase' || kind === 'transport') && id) ids.set(`${kind}:${id}`, kind)
|
||
}
|
||
const loaded = await Promise.all(
|
||
[...ids.entries()].map(async ([key, kind]) => {
|
||
try {
|
||
return [key, await quotaCertApi.get(kind, key.slice(kind.length + 1))] as const
|
||
} catch {
|
||
return [key, null] as const
|
||
}
|
||
})
|
||
)
|
||
if (current !== epoch) return
|
||
certs.value = Object.fromEntries(loaded)
|
||
if ([...ids.values()].includes('transport')) {
|
||
purchases.value = await quotaCertApi.list('purchase').catch(() => [])
|
||
}
|
||
} catch (reason) {
|
||
if (current === epoch) {
|
||
const status = (reason as { response?: { status?: number } })?.response?.status
|
||
error.value =
|
||
status === 403 || status === 404
|
||
? '计划或证件不可读取,无法展示完整用证详情'
|
||
: '用证详情加载失败,请重试'
|
||
}
|
||
} finally {
|
||
if (current === epoch) loading.value = false
|
||
}
|
||
}
|
||
|
||
watch(() => props.planId, () => void load(), { immediate: true })
|
||
watch(
|
||
() => JSON.stringify(sides),
|
||
() => {
|
||
if (plan.value) syncConversions(plan.value, true)
|
||
}
|
||
)
|
||
</script>
|
||
<style scoped>
|
||
.mp-cert-stop {
|
||
margin-top: 8px;
|
||
padding-top: 8px;
|
||
border-top: 1px solid #eef4f1;
|
||
}
|
||
.mp-cert-stop h4 {
|
||
margin: 0;
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: #1f2a26;
|
||
}
|
||
.plan-empty-hint {
|
||
margin: 8px 0 0;
|
||
color: #6b7b74;
|
||
font-size: 13px;
|
||
}
|
||
.mp-cert-factor {
|
||
margin-top: 8px;
|
||
}
|
||
.mp-cert-factor strong {
|
||
font-size: 14px;
|
||
color: #1f2a26;
|
||
}
|
||
.mp-cert-quota {
|
||
--van-primary-color: #0a9f6d;
|
||
--van-radio-checked-icon-color: #0a9f6d;
|
||
--van-checkbox-checked-icon-color: #0a9f6d;
|
||
}
|
||
.mp-cert-pair {
|
||
margin-top: 8px;
|
||
color: #1f2a26;
|
||
font-size: 14px;
|
||
line-height: 1.5;
|
||
}
|
||
.mp-cert-pair p {
|
||
margin: 0 0 6px;
|
||
}
|
||
.mp-cert-face-link {
|
||
margin: 0 8px 0 0;
|
||
padding: 0;
|
||
color: #087f57;
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
background: none;
|
||
border: 0;
|
||
}
|
||
.mp-cert-quota :deep(.van-radio),
|
||
.mp-cert-quota :deep(.van-checkbox) {
|
||
margin-top: 8px;
|
||
align-items: flex-start;
|
||
}
|
||
.mp-wv-btn--block {
|
||
margin-top: 12px;
|
||
}
|
||
.mp-cert-face-card {
|
||
margin-top: 12px;
|
||
padding: 12px;
|
||
background: #f7faf8;
|
||
border: 1px solid #dcebe4;
|
||
border-radius: 12px;
|
||
}
|
||
.mp-cert-face-card h4 {
|
||
margin: 0 0 8px;
|
||
color: #087f57;
|
||
font-size: 15px;
|
||
font-weight: 700;
|
||
line-height: 1.4;
|
||
word-break: break-all;
|
||
}
|
||
</style>
|