Skip to content

Commit 06e2019

Browse files
committed
📖 CRM:code review 待办项目的实现
1 parent 2f37232 commit 06e2019

File tree

5 files changed

+11
-24
lines changed

5 files changed

+11
-24
lines changed

src/router/modules/remaining.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -539,17 +539,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
539539
activeMenu: '/crm/product'
540540
},
541541
component: () => import('@/views/crm/product/detail/index.vue')
542-
},
543-
{
544-
path: 'backlog',
545-
name: 'CrmBacklog',
546-
meta: {
547-
title: '待办事项',
548-
noCache: true,
549-
hidden: true
550-
},
551-
// TODO @db52:后面搞,搞成菜单
552-
component: () => import('@/views/crm/backlog/index.vue')
553542
}
554543
]
555544
}

src/views/crm/backlog/index.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<!-- TODO @dhb52: 存在很多重复的 table 定义,如Customer: TodayCustomer,FollowCustomer,PutInPoolRemind -->
21
<template>
32
<el-row :gutter="20">
43
<el-col :span="4" class="min-w-[200px]">
@@ -90,10 +89,8 @@ const leftSides = ref([
9089
}
9190
])
9291
93-
/**
94-
* 侧边点击
95-
*/
96-
const sideClick = (item) => {
92+
/** 侧边点击 */
93+
const sideClick = (item: any) => {
9794
leftType.value = item.infoType
9895
}
9996
// TODO @dhb52: 侧边栏样式,在黑暗模式下,颜色会不对。是不是可以读取主题色哈;

src/views/crm/backlog/tables/CheckContract.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ import { fenToYuanFormat } from '@/utils/formatter'
126126
import { DICT_TYPE } from '@/utils/dict'
127127
import { AUDIT_STATUS } from './common'
128128
129-
const { push } = useRouter() // 路由
130-
131129
const loading = ref(true) // 列表的加载中
132130
const total = ref(0) // 列表的总页数
133131
const list = ref([]) // 列表的数据
@@ -157,6 +155,7 @@ const handleQuery = () => {
157155
}
158156
159157
/** 打开客户详情 */
158+
const { push } = useRouter() // 路由
160159
const openCustomerDetail = (id: number) => {
161160
push({ name: 'CrmCustomerDetail', params: { id } })
162161
}

src/views/crm/backlog/tables/TodayCustomer.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
</ContentWrap>
4444
<ContentWrap>
4545
<el-table v-loading="loading" :data="list" :show-overflow-tooltip="true" :stripe="true">
46-
<el-table-column align="center" label="编号" prop="id" />
47-
<el-table-column align="center" label="客户名称" prop="name" width="160">
46+
<el-table-column align="center" label="编号" fixed="left" prop="id" />
47+
<el-table-column align="center" label="客户名称" fixed="left" prop="name" width="160">
4848
<template #default="scope">
4949
<el-link :underline="false" type="primary" @click="openDetail(scope.row.id)">
5050
{{ scope.row.name }}
@@ -82,7 +82,7 @@
8282
<dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="scope.row.dealStatus" />
8383
</template>
8484
</el-table-column>
85-
<el-table-column align="center" label="距进入公海天数" prop="poolDay" width="100px" />
85+
<el-table-column align="center" label="距进入公海天数" prop="poolDay" width="130" />
8686
<el-table-column
8787
:formatter="dateFormatter"
8888
align="center"
@@ -124,6 +124,8 @@ import { DICT_TYPE } from '@/utils/dict'
124124
import { dateFormatter } from '@/utils/formatTime'
125125
import { CONTACT_STATUS, SCENE_TYPES } from './common'
126126
127+
// defineOptions({ name: 'TodayCustomer' }) TODO @dhb52:1)定义改成这种;2)命名要不要改成 CustomerTodayTable,就是 模块+形容词+表格(更容易识别),然后把 tables 目录改成 components 目录
128+
127129
const { push } = useRouter()
128130
129131
const loading = ref(true) // 列表的加载中

src/views/crm/customer/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110
<el-tab-pane label="下属负责的" name="3" />
111111
</el-tabs>
112112
<el-table v-loading="loading" :data="list" :show-overflow-tooltip="true" :stripe="true">
113-
<el-table-column align="center" label="编号" prop="id" />
114-
<el-table-column align="center" label="客户名称" prop="name" width="160">
113+
<el-table-column align="center" label="编号" fixed="left" prop="id" />
114+
<el-table-column align="center" label="客户名称" fixed="left" prop="name" width="160">
115115
<template #default="scope">
116116
<el-link :underline="false" type="primary" @click="openDetail(scope.row.id)">
117117
{{ scope.row.name }}
@@ -149,7 +149,7 @@
149149
<dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="scope.row.dealStatus" />
150150
</template>
151151
</el-table-column>
152-
<el-table-column align="center" label="距离进入公海" prop="poolDay">
152+
<el-table-column align="center" label="距离进入公海" prop="poolDay" width="120">
153153
<template #default="scope"> {{ scope.row.poolDay }} 天</template>
154154
</el-table-column>
155155
<el-table-column

0 commit comments

Comments
 (0)