| | |
| | | @ApiModelProperty(value= "通道") |
| | | private Integer channel; |
| | | |
| | | @ApiModelProperty(value= "冻结") |
| | | private Integer freeze; |
| | | |
| | | |
| | | public String getWhsType$(){ |
| | | BasWhsService service = SpringUtils.getBean(BasWhsService.class); |
| | |
| | | } |
| | | } |
| | | |
| | | public String getFreeze$() { |
| | | if (null == this.freeze){ return null; } |
| | | switch (this.freeze){ |
| | | case 0: |
| | | return "正常"; |
| | | case 1: |
| | | return "冻结"; |
| | | default: |
| | | return String.valueOf(this.locType3); |
| | | } |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | |
| | | |
| | | //PACK状态 |
| | | private Integer packSts; |
| | | //步骤 |
| | | private Integer stepSts; |
| | | |
| | | // 单据编号 |
| | | private String orderNo; |
| | |
| | | if (!locMastService.update(locMast,new EntityWrapper<LocMast>().eq("loc_no", testMast.getLocNo()))){ |
| | | log.error("申请测试失败"); |
| | | } |
| | | //3.开始测试上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(locMast.getBarcode()); |
| | | combParam.setLocNo(locMast.getLocNo()); |
| | | combParam.setPackSts(0); |
| | | combParam.setStepSts(3); |
| | | combParam.setRequestTime(DateUtils.convert(now)); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | |
| | | } |
| | | @Override |
| | |
| | | } |
| | | if (targetLocNo != null){ |
| | | workService.locMove(locMast.getLocNo(),targetLocNo.getLocNo(),(long)Integer.parseInt(testMast.getUserId())); |
| | | //4.测试完成上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(locMast.getBarcode()); |
| | | combParam.setLocNo(locMast.getLocNo()); |
| | | combParam.setPackSts(2); |
| | | combParam.setStepSts(4); |
| | | combParam.setRequestTime(DateUtils.convert(new Date())); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | return SUCCESS; |
| | | }else { |
| | | log.error("测试完成自动移库--->没有空库位!"); |
| | |
| | | if (targetLocNo != null){ |
| | | //生成出库任务 |
| | | if (outLoc(locMast)){ |
| | | //4.测试完成上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(locMast.getBarcode()); |
| | | combParam.setLocNo(locMast.getLocNo()); |
| | | combParam.setPackSts(1); |
| | | combParam.setStepSts(4); |
| | | combParam.setRequestTime(DateUtils.convert(new Date())); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | return SUCCESS; |
| | | } |
| | | }else { |
| | |
| | | } |
| | | if (targetLocNo != null){ |
| | | workService.locMove(locMast.getLocNo(),targetLocNo.getLocNo(),(long)Integer.parseInt(testMast.getUserId())); |
| | | //4.测试完成上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(locMast.getBarcode()); |
| | | combParam.setLocNo(locMast.getLocNo()); |
| | | combParam.setPackSts(1); |
| | | combParam.setStepSts(4); |
| | | combParam.setRequestTime(DateUtils.convert(new Date())); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | return SUCCESS; |
| | | }else { |
| | | log.error("测试完成自动移库--->没有空库位!"); |
| | |
| | | .eq("fire_status", 0) |
| | | .eq("loc_sts", "F") |
| | | .eq("loc_type1",(short)2) |
| | | .eq("pack_status", 5)); |
| | | .eq("pack_status", 5) |
| | | .eq("freeze",0)); |
| | | Integer ioType = 101; //入出库类型 |
| | | //静置完成出库站104 |
| | | for(LocMast locMast : locMasts){ |
| | |
| | | combParam.setPackNo(locMast.getBarcode()); |
| | | combParam.setLocNo(locMast.getLocNo()); |
| | | combParam.setPackSts(6); |
| | | combParam.setStepSts(1); |
| | | combParam.setRequestTime(DateUtils.convert(new Date())); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | |
| | |
| | | throw new CoolException("更改测试状态失败"); |
| | | } |
| | | } |
| | | //2.入库完成上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(wrkMast.getBarcode()); |
| | | combParam.setLocNo(wrkMast.getLocNo()); |
| | | if (locMast.getCrnNo()==1){ |
| | | combParam.setPackSts(0); |
| | | combParam.setStepSts(2); |
| | | }else{ |
| | | combParam.setPackSts(1); |
| | | combParam.setStepSts(5); |
| | | } |
| | | |
| | | combParam.setRequestTime(DateUtils.convert(now)); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | if (!locMastService.updateById(locMast)) { |
| | | // exceptionHandle("全板入库 ===>> 修改库位状态失败;[workNo={0}],[locNo={1}]", wrkMast.getWrkNo(), wrkMast.getLocNo()); |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | |
| | | locMast.setModiTime(now); |
| | | locMast.setFireStatus(0); |
| | | |
| | | boolean sign =false; |
| | | if (locMast.getLocType1().equals(sourceLoc.getLocType1())){ |
| | | locMast.setPackStatus(packStatus); |
| | | }else if (locMast.getLocType1().equals((short)1) && sourceLoc.getLocType1().equals((short)3)){ |
| | |
| | | }else { |
| | | locMast.setPackStatus(5); //5:静置中 |
| | | } |
| | | sign=true; |
| | | if (locMast.getLocType1()==1 && sourceLoc.getLocType1()==2){ |
| | | TestMast testMast = testMastService.selectOne(new EntityWrapper<TestMast>() |
| | | .eq("loc_no",sourceLoc.getLocNo()) |
| | |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return FAIL.setMsg("库位移转 ===>> 修改目标库位状态失败; [workNo=" + wrkMast.getWrkNo() + "],[locNo=" + wrkMast.getLocNo() + "]"); |
| | | } |
| | | if (locMast.getCrnNo()==1 && sign){ |
| | | //5.静置库位入库完成上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(wrkMast.getBarcode()); |
| | | combParam.setLocNo(wrkMast.getLocNo()); |
| | | if (locMast.getPackStatus()==4){ |
| | | combParam.setPackSts(2); |
| | | }else if (locMast.getPackStatus()==5){ |
| | | combParam.setPackSts(1); |
| | | }else { |
| | | combParam.setPackSts(0); |
| | | } |
| | | combParam.setStepSts(5); |
| | | combParam.setRequestTime(DateUtils.convert(now)); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | } |
| | | break; |
| | | default: |
| | | break; |
| | |
| | | if (!locMastService.updateById(locMast)){ |
| | | throw new CoolException("改变库位状态失败"); |
| | | }else{ |
| | | //1.扫码上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(locMast.getBarcode()); |
| | | combParam.setLocNo(locMast.getLocNo()); |
| | | combParam.setPackSts(1); |
| | | combParam.setRequestTime(DateUtils.convert(new Date())); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | if (locMast.getRow1()<3){ |
| | | //1.扫码上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(wrkMast.getBarcode()); |
| | | combParam.setLocNo(wrkMast.getLocNo()); |
| | | combParam.setPackSts(0); |
| | | combParam.setStepSts(1); |
| | | combParam.setRequestTime(DateUtils.convert(now)); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | } |
| | | } |
| | | } else { |
| | | throw new CoolException(dto.getLocNo()+"目标库位已被占用"); |
| | |
| | | <result column="fire_status" property="fireStatus" /> |
| | | <result column="pack_status" property="packStatus" /> |
| | | <result column="channel" property="channel" /> |
| | | <result column="freeze" property="freeze" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | ,{field: 'packStatus$', align: 'center',title: '产品状态', hide:false} |
| | | ,{field: 'locType1$', align: 'center',title: '库位类型'} |
| | | ,{field: 'locType2$', align: 'center',title: '测试设备号'} |
| | | ,{field: 'freeze$', align: 'center',title: '冻结状态'} |
| | | // ,{field: 'whsType$', align: 'center',title: '库位类型'} |
| | | // ,{field: 'pltType', align: 'center',title: ''} |
| | | // ,{field: 'ctnType', align: 'center',title: ''} |
| | |
| | | fireNo: $('#fireNo').val(), |
| | | fireStatus: $('#fireStatus').val(), |
| | | packStatus: $('#packStatus').val(), |
| | | freeze: $('#freeze').val(), |
| | | }; |
| | | $.ajax({ |
| | | url: baseUrl+"/locMast/"+name+"/auth", |
| | |
| | | ,{field: 'packStatus$', align: 'center',title: '产品状态', width: 90, style: 'color: #8E2323'} |
| | | ,{field: 'locType1$', align: 'center',title: '库位类型'} |
| | | ,{field: 'locType2$', align: 'center',title: '测试设备号'} |
| | | ,{field: 'freeze$', align: 'center',title: '冻结状态',width: 90} |
| | | // ,{field: 'whsType$', align: 'center',title: '库位类型'} |
| | | // ,{field: 'crnNo', align: 'center',title: '堆垛机号'} |
| | | ,{field: 'row1', align: 'center',title: '排'} |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:80%;"> |
| | | <label class="layui-form-label"><span class="not-null">*</span>冻结状态:</label> |
| | | <div class="layui-input-inline"> |
| | | <select id="freeze" class="layui-input" type="text"> |
| | | <!-- <option style="display: none"></option>--> |
| | | <option value="0">正常</option> |
| | | <option value="1">冻结</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:31%;display: none"> |
| | | <label class="layui-form-label">:</label> |
| | | <div class="layui-input-inline"> |