盘料入库绑定周转箱(部分)
This commit is contained in:
1 parent
85a2ad05c3
commit
eeafb20012
7 files changed
+315
-425
No files matched your search
@@ -8,6 +8,8 @@ using HHWMS.Web;
|
||||
using HHWMS.Web.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
@@ -28,7 +30,7 @@ namespace HHWMS.Web.Controllers
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
/* [ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
public string Search(ReceiptDetailListVM vm)
|
||||
{
|
||||
@@ -36,23 +38,51 @@ namespace HHWMS.Web.Controllers
|
||||
vm.Searcher.Limit = vm.FC.GetValue<int>("Limit");
|
||||
vm.Searcher.ReceiptHeaderId = vm.FC.GetValue<int>("Code");
|
||||
return vm.GetJson(false);
|
||||
}*/
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult<dynamic> SelectReceiptCode()
|
||||
{
|
||||
var data = _unitwork.Find<ReceiptHeader>(x => x.FirstStatus < ReceiptStatusEnum.回传)
|
||||
.Select(x => new { label = x.Code, value = x.Code });
|
||||
return JsonMore(data);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult<dynamic> SelectReceipt(string Code)
|
||||
{
|
||||
var data = _unitwork.Find<ReceiptHeader>(x => x.Code == Code).Include(x => x.ReceiptDetails).FirstOrDefault();
|
||||
var result = data.ReceiptDetails;
|
||||
return JsonMore(result);
|
||||
if(data != null)
|
||||
{
|
||||
var result = data.ReceiptDetails.Select(x => new { name = x.MaterialCode });
|
||||
return JsonMore(result);
|
||||
}
|
||||
else
|
||||
{
|
||||
return JsonMore(null);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 入库盘料绑定操作
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public IActionResult Test(string Code, string code2, string code3, string code4)
|
||||
public dynamic BindingData(List<Binding> data)
|
||||
{
|
||||
return FFResult().Message("success");
|
||||
// 查找明细,修改对应状态,并且 绑定物料周转箱
|
||||
return new ApiJsonResult<object> { Success = true };
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
public class Binding
|
||||
{
|
||||
public string UniqueCode { get; set; }
|
||||
public string BoxCode { get; set; }
|
||||
public int Index { get; set; }
|
||||
public int Size { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user