Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 79a37827
authored
Nov 04, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
e68d9ece
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
6 deletions
packageCustomer/components/KPIProgress/KPIProgress.js
packageCustomer/components/StoreMessage/StoreMessage.js
packageCustomer/components/materialDetails/index.scss
packageCustomer/components/materialDetails/index.wxml
packageCustomer/pages/createVisit/createVisit.js
utils/track.js
packageCustomer/components/KPIProgress/KPIProgress.js
View file @
79a3782
...
@@ -158,8 +158,9 @@ Component({
...
@@ -158,8 +158,9 @@ Component({
merchantId
,
merchantId
,
businessType
:
businessTypeObj
[
current
]
businessType
:
businessTypeObj
[
current
]
}
}
wx
.
$api
.
showLoading
()
CustomerApi
.
getKPIData
(
params
).
then
(
res
=>
{
CustomerApi
.
getKPIData
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
wx
.
$api
.
hideLoading
(
)
res
?.
forEach
(
val
=>
{
res
?.
forEach
(
val
=>
{
val
.
completed
=
this
.
formatCurrency
(
val
.
completed
)
val
.
completed
=
this
.
formatCurrency
(
val
.
completed
)
val
.
target
=
this
.
formatCurrency
(
val
.
target
)
val
.
target
=
this
.
formatCurrency
(
val
.
target
)
...
...
packageCustomer/components/StoreMessage/StoreMessage.js
View file @
79a3782
...
@@ -63,7 +63,9 @@ Component({
...
@@ -63,7 +63,9 @@ Component({
},
},
getDetailData
()
{
getDetailData
()
{
let
{
merchantId
}
=
this
.
data
let
{
merchantId
}
=
this
.
data
wx
.
$api
.
showLoading
()
CustomerApi
.
getStoreOverviewData
({
id
:
merchantId
}).
then
(
res
=>
{
CustomerApi
.
getStoreOverviewData
({
id
:
merchantId
}).
then
(
res
=>
{
wx
.
$api
.
hideLoading
()
res
?.
safetyIndexWarningList
?.
forEach
(
val
=>
{
res
?.
safetyIndexWarningList
?.
forEach
(
val
=>
{
val
.
cycleIndicator
=
this
.
formatPercent
(
val
.
cycleIndicator
)
val
.
cycleIndicator
=
this
.
formatPercent
(
val
.
cycleIndicator
)
val
.
fallbackIndicator
=
this
.
formatPercent
(
val
.
fallbackIndicator
)
val
.
fallbackIndicator
=
this
.
formatPercent
(
val
.
fallbackIndicator
)
...
...
packageCustomer/components/materialDetails/index.scss
View file @
79a3782
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
margin-bottom
:
200rpx
;
margin-bottom
:
200rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
width
:
100%
;
width
:
100%
;
padding
:
24
rpx
32rpx
32rpx
32rpx
;
padding
:
16
rpx
32rpx
32rpx
32rpx
;
}
}
.section
{
.section
{
margin
:
16rpx
16rpx
24rpx
;
margin
:
16rpx
0
24rpx
;
border-bottom
:
1rpx
solid
#E4E8EE
;
border-bottom
:
1rpx
solid
#E4E8EE
;
&
:last-child
{
&
:last-child
{
border-bottom
:
0
;
border-bottom
:
0
;
...
...
packageCustomer/components/materialDetails/index.wxml
View file @
79a3782
...
@@ -71,11 +71,11 @@
...
@@ -71,11 +71,11 @@
<view class="card">
<view class="card">
<view class="row">
<view class="row">
<view class="label">名称</view>
<view class="label">名称</view>
<view class="value">{{m.personnelName}}</view>
<view class="value">{{m.personnelName
|| '-'
}}</view>
</view>
</view>
<view class="row">
<view class="row">
<view class="label">手机号</view>
<view class="label">手机号</view>
<view class="value">{{m.personnelPhone}}</view>
<view class="value">{{m.personnelPhone
|| '-'
}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
packageCustomer/pages/createVisit/createVisit.js
View file @
79a3782
...
@@ -192,7 +192,7 @@ Page({
...
@@ -192,7 +192,7 @@ Page({
async
getLocation
()
{
async
getLocation
()
{
try
{
try
{
const
loc
=
await
wx
.
getLocation
(
{
type
:
"gcj02"
}
)
const
loc
=
await
wx
.
getLocation
()
const
{
latitude
,
longitude
}
=
loc
const
{
latitude
,
longitude
}
=
loc
wx
.
$api
.
showLoading
()
wx
.
$api
.
showLoading
()
const
res
=
await
mapApi
.
detailedAdrress
([
latitude
,
longitude
])
const
res
=
await
mapApi
.
detailedAdrress
([
latitude
,
longitude
])
...
...
utils/track.js
View file @
79a3782
...
@@ -138,6 +138,7 @@ class TRACK {
...
@@ -138,6 +138,7 @@ class TRACK {
item
=
{
item
=
{
loginAccount
:
userInfo
?.
name
,
loginAccount
:
userInfo
?.
name
,
uuid
:
userInfo
?.
uuid
,
uuid
:
userInfo
?.
uuid
,
userType
:
userInfo
?.
loginRole
,
// 1 总监 2 大区经理 3 销售人员
systemSource
:
5
,
systemSource
:
5
,
eventTime
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
eventTime
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
eventType
,
eventType
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment