|
@@ -4,7 +4,7 @@
|
|
|
<template #topRight>
|
|
<template #topRight>
|
|
|
<div class="header_content">
|
|
<div class="header_content">
|
|
|
<span>{{ customerBaseMsg.schoolName }}</span>
|
|
<span>{{ customerBaseMsg.schoolName }}</span>
|
|
|
- <el-tag type="success" effect="light" size="small" class="status_tag">
|
|
|
|
|
|
|
+ <el-tag type="success" effect="light" size="small" :disable-transitions="true" class="status_tag">
|
|
|
{{ customerBaseMsg.customerType }}
|
|
{{ customerBaseMsg.customerType }}
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
</div>
|
|
</div>
|
|
@@ -23,7 +23,7 @@
|
|
|
<el-button class="button_refresh"><img :src="editIcon" alt=""> 编辑</el-button>
|
|
<el-button class="button_refresh"><img :src="editIcon" alt=""> 编辑</el-button>
|
|
|
<el-button class="button_refresh"><img :src="poepleMoveIcon" alt=""> 转至公海</el-button>
|
|
<el-button class="button_refresh"><img :src="poepleMoveIcon" alt=""> 转至公海</el-button>
|
|
|
<el-button class="button_refresh" @click="OpenTransferFormDialog"><img :src="exchangeIcon" alt="" > 转让</el-button>
|
|
<el-button class="button_refresh" @click="OpenTransferFormDialog"><img :src="exchangeIcon" alt="" > 转让</el-button>
|
|
|
- <el-button class="button_refresh"><img :src="logIcon" alt=""> 操作记录</el-button>
|
|
|
|
|
|
|
+ <el-button class="button_refresh" @click="OpenOperationRecordDialog"><img :src="logIcon" alt=""> 操作记录</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</TopBackNav>
|
|
</TopBackNav>
|
|
@@ -44,18 +44,41 @@
|
|
|
|
|
|
|
|
<!-- 转让 弹窗 -->
|
|
<!-- 转让 弹窗 -->
|
|
|
<FormDialog title="转让" :visible="transferFormDialogVisible"
|
|
<FormDialog title="转让" :visible="transferFormDialogVisible"
|
|
|
- :submit-loading="transFormDialogSubmitLoading"
|
|
|
|
|
|
|
+ :submit-loading="transferFormDialogSubmitLoading"
|
|
|
:default-form-data="transferDefaultFormData"
|
|
:default-form-data="transferDefaultFormData"
|
|
|
:formItemList="formItemList"
|
|
:formItemList="formItemList"
|
|
|
@close="CloseTransferFormDialog"
|
|
@close="CloseTransferFormDialog"
|
|
|
@confirm="HandleTransferFormDialogConfirm">
|
|
@confirm="HandleTransferFormDialogConfirm">
|
|
|
</FormDialog>
|
|
</FormDialog>
|
|
|
|
|
|
|
|
|
|
+ <!-- 操作记录 弹窗 -->
|
|
|
|
|
+ <PreviewDialog
|
|
|
|
|
+ class="operation_dialog"
|
|
|
|
|
+ title="操作记录"
|
|
|
|
|
+ :previewVisible="operationRecordDialogVisible"
|
|
|
|
|
+ :customFooter="true"
|
|
|
|
|
+ @close="CloseOperationRecordDialog">
|
|
|
|
|
+
|
|
|
|
|
+ <SearchBlock :searchList="operationRecordSearchList"></SearchBlock>
|
|
|
|
|
+
|
|
|
|
|
+ <FollowCard :card-list="finalOperationLogRenderData">
|
|
|
|
|
+ <template #operation><i></i></template>
|
|
|
|
|
+ </FollowCard>
|
|
|
|
|
+
|
|
|
|
|
+ <Pagination :currentPage="currentPage" :pageSize="pageSize" :totalNum="totalNum"></Pagination>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <template #close>
|
|
|
|
|
+ <el-button @click="CloseOperationRecordDialog" class="button_background" >关闭</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #confirm><i></i></template>
|
|
|
|
|
+ </PreviewDialog>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
-import { ref } from 'vue';
|
|
|
|
|
|
|
+import { ref, computed } from 'vue';
|
|
|
import TopBackNav from '@/baseComponents/TopBackNav.vue';
|
|
import TopBackNav from '@/baseComponents/TopBackNav.vue';
|
|
|
import addIcon from '@/assets/icon/add.svg';
|
|
import addIcon from '@/assets/icon/add.svg';
|
|
|
import peopleEditIcon from '@/assets/icon/people_edit.png'
|
|
import peopleEditIcon from '@/assets/icon/people_edit.png'
|
|
@@ -69,7 +92,12 @@ import FormDialog from '@/baseComponents/FormDialog.vue';
|
|
|
import {formItemList} from './formDialog'
|
|
import {formItemList} from './formDialog'
|
|
|
import ContactDetail from './contactDetail/index.vue'
|
|
import ContactDetail from './contactDetail/index.vue'
|
|
|
import CustomerStatusOverview from './customerStatusOverview/index.vue'
|
|
import CustomerStatusOverview from './customerStatusOverview/index.vue'
|
|
|
|
|
+import PreviewDialog from '@/baseComponents/PreviewDialog.vue';
|
|
|
|
|
+import SearchBlock from '@/baseComponents/SearchBlock.vue';
|
|
|
|
|
|
|
|
|
|
+import {operationRecordSearchList} from './searchBlock'
|
|
|
|
|
+import FollowCard from '@/components/FollowCard.vue';
|
|
|
|
|
+import Pagination from '@/baseComponents/Pagination.vue';
|
|
|
|
|
|
|
|
const customerBaseMsg = ref({
|
|
const customerBaseMsg = ref({
|
|
|
schoolName: '北京市第一零九中学',
|
|
schoolName: '北京市第一零九中学',
|
|
@@ -90,15 +118,14 @@ const HandleTabChange = (val)=>{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-// 转让弹窗相关内容
|
|
|
|
|
|
|
+/** 转让弹窗相关内容及操作 */
|
|
|
const transferFormDialogVisible = ref(false)
|
|
const transferFormDialogVisible = ref(false)
|
|
|
-const transFormDialogSubmitLoading = ref(false)
|
|
|
|
|
|
|
+const transferFormDialogSubmitLoading = ref(false)
|
|
|
const transferDefaultFormData = ref({
|
|
const transferDefaultFormData = ref({
|
|
|
schoolName: '北京市第一零九中学',
|
|
schoolName: '北京市第一零九中学',
|
|
|
currentOwner: '张三',
|
|
currentOwner: '张三',
|
|
|
newOwner:'',
|
|
newOwner:'',
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
const OpenTransferFormDialog=()=>{
|
|
const OpenTransferFormDialog=()=>{
|
|
|
console.log('打开转让弹窗')
|
|
console.log('打开转让弹窗')
|
|
|
transferFormDialogVisible.value = true
|
|
transferFormDialogVisible.value = true
|
|
@@ -107,11 +134,9 @@ const OpenTransferFormDialog=()=>{
|
|
|
const CloseTransferFormDialog=()=>{
|
|
const CloseTransferFormDialog=()=>{
|
|
|
transferFormDialogVisible.value = false
|
|
transferFormDialogVisible.value = false
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
const HandleTransferFormDialogConfirm = ()=>{
|
|
const HandleTransferFormDialogConfirm = ()=>{
|
|
|
CloseTransferFormDialog()
|
|
CloseTransferFormDialog()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
// 获取归属人列表
|
|
// 获取归属人列表
|
|
|
const GetOwnerList = ()=>{
|
|
const GetOwnerList = ()=>{
|
|
|
formItemList.value = formItemList.value.map(item=>{
|
|
formItemList.value = formItemList.value.map(item=>{
|
|
@@ -137,7 +162,82 @@ const GetOwnerList = ()=>{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+/** 操作记录相关内容及操作 */
|
|
|
|
|
+const operationRecordDialogVisible = ref(false)
|
|
|
|
|
+const OpenOperationRecordDialog=()=>{
|
|
|
|
|
+ console.log('打开操作记录弹窗')
|
|
|
|
|
+ operationRecordDialogVisible.value = true
|
|
|
|
|
+}
|
|
|
|
|
+const CloseOperationRecordDialog=()=>{
|
|
|
|
|
+ operationRecordDialogVisible.value = false
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
+/** 操作日志有关数据 */
|
|
|
|
|
+const operationLogList = ref([
|
|
|
|
|
+ {
|
|
|
|
|
+ id:1,
|
|
|
|
|
+ operationTime: '26-02-19 19:00',
|
|
|
|
|
+ operatorName: '张安顺',
|
|
|
|
|
+ schoolName: '北京师达学校',
|
|
|
|
|
+ operationType: '编辑学校信息',
|
|
|
|
|
+ operationContent: '学校名称【北京109中学】学段【初中】调整为学校名称【北京一零九中学】学段【九年一贯】。'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id:2,
|
|
|
|
|
+ operationTime: '26-02-19 19:00',
|
|
|
|
|
+ operatorName: '张安顺',
|
|
|
|
|
+ schoolName: '北京师达学校',
|
|
|
|
|
+ operationType: '删除联系人',
|
|
|
|
|
+ operationContent: '删除 姓名【张三】职务【校长】手机电话【17820681226】办公电话【17820681226】备注【文案文案】。'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id:3,
|
|
|
|
|
+ operationTime: '26-02-19 19:00',
|
|
|
|
|
+ operatorName: '张安顺',
|
|
|
|
|
+ schoolName: '北京师达学校',
|
|
|
|
|
+ operationType: '新增联系人',
|
|
|
|
|
+ operationContent: '新增 姓名【张三】职务【校长】手机电话【17820681226】办公电话【17820681226】备注【文案文案】。'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id:4,
|
|
|
|
|
+ operationTime: '26-02-19 19:00',
|
|
|
|
|
+ operatorName: '张安顺',
|
|
|
|
|
+ schoolName: '北京师达学校',
|
|
|
|
|
+ operationType: '编辑联系人',
|
|
|
|
|
+ operationContent: '联系人姓名【张三】职务【校长】手机电话【17820681226】备注【文案文案】调整为 联系人姓名【李四】职务【校长】手机电话【17820681226】备注【文案文案】。'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id:5,
|
|
|
|
|
+ operationTime: '26-02-19 19:00',
|
|
|
|
|
+ operatorName: '张安顺',
|
|
|
|
|
+ schoolName: '北京师达学校',
|
|
|
|
|
+ operationType: '转至公海',
|
|
|
|
|
+ operationContent: '将客户转至公海。'
|
|
|
|
|
+ }
|
|
|
|
|
+]);
|
|
|
|
|
+
|
|
|
|
|
+const finalOperationLogRenderData = computed(()=>{
|
|
|
|
|
+ return operationLogList.value.map(item=>{
|
|
|
|
|
+ return {
|
|
|
|
|
+ headerTitleList:[
|
|
|
|
|
+ item.operationTime,
|
|
|
|
|
+ item.operatorName,
|
|
|
|
|
+ item.schoolName,
|
|
|
|
|
+ item.operationType
|
|
|
|
|
+ ],
|
|
|
|
|
+ headerTags:[],
|
|
|
|
|
+ middleDesc:[],
|
|
|
|
|
+ bottomDesc:`操作内容:${item.operationContent}`
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+/** 分页参数 有关数据 */
|
|
|
|
|
+const currentPage = ref(1)
|
|
|
|
|
+const pageSize = ref(20)
|
|
|
|
|
+const totalNum = ref(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|
|
@@ -199,4 +299,10 @@ const GetOwnerList = ()=>{
|
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+.operation_dialog{
|
|
|
|
|
+ .follow_card{
|
|
|
|
|
+ margin-top: 16px;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|