Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
Gree
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 60d34fd3
由
sunke
编写于
2021-06-29 10:27:14 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
流水线在横移上锁定非紧急料架位,当返回码为99时,不放上托盘
需求单出库为0时关闭 执行队列页面显示绑定数量 取消任务时增加PN需求单判断 Http请求增加URLEncode
1 个父辈
dc411eff
全部展开
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
81 行增加
和
32 行删除
myproject/src/main/java/com/myproject/util/HttpHelper.java
myproject/src/main/java/com/myproject/util/QisdaApi.java
myproject/src/main/java/com/myproject/webapp/controller/qisda/util/OutInfoCache.java
myproject/src/main/java/com/myproject/webapp/controller/webService/GreeDeviceController.java
myproject/src/main/java/com/myproject/webapp/controller/webService/QisdaApiController.java
myproject/src/main/java/com/myproject/webapp/controller/webService/QisdaBindService.java
myproject/src/main/java/com/myproject/webapp/controller/webService/QisdaDeviceController.java
myproject/src/main/java/com/myproject/webapp/controller/webService/TaskService.java
myproject/src/main/webapp/WEB-INF/pages/component/storagePosFind.jsp
myproject/src/main/webapp/WEB-INF/pages/qisda/orderOut.jsp
myproject/src/main/webapp/WEB-INF/pages/qisda/outInfoSearch.jsp
myproject/src/main/webapp/decorators/metro.jsp
myproject/src/main/java/com/myproject/util/HttpHelper.java
查看文件 @
60d34fd
...
...
@@ -18,6 +18,7 @@ import org.apache.logging.log4j.util.Strings;
import
java.io.*
;
import
java.net.URL
;
import
java.net.URLConnection
;
import
java.net.URLEncoder
;
import
java.util.*
;
import
java.util.Map.Entry
;
...
...
@@ -41,7 +42,7 @@ public class HttpHelper {
// return postJson(url,params,null, "http");
// }
public
static
String
get
(
String
url
,
Hash
Map
<
String
,
String
>
params
)
throws
ApiException
{
public
static
String
get
(
String
url
,
Map
<
String
,
String
>
params
)
throws
ApiException
{
return
get
(
url
,
params
,
null
,
"http"
);
}
...
...
@@ -233,7 +234,7 @@ public class HttpHelper {
* 请求协议 "http" / "https"
* @return 服务器响应的请求结果
*/
public
static
String
get
(
String
url
,
Hash
Map
<
String
,
String
>
params
,
public
static
String
get
(
String
url
,
Map
<
String
,
String
>
params
,
HashMap
<
String
,
String
>
cookies
,
String
protocol
)
throws
ApiException
{
// if (protocol.equalsIgnoreCase("https")) {
// Protocol httpsProtocol = new Protocol("https", new SecureProtocolSocketFactoryImpl(), 443);
...
...
@@ -251,7 +252,9 @@ public class HttpHelper {
int
i
=
0
;
while
(
iterator
.
hasNext
())
{
Entry
<
String
,
String
>
entry
=
iterator
.
next
();
data
[
i
]
=
new
NameValuePair
(
entry
.
getKey
(),
entry
.
getValue
());
String
paramValue
=
entry
.
getValue
();
paramValue
=
URLEncoder
.
encode
(
paramValue
);
data
[
i
]
=
new
NameValuePair
(
entry
.
getKey
(),
paramValue
);
++
i
;
}
getMethod
.
setQueryString
(
data
);
...
...
myproject/src/main/java/com/myproject/util/QisdaApi.java
查看文件 @
60d34fd
此文件的差异被折叠,
点击展开。
myproject/src/main/java/com/myproject/webapp/controller/qisda/util/OutInfoCache.java
查看文件 @
60d34fd
...
...
@@ -1159,12 +1159,6 @@ public class OutInfoCache {
msg
=
"需求单"
+
hSerial
+
"任务分配完成,共["
+
outReelNum
+
"]盘任务"
;
log
.
info
(
msg
);
}
else
{
msg
=
"需求单"
+
outInfo
.
gethSerial
()+
"本次出库料盘数量为0"
;
if
(
outInfo
.
isEndOutInfo
()){
log
.
info
(
"需求单["
+
outInfo
.
gethSerial
()+
"]是工单的最后一个需求单,关闭工单"
+
outInfo
.
getSo
()+
"["
+
outInfo
.
getSoseq
()+
"]"
);
closeSoSeq
(
outInfo
.
getSoseq
());
}
}
if
(
outInfo
.
isReelCutAction
()
||
outInfo
.
isFirstReelAction
()){
...
...
@@ -1174,6 +1168,15 @@ public class OutInfoCache {
QisdaApi
.
VMILocationOutFeedback
(
outItemList
,
lessBind
);
}
}
if
(
outReelNum
==
0
){
msg
=
"需求单"
+
outInfo
.
gethSerial
()+
"本次出库料盘数量为0"
;
if
(
outInfo
.
isEndOutInfo
()){
log
.
info
(
"需求单["
+
outInfo
.
gethSerial
()+
"]是工单的最后一个需求单,关闭工单"
+
outInfo
.
getSo
()+
"["
+
outInfo
.
getSoseq
()+
"]"
);
closeSoSeq
(
outInfo
.
getSoseq
());
}
else
{
closeHSerial
(
outInfo
.
gethSerial
());
}
}
return
ResultBean
.
newOkResult
(
msg
,
"ok"
);
}
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/GreeDeviceController.java
查看文件 @
60d34fd
...
...
@@ -65,7 +65,6 @@ public class GreeDeviceController {
}
}
String
hSerial
=
QisdaCache
.
getCurrentOrderHSerial
();
List
<
String
>
usedRfidList
=
InquiryShelfBean
.
getUsedRfidList
(
hSerial
);
Map
<
String
,
Integer
>
rfidMap
=
new
HashMap
<>();
if
(!
Strings
.
isBlank
(
rfids
))
{
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/QisdaApiController.java
查看文件 @
60d34fd
...
...
@@ -130,6 +130,8 @@ public class QisdaApiController extends BaseController {
OutInfo
outInfo
=
outInfoCache
.
getOutInfoFromCache
(
hSerial
);
if
(!
Strings
.
isNullOrEmpty
(
line
)
&&
outInfo
!=
null
){
outInfo
.
setLine
(
line
);
outInfo
.
setSdate
(
new
Date
());
outInfo
.
setMdate
(
new
Date
());
outInfoCache
.
updateOutInfo
(
outInfo
);
return
ResultBean
.
newOkResult
(
outInfo
);
}
else
{
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/QisdaBindService.java
查看文件 @
60d34fd
此文件的差异被折叠,
点击展开。
myproject/src/main/java/com/myproject/webapp/controller/webService/QisdaDeviceController.java
查看文件 @
60d34fd
...
...
@@ -171,6 +171,8 @@ public class QisdaDeviceController extends BaseController {
try
{
String
rfid
=
request
.
getParameter
(
"rfid"
);
//是否是在横移上判断
String
onMoving
=
request
.
getParameter
(
"onMoving"
);
String
codeStr
=
request
.
getParameter
(
"barcode"
);
Barcode
barcode
=
dataCache
.
resolveOneValideBarcode
(
codeStr
);
DataLog
task
=
taskService
.
getFinishedTask
(
barcode
.
getBarcode
());
...
...
@@ -199,9 +201,9 @@ public class QisdaDeviceController extends BaseController {
AppendInfo
appendInfo
=
task
.
getAppendInfo
();
ShelfLoc
shelfLoc
=
InquiryShelfBean
.
lockShelfLoc
(
task
,
rfid
);
if
(
shelfLoc
==
null
){
String
msg
=
"获取料架["
+
rfid
+
"]位置信息失败"
;
log
.
info
(
msg
);
return
ResultBean
.
newErrorResult
(
202
,
msg
);
String
msg
=
task
.
getBarcode
()
+
"获取料架["
+
rfid
+
"]位置信息失败"
;
//
log.info(msg);
return
ResultBean
.
newErrorResult
(
99
,
msg
);
}
String
rfidToSave
=
shelfLoc
.
getRealRfid
();
...
...
@@ -214,8 +216,10 @@ public class QisdaDeviceController extends BaseController {
appendInfo
.
setRfidLoc
(
shelfLoc
.
getLoc
());
task
.
setAppendInfo
(
appendInfo
);
if
(!
Boolean
.
valueOf
(
onMoving
)){
task
.
setStatus
(
StorageConstants
.
OP_STATUS
.
INROBOT
.
name
());
task
.
setLocInfo
(
""
);
}
task
=
dataLogDao
.
save
(
task
);
taskService
.
updateFinishedTask
(
task
);
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/TaskService.java
查看文件 @
60d34fd
...
...
@@ -843,7 +843,7 @@ public class TaskService implements ITaskService {
QisdaApi
.
VMIMateriaRecAss
(
task
,
barcode
,
latest
);
}
}
}
else
if
(
taskAppendInfo
.
isUrgentAction
()
||
taskAppendInfo
.
isReelCutAction
()){
}
else
if
(
taskAppendInfo
.
isUrgentAction
()
||
taskAppendInfo
.
isReelCutAction
()
||
taskAppendInfo
.
isPnAction
()
){
//紧急料或分盘料,增加任务完成数量
log
.
info
(
"紧急料或分盘料["
+
task
.
getBarcode
()+
"]任务已出库完成,发料任务完成数量+1"
);
outInfoCache
.
incTaskFinishNum
(
taskAppendInfo
.
gethSerial
(),
0
,
0
);
...
...
myproject/src/main/webapp/WEB-INF/pages/component/storagePosFind.jsp
查看文件 @
60d34fd
...
...
@@ -211,11 +211,11 @@
<%--</display:column>--%>
<security:authorize ifAnyGranted="ROLE_MANAGE_STACK_OUT, ROLE_MANAGE_FEEDER">
<display:column titleKey="checkOut.operate" media="html">
<
%--<c:if test="${!limitCheckOut}">--%
>
<
c:if test="${!limitCheckOut}"
>
<button class="btn yellow limit${pos.barcode.inFixture}" id="btn${pos.id}"
onclick="checkoutStorage('${pos.id}')">
<i class="fa fa-sign-out"></i><fmt:message key="button.checkout"/></button>
<
%--</c:if>--%
>
<
/c:if
>
</display:column>
</security:authorize>
<c:if test="${limitCheckOut}">
...
...
myproject/src/main/webapp/WEB-INF/pages/qisda/orderOut.jsp
查看文件 @
60d34fd
...
...
@@ -75,7 +75,7 @@
<h4 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#executing" href="#priorityOrder">
<i class="icon-cursor-move"></i>
[首盘] 需求单: 808 工单: 879235
备料单: F001_879235N_1
<span class="right">建议时间: 2019-11-18 08:59</span>
[首盘] 需求单: 808 工单: 879235 <span class="right">建议时间: 2019-11-18 08:59</span>
</a>
</h4>
</div>
...
...
@@ -101,7 +101,7 @@
<h4 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#executing" href="#priorityOrder">
<i class="icon-cursor-move"></i>
[首盘] 需求单: 808 工单: 879235
备料单: F001_879235N_1
<span class="right">建议时间: 2019-11-18 08:59</span>
[首盘] 需求单: 808 工单: 879235 <span class="right">建议时间: 2019-11-18 08:59</span>
</a>
</h4>
</div>
...
...
@@ -144,10 +144,10 @@
'<h4 class="panel-title">' +
'<a class="accordion-toggle" data-toggle="collapse" href="#'+outInfo.hSerial+'">' +
moveHandle + //outInfo.firstExecuteTime +
'需求单:'+ outInfo.hSerial+' ['+outInfo.action+'] 工单: ' + outInfo.so +' 线别: ' + outInfo.line + '
工单序号:' + outInfo.soseq
+
'需求单:'+ outInfo.hSerial+' ['+outInfo.action+'] 工单: ' + outInfo.so +' 线别: ' + outInfo.line + '
绑定:' + outInfo.totalBindNum
+
'<span class="right">创建时间: '+createDate+'</span>' +
'<span class="right">建议时间: '+sdate+'</span>' +
'<span class="right">必须时间: '+mdate+'</span>' +
//
'<span class="right">必须时间: '+mdate+'</span>' +
//'<span class="right">['+outInfo.firstExecuteTime+']</span>' +
'</a></h4></div>' +
'<div id="'+outInfo.hSerial+'" class="panel-collapse collapse">' +
...
...
@@ -159,9 +159,9 @@
'<li><i class="fa fa-star"></i>必须出仓日期:'+mdate+'</li>' +
'<li><i class="fa fa-star"></i>创建时间:'+createDate+'</li>' +
'</ul>' +
'<h4 class="list-inline '+bgClass+'">' +
'线体['+outInfo.line+']未解绑料架信息: '+outInfo.lineBindShelfInfo+'' +
'</h4>' +
//
'<h4 class="list-inline '+bgClass+'">' +
//
'线体['+outInfo.line+']未解绑料架信息: '+outInfo.lineBindShelfInfo+'' +
//
'</h4>' +
'</div></div></div></div>';
return infoHtml;
}
...
...
@@ -174,6 +174,9 @@
for(var i in data){
var outInfo = data[i];
if(outInfo.line == '' || outInfo.line == null){
continue;
}
var infoHtml = getOutInfoHtml(outInfo);
if(outInfo.executing || outInfo.sendLess || outInfo.firstExecuteTime > 0){
executingHtml = executingHtml + infoHtml;
...
...
myproject/src/main/webapp/WEB-INF/pages/qisda/outInfoSearch.jsp
查看文件 @
60d34fd
...
...
@@ -89,6 +89,10 @@
<c:if test="${outInfo.endOutInfo}">
<c:set var="endOutInfoClass" value="bg-yellow"/>
</c:if>
<c:set var="closedClass" value=""/>
<c:if test="${outInfo.closed}">
<c:set var="closedClass" value="closed"/>
</c:if>
<display:column titleKey="需求单号" sortable="true" sortProperty="hSerial" media="html">
<a href="#" onclick="showDetail('${outInfo.hSerial}')">${outInfo.hSerial}</a>
</display:column>
...
...
@@ -100,11 +104,11 @@
<display:column titleKey="线别" sortable="true" sortProperty="line" media="html">
<span id="${outInfo.hSerial}Line">${outInfo.line}</span>
<c:if test="${outInfo.firstExecuteTime <=0}">
[<a href="#" onclick="changeLine('${outInfo.hSerial}')">编辑</a>]
<a href="#" onclick="changeLine('${outInfo.hSerial}')">[编辑]</a>
</c:if>
</display:column>
<
display:column titleKey="备料单号" property="refno" sortable="true" sortProperty="refno"/
>
<
%--<display:column titleKey="备料单号" property="refno" sortable="true" sortProperty="refno"/>--%
>
<display:column titleKey="建议出仓时间" sortable="true" sortProperty="sdate">
<fmt:formatDate value="${outInfo.sdate}" pattern="yyyy-MM-dd HH:mm"/>
</display:column>
...
...
@@ -116,16 +120,21 @@
${outInfo.taskFinishNum}/${outInfo.taskNum}
</display:column>
<display:column titleKey="绑定数量" sortable="true" sortProperty="totalBindNum">
<display:column titleKey="绑定数量" sortable="true" sortProperty="totalBindNum"
class="${closedClass}"
>
${outInfo.totalBindNum}
<%--<c:if test="${!outInfo.closed}">--%>
<%--<a href="#" class="right" onclick="closeOut('${outInfo.hSerial}')" id="${outInfo.hSerial}Btn">--%>
<%--[<fmt:message key="关闭"/>]--%>
<%--</a>--%>
<%--</c:if>--%>
</display:column>
<display:column titleKey="创建时间" sortable="true" sortProperty="createDate">
<display:column titleKey="创建时间" sortable="true" sortProperty="createDate"
>
<fmt:formatDate value="${outInfo.createDate}" pattern="yyyy-MM-dd HH:mm"/>
</display:column>
<
display:column titleKey="更新时间" sortable="true" sortProperty="updateDate"
>
<
fmt:formatDate value="${outInfo.updateDate}" pattern="yyyy-MM-dd HH:mm"/
>
<
/display:column
>
<
%--<display:column titleKey="更新时间" sortable="true" sortProperty="updateDate">--%
>
<
%--<fmt:formatDate value="${outInfo.updateDate}" pattern="yyyy-MM-dd HH:mm"/>--%
>
<
%--</display:column>--%
>
<display:column titleKey="需求时间" sortable="true" sortProperty="taskNeedOutDate">
<fmt:formatDate value="${outInfo.taskNeedOutDate}" pattern="yyyy-MM-dd HH:mm"/>
...
...
@@ -315,6 +324,27 @@
});
}
closeOut = function(hSerial){
Lobibox.confirm({
title: "确认",
msg: "确定要关闭并解绑需求单["+hSerial+"]吗?",
callback: function ($this, type, ev) {
if(type == 'yes'){
$.post("${ctx}/service/store/qisda/closeHSerial", {hSerial: hSerial}, function (data) {
if(data){
Lobibox.alert("success",
{
msg: data
});
var btnId = "#" +hSerial + "Btn";
$(btnId).hide();
}
});
}
}
});
}
changeLine = function (hSerial){
$("#hSerialToModify").val(hSerial);
var oldLine = $("#lineToModify").text();
...
...
@@ -343,6 +373,11 @@
});
});
$(".closed").each(function(){
var oldClass = $(this).parent().attr("class");
$(this).parents("tr").attr("class",oldClass + " font-grey");
});
});
</script>
</c:set>
\ No newline at end of file
myproject/src/main/webapp/decorators/metro.jsp
查看文件 @
60d34fd
...
...
@@ -237,9 +237,9 @@
<!-- BEGIN FOOTER -->
<div
class=
"page-footer"
>
<div
class=
"page-footer-inner"
>
2016
©
<a
href=
"
${ctx}/updateHistory.html
"
>
SMD BOX
</a>
2016
©
<a
href=
""
>
SMD BOX
</a>
</div>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version: 1.
5.2118
</span>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version: 1.
6.2910
</span>
<div
class=
"scroll-to-top"
>
<i
class=
"icon-arrow-up"
></i>
</div>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论