打卡备注必填
parent
3b34bdba1f
commit
8c0e11b0a8
|
|
@ -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 ?? ""}
|
||||
|
|
|
|||
Loading…
Reference in New Issue