报废审批页的「撤回」按钮原先复用了执行按钮的 canExecute 条件 (scrap_execute)。但 scrap_execute 比 scrap_approval 多授予 INBOUND 角色 —— 意味着只具备执行权、无审批权的人也会看到撤回按钮。 撤回是对单据的处置动作,应与审批同权限等级。新增 canWithdraw 计算属性 (SUPER_ADMIN 或 scrap_approval),替换原 canExecute。 注:申请人在「我的申请单」页有自己的撤回入口,走的是单据归属校验, 不依赖此处权限。
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.