From 296fce04db8c29cd678bae6163e63366dc3f25bc Mon Sep 17 00:00:00 2001 From: zyf <1071160500@qq.com> Date: 星期三, 27 八月 2025 18:33:12 +0800 Subject: [PATCH] 销售出库单新增备注字段 --- MESApplication/Controllers/QC/SJController.cs | 95 +++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 91 insertions(+), 4 deletions(-) diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs index 107d6b9..4cd6d0c 100644 --- a/MESApplication/Controllers/QC/SJController.cs +++ b/MESApplication/Controllers/QC/SJController.cs @@ -41,14 +41,14 @@ try { dynamic resultInfos = new ExpandoObject(); - var tbBillList = - new SJService().getPage(queryObj); - resultInfos.tbBillList = tbBillList; + var (items, totalCount) = new SJService().getPage(queryObj); + resultInfos.tbBillList = items; return new ResponseResult { status = 0, message = "OK", - data = resultInfos + data = resultInfos, + TotalCount = totalCount }; } catch (Exception ex) @@ -272,6 +272,29 @@ return ResponseResult.ResponseError(ex); } } + + //saveNotesPid + [HttpPost("saveNotesPid")] + public ResponseResult saveNotesPid([FromBody] QsItem rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = + new SJService().saveNotesPid(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } //saveRemarksById [HttpPost("saveRemarksById")] @@ -319,4 +342,68 @@ 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); + } + } + + /// <summary> + /// 鏇存柊QsItemIpiItem鐨処sPass鍊� + /// </summary> + /// <param name="data">鍖呭惈id鍜宨sPass鐨凧SON瀵硅薄</param> + /// <returns>鏇存柊缁撴灉</returns> + [HttpPost("UpdateQsItemIpiItemIsPass")] + public ResponseResult UpdateQsItemIpiItemIsPass([FromBody] JObject data) + { + try + { + var id = data["id"]?.ToString(); + var isPass = data["isPass"]?.ToString(); + + if (string.IsNullOrEmpty(id) || string.IsNullOrEmpty(isPass)) + { + return new ResponseResult + { + status = 1, + message = "鍙傛暟涓嶈兘涓虹┖", + data = null + }; + } + + dynamic resultInfos = new ExpandoObject(); + var sjService = new SJService(); + var result = sjService.UpdateQsItemIpiItemIsPass(Convert.ToDecimal(id), Convert.ToDecimal(isPass)); + resultInfos.tbBillList = result; + + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + } \ No newline at end of file -- Gitblit v1.9.3