diff --git a/src/assets/js/getData2.js b/src/assets/js/getData2.js index e4c499f..e0e13bf 100644 --- a/src/assets/js/getData2.js +++ b/src/assets/js/getData2.js @@ -10,5 +10,776 @@ export const deviceMonitor = () => post('api/cockpit/deviceMonitor', { export const findDeviceById = (id) => post('api/cockpit/findDeviceById', { id: id }) -// 车间情况 -export const workshopCondition = () => post('api/cockpit/workshopCondition', {}) +// 首页车间情况 +// export const workshopCondition = () => post('api/cockpit/workshopCondition', {}) +export const workshopCondition = () => { + let res = { + 'code': 200, + 'desc': '操作成功', + 'result': { + 'HLDayList': [ + { + 'plan_qty': 103000, + 'real_qty': 46500, + 'qualified_qty': 22500, + 'unqualified_qty': 0, + 'device_code': 'HLJ01', + 'material_code': null, + 'device_name': '混料机1', + 'region_code': 'HL' + }, + { + 'plan_qty': 103000, + 'real_qty': 49500, + 'qualified_qty': 25500, + 'unqualified_qty': 0, + 'device_code': 'HLJ02', + 'material_code': null, + 'device_name': '混料机2', + 'region_code': 'HL' + }, + { + 'plan_qty': 49000, + 'real_qty': 24500, + 'qualified_qty': 19500, + 'unqualified_qty': 0, + 'device_code': 'HLJ03', + 'material_code': null, + 'device_name': '混料机3', + 'region_code': 'HL' + }, + { + 'plan_qty': 58000, + 'real_qty': 38000, + 'qualified_qty': 24000, + 'unqualified_qty': 0, + 'device_code': 'HLJ04', + 'material_code': null, + 'device_name': '混料机4', + 'region_code': 'HL' + }, + { + 'plan_qty': 5000, + 'real_qty': 3000, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ05', + 'material_code': null, + 'device_name': '混料机5', + 'region_code': 'HL' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ06', + 'material_code': null, + 'device_name': '混料机6', + 'region_code': 'HL' + }, + { + 'plan_qty': 65080, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ07', + 'material_code': null, + 'device_name': '混料机7', + 'region_code': 'HL' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ08', + 'material_code': null, + 'device_name': '混料机8', + 'region_code': 'HL' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ09', + 'material_code': null, + 'device_name': '混料机9', + 'region_code': 'HL' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ10', + 'material_code': null, + 'device_name': '混料机10', + 'region_code': 'HL' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ11', + 'material_code': null, + 'device_name': '混料机11', + 'region_code': 'HL' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ12', + 'material_code': null, + 'device_name': '混料机12', + 'region_code': 'HL' + }, + { + 'plan_qty': 14500, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ13', + 'material_code': null, + 'device_name': '混料机13', + 'region_code': 'HL' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ14', + 'material_code': null, + 'device_name': '混料机14', + 'region_code': 'HL' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ15', + 'material_code': null, + 'device_name': '混料机15', + 'region_code': 'HL' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'HLJ16', + 'material_code': null, + 'device_name': '混料机16', + 'region_code': 'HL' + } + ], + 'DeviceConditionList': [ + { + 'device_name': '混料', + 'failure': 5, + 'shutdown': 2, + 'standby': 6, + 'running': 3 + }, + { + 'device_name': '压制', + 'failure': 5, + 'shutdown': 2, + 'standby': 6, + 'running': 3 + }, + { + 'device_name': '干燥', + 'failure': 5, + 'shutdown': 2, + 'standby': 6, + 'running': 3 + }, + { + 'device_name': '包装', + 'failure': 5, + 'shutdown': 2, + 'standby': 6, + 'running': 3 + } + ], + 'YZDayList': [ + { + 'plan_qty': 40572, + 'real_qty': 32967, + 'qualified_qty': 22058, + 'unqualified_qty': 909, + 'device_code': 'YJ01', + 'material_code': null, + 'device_name': '压机1', + 'region_code': 'YZ' + }, + { + 'plan_qty': 15500, + 'real_qty': 15060, + 'qualified_qty': 5044, + 'unqualified_qty': 16, + 'device_code': 'YJ02', + 'material_code': null, + 'device_name': '压机2', + 'region_code': 'YZ' + }, + { + 'plan_qty': 12500, + 'real_qty': 5898, + 'qualified_qty': 5761, + 'unqualified_qty': 137, + 'device_code': 'YJ03', + 'material_code': null, + 'device_name': '压机3', + 'region_code': 'YZ' + }, + { + 'plan_qty': 2340, + 'real_qty': 1902, + 'qualified_qty': 1850, + 'unqualified_qty': 52, + 'device_code': 'YJ04', + 'material_code': null, + 'device_name': '压机4', + 'region_code': 'YZ' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'YJ05', + 'material_code': null, + 'device_name': '压机5', + 'region_code': 'YZ' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'YJ06', + 'material_code': null, + 'device_name': '压机6', + 'region_code': 'YZ' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'YJ07', + 'material_code': null, + 'device_name': '压机7', + 'region_code': 'YZ' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'YJ08', + 'material_code': null, + 'device_name': '压机8', + 'region_code': 'YZ' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'YJ09', + 'material_code': null, + 'device_name': '压机9', + 'region_code': 'YZ' + }, + { + 'plan_qty': 0, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'device_code': 'YJ10', + 'material_code': null, + 'device_name': '压机10', + 'region_code': 'YZ' + } + ], + 'MixMachineList': [ + { + 'device_status': 1, + 'device_code': 'HLJ01' + }, + { + 'device_status': 1, + 'device_code': 'HLJ02' + }, + { + 'device_status': 1, + 'device_code': 'HLJ03' + }, + { + 'device_status': 1, + 'device_code': 'HLJ04' + }, + { + 'device_status': 1, + 'device_code': 'HLJ05' + }, + { + 'device_status': 1, + 'device_code': 'HLJ06' + }, + { + 'device_status': 1, + 'device_code': 'HLJ07' + }, + { + 'device_status': 1, + 'device_code': 'HLJ08' + }, + { + 'device_status': 1, + 'device_code': 'HLJ09' + }, + { + 'device_status': 1, + 'device_code': 'HLJ10' + }, + { + 'device_status': 1, + 'device_code': 'HLJ11' + }, + { + 'device_status': 1, + 'device_code': 'HLJ12' + }, + { + 'device_status': 1, + 'device_code': 'HLJ13' + }, + { + 'device_status': 1, + 'device_code': 'HLJ14' + }, + { + 'device_status': 1, + 'device_code': 'HLJ15' + }, + { + 'device_status': 1, + 'device_code': 'HLJ16' + } + ], + 'LastMonthFailureList': [ + { + 'device_name': '机器1', + 'failure': 11, + 'shutdown': null, + 'standby': null, + 'running': null + }, + { + 'device_name': '机器2', + 'failure': 12, + 'shutdown': null, + 'standby': null, + 'running': null + }, + { + 'device_name': '机器3', + 'failure': 15, + 'shutdown': null, + 'standby': null, + 'running': null + }, + { + 'device_name': '机器4', + 'failure': 29, + 'shutdown': null, + 'standby': null, + 'running': null + }, + { + 'device_name': '机器5', + 'failure': 26, + 'shutdown': null, + 'standby': null, + 'running': null + } + ], + 'PressMachineList': [ + { + 'device_status': 1, + 'device_code': 'YJ01' + }, + { + 'device_status': 1, + 'device_code': 'YJ02' + }, + { + 'device_status': 1, + 'device_code': 'YJ03' + }, + { + 'device_status': 1, + 'device_code': 'YJ04' + }, + { + 'device_status': 1, + 'device_code': 'YJ05' + }, + { + 'device_status': 1, + 'device_code': 'YJ06' + }, + { + 'device_status': 1, + 'device_code': 'YJ07' + }, + { + 'device_status': 1, + 'device_code': 'YJ08' + }, + { + 'device_status': 1, + 'device_code': 'YJ09' + }, + { + 'device_status': 1, + 'device_code': 'YJ10' + } + ], + 'TrappedShelfList': [ + { + 'point_name': '压机1空盅货位', + 'point_status_name': '无货', + 'point_code': 'KLHW41', + 'point_status': '0' + }, + { + 'point_name': '压机1困料货位1', + 'point_status_name': '有货', + 'point_code': 'KLHW42', + 'point_status': '1' + }, + { + 'point_name': '压机1困料货位2', + 'point_status_name': '有货', + 'point_code': 'KLHW43', + 'point_status': '1' + }, + { + 'point_name': '压机1困料货位3', + 'point_status_name': '有货', + 'point_code': 'KLHW44', + 'point_status': '1' + }, + { + 'point_name': '压机2空盅货位', + 'point_status_name': '无货', + 'point_code': 'KLHW45', + 'point_status': '0' + }, + { + 'point_name': '压机2困料货位1', + 'point_status_name': '有货', + 'point_code': 'KLHW46', + 'point_status': '1' + }, + { + 'point_name': '压机2困料货位2', + 'point_status_name': '无货', + 'point_code': 'KLHW47', + 'point_status': '0' + }, + { + 'point_name': '压机2困料货位3', + 'point_status_name': '无货', + 'point_code': 'KLHW48', + 'point_status': '0' + } + ], + 'MixBlankingList': [ + { + 'point_name': '混料机1下料位', + 'point_code': 'HLJ01XL01', + 'point_status': '0' + }, + { + 'point_name': '混料机2下料位', + 'point_code': 'HLJ02XL01', + 'point_status': '0' + }, + { + 'point_name': '混料机3下料位', + 'point_code': 'HLJ03XL01', + 'point_status': '0' + }, + { + 'point_name': '混料机4下料位', + 'point_code': 'HLJ04XL01', + 'point_status': '0' + }, + { + 'point_name': '混料机5下料位', + 'point_code': 'HLJ05XL01', + 'point_status': '0' + }, + { + 'point_name': '混料机6下料位', + 'point_code': 'HLJ06XL01', + 'point_status': '1' + }, + { + 'point_name': '混料机7下料位', + 'point_code': 'HLJ07XL01', + 'point_status': '1' + }, + { + 'point_name': '混料机8下料位', + 'point_code': 'HLJ08XL01', + 'point_status': '1' + }, + { + 'point_name': '混料机9下料位', + 'point_code': 'HLJ09XL01', + 'point_status': '0' + }, + { + 'point_name': '混料机10下料位', + 'point_code': 'HLJ10XL01', + 'point_status': '1' + }, + { + 'point_name': '混料机11下料位', + 'point_code': 'HLJ11XL01', + 'point_status': '1' + }, + { + 'point_name': '混料机12下料位', + 'point_code': 'HLJ12XL01', + 'point_status': '1' + }, + { + 'point_name': '混料机13下料位', + 'point_code': 'HLJ13XL01', + 'point_status': '1' + }, + { + 'point_name': '混料机14下料位', + 'point_code': 'HLJ14XL01', + 'point_status': '1' + }, + { + 'point_name': '混料机15下料位', + 'point_code': 'HLJ15XL01', + 'point_status': '1' + }, + { + 'point_name': '混料机16下料位', + 'point_code': 'HLJ16XL01', + 'point_status': '1' + } + ], + 'CPDayList': [ + { + 'qualified_in_qty': 367, + 'unqualified_in_qty': 429, + 'inventory_qty': 994, + 'material_code': '成品1' + }, + { + 'qualified_in_qty': 833, + 'unqualified_in_qty': 1876, + 'inventory_qty': 511, + 'material_code': '成品2' + }, + { + 'qualified_in_qty': 1467, + 'unqualified_in_qty': 1833, + 'inventory_qty': 1147, + 'material_code': '成品3' + }, + { + 'qualified_in_qty': 492, + 'unqualified_in_qty': 262, + 'inventory_qty': 1728, + 'material_code': '成品4' + }, + { + 'qualified_in_qty': 831, + 'unqualified_in_qty': 1561, + 'inventory_qty': 642, + 'material_code': '成品5' + } + ], + 'LastTenFailureList': [ + { + 'failure_time': '05-30 09:50:12', + 'device_code': 'hn01', + 'device_name': '混黏01', + 'failure_info': '机器故障', + 'device_status_name': '待机' + }, + { + 'failure_time': '05-30 09:50:12', + 'device_code': 'hn01', + 'device_name': '混黏01', + 'failure_info': '机器故障', + 'device_status_name': '待机' + }, + { + 'failure_time': '05-30 09:50:12', + 'device_code': 'hn01', + 'device_name': '混黏01', + 'failure_info': '机器故障', + 'device_status_name': '待机' + }, + { + 'failure_time': '05-30 09:50:12', + 'device_code': 'hn01', + 'device_name': '混黏01', + 'failure_info': '机器故障', + 'device_status_name': '待机' + }, + { + 'failure_time': '05-30 09:50:12', + 'device_code': 'hn01', + 'device_name': '混黏01', + 'failure_info': '机器故障', + 'device_status_name': '待机' + } + ], + 'StackingPositionList': [ + { + 'color_status': 3, + 'point_name': '压机1下料位1', + 'point_code': 'YJ01XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机1下料位2', + 'point_code': 'YJ01XL02', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机2下料位1', + 'point_code': 'YJ02XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机2下料位2', + 'point_code': 'YJ02XL02', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机3下料位1', + 'point_code': 'YJ03XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机3下料位2', + 'point_code': 'YJ03XL02', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机4下料位1', + 'point_code': 'YJ04XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机4下料位2', + 'point_code': 'YJ04XL02', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机5下料位1', + 'point_code': 'YJ05XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机5下料位2', + 'point_code': 'YJ05XL02', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机6下料位1', + 'point_code': 'YJ06XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机6下料位2', + 'point_code': 'YJ06XL02', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机7下料位1', + 'point_code': 'YJ07XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机7下料位2', + 'point_code': 'YJ07XL02', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机8下料位1', + 'point_code': 'YJ08XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机8下料位2', + 'point_code': 'YJ08XL02', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机9下料位1', + 'point_code': 'YJ09XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机9下料位2', + 'point_code': 'YJ09XL02', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机10下料位1', + 'point_code': 'YJ10XL01', + 'region_code': 'YZ' + }, + { + 'color_status': 3, + 'point_name': '压机10下料位2', + 'point_code': 'YJ10XL02', + 'region_code': 'YZ' + } + ] + } + } + return res +} diff --git a/src/images/workshop/blj.png b/src/images/workshop/blj.png new file mode 100644 index 0000000..8126747 Binary files /dev/null and b/src/images/workshop/blj.png differ diff --git a/src/images/workshop/hlj.png b/src/images/workshop/hlj_gray.png similarity index 100% rename from src/images/workshop/hlj.png rename to src/images/workshop/hlj_gray.png diff --git a/src/images/workshop/hlj_green.png b/src/images/workshop/hlj_green.png new file mode 100644 index 0000000..a27133e Binary files /dev/null and b/src/images/workshop/hlj_green.png differ diff --git a/src/images/workshop/hlj_red.png b/src/images/workshop/hlj_red.png new file mode 100644 index 0000000..de0f180 Binary files /dev/null and b/src/images/workshop/hlj_red.png differ diff --git a/src/images/workshop/hlj_s.png b/src/images/workshop/hlj_s_gray.png similarity index 100% rename from src/images/workshop/hlj_s.png rename to src/images/workshop/hlj_s_gray.png diff --git a/src/images/workshop/hlj_s_green.png b/src/images/workshop/hlj_s_green.png new file mode 100644 index 0000000..49494d4 Binary files /dev/null and b/src/images/workshop/hlj_s_green.png differ diff --git a/src/images/workshop/hlj_s_red.png b/src/images/workshop/hlj_s_red.png new file mode 100644 index 0000000..6b9f289 Binary files /dev/null and b/src/images/workshop/hlj_s_red.png differ diff --git a/src/images/workshop/hlj_s_yellow.png b/src/images/workshop/hlj_s_yellow.png new file mode 100644 index 0000000..88471c0 Binary files /dev/null and b/src/images/workshop/hlj_s_yellow.png differ diff --git a/src/images/workshop/hlj_yellow.png b/src/images/workshop/hlj_yellow.png new file mode 100644 index 0000000..aca72bc Binary files /dev/null and b/src/images/workshop/hlj_yellow.png differ diff --git a/src/images/workshop/robot_2500_green.png b/src/images/workshop/robot_2500_green.png new file mode 100644 index 0000000..6cf15b3 Binary files /dev/null and b/src/images/workshop/robot_2500_green.png differ diff --git a/src/images/workshop/robot_cmd_green.png b/src/images/workshop/robot_cmd_green.png new file mode 100644 index 0000000..0330523 Binary files /dev/null and b/src/images/workshop/robot_cmd_green.png differ diff --git a/src/images/workshop/yj_2500_gray.png b/src/images/workshop/yj_2500_gray.png new file mode 100644 index 0000000..f16bd9e Binary files /dev/null and b/src/images/workshop/yj_2500_gray.png differ diff --git a/src/images/workshop/yj_2500_green.png b/src/images/workshop/yj_2500_green.png new file mode 100644 index 0000000..8922044 Binary files /dev/null and b/src/images/workshop/yj_2500_green.png differ diff --git a/src/images/workshop/yj_2500_red.png b/src/images/workshop/yj_2500_red.png new file mode 100644 index 0000000..7676ff4 Binary files /dev/null and b/src/images/workshop/yj_2500_red.png differ diff --git a/src/images/workshop/yj_2500_yellow.png b/src/images/workshop/yj_2500_yellow.png new file mode 100644 index 0000000..c595788 Binary files /dev/null and b/src/images/workshop/yj_2500_yellow.png differ diff --git a/src/images/workshop/yj_630_gray.png b/src/images/workshop/yj_630_gray.png new file mode 100644 index 0000000..fa36d48 Binary files /dev/null and b/src/images/workshop/yj_630_gray.png differ diff --git a/src/images/workshop/yj_630_green.png b/src/images/workshop/yj_630_green.png new file mode 100644 index 0000000..c93f9eb Binary files /dev/null and b/src/images/workshop/yj_630_green.png differ diff --git a/src/images/workshop/yj_630_red.png b/src/images/workshop/yj_630_red.png new file mode 100644 index 0000000..f1866ff Binary files /dev/null and b/src/images/workshop/yj_630_red.png differ diff --git a/src/images/workshop/yj_630_yellow.png b/src/images/workshop/yj_630_yellow.png new file mode 100644 index 0000000..0833183 Binary files /dev/null and b/src/images/workshop/yj_630_yellow.png differ diff --git a/src/images/workshop/yyj_gray.png b/src/images/workshop/yyj_gray.png deleted file mode 100644 index 0e5cd1b..0000000 Binary files a/src/images/workshop/yyj_gray.png and /dev/null differ diff --git a/src/pages/modules/homepage/one.vue b/src/pages/modules/homepage/one.vue index a1d38bc..ccf16f3 100644 --- a/src/pages/modules/homepage/one.vue +++ b/src/pages/modules/homepage/one.vue @@ -35,43 +35,80 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -141,15 +195,24 @@
+
+
+
+
+
+
+
+
+
+
@@ -164,9 +227,15 @@
+
+
+
+
+
@@ -181,15 +250,24 @@
+
+
+
+
+
+
+
+
+
+
@@ -204,39 +282,42 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -263,24 +344,71 @@