bonus-ui/src/api/superStore/super.js

84 lines
1.5 KiB
JavaScript
Raw Normal View History

2025-03-18 10:51:38 +08:00
import request from '@/utils/request'
// 仓库
export function drpWareHousePageApi(data) {
return request({
url: '/smart-canteen/warehouse_info/list',
method: 'get',
2025-03-18 10:51:38 +08:00
headers: {
"merchant-id":"378915229716713472",
},
params: data
2025-03-18 10:51:38 +08:00
})
}
// 超市列表
export function supermarketPageListApi(data) {
return request({
url: '/smart-canteen/supermarket_info/list',
method: 'get',
2025-03-18 10:51:38 +08:00
headers: {
"merchant-id":"378915229716713472",
},
params: data
2025-03-18 10:51:38 +08:00
})
}
// 超市列表-新增
export function insertSupermarketApi(data) {
return request({
url: '/smart-canteen/supermarket_info/add',
2025-03-18 10:51:38 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 超市列表-编辑
export function editSupermarketApi(data) {
return request({
url: '/smart-canteen/supermarket_info/edit',
2025-03-18 10:51:38 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 超市列表-删除
export function deleteSupermarketApi(data) {
return request({
url: '/smart-canteen/supermarket_info/del',
2025-03-18 10:51:38 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-03-19 18:36:55 +08:00
// 通过角色查人员
export function userListByRoleApi(data) {
2025-03-18 10:51:38 +08:00
return request({
2025-03-19 18:36:55 +08:00
url: '/system/user/listByPost',
2025-03-18 10:51:38 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}