diff --git a/src/api/dish/material.js b/src/api/dish/material.js new file mode 100644 index 00000000..596411e8 --- /dev/null +++ b/src/api/dish/material.js @@ -0,0 +1,92 @@ +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 + }) +} diff --git a/src/views/dish/material/components/MaterialDialog.vue b/src/views/dish/material/components/MaterialDialog.vue new file mode 100644 index 00000000..d57b5af5 --- /dev/null +++ b/src/views/dish/material/components/MaterialDialog.vue @@ -0,0 +1,492 @@ + + + + + diff --git a/src/views/dish/material/index.vue b/src/views/dish/material/index.vue new file mode 100644 index 00000000..c618f056 --- /dev/null +++ b/src/views/dish/material/index.vue @@ -0,0 +1,733 @@ + + + + +