Skip to content

医疗部月度考勤

基础信息

说明
菜单路径/operationsManagement/taskManagement/configurationCenter/monthAttendance
路由名称monthAttendance
页面组件src/views/operationsManagement/taskManagement/configurationCenter/monthAttendance/index.vue
接口模块@/api/monthAttendance(独立 api 文件) + 组件内 api.post
Store
页面定位医疗部月度考勤表的导入与明细查看,按年月管理考勤数据

页面功能

页面使用 Container + ZbQuery(查询区)+ ZbTable(表格)+ ZbPagination(分页)的 zbkj-ui 组件库布局,Vue3 <script setup> 实现。

1. 查询区(ZbQuery)

  • 年月(月份选择器,valueFormat: yyyy-MM,禁选未来月份)。
  • 查询、重置按钮。

2. 操作区

  • 导入:打开 ImportPopup 导入弹窗,需先选择导入年份(必填校验),上传考勤表文件后调用 monthAttendance/importData(携带 time 月末时间)。支持下载考勤表模板。

3. 考勤列表(ZbTable)

说明
年月time
更新人updateUserName
更新时间updateTime

4. 行操作

  • 查看:跳转 /configurationCenter/monthAttendance/details,携带 idtimeStr 查看明细。

5. 分页

  • ZbPagination 分页。

使用组件

组件路径用途
Container@/components/container页面容器
ZbQuery@/components/zbkj-ui查询区
ZbTable@/components/zbkj-ui表格
ZbPagination@/components/zbkj-ui分页
ImportPopup@/components/ImportPopup导入弹窗(含年份选择)
Details./Details.vue明细页(详情路由)

使用 Store

无。

调用接口

所有接口实际请求统一带 /api 前缀(下表 URL 为业务路径简写)。

接口 URL用途
monthAttendance/pageList月度考勤分页查询
monthAttendance/importData导入月度考勤数据
monthAttendance/detailPageList明细列表查询(详情页)
monthAttendance/detailExport明细导出(详情页)

修改记录

修改人修改时间修改内容
zhouw2026-07-03初始化页面
zhouw2026-07-09编写页面内容