refactor(xlsx): 调整订单供货出库表格的列标题和数据顺序

- 将"E3"单元格的标题从"供货价"改为"出库单价"
- 将"F3"单元格的标题从"出库价"改为"供货价"
- 将"G3"单元格的标题从"出库总价"改为"供货总价"
- 相应地调整了数据填充的顺序,确保与新的列标题一致
This commit is contained in:
mkm 2024-12-05 17:30:13 +08:00
parent d343df71bf
commit b59e9b8bfb

View File

@ -47,9 +47,9 @@ class OrderSupplyOutbound
$sheet->setCellValue('B3', '品名');
$sheet->setCellValue('C3', '单位');
$sheet->setCellValue('D3', '数量');
$sheet->setCellValue('E3', '供货价');
$sheet->setCellValue('F3', '出库价');
$sheet->setCellValue('G3', '出库总价');
$sheet->setCellValue('E3', '出库单价');
$sheet->setCellValue('F3', '供货价');
$sheet->setCellValue('G3', '供货总价');
$sheet->setCellValue('H3', '备注');
// 设置默认的单元格样式
@ -68,8 +68,8 @@ class OrderSupplyOutbound
$sheet->setCellValue('B' . ($k + 4), $v['store_name']);
$sheet->setCellValue('C' . ($k + 4), $v['unit_name']);
$sheet->setCellValue('D' . ($k + 4), $v['nums']);
$sheet->setCellValue('E' . ($k + 4), $v['purchase']);
$sheet->setCellValue('F' . ($k + 4), $v['price']);
$sheet->setCellValue('E' . ($k + 4), $v['price']);
$sheet->setCellValue('F' . ($k + 4), $v['purchase']);
$sheet->setCellValue('G' . ($k + 4), $v['total_price']);
$sheet->mergeCells('H' . ($k + 4) . ':I' . $k + 4);
$sheet->setCellValue('H' . ($k + 4), $v['mark']);