import{g2 as r,g3 as s}from"./index-DdWwwZXu.js";import{a}from"./vendor-utils-BveVE6Uf.js";const w=()=>({addMaterialService:async e=>(e.name=s(e.name),(await a.post("Material/AddMaterial",e)).data),getMaterialsAsync:async e=>(await a.get("Material/GetMaterials",{params:{name:e}})).data,getMaterialByIdAsync:async e=>(await a.get(`Material/GetMaterial/${e}`)).data,getWareHouseMaterialsAsync:async e=>(await a.get("Material/GetWareHouseMaterials",{params:e})).data,getDepartmentMaterialsAsync:async(e,t)=>(await a.get("Material/GetDepartmentMaterials",{params:{departmentId:e,name:t}})).data,getMaterialKardexAsync:async e=>(await a.get("Material/GetMaterialKardex",{params:e})).data,editMaterialAsync:async e=>(e.name=s(e.name),(await a.put(`Material/EditMaterial/${e.id}`,e)).data),updateOrderLimitAsync:async e=>(await a.post("Material/UpdateOrderLimit",e)).data,deleteMaterialAsync:async e=>{await a.delete(`Material/DeleteMaterial/${e}`)},getWareHouseMaterialSelectListAsync:async e=>(await a.get("Material/WarehouseMaterial/SelectList",{params:e})).data,exportToExcelMaterial:async e=>{await r("Material/ExportToExcel",{name:e})}});export{w as m};
