"""投诉工单常量。"""

# 投诉类型
TYPE_ORDER = 1          # 订单投诉
TYPE_RECHARGE = 2       # 充值投诉
TYPE_PENALTY = 3        # 罚款投诉
TYPE_GUANSHI = 4        # 管事投诉
TYPE_FRAUD = 5          # 被骗投诉
TYPE_ZUZHANG = 6        # 组长投诉

TYPE_CHOICES = (
    (TYPE_ORDER, '订单投诉'),
    (TYPE_RECHARGE, '充值投诉'),
    (TYPE_PENALTY, '罚款投诉'),
    (TYPE_GUANSHI, '管事投诉'),
    (TYPE_FRAUD, '被骗投诉'),
    (TYPE_ZUZHANG, '组长投诉'),
)

TYPE_LABELS = dict(TYPE_CHOICES)

# 状态：1处理中 2已处理 3不满意 4已关闭 5协商中
STATUS_PROCESSING = 1
STATUS_DONE = 2
STATUS_DISSATISFIED = 3
STATUS_CLOSED = 4
STATUS_NEGOTIATING = 5

STATUS_CHOICES = (
    (STATUS_PROCESSING, '处理中'),
    (STATUS_DONE, '已处理'),
    (STATUS_DISSATISFIED, '不满意'),
    (STATUS_CLOSED, '已关闭'),
    (STATUS_NEGOTIATING, '协商中'),
)

STATUS_LABELS = dict(STATUS_CHOICES)

# 未结清（拦提现）：处理中 / 不满意 / 协商中
OPEN_STATUSES = (STATUS_PROCESSING, STATUS_DISSATISFIED, STATUS_NEGOTIATING)

TARGET_ROLE_DASHOU = 'dashou'
TARGET_ROLE_GUANSHI = 'guanshi'
TARGET_ROLE_ZUZHANG = 'zuzhang'
TARGET_ROLE_PLATFORM = 'platform'
TARGET_ROLE_LABELS = {
    TARGET_ROLE_DASHOU: '接单员',
    TARGET_ROLE_GUANSHI: '管事',
    TARGET_ROLE_ZUZHANG: '组长',
    TARGET_ROLE_PLATFORM: '平台',
}

MAX_IMAGES = 9
MAX_SHUOMING_LEN = 500
MAX_SHENGJI_TIMES = 5
OSS_PREFIX = 'gongdan'

# 权限码
PERM_VIEW = 'gdck666'
PERM_HANDLE = 'gdcl666'
