接口
This commit is contained in:
@@ -24,259 +24,4 @@ export const errCensus = (id) => post('api/deviceScreen/errCensus', {})
|
||||
/** 仓储监控 */
|
||||
export const storageMonitor = (id) => post('api/dashboard/warehouseMonitor', {})
|
||||
/** 生产统计 */
|
||||
// export const productionStatistics = (id) => post('api/dashboard/productionStatistics', {})
|
||||
export const productionStatistics = () => {
|
||||
let res = {
|
||||
'pressProduction': {
|
||||
'dailyProductionQty': '0.11',
|
||||
'equipmentProduction': [
|
||||
{
|
||||
'qty': 633.0,
|
||||
'name': '压机1',
|
||||
'weight': 0.0
|
||||
},
|
||||
{
|
||||
'qty': 0.0,
|
||||
'name': '压机2',
|
||||
'weight': 0.0
|
||||
},
|
||||
{
|
||||
'qty': 497.0,
|
||||
'name': '液压机',
|
||||
'weight': 0.0
|
||||
},
|
||||
{
|
||||
'qty': 0.0,
|
||||
'name': '压机8',
|
||||
'weight': 0.0
|
||||
}
|
||||
],
|
||||
'dailyProductionWeight': '0.00'
|
||||
},
|
||||
'workOrder': [
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915001',
|
||||
'equipment': '分拣拆垛机械手1',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-15 15:16:21',
|
||||
'planned': '1000块',
|
||||
'completed': '0块',
|
||||
'endTime': '2023-09-15 15:27:35',
|
||||
'customer': '客户',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915004',
|
||||
'equipment': '分拣拆垛机械手1',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '',
|
||||
'planned': '1000块',
|
||||
'completed': '0块',
|
||||
'endTime': '2023-09-15 15:27:20',
|
||||
'customer': '客户',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915007',
|
||||
'equipment': '分拣拆垛机械手1',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-19 14:36:40',
|
||||
'planned': '1000块',
|
||||
'completed': '211块',
|
||||
'endTime': '2023-09-19 14:30:53',
|
||||
'customer': '客户',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915010',
|
||||
'equipment': '混料机4',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-15 15:59:54',
|
||||
'planned': '10000千克',
|
||||
'completed': '485.000千克',
|
||||
'endTime': '',
|
||||
'customer': '客户',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915013',
|
||||
'equipment': '混料机5',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-15 16:04:15',
|
||||
'planned': '10000千克',
|
||||
'completed': '千克',
|
||||
'endTime': '',
|
||||
'customer': '',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915016',
|
||||
'equipment': '混料机6',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-15 16:04:17',
|
||||
'planned': '10000千克',
|
||||
'completed': '0.000千克',
|
||||
'endTime': '',
|
||||
'customer': '',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230917004',
|
||||
'equipment': '液压机',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-17 10:08:43',
|
||||
'planned': '1000块',
|
||||
'completed': '914块',
|
||||
'endTime': '',
|
||||
'customer': '22',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖-包壁',
|
||||
'workOrderCode': '230918031',
|
||||
'equipment': '压机5',
|
||||
'materialCode': '90205',
|
||||
'startTime': '2023-09-18 16:17:47',
|
||||
'planned': '628块',
|
||||
'completed': '0块',
|
||||
'endTime': '2023-09-19 13:27:22',
|
||||
'customer': '唐钢长材',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230918034',
|
||||
'equipment': '压机8',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-18 14:06:28',
|
||||
'planned': '1000块',
|
||||
'completed': '0块',
|
||||
'endTime': '',
|
||||
'customer': '22',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖MGL8343P10-K23Z006',
|
||||
'workOrderCode': '230918037',
|
||||
'equipment': '混料机4',
|
||||
'materialCode': 'WGBMMC00002MGL8343P10-K23Z006',
|
||||
'startTime': '2023-09-19 08:55:47',
|
||||
'planned': '4999千克',
|
||||
'completed': '11158.000千克',
|
||||
'endTime': '',
|
||||
'customer': 'GW5',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖MGL8343P20-K23Z006',
|
||||
'workOrderCode': '230918040',
|
||||
'equipment': '混料机5',
|
||||
'materialCode': 'WGBMMC00002MGL8343P20-K23Z006',
|
||||
'startTime': '2023-09-19 09:10:22',
|
||||
'planned': '4999千克',
|
||||
'completed': '6319.000千克',
|
||||
'endTime': '',
|
||||
'customer': 'GW5',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖MGL8343P10-K23Z006',
|
||||
'workOrderCode': '230918043',
|
||||
'equipment': '压机1',
|
||||
'materialCode': 'WGBMMC00002MGL8343P10-K23Z006',
|
||||
'startTime': '2023-09-19 09:42:32',
|
||||
'planned': '428块',
|
||||
'completed': '633块',
|
||||
'endTime': '',
|
||||
'customer': 'GW5',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖MGL8343P20-K23Z006',
|
||||
'workOrderCode': '230918046',
|
||||
'equipment': '压机2',
|
||||
'materialCode': 'WGBMMC00002MGL8343P20-K23Z006',
|
||||
'startTime': '2023-09-19 09:42:24',
|
||||
'planned': '428块',
|
||||
'completed': '0块',
|
||||
'endTime': '',
|
||||
'customer': 'GW5',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230919001',
|
||||
'equipment': '分拣拆垛机械手1',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '',
|
||||
'planned': '10000块',
|
||||
'completed': '块',
|
||||
'endTime': '',
|
||||
'customer': '客户',
|
||||
'status': '已下发'
|
||||
}
|
||||
],
|
||||
'total': {
|
||||
'pressWeight': '0.00',
|
||||
'dryWeight': '0.00',
|
||||
'sortWeight': '0.00'
|
||||
},
|
||||
'finishedProductCompletionRate': [
|
||||
{
|
||||
'uncompleted': 12789,
|
||||
'name': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'completed': 211
|
||||
}
|
||||
// {
|
||||
// 'uncompleted': 9222,
|
||||
// 'name': '转炉镁碳砖MASC-65鞍钢23Z888',
|
||||
// 'completed': 2988
|
||||
// },
|
||||
// {
|
||||
// 'uncompleted': 11888,
|
||||
// 'name': '转炉镁碳砖MASC-65鞍钢23Z999',
|
||||
// 'completed': 2999
|
||||
// },
|
||||
// {
|
||||
// 'uncompleted': 7888,
|
||||
// 'name': '转炉镁碳砖MASC-65鞍钢93Z222',
|
||||
// 'completed': 3555
|
||||
// },
|
||||
// {
|
||||
// 'uncompleted': 6888,
|
||||
// 'name': '转炉镁碳砖MASC-65鞍钢93Z777',
|
||||
// 'completed': 2222
|
||||
// }
|
||||
],
|
||||
'mixProduction': [
|
||||
{
|
||||
'name': '镁碳砖MGL8343P10-K23Z006',
|
||||
'value': 3654.0
|
||||
}
|
||||
// {
|
||||
// 'name': '镁碳砖MGL8343P99-K23Z099',
|
||||
// 'value': 2400.0
|
||||
// },
|
||||
// {
|
||||
// 'name': '镁碳砖MGL8343P99-K23Z666',
|
||||
// 'value': 1100.0
|
||||
// },
|
||||
// {
|
||||
// 'name': '镁碳砖MGL8343P99-K23Z888',
|
||||
// 'value': 3200.0
|
||||
// },
|
||||
// {
|
||||
// 'name': '镁碳砖MGL8343P99-K23Z222',
|
||||
// 'value': 1800.0
|
||||
// }
|
||||
]
|
||||
}
|
||||
return res
|
||||
}
|
||||
export const productionStatistics = (id) => post('api/dashboard/productionStatistics', {})
|
||||
|
||||
@@ -1,5 +1,262 @@
|
||||
// import {post} from '@js/http.js'
|
||||
|
||||
// 生产统计
|
||||
export const productionStatistics = () => {
|
||||
let res = {
|
||||
'pressProduction': {
|
||||
'dailyProductionQty': '0.11',
|
||||
'equipmentProduction': [
|
||||
{
|
||||
'qty': 633.0,
|
||||
'name': '压机1',
|
||||
'weight': 0.0
|
||||
},
|
||||
{
|
||||
'qty': 0.0,
|
||||
'name': '压机2',
|
||||
'weight': 0.0
|
||||
},
|
||||
{
|
||||
'qty': 497.0,
|
||||
'name': '液压机',
|
||||
'weight': 0.0
|
||||
},
|
||||
{
|
||||
'qty': 0.0,
|
||||
'name': '压机8',
|
||||
'weight': 0.0
|
||||
}
|
||||
],
|
||||
'dailyProductionWeight': '0.00'
|
||||
},
|
||||
'workOrder': [
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915001',
|
||||
'equipment': '分拣拆垛机械手1',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-15 15:16:21',
|
||||
'planned': '1000块',
|
||||
'completed': '0块',
|
||||
'endTime': '2023-09-15 15:27:35',
|
||||
'customer': '客户',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915004',
|
||||
'equipment': '分拣拆垛机械手1',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '',
|
||||
'planned': '1000块',
|
||||
'completed': '0块',
|
||||
'endTime': '2023-09-15 15:27:20',
|
||||
'customer': '客户',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915007',
|
||||
'equipment': '分拣拆垛机械手1',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-19 14:36:40',
|
||||
'planned': '1000块',
|
||||
'completed': '211块',
|
||||
'endTime': '2023-09-19 14:30:53',
|
||||
'customer': '客户',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915010',
|
||||
'equipment': '混料机4',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-15 15:59:54',
|
||||
'planned': '10000千克',
|
||||
'completed': '485.000千克',
|
||||
'endTime': '',
|
||||
'customer': '客户',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915013',
|
||||
'equipment': '混料机5',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-15 16:04:15',
|
||||
'planned': '10000千克',
|
||||
'completed': '千克',
|
||||
'endTime': '',
|
||||
'customer': '',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230915016',
|
||||
'equipment': '混料机6',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-15 16:04:17',
|
||||
'planned': '10000千克',
|
||||
'completed': '0.000千克',
|
||||
'endTime': '',
|
||||
'customer': '',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230917004',
|
||||
'equipment': '液压机',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-17 10:08:43',
|
||||
'planned': '1000块',
|
||||
'completed': '914块',
|
||||
'endTime': '',
|
||||
'customer': '22',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖-包壁',
|
||||
'workOrderCode': '230918031',
|
||||
'equipment': '压机5',
|
||||
'materialCode': '90205',
|
||||
'startTime': '2023-09-18 16:17:47',
|
||||
'planned': '628块',
|
||||
'completed': '0块',
|
||||
'endTime': '2023-09-19 13:27:22',
|
||||
'customer': '唐钢长材',
|
||||
'status': '完成'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230918034',
|
||||
'equipment': '压机8',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '2023-09-18 14:06:28',
|
||||
'planned': '1000块',
|
||||
'completed': '0块',
|
||||
'endTime': '',
|
||||
'customer': '22',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖MGL8343P10-K23Z006',
|
||||
'workOrderCode': '230918037',
|
||||
'equipment': '混料机4',
|
||||
'materialCode': 'WGBMMC00002MGL8343P10-K23Z006',
|
||||
'startTime': '2023-09-19 08:55:47',
|
||||
'planned': '4999千克',
|
||||
'completed': '11158.000千克',
|
||||
'endTime': '',
|
||||
'customer': 'GW5',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖MGL8343P20-K23Z006',
|
||||
'workOrderCode': '230918040',
|
||||
'equipment': '混料机5',
|
||||
'materialCode': 'WGBMMC00002MGL8343P20-K23Z006',
|
||||
'startTime': '2023-09-19 09:10:22',
|
||||
'planned': '4999千克',
|
||||
'completed': '6319.000千克',
|
||||
'endTime': '',
|
||||
'customer': 'GW5',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖MGL8343P10-K23Z006',
|
||||
'workOrderCode': '230918043',
|
||||
'equipment': '压机1',
|
||||
'materialCode': 'WGBMMC00002MGL8343P10-K23Z006',
|
||||
'startTime': '2023-09-19 09:42:32',
|
||||
'planned': '428块',
|
||||
'completed': '633块',
|
||||
'endTime': '',
|
||||
'customer': 'GW5',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '镁碳砖MGL8343P20-K23Z006',
|
||||
'workOrderCode': '230918046',
|
||||
'equipment': '压机2',
|
||||
'materialCode': 'WGBMMC00002MGL8343P20-K23Z006',
|
||||
'startTime': '2023-09-19 09:42:24',
|
||||
'planned': '428块',
|
||||
'completed': '0块',
|
||||
'endTime': '',
|
||||
'customer': 'GW5',
|
||||
'status': '生产中'
|
||||
},
|
||||
{
|
||||
'materialName': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'workOrderCode': '230919001',
|
||||
'equipment': '分拣拆垛机械手1',
|
||||
'materialCode': 'ZLMMC00001MASC-6532K23Z001',
|
||||
'startTime': '',
|
||||
'planned': '10000块',
|
||||
'completed': '块',
|
||||
'endTime': '',
|
||||
'customer': '客户',
|
||||
'status': '已下发'
|
||||
}
|
||||
],
|
||||
'total': {
|
||||
'pressWeight': '0.00',
|
||||
'dryWeight': '0.00',
|
||||
'sortWeight': '0.00'
|
||||
},
|
||||
'finishedProductCompletionRate': [
|
||||
{
|
||||
'uncompleted': 12789,
|
||||
'name': '转炉镁碳砖MASC-65鞍钢23Z001',
|
||||
'completed': 211
|
||||
}
|
||||
// {
|
||||
// 'uncompleted': 9222,
|
||||
// 'name': '转炉镁碳砖MASC-65鞍钢23Z888',
|
||||
// 'completed': 2988
|
||||
// },
|
||||
// {
|
||||
// 'uncompleted': 11888,
|
||||
// 'name': '转炉镁碳砖MASC-65鞍钢23Z999',
|
||||
// 'completed': 2999
|
||||
// },
|
||||
// {
|
||||
// 'uncompleted': 7888,
|
||||
// 'name': '转炉镁碳砖MASC-65鞍钢93Z222',
|
||||
// 'completed': 3555
|
||||
// },
|
||||
// {
|
||||
// 'uncompleted': 6888,
|
||||
// 'name': '转炉镁碳砖MASC-65鞍钢93Z777',
|
||||
// 'completed': 2222
|
||||
// }
|
||||
],
|
||||
'mixProduction': [
|
||||
{
|
||||
'name': '镁碳砖MGL8343P10-K23Z006',
|
||||
'value': 3654.0
|
||||
}
|
||||
// {
|
||||
// 'name': '镁碳砖MGL8343P99-K23Z099',
|
||||
// 'value': 2400.0
|
||||
// },
|
||||
// {
|
||||
// 'name': '镁碳砖MGL8343P99-K23Z666',
|
||||
// 'value': 1100.0
|
||||
// },
|
||||
// {
|
||||
// 'name': '镁碳砖MGL8343P99-K23Z888',
|
||||
// 'value': 3200.0
|
||||
// },
|
||||
// {
|
||||
// 'name': '镁碳砖MGL8343P99-K23Z222',
|
||||
// 'value': 1800.0
|
||||
// }
|
||||
]
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
// 仓储监控
|
||||
export const storageMonitor = () => {
|
||||
let res = {
|
||||
|
||||
@@ -376,7 +376,8 @@
|
||||
|
||||
<script>
|
||||
import THeader from '@components/header.vue'
|
||||
import { storageMonitor } from '@js/getData11'
|
||||
import { storageMonitor } from '@js/getData1'
|
||||
// import { storageMonitor } from '@js/getData11'
|
||||
export default {
|
||||
name: 'StorageMonitor',
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user