From c18b24e6115f7d75f2c9b93d936ae27006df2f87 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 16 Feb 2024 08:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20ERP=EF=BC=9A=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=20receipt=20=E6=94=B6=E6=AC=BE=E5=8D=95=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91=20100%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/erp/finance/receipt/index.ts | 61 +++ .../finance/receipt/FinanceReceiptForm.vue | 278 +++++++++++++ .../components/FinanceReceiptItemForm.vue | 176 ++++++++ src/views/erp/finance/receipt/index.vue | 389 ++++++++++++++++++ .../PurchaseReturnRefundEnableList.vue | 12 +- .../components/SaleOutReceiptEnableList.vue | 199 +++++++++ .../components/SaleReturnRefundEnableList.vue | 199 +++++++++ 7 files changed, 1308 insertions(+), 6 deletions(-) create mode 100644 src/api/erp/finance/receipt/index.ts create mode 100644 src/views/erp/finance/receipt/FinanceReceiptForm.vue create mode 100644 src/views/erp/finance/receipt/components/FinanceReceiptItemForm.vue create mode 100644 src/views/erp/finance/receipt/index.vue create mode 100644 src/views/erp/sale/out/components/SaleOutReceiptEnableList.vue create mode 100644 src/views/erp/sale/return/components/SaleReturnRefundEnableList.vue diff --git a/src/api/erp/finance/receipt/index.ts b/src/api/erp/finance/receipt/index.ts new file mode 100644 index 00000000..4de28ca7 --- /dev/null +++ b/src/api/erp/finance/receipt/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +// ERP 收款单 VO +export interface FinanceReceiptVO { + id: number // 收款单编号 + no: string // 收款单号 + customerId: number // 客户编号 + receiptTime: Date // 收款时间 + totalPrice: number // 合计金额,单位:元 + status: number // 状态 + remark: string // 备注 +} + +// ERP 收款单 API +export const FinanceReceiptApi = { + // 查询收款单分页 + getFinanceReceiptPage: async (params: any) => { + return await request.get({ url: `/erp/finance-receipt/page`, params }) + }, + + // 查询收款单详情 + getFinanceReceipt: async (id: number) => { + return await request.get({ url: `/erp/finance-receipt/get?id=` + id }) + }, + + // 新增收款单 + createFinanceReceipt: async (data: FinanceReceiptVO) => { + return await request.post({ url: `/erp/finance-receipt/create`, data }) + }, + + // 修改收款单 + updateFinanceReceipt: async (data: FinanceReceiptVO) => { + return await request.put({ url: `/erp/finance-receipt/update`, data }) + }, + + // 更新收款单的状态 + updateFinanceReceiptStatus: async (id: number, status: number) => { + return await request.put({ + url: `/erp/finance-receipt/update-status`, + params: { + id, + status + } + }) + }, + + // 删除收款单 + deleteFinanceReceipt: async (ids: number[]) => { + return await request.delete({ + url: `/erp/finance-receipt/delete`, + params: { + ids: ids.join(',') + } + }) + }, + + // 导出收款单 Excel + exportFinanceReceipt: async (params: any) => { + return await request.download({ url: `/erp/finance-receipt/export-excel`, params }) + } +} diff --git a/src/views/erp/finance/receipt/FinanceReceiptForm.vue b/src/views/erp/finance/receipt/FinanceReceiptForm.vue new file mode 100644 index 00000000..96826eb2 --- /dev/null +++ b/src/views/erp/finance/receipt/FinanceReceiptForm.vue @@ -0,0 +1,278 @@ + + diff --git a/src/views/erp/finance/receipt/components/FinanceReceiptItemForm.vue b/src/views/erp/finance/receipt/components/FinanceReceiptItemForm.vue new file mode 100644 index 00000000..1a48b418 --- /dev/null +++ b/src/views/erp/finance/receipt/components/FinanceReceiptItemForm.vue @@ -0,0 +1,176 @@ + + diff --git a/src/views/erp/finance/receipt/index.vue b/src/views/erp/finance/receipt/index.vue new file mode 100644 index 00000000..c85b398b --- /dev/null +++ b/src/views/erp/finance/receipt/index.vue @@ -0,0 +1,389 @@ + + + diff --git a/src/views/erp/purchase/return/components/PurchaseReturnRefundEnableList.vue b/src/views/erp/purchase/return/components/PurchaseReturnRefundEnableList.vue index a26d9014..a95749ea 100644 --- a/src/views/erp/purchase/return/components/PurchaseReturnRefundEnableList.vue +++ b/src/views/erp/purchase/return/components/PurchaseReturnRefundEnableList.vue @@ -43,7 +43,7 @@ ([]) // 产品列表 /** 选中操作 */ -const selectionList = ref([]) -const handleSelectionChange = (rows: PurchaseInVO[]) => { +const selectionList = ref([]) +const handleSelectionChange = (rows: SaleReturnVO[]) => { selectionList.value = rows } @@ -162,7 +162,7 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗 /** 提交选择 */ const emits = defineEmits<{ - (e: 'success', value: PurchaseInVO[]): void + (e: 'success', value: SaleReturnVO[]): void }>() const submitForm = () => { try { diff --git a/src/views/erp/sale/out/components/SaleOutReceiptEnableList.vue b/src/views/erp/sale/out/components/SaleOutReceiptEnableList.vue new file mode 100644 index 00000000..0c4a21d1 --- /dev/null +++ b/src/views/erp/sale/out/components/SaleOutReceiptEnableList.vue @@ -0,0 +1,199 @@ + + + diff --git a/src/views/erp/sale/return/components/SaleReturnRefundEnableList.vue b/src/views/erp/sale/return/components/SaleReturnRefundEnableList.vue new file mode 100644 index 00000000..dc875e69 --- /dev/null +++ b/src/views/erp/sale/return/components/SaleReturnRefundEnableList.vue @@ -0,0 +1,199 @@ + + +