文档
测试

成本支出--首页

POST
/api/restaurant_machine/costexpenditure/getcostexpenditure

请求头

参数名
类型
描述
必填
token
string
token
必填

请求参数

{ "type":3, //1 今日 2 本周 3 本月 4 本年 "chooseLevelId":1, "chooseLevel":1 }

说明 / 示例

``` { "total": 0, "code": 0, "data": { "totalExpenditure": 484.4, //总支出 "itemCount": 0, "details": [ { "ceId": null, "name": "房租", //项目名 "amount": "165.2", 金额 "proportion": null }, { "ceId": null, "name": "物业费", "amount": "163.2", "proportion": null }, { "ceId": null, "name": "物业费", "amount": "156", "proportion": null } ] }, "message": "success" }