import request from '@/utils/request' // 原料类别 export function systemMaterialTreeApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterialcategory/tree/list', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 系统区域权限树 export function systemAreaTreeApi(data) { return request({ url: '/smart-canteen/api/v2/alloc/area/system-auth/tree', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 查询区域列表 export function getMaterialListApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterial/page', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 根据区域id,查询区域名称 export function getMaterialNameApi(data) { return request({ url: '/smart-canteen/api/v2/alloc/area/get-area-name', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 查询区域(食堂,档口,餐线)编号 export function getMaterialNumApi(data) { return request({ url: 'smart-canteen/api/v2/alloc/canteen/get-canteen-num', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 新增区域 export function addMaterialApi(data) { return request({ url: 'smart-canteen/api/v2/alloc/area/add', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } //修改区域 export function updateMaterialApi(data) { return request({ url: 'smart-canteen/api/v2/alloc/area/update', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } //删除区域 export function removeMaterialApi(data) { return request({ url: 'smart-canteen/api/v2/alloc/area/remove', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) }