按客户需求,页面添加显示字段,将15分钟改成5分钟
| | |
| | | if (Cools.isEmpty(barcode)) { |
| | | return R.ok(); |
| | | } |
| | | System.out.println(barcode); |
| | | if (!Cools.isEmpty(barcode)) { |
| | | List<WrkDetl> wrkDetls = wrkDetlService.selectList(new EntityWrapper<WrkDetl>().eq("zpallet", barcode)); |
| | | return R.ok().add(wrkDetls); |
| | |
| | | CombBillQueryVo vo = new CombBillQueryVo(); |
| | | vo.setMatnr(waitMatin.getMatnr()); |
| | | vo.setMatName(waitMatin.getMaktx()); |
| | | vo.setQty(waitMatin.getAnfme()); |
| | | vo.setQty(waitMatin.getAnfme() - waitMatin.getWorkQty()); |
| | | vo.setCount(waitMatin.getAnfme() - waitMatin.getWorkQty()); |
| | | vo.setBillNo(waitMatin.getOrderNo()); |
| | | vo.setSeqNo(waitMatin.getINo()); |
| | |
| | | ViewInOutBean bean = new ViewInOutBean(); |
| | | bean.setPageSize(limit); |
| | | bean.setPageNumber(curr); |
| | | if (!Cools.isEmpty(param.get("query_date"))) { |
| | | String queryDate = (String) param.get("query_date"); |
| | | String[] split = queryDate.split(" - "); |
| | | bean.setBegin_date(split[0]); |
| | | bean.setEnd_date(split[1]); |
| | | } |
| | | List<ViewInOutBean> list = reportQueryMapper.queryViewInOutList(bean); |
| | | int count = reportQueryMapper.getViewInOutCount(bean); |
| | | Page<ViewInOutBean> page = new Page<>(); |
| | |
| | | @TableField("packing") |
| | | private String packing; |
| | | |
| | | @TableField("ware_id") |
| | | private String wareId; |
| | | |
| | | @TableField("ware_name") |
| | | private String wareName; |
| | | |
| | | public String getLocNo$(){ |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 日出入库次数统计 |
| | | * @author admin |
| | | * @date 2018年11月24日 |
| | | */ |
| | | @Data |
| | | public class ViewInOutBean { |
| | | private String ymd; |
| | | private String source_sta_no; |
| | |
| | | @TableField("packing") |
| | | private String packing; |
| | | |
| | | @TableField("ware_id") |
| | | private String wareId; |
| | | |
| | | @TableField("ware_name") |
| | | private String wareName; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | @Transactional |
| | | public ReturnT<String> start(WrkMast wrkMast) { |
| | | try { |
| | | System.out.println(DateUtils.convert(new Date())); |
| | | List<WrkDetl> wrkDetls = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo()); |
| | | // 修改订单状态 作业中 ===>> 已完成 |
| | | if (!Cools.isEmpty(wrkDetls)) { |
| | |
| | | @Autowired |
| | | private OrderService orderService; |
| | | |
| | | @Autowired |
| | | private OrderDetlService orderDetlService; |
| | | |
| | | |
| | | @PostMapping("/pakin/loc/v1") |
| | | @ResponseBody |
| | |
| | | wrkDetl.setModiTime(now); |
| | | if (!Cools.isEmpty(waitPakin.getOrderNo())) { |
| | | Order order = orderService.selectByNo(waitPakin.getOrderNo()); |
| | | wrkDetl.setSPgNO(order.getTemp2()); |
| | | |
| | | if (order != null) { |
| | | OrderDetl orderDetl = orderDetlService.selectItem(order.getOrderNo(), waitPakin.getMatnr(), waitPakin.getBatch()); |
| | | if (orderDetl == null) { |
| | | orderDetl = orderDetlService.selectItem(order.getOrderNo(), waitPakin.getMatnr(), null); |
| | | } |
| | | wrkDetl.setSPgNO(order.getTemp2()); |
| | | wrkDetl.setOutOrderNo(orderDetl.getOutOrderNo()); |
| | | wrkDetl.setLuHao(orderDetl.getLuHao()); |
| | | wrkDetl.setPacking(orderDetl.getPacking()); |
| | | wrkDetl.setColor(orderDetl.getColor()); |
| | | wrkDetl.setWareId(orderDetl.getWareId()); |
| | | wrkDetl.setWareName(orderDetl.getWareName()); |
| | | } |
| | | } |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作明细失败"); |
| | |
| | | order = new Order( |
| | | String.valueOf(snowflakeIdWorker.nextId()), // 编号[非空] |
| | | inHedTB.getBillNo(), // 订单编号 |
| | | DateUtils.convert(inHedTB.getMakeDate()), // 单据日期 |
| | | DateUtils.convert(inHedTB.getBillDate()), // 单据日期 |
| | | docType.getDocId(), // 单据类型 |
| | | null, // 项目编号 |
| | | null, // |
| | |
| | | and asrsQty != erpQty |
| | | </if> |
| | | <if test="different != null and different == 0 "> |
| | | and asrsQty = erpQty |
| | | |
| | | </if> |
| | | <if test="matnr != null"> |
| | | AND matnr like #{matnr} |
| | | <if test="matnr != null and matnr != ''"> |
| | | AND matnr like '%' + #{matnr}+ '%' |
| | | </if> |
| | | <if test="maktx != null"> |
| | | AND maktx like #{maktx} |
| | | <if test="maktx != null and maktx != ''"> |
| | | AND maktx like '%' + #{maktx}+ '%' |
| | | </if> |
| | | <if test="specs != null"> |
| | | AND specs like #{specs} |
| | | <if test="specs != null and specs != ''"> |
| | | AND specs like '%' + #{specs}+ '%' |
| | | </if> |
| | | <if test="sPgNO != null"> |
| | | AND pgNO like #{sPgNO} |
| | | <if test="sPgNO != null and sPgNO != ''"> |
| | | AND pgNO like '%' + #{sPgNO} + '%' |
| | | </if> |
| | | <if test="outOrderNo != null"> |
| | | AND outOrderNo like #{outOrderNo} |
| | | <if test="outOrderNo != null and outOrderNo != ''"> |
| | | AND outOrderNo like '%' + #{outOrderNo} + '%' |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | select * from asr_wrk_mast |
| | | where wrk_sts=5 |
| | | or (wrk_sts=15 and ove_mk='Y' and wrk_no not in (select wrk_no from asr_bas_devp)) |
| | | or (wrk_sts=15 and dateadd(mi,15,crn_end_time) <= getdate() and wrk_no not in (select wrk_no from asr_bas_devp)) |
| | | or (wrk_sts=15 and dateadd(mi,5,crn_end_time) <= getdate() and wrk_no not in (select wrk_no from asr_bas_devp)) |
| | | or (wrk_sts=15 and crn_end_time is null and wrk_no not in (select wrk_no from asr_bas_devp)) |
| | | order by io_time,wrk_no asc |
| | | </select> |
| | |
| | | ,{field: 'model', align: 'center',title: '代码', hide: false} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称(品名)', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false} |
| | | ,{field: 'batch', align: 'center',title: '批次', sort:true} |
| | | ,{field: 'spgNO', align: 'center',title: '派工单号', sort:true} |
| | | ,{field: 'outOrderNo', align: 'center',title: '批次', sort:true} |
| | | ,{field: 'spgNO', align: 'center',title: '订单号', sort:true} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: false} |
| | | ,{field: 'anfme', align: 'center',title: '数量', hide: false} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码', hide: false} |
| | |
| | | ,{field: 'matnr', align: 'center',title: '商品编号', sort:true} |
| | | ,{field: 'model', align: 'center',title: '代码'} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称', sort:true} |
| | | ,{field: 'spgNO', align: 'center',title: '派工单号', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: true} |
| | | ,{field: 'batch', align: 'center',title: '批号', width: 300, sort:true} |
| | | ,{field: 'batch', align: 'center',title: '批号', width: 200, sort:true} |
| | | ,{field: 'outOrderNo', align: 'center',title: '订单号', hide: true} |
| | | ,{field: 'anfme', align: 'center',title: '数量'} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码'} |
| | | ,{field: 'specs', align: 'center',title: '规格'} |
| | |
| | | pageCurr = 1; |
| | | tableReload(false); |
| | | }); |
| | | // 搜索栏重置事件 |
| | | form.on('submit(reset)', function (data) { |
| | | pageCurr = 1; |
| | | clearFormVal($('#search-box')); |
| | | tableReload(false); |
| | | }); |
| | | layDate.render({ |
| | | elem: '.layui-laydate-range' |
| | | ,type: 'date' |
| | | ,range: true |
| | | }); |
| | | }); |
| | | |
| | | // 关闭动作 |
| | |
| | | |
| | | <!-- 搜索栏 --> |
| | | <div id="search-box" class="layui-form layui-card-header"> |
| | | <!--<div class="layui-inline">--> |
| | | <!--<label class="layui-form-label">库 位 号:</label>--> |
| | | <!--<div class="layui-input-inline">--> |
| | | <!--<input class="layui-input" type="text" name="id" placeholder="请输入" autocomplete="off">--> |
| | | <!--</div>--> |
| | | <!--</div>--> |
| | | |
| | | <!-- 待添加 --> |
| | | <!-- <div id="data-search-btn" class="layui-btn-container layui-form-item">--> |
| | | <!-- <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">搜索</button>--> |
| | | <!-- <button id="reset" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="reset">重置</button>--> |
| | | <!-- <div class="layui-inline">--> |
| | | <!-- <label class="layui-form-label">库 位 号:</label>--> |
| | | <!-- <div class="layui-input-inline">--> |
| | | <!-- <input class="layui-input" type="text" name="id" placeholder="请输入" autocomplete="off">--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | |
| | | <div class="layui-inline" style="width: 300px"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input layui-laydate-range" name="query_date" type="text" placeholder="起始时间 - 终止时间" autocomplete="off" style="width: 290px"> |
| | | </div> |
| | | </div> |
| | | <div id="data-search-btn" class="layui-btn-container layui-form-item"> |
| | | <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">搜索</button> |
| | | <button id="reset" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="reset">重置</button> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 表格 --> |