如洲 陈
9 天以前 6b3c4d87c500442f9774904c6a1117fe7cee5b5f
MESApplication/Controllers/QC/BaseController.cs
@@ -81,4 +81,55 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    //getByOqcFid
    [HttpPost("getByOqcFid")]
    public ResponseResult getByOqcFid([FromBody] JObject data)
    {
        var id = Convert.ToInt32(data["fid"].ToString());
        var qsType = data["qsType"].ToString();
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var tbBillList =
                new BaseService().getByOqcFid(id, qsType);
            resultInfos.tbBillList = tbBillList;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    //getByThjFid - 获取THJ退货检验的图片
    [HttpPost("getByThjFid")]
    public ResponseResult getByThjFid([FromBody] JObject data)
    {
        var id = Convert.ToInt32(data["fid"].ToString());
        var qsType = data["qsType"].ToString();
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var tbBillList =
                new BaseService().getByThjFid(id, qsType);
            resultInfos.tbBillList = tbBillList;
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
}