diff --git a/Laravel/app/Services/Admin/YeWu/CheckItemService.php b/Laravel/app/Services/Admin/YeWu/CheckItemService.php
index b1d270f..39b82ac 100644
--- a/Laravel/app/Services/Admin/YeWu/CheckItemService.php
+++ b/Laravel/app/Services/Admin/YeWu/CheckItemService.php
@@ -146,7 +146,10 @@ public function ExportItemList($searchInfo)
$html .= '';
$html .= '| 检查项目代码 | 检查项目名称 | HIS执行科室 | 关联排班 |
';
+ $index = 0;
foreach ($list as $v) {
+ $index++;
+ $bgColor = ($index % 2 == 1) ? '#d9e2f3' : '#ffffff';
// 解析原始科室名称
$deptNames = [];
if (!empty($v->hisExecDepts)) {
@@ -171,7 +174,7 @@ public function ExportItemList($searchInfo)
$maxRows = max($deptCount, $deviceCount, 1);
// 第一行,带合并单元格和背景色
- $html .= '';
+ $html .= '
';
$html .= '| '.$v->item_code.' | ';
$html .= ''.$v->item_name.' | ';
$html .= ''.($deptNames[0] ?? '').' | ';
@@ -180,7 +183,7 @@ public function ExportItemList($searchInfo)
// 后续行
for ($i = 1; $i < $maxRows; $i++) {
- $html .= '
';
+ $html .= '
';
$html .= '| '.($deptNames[$i] ?? '').' | ';
$html .= ''.($deviceNames[$i] ?? '').' | ';
$html .= '
';