bonus-ui/src/api/accountCenter/consume.js

178 lines
3.9 KiB
JavaScript
Raw Normal View History

2025-03-20 19:28:36 +08:00
import request from '@/utils/request'
// 系统区域权限树
export function systemAreaTreeApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 通过区域Id查询食堂
export function getCanteenByAreaApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/canteen/list-all-auth-canteen',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 通过食堂Id查询档口
export function getStallByCanteenApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/canteen/list-multiple-auth-stall',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 获取设备-下拉
export function getPayDeviceListApi(data) {
return request({
url: '/smart-canteen/api/v2/device/getPayDeviceList',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 补扣提交-单个
export function consumeDeductSingleApi(data) {
return request({
url: '/smart-canteen/api/v3/acc/consume/single/repair/deduct',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-03-26 17:14:15 +08:00
// 补扣提交-批量预览
export function consumeBatchCheckApi(data) {
2025-03-20 19:28:36 +08:00
return request({
url: '/smart-canteen/api/v3/acc/batch/operate/repair/deduct/check',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
2025-03-26 17:14:15 +08:00
}
// 补扣提交-批量补扣
export function consumeDeductBatchApi(data) {
return request({
url: '/smart-canteen/api/v3/acc/consume/batch/repair/deduct',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-03-20 19:28:36 +08:00
// 消费明细列表
export function accountFlowPageApi(data) {
return request({
url: '/smart-canteen/summary/account/flow/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 消费类型汇总-用户个人
export function accountConsumeCustPageApi(data) {
return request({
url: '/smart-canteen/summary/account/consume/cust/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 消费类型汇总-用户类别
export function accountConsumePsnPageApi(data) {
return request({
url: '/smart-canteen/summary/account/consume/psn/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 消费类型汇总-用户组织
export function accountConsumeOrganizationPageApi(data) {
return request({
url: '/smart-canteen/summary/account/consume/organization/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 消费钱包汇总-用户个人
export function walletConsumeCustPageApi(data) {
return request({
url: '/smart-canteen/summary/account/wallet/consume/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 消费钱包汇总-用户类别
export function walletConsumePsnPageApi(data) {
return request({
url: '/smart-canteen/summary/account/wallet/consume/type/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 消费钱包汇总-用户组织
export function walletConsumeOrganizationPageApi(data) {
return request({
url: '/smart-canteen/summary/account/wallet/consume/org/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}