📖 CRM:待办事项的 code review

This commit is contained in:
YunaiV 2024-01-15 12:15:59 +08:00
parent 68fc1760a5
commit 1e70a1d57e
4 changed files with 7 additions and 2 deletions

View File

@ -34,6 +34,7 @@ export interface CustomerVO {
}
// 查询客户列表
// TODO @芋艿:看看是不是后续融合到 getCustomerPage 里;
export const getTodayCustomerPage = async (params) => {
return await request.get({ url: `/crm/message/todayCustomer`, params })
}

View File

@ -537,6 +537,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
noCache: true,
hidden: true
},
// TODO @db52后面搞搞成菜单
component: () => import('@/views/crm/message/index.vue')
}
]

View File

@ -20,7 +20,7 @@
</el-col>
</el-row>
</template>
<!-- @dbh52模块改成 backlog 会更合适待办事项 -->
<script lang="ts" setup>
import TodayCustomer from './tables/TodayCustomer.vue'
import FollowLeads from './tables/FollowLeads.vue'

View File

@ -125,11 +125,12 @@ import { DICT_TYPE } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as MessageApi from '@/api/crm/message'
const title = ref('今日需联系客户')
const title = ref('今日需联系客户') // TODO @dbh52
const loading = ref(true) //
const total = ref(0) //
const list = ref([]) //
const queryParams = ref<{
// TODO @dbh52 ref idea idea
pageNo: number
pageSize: number
contactStatus: number | undefined
@ -149,6 +150,7 @@ const CONTACT_STATUS = [
]
const SCENE_TYPES = [
// TODO
{ label: '我负责的', value: 1 },
{ label: '我跟进的', value: 2 },
{ label: '我参与的', value: 3 },
@ -182,6 +184,7 @@ const resetQuery = (func: Function | undefined = undefined) => {
contactStatus: 1,
sceneType: 1
}
// TODO @dbh52 func
func && func()
handleQuery()
}