diff --git a/web-admin/src/components/oa-approval/OaReceiveAccountSelect.vue b/web-admin/src/components/oa-approval/OaReceiveAccountSelect.vue index 17e24775..a82fc4d2 100644 --- a/web-admin/src/components/oa-approval/OaReceiveAccountSelect.vue +++ b/web-admin/src/components/oa-approval/OaReceiveAccountSelect.vue @@ -6,42 +6,9 @@
-
- {{ ACCOUNT_TYPE_LABEL[item.accountType] || item.accountType }} -
-
- - - - -
+ {{ formatReceiveAccountLine(item) }}
— @@ -123,42 +90,9 @@
-
- {{ ACCOUNT_TYPE_LABEL[item.accountType] || item.accountType }} -
-
- - - - -
+ {{ formatReceiveAccountLine(item) }}
@@ -171,7 +105,7 @@ import { ElMessage } from 'element-plus' import { fetchOaReceiveAccountOptions } from '@/api/oaApproval' import { - ACCOUNT_TYPE_LABEL, + formatReceiveAccountLine, normalizeReceiveAccountModelValue, optionLabelFromRow, snapshotFromRow, @@ -223,13 +157,6 @@ ) }) - function regionText(item: ReceiveAccountSnapshot) { - const p = item.bankProvince.trim() - const c = item.bankCity.trim() - if (p && c) return `${p} / ${c}` - return p || c || '—' - } - function emitFromIds(ids: string[]) { const items: ReceiveAccountSnapshot[] = [] const seen = new Set() @@ -410,48 +337,12 @@ .oa-receive-account-select__detail { display: flex; flex-direction: column; - gap: 8px; - margin-top: 10px; + gap: 6px; + margin-top: 8px; } - .oa-receive-account-select__card { - padding: 10px 12px; - border: 1px solid var(--mint-border, #d9e8e2); - border-radius: 8px; - background: var(--mint-row-alt, #fafafa); - } - - .oa-receive-account-select__card-title { - margin-bottom: 8px; - color: var(--mint-primary-dark, #059669); - font-size: 13px; - font-weight: 600; - } - - .oa-receive-account-select__card-grid { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 8px 16px; - } - - .oa-receive-account-select__field { - display: flex; - flex-direction: column; - gap: 2px; - min-width: 0; - } - - .oa-receive-account-select__field--full { - grid-column: 1 / -1; - } - - .oa-receive-account-select__field .k { + .oa-receive-account-select__line { color: var(--mint-text-muted, #64748b); - font-size: 12px; - } - - .oa-receive-account-select__field .v { - color: var(--mint-text, #1e293b); font-size: 13px; line-height: 1.5; word-break: break-all; @@ -462,9 +353,5 @@ .oa-receive-account-select__trigger { min-height: 44px; } - - .oa-receive-account-select__card-grid { - grid-template-columns: 1fr; - } }