| | |
| | | /// <param name="query">扫码请求参数</param> |
| | | /// <returns>ResponseResult对象,包含状态、消息和数据</returns> |
| | | /// // Demo Request: |
| | | // POST /api/WwGdController/ScanCode |
| | | // POST /api/WwGd/ScanCode |
| | | // Body: |
| | | // { |
| | | // "query": { |
| | |
| | | /// <param name="query">扫码确认请求参数</param> |
| | | /// <returns>ResponseResult对象,包含状态、消息和数据</returns> |
| | | /// // Demo Request: |
| | | // POST /api/WwGdController/ScanCodeCF |
| | | // POST /api/WwGd/ScanCodeCF |
| | | // Body: |
| | | // { |
| | | // "query": { |
| | |
| | | /// <param name="query">工单号请求参数</param> |
| | | /// <returns>ResponseResult对象,包含状态、消息和数据</returns> |
| | | // Demo Request: |
| | | // POST /api/WwGdController/GetItemsByDaa001 |
| | | // POST /api/WwGd/GetItemsByDaa001 |
| | | // Body: |
| | | // { |
| | | // "query": { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 委外工单退料扫码 |
| | | /// </summary> |
| | | /// <param name="barcode">条形码号</param> |
| | | /// <returns>ResponseResult对象,包含状态、消息和数据</returns> |
| | | // Demo Request: |
| | | // POST /api/WwGd/WwblScanBarcode |
| | | // Body: |
| | | // { |
| | | // 参数说明: |
| | | // - billNo: 单据号(必填) |
| | | // - barcode: 条码(必填) |
| | | // - userName: 用户名 |
| | | // - blNo: 补料单号(必填) |
| | | // } |
| | | [HttpPost("WwblScanBarcode")] |
| | | public ResponseResult WwblScanBarcode(WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | // 调用WwGdManager的WwblScanBarcode方法获取物料信息 |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.materialInfo = m.WwblScanBarcode(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | // 如果发生异常,返回错误信息 |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有 |
| | | /// </summary> |
| | | /// <returns></returns> |