package com.yunfeiyun.agmp.fms.domain.resvo;

import com.yunfeiyun.agmp.common.enums.DictTypeEnums;
import com.yunfeiyun.agmp.common.utils.DictUtils;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class SpmOrderLogisticsInfoResVo {

    /**订单标识*/
    private String orderId;
    /**订单编号*/
    private String orderNo;
    /**图片连接*/
    private String resUrl;
    /**产品类型*/
    private String finishgoodscode;
    /**产品批次号*/
    private String finishgoodNo;
    /**发货方式*/
    private String orderSendtype;
    /**订单状态*/
    private String orderStatus;
    /**客户名称*/
    private String orderConsigneerealname;
    /**联系电话*/
    private String orderConsigneetelphone;
    /**联系地址*/
    private String orderConsigneeaddress;
    /**发货时间*/
    private String orderSenddate;
    /**送达时间*/
    private String orderExpectedarrivaldate;
    /**联系人*/
    private String customerContancts;
    /**销售数量*/
    private String orderGoodscount;
    /**单位*/
    private String goodsUnit;
    /**车牌号*/
    private String orderLogisticsplate;
    /**物流单号*/
    private String orderLogisticsNo;
    /**出库登记单发货方式详情*/
    private String orderSendtyperemark;
    /**物流费用*/
    private BigDecimal logisticsExpense;

    public String getFinishgoodsContent(){
        return DictUtils.getDictLabel(DictTypeEnums.AGM_MPP_PRODUCT.getCode(),this.finishgoodscode);
    }
    public String getGoodsUnitContent(){
        return DictUtils.getDictLabel(DictTypeEnums.WMS_GOODS_UNIT.getCode(), goodsUnit);
    }
    public String getOrderSendtypeContent(){
        return DictUtils.getDictLabel(DictTypeEnums.SPM_ORDER_SEND_TYPE.getCode(), orderSendtype);
    }
    public String getOrderStatusContent(){
        return DictUtils.getDictLabel(DictTypeEnums.SPM_ORDER_STATUS.getCode(), orderStatus);
    }
}

