/**
 * 采购订单审核
 */
const auditStateList = [
  {
    title: "待审核",
    value: "WAITING_AUDIT",
  },
  {
    title: "已通过",
    value: "AUDIT_SUCCESS",
  },
  {
    title: "已驳回",
    value: "AUDIT_REJECTED",
  },
];
const auditStateMap = {
  WAITING_AUDIT: {
    label: "待审核",
    color: "#7C2D12",
    bgColor: "#FED7AA",
    borderColor: "#EA580C",
  },
  AUDITING: {
    label: "审批中",
    color: "#1E40AF",
    bgColor: "#DBEAFE",
    borderColor: "#3B82F6",
  },
  AUDIT_SUCCESS: {
    label: "已通过",
    color: "#374151",
    bgColor: "#E5E7EB",
    borderColor: "#6B7280",
  },
  AUDIT_REJECTED: {
    label: "已驳回",
    color: "#6B7280",
    bgColor: "#F3F4F6",
    borderColor: "#6B7280",
  },
};

/**
 * 采购订单审批
 */
const approvalStateList = [
  {
    title: "待审批",
    value: "WAITING_AUDIT",
  },
  {
    title: "已通过",
    value: "AUDIT_SUCCESS",
  },
  {
    title: "已驳回",
    value: "AUDIT_REJECTED",
  },
];
const approvalStateMap = {
  WAITING_AUDIT: {
    label: "待审批",
    color: "#7C2D12",
    bgColor: "#FED7AA",
    borderColor: "#EA580C",
  },
  AUDIT_SUCCESS: {
    label: "已通过",
    color: "#374151",
    bgColor: "#E5E7EB",
    borderColor: "#6B7280",
  },
  AUDIT_REJECTED: {
    label: "已驳回",
    color: "#991B1B",
    bgColor: "#FEE2E2",
    borderColor: "#EF4444",
  },
};

export default {
  auditStateList,
  auditStateMap,
  approvalStateList,
  approvalStateMap,
};
