From 1a03965c1f79a91d041e044d7de83e6a3de786ae Mon Sep 17 00:00:00 2001 From: kkfluous Date: Mon, 16 Mar 2026 01:36:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(energy):=20=E5=AE=9E=E7=8E=B0=E8=83=BD?= =?UTF-8?q?=E6=BA=90=E8=B4=A6=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .../src/views/energy/bill/detail-data.ts | 39 +++ .../web-antd/src/views/energy/bill/detail.vue | 271 ++++++++++++++++++ 2 files changed, 310 insertions(+) create mode 100644 apps/web-antd/src/views/energy/bill/detail-data.ts create mode 100644 apps/web-antd/src/views/energy/bill/detail.vue diff --git a/apps/web-antd/src/views/energy/bill/detail-data.ts b/apps/web-antd/src/views/energy/bill/detail-data.ts new file mode 100644 index 0000000..38f405e --- /dev/null +++ b/apps/web-antd/src/views/energy/bill/detail-data.ts @@ -0,0 +1,39 @@ +// 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'; diff --git a/apps/web-antd/src/views/energy/bill/detail.vue b/apps/web-antd/src/views/energy/bill/detail.vue new file mode 100644 index 0000000..d5a6eab --- /dev/null +++ b/apps/web-antd/src/views/energy/bill/detail.vue @@ -0,0 +1,271 @@ + + +