修改跟进
This commit is contained in:
parent
f48e9e6d0a
commit
ef46928b7e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -103,6 +103,13 @@
|
|||
"navigationBarTitleText": "跟进详情",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/customer/follow/edit/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "修改跟进记录",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
|||
1213
pages/customer/follow/edit/index.vue
Normal file
1213
pages/customer/follow/edit/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user