function FetchApi(modulename,funname, para) { return fetch("../api/"+modulename+"/" + funname + "", { method: "post", headers: { "Accept": "application/json, text/plain, */*", "Content-Type": "application/json" }, body: JSON.stringify(para) }) } let getStockStatus = (intStatus)=>{ switch(intStatus){ case 2:{ return "入库" break } case 3:{ return "出货" break } case 4:{ return "监装出货" break } case -1:{ return "退库" break } } }