diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 3ff56e7..d6807f8 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -42,6 +42,9 @@ const router = createRouter({ { path: 'key-visit/new', name: 'KeyVisitForm', component: () => import('@/views/mobile/KeyVisitForm.vue') }, { path: 'note/new', name: 'DailyNoteForm', component: () => import('@/views/mobile/DailyNoteForm.vue') }, { path: 'note/:id/edit', name: 'DailyNoteEdit', component: () => import('@/views/mobile/DailyNoteForm.vue') }, + { path: 'leaves', name: 'LeavesList', component: () => import('@/views/mobile/LeavesList.vue') }, + { path: 'leave/new', name: 'LeaveForm', component: () => import('@/views/mobile/LeaveForm.vue') }, + { path: 'leave/:id/edit', name: 'LeaveEdit', component: () => import('@/views/mobile/LeaveForm.vue') }, ], }, // Desktop routes (director/leader-facing) diff --git a/frontend/src/views/mobile/Home.vue b/frontend/src/views/mobile/Home.vue index 45721a3..f7d4bb8 100644 --- a/frontend/src/views/mobile/Home.vue +++ b/frontend/src/views/mobile/Home.vue @@ -123,6 +123,12 @@ onMounted(loadToday) 要客拜访 + + + + + 请假 + diff --git a/frontend/src/views/mobile/LeaveForm.vue b/frontend/src/views/mobile/LeaveForm.vue new file mode 100644 index 0000000..641f7e1 --- /dev/null +++ b/frontend/src/views/mobile/LeaveForm.vue @@ -0,0 +1,201 @@ + + + + + + + + + + + + + {{ isEdit ? '编辑请假' : '提交请假' }} + LEAVE REQUEST + + + + + + + 客户经理 + + + + + + + 请假类型 + + {{ t }} + + + + + 开始日期 + + + + + 结束日期 + + + + + 原因 选填 + + + + + + + {{ isEdit ? '更新请假' : '提交请假' }} + + 删除 + + + + + +