feat(approval): 新增业务审批流程及配置管理

- 新增审批配置主子表(biz_approval_config / biz_approval_config_user),支持或签
- 5 个业务模块接入审批: 采购订单/客户报价/供应商报价/发货单/订单异议
- 统一审批动作接口(提交/通过/驳回),status=10 表示审批中
- 新增"待我审批"聚合页面,按业务类型筛选
- 修复 logback 写本地路径报错,去除文件 appender
- 修复 Redis SSL 配置在 Spring Boot 4 下需对象格式
- 补齐部分业务表缺失的 update_by/update_time 审计列

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 11:14:46 +08:00
parent 0180388a2f
commit 7ffc140cf8
69 changed files with 1563 additions and 446 deletions

View File

@@ -0,0 +1,7 @@
import request from '@/utils/request'
const baseUrl = '/bid/approval'
export const listApproval = (params) => request({ url: baseUrl + '/list', method: 'get', params })
export const getApproval = (id) => request({ url: baseUrl + '/' + id, method: 'get' })
export const addApproval = (data) => request({ url: baseUrl, method: 'post', data })
export const updateApproval = (data) => request({ url: baseUrl, method: 'put', data })
export const delApproval = (ids) => request({ url: baseUrl + '/' + ids, method: 'delete' })

View File

@@ -0,0 +1,6 @@
import request from '@/utils/request'
const base = '/bid/approval/action'
export const listPending = () => request({ url: `${base}/pending`, method: 'get' })
export const submitApproval = (bizType, id) => request({ url: `${base}/submit/${bizType}/${id}`, method: 'post' })
export const approveBiz = (bizType, id) => request({ url: `${base}/approve/${bizType}/${id}`, method: 'post' })
export const rejectBiz = (bizType, id, reason) => request({ url: `${base}/reject/${bizType}/${id}`, method: 'post', data: { reason } })