cqp hai 2 meses
pai
achega
fba135e6ac

+ 1 - 1
app/Service/AuxiliaryAccountService.php

@@ -279,7 +279,7 @@ class AuxiliaryAccountService extends Service
             $claimTime = strtotime($item['voucher_date']);
             // 判断:voucher_date 必须早于 month
             // 如果 voucher_date 是 2026-02-28,而 month 是 2026-03-01,则校验通过
-            if ($claimTime < $monthStart || $claimTime > $monthEnd) return [false, "第" . ($index + 1) . "凭证日期必须早于当前结算月份(" . $data['month'] . ")"];
+            if ($claimTime < $monthStart || $claimTime > $monthEnd) return [false, "第" . ($index + 1) . "凭证日期必须早于当前结算月份(" . date("Y-m", $data['month']) . ")"];
         }
 
         $query = AuxiliaryAccount::where('top_depart_id', $data['top_depart_id'])

+ 1 - 1
app/Service/ExpenseClaimsService.php

@@ -140,7 +140,7 @@ class ExpenseClaimsService extends Service
             $claimTime = strtotime($item['claim_date']);
             // 判断:claim_date 必须早于 month
             // 如果 claim_date 是 2026-02-28,而 month 是 2026-03-01,则校验通过
-            if ($claimTime < $monthStart || $claimTime > $monthEnd) return [false, "第" . ($index + 1) . "项报销日期必须在当前月份内(" . $data['month'] . ")"];
+            if ($claimTime < $monthStart || $claimTime > $monthEnd) return [false, "第" . ($index + 1) . "项报销日期必须在当前月份内(" . date("Y-m", $data['month']) . ")"];
         }
 
         $query = ExpenseClaims::where('top_depart_id', $data['top_depart_id'])