打卡备注必填

main
kangwenjing 2026-04-13 15:45:13 +08:00
parent 3b34bdba1f
commit 8c0e11b0a8
1 changed files with 4 additions and 1 deletions

View File

@ -1059,6 +1059,9 @@ export default function Work() {
if (!checkInPhotoUrls.length) {
throw new Error("请先上传现场照片");
}
if (!checkInForm.remark?.trim()) {
throw new Error("请填写打卡备注");
}
await saveWorkCheckIn({
locationText: checkInForm.locationText.trim(),
remark: checkInForm.remark?.trim() || undefined,
@ -2559,7 +2562,7 @@ function CheckInPanel({
</div>
<div className="mt-4">
<p className="mb-1 text-sm font-medium text-slate-900 dark:text-white"> ()</p>
<p className="mb-1 text-sm font-medium text-slate-900 dark:text-white"> ()</p>
<textarea
rows={2}
value={checkInForm.remark ?? ""}