初始化项目

This commit is contained in:
andy committed 2026-01-23 17:20:52 +08:00
commit 60c416e553
79 files changed
+5609

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
import { http } from '@/utils/request'
import type { Report, ReportForm, ReportAuditForm, PageQuery, PageResult } from '@/types'
// 分页查询报备
export const getReportPage = (params: PageQuery & {
dealerId?: number
dealerName?: string
customerName?: string
status?: number
}) => {
return http.get<PageResult<Report>>('/report/page', { params })
}
// 根据ID获取报备详情
export const getReportById = (id: number) => {
return http.get<Report>(`/report/${id}`)
}
// 创建报备
export const createReport = (data: ReportForm) => {
return http.post('/report', data)
}
// 审核报备
export const auditReport = (id: number, data: ReportAuditForm) => {
return http.put(`/report/${id}/audit`, data)
}
// 撤回报备
export const withdrawReport = (id: number) => {
return http.delete(`/report/${id}`)
}