| | |
| | | case "1": |
| | | return "机械臂抓取中"; |
| | | case "2": |
| | | return "抓取完成"; |
| | | return "完成"; |
| | | // return "抓取完成"; |
| | | case "3": |
| | | return "任务完成"; |
| | | case "4": |
| | |
| | | case "1": |
| | | return "机械臂抓取中"; |
| | | case "2": |
| | | return "抓取完成"; |
| | | return "完成"; |
| | | // return "抓取完成"; |
| | | case "3": |
| | | return "任务完成"; |
| | | case "4": |
| | |
| | | @Service |
| | | public class MobileServiceImpl implements MobileService { |
| | | |
| | | |
| | | public static final List<Integer> OVER_TORN_STA_NO_LIST = new ArrayList<Integer>() {{ |
| | | add(126);add(131);add(310);add(312); |
| | | }}; |
| | | |
| | | @Autowired |
| | | private MatService matService; |
| | |
| | | wrkMast.setLinkMis("N"); |
| | | wrkMast.setAppeUser(userId); // 操作人员数据 |
| | | wrkMast.setSheetNo("0"); //徐工汉云拆垛标记:0: 初始 1: 未拆 2:已拆 3:已处理可下一步(转历史档) |
| | | if (wrkMast.getStaNo()<118 || wrkMast.getStaNo()>121){ |
| | | wrkMast.setSheetNo("3"); |
| | | if (!OVER_TORN_STA_NO_LIST.contains(staDesc.getStnNo())){ |
| | | wrkMast.setSheetNo("2"); |
| | | } |
| | | wrkMast.setAppeTime(now); |
| | | wrkMast.setModiUser(userId); |
| | |
| | | // 库位排号分配默认类别 |
| | | private static final int DEFAULT_ROW_NO_TYPE = 1; |
| | | |
| | | public static final List<Integer> OVER_TORN_STA_NO_LIST = new ArrayList<Integer>() {{ |
| | | add(126);add(131);add(310);add(312); |
| | | }}; |
| | | |
| | | @Autowired |
| | | private MatService matService; |
| | | @Autowired |
| | |
| | | wrkMast.setEmptyMk("N"); // 空板 |
| | | wrkMast.setLinkMis("N"); |
| | | wrkMast.setSheetNo("0"); |
| | | if (staDesc.getStnNo()<118 || staDesc.getStnNo()>121){ |
| | | wrkMast.setSheetNo("3"); |
| | | if (!OVER_TORN_STA_NO_LIST.contains(staDesc.getStnNo())){ |
| | | wrkMast.setSheetNo("2"); |
| | | } |
| | | wrkMast.setBarcode(locMast.getBarcode()); |
| | | wrkMast.setAppeUser(userId); // 操作人员数据 |
| | |
| | | wrkMast.setCrnEndTime(now); |
| | | wrkMast.setModiTime(now); |
| | | wrkMast.setModiUser(userId); |
| | | wrkMast.setSheetNo("3"); |
| | | wrkMast.setSheetNo("2"); |
| | | // 完成操作人员记录 |
| | | wrkMast.setManuType("手动完成"); |
| | | if (!wrkMastService.updateById(wrkMast)) { |
| | |
| | | return; |
| | | } |
| | | for (WrkMast wrkMast : wrkMasts) { |
| | | if (wrkMast.getIoType()>100 && (Cools.isEmpty(wrkMast.getSheetNo()) || !wrkMast.getSheetNo().equals("2"))){ |
| | | if (wrkMast.getIoType()==101 && (Cools.isEmpty(wrkMast.getSheetNo()) || !wrkMast.getSheetNo().equals("2"))){ |
| | | continue; |
| | | } |
| | | try{ |
| | |
| | | .orderBy("io_pri",false)); |
| | | for (WrkMast wrkMast:wrkMasts){ |
| | | if (wrkMast.getIoType()==101){ |
| | | BasDevp basDevp = basDevpService.selectById(115); |
| | | BasDevp basDevp = basDevpService.selectById(119); |
| | | if (basDevp.getLoading().equals("Y") |
| | | || !basDevp.getAutoing().equals("Y") |
| | | || (!Cools.isEmpty(basDevp.getWrkNo()) && basDevp.getWrkNo()!=0) ){ |
| | |
| | | ,{field: 'sourceLocNo$', align: 'center',title: '源库位'} |
| | | ,{field: 'locNo$', align: 'center',title: '目标库位'} |
| | | ,{field: 'barcode', align: 'center',title: '条码'} |
| | | ,{field: 'sheetNo$', align: 'center',title: '机械臂', hide: false} |
| | | ,{field: 'sheetNo$', align: 'center',title: '翻转', hide: false} |
| | | ,{field: 'preHave', align: 'center',title: '先入品', hide: true} |
| | | ,{field: 'takeNone', align: 'center',title: '空操作', hide: true} |
| | | // ,{field: 'picking', align: 'center',title: '拣料', templet:function(row){ |
| | |
| | | // ,{field: 'crnStrTime$', align: 'center',title: '堆垛机启动时间'} |
| | | // ,{field: 'crnEndTime$', align: 'center',title: '堆垛机停止时间'} |
| | | // ,{field: 'plcStrTime$', align: 'center',title: '拣料时间'} |
| | | ,{field: 'sheetNo$', align: 'center',title: '机械臂', hide: false} |
| | | ,{field: 'sheetNo$', align: 'center',title: '翻转', hide: false} |
| | | |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员', hide:true} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间', hide:true} |