电话回访

This commit is contained in:
Flow 2025-06-05 16:28:23 +08:00
parent 3a2491a9a6
commit 7a9b132a90
2 changed files with 53 additions and 0 deletions

52
src/api/record/index.ts Normal file
View File

@ -0,0 +1,52 @@
import request from '@/config/axios'
// 会员回访记录 VO
export interface RecordVO {
id: number // 主键ID
orgid: number // 组织ID
orgname: string // 组织名称
name: string // 会员姓名
phone: string // 手机号
visitstatus: number // 回访状态0-未回访1-已回访
visittime: Date // 回访时间
content: string // 回访内容
result: string // 回访结果:满意、一般、不满意
nextvisittime: Date // 下次回访时间
createtime: Date // 创建时间
updatetime: Date // 更新时间
createby: string // 创建人
updateby: string // 更新人
}
// 会员回访记录 API
export const RecordApi = {
// 查询会员回访记录分页
getRecordPage: async (params: any) => {
return await request.get({ url: `/system/record/page`, params })
},
// 查询会员回访记录详情
getRecord: async (id: number) => {
return await request.get({ url: `/system/record/get?id=` + id })
},
// 新增会员回访记录
createRecord: async (data: RecordVO) => {
return await request.post({ url: `/system/record/create`, data })
},
// 修改会员回访记录
updateRecord: async (data: RecordVO) => {
return await request.put({ url: `/system/record/update`, data })
},
// 删除会员回访记录
deleteRecord: async (id: number) => {
return await request.delete({ url: `/system/record/delete?id=` + id })
},
// 导出会员回访记录 Excel
exportRecord: async (params) => {
return await request.download({ url: `/system/record/export-excel`, params })
},
}

View File

@ -128,6 +128,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import VisitDialog from './components/VisitDialog.vue'
import VisitDetail from './components/VisitDetail.vue'
import { Icon } from '@/components/Icon'
import { RecordApi } from '@/api/record'
// 访
const visitList = ref([])