修改跟进

This commit is contained in:
WindowBird 2025-11-10 14:14:49 +08:00
parent f48e9e6d0a
commit ef46928b7e
4 changed files with 1284 additions and 1 deletions

View File

@ -164,6 +164,29 @@ export const createFollowup = (data) => {
});
};
/**
* 更新跟进记录
* @param {Object} data 跟进记录数据必须包含 followId
* @param {string} data.followId 跟进ID
* @param {string} data.customerId 客户ID
* @param {string} data.type 跟进方式
* @param {string} data.content 跟进内容
* @param {string} data.picture 图片URL多个用逗号分隔
* @param {string} data.attaches 附件URL多个用逗号分隔
* @param {string} data.followTime 跟进时间 (yyyy-MM-dd HH:mm:ss)
* @param {string} data.nextFollowTime 下次跟进时间 (yyyy-MM-dd HH:mm:ss)
* @param {string} data.customerStatus 客户状态
* @param {string} data.customerIntentLevel 客户意向强度
* @returns {Promise} 返回更新结果
*/
export const updateFollowup = (data) => {
return uni.$uv.http.put(`bst/customerFollow`, data, {
custom: {
auth: true
}
});
};
/**
* 获取客户项目列表
* @param {string} customerId 客户ID

View File

@ -23,7 +23,12 @@
<text class="followup-user-name">{{ item.userName }}</text>
<text class="followup-user-role">销售经理</text>
</view>
<text class="followup-arrow"></text>
<view class="followup-actions">
<view class="edit-btn" @click.stop="handleEdit(item)">
<text class="edit-icon"></text>
</view>
<text class="followup-arrow"></text>
</view>
</view>
<text class="followup-text">{{ item.content }}</text>
<view class="followup-time-wrapper">
@ -130,6 +135,15 @@ const handleFollowupClick = (item) => {
}
emit('followup-click', item);
};
//
const handleEdit = (item) => {
if (item && item.followId) {
uni.navigateTo({
url: `/pages/customer/follow/edit/index?followId=${item.followId}`
});
}
};
</script>
<style lang="scss" scoped>
@ -243,6 +257,32 @@ const handleFollowupClick = (item) => {
line-height: 1.2;
}
.followup-actions {
display: flex;
align-items: center;
gap: 8px;
}
.edit-btn {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background-color: #f5f5f5;
transition: all 0.2s ease;
&:active {
background-color: #e0e0e0;
transform: scale(0.95);
}
}
.edit-icon {
font-size: 16px;
}
.followup-arrow {
font-size: 22px;
color: #d0d0d0;

View File

@ -103,6 +103,13 @@
"navigationBarTitleText": "跟进详情",
"navigationStyle": "custom"
}
},
{
"path": "pages/customer/follow/edit/index",
"style": {
"navigationBarTitleText": "修改跟进记录",
"navigationStyle": "custom"
}
}
],

File diff suppressed because it is too large Load Diff