// Detail list columns (for reference / VXE usage)
export function useDetailColumns() {
  return [
    { field: 'plateNumber', title: '车牌号', minWidth: 120 },
    { field: 'hydrogenDate', title: '加氢日期', minWidth: 120, formatter: 'formatDate' },
    { field: 'hydrogenQuantity', title: '加氢量(KG)', minWidth: 100, align: 'right' },
    { field: 'costPrice', title: '成本单价', minWidth: 80, align: 'right' },
    { field: 'costAmount', title: '成本金额', minWidth: 100, align: 'right' },
    { field: 'customerPrice', title: '对客单价', minWidth: 80, align: 'right' },
    { field: 'customerAmount', title: '对客金额', minWidth: 100, align: 'right' },
    {
      field: 'deductionStatus',
      title: '扣款状态',
      minWidth: 100,
      align: 'center',
      slots: { default: 'deductionStatus' },
    },
  ];
}

// Adjustment list columns (for reference / VXE usage)
export function useAdjustmentColumns() {
  return [
    { field: 'adjustmentType', title: '调整类型', minWidth: 100, slots: { default: 'adjustmentType' } },
    { field: 'amount', title: '调整金额', minWidth: 100, align: 'right' },
    { field: 'reason', title: '调整原因', minWidth: 200 },
    { field: 'detailId', title: '关联明细', minWidth: 100 },
    { field: 'operatorName', title: '操作人', minWidth: 100 },
    { field: 'operateTime', title: '操作时间', minWidth: 180, formatter: 'formatDateTime' },
  ];
}

// Re-export status constants from data.ts
export {
  BILL_AUDIT_STATUS_OPTIONS,
  BILL_STATUS_OPTIONS,
  COOPERATION_TYPE_OPTIONS,
  PAYMENT_STATUS_OPTIONS,
} from './data';
