From f3047bc98b1ace53f1ee09beca82c3864bb5957e Mon Sep 17 00:00:00 2001 From: zjh <2207896513@qq.com> Date: 星期四, 05 六月 2025 21:10:48 +0800 Subject: [PATCH] 签收送货单api提交 --- StandardPda/MESApplication/Controllers/QC/LljController.cs | 66 ++++++++++++++++++++++++++++++-- 1 files changed, 61 insertions(+), 5 deletions(-) diff --git a/StandardPda/MESApplication/Controllers/QC/LljController.cs b/StandardPda/MESApplication/Controllers/QC/LljController.cs index ba87f37..7a81a79 100644 --- a/StandardPda/MESApplication/Controllers/QC/LljController.cs +++ b/StandardPda/MESApplication/Controllers/QC/LljController.cs @@ -1,4 +1,5 @@ -锘縰sing MES.Service.Dto.service; +锘縰sing Masuit.Tools; +using MES.Service.Dto.service; using MES.Service.Modes; using MES.Service.service.QC; using MES.Service.util; @@ -151,7 +152,6 @@ { var id = data["id"]?.ToString(); - var releaseNo = data["releaseNo"]?.ToString(); try { var tbBillList =new LljService().getYzxBDlist(id); @@ -170,6 +170,35 @@ } /// <summary> + /// 鑾峰彇妫�楠屽崟鎵�鏈変笉鑹弿杩� + /// </summary> + /// <param name="data"></param> + /// <returns></returns> + [HttpPost("getJYBlmsItem")] + public ResponseResult getJYBlmsItem([FromBody] JObject data) + { + + var id = data["id"]?.ToString(); + + try + { + var tbBillList = new LljService().getBlmsItem(id); + + return new ResponseResult + { + status = 0, + message = "OK", + data = tbBillList + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + + /// <summary> /// 淇濆瓨涓�鑷存�ф牳瀵归」鐩� /// </summary> /// <param name="data"></param> @@ -184,12 +213,13 @@ try { new LljService().saveYzxBDlist(id, dt); + string[] msg=new LljService().YzxImgVerify(id); return new ResponseResult { - status = 0, - message = "OK", - data = "ok" + status = int.Parse( msg[0]), + message = msg[1], + data = "" }; } catch (Exception ex) @@ -535,4 +565,30 @@ return ResponseResult.ResponseError(ex); } } + + /// <summary> + /// 閫佽揣鍗曠鏀跺苟鐢熸垚鍒拌揣鍗� + /// </summary> + /// <param name="id"></param> + /// <returns></returns> + [HttpPost("SignDelivery")] + public async Task<ResponseResult> SignDelivery(string id) + { + try + { + + //string[] msg = new LljService().SaveSysSubmit(sysSubmit); + string[] msg= await new LljService().SignDelivery(id); + return new ResponseResult + { + status = int.Parse(msg[0]), + message = msg[1], + data = msg[1] + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } } \ No newline at end of file -- Gitblit v1.9.3