import request from '@/utils/request' // 查询食堂支付记录列表 export function listCanteenRecord(query) { return request({ url: '/smart-canteen/api/v2/report/consume/list', method: 'post', data: query }) } //人员报表信息查询 export function peoplelistRecord(query) { return request({ url: '/smart-canteen/api/v2/report/consume/peoplelist', method: 'get', params: query }) } //获取组织树 export function getTree(query) { return request({ url: '/smart-canteen/api/v2/report/tree', method: 'get', params: query }) } // 查询详情列表 export function getDetailList(query) { return request({ url: '/smart-canteen/api/v2/report/consume/listByArea', method: 'post', data: query }) } // 若依内置了 download 工具,页面里直接用 this.download 更方便(见下) export function download(query) { return request({ url: '/smart-canteen/api/v2/report/consume/exportExcel', method: 'post', data: query, responseType: 'blob' }) }