auto delay for v-entrance-transition

This commit is contained in:
Timi
2026-10-16 00:42:39 +08:00
parent 4df0423e24
commit 90ce29b54a
95 changed files with 229 additions and 224 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<div class="customer-list"> <div class="customer-list">
<t-cell-group v-if="customerList.length"> <t-cell-group v-if="customerList.length">
<t-cell <t-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in customerList" v-for="(item, index) in customerList"
:key="item.id || item.code || index" :key="item.id || item.code || index"
:note="item.code || ''" :note="item.code || ''"
+2 -2
View File
@@ -3,10 +3,10 @@
<p v-if="props.label" class="t-form__label" :class="{required: props.requiredMark}" v-text="props.label" /> <p v-if="props.label" class="t-form__label" :class="{required: props.requiredMark}" v-text="props.label" />
<div v-if="selectableEventList.length" class="group" role="group"> <div v-if="selectableEventList.length" class="group" role="group">
<div <div
v-for="(item, index) in selectableEventList" v-for="item in selectableEventList"
:key="item.id || item.name" :key="item.id || item.name"
class="item-wrapper" class="item-wrapper"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
> >
<button <button
type="button" type="button"
+2 -2
View File
@@ -40,13 +40,13 @@
<div class="list-wrap"> <div class="list-wrap">
<div class="list"> <div class="list">
<t-tag <t-tag
v-for="(item, index) in visibleTagList" v-for="item in visibleTagList"
:key="item.id" :key="item.id"
class="item" class="item"
:theme="isSelected(item) ? 'primary' : 'default'" :theme="isSelected(item) ? 'primary' : 'default'"
size="large" size="large"
:variant="isSelected(item) ? 'dark' : 'light-outline'" :variant="isSelected(item) ? 'dark' : 'light-outline'"
v-entrance-transition="index * 10" v-entrance-transition="{ step: 30 }"
@click="toggleTag(item)" @click="toggleTag(item)"
> >
<span v-text="getTagName(item)" /> <span v-text="getTagName(item)" />
+3 -3
View File
@@ -22,9 +22,9 @@
<div class="welcome-icon" v-entrance-transition> <div class="welcome-icon" v-entrance-transition>
<t-icon name="robot-2" size="2rem" /> <t-icon name="robot-2" size="2rem" />
</div> </div>
<h3 v-entrance-transition="70">今天想了解什么?</h3> <h3 v-entrance-transition>今天想了解什么?</h3>
<p v-entrance-transition="140">我会根据当前门店的实时业务数据回答经营问题。</p> <p v-entrance-transition>我会根据当前门店的实时业务数据回答经营问题。</p>
<div class="quick-list" v-entrance-transition="210"> <div class="quick-list" v-entrance-transition>
<t-button <t-button
class="quick-question bg-white" class="quick-question bg-white"
v-for="question in aiQuickQuestionList" v-for="question in aiQuickQuestionList"
@@ -22,10 +22,10 @@
</header> </header>
<t-cell-group v-if="conversationList.length" class="items fix-last-cell-line"> <t-cell-group v-if="conversationList.length" class="items fix-last-cell-line">
<t-swipe-cell <t-swipe-cell
v-for="(item, index) in conversationList" v-for="item in conversationList"
:key="item.id" :key="item.id"
class="item" class="item"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
> >
<t-cell <t-cell
class="cell" class="cell"
+7 -7
View File
@@ -29,10 +29,10 @@
class="chart-mode" class="chart-mode"
block block
:options="chartModeOptions" :options="chartModeOptions"
v-entrance-transition="20" v-entrance-transition
/> />
<customer-order-charts <customer-order-charts
v-entrance-transition="35" v-entrance-transition
v-if="selectedCustomer && chartMode === 'order'" v-if="selectedCustomer && chartMode === 'order'"
:customer-id="selectedCustomer.id || ''" :customer-id="selectedCustomer.id || ''"
:date-text-list="chartDateTextList" :date-text-list="chartDateTextList"
@@ -40,13 +40,13 @@
/> />
<template v-else-if="selectedCustomer"> <template v-else-if="selectedCustomer">
<customer-chart-summary <customer-chart-summary
v-entrance-transition="70" v-entrance-transition
:customer="selectedCustomer" :customer="selectedCustomer"
:month-cursor="monthCursor" :month-cursor="monthCursor"
:selected-event-id-list="selectedEventIdList" :selected-event-id-list="selectedEventIdList"
/> />
<customer-event-record-calendar-section <customer-event-record-calendar-section
v-entrance-transition="140" v-entrance-transition
v-model="monthCursor" v-model="monthCursor"
v-model:selected-event-id-list="selectedEventIdList" v-model:selected-event-id-list="selectedEventIdList"
:customer-id="selectedCustomer.id || ''" :customer-id="selectedCustomer.id || ''"
@@ -55,20 +55,20 @@
@list="toEventRecordList" @list="toEventRecordList"
/> />
<customer-record-trend-chart <customer-record-trend-chart
v-entrance-transition="210" v-entrance-transition
:customer-id="selectedCustomer.id || ''" :customer-id="selectedCustomer.id || ''"
:date-text-list="chartDateTextList" :date-text-list="chartDateTextList"
:selected-event-id-list="selectedEventIdList" :selected-event-id-list="selectedEventIdList"
/> />
<customer-event-structure-chart <customer-event-structure-chart
v-entrance-transition="280" v-entrance-transition
:customer-id="selectedCustomer.id || ''" :customer-id="selectedCustomer.id || ''"
:date-text-list="monthDateTextList" :date-text-list="monthDateTextList"
:selected-event-id-list="selectedEventIdList" :selected-event-id-list="selectedEventIdList"
/> />
</template> </template>
<customer-selector <customer-selector
v-entrance-transition="350" v-entrance-transition
v-model="selectedCustomerId" v-model="selectedCustomerId"
v-model:visible="selectorVisible" v-model:visible="selectorVisible"
@change="handleCustomerSelected" @change="handleCustomerSelected"
+6 -6
View File
@@ -9,7 +9,7 @@
class="customer" class="customer"
:customer="customer" :customer="customer"
/> />
<t-cell-group v-entrance-transition="70" class="info" theme="card"> <t-cell-group v-entrance-transition class="info" theme="card">
<t-cell title="出生日期"> <t-cell title="出生日期">
<span <span
v-if="isLunarBirthdate" v-if="isLunarBirthdate"
@@ -33,7 +33,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<card-container v-entrance-transition="140"> <card-container v-entrance-transition>
<media-selector <media-selector
class="media-selector" class="media-selector"
:model-value="photoList" :model-value="photoList"
@@ -50,10 +50,10 @@
v-if="canReadTag" v-if="canReadTag"
:editable="canApplyTag" :editable="canApplyTag"
:tag-list="customerTagList" :tag-list="customerTagList"
v-entrance-transition="210" v-entrance-transition
@edit="openTagSelector" @edit="openTagSelector"
/> />
<t-cell-group v-if="canReadSalesOrder" title="销售订单" theme="card" v-entrance-transition="280"> <t-cell-group v-if="canReadSalesOrder" title="销售订单" theme="card" v-entrance-transition>
<t-cell title="产品订单列表" arrow @click="toProductOrderList"> <t-cell title="产品订单列表" arrow @click="toProductOrderList">
<template #left-icon> <template #left-icon>
<t-icon name="task" /> <t-icon name="task" />
@@ -65,7 +65,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group theme="card" v-entrance-transition="350"> <t-cell-group theme="card" v-entrance-transition>
<t-cell v-if="canReadEventRecord" title="最近登记事件" arrow @click="toEventRecordList"> <t-cell v-if="canReadEventRecord" title="最近登记事件" arrow @click="toEventRecordList">
<template #left-icon> <template #left-icon>
<t-icon name="history" /> <t-icon name="history" />
@@ -92,7 +92,7 @@
v-if="inviter" v-if="inviter"
:title="`由 ${inviter.name} 邀请`" :title="`由 ${inviter.name} 邀请`"
theme="card" theme="card"
v-entrance-transition="420" v-entrance-transition
> >
<customer-profile-card :customer="inviter" @click="toCustomerDetail(inviter)"/> <customer-profile-card :customer="inviter" @click="toCustomerDetail(inviter)"/>
</t-cell-group> </t-cell-group>
+2 -2
View File
@@ -142,10 +142,10 @@
class="tag-card" class="tag-card"
:editable="canEditTag && !isCustomerBound" :editable="canEditTag && !isCustomerBound"
:tag-list="customerTagList" :tag-list="customerTagList"
v-entrance-transition="70" v-entrance-transition
@edit="openTagSelector" @edit="openTagSelector"
/> />
<t-form class="form" label-align="left" label-width="3rem" :disabled="isCustomerBound" v-entrance-transition="140"> <t-form class="form" label-align="left" label-width="3rem" :disabled="isCustomerBound" v-entrance-transition>
<t-form-item label="住址"> <t-form-item label="住址">
<t-textarea <t-textarea
class="textarea" class="textarea"
+1 -1
View File
@@ -11,7 +11,7 @@
<customer-cell <customer-cell
v-for="(item, index) in rankedCustomerList" v-for="(item, index) in rankedCustomerList"
:key="item.id || item.code || index" :key="item.id || item.code || index"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
class="item" class="item"
:class="{ 'in-top3': index < 3 }" :class="{ 'in-top3': index < 3 }"
:customer="item" :customer="item"
+2 -2
View File
@@ -7,7 +7,7 @@
v-entrance-transition v-entrance-transition
/> />
<div class="invite-list"> <div class="invite-list">
<div class="header" v-entrance-transition="70"> <div class="header" v-entrance-transition>
<div class="title">邀请客户</div> <div class="title">邀请客户</div>
<div v-can="permissionCodes.customer.update" class="actions"> <div v-can="permissionCodes.customer.update" class="actions">
<t-button <t-button
@@ -30,7 +30,7 @@
v-for="(item, index) in invitees" v-for="(item, index) in invitees"
:key="item.id || item.code || index" :key="item.id || item.code || index"
class="item" class="item"
v-entrance-transition="70 + index * 30" v-entrance-transition="{ step: 30 }"
> >
<customer-cell <customer-cell
class="cell" class="cell"
+1 -1
View File
@@ -83,7 +83,7 @@
</t-cell-group> </t-cell-group>
<t-cell-group class="items" theme="card"> <t-cell-group class="items" theme="card">
<t-swipe-cell <t-swipe-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in pageResult.list" v-for="(item, index) in pageResult.list"
:key="item.id || item.code || index" :key="item.id || item.code || index"
class="item" class="item"
+4 -4
View File
@@ -32,11 +32,11 @@
/> />
</t-form-item> </t-form-item>
</t-form> </t-form>
<t-cell-group theme="card" v-entrance-transition="70"> <t-cell-group theme="card" v-entrance-transition>
<t-cell title="最终起始编码" :note="finalStartCode" /> <t-cell title="最终起始编码" :note="finalStartCode" />
<t-cell title="最终结束编码" :note="finalEndCode" /> <t-cell title="最终结束编码" :note="finalEndCode" />
</t-cell-group> </t-cell-group>
<div class="actions" v-entrance-transition="140"> <div class="actions" v-entrance-transition>
<t-button <t-button
class="bg-white" class="bg-white"
theme="primary" theme="primary"
@@ -54,8 +54,8 @@
<span v-text="downloadText" /> <span v-text="downloadText" />
</t-button> </t-button>
</div> </div>
<div class="actions orange tips" v-entrance-transition="140">微信内可能无法发起打印或批量下载,建议使用默认浏览器打开</div> <div class="actions orange tips" v-entrance-transition>微信内可能无法发起打印或批量下载,建议使用默认浏览器打开</div>
<section class="preview" v-entrance-transition="210"> <section class="preview" v-entrance-transition>
<div class="header"> <div class="header">
<h2 class="title">预览</h2> <h2 class="title">预览</h2>
<p class="tips" v-text="previewSummary" /> <p class="tips" v-text="previewSummary" />
+4 -4
View File
@@ -13,7 +13,7 @@
<div class="description" v-text="Text.display(event.description)" /> <div class="description" v-text="Text.display(event.description)" />
</div> </div>
</div> </div>
<t-cell-group v-entrance-transition="70" v-if="event" title="基本信息" theme="card"> <t-cell-group v-entrance-transition v-if="event" title="基本信息" theme="card">
<t-cell title="所属门店" :note="storeName" /> <t-cell title="所属门店" :note="storeName" />
<t-cell title="业务类型" :note="getEventBizTypeText(event.bizType)" /> <t-cell title="业务类型" :note="getEventBizTypeText(event.bizType)" />
<t-cell v-if="isPackagePurchaseEvent(event)" title="绑定套餐"> <t-cell v-if="isPackagePurchaseEvent(event)" title="绑定套餐">
@@ -61,7 +61,7 @@
note="请在套餐订单列表或订单详情中查看" note="请在套餐订单列表或订单详情中查看"
/> />
</t-cell-group> </t-cell-group>
<t-cell-group v-entrance-transition="140" v-if="event" title="登记配置" theme="card"> <t-cell-group v-entrance-transition v-if="event" title="登记配置" theme="card">
<t-cell title="数值类型" :note="getValueTypeText(event.valueType)" /> <t-cell title="数值类型" :note="getValueTypeText(event.valueType)" />
<t-cell v-if="event.valueType === 'NUMBER'" title="数值单位" :note="getValueUnitText(event.valueUnit)" /> <t-cell v-if="event.valueType === 'NUMBER'" title="数值单位" :note="getValueUnitText(event.valueUnit)" />
<t-cell v-if="event.valueType === 'NUMBER'" title="登记必填数值" :note="event.requireValue ? '是' : '否'" /> <t-cell v-if="event.valueType === 'NUMBER'" title="登记必填数值" :note="event.requireValue ? '是' : '否'" />
@@ -76,7 +76,7 @@
@click="openOptionPopup" @click="openOptionPopup"
/> />
</t-cell-group> </t-cell-group>
<t-cell-group v-entrance-transition="210" v-if="event" title="生效时间" theme="card"> <t-cell-group v-entrance-transition v-if="event" title="生效时间" theme="card">
<t-cell title="起始时间" :note="formatDate(event.beginAt)" /> <t-cell title="起始时间" :note="formatDate(event.beginAt)" />
<t-cell title="终止时间" :note="formatDate(event.endAt)" /> <t-cell title="终止时间" :note="formatDate(event.endAt)" />
<t-cell title="创建时间" :note="formatDate(event.createdAt, '未知时间')" /> <t-cell title="创建时间" :note="formatDate(event.createdAt, '未知时间')" />
@@ -90,7 +90,7 @@
:loading="isRemoving" :loading="isRemoving"
:disabled="isRemoving" :disabled="isRemoving"
@click="confirmRemoveEvent" @click="confirmRemoveEvent"
v-entrance-transition="280" v-entrance-transition
content="删除事件" content="删除事件"
/> />
<t-empty v-if="!event" :description="isLoading ? '正在加载登记事件' : '登记事件不存在'" /> <t-empty v-if="!event" :description="isLoading ? '正在加载登记事件' : '登记事件不存在'" />
+1 -1
View File
@@ -123,7 +123,7 @@
</t-form-item> </t-form-item>
</t-form> </t-form>
<event-option-editor v-model="optionGroupList" /> <event-option-editor v-model="optionGroupList" />
<section class="roles" v-entrance-transition="70"> <section class="roles" v-entrance-transition>
<div class="title"> <div class="title">
<span>可登记角色</span> <span>可登记角色</span>
<span class="hint">必须至少选择一个角色,上级角色拥有子级角色可登记事件的登记权限</span> <span class="hint">必须至少选择一个角色,上级角色拥有子级角色可登记事件的登记权限</span>
+2 -2
View File
@@ -11,8 +11,8 @@
> >
<t-cell-group class="fix-last-cell-line" theme="card"> <t-cell-group class="fix-last-cell-line" theme="card">
<t-swipe-cell <t-swipe-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in visibleEventList" v-for="item in visibleEventList"
:key="item.id" :key="item.id"
class="item" class="item"
> >
+6 -6
View File
@@ -7,7 +7,7 @@
:customer="record.customer" :customer="record.customer"
@click="toCustomerDetail" @click="toCustomerDetail"
/> />
<t-cell-group v-entrance-transition="70" v-if="record" title="登记信息" theme="card"> <t-cell-group v-entrance-transition v-if="record" title="登记信息" theme="card">
<t-cell <t-cell
title="登记事件" title="登记事件"
:note="record.event?.name || '未知事件'" :note="record.event?.name || '未知事件'"
@@ -31,7 +31,7 @@
v-if="record?.verificationStatus && record.verificationStatus !== 'NOT_REQUIRED'" v-if="record?.verificationStatus && record.verificationStatus !== 'NOT_REQUIRED'"
title="核销信息" title="核销信息"
theme="card" theme="card"
v-entrance-transition="140" v-entrance-transition
> >
<t-cell title="核销状态" :note="getVerificationStatusText(record.verificationStatus)" /> <t-cell title="核销状态" :note="getVerificationStatusText(record.verificationStatus)" />
<t-cell v-if="record.verificationStatus === 'VERIFIED'" title="核销人" :note="Text.display(record.verifier?.nick || record.verifier?.name)" /> <t-cell v-if="record.verificationStatus === 'VERIFIED'" title="核销人" :note="Text.display(record.verifier?.nick || record.verifier?.name)" />
@@ -44,7 +44,7 @@
<card-container <card-container
v-if="recordOptionEvent" v-if="recordOptionEvent"
description="登记选项" description="登记选项"
v-entrance-transition="210" v-entrance-transition
> >
<event-option-selector <event-option-selector
class="option-selector" class="option-selector"
@@ -60,11 +60,11 @@
variant="text" variant="text"
:loading="isVerifying" :loading="isVerifying"
@click="confirmVerifyRecord" @click="confirmVerifyRecord"
v-entrance-transition="280" v-entrance-transition
> >
核销登记记录 核销登记记录
</t-button> </t-button>
<div v-if="record" class="photo-wrapper" v-entrance-transition="350"> <div v-if="record" class="photo-wrapper" v-entrance-transition>
<media-selector <media-selector
:model-value="recordPhotoList" :model-value="recordPhotoList"
:photo-items="recordPhotoItemList" :photo-items="recordPhotoItemList"
@@ -82,7 +82,7 @@
:loading="isDeleting" :loading="isDeleting"
:disabled="isDeleting" :disabled="isDeleting"
@click="confirmRemoveRecord" @click="confirmRemoveRecord"
v-entrance-transition="420" v-entrance-transition
content="删除登记记录" content="删除登记记录"
/> />
<t-empty v-if="!record" :description="isLoading ? '正在加载登记事件记录' : '登记事件记录不存在'" /> <t-empty v-if="!record" :description="isLoading ? '正在加载登记事件记录' : '登记事件记录不存在'" />
+2 -2
View File
@@ -91,8 +91,8 @@
theme="card" theme="card"
> >
<event-record-cell <event-record-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in pageResult.list" v-for="item in pageResult.list"
:key="item.id" :key="item.id"
:record="item" :record="item"
@updated="reloadRecords" @updated="reloadRecords"
+1 -1
View File
@@ -48,7 +48,7 @@
theme="card" theme="card"
> >
<customer-cell <customer-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in pageResult.list" v-for="(item, index) in pageResult.list"
:key="item.customerId" :key="item.customerId"
class="item" class="item"
+2 -2
View File
@@ -16,11 +16,11 @@
@change="handleSortChange" @change="handleSortChange"
> >
<t-cell <t-cell
v-for="(element, index) in eventList" v-for="element in eventList"
:key="element.id" :key="element.id"
class="cell" class="cell"
:title="element.name || '未命名事件'" :title="element.name || '未命名事件'"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
> >
<template #leftIcon> <template #leftIcon>
<div class="color" :style="{ background: element.color || defaultColor }" /> <div class="color" :style="{ background: element.color || defaultColor }" />
@@ -8,7 +8,7 @@
v-entrance-transition v-entrance-transition
@click="toCustomer" @click="toCustomer"
/> />
<t-cell-group title="提醒信息" theme="card" v-entrance-transition="70"> <t-cell-group title="提醒信息" theme="card" v-entrance-transition>
<t-cell title="业务状态"> <t-cell title="业务状态">
<template #note> <template #note>
<t-tag size="small" :theme="getStatusTheme(detail.status)" :content="getStatusText(detail.status)" /> <t-tag size="small" :theme="getStatusTheme(detail.status)" :content="getStatusText(detail.status)" />
@@ -22,7 +22,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group title="跟进内容" theme="card" v-entrance-transition="140"> <t-cell-group title="跟进内容" theme="card" v-entrance-transition>
<div class="content bg-white" v-text="detail.content || '未填写跟进内容'" /> <div class="content bg-white" v-text="detail.content || '未填写跟进内容'" />
<div class="media-wrap bg-white"> <div class="media-wrap bg-white">
<media-selector <media-selector
@@ -36,7 +36,7 @@
/> />
</div> </div>
</t-cell-group> </t-cell-group>
<t-cell-group title="通知方式" theme="card" v-entrance-transition="210"> <t-cell-group title="通知方式" theme="card" v-entrance-transition>
<t-cell v-if="hasChannel('INTERNAL')" title="站内通知"> <t-cell v-if="hasChannel('INTERNAL')" title="站内通知">
<template #note> <template #note>
<t-tag <t-tag
@@ -60,7 +60,7 @@
<t-cell v-if="!detail.notifyChannelList?.length" title="通知方式" note="不发送通知" /> <t-cell v-if="!detail.notifyChannelList?.length" title="通知方式" note="不发送通知" />
<div class="tips gray bg-white" v-text="'站内通知在提醒时间后生效;短信按提醒日期在 08:00 聚合发送。通知状态仅作辅助展示,不代表跟进提醒业务状态。'" /> <div class="tips gray bg-white" v-text="'站内通知在提醒时间后生效;短信按提醒日期在 08:00 聚合发送。通知状态仅作辅助展示,不代表跟进提醒业务状态。'" />
</t-cell-group> </t-cell-group>
<div class="actions" v-entrance-transition="350"> <div class="actions" v-entrance-transition>
<t-button <t-button
v-if="canComplete && detail.status === 'PENDING'" v-if="canComplete && detail.status === 'PENDING'"
theme="primary" theme="primary"
@@ -60,7 +60,7 @@
class="item" class="item"
> >
<t-cell <t-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
class="cell" class="cell"
arrow arrow
@click="toDetail(item)" @click="toDetail(item)"
@@ -25,7 +25,7 @@
/> />
</div> </div>
</t-cell-group> </t-cell-group>
<t-cell-group class="items" title="履约明细" theme="card" v-entrance-transition="70"> <t-cell-group class="items" title="履约明细" theme="card" v-entrance-transition>
<t-cell <t-cell
class="item" class="item"
v-for="item in fulfillment.itemList || []" v-for="item in fulfillment.itemList || []"
@@ -66,7 +66,7 @@
<section <section
v-if="stockPreviewVisible && (stockPreviewLoading || stockPreviewList.length)" v-if="stockPreviewVisible && (stockPreviewLoading || stockPreviewList.length)"
class="stock-preview" class="stock-preview"
v-entrance-transition="105" v-entrance-transition
> >
<div class="title">库存预览</div> <div class="title">库存预览</div>
<t-loading v-if="stockPreviewLoading" size="1.5rem" text="加载中" /> <t-loading v-if="stockPreviewLoading" size="1.5rem" text="加载中" />
@@ -75,7 +75,7 @@
<section <section
v-if="(!isOrderCancelled && isWaitingStock && (canVerify || canCreate)) || (!isOrderCancelled && isPending && (canVerify || canCreate)) || (isVerified && canRevoke)" v-if="(!isOrderCancelled && isWaitingStock && (canVerify || canCreate)) || (!isOrderCancelled && isPending && (canVerify || canCreate)) || (isVerified && canRevoke)"
class="actions" class="actions"
v-entrance-transition="140" v-entrance-transition
> >
<t-button <t-button
v-if="!isOrderCancelled && isWaitingStock && canVerify" v-if="!isOrderCancelled && isWaitingStock && canVerify"
@@ -104,11 +104,11 @@
</t-cell-group> </t-cell-group>
<div v-if="list.length" class="items"> <div v-if="list.length" class="items">
<order-fulfillment-list-cell <order-fulfillment-list-cell
v-for="(item, index) in list" v-for="item in list"
:key="item.id" :key="item.id"
class="item" class="item"
:fulfillment="item" :fulfillment="item"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@detail="toDetail(item)" @detail="toDetail(item)"
/> />
</div> </div>
+1 -1
View File
@@ -45,7 +45,7 @@
theme="primary" theme="primary"
:disabled="!canSubmitRegister" :disabled="!canSubmitRegister"
:loading="submitting" :loading="submitting"
v-entrance-transition="70" v-entrance-transition
@click="doSubmit()" @click="doSubmit()"
>登记</t-button> >登记</t-button>
<customer-profile-card <customer-profile-card
+2 -2
View File
@@ -21,7 +21,7 @@
variant="text" variant="text"
block block
:loading="isCanceling" :loading="isCanceling"
v-entrance-transition="70" v-entrance-transition
@click="confirmCancel" @click="confirmCancel"
content="取消发送" content="取消发送"
/> />
@@ -31,7 +31,7 @@
:subject="getSubject(detail)" :subject="getSubject(detail)"
:time="getSendTime(mainDetail)" :time="getSendTime(mainDetail)"
:resolve-attachment-url="resolveAttachmentUrl" :resolve-attachment-url="resolveAttachmentUrl"
v-entrance-transition="140" v-entrance-transition
/> />
</template> </template>
</div> </div>
+2 -2
View File
@@ -12,10 +12,10 @@
theme="card" theme="card"
> >
<t-swipe-cell <t-swipe-cell
v-for="(item, index) in pageResult.list" v-for="item in pageResult.list"
:key="item.id" :key="item.id"
class="item" class="item"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
> >
<t-cell arrow @click="toDetail(item)"> <t-cell arrow @click="toDetail(item)">
<template #leftIcon> <template #leftIcon>
+3 -3
View File
@@ -10,9 +10,9 @@
/> />
<t-cell-group v-if="filteredDetailList.length" theme="card" class="recipients"> <t-cell-group v-if="filteredDetailList.length" theme="card" class="recipients">
<t-cell <t-cell
v-for="(item, index) in filteredDetailList" v-for="item in filteredDetailList"
:key="item.id" :key="item.id"
v-entrance-transition="index * 70" v-entrance-transition="{ step: 30 }"
> >
<template #title> <template #title>
<div class="recipient-title"> <div class="recipient-title">
@@ -41,7 +41,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-empty v-else description="暂无匹配的接收用户" v-entrance-transition="70" /> <t-empty v-else description="暂无匹配的接收用户" v-entrance-transition />
</template> </template>
<t-empty <t-empty
v-else v-else
+2 -2
View File
@@ -16,10 +16,10 @@
> >
<t-cell-group v-if="pageResult.list.length" class="items fix-last-cell-line" theme="card"> <t-cell-group v-if="pageResult.list.length" class="items fix-last-cell-line" theme="card">
<t-swipe-cell <t-swipe-cell
v-for="(item, index) in pageResult.list" v-for="item in pageResult.list"
:key="item.id" :key="item.id"
class="item" class="item"
v-entrance-transition="70 + index * 30" v-entrance-transition="{ step: 30 }"
> >
<t-cell arrow hover @click="toDetail(item)"> <t-cell arrow hover @click="toDetail(item)">
<template #leftIcon> <template #leftIcon>
+3 -3
View File
@@ -20,20 +20,20 @@
</div> </div>
</div> </div>
</section> </section>
<t-cell-group v-if="canReadSalesOrder" theme="card" v-entrance-transition="35"> <t-cell-group v-if="canReadSalesOrder" theme="card" v-entrance-transition>
<t-cell title="套餐订单列表" arrow @click="toPackageOrderList"> <t-cell title="套餐订单列表" arrow @click="toPackageOrderList">
<template #left-icon> <template #left-icon>
<t-icon name="gift" /> <t-icon name="gift" />
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group title="基本信息" theme="card" v-entrance-transition="70"> <t-cell-group title="基本信息" theme="card" v-entrance-transition>
<t-cell title="标准价" :note="formatPackageAmount(config.standardAmount)" /> <t-cell title="标准价" :note="formatPackageAmount(config.standardAmount)" />
<t-cell title="起始日期" :note="config.beginAt ? Time.toDateTime(config.beginAt) : '不限'" /> <t-cell title="起始日期" :note="config.beginAt ? Time.toDateTime(config.beginAt) : '不限'" />
<t-cell title="终止日期" :note="config.endAt ? Time.toDateTime(config.endAt) : '不限'" /> <t-cell title="终止日期" :note="config.endAt ? Time.toDateTime(config.endAt) : '不限'" />
<t-cell title="最后修改人" :note="config.updater?.nick || config.updater?.name || '未知'" /> <t-cell title="最后修改人" :note="config.updater?.nick || config.updater?.name || '未知'" />
</t-cell-group> </t-cell-group>
<t-cell-group class="product" title="产品权益" theme="card" v-entrance-transition="140"> <t-cell-group class="product" title="产品权益" theme="card" v-entrance-transition>
<t-cell <t-cell
class="item" class="item"
v-for="item in config.itemList || []" v-for="item in config.itemList || []"
+1 -1
View File
@@ -23,7 +23,7 @@
<card-container <card-container
title="产品权益" title="产品权益"
description="至少一项,配额最多三位小数" description="至少一项,配额最多三位小数"
v-entrance-transition="70" v-entrance-transition
> >
<div class="items"> <div class="items">
<t-form <t-form
+2 -2
View File
@@ -30,9 +30,9 @@
> >
<t-cell <t-cell
class="item" class="item"
v-for="(item, index) in configList" v-for="item in configList"
:key="item.id" :key="item.id"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
> >
<template #title> <template #title>
<div class="title"> <div class="title">
+2 -2
View File
@@ -29,11 +29,11 @@
theme="card" theme="card"
> >
<t-cell <t-cell
v-for="(item, index) in configList" v-for="item in configList"
:key="item.id" :key="item.id"
class="item" class="item"
arrow arrow
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="selectConfig(item)" @click="selectConfig(item)"
> >
<template #title> <template #title>
+2 -2
View File
@@ -17,8 +17,8 @@
</t-cell-group> </t-cell-group>
<t-cell-group v-if="sortedPermissions.length" theme="card"> <t-cell-group v-if="sortedPermissions.length" theme="card">
<t-swipe-cell <t-swipe-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in sortedPermissions" v-for="item in sortedPermissions"
:key="item.id" :key="item.id"
class="item" class="item"
> >
+3 -3
View File
@@ -57,14 +57,14 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group v-entrance-transition="70" title="当前角色结构" theme="card"> <t-cell-group v-entrance-transition title="当前角色结构" theme="card">
<t-cell <t-cell
v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }" v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }"
v-for="(item, index) in visibleRoleTree" v-for="item in visibleRoleTree"
:key="item.id" :key="item.id"
:arrow="canAssignRole(item)" :arrow="canAssignRole(item)"
:hover="canAssignRole(item)" :hover="canAssignRole(item)"
v-entrance-transition="70 + index * 30" v-entrance-transition="{ step: 30 }"
@click="canAssignRole(item) && toAssign(item.id)" @click="canAssignRole(item) && toAssign(item.id)"
> >
<template #title> <template #title>
@@ -20,8 +20,8 @@
theme="card" theme="card"
> >
<t-cell <t-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in grantablePermissionList" v-for="item in grantablePermissionList"
:key="item.id" :key="item.id"
:title="item.name || item.code" :title="item.name || item.code"
> >
+2 -2
View File
@@ -28,7 +28,7 @@
<div class="picker-text" v-text="selectedChildRoleName" /> <div class="picker-text" v-text="selectedChildRoleName" />
</t-form-item> </t-form-item>
</t-form> </t-form>
<t-cell-group v-entrance-transition="70" v-if="!isCreateMode && canManageRole" title="权限授权" theme="card"> <t-cell-group v-entrance-transition v-if="!isCreateMode && canManageRole" title="权限授权" theme="card">
<t-cell <t-cell
v-can="rolePermissionReadAccess" v-can="rolePermissionReadAccess"
title="直接授权权限 P" title="直接授权权限 P"
@@ -50,7 +50,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<card-container v-entrance-transition="140" v-if="aggregatePermissionList.length" title="聚合权限 P"> <card-container v-entrance-transition v-if="aggregatePermissionList.length" title="聚合权限 P">
<template #description> <template #description>
<div>该角色拥有以下权限,可执行权限对应的功能,这些权限来自上级角色直接授权或子角色继承。</div> <div>该角色拥有以下权限,可执行权限对应的功能,这些权限来自上级角色直接授权或子角色继承。</div>
<permission-legend /> <permission-legend />
+2 -2
View File
@@ -8,8 +8,8 @@
> >
<t-cell-group v-if="sortedRoles.length" theme="card"> <t-cell-group v-if="sortedRoles.length" theme="card">
<t-swipe-cell <t-swipe-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in sortedRoles" v-for="item in sortedRoles"
:key="item.id" :key="item.id"
class="item" class="item"
> >
@@ -25,8 +25,8 @@
theme="card" theme="card"
> >
<t-cell <t-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in grantablePermissionList" v-for="item in grantablePermissionList"
:key="item.id" :key="item.id"
:class="{ inherited: isPermissionInherited(item.id) }" :class="{ inherited: isPermissionInherited(item.id) }"
:title="item.name" :title="item.name"
+3 -3
View File
@@ -3,7 +3,7 @@
<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" />
</card-container> </card-container>
<section v-if="account" class="account-card" v-entrance-transition="70"> <section v-if="account" class="account-card" v-entrance-transition>
<div class="header"> <div class="header">
<div>积分卡</div> <div>积分卡</div>
<div class="time dark-white" v-text="formatTimestamp(account.createdAt!)" /> <div class="time dark-white" v-text="formatTimestamp(account.createdAt!)" />
@@ -14,13 +14,13 @@
</div> </div>
<div class="id" v-text="account.id?.toUpperCase()" /> <div class="id" v-text="account.id?.toUpperCase()" />
</section> </section>
<t-cell-group v-if="account" title="积分统计" theme="card" v-entrance-transition="140"> <t-cell-group v-if="account" title="积分统计" theme="card" v-entrance-transition>
<t-cell title="累计获得" :note="formatPoints(account.totalEarned)" /> <t-cell title="累计获得" :note="formatPoints(account.totalEarned)" />
<t-cell title="累计消耗" :note="formatPoints(account.totalConsumed)" /> <t-cell title="累计消耗" :note="formatPoints(account.totalConsumed)" />
<t-cell title="累计撤销" :note="formatPoints(account.totalRevoked)" /> <t-cell title="累计撤销" :note="formatPoints(account.totalRevoked)" />
<t-cell title="人工调整" :note="formatSignedPoints(account.totalAdjusted)" /> <t-cell title="人工调整" :note="formatSignedPoints(account.totalAdjusted)" />
</t-cell-group> </t-cell-group>
<section v-if="customer" class="actions" v-entrance-transition="210"> <section v-if="customer" class="actions" v-entrance-transition>
<t-button <t-button
v-can="permissionCodes.point.ledgerRead" v-can="permissionCodes.point.ledgerRead"
class="bg-white" class="bg-white"
+2 -2
View File
@@ -27,8 +27,8 @@
<div class="list-wrap"> <div class="list-wrap">
<t-cell-group v-if="pageResult.list.length" class="list" theme="card"> <t-cell-group v-if="pageResult.list.length" class="list" theme="card">
<customer-cell <customer-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in pageResult.list" v-for="item in pageResult.list"
:key="item.id" :key="item.id"
:customer="item.customer" :customer="item.customer"
class="item" class="item"
+1 -1
View File
@@ -49,7 +49,7 @@
:loading="isSaving" :loading="isSaving"
:disabled="!canSubmit" :disabled="!canSubmit"
block block
v-entrance-transition="70" v-entrance-transition
@click="submitAdjust" @click="submitAdjust"
> >
提交调整 提交调整
+5 -5
View File
@@ -9,12 +9,12 @@
<t-cell-group <t-cell-group
v-if="ledger?.accountId && canReadPointAccount" v-if="ledger?.accountId && canReadPointAccount"
theme="card" theme="card"
v-entrance-transition="70" v-entrance-transition
> >
<t-cell title="积分账户" arrow @click="toPointAccount" /> <t-cell title="积分账户" arrow @click="toPointAccount" />
</t-cell-group> </t-cell-group>
<template v-if="ledger"> <template v-if="ledger">
<t-cell-group title="积分流水" theme="card" v-entrance-transition="140"> <t-cell-group title="积分流水" theme="card" v-entrance-transition>
<t-cell title="流水类型"> <t-cell title="流水类型">
<template #note> <template #note>
<t-tag <t-tag
@@ -33,7 +33,7 @@
</t-cell> </t-cell>
<t-cell title="流水备注" :note="Text.display(ledger.remark)" /> <t-cell title="流水备注" :note="Text.display(ledger.remark)" />
</t-cell-group> </t-cell-group>
<t-cell-group title="触发事件" theme="card" v-entrance-transition="210"> <t-cell-group title="触发事件" theme="card" v-entrance-transition>
<template v-if="triggerEvent"> <template v-if="triggerEvent">
<t-cell title="事件名称" :note="triggerEvent.name || '未命名事件'" /> <t-cell title="事件名称" :note="triggerEvent.name || '未命名事件'" />
<t-cell title="事件类型" :note="getEventValueTypeText(triggerEvent)" /> <t-cell title="事件类型" :note="getEventValueTypeText(triggerEvent)" />
@@ -42,7 +42,7 @@
</template> </template>
<div v-else class="empty" v-text="getEventEmptyText()" /> <div v-else class="empty" v-text="getEventEmptyText()" />
</t-cell-group> </t-cell-group>
<t-cell-group title="事件记录" theme="card" v-entrance-transition="280"> <t-cell-group title="事件记录" theme="card" v-entrance-transition>
<template v-if="eventRecord"> <template v-if="eventRecord">
<t-cell title="登记事件" :note="eventRecord.event?.name || triggerEvent?.name || '未知事件'" /> <t-cell title="登记事件" :note="eventRecord.event?.name || triggerEvent?.name || '未知事件'" />
<t-cell title="登记时间"> <t-cell title="登记时间">
@@ -59,7 +59,7 @@
</template> </template>
<div v-else class="empty" v-text="getRecordEmptyText()" /> <div v-else class="empty" v-text="getRecordEmptyText()" />
</t-cell-group> </t-cell-group>
<t-cell-group title="命中规则" theme="card" v-entrance-transition="350"> <t-cell-group title="命中规则" theme="card" v-entrance-transition>
<template v-if="hitRule"> <template v-if="hitRule">
<t-cell title="规则名称" :note="hitRule.name || '未命名规则'" /> <t-cell title="规则名称" :note="hitRule.name || '未命名规则'" />
<t-cell title="规则模式" :note="hitRule.ruleMode === 'GROOVY' ? '脚本规则' : '简单规则'" /> <t-cell title="规则模式" :note="hitRule.ruleMode === 'GROOVY' ? '脚本规则' : '简单规则'" />
+2 -2
View File
@@ -62,8 +62,8 @@
</t-cell-group> </t-cell-group>
<t-cell-group v-if="pageResult.list.length" class="list" theme="card"> <t-cell-group v-if="pageResult.list.length" class="list" theme="card">
<t-cell <t-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in pageResult.list" v-for="item in pageResult.list"
:key="item.id" :key="item.id"
class="item" class="item"
:arrow="!!item.id" :arrow="!!item.id"
+1 -1
View File
@@ -39,7 +39,7 @@
v-if="form.id" v-if="form.id"
class="cell-button" class="cell-button"
theme="danger" theme="danger"
v-entrance-transition="70" v-entrance-transition
content="删除" content="删除"
@click="remove" @click="remove"
/> />
+2 -2
View File
@@ -13,11 +13,11 @@
<t-pull-down-refresh v-model="isRefreshing" :refresh-timeout="30000" @refresh="reload" @scrolltolower="load"> <t-pull-down-refresh v-model="isRefreshing" :refresh-timeout="30000" @refresh="reload" @scrolltolower="load">
<t-cell-group v-if="result.list.length" theme="card"> <t-cell-group v-if="result.list.length" theme="card">
<t-cell <t-cell
v-for="(item, index) in result.list" v-for="item in result.list"
:key="item.id" :key="item.id"
class="item" class="item"
arrow arrow
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="toEdit(item)" @click="toEdit(item)"
> >
<template #left-icon> <template #left-icon>
+3 -3
View File
@@ -6,7 +6,7 @@
:customer="customer" :customer="customer"
v-entrance-transition v-entrance-transition
/> />
<t-cell-group v-if="item" title="兑换信息" theme="card" v-entrance-transition="70"> <t-cell-group v-if="item" title="兑换信息" theme="card" v-entrance-transition>
<t-cell title="客户" :note="item.customer?.name || item.customerId || '-'" /> <t-cell title="客户" :note="item.customer?.name || item.customerId || '-'" />
<t-cell title="兑换商品" :note="item.productNameSnapshot || item.skuNameSnapshot || '-'" /> <t-cell title="兑换商品" :note="item.productNameSnapshot || item.skuNameSnapshot || '-'" />
<t-cell title="兑换数量" :note="`${quantityText(item.quantity)} ${item.unitSnapshot || ''}`" /> <t-cell title="兑换数量" :note="`${quantityText(item.quantity)} ${item.unitSnapshot || ''}`" />
@@ -24,7 +24,7 @@
/> />
</div> </div>
</t-cell-group> </t-cell-group>
<t-cell-group v-if="returnList.length" title="退货记录" theme="card" v-entrance-transition="140"> <t-cell-group v-if="returnList.length" title="退货记录" theme="card" v-entrance-transition>
<t-cell <t-cell
v-for="record in returnList" v-for="record in returnList"
:key="record.id" :key="record.id"
@@ -38,7 +38,7 @@
class="return-button cell-button" class="return-button cell-button"
theme="danger" theme="danger"
content="冲正兑换" content="冲正兑换"
v-entrance-transition="140" v-entrance-transition
@click="returnVisible = true" @click="returnVisible = true"
/> />
</div> </div>
+2 -2
View File
@@ -67,11 +67,11 @@
<div v-if="result.list.length" class="items"> <div v-if="result.list.length" class="items">
<t-cell-group theme="card"> <t-cell-group theme="card">
<t-cell <t-cell
v-for="(item, index) in result.list" v-for="item in result.list"
:key="item.id" :key="item.id"
class="item" class="item"
arrow arrow
v-entrance-transition="70 + index * 30" v-entrance-transition="{ step: 30 }"
@click="toDetail(item)" @click="toDetail(item)"
> >
<template #left-icon> <template #left-icon>
+3 -3
View File
@@ -12,7 +12,7 @@
<div class="point-value" v-text="rulePointText" /> <div class="point-value" v-text="rulePointText" />
</div> </div>
</section> </section>
<t-cell-group v-if="rule" title="基本信息" theme="card" v-entrance-transition="70"> <t-cell-group v-if="rule" title="基本信息" theme="card" v-entrance-transition>
<t-cell <t-cell
v-if="rule.triggerSourceType === 'EVENT_RECORD'" v-if="rule.triggerSourceType === 'EVENT_RECORD'"
title="触发事件" title="触发事件"
@@ -35,7 +35,7 @@
class="script" class="script"
title="积分配置" title="积分配置"
theme="card" theme="card"
v-entrance-transition="140" v-entrance-transition
> >
<t-cell title="规则模式" :note="rule.ruleMode === 'GROOVY' ? '脚本规则' : '简单规则'" /> <t-cell title="规则模式" :note="rule.ruleMode === 'GROOVY' ? '脚本规则' : '简单规则'" />
<t-cell v-if="rule.ruleMode !== 'GROOVY'" title="固定积分" :note="formatPointValue(rule.pointValue)" /> <t-cell v-if="rule.ruleMode !== 'GROOVY'" title="固定积分" :note="formatPointValue(rule.pointValue)" />
@@ -67,7 +67,7 @@
</t-cell> </t-cell>
</template> </template>
</t-cell-group> </t-cell-group>
<t-cell-group v-if="rule" title="其他配置" theme="card" v-entrance-transition="280"> <t-cell-group v-if="rule" title="其他配置" theme="card" v-entrance-transition>
<t-cell title="规则优先级" :note="formatNumber(rule.priority)" /> <t-cell title="规则优先级" :note="formatNumber(rule.priority)" />
<t-cell title="命中后停止匹配" :note="rule.exclusive ? '是' : '否'" /> <t-cell title="命中后停止匹配" :note="rule.exclusive ? '是' : '否'" />
<t-cell title="生效开始" :note="formatDate(rule.beginAt)" /> <t-cell title="生效开始" :note="formatDate(rule.beginAt)" />
+3 -3
View File
@@ -19,7 +19,7 @@
<t-textarea v-model.trim="formModel.remark" :autosize="{ minRows: 3, maxRows: 5 }" placeholder="规则说明" /> <t-textarea v-model.trim="formModel.remark" :autosize="{ minRows: 3, maxRows: 5 }" placeholder="规则说明" />
</t-form-item> </t-form-item>
</card-container> </card-container>
<card-container v-entrance-transition="70"> <card-container v-entrance-transition>
<t-form-item label="规则模式" arrow @click="openRuleModePicker"> <t-form-item label="规则模式" arrow @click="openRuleModePicker">
<span class="picker-text" v-text="getRuleModeText(formModel.ruleMode)" /> <span class="picker-text" v-text="getRuleModeText(formModel.ruleMode)" />
</t-form-item> </t-form-item>
@@ -43,7 +43,7 @@
</t-form-item> </t-form-item>
</template> </template>
</card-container> </card-container>
<card-container v-entrance-transition="140"> <card-container v-entrance-transition>
<t-form-item label="生效开始" arrow @click="openBeginAtPicker"> <t-form-item label="生效开始" arrow @click="openBeginAtPicker">
<div class="time-value"> <div class="time-value">
<span class="picker-text" v-text="formModel.beginAtText || '不限'" /> <span class="picker-text" v-text="formModel.beginAtText || '不限'" />
@@ -57,7 +57,7 @@
</div> </div>
</t-form-item> </t-form-item>
</card-container> </card-container>
<card-container tips="命中规则并执行积分动作后不再匹配后续规则" v-entrance-transition="210"> <card-container tips="命中规则并执行积分动作后不再匹配后续规则" v-entrance-transition>
<t-form-item label="独占匹配" content-align="right"> <t-form-item label="独占匹配" content-align="right">
<t-switch size="small" v-model="formModel.exclusive" /> <t-switch size="small" v-model="formModel.exclusive" />
</t-form-item> </t-form-item>
+2 -2
View File
@@ -23,12 +23,12 @@
theme="card" theme="card"
> >
<t-cell <t-cell
v-for="(item, index) in pageResult.list" v-for="item in pageResult.list"
:key="item.id" :key="item.id"
class="item" class="item"
:arrow="!!item.id" :arrow="!!item.id"
:hover="!!item.id" :hover="!!item.id"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="toDetail(item)" @click="toDetail(item)"
> >
<template #left-icon> <template #left-icon>
+2 -2
View File
@@ -17,9 +17,9 @@
> >
<t-cell <t-cell
class="cell" class="cell"
v-for="(item, index) in ruleList" v-for="item in ruleList"
:key="item.id" :key="item.id"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
> >
<template #title> <template #title>
<div class="title" v-text="item.name || '未命名规则'" /> <div class="title" v-text="item.name || '未命名规则'" />
+5 -5
View File
@@ -24,30 +24,30 @@
/> />
<div class="two-columns"> <div class="two-columns">
<order-type-chart <order-type-chart
v-entrance-transition="70" v-entrance-transition
:list="typeList" :list="typeList"
:loading="isLoading" :loading="isLoading"
/> />
<order-payment-chart <order-payment-chart
v-entrance-transition="140" v-entrance-transition
:list="paymentList" :list="paymentList"
:loading="isLoading" :loading="isLoading"
/> />
</div> </div>
<div class="two-columns"> <div class="two-columns">
<order-status-chart <order-status-chart
v-entrance-transition="210" v-entrance-transition
:list="statusList" :list="statusList"
:loading="isLoading" :loading="isLoading"
/> />
<customer-order-rank-chart <customer-order-rank-chart
v-entrance-transition="280" v-entrance-transition
:list="customerRankList" :list="customerRankList"
:loading="isLoading" :loading="isLoading"
/> />
</div> </div>
<order-receivable-card <order-receivable-card
v-entrance-transition="350" v-entrance-transition
:receivable="receivable" :receivable="receivable"
/> />
</div> </div>
+1 -1
View File
@@ -19,7 +19,7 @@
</div> </div>
<t-pull-down-refresh v-model="isRefreshing" :refresh-timeout="30000" @refresh="refresh" @scrolltolower="loadMore"> <t-pull-down-refresh v-model="isRefreshing" :refresh-timeout="30000" @refresh="refresh" @scrolltolower="loadMore">
<t-cell-group v-if="categoryList.length" theme="card" class="list fix-last-cell-line"> <t-cell-group v-if="categoryList.length" theme="card" class="list fix-last-cell-line">
<t-swipe-cell v-for="(item, index) in categoryList" :key="item.id" class="item" v-entrance-transition="index * 30"> <t-swipe-cell v-for="item in categoryList" :key="item.id" class="item" v-entrance-transition="{ step: 30 }">
<t-cell arrow hover @click="openEditDialog(item)"> <t-cell arrow hover @click="openEditDialog(item)">
<template #title> <template #title>
<div class="title"> <div class="title">
+2 -2
View File
@@ -16,11 +16,11 @@
@change="handleSortChange" @change="handleSortChange"
> >
<t-cell <t-cell
v-for="(item, index) in categoryList" v-for="item in categoryList"
:key="item.id" :key="item.id"
class="cell" class="cell"
:title="item.name || '未命名分类'" :title="item.name || '未命名分类'"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
> >
<template #note> <template #note>
<t-tag <t-tag
+5 -5
View File
@@ -24,30 +24,30 @@
/> />
<div class="two-columns"> <div class="two-columns">
<product-sales-rank-chart <product-sales-rank-chart
v-entrance-transition="70" v-entrance-transition
:list="salesRankList" :list="salesRankList"
:loading="isLoading" :loading="isLoading"
/> />
<product-fulfillment-rank-chart <product-fulfillment-rank-chart
v-entrance-transition="140" v-entrance-transition
:list="fulfillmentRankList" :list="fulfillmentRankList"
:loading="isLoading" :loading="isLoading"
/> />
</div> </div>
<product-fulfillment-trend-chart <product-fulfillment-trend-chart
v-entrance-transition="210" v-entrance-transition
:date-text-list="dateTextList" :date-text-list="dateTextList"
:list="fulfillmentDailyList" :list="fulfillmentDailyList"
:loading="isLoading" :loading="isLoading"
/> />
<product-stock-movement-chart <product-stock-movement-chart
v-entrance-transition="280" v-entrance-transition
:date-text-list="dateTextList" :date-text-list="dateTextList"
:list="stockMovementList" :list="stockMovementList"
:loading="isLoading" :loading="isLoading"
/> />
<product-stock-health-table <product-stock-health-table
v-entrance-transition="350" v-entrance-transition
:list="stockHealthList" :list="stockHealthList"
:sku-health-list="skuHealthList" :sku-health-list="skuHealthList"
:loading="isLoading" :loading="isLoading"
+3 -3
View File
@@ -3,7 +3,7 @@
<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">
<product-profile :product="product" v-entrance-transition /> <product-profile :product="product" v-entrance-transition />
<t-cell-group title="基本信息" theme="card" v-entrance-transition="70"> <t-cell-group title="基本信息" theme="card" v-entrance-transition>
<t-cell title="产品分类" :note="product.category?.name || '未分类'" /> <t-cell title="产品分类" :note="product.category?.name || '未分类'" />
<t-cell title="库存管理" :note="product.stockEnabled ? '启用' : '关闭'" /> <t-cell title="库存管理" :note="product.stockEnabled ? '启用' : '关闭'" />
<t-cell title="状态" :note="getProductStatusText(product.status)" /> <t-cell title="状态" :note="getProductStatusText(product.status)" />
@@ -19,7 +19,7 @@
/> />
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group theme="card" v-entrance-transition="140"> <t-cell-group theme="card" v-entrance-transition>
<t-cell <t-cell
v-if="product.stockEnabled && userStore.hasPermissions(permissionCodes.productStock.read)" v-if="product.stockEnabled && userStore.hasPermissions(permissionCodes.productStock.read)"
title="库存" title="库存"
@@ -28,7 +28,7 @@
@click="viewStock" @click="viewStock"
/> />
</t-cell-group> </t-cell-group>
<t-cell-group title="SKU 列表" theme="card" class="skus" v-entrance-transition="210"> <t-cell-group title="SKU 列表" theme="card" class="skus" v-entrance-transition>
<t-cell <t-cell
class="sku" class="sku"
v-for="sku in product.skuList || []" v-for="sku in product.skuList || []"
+2 -2
View File
@@ -57,7 +57,7 @@
</t-form-item> </t-form-item>
</t-form> </t-form>
<card-container title="产品规格" description="无多规格产品无需配置规格;有规格时每条 SKU 明细必须覆盖全部规格项" v-entrance-transition="70"> <card-container title="产品规格" description="无多规格产品无需配置规格;有规格时每条 SKU 明细必须覆盖全部规格项" v-entrance-transition>
<div class="spec-list"> <div class="spec-list">
<t-form v-for="(spec, specIndex) in form.specList" :key="spec.clientKey" class="form spec"> <t-form v-for="(spec, specIndex) in form.specList" :key="spec.clientKey" class="form spec">
<t-form-item label="名称" label-width="2.5rem"> <t-form-item label="名称" label-width="2.5rem">
@@ -123,7 +123,7 @@
class="sku-wrap" class="sku-wrap"
title="SKU 明细" title="SKU 明细"
description="每条 SKU 明细都是独立的销售、库存和履约单元;生成后可移除不需要的组合,点列表项配置具体内容" description="每条 SKU 明细都是独立的销售、库存和履约单元;生成后可移除不需要的组合,点列表项配置具体内容"
v-entrance-transition="140" v-entrance-transition
> >
<div class="content-wrap"> <div class="content-wrap">
<t-cell-group theme="card"> <t-cell-group theme="card">
+1 -1
View File
@@ -40,7 +40,7 @@
class="list fix-last-cell-line empty-cell-title-margin" class="list fix-last-cell-line empty-cell-title-margin"
theme="card" theme="card"
> >
<t-cell v-for="(item, index) in productList" :key="item.id" class="item" arrow hover v-entrance-transition="index * 30" @click="toDetail(item)"> <t-cell v-for="item in productList" :key="item.id" class="item" arrow hover v-entrance-transition="{ step: 30 }" @click="toDetail(item)">
<template #leftIcon> <template #leftIcon>
<t-image <t-image
v-if="getProductPhotoURL(item)" v-if="getProductPhotoURL(item)"
@@ -1,6 +1,6 @@
<template> <template>
<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" label-width="5rem"> <t-form class="form" label-width="5rem" v-entrance-transition>
<t-form-item label="入库备注" required-mark> <t-form-item label="入库备注" required-mark>
<div class="remark-wrap"> <div class="remark-wrap">
<t-input <t-input
@@ -35,7 +35,12 @@
/> />
</t-form-item> </t-form-item>
</t-form> </t-form>
<t-form v-if="productStockBatchStore.selectedItemList.length" class="items form" label-width="0"> <t-form
v-if="productStockBatchStore.selectedItemList.length"
class="items form"
label-width="0"
v-entrance-transition
>
<t-form-item <t-form-item
v-for="item in productStockBatchStore.selectedItemList" v-for="item in productStockBatchStore.selectedItemList"
:key="item.sku.id" :key="item.sku.id"
+2 -2
View File
@@ -8,7 +8,7 @@
<t-tag :content="getStockStatusText(stock)" variant="light-outline" :theme="getStockTheme(stock)" /> <t-tag :content="getStockStatusText(stock)" variant="light-outline" :theme="getStockTheme(stock)" />
</template> </template>
</product-profile> </product-profile>
<t-cell-group theme="card" title="库存" v-entrance-transition="70"> <t-cell-group theme="card" title="库存" v-entrance-transition>
<t-cell v-if="1 < unitList.length" class="units" title="显示单位"> <t-cell v-if="1 < unitList.length" class="units" title="显示单位">
<template #note> <template #note>
<div class="options" role="group" aria-label="选择库存展示单位"> <div class="options" role="group" aria-label="选择库存展示单位">
@@ -64,7 +64,7 @@
class="actions-wrap" class="actions-wrap"
title="库存操作" title="库存操作"
description="所有操作必须选择业务单位、上传照片并填写备注" description="所有操作必须选择业务单位、上传照片并填写备注"
v-entrance-transition="140" v-entrance-transition
> >
<div class="actions"> <div class="actions">
<t-button <t-button
+2 -2
View File
@@ -20,11 +20,11 @@
<t-cell-group v-if="productList.length" theme="card" class="list fix-last-cell-line"> <t-cell-group v-if="productList.length" theme="card" class="list fix-last-cell-line">
<t-cell <t-cell
class="item" class="item"
v-for="(item, index) in productList" v-for="item in productList"
:key="item.productId" :key="item.productId"
:title="item.productName || '未命名产品'" :title="item.productName || '未命名产品'"
arrow arrow
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="toSkuList(item)" @click="toSkuList(item)"
> >
<template #leftIcon> <template #leftIcon>
@@ -5,7 +5,7 @@
<section class="snapshot-head" v-entrance-transition> <section class="snapshot-head" v-entrance-transition>
<div class="eyebrow">库存 SKU 快照</div> <div class="eyebrow">库存 SKU 快照</div>
<h2 v-text="record.productNameSnapshot || '未命名产品'" /> <h2 v-text="record.productNameSnapshot || '未命名产品'" />
<product-sku-tags <product-sku-tags
class="sku" class="sku"
:product-name="record.productNameSnapshot" :product-name="record.productNameSnapshot"
:snapshot="record.skuSpecSnapshot" :snapshot="record.skuSpecSnapshot"
@@ -17,7 +17,7 @@
<t-tag size="small" variant="light-outline" :theme="getOperationTheme(record.onHandDelta)" :content="getStockOperationText(record.operationType)" /> <t-tag size="small" variant="light-outline" :theme="getOperationTheme(record.onHandDelta)" :content="getStockOperationText(record.operationType)" />
</div> </div>
</section> </section>
<card-container description="库存变动信息"> <card-container description="库存变动信息" v-entrance-transition>
<div class="data"> <div class="data">
<div class="card"> <div class="card">
<span class="label">业务数量</span> <span class="label">业务数量</span>
@@ -37,7 +37,7 @@
</div> </div>
</div> </div>
</card-container> </card-container>
<t-cell-group title="库存快照" theme="card"> <t-cell-group title="库存快照" theme="card" v-entrance-transition>
<t-cell title="实际库存"> <t-cell title="实际库存">
<template #note> <template #note>
<span class="balance"> <span class="balance">
@@ -59,7 +59,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group title="库存流水" theme="card" v-entrance-transition="70"> <t-cell-group title="库存流水" theme="card" v-entrance-transition>
<t-cell title="操作类型" :note="getStockOperationText(record.operationType)" /> <t-cell title="操作类型" :note="getStockOperationText(record.operationType)" />
<t-cell title="业务类型" :note="getBizTypeText(record.bizType)" /> <t-cell title="业务类型" :note="getBizTypeText(record.bizType)" />
<t-cell <t-cell
@@ -99,7 +99,7 @@
class="cell-button" class="cell-button"
theme="danger" theme="danger"
@click="openManualRevoke" @click="openManualRevoke"
v-entrance-transition="140" v-entrance-transition
content="手工流水冲正" content="手工流水冲正"
/> />
</template> </template>
+1 -1
View File
@@ -79,7 +79,7 @@
class="item" class="item"
:arrow="!!record.id" :arrow="!!record.id"
:hover="!!record.id" :hover="!!record.id"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="toDetail(record)" @click="toDetail(record)"
> >
<template #leftIcon> <template #leftIcon>
+2 -2
View File
@@ -28,10 +28,10 @@
> >
<t-cell <t-cell
class="item" class="item"
v-for="(item, index) in skuStockList" v-for="item in skuStockList"
:key="item.skuId || item.id" :key="item.skuId || item.id"
arrow arrow
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="toDetail(item)" @click="toDetail(item)"
> >
<template #title> <template #title>
@@ -90,10 +90,10 @@
<t-cell-group v-if="recordList.length" class="empty-cell-title-margin" theme="card"> <t-cell-group v-if="recordList.length" class="empty-cell-title-margin" theme="card">
<t-cell <t-cell
class="item" class="item"
v-for="(item, index) in recordList" v-for="item in recordList"
:key="item.id" :key="item.id"
:arrow="canOpenSource(item)" :arrow="canOpenSource(item)"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="openSource(item)" @click="openSource(item)"
> >
<template #leftIcon> <template #leftIcon>
+4 -4
View File
@@ -12,11 +12,11 @@
<strong class="value red text-bold" v-text="formatPackageAmount(record.amount)" /> <strong class="value red text-bold" v-text="formatPackageAmount(record.amount)" />
</div> </div>
</section> </section>
<t-cell-group title="订单信息" theme="card" v-entrance-transition="70"> <t-cell-group title="订单信息" theme="card" v-entrance-transition>
<t-cell title="订单总价" :note="formatPackageAmount(record.salesOrderAmount)" /> <t-cell title="订单总价" :note="formatPackageAmount(record.salesOrderAmount)" />
<t-cell title="剩余待收款(流水快照)" :note="formatPackageAmount(record.salesOrderUnpaidAmountSnapshot)" /> <t-cell title="剩余待收款(流水快照)" :note="formatPackageAmount(record.salesOrderUnpaidAmountSnapshot)" />
</t-cell-group> </t-cell-group>
<t-cell-group title="资金记录" theme="card" v-entrance-transition="140"> <t-cell-group title="资金记录" theme="card" v-entrance-transition>
<t-cell title="操作类型" :note="getFundOperationText(record.operationType)" /> <t-cell title="操作类型" :note="getFundOperationText(record.operationType)" />
<t-cell title="状态"> <t-cell title="状态">
<template #note> <template #note>
@@ -52,7 +52,7 @@
/> />
</div> </div>
</t-cell-group> </t-cell-group>
<t-cell-group theme="card" v-entrance-transition="210"> <t-cell-group theme="card" v-entrance-transition>
<t-cell <t-cell
title="发起人" title="发起人"
:note="record.operator?.nick || record.operator?.name || '未知'" :note="record.operator?.nick || record.operator?.name || '未知'"
@@ -75,7 +75,7 @@
<section <section
v-if="isPendingReceive || canRevoke" v-if="isPendingReceive || canRevoke"
class="actions" class="actions"
v-entrance-transition="280" v-entrance-transition
> >
<div class="pair"> <div class="pair">
<t-button <t-button
+2 -2
View File
@@ -71,10 +71,10 @@
<t-cell-group v-if="recordList.length" class="empty-cell-title-margin" theme="card"> <t-cell-group v-if="recordList.length" class="empty-cell-title-margin" theme="card">
<t-cell <t-cell
class="item" class="item"
v-for="(item, index) in recordList" v-for="item in recordList"
:key="item.id" :key="item.id"
arrow arrow
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="toDetail(item)" @click="toDetail(item)"
> >
<template #leftIcon> <template #leftIcon>
+1 -1
View File
@@ -14,7 +14,7 @@
@click="toSalesOrder" @click="toSalesOrder"
/> />
</t-cell-group> </t-cell-group>
<t-form v-if="record" class="form" v-entrance-transition="70"> <t-form v-if="record" class="form" v-entrance-transition>
<t-form-item label="冲正原因" required-mark> <t-form-item label="冲正原因" required-mark>
<div class="reason"> <div class="reason">
<t-textarea <t-textarea
+1 -1
View File
@@ -19,7 +19,7 @@
v-if="order" v-if="order"
class="form" class="form"
label-width="6rem" label-width="6rem"
v-entrance-transition="70" v-entrance-transition
> >
<t-form-item label="取消原因" required-mark> <t-form-item label="取消原因" required-mark>
<div class="reason"> <div class="reason">
+5 -5
View File
@@ -2,7 +2,7 @@
<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 v-if="order.customer" class="customer" :customer="order.customer" v-entrance-transition /> <customer-profile-card v-if="order.customer" class="customer" :customer="order.customer" v-entrance-transition />
<section class="hero" v-entrance-transition="35"> <section class="hero" v-entrance-transition>
<div class="header"> <div class="header">
<span class="eyebrow">销售订单</span> <span class="eyebrow">销售订单</span>
<div class="tags"> <div class="tags">
@@ -19,7 +19,7 @@
</div> </div>
</div> </div>
</section> </section>
<t-form class="info" title="订单信息" @submit="saveEdit" v-entrance-transition="70"> <t-form class="info" title="订单信息" @submit="saveEdit" v-entrance-transition>
<t-form-item v-if="order.sourceEventRecord?.id" label="来源登记记录" arrow @click="toEventRecord"> <t-form-item v-if="order.sourceEventRecord?.id" label="来源登记记录" arrow @click="toEventRecord">
<span>查看来源记录</span> <span>查看来源记录</span>
</t-form-item> </t-form-item>
@@ -28,7 +28,7 @@
<span v-else v-text="Text.display(order.remark)" /> <span v-else v-text="Text.display(order.remark)" />
</t-form-item> </t-form-item>
<t-form-item label-width="0"> <t-form-item label-width="0">
<div class="photo-wrap" v-entrance-transition="105"> <div class="photo-wrap" v-entrance-transition>
<media-selector <media-selector
:model-value="photoURLList" :model-value="photoURLList"
v-model:photo-items="photoItems" v-model:photo-items="photoItems"
@@ -74,7 +74,7 @@
title="订单明细" title="订单明细"
theme="card" theme="card"
label-width="0" label-width="0"
v-entrance-transition="140" v-entrance-transition
> >
<t-form-item class="form-item" v-for="item in order.itemList" :key="item.id"> <t-form-item class="form-item" v-for="item in order.itemList" :key="item.id">
<div class="item"> <div class="item">
@@ -191,7 +191,7 @@
<t-cell title="取消人" :note="order.cancelOperator?.nick || order.cancelOperator?.name || order.cancelOperatorUserId || '未知'" /> <t-cell title="取消人" :note="order.cancelOperator?.nick || order.cancelOperator?.name || order.cancelOperatorUserId || '未知'" />
<t-cell title="取消原因" :note="order.cancelReason || '未填写'" /> <t-cell title="取消原因" :note="order.cancelReason || '未填写'" />
</t-cell-group> </t-cell-group>
<section class="actions" v-entrance-transition="280"> <section class="actions" v-entrance-transition>
<t-button <t-button
v-if="canReceive" v-if="canReceive"
theme="primary" theme="primary"
+2 -2
View File
@@ -62,7 +62,7 @@
@confirm="confirmFilter" @confirm="confirmFilter"
/> />
<sales-order-list-cell <sales-order-list-cell
v-for="(item, index) in list" v-for="item in list"
:key="item.id" :key="item.id"
class="item" class="item"
:order="item" :order="item"
@@ -71,7 +71,7 @@
:can-cancel="canCancel" :can-cancel="canCancel"
:can-refund="canRefund" :can-refund="canRefund"
:can-store-manager="canStoreManager" :can-store-manager="canStoreManager"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="toDetail(item)" @click="toDetail(item)"
@cancel="toCancel(item)" @cancel="toCancel(item)"
@receive="toPayment(item)" @receive="toPayment(item)"
+1 -1
View File
@@ -16,7 +16,7 @@
v-if="order" v-if="order"
class="form" class="form"
label-width="7rem" label-width="7rem"
v-entrance-transition="70" v-entrance-transition
> >
<t-form-item label="收款金额" required-mark> <t-form-item label="收款金额" required-mark>
<t-input <t-input
+1 -1
View File
@@ -16,7 +16,7 @@
v-if="order" v-if="order"
class="form" class="form"
label-width="6rem" label-width="6rem"
v-entrance-transition="70" v-entrance-transition
> >
<t-form-item label="退款金额" required-mark> <t-form-item label="退款金额" required-mark>
<t-input <t-input
+2 -2
View File
@@ -5,7 +5,7 @@
<h1 v-text="appName" /> <h1 v-text="appName" />
<p v-text="appDescription" /> <p v-text="appDescription" />
</section> </section>
<t-cell-group v-if="agreementItemList.length" theme="card" v-entrance-transition="70"> <t-cell-group v-if="agreementItemList.length" theme="card" v-entrance-transition>
<t-cell <t-cell
v-for="item in agreementItemList" v-for="item in agreementItemList"
:key="item.id" :key="item.id"
@@ -23,7 +23,7 @@
v-else v-else
:description="isLoading ? '正在加载协议配置' : '暂无可用协议'" :description="isLoading ? '正在加载协议配置' : '暂无可用协议'"
/> />
<footer class="footer" v-entrance-transition="140"> <footer class="footer" v-entrance-transition>
<p>技术支持:夜雨</p> <p>技术支持:夜雨</p>
<p>联系技术:imyeyu@qq.com</p> <p>联系技术:imyeyu@qq.com</p>
<p>短信服务支持:广州易保网络科技有限公司</p> <p>短信服务支持:广州易保网络科技有限公司</p>
+1 -1
View File
@@ -12,7 +12,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group title="声音" theme="card" v-entrance-transition="70"> <t-cell-group title="声音" theme="card" v-entrance-transition>
<t-cell title="扫码成功"> <t-cell title="扫码成功">
<template #right-icon> <template #right-icon>
<t-switch :model-value="settingStore.sound.scanSuccess" @change="value => handleScanSuccessChange(value === true)" /> <t-switch :model-value="settingStore.sound.scanSuccess" @change="value => handleScanSuccessChange(value === true)" />
+2 -2
View File
@@ -16,12 +16,12 @@
</div> </div>
<t-cell-group v-if="visibleItemList.length" theme="card"> <t-cell-group v-if="visibleItemList.length" theme="card">
<t-cell <t-cell
v-for="(entry, index) in visibleItemList" v-for="entry in visibleItemList"
:key="entry.path.join('-')" :key="entry.path.join('-')"
:title="entry.item.title" :title="entry.item.title"
:description="entry.description" :description="entry.description"
arrow arrow
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
@click="openItem(entry)" @click="openItem(entry)"
> >
<template #leftIcon> <template #leftIcon>
+1 -1
View File
@@ -18,7 +18,7 @@
class="calendar-card" class="calendar-card"
description="设置门店休息日,该日无任何登记记录不视为中断连续登记事件。已有登记不可设为休息,标记休息不能产生登记" description="设置门店休息日,该日无任何登记记录不视为中断连续登记事件。已有登记不可设为休息,标记休息不能产生登记"
tips="点击日期即可新增营休日" tips="点击日期即可新增营休日"
v-entrance-transition="70" v-entrance-transition
> >
<t-calendar <t-calendar
:key="calendarRenderKey" :key="calendarRenderKey"
+11 -11
View File
@@ -6,24 +6,24 @@
class="chart-mode" class="chart-mode"
block block
:options="chartModeOptions" :options="chartModeOptions"
v-entrance-transition="20" v-entrance-transition
/> />
<template v-if="chartMode === 'event'"> <template v-if="chartMode === 'event'">
<store-event-record-calendar-section v-entrance-transition="70" @list="toEventRecordList" /> <store-event-record-calendar-section v-entrance-transition @list="toEventRecordList" />
<store-event-record-trend-chart v-entrance-transition="140" :date-text-list="dateTextList" /> <store-event-record-trend-chart v-entrance-transition :date-text-list="dateTextList" />
<store-event-record-number-value-chart v-entrance-transition="210" :date-text-list="dateTextList" /> <store-event-record-number-value-chart v-entrance-transition :date-text-list="dateTextList" />
<store-event-structure-chart v-entrance-transition="280" :date-text-list="dateTextList" /> <store-event-structure-chart v-entrance-transition :date-text-list="dateTextList" />
</template> </template>
<template v-else> <template v-else>
<template v-if="chartMode === 'customer'"> <template v-if="chartMode === 'customer'">
<store-customer-growth-chart v-entrance-transition="70" :date-text-list="dateTextList" /> <store-customer-growth-chart v-entrance-transition :date-text-list="dateTextList" />
<store-customer-age-chart v-entrance-transition="140" /> <store-customer-age-chart v-entrance-transition />
<store-customer-disease-word-cloud-chart v-entrance-transition="210" /> <store-customer-disease-word-cloud-chart v-entrance-transition />
<store-customer-gender-chart v-entrance-transition="280" /> <store-customer-gender-chart v-entrance-transition />
</template> </template>
<template v-else> <template v-else>
<store-point-daily-trend-chart v-entrance-transition="70" :date-text-list="dateTextList" /> <store-point-daily-trend-chart v-entrance-transition :date-text-list="dateTextList" />
<store-point-redemption-rank-chart v-entrance-transition="140" :date-text-list="dateTextList" /> <store-point-redemption-rank-chart v-entrance-transition :date-text-list="dateTextList" />
</template> </template>
</template> </template>
</div> </div>
+2 -2
View File
@@ -20,10 +20,10 @@
:show-type-label="false" :show-type-label="false"
:show-viewer-actions="false" :show-viewer-actions="false"
title="附加照片" title="附加照片"
v-entrance-transition="140" v-entrance-transition
/> />
</div> </div>
<section class="content" v-entrance-transition="70"> <section class="content" v-entrance-transition>
<article-view <article-view
:article="article" :article="article"
empty-text="暂无日记正文" empty-text="暂无日记正文"
+2 -2
View File
@@ -18,7 +18,7 @@
placeholder="可填写本篇日记摘要" placeholder="可填写本篇日记摘要"
/> />
</t-form-item> </t-form-item>
<section class="photo-wrapper" v-entrance-transition="140"> <section class="photo-wrapper" v-entrance-transition>
<media-selector <media-selector
v-model="photoList" v-model="photoList"
v-model:photo-items="photoItemList" v-model:photo-items="photoItemList"
@@ -56,7 +56,7 @@
@change="handlePhotoSelected" @change="handlePhotoSelected"
> >
</section> </section>
<section class="editor-wrapper" v-entrance-transition="70"> <section class="editor-wrapper" v-entrance-transition>
<article-editor <article-editor
ref="articleEditorRef" ref="articleEditorRef"
:model-value="article" :model-value="article"
+1 -1
View File
@@ -34,7 +34,7 @@
v-for="(item, index) in pageResult.list" v-for="(item, index) in pageResult.list"
:key="item.id || index" :key="item.id || index"
class="item" class="item"
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
> >
<store-diary-list-item :diary="item" @select="toDetail" /> <store-diary-list-item :diary="item" @select="toDetail" />
<template v-if="canDelete" #right> <template v-if="canDelete" #right>
+2 -2
View File
@@ -20,7 +20,7 @@
<t-textarea v-model.trim="formData.remark" class="textarea" placeholder="备注" autosize borderless /> <t-textarea v-model.trim="formData.remark" class="textarea" placeholder="备注" autosize borderless />
</t-form-item> </t-form-item>
</t-form> </t-form>
<t-cell-group v-if="!isCreateMode" theme="card" v-entrance-transition="70"> <t-cell-group v-if="!isCreateMode" theme="card" v-entrance-transition>
<t-cell <t-cell
title="营业日管理" title="营业日管理"
note="配置营业或休息日期" note="配置营业或休息日期"
@@ -43,7 +43,7 @@
theme="danger" theme="danger"
:loading="isRemoving" :loading="isRemoving"
content="删除" content="删除"
v-entrance-transition="140" v-entrance-transition
@click="confirmRemoveStore" @click="confirmRemoveStore"
/> />
<store-remove-dialog <store-remove-dialog
+2 -2
View File
@@ -9,8 +9,8 @@
> >
<t-cell-group theme="card" class="fix-last-cell-line"> <t-cell-group theme="card" class="fix-last-cell-line">
<t-swipe-cell <t-swipe-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in pageResult.list" v-for="item in pageResult.list"
:key="item.id" :key="item.id"
class="item" class="item"
> >
+3 -3
View File
@@ -8,10 +8,10 @@
<h2 v-text="group.title"/> <h2 v-text="group.title"/>
<div class="items" :class="group.layout"> <div class="items" :class="group.layout">
<div <div
v-for="(item, index) in group.entryList" v-for="item in group.entryList"
:key="item.path" :key="item.path"
class="item-wrap" class="item-wrap"
v-entrance-transition="index * 70" v-entrance-transition="{ step: 30 }"
> >
<t-button <t-button
class="item" class="item"
@@ -27,7 +27,7 @@
</div> </div>
</div> </div>
</section> </section>
<div class="help-wrap" v-entrance-transition="visibleEntryCount * 70"> <div class="help-wrap" v-entrance-transition>
<t-button <t-button
class="help" class="help"
theme="primary" theme="primary"
+1 -1
View File
@@ -6,7 +6,7 @@
class="menu-group" class="menu-group"
:title="group.title" :title="group.title"
theme="card" theme="card"
v-entrance-transition="index * 70" v-entrance-transition="{ step: 30 }"
> >
<t-cell <t-cell
v-for="item in group.items" v-for="item in group.items"
+2 -2
View File
@@ -39,11 +39,11 @@
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group <t-cell-group
v-for="(group, index) in visibleMenuGroupList" v-for="group in visibleMenuGroupList"
:key="group.title" :key="group.title"
:title="group.title" :title="group.title"
theme="card" theme="card"
v-entrance-transition="index * 70" v-entrance-transition="{ step: 30 }"
> >
<t-cell <t-cell
v-for="item in group.items" v-for="item in group.items"
+2 -2
View File
@@ -17,9 +17,9 @@
> >
<div class="tag-panel"> <div class="tag-panel">
<div <div
v-entrance-transition="index * 10" v-entrance-transition="{ step: 30 }"
class="item bg-white" class="item bg-white"
v-for="(item, index) in tagList" v-for="item in tagList"
:key="item.id" :key="item.id"
@click="openEditDialog(item)" @click="openEditDialog(item)"
> >
+1 -1
View File
@@ -14,7 +14,7 @@
<logo /> <logo />
<h1>加入糕店客户管理系统</h1> <h1>加入糕店客户管理系统</h1>
</div> </div>
<p class="tips gray" v-text="expireText" v-entrance-transition="70" /> <p class="tips gray" v-text="expireText" v-entrance-transition />
<t-form class="form" label-align="left" label-width="6rem"> <t-form class="form" label-align="left" label-width="6rem">
<t-form-item label="手机号"> <t-form-item label="手机号">
<t-input v-model.trim="formModel.phoneNo" type="tel" inputmode="tel" borderless placeholder="请输入手机号" /> <t-input v-model.trim="formModel.phoneNo" type="tel" inputmode="tel" borderless placeholder="请输入手机号" />
+2 -2
View File
@@ -3,13 +3,13 @@
<section class="login-panel"> <section class="login-panel">
<div class="brand"> <div class="brand">
<logo v-entrance-transition /> <logo v-entrance-transition />
<h1 v-entrance-transition="70">糕店客户管理</h1> <h1 v-entrance-transition>糕店客户管理</h1>
</div> </div>
<t-segmented <t-segmented
class="login-type" class="login-type"
v-model="loginType" v-model="loginType"
:options="loginTypeOptions" :options="loginTypeOptions"
v-entrance-transition="140" v-entrance-transition
/> />
<password-login v-if="loginType === 'password'" class="form" :agreement-accepted="hasAgreed" /> <password-login v-if="loginType === 'password'" class="form" :agreement-accepted="hasAgreed" />
<sms-login v-else class="form" :agreement-accepted="hasAgreed" /> <sms-login v-else class="form" :agreement-accepted="hasAgreed" />
+3 -3
View File
@@ -19,7 +19,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group v-if="managedUser.user" theme="card" v-entrance-transition="70"> <t-cell-group v-if="managedUser.user" theme="card" v-entrance-transition>
<t-cell title="状态" :note="managedUser.enabled ? '启用' : '禁用'" /> <t-cell title="状态" :note="managedUser.enabled ? '启用' : '禁用'" />
<t-cell title="备注" :note="managedUser.remark" /> <t-cell title="备注" :note="managedUser.remark" />
<t-cell title="手机号"> <t-cell title="手机号">
@@ -33,7 +33,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group v-if="currentUser" theme="card" v-entrance-transition="140"> <t-cell-group v-if="currentUser" theme="card" v-entrance-transition>
<t-cell <t-cell
v-can="permissionCodes.user.update" v-can="permissionCodes.user.update"
title="配置角色" title="配置角色"
@@ -47,7 +47,7 @@
</template> </template>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<t-cell-group v-if="currentUser" title="可登记事件" theme="card" v-entrance-transition="210"> <t-cell-group v-if="currentUser" title="可登记事件" theme="card" v-entrance-transition>
<t-cell v-for="item in scopeList" :key="item.id" :title="item.name"/> <t-cell v-for="item in scopeList" :key="item.id" :title="item.name"/>
<t-cell v-if="!scopeList.length" title="未配置" /> <t-cell v-if="!scopeList.length" title="未配置" />
</t-cell-group> </t-cell-group>
+2 -2
View File
@@ -6,9 +6,9 @@
</section> </section>
<div <div
class="tips gray" class="tips gray"
v-entrance-transition="70" v-entrance-transition
>微信内可能无法发起下载海报,可长按保存为图片、转发连接或使用默认浏览器打开</div> >微信内可能无法发起下载海报,可长按保存为图片、转发连接或使用默认浏览器打开</div>
<div v-if="posterImage" class="actions" v-entrance-transition="140"> <div v-if="posterImage" class="actions" v-entrance-transition>
<t-button <t-button
class="button bg-white" class="button bg-white"
variant="outline" variant="outline"
+2 -2
View File
@@ -11,8 +11,8 @@
> >
<t-cell-group theme="card"> <t-cell-group theme="card">
<t-cell <t-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in pageResult.list" v-for="item in pageResult.list"
:key="item.id" :key="item.id"
class="item" class="item"
arrow arrow
+1 -1
View File
@@ -15,7 +15,7 @@
class="save cell-button" class="save cell-button"
theme="primary" theme="primary"
:loading="isSaving" :loading="isSaving"
v-entrance-transition="70" v-entrance-transition
@click="savePassword" @click="savePassword"
>保存</t-button> >保存</t-button>
</div> </div>
+2 -2
View File
@@ -33,13 +33,13 @@
</div> </div>
</t-form-item> </t-form-item>
</t-form> </t-form>
<t-cell-group theme="card" v-entrance-transition="70"> <t-cell-group theme="card" v-entrance-transition>
<t-cell title="修改密码" arrow hover @click="toPassword" /> <t-cell title="修改密码" arrow hover @click="toPassword" />
</t-cell-group> </t-cell-group>
<t-button <t-button
class="red bg-white cell-button" class="red bg-white cell-button"
variant="text" variant="text"
v-entrance-transition="140" v-entrance-transition
@click="confirmLogout" @click="confirmLogout"
>退出登录</t-button> >退出登录</t-button>
<input <input
+2 -2
View File
@@ -19,8 +19,8 @@
</div> </div>
<t-cell-group v-if="activeUser && roleList.length" theme="card"> <t-cell-group v-if="activeUser && roleList.length" theme="card">
<t-cell <t-cell
v-entrance-transition="index * 30" v-entrance-transition="{ step: 30 }"
v-for="(item, index) in roleList" v-for="item in roleList"
:key="item.id" :key="item.id"
:title="item.name" :title="item.name"
:description="item.code" :description="item.code"