|
|
|
@ -60,4 +60,21 @@ public class WmsMessageStyleModel implements Serializable {
|
|
|
|
|
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.RECEIPT_FINISH.getValue();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WmsMessageStyleModel(String message, double transQty, double actQty, boolean showRed) {
|
|
|
|
|
this.message = message;
|
|
|
|
|
if (actQty == 0) {//未处理
|
|
|
|
|
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.CREATE.getValue();
|
|
|
|
|
} else if (transQty > actQty) {//处理中
|
|
|
|
|
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.RECEIPT.getValue();
|
|
|
|
|
} else if (actQty == transQty) {//处理完成
|
|
|
|
|
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.RECEIPT_FINISH.getValue();
|
|
|
|
|
} else if (transQty < actQty) {//处理数量大于需求数量-显示红色
|
|
|
|
|
if (showRed) {
|
|
|
|
|
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.CLOSED.getValue();
|
|
|
|
|
} else {
|
|
|
|
|
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.RECEIPT_FINISH.getValue();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|