From 823e5cae379ee1a259f79060ca0015d381c61f79 Mon Sep 17 00:00:00 2001 From: xwt <2740516069@qq.com> Date: 星期六, 16 八月 2025 08:32:11 +0800 Subject: [PATCH] 入库检,来料检显示权限 --- StandardInterface/MESApplication/Controllers/QcIssueResult/QcIssueResultController.cs | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/StandardInterface/MESApplication/Controllers/QcIssueResult/QcIssueResultController.cs b/StandardInterface/MESApplication/Controllers/QcIssueResult/QcIssueResultController.cs index d44123c..319a217 100644 --- a/StandardInterface/MESApplication/Controllers/QcIssueResult/QcIssueResultController.cs +++ b/StandardInterface/MESApplication/Controllers/QcIssueResult/QcIssueResultController.cs @@ -33,29 +33,29 @@ [HttpPost("GetProcessNo")] - public IActionResult StartDingtalkProcess([FromBody] GetQcIssueResultDetail getQcIssueResultDetail) + public IActionResult StartDingtalkProcess([FromBody] GetQcIssueResultDetail getQcIssueResultDetail, [FromQuery] string processType = "LLJ") { - + try { // 鏂板URL瑙g爜澶勭悊閫昏緫 DecodeUrlEncodedProperties(getQcIssueResultDetail); // 璋冪敤 QcIssueResultManager 涓殑 GetProcessNo 鏂规硶鏉ュ惎鍔ㄩ拤閽夊伐浣滄祦瀹炰緥 - string result = m.GetProcessNo(getQcIssueResultDetail); + string result = m.GetProcessNo(getQcIssueResultDetail, processType); - //string getLaboratoryDetailsJson = JsonConvert.SerializeObject(getQcIssueResultDetail, Formatting.Indented); - //Debug.WriteLine("getQcIssueResultDetail: " + getLaboratoryDetailsJson); + string getLaboratoryDetailsJson = JsonConvert.SerializeObject(getQcIssueResultDetail, Formatting.Indented); + Debug.WriteLine("getQcIssueResultDetail: " + getLaboratoryDetailsJson); - //string jsonPart = result.Substring(result.IndexOf("{")); - //JObject jsonObject = JObject.Parse(jsonPart); - //// 鎻愬彇instanceId鐨勫�� - //string instanceId = jsonObject["InstanceId"].ToString(); + string jsonPart = result.Substring(result.IndexOf("{")); + JObject jsonObject = JObject.Parse(jsonPart); + // 鎻愬彇instanceId鐨勫�� + string instanceId = jsonObject["InstanceId"].ToString(); - //dynamic resultInfos = new ExpandoObject(); - //string ProcessNo = instanceId; - //var save = m.SaveProcessNo(getQcIssueResultDetail.ReleaseNo, instanceId); - //resultInfos.tbBillList = save; + dynamic resultInfos = new ExpandoObject(); + string ProcessNo = instanceId; + var save = m.SaveProcessNo(getQcIssueResultDetail.ReleaseNo, instanceId, getQcIssueResultDetail.StaffNo, getQcIssueResultDetail.Department, getQcIssueResultDetail.IqcStatus); + resultInfos.tbBillList = save; return Ok(result); } -- Gitblit v1.9.3