You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
240 lines
7.6 KiB
240 lines
7.6 KiB
import http from '@/utils/request';
|
|
import { Ajax1 } from '@/utils/request';
|
|
|
|
class learnDriveApi {
|
|
//创建报名-1
|
|
async createTrainingApplySimple(data) {
|
|
return await Ajax1('/apply/manage/createTrainingApplySimple.do', data,'post');
|
|
}
|
|
// 查询本人预报名列表-1
|
|
async queryTrainingApplyByOwner(data) {
|
|
return await Ajax1('/apply/manage/queryTrainingApplyByOwner.do', data,'post');
|
|
}
|
|
// 删除预报名-1
|
|
async delTrainingApply(data) {
|
|
return await Ajax1('/apply/manage/delTrainingApply.do', data,'post');
|
|
}
|
|
|
|
// 创建报名信息(包括修改)-1
|
|
async getOwnerStudentStatus(data) {
|
|
return await Ajax1('/student/manage/getOwnerStudentStatus.do', data,'post');
|
|
}
|
|
|
|
// 根据驾校id查询车型
|
|
async queryDriveModels(data) {
|
|
return await Ajax1('/school/manage/queryDriveModels.do', data,'post');
|
|
}
|
|
// 查询班型列表-2
|
|
async queryTrainingClasss(data) {
|
|
return await Ajax1('/class/manage/queryTrainingClasss.do', data,'post');
|
|
}
|
|
// 通过车型查询班型列表
|
|
async querySimpleTrainingClasssByModel(data) {
|
|
return await Ajax1('/class/manage/querySimpleTrainingClasssByModel.do', data,'post');
|
|
}
|
|
// 根据车型查询教练列表-3
|
|
async querySchoolCoach(data) {
|
|
return await http('/coach/manage/querySchoolCoach.do', data,'get');
|
|
}
|
|
// 根据驾校id查询适应性训练考场
|
|
async queryAdaptabilityGrounds(data) {
|
|
return await Ajax1('/school/manage/queryAdaptabilityGrounds.do', data,'post');
|
|
}
|
|
// 查询适应性训练学时
|
|
async queryAdaptabilityEnums(data) {
|
|
return await http('/util/manage/queryAdaptabilityEnums.do', data,'get');
|
|
}
|
|
// 创建订单
|
|
async createOrder(data) {
|
|
return await Ajax1('/order/manage/createOrder.do', data,'post');
|
|
}
|
|
// 提交表单
|
|
async createTrainingApplyDetails(data) {
|
|
return await Ajax1('/apply/manage/createTrainingApplyDetails.do', data,'post');
|
|
}
|
|
// 查询签约状态
|
|
async queryFlowStatus(data) {
|
|
return await Ajax1('/apply/manage/queryFlowStatus.do', data,'post');
|
|
}
|
|
// 获取签约链接
|
|
async signContract(data) {
|
|
return await Ajax1('/apply/manage/signContract.do', data,'post');
|
|
}
|
|
// 查询订单详情-1
|
|
async getOrderDetails(data) {
|
|
return await Ajax1('/order/manage/getOrderDetails.do', data,'post');
|
|
}
|
|
// 创建银行预支付订单
|
|
async createPrepaid(data) {
|
|
return await Ajax1('/order/manage/createPrepaid.do', data,'post');
|
|
}
|
|
// 查询本人订单列表-3
|
|
async queryOwnerOrders(data) {
|
|
return await Ajax1('/order/manage/queryOwnerOrders.do', data,'post');
|
|
}
|
|
// 查询报名详情-3
|
|
async getTrainingApplyDetails(data) {
|
|
return await Ajax1('/apply/manage/getTrainingApplyDetails.do', data,'post');
|
|
}
|
|
// 查询缴费凭证-4
|
|
async getStudentVoucher(data) {
|
|
return await Ajax1('/student/manage/getStudentVoucher.do', data,'get');
|
|
}
|
|
// 创建开票信息
|
|
async createBill(data) {
|
|
return await http('/student/manage/createBill.do', data,'post');
|
|
}
|
|
// 获取开票信息
|
|
async getStudentBill(data) {
|
|
return await http('/student/manage/getStudentBill.do', data,'get');
|
|
}
|
|
// 查询退学转学退款金额
|
|
async queryRefundAmount(data) {
|
|
return await Ajax1('/refund/manage/queryRefundAmount.do', data,'post');
|
|
}
|
|
// 提交退学转学申请
|
|
async createRefund(data) {
|
|
return await Ajax1('/refund/manage/createRefund.do', data,'post');
|
|
}
|
|
// 提交考务退学转学申请
|
|
async createRefundKwzx(data) {
|
|
return await Ajax1('/refund/manage/kwzx/createRefund.do', data,'post');
|
|
}
|
|
// 查询银行行号
|
|
async queryBanks(data) {
|
|
return await http('/util/manage/queryBanks.do', data,'get');
|
|
}
|
|
// 修改退学转学申请
|
|
async updateRefund(data) {
|
|
return await http('/refund/manage/updateRefund.do', data,'post');
|
|
}
|
|
// 查询考务退学转学退款金额
|
|
async queryRefundAmountKwzx(data={}) {
|
|
return await Ajax1('/refund/manage/kwzx/queryRefundAmount.do', data,'post');
|
|
}
|
|
// 查询本人申请退学转学列表
|
|
async queryOwnerRefunds(data={}) {
|
|
return await Ajax1('/refund/manage/queryOwnerRefunds.do', data,'post');
|
|
}
|
|
// 学员确认退款(点重新申请)
|
|
async confirmRefund(data={}) {
|
|
return await Ajax1('/refund/manage/confirmRefund.do', data,'post');
|
|
}
|
|
// 查询本人考务申请退学转学列表
|
|
async queryOwnerRefundsKwzx(data={}) {
|
|
return await Ajax1('/refund/manage/kwzx/queryOwnerRefunds.do', data,'post');
|
|
}
|
|
// 点击转校时请求一下这个接口
|
|
async checkTransfer(data={}) {
|
|
return await Ajax1('/transfer/manage/checkTransfer.do', data,'post');
|
|
}
|
|
// 查询本人申请转学记录列表
|
|
async queryTransferSchoolRecord(data={}) {
|
|
return await Ajax1('/refund/manage/queryTransferSchoolRecord.do', data,'post');
|
|
}
|
|
// 完成转校报名页-3
|
|
async getTransferTrainingApplyDetails(data={}) {
|
|
return await Ajax1('/apply/manage/getTransferTrainingApplyDetails.do', data,'post');
|
|
}
|
|
// 创建转校报名信息(包括修改)-1
|
|
async createTransferTrainingApplyDetails(data={}) {
|
|
return await Ajax1('/apply/manage/createTransferTrainingApplyDetails.do', data,'post');
|
|
}
|
|
// 查询转校应付金额
|
|
async getTransferAmount(data={}) {
|
|
return await Ajax1('/apply/manage/getTransferAmount.do', data,'post');
|
|
}
|
|
// 变更车型页面-3
|
|
async getChangeModelDetails(data={}) {
|
|
return await Ajax1('/apply/manage/getChangeModelDetails.do', data,'post');
|
|
}
|
|
// 提交变更车型申请(包括修改)-1
|
|
async createChangeModelDetails(data={}) {
|
|
return await Ajax1('/apply/manage/createChangeModelDetails.do', data,'post');
|
|
}
|
|
// 获取图片验证码
|
|
async getCaptcha(data) {
|
|
return await http('/oldStudent/getCaptcha.do?uuid='+ data, null,'get');
|
|
}
|
|
// 验证图片验证码
|
|
async checkCaptcha(data) {
|
|
return await http('/oldStudent/checkCaptcha.do', data, 'post');
|
|
}
|
|
// 根据token查询车型-3
|
|
async tokenQueryDriveModels(data={}) {
|
|
return await Ajax1('/util/manage/queryDriveModels.do', data, 'post');
|
|
}
|
|
// 更新学员信息
|
|
async updateOldStudent(data={}) {
|
|
return await http('/oldStudent/updateOldStudent.do', data, 'post');
|
|
}
|
|
// 查询学员登记状态,0:未登记,非0:登记
|
|
async oldStudentCheckStatus(data={}) {
|
|
return await Ajax1('/oldStudent/checkStatus.do', data, 'get');
|
|
}
|
|
// 获取预约访问路径
|
|
async getSubjectOrderUrl(data={}) {
|
|
return await Ajax1('/oldStudent/getSubjectOrderUrl.do', data, 'get');
|
|
}
|
|
// 老学登录
|
|
async checkOldStudent(data={}) {
|
|
return await http('/oldStudent/checkOldStudent.do', data, 'post');
|
|
}
|
|
// 查询学员书本激活信息(抓包的,还没用到)
|
|
async getStudentBookStatus(data={}) {
|
|
return await http('/student/manage/getStudentBookStatus.do', data, 'get');
|
|
}
|
|
// 查询银行预支付订单结果-4
|
|
async getPrepaidResult(data={}) {
|
|
return await Ajax1('/order/manage/getPrepaidResult.do', data, 'post');
|
|
}
|
|
// 获取其他短信验证码-1
|
|
async getOtherCode(data={}) {
|
|
return await Ajax1('/util/manage/getOtherCode.do', data, 'post');
|
|
}
|
|
// 取消申请退款
|
|
async cancelRefund(data={}) {
|
|
return await Ajax1('/refund/manage/cancelRefund.do', data, 'post');
|
|
}
|
|
// 取消适应性训练三小时订单
|
|
async cancelAdaptabilityOrder(data={}) {
|
|
return await Ajax1('/order/manage/cancelAdaptabilityOrder.do', data, 'post');
|
|
}
|
|
// 查询考务中心银行预支付订单结果-4 (轮询)
|
|
async getKwzxPrepaidResult(data={}) {
|
|
return await Ajax1('/order/manage/getKwzxPrepaidResult.do', data, 'post');
|
|
}
|
|
// 创建考务中心银行预支付订单-4
|
|
async createKwzxPrepaid(data={}) {
|
|
return await Ajax1('/order/manage/createKwzxPrepaid.do', data, 'post');
|
|
}
|
|
// 扫卡识别银行卡号
|
|
async scanningBanks(data={}) {
|
|
return await Ajax1('/util/manage/scanningBanks.do', data, 'post');
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
export default new learnDriveApi();
|