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
@@ -1,92 +1,96 @@
<template>
<t-navbar
fixed
:z-index="20"
title="跟进提醒详情"
left-arrow
@left-click="$router.back()"
>
<template #right>
<t-button
v-if="canUpdate"
@click="toEdit"
theme="primary"
variant="text"
size="small"
content="编辑"
/>
</template>
</t-navbar>
<div v-can="permissionCodes.customerFollowUpReminder.read" class="follow-up-reminder-detail">
<t-empty v-if="!detail" :description="isLoading ? '正在加载跟进提醒' : '跟进提醒不存在'" />
<template v-else>
<customer-profile-card
class="customer"
:customer="detail.customer"
v-entrance-transition
@click="toCustomer"
/>
<t-cell-group title="提醒信息" theme="card" v-entrance-transition>
<t-cell title="业务状态">
<template #note>
<t-tag size="small" :theme="getStatusTheme(detail.status)" :content="getStatusText(detail.status)" />
</template>
</t-cell>
<t-cell title="负责人" :note="getResponsibleName(detail)" />
<t-cell title="提醒时间" :note="detail.remindAt ? Time.toDateTime(detail.remindAt) : '-'" />
<t-cell title="创建时间">
<template #note>
<time-label :timestamp="detail.createdAt" underline />
</template>
</t-cell>
</t-cell-group>
<t-cell-group title="跟进内容" theme="card" v-entrance-transition>
<div class="content bg-white" v-text="detail.content || '未填写跟进内容'" />
<div class="media-wrap bg-white">
<attachment-selector :items="attachmentItemList" title="附件" readonly />
</div>
</t-cell-group>
<t-cell-group title="通知方式" theme="card" v-entrance-transition>
<t-cell v-if="hasChannel('INTERNAL')" title="站内通知">
<template #note>
<t-tag
size="small"
variant="outline"
:theme="internalNotifyStatus ? getNotifyStatusTheme(internalNotifyStatus.status) : 'primary'"
:content="internalNotifyStatus ? getNotifyStatusText(internalNotifyStatus.status) : '已配置'"
/>
</template>
</t-cell>
<t-cell v-if="hasChannel('SMS')" title="短信通知">
<template #note>
<t-tag
size="small"
theme="primary"
variant="outline"
:content="detail.smsNotifyDetailId ? '已进入当天批次' : '等待当天 08:00 批次'"
/>
</template>
</t-cell>
<t-cell v-if="!detail.notifyChannelList?.length" title="通知方式" note="不发送通知" />
<div class="tips gray bg-white" v-text="'站内通知在提醒时间后生效;短信按提醒日期在 08:00 聚合发送。通知状态仅作辅助展示,不代表跟进提醒业务状态。'" />
</t-cell-group>
<div class="actions" v-entrance-transition>
<div class="page-layout navbar">
<t-navbar
fixed
:z-index="20"
title="跟进提醒详情"
left-arrow
@left-click="$router.back()"
>
<template #right>
<t-button
v-if="canComplete && detail.status === 'PENDING'"
v-if="canUpdate"
@click="toEdit"
theme="primary"
:disabled="isOperating"
:loading="isCompleting"
@click="confirmComplete"
>完成跟进</t-button>
<t-button
v-if="canDelete"
theme="danger"
:loading="isDeleting"
:disabled="isOperating"
@click="confirmDelete"
>删除提醒</t-button>
variant="text"
size="small"
content="编辑"
/>
</template>
</t-navbar>
<main class="page-content scroll column">
<div v-can="permissionCodes.customerFollowUpReminder.read" class="follow-up-reminder-detail">
<t-empty v-if="!detail" :description="isLoading ? '正在加载跟进提醒' : '跟进提醒不存在'" />
<template v-else>
<customer-profile-card
class="customer"
:customer="detail.customer"
v-entrance-transition
@click="toCustomer"
/>
<t-cell-group title="提醒信息" theme="card" v-entrance-transition>
<t-cell title="业务状态">
<template #note>
<t-tag size="small" :theme="getStatusTheme(detail.status)" :content="getStatusText(detail.status)" />
</template>
</t-cell>
<t-cell title="负责人" :note="getResponsibleName(detail)" />
<t-cell title="提醒时间" :note="detail.remindAt ? Time.toDateTime(detail.remindAt) : '-'" />
<t-cell title="创建时间">
<template #note>
<time-label :timestamp="detail.createdAt" underline />
</template>
</t-cell>
</t-cell-group>
<t-cell-group title="跟进内容" theme="card" v-entrance-transition>
<div class="content bg-white" v-text="detail.content || '未填写跟进内容'" />
<div class="media-wrap bg-white">
<attachment-selector :items="attachmentItemList" title="附件" readonly />
</div>
</t-cell-group>
<t-cell-group title="通知方式" theme="card" v-entrance-transition>
<t-cell v-if="hasChannel('INTERNAL')" title="站内通知">
<template #note>
<t-tag
size="small"
variant="outline"
:theme="internalNotifyStatus ? getNotifyStatusTheme(internalNotifyStatus.status) : 'primary'"
:content="internalNotifyStatus ? getNotifyStatusText(internalNotifyStatus.status) : '已配置'"
/>
</template>
</t-cell>
<t-cell v-if="hasChannel('SMS')" title="短信通知">
<template #note>
<t-tag
size="small"
theme="primary"
variant="outline"
:content="detail.smsNotifyDetailId ? '已进入当天批次' : '等待当天 08:00 批次'"
/>
</template>
</t-cell>
<t-cell v-if="!detail.notifyChannelList?.length" title="通知方式" note="不发送通知" />
<div class="tips gray bg-white" v-text="'站内通知在提醒时间后生效;短信按提醒日期在 08:00 聚合发送。通知状态仅作辅助展示,不代表跟进提醒业务状态。'" />
</t-cell-group>
<div class="actions" v-entrance-transition>
<t-button
v-if="canComplete && detail.status === 'PENDING'"
theme="primary"
:disabled="isOperating"
:loading="isCompleting"
@click="confirmComplete"
>完成跟进</t-button>
<t-button
v-if="canDelete"
theme="danger"
:loading="isDeleting"
:disabled="isOperating"
@click="confirmDelete"
>删除提醒</t-button>
</div>
</template>
</div>
</template>
</main>
</div>
</template>
@@ -330,7 +334,7 @@ watch(() => route.params.id, async () => {
<style scoped lang="less">
.follow-up-reminder-detail {
gap: 1rem;
padding: calc(var(--app-nav-height) + 1rem) 0 2rem;
padding: 0 0 2rem;
display: flex;
flex-direction: column;