批量修改在售库存

This commit is contained in:
杨建炊 2024-10-30 15:27:45 +08:00
parent ae5cc03c17
commit 86554e20d5

View File

@ -38,14 +38,14 @@ class GoodsSkusExport implements FromCollection, ShouldAutoSize
$headTitle = [
'商品编码',
'商品名称',
'售库存',
'售库存',
'创建时间',
];
$map = [
'cost' => ['当前成本', '更新前成本', "更新后成本"],
'inventory' => ['当前库存', '盘点数', '采购总数'],
];
$headTitle = array_merge($headTitle, $map[$this->type]);
$headTitle = array_merge($headTitle, $map[$this->type] ?? []);
if ('cost' === $this->type) {
$update = $this->getChangeCostLogs();
}