Commit c6fbd85daca7a03d0c553dbb0a351a1423f34ad8
Merge remote-tracking branch 'origin/develop' into develop
Showing
5 changed files
with
24 additions
and
15 deletions
src/main/java/com/huaheng/pc/config/container/domain/Container.java
... | ... | @@ -194,7 +194,12 @@ public class Container implements Serializable { |
194 | 194 | @ApiModelProperty(value="处理标记") |
195 | 195 | private String processStamp; |
196 | 196 | |
197 | - private static final long serialVersionUID = 1L; | |
197 | + /** | |
198 | + * 打印机名称 | |
199 | + * 当该类模板调用时 | |
200 | + */ | |
201 | + // private static final String printName = "Bar Code Printer T-4503E"; | |
202 | + private static final long serialVersionUID = 1L; | |
198 | 203 | |
199 | 204 | @Override |
200 | 205 | public String toString() { |
... | ... | @@ -217,7 +222,8 @@ public class Container implements Serializable { |
217 | 222 | sb.append(", enable=").append(enable); |
218 | 223 | sb.append(", printNum=").append(printNum); |
219 | 224 | sb.append(", version=").append(version); |
220 | - sb.append(", userDef1=").append(userDef1); | |
225 | + // sb.append(", printName").append(printName); | |
226 | + sb.append(", userDef1=").append(userDef1); | |
221 | 227 | sb.append(", userDef2=").append(userDef2); |
222 | 228 | sb.append(", userDef3=").append(userDef3); |
223 | 229 | sb.append(", userDef4=").append(userDef4); |
... | ... |
src/main/java/com/huaheng/pc/config/location/domain/Location.java
1 | 1 | package com.huaheng.pc.config.location.domain; |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.annotation.*; |
4 | +import lombok.Data; | |
4 | 5 | |
5 | 6 | import java.io.Serializable; |
6 | 7 | import java.math.BigDecimal; |
7 | 8 | import java.util.Date; |
8 | 9 | import java.util.List; |
9 | 10 | |
10 | -import lombok.Data; | |
11 | -import org.springframework.transaction.annotation.Transactional; | |
12 | - | |
13 | 11 | @Data |
14 | 12 | @TableName(value = "location") |
15 | 13 | public class Location implements Serializable { |
... | ... | @@ -205,6 +203,8 @@ public class Location implements Serializable { |
205 | 203 | |
206 | 204 | @TableField(exist = false) |
207 | 205 | private List<BigDecimal> qty; |
206 | + // 打印机名称 标识 | |
207 | + // private static final String printName = "Bar Code Printer T-4503E"; | |
208 | 208 | |
209 | 209 | private static final long serialVersionUID = 1L; |
210 | 210 | } |
211 | 211 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/config/location/service/LocationServiceImpl.java
1 | 1 | package com.huaheng.pc.config.location.service; |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |
5 | 4 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
6 | 5 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
7 | 7 | import com.huaheng.common.exception.service.ServiceException; |
8 | 8 | import com.huaheng.common.utils.StringUtils; |
9 | 9 | import com.huaheng.common.utils.security.ShiroUtils; |
10 | 10 | import com.huaheng.framework.web.domain.AjaxResult; |
11 | +import com.huaheng.pc.config.location.domain.Location; | |
11 | 12 | import com.huaheng.pc.config.location.domain.LocationInfo; |
13 | +import com.huaheng.pc.config.location.mapper.LocationMapper; | |
12 | 14 | import com.huaheng.pc.config.locationType.domain.LocationType; |
13 | 15 | import com.huaheng.pc.config.locationType.service.LocationTypeService; |
14 | 16 | import com.huaheng.pc.config.zone.domain.Zone; |
15 | 17 | import com.huaheng.pc.config.zone.service.ZoneService; |
16 | 18 | import com.huaheng.pc.task.taskHeader.service.TaskHeaderService; |
17 | 19 | import org.springframework.stereotype.Service; |
20 | + | |
18 | 21 | import javax.annotation.Resource; |
19 | 22 | import java.text.MessageFormat; |
20 | 23 | import java.util.*; |
21 | 24 | |
22 | -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
23 | -import com.huaheng.pc.config.location.domain.Location; | |
24 | -import com.huaheng.pc.config.location.mapper.LocationMapper; | |
25 | - | |
26 | 25 | @Service("LocationService") |
27 | 26 | public class LocationServiceImpl extends ServiceImpl<LocationMapper, Location> implements LocationService{ |
28 | 27 | |
... | ... | @@ -215,11 +214,11 @@ public class LocationServiceImpl extends ServiceImpl<LocationMapper, Location> i |
215 | 214 | throw new ServiceException("库区编码不存在"); |
216 | 215 | } |
217 | 216 | //TODO:胡海--在判断库位类型和库区是否匹配,应该用库位类型表进行判断。库位类型在库区存在即可 |
218 | - if(!zoneCode.equals(locationType)){ | |
217 | + /* if(!zoneCode.equals(locationType)){ | |
219 | 218 | throw new ServiceException(locationType+"的库位类型与"+ zoneCode +"库区不匹配"); |
220 | - } | |
219 | + }*/ | |
221 | 220 | |
222 | - List<Location> locations = new ArrayList<>(); | |
221 | + List<Location> locations = new ArrayList<>(); // 为零? | |
223 | 222 | for (int i=firstRow.intValue(); i<=lastRow.intValue(); i++) { |
224 | 223 | for (int j=firstColumn.intValue(); j<=lastColumn.intValue(); j++) { |
225 | 224 | for (int k=firstLayer.intValue(); k<=lastLayer.intValue(); k++) { |
... | ... |
src/main/java/com/huaheng/pc/config/material/domain/Material.java
... | ... | @@ -7,9 +7,10 @@ import com.baomidou.mybatisplus.annotation.TableName; |
7 | 7 | import com.huaheng.framework.aspectj.lang.annotation.Excel; |
8 | 8 | import io.swagger.annotations.ApiModel; |
9 | 9 | import io.swagger.annotations.ApiModelProperty; |
10 | +import lombok.Data; | |
11 | + | |
10 | 12 | import java.io.Serializable; |
11 | 13 | import java.util.Date; |
12 | -import lombok.Data; | |
13 | 14 | |
14 | 15 | @ApiModel(value="com.huaheng.pc.config.material.domain.Material") |
15 | 16 | @Data |
... | ... | @@ -309,4 +310,6 @@ public class Material implements Serializable { |
309 | 310 | @TableField(value = "isMix") |
310 | 311 | @ApiModelProperty(value = "是否允许混放") |
311 | 312 | private Boolean isMix; |
313 | + /** 打印机名称 */ | |
314 | + // private static final String printName = "Gprinter GP-1424D"; | |
312 | 315 | } |
313 | 316 | \ No newline at end of file |
... | ... |
src/main/resources/static/huaheng/js/huahengUI.js
... | ... | @@ -1028,6 +1028,7 @@ var table = { |
1028 | 1028 | }, |
1029 | 1029 | // 批量打印信息 |
1030 | 1030 | batPrint: function () { |
1031 | + debugger; | |
1031 | 1032 | table.set(); // 将当前页的table传入这边保存table信息 |
1032 | 1033 | var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId); // 判断是否有选中的记录返回行或第一行 |
1033 | 1034 | if (rows.length == 0) { |
... | ... | @@ -1036,7 +1037,7 @@ var table = { |
1036 | 1037 | } |
1037 | 1038 | $.modal.confirm("确认要打印选中的" + rows.length + "条数据吗?", function () { |
1038 | 1039 | var url = table.options.printUrl; // |
1039 | - // var data = {"ids": rows.join()}; // {"ids:"(\B+,)+} this a func | |
1040 | + // var data = {"ids": rows.join()}; // {"ids:"(\B+,)+} this a func | |
1040 | 1041 | // $.operate.submit(url,"post","json",data); |
1041 | 1042 | var param = ""; |
1042 | 1043 | $(rows).each(function (i, item) { |
... | ... |