From 0319056e4b8c8949c418da6fb9f1a392fad90af8 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 8 Feb 2024 08:36: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=E7=9B=98=E7=82=B9=E5=8D=95=E7=9A=84=E5=AE=9E=E7=8E=B0=2050?= =?UTF-8?q?%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/erp/stock/check/index.ts | 61 +++ src/views/erp/stock/check/StockCheckForm.vue | 148 ++++++++ .../check/components/StockCheckItemForm.vue | 274 ++++++++++++++ src/views/erp/stock/check/index.vue | 350 ++++++++++++++++++ src/views/erp/stock/move/StockMoveForm.vue | 2 +- src/views/erp/stock/move/index.vue | 10 +- 6 files changed, 839 insertions(+), 6 deletions(-) create mode 100644 src/api/erp/stock/check/index.ts create mode 100644 src/views/erp/stock/check/StockCheckForm.vue create mode 100644 src/views/erp/stock/check/components/StockCheckItemForm.vue create mode 100644 src/views/erp/stock/check/index.vue diff --git a/src/api/erp/stock/check/index.ts b/src/api/erp/stock/check/index.ts new file mode 100644 index 00000000..4a3e6534 --- /dev/null +++ b/src/api/erp/stock/check/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +// ERP 库存盘点单 VO +export interface StockCheckVO { + id: number // 出库编号 + no: string // 出库单号 + outTime: Date // 出库时间 + totalCount: number // 合计数量 + totalPrice: number // 合计金额,单位:元 + status: number // 状态 + remark: string // 备注 +} + +// ERP 库存盘点单 API +export const StockCheckApi = { + // 查询库存盘点单分页 + getStockCheckPage: async (params: any) => { + return await request.get({ url: `/erp/stock-check/page`, params }) + }, + + // 查询库存盘点单详情 + getStockCheck: async (id: number) => { + return await request.get({ url: `/erp/stock-check/get?id=` + id }) + }, + + // 新增库存盘点单 + createStockCheck: async (data: StockCheckVO) => { + return await request.post({ url: `/erp/stock-check/create`, data }) + }, + + // 修改库存盘点单 + updateStockCheck: async (data: StockCheckVO) => { + return await request.put({ url: `/erp/stock-check/update`, data }) + }, + + // 更新库存盘点单的状态 + updateStockCheckStatus: async (id: number, status: number) => { + return await request.put({ + url: `/erp/stock-check/update-status`, + params: { + id, + status + } + }) + }, + + // 删除库存盘点单 + deleteStockCheck: async (ids: number[]) => { + return await request.delete({ + url: `/erp/stock-check/delete`, + params: { + ids: ids.join(',') + } + }) + }, + + // 导出库存盘点单 Excel + exportStockCheck: async (params) => { + return await request.download({ url: `/erp/stock-check/export-excel`, params }) + } +} diff --git a/src/views/erp/stock/check/StockCheckForm.vue b/src/views/erp/stock/check/StockCheckForm.vue new file mode 100644 index 00000000..9e7f6739 --- /dev/null +++ b/src/views/erp/stock/check/StockCheckForm.vue @@ -0,0 +1,148 @@ + + diff --git a/src/views/erp/stock/check/components/StockCheckItemForm.vue b/src/views/erp/stock/check/components/StockCheckItemForm.vue new file mode 100644 index 00000000..72123c36 --- /dev/null +++ b/src/views/erp/stock/check/components/StockCheckItemForm.vue @@ -0,0 +1,274 @@ + + diff --git a/src/views/erp/stock/check/index.vue b/src/views/erp/stock/check/index.vue new file mode 100644 index 00000000..c6410489 --- /dev/null +++ b/src/views/erp/stock/check/index.vue @@ -0,0 +1,350 @@ + + + diff --git a/src/views/erp/stock/move/StockMoveForm.vue b/src/views/erp/stock/move/StockMoveForm.vue index 105a9395..df942c63 100644 --- a/src/views/erp/stock/move/StockMoveForm.vue +++ b/src/views/erp/stock/move/StockMoveForm.vue @@ -62,7 +62,7 @@ import { StockMoveApi, StockMoveVO } from '@/api/erp/stock/move' import StockMoveItemForm from './components/StockMoveItemForm.vue' -/** ERP 其它调度单表单 */ +/** ERP 库存调度单表单 */ defineOptions({ name: 'StockMoveForm' }) const { t } = useI18n() // 国际化 diff --git a/src/views/erp/stock/move/index.vue b/src/views/erp/stock/move/index.vue index 585bdb67..163a23fc 100644 --- a/src/views/erp/stock/move/index.vue +++ b/src/views/erp/stock/move/index.vue @@ -43,9 +43,9 @@ class="!w-240px" /> - + { // 发起导出 exportLoading.value = true const data = await StockMoveApi.exportStockMove(queryParams) - download.excel(data, '其它调度单.xls') + download.excel(data, '库存调度单.xls') } catch { } finally { exportLoading.value = false