本次将此前被列入退役名单的运营分析相关模块恢复为可用,并新增「模块化库存监控」
一级菜单及其两个子页面。
主要变更:
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 排除。
157 lines
4.6 KiB
CSS
157 lines
4.6 KiB
CSS
.msm-page {
|
|
container-name: modular-stock-monitor;
|
|
container-type: inline-size;
|
|
display: flex;
|
|
min-height: calc(100% - 46px);
|
|
flex-direction: column;
|
|
gap: var(--sycm-page-section-gap);
|
|
background: var(--sycm-bg-page-soft);
|
|
}
|
|
|
|
.msm-header {
|
|
display: flex;
|
|
min-height: 84px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--sycm-space-lg);
|
|
margin: calc(var(--sycm-page-padding-y) * -1) calc(var(--sycm-page-padding-x) * -1) 0;
|
|
padding: 14px calc(var(--sycm-page-padding-x) + 2px);
|
|
border-bottom: 1px solid var(--sycm-border-base);
|
|
background: var(--sycm-bg-container);
|
|
}
|
|
.msm-header__heading { min-width: 0; }
|
|
.msm-header h3 {
|
|
margin: 0;
|
|
color: var(--sycm-text-strong);
|
|
font-size: var(--sycm-font-size-page);
|
|
font-weight: var(--sycm-font-weight-semibold);
|
|
line-height: var(--sycm-line-height-tight);
|
|
}
|
|
.msm-header__heading .ant-typography {
|
|
display: block;
|
|
margin-top: 6px;
|
|
color: var(--sycm-text-secondary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
}
|
|
|
|
.msm-tabs .ant-tabs-nav {
|
|
margin: 0;
|
|
padding: 0 calc(var(--sycm-page-padding-x) + 2px);
|
|
border-bottom: 1px solid var(--sycm-border-base);
|
|
background: var(--sycm-bg-container);
|
|
}
|
|
.msm-tabs .ant-tabs-tab {
|
|
margin: 0;
|
|
padding: 12px 4px;
|
|
font-size: var(--sycm-font-size-title);
|
|
}
|
|
.msm-tabs .ant-tabs-content-holder,
|
|
.msm-tabs .ant-tabs-content,
|
|
.msm-tabs .ant-tabs-tabpane { min-height: 100%; }
|
|
.msm-tabs .ant-tabs-tabpane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sycm-page-section-gap);
|
|
padding-top: var(--sycm-page-section-gap);
|
|
}
|
|
|
|
.msm-filter-card,
|
|
.msm-panel,
|
|
.msm-summary-card {
|
|
border: 1px solid var(--sycm-border-card) !important;
|
|
border-radius: var(--sycm-radius-lg) !important;
|
|
box-shadow: var(--sycm-shadow-card) !important;
|
|
}
|
|
.msm-filter-card { margin-bottom: 0; }
|
|
.msm-filter-card .ant-card-body { padding: 14px 16px; }
|
|
.msm-filter-card .ant-space { width: 100%; }
|
|
.msm-filter-card .ant-space-item { max-width: 100%; }
|
|
.msm-filter-card .ant-select,
|
|
.msm-filter-card .ant-input-affix-wrapper { max-width: 100%; }
|
|
|
|
.msm-summary-row { margin-top: -4px; }
|
|
.msm-summary-row .ant-col { display: flex; }
|
|
.msm-summary-card {
|
|
position: relative;
|
|
width: 100%;
|
|
min-height: 98px;
|
|
overflow: hidden;
|
|
}
|
|
.msm-summary-card::before {
|
|
position: absolute;
|
|
inset: 0 auto 0 0;
|
|
width: 3px;
|
|
background: var(--sycm-color-primary);
|
|
content: '';
|
|
}
|
|
.msm-summary-card.is-red::before { background: var(--sycm-color-danger); }
|
|
.msm-summary-card.is-orange::before { background: var(--sycm-color-orange); }
|
|
.msm-summary-card.is-green::before { background: var(--sycm-color-success); }
|
|
.msm-summary-card .ant-card-body {
|
|
display: flex;
|
|
min-height: 98px;
|
|
align-items: center;
|
|
padding: 16px 18px;
|
|
}
|
|
.msm-summary-card .ant-statistic { width: 100%; }
|
|
.msm-summary-card .ant-statistic-title {
|
|
margin-bottom: 8px;
|
|
color: var(--sycm-text-secondary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
}
|
|
.msm-summary-card .ant-statistic-content {
|
|
color: var(--sycm-text-strong);
|
|
font-family: var(--sycm-font-family-number);
|
|
font-size: var(--sycm-font-size-metric);
|
|
line-height: 1.1;
|
|
}
|
|
.msm-summary-card .ant-statistic-content-suffix { font-size: var(--sycm-font-size-caption); }
|
|
|
|
.msm-panel { margin-bottom: 0; overflow: hidden; }
|
|
.msm-panel .ant-card-head {
|
|
min-height: 48px;
|
|
padding: 0 16px;
|
|
border-bottom-color: var(--sycm-border-light);
|
|
}
|
|
.msm-panel .ant-card-head-title { font-size: var(--sycm-font-size-title); }
|
|
.msm-panel .ant-card-body { padding: 0 16px 16px; }
|
|
.msm-panel .ant-table { font-size: var(--sycm-font-size-caption); }
|
|
.msm-panel .ant-table-wrapper .ant-table-container { border-radius: var(--sycm-radius-md); }
|
|
.msm-panel .ant-table-placeholder .ant-table-cell { height: 180px; }
|
|
.msm-panel__date { font-size: var(--sycm-font-size-caption); }
|
|
|
|
.msm-muted { color: var(--sycm-text-tertiary); }
|
|
/* 表头口径提示:虚线下划线 + help 光标 */
|
|
.msm-th-tip {
|
|
border-bottom: 1px dashed var(--sycm-border-strong, var(--sycm-text-tertiary));
|
|
cursor: help;
|
|
}
|
|
.msm-note {
|
|
display: block;
|
|
max-width: 1180px;
|
|
margin-top: 4px;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
.msm-sku {
|
|
font-family: var(--sycm-font-family-number);
|
|
font-weight: var(--sycm-font-weight-semibold);
|
|
}
|
|
|
|
@container modular-stock-monitor (max-width: 900px) {
|
|
.msm-filter-card .ant-space-item { flex: 1 1 180px; }
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.msm-header {
|
|
min-height: 72px;
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: var(--sycm-space-sm);
|
|
padding-block: 12px;
|
|
}
|
|
.msm-filter-card .ant-select,
|
|
.msm-filter-card .ant-input-affix-wrapper { width: 100%; }
|
|
.msm-panel .ant-card-body { padding-inline: 10px; }
|
|
}
|