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

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

@Data
public class WmsAssetgoodsVo {

    /**农资货物标识*/
    private String assetgoodsId;

    /** 货物标识 */
    private String goodsId;

    /** 供应商标识 */
    private String supplierId;

    /**供应商名称*/
    private String supplierName;

    /** 货物名称 */
    private String goodsName;

    /** 厂家名称 */
    private String goodsManufactor;

    /**农资单位*/
    private String goodsUnit;

    /**农资规格*/
    private String goodsSpec;

    /**农资类型*/
    private String goodsType;


    public String getGoodsTypeContent(){
        return DictUtils.getDictLabel(DictTypeEnums.WMS_GOODS_TYPE.getCode(),getGoodsType());
    }

    public String getGoodsUnitContent(){
        return DictUtils.getDictLabel(DictTypeEnums.WMS_GOODS_UNIT.getCode(),getGoodsUnit());
    }

}
