Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
SmdBox
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 133b5c2e
由
sunke
编写于
2021-03-15 09:39:46 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
条码规则数量带小数点时解析失败的问题
1 个父辈
a20fc42c
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
18 行增加
和
6 行删除
myproject/src/main/java/com/myproject/util/BarcodeRule.java
myproject/src/main/java/com/myproject/webapp/controller/webService/StorageDataController.java
myproject/src/main/resources/StorageResources.properties
myproject/src/main/resources/StorageResources_en.properties
myproject/src/main/resources/StorageResources_jp.properties
myproject/src/main/resources/StorageResources_zh_CN.properties
myproject/src/main/webapp/WEB-INF/pages/storage/allBoxView.jsp
myproject/src/main/webapp/WEB-INF/pages/storage/batchBoxView.jsp
myproject/src/main/webapp/resources/admin/linePositions.csv
myproject/src/main/java/com/myproject/util/BarcodeRule.java
查看文件 @
133b5c2
...
...
@@ -109,7 +109,7 @@ public class BarcodeRule {
//不是字母和数字才可以作为分割符
String
separator
=
toRegexStr
(
c
+
""
);
if
(
trySeparator
.
indexOf
(
c
)
==
-
1
){
String
[]
ss
=
ruleStr
.
split
(
separator
);
String
[]
ss
=
ruleStr
.
split
(
separator
,-
1
);
if
(
ss
.
length
>
tempArr
.
length
){
trySeparator
=
c
+
trySeparator
;
...
...
@@ -369,7 +369,7 @@ public class BarcodeRule {
String
value
=
getStrValue
(
codeArr
);
if
(!
Strings
.
isNullOrEmpty
(
value
)){
try
{
return
Integer
.
valueOf
(
value
);
return
Float
.
valueOf
(
value
).
intValue
(
);
}
catch
(
Exception
ex
){
log
.
warn
(
value
+
" is not a validate int"
);
}
...
...
@@ -456,7 +456,7 @@ public class BarcodeRule {
}
String
[]
codeArr
=
new
String
[]{
codeStr
};
if
(!
Strings
.
isNullOrEmpty
(
separator
)){
codeArr
=
codeStr
.
split
(
separator
);
codeArr
=
codeStr
.
split
(
separator
,-
1
);
//条码与规则长度对应不上
if
(
codeArr
.
length
!=
length
){
log
.
info
(
"条码["
+
codeStr
+
"]与规则【"
+
ruleStr
+
"】长度不同"
);
...
...
@@ -643,6 +643,9 @@ public class BarcodeRule {
rule
=
"SP;PN;PRODATEyyw[0:4:0];BATCH;QTY;RI;"
;
//rule = "SP;PN;PRODATEyyyyMMdd[0:8:0];BATCH;QTY;RI;";
codeStr
=
"=7x8=[)>@SIIX20@2060GBUW00@1347-01358@5000.000 @@"
;
rule
=
"1@[RI]@BATCH@PN@QTY@@"
;
BarcodeRule
br
=
BarcodeRule
.
newRule
(
rule
);
Barcode
b
=
br
.
toCodeBean
(
codeStr
).
getBarcode
();
if
(
b
!=
null
){
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/StorageDataController.java
查看文件 @
133b5c2
...
...
@@ -505,9 +505,9 @@ public class StorageDataController extends BaseController {
String
opValue
=
request
.
getParameter
(
"opValue"
);
log
.
info
(
"界面执行操作:"
+
opKey
+
"="
+
opValue
);
addOp
(
cid
,
opKey
,
opValue
);
return
"OK"
+
getText
(
"shelf.msg.opSucess"
,
request
.
getLocale
(),
"操作成功"
);
return
"
0
OK"
+
getText
(
"shelf.msg.opSucess"
,
request
.
getLocale
(),
"操作成功"
);
}
return
""
;
return
"
1操作失败,未找到cid
"
;
}
/**
...
...
myproject/src/main/resources/StorageResources.properties
查看文件 @
133b5c2
...
...
@@ -393,6 +393,7 @@ workOrder.surplusExecute=surplus material executing
workOrder.surplusFinish
=
surplus material finished
workOrder.supplementaryExecute
=
supplementary materials executing
workOrder.supplementaryFinish
=
supplementary materials finished
workOrder.supplementary
=
Replenishment
storage.virtual.addPos
=
Add Position
storage.virtual.pnlimit
=
Limited Partnumber
...
...
myproject/src/main/resources/StorageResources_en.properties
查看文件 @
133b5c2
...
...
@@ -415,3 +415,4 @@ order.out.executing=The order is executing.
order.out.maxOrder
=
The maximum number of executable orders has been reached.
order.out.noTask
=
The order has no reel to out.
shelf.error.orderError
=
The task does not match the specified order [{0}].
workOrder.supplementary
=
Replenishment
myproject/src/main/resources/StorageResources_jp.properties
查看文件 @
133b5c2
...
...
@@ -414,3 +414,4 @@ order.out.executing=\u5F53\u524D\u5DE5\u5355\u6B63\u5728\u6267\u884C
order.out.maxOrder
=
\u
5DF2
\u
8FBE
\u6700\u5927\u
53EF
\u6267\u
884C
\u
5DE5
\u5355\u6570
order.out.noTask
=
\u
5DE5
\u5355\u
65E0
\u
53EF
\u6267\u
884C
\u7684\u
4EFB
\u
52A1
shelf.error.orderError
=
\u
4EFB
\u
52A1
\u
4E0E
\u6307\u
5B9A
\u
5DE5
\u5355
[{0}]
\u
4E0D
\u
4E00
\u
81F4
workOrder.supplementary
=
\u
88DC
\u5145
myproject/src/main/resources/StorageResources_zh_CN.properties
查看文件 @
133b5c2
...
...
@@ -414,3 +414,4 @@ component.plateSize.empty=\u6599\u76D8\u5C3A\u5BF8\u4E0D\u80FD\u4E3A\u7A7A
storage.chart.temperature
=
\u
6E29
\u
5EA6
error.barcode.wrongProduceDate
=
\u
751F
\u
4EA7
\u
65E5
\u
671F
\u
89E3
\u6790\u5931\u
8D25
shelf.error.orderError
=
\u
4EFB
\u
52A1
\u
4E0E
\u6307\u
5B9A
\u
5DE5
\u5355
[{0}]
\u
4E0D
\u
4E00
\u
81F4
workOrder.supplementary
=
\u8865\u6599
myproject/src/main/webapp/WEB-INF/pages/storage/allBoxView.jsp
查看文件 @
133b5c2
...
...
@@ -456,6 +456,7 @@
<fmt:message key="workOrder.surplusExecute" var="surplusExecute"/>
<fmt:message key="workOrder.supplementaryExecute" var="supplementaryExecute"/>
<fmt:message key="workOrder.supplementaryFinish" var="supplementaryFinish"/>
<fmt:message key="workOrder.supplementary" var="supplementary"/>
<c:set var="scripts" scope="request">
...
...
@@ -519,9 +520,10 @@
var table = $('#orderItemsTable').DataTable();
table.clear();
var btnStr = "${supplementaryFinish}";
for(var i in data){
var opStr = '<button class="btn yellow" onclick="checkoutByPartNumber(\''+data[i].pn+'\',\''+data[i].id+'\');"><i class="fa fa-upload"></i>
补料
</button>';
var opStr = '<button class="btn yellow" onclick="checkoutByPartNumber(\''+data[i].pn+'\',\''+data[i].id+'\');"><i class="fa fa-upload"></i>
'+btnStr+'
</button>';
// if(data[i].inventoryNum <= 0 || data[i].outFinished ){
// //已出完或库存不足
// opStr = "";
...
...
myproject/src/main/webapp/WEB-INF/pages/storage/batchBoxView.jsp
查看文件 @
133b5c2
...
...
@@ -296,8 +296,11 @@
var opKey = $(this).attr("id");
disableOptBtn(opKey);
$.post("${ctx}/service/store/saveOp", {opKey: opKey, cid: '${show}', opValue:'doit'}, function (data) {
showMsg(data);
waitting();
});
}else{
showMsg("1操作失败");
}
});
...
...
myproject/src/main/webapp/resources/admin/linePositions.csv
查看文件 @
133b5c2
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论