Skip to content

Commit c89941d

Browse files
committed
CRM:code review 客户总量统计
1 parent 55856be commit c89941d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/views/Login/components/LoginForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ const doSocialLogin = async (type: number) => {
291291
await getTenantId()
292292
// 如果获取不到,则需要弹出提示,进行处理
293293
if (!authUtil.getTenantId()) {
294-
try {
294+
try {
295295
const data = await message.prompt('请输入租户名称', t('common.reminder'))
296296
if (data?.action !== 'confirm') throw 'cancel'
297297
const res = await LoginApi.getTenantIdByName(data.value)
298298
authUtil.setTenantId(res)
299299
} catch (error) {
300-
if(error === 'cancel') return
300+
if (error === 'cancel') return
301301
} finally {
302302
loginLoading.value = false
303303
}

src/views/crm/statistics/customer/components/CustomerSummary.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- 客户统计 -->
1+
<!-- 客户总量统计 -->
22
<template>
33
<!-- Echarts图 -->
44
<el-card shadow="never">
@@ -31,6 +31,7 @@
3131
<el-table-column label="合同总金额" align="right" prop="contractPrice" min-width="200" />
3232
<el-table-column label="回款金额" align="right" prop="receivablePrice" min-width="200" />
3333
<el-table-column label="未回款金额" align="right" min-width="200">
34+
<!-- TODO @dhb52:参考 util/index.ts 的 // ========== ERP 专属方法 ========== 部分,搞个两个方法,一个格式化百分比,一个计算百分比 -->
3435
<template #default="scope">
3536
{{ round(scope.row.contractPrice - scope.row.receivablePrice, 2) }}
3637
</template>

src/views/crm/statistics/customer/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<el-form-item label="归属部门" prop="deptId">
2525
<el-tree-select
2626
v-model="queryParams.deptId"
27+
class="!w-240px"
2728
:data="deptList"
2829
:props="defaultProps"
2930
check-strictly

0 commit comments

Comments
 (0)