打印修改,发布修改

This commit is contained in:
霍尔 committed 2023-09-17 18:53:57 +08:00
1 parent 85b6d3a0ee
commit c494b7b1ef
6 files changed
+26 -15

No files matched your search

@@ -54,13 +54,20 @@ namespace HHWMS.Web.Controllers
}
else
{
var prefix = code.Split("@")[1].Substring(2);
var unique = _unitwork.GetSerialNumber(prefix, 8);
var uniqueCode = prefix + unique;
if (string.IsNullOrEmpty(material.UniqueCode))
{
var prefix = code.Split("@")[1].Substring(2);
var unique = _unitwork.GetSerialNumber(prefix, 8);
var uniqueCode = prefix + unique;
material.UniqueCode = uniqueCode;
return JsonMore(uniqueCode);
material.UniqueCode = uniqueCode;
_unitwork.Update(material);
return JsonMore(uniqueCode);
}
else
{
return JsonMore(material.UniqueCode);
}
}
}
}
@@ -30,7 +30,7 @@
{
"options": {
"left": 0,
"top": 0,
"top": 2,
"height": 38,
"width": 84,
"field": "code",
@@ -39,10 +39,10 @@
"printElements": [
{
"options": {
"left": 15,
"top": 5,
"height": 44,
"width": 54,
"left": 0,
"top": 2,
"height": 52,
"width": 81,
"title": "",
"field": "uniqueCode",
"testData": "",