This commit is contained in:
2023-11-03 11:12:51 +08:00
parent d715643150
commit 0f08c84e53

View File

@@ -24,179 +24,179 @@ export const errCensus = (id) => post('api/deviceScreen/errCensus', {})
/** 仓储监控 */ /** 仓储监控 */
export const storageMonitor = (id) => post('api/dashboard/warehouseMonitor', {}) export const storageMonitor = (id) => post('api/dashboard/warehouseMonitor', {})
/** 压制看板 */ /** 压制看板 */
export const cockpitpress = (id) => post('api/cockpit/press', {}) // export const cockpitpress = (id) => post('api/cockpit/press', {})
// export const cockpitpress = () => { export const cockpitpress = () => {
// let res = { let res = {
// 'PersonnelMonthlyProduction': [ 'PersonnelMonthlyProduction': [
// { {
// 'operator': '小二', 'operator': '小二',
// 'real_qty': '1186' 'real_qty': '1186'
// }, },
// { {
// 'operator': '小一', 'operator': '小一',
// 'real_qty': '1315' 'real_qty': '1315'
// } }
// ], ],
// 'ProductionTask': [ 'ProductionTask': [
// { {
// 'device': '压机04', 'device': '压机04',
// 'workorder_code': '2423090628', 'workorder_code': '2423090628',
// 'team': '白班', 'team': '白班',
// 'material_name': '底部槽砖', 'material_name': '底部槽砖',
// 'planproducestart_date': '08:00', 'planproducestart_date': '08:00',
// 'plan_qty': '2000', 'plan_qty': '2000',
// 'real_qty': '123', 'real_qty': '123',
// 'unqualified_qty': '70', 'unqualified_qty': '70',
// 'qualified_rate': '2.6500', 'qualified_rate': '2.6500',
// 'workorder_status': '未生产', 'workorder_status': '未生产',
// 'operator': '小一', 'operator': '小一',
// 'realproducestart_date': '-', 'realproducestart_date': '-',
// 'realproduceend_date': '-' 'realproduceend_date': '-'
// }, },
// { {
// 'device': '压机06', 'device': '压机06',
// 'workorder_code': '230921004', 'workorder_code': '230921004',
// 'team': '白班', 'team': '白班',
// 'material_name': 'RH下部槽工作层砖宝钢', 'material_name': 'RH下部槽工作层砖宝钢',
// 'planproducestart_date': '2023-09-01 00:00:00', 'planproducestart_date': '2023-09-01 00:00:00',
// 'plan_qty': '2000', 'plan_qty': '2000',
// 'real_qty': '0', 'real_qty': '0',
// 'unqualified_qty': '0', 'unqualified_qty': '0',
// 'qualified_rate': '0.0000', 'qualified_rate': '0.0000',
// 'workorder_status': '未生产', 'workorder_status': '未生产',
// 'operator': '小二', 'operator': '小二',
// 'realproducestart_date': '-', 'realproducestart_date': '-',
// 'realproduceend_date': '-' 'realproduceend_date': '-'
// }, },
// { {
// 'device': '压机02', 'device': '压机02',
// 'workorder_code': '230916005', 'workorder_code': '230916005',
// 'team': '白班', 'team': '白班',
// 'material_name': '钢包镁铝碳砖3015C221', 'material_name': '钢包镁铝碳砖3015C221',
// 'planproducestart_date': '2023-09-16 08:59:51', 'planproducestart_date': '2023-09-16 08:59:51',
// 'plan_qty': '2000', 'plan_qty': '2000',
// 'real_qty': '0', 'real_qty': '0',
// 'unqualified_qty': '0', 'unqualified_qty': '0',
// 'qualified_rate': '40.0000', 'qualified_rate': '40.0000',
// 'workorder_status': '已下发', 'workorder_status': '已下发',
// 'operator': '小二', 'operator': '小二',
// 'realproducestart_date': '-', 'realproducestart_date': '-',
// 'realproduceend_date': '-' 'realproduceend_date': '-'
// }, },
// { {
// 'device': '压机03', 'device': '压机03',
// 'workorder_code': '230916007', 'workorder_code': '230916007',
// 'team': '白班', 'team': '白班',
// 'material_name': '钢包镁铝碳砖3015C221', 'material_name': '钢包镁铝碳砖3015C221',
// 'planproducestart_date': '2023-09-16 00:00:00', 'planproducestart_date': '2023-09-16 00:00:00',
// 'plan_qty': '2000', 'plan_qty': '2000',
// 'real_qty': '0', 'real_qty': '0',
// 'unqualified_qty': '0', 'unqualified_qty': '0',
// 'qualified_rate': '40.0000', 'qualified_rate': '40.0000',
// 'workorder_status': '已下发', 'workorder_status': '已下发',
// 'operator': '小二', 'operator': '小二',
// 'realproducestart_date': '-', 'realproducestart_date': '-',
// 'realproduceend_date': '-' 'realproduceend_date': '-'
// }, },
// { {
// 'device': '压机01', 'device': '压机01',
// 'workorder_code': '230916004', 'workorder_code': '230916004',
// 'team': '白班', 'team': '白班',
// 'material_name': '钢包镁铝碳砖3015C221', 'material_name': '钢包镁铝碳砖3015C221',
// 'planproducestart_date': '2023-09-16 08:59:04', 'planproducestart_date': '2023-09-16 08:59:04',
// 'plan_qty': '2000', 'plan_qty': '2000',
// 'real_qty': '776', 'real_qty': '776',
// 'unqualified_qty': '0', 'unqualified_qty': '0',
// 'qualified_rate': '38.8000', 'qualified_rate': '38.8000',
// 'workorder_status': '生产中', 'workorder_status': '生产中',
// 'operator': '小二', 'operator': '小二',
// 'realproducestart_date': '2023-09-16 09:02:24', 'realproducestart_date': '2023-09-16 09:02:24',
// 'realproduceend_date': '-' 'realproduceend_date': '-'
// }, },
// { {
// 'device': '压机05', 'device': '压机05',
// 'workorder_code': '230916013', 'workorder_code': '230916013',
// 'team': '白班', 'team': '白班',
// 'material_name': '钢包镁铝碳砖3015C221', 'material_name': '钢包镁铝碳砖3015C221',
// 'planproducestart_date': '2023-09-16 09:02:08', 'planproducestart_date': '2023-09-16 09:02:08',
// 'plan_qty': '2000', 'plan_qty': '2000',
// 'real_qty': '894', 'real_qty': '894',
// 'unqualified_qty': '0', 'unqualified_qty': '0',
// 'qualified_rate': '40.0000', 'qualified_rate': '40.0000',
// 'workorder_status': '生产中', 'workorder_status': '生产中',
// 'operator': '小一', 'operator': '小一',
// 'realproducestart_date': '2023-09-16 09:03:06', 'realproducestart_date': '2023-09-16 09:03:06',
// 'realproduceend_date': '-' 'realproduceend_date': '-'
// }, },
// { {
// 'device': '压机08', 'device': '压机08',
// 'workorder_code': '230916016', 'workorder_code': '230916016',
// 'team': '白班', 'team': '白班',
// 'material_name': '钢包镁铝碳砖3015C221', 'material_name': '钢包镁铝碳砖3015C221',
// 'planproducestart_date': '2023-09-16 09:36:05', 'planproducestart_date': '2023-09-16 09:36:05',
// 'plan_qty': '2000', 'plan_qty': '2000',
// 'real_qty': '298', 'real_qty': '298',
// 'unqualified_qty': '0', 'unqualified_qty': '0',
// 'qualified_rate': '40.0000', 'qualified_rate': '40.0000',
// 'workorder_status': '生产中', 'workorder_status': '生产中',
// 'operator': '小一', 'operator': '小一',
// 'realproducestart_date': '2023-09-16 09:36:44', 'realproducestart_date': '2023-09-16 09:36:44',
// 'realproduceend_date': '-' 'realproduceend_date': '-'
// }, },
// { {
// 'device': '压机07', 'device': '压机07',
// 'workorder_code': '230918019', 'workorder_code': '230918019',
// 'team': '白班', 'team': '白班',
// 'material_name': '钢包镁铝碳砖3015C221', 'material_name': '钢包镁铝碳砖3015C221',
// 'planproducestart_date': '2023-09-18 10:33:09', 'planproducestart_date': '2023-09-18 10:33:09',
// 'plan_qty': '2000', 'plan_qty': '2000',
// 'real_qty': '410', 'real_qty': '410',
// 'unqualified_qty': '0', 'unqualified_qty': '0',
// 'qualified_rate': '0.0000', 'qualified_rate': '0.0000',
// 'workorder_status': '生产中', 'workorder_status': '生产中',
// 'operator': '小二', 'operator': '小二',
// 'realproducestart_date': '2023-09-18 10:39:24', 'realproducestart_date': '2023-09-18 10:39:24',
// 'realproduceend_date': '-' 'realproduceend_date': '-'
// }, },
// { {
// 'device': '压机04', 'device': '压机04',
// 'workorder_code': '230916010', 'workorder_code': '230916010',
// 'team': '晚班', 'team': '晚班',
// 'material_name': '钢包镁铝碳砖3015C221', 'material_name': '钢包镁铝碳砖3015C221',
// 'planproducestart_date': '2023-09-16 09:01:28', 'planproducestart_date': '2023-09-16 09:01:28',
// 'plan_qty': '2000', 'plan_qty': '2000',
// 'real_qty': '990', 'real_qty': '990',
// 'unqualified_qty': '0', 'unqualified_qty': '0',
// 'qualified_rate': '40.0000', 'qualified_rate': '40.0000',
// 'workorder_status': '生产中', 'workorder_status': '生产中',
// 'operator': '小二', 'operator': '小二',
// 'realproducestart_date': '2023-09-16 11:12:03', 'realproducestart_date': '2023-09-16 11:12:03',
// 'realproduceend_date': '-' 'realproduceend_date': '-'
// } }
// ], ],
// 'ShiftProductionList': [ 'ShiftProductionList': [
// { {
// 'column_name': '压机04', 'column_name': '压机04',
// 'qualified_qty': '53', 'qualified_qty': '53',
// 'unqualified_qty': '70', 'unqualified_qty': '70',
// 'total_difference': '1877' 'total_difference': '1877'
// }, },
// { {
// 'column_name': '压机06', 'column_name': '压机06',
// 'qualified_qty': '0', 'qualified_qty': '0',
// 'unqualified_qty': '0', 'unqualified_qty': '0',
// 'total_difference': '2000' 'total_difference': '2000'
// } }
// ], ],
// 'DayShift': '白班', 'DayShift': '白班',
// 'DayShiftList': [ 'DayShiftList': [
// { {
// 'plan_qty': '4000', 'plan_qty': '4000',
// 'real_qty': '123', 'real_qty': '123',
// 'unqualified_qty': '70', 'unqualified_qty': '70',
// 'qualified_qty': '53' 'qualified_qty': '53'
// } }
// ] ]
// } }
// return res return res
// } }