feat(shop): 新增客户跟进记录功能

- 新增客户跟进记录模型定义
- 实现客户跟进记录的增删改查接口
- 在客户详情页添加跟进记录提交功能
-优化文章列表组件的UI展示效果
- 调整分享功能回调参数处理方式
This commit is contained in:
2025-10-04 17:23:13 +08:00
parent d469f29468
commit b7e8d52cf0
5 changed files with 169 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ import {
import FixedButton from "@/components/FixedButton";
import navTo from "@/utils/common";
import {pageShopDealerApply, removeShopDealerApply, updateShopDealerApply} from "@/api/shop/shopDealerApply";
import {addShopDealerRecord} from "@/api/shop/shopDealerRecord";
// 扩展User类型添加客户状态和保护天数
interface CustomerUser extends UserType {
@@ -73,6 +74,12 @@ const CustomerIndex = () => {
// @ts-ignore
if (res.confirm && res.content !== undefined) {
try {
// 添加跟进记录
await addShopDealerRecord({
dealerId: customer.userId,
// @ts-ignore
content: res.content.trim()
})
// 更新跟进情况
await updateShopDealerApply({
...customer,