mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-08-08 15:11:52 +08:00
📈 CRM:code review 联系人商机功能
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
* @Date: 2023-12-02 13:08:57
|
||||
* @LastEditTime: 2023-12-03 13:47:16
|
||||
* @FilePath: \yudao-ui-admin-vue3\src\views\crm\contact\detail\ContactDetailsHeader.vue
|
||||
* @Description:
|
||||
* @Description:
|
||||
-->
|
||||
<!-- TODO @zyna:上面这个不加哈 -->
|
||||
<template>
|
||||
<!-- TODO @zyna:loading 缺了 -->
|
||||
<div v-loading="loading">
|
||||
<div class="flex items-start justify-between">
|
||||
<div>
|
||||
|
@@ -65,13 +65,13 @@
|
||||
</el-collapse>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
// TODO 芋艿:后面在 review 么?
|
||||
import * as ContactApi from '@/api/crm/contact'
|
||||
import { DICT_TYPE } from '@/utils/dict'
|
||||
import { formatDate } from '@/utils/formatTime'
|
||||
const { contact } = defineProps<{ contact: ContactApi.ContactVO }>()
|
||||
const { contact } = defineProps<{
|
||||
contact: ContactApi.ContactVO
|
||||
}>()
|
||||
|
||||
// 展示的折叠面板
|
||||
const activeNames = ref(['basicInfo', 'systemInfo'])
|
||||
</script>
|
||||
<style scoped lang="scss"></style>
|
||||
|
@@ -10,12 +10,11 @@
|
||||
<PermissionList :biz-id="contact.id!" :biz-type="BizTypeEnum.CRM_CONTACT" />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="商机" lazy>
|
||||
<BusinessList :biz-id="contact.id!" :biz-type="BizTypeEnum.CRM_CONTACT"/>
|
||||
<BusinessList :biz-id="contact.id!" :biz-type="BizTypeEnum.CRM_CONTACT" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-col>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { useTagsViewStore } from '@/store/modules/tagsView'
|
||||
@@ -27,18 +26,13 @@ import PermissionList from '@/views/crm/permission/components/PermissionList.vue
|
||||
import { BizTypeEnum } from '@/api/crm/permission'
|
||||
|
||||
defineOptions({ name: 'CrmContactDetail' })
|
||||
const { delView } = useTagsViewStore() // 视图操作
|
||||
|
||||
const route = useRoute()
|
||||
const { currentRoute } = useRouter() // 路由
|
||||
const id = Number(route.params.id)
|
||||
const id = Number(route.params.id) // 联系人编号
|
||||
const loading = ref(true) // 加载中
|
||||
// 联系人详情
|
||||
const contact = ref<ContactApi.ContactVO>({} as ContactApi.ContactVO)
|
||||
/**
|
||||
* 获取详情
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
const contact = ref<ContactApi.ContactVO>({} as ContactApi.ContactVO) // 联系人详情
|
||||
|
||||
/** 获取详情 */
|
||||
const getContactData = async (id: number) => {
|
||||
loading.value = true
|
||||
try {
|
||||
@@ -47,9 +41,10 @@ const getContactData = async (id: number) => {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 初始化
|
||||
*/
|
||||
|
||||
/** 初始化 */
|
||||
const { delView } = useTagsViewStore() // 视图操作
|
||||
const { currentRoute } = useRouter() // 路由
|
||||
onMounted(async () => {
|
||||
if (!id) {
|
||||
ElMessage.warning('参数错误,联系人不能为空!')
|
||||
|
Reference in New Issue
Block a user