|
|
@@ -135,7 +135,7 @@ class ExpenseClaimsService extends Service
|
|
|
$monthStart = $data['month'];
|
|
|
// 获取该月最后一秒:下个月 1 号减去 1 秒
|
|
|
$monthEnd = strtotime('+1 month', $monthStart) - 1;
|
|
|
- if(empty($data['details'])) return [false, '项目费用报销单详情不能为空'];
|
|
|
+ if(empty($data['details'])) return [false, '费用项目单详情不能为空'];
|
|
|
foreach ($data['details'] as $index => $item) {
|
|
|
if(empty($item['item_id'])) return [false, "第" . ($index + 1) . "行项目不能为空"];
|
|
|
if(empty($item['fee_id'])) return [false, "第" . ($index + 1) . "行费用类型不能为空"];
|
|
|
@@ -160,7 +160,7 @@ class ExpenseClaimsService extends Service
|
|
|
$query->where('id', '<>', $data['id']);
|
|
|
}
|
|
|
|
|
|
- if ($query->exists()) return [false, date("Y-m", $monthStart) . '已存在项目费用报销单'];
|
|
|
+ if ($query->exists()) return [false, date("Y-m", $monthStart) . '已存在费用项目单'];
|
|
|
|
|
|
return [true,""];
|
|
|
}
|