Commit a8b4dfe2 zshaohui

页面功能优化提交

1 个父辈 e0a539c9
package com.neotel.smfcore.core.dashboard.bean.dto.first;
import com.neotel.smfcore.core.system.service.po.DataLog;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
public class ElecKanbanBoxStatusDto {
......@@ -44,4 +48,7 @@ public class ElecKanbanBoxStatusDto {
* 湿度
*/
public String humidity = "";
private List<DataLog> taskList = new ArrayList<>();
}
......@@ -236,6 +236,12 @@ public class SmdBoxMimoController {
dto.setTodayInCount(inCount);
dto.setTodayOutCount(outCount);
dto.setName(storage.getName());
Collection<DataLog> queueTasks = taskService.getQueueTasks(cid);
if (queueTasks != null){
dto.setTaskList((List<DataLog>) queueTasks);
} else {
dto.setTaskList(new ArrayList<>());
}
resultList.add(dto);
}
return resultList;
......
......@@ -99,6 +99,11 @@ public class TaskService {
return task;
}
public synchronized String checkout(Storage storage, StoragePos pos, boolean isSingleOut,boolean ngReel, String opUserName,String outType) throws ValidateException{
return checkout(storage,pos,isSingleOut,ngReel,opUserName,outType,"");
}
/**
* 库位出库
*
......@@ -108,7 +113,7 @@ public class TaskService {
* @return
* @throws ValidateException
*/
public synchronized String checkout(Storage storage, StoragePos pos, boolean isSingleOut,boolean ngReel, String opUserName,String outType) throws ValidateException {
public synchronized String checkout(Storage storage, StoragePos pos, boolean isSingleOut,boolean ngReel, String opUserName,String outType,String ngMsg) throws ValidateException {
if (pos.getBarcode() == null) {
String msg = "库位[" + pos.getPosName() + "]中已无物料,忽略";
log.info(msg);
......@@ -123,6 +128,9 @@ public class TaskService {
task.setSingleOut(isSingleOut);
task.setNgReel(ngReel);
task.setOperator(opUserName);
if (StringUtils.isNotBlank(ngMsg)){
task.updateAppendData("ngMsg",ngMsg);
}
addTaskToExecute(task);
return "";
}
......@@ -853,8 +861,8 @@ public class TaskService {
//如果已在库位中,那么自动将该库位的物料出库
log.info("出库已在库位中的物料[" + barcodeSave.getBarcode() + "]");
Storage storage = dataCache.getStorageById(pos.getStorageId());
checkout(storage, pos, true, "");
//checkout(storage, pos, true, "");
checkout(storage,pos,true,true,"","",barcodeSave.getBarcode()+"已存在库位:"+pos.getPosName());
throw new ValidateException("smfcore.error.barcode.exist", "[{0}}]已在{1}}[{2}}]中", new String[]{barcodeSave.getBarcode(), storage.getName(), pos.getPosName()});
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!