From 3c4932bc77968e2aef7a3f7dcba0ada0af4151e6 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 7 Feb 2024 20:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20ERP=EF=BC=9A=E5=A2=9E=E5=8A=A0=20ER?= =?UTF-8?q?P=20=E8=B0=83=E6=8B=A8=E5=8D=95=E7=9A=84=E5=AE=9E=E7=8E=B0=2010?= =?UTF-8?q?0%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/erp/stock/move/index.ts | 61 +++ src/views/erp/stock/in/index.vue | 1 + src/views/erp/stock/move/StockMoveForm.vue | 148 ++++++++ .../move/components/StockMoveItemForm.vue | 294 +++++++++++++++ src/views/erp/stock/move/index.vue | 350 ++++++++++++++++++ src/views/erp/stock/out/StockOutForm.vue | 1 - src/views/erp/stock/out/index.vue | 1 + 7 files changed, 855 insertions(+), 1 deletion(-) create mode 100644 src/api/erp/stock/move/index.ts create mode 100644 src/views/erp/stock/move/StockMoveForm.vue create mode 100644 src/views/erp/stock/move/components/StockMoveItemForm.vue create mode 100644 src/views/erp/stock/move/index.vue diff --git a/src/api/erp/stock/move/index.ts b/src/api/erp/stock/move/index.ts new file mode 100644 index 00000000..398568e0 --- /dev/null +++ b/src/api/erp/stock/move/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +// ERP 库存调度单 VO +export interface StockMoveVO { + id: number // 出库编号 + no: string // 出库单号 + outTime: Date // 出库时间 + totalCount: number // 合计数量 + totalPrice: number // 合计金额,单位:元 + status: number // 状态 + remark: string // 备注 +} + +// ERP 库存调度单 API +export const StockMoveApi = { + // 查询库存调度单分页 + getStockMovePage: async (params: any) => { + return await request.get({ url: `/erp/stock-move/page`, params }) + }, + + // 查询库存调度单详情 + getStockMove: async (id: number) => { + return await request.get({ url: `/erp/stock-move/get?id=` + id }) + }, + + // 新增库存调度单 + createStockMove: async (data: StockMoveVO) => { + return await request.post({ url: `/erp/stock-move/create`, data }) + }, + + // 修改库存调度单 + updateStockMove: async (data: StockMoveVO) => { + return await request.put({ url: `/erp/stock-move/update`, data }) + }, + + // 更新库存调度单的状态 + updateStockMoveStatus: async (id: number, status: number) => { + return await request.put({ + url: `/erp/stock-move/update-status`, + params: { + id, + status + } + }) + }, + + // 删除库存调度单 + deleteStockMove: async (ids: number[]) => { + return await request.delete({ + url: `/erp/stock-move/delete`, + params: { + ids: ids.join(',') + } + }) + }, + + // 导出库存调度单 Excel + exportStockMove: async (params) => { + return await request.download({ url: `/erp/stock-move/export-excel`, params }) + } +} diff --git a/src/views/erp/stock/in/index.vue b/src/views/erp/stock/in/index.vue index e5eb53cc..75fe8f38 100644 --- a/src/views/erp/stock/in/index.vue +++ b/src/views/erp/stock/in/index.vue @@ -192,6 +192,7 @@ type="primary" @click="openForm('update', scope.row.id)" v-hasPermi="['erp:stock-in:update']" + :disabled="scope.row.status === 20" > 编辑 diff --git a/src/views/erp/stock/move/StockMoveForm.vue b/src/views/erp/stock/move/StockMoveForm.vue new file mode 100644 index 00000000..105a9395 --- /dev/null +++ b/src/views/erp/stock/move/StockMoveForm.vue @@ -0,0 +1,148 @@ + + diff --git a/src/views/erp/stock/move/components/StockMoveItemForm.vue b/src/views/erp/stock/move/components/StockMoveItemForm.vue new file mode 100644 index 00000000..d9c5804e --- /dev/null +++ b/src/views/erp/stock/move/components/StockMoveItemForm.vue @@ -0,0 +1,294 @@ + + diff --git a/src/views/erp/stock/move/index.vue b/src/views/erp/stock/move/index.vue new file mode 100644 index 00000000..585bdb67 --- /dev/null +++ b/src/views/erp/stock/move/index.vue @@ -0,0 +1,350 @@ + + + diff --git a/src/views/erp/stock/out/StockOutForm.vue b/src/views/erp/stock/out/StockOutForm.vue index 888475c2..22e18be3 100644 --- a/src/views/erp/stock/out/StockOutForm.vue +++ b/src/views/erp/stock/out/StockOutForm.vue @@ -78,7 +78,6 @@