From b59e9b8bfbe2d9a89d5eca1a01b62635c90bf3e9 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 5 Dec 2024 17:30:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor(xlsx):=20=E8=B0=83=E6=95=B4=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E4=BE=9B=E8=B4=A7=E5=87=BA=E5=BA=93=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E7=9A=84=E5=88=97=E6=A0=87=E9=A2=98=E5=92=8C=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将"E3"单元格的标题从"供货价"改为"出库单价" - 将"F3"单元格的标题从"出库价"改为"供货价" - 将"G3"单元格的标题从"出库总价"改为"供货总价" - 相应地调整了数据填充的顺序,确保与新的列标题一致 --- app/common/service/xlsx/OrderSupplyOutbound.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/common/service/xlsx/OrderSupplyOutbound.php b/app/common/service/xlsx/OrderSupplyOutbound.php index 1e1bf532..418877a0 100644 --- a/app/common/service/xlsx/OrderSupplyOutbound.php +++ b/app/common/service/xlsx/OrderSupplyOutbound.php @@ -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']);