This commit is contained in:
zc
2026-03-25 17:37:30 +08:00
parent 57ba3a72b8
commit ad1cd77a48
3 changed files with 23 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ export interface MaterialInfoResp {
createTime: string
createUserString: string
updateUserString: string
lightLevel: string
disabled: boolean
photoLoadError: boolean
}
@@ -37,9 +38,6 @@ export function listMaterialInfo(query: MaterialInfoPageQuery) {
return http.get<PageRes<MaterialInfoResp[]>>(`${BASE_URL}`, query)
}
interface MaterialInfoDetailResp {
}
/** @desc 下载物料信息导入模板 */
export function downloadMaterialInfoImportTemplate() {
return http.download(`${BASE_URL}/import/template`)
@@ -47,7 +45,7 @@ export function downloadMaterialInfoImportTemplate() {
/** @desc 查询物料信息详情 */
export function getMaterialInfo(id: string) {
return http.get<MaterialInfoDetailResp>(`${BASE_URL}/${id}`)
return http.get<MaterialInfoResp>(`${BASE_URL}/${id}`)
}
/** @desc 新增物料信息 */