啊鑫
2025-03-08 89802b03b21c3ad2e45a2ac690629189c2036349
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System.Dynamic;
using MES.Service.Dto.service;
using MES.Service.service.Warehouse;
using MES.Service.util;
using Microsoft.AspNetCore.Mvc;
 
namespace MESApplication.Controllers.Warehouse;
 
[ApiController]
[Route("api/[controller]")]
public class OpeningReceiptController : ControllerBase
{
    private readonly OpeningReceiptServer m = new();
 
    [HttpPost("ScanInBarcodeQC")]
    public ResponseResult ScanInBarcodeQC(WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.ScanInBarcodeQC(query);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
 
    [HttpPost("GetForm")]
    public ResponseResult GetForm(WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetForm(query);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
}