| | |
| | | return workService.stockTransfer(number, getUserId()); |
| | | } |
| | | |
| | | @RequestMapping("/stock/check") |
| | | @ManagerAuth(memo = "库存盘点") |
| | | public R stockCheck(@RequestBody StoCheckParam param) { |
| | | return workService.stockCheck(param, getUserId()); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package zy.cloud.wms.manager.entity.param; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Created by vincent on 2021/3/24 |
| | | */ |
| | | @Data |
| | | public class StoCheckParam { |
| | | } |
| | |
| | | |
| | | R stockTransfer(String number, Long userId); |
| | | |
| | | R stockCheck(StoCheckParam param, Long userId); |
| | | |
| | | } |
| | |
| | | return R.error("暂不缺货,不需要立库调拨"); |
| | | } |
| | | |
| | | @Override |
| | | public R stockCheck(StoCheckParam param, Long userId) { |
| | | |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
| | |
| | | <footer> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" id="reset-btn" class="layui-btn layui-btn-primary" onclick="reset()">重置</button> |
| | | <button type="button" id="comb-btn" class="layui-btn layui-btn-normal " onclick="comb()" style="margin-left: 20px">组托</button> |
| | | <button type="button" id="comb-btn" class="layui-btn layui-btn-normal " onclick="check()" style="margin-left: 20px">确认</button> |
| | | <span id="tips"></span> |
| | | </div> |
| | | </footer> |
| | |
| | | tableIns.reload({data: locDetlData}); |
| | | } |
| | | |
| | | // 组托 |
| | | function comb() { |
| | | // 确认 |
| | | function check() { |
| | | var barcode = $('#code').val(); |
| | | if (isEmpty(barcode)) { |
| | | tips("托盘条码为空", true); |
| | |
| | | } |
| | | var billNo = $('#billNo').val(); |
| | | $.ajax({ |
| | | url: baseUrl+"/mobile/comb/auth", |
| | | url: baseUrl+"/work/stock/check", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify({ |
| | | barcode: barcode, |