Commit 52e8cd0e36cea622af745b0206db0e2c4c2083fa
1 parent
a147e979
实盘登记
Showing
5 changed files
with
30 additions
and
8 deletions
README.md
1 | 1 | 版本说明 |
2 | 2 | WMS_v2 |
3 | - 1. 入库 | |
4 | - 单据新建-0 | |
5 | - | |
3 | + | |
4 | + /*** | |
5 | + * 1.差异单页面 | |
6 | + * 盘点有差异之后生成差异单,差异单不做操作,展示,和生成调整单 | |
7 | + * | |
8 | + * 2.实盘登记页面, | |
9 | + * 做到盘点任务明细后面, | |
10 | + * 当员工确定容器,扫码物料,弹出选中已经生成的任务进行盘点登记, | |
11 | + * 可以扫码容器选中任务 | |
12 | + * 新增盘有按钮,可以新增一条盘点明细 | |
13 | + * | |
14 | + * | |
15 | + * 3.配置 | |
16 | + * 根据 容器多选,库位多选,巷道,物料多选,库存时间段,呆滞时间 | |
17 | + * 根据配置条件自动生成盘点单 | |
18 | + * 在盘点单下发任务时,重新查询库存,同步变更库存物料数量 | |
19 | + * 给一个自动生成盘点单按钮,定时扫描是否开启 | |
20 | + * | |
21 | + * | |
22 | + * 4.下发任务至WCS时做校验,是否同库位同容器已经有任务在执行 | |
23 | + * | |
24 | + * */ | |
6 | 25 | |
7 | 26 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/HuaHengServletInitializer.java
... | ... | @@ -34,7 +34,7 @@ public class HuaHengServletInitializer extends SpringBootServletInitializer |
34 | 34 | |
35 | 35 | public static void main(String[] args) |
36 | 36 | { |
37 | - SpringApplication.run(HuaHengApplication.class, args); | |
37 | + //SpringApplication.run(HuaHengServletInitializer.class, args); | |
38 | 38 | System.out.println("*************** 华恒WMS启动成功WAR ***************\n" + |
39 | 39 | " >>> WMS_Servlet启动成功! <<< \n"+ |
40 | 40 | " へ /|▓\n"+ |
... | ... |
src/main/java/com/huaheng/pc/inventory/adjustHeader/service/AdjustHeaderServiceImpl.java
... | ... | @@ -97,11 +97,14 @@ public class AdjustHeaderServiceImpl extends ServiceImpl<AdjustHeaderMapper, Adj |
97 | 97 | throw new SecurityException("选择单据类型为质检调整时,质检单编码不能为空!"); |
98 | 98 | } |
99 | 99 | break; |
100 | - case "adjust": //盘点调整 | |
100 | + case "cyclecountAdjust": //盘点调整 | |
101 | 101 | if(StringUtils.isEmpty(adjustHeader.getCycleCountCode())){ |
102 | 102 | throw new SecurityException("选择单据类型为盘点调整时,盘点单编码不能为空!"); |
103 | 103 | } |
104 | 104 | break; |
105 | + //除质检和调整需要前置单据,其他不需要 | |
106 | + default: | |
107 | + break; | |
105 | 108 | } |
106 | 109 | |
107 | 110 | adjustHeader.setCreated(new Date()); |
... | ... |
src/main/java/com/huaheng/pc/inventory/cycleCountDetail/service/CycleCountDetailServiceImpl.java
... | ... | @@ -358,12 +358,12 @@ public class CycleCountDetailServiceImpl extends ServiceImpl<CycleCountDetailMap |
358 | 358 | LambdaQueryWrapper<CycleCountHeader> cycleCountHeaderLambdaQueryWrapper = Wrappers.lambdaQuery(cycleCountHeader); |
359 | 359 | cycleCountHeader = cycleCountHeaderService.getOne(cycleCountHeaderLambdaQueryWrapper); //主单 |
360 | 360 | //任务执行后再实盘登记 |
361 | - if(cyclecountDetail.getEnableStatus() < QuantityConstant.CYCLECOUNT_STATUS_EXECUTING){ | |
361 | + /*if(cyclecountDetail.getEnableStatus() < QuantityConstant.CYCLECOUNT_STATUS_EXECUTING){ | |
362 | 362 | return AjaxResult.error("盘点任务未执行不能登记数量!"); |
363 | 363 | } |
364 | 364 | if(cyclecountDetail.getEnableStatus() == QuantityConstant.CYCLECOUNT_STATUS_COMPLETED){ |
365 | 365 | return AjaxResult.error("盘点任务完成后不能再登记数量!"); |
366 | - } | |
366 | + }*/ | |
367 | 367 | if(cycleCountHeader == null){ |
368 | 368 | return AjaxResult.error("主单据不存在"); |
369 | 369 | } |
... | ... |
src/main/resources/templates/inventory/cycleCountDetail/cycleCountDetail.html
... | ... | @@ -322,7 +322,7 @@ |
322 | 322 | align: 'center', |
323 | 323 | formatter: function (value, row, index) { |
324 | 324 | var actions = []; |
325 | - if(row.enableStatus >= 10 && row.enableStatus < 100){ | |
325 | + if(row.enableStatus >= 1 && row.enableStatus < 110){ | |
326 | 326 | actions.push('<a class="btn btn-success btn-xs ' + confirmFlag + '" href="#" onclick="confirmGapQty(\'' + row.id + '\')"><i class="fa fa-comment"></i>实盘登记</a> '); |
327 | 327 | } |
328 | 328 | if(row.enableStatus === 1 ){ |
... | ... |