2025-03-18 10:51:38 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 仓库
|
|
|
|
|
export function drpWareHousePageApi(data) {
|
|
|
|
|
return request({
|
2025-05-29 17:41:42 +08:00
|
|
|
url: '/smart-canteen/supply_warehouse_info/list',
|
2025-05-12 18:09:20 +08:00
|
|
|
method: 'get',
|
2025-03-18 10:51:38 +08:00
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
2025-05-12 18:09:20 +08:00
|
|
|
params: data
|
2025-03-18 10:51:38 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 超市列表
|
|
|
|
|
export function supermarketPageListApi(data) {
|
|
|
|
|
return request({
|
2025-05-12 18:09:20 +08:00
|
|
|
url: '/smart-canteen/supermarket_info/list',
|
|
|
|
|
method: 'get',
|
2025-03-18 10:51:38 +08:00
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
2025-05-12 18:09:20 +08:00
|
|
|
params: data
|
2025-03-18 10:51:38 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 超市列表-新增
|
|
|
|
|
export function insertSupermarketApi(data) {
|
|
|
|
|
return request({
|
2025-05-15 17:26:22 +08:00
|
|
|
url: '/smart-canteen/supermarket_info',
|
2025-03-18 10:51:38 +08:00
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 超市列表-编辑
|
|
|
|
|
export function editSupermarketApi(data) {
|
|
|
|
|
return request({
|
2025-05-12 18:09:20 +08:00
|
|
|
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({
|
2025-05-15 17:26:22 +08:00
|
|
|
url: '/smart-canteen/supermarket_info/del/'+data.supermarketId,
|
2025-03-18 10:51:38 +08:00
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
2025-05-15 17:26:22 +08:00
|
|
|
}
|
2025-03-18 10:51:38 +08:00
|
|
|
})
|
|
|
|
|
}
|
2025-06-09 08:52:52 +08:00
|
|
|
|
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
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-06-09 09:42:39 +08:00
|
|
|
// 商超商品列表
|
2025-06-09 08:52:52 +08:00
|
|
|
export function shopPageListApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/supermarket_product/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-06-09 09:42:39 +08:00
|
|
|
// 商品列表
|
|
|
|
|
export function shopProductPageListApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/supermarket_product/getAddList',
|
|
|
|
|
method: 'get',
|
|
|
|
|
headers: {
|
|
|
|
|
"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-03-18 10:51:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|