|
|
@ -49,7 +49,7 @@
|
|
|
|
<el-button @click="handleQuery" type="primary"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
|
<el-button @click="handleQuery" type="primary"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
@click="getChanjet()"
|
|
|
|
style="background-color: rgba(0, 0, 255, 1);color:#fff;"
|
|
|
|
style="background-color: rgba(0, 0, 255, 1);color:#fff;"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
获取数据
|
|
|
|
获取数据
|
|
|
@ -73,7 +73,7 @@
|
|
|
|
<el-table-column label="客户编码" min-width="120" fixed align="center" prop="code" />
|
|
|
|
<el-table-column label="客户编码" min-width="120" fixed align="center" prop="code" />
|
|
|
|
<el-table-column label="简码" align="center" min-width="120" prop="brief" />
|
|
|
|
<el-table-column label="简码" align="center" min-width="120" prop="brief" />
|
|
|
|
<el-table-column label="客户简称" align="center" min-width="120" prop="name" />
|
|
|
|
<el-table-column label="客户简称" align="center" min-width="120" prop="name" />
|
|
|
|
<el-table-column label="客户全称" align="center" min-width="120" prop="fullName" />
|
|
|
|
<el-table-column label="客户全称" align="center" min-width="150" prop="fullName" />
|
|
|
|
<el-table-column label="所属行业" align="center" min-width="120" prop="industry" />
|
|
|
|
<el-table-column label="所属行业" align="center" min-width="120" prop="industry" />
|
|
|
|
<el-table-column label="客户级别" align="center" min-width="120" prop="level">
|
|
|
|
<el-table-column label="客户级别" align="center" min-width="120" prop="level">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
@ -167,6 +167,24 @@ const queryFormRef = ref() // 搜索的表单
|
|
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
|
|
const userList = ref<UserApi.UserVO[]>([]) // 用户列表
|
|
|
|
const userList = ref<UserApi.UserVO[]>([]) // 用户列表
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const reload: any = inject('reload')
|
|
|
|
|
|
|
|
const getChanjet = async () => {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
const response = await CustomerApi.queryCustomerChanjet()
|
|
|
|
|
|
|
|
if (response === true) {
|
|
|
|
|
|
|
|
// 请求成功,处理数据或进行其他操作
|
|
|
|
|
|
|
|
message.success(t('获取成功'))
|
|
|
|
|
|
|
|
reload()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// 请求失败,处理错误
|
|
|
|
|
|
|
|
message.error(t('获取失败'))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
// 发生网络错误、超时或其他未捕获异常
|
|
|
|
|
|
|
|
message.error(t('请求异常'))
|
|
|
|
|
|
|
|
console.error('Error fetching chanjet:', error)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
/** 查询列表 */
|
|
|
|
/** 查询列表 */
|
|
|
|
const getList = async () => {
|
|
|
|
const getList = async () => {
|
|
|
|
loading.value = true
|
|
|
|
loading.value = true
|
|
|
|