From 6436164235ca9823edce52accf042456c42bbb99 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期四, 28 八月 2025 18:15:36 +0800
Subject: [PATCH] 发货通知单备注字段更新
---
MESApplication/Controllers/QC/SJController.cs | 64 ++++++++++++++++++++++++++++++++
1 files changed, 64 insertions(+), 0 deletions(-)
diff --git a/MESApplication/Controllers/QC/SJController.cs b/MESApplication/Controllers/QC/SJController.cs
index b07b575..4cd6d0c 100644
--- a/MESApplication/Controllers/QC/SJController.cs
+++ b/MESApplication/Controllers/QC/SJController.cs
@@ -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")]
@@ -342,4 +365,45 @@
}
}
+ /// <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