/*
 * @Author: micky 1254597151@qq.com
 * @Date: 2023-08-14 15:56:31
 * @LastEditors: micky 1254597151@qq.com
 * @LastEditTime: 2023-11-09 16:27:46
 * @FilePath: \housekeeping-admin\src\enums\modeEnum.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 页面模式
export enum PageMode {
    'ADD' = 'add', // 添加
    'EDIT' = 'edit' // 编辑
}

export enum ServiceMode {
    'all_count' = '全部', //	int	全部
    'SHELVE' = '销售中', //销售中
    'UNSHELVE' = '仓库中' //仓库中
}

export enum OrderMode {
    'all_count' = '全部', //	int	全部
    'wait_pay_count' = '待支付', //	int	待支付
    'appoint_count' = '预约中', //	int	预约中
    'service_count' = '服务中', //	int	服务中
    'finish_count' = '已完成', //	int	已完成
    'close_count' = '已取消' //	int	已取消
}

export enum RefundMode {
    'all_count' = '全部',
    'refund_wait_count' = '退款中',
    'refund_success_count' = '退款成功',
    'refund_fail_count' = '退款失败'
}

export enum StatusEnum {
    'NORMAL' = 1,
    'STOP' = 0
}

export const statusMap: Record<number, string> = {
    [StatusEnum.NORMAL]: '正常',
    [StatusEnum.STOP]: '停用'
}
export enum DispatchEnum {
    USER_RECEIVE = 1,
    SYSTEM_GIVE = 2,
    CHANNEL_DISPATCH = 3
}
export enum ChannelEnum {
    DISTBUTOR = 1,
    USER = 2
}
export enum UseGoodsEnum {
    ALL = 1,
    CATEGORY = 2,
    CATEGOYR_PART = 3
}
export enum UseConditionEnum {
    NO_CONDITION = 1,
    CONDITION = 2
}
export enum DispatchCountEnum {
    NO_COUNT = 1,
    COUNT = 2
}
export enum DispatchStatusEnum {
    NORMAL = 1,
    STOP = 2
}
export const dispatchStatusMap: Record<number, string> = {
    [DispatchStatusEnum.NORMAL]: '停用',
    [DispatchStatusEnum.STOP]: '启用'
}
export const statusEnumMap: Record<number, string> = {
    [DispatchStatusEnum.NORMAL]: '启用',
    [DispatchStatusEnum.STOP]: '停用'
}
export const getTypeMap: Record<DispatchEnum, string> = {
    [DispatchEnum.USER_RECEIVE]: '用户领取',
    [DispatchEnum.SYSTEM_GIVE]: '系统赠送',
    [DispatchEnum.CHANNEL_DISPATCH]: '渠道派发'
}
export const useGoodsTypeMap = {
    [UseGoodsEnum.ALL]: '通用券',
    [UseGoodsEnum.CATEGORY]: '品类券',
    [UseGoodsEnum.CATEGOYR_PART]: '商品券'
}
export const conditionTypeMap = {
    [UseConditionEnum.NO_CONDITION]: '无门槛使用',
    [UseConditionEnum.CONDITION]: '最低消费'
}
export const channelMap: Record<ChannelEnum, string> = {
    [ChannelEnum.DISTBUTOR]: '分销员',
    [ChannelEnum.USER]: '用户'
}
export const useStatusMap: Record<number, string> = {
    1: '未使用',
    2: '已使用',
    3: '未发放'
}
export const channelfieldsMap: Record<number, string> = {
    [ChannelEnum.DISTBUTOR]: 'distributors',
    [ChannelEnum.USER]: 'users'
}
export enum ApplyStatusEnum {
    APPLY = 0,
    SUCCESS = 1,
    FAILED = 2
}
export const applyStatusMap: Record<number, string> = {
    [ApplyStatusEnum.APPLY]: '申请中',
    [ApplyStatusEnum.SUCCESS]: '通过',
    [ApplyStatusEnum.FAILED]: '失败'
}

export enum OperationEnum {
    SUCCESS = 1,
    FAILED = 2
}
export enum OperationTextEnum {
    SUCCESS = 'success',
    FAILED = 'fail'
}
export const OperationEnumMap: Record<string, number> = {
    [OperationTextEnum.SUCCESS]: OperationEnum.SUCCESS,
    [OperationTextEnum.FAILED]: OperationEnum.FAILED
}
export enum SexEnum {
    MALE = 1,
    FEMALE = 2
}
export const SexEnumMap: Record<number, string> = {
    [SexEnum.MALE]: '男',
    [SexEnum.FEMALE]: '女'
}

export const GoodsTimeType: Record<number, string> = {
    0: '自定义',
    1: '自动间隔'
}
/**师傅状态 */
export enum ReceiveOrderEnum {
    ENABLEDING = 0, //接单中
    PAUSE = 1 //休息中
}
/**申请状态 */
export const tagFields = {
    [ApplyStatusEnum.APPLY]: '',
    [ApplyStatusEnum.SUCCESS]: 'success',
    [ApplyStatusEnum.FAILED]: 'danger'
}
/**体检报告审核状态 */
export const physicalEnumMap: Record<number, string> = {
    [ApplyStatusEnum.APPLY]: '审核中', //审核中
    [ApplyStatusEnum.SUCCESS]: '通过', //审核通过
    [ApplyStatusEnum.FAILED]: '失败' // 审核失败
}
/**退单规则 */
export enum TemplateEnum {
    STAFF = 0, //师傅
    USER = 1 //用户
}

// 接单状态
export enum getStaffOrderStatusEnum {
    OPEN = 0, //接单状态开启
    CLOSED = 1 //接单状态关闭
}
// 师傅退单状态
export enum StaffRefundEnum {
    PEDDING = 0,
    SUCCESS = 1
}
export const StaffRefundEnumMap: Record<number, string> = {
    [StaffRefundEnum.PEDDING]: '申请中',
    [StaffRefundEnum.SUCCESS]: '已处理'
}
// 用户退款设置
export enum RefundEnum {
    SETTING = 1,
    UN_SETTING = 0
}