add point
This commit is contained in:
@@ -117,7 +117,36 @@ const menuGroupList = computed<MenuGroup[]>(() => [
|
||||
path: "/management/customer-data-charts",
|
||||
title: "客户统计数据",
|
||||
visible: userStore.hasPermissions(permissionCodes.stat.read)
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "积分",
|
||||
items: [
|
||||
{
|
||||
icon: "edit-1",
|
||||
path: "/management/points/rules",
|
||||
title: "积分规则",
|
||||
visible: userStore.hasPermissions(permissionCodes.pointRule.read)
|
||||
},
|
||||
{
|
||||
icon: "wallet",
|
||||
path: "/management/points/account",
|
||||
title: "积分账户",
|
||||
visible: userStore.hasPermissions(permissionCodes.point.accountRead)
|
||||
},
|
||||
{
|
||||
icon: "chart-bubble",
|
||||
path: "/management/points/ledger",
|
||||
title: "积分流水",
|
||||
visible: userStore.hasPermissions(permissionCodes.point.ledgerRead)
|
||||
},
|
||||
{
|
||||
icon: "edit-1",
|
||||
path: "/management/points/adjust",
|
||||
title: "人工调整积分",
|
||||
visible: userStore.hasPermissions(permissionCodes.point.adjust)
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
+11
-20
@@ -5,29 +5,20 @@
|
||||
<t-cell
|
||||
v-if="canViewStore"
|
||||
class="info"
|
||||
title="当前门店"
|
||||
:note="currentStoreStore.currentStoreName"
|
||||
>
|
||||
<template #description>
|
||||
<div v-if="currentStore?.code" v-text="`编码:${currentStore.code}`" />
|
||||
<div v-if="currentStore?.address" v-text="currentStore.address" />
|
||||
<div v-if="currentStore?.telephone" v-text="`电话:${currentStore.telephone}`" />
|
||||
</template>
|
||||
<template #leftIcon>
|
||||
<t-icon name="shop" size="1.75rem" />
|
||||
</template>
|
||||
</t-cell>
|
||||
:title="currentStoreStore.currentStoreName"
|
||||
:description="currentStore?.address"
|
||||
/>
|
||||
<t-cell
|
||||
v-if="canSelectStore"
|
||||
class="action"
|
||||
title="切换门店"
|
||||
note="选择数据统计门店"
|
||||
note="选择使用门店"
|
||||
arrow
|
||||
hover
|
||||
@click="openStorePicker"
|
||||
>
|
||||
<template #leftIcon>
|
||||
<t-icon name="swap" size="1.75rem" />
|
||||
<t-icon name="swap" />
|
||||
</template>
|
||||
</t-cell>
|
||||
<t-cell
|
||||
@@ -40,7 +31,7 @@
|
||||
@click="goStoreManagement"
|
||||
>
|
||||
<template #leftIcon>
|
||||
<t-icon name="shop" size="1.75rem" />
|
||||
<t-icon name="shop-3" />
|
||||
</template>
|
||||
</t-cell>
|
||||
</t-cell-group>
|
||||
@@ -149,15 +140,15 @@ onMounted(async () => {
|
||||
|
||||
<style scoped lang="less">
|
||||
.store-tab {
|
||||
padding: calc(var(--app-nav-height) + 1rem) 0 6rem 0;
|
||||
|
||||
.store-header {
|
||||
padding: calc(var(--app-nav-height) + 1rem) 1rem 0 1rem;
|
||||
|
||||
.store-card {
|
||||
|
||||
.info {
|
||||
:deep(.t-cell__description) {
|
||||
gap: .25rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
:deep(.t-cell__title-text) {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user