2024-06-19 15:04:20 +08:00
|
|
|
<template>
|
|
|
|
|
<Dialog :title="dialogTitle" v-model="dialogVisible" width="900px">
|
|
|
|
|
<Descriptions
|
|
|
|
|
title="申请详情"
|
|
|
|
|
:data="orderInfo"
|
|
|
|
|
:schema="applySchema"
|
|
|
|
|
:columns="2"
|
|
|
|
|
labelWidth="130px"
|
|
|
|
|
/>
|
2024-07-26 17:51:35 +08:00
|
|
|
<el-table :data="followList" size="small" border class="mt-10px">
|
|
|
|
|
<el-table-column prop="userName" label="跟进人" />
|
|
|
|
|
<el-table-column prop="followTime" label="最新跟进时间" :formatter="dateFormatter" />
|
|
|
|
|
<el-table-column prop="signSate" label="成交状态" />
|
|
|
|
|
</el-table>
|
2024-06-19 15:04:20 +08:00
|
|
|
<Descriptions
|
|
|
|
|
title="审核详情"
|
|
|
|
|
:data="orderInfo"
|
|
|
|
|
:schema="orderInfo.state == 2 ? cancelSchema : auditSchema"
|
|
|
|
|
:columns="orderInfo.state == 2 ? 2 : 3"
|
|
|
|
|
labelWidth="100px"
|
|
|
|
|
/>
|
|
|
|
|
</Dialog>
|
|
|
|
|
</template>
|
|
|
|
|
<script name="DialogFeebackDetail" setup>
|
|
|
|
|
import { getPaymentDetail } from '@/api/clue/payment'
|
2024-07-26 17:51:35 +08:00
|
|
|
import { getFollowUserList } from '@/api/clue'
|
2024-06-19 15:04:20 +08:00
|
|
|
|
2024-07-31 18:35:36 +08:00
|
|
|
import { useAppStore } from '@/store/modules/app'
|
|
|
|
|
import { schoolApplySchema, mallApplySchema, auditSchema, cancelSchema } from './feedbackSchema.js'
|
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
2024-06-19 15:04:20 +08:00
|
|
|
|
2024-07-31 18:35:36 +08:00
|
|
|
const appStore = useAppStore()
|
2024-06-19 15:04:20 +08:00
|
|
|
|
2024-07-31 18:35:36 +08:00
|
|
|
const dialogVisible = ref(false) // 弹窗的是否展示
|
|
|
|
|
const dialogTitle = ref('') // 弹窗的标题
|
2024-06-19 15:04:20 +08:00
|
|
|
|
2024-07-31 18:35:36 +08:00
|
|
|
const applySchema = computed(() => {
|
|
|
|
|
return appStore.getAppInfo?.instanceType == 1 ? schoolApplySchema : mallApplySchema
|
|
|
|
|
})
|
2024-06-19 15:04:20 +08:00
|
|
|
|
|
|
|
|
const orderInfo = ref({})
|
|
|
|
|
/** 打开弹窗 */
|
2024-07-26 17:51:35 +08:00
|
|
|
const open = async (row) => {
|
2024-06-19 15:04:20 +08:00
|
|
|
dialogVisible.value = true
|
|
|
|
|
dialogTitle.value = '回款申请详情'
|
|
|
|
|
try {
|
2024-07-26 17:51:35 +08:00
|
|
|
orderInfo.value = await getPaymentDetail({ id: row.id })
|
|
|
|
|
getFollowInfo(row.clueId)
|
2024-06-19 15:04:20 +08:00
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
2024-07-26 17:51:35 +08:00
|
|
|
|
|
|
|
|
const followList = ref([])
|
|
|
|
|
|
|
|
|
|
function getFollowInfo(id) {
|
|
|
|
|
getFollowUserList({ id }).then((data) => {
|
|
|
|
|
followList.value = data
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-06-19 15:04:20 +08:00
|
|
|
</script>
|