import request from '@/utils/request' // 查询挂账信息列表 export function listHangBill(query) { return request({ url: '/business/hangBill/list', method: 'get', params: query }) } // 查询挂账信息列表 export function hangBillInfo(id) { return request({ url: '/business/hangBill/'+id, method: 'get', }) } // 查询所有挂账信息列表 export function hangBills() { return request({ url: '/business/hangBill/hangBills', method: 'get', }) } // 新增挂账记录 export function addHangBill(data) { return request({ url: '/business/hangBill', method: 'post', data: data }) } // 批量归还挂账信息 export function batchHangBill(data) { return request({ url: '/business/hangBill/batch', method: 'post', data: data }) } // 根据订单号查询挂账记录信息 export function queryHangBill(data) { return request({ url: '/business/hangBill/orderNo', method: 'post', data: data }) } // 修改挂账记录及收款 export function editHangBill(data) { return request({ url: '/business/hangBill', method: 'put', data: data }) } // 当前店铺归还账单的数量 export function hangBillReturnTotal(query) { return request({ url: '/business/hangBill/returnTotal', method: 'get', params: query }) } // 当前店铺归还账单的数量 export function hangBillAllAmount(query) { return request({ url: '/business/hangBill/allAmount', method: 'get', params: query }) } // 当前店铺归还账单的数量 export function hangBillAllReturnAmount(query) { return request({ url: '/business/hangBill/allReturnAmount', method: 'get', params: query }) } // 当前店铺归还账单的数量 export function hangBillAllNoReturnAmount(query) { return request({ url: '/business/hangBill/allNoReturnAmount', method: 'get', params: query }) }