|
|
@ -1,7 +1,11 @@ |
|
|
|
package com.win.module.wms.controller.scrapJob.vo; |
|
|
|
|
|
|
|
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
|
|
|
import com.win.framework.excel.core.annotations.Colour; |
|
|
|
import io.swagger.v3.oas.annotations.media.Schema; |
|
|
|
import lombok.*; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.*; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.LocalDateTime; |
|
|
@ -14,6 +18,7 @@ import java.time.LocalDateTime; |
|
|
|
import com.alibaba.excel.annotation.ExcelProperty; |
|
|
|
import com.win.framework.excel.core.annotations.DictFormat; |
|
|
|
import com.win.framework.excel.core.convert.DictConvert; |
|
|
|
import org.apache.poi.ss.usermodel.IndexedColors; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -24,110 +29,214 @@ import com.win.framework.excel.core.convert.DictConvert; |
|
|
|
@Data |
|
|
|
public class ScrapJobMainExcelVO { |
|
|
|
|
|
|
|
@ExcelProperty("单据号") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String number; |
|
|
|
|
|
|
|
@ExcelProperty("申请单号") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String requestNumber; |
|
|
|
|
|
|
|
@ExcelProperty("从仓库代码") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String fromWarehouseCode; |
|
|
|
|
|
|
|
@ExcelProperty("申请时间") |
|
|
|
@ColumnWidth(value = 16) |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private LocalDateTime requestTime; |
|
|
|
|
|
|
|
@ExcelProperty("要求截止时间") |
|
|
|
@ColumnWidth(value = 16) |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private LocalDateTime requestDueTime; |
|
|
|
|
|
|
|
@ExcelProperty(value = "状态", converter = DictConvert.class) |
|
|
|
@DictFormat("job_status") // TODO 代码优化:建议设置到对应的 XXXDictTypeConstants 枚举类中
|
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String status; |
|
|
|
|
|
|
|
@ExcelProperty("过期时间") |
|
|
|
@ColumnWidth(value = 16) |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private LocalDateTime expiredTime; |
|
|
|
|
|
|
|
@ExcelProperty("最后更新时间") |
|
|
|
@ColumnWidth(value = 16) |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private LocalDateTime updateTime; |
|
|
|
|
|
|
|
@ExcelProperty("最后更新者名称") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String updater; |
|
|
|
|
|
|
|
@ExcelProperty(value = "状态", converter = DictConvert.class) |
|
|
|
@DictFormat("job_stage_status") // TODO 代码优化:建议设置到对应的 XXXDictTypeConstants 枚举类中
|
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String jobStageStatus; |
|
|
|
|
|
|
|
@ExcelProperty("优先级") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private Integer priority; |
|
|
|
|
|
|
|
@ExcelProperty("优先级增量") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private Integer priorityIncrement; |
|
|
|
|
|
|
|
@ExcelProperty("部门") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String departmentCode; |
|
|
|
|
|
|
|
@ExcelProperty("承接人用户ID") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String acceptUserId; |
|
|
|
|
|
|
|
@ExcelProperty("承接时间") |
|
|
|
@ColumnWidth(value = 16) |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private LocalDateTime acceptTime; |
|
|
|
|
|
|
|
@ExcelProperty("完成人用户ID") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String completeUserId; |
|
|
|
|
|
|
|
@ExcelProperty("完成时间") |
|
|
|
@ColumnWidth(value = 16) |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private LocalDateTime completeTime; |
|
|
|
|
|
|
|
@ExcelProperty(value = "从库区类型范围", converter = DictConvert.class) |
|
|
|
@DictFormat("location_type") // TODO 代码优化:建议设置到对应的 XXXDictTypeConstants 枚举类中
|
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String fromAreaTypes; |
|
|
|
|
|
|
|
@ExcelProperty(value = "到库区类型范围", converter = DictConvert.class) |
|
|
|
@DictFormat("location_type") // TODO 代码优化:建议设置到对应的 XXXDictTypeConstants 枚举类中
|
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String toAreaTypes; |
|
|
|
|
|
|
|
@ExcelProperty("单据号") |
|
|
|
private String number; |
|
|
|
|
|
|
|
@ExcelProperty("业务类型") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String businessType; |
|
|
|
|
|
|
|
@ExcelProperty("备注") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String remark; |
|
|
|
|
|
|
|
@ExcelProperty("创建时间") |
|
|
|
@ColumnWidth(value = 16) |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private LocalDateTime createTime; |
|
|
|
|
|
|
|
@ExcelProperty("创建者名称") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String creator; |
|
|
|
|
|
|
|
@ExcelProperty("从库区代码范围") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String fromAreaCodes; |
|
|
|
|
|
|
|
@ExcelProperty("自动完成") |
|
|
|
@ExcelProperty(value = "自动完成", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String autoComplete; |
|
|
|
|
|
|
|
@ExcelProperty("允许修改库位") |
|
|
|
@ExcelProperty(value = "允许修改库位", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String allowModifyLocation; |
|
|
|
|
|
|
|
@ExcelProperty("允许修改数量") |
|
|
|
@ExcelProperty(value = "允许修改数量", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String allowModifyQty; |
|
|
|
|
|
|
|
@ExcelProperty("允许大于推荐数量") |
|
|
|
@ExcelProperty(value = "允许大于推荐数量", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String allowBiggerQty; |
|
|
|
|
|
|
|
@ExcelProperty("允许小于推荐数量") |
|
|
|
@ExcelProperty(value = "允许小于推荐数量", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String allowSmallerQty; |
|
|
|
|
|
|
|
@ExcelProperty("允许修改库存状态") |
|
|
|
@ExcelProperty(value = "允许修改库存状态", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String allowModifyInventoryStatus; |
|
|
|
|
|
|
|
@ExcelProperty("允许连续扫描") |
|
|
|
@ExcelProperty(value = "允许连续扫描", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String allowContinuousScanning; |
|
|
|
|
|
|
|
@ExcelProperty("允许部分完成") |
|
|
|
@ExcelProperty(value = "允许部分完成", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String allowPartialComplete; |
|
|
|
|
|
|
|
@ExcelProperty("允许修改批次") |
|
|
|
@ExcelProperty(value = "允许修改批次", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String allowModifyBatch; |
|
|
|
|
|
|
|
@ExcelProperty("允许修改箱码") |
|
|
|
@ExcelProperty(value = "允许修改箱码", converter = DictConvert.class) |
|
|
|
@DictFormat("true_false") |
|
|
|
@Colour(IndexedColors.LIGHT_YELLOW) |
|
|
|
private String allowModifyPackingNumber; |
|
|
|
//子表
|
|
|
|
@ExcelProperty("货主代码") |
|
|
|
private String ownerCode; |
|
|
|
|
|
|
|
@ExcelProperty("包装号") |
|
|
|
private String packingNumber; |
|
|
|
|
|
|
|
@ExcelProperty("器具号") |
|
|
|
private String containerNumber; |
|
|
|
|
|
|
|
@ExcelProperty("批次") |
|
|
|
private String batch; |
|
|
|
|
|
|
|
@ExcelProperty("从库位代码") |
|
|
|
private String fromLocationCode; |
|
|
|
|
|
|
|
@ExcelProperty(value = "库存状态", converter = DictConvert.class) |
|
|
|
@DictFormat("inventory_status") // TODO 代码优化:建议设置到对应的 XXXDictTypeConstants 枚举类中
|
|
|
|
private String inventoryStatus; |
|
|
|
|
|
|
|
@ExcelProperty(value = "原因", converter = DictConvert.class) |
|
|
|
@DictFormat("scrap_reason") // TODO 代码优化:建议设置到对应的 XXXDictTypeConstants 枚举类中
|
|
|
|
private String reason; |
|
|
|
|
|
|
|
@ExcelProperty("物料代码") |
|
|
|
private String itemCode; |
|
|
|
|
|
|
|
@ExcelProperty("物料名称") |
|
|
|
private String itemName; |
|
|
|
|
|
|
|
@ExcelProperty("物料描述1") |
|
|
|
private String itemDesc1; |
|
|
|
|
|
|
|
@ExcelProperty("物料描述2") |
|
|
|
private String itemDesc2; |
|
|
|
|
|
|
|
@ExcelProperty("项目代码") |
|
|
|
private String projectCode; |
|
|
|
|
|
|
|
@ExcelProperty("数量") |
|
|
|
private BigDecimal qty; |
|
|
|
|
|
|
|
@ExcelProperty(value = "计量单位", converter = DictConvert.class) |
|
|
|
@DictFormat("uom") // TODO 代码优化:建议设置到对应的 XXXDictTypeConstants 枚举类中
|
|
|
|
private String uom; |
|
|
|
|
|
|
|
@ExcelProperty("备注") |
|
|
|
private String remarkDetail; |
|
|
|
|
|
|
|
@ExcelProperty("创建时间") |
|
|
|
private LocalDateTime createTimeDetail; |
|
|
|
|
|
|
|
@ExcelProperty("创建者名称") |
|
|
|
private String creatorDetail; |
|
|
|
} |
|
|
|