CRM:code review 客户总量统计

This commit is contained in:
YunaiV 2024-03-09 16:51:42 +08:00
parent 55856be1de
commit c89941d435
3 changed files with 5 additions and 3 deletions

View File

@ -291,13 +291,13 @@ const doSocialLogin = async (type: number) => {
await getTenantId() await getTenantId()
// //
if (!authUtil.getTenantId()) { if (!authUtil.getTenantId()) {
try { try {
const data = await message.prompt('请输入租户名称', t('common.reminder')) const data = await message.prompt('请输入租户名称', t('common.reminder'))
if (data?.action !== 'confirm') throw 'cancel' if (data?.action !== 'confirm') throw 'cancel'
const res = await LoginApi.getTenantIdByName(data.value) const res = await LoginApi.getTenantIdByName(data.value)
authUtil.setTenantId(res) authUtil.setTenantId(res)
} catch (error) { } catch (error) {
if(error === 'cancel') return if (error === 'cancel') return
} finally { } finally {
loginLoading.value = false loginLoading.value = false
} }

View File

@ -1,4 +1,4 @@
<!-- 客户统计 --> <!-- 客户总量统计 -->
<template> <template>
<!-- Echarts图 --> <!-- Echarts图 -->
<el-card shadow="never"> <el-card shadow="never">
@ -31,6 +31,7 @@
<el-table-column label="合同总金额" align="right" prop="contractPrice" min-width="200" /> <el-table-column label="合同总金额" align="right" prop="contractPrice" min-width="200" />
<el-table-column label="回款金额" align="right" prop="receivablePrice" min-width="200" /> <el-table-column label="回款金额" align="right" prop="receivablePrice" min-width="200" />
<el-table-column label="未回款金额" align="right" min-width="200"> <el-table-column label="未回款金额" align="right" min-width="200">
<!-- TODO @dhb52参考 util/index.ts // ========== ERP ========== -->
<template #default="scope"> <template #default="scope">
{{ round(scope.row.contractPrice - scope.row.receivablePrice, 2) }} {{ round(scope.row.contractPrice - scope.row.receivablePrice, 2) }}
</template> </template>

View File

@ -24,6 +24,7 @@
<el-form-item label="归属部门" prop="deptId"> <el-form-item label="归属部门" prop="deptId">
<el-tree-select <el-tree-select
v-model="queryParams.deptId" v-model="queryParams.deptId"
class="!w-240px"
:data="deptList" :data="deptList"
:props="defaultProps" :props="defaultProps"
check-strictly check-strictly