定时器修改
This commit is contained in:
zgf committed 2023-11-20 16:33:20 +08:00
1 parent ba8fd9e53b
commit 26d46cad00
6 files changed
+346 -198

No files matched your search

@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using HHWMS.Web.Models;
using ICSharpCode.SharpZipLib.Core;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WalkingTec.Mvvm.Core;
@@ -26,6 +27,9 @@ namespace HHWMS.Web.Controllers
[ActionDescription("Sys.Search")]
public ActionResult Index()
{
var inv = _unitwork.Find<Inventory>(x => x.TaskStatus != InventoryTaskStatus.任务中)
.ToList()
.GroupBy(x => x.ContainerCode);
var vm = Wtm.CreateVM<ContainerListVM>();
return PartialView(vm);
}
@@ -56,6 +60,7 @@ namespace HHWMS.Web.Controllers
else
{
var materialQrList = new List<MaterialQr>();
var printList = new List<dynamic>();
for (int i = 0; i < num; i++)
{
var prefix = code.Split("@")[1].Substring(2);
@@ -69,9 +74,14 @@ namespace HHWMS.Web.Controllers
CreateTime = DateTime.Now,
CreateBy = Wtm.LoginUserInfo.ITCode
});
printList.Add(new
{
UniqueCode = uniqueCode,
Batch = material.Batch
});
}
_unitwork.BatchAdd(materialQrList.ToArray());
return JsonMore(materialQrList);
return JsonMore(printList);
}
}
}
@@ -8,7 +8,7 @@
</el-col>
<el-col :span="8">
<el-input v-model.number="num"
placeholder="请输入数量">
placeholder="请输入数量" readonly>
</el-input>
</el-col>
<el-col :span="4">
@@ -78,7 +78,7 @@
data: { code: _this.qrcode },
url: "/configs/Print/ScanCode",
success: function (json) {
console.log(json);
// console.log(json);
if (json.Code != 200) {
_this.$message({
message: "扫描失败!" + json.Msg,
@@ -86,6 +86,7 @@
duration: "10000",
});
}
_this.printData = [];
},
error: function (json) {
_this.$message({
@@ -130,12 +131,14 @@
return;
}
else{
console.log(json);
// console.log(json);
json.Data.forEach(function (item) {
_this.gendCode += item.UniqueCode + '\n';
_this.gendCode += item.Batch + '\n';
_this.printData.push({ uniqueCode: item.UniqueCode });
_this.printData.push({ uniqueCode: item.Batch });
});
}
},
error: function (json) {
@@ -156,7 +159,7 @@
template: this.template
})
hiprintTemplate.print(this.printData);
_this.printData = [];
// _this.printData = [];
//清空
_this.qrcode = '';
_this.unm = 1;