提交
This commit is contained in:
1 parent
195c4c0a34
commit
64219a68c7
317 files changed
+66845
-33515
No files matched your search
@@ -0,0 +1,84 @@
|
||||
import request from '@/utils/http'
|
||||
|
||||
type PageList<T> = {
|
||||
list: T[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
totalPages: number
|
||||
}
|
||||
|
||||
export type EnvDetectRecord = {
|
||||
id: string
|
||||
recordNo: string
|
||||
detectTime: string
|
||||
inspectorIds: string[]
|
||||
inspectorNames: string[]
|
||||
inspectorDisplay: string
|
||||
envDetectItemId: string
|
||||
itemCode: string
|
||||
itemName: string
|
||||
resultDesc: string
|
||||
attachmentUrls: string
|
||||
remark?: string
|
||||
createTime?: string
|
||||
updateTime?: string
|
||||
}
|
||||
|
||||
export function fetchEnvDetectRecordList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
envDetectItemId?: string
|
||||
inspectorId?: string
|
||||
detectTimeStart?: string
|
||||
detectTimeEnd?: string
|
||||
}) {
|
||||
return request.get<PageList<EnvDetectRecord>>({
|
||||
url: '/web/admin/env-detect-records',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchEnvDetectRecordDetail(id: string) {
|
||||
return request.get<EnvDetectRecord>({
|
||||
url: `/web/admin/env-detect-records/${id}`
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchCreateEnvDetectRecord(data: {
|
||||
detectTime: string
|
||||
inspectorIds: string[]
|
||||
envDetectItemId: string
|
||||
resultDesc: string
|
||||
attachmentUrls?: string
|
||||
remark?: string
|
||||
}) {
|
||||
return request.post<EnvDetectRecord>({
|
||||
url: '/web/admin/env-detect-records',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchUpdateEnvDetectRecord(
|
||||
id: string,
|
||||
data: {
|
||||
detectTime?: string
|
||||
inspectorIds?: string[]
|
||||
envDetectItemId?: string
|
||||
resultDesc?: string
|
||||
attachmentUrls?: string
|
||||
remark?: string
|
||||
}
|
||||
) {
|
||||
return request.put<EnvDetectRecord>({
|
||||
url: `/web/admin/env-detect-records/${id}`,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchDeleteEnvDetectRecord(id: string) {
|
||||
return request.del({
|
||||
url: `/web/admin/env-detect-records/${id}`
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user