package com.zy.common.model;
|
|
import com.core.common.Cools;
|
import lombok.Data;
|
|
import java.util.List;
|
|
/**
|
* Created by vincent on 2022/3/28
|
*/
|
@Data
|
public class LocDto {
|
|
private String locNo;
|
private Long orderDetlId;
|
|
private String matnr;
|
|
private String maktx;
|
private String model;
|
//规格
|
private String specs;
|
|
private String batch;
|
|
//木箱类型
|
private String brand;
|
|
//托盘码
|
private String zpallet;
|
|
private String orderNo;
|
|
private Double anfme;
|
private Double count;
|
|
private boolean lack = false;
|
|
private List<Integer> staNos;
|
|
private Integer staNo;
|
private Integer tkType;
|
|
public LocDto() {
|
}
|
|
public LocDto(String locNo, String matnr, String batch, Double anfme) {
|
this.locNo = locNo;
|
this.matnr = matnr;
|
this.batch = batch;
|
this.anfme = anfme;
|
this.count = anfme;
|
|
}
|
|
public LocDto(String locNo, String matnr, String batch, String orderNo, Double anfme) {
|
this.locNo = locNo;
|
this.matnr = matnr;
|
this.batch = batch;
|
this.orderNo = orderNo;
|
this.anfme = anfme;
|
this.count = anfme;
|
|
}
|
|
public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme) {
|
this.locNo = locNo;
|
this.matnr = matnr;
|
this.maktx = maktx;
|
this.batch = batch;
|
this.orderNo = orderNo;
|
this.anfme = anfme;
|
this.count = anfme;
|
}
|
|
public LocDto(String locNo, String matnr, String maktx,String model,String specs, String batch,String brand,String zpallet, String orderNo, Double anfme) {
|
this.locNo = locNo;
|
this.matnr = matnr;
|
this.maktx = maktx;
|
this.batch = batch;
|
this.orderNo = orderNo;
|
this.anfme = anfme;
|
this.count = anfme;
|
this.model = model;
|
this.specs = specs;
|
this.brand = brand;
|
this.zpallet = zpallet;
|
}
|
|
public String getTitle() {
|
return this.matnr + "(" + this.maktx + ")";
|
}
|
|
public void setStaNos(List<Integer> staNos) {
|
this.staNos = staNos;
|
if (!Cools.isEmpty(staNos)) {
|
this.staNo = staNos.get(0);
|
}
|
}
|
|
public void setAnfme(Double anfme){
|
this.anfme=anfme;
|
this.count=anfme;
|
}
|
|
public String getTkType$(){
|
if (null == this.tkType) return "正常";
|
if (this.tkType == 1) {
|
return "退库";
|
}
|
return "正常";
|
}
|
|
}
|