/*
 * 入库单单据类型
 *
 */

import {SmartEnum} from '/@/types/smart-enum';

//单据类型
export const ASN_ORDER_TYPE_ENUM: SmartEnum<string> = {
    PURCHASE: {
        value: 'PURCHASE',
        desc: '采购入库',
    },
    RETURN: {
        value: 'RETURN',
        desc: '退货入库',
    },
    OTHER: {
        value: 'OTHER',
        desc: '其他入库',
    },
};

//单据状态
export const ASN_ORDER_STATUS_ENUM: SmartEnum<string> = {
    CREATED: {
        value: 'CREATED',
        desc: '已创建',
    },
    APPROVING: {
        value: 'APPROVING',
        desc: '已提交',
    },
    APPROVED: {
        value: 'APPROVED',
        desc: '已审核',
    },
    IN_PROGRESS: {
        value: 'IN_PROGRESS',
        desc: '入库中',
    },
    COMPLETED: {
        value: 'COMPLETED',
        desc: '已完成',
    },
    CANCELLED: {
        value: 'CANCELLED',
        desc: '已取消',
    },
};
export default {
    ASN_ORDER_TYPE_ENUM,
    ASN_ORDER_STATUS_ENUM
};
