Bundle pending backend/web-admin feature updates, data-migration scripts, and related docs so the V1.5 branch on the Tencent Cloud Gogs matches the current workspace (excluding local secrets). Co-authored-by: Cursor <cursoragent@cursor.com>
539 lines
10 KiB
SCSS
539 lines
10 KiB
SCSS
/* 地磅(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,
|
|
> .quick-search-group,
|
|
> .quick-search-input,
|
|
> .el-button {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.list-toolbar-date-shortcuts {
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.quick-search-group .quick-search-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(--border);
|
|
}
|
|
|
|
/* 下拉 Select 形态不与右侧检索框用竖线分隔 */
|
|
.list-toolbar-date-shortcuts.is-select {
|
|
padding-right: 0;
|
|
margin-right: 0;
|
|
border-right: none;
|
|
}
|
|
|
|
.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(--primary-dark) !important;
|
|
background: var(--primary-bg) !important;
|
|
border-color: rgba(28, 168, 81, 0.35) !important;
|
|
--el-button-text-color: var(--primary-dark);
|
|
--el-button-bg-color: var(--primary-bg);
|
|
--el-button-border-color: rgba(28, 168, 81, 0.35);
|
|
--el-button-hover-text-color: var(--primary-dark);
|
|
--el-button-hover-bg-color: var(--primary-bg);
|
|
--el-button-hover-border-color: rgba(28, 168, 81, 0.45);
|
|
}
|
|
|
|
.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(--section-bar-title-color, var(--primary-dark, #059669));
|
|
border-left: 3px solid var(--section-bar-border-color, var(--primary));
|
|
line-height: 1;
|
|
}
|
|
|
|
.db-related-table-dialog .view-subtable-wrap {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md, 8px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.db-related-table-dialog .view-subtable-wrap .el-table.view-subtable {
|
|
--el-table-header-bg-color: var(--table-head);
|
|
--el-table-header-text-color: var(--text);
|
|
--el-table-border-color: var(--border);
|
|
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: var(--text);
|
|
}
|
|
|
|
.el-table__body td.el-table__cell .cell {
|
|
color: var(--text);
|
|
}
|
|
}
|
|
|
|
/* 仪表盘图表卡片(避免嵌套 panel-top 与页面主标题重复) */
|
|
.db-chart-card {
|
|
height: 100%;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius, 10px);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.db-chart-title {
|
|
margin: 0;
|
|
padding: 14px 20px 14px 17px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--section-bar-title-color, var(--primary-dark, #059669));
|
|
line-height: 1.4;
|
|
border-bottom: 1px solid var(--border);
|
|
border-left: 3px solid var(--section-bar-border-color, 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: var(--radius, 10px);
|
|
box-shadow: var(--shadow);
|
|
|
|
.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-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.db-dual-bar .chart-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
}
|
|
|
|
.db-dual-bar .chart-label {
|
|
flex-shrink: 0;
|
|
min-width: 80px;
|
|
max-width: 160px;
|
|
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: var(--text);
|
|
min-width: 82px;
|
|
}
|
|
|
|
.pound-slip-capture-inline .capture-row .value {
|
|
color: var(--text);
|
|
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: var(--text);
|
|
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: var(--text-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* 地磅新增/编辑弹窗:label 左、控件右,垂直居中,label 可换行(栅格列数不变) */
|
|
.db-dialog-form {
|
|
.el-form-item {
|
|
align-items: center;
|
|
}
|
|
|
|
&[class*='form-grid-'] > .el-form-item,
|
|
[class*='form-grid-'] > .el-form-item {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&[class*='form-grid-'],
|
|
[class*='form-grid-'] {
|
|
row-gap: 16px;
|
|
}
|
|
|
|
.el-form-item__label {
|
|
white-space: normal;
|
|
word-break: break-word;
|
|
line-height: 1.45;
|
|
height: auto !important;
|
|
padding-right: 12px;
|
|
align-self: center;
|
|
}
|
|
|
|
.el-form-item__content {
|
|
min-width: 0;
|
|
}
|
|
}
|