提交
This commit is contained in:
1 parent
a903fcf6d4
commit
259c55cc23
80 files changed
+6090
-123
No files matched your search
@@ -213,3 +213,26 @@ export async function listContract(query = {}) {
|
||||
export async function getContract(id) {
|
||||
return get(`/web/crm/contract/${String(id)}`)
|
||||
}
|
||||
|
||||
// ── 产品分类 ──
|
||||
|
||||
/** 产品分类树(不分页,嵌套 children) */
|
||||
export async function listProductCategoryTree(query = {}) {
|
||||
const body = {}
|
||||
if (query.categoryName) body.categoryName = String(query.categoryName).trim()
|
||||
if (query.status != null && query.status !== '') body.status = String(query.status)
|
||||
const data = await post('/web/crm/product-categories/tree', body)
|
||||
return Array.isArray(data) ? data : []
|
||||
}
|
||||
|
||||
export function addProductCategory(data) {
|
||||
return post('/web/crm/product-categories/add', data)
|
||||
}
|
||||
|
||||
export function updateProductCategory(data) {
|
||||
return post('/web/crm/product-categories/update', data)
|
||||
}
|
||||
|
||||
export function deleteProductCategory(id) {
|
||||
return post('/web/crm/product-categories/delete', { id: String(id) })
|
||||
}
|
||||
Reference in new issue
Block a user