From d92404f351cca80174d44a843dfdd97e57360752 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 6 Feb 2024 00:56:43 +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=E5=85=B6=E5=AE=83=E5=85=A5=E5=BA=93=E7=9A=84=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=2020%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/erp/stock/in/index.ts | 54 ++++ src/views/erp/stock/in/StockInForm.vue | 168 ++++++++++++ .../stock/in/components/StockInItemForm.vue | 163 ++++++++++++ src/views/erp/stock/in/index.vue | 247 ++++++++++++++++++ 4 files changed, 632 insertions(+) create mode 100644 src/api/erp/stock/in/index.ts create mode 100644 src/views/erp/stock/in/StockInForm.vue create mode 100644 src/views/erp/stock/in/components/StockInItemForm.vue create mode 100644 src/views/erp/stock/in/index.vue diff --git a/src/api/erp/stock/in/index.ts b/src/api/erp/stock/in/index.ts new file mode 100644 index 00000000..fc989c7d --- /dev/null +++ b/src/api/erp/stock/in/index.ts @@ -0,0 +1,54 @@ +import request from '@/config/axios' + +// ERP 其它入库单 VO +export interface StockInVO { + id: number // 入库编号 + no: string // 入库单号 + supplierId: number // 供应商编号 + inTime: Date // 入库时间 + totalCount: number // 合计数量 + totalPrice: number // 合计金额,单位:元 + status: number // 状态 + remark: string // 备注 +} + +// TODO 芋艿:稍后清理字段 +// ERP 其它入库单 API +export const StockInApi = { + // 查询ERP 其它入库单分页 + getStockInPage: async (params: any) => { + return await request.get({ url: `/erp/stock-in/page`, params }) + }, + + // 查询ERP 其它入库单详情 + getStockIn: async (id: number) => { + return await request.get({ url: `/erp/stock-in/get?id=` + id }) + }, + + // 新增ERP 其它入库单 + createStockIn: async (data: StockInVO) => { + return await request.post({ url: `/erp/stock-in/create`, data }) + }, + + // 修改ERP 其它入库单 + updateStockIn: async (data: StockInVO) => { + return await request.put({ url: `/erp/stock-in/update`, data }) + }, + + // 删除ERP 其它入库单 + deleteStockIn: async (id: number) => { + return await request.delete({ url: `/erp/stock-in/delete?id=` + id }) + }, + + // 导出ERP 其它入库单 Excel + exportStockIn: async (params) => { + return await request.download({ url: `/erp/stock-in/export-excel`, params }) + }, + + // ==================== 子表(ERP 其它入库单项) ==================== + + // 获得ERP 其它入库单项列表 + getStockInItemListByInId: async (inId) => { + return await request.get({ url: `/erp/stock-in/stock-in-item/list-by-in-id?inId=` + inId }) + } +} diff --git a/src/views/erp/stock/in/StockInForm.vue b/src/views/erp/stock/in/StockInForm.vue new file mode 100644 index 00000000..fe9cb68f --- /dev/null +++ b/src/views/erp/stock/in/StockInForm.vue @@ -0,0 +1,168 @@ + + diff --git a/src/views/erp/stock/in/components/StockInItemForm.vue b/src/views/erp/stock/in/components/StockInItemForm.vue new file mode 100644 index 00000000..b3821123 --- /dev/null +++ b/src/views/erp/stock/in/components/StockInItemForm.vue @@ -0,0 +1,163 @@ + + diff --git a/src/views/erp/stock/in/index.vue b/src/views/erp/stock/in/index.vue new file mode 100644 index 00000000..66ac31f9 --- /dev/null +++ b/src/views/erp/stock/in/index.vue @@ -0,0 +1,247 @@ + + +