From dc4f3a5852505ee08fee2acb5dfb92dddee7f9eb Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Mon, 15 Sep 2025 16:47:07 +0800 Subject: [PATCH] no message --- src/api/clue/index.ts | 3 +++ src/views/invite/inviteInfo/index.vue | 34 ++++++++++++++++++++------- src/views/invite/myList/index.vue | 2 +- 3 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/api/clue/index.ts b/src/api/clue/index.ts index cd2df66..28154f2 100644 --- a/src/api/clue/index.ts +++ b/src/api/clue/index.ts @@ -148,3 +148,6 @@ export const getFlowStatic = (params: any) => defHttp.get({ url: '/dating-c export const getFlowData = (params: any) => defHttp.get({ url: '/dating-clue-service/user/count/dating-clue-data-item/by-team', params}) export const intendedCustomer = (params: any) => defHttp.post({ url: '/dating-clue-service/user/mark/dating-clue/intended-customer', params }) + +export const getNextClueInfo = (params: any) => defHttp.get({ url: '/dating-clue-service/user/get/own-next-dating-clue/by/telephone-invitation-team', params}) + diff --git a/src/views/invite/inviteInfo/index.vue b/src/views/invite/inviteInfo/index.vue index 08cbcc5..88df946 100644 --- a/src/views/invite/inviteInfo/index.vue +++ b/src/views/invite/inviteInfo/index.vue @@ -77,9 +77,9 @@ 跟进人: {{details.followName || '--'}} - +
+ +
@@ -297,19 +297,23 @@ import { useModal } from '/@/components/Modal' import AppointmentModal from './modal.vue' import { demandMarriageMoreData, demandMarriageSchema } from '/@/views/clue/components/data' - import { getClueInfo, editClueRecord, recordClueing, getClueRecord, getAppointmentList, getClueContractList, intendedCustomer } from '/@/api/clue' + import { getClueInfo, editClueRecord, recordClueing, getClueRecord, getAppointmentList, getClueContractList, intendedCustomer, getNextClueInfo } from '/@/api/clue' import { genderList, channelList, clueStatusList, followTypeList, followStageList } from '/@/enums/customerEnum' const details = ref() + const clueId = ref() + const clueType = ref() const uploadList = ref([]) onMounted(() => { - initFetch() + const { query } = useRoute() + const { id, type } = query || {} + clueId.value = id + clueType.value = Number(type) + initFetch(id) }) - async function initFetch() { + async function initFetch(id) { demandMarriageMoreData.value = {} - const { query } = useRoute() - const { id } = query || {} if (!id) return details.value = await getClueInfo(`${id}`) @@ -526,7 +530,7 @@ function handleSuccess() { closeModal() reloadTable() - initFetch() + initFetch(clueId.value) } const [registerContractTable, { setTableData: setContractData }] = useTable({ bordered: true, @@ -551,6 +555,18 @@ details.value.markIntendedCustomer = status } + async function nextData(){ + const result = await getNextClueInfo({id: clueId.value}) + if(clueId.value == result){ + clueType.value = 0 + createMessage.success('暂无下一个客户') + return + } + clueId.value = result + createMessage.success(`加载中...`) + initFetch(clueId.value) + } +