2023-11-23 08:31:14 +08:00
|
|
|
|
using Infrastructure.Extensions;
|
|
|
|
|
|
using JinianNet.JNTemplate;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
|
using System.Text.Json;
|
|
|
|
|
|
using ZR.Admin.WebApi.Extensions;
|
|
|
|
|
|
using ZR.Model.mes.pro;
|
|
|
|
|
|
using ZR.Service.mes.pro;
|
|
|
|
|
|
using ZR.Service.mes.pro.IService;
|
|
|
|
|
|
using ZR.Service.mes.qu.IService;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ZR.Admin.WebApi.Controllers.mes.qu
|
|
|
|
|
|
{
|
|
|
|
|
|
[Route("mes/qu/rough")]
|
|
|
|
|
|
public class QuRoughController : BaseController
|
|
|
|
|
|
{
|
|
|
|
|
|
private readonly IQuRoughService quRoughService;
|
|
|
|
|
|
|
|
|
|
|
|
public QuRoughController(IQuRoughService quRoughService)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.quRoughService = quRoughService;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取所有排产工单
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageNum"></param>
|
|
|
|
|
|
/// <param name="pageSize"></param>
|
|
|
|
|
|
/// <param name="year"></param>
|
|
|
|
|
|
/// <param name="week"></param>
|
|
|
|
|
|
/// <param name="date"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet("getworkorderList")]
|
|
|
|
|
|
public IActionResult GetWorkorderList(int pageNum, int pageSize, int year = -1, int week = -1, int date = -1)
|
|
|
|
|
|
{
|
2023-11-24 08:45:24 +08:00
|
|
|
|
(List<ProWorkorder>, int) data = quRoughService.GetWorkorderList(pageNum, pageSize, year, week, date, 1);
|
2023-11-23 08:31:14 +08:00
|
|
|
|
|
|
|
|
|
|
return ToResponse(new ApiResult(200, "success", data));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|