Files
hfb_sys/frontend/src/features/admin/views/AdminOrderDetailView.css
T
yml2213 832a0628c6 feat(order): 结账备注与系统结算信息分开展示,系统结算信息改为逐行明细
- 结账内容写入分隔标记,展示端拆出「结账备注(不参与结算金额)」与「系统结算信息(参与结算金额)」
- 系统结算信息每件消耗品单独一行并给合计,哈夫币/押金各一行;兼容旧数据(同一行用「;」分隔自动拆行并补合计)
- 新增 CheckoutSystemDetail 明细组件,接入订单交接记录、结账明细(PC/移动端)与客服订单详情、聊天侧栏
- 结账提交表单与二次确认补充「备注不参与结算金额」提示
2026-10-15 18:14:31 +08:00

355 lines
5.3 KiB
CSS

.order-metrics {
margin-bottom: 20px;
}
.order-metrics .metric-card strong {
font-size: 20px;
line-height: 1.25;
overflow-wrap: anywhere;
}
.metric-card small {
display: block;
margin-top: 8px;
color: #8f9bba;
font-size: 12px;
line-height: 1.4;
word-break: break-word;
}
.platform-handoff-button {
min-width: 96px;
border-color: #2563eb;
background: #2563eb;
color: #ffffff;
font-weight: 700;
box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}
.platform-handoff-button:hover,
.platform-handoff-button:focus {
border-color: #1d4ed8;
background: #1d4ed8;
color: #ffffff;
}
.platform-handoff-button:active {
border-color: #1e40af;
background: #1e40af;
}
.order-detail-grid {
display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
gap: 20px;
margin-bottom: 28px;
}
.detail-panel {
min-width: 0;
}
.order-wide-panel {
grid-column: 1 / -1;
}
.panel-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
}
.panel-heading h2 {
margin: 0;
}
.panel-subtitle {
color: #8f9bba;
font-size: 13px;
line-height: 1.6;
text-align: right;
}
.status-tags,
.snapshot-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: flex-end;
}
.detail-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px 18px;
margin: 0;
}
.detail-list div {
min-width: 0;
border-top: 1px solid #f0f2f5;
padding-top: 10px;
}
.detail-list .wide {
grid-column: 1 / -1;
}
.detail-list dt {
margin-bottom: 5px;
color: #8f9bba;
font-size: 12px;
font-weight: 600;
}
.detail-list dd {
margin: 0;
color: #1b2559;
font-size: 14px;
font-weight: 700;
line-height: 1.5;
overflow-wrap: anywhere;
}
/* 结账备注与系统结算信息为多行文本,保留换行 */
.detail-list dd.detail-pre {
font-weight: 500;
white-space: pre-wrap;
}
.money-list {
display: grid;
gap: 8px;
}
.money-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
border-top: 1px solid #f0f2f5;
padding-top: 9px;
color: #52616f;
font-size: 13px;
}
.money-row strong {
color: #1b2559;
font-size: 15px;
}
.money-row.total {
margin-top: 4px;
border-top-color: #d8e2f0;
color: #1b2559;
font-weight: 700;
}
.money-row.total strong {
font-size: 18px;
}
.record-list {
display: grid;
gap: 12px;
}
.record-item {
display: grid;
gap: 8px;
border: 1px solid #eef2f7;
border-radius: 8px;
background: #fbfcff;
padding: 14px;
}
.record-main {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.record-main strong {
color: #1b2559;
font-size: 15px;
}
.record-main span {
color: #8f9bba;
font-size: 13px;
}
.record-meta {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 8px 14px;
color: #52616f;
font-size: 12px;
line-height: 1.5;
}
.record-item p {
margin: 0;
color: #52616f;
line-height: 1.6;
white-space: pre-wrap;
}
/* 交接记录里租客手填备注与系统结算信息分块展示 */
.record-note {
display: grid;
gap: 4px;
padding: 10px 12px;
border: 1px solid #eef2f7;
border-radius: 6px;
background: #ffffff;
}
.record-note.remark {
border-color: #e5e9f2;
background: #f8fafc;
}
.record-note.system {
border-color: #dbeafe;
background: #f0f7ff;
}
.record-note-tag {
color: #8f9bba;
font-size: 12px;
font-weight: 700;
}
.record-note.system .record-note-tag {
color: #2563eb;
}
.snapshot-detail-list {
margin-bottom: 14px;
}
.ratio-row {
display: flex;
gap: 24px;
margin-bottom: 14px;
padding: 12px 14px;
border: 1px solid #eef2f7;
border-radius: 8px;
background: #fbfcff;
}
.ratio-item {
display: flex;
flex-direction: column;
gap: 4px;
}
.ratio-label {
font-size: 12px;
color: #8f9bba;
font-weight: 600;
}
.ratio-value {
font-size: 20px;
font-weight: 700;
color: #1b2559;
}
.snapshot-tags {
justify-content: flex-start;
margin-bottom: 14px;
}
.snapshot-resources {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 10px;
margin-bottom: 14px;
}
.resource-item {
display: grid;
gap: 4px;
border: 1px solid #eef2f7;
border-radius: 8px;
background: #fbfcff;
padding: 10px 12px;
}
.resource-item strong {
color: #1b2559;
font-size: 13px;
}
.resource-item span {
color: #52616f;
font-size: 12px;
}
.snapshot-json {
overflow-x: auto;
max-height: 360px;
margin: 0;
border-radius: 8px;
background: #111827;
color: #dbe4ee;
padding: 14px;
line-height: 1.6;
}
.dialog-body {
display: grid;
gap: 12px;
}
.dialog-body p {
margin: 0;
color: #52616f;
line-height: 1.6;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
}
.form-grid label {
display: grid;
gap: 6px;
color: #52616f;
font-size: 13px;
font-weight: 600;
}
.form-grid :deep(.el-input-number) {
width: 100%;
}
@media (max-width: 960px) {
.order-detail-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 640px) {
.panel-heading,
.record-main {
align-items: flex-start;
flex-direction: column;
}
.detail-list {
grid-template-columns: 1fr;
}
.status-tags {
justify-content: flex-start;
}
}