diff --git a/src/api/home/index.ts b/src/api/home/index.ts index b6e777a..829e109 100644 --- a/src/api/home/index.ts +++ b/src/api/home/index.ts @@ -1,22 +1,8 @@ import request from '@/config/axios' -// 供应商首页 -// export const getSupplierData = async () => { -// return await request.get({ url: `/wms/index/indexSupplier` }) -// } +// 首页获取设备停机状态/设备总数/月设备保养完成率/月汇总停机时间 +export const getData = async () => { + return await request.get({ url: `http://localhost:12080/admin-api/eam/home-page/select` }) +} -// // 原料管理员首页 -// 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/assets/imgs/icon1.png b/src/assets/imgs/icon1.png index 8fb718a..e9cf7d1 100644 Binary files a/src/assets/imgs/icon1.png and b/src/assets/imgs/icon1.png differ diff --git a/src/assets/imgs/icon2.png b/src/assets/imgs/icon2.png index 9f8ed61..846a540 100644 Binary files a/src/assets/imgs/icon2.png and b/src/assets/imgs/icon2.png differ diff --git a/src/views/home/Index copy.vue b/src/views/home/Index copy.vue deleted file mode 100644 index 121ec6a..0000000 --- a/src/views/home/Index copy.vue +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - - - - - - {{ t('workplace.welcome') }} {{ username }} {{ t('workplace.happyDay') }} - - - {{ t('workplace.toady') }},20℃ - 32℃! - - - - - - - - {{ t('workplace.project') }} - - - - - {{ t('workplace.toDo') }} - - - - - {{ t('workplace.access') }} - - - - - - - - - - - - - - - {{ t('workplace.project') }} - {{ t('action.more') }} - - - - - - - - - {{ item.name }} - - {{ t(item.message) }} - - {{ item.personal }} - {{ formatTime(item.time, 'yyyy-MM-dd') }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ t('workplace.shortcutOperation') }} - - - - - - - - - {{ item.name }} - - - - - - - - - - {{ t('workplace.notice') }} - {{ t('action.more') }} - - - - - - - - - - {{ item.type }} : {{ item.title }} - - - - {{ formatTime(item.date, 'yyyy-MM-dd') }} - - - - - - - - - - - diff --git a/src/views/home/Index2.vue b/src/views/home/Index2.vue deleted file mode 100644 index c9429ab..0000000 --- a/src/views/home/Index2.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - - - - - - - - - {{ t('analysis.newUser') }} - - - - - - - - - - - - - - - - - - - - - {{ t('analysis.unreadInformation') }} - - - - - - - - - - - - - - - - - - - - - {{ t('analysis.transactionAmount') }} - - - - - - - - - - - - - - - - - - - - - {{ t('analysis.totalShopping') }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/home/components/material.vue b/src/views/home/components/material.vue deleted file mode 100644 index 83aadaa..0000000 --- a/src/views/home/components/material.vue +++ /dev/null @@ -1,336 +0,0 @@ - - - - - - - 今日到货计划(已发货) - {{materialData?.preparetoissueTodayCount}}单 - - - - - - 今日备料计划(已发料) - {{materialData?.preparetoissueTodayCount}}单 - - - - - - 今日叫料请求(已发料) - {{materialData?.issueRequestTodayCount}}单 - - - - - - 空闲库位数/总库位数 - {{materialData?.freeLocationCount}}个/{{materialData?.totalLocationCount}}个 - - - - - - - 呆滞库存预警 - - - - - - - - - {{ formatter(scope.row.uom, DICT_TYPE.UOM) }} - - - - - - - {{ formatter(scope.row.inventoryStatus, DICT_TYPE.INVENTORY_STATUS) }} - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - 超期库存预警 - - - - - - - - - {{ formatter(scope.row.uom, DICT_TYPE.UOM) }} - - - - - - - {{ formatter(scope.row.inventoryStatus, DICT_TYPE.INVENTORY_STATUS) }} - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - - - 高低储预警 - - - - - - - - - {{ formatter(scope.row.uom, DICT_TYPE.UOM) }} - - - - - - - {{ formatter(scope.row.inventoryStatus, DICT_TYPE.INVENTORY_STATUS) }} - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - 待处理任务 - - - - - - - diff --git a/src/views/home/components/produce.vue b/src/views/home/components/produce.vue deleted file mode 100644 index c289ec0..0000000 --- a/src/views/home/components/produce.vue +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - 今日生产计划 - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - {{ formatDate(scope.row.beginTime) }} - - - - {{ formatDate(scope.row.endTime) }} - - - - - - - 线边安全库存 - - - - - - - - - - - - - - - - - - - - {{ formatDate(scope.row.createTime) }} - - - - - {{ formatDate(scope.row.createTime) }} - - - - - - - - 待上架成品库存 - - - - - - {{ formatDate(scope.row.requestTime) }} - - - - - {{ formatDate(scope.row.requestDueTime) }} - - - - - - - - {{ formatDate(scope.row.acceptTime) }} - - - - - - - - - - {{ formatter(scope.row.autoComplete, DICT_TYPE.TRUE_FALSE) }} - - - - - {{ formatter(scope.row.allowModifyLocation, DICT_TYPE.TRUE_FALSE) }} - - - - - {{ formatter(scope.row.allowModifyQty, DICT_TYPE.TRUE_FALSE) }} - - - - - {{ formatter(scope.row.allowBiggerQty, DICT_TYPE.TRUE_FALSE) }} - - - - - {{ formatter(scope.row.allowSmallerQty, DICT_TYPE.TRUE_FALSE) }} - - - - - {{ - formatter(scope.row.allowModifyInventoryStatus, DICT_TYPE.TRUE_FALSE) - }} - - - - - {{ formatter(scope.row.allowContinuousScanning, DICT_TYPE.TRUE_FALSE) }} - - - - - {{ formatter(scope.row.allowPartialComplete, DICT_TYPE.TRUE_FALSE) }} - - - - - {{ formatter(scope.row.allowModifyBatch, DICT_TYPE.TRUE_FALSE) }} - - - - - {{ formatter(scope.row.allowModifyPackingNumber, DICT_TYPE.TRUE_FALSE) }} - - - - - - 待处理任务 - - - - - - - diff --git a/src/views/home/components/product.vue b/src/views/home/components/product.vue deleted file mode 100644 index 5124d9c..0000000 --- a/src/views/home/components/product.vue +++ /dev/null @@ -1,313 +0,0 @@ - - - - - - - 今日到货计划(已发货) - {{ productData?.deliverPlanTodayCount || 0 }}单 - - - - - - - 呆滞库存预警 - - - - - - - - - {{ formatter(scope.row.uom, DICT_TYPE.UOM) }} - - - - - - - {{ formatter(scope.row.inventoryStatus, DICT_TYPE.INVENTORY_STATUS) }} - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - 超期库存预警 - - - - - - - - - {{ formatter(scope.row.uom, DICT_TYPE.UOM) }} - - - - - - - {{ formatter(scope.row.inventoryStatus, DICT_TYPE.INVENTORY_STATUS) }} - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - - - 高低储预警 - - - - - - - - - {{ formatter(scope.row.uom, DICT_TYPE.UOM) }} - - - - - - - {{ formatter(scope.row.inventoryStatus, DICT_TYPE.INVENTORY_STATUS) }} - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - - - - - {{ formatDate(scope.row.planDate) }} - - - - - - 待处理任务 - - - - - - - diff --git a/src/views/home/components/supplierIndex.vue b/src/views/home/components/supplierIndex.vue deleted file mode 100644 index 7610f97..0000000 --- a/src/views/home/components/supplierIndex.vue +++ /dev/null @@ -1,452 +0,0 @@ - - - - - - 订单数 - - - - {{ supplierData?.openPurchaseCount || 0 }}单 - 开放订单数 - - - - - - {{ supplierData?.allPurchaseCount || 0 }}单 - 全部订单数 - - - - - - - 要货计划数 - - - - {{ supplierData?.openPurchasePlanCount || 0 }}单 - 开放计划数 - - - - - - {{ supplierData?.allPurchasePlanCount || 0 }}单 - 全部计划数 - - - - - - - 发货单数 - - - - {{ supplierData?.notTakeSupplierdeliverCount || 0 }}单 - 未收货订单数 - - - - - - {{ supplierData?.takeSupplierdeliverCount || 0 }}单 - 已收货订单数 - - - - - - - - - 本月发货单趋势 - - - - 本月发货零件TOP10 - - - - - - 最新消息 - - - - - - - - - - - - - {{ scope.row.templateParams }} - - - - - - - - - - - - - - - - - - 最新扣分明细 - - - - - - - - - - 本月退货明细 - - - - - - - - - - - - - - - - - - - - {{ formatter(scope.row.inventoryStatus,DICT_TYPE.INVENTORY_STATUS) }} - - - - - - - - - - - - - - - {{ formatter(scope.row.uom,DICT_TYPE.UOM) }} - - - - - - - {{ formatDate(scope.row.createTime) }} - - - - - - - 本月索赔明细 - - - - - - - - - - - - {{ formatDate(scope.row.createTime) }} - - - - - - - - - - diff --git a/src/views/home/echarts-data.ts b/src/views/home/echarts-data.ts index 15c7b4a..ac76978 100644 --- a/src/views/home/echarts-data.ts +++ b/src/views/home/echarts-data.ts @@ -5,7 +5,7 @@ const { t } = useI18n() export const lineOptions: EChartsOption = { xAxis: { - data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 + data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12 ], boundaryGap: false, axisTick: { diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 1cc81ac..917adf8 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,14 +1,430 @@ + - - - - - + + + + 注塑 + + + + {{ data?.zsTJ || 0 }}个 + 设备停机状态 + + + + + + {{ data?.zsZs || 0 }}个 + 设备总数 + + + + + + {{ data?.zsWC || 0 }} + 月设备保养完成率 + + + + + + {{ data?.zsTime || 0 }}分钟 + 月汇总停机时间 + + + + + + + 装配 + + + + {{ data?.zpTJ || 0 }}个 + 设备停机状态 + + + + + + {{ data?.zpZs || 0 }}个 + 设备总数 + + + + + + {{ data?.zpWC || 0 }} + 月设备保养完成率 + + + + + + {{ data?.zpTime || 0 }}分钟 + 月汇总停机时间 + + + + + + + 涂装 + + + + {{ data?.tzTJ || 0 }}个 + 设备停机状态 + + + + + + {{ data?.tzZs || 0 }}个 + 设备总数 + + + + + + {{ data?.tzWC || 0 }} + 月设备保养完成率 + + + + + + {{ data?.tzTime || 0 }}分钟 + 月汇总停机时间 + + + + + + + + + 注塑年度指标 + + + + 指标名称 + 目标 + 实际 + + + 设备停机率 + 0.05% + 0 + + + 平均故障回复时间 + 20 + 0 + + + 平均故障间隔时间 + 20 + 0 + + + + + + 装配年度指标 + + + + 指标名称 + 目标 + 实际 + + + 设备停机率 + 0.05% + 0 + + + 平均故障回复时间 + 20 + 0 + + + 平均故障间隔时间 + 20 + 0 + + + + + + 涂装年度指标 + + + + 指标名称 + 目标 + 实际 + + + 设备停机率 + 0.05% + 0 + + + 平均故障回复时间 + 20 + 0 + + + 平均故障间隔时间 + 20 + 0 + + + + + + + + 注塑设备停机率 + + + + 装配设备停机率 + + + + 涂装设备停机率 + + + + + + 注塑设备停机率 + + + + 装配设备停机率 + + + + 涂装设备停机率 + + + + + + 注塑设备停机率 + + + + 装配设备停机率 + + + + 涂装设备停机率 + + + +