From 09513911ae818682988303a386762332780da3c5 Mon Sep 17 00:00:00 2001 From: chenhao Date: Tue, 23 Dec 2025 15:57:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(auth):=20=E6=B7=BB=E5=8A=A0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E5=92=8C=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在App.vue中添加onMounted钩子,自动检查认证状态并获取用户信息 - 在auth.ts API文件中添加getInfo方法用于获取用户信息 - 在auth store中添加getInfo方法,实现用户信息获取逻辑 - 在订单列表页面添加批量审批权限控制,根据用户角色决定是否显示批量审批按钮 - 在采购详情页面添加附件标签页,显示合同附件和其他附件列表 - 添加文件预览功能,支持附件在线预览 - 扩展类型定义,添加附件相关类型支持 - 优化批量审批流程,移除驳回选项并修复参数传递问题 --- src/App.vue | 11 +++- src/api/auth.ts | 7 +++ src/store/auth.ts | 22 ++++++- src/types/index.ts | 3 + src/views/List/index.vue | 29 +++++++-- src/views/PurchaseDetail/index.vue | 97 +++++++++++++++++++++++++++++- 6 files changed, 159 insertions(+), 10 deletions(-) diff --git a/src/App.vue b/src/App.vue index bef77aa..8d9aa9f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,7 +5,16 @@