diff --git a/src/pages/point/PointLedgerDetail.vue b/src/pages/point/PointLedgerDetail.vue
new file mode 100644
index 0000000..89f68e0
--- /dev/null
+++ b/src/pages/point/PointLedgerDetail.vue
@@ -0,0 +1,394 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/point/PointLedgerList.vue b/src/pages/point/PointLedgerList.vue
index f92b356..c9fd65e 100644
--- a/src/pages/point/PointLedgerList.vue
+++ b/src/pages/point/PointLedgerList.vue
@@ -83,9 +83,9 @@
v-for="item in pageResult.list"
:key="item.id"
class="item"
- :arrow="!!item.eventRecordId"
- :hover="!!item.eventRecordId"
- @click="toRecord(item)"
+ :arrow="!!item.id"
+ :hover="!!item.id"
+ @click="toDetail(item)"
>
{
- if (item.eventRecordId) {
- await router.push(`/management/registration-event-records/${item.eventRecordId}`);
+async function toDetail(item: PointLedger): Promise {
+ if (!item.id) {
+ return;
}
+
+ const snapshot: PointLedger = {
+ id: item.id,
+ accountId: item.accountId,
+ storeId: item.storeId,
+ customerId: item.customerId,
+ changeType: item.changeType,
+ direction: item.direction,
+ pointDelta: item.pointDelta,
+ balanceBefore: item.balanceBefore,
+ balanceAfter: item.balanceAfter,
+ ruleId: item.ruleId,
+ eventId: item.eventId,
+ eventRecordId: item.eventRecordId,
+ sourcePayload: item.sourcePayload,
+ idempotencyKey: item.idempotencyKey,
+ remark: item.remark,
+ operatorUserId: item.operatorUserId,
+ occurredAt: item.occurredAt
+ };
+ await router.push({
+ name: "PointLedgerDetail",
+ params: { id: item.id },
+ query: { snapshot: JSON.stringify(snapshot) }
+ });
}
async function toAdjust(): Promise {
diff --git a/src/pages/tag/TagList.vue b/src/pages/tag/TagList.vue
index abcd6f3..1154fff 100644
--- a/src/pages/tag/TagList.vue
+++ b/src/pages/tag/TagList.vue
@@ -227,6 +227,7 @@ onMounted(loadTags);
.name {
flex: 1;
min-width: 0;
+ line-height: 1;
text-align: center;
overflow-wrap: anywhere;
}
diff --git a/src/router/routes/pointRoutes.ts b/src/router/routes/pointRoutes.ts
index 57e4d55..7ae9952 100644
--- a/src/router/routes/pointRoutes.ts
+++ b/src/router/routes/pointRoutes.ts
@@ -1,6 +1,7 @@
import type { RouteRecordRaw } from "vue-router";
import PointAccount from "@/pages/point/PointAccount.vue";
import PointAdjust from "@/pages/point/PointAdjust.vue";
+import PointLedgerDetail from "@/pages/point/PointLedgerDetail.vue";
import PointLedgerList from "@/pages/point/PointLedgerList.vue";
import PointRuleEdit from "@/pages/point/PointRuleEdit.vue";
import PointRuleList from "@/pages/point/PointRuleList.vue";
@@ -34,6 +35,20 @@ const pointRoutes: RouteRecordRaw[] = [
darkBodyBackground: "#10161f"
}
},
+ {
+ path: "/management/points/ledger/:id",
+ name: "PointLedgerDetail",
+ component: PointLedgerDetail,
+ meta: {
+ depth: 4,
+ navBarVisible: true,
+ navBarCanBack: true,
+ navBarTitle: "积分流水详情",
+ tabBarVisible: false,
+ bodyBackground: "#F5F5F8",
+ darkBodyBackground: "#10161f"
+ }
+ },
{
path: "/management/points/adjust",
name: "PointAdjust",
diff --git a/src/styles/global.less b/src/styles/global.less
index d6ddd1a..1d21cda 100644
--- a/src/styles/global.less
+++ b/src/styles/global.less
@@ -40,6 +40,16 @@ html.theme-dark body {
.t-form__label {
color: #555;
+ flex: none;
+ min-width: unset;
+ white-space: nowrap;
+ text-overflow: unset;
+}
+
+.t-cell__title {
+ min-width: unset;
+ white-space: nowrap;
+ text-overflow: unset;
}
.load-state {
diff --git a/src/utils/qrCode.ts b/src/utils/qrCode.ts
index f6e0210..ffbc258 100644
--- a/src/utils/qrCode.ts
+++ b/src/utils/qrCode.ts
@@ -246,7 +246,7 @@ function renderInvitePoster(options: InvitePosterOptions): HTMLCanvasElement {
context.fillText("糕店客户管理系统", 600, 1550);
context.fillStyle = "#64748B";
context.font = "400 40px Microsoft YaHei, sans-serif";
- context.fillText("客户档案 | 事件登记 | 积分激励 | 门店协同 | AI 分析", 600, 1645);
+ context.fillText("客户档案 | 事件登记 | 积分激励 | 门店协同", 600, 1645);
context.fillStyle = "#94A3B8";
context.font = "400 40px Microsoft YaHei, sans-serif";
context.fillText("本邀请仅限本人使用,请勿转发", 600, 1760);