mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-02 10:45:27 +08:00
33 lines
886 B
Vue
33 lines
886 B
Vue
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
enum Api {
|
|
list = '/test/jeecgOrderMain/list',
|
|
delete = '/test/jeecgOrderMain/delete',
|
|
orderCustomerList = '/test/jeecgOrderMain/queryOrderCustomerListByMainId',
|
|
orderTicketList = '/test/jeecgOrderMain/queryOrderTicketListByMainId',
|
|
}
|
|
|
|
/**
|
|
* 列表接口
|
|
* @param params
|
|
*/
|
|
export const list = (params) => defHttp.get({ url: Api.list, params });
|
|
/**
|
|
* 子表单信息
|
|
* @param params
|
|
*/
|
|
export const orderTicketList = (params) => defHttp.get({ url: Api.orderTicketList, params });
|
|
/**
|
|
* 子表单信息
|
|
* @param params
|
|
*/
|
|
export const orderCustomerList = (params) => defHttp.get({ url: Api.orderCustomerList, params });
|
|
/**
|
|
* 删除用户
|
|
*/
|
|
export const deleteOne = (params, handleSuccess) => {
|
|
return defHttp.delete({ url: Api.delete, params }, { joinParamsToUrl: true }).then(() => {
|
|
handleSuccess();
|
|
});
|
|
};
|