| | |
| | | import com.zy.asrs.entity.param.StockOutParam; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.service.WorkService; |
| | | import com.zy.asrs.service.WrkMastService; |
| | | import com.zy.common.model.StartupDto; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private WorkService workService; |
| | | @Autowired |
| | | private BasDevpService basDevpService; |
| | | @Autowired |
| | | private WrkMastService wrkMastService; |
| | | |
| | | @RequestMapping("/available/put/site") |
| | | @ManagerAuth() |
| | |
| | | return R.ok("任务重新入库,目标库位:" + locNo); |
| | | } |
| | | |
| | | @RequestMapping("/deal/steNo/empty") |
| | | @ManagerAuth(memo = "清除小车") |
| | | public R dealSteNoEmpty(@RequestParam Integer wrkNo) { |
| | | return wrkMastService.setSteEmpty(wrkNo)?R.ok():R.error(); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Update; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | |
| | | |
| | | WrkMast selectBySourceLocNoOfPakout(@Param("sourceLocNo") String sourceLocNo); |
| | | |
| | | @Update("update asr_wrk_mast set ste_no = null where wrk_no = #{wrkNo}") |
| | | int setSteEmpty(Integer wrkNo); |
| | | |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | int getStoreCount(Integer crnNo); |
| | | |
| | | Boolean setSteEmpty(Integer wrkNo); |
| | | } |
| | |
| | | .last(" and (wrk_sts in (1,2) or (wrk_sts=3 and wrk_no in (select wrk_no from asr_bas_devp)))")); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean setSteEmpty(Integer wrkNo) { |
| | | return this.baseMapper.setSteEmpty(wrkNo) > 0; |
| | | } |
| | | |
| | | } |
| | |
| | | ,{field: 'staNo$', align: 'center',title: '目标站'} |
| | | ,{field: 'sourceLocNo$', align: 'center',title: '源库位'} |
| | | ,{field: 'locNo$', align: 'center',title: '目标库位'} |
| | | ,{field: 'steNo', align: 'center',title: '小车', width: 70} |
| | | ,{field: 'barcode', align: 'center',title: '条码'} |
| | | ,{field: 'preHave', align: 'center',title: '先入品', hide: true} |
| | | ,{field: 'takeNone', align: 'center',title: '空操作', hide: true} |
| | |
| | | layer.confirm('任务发送空操作异常!是否。。。。。。。。?', {title: '工作号:'+data.wrkNo, shadeClose: true}, function(){ |
| | | }); |
| | | break; |
| | | // 弃车 |
| | | case 'removeSte': |
| | | layer.confirm('清除小车【' + data.steNo + '】', {title: '工作号:'+data.wrkNo, shadeClose: true}, function(){ |
| | | http.post(baseUrl+"/deal/steNo/empty", {wrkNo: data.wrkNo}, function (res) { |
| | | $(".layui-laypage-btn")[0].click(); |
| | | layer.msg(data.wrkNo + res.msg, {icon: 1}); |
| | | }) |
| | | layer.closeAll(); |
| | | }); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | |
| | | <a class="layui-btn layui-btn-warm layui-btn-xs btn-pick" lay-event="pick">拣</a> |
| | | {{# } }} |
| | | {{#if (d.ioType === 107) { }} |
| | | <a class="layui-btn layui-btn-warm layui-btn-xs btn-pick" lay-event="pick">盘</a> |
| | | <a class="layui-btn layui-btn-warm layui-btn-xs btn-pick" lay-event="pick">盘</a> |
| | | {{# } }} |
| | | {{#if (d.steNo) { }} |
| | | <a class="layui-btn layui-btn-warm layui-btn-xs btn-pick" lay-event="removeSte">弃车</a> |
| | | {{# } }} |
| | | </script> |
| | | |