| | |
| | | import com.zy.asrs.service.MobileService; |
| | | import com.zy.asrs.service.WaitPakinService; |
| | | import com.zy.common.web.BaseController; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @RequestMapping |
| | | @RestController |
| | | public class BarcodeMatnrController extends BaseController { |
| | |
| | | } |
| | | for (MatBarcode matBarcode : list) { |
| | | if (!matBarcode.getZpallet().equals(list.get(0).getZpallet())){ |
| | | log.info(matBarcode.getZpallet()); |
| | | log.info(list.get(0).getZpallet()); |
| | | throw new CoolException("请选择相同托盘码的数据"); |
| | | } |
| | | } |
| | |
| | | @RequestMapping(value = "/barcodeMatnr/add2/auth") |
| | | @ManagerAuth |
| | | public R clamp(WaitPakin waitPakin) { |
| | | if (Cools.isEmpty(waitPakin.getBarcode())||Cools.isEmpty(waitPakin.getModiUser())||Cools.isEmpty(waitPakin.getAnfme())){ |
| | | if (Cools.isEmpty(waitPakin.getBarcode())||Cools.isEmpty(waitPakin.getModiUser())){ |
| | | return R.error(BaseRes.PARAM); |
| | | } |
| | | Mat mat = matService.selectById(waitPakin.getModiUser()); |
| | |
| | | if (Cools.isEmpty(mat.getUnit())){ |
| | | return R.error(BaseRes.PARAM); |
| | | } |
| | | if (!mat.getUnit().startsWith("6")&&!mat.getUnit().startsWith("7")&&!mat.getUnit().startsWith("8")){ |
| | | throw new CoolException("托盘码首位不符合规范"); |
| | | } |
| | | if (mat.getUnit().length()!= 8){ |
| | | throw new CoolException("托盘码不是八位,请检查"); |
| | | } |
| | | matBarcodeService.addBarcodeMatnrTwo(mat); |
| | | return R.ok(); |
| | | } |
| | |
| | | // String deToken = Cools.deTokn(token, user.getPassword()); |
| | | // long timestamp = Long.parseLong(deToken.substring(0, 13)); |
| | | // 15分钟后过期 |
| | | if (System.currentTimeMillis() - userLogin.getCreateTime().getTime() > 900000){ |
| | | if (System.currentTimeMillis() - userLogin.getCreateTime().getTime() > 86400000){ |
| | | Http.response(response, BaseRes.DENIED); |
| | | return false; |
| | | } |
| | |
| | | } |
| | | String shallowLoc = Utils.getDeepLoc(slaveProperties, locMast1.getLocNo()); |
| | | LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", shallowLoc).eq("loc_sts", "O")); |
| | | if (!Cools.isEmpty(locMast2)) { |
| | | locMast = locMast2; |
| | | //LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locMast1.getLocNo()).eq("loc_sts", "O")); |
| | | if (Cools.isEmpty(locMast2)) { |
| | | locMast = locMast1; |
| | | break; |
| | | } |
| | | } |
| | |
| | | ,{field: 'brand', align: 'center',title: '品牌', hide: true} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: true} |
| | | ,{field: 'price', align: 'center',title: '单价', hide: true} |
| | | ,{field: 'sku', align: 'center',title: '简图', hide: false} |
| | | ,{field: 'sku', align: 'center',title: '简图', hide: true} |
| | | ,{field: 'units', align: 'center',title: '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: '条码', hide: true} |
| | | ,{field: 'origin', align: 'center',title: '产地', hide: true} |
| | |
| | | <a class="layui-btn layui-btn-xs btn-detlShow" lay-event="detlShow">明细</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-complete" lay-event="complete">完成</a> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-cancel" lay-event="cancel">取消</a> |
| | | <a class="layui-btn layui-btn-warm layui-btn-xs btn-pick" lay-event="priWrkMast">维护状态</a> |
| | | {{#if (d.ioType === 103) { }} |
| | | <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="priWrkMast">维护状态</a>--> |
| | | <!-- {{#if (d.ioType === 103) { }}--> |
| | | <!-- <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>--> |
| | | <!-- {{# } }}--> |
| | | </script> |
| | | |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |