diff --git a/src/pages/point/PointLedgerDetail.vue b/src/pages/point/PointLedgerDetail.vue
index 8ca2057..99f33f7 100644
--- a/src/pages/point/PointLedgerDetail.vue
+++ b/src/pages/point/PointLedgerDetail.vue
@@ -6,8 +6,15 @@
v-entrance-transition
@click="toCustomerDetail"
/>
+
+
+
-
+
-
+
@@ -35,7 +42,7 @@
-
+
@@ -52,7 +59,7 @@
-
+
@@ -100,6 +107,7 @@ const userStore = useUserStore();
const canReadCustomer = computed(() => userStore.hasPermissions(permissionCodes.customer.read));
const canReadEvent = computed(() => userStore.hasPermissions(permissionCodes.event.read));
const canReadEventRecord = computed(() => userStore.hasPermissions(permissionCodes.eventRecord.read));
+const canReadPointAccount = computed(() => userStore.hasPermissions(permissionCodes.point.accountRead));
const canReadRule = computed(() => userStore.hasPermissions(permissionCodes.pointRule.read));
// ---------- 流水与关联数据 ----------
@@ -352,6 +360,20 @@ async function toCustomerDetail(): Promise {
}
}
+async function toPointAccount(): Promise {
+ if (!canReadPointAccount.value || !ledger.value?.accountId) {
+ return;
+ }
+ await router.push({
+ name: "PointAccountDetail",
+ params: { id: ledger.value.accountId },
+ query: {
+ storeId: ledger.value.storeId || "",
+ transitionDepth: String(Number(route.meta.depth ?? 0) + 1)
+ }
+ });
+}
+
async function toEventDetail(): Promise {
if (!canReadEvent.value || !triggerEvent.value?.id) {
return;