fix: close documented platform polish gaps

This commit is contained in:
hectorzhao
2026-07-11 18:20:38 +08:00
parent 6236547871
commit 2ecbb920a6
25 changed files with 193 additions and 110 deletions
+6 -1
View File
@@ -2,6 +2,7 @@ import { useEffect, useMemo, useState } from 'react';
import { Check, Download, FileText, Plus, Search, Send, Trash2 } from 'lucide-react';
import { Button, DateTimeInput, Input, Modal, Select, Tag, Textarea } from '@/components/ui';
import { clientApi, type ClientSmsApplication, type ClientSmsSignature, type ClientSmsTemplate, type ImportPreviewResponse, type SmsBatchTask } from '@/api/adminApi';
import { formatCents } from '@/utils/currency';
type Recipient = {
id: string;
@@ -59,6 +60,10 @@ export function ClientSendPage() {
() => templates.find((item) => item.id === templateId),
[templates, templateId],
);
const selectedApplication = useMemo(
() => applications.find((item) => item.id === applicationId),
[applicationId, applications],
);
const filteredTemplates = templates.filter((item) => (
item.name.includes(templateKeyword) || item.content.includes(templateKeyword)
));
@@ -378,7 +383,7 @@ export function ClientSendPage() {
</div>
<div>
<span></span>
<strong>¥0.05 / </strong>
<strong>¥{formatCents(selectedApplication?.customerUnitPrice)} / </strong>
</div>
</div>
<div className="preview-note"> 70 / 67 /</div>