南骏 池
3 天以前 20dda69cad210c3b40d643e52ba1cbccec24b392
Controllers/Warehouse/MesItemTblController.cs
@@ -169,12 +169,12 @@
    /// </summary>
    /// <returns>退料单号列表</returns>
    [HttpPost("GetSCTLBillNo")]
    public ResponseResult GetSCTLBillNo()
    public ResponseResult GetSCTLBillNo(WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetSCTLBillNo();
            resultInfos.tbBillList = m.GetSCTLBillNo(query);
            return new ResponseResult
            {
                status = 0,
@@ -201,6 +201,17 @@
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetMesItemTblDetailByBillNo(query);
            //if(resultInfos.tbBillList.Count < 1)
            //{
            //    return new ResponseResult
            //    {
            //        status = 1,
            //        message = "该申请单号不存在或未审核!!!",
            //        data = ""
            //    };
            //}
            return new ResponseResult
            {
                status = 0,
@@ -263,4 +274,29 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    /// <summary>
    ///     委外退料扫描条码
    /// </summary>
    /// <param name="query">查询参数</param>
    /// <returns>扫描结果</returns>
    [HttpPost("WwtlScanBarcode")]
    public ResponseResult WwtlScanBarcode([FromBody] WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.SctlScanBarcode(query);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
}