Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c89941d4
authored
Mar 09, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRM:code review 客户总量统计
parent
55856be1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
src/views/Login/components/LoginForm.vue
+2
-2
src/views/crm/statistics/customer/components/CustomerSummary.vue
+2
-1
src/views/crm/statistics/customer/index.vue
+1
-0
No files found.
src/views/Login/components/LoginForm.vue
View file @
c89941d4
...
@@ -291,13 +291,13 @@ const doSocialLogin = async (type: number) => {
...
@@ -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
}
}
...
...
src/views/crm/statistics/customer/components/CustomerSummary.vue
View file @
c89941d4
<!-- 客户统计 -->
<!-- 客户
总量
统计 -->
<
template
>
<
template
>
<!-- Echarts图 -->
<!-- Echarts图 -->
<el-card
shadow=
"never"
>
<el-card
shadow=
"never"
>
...
@@ -31,6 +31,7 @@
...
@@ -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
>
...
...
src/views/crm/statistics/customer/index.vue
View file @
c89941d4
...
@@ -24,6 +24,7 @@
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment