Commit 47f8ee491fcdf00b076e0e999a673c6fcab2dba0
Merge remote-tracking branch 'origin/develop' into develop
Showing
22 changed files
with
305 additions
and
846 deletions
src/main/java/com/huaheng/pc/config/alarmLevel/controller/AlarmLevelController.java
... | ... | @@ -41,7 +41,7 @@ public class AlarmLevelController extends BaseController { |
41 | 41 | |
42 | 42 | private String prefix = "config/alarmLevel"; |
43 | 43 | |
44 | - @RequiresPermissions("config:containerCapacity:view") | |
44 | + @RequiresPermissions("config:alarmLevel:view") | |
45 | 45 | @GetMapping() |
46 | 46 | public String containerCapacity() |
47 | 47 | { |
... | ... | @@ -125,7 +125,7 @@ public class AlarmLevelController extends BaseController { |
125 | 125 | * 修改保存预警等级 |
126 | 126 | */ |
127 | 127 | @ApiOperation(value="修改预警等级信息", notes="修改预警等级信息", httpMethod = "POST") |
128 | - @RequiresPermissions("config:warehouse:edit") | |
128 | + @RequiresPermissions("config:alarmLevel:edit") | |
129 | 129 | @Log(title = "配置-预警等级 ",operating = "修改预警等级 ", action = BusinessType.UPDATE) |
130 | 130 | @PostMapping("/edit") |
131 | 131 | @ResponseBody |
... | ... | @@ -138,7 +138,7 @@ public class AlarmLevelController extends BaseController { |
138 | 138 | * 删除预警等级 |
139 | 139 | */ |
140 | 140 | @ApiOperation(value="删除预警等级 ", notes="单条删除或批量删除预警等级 ,示例1或1,2,3", httpMethod = "POST") |
141 | - @RequiresPermissions("config:receiptType:remove") | |
141 | + @RequiresPermissions("config:alarmLevel:remove") | |
142 | 142 | @Log(title = "配置-预警等级 ",operating = "删除预警等级 ", action = BusinessType.DELETE) |
143 | 143 | @PostMapping( "/remove") |
144 | 144 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/config/receiptPreference/controller/ReceiptPreferenceController.java
... | ... | @@ -64,9 +64,7 @@ public class ReceiptPreferenceController extends BaseController { |
64 | 64 | .eq(StringUtils.isNotEmpty(receiptPreference.getName()), |
65 | 65 | ReceiptPreference::getName, receiptPreference.getName()) |
66 | 66 | .like(StringUtils.isNotEmpty(receiptPreference.getReceivingFlow()), |
67 | - ReceiptPreference::getReceivingFlow, receiptPreference.getReceivingFlow()) | |
68 | - .eq(StringUtils.isNotEmpty(receiptPreference.getReceiptTypes()), | |
69 | - ReceiptPreference::getReceiptTypes, receiptPreference.getReceiptTypes()); | |
67 | + ReceiptPreference::getReceivingFlow, receiptPreference.getReceivingFlow()); | |
70 | 68 | |
71 | 69 | if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){ |
72 | 70 | /*使用分页查询*/ |
... | ... |
src/main/java/com/huaheng/pc/config/receiptPreference/domain/ReceiptPreference.java
... | ... | @@ -6,23 +6,29 @@ import com.baomidou.mybatisplus.annotation.TableId; |
6 | 6 | import com.baomidou.mybatisplus.annotation.TableName; |
7 | 7 | import io.swagger.annotations.ApiModel; |
8 | 8 | import io.swagger.annotations.ApiModelProperty; |
9 | -import lombok.Data; | |
10 | - | |
11 | 9 | import java.io.Serializable; |
12 | 10 | import java.util.Date; |
11 | +import lombok.Data; | |
13 | 12 | |
14 | -@ApiModel(value="com.huaheng.pc.config.receiptPreference.domain.ReceiptPreference",description="入库首选项") | |
15 | -@TableName(value = "receipt_preference") | |
13 | +@ApiModel(value="com.huaheng.pc.config.receiptPreference.domain.ReceiptPreference") | |
16 | 14 | @Data |
15 | +@TableName(value = "receipt_preference") | |
17 | 16 | public class ReceiptPreference implements Serializable { |
18 | 17 | /** |
19 | 18 | * ID |
20 | 19 | */ |
21 | - @TableId(value = "id", type = IdType.AUTO) | |
20 | + @TableId(value = "id", type = IdType.AUTO) | |
22 | 21 | @ApiModelProperty(value="ID") |
23 | 22 | private Integer id; |
24 | 23 | |
25 | 24 | /** |
25 | + * 仓库 | |
26 | + */ | |
27 | + @TableField(value = "warehouseCode") | |
28 | + @ApiModelProperty(value="仓库") | |
29 | + private String warehouseCode; | |
30 | + | |
31 | + /** | |
26 | 32 | * 首选项代码 |
27 | 33 | */ |
28 | 34 | @TableField(value = "code") |
... | ... | @@ -41,13 +47,6 @@ public class ReceiptPreference implements Serializable { |
41 | 47 | private String receivingFlow; |
42 | 48 | |
43 | 49 | /** |
44 | - * 仓库 | |
45 | - */ | |
46 | - @TableField(value = "warehouseCode") | |
47 | - @ApiModelProperty(value="仓库") | |
48 | - private String warehouseCode; | |
49 | - | |
50 | - /** | |
51 | 50 | * 自动生成托盘号 |
52 | 51 | */ |
53 | 52 | @TableField(value = "autoAssignLPN") |
... | ... | @@ -83,13 +82,6 @@ public class ReceiptPreference implements Serializable { |
83 | 82 | private Integer showOpenQty; |
84 | 83 | |
85 | 84 | /** |
86 | - * 入库单类型 | |
87 | - */ | |
88 | - @TableField(value = "receiptTypes") | |
89 | - @ApiModelProperty(value="入库单类型") | |
90 | - private String receiptTypes; | |
91 | - | |
92 | - /** | |
93 | 85 | * RF组车收货 |
94 | 86 | */ |
95 | 87 | @TableField(value = "groupPutaway") |
... | ... | @@ -104,11 +96,18 @@ public class ReceiptPreference implements Serializable { |
104 | 96 | private Integer manuallyBuildLPN; |
105 | 97 | |
106 | 98 | /** |
107 | - * 定位规则动态指派 | |
99 | + * 定位规则 | |
100 | + */ | |
101 | + @TableField(value = "locationRule") | |
102 | + @ApiModelProperty(value="定位规则") | |
103 | + private String locationRule; | |
104 | + | |
105 | + /** | |
106 | + * 空库位规则 | |
108 | 107 | */ |
109 | - @TableField(value = "ruleAssignment") | |
110 | - @ApiModelProperty(value="定位规则动态指派") | |
111 | - private String ruleAssignment; | |
108 | + @TableField(value = "emptyLocRule") | |
109 | + @ApiModelProperty(value="空库位规则") | |
110 | + private String emptyLocRule; | |
112 | 111 | |
113 | 112 | /** |
114 | 113 | * RF逐件收货 |
... | ... | @@ -125,6 +124,34 @@ public class ReceiptPreference implements Serializable { |
125 | 124 | private Integer pieceConfirm; |
126 | 125 | |
127 | 126 | /** |
127 | + * abc分类 0 否 1是 | |
128 | + */ | |
129 | + @TableField(value = "abcClass") | |
130 | + @ApiModelProperty(value="abc分类 0 否 1是") | |
131 | + private String abcClass; | |
132 | + | |
133 | + /** | |
134 | + * 保质期(天) | |
135 | + */ | |
136 | + @TableField(value = "daysToExpire") | |
137 | + @ApiModelProperty(value="保质期(天)") | |
138 | + private Integer daysToExpire; | |
139 | + | |
140 | + /** | |
141 | + * 临期预警(天) | |
142 | + */ | |
143 | + @TableField(value = "expiringDays") | |
144 | + @ApiModelProperty(value="临期预警(天)") | |
145 | + private Integer expiringDays; | |
146 | + | |
147 | + /** | |
148 | + * 收货预警(天) | |
149 | + */ | |
150 | + @TableField(value = "minShelfLifeDays") | |
151 | + @ApiModelProperty(value="收货预警(天)") | |
152 | + private Integer minShelfLifeDays; | |
153 | + | |
154 | + /** | |
128 | 155 | * RF快速上架 |
129 | 156 | */ |
130 | 157 | @TableField(value = "allowQuickPutaway") |
... | ... | @@ -132,6 +159,13 @@ public class ReceiptPreference implements Serializable { |
132 | 159 | private Integer allowQuickPutaway; |
133 | 160 | |
134 | 161 | /** |
162 | + * 属性模板 | |
163 | + */ | |
164 | + @TableField(value = "attributeTemplateCode") | |
165 | + @ApiModelProperty(value="属性模板") | |
166 | + private String attributeTemplateCode; | |
167 | + | |
168 | + /** | |
135 | 169 | * 快速入库 |
136 | 170 | */ |
137 | 171 | @TableField(value = "useQuickCheckIn") |
... | ... | @@ -236,4 +270,5 @@ public class ReceiptPreference implements Serializable { |
236 | 270 | @ApiModelProperty(value="处理标记") |
237 | 271 | private String processStamp; |
238 | 272 | |
273 | + private static final long serialVersionUID = 1L; | |
239 | 274 | } |
240 | 275 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/config/receiptPreference/service/ReceiptPreferenceService.java
1 | 1 | package com.huaheng.pc.config.receiptPreference.service; |
2 | 2 | |
3 | -import com.baomidou.mybatisplus.extension.service.IService; | |
4 | 3 | import org.springframework.stereotype.Service; |
4 | +import javax.annotation.Resource; | |
5 | +import java.util.List; | |
5 | 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
6 | 7 | import com.huaheng.pc.config.receiptPreference.mapper.ReceiptPreferenceMapper; |
7 | 8 | import com.huaheng.pc.config.receiptPreference.domain.ReceiptPreference; |
8 | - | |
9 | 9 | @Service |
10 | -public class ReceiptPreferenceService extends ServiceImpl<ReceiptPreferenceMapper, ReceiptPreference> implements IService<ReceiptPreference> { | |
10 | +public class ReceiptPreferenceService extends ServiceImpl<ReceiptPreferenceMapper, ReceiptPreference> { | |
11 | 11 | |
12 | 12 | } |
... | ... |
src/main/java/com/huaheng/pc/config/warehouseConfig/domain/WarehouseConfig.java deleted
1 | -package com.huaheng.pc.config.warehouseConfig.domain; | |
2 | - | |
3 | -import com.baomidou.mybatisplus.annotation.IdType; | |
4 | -import com.baomidou.mybatisplus.annotation.TableField; | |
5 | -import com.baomidou.mybatisplus.annotation.TableId; | |
6 | -import com.baomidou.mybatisplus.annotation.TableName; | |
7 | -import io.swagger.annotations.ApiModel; | |
8 | -import io.swagger.annotations.ApiModelProperty; | |
9 | -import java.io.Serializable; | |
10 | -import java.util.Date; | |
11 | -import lombok.Data; | |
12 | - | |
13 | -@ApiModel(value="com.huaheng.pc.config.warehouseConfig.domain.WarehouseConfig") | |
14 | -@Data | |
15 | -@TableName(value = "warehouse_config") | |
16 | -public class WarehouseConfig implements Serializable { | |
17 | - /** | |
18 | - * 编码 | |
19 | - */ | |
20 | - @TableId(value = "code", type = IdType.INPUT) | |
21 | - @ApiModelProperty(value="编码") | |
22 | - private String code; | |
23 | - | |
24 | - /** | |
25 | - * 仓库编码 | |
26 | - */ | |
27 | - @TableField(value = "warehouseCode") | |
28 | - @ApiModelProperty(value="仓库编码") | |
29 | - private String warehouseCode; | |
30 | - | |
31 | - /** | |
32 | - * 名称 | |
33 | - */ | |
34 | - @TableField(value = "name") | |
35 | - @ApiModelProperty(value="名称") | |
36 | - private String name; | |
37 | - | |
38 | - /** | |
39 | - * ABC分类 | |
40 | - */ | |
41 | - @TableField(value = "abcClass") | |
42 | - @ApiModelProperty(value="ABC分类") | |
43 | - private String abcClass; | |
44 | - | |
45 | - /** | |
46 | - * 保质期(天) | |
47 | - */ | |
48 | - @TableField(value = "daysToExpire") | |
49 | - @ApiModelProperty(value="保质期(天)") | |
50 | - private Integer daysToExpire; | |
51 | - | |
52 | - /** | |
53 | - * 定位规则 | |
54 | - */ | |
55 | - @TableField(value = "locatingRule") | |
56 | - @ApiModelProperty(value="定位规则") | |
57 | - private String locatingRule; | |
58 | - | |
59 | - /** | |
60 | - * 分配规则 | |
61 | - */ | |
62 | - @TableField(value = "allocationRule") | |
63 | - @ApiModelProperty(value="分配规则") | |
64 | - private String allocationRule; | |
65 | - | |
66 | - /** | |
67 | - * 补货规则 | |
68 | - */ | |
69 | - @TableField(value = "replenishmentRule") | |
70 | - @ApiModelProperty(value="补货规则") | |
71 | - private String replenishmentRule; | |
72 | - | |
73 | - /** | |
74 | - * 空货位规则 | |
75 | - */ | |
76 | - @TableField(value = "emptyLocRule") | |
77 | - @ApiModelProperty(value="空货位规则") | |
78 | - private String emptyLocRule; | |
79 | - | |
80 | - /** | |
81 | - * 入库流程 | |
82 | - */ | |
83 | - @TableField(value = "receivingFlow") | |
84 | - @ApiModelProperty(value="入库流程") | |
85 | - private String receivingFlow; | |
86 | - | |
87 | - /** | |
88 | - * 出库流程 | |
89 | - */ | |
90 | - @TableField(value = "shippingFlow") | |
91 | - @ApiModelProperty(value="出库流程") | |
92 | - private String shippingFlow; | |
93 | - | |
94 | - /** | |
95 | - * 属性模版 | |
96 | - */ | |
97 | - @TableField(value = "attributeTemplateCode") | |
98 | - @ApiModelProperty(value="属性模版") | |
99 | - private String attributeTemplateCode; | |
100 | - | |
101 | - /** | |
102 | - * 记录序列号 | |
103 | - */ | |
104 | - @TableField(value = "trackSerialNum") | |
105 | - @ApiModelProperty(value="记录序列号") | |
106 | - private Integer trackSerialNum; | |
107 | - | |
108 | - /** | |
109 | - * 自动生成序列号 | |
110 | - */ | |
111 | - @TableField(value = "autoGenSerialNum") | |
112 | - @ApiModelProperty(value="自动生成序列号") | |
113 | - private Integer autoGenSerialNum; | |
114 | - | |
115 | - /** | |
116 | - * 自动生成序列号表达式 | |
117 | - */ | |
118 | - @TableField(value = "autoGenSerialNumFormat") | |
119 | - @ApiModelProperty(value="自动生成序列号表达式") | |
120 | - private String autoGenSerialNumFormat; | |
121 | - | |
122 | - /** | |
123 | - * 序列号模版 | |
124 | - */ | |
125 | - @TableField(value = "snTemplateCode") | |
126 | - @ApiModelProperty(value="序列号模版") | |
127 | - private String snTemplateCode; | |
128 | - | |
129 | - /** | |
130 | - * 临期预警天数 | |
131 | - */ | |
132 | - @TableField(value = "expiringDays") | |
133 | - @ApiModelProperty(value="临期预警天数") | |
134 | - private Integer expiringDays; | |
135 | - | |
136 | - /** | |
137 | - * 收货预警天数 | |
138 | - */ | |
139 | - @TableField(value = "minShelfLifeDays") | |
140 | - @ApiModelProperty(value="收货预警天数") | |
141 | - private Integer minShelfLifeDays; | |
142 | - | |
143 | - /** | |
144 | - * 状态 | |
145 | - */ | |
146 | - @TableField(value = "enable") | |
147 | - @ApiModelProperty(value="状态") | |
148 | - private Integer enable; | |
149 | - | |
150 | - /** | |
151 | - * 创建时间 | |
152 | - */ | |
153 | - @TableField(value = "created") | |
154 | - @ApiModelProperty(value="创建时间") | |
155 | - private Date created; | |
156 | - | |
157 | - /** | |
158 | - * 创建用户 | |
159 | - */ | |
160 | - @TableField(value = "createdBy") | |
161 | - @ApiModelProperty(value="创建用户") | |
162 | - private String createdBy; | |
163 | - | |
164 | - /** | |
165 | - * 创建时间 | |
166 | - */ | |
167 | - @TableField(value = "lastUpdated") | |
168 | - @ApiModelProperty(value="创建时间") | |
169 | - private Date lastUpdated; | |
170 | - | |
171 | - /** | |
172 | - * 更新用户 | |
173 | - */ | |
174 | - @TableField(value = "lastUpdatedBy") | |
175 | - @ApiModelProperty(value="更新用户") | |
176 | - private String lastUpdatedBy; | |
177 | - | |
178 | - /** | |
179 | - * 数据版本 | |
180 | - */ | |
181 | - @TableField(value = "version") | |
182 | - @ApiModelProperty(value="数据版本") | |
183 | - private Integer version; | |
184 | - | |
185 | - /** | |
186 | - * 自定义字段1 | |
187 | - */ | |
188 | - @TableField(value = "userDef1") | |
189 | - @ApiModelProperty(value="自定义字段1") | |
190 | - private String userDef1; | |
191 | - | |
192 | - /** | |
193 | - * 自定义字段2 | |
194 | - */ | |
195 | - @TableField(value = "userDef2") | |
196 | - @ApiModelProperty(value="自定义字段2") | |
197 | - private String userDef2; | |
198 | - | |
199 | - /** | |
200 | - * 自定义字段3 | |
201 | - */ | |
202 | - @TableField(value = "userDef3") | |
203 | - @ApiModelProperty(value="自定义字段3") | |
204 | - private String userDef3; | |
205 | - | |
206 | - /** | |
207 | - * 自定义字段4 | |
208 | - */ | |
209 | - @TableField(value = "userDef4") | |
210 | - @ApiModelProperty(value="自定义字段4") | |
211 | - private String userDef4; | |
212 | - | |
213 | - /** | |
214 | - * 自定义字段5 | |
215 | - */ | |
216 | - @TableField(value = "userDef5") | |
217 | - @ApiModelProperty(value="自定义字段5") | |
218 | - private String userDef5; | |
219 | - | |
220 | - /** | |
221 | - * 自定义字段6 | |
222 | - */ | |
223 | - @TableField(value = "userDef6") | |
224 | - @ApiModelProperty(value="自定义字段6") | |
225 | - private String userDef6; | |
226 | - | |
227 | - /** | |
228 | - * 自定义字段7 | |
229 | - */ | |
230 | - @TableField(value = "userDef7") | |
231 | - @ApiModelProperty(value="自定义字段7") | |
232 | - private String userDef7; | |
233 | - | |
234 | - /** | |
235 | - * 自定义字段8 | |
236 | - */ | |
237 | - @TableField(value = "userDef8") | |
238 | - @ApiModelProperty(value="自定义字段8") | |
239 | - private String userDef8; | |
240 | - | |
241 | - private static final long serialVersionUID = 1L; | |
242 | -} | |
243 | 0 | \ No newline at end of file |
src/main/java/com/huaheng/pc/config/warehouseConfig/mapper/WarehouseConfigMapper.java deleted
1 | -package com.huaheng.pc.config.warehouseConfig.mapper; | |
2 | - | |
3 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | -import com.huaheng.pc.config.warehouseConfig.domain.WarehouseConfig; | |
5 | - | |
6 | -public interface WarehouseConfigMapper extends BaseMapper<WarehouseConfig> { | |
7 | -} | |
8 | 0 | \ No newline at end of file |
src/main/java/com/huaheng/pc/config/warehouseConfig/service/WarehouseConfigService.java deleted
src/main/java/com/huaheng/pc/config/warehouseConfig/service/WarehouseConfigServiceImpl.java deleted
1 | -package com.huaheng.pc.config.warehouseConfig.service; | |
2 | - | |
3 | -import org.springframework.stereotype.Service; | |
4 | -import javax.annotation.Resource; | |
5 | -import java.util.List; | |
6 | -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | -import com.huaheng.pc.config.warehouseConfig.domain.WarehouseConfig; | |
8 | -import com.huaheng.pc.config.warehouseConfig.mapper.WarehouseConfigMapper; | |
9 | -import com.huaheng.pc.config.warehouseConfig.service.WarehouseConfigService; | |
10 | -@Service | |
11 | -public class WarehouseConfigServiceImpl extends ServiceImpl<WarehouseConfigMapper, WarehouseConfig> implements WarehouseConfigService{ | |
12 | - | |
13 | -} |
src/main/java/com/huaheng/pc/config/warehouseConfig/controller/WarehouseConfigController.java renamed to src/main/java/com/huaheng/pc/receipt/receiptHeader/controller/ReceiptHeaderController.java
1 | -package com.huaheng.pc.config.warehouseConfig.controller; | |
1 | +package com.huaheng.pc.receipt.receiptHeader.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -13,10 +13,12 @@ import com.huaheng.framework.web.domain.AjaxResult; |
13 | 13 | import com.huaheng.framework.web.page.PageDomain; |
14 | 14 | import com.huaheng.framework.web.page.TableDataInfo; |
15 | 15 | import com.huaheng.framework.web.page.TableSupport; |
16 | -import com.huaheng.pc.config.warehouseConfig.domain.WarehouseConfig; | |
17 | -import com.huaheng.pc.config.warehouseConfig.service.WarehouseConfigService; | |
16 | +import com.huaheng.pc.config.alarmLevel.domain.AlarmLevel; | |
17 | +import com.huaheng.pc.receipt.receiptHeader.domain.ReceiptHeader; | |
18 | +import com.huaheng.pc.receipt.receiptHeader.service.ReceiptHeaderService; | |
19 | +import com.sun.org.apache.regexp.internal.RE; | |
20 | +import io.swagger.annotations.Api; | |
18 | 21 | import io.swagger.annotations.ApiOperation; |
19 | -import io.swagger.annotations.ApiParam; | |
20 | 22 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
21 | 23 | import org.springframework.stereotype.Controller; |
22 | 24 | import org.springframework.ui.ModelMap; |
... | ... | @@ -25,50 +27,58 @@ import org.springframework.web.bind.annotation.*; |
25 | 27 | import javax.annotation.Resource; |
26 | 28 | import java.util.List; |
27 | 29 | |
30 | +@Api(tags = "入库单") | |
28 | 31 | @Controller |
29 | -@RequestMapping("/config/warehouseConfig") | |
30 | -public class WarehouseConfigController extends BaseController { | |
32 | +@RequestMapping("/receipt/receiptHeader") | |
33 | +public class ReceiptHeaderController extends BaseController { | |
31 | 34 | |
32 | - private String prefix = "config/warehouseConfig"; | |
35 | + private String prefix="receipt/receiptHeader"; | |
33 | 36 | |
34 | 37 | @Resource |
35 | - private WarehouseConfigService warehouseConfigService; | |
38 | + private ReceiptHeaderService receiptHeaderService; | |
36 | 39 | |
37 | - @RequiresPermissions("config:warehouseConfig:view") | |
40 | + @RequiresPermissions("config:receiptHeader:view") | |
38 | 41 | @GetMapping() |
39 | - public String receiptDetailHistory() { | |
40 | - return prefix + "/warehouse"; | |
42 | + public String containerCapacity() | |
43 | + { | |
44 | + return prefix + "/receiptHeader"; | |
41 | 45 | } |
42 | 46 | |
43 | 47 | /** |
44 | - * 查询仓库配置 | |
48 | + * 查询入库单 | |
45 | 49 | */ |
46 | - @ApiOperation(value="查看仓库配置", notes="根据编码获取仓库配置", httpMethod = "POST") | |
47 | - @RequiresPermissions("config:warehouseConfig:list") | |
48 | - @Log(title = "配置-仓库配置",operating = "仓库配置列表", action = BusinessType.GRANT) | |
50 | + @RequiresPermissions("config:receiptHeader:list") | |
51 | + @Log(title = "入库-入库单头表", operating = "查看入库单列表", action = BusinessType.GRANT) | |
49 | 52 | @PostMapping("/list") |
50 | 53 | @ResponseBody |
51 | - public TableDataInfo list(@ApiParam(name="WarehouseConfig",value="编码") WarehouseConfig warehouseConfig) { | |
52 | - LambdaQueryWrapper<WarehouseConfig> lambda = Wrappers.lambdaQuery(); | |
54 | + public TableDataInfo list(ReceiptHeader receiptHeader, String createdBegin, String createdEnd) { | |
55 | + LambdaQueryWrapper<ReceiptHeader> lambdaQueryWrapper = Wrappers.lambdaQuery(); | |
53 | 56 | PageDomain pageDomain = TableSupport.buildPageRequest(); |
54 | 57 | Integer pageNum = pageDomain.getPageNum(); |
55 | 58 | Integer pageSize = pageDomain.getPageSize(); |
56 | - lambda.eq(StringUtils.isNotEmpty(warehouseConfig.getWarehouseCode()), WarehouseConfig::getWarehouseCode | |
57 | - , warehouseConfig.getWarehouseCode()); | |
59 | + | |
60 | + lambdaQueryWrapper.ge(StringUtils.isNotEmpty(createdBegin), ReceiptHeader::getCreated, createdBegin) | |
61 | + .le(StringUtils.isNotEmpty(createdEnd), ReceiptHeader::getCreated, createdEnd) | |
62 | + .in(ReceiptHeader::getCompanyCode, ShiroUtils.getCompanyCodeList()) | |
63 | + .eq(ReceiptHeader::getWarehouseCode, ShiroUtils.getWarehouseCode()) | |
64 | + .eq(StringUtils.isNotEmpty(receiptHeader.getReceiptType()), | |
65 | + ReceiptHeader::getReceiptType, receiptHeader.getReceiptType()); | |
58 | 66 | |
59 | 67 | if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){ |
60 | - /*使用分页查询*/ | |
61 | - Page<WarehouseConfig> page = new Page<>(pageNum, pageSize); | |
62 | - IPage<WarehouseConfig> iPage = warehouseConfigService.page(page, lambda); | |
63 | - return getMpDataTable(iPage.getRecords(), iPage.getTotal()); | |
68 | + /** | |
69 | + * 使用分页查询 | |
70 | + */ | |
71 | + Page<ReceiptHeader> page = new Page<>(pageNum, pageSize); | |
72 | + IPage<ReceiptHeader> iPage = receiptHeaderService.page(page, lambdaQueryWrapper); | |
73 | + return getMpDataTable(iPage.getRecords(),iPage.getTotal()); | |
64 | 74 | } else { |
65 | - List<WarehouseConfig> list = warehouseConfigService.list(lambda); | |
75 | + List<ReceiptHeader> list = receiptHeaderService.list(lambdaQueryWrapper); | |
66 | 76 | return getDataTable(list); |
67 | 77 | } |
68 | 78 | } |
69 | 79 | |
70 | 80 | /** |
71 | - * 新增仓库配置 | |
81 | + * 新增入库单 | |
72 | 82 | */ |
73 | 83 | @GetMapping("/add") |
74 | 84 | public String add() { |
... | ... | @@ -76,45 +86,42 @@ public class WarehouseConfigController extends BaseController { |
76 | 86 | } |
77 | 87 | |
78 | 88 | /** |
79 | - * 新增保存仓库配置 | |
89 | + * 新增保存入库单 | |
80 | 90 | */ |
81 | - @ApiOperation(value="新增仓库配置", notes="新增仓库配置", httpMethod = "POST") | |
82 | - @RequiresPermissions("config:warehouseConfig:add") | |
83 | - @Log(title = "配置-仓库配置",operating = "新增仓库配置", action = BusinessType.INSERT) | |
91 | + @ApiOperation(value="新增入库单 ", notes="新增入库单 ", httpMethod = "POST") | |
92 | + @RequiresPermissions("config:receiptHeader:add") | |
93 | + @Log(title = "入库-入库单 ",operating = "新增入库单 ", action = BusinessType.INSERT) | |
84 | 94 | @PostMapping("/add") |
85 | 95 | @ResponseBody |
86 | - public AjaxResult addSave(WarehouseConfig warehouseConfig) { | |
87 | - LambdaQueryWrapper<WarehouseConfig> lambda = Wrappers.lambdaQuery(); | |
88 | - lambda.eq(WarehouseConfig::getWarehouseCode, warehouseConfig.getWarehouseCode()); | |
89 | - if (warehouseConfigService.getOne(lambda) != null){ | |
90 | - return AjaxResult.error("当前仓库已存在配置"); | |
91 | - } | |
92 | - warehouseConfig.setCreatedBy(ShiroUtils.getLoginName()); | |
93 | - warehouseConfig.setLastUpdatedBy(ShiroUtils.getLoginName()); | |
94 | - return toAjax(warehouseConfigService.save(warehouseConfig)); | |
96 | + public AjaxResult addSave(ReceiptHeader receiptHeader) { | |
97 | + receiptHeader.setWarehouseCode(ShiroUtils.getWarehouseCode()); | |
98 | + receiptHeader.setFirstStatus(0); | |
99 | + receiptHeader.setLastStatus(0); | |
100 | + receiptHeader.setCreatedBy(ShiroUtils.getLoginName()); | |
101 | + receiptHeader.setLastUpdatedBy(ShiroUtils.getLoginName()); | |
102 | + return toAjax(receiptHeaderService.save(receiptHeader)); | |
95 | 103 | } |
96 | 104 | |
97 | 105 | /** |
98 | - * 修改仓库配置 | |
106 | + * 修改入库单 | |
99 | 107 | */ |
100 | 108 | @GetMapping("/edit/{id}") |
101 | 109 | public String edit(@PathVariable("id") Integer id, ModelMap mmap) { |
102 | - WarehouseConfig warehouseConfig = warehouseConfigService.getById(id); | |
103 | - mmap.put("warehouseConfig", warehouseConfig); | |
110 | + ReceiptHeader receiptHeader = receiptHeaderService.getById(id); | |
111 | + mmap.put("receiptHeader", receiptHeader); | |
104 | 112 | return prefix + "/edit"; |
105 | 113 | } |
106 | 114 | |
107 | 115 | /** |
108 | - * 修改保存仓库配置 | |
116 | + * 修改保存入库单 | |
109 | 117 | */ |
110 | - @ApiOperation(value="修改仓库配置信息", notes="修改仓库配置信息", httpMethod = "POST") | |
111 | - @RequiresPermissions("config:warehouseConfig:edit") | |
112 | - @Log(title = "配置-仓库配置",operating = "修改仓库配置", action = BusinessType.UPDATE) | |
118 | + @ApiOperation(value="修改入库单", notes="修改入库单", httpMethod = "POST") | |
119 | + @RequiresPermissions("config:receiptHeader:edit") | |
120 | + @Log(title = "入库-入库单 ",operating = "修改入库单 ", action = BusinessType.UPDATE) | |
113 | 121 | @PostMapping("/edit") |
114 | 122 | @ResponseBody |
115 | - public AjaxResult editSave(WarehouseConfig warehouseConfig) { | |
116 | - warehouseConfig.setLastUpdatedBy(ShiroUtils.getLoginName()); | |
117 | - return toAjax(warehouseConfigService.updateById(warehouseConfig)); | |
123 | + public AjaxResult editSave(ReceiptHeader receiptHeader) { | |
124 | + receiptHeader.setLastUpdatedBy(ShiroUtils.getLoginName()); | |
125 | + return toAjax(receiptHeaderService.updateById(receiptHeader)); | |
118 | 126 | } |
119 | - | |
120 | 127 | } |
... | ... |
src/main/java/com/huaheng/pc/receipt/receiptHeader/domain/ReceiptHeader.java
... | ... | @@ -4,329 +4,296 @@ import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
5 | 5 | import com.baomidou.mybatisplus.annotation.TableId; |
6 | 6 | import com.baomidou.mybatisplus.annotation.TableName; |
7 | +import io.swagger.annotations.ApiModel; | |
8 | +import io.swagger.annotations.ApiModelProperty; | |
7 | 9 | import java.io.Serializable; |
8 | 10 | import java.math.BigDecimal; |
9 | 11 | import java.util.Date; |
10 | 12 | import lombok.Data; |
11 | 13 | |
12 | -/** | |
13 | - * 入库头表 | |
14 | - */ | |
14 | +@ApiModel(value="com.huaheng.pc.receipt.receiptHeader.domain.ReceiptHeader") | |
15 | 15 | @Data |
16 | 16 | @TableName(value = "receipt_header") |
17 | 17 | public class ReceiptHeader implements Serializable { |
18 | 18 | /** |
19 | 19 | * 入库单内部号 |
20 | 20 | */ |
21 | - @TableId(value = "id", type = IdType.AUTO) | |
21 | + @TableId(value = "id", type = IdType.AUTO) | |
22 | + @ApiModelProperty(value="入库单内部号") | |
22 | 23 | private Integer id; |
23 | 24 | |
24 | 25 | /** |
25 | 26 | * 仓库 |
26 | 27 | */ |
27 | 28 | @TableField(value = "warehouseCode") |
29 | + @ApiModelProperty(value="仓库") | |
28 | 30 | private String warehouseCode; |
29 | 31 | |
30 | 32 | /** |
31 | 33 | * 货主 |
32 | 34 | */ |
33 | 35 | @TableField(value = "companyCode") |
36 | + @ApiModelProperty(value="货主") | |
34 | 37 | private String companyCode; |
35 | 38 | |
36 | 39 | /** |
37 | 40 | * 入库单号 |
38 | 41 | */ |
39 | 42 | @TableField(value = "code") |
43 | + @ApiModelProperty(value="入库单号") | |
40 | 44 | private String code; |
41 | 45 | |
42 | 46 | /** |
43 | 47 | * 入库类型 |
44 | 48 | */ |
45 | 49 | @TableField(value = "receiptType") |
50 | + @ApiModelProperty(value="入库类型") | |
46 | 51 | private String receiptType; |
47 | 52 | |
48 | 53 | /** |
49 | 54 | * 首状态 |
50 | 55 | */ |
51 | 56 | @TableField(value = "firstStatus") |
57 | + @ApiModelProperty(value="首状态") | |
52 | 58 | private Integer firstStatus; |
53 | 59 | |
54 | 60 | /** |
55 | 61 | * 尾状态 |
56 | 62 | */ |
57 | 63 | @TableField(value = "lastStatus") |
64 | + @ApiModelProperty(value="尾状态") | |
58 | 65 | private Integer lastStatus; |
59 | 66 | |
60 | 67 | /** |
61 | 68 | * 关联单号 |
62 | 69 | */ |
63 | 70 | @TableField(value = "referCode") |
71 | + @ApiModelProperty(value="关联单号") | |
64 | 72 | private String referCode; |
65 | 73 | |
66 | 74 | /** |
67 | 75 | * 关联单号(内部号) |
68 | 76 | */ |
69 | 77 | @TableField(value = "referId") |
78 | + @ApiModelProperty(value="关联单号(内部号)") | |
70 | 79 | private Integer referId; |
71 | 80 | |
72 | 81 | /** |
73 | 82 | * 关联订单类型 |
74 | 83 | */ |
75 | 84 | @TableField(value = "referType") |
85 | + @ApiModelProperty(value="关联订单类型") | |
76 | 86 | private String referType; |
77 | 87 | |
78 | 88 | /** |
79 | 89 | * 预计到达日期 |
80 | 90 | */ |
81 | 91 | @TableField(value = "scheduledArriveDate") |
92 | + @ApiModelProperty(value="预计到达日期") | |
82 | 93 | private Date scheduledArriveDate; |
83 | 94 | |
84 | 95 | /** |
85 | 96 | * 实际到达日期 |
86 | 97 | */ |
87 | 98 | @TableField(value = "actualArriveDate") |
99 | + @ApiModelProperty(value="实际到达日期") | |
88 | 100 | private Date actualArriveDate; |
89 | 101 | |
90 | 102 | /** |
91 | 103 | * 月台货位 |
92 | 104 | */ |
93 | 105 | @TableField(value = "recvDock") |
106 | + @ApiModelProperty(value="月台货位") | |
94 | 107 | private String recvDock; |
95 | 108 | |
96 | 109 | /** |
97 | 110 | * 关闭时间 |
98 | 111 | */ |
99 | 112 | @TableField(value = "closedAt") |
113 | + @ApiModelProperty(value="关闭时间") | |
100 | 114 | private Date closedAt; |
101 | 115 | |
102 | 116 | /** |
103 | 117 | * 强制关闭用户 |
104 | 118 | */ |
105 | 119 | @TableField(value = "closedBy") |
120 | + @ApiModelProperty(value="强制关闭用户") | |
106 | 121 | private String closedBy; |
107 | 122 | |
108 | 123 | /** |
109 | 124 | * 开始收货日期 |
110 | 125 | */ |
111 | 126 | @TableField(value = "startCheckinDatetime") |
127 | + @ApiModelProperty(value="开始收货日期") | |
112 | 128 | private Date startCheckinDatetime; |
113 | 129 | |
114 | 130 | /** |
115 | 131 | * 结束收货日期 |
116 | 132 | */ |
117 | 133 | @TableField(value = "endCheckinDatetime") |
134 | + @ApiModelProperty(value="结束收货日期") | |
118 | 135 | private Date endCheckinDatetime; |
119 | 136 | |
120 | 137 | /** |
121 | 138 | * 总数量 |
122 | 139 | */ |
123 | 140 | @TableField(value = "totalQty") |
141 | + @ApiModelProperty(value="总数量") | |
124 | 142 | private Integer totalQty; |
125 | 143 | |
126 | 144 | /** |
127 | 145 | * 总行数 |
128 | 146 | */ |
129 | 147 | @TableField(value = "totalLines") |
148 | + @ApiModelProperty(value="总行数") | |
130 | 149 | private Integer totalLines; |
131 | 150 | |
132 | 151 | /** |
133 | 152 | * 总箱数 |
134 | 153 | */ |
135 | 154 | @TableField(value = "toalCases") |
155 | + @ApiModelProperty(value="总箱数") | |
136 | 156 | private Integer toalCases; |
137 | 157 | |
138 | 158 | /** |
139 | 159 | * 总重量 |
140 | 160 | */ |
141 | 161 | @TableField(value = "totalWeight") |
162 | + @ApiModelProperty(value="总重量") | |
142 | 163 | private BigDecimal totalWeight; |
143 | 164 | |
144 | 165 | /** |
145 | 166 | * 总体积 |
146 | 167 | */ |
147 | 168 | @TableField(value = "totalVolume") |
169 | + @ApiModelProperty(value="总体积") | |
148 | 170 | private BigDecimal totalVolume; |
149 | 171 | |
150 | 172 | /** |
151 | 173 | * 入库单备注 |
152 | 174 | */ |
153 | 175 | @TableField(value = "receiptNote") |
176 | + @ApiModelProperty(value="入库单备注") | |
154 | 177 | private String receiptNote; |
155 | 178 | |
156 | 179 | /** |
157 | 180 | * 锁定 |
158 | 181 | */ |
159 | 182 | @TableField(value = "locked") |
183 | + @ApiModelProperty(value="锁定") | |
160 | 184 | private Integer locked; |
161 | 185 | |
162 | 186 | /** |
163 | 187 | * 锁定用户 |
164 | 188 | */ |
165 | 189 | @TableField(value = "lockedBy") |
190 | + @ApiModelProperty(value="锁定用户") | |
166 | 191 | private String lockedBy; |
167 | 192 | |
168 | 193 | /** |
169 | 194 | * 创建时间 |
170 | 195 | */ |
171 | 196 | @TableField(value = "created") |
197 | + @ApiModelProperty(value="创建时间") | |
172 | 198 | private Date created; |
173 | 199 | |
174 | 200 | /** |
175 | 201 | * 创建用户 |
176 | 202 | */ |
177 | 203 | @TableField(value = "createdBy") |
204 | + @ApiModelProperty(value="创建用户") | |
178 | 205 | private String createdBy; |
179 | 206 | |
180 | 207 | /** |
181 | 208 | * 创建时间 |
182 | 209 | */ |
183 | 210 | @TableField(value = "lastUpdated") |
211 | + @ApiModelProperty(value="创建时间") | |
184 | 212 | private Date lastUpdated; |
185 | 213 | |
186 | 214 | /** |
187 | 215 | * 更新用户 |
188 | 216 | */ |
189 | 217 | @TableField(value = "lastUpdatedBy") |
218 | + @ApiModelProperty(value="更新用户") | |
190 | 219 | private String lastUpdatedBy; |
191 | 220 | |
192 | 221 | /** |
193 | 222 | * 数据版本 |
194 | 223 | */ |
195 | 224 | @TableField(value = "version") |
225 | + @ApiModelProperty(value="数据版本") | |
196 | 226 | private Integer version; |
197 | 227 | |
198 | 228 | /** |
199 | 229 | * 自定义字段1 |
200 | 230 | */ |
201 | 231 | @TableField(value = "userDef1") |
232 | + @ApiModelProperty(value="自定义字段1") | |
202 | 233 | private String userDef1; |
203 | 234 | |
204 | 235 | /** |
205 | 236 | * 自定义字段2 |
206 | 237 | */ |
207 | 238 | @TableField(value = "userDef2") |
239 | + @ApiModelProperty(value="自定义字段2") | |
208 | 240 | private String userDef2; |
209 | 241 | |
210 | 242 | /** |
211 | 243 | * 自定义字段3 |
212 | 244 | */ |
213 | 245 | @TableField(value = "userDef3") |
246 | + @ApiModelProperty(value="自定义字段3") | |
214 | 247 | private String userDef3; |
215 | 248 | |
216 | 249 | /** |
217 | 250 | * 自定义字段4 |
218 | 251 | */ |
219 | 252 | @TableField(value = "userDef4") |
253 | + @ApiModelProperty(value="自定义字段4") | |
220 | 254 | private String userDef4; |
221 | 255 | |
222 | 256 | /** |
223 | 257 | * 自定义字段5 |
224 | 258 | */ |
225 | 259 | @TableField(value = "userDef5") |
260 | + @ApiModelProperty(value="自定义字段5") | |
226 | 261 | private String userDef5; |
227 | 262 | |
228 | 263 | /** |
229 | 264 | * 自定义字段6 |
230 | 265 | */ |
231 | 266 | @TableField(value = "userDef6") |
267 | + @ApiModelProperty(value="自定义字段6") | |
232 | 268 | private String userDef6; |
233 | 269 | |
234 | 270 | /** |
235 | 271 | * 自定义字段7 |
236 | 272 | */ |
237 | 273 | @TableField(value = "userDef7") |
274 | + @ApiModelProperty(value="自定义字段7") | |
238 | 275 | private String userDef7; |
239 | 276 | |
240 | 277 | /** |
241 | 278 | * 自定义字段8 |
242 | 279 | */ |
243 | 280 | @TableField(value = "userDef8") |
281 | + @ApiModelProperty(value="自定义字段8") | |
244 | 282 | private String userDef8; |
245 | 283 | |
246 | 284 | /** |
247 | 285 | * 处理标记 |
248 | 286 | */ |
249 | 287 | @TableField(value = "processStamp") |
288 | + @ApiModelProperty(value="处理标记") | |
250 | 289 | private String processStamp; |
251 | 290 | |
291 | + /** | |
292 | + * 是否删除 | |
293 | + */ | |
252 | 294 | @TableField(value = "deleted") |
295 | + @ApiModelProperty(value="是否删除") | |
253 | 296 | private Boolean deleted; |
254 | 297 | |
255 | 298 | private static final long serialVersionUID = 1L; |
256 | - | |
257 | - public static final String COL_WAREHOUSECODE = "warehouseCode"; | |
258 | - | |
259 | - public static final String COL_COMPANYCODE = "companyCode"; | |
260 | - | |
261 | - public static final String COL_CODE = "code"; | |
262 | - | |
263 | - public static final String COL_RECEIPTTYPE = "receiptType"; | |
264 | - | |
265 | - public static final String COL_FIRSTSTATUS = "firstStatus"; | |
266 | - | |
267 | - public static final String COL_LASTSTATUS = "lastStatus"; | |
268 | - | |
269 | - public static final String COL_REFERCODE = "referCode"; | |
270 | - | |
271 | - public static final String COL_REFERID = "referId"; | |
272 | - | |
273 | - public static final String COL_REFERTYPE = "referType"; | |
274 | - | |
275 | - public static final String COL_SCHEDULEDARRIVEDATE = "scheduledArriveDate"; | |
276 | - | |
277 | - public static final String COL_ACTUALARRIVEDATE = "actualArriveDate"; | |
278 | - | |
279 | - public static final String COL_RECVDOCK = "recvDock"; | |
280 | - | |
281 | - public static final String COL_CLOSEDAT = "closedAt"; | |
282 | - | |
283 | - public static final String COL_CLOSEDBY = "closedBy"; | |
284 | - | |
285 | - public static final String COL_STARTCHECKINDATETIME = "startCheckinDatetime"; | |
286 | - | |
287 | - public static final String COL_ENDCHECKINDATETIME = "endCheckinDatetime"; | |
288 | - | |
289 | - public static final String COL_TOTALQTY = "totalQty"; | |
290 | - | |
291 | - public static final String COL_TOTALLINES = "totalLines"; | |
292 | - | |
293 | - public static final String COL_TOALCASES = "toalCases"; | |
294 | - | |
295 | - public static final String COL_TOTALWEIGHT = "totalWeight"; | |
296 | - | |
297 | - public static final String COL_TOTALVOLUME = "totalVolume"; | |
298 | - | |
299 | - public static final String COL_RECEIPTNOTE = "receiptNote"; | |
300 | - | |
301 | - public static final String COL_LOCKED = "locked"; | |
302 | - | |
303 | - public static final String COL_LOCKEDBY = "lockedBy"; | |
304 | - | |
305 | - public static final String COL_CREATED = "created"; | |
306 | - | |
307 | - public static final String COL_CREATEDBY = "createdBy"; | |
308 | - | |
309 | - public static final String COL_LASTUPDATED = "lastUpdated"; | |
310 | - | |
311 | - public static final String COL_LASTUPDATEDBY = "lastUpdatedBy"; | |
312 | - | |
313 | - public static final String COL_VERSION = "version"; | |
314 | - | |
315 | - public static final String COL_USERDEF1 = "userDef1"; | |
316 | - | |
317 | - public static final String COL_USERDEF2 = "userDef2"; | |
318 | - | |
319 | - public static final String COL_USERDEF3 = "userDef3"; | |
320 | - | |
321 | - public static final String COL_USERDEF4 = "userDef4"; | |
322 | - | |
323 | - public static final String COL_USERDEF5 = "userDef5"; | |
324 | - | |
325 | - public static final String COL_USERDEF6 = "userDef6"; | |
326 | - | |
327 | - public static final String COL_USERDEF7 = "userDef7"; | |
328 | - | |
329 | - public static final String COL_USERDEF8 = "userDef8"; | |
330 | - | |
331 | - public static final String COL_PROCESSSTAMP = "processStamp"; | |
332 | 299 | } |
333 | 300 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/receipt/receiptHeader/domain/ReceiptModel.java deleted
1 | -package com.huaheng.pc.receipt.receiptHeader.domain; | |
2 | - | |
3 | -import com.huaheng.pc.receipt.receiptDetail.domain.ReceiptDetail; | |
4 | -import lombok.Data; | |
5 | - | |
6 | -import java.util.List; | |
7 | - | |
8 | -/** | |
9 | - * 入库实体类 | |
10 | - */ | |
11 | -@Data | |
12 | -public class ReceiptModel { | |
13 | - | |
14 | - private ReceiptHeader receiptHeader; | |
15 | - | |
16 | - private List<ReceiptDetail> receiptDetail; | |
17 | -} |
src/main/java/com/huaheng/pc/receipt/receiptHeader/service/ReceiptHeaderService.java
1 | 1 | package com.huaheng.pc.receipt.receiptHeader.service; |
2 | 2 | |
3 | +import org.springframework.stereotype.Service; | |
4 | +import javax.annotation.Resource; | |
5 | +import java.util.List; | |
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | +import com.huaheng.pc.receipt.receiptHeader.mapper.ReceiptHeaderMapper; | |
3 | 8 | import com.huaheng.pc.receipt.receiptHeader.domain.ReceiptHeader; |
4 | -import com.baomidou.mybatisplus.extension.service.IService; | |
5 | -public interface ReceiptHeaderService extends IService<ReceiptHeader>{ | |
6 | - | |
9 | +@Service | |
10 | +public class ReceiptHeaderService extends ServiceImpl<ReceiptHeaderMapper, ReceiptHeader> { | |
7 | 11 | |
8 | 12 | } |
... | ... |
src/main/java/com/huaheng/pc/receipt/receiptHeader/service/ReceiptHeaderServiceImpl.java deleted
1 | -package com.huaheng.pc.receipt.receiptHeader.service; | |
2 | - | |
3 | -import org.springframework.stereotype.Service; | |
4 | -import javax.annotation.Resource; | |
5 | -import java.util.List; | |
6 | -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | -import com.huaheng.pc.receipt.receiptHeader.mapper.ReceiptHeaderMapper; | |
8 | -import com.huaheng.pc.receipt.receiptHeader.domain.ReceiptHeader; | |
9 | -import com.huaheng.pc.receipt.receiptHeader.service.ReceiptHeaderService; | |
10 | -@Service | |
11 | -public class ReceiptHeaderServiceImpl extends ServiceImpl<ReceiptHeaderMapper, ReceiptHeader> implements ReceiptHeaderService{ | |
12 | - | |
13 | -} |
src/main/resources/mybatis/config/ReceiptPreferenceMapper.xml
... | ... | @@ -4,22 +4,27 @@ |
4 | 4 | <resultMap id="BaseResultMap" type="com.huaheng.pc.config.receiptPreference.domain.ReceiptPreference"> |
5 | 5 | <!--@mbg.generated--> |
6 | 6 | <id column="id" jdbcType="INTEGER" property="id" /> |
7 | + <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" /> | |
7 | 8 | <result column="code" jdbcType="VARCHAR" property="code" /> |
8 | 9 | <result column="name" jdbcType="VARCHAR" property="name" /> |
9 | 10 | <result column="receivingFlow" jdbcType="VARCHAR" property="receivingFlow" /> |
10 | - <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" /> | |
11 | 11 | <result column="autoAssignLPN" jdbcType="INTEGER" property="autoAssignLPN" /> |
12 | 12 | <result column="allowOverReceiving" jdbcType="BIT" property="allowOverReceiving" /> |
13 | 13 | <result column="allowOverReceivingQty" jdbcType="INTEGER" property="allowOverReceivingQty" /> |
14 | 14 | <result column="autoLocate" jdbcType="INTEGER" property="autoLocate" /> |
15 | 15 | <result column="showOpenQty" jdbcType="INTEGER" property="showOpenQty" /> |
16 | - <result column="receiptTypes" jdbcType="VARCHAR" property="receiptTypes" /> | |
17 | 16 | <result column="groupPutaway" jdbcType="INTEGER" property="groupPutaway" /> |
18 | 17 | <result column="manuallyBuildLPN" jdbcType="INTEGER" property="manuallyBuildLPN" /> |
19 | - <result column="ruleAssignment" jdbcType="VARCHAR" property="ruleAssignment" /> | |
18 | + <result column="locationRule" jdbcType="VARCHAR" property="locationRule" /> | |
19 | + <result column="emptyLocRule" jdbcType="VARCHAR" property="emptyLocRule" /> | |
20 | 20 | <result column="checkinByPiece" jdbcType="INTEGER" property="checkinByPiece" /> |
21 | 21 | <result column="pieceConfirm" jdbcType="INTEGER" property="pieceConfirm" /> |
22 | + <result column="abcClass" jdbcType="VARCHAR" property="abcClass" /> | |
23 | + <result column="daysToExpire" jdbcType="INTEGER" property="daysToExpire" /> | |
24 | + <result column="expiringDays" jdbcType="INTEGER" property="expiringDays" /> | |
25 | + <result column="minShelfLifeDays" jdbcType="INTEGER" property="minShelfLifeDays" /> | |
22 | 26 | <result column="allowQuickPutaway" jdbcType="INTEGER" property="allowQuickPutaway" /> |
27 | + <result column="attributeTemplateCode" jdbcType="VARCHAR" property="attributeTemplateCode" /> | |
23 | 28 | <result column="useQuickCheckIn" jdbcType="INTEGER" property="useQuickCheckIn" /> |
24 | 29 | <result column="created" jdbcType="TIMESTAMP" property="created" /> |
25 | 30 | <result column="createdBy" jdbcType="VARCHAR" property="createdBy" /> |
... | ... | @@ -38,10 +43,11 @@ |
38 | 43 | </resultMap> |
39 | 44 | <sql id="Base_Column_List"> |
40 | 45 | <!--@mbg.generated--> |
41 | - id, code, `name`, receivingFlow, warehouseCode, autoAssignLPN, allowOverReceiving, | |
42 | - allowOverReceivingQty, autoLocate, showOpenQty, receiptTypes, groupPutaway, manuallyBuildLPN, | |
43 | - ruleAssignment, checkinByPiece, pieceConfirm, allowQuickPutaway, useQuickCheckIn, | |
44 | - created, createdBy, lastUpdated, lastUpdatedBy, version, userDef1, userDef2, userDef3, | |
45 | - userDef4, userDef5, userDef6, userDef7, userDef8, processStamp | |
46 | + id, warehouseCode, code, `name`, receivingFlow, autoAssignLPN, allowOverReceiving, | |
47 | + allowOverReceivingQty, autoLocate, showOpenQty, groupPutaway, manuallyBuildLPN, locationRule, | |
48 | + emptyLocRule, checkinByPiece, pieceConfirm, abcClass, daysToExpire, expiringDays, | |
49 | + minShelfLifeDays, allowQuickPutaway, attributeTemplateCode, useQuickCheckIn, created, | |
50 | + createdBy, lastUpdated, lastUpdatedBy, version, userDef1, userDef2, userDef3, userDef4, | |
51 | + userDef5, userDef6, userDef7, userDef8, processStamp | |
46 | 52 | </sql> |
47 | 53 | </mapper> |
48 | 54 | \ No newline at end of file |
... | ... |
src/main/resources/mybatis/config/WarehouseConfigMapper.xml deleted
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | -<mapper namespace="com.huaheng.pc.config.warehouseConfig.mapper.WarehouseConfigMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.config.warehouseConfig.domain.WarehouseConfig"> | |
5 | - <!--@mbg.generated--> | |
6 | - <id column="code" jdbcType="VARCHAR" property="code" /> | |
7 | - <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" /> | |
8 | - <result column="name" jdbcType="VARCHAR" property="name" /> | |
9 | - <result column="abcClass" jdbcType="VARCHAR" property="abcClass" /> | |
10 | - <result column="daysToExpire" jdbcType="INTEGER" property="daysToExpire" /> | |
11 | - <result column="locatingRule" jdbcType="VARCHAR" property="locatingRule" /> | |
12 | - <result column="allocationRule" jdbcType="VARCHAR" property="allocationRule" /> | |
13 | - <result column="replenishmentRule" jdbcType="VARCHAR" property="replenishmentRule" /> | |
14 | - <result column="emptyLocRule" jdbcType="VARCHAR" property="emptyLocRule" /> | |
15 | - <result column="receivingFlow" jdbcType="VARCHAR" property="receivingFlow" /> | |
16 | - <result column="shippingFlow" jdbcType="VARCHAR" property="shippingFlow" /> | |
17 | - <result column="attributeTemplateCode" jdbcType="VARCHAR" property="attributeTemplateCode" /> | |
18 | - <result column="trackSerialNum" jdbcType="INTEGER" property="trackSerialNum" /> | |
19 | - <result column="autoGenSerialNum" jdbcType="INTEGER" property="autoGenSerialNum" /> | |
20 | - <result column="autoGenSerialNumFormat" jdbcType="VARCHAR" property="autoGenSerialNumFormat" /> | |
21 | - <result column="snTemplateCode" jdbcType="VARCHAR" property="snTemplateCode" /> | |
22 | - <result column="expiringDays" jdbcType="INTEGER" property="expiringDays" /> | |
23 | - <result column="minShelfLifeDays" jdbcType="INTEGER" property="minShelfLifeDays" /> | |
24 | - <result column="enable" jdbcType="INTEGER" property="enable" /> | |
25 | - <result column="created" jdbcType="TIMESTAMP" property="created" /> | |
26 | - <result column="createdBy" jdbcType="VARCHAR" property="createdBy" /> | |
27 | - <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" /> | |
28 | - <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" /> | |
29 | - <result column="version" jdbcType="INTEGER" property="version" /> | |
30 | - <result column="userDef1" jdbcType="VARCHAR" property="userDef1" /> | |
31 | - <result column="userDef2" jdbcType="VARCHAR" property="userDef2" /> | |
32 | - <result column="userDef3" jdbcType="VARCHAR" property="userDef3" /> | |
33 | - <result column="userDef4" jdbcType="VARCHAR" property="userDef4" /> | |
34 | - <result column="userDef5" jdbcType="VARCHAR" property="userDef5" /> | |
35 | - <result column="userDef6" jdbcType="VARCHAR" property="userDef6" /> | |
36 | - <result column="userDef7" jdbcType="VARCHAR" property="userDef7" /> | |
37 | - <result column="userDef8" jdbcType="VARCHAR" property="userDef8" /> | |
38 | - </resultMap> | |
39 | - <sql id="Base_Column_List"> | |
40 | - <!--@mbg.generated--> | |
41 | - code, warehouseCode, `name`, abcClass, daysToExpire, locatingRule, allocationRule, | |
42 | - replenishmentRule, emptyLocRule, receivingFlow, shippingFlow, attributeTemplateCode, | |
43 | - trackSerialNum, autoGenSerialNum, autoGenSerialNumFormat, snTemplateCode, expiringDays, | |
44 | - minShelfLifeDays, `enable`, created, createdBy, lastUpdated, lastUpdatedBy, version, | |
45 | - userDef1, userDef2, userDef3, userDef4, userDef5, userDef6, userDef7, userDef8 | |
46 | - </sql> | |
47 | -</mapper> | |
48 | 0 | \ No newline at end of file |
src/main/resources/mybatis/receipt/ReceiptDetailMapper.xml deleted
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | -<mapper namespace="com.huaheng.pc.receipt.receiptDetail.mapper.ReceiptDetailMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.receipt.receiptDetail.domain.ReceiptDetail"> | |
5 | - <!--@mbg.generated--> | |
6 | - <id column="id" jdbcType="INTEGER" property="id" /> | |
7 | - <result column="receiptId" jdbcType="INTEGER" property="receiptId" /> | |
8 | - <result column="receiptCode" jdbcType="VARCHAR" property="receiptCode" /> | |
9 | - <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" /> | |
10 | - <result column="companyCode" jdbcType="VARCHAR" property="companyCode" /> | |
11 | - <result column="materialCode" jdbcType="VARCHAR" property="materialCode" /> | |
12 | - <result column="materialName" jdbcType="VARCHAR" property="materialName" /> | |
13 | - <result column="materialSpec" jdbcType="VARCHAR" property="materialSpec" /> | |
14 | - <result column="materialUnit" jdbcType="VARCHAR" property="materialUnit" /> | |
15 | - <result column="supplierCode" jdbcType="VARCHAR" property="supplierCode" /> | |
16 | - <result column="batch" jdbcType="VARCHAR" property="batch" /> | |
17 | - <result column="lot" jdbcType="VARCHAR" property="lot" /> | |
18 | - <result column="qcCheck" jdbcType="VARCHAR" property="qcCheck" /> | |
19 | - <result column="projectNo" jdbcType="VARCHAR" property="projectNo" /> | |
20 | - <result column="manufactureDate" jdbcType="DATE" property="manufactureDate" /> | |
21 | - <result column="expirationDate" jdbcType="DATE" property="expirationDate" /> | |
22 | - <result column="agingDate" jdbcType="DATE" property="agingDate" /> | |
23 | - <result column="attributeTemplateCode" jdbcType="VARCHAR" property="attributeTemplateCode" /> | |
24 | - <result column="attribute1" jdbcType="VARCHAR" property="attribute1" /> | |
25 | - <result column="attribute2" jdbcType="VARCHAR" property="attribute2" /> | |
26 | - <result column="attribute3" jdbcType="VARCHAR" property="attribute3" /> | |
27 | - <result column="attribute4" jdbcType="VARCHAR" property="attribute4" /> | |
28 | - <result column="totalQty" jdbcType="INTEGER" property="totalQty" /> | |
29 | - <result column="openQty" jdbcType="INTEGER" property="openQty" /> | |
30 | - <result column="referCode" jdbcType="VARCHAR" property="referCode" /> | |
31 | - <result column="referId" jdbcType="INTEGER" property="referId" /> | |
32 | - <result column="referLineNum" jdbcType="VARCHAR" property="referLineNum" /> | |
33 | - <result column="locatingRule" jdbcType="VARCHAR" property="locatingRule" /> | |
34 | - <result column="inventorySts" jdbcType="VARCHAR" property="inventorySts" /> | |
35 | - <result column="itemListPrice" jdbcType="DECIMAL" property="itemListPrice" /> | |
36 | - <result column="itemNetPrice" jdbcType="DECIMAL" property="itemNetPrice" /> | |
37 | - <result column="isVirtualBom" jdbcType="INTEGER" property="isVirtualBom" /> | |
38 | - <result column="created" jdbcType="TIMESTAMP" property="created" /> | |
39 | - <result column="createdBy" jdbcType="VARCHAR" property="createdBy" /> | |
40 | - <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" /> | |
41 | - <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" /> | |
42 | - <result column="version" jdbcType="INTEGER" property="version" /> | |
43 | - <result column="userDef1" jdbcType="VARCHAR" property="userDef1" /> | |
44 | - <result column="userDef2" jdbcType="VARCHAR" property="userDef2" /> | |
45 | - <result column="userDef3" jdbcType="VARCHAR" property="userDef3" /> | |
46 | - <result column="userDef4" jdbcType="VARCHAR" property="userDef4" /> | |
47 | - <result column="userDef5" jdbcType="VARCHAR" property="userDef5" /> | |
48 | - <result column="userDef6" jdbcType="VARCHAR" property="userDef6" /> | |
49 | - <result column="userDef7" jdbcType="VARCHAR" property="userDef7" /> | |
50 | - <result column="userDef8" jdbcType="VARCHAR" property="userDef8" /> | |
51 | - <result column="processStamp" jdbcType="VARCHAR" property="processStamp" /> | |
52 | - <result column="deleted" jdbcType="BIT" property="deleted" /> | |
53 | - </resultMap> | |
54 | - <sql id="Base_Column_List"> | |
55 | - <!--@mbg.generated--> | |
56 | - id, receiptId, receiptCode, warehouseCode, companyCode, materialCode, materialName, | |
57 | - materialSpec, materialUnit, supplierCode, batch, lot, qcCheck, projectNo, manufactureDate, | |
58 | - expirationDate, agingDate, attributeTemplateCode, attribute1, attribute2, attribute3, | |
59 | - attribute4, totalQty, openQty, referCode, referId, referLineNum, locatingRule, inventorySts, | |
60 | - itemListPrice, itemNetPrice, isVirtualBom, created, createdBy, lastUpdated, lastUpdatedBy, | |
61 | - version, userDef1, userDef2, userDef3, userDef4, userDef5, userDef6, userDef7, userDef8, | |
62 | - processStamp, deleted | |
63 | - </sql> | |
64 | - | |
65 | -</mapper> | |
66 | 0 | \ No newline at end of file |
src/main/resources/mybatis/receipt/ReceiptHeaderMapper.xml
... | ... | @@ -42,6 +42,7 @@ |
42 | 42 | <result column="userDef7" jdbcType="VARCHAR" property="userDef7" /> |
43 | 43 | <result column="userDef8" jdbcType="VARCHAR" property="userDef8" /> |
44 | 44 | <result column="processStamp" jdbcType="VARCHAR" property="processStamp" /> |
45 | + <result column="deleted" jdbcType="BIT" property="deleted" /> | |
45 | 46 | </resultMap> |
46 | 47 | <sql id="Base_Column_List"> |
47 | 48 | <!--@mbg.generated--> |
... | ... | @@ -50,8 +51,6 @@ |
50 | 51 | startCheckinDatetime, endCheckinDatetime, totalQty, totalLines, toalCases, totalWeight, |
51 | 52 | totalVolume, receiptNote, locked, lockedBy, created, createdBy, lastUpdated, lastUpdatedBy, |
52 | 53 | version, userDef1, userDef2, userDef3, userDef4, userDef5, userDef6, userDef7, userDef8, |
53 | - processStamp | |
54 | + processStamp, deleted | |
54 | 55 | </sql> |
55 | - | |
56 | - | |
57 | 56 | </mapper> |
58 | 57 | \ No newline at end of file |
... | ... |
src/main/resources/templates/config/receiptPreference/add.html
... | ... | @@ -60,12 +60,6 @@ |
60 | 60 | </div> |
61 | 61 | </div> |
62 | 62 | <div class="form-group"> |
63 | - <label class="col-sm-3 control-label">入库单类型:</label> | |
64 | - <div class="col-sm-8"> | |
65 | - <input id="receiptTypes" name="receiptTypes" class="form-control" type="text"> | |
66 | - </div> | |
67 | - </div> | |
68 | - <div class="form-group"> | |
69 | 63 | <label class="col-sm-3 control-label">RF组车收货:</label> |
70 | 64 | <div class="col-sm-8"> |
71 | 65 | <input id="groupPutaway" name="groupPutaway" class="form-control" type="text"> |
... | ... | @@ -78,9 +72,15 @@ |
78 | 72 | </div> |
79 | 73 | </div> |
80 | 74 | <div class="form-group"> |
81 | - <label class="col-sm-3 control-label">定位规则动态指派:</label> | |
75 | + <label class="col-sm-3 control-label">定位规则:</label> | |
76 | + <div class="col-sm-8"> | |
77 | + <input id="locationRule" name="locationRule" class="form-control" type="text"> | |
78 | + </div> | |
79 | + </div> | |
80 | + <div class="form-group"> | |
81 | + <label class="col-sm-3 control-label">空库位规则:</label> | |
82 | 82 | <div class="col-sm-8"> |
83 | - <input id="ruleAssignment" name="ruleAssignment" class="form-control" type="text"> | |
83 | + <input id="emptyLocRule" name="emptyLocRule" class="form-control" type="text"> | |
84 | 84 | </div> |
85 | 85 | </div> |
86 | 86 | <div class="form-group"> |
... | ... | @@ -96,12 +96,42 @@ |
96 | 96 | </div> |
97 | 97 | </div> |
98 | 98 | <div class="form-group"> |
99 | + <label class="col-sm-3 control-label">abc分类:</label> | |
100 | + <div class="col-sm-8"> | |
101 | + <input id="abcClass" name="abcClass" class="form-control" type="text"> | |
102 | + </div> | |
103 | + </div> | |
104 | + <div class="form-group"> | |
105 | + <label class="col-sm-3 control-label">保质期(天):</label> | |
106 | + <div class="col-sm-8"> | |
107 | + <input id="daysToExpire" name="daysToExpire" class="form-control" type="text"> | |
108 | + </div> | |
109 | + </div> | |
110 | + <div class="form-group"> | |
111 | + <label class="col-sm-3 control-label">临期预警(天):</label> | |
112 | + <div class="col-sm-8"> | |
113 | + <input id="expiringDays" name="expiringDays" class="form-control" type="text"> | |
114 | + </div> | |
115 | + </div> | |
116 | + <div class="form-group"> | |
117 | + <label class="col-sm-3 control-label">收货预警(天):</label> | |
118 | + <div class="col-sm-8"> | |
119 | + <input id="minShelfLifeDays" name="minShelfLifeDays" class="form-control" type="text"> | |
120 | + </div> | |
121 | + </div> | |
122 | + <div class="form-group"> | |
99 | 123 | <label class="col-sm-3 control-label">RF快速上架:</label> |
100 | 124 | <div class="col-sm-8"> |
101 | 125 | <input id="allowQuickPutaway" name="allowQuickPutaway" class="form-control" type="text"> |
102 | 126 | </div> |
103 | 127 | </div> |
104 | 128 | <div class="form-group"> |
129 | + <label class="col-sm-3 control-label">属性模板:</label> | |
130 | + <div class="col-sm-8"> | |
131 | + <input id="attributeTemplateCode" name="attributeTemplateCode" class="form-control" type="text"> | |
132 | + </div> | |
133 | + </div> | |
134 | + <div class="form-group"> | |
105 | 135 | <label class="col-sm-3 control-label">快速入库:</label> |
106 | 136 | <div class="col-sm-8"> |
107 | 137 | <input id="useQuickCheckIn" name="useQuickCheckIn" class="form-control" type="text"> |
... | ... |
src/main/resources/templates/config/receiptPreference/edit.html
... | ... | @@ -3,9 +3,9 @@ |
3 | 3 | <meta charset="utf-8"> |
4 | 4 | <head th:include="include :: header"></head> |
5 | 5 | <body class="white-bg"> |
6 | -<div class="wrapper wrapper-content animated fadeInRight ibox-content" th:object="${receiptPreference}"> | |
7 | - <form class="form-horizontal m" id="form-receiptPreference-edit"> | |
8 | - <input name="id" th:field="*{id}"> | |
6 | +<div class="wrapper wrapper-content animated fadeInRight ibox-content"> | |
7 | + <form class="form-horizontal m" id="form-receiptPreference-edit" th:object="${receiptPreference}"> | |
8 | + <input id="id" name="id" th:field="*{id}"> | |
9 | 9 | <div class="form-group"> |
10 | 10 | <label class="col-sm-3 control-label">编码:</label> |
11 | 11 | <div class="col-sm-8"> |
... | ... | @@ -34,8 +34,8 @@ |
34 | 34 | <label class="col-sm-3 control-label">允许超收:</label> |
35 | 35 | <div class="col-sm-8"> |
36 | 36 | <div class="onoffswitch"> |
37 | - <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" | |
38 | - id="allowOverReceiving" name="allowOverReceiving" th:field="*{allowOverReceiving}"> | |
37 | + <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="allowOverReceiving" | |
38 | + name="allowOverReceiving" th:field="*{allowOverReceiving}"> | |
39 | 39 | <label class="onoffswitch-label" for="allowOverReceiving"> |
40 | 40 | <span class="onoffswitch-inner"></span> |
41 | 41 | <span class="onoffswitch-switch"></span> |
... | ... | @@ -46,8 +46,7 @@ |
46 | 46 | <div class="form-group"> |
47 | 47 | <label class="col-sm-3 control-label">允许超收范围:</label> |
48 | 48 | <div class="col-sm-8"> |
49 | - <input id="allowOverReceivingQty" name="allowOverReceivingQty" class="form-control" | |
50 | - type="text" th:field="*{allowOverReceivingQty}"> | |
49 | + <input id="allowOverReceivingQty" name="allowOverReceivingQty" class="form-control" type="text" th:field="*{allowOverReceivingQty}"> | |
51 | 50 | </div> |
52 | 51 | </div> |
53 | 52 | <div class="form-group"> |
... | ... | @@ -63,12 +62,6 @@ |
63 | 62 | </div> |
64 | 63 | </div> |
65 | 64 | <div class="form-group"> |
66 | - <label class="col-sm-3 control-label">入库单类型:</label> | |
67 | - <div class="col-sm-8"> | |
68 | - <input id="receiptTypes" name="receiptTypes" class="form-control" type="text" th:field="*{receiptTypes}"> | |
69 | - </div> | |
70 | - </div> | |
71 | - <div class="form-group"> | |
72 | 65 | <label class="col-sm-3 control-label">RF组车收货:</label> |
73 | 66 | <div class="col-sm-8"> |
74 | 67 | <input id="groupPutaway" name="groupPutaway" class="form-control" type="text" th:field="*{groupPutaway}"> |
... | ... | @@ -81,9 +74,15 @@ |
81 | 74 | </div> |
82 | 75 | </div> |
83 | 76 | <div class="form-group"> |
84 | - <label class="col-sm-3 control-label">定位规则动态指派:</label> | |
77 | + <label class="col-sm-3 control-label">定位规则:</label> | |
78 | + <div class="col-sm-8"> | |
79 | + <input id="locationRule" name="locationRule" class="form-control" type="text" th:field="*{locationRule}"> | |
80 | + </div> | |
81 | + </div> | |
82 | + <div class="form-group"> | |
83 | + <label class="col-sm-3 control-label">空库位规则:</label> | |
85 | 84 | <div class="col-sm-8"> |
86 | - <input id="ruleAssignment" name="ruleAssignment" class="form-control" type="text" th:field="*{ruleAssignment}"> | |
85 | + <input id="emptyLocRule" name="emptyLocRule" class="form-control" type="text" th:field="*{emptyLocRule}"> | |
87 | 86 | </div> |
88 | 87 | </div> |
89 | 88 | <div class="form-group"> |
... | ... | @@ -99,12 +98,42 @@ |
99 | 98 | </div> |
100 | 99 | </div> |
101 | 100 | <div class="form-group"> |
101 | + <label class="col-sm-3 control-label">abc分类:</label> | |
102 | + <div class="col-sm-8"> | |
103 | + <input id="abcClass" name="abcClass" class="form-control" type="text" th:field="*{abcClass}"> | |
104 | + </div> | |
105 | + </div> | |
106 | + <div class="form-group"> | |
107 | + <label class="col-sm-3 control-label">保质期(天):</label> | |
108 | + <div class="col-sm-8"> | |
109 | + <input id="daysToExpire" name="daysToExpire" class="form-control" type="text" th:field="*{daysToExpire}"> | |
110 | + </div> | |
111 | + </div> | |
112 | + <div class="form-group"> | |
113 | + <label class="col-sm-3 control-label">临期预警(天):</label> | |
114 | + <div class="col-sm-8"> | |
115 | + <input id="expiringDays" name="expiringDays" class="form-control" type="text" th:field="*{expiringDays}"> | |
116 | + </div> | |
117 | + </div> | |
118 | + <div class="form-group"> | |
119 | + <label class="col-sm-3 control-label">收货预警(天):</label> | |
120 | + <div class="col-sm-8"> | |
121 | + <input id="minShelfLifeDays" name="minShelfLifeDays" class="form-control" type="text" th:field="*{minShelfLifeDays}"> | |
122 | + </div> | |
123 | + </div> | |
124 | + <div class="form-group"> | |
102 | 125 | <label class="col-sm-3 control-label">RF快速上架:</label> |
103 | 126 | <div class="col-sm-8"> |
104 | 127 | <input id="allowQuickPutaway" name="allowQuickPutaway" class="form-control" type="text" th:field="*{allowQuickPutaway}"> |
105 | 128 | </div> |
106 | 129 | </div> |
107 | 130 | <div class="form-group"> |
131 | + <label class="col-sm-3 control-label">属性模板:</label> | |
132 | + <div class="col-sm-8"> | |
133 | + <input id="attributeTemplateCode" name="attributeTemplateCode" class="form-control" type="text" th:field="*{attributeTemplateCode}"> | |
134 | + </div> | |
135 | + </div> | |
136 | + <div class="form-group"> | |
108 | 137 | <label class="col-sm-3 control-label">快速入库:</label> |
109 | 138 | <div class="col-sm-8"> |
110 | 139 | <input id="useQuickCheckIn" name="useQuickCheckIn" class="form-control" type="text" th:field="*{useQuickCheckIn}"> |
... | ... | @@ -240,9 +269,8 @@ |
240 | 269 | } |
241 | 270 | }, |
242 | 271 | submitHandler: function(form) { |
243 | - var tableValue = $.common.getTableValue("#form-receiptPreference-edit"); | |
244 | - tableValue = formValueReplace(tableValue, "companyCode", $("#companyCode option:selected").val()); | |
245 | - tableValue = formValueReplace(tableValue, "enable", $("input[name='enable']").is(':checked')); | |
272 | + var tableValue = $.common.getTableValue("#form-receiptPreference-edi"); | |
273 | + tableValue = formValueReplace(tableValue, "allowOverReceiving", $("input[name='allowOverReceiving']").is(':checked')); | |
246 | 274 | $.operate.save(prefix + "/edit", tableValue); |
247 | 275 | } |
248 | 276 | }); |
... | ... |
src/main/resources/templates/config/receiptPreference/receiptPreference.html
... | ... | @@ -36,10 +36,10 @@ |
36 | 36 | </form> |
37 | 37 | </div> |
38 | 38 | <div class="btn-group hidden-xs" id="toolbar" role="group"> |
39 | - <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="config:locationType:add"> | |
39 | + <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="config:receiptPreference:add"> | |
40 | 40 | <i class="fa fa-plus"></i> 新增 |
41 | 41 | </a> |
42 | - <a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="config:locationType:remove"> | |
42 | + <a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="config:receiptPreference:remove"> | |
43 | 43 | <i class="fa fa-trash-o"></i> 删除 |
44 | 44 | </a> |
45 | 45 | </div> |
... | ... | @@ -120,8 +120,12 @@ |
120 | 120 | title : '人工组盘' |
121 | 121 | }, |
122 | 122 | { |
123 | - field : 'ruleAssignment', | |
124 | - title : '定位规则动态指派' | |
123 | + field : 'locationRule', | |
124 | + title : '定位规则' | |
125 | + }, | |
126 | + { | |
127 | + field : 'emptyLocRule', | |
128 | + title : '空库位规则' | |
125 | 129 | }, |
126 | 130 | { |
127 | 131 | field : 'checkinByPiece', |
... | ... | @@ -132,10 +136,30 @@ |
132 | 136 | title : 'RF自动提交收货' |
133 | 137 | }, |
134 | 138 | { |
139 | + field : 'abcClass', | |
140 | + title : 'abc分类' | |
141 | + }, | |
142 | + { | |
143 | + field : 'daysToExpire', | |
144 | + title : '保质期(天)' | |
145 | + }, | |
146 | + { | |
147 | + field : 'expiringDays', | |
148 | + title : '临期预警(天)' | |
149 | + }, | |
150 | + { | |
151 | + field : 'minShelfLifeDays', | |
152 | + title : '收货预警(天)' | |
153 | + }, | |
154 | + { | |
135 | 155 | field : 'allowQuickPutaway', |
136 | 156 | title : 'RF快速上架' |
137 | 157 | }, |
138 | 158 | { |
159 | + field : 'attributeTemplateCode', | |
160 | + title : '属性模板' | |
161 | + }, | |
162 | + { | |
139 | 163 | field : 'useQuickCheckIn', |
140 | 164 | title : '快速入库' |
141 | 165 | }, |
... | ... | @@ -208,5 +232,7 @@ |
208 | 232 | $.table.init(options); |
209 | 233 | }); |
210 | 234 | </script> |
235 | + </div> | |
236 | +</div> | |
211 | 237 | </body> |
212 | 238 | </html> |
213 | 239 | \ No newline at end of file |
... | ... |
src/main/resources/templates/config/warehouseConfig/add.html deleted
src/main/resources/templates/config/warehouseConfig/warehouse.html deleted
1 | -<!DOCTYPE HTML> | |
2 | -<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> | |
3 | -<meta charset="utf-8"> | |
4 | -<head th:include="include :: header"></head> | |
5 | -<body class="gray-bg"> | |
6 | -<div class="container-div"> | |
7 | - <div class="row"> | |
8 | - <div class="col-sm-12 select-info"> | |
9 | - <form id="company-form"> | |
10 | - <div class="select-list"> | |
11 | - <ul> | |
12 | - <li> | |
13 | - 仓库编码:<input type="text" name="code"/> | |
14 | - </li> | |
15 | - <li> | |
16 | - <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> | |
17 | - </li> | |
18 | - </ul> | |
19 | - </div> | |
20 | - </form> | |
21 | - </div> | |
22 | - <div class="btn-group hidden-xs" id="toolbar" role="group"> | |
23 | - <a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="config:warehouse:add"> | |
24 | - <i class="fa fa-plus"></i> 新增 | |
25 | - </a> | |
26 | - </div> | |
27 | - | |
28 | - <div class="col-sm-12 select-info"> | |
29 | - <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover"></table> | |
30 | - </div> | |
31 | - </div> | |
32 | -</div> | |
33 | -<div th:include="include :: footer"></div> | |
34 | -<script th:inline="javascript"> | |
35 | - var editFlag = [[${@permission.hasPermi('config:warehouseConfig:edit')}]]; | |
36 | - var removeFlag = [[${@permission.hasPermi('config:warehouseConfig:remove')}]]; | |
37 | - var prefix = ctx + "config/warehouseConfig"; | |
38 | - var datas = [[${@dict.getType('sys_normal_disable')}]]; | |
39 | - $(function() { | |
40 | - var options = { | |
41 | - url: prefix + "/list", | |
42 | - createUrl: prefix + "/add", | |
43 | - updateUrl: prefix + "/edit/{code}", | |
44 | - removeUrl: prefix + "/remove", | |
45 | - modalName: "仓库配置", | |
46 | - search: false, | |
47 | - columns: [{ | |
48 | - checkbox: true | |
49 | - }, | |
50 | - { | |
51 | - field : 'code', | |
52 | - title : '编码', | |
53 | - visible : false | |
54 | - }, | |
55 | - { | |
56 | - field : 'warehouseCode', | |
57 | - title : '仓库编码' | |
58 | - }, | |
59 | - { | |
60 | - field : 'name', | |
61 | - title : '名称' | |
62 | - }, | |
63 | - { | |
64 | - field : 'abcClass', | |
65 | - title : 'ABC分类' | |
66 | - }, | |
67 | - { | |
68 | - field : 'daysToExpire', | |
69 | - title : '保质期(天)' | |
70 | - }, | |
71 | - { | |
72 | - field : 'locatingRule', | |
73 | - title : '定位规则' | |
74 | - }, | |
75 | - { | |
76 | - field : 'allocationRule', | |
77 | - title : '分配规则' , | |
78 | - }, | |
79 | - { | |
80 | - field : 'replenishmentRule', | |
81 | - title : '补货规则' | |
82 | - }, | |
83 | - { | |
84 | - field : 'emptyLocRule', | |
85 | - title : '空货位规则' | |
86 | - }, | |
87 | - { | |
88 | - field : 'receivingFlow', | |
89 | - title : '入库流程' | |
90 | - }, | |
91 | - { | |
92 | - field : 'shippingFlow', | |
93 | - title : '出库流程' | |
94 | - }, | |
95 | - { | |
96 | - field : 'attributeTemplateCode', | |
97 | - title : '属性模版' | |
98 | - }, | |
99 | - { | |
100 | - field : 'trackSerialNum', | |
101 | - title : '记录序列号' | |
102 | - }, | |
103 | - { | |
104 | - field : 'autoGenSerialNum', | |
105 | - title : '自动生成序列号' | |
106 | - }, | |
107 | - { | |
108 | - field : 'autoGenSerialNumFormat', | |
109 | - title : '自动生成序列号表达式' | |
110 | - }, | |
111 | - { | |
112 | - field : 'snTemplateCode', | |
113 | - title : '序列号模版' | |
114 | - }, | |
115 | - { | |
116 | - field : 'expiringDays', | |
117 | - title : '临期预警天数' | |
118 | - }, | |
119 | - { | |
120 | - field : 'minShelfLifeDays', | |
121 | - title : '收货预警天数' | |
122 | - }, | |
123 | - { | |
124 | - field : 'created', | |
125 | - title : '创建时间', | |
126 | - visible : false | |
127 | - }, | |
128 | - { | |
129 | - field : 'createdBy', | |
130 | - title : '创建用户', | |
131 | - visible : false | |
132 | - }, | |
133 | - { | |
134 | - field : 'lastUpdated', | |
135 | - title : '更新时间', | |
136 | - visible : false | |
137 | - }, | |
138 | - { | |
139 | - field : 'lastUpdatedBy', | |
140 | - title : '更新用户', | |
141 | - visible : false | |
142 | - }, | |
143 | - { | |
144 | - field : 'enable', | |
145 | - title : '状态' , | |
146 | - align: 'center', | |
147 | - formatter: function(value, row, index) { | |
148 | - return $.table.selectDictLabel(datas, value); | |
149 | - } | |
150 | - }, | |
151 | - // { | |
152 | - // field : 'deleted', | |
153 | - // title : '是否删除' | |
154 | - // }, | |
155 | - { | |
156 | - field : 'userDef1', | |
157 | - title : '自定义字段1', | |
158 | - visible:false | |
159 | - }, | |
160 | - { | |
161 | - field : 'userDef2', | |
162 | - title : '自定义字段2' , | |
163 | - visible:false | |
164 | - }, | |
165 | - { | |
166 | - field : 'userDef3', | |
167 | - title : '自定义字段3', | |
168 | - visible:false | |
169 | - }, | |
170 | - { | |
171 | - field : 'userDef4', | |
172 | - title : '自定义字段4', | |
173 | - visible:false | |
174 | - }, | |
175 | - { | |
176 | - field : 'userDef5', | |
177 | - title : '自定义字段5', | |
178 | - visible:false | |
179 | - }, | |
180 | - { | |
181 | - field : 'userDef6', | |
182 | - title : '自定义字段7', | |
183 | - visible:false | |
184 | - }, | |
185 | - { | |
186 | - field : 'userDef7', | |
187 | - title : '自定义字段7', | |
188 | - visible:false | |
189 | - }, | |
190 | - { | |
191 | - field : 'userDef8', | |
192 | - title : '自定义字段8', | |
193 | - visible:false | |
194 | - }, | |
195 | - { | |
196 | - field : 'version', | |
197 | - title : '数据版本', | |
198 | - visible:false | |
199 | - }, | |
200 | - { | |
201 | - title: '操作', | |
202 | - align: 'center', | |
203 | - formatter: function(value, row, index) { | |
204 | - var actions = []; | |
205 | - actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick= edit(\''+row.code+'\')><i class="fa fa-edit"></i>编辑</a> '); | |
206 | - return actions.join(''); | |
207 | - } | |
208 | - }] | |
209 | - }; | |
210 | - $.table.init(options); | |
211 | - }); | |
212 | - | |
213 | - function edit(code) { | |
214 | - var url = prefix + "/edit/"+code; | |
215 | - $.modal.open("修改" + $.table._option.modalName, url); | |
216 | - } | |
217 | -</script> | |
218 | -</body> | |
219 | -</html> | |
220 | 0 | \ No newline at end of file |