36 lines
1.8 KiB
TypeScript
36 lines
1.8 KiB
TypeScript
/**
|
|
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
|
* No deletion without permission, or be held responsible to law.
|
|
* @author gaoxq
|
|
*/
|
|
import { defHttp } from '@jeesite/core/utils/http/axios';
|
|
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
|
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
|
|
|
const { adminPath } = useGlobSetting();
|
|
|
|
export interface ErpAccountIncomeExpense extends BasicModel<ErpAccountIncomeExpense> {
|
|
accountId: string; // 交易账户
|
|
yearDate?: string; // year_date
|
|
incomeAmount?: number; // income_amount
|
|
expenseAmount?: number; // expense_amount
|
|
}
|
|
|
|
export const erpAccountIncomeExpenseList = (params?: ErpAccountIncomeExpense | any) =>
|
|
defHttp.get<ErpAccountIncomeExpense>({ url: adminPath + '/erp/accountIncomeExpense/list', params });
|
|
|
|
export const erpAccountIncomeExpenseListAll = (params?: ErpAccountIncomeExpense | any) =>
|
|
defHttp.get<ErpAccountIncomeExpense[]>({ url: adminPath + '/erp/accountIncomeExpense/listAll', params });
|
|
|
|
export const erpAccountIncomeExpenseListData = (params?: ErpAccountIncomeExpense | any) =>
|
|
defHttp.post<Page<ErpAccountIncomeExpense>>({ url: adminPath + '/erp/accountIncomeExpense/listData', params });
|
|
|
|
export const erpAccountIncomeExpenseForm = (params?: ErpAccountIncomeExpense | any) =>
|
|
defHttp.get<ErpAccountIncomeExpense>({ url: adminPath + '/erp/accountIncomeExpense/form', params });
|
|
|
|
export const erpAccountIncomeExpenseSave = (params?: any, data?: ErpAccountIncomeExpense | any) =>
|
|
defHttp.postJson<ErpAccountIncomeExpense>({ url: adminPath + '/erp/accountIncomeExpense/save', params, data });
|
|
|
|
export const erpAccountIncomeExpenseDelete = (params?: ErpAccountIncomeExpense | any) =>
|
|
defHttp.get<ErpAccountIncomeExpense>({ url: adminPath + '/erp/accountIncomeExpense/delete', params });
|