提交
This commit is contained in:
1 parent
c00f19f8bd
commit
272c68af4b
134 files changed
+930389
-38617
No files matched your search
@@ -22,7 +22,7 @@ export function isRequiredCertSlotComplete(
|
||||
if (!cert) return false
|
||||
if (!matchRequiredCertName(cert.certName, requiredName)) return false
|
||||
if (!cert.expireDate) return false
|
||||
if (!cert.attachmentUrls?.trim()) return false
|
||||
// 证书附件非必填
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -31,11 +31,11 @@ export function getMissingRequiredCertFieldLabels(
|
||||
requiredName: string
|
||||
): string[] {
|
||||
if (!cert || !matchRequiredCertName(cert.certName, requiredName)) {
|
||||
return ['有效期', '附件']
|
||||
return ['有效期']
|
||||
}
|
||||
const missing: string[] = []
|
||||
if (!cert.expireDate) missing.push('有效期')
|
||||
if (!cert.attachmentUrls?.trim()) missing.push('附件')
|
||||
// 证书附件非必填
|
||||
return missing
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user