产品最终版,薪资优化

This commit is contained in:
朱昊天
2026-04-30 17:06:47 +08:00
parent fe13e952f2
commit 3d386ff650
17 changed files with 791 additions and 156 deletions

View File

@@ -9,6 +9,15 @@ export function listProduct(query) {
})
}
// 查询产品基础信息列表(不包含配料信息,用于列表页加速)
export function listProductBase(query) {
return request({
url: '/mat/product/listBase',
method: 'get',
params: query
})
}
// 查询产品基础信息详细
export function getProduct(productId) {
return request({
@@ -42,3 +51,21 @@ export function delProduct(productId) {
method: 'delete'
})
}
// 下载导入模板
export function importTemplateProduct() {
return request({
url: '/mat/product/importTemplate',
method: 'post',
responseType: 'blob'
})
}
// 导入产品数据
export function importProductData(data, updateSupport) {
return request({
url: '/mat/product/importData?updateSupport=' + (updateSupport ? 1 : 0),
method: 'post',
data: data
})
}