| | |
| | | @ExcelProperty("数量") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty(value= "商品编号") |
| | | @ExcelProperty("商品编号") |
| | | @ApiModelProperty(value= "规格") |
| | | @ExcelProperty("规格") |
| | | private String matnr; |
| | | |
| | | @ApiModelProperty(value= "商品名称") |
| | | @ExcelProperty("商品名称") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "规格") |
| | | @ExcelProperty("规格") |
| | | @ApiModelProperty(value= "接头") |
| | | private String specs; |
| | | |
| | | @ApiModelProperty(value= "货品特征") |
| | | @ExcelProperty("货品特征") |
| | | @ApiModelProperty(value= "箱号") |
| | | // @ExcelProperty("箱号") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "单据编号") |
| | | @ExcelProperty("单据编号") |
| | | // @ExcelProperty("单据编号") |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty(value= "型号") |
| | | @ApiModelProperty(value= "卷号") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value= "颜色") |
| | | private String color; |
| | | |
| | | @ApiModelProperty(value= "品牌") |
| | | @ApiModelProperty(value= "木箱类型") |
| | | @ExcelProperty("木箱类型") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value= "单位") |
| | |
| | | @ApiModelProperty(value= "单位") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value= "单价") |
| | | @ApiModelProperty(value= "单价 长度") |
| | | private Double price; |
| | | |
| | | @ApiModelProperty(value= "sku") |
| | |
| | | @ApiModelProperty(value= "长度") |
| | | private Double length; |
| | | |
| | | @ApiModelProperty(value= "体积") |
| | | @ApiModelProperty(value= "体积 毛重") |
| | | private Double volume; |
| | | |
| | | @ApiModelProperty(value= "三方编码") |
| | |
| | | }else if (Cools.isEmpty(matList.getWeight()) || matList.getWeight().equals(0D)){ |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:净重 weight为空"); |
| | | }else if (Cools.isEmpty(matList.getRoughWeight()) || matList.getRoughWeight().equals(0D)){ |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:毛重 roughWeight"); |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:毛重 roughWeight为空"); |
| | | }else if (Cools.isEmpty(matList.getRollExtent()) || matList.getRollExtent().equals(0D)){ |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:卷长度 rollExtent"); |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:卷长度 rollExtent为空"); |
| | | }else if (Cools.isEmpty(matList.getJoint()) || matList.getJoint()==0){ |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:接头 joint为空"); |
| | | } |
| | | |
| | | if (matList.getPosition().equals("1")){//1、左 2、右 |
| | |
| | | waitPakin.setZpallet(param.getBarcode()); //托盘码 |
| | | waitPakin.setOrigin(matList.getPosition()); //木箱在托盘上的位置 |
| | | waitPakin.setWeight(matList.getWeight()); //净重 |
| | | // waitPakin.setRoughWeight(matList.getRoughWeight()); //毛重 |
| | | // waitPakin.setRollExtent(matList.getRollExtent()); //长度 |
| | | waitPakin.setVolume(matList.getRoughWeight()); //毛重 |
| | | waitPakin.setPrice(matList.getRollExtent()); //长度 |
| | | waitPakin.setSpecs(String.valueOf(matList.getJoint())); //长度 |
| | | waitPakin.setIoStatus("Y"); // 入出状态 |
| | | waitPakin.setAnfme(matList.getAnfme()); // 数量 |
| | | waitPakin.setStatus("Y"); // 状态 |
| | |
| | | if (!Cools.isEmpty(basDevp) && basDevp.getAutoing().equals("Y") && basDevp.getWrkNo()!=0){ //上传前工作号跟电控约定为9992中控(桁架):码垛完成下发入库信息(你可以自定义) |
| | | |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", basDevp.getWrkNo())); |
| | | if (Cools.isEmpty(wrkMast) || !wrkMast.getSheetNo().equals("0")){ |
| | | if (Cools.isEmpty(wrkMast) || Cools.isEmpty(wrkMast.getSheetNo()) || !wrkMast.getSheetNo().equals("0")){ |
| | | return FAIL; |
| | | } |
| | | List<WrkDetl> wrkDetls = wrkDetlService.selectByWrkNo(wrkMast.getWrkNo()); |
| | |
| | | public class OutLocBoxExcelListener extends AnalysisEventListener<OutLocBoxExcel> { |
| | | |
| | | private int total = 0; |
| | | private String orderOneNo = null; |
| | | private Long userId; |
| | | List<String[]> OutLocBoxCs = new ArrayList<>(); |
| | | |
| | |
| | | public void invoke(OutLocBoxExcel excel, AnalysisContext ctx) { |
| | | String batch = excel.getBatch(); |
| | | String orderNo = excel.getOrderNo(); |
| | | if (Cools.isEmpty(orderOneNo)){ |
| | | if (!Cools.isEmpty(excel.getOrderNo())){ |
| | | orderOneNo = excel.getOrderNo(); |
| | | } else { |
| | | throw new CoolException("订单号参数为空"); |
| | | } |
| | | } |
| | | String[] s=new String[2]; |
| | | s[0] = batch; |
| | | s[1] = orderNo; |
| | | s[1] = orderOneNo; |
| | | OutLocBoxCs.add(s); |
| | | total++; |
| | | } |
| | |
| | | total--; |
| | | continue; |
| | | } |
| | | LocDto locDto = new LocDto(locDetl.getManu(), locDetl.getMatnr(), locDetl.getMaktx(),locDetl.getModel(),locDetl.getSpecs(), |
| | | locDetl.getBatch(),locDetl.getBrand(),locDetl.getBarcode(), outLocBoxC[1],locDetl.getAnfme()); |
| | | locDto.setOrigin(locDetl.getOrigin()); |
| | | locDto.setWeight(locDetl.getWeight()); |
| | | // LocDto locDto = new LocDto(locDetl.getManu(), locDetl.getMatnr(), locDetl.getMaktx(),locDetl.getModel(),locDetl.getSpecs(), |
| | | // locDetl.getBatch(),locDetl.getBrand(),locDetl.getBarcode(), outLocBoxC[1],locDetl.getAnfme()); |
| | | // locDto.setOrigin(locDetl.getOrigin()); |
| | | // locDto.setWeight(locDetl.getWeight()); |
| | | LocDto locDto = new LocDto(locDetl); |
| | | locDtos.add(locDto); |
| | | } |
| | | |
| | |
| | | locDetl.setOrigin(locDto.getOrigin()); |
| | | locDetl.setWeight(locDto.getWeight()); |
| | | |
| | | param.setOrderNo(locDto.getOrderNo()); |
| | | |
| | | locDetls.add(locDetl); |
| | | } |
| | | param.setLocDetls(locDetls); |
| | | param.setOrderNo(orderOneNo); |
| | | |
| | | if (total>0){ |
| | | workService.startupFullTakeStoreOrder(param,9999L); |
| | |
| | | package com.zy.common.model; |
| | | |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | |
| | | private Double anfme; |
| | | private Double count; |
| | | private Double weight; |
| | | private Double volume; |
| | | private Double price; |
| | | |
| | | private boolean lack = false; |
| | | |
| | |
| | | this.zpallet = zpallet; |
| | | } |
| | | |
| | | public LocDto(LocDetl locDetl) { |
| | | this.locNo = locDetl.getLocNo(); |
| | | this.matnr = locDetl.getMatnr(); |
| | | this.maktx = locDetl.getMaktx(); |
| | | this.batch = locDetl.getBatch(); |
| | | this.orderNo = locDetl.getOrderNo(); |
| | | this.anfme = locDetl.getAnfme(); |
| | | this.count = locDetl.getAnfme(); |
| | | this.model = locDetl.getModel(); |
| | | this.specs = locDetl.getSpecs(); |
| | | this.brand = locDetl.getBrand(); |
| | | this.zpallet = locDetl.getZpallet(); |
| | | this.weight = locDetl.getWeight(); |
| | | this.volume = locDetl.getVolume(); |
| | | this.price = locDetl.getPrice(); |
| | | this.origin = locDetl.getOrigin(); |
| | | } |
| | | |
| | | public String getTitle() { |
| | | return this.matnr + "(" + this.maktx + ")"; |
| | | } |
| | |
| | | select |
| | | ROW_NUMBER() over (order by sum(a.anfme) desc) as row |
| | | , a.matnr |
| | | , a.batch |
| | | , sum(a.anfme) as anfme |
| | | from asr_loc_detl a |
| | | where 1=1 |
| | | <include refid="stockOutCondition"></include> |
| | | group by a.matnr, a.batch |
| | | group by a.matnr |
| | | ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |
| | | |
| | |
| | | // ,{field: 'oriWt', align: 'center',title: '原重量'} |
| | | // ,{field: 'adjCtns', align: 'center',title: '变更箱数'} |
| | | ,{field: 'adjQty', align: 'center',title: '变更数量'} |
| | | ,{field: 'origin', align: 'center',title: '木箱位置', hide: false} |
| | | // ,{field: 'adjWt', align: 'center',title: '变更重量'} |
| | | ,{field: 'memo', align: 'center',title: '备注',hide:true} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员'} |
| | |
| | | ,{field: 'brand', align: 'center',title: '木箱类型', hide: true} |
| | | ,{field: 'brand$', align: 'center',title: '木箱类型', hide: false} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: false} |
| | | ,{field: 'price', align: 'center',title: '单价', hide: true} |
| | | ,{field: 'price', align: 'center',title: '长度', hide: false} |
| | | ,{field: 'sku', align: 'center',title: '木箱编码', hide: false} |
| | | ,{field: 'units', align: 'center',title: '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: '条码', hide: true} |
| | |
| | | ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} |
| | | ,{field: 'safeQty', align: 'center',title: '安全库存量', hide: true} |
| | | ,{field: 'weight', align: 'center',title: '单箱净重', hide: true} |
| | | ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱体积', hide: true} |
| | | // ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱毛重', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: '箱子尺寸', hide: true} |
| | | ,{field: 'supp', align: 'center',title: '供应商', hide: true} |
| | | ,{field: 'suppCode', align: 'center',title: '供应商编码', hide: true} |
| | |
| | | ] |
| | | |
| | | var detlCols = [ |
| | | {field: 'matnr', align: 'center',title: '规格', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: '品名', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false} |
| | | ,{field: 'batch', align: 'center',title: '箱号', hide: false, sort:true} |
| | | {field: 'matnr', align: 'center',title: '规格', sort:true, hide: false} |
| | | ,{field: 'maktx', align: 'center',title: '品名', sort:true, hide: true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: true} |
| | | ,{field: 'batch', align: 'center',title: '箱号', hide: true, sort:true} |
| | | ,{field: 'brand', align: 'center',title: '木箱类型', hide: true, sort:true} |
| | | ,{field: 'brand$', align: 'center',title: '木箱类型', hide: false, sort:true} |
| | | ,{field: 'anfme', align: 'center',title: '数量', hide: false, sort:true} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码', hide: false} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码', hide: true} |
| | | |
| | | ,{field: 'specs', align: 'center',title: '接头', hide: false} |
| | | ,{field: 'model', align: 'center',title: '卷号', hide: false} |
| | | ,{field: 'specs', align: 'center',title: '接头', hide: true} |
| | | ,{field: 'model', align: 'center',title: '卷号', hide: true} |
| | | ,{field: 'color', align: 'center',title: '颜色', hide: true} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: false} |
| | | ,{field: 'price', align: 'center',title: '单价', hide: true} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: true} |
| | | ,{field: 'price', align: 'center',title: '长度', hide: false} |
| | | ,{field: 'sku', align: 'center',title: 'sku', hide: true} |
| | | ,{field: 'units', align: 'center',title: '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: '条码', hide: true} |
| | |
| | | ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} |
| | | ,{field: 'safeQty', align: 'center',title: '安全库存量', hide: true} |
| | | ,{field: 'weight', align: 'center',title: '单箱净重', hide: false, sort:true} |
| | | ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱体积', hide: true} |
| | | // ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱毛重', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: '箱子尺寸', hide: true} |
| | | ,{field: 'supp', align: 'center',title: '供应商', hide: true} |
| | | ,{field: 'suppCode', align: 'center',title: '供应商编码', hide: true} |
| | |
| | | {field: 'locNo$', align: 'center',title: '库位号'}, |
| | | {field: 'matnr', align: 'center',title: '规格', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: true} |
| | | ,{field: 'batch', align: 'center',title: '箱号', width: 300, sort:true} |
| | | ,{field: 'anfme', align: 'center',title: '数量'} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码'} |
| | |
| | | ,{field: 'brand', align: 'center',title: '木箱类型', hide: true} |
| | | ,{field: 'brand$', align: 'center',title: '木箱类型', hide: false} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: true} |
| | | ,{field: 'price', align: 'center',title: '单价', hide: true} |
| | | ,{field: 'price', align: 'center',title: '长度', hide: false} |
| | | ,{field: 'sku', align: 'center',title: 'sku', hide: true} |
| | | ,{field: 'units', align: 'center',title: '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: '条码', hide: true} |
| | |
| | | ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} |
| | | ,{field: 'safeQty', align: 'center',title: '安全库存量', hide: true} |
| | | ,{field: 'weight', align: 'center',title: '单箱净重', hide: true} |
| | | ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱体积', hide: true} |
| | | // ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱毛重', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: '箱子尺寸', hide: true} |
| | | ,{field: 'supp', align: 'center',title: '供应商', hide: true} |
| | | ,{field: 'suppCode', align: 'center',title: '供应商编码', hide: true} |
| | |
| | | {field: 'locNo', align: 'center',title: '库位号'}, |
| | | {field: 'matnr', align: 'center',title: '规格', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: true} |
| | | ,{field: 'batch', align: 'center',title: '箱号', width: 300, sort:true} |
| | | ,{field: 'anfme', align: 'center',title: '数量'} |
| | | //,{field: 'zpallet', align: 'center',title: '托盘条码'} |
| | |
| | | ,{field: 'brand', align: 'center',title: '木箱类型', hide: true} |
| | | ,{field: 'brand$', align: 'center',title: '木箱类型', hide: false} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: true} |
| | | ,{field: 'price', align: 'center',title: '单价', hide: true} |
| | | ,{field: 'price', align: 'center',title: '长度', hide: false} |
| | | ,{field: 'sku', align: 'center',title: '木箱编码', hide: false} |
| | | ,{field: 'units', align: 'center',title: '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: '条码', hide: true} |
| | |
| | | ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} |
| | | ,{field: 'safeQty', align: 'center',title: '安全库存量', hide: true} |
| | | ,{field: 'weight', align: 'center',title: '单箱净重', hide: true} |
| | | ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱体积', hide: true} |
| | | // ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱毛重', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: '箱子尺寸', hide: true} |
| | | ,{field: 'supp', align: 'center',title: '供应商', hide: true} |
| | | ,{field: 'suppCode', align: 'center',title: '供应商编码', hide: true} |
| | |
| | | ,{field: 'supplier', align: 'center',title: '供应商'} |
| | | ,{field: 'unitPrice', align: 'center',title: '单价'} |
| | | ,{field: 'itemNum', align: 'center',title: '品项数'} |
| | | ,{field: 'origin', align: 'center',title: '木箱位置', hide: false} |
| | | ,{field: 'count', align: 'center',title: '数量'} |
| | | ,{field: 'weight', align: 'center',title: '重量'} |
| | | ,{field: 'status$', align: 'center',title: '状态'} |
| | |
| | | ,{field: 'brand', align: 'center',title: '木箱类型', hide: true} |
| | | ,{field: 'brand$', align: 'center',title: '木箱类型', hide: false} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: true} |
| | | ,{field: 'price', align: 'center',title: '单价', hide: true} |
| | | ,{field: 'price', align: 'center',title: '长度', hide: false} |
| | | ,{field: 'sku', align: 'center',title: '木箱编码', hide: false} |
| | | ,{field: 'units', align: 'center',title: '单位量', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: '条码', hide: true} |
| | |
| | | ,{field: 'weight', align: 'center',title: '单箱净重', hide: true} |
| | | ,{field: 'roughWeight', align: 'center',title: '单箱毛重', hide: true} |
| | | // ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱体积', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱毛重', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: '箱子尺寸', hide: true} |
| | | ,{field: 'supp', align: 'center',title: '供应商', hide: true} |
| | | ,{field: 'suppCode', align: 'center',title: '供应商编码', hide: true} |
| | |
| | | ,{field: 'matnr', align: 'center',title: '规格'} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称'} |
| | | ,{field: 'batch', align: 'center',title: '箱号'} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号'} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号',hide: true} |
| | | ,{field: 'specs', align: 'center',title: '接头'} |
| | | ,{field: 'model', align: 'center',title: '卷号', hide: false} |
| | | ,{field: 'color', align: 'center',title: '颜色'} |
| | | ,{field: 'brand', align: 'center',title: '木箱类型', hide: true} |
| | | ,{field: 'brand$', align: 'center',title: '木箱类型', hide: false} |
| | | ,{field: 'unit', align: 'center',title: '单位'} |
| | | ,{field: 'price', align: 'center',title: '单价'} |
| | | ,{field: 'price', align: 'center',title: '长度', hide: false} |
| | | ,{field: 'sku', align: 'center',title: 'sku'} |
| | | ,{field: 'units', align: 'center',title: '单位量'} |
| | | ,{field: 'barcode', align: 'center',title: '条码'} |
| | |
| | | ,{field: 'itemNum', align: 'center',title: '品项数'} |
| | | ,{field: 'safeQty', align: 'center',title: '安全库存量'} |
| | | ,{field: 'weight', align: 'center',title: '重量'} |
| | | ,{field: 'length', align: 'center',title: '长度'} |
| | | ,{field: 'volume', align: 'center',title: '体积'} |
| | | // ,{field: 'length', align: 'center',title: '长度'} |
| | | ,{field: 'volume', align: 'center',title: '单箱毛重', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: '三方编码'} |
| | | ,{field: 'supp', align: 'center',title: '供应商'} |
| | | ,{field: 'suppCode', align: 'center',title: '供应商编码'} |