修改
This commit is contained in:
56
web-vue/packages/erp/api/erp/account.ts
Normal file
56
web-vue/packages/erp/api/erp/account.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* 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';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface ErpAccount extends BasicModel<ErpAccount> {
|
||||
createTime?: string; // 记录时间
|
||||
accountId?: string; // 账户标识
|
||||
accountName: string; // 账户名称
|
||||
accountType: string; // 账户类型
|
||||
accountCode: string; // 账户卡号
|
||||
initialBalance: number; // 初始余额
|
||||
currentBalance: number; // 当前余额
|
||||
isActive: string; // 是否激活
|
||||
updateTime?: string; // 更新时间
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const erpAccountList = (params?: ErpAccount | any) =>
|
||||
defHttp.get<ErpAccount>({ url: adminPath + '/erp/account/list', params });
|
||||
|
||||
export const erpAccountListData = (params?: ErpAccount | any) =>
|
||||
defHttp.post<Page<ErpAccount>>({ url: adminPath + '/erp/account/listData', params });
|
||||
|
||||
export const erpAccountForm = (params?: ErpAccount | any) =>
|
||||
defHttp.get<ErpAccount>({ url: adminPath + '/erp/account/form', params });
|
||||
|
||||
export const erpAccountSave = (params?: any, data?: ErpAccount | any) =>
|
||||
defHttp.postJson<ErpAccount>({ url: adminPath + '/erp/account/save', params, data });
|
||||
|
||||
export const erpAccountImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/erp/account/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const erpAccountDelete = (params?: ErpAccount | any) =>
|
||||
defHttp.get<ErpAccount>({ url: adminPath + '/erp/account/delete', params });
|
||||
58
web-vue/packages/erp/api/erp/category.ts
Normal file
58
web-vue/packages/erp/api/erp/category.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface ErpCategory extends BasicModel<ErpCategory> {
|
||||
createTime: string; // 记录时间
|
||||
categoryId: string; // 分类标识
|
||||
categoryName: string; // 分类名称
|
||||
categoryType: string; // 分类类型
|
||||
parentId?: string; // 父级分类
|
||||
sortOrder: string; // 排序序号
|
||||
isActive: string; // 是否启用
|
||||
updateTime?: string; // 更新时间
|
||||
ftenantId: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const erpCategoryList = (params?: ErpCategory | any) =>
|
||||
defHttp.get<ErpCategory>({ url: adminPath + '/erp/category/list', params });
|
||||
|
||||
export const erpCategoryListAll = (params?: ErpCategory | any) =>
|
||||
defHttp.get<ErpCategory[]>({ url: adminPath + '/erp/category/listAll', params });
|
||||
|
||||
export const erpCategoryListData = (params?: ErpCategory | any) =>
|
||||
defHttp.post<Page<ErpCategory>>({ url: adminPath + '/erp/category/listData', params });
|
||||
|
||||
export const erpCategoryForm = (params?: ErpCategory | any) =>
|
||||
defHttp.get<ErpCategory>({ url: adminPath + '/erp/category/form', params });
|
||||
|
||||
export const erpCategorySave = (params?: any, data?: ErpCategory | any) =>
|
||||
defHttp.postJson<ErpCategory>({ url: adminPath + '/erp/category/save', params, data });
|
||||
|
||||
export const erpCategoryImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/erp/category/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const erpCategoryDelete = (params?: ErpCategory | any) =>
|
||||
defHttp.get<ErpCategory>({ url: adminPath + '/erp/category/delete', params });
|
||||
54
web-vue/packages/erp/api/erp/expense.ts
Normal file
54
web-vue/packages/erp/api/erp/expense.ts
Normal file
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* 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';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface ErpExpense extends BasicModel<ErpExpense> {
|
||||
createTime?: string; // 记录时间
|
||||
expenseId?: string; // 支出ID
|
||||
zflowId: string; // 关联流水ID
|
||||
accountId: string; // 支出账户ID
|
||||
categoryId: string; // 支出分类ID
|
||||
amount: number; // 交易金额
|
||||
updateTime?: string; // 更新时间
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const erpExpenseList = (params?: ErpExpense | any) =>
|
||||
defHttp.get<ErpExpense>({ url: adminPath + '/erp/expense/list', params });
|
||||
|
||||
export const erpExpenseListData = (params?: ErpExpense | any) =>
|
||||
defHttp.post<Page<ErpExpense>>({ url: adminPath + '/erp/expense/listData', params });
|
||||
|
||||
export const erpExpenseForm = (params?: ErpExpense | any) =>
|
||||
defHttp.get<ErpExpense>({ url: adminPath + '/erp/expense/form', params });
|
||||
|
||||
export const erpExpenseSave = (params?: any, data?: ErpExpense | any) =>
|
||||
defHttp.postJson<ErpExpense>({ url: adminPath + '/erp/expense/save', params, data });
|
||||
|
||||
export const erpExpenseImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/erp/expense/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const erpExpenseDelete = (params?: ErpExpense | any) =>
|
||||
defHttp.get<ErpExpense>({ url: adminPath + '/erp/expense/delete', params });
|
||||
54
web-vue/packages/erp/api/erp/income.ts
Normal file
54
web-vue/packages/erp/api/erp/income.ts
Normal file
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* 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';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface ErpIncome extends BasicModel<ErpIncome> {
|
||||
createTime?: string; // 记录时间
|
||||
incomeId?: string; // 收入ID
|
||||
sflowId: string; // 关联流水ID
|
||||
accountId: string; // 收入账户ID
|
||||
categoryId: string; // 收入分类ID
|
||||
amount: number; // 交易金额(正数)
|
||||
updateTime?: string; // 更新时间
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const erpIncomeList = (params?: ErpIncome | any) =>
|
||||
defHttp.get<ErpIncome>({ url: adminPath + '/erp/income/list', params });
|
||||
|
||||
export const erpIncomeListData = (params?: ErpIncome | any) =>
|
||||
defHttp.post<Page<ErpIncome>>({ url: adminPath + '/erp/income/listData', params });
|
||||
|
||||
export const erpIncomeForm = (params?: ErpIncome | any) =>
|
||||
defHttp.get<ErpIncome>({ url: adminPath + '/erp/income/form', params });
|
||||
|
||||
export const erpIncomeSave = (params?: any, data?: ErpIncome | any) =>
|
||||
defHttp.postJson<ErpIncome>({ url: adminPath + '/erp/income/save', params, data });
|
||||
|
||||
export const erpIncomeImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/erp/income/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const erpIncomeDelete = (params?: ErpIncome | any) =>
|
||||
defHttp.get<ErpIncome>({ url: adminPath + '/erp/income/delete', params });
|
||||
61
web-vue/packages/erp/api/erp/transactionFlow.ts
Normal file
61
web-vue/packages/erp/api/erp/transactionFlow.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* 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';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface ErpTransactionFlow extends BasicModel<ErpTransactionFlow> {
|
||||
createTime?: string; // 记录时间
|
||||
flowId?: string; // 流水编号
|
||||
flowName: string; // 交易名称
|
||||
transactionType: string; // 交易类型
|
||||
amount: number; // 交易金额
|
||||
transactionTime?: string; // 交易时间
|
||||
accountId: string; // 交易账户
|
||||
categoryId: string; // 交易分类
|
||||
remark?: string; // 交易备注
|
||||
isFinish?: string; // 是否记账
|
||||
updateTime?: string; // 更新时间
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const erpTransactionFlowList = (params?: ErpTransactionFlow | any) =>
|
||||
defHttp.get<ErpTransactionFlow>({ url: adminPath + '/erp/transactionFlow/list', params });
|
||||
|
||||
export const erpTransactionFlowListData = (params?: ErpTransactionFlow | any) =>
|
||||
defHttp.post<Page<ErpTransactionFlow>>({ url: adminPath + '/erp/transactionFlow/listData', params });
|
||||
|
||||
export const erpTransactionFlowForm = (params?: ErpTransactionFlow | any) =>
|
||||
defHttp.get<ErpTransactionFlow>({ url: adminPath + '/erp/transactionFlow/form', params });
|
||||
|
||||
export const erpTransactionFlowSave = (params?: any, data?: ErpTransactionFlow | any) =>
|
||||
defHttp.postJson<ErpTransactionFlow>({ url: adminPath + '/erp/transactionFlow/save', params, data });
|
||||
|
||||
export const erpTransactionFlowImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/erp/transactionFlow/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const erpTransactionFlowDelete = (params?: ErpTransactionFlow | any) =>
|
||||
defHttp.get<ErpTransactionFlow>({ url: adminPath + '/erp/transactionFlow/delete', params });
|
||||
|
||||
export const erpTransactionFlowFinish = (params?: ErpTransactionFlow | any) =>
|
||||
defHttp.get<ErpTransactionFlow>({ url: adminPath + '/erp/transactionFlow/finish', params });
|
||||
Reference in New Issue
Block a user