正在验证…
返回{{ isAdmin ? '管理页面' : '今日工作' }}

MEIMEIPAI

{{ isAdmin ? '库存管理' : (stores[0]?.name || '门店库存') }}

{{ isAdmin ? '按库存、操作、单据和商品分类管理' : '本店核心商品库存与包装操作' }}

MEIMEIPAI OPS · V2.4.0

← 返回本店管理

{{ message }}

当前库存

{{ isAdmin ? '库存结果' : '本店库存' }} · {{ visibleInventoryRows.length }}项

正常{{ overviewCounts.normal }}
低库存{{ overviewCounts.low }}
缺货{{ overviewCounts.outOfStock }}

张装商品消耗为“理论销售消耗+明确损耗”;包/箱商品按开新包、开新箱记录统计,不会伪装成库存流水。

门店商品当前库存安全库存本周消耗本月消耗状态操作
{{ row.storeName }}{{ row.productName }}{{ row.quantity }}{{ row.unit }} {{ row.lowStockThreshold }}{{ row.unit }}{{ consumptionFor(row, 'WEEK') }}{{ row.unit }} {{ consumptionFor(row, 'MONTH') }}{{ row.unit }}{{ stockStatusLabel(row.stockStatus, row.quantity) }}

正在读取库存…

本店暂未配置库存商品

{{ row.storeName }} · {{ row.productName }}

{{ row.quantity }}{{ row.unit }}
安全{{ row.lowStockThreshold }}{{ row.unit }}{{ stockStatusLabel(row.stockStatus, row.quantity) }}

操作

库存操作

本周盘点

{{ weeklyCountCurrent?.storeName || stores[0]?.name }}

{{ weeklyCountCurrent.weekStart }} 至 {{ weeklyCountCurrent.weekEnd }}

系统理论数量已结合库存流水和日报理论消耗计算。提交后不会立即修改库存,需等待管理员确认。

{{ weeklyCountStatusLabel(weeklyCountCurrent.latest.status) }} 退回原因:{{ weeklyCountCurrent.latest.reviewNote }} 提交人:{{ weeklyCountCurrent.latest.submittedByName }} · {{ weeklyCountCurrent.latest.submittedAt }}

正在读取本周盘点…

{{ item.productName }}系统理论 {{ item.theoreticalQuantity }}{{ item.unit }}
差异

分析

库存消耗分析

理论消耗来自日报数量与当期消耗规则;实际消耗来自库存流水,两者分开展示。

商品日报销售理论消耗明确损耗开包/箱手工/采购入库调入/调出实际消耗期末库存参考差异
{{ row.productName }}{{ row.reportSalesQuantity }}{{ row.unit }}{{ row.theoreticalConsumptionQuantity }}{{ row.unit }}{{ row.lossQuantity }}{{ row.unit }}{{ row.openBoxQuantity }}{{ row.unit }}{{ row.inboundQuantity + row.purchaseReceiptQuantity }}{{ row.unit }}{{ row.transferInQuantity }}/{{ row.transferOutQuantity }}{{ row.unit }}{{ row.actualConsumptionQuantity }}{{ row.unit }}{{ row.quantity }}{{ row.unit }}{{ row.comparable ? `${row.potentialVarianceQuantity}${row.unit}` : (row.comparisonMessage || '暂无可比规则') }}

当前条件下暂无消耗数据

责任参考

库存异常分析

盘点差异只用于追查原因;在岗员工仅作参考,不直接归责或处罚。

商品销售理论消耗已报损耗确认盘点累计差异差异原因连续异常主要在岗员工(参考)
{{ row.productName }}{{ row.theoreticalConsumptionQuantity }}{{ row.unit }}{{ row.lossQuantity }}{{ row.unit }}{{ row.confirmedCount }}次{{ row.cumulativeDifferenceQuantity > 0 ? '+' : '' }}{{ row.cumulativeDifferenceQuantity }}{{ row.unit }}{{ row.differenceReasons.length ? row.differenceReasons.map(item => `${item.label} ${item.quantity > 0 ? '+' : ''}${item.quantity}${row.unit}`).join('、') : '暂无' }}{{ row.sustainedException ? `持续异常·${row.consecutiveNegativeWeeks}周` : '未持续' }}{{ row.referenceEmployees.length ? row.referenceEmployees.map(item => item.employeeName).join('、') : '暂无正式排班' }}

预警

批量设置安全库存

按各门店的实际补货周期填写,保存后立即用于低库存提醒。

待办

本店调拨与采购

只有个人员工账号可以确认;请在实物发出或全部到货后操作。

相关调拨

暂无相关调拨

{{ transfer.transferNo }}{{ transfer.sourceStoreName }} → {{ transfer.targetStoreName }}
{{ transferStatusLabel(transfer.status) }}

{{ formatDocumentItems(transfer.items) }}

{{ transfer.businessDate }}

待到货采购

暂无待到货采购

{{ order.purchaseNo }}{{ order.storeName }}
{{ purchaseStatusLabel(order.status) }}

{{ formatDocumentItems(order.items) }}

预计到货:{{ order.expectedDate || '未设置' }}

门店

门店商品

先选择门店,再维护该门店使用的商品;移出本店不会影响其他门店和历史流水。

添加

从公司商品库选择

当前启用商品已经全部加入本店

该门店暂未配置商品

{{ row.productName }}

本店启用
模板与门店自动扣减设置
默认库存商品模板只建立商品与门店关系,不写入库存数量或流水。
{{ store.name }}根据日报自动减少库存:{{ store.inventoryAutoDeductEnabled ? '已开启' : '已关闭' }}

公司

公司商品库

这里只维护公司商品种类。全局停用后不能再加入门店,但历史日报、库存和流水仍会保留。

高级信息:商品编码

