| | |
| | | "dependencies": { |
| | | "@element-plus/icons-vue": "^2.1.0", |
| | | "@microsoft/signalr": "^6.0.4", |
| | | "@vue/reactivity": "^3.4.31", |
| | | "ali-oss": "^6.17.1", |
| | | "axios": "^0.21.1", |
| | | "core-js": "^3.6.5", |
| | | "echarts": "^5.0.2", |
| | | "element-plus": "^2.2.14", |
| | | "less": "^4.1.1", |
| | | "lodash": "^4.17.21", |
| | | "vue": "^3.2.37", |
| | | "vue-draggable-next": "^2.0.1", |
| | | "vue-router": "^4.0.0-0", |
| | |
| | | let loadingInstance; |
| | | let loadingStatus = false; |
| | | if (process.env.NODE_ENV == 'development') { |
| | | axios.defaults.baseURL = 'http://192.168.12.101:8099/'; |
| | | axios.defaults.baseURL = 'http://127.0.0.1:8099/'; |
| | | } |
| | | else if (process.env.NODE_ENV == 'debug') { |
| | | axios.defaults.baseURL = 'http://192.168.12.101:8099/'; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace WIDESEA_Comm.PLCDBItem |
| | | { |
| | | public class Oiling_machine |
| | | { |
| | | /// <summary> |
| | | /// 对象éå |
| | | /// </summary> |
| | | public static List<Oiling_machine> Oiling_machineDBItem = new List<Oiling_machine>(); |
| | | |
| | | /// <summary> |
| | | /// åç§° |
| | | /// </summary> |
| | | public string Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// èªå¨æ¨¡å¼ |
| | | /// </summary> |
| | | public bool R_Automatic_mode{ get; set; } |
| | | |
| | | /// <summary> |
| | | /// æå¨æ¨¡å¼ |
| | | /// </summary> |
| | | public bool R_Manual_mode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// èªå¨è¿è¡ä¸ |
| | | /// </summary> |
| | | public bool R_AutoRunning { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 1ï¼æ æ
éï¼ 0ï¼ææ
é |
| | | /// </summary> |
| | | public bool R_NO_FAULT { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 设å¤ä¸çµ |
| | | /// </summary> |
| | | public bool R_state_power_on { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public bool R_state_automatic_se_lected { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥åä¿¡å· |
| | | /// </summary> |
| | | public bool R_EstopOK { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车轮å°è¾¾å·æ²¹é¾æ¡ |
| | | /// </summary> |
| | | public bool R_WheelOnPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车轮SNå· |
| | | /// </summary> |
| | | public string R_Wheel_SN { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车轮类å |
| | | /// </summary> |
| | | public Int16 R_Wheel_Type { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public byte R_Part_Status { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public byte R_Part_Process { get; set; } |
| | | } |
| | | } |
| | |
| | | using System.Text.RegularExpressions; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Comm; |
| | | using WIDESEA_Comm.PLCDBItem; |
| | | using WIDESEA_Core.Extensions; |
| | | using WIDESEA_WCS.WCSClient; |
| | | |
| | |
| | | } |
| | | return gantryDBItems; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åæ¶æ²¹æºä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="client"></param> |
| | | /// <returns></returns> |
| | | public static List<Oiling_machine> GetOiling_machine(PLCClient client) |
| | | { |
| | | List<Oiling_machine> gantryDBItems = new List<Oiling_machine>(); |
| | | PropertyInfo[] propertyInfos = typeof(Oiling_machine).GetProperties(); |
| | | var groups = client.itemGroups.Where(x => x.opratortype == "oiler").OrderBy(x => x.Methods).ThenBy(x => x.name).GroupBy(x => x.Methods).ToList(); |
| | | foreach (var key in groups) |
| | | { |
| | | try |
| | | { |
| | | Oiling_machine StackerDBItem = new Oiling_machine(); |
| | | foreach (var propertyInfo in propertyInfos) |
| | | { |
| | | if (propertyInfo.Name == "Name") |
| | | { |
| | | StackerDBItem.Name = key.Key; |
| | | } |
| | | else |
| | | { |
| | | DBItemGroup group = key.FirstOrDefault(x => x.name == propertyInfo.Name); |
| | | if (group != null) |
| | | { |
| | | var readData = DBExtension.Read(group, client); |
| | | switch (propertyInfo.Name) |
| | | { |
| | | case "R_Automatic_mode": |
| | | StackerDBItem.R_Automatic_mode = Convert.ToBoolean(readData); |
| | | break; |
| | | case "R_Manual_mode": |
| | | StackerDBItem.R_Manual_mode = Convert.ToBoolean(readData); |
| | | break; |
| | | case "R_AutoRunning": |
| | | StackerDBItem.R_AutoRunning = Convert.ToBoolean(readData); |
| | | break; |
| | | case "R_NO_FAULT": |
| | | StackerDBItem.R_NO_FAULT = Convert.ToBoolean(readData); |
| | | break; |
| | | case "R_state_power_on": |
| | | StackerDBItem.R_state_power_on = Convert.ToBoolean(readData); |
| | | break; |
| | | case "R_state_automatic_se_lected": |
| | | StackerDBItem.R_state_automatic_se_lected = Convert.ToBoolean(readData); |
| | | break; |
| | | case "R_EstopOK": |
| | | StackerDBItem.R_EstopOK = Convert.ToBoolean(readData); |
| | | break; |
| | | case "R_WheelOnPosition": |
| | | StackerDBItem.R_WheelOnPosition = Convert.ToBoolean(readData); |
| | | break; |
| | | case "R_Wheel_SN": |
| | | StackerDBItem.R_Wheel_SN = Convert.ToString(readData); |
| | | break; |
| | | case "R_Wheel_Type": |
| | | StackerDBItem.R_Wheel_Type = Convert.ToInt16(readData); |
| | | break; |
| | | case "R_Part_Status": |
| | | StackerDBItem.R_Part_Status = Convert.ToByte(readData); |
| | | break; |
| | | case "R_Part_Process": |
| | | StackerDBItem.R_Part_Process = Convert.ToByte(readData); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | gantryDBItems.Add(StackerDBItem); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | return gantryDBItems; |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | info.trace_billetID = Work.billetID.ToString(); |
| | | } |
| | | traceRepository.Add(info, true); |
| | | |
| | | |
| | | client.Write(key.FirstOrDefault(x => x.name == "oi_on").dbAddress, (byte)0);//ä¿¡å·å¤ä½ |
| | | } |
| | | #endregion |
| | |
| | | VOLContext context = new VOLContext(); |
| | | Idt_plcinfodetailRepository repository = new dt_plcinfodetailRepository(context); |
| | | List<dt_plcinfodetail> plcinfodetail = new List<dt_plcinfodetail>(); |
| | | string name = "VK5"; |
| | | for (int i = 1; i <= 2; i++) |
| | | string name = "Pipeline"; |
| | | for (int i = 1; i <= 3; i++) |
| | | { |
| | | dt_plcinfodetail dt_Plcinfodetail1 = new dt_plcinfodetail() |
| | | { |
| | | plcdetail_id = Guid.NewGuid(), |
| | | plcdetail_iotype = name, |
| | | plcdetail_db = "DB603", |
| | | plcdetail_value = (0 + (i - 1) * 144).ToString(), |
| | | plcdetail_valtype = "byte", |
| | | plcdetail_name = "oi_on", |
| | | plcdetail_opratortype = "labeller", |
| | | plcdetail_remark = "ç³è¯·", |
| | | plcdetail_db = "DB29", |
| | | plcdetail_value = (21 + (i - 1) * 80).ToString(), |
| | | plcdetail_valtype = "string", |
| | | plcdetail_len = 20, |
| | | plcdetail_name = "R_Wheel_SN", |
| | | plcdetail_opratortype = "oiler", |
| | | plcdetail_remark = "Wheel_SN", |
| | | plcdetail_number = i + "åå
", |
| | | }; |
| | | plcinfodetail.Add(dt_Plcinfodetail1); |
| | |
| | | { |
| | | plcdetail_id = Guid.NewGuid(), |
| | | plcdetail_iotype = name, |
| | | plcdetail_db = "DB603", |
| | | plcdetail_value = (2 + (i - 1) * 144).ToString(), |
| | | plcdetail_len = 20, |
| | | plcdetail_valtype = "string", |
| | | plcdetail_name = "o_wp_id", |
| | | plcdetail_opratortype = "labeller", |
| | | plcdetail_remark = "车轮SNå·", |
| | | plcdetail_db = "DB29", |
| | | plcdetail_value = (22 + (i - 1) * 80).ToString(), |
| | | plcdetail_valtype = "int16", |
| | | plcdetail_name = "R_Wheel_Type", |
| | | plcdetail_opratortype = "oiler", |
| | | plcdetail_remark = "Wheel_Type", |
| | | plcdetail_number = i + "åå
", |
| | | }; |
| | | plcinfodetail.Add(dt_Plcinfodetail2); |
| | |
| | | { |
| | | plcdetail_id = Guid.NewGuid(), |
| | | plcdetail_iotype = name, |
| | | plcdetail_db = "DB603", |
| | | plcdetail_value = (24 + (i - 1) * 144).ToString(), |
| | | plcdetail_len = 20, |
| | | plcdetail_valtype = "string", |
| | | plcdetail_name = "i_job_id", |
| | | plcdetail_opratortype = "labeller", |
| | | plcdetail_remark = "å·¥åç¼å·", |
| | | plcdetail_db = "DB29", |
| | | plcdetail_value = (24 + (i - 1) * 80).ToString(), |
| | | plcdetail_valtype = "byte", |
| | | plcdetail_name = "R_Part_Status", |
| | | plcdetail_opratortype = "oiler", |
| | | plcdetail_remark = "Part_Status", |
| | | plcdetail_number = i + "åå
", |
| | | }; |
| | | plcinfodetail.Add(dt_Plcinfodetail3); |
| | |
| | | { |
| | | plcdetail_id = Guid.NewGuid(), |
| | | plcdetail_iotype = name, |
| | | plcdetail_db = "DB603", |
| | | plcdetail_value = (22 + (i - 1) * 144).ToString(), |
| | | plcdetail_db = "DB29", |
| | | plcdetail_value = (25 + (i - 1) * 80).ToString(), |
| | | plcdetail_valtype = "byte", |
| | | plcdetail_name = "i_status", |
| | | plcdetail_opratortype = "labeller", |
| | | plcdetail_remark = "ç¶æ", |
| | | plcdetail_name = "R_Part_Process", |
| | | plcdetail_opratortype = "oiler", |
| | | plcdetail_remark = "Part_Process", |
| | | plcdetail_number = i + "åå
", |
| | | }; |
| | | plcinfodetail.Add(dt_Plcinfodetail4); |
| | | dt_plcinfodetail dt_Plcinfodetail5 = new dt_plcinfodetail() |
| | | { |
| | | plcdetail_id = Guid.NewGuid(), |
| | | plcdetail_iotype = name, |
| | | plcdetail_db = "DB603", |
| | | plcdetail_value = (44 + (i - 1) * 144).ToString(), |
| | | plcdetail_len = 20, |
| | | plcdetail_valtype = "string", |
| | | plcdetail_name = "i_heat_id", |
| | | plcdetail_opratortype = "labeller", |
| | | plcdetail_remark = "ç代å·", |
| | | plcdetail_number = i + "åå
", |
| | | }; |
| | | plcinfodetail.Add(dt_Plcinfodetail5); |
| | | dt_plcinfodetail dt_Plcinfodetail6 = new dt_plcinfodetail() |
| | | { |
| | | plcdetail_id = Guid.NewGuid(), |
| | | plcdetail_iotype = name, |
| | | plcdetail_db = "DB603", |
| | | plcdetail_value = (64 + (i - 1) * 144).ToString(), |
| | | plcdetail_len = 20, |
| | | plcdetail_valtype = "string", |
| | | plcdetail_name = "i_billet_id", |
| | | plcdetail_opratortype = "labeller", |
| | | plcdetail_remark = "é¢å¯å·", |
| | | plcdetail_number = i + "åå
", |
| | | }; |
| | | plcinfodetail.Add(dt_Plcinfodetail6); |
| | | dt_plcinfodetail dt_Plcinfodetail7 = new dt_plcinfodetail() |
| | | { |
| | | plcdetail_id = Guid.NewGuid(), |
| | | plcdetail_iotype = name, |
| | | plcdetail_db = "DB603", |
| | | plcdetail_value = (84 + (i - 1) * 144).ToString(), |
| | | plcdetail_len = 20, |
| | | plcdetail_valtype = "string", |
| | | plcdetail_name = "i_batch_id", |
| | | plcdetail_opratortype = "labeller", |
| | | plcdetail_remark = "çå¤çæ¹æ¬¡", |
| | | plcdetail_number = i + "åå
", |
| | | }; |
| | | plcinfodetail.Add(dt_Plcinfodetail7); |
| | | dt_plcinfodetail dt_Plcinfodetail8 = new dt_plcinfodetail() |
| | | { |
| | | plcdetail_id = Guid.NewGuid(), |
| | | plcdetail_iotype = name, |
| | | plcdetail_db = "DB603", |
| | | plcdetail_value = (104 + (i - 1) * 144).ToString(), |
| | | plcdetail_len = 20, |
| | | plcdetail_valtype = "string", |
| | | plcdetail_name = "i_drawing_id", |
| | | plcdetail_opratortype = "labeller", |
| | | plcdetail_remark = "å¾å·", |
| | | plcdetail_number = i + "åå
", |
| | | }; |
| | | plcinfodetail.Add(dt_Plcinfodetail8); |
| | | dt_plcinfodetail dt_Plcinfodetail9 = new dt_plcinfodetail() |
| | | { |
| | | plcdetail_id = Guid.NewGuid(), |
| | | plcdetail_iotype = name, |
| | | plcdetail_db = "DB603", |
| | | plcdetail_value = (124 + (i - 1) * 144).ToString(), |
| | | plcdetail_len = 20, |
| | | plcdetail_valtype = "string", |
| | | plcdetail_name = "i_wheel_type", |
| | | plcdetail_opratortype = "labeller", |
| | | plcdetail_remark = "i_wheel_type", |
| | | plcdetail_number = i + "åå
", |
| | | }; |
| | | plcinfodetail.Add(dt_Plcinfodetail9); |
| | | } |
| | | repository.AddRange(plcinfodetail, true); |
| | | } |
| | |
| | | using System.Xml.Linq; |
| | | using WIDESEA_Comm; |
| | | using WIDESEA_Comm.LogInfo; |
| | | using WIDESEA_Comm.PLCDBItem; |
| | | using WIDESEA_Comm.TaskNo; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.EFDbContext; |
| | |
| | | pipeline.Loadinglevel(client); |
| | | pipeline.AutoEmptyTray(client); |
| | | pipeline.StationState(client); |
| | | |
| | | #region æ°æ®éé |
| | | Oiling_machine.Oiling_machineDBItem = GetDate.GetOiling_machine(client); |
| | | #endregion |
| | | } |
| | | } |
| | | } |
| | |
| | | info_interaction.labeller(client); |
| | | #endregion |
| | | #region 车轮信æ¯è¿½æº¯ |
| | | Wheel_info_trace.Wheel_online(client); |
| | | /*Wheel_info_trace.Wheel_online(client); |
| | | Wheel_info_trace.Wheel_machine(client); |
| | | Wheel_info_trace.Wheel_offline(client); |
| | | Wheel_info_trace.Wheel_offline(client);*/ |
| | | #endregion |
| | | #region ä¿¡æ¯éé |
| | | WheelDBItem.VK4WheelDBItem = GetDate.GetWheelDate(client); |
| | |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using WIDESEA_Comm; |
| | | using WIDESEA_Comm.PLCDBItem; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_Core.Extensions; |
| | | using WIDESEA_Core.Utilities; |
| | |
| | | { |
| | | var DBIems = WheelDBItem.VK4WheelDBItem; //è·åè¾éï¼è¾éçº¿ä¿¡æ¯ |
| | | var DBIems2 = VKDBItem.VK4DBItem; //VK4ç¶æä¿¡æ¯å¯¹è±¡éå |
| | | // VK4æ¡æ¶æºæ¢°æå¯¹è±¡éå |
| | | |
| | | var DBIems3 = Oiling_machine.Oiling_machineDBItem; |
| | | |
| | | if (DBIems.Count == 0) |
| | | { |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region pcså¹³é¢å¾åºä½ä¿¡æ¯ |
| | | [HttpPost("dt_stationinfolist")] |
| | | public IActionResult dt_stationinfolist() |
| | | { |
| | |
| | | } |
| | | return Ok(responseData); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | "Connection": { |
| | | "DBType": "MsSql", //MySql/MsSql/PgSql //æ°æ®åºç±»åï¼å¦æä½¿ç¨çæ¯sqlserveræ¤å¤åºè®¾ç½®ä¸ºMsSql |
| | | //sqlserverè¿æ¥å符串P@ssw0rd |
| | | "DbConnectionString": "Data Source=192.168.12.101;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", |
| | | "DbConnectionString": "Data Source=.;Initial Catalog=WIDESEA_DB_TY_TY;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", |
| | | //"DbConnectionString": "Data Source=.;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=P@ssw0rd;Connect Timeout=500;", |
| | | |
| | | //mysqlè¿æ¥å符串(å级EFCore3.1å°æ¶å·²å°mysqlè¿æ¥å符串修æ¹,2019-12-20) |
| | |
| | | "dependencies": { |
| | | "@element-plus/icons-vue": "^2.1.0", |
| | | "@microsoft/signalr": "^6.0.4", |
| | | "@vue/reactivity": "^3.4.31", |
| | | "ali-oss": "^6.17.1", |
| | | "axios": "^0.21.1", |
| | | "core-js": "^3.6.5", |
| | | "echarts": "^5.0.2", |
| | | "element-plus": "^2.2.14", |
| | | "less": "^4.1.1", |
| | | "lodash": "^4.17.21", |
| | | "vue": "^3.2.37", |
| | | "vue-draggable-next": "^2.0.1", |
| | | "vue-router": "^4.0.0-0", |
| | |
| | | var data3 = db2.Find(_ => true).Where(x => x.stationCode.Contains("A") || x.stationCode.Contains("B") || x.stationCode.Contains("C") || x.stationCode.Contains("D01")).ToList(); |
| | | |
| | | //åºåºå¾å·æ°é,å¤å ç©ºææ°é |
| | | var Number_wheels = data3.Where(_ => true) |
| | | var Number_wheels1 = data3.Where(_ => true) |
| | | .GroupBy(s => new |
| | | { |
| | | stationType = string.IsNullOrEmpty(s.stationType) ? s.tray_type : s.stationType, |
| | |
| | | tray_type = g.Key.tray_type |
| | | }).ToList(); |
| | | |
| | | var Number_wheels = Number_wheels1.Where(x => x.stationType != "LargeTray" && x.stationType != "SmallTray").ToList(); |
| | | #endregion |
| | | |
| | | |
| | |
| | | x.Key.stationType, |
| | | combined_heatNumber = string.Join(", ", x.Select(y => y.heatNumber).Distinct()) |
| | | }) |
| | | .Where(x => !string.IsNullOrEmpty(x.stationType) && !string.IsNullOrEmpty(x.combined_heatNumber)) |
| | | .OrderBy(x => x.Area) |
| | | .ThenBy(x => x.line) |
| | | .GroupBy(x => x.line) // ä½¿ç¨ GroupBy æ Line åæ®µåç» |
| | | .Select(group => |
| | | { |
| | | // æ¾å°æ¯ä¸ªåç»ä¸ç¬¬ä¸ä¸ª stationType ä¸ä¸ºç©ºçå
ç´ |
| | | var firstWithStationType = group.FirstOrDefault(x => !string.IsNullOrEmpty(x.stationType)); |
| | | if (firstWithStationType != null) |
| | | { |
| | | return firstWithStationType; |
| | | } |
| | | else |
| | | { |
| | | // 妿åç»ä¸é½æ¯ stationType 为空ï¼åè¿å第ä¸ä¸ªå
ç´ ï¼æ¤æ¶å³ä¸º stationType 为空çï¼ |
| | | return group.First(); |
| | | } |
| | | }) |
| | | .ToList(); |
| | | |
| | | dataList = dataList.Concat(data).ToList(); |
| | |
| | | Idt_agvtaskRepository db = new dt_agvtaskRepository(volContext); |
| | | var dataList = db.Find(_ => true).OrderByDescending(x => x.agv_createtime).ToList(); |
| | | |
| | | var data = dataList.Where(x => x.agv_tasktype != "Queue").Take(15).ToList(); |
| | | var data = dataList.Where(x => x.agv_taskstate != "éå" && x.agv_taskstate != "Queue" && x.agv_taskstate != "æå" && x.agv_taskstate != "Pause").ToList(); |
| | | if (data.Count <= 15) |
| | | { |
| | | data = dataList.Take(15).ToList(); |
| | |
| | | <template> |
| | | <div> |
| | | <!-- 年度å¼å·¥ç --> |
| | | <Echart |
| | | :options="options" |
| | | id="bottomLeftChart" |
| | | height="480px" |
| | | ></Echart> |
| | | <Echart :options="options" id="bottomLeftChart" height="480px"></Echart> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | color: "#B4B4B4" |
| | | }, |
| | | top: "0%", |
| | | left:"15%" |
| | | |
| | | }, |
| | | grid: { |
| | | x: "8%", |
| | | x: "12%", |
| | | width: "90%", |
| | | y: "4%" |
| | | }, |
| | |
| | | { |
| | | name: "åºåºé", |
| | | type: "bar", |
| | | barWidth: 40, |
| | | barWidth: 25, |
| | | itemStyle: { |
| | | normal: { |
| | | barBorderRadius: 5, |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#956FD4" }, |
| | | { offset: 1, color: "#3EACE5" } |
| | | ]) |
| | | ]), |
| | | label: { |
| | | show: true, // æ¾ç¤ºæ ç¾ |
| | | position: 'top', // æ ç¾ä½ç½®ï¼å¯ä»¥è®¾ç½® 'top', 'insideTop', 'inside', 'insideBottom' ç |
| | | formatter: '{c}', // æ ç¾å
å®¹æ ¼å¼å¨ï¼{c} è¡¨ç¤ºæ°æ®å¼ |
| | | fontSize: 14, // æ ç¾æå大å°ï¼é»è®¤ä¸º 12 |
| | | fontWeight: 'bold', // æ ç¾æåç²ç»ï¼é»è®¤ä¸º 'normal' |
| | | color: '#ffffff' // æ ç¾æåé¢è²ï¼é»è®¤ä¸º '#333' |
| | | } |
| | | } |
| | | }, |
| | | data: newData.barData |
| | |
| | | { |
| | | name: "å
¥åºé", |
| | | type: "bar", |
| | | barGap: "-100%", |
| | | barWidth: 40, |
| | | barWidth: 25, |
| | | itemStyle: { |
| | | normal: { |
| | | barBorderRadius: 5, |
| | |
| | | { offset: 0, color: "rgba(156,107,211,0.8)" }, |
| | | { offset: 0.2, color: "rgba(156,107,211,0.5)" }, |
| | | { offset: 1, color: "rgba(156,107,211,0.2)" } |
| | | ]) |
| | | ]), |
| | | label: { |
| | | show: true, // æ¾ç¤ºæ ç¾ |
| | | position: 'top', // æ ç¾ä½ç½®ï¼å¯ä»¥è®¾ç½® 'top', 'insideTop', 'inside', 'insideBottom' ç |
| | | formatter: '{c}', // æ ç¾å
å®¹æ ¼å¼å¨ï¼{c} è¡¨ç¤ºæ°æ®å¼ |
| | | fontSize: 14, // æ ç¾æå大å°ï¼é»è®¤ä¸º 12 |
| | | fontWeight: 'bold', // æ ç¾æåç²ç»ï¼é»è®¤ä¸º 'normal' |
| | | color: '#ffffff' // æ ç¾æåé¢è²ï¼é»è®¤ä¸º '#333' |
| | | } |
| | | } |
| | | }, |
| | | z: -12, |
| | |
| | | |
| | | Vue.prototype.$http = axios.create({ |
| | | timeout: 20000, |
| | | baseURL: 'http://192.168.12.101:8098', |
| | | //baseURL: 'http://192.168.12.101:8098', |
| | | baseURL: 'http://localhost:8098', |
| | | }); |
| | | //5.x å¼ç¨æ¹å¼ä¸ºæéå¼ç¨ |
| | | //å¸æä½¿ç¨5.xçæ¬çè¯,éè¦å¨package.json䏿´æ°çæ¬å·,并忢å¼ç¨æ¹å¼ |
| | |
| | | <template> |
| | | <div id="bottomRight" > |
| | | <div class="bg-color-black" style="width: 100%;"> |
| | | <div class="bg-color-black" > |
| | | <!-- <div class="d-flex pt-2 pl-2"> |
| | | <span> |
| | | <icon name="chart-area" class="text-icon"></icon> |
| | |
| | | |
| | | <style lang="scss" class> |
| | | $box-height: 520px; |
| | | $box-width: 895px; |
| | | $box-width: 600px; |
| | | #bottomRight { |
| | | padding: 14px 16px; |
| | | height: $box-height; |
| | |
| | | |
| | | <template> |
| | | <div id="centerRight1"> |
| | | <div class="bg-color-black" style="width: 100%;"> |
| | | <div class="bg-color-black" > |
| | | <div class="d-flex pt-2 pl-2"> |
| | | <span> |
| | | <icon name="chart-line" class="text-icon"></icon> |
| | |
| | | this.changeNumber() |
| | | setInterval(() => { |
| | | this.changeNumber() |
| | | },10000) |
| | | },100) |
| | | }, |
| | | changeNumber() { |
| | | this.$http.post("/api/Largescreen/Current_agvtask", "æ¥è¯¢ä¸...") |
| | | this.$http.post('/api/Largescreen/Current_agvtask') |
| | | .then(response => { |
| | | let GetAGVTaskData = [] |
| | | if(response.data<=0){ |
| | | let data = ["<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>"] |
| | | let data = ["<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>","<span class='colorRed'>ææ æ°æ®</span>"] |
| | | GetAGVTaskData.push(data) |
| | | }else{ |
| | | response.data.forEach(element => { |
| | | let data = [element.agv_tasknum,"<span class='colorRed'>"+element.agv_fromaddress+"</span>" , |
| | | "<span class='colorGrass'>" + element.agv_toaddress + "</span>",element.agv_taskstate, |
| | | element.agv_tasktype,element.agv_createtime,element.agv_realesstime] |
| | | element.agv_tasktype] |
| | | GetAGVTaskData.push(data) |
| | | }); |
| | | } |
| | | this.config.data = GetAGVTaskData; |
| | | this.config = { |
| | | header: ['ä»»å¡å·', 'èµ·ç¹å°å', 'ç»ç¹å°å', 'ä»»å¡ç¶æ','ä»»å¡ç±»å','å建æ¶é´','ä¸åæ¶é´'], |
| | | header: ['ä»»å¡å·', 'èµ·ç¹å°å', 'ç»ç¹å°å', 'ä»»å¡ç¶æ','ä»»å¡ç±»å'], |
| | | data: GetAGVTaskData, |
| | | rowNum: 10, //è¡¨æ ¼è¡æ° |
| | | headerHeight: 35, |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | $box-height: 600px; |
| | | $box-width: 97%; |
| | | $box-width: 100%; |
| | | |
| | | #centerRight1 { |
| | | padding: 16px; |
| | |
| | | this.GetLocationData(); |
| | | setInterval(() => { |
| | | this.GetLocationData() |
| | | },60000) |
| | | },100) |
| | | }, |
| | | GetLocationData(){ |
| | | var _this=this; |
| | |
| | | oddRowBGC: '#0f1325', //奿°è¡ |
| | | evenRowBGC: '#171c33', //å¶æ°è¡ |
| | | index: true, |
| | | columnWidth: [50,130,100,60,270], |
| | | columnWidth: [50,130,100,60,960], |
| | | align: ['center'], |
| | | } |
| | | }).catch((x)=>{ |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | $box-height: 520px; |
| | | $box-width: 630px; |
| | | $box-width: 850px; |
| | | #centerRight1 { |
| | | padding: 10px; |
| | | padding-top: 20px; |
| | |
| | | |
| | | <!-- 第åè¡æ°æ® --> |
| | | <div class="content-box"> |
| | | <dv-border-box-13 style="width: 400px;"> |
| | | <dv-border-box-12 style="width: 465px;"> |
| | | <bottomLeft /> |
| | | </dv-border-box-13> |
| | | </dv-border-box-12> |
| | | |
| | | <div> |
| | | <dv-border-box-12> |
| | |
| | | this.barcode = e.detail.value; |
| | | } else { |
| | | var len = this.barcode.split(',').length; |
| | | if (len <= 4) { |
| | | if (len <= 5) { |
| | | this.barcode = this.barcode + ','; |
| | | } |
| | | else if(len < 5){ |
| | | else if(len < 6){ |
| | | this.barcode = this.barcode; |
| | | } |
| | | else { |
| | | this.$t.message.toast('æ°éæå¤ä¸º5个'); |
| | | this.$t.message.toast('æ°éæå¤ä¸º6个'); |
| | | this.isfill=true; |
| | | return; |
| | | } |
| | |
| | | return; |
| | | } |
| | | |
| | | this.$u.post("/api/ToWms/OutsourceInbound", { |
| | | MainData: { |
| | | dataSN: this.barcode, |
| | | stationNo: this.stationNo, |
| | | creator: uni.getStorageSync('jo_user').userName, |
| | | } |
| | | }).then(res => { |
| | | if (res.status) { |
| | | this.barcode = '', |
| | | this.station = '', |
| | | this.stationNo = '', |
| | | this.$t.message.toast('å¼å«AGVæåï¼è¯·çå¾
AGVåè´§'); |
| | | } else { |
| | | this.$t.message.toast(res.message); |
| | | } |
| | | console.log(res); |
| | | }).catch(err => { |
| | | uni.showModal({ |
| | | title: '确认', |
| | | content: '车轮信æ¯ï¼'+this.barcode+',æ¯å¦å¼å«AGVï¼', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | // this.$u.post("/api/ToWms/OutsourceInbound", { |
| | | // MainData: { |
| | | // dataSN: this.barcode, |
| | | // stationNo: this.stationNo, |
| | | // creator: uni.getStorageSync('jo_user').userName, |
| | | // } |
| | | // }).then(res => { |
| | | // if (res.status) { |
| | | // this.barcode = '', |
| | | // this.station = '', |
| | | // this.stationNo = '', |
| | | // this.$t.message.toast('å¼å«AGVæåï¼è¯·çå¾
AGVåè´§'); |
| | | // } else { |
| | | // this.$t.message.toast(res.message); |
| | | // } |
| | | // console.log(res); |
| | | // }).catch(err => { |
| | | |
| | | }) |
| | | // }) |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | } |