From a89bdda1c2fea0c2677ecbf8bf215bb2cb70cf7d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 12 Feb 2024 08:56: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=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=2050%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 600892b11248ec0e03df1d580260067bd24f26b7) --- src/api/erp/purchase/order/index.ts | 64 +++ .../erp/purchase/order/SaleOrderForm.vue | 289 +++++++++++++ .../order/components/SaleOrderItemForm.vue | 271 ++++++++++++ .../components/SaleOrderOutEnableList.vue | 206 +++++++++ .../components/SaleOrderReturnEnableList.vue | 212 +++++++++ src/views/erp/purchase/order/index.vue | 405 ++++++++++++++++++ src/views/erp/sale/order/index.vue | 19 +- 7 files changed, 1457 insertions(+), 9 deletions(-) create mode 100644 src/api/erp/purchase/order/index.ts create mode 100644 src/views/erp/purchase/order/SaleOrderForm.vue create mode 100644 src/views/erp/purchase/order/components/SaleOrderItemForm.vue create mode 100644 src/views/erp/purchase/order/components/SaleOrderOutEnableList.vue create mode 100644 src/views/erp/purchase/order/components/SaleOrderReturnEnableList.vue create mode 100644 src/views/erp/purchase/order/index.vue diff --git a/src/api/erp/purchase/order/index.ts b/src/api/erp/purchase/order/index.ts new file mode 100644 index 00000000..ad3222fa --- /dev/null +++ b/src/api/erp/purchase/order/index.ts @@ -0,0 +1,64 @@ +import request from '@/config/axios' + +// ERP 采购订单 VO +export interface PurchaseOrderVO { + id: number // 订单工单编号 + no: string // 采购订单号 + customerId: number // 客户编号 + orderTime: Date // 订单时间 + totalCount: number // 合计数量 + totalPrice: number // 合计金额,单位:元 + status: number // 状态 + remark: string // 备注 + outCount: number // 采购出库数量 + returnCount: number // 采购退货数量 +} + +// ERP 采购订单 API +export const PurchaseOrderApi = { + // 查询采购订单分页 + getPurchaseOrderPage: async (params: any) => { + return await request.get({ url: `/erp/purchase-order/page`, params }) + }, + + // 查询采购订单详情 + getPurchaseOrder: async (id: number) => { + return await request.get({ url: `/erp/purchase-order/get?id=` + id }) + }, + + // 新增采购订单 + createPurchaseOrder: async (data: PurchaseOrderVO) => { + return await request.post({ url: `/erp/purchase-order/create`, data }) + }, + + // 修改采购订单 + updatePurchaseOrder: async (data: PurchaseOrderVO) => { + return await request.put({ url: `/erp/purchase-order/update`, data }) + }, + + // 更新采购订单的状态 + updatePurchaseOrderStatus: async (id: number, status: number) => { + return await request.put({ + url: `/erp/purchase-order/update-status`, + params: { + id, + status + } + }) + }, + + // 删除采购订单 + deletePurchaseOrder: async (ids: number[]) => { + return await request.delete({ + url: `/erp/purchase-order/delete`, + params: { + ids: ids.join(',') + } + }) + }, + + // 导出采购订单 Excel + exportPurchaseOrder: async (params: any) => { + return await request.download({ url: `/erp/purchase-order/export-excel`, params }) + } +} diff --git a/src/views/erp/purchase/order/SaleOrderForm.vue b/src/views/erp/purchase/order/SaleOrderForm.vue new file mode 100644 index 00000000..30b2b302 --- /dev/null +++ b/src/views/erp/purchase/order/SaleOrderForm.vue @@ -0,0 +1,289 @@ + + diff --git a/src/views/erp/purchase/order/components/SaleOrderItemForm.vue b/src/views/erp/purchase/order/components/SaleOrderItemForm.vue new file mode 100644 index 00000000..b94097a9 --- /dev/null +++ b/src/views/erp/purchase/order/components/SaleOrderItemForm.vue @@ -0,0 +1,271 @@ + + diff --git a/src/views/erp/purchase/order/components/SaleOrderOutEnableList.vue b/src/views/erp/purchase/order/components/SaleOrderOutEnableList.vue new file mode 100644 index 00000000..b8fcd561 --- /dev/null +++ b/src/views/erp/purchase/order/components/SaleOrderOutEnableList.vue @@ -0,0 +1,206 @@ + + + + diff --git a/src/views/erp/purchase/order/components/SaleOrderReturnEnableList.vue b/src/views/erp/purchase/order/components/SaleOrderReturnEnableList.vue new file mode 100644 index 00000000..c8037b86 --- /dev/null +++ b/src/views/erp/purchase/order/components/SaleOrderReturnEnableList.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/erp/purchase/order/index.vue b/src/views/erp/purchase/order/index.vue new file mode 100644 index 00000000..b7bad791 --- /dev/null +++ b/src/views/erp/purchase/order/index.vue @@ -0,0 +1,405 @@ + + + diff --git a/src/views/erp/sale/order/index.vue b/src/views/erp/sale/order/index.vue index 01e977d6..e260896f 100644 --- a/src/views/erp/sale/order/index.vue +++ b/src/views/erp/sale/order/index.vue @@ -95,21 +95,21 @@ class="!w-240px" /> - + - - - + + + - +