编码用于系统内部识别,普通业务页面不会显示。

{{ product.name }} 基础单位:{{ product.unit }} 高级信息:编码 {{ product.code }}
{{ product.isActive ? '启用' : '停用' }}
采购 / 包装单位

库存始终按基础单位计算;例如设置1箱=500张后,入库2箱会增加1000张。

1{{ unitForm.unitName }} = {{ unitForm.conversionRate }}{{ unitFormProduct.unit }}

暂无采购或包装单位

{{ unit.productName }} · {{ unit.unitName }} 1{{ unit.unitName }} = {{ unit.conversionRate }}{{ products.find((product) => product.id === unit.productId)?.unit || '' }}
{{ unit.isActive ? '启用' : '停用' }}

模拟

日报消耗规则

每条规则对应一个库存商品;同一日报项目可新增多条不同商品规则。当前仅用于模拟预览。

暂无日报消耗规则

{{ rule.reportFieldLabel }} → {{ rule.productName }} 销售1{{ rule.salesUnit }}消耗 {{ rule.quantityPerUnit }}{{ rule.productUnit }} {{ rule.storeName || '全部门店' }} · {{ rule.effectiveFrom }} 至 {{ rule.effectiveTo || '长期' }} 该商品已从本门店移出,当前规则已不可用。
{{ rule.isActive ? '启用' : '停用' }}

期初

初始库存录入

每个门店商品只能录入一次期初库存,保存后生成“入库”流水。

入库

新增入库

减少

出库与损耗

盘点

库存盘点

系统根据实盘数量自动计算差异,并以盘点调整流水修正库存。

系统库存 {{ stocktakeLoading ? '读取中…' : `${stocktakeSystemQuantity}${stocktakeUnit}` }}
盘点差异

记录

最近盘点

{{ stocktakes.length }} 条

暂无盘点记录

{{ stocktake.productName }}{{ stocktake.storeName }}

{{ stocktake.businessDate }} · {{ stocktake.operatorName }} 系统 {{ stocktake.systemQuantity }}{{ stocktake.unit }} → 实际 {{ stocktake.actualQuantity }}{{ stocktake.unit }}
{{ stocktake.differenceQuantity > 0 ? '+' : '' }}{{ stocktake.differenceQuantity }}{{ stocktake.unit }}

对账

周盘点确认

{{ weeklyCounts.length }} 条

当前条件下暂无周盘点记录

{{ count.storeName }}{{ count.weekStart }} 至 {{ count.weekEnd }} · {{ count.submittedByName }}
{{ weeklyCountStatusLabel(count.status) }}
商品理论数量实际数量差异原因
{{ item.productName }}{{ item.theoreticalQuantity }}{{ item.unit }}{{ item.actualQuantity }}{{ item.unit }}{{ item.differenceQuantity > 0 ? '+' : '' }}{{ item.differenceQuantity }}{{ item.unit }}{{ item.reasonLabel || '一致' }}

审核说明:{{ count.reviewNote }}

调拨

新建库存调拨

创建时不改变库存;确认发出时扣减调出店,确认收货时增加调入店。

待办

待发出 / 待收货调拨

{{ transfers.length }} 条
查询历史调拨

暂无调拨单

{{ transfer.transferNo }}{{ transfer.sourceStoreName }} → {{ transfer.targetStoreName }} · {{ transfer.businessDate }}
{{ transferStatusLabel(transfer.status) }}

{{ formatDocumentItems(transfer.items) }}

备注:{{ transfer.remark }}

发出:{{ transfer.dispatchedByName }} · {{ transfer.dispatchedAt }}

收货:{{ transfer.receivedByName }} · {{ transfer.receivedAt }}

取消:{{ transfer.cancelReason || '无' }} · {{ transfer.cancelledAt }}

采购

新建采购记录

保存为待到货,不会预先增加库存;到货时需一次确认全部商品。

待办

待到货采购

{{ purchaseOrders.length }} 条
查询历史采购

暂无采购单

{{ order.purchaseNo }}{{ order.storeName }} · 下单 {{ order.orderedAt }}
{{ purchaseStatusLabel(order.status) }}

{{ formatDocumentItems(order.items) }}

供应商:{{ order.supplierName || '未填写' }} · 预计到货:{{ order.expectedDate || '未设置' }}

到货:{{ order.receivedByName }} · {{ order.receivedAt }}

取消:{{ order.cancelReason || '无' }} · {{ order.cancelledAt }}

流水

库存流水

{{ transactions.length }} 条

请选择门店、商品或日期后查询库存流水

正在读取流水…

当前条件下暂无库存流水

{{ transaction.productName }}{{ transaction.storeName }}

{{ transaction.businessDate }} · {{ transactionTypeLabel(transaction.transactionType, transaction.unitSnapshot) }} 操作人:{{ transaction.createdByEmployeeName || (transaction.createdByType === 'ADMIN' ? '管理员' : '系统记录') }}
{{ transaction.quantityDelta > 0 ? '+' : '' }}{{ transaction.quantityDelta }}{{ transaction.unitSnapshot }}

详情

{{ selectedTransaction.productName }} · {{ selectedTransaction.businessDate }}

原始单位
{{ transactionInputLabel(selectedTransaction) || `${Math.abs(selectedTransaction.quantityDelta)}${selectedTransaction.unitSnapshot}` }}
单位换算
{{ selectedTransaction.conversionRateSnapshot || 1 }}
数据来源
{{ sourceTypeLabel(selectedTransaction.sourceType, selectedTransaction.unitSnapshot) }}
关联编号
{{ selectedTransaction.sourceId || '无' }}
备注
{{ selectedTransaction.remark || '无' }}
记录时间
{{ selectedTransaction.createdAt }}

{{ correctionToast }}