本次将此前被列入退役名单的运营分析相关模块恢复为可用,并新增「模块化库存监控」
一级菜单及其两个子页面。
主要变更:
1. 恢复启用:商品监控、激励看板、营销活动、推广模块、商品分析
- retiredFeatures 移出对应退役名单与清表语句,改为正常保留
- 补齐后端路由、前端页面与 API 封装、侧边栏配置、桌面客户端能力项
- 同步更新 retiredFeatures / retiredRoutes / retiredNavigation / desktopSessionService 测试
2. 新增「模块化库存监控」一级菜单
- 配件库存监控:仅取「简尚-崔桥工厂半成品包装项目仓」SKU 的实时库存、
当日入库/出库、近 7 日日均发货量、库存可用天数与预警(库存可用天数 ≤ 7 预警)
- MKH-BOM资料:按商品编码展示配件明细、数量、仓位、库存,支持 A4 纵向打印
3. 新增产品资料系统数据库(PostgreSQL)连接模块:读取系统库 database_configs 中
name = product_information_database 的配置,凭据只从配置读取,不落代码
4. 新增系统设置页配置项:商品标签配置、部门商品标签配置、部门SKU负责人配置
5. 旧 /api/dashboard 接口迁移至 /api/productAnalysis,仪表盘预览页改用新接口,
相应移除 dashboard 路由模块及其测试
6. 修复 retiredRoutes 测试在 Windows 下挂起超时的问题:该测试用
parent.filename.endsWith('/api/planningUpload.js') 判断是否注入 mock,
而 Windows 的 filename 为反斜杠路径,导致判断恒为 false、mock 全部失效、
真实模块去连中央系统库而挂起(Linux CI 正常)。改为平台无关的路径匹配。
7. .gitignore 忽略本地验证产物(outputs/、.git-status.txt)
验证:
- 前端:lint / test(16 项)/ build(含 planning entry 校验)全部通过
- 后端:语法检查 149 个文件通过;测试 38/39 通过
- 已知未通过项:resilientSecretStore.test.js 断言密钥备份文件权限为 0o600,
Windows 下 chmod 无法表达该权限(实际为 0o666),属既有的平台相关失败,
与本次改动无关,本次未修改该文件
- 说明:本机 frontend/ 下存在未纳入版本库的旧依赖备份目录 node_modules_old_*,
会污染 ESLint 扫描(十余万条第三方报错),故 lint 步骤以
--ignore-pattern node_modules_old_*/** 排除后执行,其余步骤与仓库 check 一致
未提交内容:本地验证截图 outputs/ 与 .git-status.txt 已被 .gitignore 排除。
225 lines
5.4 KiB
CSS
225 lines
5.4 KiB
CSS
.marketing-events-panel {
|
|
min-height: calc(100vh - 84px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.marketing-events-panel__heading {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--sycm-space-sm);
|
|
padding: var(--sycm-module-padding) var(--sycm-module-padding) 0;
|
|
}
|
|
|
|
.marketing-events-panel__heading h2 {
|
|
margin: 0;
|
|
color: var(--sycm-text-strong);
|
|
font-size: var(--sycm-font-size-title);
|
|
font-weight: var(--sycm-font-weight-semibold);
|
|
line-height: var(--sycm-line-height-tight);
|
|
}
|
|
|
|
.marketing-events-panel__heading span {
|
|
color: var(--sycm-text-tertiary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
line-height: var(--sycm-line-height-normal);
|
|
}
|
|
|
|
.marketing-events-data-date {
|
|
margin-left: auto;
|
|
color: var(--sycm-text-secondary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
font-weight: var(--sycm-font-weight-medium);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.marketing-events-summary {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(110px, 1fr));
|
|
gap: var(--sycm-space-sm);
|
|
margin-top: var(--sycm-space-sm);
|
|
padding: 0 var(--sycm-module-padding);
|
|
}
|
|
|
|
.marketing-events-summary .sycm-dashboard-metric {
|
|
min-height: 88px;
|
|
padding: var(--sycm-space-sm);
|
|
border-radius: var(--sycm-radius-lg);
|
|
background: var(--sycm-bg-subtle);
|
|
}
|
|
|
|
.marketing-events-summary .sycm-dashboard-metric__label {
|
|
font-size: var(--sycm-font-size-caption);
|
|
}
|
|
|
|
.marketing-events-summary .sycm-dashboard-metric__value {
|
|
font-size: var(--sycm-font-size-metric);
|
|
}
|
|
|
|
.marketing-events-summary__empty {
|
|
grid-column: 1 / -1;
|
|
padding: var(--sycm-space-md);
|
|
color: var(--sycm-text-tertiary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
text-align: center;
|
|
}
|
|
|
|
.marketing-events-filter {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(180px, 1fr));
|
|
gap: var(--sycm-space-sm) var(--sycm-space-xl);
|
|
margin-top: var(--sycm-space-sm);
|
|
padding: var(--sycm-module-padding);
|
|
background: var(--sycm-bg-subtle);
|
|
}
|
|
|
|
.marketing-events-filter .ant-form-item {
|
|
min-width: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.marketing-events-filter .ant-form-item-row {
|
|
display: grid;
|
|
grid-template-columns: 72px minmax(0, 1fr);
|
|
align-items: center;
|
|
}
|
|
|
|
.marketing-events-filter .ant-form-item-label {
|
|
padding: 0 var(--sycm-space-sm) 0 0;
|
|
overflow: visible;
|
|
text-align: right;
|
|
}
|
|
|
|
.marketing-events-filter .ant-form-item-label > label {
|
|
height: var(--sycm-control-height);
|
|
color: var(--sycm-text-secondary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
font-weight: var(--sycm-font-weight-medium);
|
|
line-height: var(--sycm-control-height);
|
|
}
|
|
|
|
.marketing-events-filter .ant-form-item-control,
|
|
.marketing-events-filter .ant-form-item-control-input,
|
|
.marketing-events-filter .ant-form-item-control-input-content {
|
|
min-height: var(--sycm-control-height);
|
|
}
|
|
|
|
.marketing-events-filter__actions {
|
|
display: flex;
|
|
min-height: var(--sycm-control-height);
|
|
align-items: center;
|
|
gap: var(--sycm-space-sm);
|
|
padding-left: 72px;
|
|
}
|
|
|
|
.marketing-events-table-toolbar {
|
|
display: flex;
|
|
min-height: 56px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--sycm-space-md);
|
|
padding: var(--sycm-space-sm) var(--sycm-module-padding);
|
|
border-top: var(--sycm-line-width-base) solid var(--sycm-border-light);
|
|
border-bottom: var(--sycm-line-width-base) solid var(--sycm-border-light);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.marketing-events-status-switch {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.marketing-events-child-table {
|
|
margin: 0;
|
|
}
|
|
|
|
.marketing-events-child-table .ant-table {
|
|
background: var(--sycm-bg-page-soft, #fafafa);
|
|
}
|
|
|
|
.marketing-events-table .ant-table-wrapper,
|
|
.marketing-events-table .ant-spin-nested-loading,
|
|
.marketing-events-table .ant-spin-container {
|
|
min-width: 0;
|
|
}
|
|
|
|
.marketing-events-table .ant-table {
|
|
min-width: 0;
|
|
}
|
|
|
|
.marketing-events-table .ant-table-cell {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.marketing-events-table .ant-table-thead > tr > th {
|
|
color: var(--sycm-text-secondary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
font-weight: var(--sycm-font-weight-semibold);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.marketing-events-table .ant-table-tbody > tr > td {
|
|
color: var(--sycm-text-primary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
}
|
|
|
|
.marketing-events-table .ant-table-placeholder .ant-table-cell {
|
|
height: 220px;
|
|
}
|
|
|
|
.marketing-events-thumb {
|
|
display: block;
|
|
width: 52px;
|
|
height: 52px;
|
|
border: var(--sycm-line-width-base) solid var(--sycm-border-light);
|
|
border-radius: var(--sycm-radius-sm);
|
|
object-fit: cover;
|
|
}
|
|
|
|
.marketing-events-thumb.is-empty {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 52px;
|
|
height: 52px;
|
|
background: var(--sycm-bg-subtle);
|
|
color: var(--sycm-text-tertiary);
|
|
font-size: var(--sycm-font-size-micro);
|
|
}
|
|
|
|
.marketing-events-goods-cell {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: var(--sycm-space-xxs);
|
|
line-height: var(--sycm-line-height-normal);
|
|
}
|
|
|
|
.marketing-events-goods-name {
|
|
overflow: hidden;
|
|
color: var(--sycm-text-strong);
|
|
font-weight: var(--sycm-font-weight-medium);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.marketing-events-goods-id {
|
|
color: var(--sycm-text-tertiary);
|
|
font-size: var(--sycm-font-size-micro);
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.marketing-events-panel__heading {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: var(--sycm-space-xxs);
|
|
}
|
|
|
|
.marketing-events-filter {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--sycm-space-sm);
|
|
}
|
|
|
|
.marketing-events-filter__actions {
|
|
padding-left: 72px;
|
|
}
|
|
}
|