| | |
| | | |
| | | #endregion |
| | | |
| | | #region 生产超领 |
| | | |
| | | /// <summary> |
| | | /// 获取生产超领单号列表 |
| | | /// </summary> |
| | | /// <returns>超领单号列表</returns> |
| | | /// <response code="200">成功获取超领单号列表</response> |
| | | /// <response code="400">获取失败</response> |
| | | [HttpPost("GetSccList")] |
| | | public ResponseResult GetSccList(WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = _manager.GetSccList(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取生产超领单明细 |
| | | /// </summary> |
| | | /// <param name="query">查询参数,必须包含billNo</param> |
| | | /// <returns>超领单明细列表</returns> |
| | | /// <remarks> |
| | | /// 请求示例: |
| | | /// POST /api/MesItemBl/GetMesItemBlDetailBySccBillNo |
| | | /// { |
| | | /// "billNo": "SC202401010001" |
| | | /// } |
| | | /// </remarks> |
| | | /// <response code="200">成功获取超领单明细</response> |
| | | /// <response code="400">获取失败,返回具体错误信息</response> |
| | | [HttpPost("GetMesItemBlDetailBySccBillNo")] |
| | | public ResponseResult GetMesItemBlDetailBySccBillNo( |
| | | [FromBody] WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = |
| | | _manager.GetMesItemBlDetailBySccBillNo(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 生产超领扫描条码1 |
| | | /// </summary> |
| | | /// <param name="query">查询参数</param> |
| | | /// <returns>扫描结果和待处理列表</returns> |
| | | /// <remarks> |
| | | /// 请求示例: |
| | | /// POST /api/MesItemBl/ScanBarcodeForOverPicking |
| | | /// { |
| | | /// "billNo": "WO202401010001", |
| | | /// "barcode": "1234567890", |
| | | /// "userName": "admin", |
| | | /// "blNo": "SC202401010001" |
| | | /// } |
| | | /// </remarks> |
| | | /// <response code="200">扫描成功</response> |
| | | /// <response code="400">扫描失败,返回具体错误信息</response> |
| | | [HttpPost("ScanBarcodeForOverPicking")] |
| | | public ResponseResult ScanBarcodeForOverPicking( |
| | | [FromBody] WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | var (success, pendingList) = |
| | | _manager.ScanBarcodeForOverPicking(query); |
| | | resultInfos.success = success; |
| | | resultInfos.pendingList = pendingList; |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | [HttpPost("PrintBarcodeForOverPicking")] |
| | | public ResponseResult PrintForOverPicking(WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | var (success, pendingList) = |
| | | _manager.PrintBarcodeForOverPicking(query); |
| | | resultInfos.success = success; |
| | | resultInfos.pendingList = pendingList; |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | } |