| | |
| | | using System.Threading.Tasks; |
| | | using VueWebCoreApi.DLL.BLL; |
| | | using VueWebCoreApi.Models; |
| | | using VueWebCoreApi.Models.ReportVerify; |
| | | using VueWebCoreApi.Models.UpdateReport; |
| | | using VueWebCoreApi.Models.WorkData; |
| | | using VueWebCoreApi.Tools; |
| | |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[生产执行,报工审核列表数据查询接口] |
| | | /// <summary> |
| | | /// 生产执行,报工审核列表数据查询接口 |
| | | /// </summary> |
| | | /// <param name="wo_code">工单编号</param> |
| | | /// <param name="partnumber">产品编码</param> |
| | | /// <param name="partname">产品名称</param> |
| | | /// <param name="partspec">产品规格</param> |
| | | /// <param name="stepname">报工工序</param> |
| | | /// <param name="reportuser">报工人员</param> |
| | | /// <param name="reportdate">报工时间</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "MesOrderStepReportVerifySearch")] |
| | | [HttpGet] |
| | | public JsonResult MesOrderStepReportVerifySearch(string wo_code = null, string partnumber = null, string partname = null, string partspec = null,string stepname=null, string reportuser = null, string reportdate = null, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | string reportdateopendate = ""; //报工开始时间 |
| | | string reportdateclosedate = ""; //报工结束时间 |
| | | if (reportdate != "" && reportdate != null) |
| | | { |
| | | reportdateopendate = reportdate.Split('~')[0].ToString(); |
| | | reportdateclosedate = reportdate.Split('~')[1].ToString(); |
| | | } |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = WorkOrderBLL.MesOrderStepReportVerifySearch(wo_code, partnumber, partname, partspec,stepname,reportuser, reportdateopendate, reportdateclosedate, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[生产执行,报工审核数据提交] |
| | | /// <summary> |
| | | /// 生产执行,报工审核数据提交 |
| | | /// </summary> |
| | | /// <param name="json">提交数据</param> |
| | | /// <returns></returns> |
| | | [Route(template: "MesOrderStepReportVerifySeave")] |
| | | [HttpPost] |
| | | public JsonResult MesOrderStepReportVerifySeave([FromBody] DataModel json) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = WorkOrderBLL.MesOrderStepReportVerifySeave(us, json); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |