This commit is contained in:
GaoHao
2025-03-10 17:26:39 +08:00
parent 490c513f48
commit cc97b6acca
26 changed files with 258 additions and 305 deletions

View File

@@ -2,10 +2,10 @@ import http from '@/http/http.js'
const request = http.request
// 商品----------------------------------------------------------------------------------------------------
/**
* 获取商品列表
* 获取商品分页
* @returns
*/
export function getProductList(data, urlType = 'product' ,showLoading) {
export function getProductPage(data, urlType = 'product' ,showLoading) {
return request({
url: `${urlType}/admin/product/page`,
method: "GET",
@@ -16,6 +16,22 @@ export function getProductList(data, urlType = 'product' ,showLoading) {
})
}
/**
* 获取商品列表
* @returns
*/
export function getProductList(data, urlType = 'product' ,showLoading) {
return request({
url: `${urlType}/admin/product/list`,
method: "GET",
data: {
...data
},
showLoading
})
}
/**
* 获取商品详情
* @returns
@@ -59,7 +75,7 @@ export function delProduct(id, urlType = 'product') {
*/
export function productOnOff (data, urlType = 'product') {
return request({
url: `${urlType}/admin/product/on-off`,
url: `${urlType}/admin/product/onOff`,
method: "POST",
data: {
...data

View File

@@ -1,6 +1,20 @@
import http from '@/http/http.js'
const request = http.request
/**
* 营业板块
* @returns
*/
export function getTrade(data, urlType = 'order') {
return request({
url: `${urlType}/admin/data/summary/trade`,
method: "GET",
data: {
...data
}
})
}
/**
* 商品销售汇总
* @returns