feat(oa): add permission-controlled shared finance remarks to done center
Share one finance remark per approval instance across Web and mobile. Require the explicit permission and the current tenant user's own done task for every read and write; keep general instance responses free of financial remarks. Add idempotent MySQL migration without automatic role grants, cross-end editors, isolated backend and frontend tests, and rollout requirements. Refs #7; platform validation and target database migration remain pending.
This commit is contained in:
1 parent
86df360f35
commit
0e64b413ce
15 files changed
+1188
-78
No files matched your search
@@ -158,3 +158,19 @@ export function fetchReturnOaTask(taskId, comment) {
|
||||
authHeader()
|
||||
)
|
||||
}
|
||||
|
||||
export function fetchOaFinanceRemark(instanceId) {
|
||||
return get(
|
||||
'/web/admin/oa-approval/instances/' + encodeURIComponent(instanceId) + '/finance-remark',
|
||||
authHeader()
|
||||
)
|
||||
}
|
||||
|
||||
export function fetchUpdateOaFinanceRemark(instanceId, financeRemark) {
|
||||
return request({
|
||||
url: '/web/admin/oa-approval/instances/' + encodeURIComponent(instanceId) + '/finance-remark',
|
||||
method: 'PUT',
|
||||
data: { financeRemark },
|
||||
header: authHeader()
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user