代码更新

This commit is contained in:
GaoHao
2025-03-03 09:44:11 +08:00
parent b4a0393d2d
commit fd0c452a76
55 changed files with 2263 additions and 2658 deletions

View File

@@ -177,4 +177,4 @@ export function stockCheck(data, urlType = 'product') {
...data
}
})
}
}

View File

@@ -8,7 +8,7 @@ const request = http.request
export function getOrderList(data, urlType = 'order') {
return request({
url: `${urlType}/admin/order`,
method: "POST",
method: "GET",
data: {
...data
}
@@ -28,6 +28,7 @@ export function getHistoryOrder(data, urlType = 'order') {
}
})
}
/**
* 生成订单
* @returns

72
api/pay.js Normal file
View File

@@ -0,0 +1,72 @@
import http from '@/http/http.js'
const request = http.request
/**
* 获取店铺订单支付URL
* @returns
*/
export function getOrderPayUrl(data, urlType = 'order') {
return request({
url: `${urlType}/pay/shopPayApi/orderPayUrl`,
method: "GET",
data: {
...data
}
})
}
/**
* 扫码支付
* @returns
*/
export function scanPay(data, urlType = 'order') {
return request({
url: `${urlType}/pay/scanPay`,
method: "POST",
data: {
...data
}
})
}
/**
* 现金支付
* @returns
*/
export function cashPay(data, urlType = 'order') {
return request({
url: `${urlType}/pay/cashPay`,
method: "POST",
data: {
...data
}
})
}
/**
* 扫码/储值支付
* @returns
*/
export function microPay(data, urlType = 'order') {
return request({
url: `${urlType}/pay/microPay`,
method: "POST",
data: {
...data
}
})
}
/**
* 会员支付
* @returns
*/
export function vipPay(data, urlType = 'order') {
return request({
url: `${urlType}/pay/vipPay`,
method: "POST",
data: {
...data
}
})
}

View File

@@ -61,9 +61,12 @@ export function updatePrinter(data, urlType = 'account') {
* 删除打印机
* @returns
*/
export function delPrinter(id, urlType = 'account') {
export function delPrinter(data, urlType = 'account') {
return request({
url: `${urlType}/admin/product/vendor/${id}`,
url: `${urlType}/admin/printer`,
method: "DELETE",
data: {
...data
}
})
}

View File

@@ -99,7 +99,7 @@ export function updateProduct(data, urlType = 'product') {
* 绑定耗材
* @returns
*/
export function productBind(data, urlType = 'product') {
export function productBindCons(data, urlType = 'product') {
return request({
url: `${urlType}/admin/product/bind`,
method: "POST",
@@ -181,6 +181,20 @@ export function updateSpec(data, urlType = 'product') {
})
}
/**
* 快捷添加商品规格
* @returns
*/
export function addSpecQuic(data, urlType = 'product') {
return request({
url: `${urlType}/admin/prod/spec/quickAdd`,
method: "POST",
data: {
...data
}
})
}
/**
* 删除商品规格
* @returns

View File

@@ -28,3 +28,31 @@ export function editShopInfo(data, urlType = 'account') {
}
})
}
/**
* 获取当前店铺拓展参数
* @returns
*/
export function getShopExtend(data, urlType = 'account') {
return request({
url: `${urlType}/admin/shopExtend`,
method: "GET",
data: {
...data
}
})
}
/**
* 获取当前店铺拓展参数
* @returns
*/
export function editShopExtend(data, urlType = 'account') {
return request({
url: `${urlType}/admin/shopExtend`,
method: "PUT",
data: {
...data
}
})
}

View File

@@ -29,6 +29,20 @@ export function shopUserList(data, urlType = 'account') {
})
}
/**
* 获取店铺用户详情
* @returns
*/
export function shopUserDetail(data, urlType = 'account') {
return request({
url: `${urlType}/admin/shopUser/detail`,
method: "GET",
data: {
...data
}
})
}
/**
* 获取店铺用户新增
* @returns

View File

@@ -36,7 +36,7 @@ export function getShopTableDetail(data, urlType = 'account') {
export function shopTableBind(data, urlType = 'account') {
return request({
url: `${urlType}/admin/shopTable/bind`,
method: "GET",
method: "POST",
data: {
...data
}