2025-08-14 17:11:12 +08:00

128 lines
3.1 KiB
JavaScript

import request from "@/utils/request";
//获取商品分类
export function reqGetProductCategorySearch(data) {
return request({
url: '/product/product_category_search.dspy',
method: 'post',
headers: {
'Content-Type': 'application/json'
},
data
})
}
//添加产品 publish_product_add
export function reqPublishProductAdd(data) {
return request({
url: '/product/publish_product_add.dspy',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data
})
}
//获公司类型 /product/company_category_search.dspy
export function reqCompanyCategorySearch(data) {
return request({
url: '/product/company_category_search.dspy',
method: 'post',
headers: { 'Content-Type': 'application/json' },
data
})
}
//获取全部产品/product/publish_product_search_first_page.dspy
export function reqPublishProductSearchFirstPage(data) {
return request({
url: '/product/publish_product_search_first_page.dspy',
method: 'post',
headers: { 'Content-Type': 'application/json' },
data
})
}
//算力供需广场 获取列表
export function reqGetSupplyAndDemandSquareList(data) {
return request({
url: '/product/publish_product_search_first_page.dspy',
method: 'post',
headers: { 'Content-Type': 'application/json' },
data
})
}
//获取商品详情
export function reqGetProductDetail(data) {
return request({
url: '/product/publish_product_search_detail.dspy',
method: 'post',
headers: { 'Content-Type': 'application/json' },
data
})
}
//提交审批 ///user/enterprise_audit_info_add.dspy
export function reqApproveUser(data){
return request({
url: '/user/enterprise_audit_info_add.dspy',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data
})
}
//获取菜单ncmatch菜单 menu
export function reqNcMatchMenu(data){
return request({
url: '/product/homepage_category_tree_search.dspy',
method: 'post',
headers: { 'Content-Type': 'application/json' },
data
})
}
//运营查找商品|需求
export function reqSearchByMangement(data){
return request({
url: '/product/publish_product_search.dspy',
method: 'post',
headers: { 'Content-Type': 'application/js1on' },
data
})
}
//编辑商品
export function reqEditProduct(data){
return request({
url: '/product/publish_product_update.dspy',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data
})
}
//编辑非图片字段
export function reqEditProductNoImg(data){
return request({
url: '/product/publish_product_update.dspy',
method: 'post',
headers: { 'Content-Type': 'application/js1on' },
data
})
}
//搜索
export function reqSearch(data){
return request({
url: '/product/global_search.dspy',
method: 'post',
headers: { 'Content-Type': 'application/js1on' },
data
})
}
//导出 //reqExportProduct
export function reqExportProduct(data){
return request({
url: '/product/publish_product_to_excel.dspy',
method: 'post',
headers: { 'Content-Type': 'application/js1on' },
data
})
}