采购件,半成品,产品页面初步完成

This commit is contained in:
dxc
2026-01-29 09:27:56 +08:00
parent b0df5c7458
commit 06ba2d7563
11 changed files with 836 additions and 244 deletions

View File

@ -0,0 +1,42 @@
import request from '@/utils/request'
// 注意 URL 已变为 /inbound/product/...
export function getProductList(params: any) {
return request({
url: '/inbound/product/list',
method: 'get',
params
})
}
export function createProductInbound(data: any) {
return request({
url: '/inbound/product/submit',
method: 'post',
data
})
}
export function updateProductInbound(id: number, data: any) {
return request({
url: `/inbound/product/${id}`,
method: 'put',
data
})
}
export function deleteProductInbound(id: number) {
return request({
url: `/inbound/product/${id}`,
method: 'delete'
})
}
export function searchMaterialBase(keyword: string) {
return request({
url: '/inbound/base/search',
method: 'get',
params: { keyword }
})
}