From ff0a38a3698a37b6e172e1a591b959664cce35a1 Mon Sep 17 00:00:00 2001 From: v6ole Date: Sun, 12 Jul 2026 20:28:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E5=BF=85=E5=A1=AB=E9=A1=B9=E6=A0=87=E8=AE=B0=E7=BA=A2?= =?UTF-8?q?=E8=89=B2=20*=20=E5=8F=B7=20+=20=E6=8F=90=E4=BA=A4=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 客户单位/日期/纪要内容/计划拜访时间 标记 * - 缺失必填项时 ElMessage.warning 提示 - CSS: .required-star { color: var(--vermilion); } Co-Authored-By: Claude --- frontend/src/views/mobile/DailyNoteForm.vue | 6 ++++-- frontend/src/views/mobile/KeyVisitForm.vue | 3 ++- frontend/src/views/mobile/LeaveForm.vue | 5 +++-- frontend/src/views/mobile/MiniBusinessForm.vue | 3 ++- frontend/src/views/mobile/VisitForm.vue | 3 ++- frontend/src/views/mobile/WorkPlanForm.vue | 8 +++++--- 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/frontend/src/views/mobile/DailyNoteForm.vue b/frontend/src/views/mobile/DailyNoteForm.vue index e4c9b9f..d9ca697 100644 --- a/frontend/src/views/mobile/DailyNoteForm.vue +++ b/frontend/src/views/mobile/DailyNoteForm.vue @@ -60,6 +60,7 @@ onMounted(async () => { }) async function handleSubmit() { + if (!form.value.note_date) { ElMessage.warning('请选择日期'); return } if (!form.value.content.trim()) { ElMessage.warning('请输入纪要内容'); return } submitLoading.value = true try { @@ -108,7 +109,7 @@ async function handleDelete() { @@ -158,7 +159,7 @@ async function handleDelete() { @@ -288,4 +289,5 @@ async function handleDelete() { animation: spin 0.6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } +.required-star { color: var(--vermilion); font-weight: 700; } diff --git a/frontend/src/views/mobile/KeyVisitForm.vue b/frontend/src/views/mobile/KeyVisitForm.vue index 477c1b0..251db30 100644 --- a/frontend/src/views/mobile/KeyVisitForm.vue +++ b/frontend/src/views/mobile/KeyVisitForm.vue @@ -137,7 +137,7 @@ async function handleDelete() { - +