基础信息读取错误,未修改完成

This commit is contained in:
dxc
2026-01-28 08:54:11 +08:00
parent 9a04f65eb7
commit 7a4ea8acfb
11 changed files with 624 additions and 264 deletions

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 1. 获取基础信息列表
export function listMaterialBase(params: any) {
return request({
url: '/inbound/base/list',
method: 'get',
params
})
}
// 2. 新增基础信息
export function addMaterialBase(data: any) {
return request({
url: '/inbound/base/',
method: 'post',
data
})
}
// 3. 修改基础信息 (包含状态启用/禁用)
export function updateMaterialBase(data: any) {
return request({
url: '/inbound/base/',
method: 'put',
data
})
}
// 4. 删除基础信息
export function delMaterialBase(id: number) {
return request({
url: `/inbound/base/${id}`, // 注意这里是反引号,用于拼接 URL
method: 'delete'
})
}
// 5. 获取详情 (可选,用于编辑回显)
export function getMaterialBase(id: number) {
return request({
url: `/inbound/base/${id}`,
method: 'get'
})
}