Skip to content

Commit 12b5920

Browse files
author
puhui999
committed
crm-客户:集成团队成员
1 parent 19a0a83 commit 12b5920

File tree

2 files changed

+28
-18
lines changed

2 files changed

+28
-18
lines changed

src/views/crm/customer/detail/index.vue

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,39 @@
88
</div>
99
<div>
1010
<!-- 右上:按钮 -->
11-
<el-button @click="openForm('update', customer.id)" v-hasPermi="['crm:customer:update']">
11+
<el-button v-hasPermi="['crm:customer:update']" @click="openForm('update', customer.id)">
1212
编辑
1313
</el-button>
1414
<el-button>更改成交状态</el-button>
1515
</div>
1616
</div>
1717
<el-row class="mt-10px">
1818
<el-button>
19-
<Icon icon="ph:calendar-fill" class="mr-5px" />
19+
<Icon class="mr-5px" icon="ph:calendar-fill" />
2020
创建任务
2121
</el-button>
2222
<el-button>
23-
<Icon icon="carbon:email" class="mr-5px" />
23+
<Icon class="mr-5px" icon="carbon:email" />
2424
发送邮件
2525
</el-button>
2626
<el-button>
27-
<Icon icon="system-uicons:contacts" class="mr-5px" />
27+
<Icon class="mr-5px" icon="system-uicons:contacts" />
2828
创建联系人
2929
</el-button>
3030
<el-button>
31-
<Icon icon="ep:opportunity" class="mr-5px" />
31+
<Icon class="mr-5px" icon="ep:opportunity" />
3232
创建商机
3333
</el-button>
3434
<el-button>
35-
<Icon icon="clarity:contract-line" class="mr-5px" />
35+
<Icon class="mr-5px" icon="clarity:contract-line" />
3636
创建合同
3737
</el-button>
3838
<el-button>
39-
<Icon icon="icon-park:income-one" class="mr-5px" />
39+
<Icon class="mr-5px" icon="icon-park:income-one" />
4040
创建回款
4141
</el-button>
4242
<el-button>
43-
<Icon icon="fluent:people-team-add-20-filled" class="mr-5px" />
43+
<Icon class="mr-5px" icon="fluent:people-team-add-20-filled" />
4444
添加团队成员
4545
</el-button>
4646
</el-row>
@@ -75,20 +75,32 @@
7575
<el-tab-pane label="客户关系" lazy> 客户关系</el-tab-pane>
7676
<!-- TODO wanwan 以下标签上的数量需要接口统计返回 -->
7777
<el-tab-pane label="联系人" lazy>
78-
<template #label> 联系人<el-badge class="item" type="primary" /> </template>
78+
<template #label>
79+
联系人
80+
<el-badge class="item" type="primary" />
81+
</template>
7982
联系人
8083
</el-tab-pane>
8184
<el-tab-pane label="团队成员" lazy>
82-
<template #label> 团队成员<el-badge class="item" type="primary" /> </template>
83-
团队成员
85+
<template #label>
86+
团队成员
87+
<el-badge class="item" type="primary" />
88+
</template>
89+
<CrmPermissionList :biz-id="customer.id" :biz-type="CrmBizTypeEnum.CRM_CUSTOMER" />
8490
</el-tab-pane>
8591
<el-tab-pane label="商机" lazy> 商机</el-tab-pane>
8692
<el-tab-pane label="合同" lazy>
87-
<template #label> 合同<el-badge class="item" type="primary" /> </template>
93+
<template #label>
94+
合同
95+
<el-badge class="item" type="primary" />
96+
</template>
8897
合同
8998
</el-tab-pane>
9099
<el-tab-pane label="回款" lazy>
91-
<template #label> 回款<el-badge class="item" type="primary" /> </template>
100+
<template #label>
101+
回款
102+
<el-badge class="item" type="primary" />
103+
</template>
92104
回款
93105
</el-tab-pane>
94106
<el-tab-pane label="回访" lazy> 回访</el-tab-pane>
@@ -100,14 +112,15 @@
100112
<CustomerForm ref="formRef" @success="getCustomerData(id)" />
101113
</template>
102114

103-
<script setup lang="ts">
115+
<script lang="ts" setup>
104116
import { ElMessage } from 'element-plus'
105117
import { useTagsViewStore } from '@/store/modules/tagsView'
106118
import * as CustomerApi from '@/api/crm/customer'
107119
import CustomerBasicInfo from '@/views/crm/customer/detail/CustomerBasicInfo.vue'
108120
import { DICT_TYPE } from '@/utils/dict'
109121
import CustomerDetails from '@/views/crm/customer/detail/CustomerDetails.vue'
110122
import CustomerForm from '@/views/crm/customer/CustomerForm.vue'
123+
import { CrmBizTypeEnum, CrmPermissionList } from '@/views/crm/components'
111124
112125
defineOptions({ name: 'CustomerDetail' })
113126

src/views/crm/customer/index.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<el-table-column align="center" label="手机" prop="mobile" width="120" />
122122
<el-table-column align="center" label="详细地址" prop="detailAddress" width="200" />
123123
<el-table-column align="center" label="负责人" prop="ownerUserName" />
124-
<el-table-column align="center" label="所属部门" prop="ownerUserDept" />
124+
<el-table-column align="center" label="所属部门" prop="ownerUserDeptName" />
125125
<el-table-column align="center" label="创建人" prop="creatorName" />
126126
<el-table-column
127127
:formatter="dateFormatter"
@@ -185,8 +185,6 @@
185185
@pagination="getList"
186186
/>
187187
</ContentWrap>
188-
<!-- TODO 方便查看效果 TODO 芋艿:先注释了,避免演示环境报错 -->
189-
<!-- <CrmTeam :biz-id="1" :biz-type="CrmBizTypeEnum.CRM_CUSTOMER" />-->
190188

191189
<!-- 表单弹窗:添加/修改 -->
192190
<CustomerForm ref="formRef" @success="getList" />
@@ -198,7 +196,6 @@ import { dateFormatter } from '@/utils/formatTime'
198196
import download from '@/utils/download'
199197
import * as CustomerApi from '@/api/crm/customer'
200198
import CustomerForm from './CustomerForm.vue'
201-
import { CrmBizTypeEnum, CrmTeam } from '@/views/crm/components'
202199
203200
defineOptions({ name: 'CrmCustomer' })
204201

0 commit comments

Comments
 (0)