bonus-ui/src/api/reportCenter/index.js

265 lines
3.5 KiB
JavaScript

import request from '@/utils/request'
// 交易流水
export function reportTradFlowListApi(data) {
return request({
url: '/smart-canteen/report/trade/flow',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
export function getHealthInfoPageApi(data) {
return request({
url: '/smart-canteen/health_person_info/list',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
params:data
})
}
// 充值方式汇总
export function reportAccRechargeListApi(data) {
return request({
url: '/smart-canteen/report/acc/recharge',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 提现汇总
export function reportAccWithdrawListApi(data) {
return request({
url: '/smart-canteen/report/acc/withdraw',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 营业汇总
export function reportTradeOperatingListApi(data) {
return request({
url: '/smart-canteen/report/trade/revenue/operating',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 食堂档口汇总
export function reportTradeCanteenListApi(data) {
return request({
url: '/smart-canteen/report/trade/revenue/canteen',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 设备汇总
export function reportTradeDeviceListApi(data) {
return request({
url: '/smart-canteen/report/trade/revenue/device',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 个人消费汇总
export function reportTradeUserListApi(data) {
return request({
url: '/smart-canteen/report/trade/revenue/user',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 菜品销售汇总
export function reportTradeGoodsListApi(data) {
return request({
url: '/smart-canteen/report/trade/revenue/goods',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 组织收支汇总
export function reportDeptIncomeListApi(data) {
return request({
url: '/smart-canteen/report/acc/dept/income-outcome',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 人员收支汇总
export function reportUserIncomeListApi(data) {
return request({
url: '/smart-canteen/report/acc/user/income-outcome',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}