zhuangpei-mesbackend/DOAN.Admin.WebApi/Controllers/Mobile/product/PADPrintAndReportWork2Controller.cs

80 lines
2.5 KiB
C#
Raw Normal View History

2025-04-09 10:27:09 +08:00
using DOAN.Admin.WebApi.Filters;
using DOAN.Model.MES.product;
using DOAN.Model.MES.product.Dto;
using DOAN.Service.Mobile;
using Microsoft.AspNetCore.Mvc;
using DOAN.Service.Mobile.IService;
using DOAN.Model.Mobile.Dto;
using DOAN.Service.MES.product.IService;
using Infrastructure.Converter;
namespace DOAN.WebApi.Controllers.Mobile.product
{
/// <summary>
2025-04-11 17:01:31 +08:00
/// 首件检验标签和末件检验标签打印接口 U13和U16
2025-04-09 10:27:09 +08:00
/// </summary>
2025-04-09 10:31:49 +08:00
[Route("mes/Mobile/PrintAndReportWork2")]
2025-04-09 10:27:09 +08:00
public class PADPrintAndReportWork2Controller : BaseController
{
/// <summary>
/// 打印和报工表接口
/// </summary>
private readonly IPADPrintAndReportWork2Service printAndReportWorkService;
2025-04-09 10:46:29 +08:00
public PADPrintAndReportWork2Controller(IPADPrintAndReportWork2Service _printAndReportWork2Service)
2025-04-09 10:27:09 +08:00
{
2025-04-09 10:46:29 +08:00
this.printAndReportWorkService = _printAndReportWork2Service;
2025-04-09 10:27:09 +08:00
}
2025-04-09 11:38:34 +08:00
2025-04-09 10:27:09 +08:00
// TODO 获取首件检验标签
2025-04-09 10:31:49 +08:00
[HttpGet("firstInspectionLabel")]
2025-04-09 10:27:09 +08:00
public IActionResult GetFirstInspectionLabel(string workorder)
{
var response = printAndReportWorkService.GetFirstInspectionLabel(workorder);
return SUCCESS(response);
}
2025-04-09 11:38:34 +08:00
//TODO 校验箱子标签
[HttpGet("CheckBoxInspectionLabel")]
public IActionResult CheckBoxInspectionLabel(string workorder, string box_label)
{
2025-04-10 13:37:13 +08:00
var response = printAndReportWorkService.CheckBoxInspectionLabel(workorder, box_label);
return SUCCESS(response);
2026-01-22 11:07:21 +08:00
2025-04-09 11:38:34 +08:00
}
2025-04-09 10:27:09 +08:00
//TODO 校验首标签
2025-04-09 10:31:49 +08:00
[HttpGet("CheckfirstInspectionLabel")]
2025-04-09 10:27:09 +08:00
public IActionResult CheckFirstInspectionLabel(string workorder,string first_label)
{
var response = printAndReportWorkService.CheckFirstInspectionLabel(workorder, first_label);
return SUCCESS(response);
}
//TODO 获取末件检验标签
2025-04-09 10:31:49 +08:00
[HttpGet("getendinspectionlabel")]
2025-04-09 10:27:09 +08:00
public IActionResult GetEndInspectionLabel(string workorder)
{
var response = printAndReportWorkService.GetEndInspectionLabel(workorder);
return SUCCESS(response);
}
//TODO 校验末件标签
2025-04-09 10:31:49 +08:00
[HttpGet("CheckEndInspectionLabel")]
public IActionResult CheckEndInspectionLabel(string workorder, string end_label)
{
var response = printAndReportWorkService.CheckEndInspectionLabel(workorder, end_label);
return SUCCESS(response);
}
2025-04-09 10:27:09 +08:00
}
}