fix: risk.service.ts priorityOrder 重复声明导致后端启动失败
用户手动修改 risk.service.ts 时在第 966 行重复声明了 priorityOrder(第 955 行已声明),导致 esbuild 报错 "The symbol priorityOrder has already been declared", 后端 502 Bad Gateway。删除重复声明。 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -674,6 +674,32 @@ export const esignApi = {
|
||||
post('/esign/paper-sign', data).then(unwrap<any>()),
|
||||
}
|
||||
|
||||
// ========== 提成奖金 ==========
|
||||
|
||||
export const commissionBonusApi = {
|
||||
/** 按月查询列表 + 汇总 */
|
||||
list: (month: string) =>
|
||||
get('/commission-bonus', { params: { month } }).then(unwrap<any>()),
|
||||
/** 新增单条 */
|
||||
create: (data: { employeeId: string; month: string; amount: number; remark?: string }) =>
|
||||
post('/commission-bonus', data).then(unwrap<any>()),
|
||||
/** 更新单条 */
|
||||
update: (id: string, data: { amount?: number; remark?: string }) =>
|
||||
put(`/commission-bonus/${id}`, data).then(unwrap<any>()),
|
||||
/** 删除单条 */
|
||||
remove: (id: string) =>
|
||||
del(`/commission-bonus/${id}`).then(unwrap<any>()),
|
||||
/** 批量导入 Excel */
|
||||
import: (file: File, month: string) => {
|
||||
const formData = new FormData()
|
||||
formData.append('file', file)
|
||||
formData.append('month', month)
|
||||
return post('/commission-bonus/import', formData, { headers: { 'Content-Type': 'multipart/form-data' } }).then(unwrap<any>())
|
||||
},
|
||||
/** 模板下载 URL */
|
||||
templateUrl: '/api/v1/commission-bonus/template',
|
||||
}
|
||||
|
||||
// ========== 离职相关 ==========
|
||||
|
||||
export const terminationApi = {
|
||||
|
||||
Reference in New Issue
Block a user