Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
supervisor-miniprogram
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 5d2654ee
authored
Mar 20, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
督导小程序联调
1 parent
5b186c40
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
1362 additions
and
1306 deletions
api/crew/index.js
components/dateScreen/dateScreen.js
components/dateScreen/dateScreen.sass
config.js
packageCrew/pages/mentoring/mentoring.js
packageCrew/pages/mentoring/mentoring.sass
packageCrew/pages/mentoring/mentoring.wxml
packageCrew/pages/peopleOverview/components/basicInfo/basicInfo.js
packageCrew/pages/peopleOverview/components/behaviorAnalysis/behaviorAnalysis.js
packageCrew/pages/peopleOverview/components/behaviorAnalysis/behaviorAnalysis.wxml
packageCrew/pages/peopleOverview/components/line/line.js
packageCrew/pages/peopleOverview/components/personalPerformance/personalPerformance.js
packageCrew/pages/peopleOverview/components/personalPerformance/personalPerformance.wxml
packageCrew/pages/peopleOverview/components/trainingExperience/trainingExperience.js
packageCrew/pages/peopleOverview/components/trainingExperience/trainingExperience.wxml
packageCrew/pages/peopleOverview/peopleOverview.js
packageCrew/pages/peopleOverview/peopleOverview.wxml
packageCrew/pages/receptionRecording/components/recordItem/recordItem.js
packageCrew/pages/receptionRecording/components/recordItem/recordItem.wxml
packageCrew/pages/receptionRecording/receptionRecording.js
packageCrew/pages/receptionRecording/receptionRecording.scss
packageCrew/pages/receptionRecording/receptionRecording.wxml
packageCrew/pages/recordingDetail/components/dialogue/dialogue.js
packageCrew/pages/recordingDetail/recordingDetail.js
packageCrew/pages/recordingDetail/recordingDetail.scss
packageCrew/pages/recordingDetail/recordingDetail.wxml
packageCrew/pages/storeTransfer/storeTransfer.js
packageCrew/pages/storeTransfer/storeTransfer.wxml
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.js
packageIndex/pages/monthlyPlan/monthlyPlan.js
packageIndex/pages/specialTask/specialTask.js
packageIndex/pages/specialTask/specialTask.wxml
packageIndex/pages/weeklyReview/weeklyReview.js
pages/tab/crew/components/employeeRanking/employeeRanking.js
pages/tab/crew/components/employeeRanking/employeeRanking.scss
pages/tab/crew/components/employeeRanking/employeeRanking.wxml
pages/tab/crew/crew.js
pages/tab/crew/crew.wxml
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/learningCenter/components/CardItem/CardItem.js
pages/tab/learningCenter/learningCenter.js
pages/tab/mine/mine.js
pages/wxLogin/wxLogin.js
project.private.config.json
api/crew/index.js
View file @
5d2654e
...
@@ -28,6 +28,10 @@ module.exports = {
...
@@ -28,6 +28,10 @@ module.exports = {
getEmployeePerformanceData
(
data
)
{
getEmployeePerformanceData
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.dashboard.employee.performance'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
return
api
.
post
(
'dj.api.supervisor.dashboard.employee.performance'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
},
},
// 获取员工个人产值趋势及达成率
getEmployeeOutPutTrendApi
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.business.analysis.output.trend.scene'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
},
// 获取员工个人行为数据
// 获取员工个人行为数据
getEmployeebehaviorData
(
data
)
{
getEmployeebehaviorData
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.dashboard.employee.behavior'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
return
api
.
post
(
'dj.api.supervisor.dashboard.employee.behavior'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
...
@@ -36,12 +40,8 @@ module.exports = {
...
@@ -36,12 +40,8 @@ module.exports = {
getTrainingExperienceList
(
data
)
{
getTrainingExperienceList
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.mini.team.training.list'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
return
api
.
post
(
'dj.api.supervisor.mini.team.training.list'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
},
},
// 查询门店日期范围内接待记录统计数据
getReceptionRecordList
(
data
)
{
return
api
.
post
(
"dj.api.smartcarlife.recepiton.receptionStaticList"
,
data
)
},
// 分页查询接待录音列表
// 分页查询接待录音列表
getRecord
Detail
List
(
data
)
{
getRecord
ing
List
(
data
)
{
return
api
.
post
(
"dj.api.supervisor.dashboard.recording.list"
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
return
api
.
post
(
"dj.api.supervisor.dashboard.recording.list"
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
},
},
// 获取短链地址
// 获取短链地址
...
@@ -61,6 +61,6 @@ module.exports = {
...
@@ -61,6 +61,6 @@ module.exports = {
},
},
// 人员带教
// 人员带教
submitMentorData
(
data
)
{
submitMentorData
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.mini.team.coaching.submit'
,
data
)
return
api
.
post
(
'dj.api.supervisor.mini.team.coaching.submit'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
}
}
}
}
components/dateScreen/dateScreen.js
View file @
5d2654e
...
@@ -107,7 +107,7 @@ Component({
...
@@ -107,7 +107,7 @@ Component({
const
{
timeTypeEnum
}
=
this
.
data
const
{
timeTypeEnum
}
=
this
.
data
let
eventCode
=
[
'supervisor_dayTime_tab'
,
'supervisor_weekTime_tab'
,
'supervisor_monthTime_tab'
]
let
eventCode
=
[
'supervisor_dayTime_tab'
,
'supervisor_weekTime_tab'
,
'supervisor_monthTime_tab'
]
if
(
this
.
data
.
setTrackData
)
{
if
(
this
.
data
.
setTrackData
)
{
//
wx.$track.setTrackData(0, eventCode[index], {}, '')
wx
.
$track
.
setTrackData
(
0
,
eventCode
[
index
],
{},
''
)
}
}
this
.
setData
({
this
.
setData
({
dateCurrent
:
index
,
dateCurrent
:
index
,
...
@@ -139,9 +139,12 @@ Component({
...
@@ -139,9 +139,12 @@ Component({
return
obj
return
obj
},
},
initLoad
()
{
initLoad
()
{
this
.
initDate
(
'date'
)
this
.
setData
({
this
.
setData
({
dateCurrent
:
0
dateCurrent
:
0
,
leftCurrent
:
false
,
rightCurrent
:
true
},
()
=>
{
this
.
initDate
(
'date'
)
})
})
},
},
initDate
(
type
=
'date'
)
{
initDate
(
type
=
'date'
)
{
...
...
components/dateScreen/dateScreen.sass
View file @
5d2654e
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
.date-screen
{
.date-screen
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
.tab-section
{
.tab-section
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
278rpx
;
width
:
278rpx
;
...
@@ -33,6 +34,7 @@
...
@@ -33,6 +34,7 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
56rpx
;
height
:
56rpx
;
flex
:
1
;
flex
:
1
;
max-width
:
calc
(
100%
-
278rpx
)
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-around
;
justify-content
:
space-around
;
...
...
config.js
View file @
5d2654e
...
@@ -88,7 +88,7 @@ export const ALIYUN = ALIYUN_LIST[1];
...
@@ -88,7 +88,7 @@ export const ALIYUN = ALIYUN_LIST[1];
export
const
quotedImgUrl
=
createQuotedUrl
[
target
[
envIndex
]];
export
const
quotedImgUrl
=
createQuotedUrl
[
target
[
envIndex
]];
export
const
scoket_url
=
scoketURL
[
target
[
envIndex
]];
export
const
scoket_url
=
scoketURL
[
target
[
envIndex
]];
// sentry Dsn 地址
// sentry Dsn 地址
export
const
dsnUrl
=
"https://
6b10bd312d154ff3a4664772bb4e50f5@sentry.glsx.com.cn/49
"
;
export
const
dsnUrl
=
"https://
89bfb54e30fd4fafaee5ba09063fb369@sentry.glsx.com.cn/50
"
;
// 图片基地址
// 图片基地址
export
const
ImgUrl
=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram"
;
export
const
ImgUrl
=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram"
;
...
...
packageCrew/pages/mentoring/mentoring.js
View file @
5d2654e
...
@@ -3,6 +3,7 @@ const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor
...
@@ -3,6 +3,7 @@ const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor
import
api
from
'~/api/crew/index'
import
api
from
'~/api/crew/index'
import
indexApi
from
'~/api/index/index'
import
indexApi
from
'~/api/index/index'
import
studyApi
from
'~/api/learningCenter/index'
import
studyApi
from
'~/api/learningCenter/index'
import
{
uploadImg
}
from
'~/api/api'
Page
({
Page
({
/**
/**
...
@@ -10,23 +11,18 @@ Page({
...
@@ -10,23 +11,18 @@ Page({
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
detailInfo
:
{
navBarHeight
:
84
,
staffName
:
'赵惠惠'
,
detailInfo
:
{},
sex
:
1
,
staffPhone
:
'18902640418'
,
entryDate
:
'2025-12-12'
,
scene
:
'延保,轻改,权益'
},
detailItems
:
[{
detailItems
:
[{
label
:
'手机号码'
,
label
:
'手机号码'
,
key
:
'st
aff
Phone'
key
:
'st
oreManager
Phone'
},
{
},
{
label
:
'入职时间'
,
label
:
'入职时间'
,
key
:
'entryDate'
,
key
:
'entryDate'
,
width
:
'290rpx'
width
:
'290rpx'
},
{
},
{
label
:
'归属业务'
,
label
:
'归属业务'
,
key
:
'
scene
'
,
key
:
'
business
'
,
inline
:
true
inline
:
true
}],
}],
orderObj
:
{
orderObj
:
{
...
@@ -51,6 +47,14 @@ Page({
...
@@ -51,6 +47,14 @@ Page({
// 任务列表进入
// 任务列表进入
if
(
options
.
id
)
{
if
(
options
.
id
)
{
this
.
getDetail
(
options
.
id
)
this
.
getDetail
(
options
.
id
)
}
else
{
console
.
log
(
options
)
this
.
setData
({
'orderObj.storeManagerName'
:
options
.
storeManagerName
,
'orderObj.storeManagerPhone'
:
options
.
storeManagerPhone
,
'orderObj.entryDate'
:
options
.
entryDate
,
'orderObj.business'
:
options
.
business
})
}
}
// 获取门店列表
// 获取门店列表
this
.
getMerchantList
()
this
.
getMerchantList
()
...
@@ -105,6 +109,13 @@ Page({
...
@@ -105,6 +109,13 @@ Page({
}
}
})
})
},
},
filterBusiness
(
data
)
{
let
names
=
[
''
,
'延保'
,
'权益'
,
'轻改'
]
if
(
!
data
)
return
'-'
let
bizArray
=
data
?.
split
(
','
)?.
map
(
item
=>
item
.
trim
()).
filter
(
item
=>
item
!==
''
)
let
result
=
bizArray
.
map
(
index
=>
names
[
parseInt
(
index
)]).
filter
(
name
=>
name
!==
''
).
join
(
','
)
return
result
},
// 获取带教任务详情
// 获取带教任务详情
getDetail
(
id
)
{
getDetail
(
id
)
{
indexApi
.
getTaskDetail
({
id
}).
then
(
res
=>
{
indexApi
.
getTaskDetail
({
id
}).
then
(
res
=>
{
...
@@ -112,8 +123,11 @@ Page({
...
@@ -112,8 +123,11 @@ Page({
if
(
code
==
0
)
{
if
(
code
==
0
)
{
data
.
courseList
=
data
.
taskCourseList
||
[],
data
.
courseList
=
data
.
taskCourseList
||
[],
data
.
imageList
=
data
.
taskImageList
||
[]
data
.
imageList
=
data
.
taskImageList
||
[]
data
.
business
=
this
.
filterBusiness
(
data
.
business
)
let
taskContextLength
=
data
?.
taskContext
.
length
this
.
setData
({
this
.
setData
({
merchantList
:
data
||
[]
orderObj
:
data
||
[],
taskContextLength
})
})
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
...
@@ -133,7 +147,7 @@ Page({
...
@@ -133,7 +147,7 @@ Page({
selectMultiple
:
type
!=
'merchant'
,
selectMultiple
:
type
!=
'merchant'
,
labelKey
:
type
==
'merchant'
?
'merchantName'
:
'title'
,
labelKey
:
type
==
'merchant'
?
'merchantName'
:
'title'
,
valueKey
:
type
==
'merchant'
?
'merchantId'
:
'courseId'
,
valueKey
:
type
==
'merchant'
?
'merchantId'
:
'courseId'
,
selectValue
:
type
==
'merchant'
?
[
orderObj
.
merchantId
]
:
orderObj
.
course
selectValue
:
type
==
'merchant'
?
[
orderObj
.
merchantId
]
:
orderObj
.
course
List
})
})
},
},
...
@@ -161,8 +175,8 @@ Page({
...
@@ -161,8 +175,8 @@ Page({
taskContextInput
(
e
)
{
taskContextInput
(
e
)
{
let
val
=
e
.
detail
.
value
||
""
let
val
=
e
.
detail
.
value
||
""
if
(
val
.
length
>
5
00
)
{
if
(
val
.
length
>
10
00
)
{
val
=
val
.
substring
(
0
,
5
00
)
val
=
val
.
substring
(
0
,
10
00
)
}
}
this
.
setData
({
this
.
setData
({
'orderObj.taskContext'
:
val
,
'orderObj.taskContext'
:
val
,
...
@@ -172,12 +186,12 @@ Page({
...
@@ -172,12 +186,12 @@ Page({
handleImageUpload
()
{
handleImageUpload
()
{
let
_this
=
this
let
_this
=
this
let
{
orderObj
}
=
this
.
data
let
{
orderObj
}
=
_
this
.
data
wx
.
chooseImage
({
wx
.
chooseImage
({
count
:
9
-
orderObj
.
imageList
?.
length
,
count
:
1
,
mediaType
:
[
'image
'
],
sourceType
:
[
'camera
'
],
success
(
res
)
{
success
(
res
)
{
console
.
log
(
res
)
let
[
tempFiles
]
=
res
.
tempFilePaths
for
(
const
file
of
res
.
tempFiles
)
{
for
(
const
file
of
res
.
tempFiles
)
{
if
(
file
.
size
>
10
*
1024
*
1024
)
{
if
(
file
.
size
>
10
*
1024
*
1024
)
{
return
wx
.
showToast
({
return
wx
.
showToast
({
...
@@ -186,43 +200,31 @@ Page({
...
@@ -186,43 +200,31 @@ Page({
})
})
}
}
}
}
wx
.
$util
.
showLoading
()
let
imgType
=
tempFiles
.
split
(
'.'
)[
1
]
const
uploadImages
=
async
(
tempFiles
)
=>
{
let
type
=
imgType
==
'unknown'
?
'jpg'
:
imgType
try
{
wx
.
getFileSystemManager
().
readFile
({
for
(
const
item
of
tempFiles
)
{
filePath
:
tempFiles
,
//选择图片返回的相对路径
const
val
=
item
.
path
encoding
:
'base64'
,
//编码格式
const
imgType
=
val
.
split
(
'.'
)[
1
]
success
(
_res
)
{
const
type
=
imgType
===
'unknown'
?
'jpg'
:
imgType
wx
.
$util
.
showLoading
(
'上传中...'
)
const
_res
=
await
new
Promise
((
resolve
,
reject
)
=>
{
uploadImg
({
wx
.
getFileSystemManager
().
readFile
({
file
:
`
${
type
}
@
${
_res
.
data
}
`
filePath
:
val
,
// 选择图片返回的相对路径
}).
then
(
img
=>
{
encoding
:
'base64'
,
// 编码格式
wx
.
$util
.
hideLoading
()
success
:
resolve
,
let
{
code
,
data
,
message
}
=
img
fail
:
reject
if
(
code
==
0
)
{
})
orderObj
.
imageList
.
push
({
imageUrl
:
data
})
})
_this
.
setData
({
const
img
=
await
uploadImg
({
orderObj
file
:
`
${
type
}
@
${
_res
.
data
}
`
})
})
}
else
{
const
{
code
,
data
,
message
}
=
img
wx
.
$util
.
showToast
(
message
)
if
(
code
==
0
)
{
}
orderObj
.
imageList
.
push
({
imageUrl
:
data
})
})
_this
.
setData
({
}
orderObj
})
})
}
}
else
{
})
wx
.
$util
.
showToast
(
message
)
}
}
}
catch
(
error
)
{
wx
.
$util
.
showToast
(
"上传失败,请重试"
)
}
finally
{
wx
.
$util
.
hideLoading
()
}
}
uploadImages
(
res
?.
tempFiles
)
}
})
},
},
previewImage
(
e
)
{
previewImage
(
e
)
{
...
@@ -243,17 +245,29 @@ Page({
...
@@ -243,17 +245,29 @@ Page({
},
},
submit
()
{
submit
()
{
let
{
orderObj
}
=
this
.
data
if
(
!
orderObj
.
merchantId
||
!
orderObj
.
courseList
.
length
||
!
orderObj
.
taskContext
||
!
orderObj
.
imageList
.
length
)
return
wx
.
$util
.
showToast
(
'请完成所有必填项'
)
if
(
!
orderObj
.
merchantId
||
!
orderObj
.
courseList
.
length
||
!
orderObj
.
taskContext
||
!
orderObj
.
imageList
.
length
)
return
wx
.
$util
.
showToast
(
'请完成所有必填项'
)
let
params
=
{
let
params
=
{
merchantId
:
orderObj
.
merchantId
,
merchantId
:
orderObj
.
merchantId
,
merchantName
:
orderObj
.
merchantName
,
merchantName
:
orderObj
.
merchantName
,
storeManagerPhone
:
orderObj
.
phone
,
storeManagerName
:
orderObj
.
storeManagerName
,
storeManagerPhone
:
orderObj
.
storeManagerPhone
,
taskContext
:
orderObj
.
taskContext
,
taskContext
:
orderObj
.
taskContext
,
courseList
:
orderObj
.
courseList
?.
map
(
val
=>
{
return
{
id
:
val
.
i
d
}}),
courseList
:
orderObj
.
courseList
?.
map
(
val
=>
{
return
{
bcCourseId
:
val
.
courseI
d
}}),
imageList
:
orderObj
.
imageList
imageList
:
orderObj
.
imageList
}
}
wx
.
$util
.
showLoading
()
api
.
submitMentorData
(
params
).
then
(
res
=>
{
api
.
submitMentorData
(
params
).
then
(
res
=>
{
wx
.
$util
.
hideLoading
()
let
{
code
,
message
}
=
res
if
(
code
==
0
)
{
console
.
log
(
'222'
)
this
.
back
()
}
else
{
wx
.
$util
.
showToast
(
message
)
}
}).
catch
(()
=>
{
wx
.
$util
.
hideLoading
()
})
})
},
},
...
...
packageCrew/pages/mentoring/mentoring.sass
View file @
5d2654e
...
@@ -29,7 +29,12 @@ page{
...
@@ -29,7 +29,12 @@ page{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
font-size
:
36rpx
;
font-size
:
36rpx
;
width
:
100%
;
color
:
#333333
;
color
:
#333333
;
.staff-name
{
max-width
:
calc
(
100%
-
40rpx
)
;
word-break
:
break-all
;
}
.sex-icon
{
.sex-icon
{
width
:
32rpx
;
width
:
32rpx
;
height
:
32rpx
;
height
:
32rpx
;
...
...
packageCrew/pages/mentoring/mentoring.wxml
View file @
5d2654e
...
@@ -14,14 +14,14 @@
...
@@ -14,14 +14,14 @@
<view class="box">
<view class="box">
<view class="name">
<view class="name">
<view class="staff">
<view class="staff">
{{detailInfo.staffName}}
<view class="text-hide staff-name">{{orderObj.storeManagerName}}</view>
<image class="sex-icon" src="{{IMG_URL}}{{
detailInfo.sex == 1
? 'female-icon' : 'male-iconx'}}.png" mode="aspectFit" />
<image class="sex-icon" src="{{IMG_URL}}{{
orderObj.gender == '女'
? 'female-icon' : 'male-iconx'}}.png" mode="aspectFit" />
</view>
</view>
</view>
</view>
<view class="items">
<view class="items">
<view class="item {{item.inline ? 'inline' : ''}}" style="{{item.width ? ('width:' + item.width + ';') : ''}}" wx:for="{{detailItems}}" wx:key="index">
<view class="item {{item.inline ? 'inline' : ''}}" style="{{item.width ? ('width:' + item.width + ';') : ''}}" wx:for="{{detailItems}}" wx:key="index">
<view class="label">{{item.label}}:</view>
<view class="label">{{item.label}}:</view>
<view class="value">{{
detailInfo
[item.key] || '-'}}</view>
<view class="value">{{
orderObj
[item.key] || '-'}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<block wx:if="{{orderObj.imageList.length > 0}}">
<block wx:if="{{orderObj.imageList.length > 0}}">
<view class="payVoucher_image" wx:for="{{orderObj.imageList}}" wx:key="index">
<view class="payVoucher_image" wx:for="{{orderObj.imageList}}" wx:key="index">
<image bindtap="previewImage" data-index="{{index}}" data-url="{{orderObj.imageList}}" src="{{item.imageUrl}}"/>
<image bindtap="previewImage" data-index="{{index}}" data-url="{{orderObj.imageList}}" src="{{item.imageUrl}}"/>
<image class="del_icon" wx:if="{{orderObj.taskStatus != 2}}" src="
/packageCrowdFunding/images/del_icon.png" mode="" bindtap="delCustomPayVoucher
" data-index="{{index}}"/>
<image class="del_icon" wx:if="{{orderObj.taskStatus != 2}}" src="
https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/zy_paf_del_icon.png" mode="" bindtap="delPhoto
" data-index="{{index}}"/>
</view>
</view>
</block>
</block>
<block wx:if="{{orderObj.imageList.length < 9 && orderObj.taskStatus != 2}}">
<block wx:if="{{orderObj.imageList.length < 9 && orderObj.taskStatus != 2}}">
...
...
packageCrew/pages/peopleOverview/components/basicInfo/basicInfo.js
View file @
5d2654e
...
@@ -17,7 +17,7 @@ Component({
...
@@ -17,7 +17,7 @@ Component({
key
:
'ethnicity'
key
:
'ethnicity'
},
{
},
{
label
:
'政治面貌'
,
label
:
'政治面貌'
,
key
:
''
key
:
'
politicalStatus
'
},
{
},
{
label
:
'籍贯'
,
label
:
'籍贯'
,
key
:
'origin'
key
:
'origin'
...
...
packageCrew/pages/peopleOverview/components/behaviorAnalysis/behaviorAnalysis.js
View file @
5d2654e
...
@@ -6,13 +6,14 @@ Component({
...
@@ -6,13 +6,14 @@ Component({
type
:
Object
,
type
:
Object
,
value
:
{},
value
:
{},
observer
:
function
(
n
)
{
observer
:
function
(
n
)
{
this
.
getData
()
}
}
},
},
selectedMerchantObj
:
{
type
:
Object
}
},
},
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
merchantName
:
'深圳南山问界4S店深圳南山问界4S店深圳南山问界4S店'
,
attendanceItems
:
[
attendanceItems
:
[
{
label
:
'打卡天数'
,
key
:
'checkInDays'
},
{
label
:
'打卡天数'
,
key
:
'checkInDays'
},
{
label
:
'迟到'
,
key
:
'late'
,
valueClass
:
'danger'
},
{
label
:
'迟到'
,
key
:
'late'
,
valueClass
:
'danger'
},
...
@@ -55,6 +56,14 @@ Component({
...
@@ -55,6 +56,14 @@ Component({
{
label
:
'录音缺失率'
,
key
:
'recordingMissingRate'
}
{
label
:
'录音缺失率'
,
key
:
'recordingMissingRate'
}
]
]
],
],
tagRows
:
[{
label
:
'弱项'
,
class
:
'danger'
,
key
:
'badList'
},
{
label
:
'其他项'
,
key
:
'ohterList'
}],
dressWarningItems
:
[{
label
:
'预警次数'
,
key
:
'warningCount'
}],
dressWarningItems
:
[{
label
:
'预警次数'
,
key
:
'warningCount'
}],
behaviorInfo
:
{}
behaviorInfo
:
{}
},
},
...
@@ -67,52 +76,59 @@ Component({
...
@@ -67,52 +76,59 @@ Component({
this
.
getData
()
this
.
getData
()
})
})
},
},
getData
()
{
safeObjectToLabelList
(
obj
)
{
let
{
detailInfo
}
=
this
.
data
if
(
!
obj
||
typeof
obj
!==
'object'
)
{
// 假数据
return
[]
let
data
=
{
}
attendance
:
{
let
cleanObj
=
{};
checkInDays
:
20
,
try
{
late
:
1
,
const
jsonStr
=
JSON
.
stringify
(
obj
)
earlyLeave
:
5
,
cleanObj
=
JSON
.
parse
(
jsonStr
)
absenteeism
:
5
}
catch
(
e
)
{
},
return
[]
dailyReport
:
{
}
submitted
:
5
,
const
result
=
[]
notSubmitted
:
8
,
try
{
onDuty
:
6
,
const
keys
=
Object
.
keys
(
cleanObj
)
rest
:
8
,
for
(
let
i
=
0
;
i
<
keys
.
length
;
i
++
)
{
completionRate
:
95
const
key
=
keys
[
i
]
},
const
value
=
cleanObj
[
key
]
customerReception
:
{
const
displayValue
=
(
typeof
value
===
'object'
&&
value
!==
null
)
actualDelivery
:
10
,
?
JSON
.
stringify
(
value
)
receptionCount
:
2
,
:
String
(
value
)
notTouched
:
8
result
.
push
(
`
${
key
}
:
${
displayValue
}
`
)
},
recordingAnalysis
:
{
behaviorTags
:
[],
quantitativeIndicators
:
{
recordingCount
:
20
,
dealCount
:
5
,
defeatCount
:
3
,
dealRate
:
15
,
qualityScore
:
8
,
attackDefenseScore
:
11
,
recordingMissingRate
:
20
}
},
dressCodeWarning
:
{
warningCount
:
8
}
}
}
catch
(
e
)
{
return
[]
}
}
this
.
setData
({
return
result
behaviorInfo
:
data
},
})
getData
()
{
let
{
detailInfo
,
startStr
,
endStr
,
selectedMerchantObj
}
=
this
.
data
let
params
=
{
let
params
=
{
employeeId
:
detailInfo
.
employeeId
,
phone
:
detailInfo
.
employeePhone
,
scene
:
detailInfo
.
scene
employeeId
:
selectedMerchantObj
?.
employeeId
,
bizs
:
detailInfo
.
scene
,
startDate
:
startStr
,
endDate
:
endStr
,
merchantId
:
detailInfo
.
merchantId
}
}
api
.
getEmployeebehaviorData
(
params
)
wx
.
$util
.
showLoading
()
api
.
getEmployeebehaviorData
(
params
).
then
(
res
=>
{
wx
.
$util
.
hideLoading
()
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
data
.
recordingAnalysis
.
badList
=
this
.
safeObjectToLabelList
(
data
.
recordingAnalysis
.
badList
)
data
.
recordingAnalysis
.
ohterList
=
this
.
safeObjectToLabelList
(
data
.
recordingAnalysis
.
ohterList
)
this
.
setData
({
behaviorInfo
:
data
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
}).
catch
(()
=>
{
wx
.
$util
.
hideLoading
()
})
},
},
handleChangeMerchant
()
{
handleChangeMerchant
()
{
this
.
triggerEvent
(
'changeMerchant'
)
this
.
triggerEvent
(
'changeMerchant'
)
...
...
packageCrew/pages/peopleOverview/components/behaviorAnalysis/behaviorAnalysis.wxml
View file @
5d2654e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
</view>
</view>
<view class="merchant-change" bind:tap="handleChangeMerchant">
<view class="merchant-change" bind:tap="handleChangeMerchant">
<image src="{{IMG_URL}}analyse-merchant-icon.png" mode=""/>
<image src="{{IMG_URL}}analyse-merchant-icon.png" mode=""/>
<view class="name">{{merchantName}}</view>
<view class="name">{{
selectedMerchantObj.
merchantName}}</view>
<image src="{{IMG_URL}}arrow-down.png" mode=""/>
<image src="{{IMG_URL}}arrow-down.png" mode=""/>
</view>
</view>
...
@@ -68,17 +68,14 @@
...
@@ -68,17 +68,14 @@
</view>
</view>
</view>
</view>
<view class="tags-row">
<view class="tags-row" wx:for="{{tagRows}}" wx:key="index">
<view class="tags-label">弱项:</view>
<block wx:if="{{behaviorInfo.recordingAnalysis[item.key].length}}">
<view class="tags">
<view class="tags-label">{{item.label}}:</view>
<view class="tag danger" wx:for="{{weakTags}}" wx:key="label">{{item.label}}</view>
<view class="tags">
</view>
<view class="tag {{item.class}}" wx:for="{{behaviorInfo.recordingAnalysis[item.key]}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">{{subItem}}</view>
</view>
</view>
<view class="tags-row">
</block>
<view class="tags-label">其他项:</view>
<view class="tags">
<view class="tag {{item.type}}" wx:for="{{otherTags}}" wx:key="label">{{item.label}}</view>
</view>
</view>
</view>
<view class="grid grid-{{row.length}} stats-grid" wx:for="{{recordStatsRows}}" wx:for-item="row" wx:key="index">
<view class="grid grid-{{row.length}} stats-grid" wx:for="{{recordStatsRows}}" wx:for-item="row" wx:key="index">
...
...
packageCrew/pages/peopleOverview/components/line/line.js
View file @
5d2654e
...
@@ -23,10 +23,7 @@ Component({
...
@@ -23,10 +23,7 @@ Component({
},
},
observers
:
{
observers
:
{
'chartData'
:
function
(
data
)
{
'chartData'
:
function
(
data
)
{
setTimeout
(()
=>
{
this
.
initData
(
data
)
this
.
initData
(
data
)
},
3000
)
},
},
},
},
/**
/**
...
@@ -43,21 +40,20 @@ Component({
...
@@ -43,21 +40,20 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
onInitChart
(
xData
,
yData
)
{
onInitChart
(
xData
,
yData
,
yData2
)
{
console
.
log
(
xData
,
yData
,
this
.
ecComponent
)
console
.
log
(
this
.
ecComponent
)
this
.
ecComponent
&&
this
.
ecComponent
.
init
((
canvas
,
width
,
height
,
dpr
)
=>
{
this
.
ecComponent
&&
this
.
ecComponent
.
init
((
canvas
,
width
,
height
,
dpr
)
=>
{
console
.
log
(
canvas
,
width
,
height
,
dpr
)
const
chart
=
echarts
.
init
(
canvas
,
null
,
{
const
chart
=
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
width
:
width
,
height
:
height
,
height
:
height
,
devicePixelRatio
:
dpr
// new
devicePixelRatio
:
dpr
// new
});
});
console
.
log
(
chart
)
this
.
setOption
(
chart
,
xData
,
yData
,
yData2
);
this
.
setOption
(
chart
,
xData
,
yData
);
console
.
log
(
chart
,
xData
,
yData
,
yData2
)
return
chart
;
return
chart
;
})
})
},
},
setOption
(
chart
,
xData
,
yData
)
{
setOption
(
chart
,
xData
,
yData
,
yData2
)
{
let
maxSpan
=
xData
.
length
<
10
?
80
:
20
let
maxSpan
=
xData
.
length
<
10
?
80
:
20
// let start= xData.length < 10 ? 50 : 80
// let start= xData.length < 10 ? 50 : 80
var
option
=
{
var
option
=
{
...
@@ -172,31 +168,61 @@ Component({
...
@@ -172,31 +168,61 @@ Component({
}]
}]
}
}
}
}
},
{
showSymbol
:
false
,
data
:
yData2
,
type
:
'line'
,
lineStyle
:
{
type
:
'dashed'
},
itemStyle
:
{
color
:
"rgba(52, 123, 255, 1)"
,
},
// smooth: true,
color
:
this
.
data
.
color
,
areaStyle
:
{
color
:
{
type
:
'linear'
,
x
:
0
,
y
:
0
,
x2
:
0
,
y2
:
1
,
colorStops
:
[{
offset
:
0
,
color
:
'rgba(147, 170, 253, 1)'
// 顶部颜色
},
{
offset
:
1
,
color
:
'rgba(229, 234, 252, 0.31)'
// 底部颜色
}]
}
}
}
}
]
]
}
}
chart
.
setOption
(
option
)
chart
.
setOption
(
option
)
},
},
//初始化数据
//初始化数据
initData
(
data
)
{
initData
(
data
)
{
const
xData
=
[],
const
xData
=
[],
yData
=
[]
yData
=
[],
yData2
=
[]
const
[
x
,
y
,
y2
]
=
this
.
data
.
keys
const
[
x
,
y
,
y2
]
=
this
.
data
.
keys
data
.
forEach
(
item
=>
{
data
.
forEach
(
item
=>
{
xData
.
push
(
item
[
x
])
xData
.
push
(
item
[
x
])
yData
.
push
(
item
[
y
])
yData
.
push
(
item
[
y
])
yData2
.
push
(
item
[
y2
])
})
})
this
.
setData
({
this
.
setData
({
xData
,
xData
,
yData
yData
,
})
yData2
this
.
onInitChart
(
xData
,
yData
)
})
this
.
onInitChart
(
xData
,
yData
,
yData2
)
},
},
},
},
ready
()
{
ready
()
{
// 获取组件
// 获取组件
this
.
ecComponent
=
this
.
selectComponent
(
'#mychart-dom-line'
);
this
.
ecComponent
=
this
.
selectComponent
(
'#mychart-dom-line'
);
console
.
log
(
'2222'
,
this
.
ecComponent
)
}
}
})
})
\ No newline at end of file
\ No newline at end of file
packageCrew/pages/peopleOverview/components/personalPerformance/personalPerformance.js
View file @
5d2654e
...
@@ -3,40 +3,40 @@ import api from '~/api/crew/index'
...
@@ -3,40 +3,40 @@ import api from '~/api/crew/index'
const
MERCHANT_DATA_LIST
=
[{
const
MERCHANT_DATA_LIST
=
[{
text
:
'总产值'
,
text
:
'总产值'
,
width
:
240
,
width
:
240
,
key
:
'
chanzhi
'
key
:
'
totalValue
'
},
{
},
{
text
:
'客单价'
,
text
:
'客单价'
,
key
:
'
kedan
'
,
key
:
'
averagePrice
'
,
width
:
140
width
:
140
},
{
},
{
text
:
'总触客数'
,
text
:
'总触客数'
,
key
:
'
chuke
'
,
key
:
'
totalCustomers
'
,
width
:
140
width
:
140
},
{
},
{
text
:
'总成交数'
,
text
:
'总成交数'
,
key
:
'
chengjiao
'
,
key
:
'
totalDeals
'
,
width
:
140
width
:
140
}]
}]
const
INDEX_DATA_LIST
=
[
const
INDEX_DATA_LIST
=
[
{
{
text
:
'总产值'
,
text
:
'总产值'
,
key
:
'total
Output
Value'
,
key
:
'totalValue'
,
ratioKey
:
'total
OutputValueMom
'
,
ratioKey
:
'total
ValueRate
'
,
background
:
'linear-gradient(90deg, #3d76fc 0%, #4da6ff 100%)'
,
background
:
'linear-gradient(90deg, #3d76fc 0%, #4da6ff 100%)'
,
width
:
288
,
width
:
288
,
tip
:
'当前员工+门店+业务+统计周期下,全部订单金额总和'
,
tip
:
'当前员工+门店+业务+统计周期下,全部订单金额总和'
,
},
},
{
{
text
:
'客单价'
,
text
:
'客单价'
,
key
:
'av
gCustomer
Price'
,
key
:
'av
erage
Price'
,
ratioKey
:
'av
gCustomerPriceMom
'
,
ratioKey
:
'av
eragePriceRate
'
,
background
:
'linear-gradient(90deg, #42cccf 0%, #36d9a5 100%)'
,
background
:
'linear-gradient(90deg, #42cccf 0%, #36d9a5 100%)'
,
width
:
208
,
width
:
208
,
tip
:
'当前员工+门店+业务+统计周期下,产值/升级订单数'
,
tip
:
'当前员工+门店+业务+统计周期下,产值/升级订单数'
,
},
},
{
{
text
:
'日报完成率'
,
text
:
'日报完成率'
,
key
:
'daily
ReportCompletion
Rate'
,
key
:
'daily
Performance
Rate'
,
background
:
'linear-gradient(90deg, #5e69fff0 0%, #4079ffa6 100%)'
,
background
:
'linear-gradient(90deg, #5e69fff0 0%, #4079ffa6 100%)'
,
width
:
192
,
width
:
192
,
tip
:
'当前员工+门店+业务+统计周期下,完成日报天数/总天数'
,
tip
:
'当前员工+门店+业务+统计周期下,完成日报天数/总天数'
,
...
@@ -44,15 +44,15 @@ const INDEX_DATA_LIST = [
...
@@ -44,15 +44,15 @@ const INDEX_DATA_LIST = [
]
]
const
ANALYSE_ITEMS
=
[
const
ANALYSE_ITEMS
=
[
{
id
:
'preSalesContactCount'
,
posClass
:
'arrival'
,
name
:
'触客数(售前)'
,
key
:
'preSale
sContactCount'
,
momKey
:
'preSalesContactCountMom
'
},
{
id
:
'preSalesContactCount'
,
posClass
:
'arrival'
,
name
:
'触客数(售前)'
,
key
:
'preSale
CustomerCount'
,
momKey
:
'preSaleCustomerCountRate
'
},
{
id
:
'afterSalesContactCount'
,
posClass
:
'after'
,
name
:
'触客数(售后)'
,
key
:
'
afterSalesContactCount'
,
momKey
:
'afterSalesContactCountMom
'
},
{
id
:
'afterSalesContactCount'
,
posClass
:
'after'
,
name
:
'触客数(售后)'
,
key
:
'
postSaleCustomerCount'
,
momKey
:
'postSaleCustomerCountRate
'
},
{
id
:
'totalContactCount'
,
posClass
:
'total_to_store'
,
name
:
'总触客数'
,
key
:
'
totalContactCount'
,
momKey
:
'totalContactCountMom
'
},
{
id
:
'totalContactCount'
,
posClass
:
'total_to_store'
,
name
:
'总触客数'
,
key
:
'
customerCount'
,
momKey
:
'customerCountRate
'
},
{
id
:
'preSalesConversionRate'
,
posClass
:
'sqzhuanhualv'
,
name
:
'售前转化率'
,
key
:
'preSale
sConversionRate'
,
momKey
:
'preSalesConversionRateMom
'
,
valueType
:
'rate'
},
{
id
:
'preSalesConversionRate'
,
posClass
:
'sqzhuanhualv'
,
name
:
'售前转化率'
,
key
:
'preSale
ConversionRate'
,
momKey
:
'preSaleConversionRateRate
'
,
valueType
:
'rate'
},
{
id
:
'afterSalesConversionRate'
,
posClass
:
'shzhuanhualv'
,
name
:
'售后转化率'
,
key
:
'
afterSalesConversionRate'
,
momKey
:
'afterSalesConversionRateMom
'
,
valueType
:
'rate'
},
{
id
:
'afterSalesConversionRate'
,
posClass
:
'shzhuanhualv'
,
name
:
'售后转化率'
,
key
:
'
postSaleConversionRate'
,
momKey
:
'postSaleConversionRateRate
'
,
valueType
:
'rate'
},
{
id
:
'conversionRate'
,
posClass
:
'percent'
,
name
:
'转化率'
,
key
:
'conversionRate'
,
momKey
:
'conversionRate
Mom
'
,
valueType
:
'rate'
},
{
id
:
'conversionRate'
,
posClass
:
'percent'
,
name
:
'转化率'
,
key
:
'conversionRate'
,
momKey
:
'conversionRate
Rate
'
,
valueType
:
'rate'
},
{
id
:
'preSalesDealCount'
,
posClass
:
'sqordernum'
,
name
:
'成交数(售前)'
,
key
:
'preSale
sDealCount'
,
momKey
:
'preSalesDealCountMom
'
},
{
id
:
'preSalesDealCount'
,
posClass
:
'sqordernum'
,
name
:
'成交数(售前)'
,
key
:
'preSale
DealCount'
,
momKey
:
'preSaleDealCountRate
'
},
{
id
:
'afterSalesDealCount'
,
posClass
:
'shordernum'
,
name
:
'成交数(售后)'
,
key
:
'
afterSalesDealCount'
,
momKey
:
'afterSalesDealCountMom
'
},
{
id
:
'afterSalesDealCount'
,
posClass
:
'shordernum'
,
name
:
'成交数(售后)'
,
key
:
'
postSaleDealCount'
,
momKey
:
'postSaleDealCountRate
'
},
{
id
:
'totalDealCount'
,
posClass
:
'make'
,
name
:
'总成交数'
,
key
:
'
totalDealCount'
,
momKey
:
'totalDealCountMom
'
},
{
id
:
'totalDealCount'
,
posClass
:
'make'
,
name
:
'总成交数'
,
key
:
'
dealCount'
,
momKey
:
'dealCountRate
'
},
]
]
const
STATS_ITEMS
=
[
const
STATS_ITEMS
=
[
...
@@ -60,37 +60,37 @@ const STATS_ITEMS = [
...
@@ -60,37 +60,37 @@ const STATS_ITEMS = [
label
:
'整车延保'
,
label
:
'整车延保'
,
key
:
'yanbao'
,
key
:
'yanbao'
,
dealCountKey
:
'vehicleWarrantyDealCount'
,
dealCountKey
:
'vehicleWarrantyDealCount'
,
penetrationRateKey
:
'vehicleWarrantyPenetration
Rat
e'
,
penetrationRateKey
:
'vehicleWarrantyPenetration
Employe
e'
,
penetrationTargetKey
:
'vehicleWarrantyPenetration
BottomTarget
'
,
penetrationTargetKey
:
'vehicleWarrantyPenetration
EmployeeDD
'
,
conversionRateKey
:
'vehicleWarrantyConversionRate'
,
conversionRateKey
:
'vehicleWarrantyConversionRate'
,
conversionTargetKey
:
'vehicleWarrantyConversion
BottomTarget
'
,
conversionTargetKey
:
'vehicleWarrantyConversion
RateDD
'
,
},
},
{
{
label
:
'安心包'
,
label
:
'安心包'
,
key
:
'anxinbao'
,
key
:
'anxinbao'
,
dealCountKey
:
'safetyPack
age
DealCount'
,
dealCountKey
:
'safetyPackDealCount'
,
penetrationRateKey
:
'safetyPack
agePenetrationRat
e'
,
penetrationRateKey
:
'safetyPack
PenetrationEmploye
e'
,
penetrationTargetKey
:
'safetyPack
agePenetrationBottomTarget
'
,
penetrationTargetKey
:
'safetyPack
PenetrationEmployeeDD
'
,
conversionRateKey
:
'safetyPack
age
ConversionRate'
,
conversionRateKey
:
'safetyPackConversionRate'
,
conversionTargetKey
:
'safetyPack
ageConversionBottomTarget
'
,
conversionTargetKey
:
'safetyPack
ConversionRateDD
'
,
},
},
{
{
label
:
'轮胎'
,
label
:
'轮胎'
,
key
:
'luntai'
,
key
:
'luntai'
,
dealCountKey
:
'tire
Warranty
DealCount'
,
dealCountKey
:
'tireDealCount'
,
penetrationRateKey
:
'tire
WarrantyPenetrationRat
e'
,
penetrationRateKey
:
'tire
PenetrationEmploye
e'
,
penetrationTargetKey
:
'tire
WarrantyPenetrationBottomTarget
'
,
penetrationTargetKey
:
'tire
PenetrationEmployeeDD
'
,
conversionRateKey
:
'tire
Warranty
ConversionRate'
,
conversionRateKey
:
'tireConversionRate'
,
conversionTargetKey
:
'tire
WarrantyConversionBottomTarget
'
,
conversionTargetKey
:
'tire
ConversionRateDD
'
,
},
},
{
{
label
:
'电池'
,
label
:
'电池'
,
key
:
'dianchi'
,
key
:
'dianchi'
,
dealCountKey
:
'battery
Warranty
DealCount'
,
dealCountKey
:
'batteryDealCount'
,
penetrationRateKey
:
'battery
WarrantyPenetrationRat
e'
,
penetrationRateKey
:
'battery
PenetrationEmploye
e'
,
penetrationTargetKey
:
'battery
WarrantyPenetrationBottomTarget
'
,
penetrationTargetKey
:
'battery
PenetrationEmployeeDD
'
,
conversionRateKey
:
'battery
Warranty
ConversionRate'
,
conversionRateKey
:
'batteryConversionRate'
,
conversionTargetKey
:
'battery
WarrantyConversionBottomTarget
'
,
conversionTargetKey
:
'battery
ConversionRateDD
'
,
},
},
]
]
...
@@ -98,32 +98,32 @@ const QINGGAI_STATS_ITEMS = [
...
@@ -98,32 +98,32 @@ const QINGGAI_STATS_ITEMS = [
{
{
label
:
'原厂车窗膜'
,
label
:
'原厂车窗膜'
,
key
:
'chechuangmo'
,
key
:
'chechuangmo'
,
dealCountKey
:
'windowFilm
Deal
Count'
,
dealCountKey
:
'windowFilmCount'
,
avgOutputKey
:
'windowFilm
PerCarOutput
'
,
avgOutputKey
:
'windowFilm
Value
'
,
penetrationRateKey
:
'windowFilmPenetrationRate'
,
penetrationRateKey
:
'windowFilmPenetration
Employee
Rate'
,
penetrationTargetKey
:
'
windowFilmPenetrationBottomTarget
'
,
penetrationTargetKey
:
''
,
conversionRateKey
:
'windowFilmConversion
Rate
'
,
conversionRateKey
:
'windowFilmConversion'
,
conversionTargetKey
:
'
windowFilmConversionBottomTarget
'
,
conversionTargetKey
:
''
,
},
},
{
{
label
:
'原厂车身膜'
,
label
:
'原厂车身膜'
,
key
:
'cheshenmo'
,
key
:
'cheshenmo'
,
dealCountKey
:
'
carB
odyFilmDealCount'
,
dealCountKey
:
'
b
odyFilmDealCount'
,
avgOutputKey
:
'
carBodyFilmPerCarOutput
'
,
avgOutputKey
:
'
bodyFilmValue
'
,
penetrationRateKey
:
'
carBodyFilmPenetrationRat
e'
,
penetrationRateKey
:
'
bodyFilmPenetrationEmploye
e'
,
penetrationTargetKey
:
'
carBodyFilmPenetrationBottomTarget
'
,
penetrationTargetKey
:
''
,
conversionRateKey
:
'
carBodyFilmConversionRate
'
,
conversionRateKey
:
'
bodyFilmConversion
'
,
conversionTargetKey
:
'
carBodyFilmConversionBottomTarget
'
,
conversionTargetKey
:
''
,
},
},
{
{
label
:
'原厂精品附件'
,
label
:
'原厂精品附件'
,
key
:
'jingpin'
,
key
:
'jingpin'
,
dealCountKey
:
'accessoriesDealCount'
,
dealCountKey
:
'accessoriesDealCount'
,
avgOutputKey
:
'accessories
PerCarOutput
'
,
avgOutputKey
:
'accessories
Value
'
,
penetrationRateKey
:
'accessoriesPenetration
Rat
e'
,
penetrationRateKey
:
'accessoriesPenetration
Employe
e'
,
penetrationTargetKey
:
'
accessoriesPenetrationBottomTarget
'
,
penetrationTargetKey
:
''
,
conversionRateKey
:
'accessoriesConversion
Rate
'
,
conversionRateKey
:
'accessoriesConversion'
,
conversionTargetKey
:
'
accessoriesConversionBottomTarget
'
,
conversionTargetKey
:
''
,
},
},
]
]
...
@@ -178,19 +178,6 @@ const formatThousands = (v) => {
...
@@ -178,19 +178,6 @@ const formatThousands = (v) => {
return
isNeg
?
`-
${
res
}
`
:
res
return
isNeg
?
`-
${
res
}
`
:
res
}
}
const
formatRate
=
(
val
)
=>
{
if
(
val
===
null
||
val
===
undefined
||
val
===
''
)
return
'-'
return
`
${
val
}
%`
}
const
formatMom
=
(
val
)
=>
{
if
(
val
===
null
||
val
===
undefined
)
return
'-'
const
s
=
String
(
val
).
trim
()
if
(
!
s
)
return
'-'
if
(
s
.
includes
(
'%'
)
||
s
.
includes
(
'%'
))
return
s
return
`
${
s
}
%`
}
const
parseNumeric
=
(
val
)
=>
{
const
parseNumeric
=
(
val
)
=>
{
const
s
=
typeof
val
===
'string'
?
val
.
trim
()
:
val
const
s
=
typeof
val
===
'string'
?
val
.
trim
()
:
val
if
(
s
===
null
||
s
===
undefined
||
(
typeof
s
===
'string'
&&
s
===
''
))
return
null
if
(
s
===
null
||
s
===
undefined
||
(
typeof
s
===
'string'
&&
s
===
''
))
return
null
...
@@ -200,7 +187,17 @@ const parseNumeric = (val) => {
...
@@ -200,7 +187,17 @@ const parseNumeric = (val) => {
}
}
const
getValueColor
=
(
val
)
=>
{
const
getValueColor
=
(
val
)
=>
{
const
n
=
parseNumeric
(
val
)
let
n
=
null
if
(
typeof
val
===
'string'
)
{
const
cleaned
=
val
.
replace
(
/%/g
,
''
).
replace
(
/,/g
,
''
)
n
=
parseFloat
(
cleaned
)
if
(
isNaN
(
n
))
n
=
null
}
else
if
(
typeof
val
===
'number'
)
{
n
=
val
}
else
{
n
=
null
}
console
.
log
(
n
,
'1111111111'
)
if
(
n
===
null
)
return
'#999EA8'
if
(
n
===
null
)
return
'#999EA8'
if
(
n
>
0
)
return
'#FF0000'
if
(
n
>
0
)
return
'#FF0000'
if
(
n
<
0
)
return
'#35C376'
if
(
n
<
0
)
return
'#35C376'
...
@@ -208,19 +205,31 @@ const getValueColor = (val) => {
...
@@ -208,19 +205,31 @@ const getValueColor = (val) => {
}
}
const
getMomArrow
=
(
val
)
=>
{
const
getMomArrow
=
(
val
)
=>
{
const
n
=
parseNumeric
(
val
)
const
parsePercentage
=
(
value
)
=>
{
if
(
typeof
value
!==
'string'
)
return
parseNumeric
?.(
value
)
??
null
const
cleaned
=
value
.
replace
(
/%/g
,
''
).
replace
(
/,/g
,
''
)
const
num
=
parseFloat
(
cleaned
)
return
isNaN
(
num
)
?
null
:
num
}
const
n
=
parsePercentage
(
val
)
if
(
n
===
null
)
return
''
if
(
n
===
null
)
return
''
if
(
n
>
0
)
return
`
${
this
.
data
.
IMG_URL
}
icon-red-rise.png`
if
(
n
>
0
)
return
`
${
IMG_URL
}
icon-red-rise.png`
if
(
n
<
0
)
return
`
${
this
.
data
.
IMG_URL
}
icon-green-decline.png`
if
(
n
<
0
)
return
`
${
IMG_URL
}
icon-green-decline.png`
return
`
${
this
.
data
.
IMG_URL
}
just01.png`
return
`
${
IMG_URL
}
just01.png`
}
}
const
getIndexMomArrow
=
(
val
)
=>
{
const
getIndexMomArrow
=
(
val
)
=>
{
const
n
=
parseNumeric
(
val
)
const
parsePercentage
=
(
value
)
=>
{
if
(
typeof
value
!==
'string'
)
return
parseNumeric
?.(
value
)
??
null
const
cleaned
=
value
.
replace
(
/%/g
,
''
).
replace
(
/,/g
,
''
)
const
num
=
parseFloat
(
cleaned
)
return
isNaN
(
num
)
?
null
:
num
}
const
n
=
parsePercentage
(
val
)
if
(
n
===
null
)
return
''
if
(
n
===
null
)
return
''
if
(
n
>
0
)
return
`
${
this
.
data
.
IMG_URL
}
rise.png`
if
(
n
>
0
)
return
`
${
IMG_URL
}
rise.png`
if
(
n
<
0
)
return
`
${
this
.
data
.
IMG_URL
}
decline.png`
if
(
n
<
0
)
return
`
${
IMG_URL
}
decline.png`
return
`
${
this
.
data
.
IMG_URL
}
icon-white-just01.png`
return
`
${
IMG_URL
}
icon-white-just01.png`
}
}
const
getQueryTypeFromDateScreen
=
(
ctx
)
=>
{
const
getQueryTypeFromDateScreen
=
(
ctx
)
=>
{
...
@@ -237,13 +246,14 @@ Component({
...
@@ -237,13 +246,14 @@ Component({
type
:
Object
,
type
:
Object
,
value
:
{},
value
:
{},
observer
:
function
()
{
observer
:
function
()
{
this
.
refreshViewModel
()
},
},
}
},
selectedMerchantObj
:
{
type
:
Object
}
},
},
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
queryType
:
'day'
,
dateRange
:
{
startDay
:
''
,
endDay
:
''
},
dateRange
:
{
startDay
:
''
,
endDay
:
''
},
statCards
:
[],
statCards
:
[],
analyseChunks
:
[],
analyseChunks
:
[],
...
@@ -261,86 +271,17 @@ Component({
...
@@ -261,86 +271,17 @@ Component({
lineColr
:
'#2C66F7'
,
lineColr
:
'#2C66F7'
,
tickCount
:
10
tickCount
:
10
},
},
lineData
:
[
{
lineData
:
[]
"time"
:
"07月"
,
"startTime"
:
"2025-07-01"
,
"endTime"
:
"2025-07-31"
,
"output"
:
0
,
"storeCount"
:
0
,
"ratio"
:
0
},
{
"time"
:
"08月"
,
"startTime"
:
"2025-08-01"
,
"endTime"
:
"2025-08-31"
,
"output"
:
0.0300
,
"storeCount"
:
1
,
"ratio"
:
0
},
{
"time"
:
"09月"
,
"startTime"
:
"2025-09-01"
,
"endTime"
:
"2025-09-30"
,
"output"
:
48412.4400
,
"storeCount"
:
1
,
"ratio"
:
0
},
{
"time"
:
"10月"
,
"startTime"
:
"2025-10-01"
,
"endTime"
:
"2025-10-31"
,
"output"
:
24451.0000
,
"storeCount"
:
1
,
"ratio"
:
0
},
{
"time"
:
"11月"
,
"startTime"
:
"2025-11-01"
,
"endTime"
:
"2025-11-30"
,
"output"
:
0
,
"storeCount"
:
0
,
"ratio"
:
0
},
{
"time"
:
"12月"
,
"startTime"
:
"2025-12-01"
,
"endTime"
:
"2025-12-31"
,
"output"
:
101.0100
,
"storeCount"
:
1
,
"ratio"
:
0
},
{
"time"
:
"01月"
,
"startTime"
:
"2026-01-01"
,
"endTime"
:
"2026-01-31"
,
"output"
:
226.0000
,
"storeCount"
:
1
,
"ratio"
:
0
},
{
"time"
:
"02月"
,
"startTime"
:
"2026-02-01"
,
"endTime"
:
"2026-02-28"
,
"output"
:
300433.1000
,
"storeCount"
:
1
,
"ratio"
:
0
}
]
},
},
// lifetimes: {
// attached: function () {
// this.refreshViewModel()
// },
// },
methods
:
{
methods
:
{
onDateSearch
(
e
)
{
onDateSearch
(
e
)
{
const
queryType
=
getQueryTypeFromDateScreen
(
this
)
this
.
setData
({
const
payload
=
{
...(
e
?.
detail
||
{})
}
startStr
:
e
.
detail
.
startDay
?.
replace
(
/
\/
/g
,
'-'
),
this
.
setData
(
endStr
:
e
.
detail
.
endDay
?.
replace
(
/
\/
/g
,
'-'
),
{
dateType
:
e
.
detail
.
timeDimension
queryType
,
},
()
=>
{
dateRange
:
{
this
.
refreshViewModel
()
startDay
:
payload
.
startDay
?.
replace
(
/
\/
/g
,
'-'
)
||
''
,
})
endDay
:
payload
.
endDay
?.
replace
(
/
\/
/g
,
'-'
)
||
''
,
},
},
()
=>
{
this
.
refreshViewModel
()
this
.
triggerEvent
(
'search'
,
{
...
payload
,
queryType
})
},
)
},
},
openHelp
(
e
)
{
openHelp
(
e
)
{
this
.
_helpDialogSeq
=
(
this
.
_helpDialogSeq
||
0
)
+
1
this
.
_helpDialogSeq
=
(
this
.
_helpDialogSeq
||
0
)
+
1
...
@@ -366,117 +307,150 @@ Component({
...
@@ -366,117 +307,150 @@ Component({
},
350
)
},
350
)
},
},
async
refreshViewModel
()
{
async
refreshViewModel
()
{
// await Promise.all([
let
{
detailInfo
,
startStr
,
endStr
,
dateType
,
selectedMerchantObj
}
=
this
.
data
// getMerchantBiGoodsSummaryData(),
let
params
=
{
// getMerchantBiEmployeeSummaryData(),
employeePhone
:
detailInfo
.
employeePhone
,
// getMerchantBiOutputTrendSceneData(),
dateType
,
// getAnalysisStoreEmployeeRankData(),
bizs
:
detailInfo
.
scene
,
// ]);
startDate
:
startStr
,
const
staffData
=
this
.
data
.
staffData
||
this
.
properties
.
staffData
||
{}
endDate
:
endStr
,
const
goodsCategorySummary
=
this
.
data
.
goodsCategorySummary
||
this
.
properties
.
goodsCategorySummary
||
{}
merchantId
:
selectedMerchantObj
.
merchantId
const
businessType
=
this
.
data
.
businessType
||
this
.
properties
.
businessType
||
'yanbao'
}
const
isBrand
=
typeof
this
.
data
.
isBrand
===
'boolean'
?
this
.
data
.
isBrand
:
this
.
properties
.
isBrand
wx
.
$util
.
showLoading
()
const
showSummaryAnalysis
=
businessType
!==
'quanyi'
&&
!!
isBrand
api
.
getEmployeePerformanceData
(
params
).
then
(
res
=>
{
// 假数据
wx
.
$util
.
hideLoading
()
const
merchantData
=
{
chanzhi
:
'45435456.00'
,
kedan
:
'6583'
,
chuke
:
'356'
,
chengjiao
:
'1850'
}
let
{
code
,
data
,
message
}
=
res
const
statMerchants
=
MERCHANT_DATA_LIST
.
map
((
item
)
=>
{
if
(
code
==
0
)
{
const
value
=
formatNumber
(
merchantData
[
item
.
key
])
const
staffData
=
data
?.
employeeData
||
{}
return
{...
item
,
value
}
const
merchantData
=
data
?.
storeData
||
{}
})
const
showSummaryAnalysis
=
detailInfo
?.
scene
==
1
||
detailInfo
?.
scene
==
2
const
statCards
=
INDEX_DATA_LIST
.
map
((
item
)
=>
{
const
statMerchants
=
MERCHANT_DATA_LIST
.
map
((
item
)
=>
{
const
value
=
item
.
key
===
'dailyReportCompletionRate'
?
formatRate
(
staffData
[
item
.
key
])
:
formatNumber
(
staffData
[
item
.
key
])
const
value
=
formatNumber
(
merchantData
[
item
.
key
])
const
momRaw
=
item
.
ratioKey
?
staffData
[
item
.
ratioKey
]
:
null
return
{...
item
,
value
}
const
momValue
=
item
.
ratioKey
?
formatMom
(
momRaw
)
:
''
})
const
momColor
=
item
.
ratioKey
?
getValueColor
(
momRaw
)
:
'#999EA8'
const
statCards
=
INDEX_DATA_LIST
.
map
((
item
)
=>
{
const
momArrow
=
item
.
ratioKey
?
getIndexMomArrow
(
momRaw
)
:
''
const
value
=
item
.
key
===
'dailyPerformanceRate'
?
staffData
[
item
.
key
]
:
formatNumber
(
staffData
[
item
.
key
])
return
{
const
momRaw
=
item
.
ratioKey
?
staffData
[
item
.
ratioKey
]
:
null
...
item
,
const
momValue
=
item
.
ratioKey
?
momRaw
:
''
value
,
console
.
log
(
momRaw
,
momValue
,
'22222222'
)
momValue
,
const
momColor
=
item
.
ratioKey
?
getValueColor
(
momRaw
)
:
'#999EA8'
momColor
,
const
momArrow
=
item
.
ratioKey
?
getIndexMomArrow
(
momRaw
)
:
''
momArrow
,
console
.
log
(
momColor
,
momArrow
)
showMom
:
!!
item
.
ratioKey
,
return
{
}
...
item
,
})
value
,
momValue
,
momColor
,
momArrow
,
showMom
:
!!
item
.
ratioKey
,
}
})
const
analyseChunks
=
ANALYSE_ITEMS
.
map
((
item
)
=>
{
const
raw
=
staffData
[
item
.
key
]
const
momRaw
=
staffData
[
item
.
momKey
]
const
value
=
item
.
valueType
===
'rate'
?
raw
:
formatDash
(
raw
)
const
momValue
=
momRaw
return
{
id
:
item
.
id
,
posClass
:
item
.
posClass
,
name
:
item
.
name
,
valueType
:
item
.
valueType
||
'count'
,
value
:
item
.
valueType
===
'rate'
?
''
:
value
,
rateValue
:
item
.
valueType
===
'rate'
?
value
:
''
,
momValue
,
momColor
:
getValueColor
(
momRaw
),
momArrow
:
getMomArrow
(
momRaw
),
showMom
:
true
,
}
})
const
sourceItems
=
detailInfo
?.
scene
==
2
?
QINGGAI_STATS_ITEMS
:
STATS_ITEMS
const
businessStatsRows
=
sourceItems
.
map
((
item
)
=>
{
if
(
detailInfo
?.
scene
==
2
)
{
return
{
key
:
item
.
key
,
label
:
item
.
label
,
cols
:
[
{
label
:
'成交数'
,
value
:
(
staffData
?.[
item
.
dealCountKey
]
??
''
)
===
''
?
'-'
:
staffData
?.[
item
.
dealCountKey
]
},
{
label
:
'单车采购产值'
,
value
:
(
staffData
?.[
item
.
avgOutputKey
]
??
''
)
===
''
?
'-'
:
staffData
?.[
item
.
avgOutputKey
],
colorClass
:
'blue'
},
{
label
:
'渗透率'
,
value
:
item
.
penetrationRateKey
?
staffData
?.[
item
.
penetrationRateKey
]
:
'-'
,
colorClass
:
'blue'
},
{
label
:
'转化率'
,
value
:
item
.
conversionRateKey
?
staffData
?.[
item
.
conversionRateKey
]
:
'-'
,
colorClass
:
'blue'
},
],
}
}
const
analyseChunks
=
ANALYSE_ITEMS
.
map
((
item
)
=>
{
const
penetrationTarget
=
item
.
penetrationTargetKey
?
staffData
?.[
item
.
penetrationTargetKey
]
:
'-'
const
raw
=
staffData
[
item
.
key
]
const
conversionTarget
=
item
.
conversionTargetKey
?
staffData
?.[
item
.
conversionTargetKey
]
:
'-'
const
momRaw
=
staffData
[
item
.
momKey
]
return
{
const
value
=
item
.
valueType
===
'rate'
?
formatRate
(
raw
)
:
formatDash
(
raw
)
key
:
item
.
key
,
const
momValue
=
formatMom
(
momRaw
)
label
:
item
.
label
,
return
{
cols
:
[
id
:
item
.
id
,
{
label
:
'成交数'
,
value
:
(
staffData
?.[
item
.
dealCountKey
]
??
''
)
===
''
?
'-'
:
staffData
?.[
item
.
dealCountKey
]
},
posClass
:
item
.
posClass
,
{
label
:
'渗透率'
,
value
:
item
.
penetrationRateKey
?
staffData
?.[
item
.
penetrationRateKey
]
:
'-'
,
subLabel
:
penetrationTarget
===
'-'
?
''
:
`兜底目标
${
penetrationTarget
}
`
,
colorClass
:
'blue'
},
name
:
item
.
name
,
{
label
:
'转化率'
,
value
:
item
.
conversionRateKey
?
staffData
?.[
item
.
conversionRateKey
]
:
'-'
,
subLabel
:
conversionTarget
===
'-'
?
''
:
`兜底目标
${
conversionTarget
}
`
,
colorClass
:
'blue'
},
valueType
:
item
.
valueType
||
'count'
,
],
value
:
item
.
valueType
===
'rate'
?
''
:
value
,
}
rateValue
:
item
.
valueType
===
'rate'
?
value
:
''
,
})
momValue
,
momColor
:
getValueColor
(
momRaw
),
momArrow
:
getMomArrow
(
momRaw
),
showMom
:
this
.
data
.
queryType
!==
'self'
,
}
})
const
sourceItems
=
businessType
===
'qinggai'
?
QINGGAI_STATS_ITEMS
:
STATS_ITEMS
const
helpTextArr
=
detailInfo
?.
scene
==
2
?
HELP_TEXT_QINGGAI
:
HELP_TEXT_DEFAULT
const
businessStatsRows
=
sourceItems
.
map
((
item
)
=>
{
this
.
getTrendList
()
if
(
businessType
===
'qinggai'
)
{
this
.
setData
({
return
{
statMerchants
,
key
:
item
.
key
,
statCards
,
label
:
item
.
label
,
analyseChunks
,
cols
:
[
businessStatsRows
,
{
label
:
'成交数'
,
value
:
goodsCategorySummary
?.[
item
.
dealCountKey
]
||
'-'
},
showSummaryAnalysis
,
{
label
:
'单车采购产值'
,
value
:
goodsCategorySummary
?.[
item
.
avgOutputKey
]
||
'-'
,
colorClass
:
'blue'
},
helpTextArr
{
label
:
'渗透率'
,
value
:
formatRate
(
goodsCategorySummary
?.[
item
.
penetrationRateKey
]),
colorClass
:
'blue'
},
})
{
label
:
'转化率'
,
value
:
formatRate
(
goodsCategorySummary
?.[
item
.
conversionRateKey
]),
colorClass
:
'blue'
},
}
else
{
],
wx
.
$util
.
showToast
(
message
)
}
}
}
}).
catch
(()
=>
{
wx
.
$util
.
hideLoading
()
const
penetrationTarget
=
formatRate
(
goodsCategorySummary
?.[
item
.
penetrationTargetKey
])
})
const
conversionTarget
=
formatRate
(
goodsCategorySummary
?.[
item
.
conversionTargetKey
])
},
return
{
key
:
item
.
key
,
// 获取个人产值趋势及达成率
label
:
item
.
label
,
getTrendList
()
{
cols
:
[
let
{
detailInfo
,
startStr
,
endStr
,
dateType
,
selectedMerchantObj
}
=
this
.
data
{
label
:
'成交数'
,
value
:
goodsCategorySummary
?.[
item
.
dealCountKey
]
||
'-'
},
let
params
=
{
{
label
:
'渗透率'
,
value
:
formatRate
(
goodsCategorySummary
?.[
item
.
penetrationRateKey
]),
subLabel
:
penetrationTarget
===
'-'
?
''
:
`兜底目标
${
penetrationTarget
}
`
,
colorClass
:
'blue'
},
staffUuids
:
[
selectedMerchantObj
.
employeeId
],
{
label
:
'转化率'
,
value
:
formatRate
(
goodsCategorySummary
?.[
item
.
conversionRateKey
]),
subLabel
:
conversionTarget
===
'-'
?
''
:
`兜底目标
${
conversionTarget
}
`
,
colorClass
:
'blue'
},
cycleType
:
dateType
,
],
bizs
:
detailInfo
.
scene
,
}
startTime
:
startStr
,
})
endTime
:
endStr
,
merchantIds
:
[
selectedMerchantObj
.
merchantId
]
const
helpTextArr
=
businessType
===
'qinggai'
?
HELP_TEXT_QINGGAI
:
HELP_TEXT_DEFAULT
}
api
.
getEmployeeOutPutTrendApi
(
params
).
then
(
res
=>
{
const
rawTrend
=
this
.
data
.
trendData
||
this
.
properties
.
trendData
||
[]
let
{
code
,
data
,
message
}
=
res
const
trendList
=
Array
.
isArray
(
rawTrend
)
if
(
code
==
0
)
{
?
rawTrend
.
map
((
i
)
=>
({
data
?.
list
?.
forEach
((
val
,
index
)
=>
{
date
:
formatDash
(
i
?.
date
||
i
?.
stattime
||
i
?.
time
),
val
.
predictOutput
=
data
?.
listpredict
?.[
index
]
?
data
?.
listpredict
?.[
index
].
output
:
''
value
:
formatDash
(
i
?.
value
??
i
?.
output
??
i
?.
totalOutputValue
),
})
}))
this
.
setData
({
trendList
:
data
?.
list
||
[]})
:
[]
}
else
{
wx
.
$util
.
showToast
(
message
)
this
.
setData
({
}
statMerchants
,
})
statCards
,
analyseChunks
,
businessStatsRows
,
showSummaryAnalysis
,
helpTextArr
,
trendList
,
})
},
},
handleChangeMerchant
(
e
)
{
handleChangeMerchant
(
e
)
{
let
merchantId
=
123
let
{
merchantList
,
selectedMerchantObj
}
=
this
.
data
this
.
setData
({
this
.
setData
({
showSelectPopup
:
true
,
showSelectPopup
:
true
,
selectOptions
:
[{
merchantId
:
123
,
merchantName
:
'明明4s店1'
}]
,
selectOptions
:
merchantList
,
selectValue
:
[
merchantId
]
selectValue
:
selectedMerchantObj
.
merchantId
?
[
selectedMerchantObj
.
merchantId
]
:
[
]
})
})
},
},
handlePopupConfirm
(
e
)
{
handlePopupConfirm
(
e
)
{
let
{
values
,
items
}
=
e
.
detail
let
{
items
}
=
e
.
detail
console
.
log
(
values
)
let
thisPage
=
wx
.
$router
.
getPageInstance
()
thisPage
.
setData
({
selectedMerchantObj
:
{
merchantId
:
items
[
0
].
merchantId
,
merchantName
:
items
[
0
]?.
merchantName
,
employeeId
:
items
[
0
].
employeeId
}
})
this
.
hideSelectPopup
()
},
},
hideSelectPopup
()
{
hideSelectPopup
()
{
...
...
packageCrew/pages/peopleOverview/components/personalPerformance/personalPerformance.wxml
View file @
5d2654e
...
@@ -4,90 +4,91 @@
...
@@ -4,90 +4,91 @@
</view>
</view>
<view class="merchant-change" bind:tap="handleChangeMerchant">
<view class="merchant-change" bind:tap="handleChangeMerchant">
<image src="{{IMG_URL}}analyse-merchant-icon.png" mode=""/>
<image src="{{IMG_URL}}analyse-merchant-icon.png" mode=""/>
<view class="name">{{
'深圳南山问界4S店深圳南山问界4S店深圳南山问界4S店'
}}</view>
<view class="name">{{
selectedMerchantObj.merchantName
}}</view>
<image src="{{IMG_URL}}arrow-down.png" mode=""/>
<image src="{{IMG_URL}}arrow-down.png" mode=""/>
</view>
</view>
<view class="merchant-data">
<block wx:if="{{selectedMerchantObj.merchantId}}">
<view class="title">
<view class="merchant-data">
<image src="{{IMG_URL}}analyse-merchant.png" mode=""/>
<view class="title">
<view>门店数据</view>
<image src="{{IMG_URL}}analyse-merchant.png" mode=""/>
</view>
<view>门店数据</view>
<view class="content-box">
</view>
<view class="merchant-static-item" style="width: {{item.width}}rpx;" wx:for="{{statMerchants}}" wx:key="index">
<view class="content-box">
<view>
<view class="merchant-static-item" style="width: {{item.width}}rpx;" wx:for="{{statMerchants}}" wx:key="index">
<view class="label">{{item.text}}</view>
<view>
<view class="value">{{item.value}}</view>
<view class="label">{{item.text}}</view>
<view class="value">{{item.value}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="divider">
</view>
<view class="divider"></view
>
<view class="data-base"
>
<view class="data-bas
e">
<view class="top-titl
e">
<view class="top-title"
>
<image src="{{IMG_URL}}analyse-satff.png" mode=""/
>
<image src="{{IMG_URL}}analyse-satff.png" mode=""/
>
<view>人员数据</view
>
<
view>人员数据<
/view>
</view>
</view
>
<view class="statistics-box"
>
<view class="statistics-box
">
<view class="statistics" wx:for="{{statCards}}" style="background: {{card.background}};width: {{card.width}}rpx;" wx:for-item="card" wx:key="key
">
<view class="statistics" wx:for="{{statCards}}" style="background: {{card.background}};width: {{card.width}}rpx;" wx:for-item="card" wx:key="key"
>
<view class="title">{{card.text}}<image bindtap="openHelp" data-target="{{card}}" src="{{IMG_URL}}icon-white-info.png" mode=""/></view
>
<view class="title">{{card.text}}<image bindtap="openHelp" data-target="{{card}}" src="{{IMG_URL}}icon-white-info.png" mode=""/>
</view>
<view class="value">{{card.value}}
</view>
<view class="value">{{card.value}}</view
>
<view class="ratio" wx:if="{{card.showMom}}"
>
<view class="ratio" wx:if="{{card.showMom}}"
>
<text class="ratio-label" wx:if="{{queryType != 'self'}}">环比</text
>
<text class="ratio-label" wx:if="{{queryType != 'self'}}">环比
</text>
<text class="ratio-value">{{card.momValue}}
</text>
<text class="ratio-value">{{card.momValue}}</text
>
<image wx:if="{{card.momArrow}}" class="ratio-arrow" src="{{}}" mode=""/
>
<
image wx:if="{{queryType != 'self' && card.momArrow}}" class="ratio-arrow" src="{{}}" mode=""/
>
<
/view
>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="divider"></view>
<view class="divider"></view>
<view class="analyse-data">
<view class="analyse-data">
<view class="helps" bindtap="openHelp">帮助<image src="{{IMG_URL}}help-tips.png" mode=""/></view>
<view class="helps" bindtap="openHelp">帮助<image src="{{IMG_URL}}help-tips.png" mode=""/></view>
<view class="chunk {{chunk.posClass}}" wx:for="{{analyseChunks}}" wx:for-item="chunk" wx:key="id">
<view class="chunk {{chunk.posClass}}" wx:for="{{analyseChunks}}" wx:for-item="chunk" wx:key="id">
<view class="name">
<view class="name">
<text>{{chunk.name}}</text>
<text>{{chunk.name}}</text>
<text class="rate" wx:if="{{chunk.rateValue}}">{{chunk.rateValue}}</text>
<text class="rate" wx:if="{{chunk.rateValue}}">{{chunk.rateValue}}</text>
</view>
</view>
<view class="value" wx:if="{{chunk.value}}">{{chunk.value}}</view>
<view class="value" wx:if="{{chunk.value}}">{{chunk.value}}</view>
<view class="chunkLabel" wx:if="{{chunk.showMom}}">
<view class="chunkLabel" wx:if="{{chunk.showMom}}">
<text class="mom-label">环比</text>
<text class="mom-label">环比</text>
<text class="mom-value" style="color: {{chunk.momColor}}">{{chunk.momValue}}</text>
<text class="mom-value" style="color: {{chunk.momColor}}">{{chunk.momValue}}</text>
<image class="mom-arrow" wx:if="{{chunk.momArrow}}" src="{{chunk.momArrow}}" mode=""/>
<image class="mom-arrow" wx:if="{{chunk.momArrow}}" src="{{chunk.momArrow}}" mode=""/>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="divider" wx:if="{{showSummaryAnalysis}}"></view>
<view class="business-stats" wx:if="{{showSummaryAnalysis}}">
<view class="divider" wx:if="{{showSummaryAnalysis}}"></view>
<view class="stat-row" wx:for="{{businessStatsRows}}" wx:for-item="row" wx:key="key">
<view class="row-title">{{row.label}}</view>
<view class="row-content">
<view class="col" wx:for="{{row.cols}}" wx:for-item="col" wx:key="label">
<view class="label">{{col.label}}</view>
<view class="value {{col.colorClass || ''}}">{{col.value}}</view>
<view class="sub-label" wx:if="{{col.subLabel}}">{{col.subLabel}}</view>
</view>
</view>
</view>
</view>
<view class="divider"></view>
<view class="business-stats" wx:if="{{showSummaryAnalysis}}">
<view class="stat-row" wx:for="{{businessStatsRows}}" wx:for-item="row" wx:key="key">
<view class="row-title">{{row.label}}</view>
<view class="row-content">
<view class="col" wx:for="{{row.cols}}" wx:for-item="col" wx:key="label">
<view class="label">{{col.label}}</view>
<view class="value {{col.colorClass || ''}}">{{col.value}}</view>
<view class="sub-label" wx:if="{{col.subLabel}}">{{col.subLabel}}</view>
</view>
</view>
</view>
</view>
<view class="product-value">
<view class="divider"></view>
<view class="header">
<image src="{{IMG_URL}}analyse-chart.png" mode=""/>
<view class="title">个人产值趋势</view>
</view>
<analyse-line
id="line"
opts="{{opts}}"
chartData="{{lineData}}"
/>
</view>
<view class="product-value">
<view class="header">
<image src="{{IMG_URL}}analyse-chart.png" mode=""/>
<view class="title">个人产值趋势</view>
</view>
<analyse-line
id="line"
opts="{{opts}}"
chartData="{{trendList}}"
/>
</view>
</block>
<van-dialog
<van-dialog
use-slot
use-slot
title="{{tipsTitle || '帮助'}}"
title="{{tipsTitle || '帮助'}}"
...
...
packageCrew/pages/peopleOverview/components/trainingExperience/trainingExperience.js
View file @
5d2654e
...
@@ -11,9 +11,9 @@ Component({
...
@@ -11,9 +11,9 @@ Component({
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
topStats
:
[
topStats
:
[
{
label
:
'学习时长'
,
value
:
20
},
{
label
:
'学习时长'
,
key
:
'studyHours'
},
{
label
:
'完成课程数'
,
value
:
22
},
{
label
:
'完成课程数'
,
key
:
'completedCourses'
},
{
label
:
'带教次数'
,
value
:
2
}
{
label
:
'带教次数'
,
key
:
'coachingTimes'
}
],
],
tabs
:
[
tabs
:
[
{
key
:
'course'
,
label
:
'课程学习'
},
{
key
:
'course'
,
label
:
'课程学习'
},
...
@@ -24,39 +24,74 @@ Component({
...
@@ -24,39 +24,74 @@ Component({
},
},
methods
:
{
methods
:
{
search
(
e
)
{
search
(
e
)
{
let
{
activeTab
,
detailInfo
}
=
this
.
data
this
.
setData
({
let
params
=
{
storeManagerPhone
:
detailInfo
.
storeManagerPhone
,
startDate
:
e
.
detail
.
startDay
?.
replace
(
/
\/
/g
,
'-'
),
startDate
:
e
.
detail
.
startDay
?.
replace
(
/
\/
/g
,
'-'
),
endDate
:
e
.
detail
.
endDay
?.
replace
(
/
\/
/g
,
'-'
),
endDate
:
e
.
detail
.
endDay
?.
replace
(
/
\/
/g
,
'-'
),
},
()
=>
{
this
.
getData
()
this
.
getStaticsData
()
})
},
getStaticsData
()
{
let
{
detailInfo
,
startDate
,
endDate
}
=
this
.
data
let
params
=
{
businessType
:
detailInfo
.
scene
||
undefined
,
startDate
,
endDate
,
sortField
:
1
,
sortOrder
:
0
,
storeManagerPhone
:
detailInfo
?.
employeePhone
}
api
.
getTrainingStaffList
(
params
).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
this
.
setData
({
topInfo
:
data
[
0
]
||
{}
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
},
getData
()
{
let
{
activeTab
,
detailInfo
,
startDate
,
endDate
}
=
this
.
data
let
params
=
{
businessType
:
detailInfo
?.
scene
,
storeManagerPhone
:
detailInfo
.
employeePhone
,
startDate
,
endDate
,
trainingType
:
activeTab
+
1
trainingType
:
activeTab
+
1
}
}
// 假数据
wx
.
$util
.
showLoading
()
let
data
=
[{
api
.
getTrainingExperienceList
(
params
).
then
(
res
=>
{
taskId
:
1
,
wx
.
$util
.
hideLoading
()
name
:
'客情维护客户画像的重要性'
,
let
{
code
,
data
,
message
}
=
res
completedTime
:
1773739327171
if
(
code
==
0
)
{
},
{
data
?.
forEach
(
val
=>
{
taskId
:
2
,
val
.
completedTime
=
dayjs
(
val
.
completedTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
name
:
'督导带教'
,
})
completedTime
:
1773739321171
this
.
setData
({
}]
list
:
data
data
?.
forEach
(
val
=>
{
})
val
.
completedTime
=
dayjs
(
val
.
completedTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
else
{
wx
.
$util
.
showToast
(
message
)
}
}).
catch
(()
=>
{
wx
.
$util
.
hideLoading
()
})
})
this
.
setData
({
list
:
data
})
// api.getTrainingExperienceList(params).then(res => {
// })
},
},
onTabTap
(
e
)
{
onTabTap
(
e
)
{
const
{
index
}
=
e
.
currentTarget
.
dataset
||
{}
const
{
index
}
=
e
.
currentTarget
.
dataset
||
{}
if
(
index
==
this
.
data
.
activeTab
)
return
if
(
index
==
this
.
data
.
activeTab
)
return
this
.
setData
({
activeTab
:
index
})
this
.
setData
({
activeTab
:
index
,
list
:
[]
},
()
=>
{
this
.
getData
()
})
},
},
onViewItem
(
e
)
{
onViewItem
(
e
)
{
const
{
type
,
item
}
=
e
.
currentTarget
.
dataset
||
{}
const
{
item
}
=
e
.
currentTarget
.
dataset
||
{}
this
.
triggerEvent
(
'view'
,
{
type
,
item
})
wx
.
navigateTo
({
url
:
`/packageCrew/pages/mentoring/mentoring?id=
${
item
.
taskId
}
`
,
})
}
}
},
},
})
})
packageCrew/pages/peopleOverview/components/trainingExperience/trainingExperience.wxml
View file @
5d2654e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<view class="stats">
<view class="stats">
<view class="stat" wx:for="{{topStats}}" wx:key="label">
<view class="stat" wx:for="{{topStats}}" wx:key="label">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="value">{{
item.value
}}</view>
<view class="value">{{
topInfo[item.key]
}}</view>
</view>
</view>
</view>
</view>
...
@@ -28,8 +28,8 @@
...
@@ -28,8 +28,8 @@
<view class="list-item" wx:for="{{list}}" wx:key="id">
<view class="list-item" wx:for="{{list}}" wx:key="id">
<image class="icon" src="{{IMG_URL}}learning-icon.png" mode=""/>
<image class="icon" src="{{IMG_URL}}learning-icon.png" mode=""/>
<view class="content">
<view class="content">
<view class="title">{{item.name}}</view>
<view class="title">{{item.name
|| '-'
}}</view>
<view class="sub">课程完成时间:{{item.completedTime}}</view>
<view class="sub">课程完成时间:{{item.completedTime
|| '-'
}}</view>
</view>
</view>
</view>
</view>
</block>
</block>
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
<view style="display: flex;gap: 12rpx;">
<view style="display: flex;gap: 12rpx;">
<image class="icon" src="{{IMG_URL}}coaching-icon.png" mode=""/>
<image class="icon" src="{{IMG_URL}}coaching-icon.png" mode=""/>
<view class="content">
<view class="content">
<view class="title">{{item.name}}</view>
<view class="title">{{item.name
|| '督导带教'
}}</view>
<view class="sub">带教时间:{{item.completedTime}}</view>
<view class="sub">带教时间:{{item.completedTime
||'-'
}}</view>
</view>
</view>
</view>
</view>
<view class="btn-box">
<view class="btn-box">
...
...
packageCrew/pages/peopleOverview/peopleOverview.js
View file @
5d2654e
...
@@ -8,7 +8,8 @@ Page({
...
@@ -8,7 +8,8 @@ Page({
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
AIContent
:
'团队培训数据显示表面学习投入尚可,但知识体系构建严重不均,部分老顾问仅完成基础课程,在新产品与金融方案上存在明显知识断层,且带教记录空白,表明技能固化缺乏更新。与此同时,新人虽接受带教较多,但与其高战败率关联看,带教内容可能未精准击中其销售流程中的薄弱环节(如需求挖掘)。当前培训陷入“学用脱节”与“辅导泛化”的困境。建议立即进行针对性调整:第一,实施“短板课程强推计划”,根据上月战败主因(如竞品对比失利),强制相关顾问在3日内完成对应专题课程学习并通关测试;第二,改革带教模式,推行“数据驱动的精准带教”,督导需提前查阅带教对象的近期战败录音或低分项,带着具体问题(如“如何应对XX竞品的空间质疑”)进行陪访或演练,确保每次带教解决一个实际问题。通过“缺什么补什么”和“练什么考什么”,快速将培训转化为实战能力。团队培训数据显示表面学习投入尚可,但知识体系构建严重不均,部分老顾问仅完成基础课程,在新产品与金融方案上存在明显知识断层,且带教记录空白,表明技能固化缺乏更新。将“现状分析”与“建议”两部分自然融合为一段连贯文字,避免使用标题。整段文字需严格控制在500字以内,语言简洁、务实、指向明确。'
,
navBarHeight
:
84
,
AIContent
:
''
,
detailInfo
:
{},
detailInfo
:
{},
detailItems
:
[{
detailItems
:
[{
label
:
'手机号码'
,
label
:
'手机号码'
,
...
@@ -31,7 +32,8 @@ Page({
...
@@ -31,7 +32,8 @@ Page({
},
{
},
{
text
:
'培训经历'
text
:
'培训经历'
}],
}],
tabIndex
:
0
tabIndex
:
0
,
merchantList
:
[]
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
...
@@ -42,7 +44,7 @@ Page({
...
@@ -42,7 +44,7 @@ Page({
},
},
tabClick
(
e
)
{
tabClick
(
e
)
{
const
eventCode
=
[
'supervisor_baseMessage_tab'
,
'supervisor_personalPerformance_tab'
,
'supervisor_behaviorAnalysis_tab'
,
'supervisor_trainingExperience_tab'
]
const
eventCode
=
[
'supervisor_baseMessage_tab'
,
'supervisor_personalPerformance_tab'
,
'supervisor_behaviorAnalysis_tab'
,
'supervisor_trainingExperience_tab'
]
//
wx.$track.setTrackData(0, eventCode[e.detail], {}, '')
wx
.
$track
.
setTrackData
(
0
,
eventCode
[
e
.
detail
],
{},
''
)
this
.
setData
({
this
.
setData
({
tabIndex
:
e
.
detail
tabIndex
:
e
.
detail
})
})
...
@@ -52,11 +54,19 @@ Page({
...
@@ -52,11 +54,19 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
setData
({
if
(
options
.
query
)
{
detailInfo
:
options
let
query
=
JSON
.
parse
(
options
.
query
)
})
console
.
log
(
query
,
'========='
)
// 获取个人基础数据信息
this
.
setData
({
this
.
getBaseData
(
options
)
detailInfo
:
query
})
// 获取个人基础数据信息
this
.
getBaseData
(
query
)
// 获取人员AI分析数据
this
.
getPersonAIData
(
query
)
// 获取调店记录
this
.
getTranferLog
()
}
},
},
/**
/**
...
@@ -70,31 +80,64 @@ Page({
...
@@ -70,31 +80,64 @@ Page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{
onShow
()
{
// wx.$track.setTrackData(0, `supervisor_personal_dashboard_detail`, {}, '')
wx
.
$track
.
setTrackData
(
0
,
`supervisor_personal_dashboard_detail`
,
{},
''
)
},
getTranferLog
()
{
let
{
detailInfo
}
=
this
.
data
wx
.
$util
.
showLoading
()
api
.
getStoreTransferApi
({
phoneNumber
:
detailInfo
.
employeePhone
}).
then
(
res
=>
{
wx
.
$util
.
hideLoading
()
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
this
.
setData
({
merchantList
:
data
||
[],
selectedMerchantObj
:
{
merchantId
:
data
[
0
]?.
merchantId
||
''
,
merchantName
:
data
[
0
]?.
merchantName
||
''
,
employeeId
:
data
[
0
]?.
employeeId
||
''
}
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
}).
catch
(()
=>
{
wx
.
$util
.
hideLoading
()
})
},
getPersonAIData
(
options
)
{
api
.
getAIAnslyseData
({
type
:
4
,
timeDimension
:
options
.
timeDimension
,
storeManagerPhone
:
options
.
phone
,
startDate
:
options
.
startDate
,
endDate
:
options
.
endDate
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
this
.
setData
({
AIContent
:
data
?.
aiGenerateResult
||
''
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
},
filterBusiness
(
data
)
{
let
names
=
[
''
,
'延保'
,
'权益'
,
'轻改'
]
if
(
!
data
)
return
'-'
let
bizArray
=
data
?.
split
(
','
)?.
map
(
item
=>
item
.
trim
()).
filter
(
item
=>
item
!==
''
)
let
result
=
bizArray
.
map
(
index
=>
names
[
parseInt
(
index
)]).
filter
(
name
=>
name
!==
''
).
join
(
','
)
return
result
},
},
getBaseData
(
options
)
{
getBaseData
(
options
)
{
// 假数据
let
data
=
{
entryDate
:
'2026-01-01'
,
business
:
'延保,轻改'
,
gender
:
'女'
,
origin
:
'陕西省/延安市'
,
name
:
'周芳'
,
age
:
33
,
ethnicity
:
'汉'
,
manager
:
'李四'
,
department
:
'运营零售部门'
,
position
:
'延保门店销售'
,
phone
:
13812345678
,
birthday
:
'1993-03-26'
}
this
.
setData
({
baseInfo
:
data
})
api
.
getEmployeeBaseData
({
api
.
getEmployeeBaseData
({
employeeId
:
options
?.
employeeId
phone
:
options
?.
employeePhone
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
data
.
business
=
this
.
filterBusiness
(
data
.
business
)
this
.
setData
({
this
.
setData
({
baseInfo
:
data
baseInfo
:
data
})
})
...
@@ -106,24 +149,27 @@ Page({
...
@@ -106,24 +149,27 @@ Page({
// 接待录音
// 接待录音
handleRecording
()
{
handleRecording
()
{
// wx.$track.setTrackData(0, `supervisor_reception_recording`, {}, '')
wx
.
$track
.
setTrackData
(
0
,
`supervisor_reception_recording`
,
{},
''
)
let
{
baseInfo
,
selectedMerchantObj
,
detailInfo
}
=
this
.
data
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/packageCrew/pages/receptionRecording/receptionRecording'
,
url
:
`/packageCrew/pages/receptionRecording/receptionRecording?storeManagerName=
${
baseInfo
.
name
}
&gender=
${
baseInfo
.
gender
}
&storeManagerPhone=
${
baseInfo
.
phone
}
&entryDate=
${
baseInfo
.
entryDate
}
&business=
${
baseInfo
.
business
}
&selectedMerchantId=
${
selectedMerchantObj
.
merchantId
}
&scene=
${
detailInfo
.
scene
}
&employeeId=
${
selectedMerchantObj
.
employeeId
}
`
,
})
})
},
},
// 发起带教
// 发起带教
handleMentoring
()
{
handleMentoring
()
{
// wx.$track.setTrackData(0, `supervisor_start_mentoring`, {}, '')
wx
.
$track
.
setTrackData
(
0
,
`supervisor_start_mentoring`
,
{},
''
)
let
{
baseInfo
}
=
this
.
data
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/packageCrew/pages/mentoring/mentoring'
,
url
:
`/packageCrew/pages/mentoring/mentoring?storeManagerName=
${
baseInfo
.
name
}
&gender=
${
baseInfo
.
gender
}
&storeManagerPhone=
${
baseInfo
.
phone
}
&entryDate=
${
baseInfo
.
entryDate
}
&business=
${
baseInfo
.
business
}
`
,
})
})
},
},
// 调店记录
// 调店记录
handleStoreTransfer
()
{
handleStoreTransfer
()
{
// wx.$track.setTrackData(0, `supervisor_store_transfer`, {}, '')
wx
.
$track
.
setTrackData
(
0
,
`supervisor_store_transfer`
,
{},
''
)
let
{
baseInfo
}
=
this
.
data
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/packageCrew/pages/storeTransfer/storeTransfer'
,
url
:
`/packageCrew/pages/storeTransfer/storeTransfer?phoneNumber=
${
baseInfo
.
phone
}
`
,
})
})
},
},
...
...
packageCrew/pages/peopleOverview/peopleOverview.wxml
View file @
5d2654e
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
</view>
</view>
<view class="tab-content">
<view class="tab-content">
<basic-info wx:if="{{tabIndex === 0}}" baseInfo="{{baseInfo}}" />
<basic-info wx:if="{{tabIndex === 0}}" baseInfo="{{baseInfo}}" />
<personal-performance wx:if="{{tabIndex === 1}}" detailInfo="{{detailInfo}}" />
<personal-performance wx:if="{{tabIndex === 1}}" detailInfo="{{detailInfo}}"
merchantList="{{merchantList}}" selectedMerchantObj="{{selectedMerchantObj}}"
/>
<behavior-analysis wx:if="{{tabIndex === 2}}" detailInfo="{{detailInfo}}" />
<behavior-analysis wx:if="{{tabIndex === 2}}" detailInfo="{{detailInfo}}"
selectedMerchantObj="{{selectedMerchantObj}}"
/>
<training-experience wx:if="{{tabIndex === 3}}" detailInfo="{{detailInfo}}" />
<training-experience wx:if="{{tabIndex === 3}}" detailInfo="{{detailInfo}}" />
<view style="width: 100%;height: 200rpx;"></view>
<view style="width: 100%;height: 200rpx;"></view>
</view>
</view>
...
...
packageCrew/pages/receptionRecording/components/recordItem/recordItem.js
View file @
5d2654e
...
@@ -15,18 +15,18 @@ Component({
...
@@ -15,18 +15,18 @@ Component({
*/
*/
data
:
{
data
:
{
statusMap
:
{
statusMap
:
{
3
:
{
text
:
'成交'
,
color
:
'#35C376'
,
background
:
'#35c37614'
},
'成交'
:
{
color
:
'#35C376'
,
background
:
'#35c37614'
},
4
:
{
text
:
'战败'
,
color
:
'#F24724'
,
background
:
'#f2472414'
}
'战败'
:
{
color
:
'#F24724'
,
background
:
'#f2472414'
}
},
},
itemOptions
:
[{
itemOptions
:
[{
label
:
'服务门店'
,
label
:
'服务门店'
,
key
:
'merchantName'
key
:
'merchantName'
},
{
},
{
label
:
'质检评分'
,
label
:
'质检评分'
,
key
:
'
qualityCheckS
core'
key
:
'
s
core'
},
{
},
{
label
:
'攻防评分'
,
label
:
'攻防评分'
,
key
:
'
defenceResultFlag
'
key
:
'
gfScroe
'
}]
}]
},
},
...
@@ -37,7 +37,7 @@ Component({
...
@@ -37,7 +37,7 @@ Component({
onViewItem
(
e
)
{
onViewItem
(
e
)
{
let
{
record
}
=
this
.
data
let
{
record
}
=
this
.
data
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
`/packageCrew/pages/recordingDetail/recordingDetail?rec
eptionStartTime=
${
record
.
receptionStartTime
}
&batchId=
${
record
.
batchId
}
&merchantNo=
${
record
.
merchantNo
}
`
,
url
:
`/packageCrew/pages/recordingDetail/recordingDetail?rec
ord=
${
JSON
.
stringify
(
record
)
}
`
,
})
})
}
}
},
},
...
...
packageCrew/pages/receptionRecording/components/recordItem/recordItem.wxml
View file @
5d2654e
...
@@ -5,18 +5,18 @@
...
@@ -5,18 +5,18 @@
<view class="phone">{{record.phoneNumber}}</view>
<view class="phone">{{record.phoneNumber}}</view>
</view>
</view>
<view class="right">
<view class="right">
<view class="staff">{{record.
employeeName
}}</view>
<view class="staff">{{record.
salesName || '-'
}}</view>
<view class="status" style="color: {{statusMap[record.
orderStatus].color}};background: {{statusMap[record.orderStatus].background}}">{{statusMap[record.orderStatus].tex
t}}</view>
<view class="status" style="color: {{statusMap[record.
receptionResult].color}};background: {{statusMap[record.receptionResult].background}}">{{record.receptionResul
t}}</view>
</view>
</view>
</view>
</view>
<view>
<view>
<text class="record-label" wx:if="{{record.carBrand}}">{{record.carBrand}}</text>
<text class="record-label" wx:if="{{record.carBrand}}">{{record.carBrand
}}</text>
<text class="record-label" wx:if="{{record.carModel}}">{{record.carModel}}</text>
<text class="record-label" wx:if="{{record.carModel}}">{{record.carModel}}</text>
<text class="record-label" wx:if="{{record.tag}}">{{record.tag}}</text>
<text class="record-label" wx:if="{{record.tag}}">{{record.tag}}</text>
</view>
</view>
<view class="row" wx:for="{{itemOptions}}" wx:key="index">
<view class="row" wx:for="{{itemOptions}}" wx:key="index">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="value">{{record[item.key]}}</view>
<view class="value">{{record[item.key]
|| '-'
}}</view>
</view>
</view>
<view class="btn-box" wx:if="{{!hideBtn}}">
<view class="btn-box" wx:if="{{!hideBtn}}">
<view class="btn" data-type="coach" data-item="{{item}}" bind:tap="onViewItem">接待详情</view>
<view class="btn" data-type="coach" data-item="{{item}}" bind:tap="onViewItem">接待详情</view>
...
...
packageCrew/pages/receptionRecording/receptionRecording.js
View file @
5d2654e
// packageCrew/pages/receptionRecording/receptionRecording.js
// packageCrew/pages/receptionRecording/receptionRecording.js
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
import
{
getReceptionRecordList
,
getRecordDetailList
}
from
"~/api/crew/index"
import
{
getRecordingList
}
from
"~/api/crew/index"
import
dayjs
from
'dayjs'
Page
({
Page
({
/**
/**
...
@@ -8,39 +9,30 @@ Page({
...
@@ -8,39 +9,30 @@ Page({
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
detailInfo
:
{
detailInfo
:
{},
staffName
:
'赵惠惠'
,
sex
:
1
,
staffPhone
:
'18902640418'
,
entryDate
:
'2025-12-12'
,
scene
:
'延保,轻改,权益'
},
detailItems
:
[{
detailItems
:
[{
label
:
'手机号码'
,
label
:
'手机号码'
,
key
:
'st
aff
Phone'
key
:
'st
oreManager
Phone'
},
{
},
{
label
:
'入职时间'
,
label
:
'入职时间'
,
key
:
'entryDate'
,
key
:
'entryDate'
,
width
:
'290rpx'
width
:
'290rpx'
},
{
},
{
label
:
'归属业务'
,
label
:
'归属业务'
,
key
:
'
scene
'
,
key
:
'
business
'
,
inline
:
true
inline
:
true
}],
}],
staticsItems
:
[{
staticsItems
:
[{
label
:
'录音'
,
label
:
'录音'
,
key
:
''
,
key
:
'totalRecordings'
value
:
60
},
{
},
{
label
:
'成交数'
,
label
:
'成交数'
,
key
:
''
,
key
:
'dealCount'
value
:
60
},
{
},
{
label
:
'战败数'
,
label
:
'战败数'
,
key
:
''
,
key
:
'defeatCount'
value
:
60
}],
}],
listData
:
[]
,
staticDate
:
{}
,
pageNum
:
1
,
pageNum
:
1
,
nothing
:
false
,
nothing
:
false
,
},
},
...
@@ -49,7 +41,9 @@ Page({
...
@@ -49,7 +41,9 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
getReceptionList
()
this
.
setData
({
detailInfo
:
options
})
},
},
/**
/**
...
@@ -65,114 +59,88 @@ Page({
...
@@ -65,114 +59,88 @@ Page({
onShow
()
{
onShow
()
{
},
},
getParams
()
{
let
{
searchForm
}
=
this
.
data
let
userInfo
=
wx
.
$util
.
getUserInfo
()
||
{};
const
now
=
new
Date
();
const
threeMonthsAgo
=
new
Date
(
now
.
getFullYear
(),
now
.
getMonth
()
-
3
,
now
.
getDate
()
+
1
)
let
obj
=
{
startDateTime
:
searchForm
?.
startDateTime
||
new
Date
(
threeMonthsAgo
).
format
(
'yyyy-MM-dd'
),
endDateTime
:
searchForm
?.
endDateTime
||
now
.
format
(
'yyyy-MM-dd'
),
customerName
:
searchForm
?.
customerName
||
''
,
phoneNumber
:
searchForm
?.
customerName
||
''
,
}
return
obj
},
// 获取接待记录统计数据
search
(
e
)
{
getReceptionList
()
{
this
.
setData
(
{
let
{
list
:
[],
listData
pageNum
:
1
,
}
=
this
.
data
flag
:
false
,
let
params
=
this
.
getParams
()
nothing
:
false
,
this
.
setData
({
startStr
:
e
.
detail
.
startDay
?.
replace
(
/
\/
/g
,
'-'
),
loaded
:
false
endStr
:
e
.
detail
.
endDay
?.
replace
(
/
\/
/g
,
'-'
)
},
()
=>
{
},
()
=>
{
wx
.
showLoading
({
this
.
getReceptionList
()
title
:
'加载中'
})
})
getReceptionRecordList
({
merchantNo
:
params
.
merchantNo
,
startDateTime
:
params
.
startDateTime
,
endDateTime
:
params
.
endDateTime
,
staffUuids
:
params
.
staffUuids
}).
then
(
res
=>
{
let
{
code
,
message
,
data
}
=
res
if
(
code
==
0
)
{
data
?.
forEach
(
val
=>
{
val
.
receptionStaticInfoDTOList
=
[]
val
.
staticDateStr
=
`
${
new
Date
(
val
.
staticDate
).
getMonth
()
+
1
}
月
${
new
Date
(
val
.
staticDate
).
getDate
()}
日`
})
this
.
setData
({
listData
:
listData
.
concat
(
data
),
pageNum
:
1
},
()
=>
{
this
.
getReceptionRecordDetailInfo
()
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
}).
catch
(
err
=>
{
wx
.
hideLoading
()
})
})
},
// 获取接待记录接待时间轴详情数据
getReceptionRecordDetailInfo
()
{
let
{
pageNum
,
listData
,
nothing
}
=
this
.
data
let
params
=
{
pageNum
,
...
this
.
getParams
()
}
if
(
nothing
)
return
wx
.
showLoading
({
title
:
'加载中'
})
this
.
track_businessParam
=
params
//埋点业务参数
getRecordDetailList
(
params
).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
listData
?.
forEach
(
val
=>
{
data
?.
list
?.
forEach
(
subV
=>
{
if
(
val
.
staticDate
==
subV
.
staticDate
&&
val
.
receptionStaticInfoDTOList
?.
findIndex
(
v
=>
v
.
fileUrl
==
subV
.
fileUrl
)
<
0
)
val
.
receptionStaticInfoDTOList
.
push
(
subV
)
})
})
let
listDataLength
=
listData
.
reduce
((
acc
,
curr
)
=>
acc
+
curr
?.
receptionStaticInfoDTOList
?.
length
,
0
)
this
.
setData
({
loaded
:
true
,
listData
,
pageNum
:
pageNum
+
1
,
triggered
:
false
,
nothing
:
pageNum
==
data
?.
pages
||
listDataLength
==
data
?.
total
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
wx
.
hideLoading
()
}).
catch
(
err
=>
{
wx
.
hideLoading
()
})
},
},
getReceptionList
()
{
let
{
pageNum
,
startStr
,
endStr
,
detailInfo
,
nothing
}
=
this
.
data
// let params = {
// employeeId: detailInfo.employeeId,
// pageNum,
// pageSize: 10,
// startDate: startStr,
// endDate: endStr,
// merchantId: detailInfo?.selectedMerchantId,
// bizs: detailInfo.scene ? detailInfo.scene : ''
// }
let
params
=
{
employeeId
:
'584fdb460afa4dad835cbe8d73cfa923'
,
pageNum
:
1
,
pageSize
:
10
,
startDate
:
'2025-06-01'
,
endDate
:
'2026-06-30'
,
merchantId
:
44211227
,
bizs
:
1
}
if
(
nothing
)
return
wx
.
$util
.
showLoading
()
getRecordingList
(
params
).
then
(
res
=>
{
wx
.
$util
.
hideLoading
()
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
data
.
dateSummaryList
?.
forEach
(
val
=>
{
val
.
receptionStaticInfoDTOList
=
[]
val
.
staticDateStr
=
`
${
new
Date
(
val
.
date
).
getMonth
()
+
1
}
月
${
new
Date
(
val
.
date
).
getDate
()}
日`
data
?.
recordingList
?.
forEach
(
subVal
=>
{
subVal
.
totalDuration
=
subVal
.
recordingDuration
if
(
val
.
date
==
dayjs
(
subVal
.
receptionTime
).
format
(
'YYYY-MM-DD'
))
{
val
.
receptionStaticInfoDTOList
.
push
(
subVal
)
}
})
})
let
list
=
data
.
dateSummaryList
let
total
=
data
.
totalCount
if
(
total
!=
0
)
{
this
.
setData
({
[
`list[
${
pageNum
-
1
}
]`
]:
list
})
}
this
.
setData
({
total
,
flag
:
true
,
triggered
:
false
,
pageNum
:
pageNum
+
1
,
nothing
:
total
==
this
.
data
.
list
.
flatMap
(
inner
=>
inner
).
reduce
((
sum
,
item
)
=>
sum
+
(
item
.
receptionStaticInfoDTOList
?.
length
||
0
),
0
),
staticDate
:
data
?.
summary
||
{}
},
()
=>
{
const
query
=
wx
.
createSelectorQuery
().
in
(
this
)
query
.
select
(
'.content'
).
boundingClientRect
()
query
.
exec
(
res
=>
{
this
.
setData
({
contentHeight
:
res
[
0
]?.
height
})
})
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
}).
catch
(()
=>
{
wx
.
$util
.
hideLoading
()
})
},
// 触底加载更多
// 触底加载更多
onBottomRefresh
()
{
onBottomRefresh
()
{
this
.
getReception
RecordDetailInfo
()
this
.
getReception
List
()
},
},
/**
/**
...
...
packageCrew/pages/receptionRecording/receptionRecording.scss
View file @
5d2654e
/* packageCrew/pages/receptionRecording/receptionRecording.wxss */
/* packageCrew/pages/receptionRecording/receptionRecording.wxss */
page
{
page
{
background
:
#F2F3F7
;
background
:
#F2F3F7
;
height
:
100vh
;
}
}
.content
{
.content
{
background
:
#FFFFFF
;
background
:
#FFFFFF
;
...
...
packageCrew/pages/receptionRecording/receptionRecording.wxml
View file @
5d2654e
...
@@ -8,15 +8,31 @@
...
@@ -8,15 +8,31 @@
}
}
return listDataLength > 0
return listDataLength > 0
}
}
var isFirstDateInAllPages = function (allPages, pageIndex, itemDate) {
if (!itemDate) return true
if (!allPages || !allPages.length) return true
// 只检查当前页之前的所有页
for (var p = 0; p < pageIndex; p++) {
var pageArr = allPages[p]
if (!pageArr || !pageArr.length) continue
for (var i = 0; i < pageArr.length; i++) {
if (pageArr[i] && pageArr[i].date === itemDate) {
return false
}
}
}
return true
}
module.exports = {
module.exports = {
isShowEmpty: isShowEmpty
isShowEmpty: isShowEmpty,
isFirstDateInAllPages: isFirstDateInAllPages
}
}
</wxs>
</wxs>
<view class="content">
<view class="content">
<view class="top-box">
<view class="top-box">
<view class="name">
<view class="name">
<view class="staff">
<view class="staff">
{{detailInfo.st
aff
Name}}
{{detailInfo.st
oreManager
Name}}
<image class="sex-icon" src="{{IMG_URL}}{{detailInfo.sex == 1 ? 'female-icon' : 'male-iconx'}}.png" mode="aspectFit" />
<image class="sex-icon" src="{{IMG_URL}}{{detailInfo.sex == 1 ? 'female-icon' : 'male-iconx'}}.png" mode="aspectFit" />
</view>
</view>
</view>
</view>
...
@@ -33,48 +49,49 @@
...
@@ -33,48 +49,49 @@
<view class="grid grid-3">
<view class="grid grid-3">
<view class="grid-item" wx:for="{{staticsItems}}" wx:key="label">
<view class="grid-item" wx:for="{{staticsItems}}" wx:key="label">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="value">{{item.value}}</view>
<view class="value">{{staticDate[item.key]}}</view>
<view class="sub {{item.subClass || ''}}" wx:if="{{item.subLabel}}">{{item.subLabel}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<scroll-view scroll-y class="list-box" enable-back-to-top refresher-enabled="{{true}}" bindscrolltolower="onBottomRefresh" style="height: calc(100% - var(--fontSize80));" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<scroll-view scroll-y class="list-box" enable-back-to-top bindscrolltolower="onBottomRefresh" style="height: calc(100% - {{contentHeight}}px);" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view class="box-content {{!filter.isShowEmpty(listData) ? 'empty-contant' : ''}}">
<view class="box-content">
<block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:if="{{list.length}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<block wx:for="{{list}}" wx:for-item="listData" wx:for-index="listIndex" wx:key="listIndex">
<view class="date-section">
<block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<view class="list-date">{{item.staticDateStr}}</view>
<view class="date-section" wx:if="{{filter.isFirstDateInAllPages(list, listIndex, item.date)}}">
<block wx:if="{{!hideScore}}">
<view class="list-date">{{item.staticDateStr}}</view>
<view class="static">
<block>
<view class="static-warp">
<view class="static">
<view>
<view class="static-warp">
<text class="summary-item green" data-type="upgrade" bindtap="filterItemData">成交 {{item.upgrades}}</text>
<view>
<text class="line"></text>
<text class="summary-item green" data-type="upgrade" bindtap="filterItemData">成交 {{item.dealCount}}</text>
</view>
<text class="line"></text>
<view>
</view>
<text class="summary-item red" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text>
<view>
<text class="summary-item red" data-type="defeat" bindtap="filterItemData">战败 {{item.defeatCount}}</text>
</view>
</view>
</view>
</view>
</view>
</block>
</view>
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="subIndex" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bind:tap="goto" data-record="{{record}}">
<view class="record-card-top">
<text class="round-dot" style="font-size: {{subIndex + 1 > 99 ? 'var(--fontSize16)' : 'var(--fontSize20)'}};">{{subIndex + 1}}</text>
<view class="card-line"></view>
</view>
<view class="card-item" wx:key="subIndex">
<record-item record="{{record}}"></record-item>
</view>
</view>
</view>
</block>
</block>
</view>
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="subIndex" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bind:tap="goto" data-record="{{record}}">
<view class="record-card-top">
<text class="round-dot" style="font-size: {{subIndex + 1 > 99 ? 'var(--fontSize16)' : 'var(--fontSize20)'}};">{{subIndex + 1}}</text>
<view class="card-line"></view>
</view>
<view class="card-item" wx:key="subIndex">
<record-item record="{{record}}"></record-item>
</view>
</view>
</block>
</block>
</block
>
<block wx:if="{{nothing}}"
>
<block wx:if="{{nothing}}"
>
<view class="list-nothing">到底了~</view
>
<
view class="list-nothing">到底了~</view
>
<
/block
>
</block>
</block>
</block>
</block>
<block wx:
if="{{!filter.isShowEmpty(listData) && loaded}}"
>
<block wx:
else
>
<empty-data />
<empty-data />
</block>
</block>
</view>
</view>
...
...
packageCrew/pages/recordingDetail/components/dialogue/dialogue.js
View file @
5d2654e
// packageEquity/pages/receptionDetail/components/dialogue/dialogue.js
// packageEquity/pages/receptionDetail/components/dialogue/dialogue.js
import
api
from
"~/utils/request/request.js"
;
import
{
findConversationDetailByBatchId
}
from
'~/api/index/index'
let
thisPage
=
null
let
thisPage
=
null
import
watchScrollMixin
from
'../../watchScrollMixin'
import
watchScrollMixin
from
'../../watchScrollMixin'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
...
@@ -217,9 +217,7 @@ Component({
...
@@ -217,9 +217,7 @@ Component({
},
},
/**对话列表 */
/**对话列表 */
async
findConversationDetailByBatchIdNew
(
params
)
{
async
findConversationDetailByBatchIdNew
(
params
)
{
const
{
const
dialogueList
=
await
findConversationDetailByBatchId
(
params
)
data
:
dialogueList
}
=
await
api
.
post
(
"dj.api.car.boutique.inspection.findConversationDetailByBatchIdNew"
,
params
)
this
.
getAudioObject
()
this
.
getAudioObject
()
dialogueList
?.
map
(
e
=>
{
dialogueList
?.
map
(
e
=>
{
e
.
visible
=
true
e
.
visible
=
true
...
...
packageCrew/pages/recordingDetail/recordingDetail.js
View file @
5d2654e
// packageCrew/pages/recordingDetail/recordingDetail.js
// packageCrew/pages/recordingDetail/recordingDetail.js
import
{
getRecord
Detail
List
,
getShortUrl
,
findCheckResultByBatchId
,
submitOutstandingCases
}
from
"~/api/crew/index"
import
{
getRecord
ing
List
,
getShortUrl
,
findCheckResultByBatchId
,
submitOutstandingCases
}
from
"~/api/crew/index"
import
{
getReceptionDetail
}
from
'~/api/index/index'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
Page
({
Page
({
...
@@ -9,8 +9,8 @@ Page({
...
@@ -9,8 +9,8 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
navBarHeight
:
113.5
,
navBarHeight
:
84
,
typeLists
:
[
'对话'
,
'质检'
],
typeLists
:
[
'对话'
,
'质检'
],
qualityAudio
:
''
,
qualityAudio
:
''
,
activeIndex
:
0
,
activeIndex
:
0
,
...
@@ -23,92 +23,62 @@ Page({
...
@@ -23,92 +23,62 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
async
onLoad
(
options
)
{
async
onLoad
(
options
)
{
console
.
log
(
options
)
const
record
=
JSON
.
parse
(
options
.
record
)
if
(
Object
.
keys
(
options
).
length
)
{
this
.
setData
({
// 调用接口获取详情,默认取第一条
record
,
let
{
title
:
`
${
dayjs
(
record
.
receptionTime
).
format
(
'M月D日'
)}${
record
.
recordemployeeName
}
接待`
,
receptionStartTime
},
()
=>
{
}
=
options
wx
.
$util
.
getViewInfo
(
'.reception-wrap'
,
({
const
time
=
dayjs
(
receptionStartTime
).
format
(
'YYYY-MM-DD'
)
height
const
params
=
{
})
=>
{
batchId
:
options
.
batchId
,
this
.
setData
({
merchantNo
:
options
.
merchantNo
,
receptionWrapHeight
:
`
${
height
}
px`
startDateTime
:
time
,
})
endDateTime
:
time
})
}
})
const
res
=
await
getRecordDetailList
(
params
)
// this.setAudio()
let
{
this
.
findCheckResultByBatchId
(
record
.
batchId
)
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
console
.
log
(
data
)
const
detailInfo
=
data
.
list
[
0
]
||
{}
if
(
Object
.
keys
(
detailInfo
).
length
)
{
detailInfo
.
staticDate
=
new
Date
(
detailInfo
.
staticDate
).
format
(
'MM月dd日'
)
this
.
setData
({
record
:
detailInfo
,
},
()
=>
{
wx
.
$util
.
getViewInfo
(
'.reception-wrap'
,
({
height
})
=>
{
this
.
setData
({
receptionWrapHeight
:
`
${
height
*
2
}
rpx`
})
})
this
.
findCheckResultByBatchId
(
detailInfo
.
batchId
)
this
.
setAudio
()
})
}
}
}
},
},
async
findCheckResultByBatchId
(
batchId
)
{
async
findCheckResultByBatchId
(
batchId
)
{
try
{
try
{
const
{
const
data
=
await
getReceptionDetail
({
code
,
data
,
message
}
=
await
findCheckResultByBatchId
({
batchId
batchId
})
})
if
(
code
==
0
)
{
data
.
map
(
item
=>
{
data
.
map
(
item
=>
{
item
.
offset
=
item
.
offset
!=
null
?
Number
(
item
.
offset
):
item
.
offset
item
.
formatScore
=
`
${
item
.
score
||
item
.
score
===
0
?
item
.
score
:
'-'
}
/
${
item
.
sumScore
||
item
.
sumScore
===
0
?
item
.
sumScore
:
'-'
}
`
item
.
formatScore
=
`
${
item
.
score
||
item
.
score
===
0
?
item
.
score
:
'-'
}
/
${
item
.
sumScore
||
item
.
sumScore
===
0
?
item
.
sumScore
:
'-'
}
`
let
hitTextList
=
JSON
.
parse
(
item
.
hitText
),
let
hitTextList
=
JSON
.
parse
(
item
.
hitText
),
matchedClass
=
'no-hit'
,
matchedClass
=
'no-hit'
,
matchedText
=
'意图不匹配'
matchedText
=
'意图不匹配'
if
(
hitTextList
&&
hitTextList
.
length
)
{
if
(
hitTextList
&&
hitTextList
.
length
)
{
item
.
hitTextList
=
hitTextList
.
map
(
e
=>
e
.
replace
(
/
\n
/g
,
'<br>'
))
item
.
hitTextList
=
hitTextList
.
map
(
e
=>
e
.
replace
(
/
\n
/g
,
'<br>'
))
matchedClass
=
'hit'
matchedClass
=
'hit'
matchedText
=
'意图匹配'
matchedText
=
'意图匹配'
}
}
item
.
matchedClass
=
matchedClass
item
.
matchedClass
=
matchedClass
item
.
matchedText
=
matchedText
item
.
matchedText
=
matchedText
let
[
scriptRec
]
=
JSON
.
parse
(
item
.
scriptRec
)
let
[
scriptRec
]
=
JSON
.
parse
(
item
.
scriptRec
)
if
(
scriptRec
)
scriptRec
=
scriptRec
.
replace
(
/
\n
/g
,
'<br>'
)
if
(
scriptRec
)
scriptRec
=
scriptRec
.
replace
(
/
\n
/g
,
'<br>'
)
if
(
item
.
conversationDetailDTOList
&&
item
.
conversationDetailDTOList
.
length
)
{
if
(
item
.
conversationDetailDTOList
&&
item
.
conversationDetailDTOList
.
length
)
{
item
.
conversationDetailDTOList
.
map
(
e
=>
{
item
.
conversationDetailDTOList
.
map
(
e
=>
{
e
.
time
=
this
.
formatTime
(
e
.
mergedOffset
)
e
.
time
=
this
.
formatTime
(
e
.
mergedOffset
)
e
.
text_id
=
`text_
${
e
.
mergedOffset
}
`
e
.
text_id
=
`text_
${
e
.
mergedOffset
}
`
if
(
e
.
mergedOffset
==
item
.
offset
&&
!
item
.
matched
)
{
if
(
e
.
mergedOffset
==
item
.
offset
&&
!
item
.
matched
)
{
e
.
scriptRec
=
scriptRec
e
.
scriptRec
=
scriptRec
item
.
matched
=
true
item
.
matched
=
true
}
}
})
})
if
(
item
.
conversationDetailDTOList
.
findIndex
(
e
=>
e
.
scriptRec
)
==
-
1
)
{
if
(
item
.
conversationDetailDTOList
.
findIndex
(
e
=>
e
.
scriptRec
)
==
-
1
)
{
/**时间戳都对不上时 话术推荐加到最后 */
/**时间戳都对不上时 话术推荐加到最后 */
item
.
conversationDetailDTOList
[
item
.
conversationDetailDTOList
.
length
-
1
].
scriptRec
=
scriptRec
item
.
conversationDetailDTOList
[
item
.
conversationDetailDTOList
.
length
-
1
].
scriptRec
=
scriptRec
}
}
}
else
item
.
conversationDetailDTOList
=
[{
}
else
item
.
conversationDetailDTOList
=
[{
scriptRec
:
scriptRec
||
'暂无建议'
scriptRec
:
scriptRec
||
'暂无建议'
}]
}]
})
})
this
.
setData
({
this
.
setData
({
qualityData
:
data
qualityData
:
data
})
})
}
else
throw
message
}
catch
(
error
)
{
}
catch
(
error
)
{
wx
.
$util
.
showToast
(
error
)
wx
.
$util
.
showToast
(
error
)
}
}
...
@@ -161,7 +131,7 @@ Page({
...
@@ -161,7 +131,7 @@ Page({
this
.
qualityAudio
=
wx
.
createInnerAudioContext
({
this
.
qualityAudio
=
wx
.
createInnerAudioContext
({
useWebAudioImplement
:
true
useWebAudioImplement
:
true
})
})
this
.
qualityAudio
.
src
=
this
.
data
.
record
.
file
Url
this
.
qualityAudio
.
src
=
this
.
data
.
record
.
recording
Url
this
.
qualityAudio
.
onPause
(()
=>
{
this
.
qualityAudio
.
onPause
(()
=>
{
this
.
setData
({
this
.
setData
({
status
:
'pause'
status
:
'pause'
...
@@ -274,7 +244,7 @@ Page({
...
@@ -274,7 +244,7 @@ Page({
success
(
res
)
{
success
(
res
)
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
wx
.
setClipboardData
({
wx
.
setClipboardData
({
data
:
record
.
file
Url
data
:
record
.
recording
Url
})
})
}
}
}
}
...
@@ -302,21 +272,21 @@ Page({
...
@@ -302,21 +272,21 @@ Page({
},
},
// 提报优秀案例
// 提报优秀案例
handleSubmit
()
{
handleSubmit
()
{
let
{
record
}
=
this
.
data
let
params
=
{
let
params
=
{
staffName
:
record
.
staffName
,
recordingId
:
record
.
recordingId
staffPhone
:
record
.
staffPhone
,
merchantId
:
record
.
merchantId
,
merchantName
:
record
.
merchantName
,
customerCategory
:
record
.
customerCategory
,
recordingUrl
:
record
.
fileUrl
}
}
wx
.
$util
.
showLoading
()
submitOutstandingCases
(
params
).
then
(
res
=>
{
submitOutstandingCases
(
params
).
then
(
res
=>
{
wx
.
$util
.
hideLoading
()
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
wx
.
navigateBack
()
wx
.
navigateBack
()
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
}
}
}).
catch
(()
=>
{
wx
.
$util
.
hideLoading
()
})
})
},
},
/**
/**
...
...
packageCrew/pages/recordingDetail/recordingDetail.scss
View file @
5d2654e
/* packageCrew/pages/recordingDetail/recordingDetail.wxss */
/* packageCrew/pages/recordingDetail/recordingDetail.wxss */
page
{
page
{
background-color
:
#FAFAFA
!
important
;
background-color
:
#FAFAFA
!
important
;
overflow
:
hidden
;
overflow
:
hidden
;
height
:
100vh
;
}
}
.navigation-title
{
.navigation-title
{
...
...
packageCrew/pages/recordingDetail/recordingDetail.wxml
View file @
5d2654e
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</view>
</view>
<view class="reception-operate">
<view class="reception-operate">
<image class="img share" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/down-icon.png" bind:tap="download" mode=""/>
<image class="img share" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/down-icon.png" bind:tap="download" mode=""/>
<
image class="img share" src="{{IMG_URL}}share-icon.png" bind:tap="share" mode=""/
>
<
!-- <image class="img share" src="{{IMG_URL}}share-icon.png" bind:tap="share" mode=""/> --
>
<view class="audio-wrap" bind:tap="onHandle">
<view class="audio-wrap" bind:tap="onHandle">
<image class="img" src="{{IMG_URL}}play-icon.png" wx:if="{{status=='pause'||status=='ending'}}"/>
<image class="img" src="{{IMG_URL}}play-icon.png" wx:if="{{status=='pause'||status=='ending'}}"/>
<image class="img" src="{{IMG_URL}}stop-icon.png" wx:else/>
<image class="img" src="{{IMG_URL}}stop-icon.png" wx:else/>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</view>
</view>
</view>
</view>
<view class="type-wrap" style="height:calc(100
vh - {{receptionWrapHeight}} - 180
rpx)">
<view class="type-wrap" style="height:calc(100
% - {{receptionWrapHeight}} - {{record.caseSubmitStatus != 1 ? 180 : 0}}
rpx)">
<block wx:if="{{receptionWrapHeight}}">
<block wx:if="{{receptionWrapHeight}}">
<view class="component-item {{activeIndex != 0 ?'hide':''}}">
<view class="component-item {{activeIndex != 0 ?'hide':''}}">
<dialogue id="dialogue" batchId="{{record.batchId}}" recordData="{{record}}" qualityData="{{qualityData}}"></dialogue>
<dialogue id="dialogue" batchId="{{record.batchId}}" recordData="{{record}}" qualityData="{{qualityData}}"></dialogue>
...
@@ -36,6 +36,6 @@
...
@@ -36,6 +36,6 @@
</view>
</view>
</block>
</block>
</view>
</view>
<view class="footerBtn {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view
wx:if="{{record.caseSubmitStatus != 1}}"
class="footerBtn {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="btn next" bindtap="handleSubmit">提报优秀案例</view>
<view class="btn next" bindtap="handleSubmit">提报优秀案例</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageCrew/pages/storeTransfer/storeTransfer.js
View file @
5d2654e
// packageCrew/pages/storeTransfer/storeTransfer.js
// packageCrew/pages/storeTransfer/storeTransfer.js
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
import
api
from
'~/api/
index
/index'
import
api
from
'~/api/
crew
/index'
Page
({
Page
({
/**
/**
...
@@ -8,6 +8,7 @@ Page({
...
@@ -8,6 +8,7 @@ Page({
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
navBarHeight
:
84
,
list
:
[]
list
:
[]
},
},
...
@@ -44,10 +45,16 @@ Page({
...
@@ -44,10 +45,16 @@ Page({
},
},
getList
(
options
)
{
getList
(
options
)
{
let
params
=
{
api
.
getStoreTransferApi
({
phoneNumber
:
options
.
phoneNumber
}).
then
(
res
=>
{
employeeId
let
{
code
,
data
,
message
}
=
res
}
if
(
code
==
0
)
{
api
.
getStoreTransferApi
({})
this
.
setData
({
list
:
data
||
[]
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
},
},
/**
/**
...
...
packageCrew/pages/storeTransfer/storeTransfer.wxml
View file @
5d2654e
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<image src="{{IMG_URL}}merchant-icon.png" mode=""/>
<image src="{{IMG_URL}}merchant-icon.png" mode=""/>
</view>
</view>
<view class="right">
<view class="right">
<view class="name">{{item.merchantName}}</view>
<view class="name">{{item.merchantName
|| '-'
}}</view>
<view class="date">最早开单时间:{{item.
d
ate}}</view>
<view class="date">最早开单时间:{{item.
startD
ate}}</view>
</view>
</view>
</view>
</view>
</block>
</block>
...
...
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.js
View file @
5d2654e
...
@@ -9,6 +9,7 @@ Page({
...
@@ -9,6 +9,7 @@ Page({
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
navBarHeight
:
84
,
orderObj
:
{
orderObj
:
{
onDutyFlag
:
0
,
onDutyFlag
:
0
,
taskContext
:
''
,
taskContext
:
''
,
...
@@ -196,6 +197,7 @@ Page({
...
@@ -196,6 +197,7 @@ Page({
taskType
:
0
,
taskType
:
0
,
onDutyFlag
:
orderObj
.
onDutyFlag
,
onDutyFlag
:
orderObj
.
onDutyFlag
,
merchantId
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
merchantId
:
''
,
merchantId
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
merchantId
:
''
,
merchantName
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
merchantName
:
''
,
taskContext
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
taskContext
:
''
,
taskContext
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
taskContext
:
''
,
taskImageList
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
taskImageList
:
[],
taskImageList
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
taskImageList
:
[],
}
}
...
...
packageIndex/pages/monthlyPlan/monthlyPlan.js
View file @
5d2654e
...
@@ -6,6 +6,7 @@ Page({
...
@@ -6,6 +6,7 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
navBarHeight
:
84
,
orderObj
:
{
orderObj
:
{
taskContext
:
''
taskContext
:
''
}
}
...
...
packageIndex/pages/specialTask/specialTask.js
View file @
5d2654e
...
@@ -9,12 +9,13 @@ Page({
...
@@ -9,12 +9,13 @@ Page({
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
navBarHeight
:
84
,
statusMap
:
{
statusMap
:
{
1
:
{
name
:
'待完成'
,
color
:
'#2C66F7'
,
background
:
'#2c66f71a'
},
0
:
{
name
:
'待完成'
,
color
:
'#2C66F7'
,
background
:
'#2c66f71a'
},
2
:
{
name
:
'进行中'
,
color
:
'#FF9D0A'
,
background
:
'#ff9d0a1a'
},
1
:
{
name
:
'进行中'
,
color
:
'#FF9D0A'
,
background
:
'#ff9d0a1a'
},
3
:
{
name
:
'已完成'
,
color
:
'#35C376'
,
background
:
'#35c3761a'
},
2
:
{
name
:
'已完成'
,
color
:
'#35C376'
,
background
:
'#35c3761a'
},
},
},
detailInfo
:
{
handleStatus
:
1
},
detailInfo
:
{},
orderObj
:
{
orderObj
:
{
taskContext
:
''
taskContext
:
''
}
}
...
@@ -66,10 +67,9 @@ Page({
...
@@ -66,10 +67,9 @@ Page({
taskContextInput
(
e
)
{
taskContextInput
(
e
)
{
let
val
=
e
.
detail
.
value
||
""
let
val
=
e
.
detail
.
value
||
""
if
(
val
.
length
>
10
00
)
{
if
(
val
.
length
>
5
00
)
{
val
=
val
.
substring
(
0
,
10
00
)
val
=
val
.
substring
(
0
,
5
00
)
}
}
console
.
log
(
val
)
this
.
setData
({
this
.
setData
({
'orderObj.taskContext'
:
val
,
'orderObj.taskContext'
:
val
,
taskContextLength
:
val
.
length
taskContextLength
:
val
.
length
...
...
packageIndex/pages/specialTask/specialTask.wxml
View file @
5d2654e
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
<scroll-view scroll-y class="container" style="padding-top: calc({{navBarHeight}}px + 8rpx);">
<scroll-view scroll-y class="container" style="padding-top: calc({{navBarHeight}}px + 8rpx);">
<view class="detail-box">
<view class="detail-box">
<view class="header">
<view class="header">
<view class="name text-hide">{{
'深圳问界4S门店名称深圳问界4S门店名称
'}}</view>
<view class="name text-hide">{{
orderObj.merchantName || '-
'}}</view>
<view class="status text-center" style="color:{{ statusMap[
detailInfo.handleStatus].color }};background-color:{{statusMap[detailInfo.handle
Status].background }};">
<view class="status text-center" style="color:{{ statusMap[
orderObj.taskStatus].color }};background-color:{{statusMap[orderObj.task
Status].background }};">
{{statusMap[
detailInfo.handle
Status].name }}
{{statusMap[
orderObj.task
Status].name }}
</view>
</view>
</view>
</view>
<view class="row">
<view class="row">
...
@@ -29,8 +29,8 @@
...
@@ -29,8 +29,8 @@
<view class="item-box remark_box">
<view class="item-box remark_box">
<view class="label">专项任务<text class='required'>*</text></view>
<view class="label">专项任务<text class='required'>*</text></view>
<view class="textArea_box">
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="
10
00" placeholder="请输入" class="textarea" bindinput="taskContextInput" />
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="
5
00" placeholder="请输入" class="textarea" bindinput="taskContextInput" />
<view class="currentWordNumber">{{taskContextLength || 0}} /
10
00</view>
<view class="currentWordNumber">{{taskContextLength || 0}} /
5
00</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
packageIndex/pages/weeklyReview/weeklyReview.js
View file @
5d2654e
...
@@ -9,6 +9,7 @@ Page({
...
@@ -9,6 +9,7 @@ Page({
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
navBarHeight
:
84
,
orderObj
:
{
orderObj
:
{
taskContext
:
''
,
taskContext
:
''
,
taskImageList
:
[],
taskImageList
:
[],
...
...
pages/tab/crew/components/employeeRanking/employeeRanking.js
View file @
5d2654e
...
@@ -7,16 +7,16 @@ const DEFAULT_CONFIG = {
...
@@ -7,16 +7,16 @@ const DEFAULT_CONFIG = {
{
label
:
'转化率'
,
key
:
'3'
,
type
:
'percent'
}
{
label
:
'转化率'
,
key
:
'3'
,
type
:
'percent'
}
],
],
metrics
:
[
metrics
:
[
{
label
:
'个人产值'
,
key
:
'personalOutput'
,
type
:
'number'
,
width
:
'auto'
},
{
label
:
'个人产值'
,
key
:
'personalOutput'
,
dotKey
:
'outputWarningLevel'
,
type
:
'number'
,
width
:
'auto'
},
{
label
:
'个人客单价'
,
key
:
'personalUnitPrice'
,
type
:
'number'
,
width
:
'216rpx'
},
{
label
:
'个人客单价'
,
key
:
'personalUnitPrice'
,
dotKey
:
'unitPriceWarningLevel'
,
type
:
'number'
,
width
:
'216rpx'
},
{
label
:
'转化率'
,
key
:
'personalConversion'
,
type
:
'percent'
,
width
:
'162rpx'
}
{
label
:
'转化率'
,
key
:
'personalConversion'
,
dotKey
:
'conversionWarningLevel'
,
type
:
'percent'
,
width
:
'162rpx'
}
]
]
},
},
behavior
:
{
behavior
:
{
sortOptions
:
[
sortOptions
:
[
{
label
:
'成交数'
,
key
:
'
1
'
,
type
:
'number'
},
{
label
:
'成交数'
,
key
:
'
4
'
,
type
:
'number'
},
{
label
:
'战败数'
,
key
:
'
2
'
,
type
:
'number'
},
{
label
:
'战败数'
,
key
:
'
5
'
,
type
:
'number'
},
{
label
:
'录音数'
,
key
:
'
3
'
,
type
:
'number'
}
{
label
:
'录音数'
,
key
:
'
6
'
,
type
:
'number'
}
],
],
metrics
:
[
metrics
:
[
{
label
:
'成交数'
,
key
:
'dealCount'
,
type
:
'number'
},
{
label
:
'成交数'
,
key
:
'dealCount'
,
type
:
'number'
},
...
@@ -81,7 +81,8 @@ Component({
...
@@ -81,7 +81,8 @@ Component({
employeeList
:
{
type
:
Array
,
value
:
[]
},
employeeList
:
{
type
:
Array
,
value
:
[]
},
initialSortKey
:
{
type
:
String
,
value
:
''
},
initialSortKey
:
{
type
:
String
,
value
:
''
},
initialSortOrder
:
{
type
:
String
,
value
:
'desc'
},
initialSortOrder
:
{
type
:
String
,
value
:
'desc'
},
localSort
:
{
type
:
Boolean
,
value
:
false
}
localSort
:
{
type
:
Boolean
,
value
:
false
},
scene
:
Number
},
},
data
:
{
data
:
{
...
@@ -89,7 +90,12 @@ Component({
...
@@ -89,7 +90,12 @@ Component({
metrics
:
[],
metrics
:
[],
sortKey
:
''
,
sortKey
:
''
,
sortOrder
:
'desc'
,
sortOrder
:
'desc'
,
displayList
:
[],
displayList
:
[],
dotMaps
:
{
0
:
'red'
,
1
:
'yellow'
,
2
:
'green'
}
},
},
observers
:
{
observers
:
{
...
@@ -105,6 +111,13 @@ Component({
...
@@ -105,6 +111,13 @@ Component({
},
},
methods
:
{
methods
:
{
initLoad
()
{
let
{
mode
}
=
this
.
data
this
.
setData
({
sortKey
:
mode
==
'behavior'
?
'4'
:
'1'
,
sortOrder
:
'desc'
})
},
getConfig
()
{
getConfig
()
{
return
DEFAULT_CONFIG
[
this
.
data
.
mode
]
||
DEFAULT_CONFIG
.
performance
return
DEFAULT_CONFIG
[
this
.
data
.
mode
]
||
DEFAULT_CONFIG
.
performance
},
},
...
@@ -156,6 +169,7 @@ Component({
...
@@ -156,6 +169,7 @@ Component({
},
},
onTapEmployee
(
e
)
{
onTapEmployee
(
e
)
{
if
(
this
.
data
.
scene
==
0
)
return
// 全业务不支持跳转详情
const
idx
=
e
.
currentTarget
?.
dataset
?.
index
const
idx
=
e
.
currentTarget
?.
dataset
?.
index
const
employee
=
Array
.
isArray
(
this
.
properties
.
employeeList
)
?
this
.
properties
.
employeeList
[
idx
]
:
null
const
employee
=
Array
.
isArray
(
this
.
properties
.
employeeList
)
?
this
.
properties
.
employeeList
[
idx
]
:
null
this
.
triggerEvent
(
'employeeTap'
,
{
employee
})
this
.
triggerEvent
(
'employeeTap'
,
{
employee
})
...
...
pages/tab/crew/components/employeeRanking/employeeRanking.scss
View file @
5d2654e
...
@@ -172,7 +172,15 @@
...
@@ -172,7 +172,15 @@
width
:
12rpx
;
width
:
12rpx
;
height
:
12rpx
;
height
:
12rpx
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
background
:
#F24724
;
&
.red
{
background
:
#F24724
;
}
&
.yellow
{
background
:
#FF9D0A
;
}
&
.green
{
background
:
#35C376
;
}
}
}
}
}
...
...
pages/tab/crew/components/employeeRanking/employeeRanking.wxml
View file @
5d2654e
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<text class="sep">|</text>
<text class="sep">|</text>
<text class="phone">{{item.phone || item.employeePhone || '-'}}</text>
<text class="phone">{{item.phone || item.employeePhone || '-'}}</text>
</view>
</view>
<van-icon name="arrow" class="arrow" />
<van-icon name="arrow"
wx:if="{{scene > 0}}"
class="arrow" />
</view>
</view>
<view class="metrics">
<view class="metrics">
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<view class="metric" style="width: {{subItem.width}};">
<view class="metric" style="width: {{subItem.width}};">
<view class="line" wx:if="{{subIndex > 0}}"></view>
<view class="line" wx:if="{{subIndex > 0}}"></view>
<view class="metric-item">
<view class="metric-item">
<view class="metric-title">{{subItem.label}}
<text class="dot {{
}}"></text> </view>
<view class="metric-title">{{subItem.label}}
<text wx:if="{{mode == 'performance'}}" class="dot {{dotMaps[item[subItem.dotKey]]
}}"></text> </view>
<view class="metric-value {{sortKey == subItem.key ? 'primary' : ''}}">
<view class="metric-value {{sortKey == subItem.key ? 'primary' : ''}}">
{{item.metricDisplay[subItem.key]}}
{{item.metricDisplay[subItem.key]}}
</view>
</view>
...
...
pages/tab/crew/crew.js
View file @
5d2654e
...
@@ -3,6 +3,11 @@ import dayjs from 'dayjs'
...
@@ -3,6 +3,11 @@ import dayjs from 'dayjs'
import
api
from
'~/api/crew/index'
import
api
from
'~/api/crew/index'
import
indexApi
from
'~/api/index/index'
import
indexApi
from
'~/api/index/index'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
const
sceneMaps
=
{
// 1延保 2轻改 3权益
1
:
1
,
2
:
3
,
3
:
2
}
Page
({
Page
({
/**
/**
...
@@ -10,6 +15,7 @@ Page({
...
@@ -10,6 +15,7 @@ Page({
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
navBarHeight
:
84
,
tabIndex
:
0
,
tabIndex
:
0
,
tabList
:
[{
tabList
:
[{
text
:
'业绩'
,
text
:
'业绩'
,
...
@@ -47,73 +53,22 @@ Page({
...
@@ -47,73 +53,22 @@ Page({
},
{
},
{
label
:
'门店数量'
,
label
:
'门店数量'
,
width
:
'192'
,
width
:
'192'
,
key
:
's
hop
Count'
,
key
:
's
tore
Count'
,
background
:
'linear-gradient(90deg, #5E69FF 0%, #4079FF 100%)'
background
:
'linear-gradient(90deg, #5E69FF 0%, #4079FF 100%)'
},
{
},
{
label
:
'总产值'
,
label
:
'总产值'
,
key
:
'total
Value
'
,
key
:
'total
Output
'
,
background
:
'linear-gradient(90deg, #3D76FC 0%, #4DA6FF 100%)'
background
:
'linear-gradient(90deg, #3D76FC 0%, #4DA6FF 100%)'
}],
}],
AIContent
:
''
,
AIContent
:
''
,
staticData
:
{},
staticData
:
{},
employeeList
:
[{
employeeList
:
[],
staffName
:
'邹家平'
,
mode
:
'performance'
staffPhone
:
'18971083546'
,
chengjiao
:
3
,
zhanbai
:
8
,
luyin
:
15
,
queshilv
:
34.54
,
xuexi
:
3
,
wancheng
:
7
,
daijiao
:
15
,
chanzhi
:
43545600.45
,
kedan
:
45600.45
,
zhuanhua
:
34.54
},
{
staffName
:
'邹家平'
,
staffPhone
:
'18971083546'
,
chengjiao
:
3
,
zhanbai
:
8
,
luyin
:
15
,
queshilv
:
34.54
,
xuexi
:
3
,
wancheng
:
7
,
daijiao
:
15
,
chanzhi
:
43545600.45
,
kedan
:
45600.45
,
zhuanhua
:
34.54
},
{
staffName
:
'邹家平'
,
staffPhone
:
'18971083546'
,
chengjiao
:
3
,
zhanbai
:
8
,
luyin
:
15
,
queshilv
:
34.54
,
xuexi
:
3
,
wancheng
:
7
,
daijiao
:
15
,
chanzhi
:
43545600.45
,
kedan
:
45600.45
,
zhuanhua
:
34.54
},
{
staffName
:
'邹家平'
,
staffPhone
:
'18971083546'
,
chengjiao
:
3
,
zhanbai
:
8
,
luyin
:
15
,
queshilv
:
34.54
,
xuexi
:
3
,
wancheng
:
7
,
daijiao
:
15
,
chanzhi
:
43545600.45
,
kedan
:
45600.45
,
zhuanhua
:
34.54
}]
},
},
onTabItemTap
(
e
)
{
onTabItemTap
(
e
)
{
// 点击埋点
// 点击埋点
//
wx.$track.setTrackData(0, 'supervisor_crew_page', {}, '')
wx
.
$track
.
setTrackData
(
0
,
'supervisor_crew_page'
,
{},
''
)
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
...
@@ -127,7 +82,6 @@ Page({
...
@@ -127,7 +82,6 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
getStaticsData
()
},
},
/**
/**
...
@@ -141,11 +95,10 @@ Page({
...
@@ -141,11 +95,10 @@ Page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{
onShow
()
{
this
.
getEmployeeRank
()
},
if
(
this
.
data
.
tabIndex
==
2
)
{
// 获取培训AI分析结果
this
.
getAIAnalyse
()
search
()
{
}
},
},
formatThousands
(
v
)
{
formatThousands
(
v
)
{
...
@@ -158,27 +111,6 @@ Page({
...
@@ -158,27 +111,6 @@ Page({
const
res
=
decPart
?
`
${
intFmt
}
.
${
decPart
}
`
:
intFmt
const
res
=
decPart
?
`
${
intFmt
}
.
${
decPart
}
`
:
intFmt
return
isNeg
?
`-
${
res
}
`
:
res
return
isNeg
?
`-
${
res
}
`
:
res
},
},
getStaticsData
()
{
// 假数据
let
data
=
{
staffCount
:
56
,
shopCount
:
12
,
totalValue
:
68954782.23
}
data
.
staffCount
=
this
.
formatThousands
(
data
.
staffCount
)
data
.
shopCount
=
this
.
formatThousands
(
data
.
shopCount
)
data
.
totalValue
=
this
.
formatThousands
(
data
.
totalValue
)
this
.
setData
({
staticData
:
data
})
// indexApi.getSupervisorStaticData({}).then(res => {
// let { code, data, message } = res
// if (code == 0) {
// this.setData({staticData: data})
// } else {
// wx.$util.showToast(message)
// }
// })
},
// 切换类型
// 切换类型
changeTab
(
e
)
{
changeTab
(
e
)
{
...
@@ -186,16 +118,18 @@ Page({
...
@@ -186,16 +118,18 @@ Page({
let
{
tabList
}
=
this
.
data
let
{
tabList
}
=
this
.
data
let
eventCode
=
[
'supervisor_performance_tab'
,
'supervisor_behavior_tab'
,
'supervisor_training_tab'
]
let
eventCode
=
[
'supervisor_performance_tab'
,
'supervisor_behavior_tab'
,
'supervisor_training_tab'
]
const
index
=
tabList
?.
findIndex
(
val
=>
val
.
value
==
target
.
value
)
const
index
=
tabList
?.
findIndex
(
val
=>
val
.
value
==
target
.
value
)
//
wx.$track.setTrackData(0, eventCode[index], {}, '')
wx
.
$track
.
setTrackData
(
0
,
eventCode
[
index
],
{},
''
)
this
.
setData
({
this
.
setData
({
tabIndex
:
index
,
tabIndex
:
index
,
mode
:
target
.
value
,
mode
:
target
.
value
,
sceneTabIndex
:
0
,
sceneTabIndex
:
0
,
sortField
:
1
,
sortField
:
index
==
1
?
4
:
1
,
// 行为排序初始为4成交数
sortOrder
:
1
sortOrder
:
1
},
()
=>
{
},
()
=>
{
const
comp
=
this
.
selectComponent
(
'#date'
)
const
comp
=
this
.
selectComponent
(
'#date'
)
if
(
comp
)
comp
.
initLoad
(
'date'
)
if
(
comp
)
comp
.
initLoad
(
'date'
)
const
sortComp
=
this
.
selectComponent
(
'#employee-ranking'
)
if
(
comp
)
sortComp
.
initLoad
()
})
})
},
},
...
@@ -205,18 +139,17 @@ Page({
...
@@ -205,18 +139,17 @@ Page({
let
{
sceneTabList
}
=
this
.
data
let
{
sceneTabList
}
=
this
.
data
const
index
=
sceneTabList
?.
findIndex
(
val
=>
val
.
value
==
target
.
value
)
const
index
=
sceneTabList
?.
findIndex
(
val
=>
val
.
value
==
target
.
value
)
let
eventCode
=
[
'supervisor_warranty_tab'
,
'supervisor_benefits_tab'
,
'supervisor_lightMod_tab'
]
let
eventCode
=
[
'supervisor_warranty_tab'
,
'supervisor_benefits_tab'
,
'supervisor_lightMod_tab'
]
//
wx.$track.setTrackData(0, eventCode[index], {}, '')
wx
.
$track
.
setTrackData
(
0
,
eventCode
[
index
],
{},
''
)
this
.
setData
({
this
.
setData
({
sceneTabIndex
:
index
sceneTabIndex
:
index
},
()
=>
{
},
()
=>
{
const
comp
=
this
.
selectComponent
(
'#date'
)
this
.
getEmployeeRank
()
if
(
comp
)
comp
.
initLoad
(
'date'
)
})
})
},
},
// 排序变化
// 排序变化
onEmployeeSortChange
(
e
)
{
onEmployeeSortChange
(
e
)
{
const
{
rankfield
,
rankType
}
=
e
.
detail
const
{
rankfield
,
rankType
}
=
e
.
detail
//
wx.$track.setTrackData(0, `supervisor_${rankfield}_${rankType}`, {}, '')
wx
.
$track
.
setTrackData
(
0
,
`supervisor_
${
rankfield
}
_
${
rankType
}
`
,
{},
''
)
this
.
setData
({
this
.
setData
({
sortField
:
rankfield
,
sortField
:
rankfield
,
sortOrder
:
rankType
==
'desc'
?
1
:
0
sortOrder
:
rankType
==
'desc'
?
1
:
0
...
@@ -228,123 +161,107 @@ Page({
...
@@ -228,123 +161,107 @@ Page({
this
.
setData
({
this
.
setData
({
startStr
:
e
.
detail
.
startDay
?.
replace
(
/
\/
/g
,
'-'
),
startStr
:
e
.
detail
.
startDay
?.
replace
(
/
\/
/g
,
'-'
),
endStr
:
e
.
detail
.
endDay
?.
replace
(
/
\/
/g
,
'-'
),
endStr
:
e
.
detail
.
endDay
?.
replace
(
/
\/
/g
,
'-'
),
timeDimension
:
e
.
detail
.
timeDimension
+
1
timeDimension
:
e
.
detail
.
timeDimension
})
})
this
.
getAIAnalyse
()
if
(
this
.
data
.
tabIndex
==
2
)
{
// 获取培训AI分析结果
this
.
getAIAnalyse
()
}
this
.
getEmployeeRank
()
this
.
getEmployeeRank
()
},
},
getAIAnalyse
()
{
getAIAnalyse
()
{
let
{
startStr
,
endStr
,
timeDimension
,
tabIndex
}
=
this
.
data
let
{
startStr
,
endStr
,
timeDimension
,
tabIndex
}
=
this
.
data
// 假数据
api
.
getAIAnslyseData
({
let
data
=
{
type
:
tabIndex
+
1
,
aiGenerateResult
:
'团队培训数据显示表面学习投入尚可,但知识体系构建严重不均,部分老顾问仅完成基础课程,在新产品与金融方案上存在明显知识断层,且带教记录空白,表明技能固化缺乏更新。与此同时,新人虽接受带教较多,但与其高战败率关联看,带教内容可能未精准击中其销售流程中的薄弱环节(如需求挖掘)。当前培训陷入“学用脱节”与“辅导泛化”的困境。建议立即进行针对性调整:第一,实施“短板课程强推计划”,根据上月战败主因(如竞品对比失利),强制相关顾问在3日内完成对应专题课程学习并通关测试;第二,改革带教模式,推行“数据驱动的精准带教”,督导需提前查阅带教对象的近期战败录音或低分项,带着具体问题(如“如何应对XX竞品的空间质疑”)进行陪访或演练,确保每次带教解决一个实际问题。通过“缺什么补什么”和“练什么考什么”,快速将培训转化为实战能力。团队培训数据显示表面学习投入尚可,但知识体系构建严重不均,部分老顾问仅完成基础课程,在新产品与金融方案上存在明显知识断层,且带教记录空白,表明技能固化缺乏更新。将“现状分析”与“建议”两部分自然融合为一段连贯文字,避免使用标题。整段文字需严格控制在500字以内,语言简洁、务实、指向明确。'
timeDimension
:
timeDimension
,
}
startDate
:
startStr
,
this
.
setData
({
endDate
:
endStr
AIContent
:
data
?.
aiGenerateResult
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
this
.
setData
({
AIContent
:
data
?.
aiGenerateResult
?
`
${
JSON
.
parse
(
data
?.
aiGenerateResult
).
current_analysis
}
$
{
JSON
.
parse
(
data
?.
aiGenerateResult
).
suggestions
}
` : '',
})
} else {
wx.$util.showToast(message)
}
})
})
// api.getAIAnslyseData({
// type: tabIndex + 1,
// timeDimension: timeDimension,
// startDate: startStr,
// endDate: endStr
// }).then(res => {
// let { code, data, message } = res
// if (code == 0) {
// this.setData({
// AIContent: data?.aiGenerateResult || ''
// })
// } else {
// wx.$util.showToast(message)
// }
// })
},
},
// 获取员工排名数据
getEmployeeRank() {
getEmployeeRank() {
let { tabIndex, sceneTabIndex, startStr, endStr, sortField, sortOrder, timeDimension } = this.data
let { tabIndex, sceneTabIndex, startStr, endStr, sortField, sortOrder, timeDimension } = this.data
this.setData({
AIContent: '',
employeeList: []
})
const event = ['getDashboardData', 'getDashboardBehavior', 'getTrainingStaffList']
const event = ['getDashboardData', 'getDashboardBehavior', 'getTrainingStaffList']
let params = tabIndex == 2 ? {
let params = tabIndex == 2 ? {
businessType
:
sceneTabIndex
>
0
?
scene
TabIndex
:
''
,
businessType: sceneTabIndex > 0 ? scene
Maps[sceneTabIndex] : undefined
,
startDate: startStr,
startDate: startStr,
endDate: endStr,
endDate: endStr,
sortField,
sortField,
sortOrder
sortOrder
} : {
} : {
bizs
:
sceneTabIndex
>
0
?
scene
TabIndex
:
''
,
bizs: sceneTabIndex > 0 ? scene
Maps[sceneTabIndex] : undefined
,
dateType: timeDimension,
dateType: timeDimension,
startDate: startStr,
startDate: startStr,
endDate
:
endStr
endDate: endStr,
sortField,
sortDirection: sortOrder
}
}
wx.$util.showLoading()
wx.$util.showLoading()
setTimeout
(()
=>
{
api[event[tabIndex]](params).then(res
=> {
wx.$util.hideLoading()
wx.$util.hideLoading()
// 假数据
let { code, data, message } = res
let
data
if (code == 0) {
if
(
tabIndex
==
0
||
tabIndex
==
1
)
{
if (data?.metrics) {
data
=
{
data.metrics.staffCount = (data.metrics.staffCount ?? '') === '' ? '-' : this.formatThousands(data.metrics.staffCount)
employeeList
:
[{
data.metrics.storeCount = (data.metrics.storeCount ?? '') === '' ? '-' : this.formatThousands(data.metrics.storeCount)
employeePhone
:
15626599738
,
data.metrics.totalOutput = (data.metrics.totalOutput ?? '') === '' ? '-' : this.formatThousands(data.metrics.totalOutput)
personalOutput
:
43545600.53
,
}
personalUnitPrice
:
15623.23
,
switch(tabIndex) {
personalConversion
:
56.23
,
case 0:
employeeName
:
'张三'
,
this.setData({
dealCount
:
56
,
AIContent: `
$
{
JSON
.
parse
(
data
?.
aiAnalysisSuggestion
).
current_analysis
}
$
{
JSON
.
parse
(
data
?.
aiAnalysisSuggestion
).
suggestions
}
`,
defeatCount
:
80
,
staticData: data?.metrics,
recordingCount
:
156
,
employeeList: data?.employeeList || []
missingRate
:
59
,
})
employeeId
:
123
break
},
{
case 1:
employeePhone
:
15626599738
,
this.setData({
personalOutput
:
43545600.53
,
AIContent: `
$
{
JSON
.
parse
(
data
?.
aiAnalysisSuggestion
).
current_analysis
}
$
{
JSON
.
parse
(
data
?.
aiAnalysisSuggestion
).
suggestions
}
`,
personalUnitPrice
:
15623.23
,
staticData: data?.metrics,
personalConversion
:
56.23
,
employeeList: data?.employeeList || []
employeeName
:
'张三'
,
})
dealCount
:
56
,
break
defeatCount
:
80
,
case 2:
recordingCount
:
156
,
data?.forEach(val => {
missingRate
:
59
,
val.employeePhone = val.phone
employeeId
:
123
})
}]
this.setData({
employeeList: data || []
})
}
}
} else {
} else {
data
=
[{
wx.$util.showToast(message)
employeeName
:
'张胜男'
,
phone
:
15623568956
,
studyHours
:
15
,
completedCourses
:
5
,
coachingTimes
:
20
},
{
employeeName
:
'张胜男'
,
phone
:
15623568956
,
studyHours
:
15
,
completedCourses
:
5
,
coachingTimes
:
20
},
{
employeeName
:
'张胜男'
,
phone
:
15623568956
,
studyHours
:
15
,
completedCourses
:
5
,
coachingTimes
:
20
},
{
employeeName
:
'张胜男'
,
phone
:
15623568956
,
studyHours
:
15
,
completedCourses
:
5
,
coachingTimes
:
20
}]
}
}
this
.
setData
({
employeeList
:
data
.
employeeList
||
data
})
}).catch(() => {
},
300
)
wx.$util.hideLoading()
console
.
log
(
params
)
api
[
event
[
tabIndex
]](
params
).
then
(
res
=>
{
})
})
},
},
// 跳转员工个人看板
// 跳转员工个人看板
onEmployeeTap(e) {
onEmployeeTap(e) {
const employee = e.detail.employee
const employee = e.detail.employee
// wx.$track.setTrackData(0, 'supervisor_staffDetail', {}, '')
wx.$track.setTrackData(0, 'supervisor_staffDetail', {}, '')
let { startStr, endStr, timeDimension, sceneTabIndex } = this.data
let query = {
...employee,
scene: sceneTabIndex > 0 ? sceneMaps[sceneTabIndex] : '',
startDate: startStr,
endDate: endStr,
timeDimension: timeDimension
}
wx.navigateTo({
wx.navigateTo({
url
:
`/packageCrew/pages/peopleOverview/peopleOverview?
emloyeeId=
${
employee
.
employeeId
}
&scene=
${
this
.
data
.
sceneTabIndex
}
`
,
url: `
/
packageCrew
/
pages
/
peopleOverview
/
peopleOverview
?
query
=
$
{
JSON
.
stringify
(
query
)
}
`,
})
})
},
},
...
...
pages/tab/crew/crew.wxml
View file @
5d2654e
...
@@ -28,8 +28,10 @@
...
@@ -28,8 +28,10 @@
</view>
</view>
<AI-analyse AIContent="{{AIContent}}" />
<AI-analyse AIContent="{{AIContent}}" />
<employee-ranking
<employee-ranking
id="employee-ranking"
title-icon="{{IMG_URL}}staff-rank.png"
title-icon="{{IMG_URL}}staff-rank.png"
mode="{{mode}}"
mode="{{mode}}"
scene="{{sceneTabIndex}}"
employee-list="{{employeeList}}"
employee-list="{{employeeList}}"
local-sort="{{false}}"
local-sort="{{false}}"
bind:sortChange="onEmployeeSortChange"
bind:sortChange="onEmployeeSortChange"
...
...
pages/tab/index/index.js
View file @
5d2654e
...
@@ -7,6 +7,7 @@ Page({
...
@@ -7,6 +7,7 @@ Page({
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
navBarHeight
:
84
,
navStyle
:
'background-color: rgba(0,0,0,0);'
,
navStyle
:
'background-color: rgba(0,0,0,0);'
,
navTitleStyle
:
'font-weight: 600; font- size: 32rpx; color: #000;'
,
navTitleStyle
:
'font-weight: 600; font- size: 32rpx; color: #000;'
,
navBarHeight
:
0
,
navBarHeight
:
0
,
...
@@ -54,7 +55,7 @@ Page({
...
@@ -54,7 +55,7 @@ Page({
},
},
onTabItemTap
(
e
)
{
onTabItemTap
(
e
)
{
// 点击埋点
// 点击埋点
//
wx.$track.setTrackData(0, 'supervisor_index_page', {}, '')
wx
.
$track
.
setTrackData
(
0
,
'supervisor_index_page'
,
{},
''
)
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
let
navBarHeight
=
e
.
detail
.
height
...
@@ -86,13 +87,6 @@ Page({
...
@@ -86,13 +87,6 @@ Page({
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
:
function
()
{
onReady
:
function
()
{
const
query
=
wx
.
createSelectorQuery
().
in
(
this
)
query
.
select
(
'.top-box'
).
boundingClientRect
()
query
.
exec
(
res
=>
{
this
.
setData
({
topBoxHeight
:
res
[
0
].
height
})
})
},
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
...
@@ -124,9 +118,9 @@ Page({
...
@@ -124,9 +118,9 @@ Page({
api
.
getSupervisorStaticData
({}).
then
(
res
=>
{
api
.
getSupervisorStaticData
({}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
data
.
staffCount
=
data
.
staffCount
??
''
===
''
?
'-'
:
this
.
formatThousands
(
data
.
staffCount
)
data
.
staffCount
=
(
data
.
staffCount
??
''
)
===
''
?
'-'
:
this
.
formatThousands
(
data
.
staffCount
)
data
.
shopCount
=
data
.
shopCount
??
''
===
''
?
'-'
:
this
.
formatThousands
(
data
.
shopCount
)
data
.
shopCount
=
(
data
.
shopCount
??
''
)
===
''
?
'-'
:
this
.
formatThousands
(
data
.
shopCount
)
data
.
totalValue
=
data
.
totalValue
??
''
===
''
?
'-'
:
this
.
formatThousands
(
data
.
totalValue
)
data
.
totalValue
=
(
data
.
totalValue
??
''
)
===
''
?
'-'
:
this
.
formatThousands
(
data
.
totalValue
)
this
.
setData
({
staticData
:
data
})
this
.
setData
({
staticData
:
data
})
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
...
@@ -137,7 +131,7 @@ Page({
...
@@ -137,7 +131,7 @@ Page({
tabClick
(
e
)
{
tabClick
(
e
)
{
let
eventCode
=
[
'supervisor_dayTask_tab'
,
'supervisor_weeklyTask_tab'
,
'supervisor_monthlyTask_tab'
,
'supervisor_specificTask_tab'
]
let
eventCode
=
[
'supervisor_dayTask_tab'
,
'supervisor_weeklyTask_tab'
,
'supervisor_monthlyTask_tab'
,
'supervisor_specificTask_tab'
]
// 点击埋点
// 点击埋点
//
wx.$track.setTrackData(0, eventCode[e.detail], {}, '')
wx
.
$track
.
setTrackData
(
0
,
eventCode
[
e
.
detail
],
{},
''
)
this
.
setData
({
this
.
setData
({
tabIndex
:
e
.
detail
tabIndex
:
e
.
detail
})
})
...
@@ -145,7 +139,6 @@ Page({
...
@@ -145,7 +139,6 @@ Page({
jump
(
e
)
{
jump
(
e
)
{
const
{
target
}
=
e
.
currentTarget
.
dataset
const
{
target
}
=
e
.
currentTarget
.
dataset
let
{
startStr
,
endStr
}
=
this
.
data
const
pageUrl
=
{
const
pageUrl
=
{
3
:
'/packageIndex/pages/recordingReview/recordingReview'
,
3
:
'/packageIndex/pages/recordingReview/recordingReview'
,
5
:
'/packageCrew/pages/mentoring/mentoring'
,
5
:
'/packageCrew/pages/mentoring/mentoring'
,
...
@@ -164,7 +157,7 @@ Page({
...
@@ -164,7 +157,7 @@ Page({
}
}
let
status
=
target
.
taskStatus
!=
2
?
'execute'
:
'view'
let
status
=
target
.
taskStatus
!=
2
?
'execute'
:
'view'
console
.
log
(
eventCode
[
target
.
taskType
][
status
])
console
.
log
(
eventCode
[
target
.
taskType
][
status
])
//
wx.$track.setTrackData(0, eventCode[target.taskType][status], {}, '')
wx
.
$track
.
setTrackData
(
0
,
eventCode
[
target
.
taskType
][
status
],
{},
''
)
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
`
${
pageUrl
[
target
.
taskType
]}
?taskStatus=
${
target
.
taskStatus
}
&id=
${
target
.
id
}
`
,
url
:
`
${
pageUrl
[
target
.
taskType
]}
?taskStatus=
${
target
.
taskStatus
}
&id=
${
target
.
id
}
`
,
})
})
...
@@ -224,12 +217,19 @@ Page({
...
@@ -224,12 +217,19 @@ Page({
[
`list[
${
pageNum
-
1
}
]`
]:
list
[
`list[
${
pageNum
-
1
}
]`
]:
list
})
})
}
}
if
(
scrollTop
>=
topBoxHeight
&&
repload
)
{
if
(
repload
)
{
setTimeout
(()
=>
{
const
query
=
wx
.
createSelectorQuery
().
in
(
this
)
this
.
setData
({
query
.
select
(
'.top-box'
).
boundingClientRect
()
setScrollTop
:
topBoxHeight
query
.
exec
(
res
=>
{
})
let
topBoxHeight
=
res
[
0
].
height
},
200
)
if
(
scrollTop
>=
topBoxHeight
)
{
setTimeout
(()
=>
{
this
.
setData
({
setScrollTop
:
topBoxHeight
})
},
200
)
}
})
}
}
this
.
setData
({
this
.
setData
({
total
,
total
,
...
...
pages/tab/index/index.wxml
View file @
5d2654e
...
@@ -40,77 +40,77 @@
...
@@ -40,77 +40,77 @@
<view class="content-box">
<view class="content-box">
<view class="list">
<view class="list">
<block wx:if="{{ list.length > 0 }}">
<block wx:if="{{ list.length > 0 }}">
<block wx:for="{{ list }}" wx:for-item="val" wx:for-index="sIndex" wx:key="sIndex">
<block wx:for="{{ list }}" wx:for-item="val" wx:for-index="sIndex" wx:key="sIndex">
<block wx:for="{{val}}" wx:key="index">
<block wx:for="{{val}}" wx:key="index">
<view class="item content">
<view class="item content">
<!-- 顶部状态和标题 -->
<!-- 顶部状态和标题 -->
<view class="item-top">
<view class="item-top">
<view
<view
class="status text-center"
class="status text-center"
style="color: {{statusMap[item.taskStatus].color}}; background-color: {{statusMap[item.taskStatus].background}};"
style="color: {{statusMap[item.taskStatus].color}}; background-color: {{statusMap[item.taskStatus].background}};"
>
>
{{statusMap[item.taskStatus].name}}
{{statusMap[item.taskStatus].name}}
</view>
</view>
<view class="name" wx:if="{{item.taskType != 4}}">
<view class="name" wx:if="{{item.taskType != 4}}">
{{missionMap[item.taskType].name}}
{{missionMap[item.taskType].name}}
<text wx:if="{{item.taskType == 5}}">-{{item.storeManagerName}}</text>
<text wx:if="{{item.taskType == 5}}">-{{item.storeManagerName}}</text>
</view>
</view>
<view class="name" wx:else>{{item.merchantName || '-'}}</view>
<view class="name" wx:else>{{item.merchantName || '-'}}</view>
</view>
<view wx:if="{{(item.taskType == 0 || item.taskType == 1 || item.taskType == 2) && item.taskStatus == 2}}" class="list-item">
<image class="icon" src="{{IMG_URL}}task-icon.png" mode="" />
<view class="label">{{['日报内容:', '复盘内容:', '月度计划:'][item.taskType]}}</view>
<view class="text-hide">{{item.taskContext || '-'}}</view>
</view>
<block wx:if="{{item.taskType == 4}}">
<view class="list-item">
<image class="icon" src="{{IMG_URL}}matter-icon.png" mode="" />
<view class="label">事项描述:</view>
<view class="text-hide">{{item.taskDesc || '-'}}</view>
</view>
</view>
<view wx:if="{{(item.taskType == 0 || item.taskType == 1 || item.taskType == 2) && item.taskStatus == 2}}" class="list-item">
<view wx:if="{{item.taskStatus == 2}}" class="list-item">
<image class="icon" src="{{IMG_URL}}task-icon.png" mode="" />
<image class="icon" src="{{IMG_URL}}task-icon.png" mode="" />
<view class="label">
专项任务:
</view>
<view class="label">
{{['日报内容:', '复盘内容:', '月度计划:'][item.taskType]}}
</view>
<view class="text-hide">{{item.taskContext || '-'}}</view>
<view class="text-hide">{{item.taskContext || '-'}}</view>
</view>
</view>
<block wx:if="{{item.taskType == 4}}">
<view wx:else class="list-item">
<view class="list-item">
<image class="icon" src="{{IMG_URL}}matter-icon.png" mode="" />
<view class="label">事项描述:</view>
<view class="text-hide">{{item.taskDesc || '-'}}</view>
</view>
<view wx:if="{{item.taskStatus == 2}}" class="list-item">
<image class="icon" src="{{IMG_URL}}task-icon.png" mode="" />
<view class="label">专项任务:</view>
<view class="text-hide">{{item.taskContext || '-'}}</view>
</view>
<view wx:else class="list-item">
<image class="icon" src="{{IMG_URL}}time-icon.png" mode="" />
<view class="label">创建时间:</view>
<view>{{item.createTime || '-'}}</view>
</view>
</block>
<view wx:if="{{item.taskType != 4 || (item.taskType == 4 && item.taskStatus == 2)}}" class="list-item">
<image class="icon" src="{{IMG_URL}}time-icon.png" mode="" />
<image class="icon" src="{{IMG_URL}}time-icon.png" mode="" />
<view class="label">
创建
时间:</view>
<view class="label">
完成
时间:</view>
<view>{{item.
createTim
e || '-'}}</view>
<view>{{item.
updatedDat
e || '-'}}</view>
</view>
</view>
</block>
<view wx:if="{{item.taskType == 3}}" class="list-item">
<view wx:if="{{item.taskType != 4 || (item.taskType == 4 && item.taskStatus == 2)}}" class="list-item">
<view class="progress">
<image class="icon" src="{{IMG_URL}}time-icon.png" mode="" />
<view class="progress-line"></view>
<view class="label">完成时间:</view>
<view
<view>{{item.updatedDate || '-'}}</view>
class="progress-item"
</view>
style="width: {{ (item.audioReviewCompletedCount / item.audioReviewTotalCount * 100) + '%' }}"
<view wx:if="{{item.taskType == 3}}" class="list-item">
></view>
<view class="progress">
<view class="num">{{item.audioReviewCompletedCount + '/' + item.audioReviewTotalCount}}</view>
<view class="progress-line"></view>
</view>
<view
class="progress-item"
style="width: {{ (item.audioReviewCompletedCount / item.audioReviewTotalCount * 100) + '%' }}"
></view>
<view class="num">{{item.audioReviewCompletedCount + '/' + item.audioReviewTotalCount}}</view>
</view>
</view>
</view>
<!-- 底部按钮 -->
<!-- 底部按钮 -->
<view class="btn-box">
<view class="btn-box">
<view
<view
bindtap="jump"
bindtap="jump"
data-target="{{item}}"
data-target="{{item}}"
class="btn {{item.taskStatus == 2 ? '' : 'primary'}}"
class="btn {{item.taskStatus == 2 ? '' : 'primary'}}"
>
>
{{item.taskStatus == 2 ? '查看' : '去执行'}}
{{item.taskStatus == 2 ? '查看' : '去执行'}}
</view>
</view>
</view>
</view>
</view>
</
view
>
</
block
>
</block>
</block>
</block>
<block wx:if="{{ nothing }}">
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
<view class="list-nothing">到底了~</view>
</block>
</block>
...
...
pages/tab/learningCenter/components/CardItem/CardItem.js
View file @
5d2654e
...
@@ -39,7 +39,7 @@ Component({
...
@@ -39,7 +39,7 @@ Component({
},
},
goPush
(
e
)
{
goPush
(
e
)
{
let
{
target
}
=
e
.
currentTarget
.
dataset
let
{
target
}
=
e
.
currentTarget
.
dataset
//
wx.$track.setTrackData(0, 'supervisor_course_push', {}, '')
wx
.
$track
.
setTrackData
(
0
,
'supervisor_course_push'
,
{},
''
)
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
`/packageLearningCenter/pages/coursePush/coursePush?title=
${
target
.
title
}
&totalDuration=
${
target
.
totalDuration
}
&learnTotal=
${
target
.
learnTotal
}
&_imageUrl=
${
target
.
_imageUrl
}
&_tagText=
${
target
.
_tagText
}
`
url
:
`/packageLearningCenter/pages/coursePush/coursePush?title=
${
target
.
title
}
&totalDuration=
${
target
.
totalDuration
}
&learnTotal=
${
target
.
learnTotal
}
&_imageUrl=
${
target
.
_imageUrl
}
&_tagText=
${
target
.
_tagText
}
`
})
})
...
...
pages/tab/learningCenter/learningCenter.js
View file @
5d2654e
...
@@ -8,7 +8,8 @@ Page({
...
@@ -8,7 +8,8 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
navBarHeight
:
84
,
statisticsData
:
{},
statisticsData
:
{},
showSearchIcon
:
true
,
showSearchIcon
:
true
,
pageNum
:
1
,
pageNum
:
1
,
...
@@ -97,7 +98,7 @@ Page({
...
@@ -97,7 +98,7 @@ Page({
onTabItemTap
(
e
)
{
onTabItemTap
(
e
)
{
// 点击埋点
// 点击埋点
//
wx.$track.setTrackData(0, 'supervisor_learning_page', {}, '')
wx
.
$track
.
setTrackData
(
0
,
'supervisor_learning_page'
,
{},
''
)
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
...
@@ -115,7 +116,7 @@ Page({
...
@@ -115,7 +116,7 @@ Page({
title
:
'加载中'
,
title
:
'加载中'
,
mask
:
true
mask
:
true
})
})
//
wx.$track.setTrackData(0, 'supervisor_course_detail', {}, '')
wx
.
$track
.
setTrackData
(
0
,
'supervisor_course_detail'
,
{},
''
)
api
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
api
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
wx
.
hideLoading
()
wx
.
hideLoading
()
const
beisenToken
=
res
.
data
;
const
beisenToken
=
res
.
data
;
...
...
pages/tab/mine/mine.js
View file @
5d2654e
...
@@ -7,7 +7,8 @@ Page({
...
@@ -7,7 +7,8 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
navBarHeight
:
84
,
navStyle
:
'background-color: rgba(0,0,0,0);box-shadow:none;'
,
navStyle
:
'background-color: rgba(0,0,0,0);box-shadow:none;'
,
isForbidden
:
false
isForbidden
:
false
},
},
...
@@ -23,7 +24,7 @@ Page({
...
@@ -23,7 +24,7 @@ Page({
},
},
onTabItemTap
(
e
)
{
onTabItemTap
(
e
)
{
// 点击埋点
// 点击埋点
//
wx.$track.setTrackData(0, 'supervisor_mine_page', {}, '')
wx
.
$track
.
setTrackData
(
0
,
'supervisor_mine_page'
,
{},
''
)
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
let
navBarHeight
=
e
.
detail
.
height
...
...
pages/wxLogin/wxLogin.js
View file @
5d2654e
...
@@ -11,6 +11,7 @@ Page({
...
@@ -11,6 +11,7 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
navBarHeight
:
84
,
password
:
''
,
password
:
''
,
userName
:
''
,
userName
:
''
,
count
:
60
,
count
:
60
,
...
@@ -40,12 +41,6 @@ Page({
...
@@ -40,12 +41,6 @@ Page({
noLoginAgreeChoose
:
agree
noLoginAgreeChoose
:
agree
})
})
},
},
/**显示隐藏密码 */
pwdSwitch
()
{
this
.
setData
({
showPwd
:
!
this
.
data
.
showPwd
})
},
authChoose
(
e
)
{
authChoose
(
e
)
{
let
{
let
{
detail
:
agree
detail
:
agree
...
@@ -151,8 +146,6 @@ Page({
...
@@ -151,8 +146,6 @@ Page({
if
(
loginType
==
1
&&
(
!
code
||
!
mobile
))
return
if
(
loginType
==
1
&&
(
!
code
||
!
mobile
))
return
const
checkAgree
=
this
.
checkAgree
()
const
checkAgree
=
this
.
checkAgree
()
if
(
checkAgree
)
return
false
if
(
checkAgree
)
return
false
if
(
!
flag
)
return
if
(
!
flag
)
return
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
if
(
this
.
data
.
jumpPageFlag
)
return
if
(
this
.
data
.
jumpPageFlag
)
return
...
...
project.private.config.json
View file @
5d2654e
{
{
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"condition"
:
{
"condition"
:
{
"miniprogram"
:
{
"miniprogram"
:
{
"list"
:
[
"list"
:
[
{
{
"name"
:
"复盘"
,
"name"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"pathName"
:
"packageIndex/pages/recordingReview/recordingReview"
,
"pathName"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"query"
:
""
,
"query"
:
"storeManagerName=%E9%99%88%E5%B8%8C&gender=null&storeManagerPhone=13132112126&entryDate=2025-03-18&business=%E5%BB%B6%E4%BF%9D&selectedMerchantId=44211227&scene=1&employeeId=584fdb460afa4dad835cbe8d73cfa923"
,
"scene"
:
null
,
"scene"
:
null
,
"launchMode"
:
"default"
"launchMode"
:
"default"
},
},
{
{
"name"
:
"packageIndex/pages/weeklyReview/weeklyReview"
,
"name"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"pathName"
:
"packageIndex/pages/weeklyReview/weeklyReview"
,
"pathName"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"query"
:
""
,
"query"
:
"query=%7B%22employeeName%22%3A%22%E9%99%88%E5%B8%8C%22%2C%22phone%22%3A%2213132112126%22%2C%22studyHours%22%3A0%2C%22completedCourses%22%3A0%2C%22coachingTimes%22%3A1%2C%22employeePhone%22%3A%2213132112126%22%2C%22scene%22%3A1%2C%22startDate%22%3A%222026-03-20%22%2C%22endDate%22%3A%222026-03-20%22%2C%22timeDimension%22%3A0%7D"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"name"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"pathName"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"pathName"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"query"
:
""
,
"query"
:
"storeManagerName=%E9%99%88%E5%B8%8C&gender=null&storeManagerPhone=13132112126&entryDate=2025-03-18&business=%E5%BB%B6%E4%BF%9D&selectedMerchantId=44211227&scene=1&employeeId=584fdb460afa4dad835cbe8d73cfa923"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"name"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"pathName"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"pathName"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"query"
:
""
,
"query"
:
"storeManagerName=%E6%B5%8B%E8%AF%95%E5%91%98%E5%B7%A51194&gender=%E7%94%B7&storeManagerPhone=13132112126&entryDate=2025-04-05&business=%E5%BB%B6%E4%BF%9D&selectedMerchantId=44211227&scene=&employeeId=584fdb460afa4dad835cbe8d73cfa923"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"name"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"pathName"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"pathName"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"query"
:
""
,
"query"
:
"storeManagerName=%E6%B5%8B%E8%AF%95%E5%91%98%E5%B7%A51194&gender=%E7%94%B7&storeManagerPhone=13132112126&entryDate=2025-04-05&business=%E5%BB%B6%E4%BF%9D&merchantId=44211227&scene=&employeeId=584fdb460afa4dad835cbe8d73cfa923"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"packageCrew/pages/storeTransfer/storeTransfer"
,
"name"
:
"复盘"
,
"pathName"
:
"packageCrew/pages/storeTransfer/storeTransfer"
,
"pathName"
:
"packageIndex/pages/recordingReview/recordingReview"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"name"
:
"packageIndex/pages/weeklyReview/weeklyReview"
,
"pathName"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"pathName"
:
"packageIndex/pages/weeklyReview/weeklyReview"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"packageIndex/pages/specialTask/specialTask"
,
"name"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"pathName"
:
"packageIndex/pages/specialTask/specialTask"
,
"pathName"
:
"packageCrew/pages/receptionRecording/receptionRecording"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"packageIndex/pages/monthlyPlan/monthlyPlan"
,
"name"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"pathName"
:
"packageIndex/pages/monthlyPlan/monthlyPlan"
,
"pathName"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"packageIndex/pages/weeklyReview/weeklyReview"
,
"name"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"pathName"
:
"packageIndex/pages/weeklyReview/weeklyReview"
,
"pathName"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"packageIndex/pages/dailySupervisionReport/dailySupervisionReport"
,
"name"
:
"packageCrew/pages/storeTransfer/storeTransfer"
,
"pathName"
:
"packageIndex/pages/dailySupervisionReport/dailySupervisionReport"
,
"pathName"
:
"packageCrew/pages/storeTransfer/storeTransfer"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"申诉列表"
,
"name"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"pathName"
:
"packageWorkspace/pages/appealFormManage/appealFormList/appealFormList"
,
"pathName"
:
"packageCrew/pages/peopleOverview/peopleOverview"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"考勤列表"
,
"name"
:
"packageIndex/pages/specialTask/specialTask"
,
"pathName"
:
"packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList"
,
"pathName"
:
"packageIndex/pages/specialTask/specialTask"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"有效引荐数"
,
"name"
:
"packageIndex/pages/monthlyPlan/monthlyPlan"
,
"pathName"
:
"packageWorkspace/pages/validReferralCount/referralCountList/referralCountList"
,
"pathName"
:
"packageIndex/pages/monthlyPlan/monthlyPlan"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"精品升级"
,
"name"
:
"packageIndex/pages/weeklyReview/weeklyReview"
,
"pathName"
:
"tabWorkOrder/pages/createOrder/createOrder"
,
"pathName"
:
"packageIndex/pages/weeklyReview/weeklyReview"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"权战ai"
,
"name"
:
"packageIndex/pages/dailySupervisionReport/dailySupervisionReport"
,
"pathName"
:
"packageEquity/pages/createDeafeatOrderAi/createDeafeatOrderAi"
,
"pathName"
:
"packageIndex/pages/dailySupervisionReport/dailySupervisionReport"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"权订单"
,
"name"
:
"申诉列表"
,
"pathName"
:
"packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple"
,
"pathName"
:
"packageWorkspace/pages/appealFormManage/appealFormList/appealFormList"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"质检"
,
"name"
:
"考勤列表"
,
"pathName"
:
"packageEquity/pages/aiInspection/aiInspection"
,
"pathName"
:
"packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList"
,
"query"
:
"badgeId=4827E2F0CD24"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"驻店目标"
,
"name"
:
"有效引荐数"
,
"pathName"
:
"packageEquity/pages/residentTarget/residentTarget"
,
"pathName"
:
"packageWorkspace/pages/validReferralCount/referralCountList/referralCountList"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"线管理"
,
"name"
:
"精品升级"
,
"pathName"
:
"packageEquity/pages/clueList/clueList"
,
"pathName"
:
"tabWorkOrder/pages/createOrder/createOrder"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"场景"
,
"name"
:
"权战ai"
,
"pathName"
:
"pages/sceneIndex/sceneIndex"
,
"pathName"
:
"packageEquity/pages/createDeafeatOrderAi/createDeafeatOrderAi"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"员工日报"
,
"name"
:
"权订单"
,
"pathName"
:
"tabWorkOrder/pages/staffDaily/staffDaily"
,
"pathName"
:
"packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"权益-个人中心"
,
"name"
:
"质检"
,
"pathName"
:
"packageEquity/pages/TabBar/equityPage"
,
"pathName"
:
"packageEquity/pages/aiInspection/aiInspection"
,
"query"
:
""
,
"query"
:
"badgeId=4827E2F0CD24"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"创建权益订单"
,
"name"
:
"驻店目标"
,
"pathName"
:
"packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple"
,
"pathName"
:
"packageEquity/pages/residentTarget/residentTarget"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"权益列表"
,
"name"
:
"线管理"
,
"pathName"
:
"packageEquity/pages/TabBar/equityPage"
,
"pathName"
:
"packageEquity/pages/clueList/clueList"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"领券预约"
,
"name"
:
"场景"
,
"pathName"
:
"tabMine/pages/collectCoupons/collectCoupons"
,
"pathName"
:
"pages/sceneIndex/sceneIndex"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
"个人中心"
,
"name"
:
"员工日报"
,
"pathName"
:
"pages/tabMine/pages/index/index"
,
"pathName"
:
"tabWorkOrder/pages/staffDaily/staffDaily"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
}
},
]
{
}
"name"
:
"权益-个人中心"
,
},
"pathName"
:
"packageEquity/pages/TabBar/equityPage"
,
"libVersion"
:
"3.12.0"
,
"query"
:
""
,
"projectname"
:
"supervisor-miniprogram"
,
"launchMode"
:
"default"
,
"setting"
:
{
"scene"
:
null
"compileHotReLoad"
:
false
},
}
{
"name"
:
"创建权益订单"
,
"pathName"
:
"packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"权益列表"
,
"pathName"
:
"packageEquity/pages/TabBar/equityPage"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"领券预约"
,
"pathName"
:
"tabMine/pages/collectCoupons/collectCoupons"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"个人中心"
,
"pathName"
:
"pages/tabMine/pages/index/index"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
]
}
},
"libVersion"
:
"3.12.0"
,
"projectname"
:
"supervisor-miniprogram"
,
"setting"
:
{
"compileHotReLoad"
:
false
}
}
}
\ No newline at end of file
\ No newline at end of file
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