fix layout

This commit is contained in:
Timi
2026-10-28 14:21:26 +08:00
parent 5609d2484e
commit adc6e38328
83 changed files with 5587 additions and 5386 deletions
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div <div
v-if="customer" v-if="customer"
v-can="permissionCodes.customer.read" v-can="permissionCodes.customer.read"
@@ -159,6 +161,8 @@
@confirm="removeConfirmedCustomer" @confirm="removeConfirmedCustomer"
/> />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -569,7 +573,7 @@ watch(() => route.params.id, loadCustomer);
<style scoped lang="less"> <style scoped lang="less">
.customer-detail { .customer-detail {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -18,6 +19,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="savePermissionCode" class="customer-edit"> <div v-can="savePermissionCode" class="customer-edit">
<t-form class="form card" label-width="5rem" :disabled="isCustomerBound" v-entrance-transition> <t-form class="form card" label-width="5rem" :disabled="isCustomerBound" v-entrance-transition>
<t-form-item label="客户编码"> <t-form-item label="客户编码">
@@ -216,6 +218,7 @@
@change="handleTagSelected" @change="handleTagSelected"
/> />
</div> </div>
</main>
<bottom-popup <bottom-popup
v-model="bodyAreaPickerVisible" v-model="bodyAreaPickerVisible"
title="选择调理部位" title="选择调理部位"
@@ -225,6 +228,7 @@
> >
<body-area-selector v-model="bodyAreaDraft" :readonly="isCustomerBound" /> <body-area-selector v-model="bodyAreaDraft" :readonly="isCustomerBound" />
</bottom-popup> </bottom-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -722,7 +726,7 @@ function buildAttachmentList(): Attachment[] {
<style scoped lang="less"> <style scoped lang="less">
.customer-edit { .customer-edit {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+1 -1
View File
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main v-can="permissionCodes.customer.read" class="page-content scroll list"> <main v-can="permissionCodes.customer.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrapper pull-refresh" class="list-wrapper pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+7 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,8 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column list">
<div class="pull-refresh">
<div v-can="permissionCodes.customer.read" class="customer-invitee-list"> <div v-can="permissionCodes.customer.read" class="customer-invitee-list">
<customer-profile-card <customer-profile-card
v-if="customer" v-if="customer"
@@ -58,6 +61,8 @@
</t-cell-group> </t-cell-group>
</div> </div>
</div> </div>
</div>
</main>
<customer-selector <customer-selector
v-model="selectedInviteeId" v-model="selectedInviteeId"
v-model:visible="selectorVisible" v-model:visible="selectorVisible"
@@ -84,6 +89,7 @@
</div> </div>
</div> </div>
</bottom-popup> </bottom-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -271,7 +277,7 @@ watch(() => route.params.id, loadCustomer);
<style scoped lang="less"> <style scoped lang="less">
.customer-invitee-list { .customer-invitee-list {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+1 -1
View File
@@ -11,7 +11,7 @@
<navbar-actions :actions="actionList" :visible="canCreateCustomer" /> <navbar-actions :actions="actionList" :visible="canCreateCustomer" />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.customer.read" class="page-content scroll list"> <main v-can="permissionCodes.customer.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh fix-last-cell-line" class="pull-refresh fix-last-cell-line"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-can="permissionCodes.qrCode.create" class="qr-page"> <div v-can="permissionCodes.qrCode.create" class="qr-page">
<t-form class="form card" v-entrance-transition> <t-form class="form card" v-entrance-transition>
<t-form-item label="编码前缀"> <t-form-item label="编码前缀">
@@ -79,6 +81,8 @@
</div> </div>
</section> </section>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -245,7 +249,7 @@ async function printQrCode(): Promise<void> {
.qr-page { .qr-page {
gap: 1rem; gap: 1rem;
min-height: 100vh; min-height: 100vh;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem 0; padding: 0 0 2rem 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div <div
v-can="permissionCodes.event.read" v-can="permissionCodes.event.read"
class="registration-event-detail" class="registration-event-detail"
@@ -113,6 +115,7 @@
/> />
<t-empty v-if="!event" :description="isLoading ? '正在加载登记事件' : '登记事件不存在'" /> <t-empty v-if="!event" :description="isLoading ? '正在加载登记事件' : '登记事件不存在'" />
</div> </div>
</main>
<bottom-popup <bottom-popup
v-model="optionPopupVisible" v-model="optionPopupVisible"
title="登记可选项" title="登记可选项"
@@ -136,6 +139,7 @@
:loading="isRemoving" :loading="isRemoving"
@confirm="removeEvent" @confirm="removeEvent"
/> />
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -397,7 +401,7 @@ onMounted(() => {
.registration-event-detail { .registration-event-detail {
gap: 1rem; gap: 1rem;
min-height: 100vh; min-height: 100vh;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem; padding: 0 0 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="pageAccess" class="event-edit"> <div v-can="pageAccess" class="event-edit">
<t-form class="form card" label-width="7rem" v-entrance-transition> <t-form class="form card" label-width="7rem" v-entrance-transition>
<t-form-item label="颜色"> <t-form-item label="颜色">
@@ -159,6 +161,7 @@
</t-checkbox-group> </t-checkbox-group>
</section> </section>
</div> </div>
</main>
<t-popup v-model="colorPickerVisible" placement="bottom" @opened="handleColorPickerOpened"> <t-popup v-model="colorPickerVisible" placement="bottom" @opened="handleColorPickerOpened">
<div class="color-popup"> <div class="color-popup">
<div class="header"> <div class="header">
@@ -241,6 +244,7 @@
/> />
</div> </div>
</t-popup> </t-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -763,7 +767,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.event-edit { .event-edit {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+1 -1
View File
@@ -13,7 +13,7 @@
</t-navbar> </t-navbar>
<main <main
v-can="{ value: [permissionCodes.event.read, permissionCodes.user.read], mode: 'and' }" v-can="{ value: [permissionCodes.event.read, permissionCodes.user.read], mode: 'and' }"
class="page-content scroll list" class="page-content scroll column list"
> >
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.eventRecord.read" class="event-record-detail"> <div v-can="permissionCodes.eventRecord.read" class="event-record-detail">
<customer-profile-card <customer-profile-card
v-entrance-transition v-entrance-transition
@@ -107,6 +109,7 @@
/> />
<t-empty v-if="!record" :description="isLoading ? '正在加载登记事件记录' : '登记事件记录不存在'" /> <t-empty v-if="!record" :description="isLoading ? '正在加载登记事件记录' : '登记事件记录不存在'" />
</div> </div>
</main>
<event-record-verify-dialog <event-record-verify-dialog
v-model:visible="verifyDialogVisible" v-model:visible="verifyDialogVisible"
:record="record" :record="record"
@@ -114,6 +117,7 @@
:submit="submitVerifyRecord" :submit="submitVerifyRecord"
@verified="handleVerifySuccess" @verified="handleVerifySuccess"
/> />
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -442,7 +446,7 @@ watch(() => route.params.id, async () => {
.event-record-detail { .event-record-detail {
gap: 1rem; gap: 1rem;
min-height: 100vh; min-height: 100vh;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="pageAccess" class="registration-record-edit"> <div v-can="pageAccess" class="registration-record-edit">
<t-form class="form card" v-entrance-transition> <t-form class="form card" v-entrance-transition>
<t-form-item label="客户" required-mark> <t-form-item label="客户" required-mark>
@@ -167,6 +169,8 @@
</div> </div>
</t-popup> </t-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -685,7 +689,7 @@ watch(customerCode, async (value) => {
.registration-record-edit { .registration-record-edit {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
flex-direction: column; flex-direction: column;
.form, .form,
+1 -1
View File
@@ -11,7 +11,7 @@
<navbar-actions :actions="actionList" :visible="canCreateRecord" /> <navbar-actions :actions="actionList" :visible="canCreateRecord" />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.eventRecord.read" class="page-content scroll list"> <main v-can="permissionCodes.eventRecord.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+1 -1
View File
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main v-can="permissionCodes.stat.read" class="page-content scroll list"> <main v-can="permissionCodes.stat.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrapper pull-refresh" class="list-wrapper pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.customerFollowUpReminder.read" class="follow-up-reminder-detail"> <div v-can="permissionCodes.customerFollowUpReminder.read" class="follow-up-reminder-detail">
<t-empty v-if="!detail" :description="isLoading ? '正在加载跟进提醒' : '跟进提醒不存在'" /> <t-empty v-if="!detail" :description="isLoading ? '正在加载跟进提醒' : '跟进提醒不存在'" />
<template v-else> <template v-else>
@@ -88,6 +90,8 @@
</div> </div>
</template> </template>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -330,7 +334,7 @@ watch(() => route.params.id, async () => {
<style scoped lang="less"> <style scoped lang="less">
.follow-up-reminder-detail { .follow-up-reminder-detail {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -16,6 +17,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="pageAccess" class="follow-up-reminder-edit"> <div v-can="pageAccess" class="follow-up-reminder-edit">
<t-form class="form card" label-width="6rem"> <t-form class="form card" label-width="6rem">
<t-form-item label="客户" content-align="right" required-mark> <t-form-item label="客户" content-align="right" required-mark>
@@ -119,6 +121,8 @@
/> />
</t-popup> </t-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -606,7 +610,7 @@ onMounted(async () => {
.follow-up-reminder-edit { .follow-up-reminder-edit {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 4rem; padding: 0 0 4rem;
flex-direction: column; flex-direction: column;
.form { .form {
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.customerFollowUpReminder.read" class="page-content scroll list"> <main v-can="permissionCodes.customerFollowUpReminder.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -16,6 +17,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.orderFulfillment.create" class="fulfillment-create"> <div v-can="permissionCodes.orderFulfillment.create" class="fulfillment-create">
<t-cell-group title="履约来源" theme="card"> <t-cell-group title="履约来源" theme="card">
<t-cell title="销售订单" :note="order?.orderNo || order?.id || '未找到来源订单'" /> <t-cell title="销售订单" :note="order?.orderNo || order?.id || '未找到来源订单'" />
@@ -128,6 +130,8 @@
<t-picker v-model="unitPickerDraft" :columns="unitPickerOptions" title="选择实际履约单位" @cancel="unitPickerVisible = false" @confirm="confirmUnitPicker" /> <t-picker v-model="unitPickerDraft" :columns="unitPickerOptions" title="选择实际履约单位" @cancel="unitPickerVisible = false" @confirm="confirmUnitPicker" />
</t-popup> </t-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -598,7 +602,7 @@ onUnmounted(() => {
<style scoped lang="less"> <style scoped lang="less">
.fulfillment-create { .fulfillment-create {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-can="permissionCodes.orderFulfillment.read" class="fulfillment-detail"> <div v-can="permissionCodes.orderFulfillment.read" class="fulfillment-detail">
<template v-if="fulfillment"> <template v-if="fulfillment">
<t-cell-group title="履约单信息" theme="card" v-entrance-transition> <t-cell-group title="履约单信息" theme="card" v-entrance-transition>
@@ -169,6 +171,8 @@
@success="loadData" @success="loadData"
/> />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -440,7 +444,7 @@ onMounted(loadData);
<style scoped lang="less"> <style scoped lang="less">
.fulfillment-detail { .fulfillment-detail {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -11,7 +11,7 @@
<navbar-actions :actions="actions" :visible="canCreate" /> <navbar-actions :actions="actions" :visible="canCreate" />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.orderFulfillment.read" class="page-content scroll list"> <main v-can="permissionCodes.orderFulfillment.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="refreshing" v-model="refreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-can="permissionCodes.eventRecord.create" class="quick-sign-in-page"> <div v-can="permissionCodes.eventRecord.create" class="quick-sign-in-page">
<t-cell-group v-if="!isEventLoading && !eventLoadFailed" theme="card"> <t-cell-group v-if="!isEventLoading && !eventLoadFailed" theme="card">
<t-cell title="登记事件" arrow @click="eventPopupVisible = true"> <t-cell title="登记事件" arrow @click="eventPopupVisible = true">
@@ -117,6 +119,7 @@
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
</div> </div>
</main>
<bottom-popup <bottom-popup
v-model="eventPopupVisible" v-model="eventPopupVisible"
title="选择登记事件" title="选择登记事件"
@@ -140,6 +143,7 @@
</div> </div>
</div> </div>
</bottom-popup> </bottom-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -510,7 +514,7 @@ async function doSubmit(isAutoRegister = false): Promise<void> {
<style scoped lang="less"> <style scoped lang="less">
.quick-sign-in-page { .quick-sign-in-page {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="corePermissionCodes.notify.read" class="notify-detail"> <div v-can="corePermissionCodes.notify.read" class="notify-detail">
<t-empty <t-empty
v-if="!detail" v-if="!detail"
@@ -53,6 +55,8 @@
/> />
</template> </template>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -275,7 +279,7 @@ watch(() => route.params.id, async () => {
.notify-detail { .notify-detail {
gap: 1rem; gap: 1rem;
min-height: 100%; min-height: 100%;
padding: var(--app-nav-height) 0 1rem; padding: 0 0 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list"> <main v-can="corePermissionCodes.notify.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+7 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,8 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column list">
<div class="pull-refresh">
<div v-can="corePermissionCodes.notify.read" class="notify-recipient-list"> <div v-can="corePermissionCodes.notify.read" class="notify-recipient-list">
<template v-if="detail"> <template v-if="detail">
<t-segmented <t-segmented
@@ -55,6 +58,9 @@
:description="isLoading ? '正在加载发送用户' : '通知不存在'" :description="isLoading ? '正在加载发送用户' : '通知不存在'"
/> />
</div> </div>
</div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -176,7 +182,7 @@ watch(() => route.query.filter, () => {
.notify-recipient-list { .notify-recipient-list {
gap: 1rem; gap: 1rem;
min-height: 100%; min-height: 100%;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem; padding: 0 0 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="corePermissionCodes.notify.read" class="notify-detail"> <div v-can="corePermissionCodes.notify.read" class="notify-detail">
<notify-content <notify-content
v-if="detail" v-if="detail"
@@ -30,6 +32,8 @@
:description="isLoading ? '正在加载通知' : '通知不存在'" :description="isLoading ? '正在加载通知' : '通知不存在'"
/> />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -166,7 +170,7 @@ watch(() => route.params.id, async () => {
<style scoped lang="less"> <style scoped lang="less">
.notify-detail { .notify-detail {
padding: var(--app-nav-height) 0 1rem 0; padding: 0 0 1rem 0;
} }
</style> </style>
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list"> <main v-can="corePermissionCodes.notify.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.packageConfig.read" class="package-config-detail"> <div v-can="permissionCodes.packageConfig.read" class="package-config-detail">
<template v-if="config"> <template v-if="config">
<section class="hero" v-entrance-transition> <section class="hero" v-entrance-transition>
@@ -101,6 +103,8 @@
</template> </template>
<t-empty v-else :description="isLoading ? '正在加载套餐配置' : '套餐配置不存在'" /> <t-empty v-else :description="isLoading ? '正在加载套餐配置' : '套餐配置不存在'" />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -228,7 +232,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.package-config-detail { .package-config-detail {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="savePermissionCode" class="package-config-edit"> <div v-can="savePermissionCode" class="package-config-edit">
<t-form class="form card" label-width="6rem" v-entrance-transition> <t-form class="form card" label-width="6rem" v-entrance-transition>
<t-form-item label="套餐名称" required-mark> <t-form-item label="套餐名称" required-mark>
@@ -127,6 +129,8 @@
<t-date-time-picker v-model="endDraft" format="YYYY-MM-DD HH:mm" :mode="['date', 'minute']" title="结束时间" @cancel="endPickerVisible = false" @confirm="confirmEnd" /> <t-date-time-picker v-model="endDraft" format="YYYY-MM-DD HH:mm" :mode="['date', 'minute']" title="结束时间" @cancel="endPickerVisible = false" @confirm="confirmEnd" />
</t-popup> </t-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -477,7 +481,7 @@ onMounted(async () => {
.package-config-edit { .package-config-edit {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 calc(1rem + env(safe-area-inset-bottom, 0)); padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0));
flex-direction: column; flex-direction: column;
.form { .form {
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.packageConfig.read" class="page-content scroll list"> <main v-can="permissionCodes.packageConfig.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+1 -1
View File
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main v-can="permissionCodes.packageConfig.read" class="page-content scroll list"> <main v-can="permissionCodes.packageConfig.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="refreshing" v-model="refreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.customerPackage.create" class="package-purchase"> <div v-can="permissionCodes.customerPackage.create" class="package-purchase">
<t-form class="form card" v-entrance-transition> <t-form class="form card" v-entrance-transition>
<t-form-item label="客户" required-mark> <t-form-item label="客户" required-mark>
@@ -325,6 +327,8 @@
</div> </div>
</t-popup> </t-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -966,7 +970,7 @@ watch(config, value => {
.package-purchase { .package-purchase {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
flex-direction: column; flex-direction: column;
.form { .form {
+1 -1
View File
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }" class="page-content scroll list"> <main v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrapper pull-refresh" class="list-wrapper pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div <div
v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }" v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }"
class="permission-settings" class="permission-settings"
@@ -83,6 +85,8 @@
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -167,7 +171,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.permission-settings { .permission-settings {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -18,6 +19,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="pageAccess" class="role-edit"> <div v-can="pageAccess" class="role-edit">
<t-form v-entrance-transition class="form card"> <t-form v-entrance-transition class="form card">
<t-form-item label="名称"> <t-form-item label="名称">
@@ -84,6 +86,7 @@
</t-cell-group> </t-cell-group>
</card-container> </card-container>
</div> </div>
</main>
<t-popup v-model="parentRolePickerVisible" placement="bottom"> <t-popup v-model="parentRolePickerVisible" placement="bottom">
<t-picker <t-picker
v-model="parentRolePickerDraft" v-model="parentRolePickerDraft"
@@ -114,6 +117,7 @@
</t-checkbox-group> </t-checkbox-group>
<t-empty v-else description="暂无可继承角色" /> <t-empty v-else description="暂无可继承角色" />
</bottom-popup> </bottom-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -504,7 +508,7 @@ onMounted(async () => {
.role-edit { .role-edit {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem 0; padding: 0 0 2rem 0;
flex-direction: column; flex-direction: column;
.form { .form {
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }" class="page-content scroll list"> <main v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrapper pull-refresh" class="list-wrapper pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-can="permissionCodes.point.accountRead" class="point-account-detail"> <div v-can="permissionCodes.point.accountRead" class="point-account-detail">
<card-container v-if="customer" v-entrance-transition> <card-container v-if="customer" v-entrance-transition>
<customer-profile-card :customer="customer" /> <customer-profile-card :customer="customer" />
@@ -47,6 +49,8 @@
</section> </section>
<t-empty v-if="!account" :description="isLoading ? '正在加载积分账户' : '积分账户不存在或已被删除'" /> <t-empty v-if="!account" :description="isLoading ? '正在加载积分账户' : '积分账户不存在或已被删除'" />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -190,7 +194,7 @@ onMounted(async () => {
.point-account-detail { .point-account-detail {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem; padding: 0 0 1rem;
flex-direction: column; flex-direction: column;
.account-card { .account-card {
+1 -1
View File
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main v-can="permissionCodes.point.accountRead" class="page-content scroll list"> <main v-can="permissionCodes.point.accountRead" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-if="customer" v-can="permissionCodes.point.ledgerRead" class="point-ledger-detail"> <div v-if="customer" v-can="permissionCodes.point.ledgerRead" class="point-ledger-detail">
<customer-profile-card <customer-profile-card
class="customer-profile" class="customer-profile"
@@ -83,6 +85,8 @@
</template> </template>
<t-empty v-else :description="isLoading ? '正在加载积分流水' : '积分流水快照不存在,请从积分流水列表进入'" /> <t-empty v-else :description="isLoading ? '正在加载积分流水' : '积分流水快照不存在,请从积分流水列表进入'" />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -372,7 +376,7 @@ watch(() => [route.params.id, route.query.snapshot], async () => {
.point-ledger-detail { .point-ledger-detail {
gap: 1rem; gap: 1rem;
min-height: 100vh; min-height: 100vh;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem; padding: 0 0 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+1 -1
View File
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main v-can="permissionCodes.point.ledgerRead" class="page-content scroll list"> <main v-can="permissionCodes.point.ledgerRead" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -16,6 +17,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.pointRedeemSku.manage" class="redeem-sku-edit"> <div v-can="permissionCodes.pointRedeemSku.manage" class="redeem-sku-edit">
<t-form class="form card" v-entrance-transition> <t-form class="form card" v-entrance-transition>
<product-select-form-item <product-select-form-item
@@ -61,6 +63,7 @@
@click="remove" @click="remove"
/> />
</div> </div>
</main>
<t-popup v-model="statusVisible" placement="bottom"> <t-popup v-model="statusVisible" placement="bottom">
<t-picker <t-picker
v-model="statusDraft" v-model="statusDraft"
@@ -70,6 +73,7 @@
@confirm="confirmStatus" @confirm="confirmStatus"
/> />
</t-popup> </t-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -227,7 +231,7 @@ onMounted(async () => {
.redeem-sku-edit { .redeem-sku-edit {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
flex-direction: column; flex-direction: column;
.tips { .tips {
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.pointRedeemSku.manage" class="page-content scroll list"> <main v-can="permissionCodes.pointRedeemSku.manage" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -16,6 +17,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.pointRedemption.create" class="redemption-create"> <div v-can="permissionCodes.pointRedemption.create" class="redemption-create">
<t-form class="form card" label-width="7rem" v-entrance-transition> <t-form class="form card" label-width="7rem" v-entrance-transition>
<t-form-item label="客户" required-mark> <t-form-item label="客户" required-mark>
@@ -98,6 +100,7 @@
</div> </div>
</t-form> </t-form>
</div> </div>
</main>
<customer-selector <customer-selector
v-model="customerId" v-model="customerId"
v-model:visible="customerVisible" v-model:visible="customerVisible"
@@ -138,6 +141,7 @@
<t-empty v-if="!skuList.length" description="暂无启用的兑换商品" /> <t-empty v-if="!skuList.length" description="暂无启用的兑换商品" />
</div> </div>
</bottom-popup> </bottom-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -359,7 +363,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.redemption-create { .redemption-create {
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
.form { .form {
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-can="permissionCodes.pointRedemption.create" class="redemption-detail"> <div v-can="permissionCodes.pointRedemption.create" class="redemption-detail">
<customer-profile-card <customer-profile-card
v-if="customer" v-if="customer"
@@ -43,6 +45,7 @@
@click="returnVisible = true" @click="returnVisible = true"
/> />
</div> </div>
</main>
<bottom-popup <bottom-popup
v-model="returnVisible" v-model="returnVisible"
title="冲正兑换" title="冲正兑换"
@@ -73,6 +76,7 @@
</t-form> </t-form>
</div> </div>
</bottom-popup> </bottom-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -225,7 +229,7 @@ onMounted(load);
.redemption-detail { .redemption-detail {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
flex-direction: column; flex-direction: column;
.return-button { .return-button {
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.pointRedemption.create" class="page-content scroll list"> <main v-can="permissionCodes.pointRedemption.create" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="refreshing" v-model="refreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.pointRule.read" class="point-rule-detail"> <div v-can="permissionCodes.pointRule.read" class="point-rule-detail">
<section v-if="rule" class="rule-header" v-entrance-transition> <section v-if="rule" class="rule-header" v-entrance-transition>
<div class="point-icon" :class="{ consume: isConsumeRule }"> <div class="point-icon" :class="{ consume: isConsumeRule }">
@@ -104,6 +106,8 @@
</t-button> </t-button>
<t-empty v-if="!rule" :description="isLoading ? '正在加载积分规则' : '积分规则不存在'" /> <t-empty v-if="!rule" :description="isLoading ? '正在加载积分规则' : '积分规则不存在'" />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -326,7 +330,7 @@ watch(() => route.params.id, async () => {
.point-rule-detail { .point-rule-detail {
gap: 1rem; gap: 1rem;
min-height: 100vh; min-height: 100vh;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem; padding: 0 0 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="pageAccess" class="point-rule-edit"> <div v-can="pageAccess" class="point-rule-edit">
<t-form class="form card" label-width="7rem"> <t-form class="form card" label-width="7rem">
<card-container v-entrance-transition> <card-container v-entrance-transition>
@@ -82,6 +84,7 @@
</card-container> </card-container>
</t-form> </t-form>
</div> </div>
</main>
<t-popup v-model="eventPickerVisible" placement="bottom"> <t-popup v-model="eventPickerVisible" placement="bottom">
<t-picker <t-picker
v-model="eventPickerDraft" v-model="eventPickerDraft"
@@ -154,6 +157,7 @@
@confirm="confirmEndAt" @confirm="confirmEndAt"
/> />
</t-popup> </t-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -574,7 +578,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.point-rule-edit { .point-rule-edit {
padding: calc(var(--app-nav-height) + 1rem) 0 calc(1rem + env(safe-area-inset-bottom, 0)); padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0));
.form { .form {
gap: 1rem; gap: 1rem;
+1 -1
View File
@@ -11,7 +11,7 @@
<navbar-actions :actions="actionList" :visible="canShowActionMenu" /> <navbar-actions :actions="actionList" :visible="canShowActionMenu" />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.pointRule.read" class="page-content scroll list"> <main v-can="permissionCodes.pointRule.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrapper pull-refresh" class="list-wrapper pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+1 -1
View File
@@ -11,7 +11,7 @@
<navbar-actions :actions="actionList" :visible="canShowActionMenu" /> <navbar-actions :actions="actionList" :visible="canShowActionMenu" />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.productCategory.read" class="page-content scroll list"> <main v-can="permissionCodes.productCategory.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -10,6 +11,7 @@
<navbar-actions :actions="actionList" /> <navbar-actions :actions="actionList" />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.product.read" class="product-detail"> <div v-can="permissionCodes.product.read" class="product-detail">
<t-loading v-if="isLoading" class="loading" size="32px" /> <t-loading v-if="isLoading" class="loading" size="32px" />
<template v-if="product"> <template v-if="product">
@@ -83,6 +85,7 @@
</t-cell-group> </t-cell-group>
</template> </template>
</div> </div>
</main>
<bottom-popup <bottom-popup
v-model="skuDetailVisible" v-model="skuDetailVisible"
@@ -122,6 +125,7 @@
</div> </div>
</div> </div>
</bottom-popup> </bottom-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -311,7 +315,7 @@ onMounted(async () => {
.product-detail { .product-detail {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
flex-direction: column; flex-direction: column;
.skus { .skus {
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="savePermissionCode" class="product-edit"> <div v-can="savePermissionCode" class="product-edit">
<t-form class="form card" label-width="6rem" v-entrance-transition> <t-form class="form card" label-width="6rem" v-entrance-transition>
<t-form-item label="产品编码" required-mark help="使用英语、拼音或唯一数字"> <t-form-item label="产品编码" required-mark help="使用英语、拼音或唯一数字">
@@ -212,6 +214,8 @@
<t-color-picker v-if="coverColorPickerVisible" v-model="coverColorDraft" format="HEX" type="multiple" :swatch-colors="colorSwatchList" @palette-bar-change="updateCoverColorDraftFromPalette" /> <t-color-picker v-if="coverColorPickerVisible" v-model="coverColorDraft" format="HEX" type="multiple" :swatch-colors="colorSwatchList" @palette-bar-change="updateCoverColorDraftFromPalette" />
</bottom-popup> </bottom-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -1131,7 +1135,7 @@ onMounted(async () => {
.product-edit { .product-edit {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem; padding: 0 0 1rem;
flex-direction: column; flex-direction: column;
.form { .form {
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main ref="productListRef" v-can="permissionCodes.product.read" class="page-content scroll list"> <main ref="productListRef" v-can="permissionCodes.product.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -18,6 +19,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.productStock.create" class="product-stock-batch-configure"> <div v-can="permissionCodes.productStock.create" class="product-stock-batch-configure">
<t-form class="form card" label-width="5rem" v-entrance-transition> <t-form class="form card" label-width="5rem" v-entrance-transition>
<t-form-item label="入库备注" required-mark> <t-form-item label="入库备注" required-mark>
@@ -147,6 +149,8 @@
<t-picker v-model="unitPickerDraft" :columns="unitPickerOptions" title="选择入库单位" @cancel="unitPickerVisible = false" @confirm="confirmUnitPicker" /> <t-picker v-model="unitPickerDraft" :columns="unitPickerOptions" title="选择入库单位" @cancel="unitPickerVisible = false" @confirm="confirmUnitPicker" />
</t-popup> </t-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -444,7 +448,7 @@ onActivated(() => {
<style scoped lang="less"> <style scoped lang="less">
.product-stock-batch-configure { .product-stock-batch-configure {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -19,7 +19,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="permissionCodes.productStock.create" class="page-content scroll list"> <main v-can="permissionCodes.productStock.create" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrap empty-cell-title-margin pull-refresh" class="list-wrap empty-cell-title-margin pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-can="permissionCodes.productStock.read" class="product-stock-detail"> <div v-can="permissionCodes.productStock.read" class="product-stock-detail">
<t-loading v-if="isLoading" class="loading" size="32px" /> <t-loading v-if="isLoading" class="loading" size="32px" />
<template v-else-if="product && sku && stock"> <template v-else-if="product && sku && stock">
@@ -101,6 +103,8 @@
@success="loadAll" @success="loadAll"
/> />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -264,7 +268,7 @@ onMounted(async () => {
.product-stock-detail { .product-stock-detail {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem; padding: 0 0 1rem;
flex-direction: column; flex-direction: column;
.loading { .loading {
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main ref="productStockListRef" v-can="permissionCodes.productStock.read" class="page-content scroll list"> <main ref="productStockListRef" v-can="permissionCodes.productStock.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrap empty-cell-title-margin pull-refresh" class="list-wrap empty-cell-title-margin pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-can="permissionCodes.productStock.read" class="product-stock-record-detail"> <div v-can="permissionCodes.productStock.read" class="product-stock-record-detail">
<t-loading v-if="isLoading" class="loading" size="32px" /> <t-loading v-if="isLoading" class="loading" size="32px" />
<template v-else-if="record"> <template v-else-if="record">
@@ -128,6 +130,8 @@
</div> </div>
</bottom-popup> </bottom-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -327,7 +331,7 @@ watch(() => String(route.params.id || ""), async (id, previousId) => {
.product-stock-record-detail { .product-stock-record-detail {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
flex-direction: column; flex-direction: column;
.loading { .loading {
+1 -1
View File
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="handleNavBarBack" @left-click="handleNavBarBack"
/> />
<main v-can="permissionCodes.productStock.read" class="page-content scroll list"> <main v-can="permissionCodes.productStock.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh has-dropdown-menu-navbar" class="pull-refresh has-dropdown-menu-navbar"
v-model="isRefreshing" v-model="isRefreshing"
+1 -1
View File
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main v-can="permissionCodes.productStock.read" class="page-content scroll list"> <main v-can="permissionCodes.productStock.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrap empty-cell-title-margin pull-refresh" class="list-wrap empty-cell-title-margin pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main v-can="permissionCodes.salesOrder.read" class="page-content scroll list"> <main v-can="permissionCodes.salesOrder.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-can="pageAccess" class="package-record-detail"> <div v-can="pageAccess" class="package-record-detail">
<template v-if="record"> <template v-if="record">
<section class="hero" v-entrance-transition> <section class="hero" v-entrance-transition>
@@ -117,6 +119,8 @@
<t-textarea v-model.trim="reasonText" borderless autosize placeholder="请输入原因" /> <t-textarea v-model.trim="reasonText" borderless autosize placeholder="请输入原因" />
</t-dialog> </t-dialog>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -332,7 +336,7 @@ onMounted(loadData);
<style scoped lang="less"> <style scoped lang="less">
.package-record-detail { .package-record-detail {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+1 -1
View File
@@ -7,7 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main v-can="pageAccess" class="page-content scroll list"> <main v-can="pageAccess" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.fund.revoke" class="package-operation-edit"> <div v-can="permissionCodes.fund.revoke" class="package-operation-edit">
<t-cell-group v-if="record" title="原资金记录" theme="card" v-entrance-transition> <t-cell-group v-if="record" title="原资金记录" theme="card" v-entrance-transition>
<t-cell title="操作类型" :note="getFundOperationText(record.operationType)" /> <t-cell title="操作类型" :note="getFundOperationText(record.operationType)" />
@@ -87,6 +89,8 @@
/> />
</t-popup> </t-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -264,7 +268,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.package-operation-edit { .package-operation-edit {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div v-can="permissionCodes.salesOrder.read" class="sales-order-detail"> <div v-can="permissionCodes.salesOrder.read" class="sales-order-detail">
<template v-if="order"> <template v-if="order">
<customer-profile-card <customer-profile-card
@@ -224,6 +226,8 @@
</template> </template>
<t-empty v-else :description="loading ? '正在加载订单' : '订单不存在'" /> <t-empty v-else :description="loading ? '正在加载订单' : '订单不存在'" />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -501,7 +505,7 @@ watch(() => route.params.id, loadData);
<style scoped lang="less"> <style scoped lang="less">
.sales-order-detail { .sales-order-detail {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+1 -1
View File
@@ -5,7 +5,7 @@
<navbar-actions :actions="actions" :visible="route.name === 'SalesOrderList'" /> <navbar-actions :actions="actions" :visible="route.name === 'SalesOrderList'" />
</template> </template>
</t-navbar> </t-navbar>
<main ref="salesOrderListRef" v-can="permissionCodes.salesOrder.read" class="page-content scroll list"> <main ref="salesOrderListRef" v-can="permissionCodes.salesOrder.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="list-wrap pull-refresh" class="list-wrap pull-refresh"
v-model="refreshing" v-model="refreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.fund.refund" class="sales-order-operation"> <div v-can="permissionCodes.fund.refund" class="sales-order-operation">
<t-cell-group v-if="order" title="销售订单" theme="card" v-entrance-transition> <t-cell-group v-if="order" title="销售订单" theme="card" v-entrance-transition>
<t-cell title="订单号" :note="order.orderNo || order.id" /> <t-cell title="订单号" :note="order.orderNo || order.id" />
@@ -54,6 +56,8 @@
/> />
</t-popup> </t-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -140,7 +144,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.sales-order-operation { .sales-order-operation {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.fundReceive.create" class="sales-order-operation"> <div v-can="permissionCodes.fundReceive.create" class="sales-order-operation">
<t-cell-group <t-cell-group
v-if="order" v-if="order"
@@ -86,6 +88,8 @@
</t-form> </t-form>
<t-empty v-if="!order" :description="loading ? '正在加载订单' : '订单不存在'" /> <t-empty v-if="!order" :description="loading ? '正在加载订单' : '订单不存在'" />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -205,7 +209,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.sales-order-operation { .sales-order-operation {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.fund.refund" class="sales-order-operation"> <div v-can="permissionCodes.fund.refund" class="sales-order-operation">
<t-cell-group <t-cell-group
v-if="order" v-if="order"
@@ -99,6 +101,8 @@
/> />
</t-popup> </t-popup>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -234,7 +238,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.sales-order-operation { .sales-order-operation {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem; padding: 0 0 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div class="about-page"> <div class="about-page">
<section class="brand" v-entrance-transition> <section class="brand" v-entrance-transition>
<logo @click="handleLogoClick" /> <logo @click="handleLogoClick" />
@@ -37,6 +39,8 @@
<p>Copyright © 2026 imyeyu.com</p> <p>Copyright © 2026 imyeyu.com</p>
</footer> </footer>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -153,7 +157,7 @@ onMounted(async () => {
.about-page { .about-page {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 5rem; padding: 0 0 5rem;
flex-direction: column; flex-direction: column;
.brand { .brand {
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div class="agreement-page"> <div class="agreement-page">
<template v-if="article"> <template v-if="article">
<header class="header" v-entrance-transition> <header class="header" v-entrance-transition>
@@ -27,6 +29,8 @@
:description="isLoading ? '正在加载协议' : '协议不存在'" :description="isLoading ? '正在加载协议' : '协议不存在'"
/> />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -96,7 +100,7 @@ watch(() => route.params.id, async () => {
<style scoped lang="less"> <style scoped lang="less">
.agreement-page { .agreement-page {
padding: var(--app-nav-height) 0 1rem 0; padding: 0 0 1rem 0;
.header { .header {
padding: .5rem 1rem; padding: .5rem 1rem;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div class="settings-page"> <div class="settings-page">
<t-cell-group title="显示" theme="card" v-entrance-transition> <t-cell-group title="显示" theme="card" v-entrance-transition>
<t-cell class="theme" title="显示模式"> <t-cell class="theme" title="显示模式">
@@ -46,6 +48,8 @@
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -112,7 +116,7 @@ async function playSettingSoundPreview(type: "scanSuccess" | "registerSuccess"):
<style scoped lang="less"> <style scoped lang="less">
.settings-page { .settings-page {
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0; padding: 0 0 1rem 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+5 -12
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,7 +7,8 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<div class="help-page empty-cell-title-margin"> <main class="page-content scroll column list help-page">
<div class="pull-refresh empty-cell-title-margin">
<div class="filters glass"> <div class="filters glass">
<t-input <t-input
v-model.trim="searchKeyword" v-model.trim="searchKeyword"
@@ -41,6 +43,8 @@
:description="emptyDescription" :description="emptyDescription"
/> />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -295,19 +299,8 @@ onMounted(async () => {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.help-page {
display: flex;
padding: var(--app-nav-height) 0 1rem;
flex-direction: column;
}
:global(html.theme-dark) { :global(html.theme-dark) {
.help-page { .help-page {
.search-wrap {
background: #10161f;
}
.search { .search {
background: rgba(30, 41, 59, .9); background: rgba(30, 41, 59, .9);
} }
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div class="help-article-page"> <div class="help-article-page">
<template v-if="article"> <template v-if="article">
<article-view <article-view
@@ -20,6 +22,8 @@
:description="isLoading ? '正在加载使用说明' : '使用说明不存在'" :description="isLoading ? '正在加载使用说明' : '使用说明不存在'"
/> />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -91,7 +95,7 @@ onBeforeRouteLeave(() => {
<style scoped lang="less"> <style scoped lang="less">
.help-article-page { .help-article-page {
padding: var(--app-nav-height) 0 1rem; padding: 0 0 1rem;
.header { .header {
padding: .5rem 1rem; padding: .5rem 1rem;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div <div
v-if="store" v-if="store"
v-can="permissionCodes.store.read" v-can="permissionCodes.store.read"
@@ -42,6 +44,7 @@
<div v-if="isCalendarLoading" class="loading" v-text="'正在加载当月营业日'" /> <div v-if="isCalendarLoading" class="loading" v-text="'正在加载当月营业日'" />
</card-container> </card-container>
</div> </div>
</main>
<t-popup v-model="editorVisible" placement="bottom"> <t-popup v-model="editorVisible" placement="bottom">
<div class="editor"> <div class="editor">
<div class="header"> <div class="header">
@@ -89,6 +92,7 @@
</div> </div>
</div> </div>
</t-popup> </t-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -331,7 +335,7 @@ onMounted(async () => {
.store-business-day-calendar { .store-business-day-calendar {
gap: .75rem; gap: .75rem;
display: grid; display: grid;
padding: calc(var(--app-nav-height) + 1rem) 0 6rem; padding: 0 0 6rem;
.summary { .summary {
gap: .75rem; gap: .75rem;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.storeDiary.read" class="store-diary-detail"> <div v-can="permissionCodes.storeDiary.read" class="store-diary-detail">
<template v-if="article"> <template v-if="article">
<header class="header" v-entrance-transition> <header class="header" v-entrance-transition>
@@ -72,6 +74,8 @@
</template> </template>
<t-empty v-else :description="isLoading ? '正在加载门店日记' : '门店日记不存在'" /> <t-empty v-else :description="isLoading ? '正在加载门店日记' : '门店日记不存在'" />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -213,7 +217,7 @@ onMounted(loadArticle);
<style scoped lang="less"> <style scoped lang="less">
.store-diary-detail { .store-diary-detail {
padding: var(--app-nav-height) 0 calc(1rem + env(safe-area-inset-bottom, 0)); padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0));
.header { .header {
margin: 0 1rem; margin: 0 1rem;
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll list"> <main class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
v-can="permissionCodes.storeDiary.read" v-can="permissionCodes.storeDiary.read"
class="store-diary-list pull-refresh" class="store-diary-list pull-refresh"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="savePermissionCode" class="store-edit"> <div v-can="savePermissionCode" class="store-edit">
<t-form class="form card" v-entrance-transition> <t-form class="form card" v-entrance-transition>
<t-form-item v-if="!isStoreManagerScope" label="编码"> <t-form-item v-if="!isStoreManagerScope" label="编码">
@@ -71,6 +73,8 @@
@confirm="removeConfirmedStore" @confirm="removeConfirmedStore"
/> />
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -222,7 +226,7 @@ async function removeStore(id: string): Promise<void> {
<style scoped lang="less"> <style scoped lang="less">
.store-edit { .store-edit {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 calc(1rem + env(safe-area-inset-bottom, 0)) 0; padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0)) 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+1 -1
View File
@@ -19,7 +19,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="corePermissionCodes.tag.read" class="page-content scroll list"> <main v-can="corePermissionCodes.tag.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+1 -1
View File
@@ -18,7 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main v-can="corePermissionCodes.tag.read" class="page-content scroll list"> <main v-can="corePermissionCodes.tag.read" class="page-content scroll column list">
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
v-model="isRefreshing" v-model="isRefreshing"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div <div
v-if="managedUser" v-if="managedUser"
v-can="permissionCodes.user.read" v-can="permissionCodes.user.read"
@@ -70,6 +72,8 @@
<t-cell v-if="!scopeList.length" title="未配置" /> <t-cell v-if="!scopeList.length" title="未配置" />
</t-cell-group> </t-cell-group>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -213,7 +217,7 @@ onMounted(async () => {
.user-edit { .user-edit {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 4rem 0; padding: 0 0 4rem 0;
flex-direction: column; flex-direction: column;
.avatar { .avatar {
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -17,6 +18,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div v-can="savePermissionCode" class="user-edit"> <div v-can="savePermissionCode" class="user-edit">
<t-form class="form card"> <t-form class="form card">
<t-form-item label="姓名"> <t-form-item label="姓名">
@@ -33,6 +35,7 @@
</t-form-item> </t-form-item>
</t-form> </t-form>
</div> </div>
</main>
<t-popup v-model="storePickerVisible" placement="bottom"> <t-popup v-model="storePickerVisible" placement="bottom">
<t-picker <t-picker
v-model="storePickerDraft" v-model="storePickerDraft"
@@ -42,6 +45,7 @@
@confirm="confirmStorePicker" @confirm="confirmStorePicker"
/> />
</t-popup> </t-popup>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -244,7 +248,7 @@ onMounted(async () => {
<style scoped lang="less"> <style scoped lang="less">
.user-edit { .user-edit {
padding: calc(var(--app-nav-height) + 1rem) 0 4rem 0; padding: 0 0 4rem 0;
.form { .form {
border-radius: 1rem; border-radius: 1rem;
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div class="poster-page"> <div class="poster-page">
<section class="poster-wrap" v-entrance-transition> <section class="poster-wrap" v-entrance-transition>
<img v-if="posterImage" class="poster" :src="posterImage" alt="邀请注册海报" /> <img v-if="posterImage" class="poster" :src="posterImage" alt="邀请注册海报" />
@@ -32,6 +34,8 @@
>下载海报</t-button> >下载海报</t-button>
</div> </div>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -102,7 +106,7 @@ onMounted(() => {
.poster-page { .poster-page {
gap: 1rem; gap: 1rem;
min-height: 100vh; min-height: 100vh;
padding: calc(var(--app-nav-height) + 1rem) 1rem 6rem; padding: 0 1rem 6rem;
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
+1 -1
View File
@@ -19,7 +19,7 @@
</t-navbar> </t-navbar>
<main <main
v-can="permissionCodes.user.read" v-can="permissionCodes.user.read"
class="page-content scroll list" class="page-content scroll column list"
> >
<t-pull-down-refresh <t-pull-down-refresh
class="pull-refresh" class="pull-refresh"
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -6,6 +7,7 @@
left-arrow left-arrow
@left-click="$router.back()" @left-click="$router.back()"
/> />
<main class="page-content scroll column">
<div class="password-page"> <div class="password-page">
<t-form class="form card" v-entrance-transition> <t-form class="form card" v-entrance-transition>
<t-form-item label="旧密码"> <t-form-item label="旧密码">
@@ -26,6 +28,8 @@
@click="savePassword" @click="savePassword"
>保存</t-button> >保存</t-button>
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -78,7 +82,7 @@ async function savePassword(): Promise<void> {
.password-page { .password-page {
gap: 1rem; gap: 1rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 0 4rem 0; padding: 0 0 4rem 0;
flex-direction: column; flex-direction: column;
.form { .form {
+5 -1
View File
@@ -1,4 +1,5 @@
<template> <template>
<div class="page-layout navbar">
<t-navbar <t-navbar
fixed fixed
:z-index="20" :z-index="20"
@@ -16,6 +17,7 @@
/> />
</template> </template>
</t-navbar> </t-navbar>
<main class="page-content scroll column">
<div class="profile-page"> <div class="profile-page">
<t-form class="form card" v-entrance-transition> <t-form class="form card" v-entrance-transition>
<t-form-item label="头像"> <t-form-item label="头像">
@@ -67,6 +69,8 @@
@change="handleAvatarSelected" @change="handleAvatarSelected"
> >
</div> </div>
</main>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -240,7 +244,7 @@ onMounted(() => {
<style scoped lang="less"> <style scoped lang="less">
.profile-page { .profile-page {
gap: 1rem; gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 calc(1rem + env(safe-area-inset-bottom, 0)) 0; padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0)) 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;