From ee35056767a554ca2a82d8eccde2324fbfef179b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 12 Feb 2024 20:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20ERP=EF=BC=9A=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E9=80=80=E8=B4=A7=2050%=EF=BC=88=E5=88=97=E8=A1=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/erp/purchase/return/index.ts | 62 +++ .../erp/purchase/return/SaleReturnForm.vue | 361 +++++++++++++++ .../return/components/SaleReturnItemForm.vue | 300 ++++++++++++ src/views/erp/purchase/return/index.vue | 432 ++++++++++++++++++ 4 files changed, 1155 insertions(+) create mode 100644 src/api/erp/purchase/return/index.ts create mode 100644 src/views/erp/purchase/return/SaleReturnForm.vue create mode 100644 src/views/erp/purchase/return/components/SaleReturnItemForm.vue create mode 100644 src/views/erp/purchase/return/index.vue diff --git a/src/api/erp/purchase/return/index.ts b/src/api/erp/purchase/return/index.ts new file mode 100644 index 00000000..182e04ee --- /dev/null +++ b/src/api/erp/purchase/return/index.ts @@ -0,0 +1,62 @@ +import request from '@/config/axios' + +// ERP 采购退货 VO +export interface PurchaseReturnVO { + id: number // 采购退货编号 + no: string // 采购退货号 + customerId: number // 客户编号 + returnTime: Date // 退货时间 + totalCount: number // 合计数量 + totalPrice: number // 合计金额,单位:元 + status: number // 状态 + remark: string // 备注 +} + +// ERP 采购退货 API +export const PurchaseReturnApi = { + // 查询采购退货分页 + getPurchaseReturnPage: async (params: any) => { + return await request.get({ url: `/erp/purchase-return/page`, params }) + }, + + // 查询采购退货详情 + getPurchaseReturn: async (id: number) => { + return await request.get({ url: `/erp/purchase-return/get?id=` + id }) + }, + + // 新增采购退货 + createPurchaseReturn: async (data: PurchaseReturnVO) => { + return await request.post({ url: `/erp/purchase-return/create`, data }) + }, + + // 修改采购退货 + updatePurchaseReturn: async (data: PurchaseReturnVO) => { + return await request.put({ url: `/erp/purchase-return/update`, data }) + }, + + // 更新采购退货的状态 + updatePurchaseReturnStatus: async (id: number, status: number) => { + return await request.put({ + url: `/erp/purchase-return/update-status`, + params: { + id, + status + } + }) + }, + + // 删除采购退货 + deletePurchaseReturn: async (ids: number[]) => { + return await request.delete({ + url: `/erp/purchase-return/delete`, + params: { + ids: ids.join(',') + } + }) + }, + + // 导出采购退货 Excel + exportPurchaseReturn: async (params: any) => { + return await request.download({ url: `/erp/purchase-return/export-excel`, params }) + } +} diff --git a/src/views/erp/purchase/return/SaleReturnForm.vue b/src/views/erp/purchase/return/SaleReturnForm.vue new file mode 100644 index 00000000..e1de0ef5 --- /dev/null +++ b/src/views/erp/purchase/return/SaleReturnForm.vue @@ -0,0 +1,361 @@ + + diff --git a/src/views/erp/purchase/return/components/SaleReturnItemForm.vue b/src/views/erp/purchase/return/components/SaleReturnItemForm.vue new file mode 100644 index 00000000..2d3e8c58 --- /dev/null +++ b/src/views/erp/purchase/return/components/SaleReturnItemForm.vue @@ -0,0 +1,300 @@ + + diff --git a/src/views/erp/purchase/return/index.vue b/src/views/erp/purchase/return/index.vue new file mode 100644 index 00000000..6d8bafe3 --- /dev/null +++ b/src/views/erp/purchase/return/index.vue @@ -0,0 +1,432 @@ + + +