feat: 多工厂/厂间调拨/替代料/流水台账折叠 + 重写 README
- 多工厂(factory 表) + 顶栏工厂下拉过滤, 库存按厂聚合 - 厂间调拨(transfer): 源厂减+目标厂加, 总库存不变, 双向流水对账 - 替代料关系(substitute): 出库/BOM领料/生产领料缺料时提示可替代料 - 流水台账(ledger): 入出按日期合并折叠, 按日期导出同一 Excel - 生产订单增强: 编辑/删除(级联清关联流水)/调入数量/确认调入=厂间调拨 - 入库新增送货日期字段; 出库物料编码扫码定位 - 重写 README 补全全部模块; .gitignore 排除 dist_pkg/build_pkg/*.db - 停止跟踪 instance/app.db(运行时自动生成)
This commit is contained in:
@@ -12,8 +12,21 @@ body {
|
||||
.topbar nav a { color: #dce6f2; text-decoration: none; margin-left: 18px; font-size: 14px; }
|
||||
.topbar nav a:hover { color: #fff; }
|
||||
.topbar .who { margin-left: 18px; color: #9fb3cc; font-size: 13px; }
|
||||
.topbar .factory-switch { display: flex; align-items: center; margin-left: 18px; }
|
||||
.topbar .factory-switch label { color: #9fb3cc; font-size: 13px; margin-right: 6px; }
|
||||
.topbar .factory-switch select {
|
||||
background: #2a4a73; color: #fff; border: 1px solid #3d5d88; border-radius: 5px;
|
||||
padding: 4px 8px; font-size: 13px; max-width: 200px;
|
||||
}
|
||||
.topbar .factory-switch select:focus { outline: none; border-color: #6fa8ff; }
|
||||
main { max-width: 1100px; margin: 18px auto; padding: 0 16px; }
|
||||
|
||||
.scope-banner {
|
||||
background: #eef4fb; border: 1px solid #cfe0f3; color: #1f3a5f;
|
||||
border-radius: 6px; padding: 8px 14px; margin-bottom: 14px; font-size: 14px;
|
||||
}
|
||||
.scope-banner b { color: #1f6feb; }
|
||||
|
||||
.stats { display: flex; gap: 14px; margin-bottom: 16px; }
|
||||
.stat { flex: 1; background: #fff; border-radius: 8px; padding: 16px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
|
||||
.stat .num { font-size: 30px; font-weight: 700; }
|
||||
@@ -36,8 +49,13 @@ button, .btn {
|
||||
padding: 9px 16px; font-size: 14px; text-decoration: none; background: #eef1f5; color: #1f2733;
|
||||
}
|
||||
button.primary, .btn.primary { background: #1f3a5f; color: #fff; }
|
||||
button.secondary, .btn.secondary { background: #2f7d5b; color: #fff; }
|
||||
button:hover, .btn:hover { filter: brightness(.96); }
|
||||
.link-danger { background: none; border: none; color: #c0392b; cursor: pointer; padding: 0 4px; font-size: 14px; }
|
||||
.link-danger:hover { text-decoration: underline; }
|
||||
.row-actions { margin-top: 14px; display: flex; gap: 10px; }
|
||||
.row-in { background: #eafaf1; }
|
||||
.row-out { background: #fdecea; }
|
||||
|
||||
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
|
||||
.search input { width: 280px; }
|
||||
@@ -70,6 +88,15 @@ button:hover, .btn:hover { filter: brightness(.96); }
|
||||
padding: 8px 16px; font-size: 14px; cursor: pointer; border-radius: 6px;
|
||||
}
|
||||
.tabs .tab.active { background: #1f3a5f; color: #fff; border-color: #1f3a5f; }
|
||||
.tab-pane { animation: fade .15s ease; }
|
||||
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }
|
||||
|
||||
/* 工厂工作台: 统计行 / BOM 卡片 */
|
||||
.stat-row { display: flex; gap: 14px; }
|
||||
.stat-row .stat { flex: 1; background: #fff; border-radius: 8px; padding: 12px 16px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
|
||||
.stat-row .stat .num { font-size: 26px; font-weight: 700; }
|
||||
.stat-row .stat .lbl { color: #6b7785; font-size: 13px; margin-top: 2px; }
|
||||
.bom-issue-card { border-left: 4px solid #7c3aed; }
|
||||
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; }
|
||||
.card-head strong { font-size: 16px; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user