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 addMaterialTypeApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterialcategory/add', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } //修改原料类别 export function updateMaterialTypeApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterialcategory/edit', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } //删除原料类别 export function removeMaterialTypeApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterialcategory/remove', 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 }) } // 新增原料 export function addMaterialApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterial/add', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 编辑原料 export function updateMaterialApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterial/edit', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 删除原料 export function removeMaterialApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterial/remove/'+data.materialId, method: 'post', headers: { "merchant-id":"378915229716713472", } }) } // 批量删除原料 export function batchRemoveMaterialApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterial/remove/batch', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 批量修改原料 export function batchUpdateMaterialApi(data) { return request({ url: '/smart-canteen/api/v1/menumaterial/material/batch/update/category', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 根据区域ID-获取原料单位下拉选 //{current: 1, size: -1, ifListUse: 1, areaId: '421488254718578688'} export function getDrpUnitListApi(data) { return request({ url: '/smart-canteen//api/v1/drpunit/page', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // 下载模板 export function downLoadExportTemplate(data) { return request({ url: '/smart-canteen/api/v4/export/downLoad', method: 'post', headers: { "merchant-id":"378915229716713472", }, data: data }) } // export function downLoadExportTemplate(data) { // return request({ // url: '/smart-canteen/api/v4/export/downLoad', // method: 'post', // data: data, // responseType: 'blob' // }) // }