feat(platform): center vehicle service around customers

This commit is contained in:
lingniu
2026-07-05 20:12:39 +08:00
parent 2765a3c491
commit 0beca74bcf
3 changed files with 175 additions and 1 deletions

View File

@@ -3108,6 +3108,97 @@ button.vp-realtime-command-item:focus-visible {
line-height: 20px;
}
.vp-customer-vehicle-service-hub {
margin-bottom: 16px;
border: 1px solid rgba(22, 100, 255, 0.18);
border-radius: var(--vp-radius);
background: #ffffff;
display: grid;
grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1.48fr);
overflow: hidden;
}
.vp-customer-vehicle-service-summary {
padding: 18px;
border-right: 1px solid var(--vp-border);
background: #f7fbff;
display: grid;
gap: 12px;
align-content: center;
}
.vp-customer-vehicle-service-summary strong {
color: var(--vp-text);
font-size: 24px;
font-weight: 700;
line-height: 30px;
word-break: break-word;
}
.vp-customer-vehicle-service-summary span {
color: var(--vp-text-muted);
font-size: 13px;
line-height: 20px;
}
.vp-customer-vehicle-service-grid {
padding: 14px;
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 10px;
}
.vp-customer-vehicle-service-item {
min-height: 148px;
padding: 12px;
border: 1px solid var(--vp-border);
border-radius: var(--vp-radius);
background: #fbfcff;
color: inherit;
cursor: pointer;
font: inherit;
text-align: left;
display: grid;
gap: 8px;
align-content: start;
transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.vp-customer-vehicle-service-item:disabled {
cursor: not-allowed;
opacity: 0.62;
}
.vp-customer-vehicle-service-item:not(:disabled):hover,
.vp-customer-vehicle-service-item:not(:disabled):focus-visible {
border-color: rgba(22, 100, 255, 0.42);
background: #f5f9ff;
box-shadow: 0 0 0 3px rgba(22, 100, 255, 0.08);
outline: none;
}
.vp-customer-vehicle-service-item strong {
color: var(--vp-text);
font-size: 20px;
font-weight: 700;
line-height: 26px;
word-break: break-word;
}
.vp-customer-vehicle-service-item span {
color: var(--vp-text-muted);
font-size: 12px;
line-height: 18px;
}
.vp-customer-vehicle-service-item em {
color: var(--vp-primary);
font-size: 13px;
font-style: normal;
font-weight: 700;
line-height: 20px;
}
.vp-vehicle-asset-console {
margin-bottom: 16px;
border: 1px solid rgba(22, 100, 255, 0.16);
@@ -9469,6 +9560,8 @@ button.vp-realtime-command-item:focus-visible {
.vp-service-entry-grid,
.vp-current-service-board,
.vp-current-service-grid,
.vp-customer-vehicle-service-hub,
.vp-customer-vehicle-service-grid,
.vp-vehicle-asset-console,
.vp-vehicle-asset-console-grid,
.vp-vehicle-service-desk,