From 678e995cca52a9072c0a92a805060b4969d1010f Mon Sep 17 00:00:00 2001 From: sjz <1240968267@qq.com> Date: 星期一, 23 六月 2025 13:08:43 +0800 Subject: [PATCH] 修改发货通知单 --- MESApplication/Controllers/QC/SJController.cs | 61 ++++++++++++++++++++++++++++-- 1 files changed, 57 insertions(+), 4 deletions(-) diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs index 107d6b9..ec59913 100644 --- a/MESApplication/Controllers/QC/SJController.cs +++ b/MESApplication/Controllers/QC/SJController.cs @@ -41,14 +41,19 @@ try { dynamic resultInfos = new ExpandoObject(); - var tbBillList = - new SJService().getPage(queryObj); + + var (items, totalCount) = new SJService().getPage(queryObj); + + var tbBillList = items; + + resultInfos.tbBillList = tbBillList; return new ResponseResult { status = 0, message = "OK", - data = resultInfos + data = resultInfos, + TotalCount = totalCount }; } catch (Exception ex) @@ -62,9 +67,10 @@ [HttpPost("SetQSItems")] public ResponseResult SetQSItems([FromBody] JObject data) { - var itemNo = data["itemNo"].ToString(); + var itemNo = data["itemId"].ToString(); try { + dynamic resultInfos = new ExpandoObject(); var tbBillList = new SJService(); var detail021 = tbBillList.SetQSItems(itemNo); @@ -81,6 +87,30 @@ return ResponseResult.ResponseError(ex); } } + + + [HttpPost("SJQaSubmit")] + public ResponseResult SJQaSubmit([FromBody] QsItem item) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = new SJService(); + var detail021 = tbBillList.SJQaSubmit(item); + resultInfos.tbBillList = detail021; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + [HttpPost("Save")] public ResponseResult Save([FromBody] QsItem item) @@ -250,6 +280,29 @@ } } + //saveCommentGid + [HttpPost("saveCommentGid")] + public ResponseResult saveCommentGid([FromBody] QsItem rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = + new SJService().saveCommentGid(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + //saveRemarksPid [HttpPost("saveRemarksPid")] public ResponseResult saveRemarksPid([FromBody] QsItem rkjDto) -- Gitblit v1.9.3