From b25d9c0f0989ce66cf32a34068f7c966abdd0692 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 10 Feb 2024 08:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20ERP=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=BB=93=E7=AE=97=E8=B4=A6=E6=88=B7=20100%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/erp/finance/account/index.ts | 56 +++++ src/views/erp/finance/account/AccountForm.vue | 124 ++++++++++ src/views/erp/finance/account/index.vue | 230 ++++++++++++++++++ src/views/erp/sale/order/SaleOrderForm.vue | 17 +- .../order/components/SaleOrderItemForm.vue | 2 +- src/views/erp/sale/order/index.vue | 2 +- src/views/erp/stock/check/index.vue | 2 +- src/views/erp/stock/in/index.vue | 2 +- src/views/erp/stock/move/index.vue | 2 +- src/views/erp/stock/out/index.vue | 2 +- 10 files changed, 432 insertions(+), 7 deletions(-) create mode 100644 src/api/erp/finance/account/index.ts create mode 100644 src/views/erp/finance/account/AccountForm.vue create mode 100644 src/views/erp/finance/account/index.vue diff --git a/src/api/erp/finance/account/index.ts b/src/api/erp/finance/account/index.ts new file mode 100644 index 00000000..85b90080 --- /dev/null +++ b/src/api/erp/finance/account/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +// ERP 结算账户 VO +export interface AccountVO { + id: number // 结算账户编号 + no: string // 账户编码 + remark: string // 备注 + status: number // 开启状态 + sort: number // 排序 + defaultStatus: boolean // 是否默认 + name: string // 账户名称 +} + +// ERP 结算账户 API +export const AccountApi = { + // 查询结算账户分页 + getAccountPage: async (params: any) => { + return await request.get({ url: `/erp/account/page`, params }) + }, + + // 查询结算账户详情 + getAccount: async (id: number) => { + return await request.get({ url: `/erp/account/get?id=` + id }) + }, + + // 新增结算账户 + createAccount: async (data: AccountVO) => { + return await request.post({ url: `/erp/account/create`, data }) + }, + + // 修改结算账户 + updateAccount: async (data: AccountVO) => { + return await request.put({ url: `/erp/account/update`, data }) + }, + + // 修改结算账户默认状态 + updateAccountDefaultStatus: async (id: number, defaultStatus: boolean) => { + return await request.put({ + url: `/erp/account/update-default-status`, + params: { + id, + defaultStatus + } + }) + }, + + // 删除结算账户 + deleteAccount: async (id: number) => { + return await request.delete({ url: `/erp/account/delete?id=` + id }) + }, + + // 导出结算账户 Excel + exportAccount: async (params: any) => { + return await request.download({ url: `/erp/account/export-excel`, params }) + } +} diff --git a/src/views/erp/finance/account/AccountForm.vue b/src/views/erp/finance/account/AccountForm.vue new file mode 100644 index 00000000..2f2e6f40 --- /dev/null +++ b/src/views/erp/finance/account/AccountForm.vue @@ -0,0 +1,124 @@ + + diff --git a/src/views/erp/finance/account/index.vue b/src/views/erp/finance/account/index.vue new file mode 100644 index 00000000..06578a22 --- /dev/null +++ b/src/views/erp/finance/account/index.vue @@ -0,0 +1,230 @@ + + + diff --git a/src/views/erp/sale/order/SaleOrderForm.vue b/src/views/erp/sale/order/SaleOrderForm.vue index 0f553aa3..16e7ffbd 100644 --- a/src/views/erp/sale/order/SaleOrderForm.vue +++ b/src/views/erp/sale/order/SaleOrderForm.vue @@ -15,7 +15,7 @@ - + + + + + +