设备管理联调:修复brandId缺失、batchToggle改逐个toggle、详情页添加4个子API端点
- 前端:新增/编辑机床时传递brandId字段
- 前端:启停切换改为逐个调用PUT /admin/machine/{id}/toggle
- 前端:详情页API调用从query参数改为RESTful路径参数
- 后端:新增4个详情页API(status/production-today/production-trend/collect-records)
- 后端:新增3个DTO(MachineTodayProdItem/MachineTrendItem/MachineCollectRecordItem)
- 后端:更新MachineStatusResponse字段以匹配前端展示需求
main
parent
2e3199490c
commit
dfc18fabb5
@ -0,0 +1,20 @@
|
||||
namespace CncModels.Dto.Machine
|
||||
{
|
||||
/// <summary>
|
||||
/// 机床采集记录项
|
||||
/// </summary>
|
||||
public class MachineCollectRecordItem
|
||||
{
|
||||
/// <summary>采集时间</summary>
|
||||
public string CollectTime { get; set; }
|
||||
|
||||
/// <summary>NC程序名</summary>
|
||||
public string ProgramName { get; set; }
|
||||
|
||||
/// <summary>零件计数</summary>
|
||||
public decimal? PartCount { get; set; }
|
||||
|
||||
/// <summary>运行状态</summary>
|
||||
public string RunStatus { get; set; }
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
namespace CncModels.Dto.Machine
|
||||
{
|
||||
/// <summary>
|
||||
/// 机床今日产量明细项
|
||||
/// </summary>
|
||||
public class MachineTodayProdItem
|
||||
{
|
||||
/// <summary>NC程序名</summary>
|
||||
public string ProgramName { get; set; }
|
||||
|
||||
/// <summary>产量</summary>
|
||||
public int Quantity { get; set; }
|
||||
|
||||
/// <summary>运行时间(分钟)</summary>
|
||||
public decimal? RunTime { get; set; }
|
||||
|
||||
/// <summary>切削时间(分钟)</summary>
|
||||
public decimal? CuttingTime { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue