From 793554e6ff5cf62b6d4cbb8e9bf1476dca50e0e9 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 21 Dec 2023 11:39:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home/index.ts | 22 ++ src/views/Home/Index.vue | 12 +- src/views/Home/components/material.vue | 306 ++++++++++++++++++ src/views/Home/components/produce.vue | 305 +++++++++++++++++ src/views/Home/components/product.vue | 284 ++++++++++++++++ .../components/productWarehouseKeeper.vue | 172 ---------- .../Home/components/productionManager.vue | 162 ---------- src/views/Home/components/supplierIndex.vue | 267 +++++++++++---- src/views/Home/components/warehouseKeeper.vue | 192 ----------- 9 files changed, 1122 insertions(+), 600 deletions(-) create mode 100644 src/api/home/index.ts create mode 100644 src/views/Home/components/material.vue create mode 100644 src/views/Home/components/produce.vue create mode 100644 src/views/Home/components/product.vue delete mode 100644 src/views/Home/components/productWarehouseKeeper.vue delete mode 100644 src/views/Home/components/productionManager.vue delete mode 100644 src/views/Home/components/warehouseKeeper.vue diff --git a/src/api/home/index.ts b/src/api/home/index.ts new file mode 100644 index 000000000..aa8cb1388 --- /dev/null +++ b/src/api/home/index.ts @@ -0,0 +1,22 @@ +import request from '@/config/axios' + +// 供应商首页 +export const getSupplierData = async () => { + return await request.get({ url: `/wms/index/indexSupplier` }) +} + +// 原料管理员首页 +export const getMaterialData = async () => { + return await request.get({ url: `/wms/index/indexMaterial` }) +} + +// 生产管理员首页 +export const getProduceData = async () => { + return await request.get({ url: `/wms/index/indexProduce` }) +} + +// 成品管理员首页 +export const getProductData = async () => { + return await request.get({ url: `/wms/index/indexProduct` }) +} + diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 8c6be92e4..1cc81ac3a 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -1,14 +1,14 @@ diff --git a/src/views/Home/components/material.vue b/src/views/Home/components/material.vue new file mode 100644 index 000000000..fd8d5a2bf --- /dev/null +++ b/src/views/Home/components/material.vue @@ -0,0 +1,306 @@ + + + + diff --git a/src/views/Home/components/produce.vue b/src/views/Home/components/produce.vue new file mode 100644 index 000000000..8046930a2 --- /dev/null +++ b/src/views/Home/components/produce.vue @@ -0,0 +1,305 @@ + + + + diff --git a/src/views/Home/components/product.vue b/src/views/Home/components/product.vue new file mode 100644 index 000000000..560e3a990 --- /dev/null +++ b/src/views/Home/components/product.vue @@ -0,0 +1,284 @@ + + + + diff --git a/src/views/Home/components/productWarehouseKeeper.vue b/src/views/Home/components/productWarehouseKeeper.vue deleted file mode 100644 index 2b6938d2c..000000000 --- a/src/views/Home/components/productWarehouseKeeper.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - diff --git a/src/views/Home/components/productionManager.vue b/src/views/Home/components/productionManager.vue deleted file mode 100644 index 13900e6a5..000000000 --- a/src/views/Home/components/productionManager.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - diff --git a/src/views/Home/components/supplierIndex.vue b/src/views/Home/components/supplierIndex.vue index 42687dc19..7bc14a644 100644 --- a/src/views/Home/components/supplierIndex.vue +++ b/src/views/Home/components/supplierIndex.vue @@ -1,3 +1,4 @@ +