import request from '@/utils/request' // 数据分页 export function getCoalPayCategory(query) { return request({ url: '/pay/coalCategory/list', method: 'get', params: query }) } // 新增数据 export function addCoalPayCategory(data) { return request({ url: '/pay/coalCategory/insert', method: 'post', data: data }) } // 修改数据 export function updateCoalPayCategory(data) { return request({ url: '/pay/coalCategory/update', method: 'post', data: data }) } // 删除数据 export function delCoalPayCategory(data) { return request({ url: '/pay/coalCategory/delete', method: 'post', data: data }) } // 缴费列表 export function getCoalPayList(query) { return request({ url: '/pay/coalPay/list', method: 'get', params: query }) } export function addCoalPay(data) { return request({ url: '/pay/coalPay/insert', method: 'post', data: data }) } export function editCoalPay(data) { return request({ url: '/pay/coalPay/update', method: 'post', data: data }) } export function delCoalPay(data) { return request({ url: '/pay/coalPay/delete', method: 'post', data: data }) } export function updateCoalPayType(data) { return request({ url: '/pay/coalPay/updateType', method: 'post', data: data }) } // 学员列表 export function getCoalPayStudentList(id) { return request({ url: '/pay/coalPayStudent/studentList/' + id, method: 'get', }) } export function addCoalPayStu(data) { return request({ url: '/pay/coalPayStudent/insert', method: 'post', data: data }) } export function editCoalPayStu(data) { return request({ url: '/pay/coalPayStudent/update', method: 'post', data: data }) } export function delCoalPayStu(data) { return request({ url: '/pay/coalPayStudent/delete', method: 'post', data: data }) } // 查询开票信息 export function getTicketList(data) { return request({ url: '/pay/coalCategory/ticketList', method: 'post', data: data }) } export function addTicket(data) { return request({ url: '/pay/coalCategory/saveTicket', method: 'post', data: data }) } export function editTicket(data) { return request({ url: '/pay/coalCategory/updateTicket', method: 'post', data: data }) } export function findStudent(query) { return request({ url: '/pay/coalPay/findStudent', method: 'get', params: query }) } export function coalTeamPay(data) { return request({ url: '/pay/coalPay/teamPay', method: 'post', data: data }) } export function coalPersonPay(query) { return request({ url: '/pay/coalPay/personPay', method: 'get', params: query }) } export function coalCount(query) { return request({ url: '/pay/coalCategory/count', method: 'get', params: query }) } export function notCoalCount(query) { return request({ url: '/pay/nonCoalCategory/count', method: 'get', params: query }) }