feat(shop): 新增客户跟进记录功能
- 新增客户跟进记录模型定义 - 实现客户跟进记录的增删改查接口 - 在客户详情页添加跟进记录提交功能 -优化文章列表组件的UI展示效果 - 调整分享功能回调参数处理方式
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user