对于采购件的内容进行修改,使其填写更加便利加上库位自动加载上一次的逻辑

This commit is contained in:
dxc
2026-02-11 08:38:12 +08:00
parent d594ed7ef1
commit ec16ef8d20
4 changed files with 124 additions and 36 deletions

View File

@ -47,17 +47,17 @@ export function searchMaterialBase(keyword: string) {
// 6. 文件上传 (用于图片/拍照)
export function uploadFile(data: FormData) {
return request({
url: '/common/upload',
url: '/common/upload', // 对应后端 /api/v1/common/upload
method: 'post',
data,
headers: { 'Content-Type': 'multipart/form-data' }
})
}
// 7. 文件删除
// 7. [新增] 文件删除
export function deleteFile(filename: string) {
return request({
url: `/common/files/${filename}`,
url: `/common/files/${filename}`, // 对应后端 /api/v1/common/files/<filename>
method: 'delete'
})
}
@ -87,4 +87,13 @@ export function getLinkSuggestions(params: any) {
method: 'get',
params
})
}
// 11. [新增] 库位建议
export function getLocationSuggestions(params: any) {
return request({
url: '/inbound/buy/suggestions/locations',
method: 'get',
params
})
}