signalr 取消,长时间会有问题,打开浏览器会白屏

对接erp,接口 线边任务完成根据detailid,分入库 出库报工
todo 成品的报工(定时器回传 or 入库/拣货的时候回传)
This commit is contained in:
zhougf committed 2025-12-30 21:20:06 +08:00
1 parent 00119151c9
commit c3ec557c4d
19 files changed
+403 -362

No files matched your search

@@ -267,7 +267,7 @@ namespace HHWMS.Web.Controllers
// 调用 ERP 接口获取该订单的最新数据
var request = new LoadMoDetailListRequest
{
ErpCode = "999",
ErpCode = "002",
MoCode = receiptCode, // 使用生产订单号查询
Size = 100,
Page = 1
@@ -60,7 +60,7 @@ namespace HHWMS.Web.Controllers
{
var request = new LoadInventoryRequest
{
ErpCode = "999",
ErpCode = "002",
InvDefine1 = keyword,
Size = 15,
Page = 1
@@ -185,7 +185,8 @@ namespace HHWMS.Web.Controllers
[HttpPost]
public IActionResult GetOperators()
{
var users = _unitWork.Find<FrameworkUser>(x => x.ITCode != "Admin")
var users = _unitWork.Find<FrameworkUser>(x => x.ITCode != "Admin"
&& x.ITCode.Length > 5)
.Select(x => new
{
value = x.ITCode,
@@ -443,13 +444,13 @@ namespace HHWMS.Web.Controllers
// 调用WCS任务下发接口
// tran.Commit();
// return Json(new { Code = 200, Msg = "入库成功", Data = new { TaskNo = taskNo } });
// var wcsResult = Wtm
// .CallAPI<WCSTaskResponse>("WCSXB", "TaskAssign", HttpMethodEnum.POST, wcsTaskModel).Result.Data;
var wcsResult = new WCSTaskResponse()
{
Success = true,
Msg = "Success"
};
var wcsResult = Wtm
.CallAPI<WCSTaskResponse>("WCSXB", "TaskAssign", HttpMethodEnum.POST, wcsTaskModel).Result.Data;
// var wcsResult = new WCSTaskResponse()
// {
// Success = true,
// Msg = "Success"
// };
if (wcsResult != null && wcsResult.Success)
{
// WCS任务下发成功,提交事务
@@ -191,7 +191,8 @@ namespace HHWMS.Web.Controllers
BatchCode = batchCode,
TaskStatus = InventoryTaskStatusEnum.Locked,
CreateTime = DateTime.Now,
CreateBy = Wtm.LoginUserInfo.ITCode
CreateBy = Wtm.LoginUserInfo.ITCode,
UploadErpFlag = 0
};
_unitWork.Add(inventory);
@@ -33,17 +33,17 @@ namespace HHWMS.Web
//this.MakeGridHeader(x => x.Code_view),
//this.MakeGridHeader(x => x.ZoneCode),
this.MakeGridHeader(x => x.MaterialCode),
//this.MakeGridHeader(x => x.MaterialType),
this.MakeGridHeader(x => x.MaterialType),
// this.MakeGridHeader(x => x.Batch),
this.MakeGridHeader(x => x.MaterialName),
//this.MakeGridHeader(x => x.MaterialSpec),
this.MakeGridHeader(x => x.MaterialUnit),
this.MakeGridHeader(x => x.Batch),
//this.MakeGridHeader(x => x.Lot).SetHide(),
//this.MakeGridHeader(x => x.ManufactureDate),
//this.MakeGridHeader(x => x.ExpirationDate),
//this.MakeGridHeader(x => x.CompanyCode),
this.MakeGridHeader(x => x.SupplierCode),
this.MakeGridHeader(x => x.CompletedQty),
// this.MakeGridHeader(x => x.CompletedQty),
this.MakeGridHeader(x => x.Qty),
//this.MakeGridHeader(x => x.InventoryStatus),
this.MakeGridHeader(x => x.Status)
@@ -38,12 +38,12 @@ namespace HHWMS.Web
{
InitVM();
return new List<GridColumn<ReceiptHeader_View>>{
//this.MakeGridHeader(x => x.SourceCode),
this.MakeGridHeader(x => x.Code).SetFormat((a,b) =>
{
string rv = UIService.MakeScriptButton(ButtonTypesEnum.Link,a.Code,$"details('{a.ID}')");
return rv;
}),
this.MakeGridHeader(x => x.SourceCode),
this.MakeGridHeader(x => x.BillType)
.SetFormat((a, b) =>
{
@@ -75,7 +75,7 @@
<template #operations="{ record }">
<a-space>
<a-button type="text" status="danger" @@click="handleDelete(record)">删除</a-button>
<a-button type="text" @@click="handleEdit(record)">修改</a-button>
@* <a-button type="text" @@click="handleEdit(record)">修改</a-button> *@
<a-button type="text" @@click="handleDeduct(record)">扣料</a-button>
</a-space>
</template>