You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.4 KiB
55 lines
1.4 KiB
2 years ago
|
namespace Win_in.Sfs.Wms.Pda.Controllers.Inventories;
|
||
|
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
|
||
|
using Newtonsoft.Json;
|
||
|
|
||
|
using Volo.Abp.Application.Dtos;
|
||
|
using Volo.Abp.AspNetCore.Mvc;
|
||
|
|
||
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
||
|
using Win_in.Sfs.Label.Application.Contracts;
|
||
|
using Win_in.Sfs.Label.Domain;
|
||
|
using Win_in.Sfs.Shared.Domain;
|
||
|
using Win_in.Sfs.Shared.Domain.Shared;
|
||
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts;
|
||
|
using Win_in.Sfs.Wms.Pda.Controllers.BaseDatas.Dtos;
|
||
|
using Win_in.Sfs.Wms.Pda.Models;
|
||
|
|
||
|
using JsonSerializer = System.Text.Json.JsonSerializer;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 采购标签控制器
|
||
|
/// </summary>
|
||
|
[ApiController]
|
||
|
[Route($"{PdaHostConst.ROOT_ROUTE}label/purchaselabel")]
|
||
|
public class PurchaseLabelController : AbpController
|
||
|
{
|
||
|
private readonly IPurchaseLabelService _labelAppService;
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
/// <param name="labelAppService"></param>
|
||
|
public PurchaseLabelController(
|
||
|
IPurchaseLabelService labelAppService)
|
||
|
{
|
||
|
this._labelAppService = labelAppService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 按标签号获取采购标签
|
||
|
/// </summary>
|
||
|
/// <param name="code">标签号</param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet("by-code")]
|
||
|
public virtual async Task<PurchaseLabelDto> GetByCode(string code)
|
||
|
{
|
||
|
return await _labelAppService.GetByCodeAsync(code);
|
||
|
}
|
||
|
}
|