|
8 | 8 | </div>
|
9 | 9 | <div>
|
10 | 10 | <!-- 右上:按钮 -->
|
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)"> |
12 | 12 | 编辑
|
13 | 13 | </el-button>
|
14 | 14 | <el-button>更改成交状态</el-button>
|
15 | 15 | </div>
|
16 | 16 | </div>
|
17 | 17 | <el-row class="mt-10px">
|
18 | 18 | <el-button>
|
19 |
| - <Icon icon="ph:calendar-fill" class="mr-5px" /> |
| 19 | + <Icon class="mr-5px" icon="ph:calendar-fill" /> |
20 | 20 | 创建任务
|
21 | 21 | </el-button>
|
22 | 22 | <el-button>
|
23 |
| - <Icon icon="carbon:email" class="mr-5px" /> |
| 23 | + <Icon class="mr-5px" icon="carbon:email" /> |
24 | 24 | 发送邮件
|
25 | 25 | </el-button>
|
26 | 26 | <el-button>
|
27 |
| - <Icon icon="system-uicons:contacts" class="mr-5px" /> |
| 27 | + <Icon class="mr-5px" icon="system-uicons:contacts" /> |
28 | 28 | 创建联系人
|
29 | 29 | </el-button>
|
30 | 30 | <el-button>
|
31 |
| - <Icon icon="ep:opportunity" class="mr-5px" /> |
| 31 | + <Icon class="mr-5px" icon="ep:opportunity" /> |
32 | 32 | 创建商机
|
33 | 33 | </el-button>
|
34 | 34 | <el-button>
|
35 |
| - <Icon icon="clarity:contract-line" class="mr-5px" /> |
| 35 | + <Icon class="mr-5px" icon="clarity:contract-line" /> |
36 | 36 | 创建合同
|
37 | 37 | </el-button>
|
38 | 38 | <el-button>
|
39 |
| - <Icon icon="icon-park:income-one" class="mr-5px" /> |
| 39 | + <Icon class="mr-5px" icon="icon-park:income-one" /> |
40 | 40 | 创建回款
|
41 | 41 | </el-button>
|
42 | 42 | <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" /> |
44 | 44 | 添加团队成员
|
45 | 45 | </el-button>
|
46 | 46 | </el-row>
|
|
75 | 75 | <el-tab-pane label="客户关系" lazy> 客户关系</el-tab-pane>
|
76 | 76 | <!-- TODO wanwan 以下标签上的数量需要接口统计返回 -->
|
77 | 77 | <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> |
79 | 82 | 联系人
|
80 | 83 | </el-tab-pane>
|
81 | 84 | <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" /> |
84 | 90 | </el-tab-pane>
|
85 | 91 | <el-tab-pane label="商机" lazy> 商机</el-tab-pane>
|
86 | 92 | <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> |
88 | 97 | 合同
|
89 | 98 | </el-tab-pane>
|
90 | 99 | <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> |
92 | 104 | 回款
|
93 | 105 | </el-tab-pane>
|
94 | 106 | <el-tab-pane label="回访" lazy> 回访</el-tab-pane>
|
|
100 | 112 | <CustomerForm ref="formRef" @success="getCustomerData(id)" />
|
101 | 113 | </template>
|
102 | 114 |
|
103 |
| -<script setup lang="ts"> |
| 115 | +<script lang="ts" setup> |
104 | 116 | import { ElMessage } from 'element-plus'
|
105 | 117 | import { useTagsViewStore } from '@/store/modules/tagsView'
|
106 | 118 | import * as CustomerApi from '@/api/crm/customer'
|
107 | 119 | import CustomerBasicInfo from '@/views/crm/customer/detail/CustomerBasicInfo.vue'
|
108 | 120 | import { DICT_TYPE } from '@/utils/dict'
|
109 | 121 | import CustomerDetails from '@/views/crm/customer/detail/CustomerDetails.vue'
|
110 | 122 | import CustomerForm from '@/views/crm/customer/CustomerForm.vue'
|
| 123 | +import { CrmBizTypeEnum, CrmPermissionList } from '@/views/crm/components' |
111 | 124 |
|
112 | 125 | defineOptions({ name: 'CustomerDetail' })
|
113 | 126 |
|
|
0 commit comments