update AIChart, customer followup, media selector

This commit is contained in:
Timi
2026-09-18 17:38:55 +08:00
parent c6b398fa98
commit 57c4275a23
57 changed files with 3866 additions and 2071 deletions
+18 -4
View File
@@ -34,8 +34,8 @@
</t-cell>
</t-cell-group>
<card-container v-entrance-transition="140">
<photo-scroller
class="photo-scroller"
<media-selector
class="media-selector"
:model-value="photoList"
:photo-items="photoItemList"
:show-viewer-actions="canUpdateCustomer"
@@ -98,6 +98,9 @@
<t-cell-group theme="card">
<t-cell title="邀请客户" :note="inviteeCountText" arrow @click="toInviteeList" />
</t-cell-group>
<t-cell-group v-if="canReadFollowUpReminder" title="客户跟进" theme="card">
<t-cell title="跟进提醒" note="查看客户提醒" arrow @click="toFollowUpReminderList" />
</t-cell-group>
<t-button
v-can="permissionCodes.customer.delete"
class="delete-action"
@@ -142,7 +145,7 @@ import TagAPI from "@/api/TagAPI";
import BodyAreaSelector from "@/components/BodyAreaSelector.vue";
import CustomerRemoveDialog from "@/pages/customer/component/CustomerRemoveDialog.vue";
import CustomerProfileCard from "@/components/CustomerProfileCard.vue";
import PhotoScroller from "@/components/PhotoScroller.vue";
import MediaSelector from "@/components/mediaSelector/MediaSelector.vue";
import TagSelector from "@/components/TagSelector.vue";
import CustomerTagCard from "@/pages/customer/component/CustomerTagCard.vue";
import { useNavBarStore } from "@/store/navBarStore";
@@ -177,6 +180,7 @@ const canReadSalesOrder = computed(() => userStore.hasPermissions(permissionCode
const canReadTag = computed(() => userStore.hasPermissions(corePermissionCodes.tag.read));
const canApplyTag = computed(() => userStore.hasPermissions(corePermissionCodes.tag.apply));
const canUpdateCustomer = computed(() => userStore.hasPermissions(permissionCodes.customer.update));
const canReadFollowUpReminder = computed(() => userStore.hasPermissions(permissionCodes.customerFollowUpReminder.read));
// ---------- 资料 ----------
@@ -389,6 +393,16 @@ async function toInviteeList(): Promise<void> {
await router.push(`/management/customers/${customer.value.id}/invitees`);
}
async function toFollowUpReminderList(): Promise<void> {
if (!customer.value?.id || !canReadFollowUpReminder.value) {
return;
}
await router.push({
name: "CustomerFollowUpReminderList",
query: { customerId: customer.value.id }
});
}
async function toEventRecordList(): Promise<void> {
if (!canReadEventRecord.value || !customer.value?.id) {
return;
@@ -531,7 +545,7 @@ onUnmounted(() => navBarStore.clearRight());
}
}
:deep(.photo-scroller) {
:deep(.media-selector) {
padding: 1rem;
}