From 0210aeacb9fe014ff8871c17134f33cba9681c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=8C=20=E6=9C=B1?= <1324361213@qq.com> Date: Mon, 15 Dec 2025 10:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9D=A1=E7=A0=81=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=88=A0=E9=99=A4=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/BarRecordController.cs | 20 +++++++++++++++++++ Gatedge.ScanCode/Services/BarRecordService.cs | 13 ++++++++++++ .../Services/IServices/IBarRecordService.cs | 6 ++++++ 3 files changed, 39 insertions(+) diff --git a/Gatedge.ScanCode/Controllers/BarRecordController.cs b/Gatedge.ScanCode/Controllers/BarRecordController.cs index e22e2cd..8133875 100644 --- a/Gatedge.ScanCode/Controllers/BarRecordController.cs +++ b/Gatedge.ScanCode/Controllers/BarRecordController.cs @@ -151,5 +151,25 @@ namespace Gatedge.ScanCode.Controllers service.PrintResultBillNo(barRecord); return AjaxResult.Success("扫描记录更新成功."); } + + /// + /// 批量下推采购入库单 + /// + /// + /// + [HttpPost("Delete")] + public AjaxResult Delete([FromBody] BarRecord barRecord) + { + var loginInfo = User.GetLoginInfoByClaimsPrincipal(); + _utils.InitCloudApi(loginInfo); + IBarRecordService service = new BarRecordService(_utils); + var result = service.Delete(barRecord); + if (result.IsSuccess) + { + return AjaxResult.Success("删除成功.", result); + } + return AjaxResult.Error("删除失败.", result); + + } } } diff --git a/Gatedge.ScanCode/Services/BarRecordService.cs b/Gatedge.ScanCode/Services/BarRecordService.cs index 83bea70..4684256 100644 --- a/Gatedge.ScanCode/Services/BarRecordService.cs +++ b/Gatedge.ScanCode/Services/BarRecordService.cs @@ -60,6 +60,19 @@ namespace Gatedge.ScanCode.Services return _utils.CancelAssign(this._FormId, cancelAssignBarRecord); } + /// + /// 删除条码扫描记录 + /// + /// + /// + public K3CloudResponseStatus Delete(BarRecord barRecord) + { + return _utils.Delete(this._FormId, new Delete() + { + Ids = barRecord.BarRecordId.ToString() + }); + } + /// /// 根据条码查找条码扫描记录 /// diff --git a/Gatedge.ScanCode/Services/IServices/IBarRecordService.cs b/Gatedge.ScanCode/Services/IServices/IBarRecordService.cs index b77fa28..134cb07 100644 --- a/Gatedge.ScanCode/Services/IServices/IBarRecordService.cs +++ b/Gatedge.ScanCode/Services/IServices/IBarRecordService.cs @@ -89,5 +89,11 @@ namespace Gatedge.ScanCode.Services.IServices /// /// public K3CloudResponseStatus Audit(Audit auditParam); + + /// + /// 删除接口 + /// + /// + public K3CloudResponseStatus Delete(BarRecord barRecord); } }