新增 报备进展记录
This commit is contained in:
1 parent
ac74fa9204
commit
1759de5af3
13 files changed
+639
-24
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { http } from '@/utils/request'
|
||||
import type { ReportProgress, ReportProgressForm } from '@/types'
|
||||
|
||||
// 根据报备ID获取进展记录列表
|
||||
export const getProgressByReportId = (reportId: number) => {
|
||||
return http.get<ReportProgress[]>(`/report-progress/report/${reportId}`)
|
||||
}
|
||||
|
||||
// 根据ID获取进展记录
|
||||
export const getProgressById = (id: number) => {
|
||||
return http.get<ReportProgress>(`/report-progress/${id}`)
|
||||
}
|
||||
|
||||
// 创建进展记录
|
||||
export const createProgress = (data: ReportProgressForm) => {
|
||||
return http.post('/report-progress', data)
|
||||
}
|
||||
|
||||
// 更新进展记录
|
||||
export const updateProgress = (id: number, data: ReportProgressForm) => {
|
||||
return http.put(`/report-progress/${id}`, data)
|
||||
}
|
||||
|
||||
// 删除进展记录(根据需求不可删除,所以不提供该接口)
|
||||
// export const deleteProgress = (id: number) => {
|
||||
// return http.delete(`/report-progress/${id}`)
|
||||
// }
|
||||
Reference in new issue
Block a user