提交
This commit is contained in:
1 parent
725774ef0c
commit
c3be9d1dce
176 files changed
+41925
-6342
No files matched your search
@@ -0,0 +1,498 @@
|
||||
/* 地磅(db)模块 Fresh Mint 公共样式 */
|
||||
|
||||
/* 列表工具栏(对齐计划管理:单行不换行) */
|
||||
.page-container .list-toolbar-row.db-list-toolbar-row {
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
> .list-toolbar-selected,
|
||||
> .list-toolbar-date-shortcuts,
|
||||
> .el-input,
|
||||
> .el-button {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.list-toolbar-date-shortcuts {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.db-toolbar-quick-search-input.el-input {
|
||||
width: 360px;
|
||||
max-width: 360px;
|
||||
flex: 0 0 360px;
|
||||
}
|
||||
}
|
||||
|
||||
.list-toolbar-date-shortcuts {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
padding-right: 8px;
|
||||
margin-right: 4px;
|
||||
border-right: 1px solid var(--mint-border, #d9e8e2);
|
||||
}
|
||||
|
||||
.list-toolbar-date-shortcuts .date-shortcut-btn.el-button {
|
||||
height: 32px;
|
||||
padding: 0 14px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.list-toolbar-date-shortcuts .date-shortcut-btn.is-active.el-button {
|
||||
color: var(--mint-primary-dark, #059669) !important;
|
||||
background: var(--mint-primary-bg, #ecfdf5) !important;
|
||||
border-color: rgba(16, 185, 129, 0.35) !important;
|
||||
--el-button-text-color: var(--mint-primary-dark, #059669);
|
||||
--el-button-bg-color: var(--mint-primary-bg, #ecfdf5);
|
||||
--el-button-border-color: rgba(16, 185, 129, 0.35);
|
||||
--el-button-hover-text-color: var(--mint-primary-dark, #059669);
|
||||
--el-button-hover-bg-color: var(--mint-primary-bg, #ecfdf5);
|
||||
--el-button-hover-border-color: rgba(16, 185, 129, 0.45);
|
||||
}
|
||||
|
||||
.db-quick-search-icon {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.db-op-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.db-quick-dates {
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background: var(--surface);
|
||||
|
||||
.el-button {
|
||||
margin: 0;
|
||||
height: 32px;
|
||||
padding: 0 12px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
box-shadow: none;
|
||||
|
||||
& + .el-button {
|
||||
border-left: 1px solid var(--border);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--row-alt);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
background: var(--primary-bg);
|
||||
color: var(--primary-dark);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.db-auto-end-hint {
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.db-related-body {
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.db-related-item {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.db-related-desc {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.db-related-table-dialog {
|
||||
.el-dialog__body {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.db-related-table-section {
|
||||
& + & {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.db-related-table-title {
|
||||
margin: 0 0 12px;
|
||||
padding-left: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text, #1e293b);
|
||||
border-left: 3px solid var(--primary, #10b981);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.db-related-table-dialog .view-subtable-wrap {
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.db-related-table-dialog .view-subtable-wrap .el-table.view-subtable {
|
||||
--el-table-header-bg-color: #f8fafc;
|
||||
--el-table-header-text-color: #64748b;
|
||||
--el-table-border-color: #e2e8f0;
|
||||
width: 100%;
|
||||
|
||||
.el-table__header th.el-table__cell,
|
||||
.el-table__body td.el-table__cell {
|
||||
font-size: 14px;
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.el-table__header th.el-table__cell .cell {
|
||||
font-weight: 500;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.el-table__body td.el-table__cell .cell {
|
||||
color: #1e293b;
|
||||
}
|
||||
}
|
||||
|
||||
/* 仪表盘图表卡片(避免嵌套 panel-top 与页面主标题重复) */
|
||||
.db-chart-card {
|
||||
height: 100%;
|
||||
background: var(--surface, #fff);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.db-chart-title {
|
||||
margin: 0;
|
||||
padding: 14px 20px 14px 17px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
line-height: 1.4;
|
||||
border-bottom: 1px solid var(--border);
|
||||
border-left: 3px solid var(--primary);
|
||||
}
|
||||
|
||||
.db-form-quantity-red.el-form-item .el-form-item__label {
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
|
||||
/* 仪表盘统计卡 */
|
||||
.db-dashboard-body {
|
||||
padding: 16px 20px 20px;
|
||||
}
|
||||
|
||||
.db-dashboard-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
margin-bottom: 16px;
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.db-stat-card {
|
||||
text-align: center;
|
||||
padding: 20px 12px;
|
||||
background: var(--primary-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
||||
|
||||
.db-stat-title {
|
||||
margin: 0 0 10px;
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.db-stat-value {
|
||||
margin: 0;
|
||||
font-size: clamp(18px, 2.4vw, 28px);
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
line-height: 1.3;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.db-stat-suffix {
|
||||
font-size: 14px;
|
||||
margin-left: 4px;
|
||||
color: var(--text-muted);
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
.db-dashboard-charts {
|
||||
.el-col {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 双柱图 */
|
||||
.db-dual-bar__body {
|
||||
padding: 16px 20px 20px;
|
||||
}
|
||||
|
||||
.db-dual-bar .legend {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.db-dual-bar .legend-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.db-dual-bar .legend-color {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.db-dual-bar .legend-color.planned {
|
||||
background: #3b82f6;
|
||||
}
|
||||
|
||||
.db-dual-bar .legend-color.actual {
|
||||
background: var(--primary);
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-label {
|
||||
min-width: 80px;
|
||||
max-width: 140px;
|
||||
font-size: 13px;
|
||||
color: var(--text);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-bar-group {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-bar-wrapper {
|
||||
background: #f1f5f9;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-bar {
|
||||
height: 100%;
|
||||
border-radius: 4px;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-bar.planned {
|
||||
background: #3b82f6;
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-bar.actual {
|
||||
background: var(--primary);
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-values {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-width: 90px;
|
||||
text-align: right;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-values .value.planned {
|
||||
color: #3b82f6;
|
||||
}
|
||||
|
||||
.db-dual-bar .chart-values .value.actual {
|
||||
color: var(--primary-dark);
|
||||
}
|
||||
|
||||
/* 磅单二维码弹窗 — 地磅业务 UI 例外(见 openspec dibang-frontend §磅单二维码弹窗业务例外) */
|
||||
.db-qrcode-dialog {
|
||||
.el-dialog__header {
|
||||
padding: 2px 10px 0;
|
||||
|
||||
.el-dialog__title {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
.el-dialog__body {
|
||||
padding: 6px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.db-qrcode-overlay {
|
||||
background: rgba(0, 0, 0, 0.92) !important;
|
||||
}
|
||||
|
||||
.db-qrcode-body {
|
||||
max-height: 70vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline {
|
||||
background: #f5f7fa;
|
||||
padding: 4px 8px;
|
||||
margin: 6px 10px;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-card {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
margin: 10px;
|
||||
padding: 6px 8px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-row {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 4px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-row-large {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-row .label {
|
||||
color: #6b7280;
|
||||
min-width: 82px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-row .value {
|
||||
color: #111827;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-row-plate {
|
||||
width: 100%;
|
||||
justify-content: stretch;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .vehicle-plate {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding: 10px 32px;
|
||||
background: #f5d000;
|
||||
border: 3px solid #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 0 2px #fff;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .vehicle-plate-text {
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
color: #000;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .vehicle-plate-dot {
|
||||
position: absolute;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .vehicle-plate-dot-lt {
|
||||
left: 6px;
|
||||
top: 8px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .vehicle-plate-dot-lb {
|
||||
left: 6px;
|
||||
bottom: 8px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .vehicle-plate-dot-rt {
|
||||
right: 6px;
|
||||
top: 8px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .vehicle-plate-dot-rb {
|
||||
right: 6px;
|
||||
bottom: 8px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-qrcode {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-id {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #111827;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-qr-wrap {
|
||||
padding: 8px 0;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-qr-img {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.pound-slip-capture-inline .capture-desc {
|
||||
font-size: 9px;
|
||||
font-weight: 500;
|
||||
color: #374151;
|
||||
margin-top: 4px;
|
||||
}
|
||||
Reference in new issue
Block a user