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 a2253123
authored
May 25, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
辅导任务需求开发
1 parent
3f01dc93
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
1148 additions
and
177 deletions
api/crew/index.js
api/index/index.js
app.json
components/TabBar/TabBar.js
components/TabBar/TabBar.wxml
components/TabBar/TabBar.wxss
components/dateScreen/dateScreen.js
packageCrew/pages/receptionRecording/components/recordItem/recordItem.js → components/recordItem/recordItem.js
packageCrew/pages/receptionRecording/components/recordItem/recordItem.json → components/recordItem/recordItem.json
packageCrew/pages/receptionRecording/components/recordItem/recordItem.sass → components/recordItem/recordItem.sass
packageCrew/pages/receptionRecording/components/recordItem/recordItem.wxml → components/recordItem/recordItem.wxml
config.js
packageCrew/pages/mentoring/mentoring.js
packageCrew/pages/mentoring/mentoring.json
packageCrew/pages/mentoring/mentoring.sass
packageCrew/pages/mentoring/mentoring.wxml
packageCrew/pages/peopleOverview/peopleOverview.js
packageCrew/pages/receptionRecording/receptionRecording.json
packageCrew/pages/recordingDetail/recordingDetail.js
packageCrew/pages/recordingDetail/recordingDetail.json
packageIndex/pages/caseAudioList/caseAudioList.js
packageIndex/pages/caseAudioList/caseAudioList.json
packageIndex/pages/caseAudioList/caseAudioList.sass
packageIndex/pages/caseAudioList/caseAudioList.wxml
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.js
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.json
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.sass
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.wxml
packageIndex/pages/mentorRequirements/mentorRequirements.js
packageIndex/pages/mentorRequirements/mentorRequirements.json
packageIndex/pages/mentorRequirements/mentorRequirements.sass
packageIndex/pages/mentorRequirements/mentorRequirements.wxml
packageIndex/pages/monthlyPlan/monthlyPlan.js
packageIndex/pages/monthlyPlan/monthlyPlan.sass
packageIndex/pages/monthlyPlan/monthlyPlan.wxml
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/index/index.js
pages/tab/index/index.sass
pages/tab/index/index.wxml
pages/wxLogin/wxLogin.js
utils/track.js
api/crew/index.js
View file @
a225312
...
...
@@ -70,5 +70,13 @@ module.exports = {
// 人员带教
submitMentorData
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.mini.team.coaching.submit'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
},
// 获取人员带教表单字典数据
getMentorDictList
(
data
)
{
return
api
.
post
(
'dj.api.staff.miniprogram.dict.list'
,
data
,
[],
'/rop-dj-staff-miniprogram/router'
)
},
// 获取带教参与人员列表数据
getParticipantOptions
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.mini.team.staff.baseInfo.page'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
}
}
api/index/index.js
View file @
a225312
...
...
@@ -4,6 +4,10 @@ module.exports = {
getSupervisorStaticData
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.mini.get.teamOverview'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
},
// 获取任务tab统计数据
getTaskTabData
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.mini.get.unfinishedTaskCount'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
},
// 获取任务列表数据
getMissionList
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.mini.page.task'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
...
...
@@ -77,4 +81,16 @@ module.exports = {
findConversationDetailByBatchIdNew
(
data
)
{
return
api
.
post
(
'dj.api.car.boutique.inspection.findConversationDetailByBatchIdNew'
,
data
,
[],
'/rop-dj-car-boutique/router'
)
},
/**
* 获取提报的优秀案例录音列表
*/
getSubmitCaseAudioList
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.mini.excellent.case.listByTaskId'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
},
/**
* 获取带教要求完成数据列表
*/
getMentorRequireList
(
data
)
{
return
api
.
post
(
'dj.api.supervisor.mini.page.teachingRecords'
,
data
,
[],
'/rop-dj-supervisor-mini/router'
)
}
}
app.json
View file @
a225312
...
...
@@ -62,7 +62,9 @@
"pages/submitRecordingReview/submitRecordingReview"
,
"pages/weeklyReview/weeklyReview"
,
"pages/monthlyPlan/monthlyPlan"
,
"pages/specialTask/specialTask"
"pages/specialTask/specialTask"
,
"pages/mentorRequirements/mentorRequirements"
,
"pages/caseAudioList/caseAudioList"
]
},
{
...
...
components/TabBar/TabBar.js
View file @
a225312
...
...
@@ -19,7 +19,8 @@ Component({
}
}
},
scroll
:
Boolean
scroll
:
Boolean
,
badge
:
Boolean
},
/**
* 组件的初始数据
...
...
components/TabBar/TabBar.wxml
View file @
a225312
...
...
@@ -14,8 +14,9 @@
<view class="tab" style="grid-template-columns: repeat({{tabList.length}}, 1fr);font-size:{{tabList.length>5?'var(--fontSize24)':''}} ;">
<block wx:for="{{tabList}}" wx:key="index">
<view class="tab-item {{tabIndex==index?'active':''}}" bindtap="change" data-index="{{index}}">
<text id="tab-{{index}}"><text class="tab-item-text">{{item.text || item }}</text><text wx:if="{{item.count}}"><text style="margin: 0 6rpx;">·</text>{{item.count}}</text></text>
</view>
<text id="tab-{{index}}"><text class="tab-item-text">{{item.text || item }}</text><text wx:if="{{item.count && !badge}}"><text style="margin: 0 6rpx;">·</text>{{item.count}}</text></text>
<view wx:if="{{badge && item.count}}" class="badge">{{item.count}}</view>
</view>
</block>
<view class="active-doc" style="{{activeStyle}}" />
</view>
...
...
components/TabBar/TabBar.wxss
View file @
a225312
...
...
@@ -38,6 +38,7 @@
.tab .tab-item {
text-align: center;
margin-right: 32rpx;
position: relative;
}
.scroll .tab-item {
...
...
@@ -61,4 +62,19 @@
border-radius: var(--fontSize6);
background-color: #2C66F7;
content: '';
}
.badge {
padding: 0 10rpx;
height: 32rpx;
display: flex;
align-items: center;
justify-content: center;
color: #FFFFFF;
border-radius: 32rpx;
background: #F24724;
position: absolute;
top: -12rpx;
left: 124rpx;
font-size: 20rpx;
}
\ No newline at end of file
components/dateScreen/dateScreen.js
View file @
a225312
...
...
@@ -395,12 +395,18 @@ Component({
},
// 年月日确认
confirm
()
{
const
{
selectedDate
,
timeType
,
currentWeek
,
current
}
=
this
.
data
;
const
{
selectedDate
,
timeType
,
currentWeek
}
=
this
.
data
;
const
baseDate
=
selectedDate
||
this
.
data
.
currentDate
||
dayjs
().
valueOf
();
const
formatMap
=
{
date
:
()
=>
dayjs
(
selected
Date
).
format
(
'YYYY/MM/DD'
),
'year-month'
:
()
=>
dayjs
(
selected
Date
).
format
(
'YYYY/MM'
),
date
:
()
=>
dayjs
(
base
Date
).
format
(
'YYYY/MM/DD'
),
'year-month'
:
()
=>
dayjs
(
base
Date
).
format
(
'YYYY/MM'
),
week
:
()
=>
`
${
currentWeek
.
startDate
}
-
${
currentWeek
.
endDate
}
`
};
const
valueMap
=
{
date
:
()
=>
dayjs
(
baseDate
).
valueOf
(),
'year-month'
:
()
=>
dayjs
(
baseDate
).
valueOf
(),
week
:
()
=>
dayjs
(
currentWeek
?.
startDate
,
'YYYY/MM/DD'
).
valueOf
()
};
// 边界状态统一计算
const
calcBoundary
=
()
=>
{
const
{
timeType
,
selectedDate
,
currentWeek
,
weekColumns
,
minDate
}
=
this
.
data
;
...
...
@@ -411,7 +417,7 @@ Component({
case
'date'
:
{
const
today
=
dayjs
().
startOf
(
'day'
);
const
min
=
dayjs
(
minDate
).
startOf
(
'day'
);
const
sel
=
dayjs
(
selectedDate
).
startOf
(
'day'
);
const
sel
=
dayjs
(
selectedDate
||
this
.
data
.
currentDate
||
this
.
data
.
date
).
startOf
(
'day'
);
rightCurrent
=
sel
.
isSame
(
today
,
'day'
);
leftCurrent
=
sel
.
isSame
(
min
,
'day'
);
break
;
...
...
@@ -419,7 +425,7 @@ Component({
case
'year-month'
:
{
const
current
=
dayjs
().
startOf
(
'month'
);
const
min
=
dayjs
(
minDate
).
startOf
(
'month'
);
const
sel
=
dayjs
(
selectedDate
);
const
sel
=
dayjs
(
selectedDate
||
this
.
data
.
currentDate
||
this
.
data
.
date
);
rightCurrent
=
sel
.
isSame
(
current
,
'month'
);
leftCurrent
=
sel
.
isSame
(
min
,
'month'
);
break
;
...
...
@@ -438,7 +444,7 @@ Component({
calcBoundary
();
this
.
setData
({
dateShow
:
false
,
currentDate
:
(
formatMap
[
timeType
]
||
(()
=>
''
))(),
currentDate
:
(
valueMap
[
timeType
]
||
(()
=>
dayjs
().
valueOf
()
))(),
date
:
(
formatMap
[
timeType
]
||
(()
=>
''
))()
},
()
=>
{
this
.
_emitPopupVisible
(
false
)
...
...
packageCrew/pages/receptionRecording/
components/recordItem/recordItem.js
→
components/recordItem/recordItem.js
View file @
a225312
...
...
@@ -39,7 +39,7 @@ Component({
methods
:
{
onViewItem
(
e
)
{
let
{
record
,
detailInfo
}
=
this
.
data
record
.
storeManagerName
=
detailInfo
.
storeManagerName
record
.
storeManagerName
=
detailInfo
.
storeManagerName
||
record
.
salesName
wx
.
navigateTo
({
url
:
`/packageCrew/pages/recordingDetail/recordingDetail?record=
${
JSON
.
stringify
(
record
)}
`
,
})
...
...
packageCrew/pages/receptionRecording/
components/recordItem/recordItem.json
→
components/recordItem/recordItem.json
View file @
a225312
File moved
packageCrew/pages/receptionRecording/
components/recordItem/recordItem.sass
→
components/recordItem/recordItem.sass
View file @
a225312
File moved
packageCrew/pages/receptionRecording/
components/recordItem/recordItem.wxml
→
components/recordItem/recordItem.wxml
View file @
a225312
...
...
@@ -5,7 +5,7 @@
<view class="phone">{{record.phoneNumber}}</view>
</view>
<view class="right">
<view class="staff">{{detailInfo.storeManagerName || '-'}}</view>
<view class="staff">{{detailInfo.storeManagerName ||
record.salesName ||
'-'}}</view>
<view class="status" style="color: {{statusMap[record.receptionResult].color}};background: {{statusMap[record.receptionResult].background}}">{{record.receptionResult}}</view>
</view>
</view>
...
...
config.js
View file @
a225312
...
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let
index
=
2
;
let
index
=
1
;
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
...
...
packageCrew/pages/mentoring/mentoring.js
View file @
a225312
This diff is collapsed.
Click to expand it.
packageCrew/pages/mentoring/mentoring.json
View file @
a225312
{
"usingComponents"
:
{
"van-icon"
:
"@vant/weapp/icon/index"
,
"van-datetime-picker"
:
"@vant/weapp/datetime-picker/index"
,
"select-popup"
:
"/components/selectPopup/selectPopup"
},
"navigationStyle"
:
"custom"
...
...
packageCrew/pages/mentoring/mentoring.sass
View file @
a225312
...
...
@@ -134,8 +134,63 @@ page{
}
}
}
.multi-select
{
padding
:
0
32rpx
;
border-bottom
:
1rpx
solid
#eff0f2
;
.multi-select__header
{
height
:
96rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.multi-select__label
{
color
:
#292D33
;
}
.multi-select__arrow
{
flex-shrink
:
0
;
width
:
32rpx
;
height
:
32rpx
;
transform
:
rotate
(
-90deg
)
;
}
.multi-select__body
{
margin-bottom
:
12rpx
;
}
.multi-placeholder
{
color
:
#BEC1C7
;
font-size
:
28rpx
;
}
.multi-tags
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
24rpx
;
}
.multi-tag
{
display
:
inline-flex
;
align-items
:
center
;
max-width
:
100%
;
padding
:
0
20rpx
;
height
:
44rpx
;
border-radius
:
8rpx
;
background
:
#F6F7F9
;
border
:
2rpx
solid
#E6E8EC
;
box-sizing
:
border-box
;
}
.multi-tag__text
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
font-size
:
28rpx
;
color
:
#292D33
;
}
.multi-tag__close
{
margin-left
:
16rpx
;
color
:
#999EA8
;
font-size
:
32rpx
;
line-height
:
1
;
}
}
.remark_box
{
height
:
59
2rpx
;
height
:
38
2rpx
;
align-items
:
flex-start
;
justify-content
:
flex-start
;
flex-flow
:
column
;
...
...
@@ -149,7 +204,7 @@ page{
padding
:
24rpx
24rpx
42rpx
;
background
:
#FFFFFF
;
border
:
2rpx
solid
#eff0f2
;
height
:
480
rpx
;
height
:
262
rpx
;
position
:
relative
;
font-size
:
28rpx
;
.textarea
{
...
...
@@ -219,24 +274,32 @@ page{
}
}
}
.footer-btn
{
padding-bottom
:
20rpx
;
.btn
{
margin
:
52rpx
64rpx
;
width
:
calc
(
100%
-
128rpx
)
;
height
:
88rpx
;
text-align
:
center
;
line-height
:
88rpx
;
background
:
#2C66F7
;
border-radius
:
24rpx
;
font-size
:
32rpx
;
color
:
#FFFFFF
;
font-weight
:
500
;
&
.fixed-btn
{
position
:
fixed
;
left
:
0
;
bottom
:
144rpx
;
}
}
}
.isFullSucreen-btn
{
padding-bottom
:
34px
!
important
;
}
.footer-btn
{
position
:
fixed
;
left
:
0
;
width
:
100%
;
bottom
:
0
;
min-height
:
100rpx
;
background
:
#FFFFFF
;
box-sizing
:
border-box
;
display
:
flex
;
align-items
:
center
;
font-weight
:
500
;
z-index
:
99
;
.btn
{
margin
:
16rpx
32rpx
;
width
:
calc
(
100%
-
64rpx
)
;
height
:
88rpx
;
text-align
:
center
;
line-height
:
88rpx
;
background
:
#2C66F7
;
border-radius
:
24rpx
;
font-size
:
32rpx
;
color
:
#FFFFFF
;
font-weight
:
500
;
}
}
\ No newline at end of file
}
packageCrew/pages/mentoring/mentoring.wxml
View file @
a225312
...
...
@@ -9,52 +9,96 @@
人员带教
</view>
</navigation-bar>
<scroll-view class="container" scroll-y show-scrollbar="{{false}}" enhanced style="padding-top:
{{navBarHeight}}px
;">
<scroll-view class="container" scroll-y show-scrollbar="{{false}}" enhanced style="padding-top:
calc({{navBarHeight}}px + 8rpx);padding-bottom: {{orderObj.taskStatus != 2 ? (isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx') : '0'}}
;">
<view style="width: 100%;height: 8rpx;"></view>
<view class="box">
<view class="name">
<view class="staff">
<view class="text-hide staff-name">{{orderObj.storeManagerName}}</view>
<image class="sex-icon" src="{{IMG_URL}}{{orderObj.gender == '女' ? 'female-icon' : 'male-iconx'}}.png" mode="aspectFit" />
</view>
</view>
<view class="items">
<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="value">{{orderObj[item.key] || '-'}}</view>
</view>
</view>
</view>
<view class="box padding-0">
<view class="item-box">
<view class="label">督导门店<text class='required'>*</text></view>
<view class="value" bindtap="chooseSelect" data-type="merchant">
<text wx:if="{{orderObj.merchantName}}" class="value-text">{{orderObj.merchantName}}</text>
<block wx:else>
<text class="placeholder">点击选择</text>
</block>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
</view>
<view class="item-box">
<view class="label">推送课程<text class='required'>*</text></view>
<view class="value" bindtap="chooseSelect" data-type="course">
<text wx:if="{{orderObj.courseList.length}}" class="value-text">已选{{orderObj.courseList.length}}课</text>
<block wx:else>
<text class="placeholder">点击选择</text>
</block>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
</view>
<block wx:for="{{formItems}}" wx:key="index">
<block wx:if="{{!item.hide}}">
<!-- <view class="item-box">
<view class="label">{{item.label}}<text class='required'>*</text></view>
<view wx:if="{{item.type == 'select'}}" class="value" bindtap="chooseSelect" data-item="{{item}}">
<block wx:if="{{orderObj[item.valueText] || orderObj[item.value].length}}">
<text wx:if="{{item.selectMultiple}}">已选{{orderObj[item.value].length}}{{item.unit}}</text>
<text wx:if="{{orderObj[item.valueText]}}" class="value-text">{{orderObj[item.valueText]}}</text>
</block>
<block wx:else>
<text wx:if="{{!item.selectMultiple}}" class="placeholder">点击选择</text>
<text wx:else class="placeholder">点击选择(可多选)</text>
</block>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
<view class="value_box" wx:elif="{{item.type == 'radio'}}">
<view class="radio-box" wx:for="{{teaching_scene_list}}" wx:for-item="subItem" wx:for-index="subIndex" wx:key="subIndex" bindtap="changeScene" data-value="{{subItem.itemValue}}">
<image wx:if="{{orderObj.teachingSceneCode == subItem.itemValue}}" class="radio-icon" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/radio-checked.png" mode=""/>
<view wx:else class="circle"></view>
<view class="text">{{subItem.itemName}}</view>
</view>
</view>
<view wx:else class="value" bindtap="chooseTime">
<text wx:if="{{orderObj[item.value]}}" class="value-text">{{orderObj[item.value]}}</text>
<block wx:else>
<text class="placeholder">点击选择</text>
</block>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
</view> -->
<view class="multi-select" wx:if="{{item.type == 'select' && item.selectMultiple}}" data-item="{{item}}">
<view class="multi-select__header">
<view class="multi-select__label">{{item.label}}<text class='required'>*</text></view>
<view bindtap="chooseSelect" data-item="{{item}}" style="display: flex;align-items: center;">
<text class="multi-placeholder" wx:if="{{orderObj.taskStatus != 2}}">点击选择(可多选)</text>
<image class="multi-select__arrow" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="aspectFit" />
</view>
</view>
<view class="multi-select__body" wx:if="{{orderObj[item.value] && orderObj[item.value].length}}">
<view class="multi-tags">
<block wx:for="{{orderObj[item.value]}}" wx:for-item="tag" wx:key="tagIndex" wx:for-index="tagIndex">
<view class="multi-tag">
<text class="multi-tag__text" style="max-width: {{orderObj.taskStatus == 2 ? '100%' : 'calc(100% - 36rpx)'}};">{{tag[item.itemName]}}</text>
<text class="multi-tag__close" wx:if="{{orderObj.taskStatus != 2}}" catchtap="removeMultiSelected" data-field="{{item.value}}" data-index="{{tagIndex}}">×</text>
</view>
</block>
</view>
</view>
</view>
<view class="item-box" wx:else>
<view class="label">{{item.label}}<text class='required'>*</text></view>
<view wx:if="{{item.type == 'select'}}" class="value" bindtap="chooseSelect" data-item="{{item}}">
<block wx:if="{{orderObj[item.valueText]}}">
<text class="value-text">{{orderObj[item.valueText]}}</text>
</block>
<block wx:else>
<text class="placeholder">点击选择</text>
</block>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
<view class="value_box" wx:elif="{{item.type == 'radio'}}">
<view class="radio-box" wx:for="{{teaching_scene_list}}" wx:for-item="subItem" wx:for-index="subIndex" wx:key="subIndex" bindtap="changeScene" data-value="{{subItem.itemValue}}">
<image wx:if="{{orderObj.teachingSceneCode == subItem.itemValue}}" class="radio-icon" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/radio-checked.png" mode=""/>
<view wx:else class="circle"></view>
<view class="text">{{subItem.itemName}}</view>
</view>
</view>
<view wx:else class="value" bindtap="chooseTime">
<text wx:if="{{orderObj[item.value]}}" class="value-text">{{orderObj[item.value]}}</text>
<block wx:else>
<text class="placeholder">点击选择</text>
</block>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
</view>
</block>
</block>
<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">
<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}} / 1000</view>
</view>
</view>
<view class="image-box">
<view class="label">
门店拍照
<text class='required'>*</text></view>
<view class="label">
带教照片佐证
<text class='required'>*</text></view>
<view class="upload_box">
<block wx:if="{{orderObj.imageList.length > 0}}">
<view class="payVoucher_image" wx:for="{{orderObj.imageList}}" wx:key="index">
...
...
@@ -73,8 +117,12 @@
</view>
</view>
</view>
<view class="footer-btn" wx:if="{{orderObj.taskStatus != 2}}">
<view class="btn {{orderObj.onBreak == 'Y' ? 'fixed-btn' : ''}}" bindtap="submit">提交</view>
</view>
<view style="width: 100%;height: 20rpx;background: transparent;"></view>
</scroll-view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{selectMultiple}}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" labelKey="{{labelKey}}" valueKey="{{valueKey}}" height="80%" title="{{selectTitle}}" allowSearch="{{true}}" bindcancel="hideSelectPopup"></select-popup>
\ No newline at end of file
<view class="footer-btn {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{orderObj.taskStatus != 2}}">
<view class="btn" bindtap="submit">提交</view>
</view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{selectMultiple}}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" labelKey="{{labelKey}}" valueKey="{{valueKey}}" height="{{selectPopupHeight}}" title="{{selectTitle}}" allowSearch="{{true}}" bindcancel="hideSelectPopup"></select-popup>
<popup bindcancel="cancel" bindconfirm="confirm" wx:if="{{dateShow}}" show="{{dateShow}}" title="时间选择" height="60vh">
<van-datetime-picker id="datePicker" show-toolbar="{{false}}" model:value="{{ currentDate }}" bind:change="onChange" bind:input="onInput" />
</popup>
packageCrew/pages/peopleOverview/peopleOverview.js
View file @
a225312
...
...
@@ -226,9 +226,8 @@ Page({
// 发起带教
handleMentoring
()
{
wx
.
$track
.
setTrackData
(
0
,
`supervisor_start_mentoring`
,
{},
''
)
let
{
baseInfo
}
=
this
.
data
wx
.
navigateTo
({
url
:
`/packageCrew/pages/mentoring/mentoring
?storeManagerName=
${
baseInfo
.
name
}
&gender=
${
baseInfo
.
gender
}
&storeManagerPhone=
${
baseInfo
.
phone
}
&entryDate=
${
baseInfo
.
entryDate
||
''
}
&business=
${
baseInfo
.
business
||
''
}
`
,
url
:
`/packageCrew/pages/mentoring/mentoring`
,
})
},
// 调店记录
...
...
packageCrew/pages/receptionRecording/receptionRecording.json
View file @
a225312
{
"usingComponents"
:
{
"record-item"
:
"
.
/components/recordItem/recordItem"
,
"record-item"
:
"/components/recordItem/recordItem"
,
"date-screen"
:
"/components/dateScreen/dateScreen"
},
"navigationBarTitleText"
:
"接待录音"
...
...
packageCrew/pages/recordingDetail/recordingDetail.js
View file @
a225312
...
...
@@ -29,6 +29,7 @@ Page({
*/
async
onLoad
(
options
)
{
const
record
=
JSON
.
parse
(
options
.
record
)
console
.
log
(
record
,
'22222222'
)
this
.
setData
({
record
,
detailInfo
:
{
storeManagerName
:
record
.
storeManagerName
},
...
...
packageCrew/pages/recordingDetail/recordingDetail.json
View file @
a225312
{
"usingComponents"
:
{
"quality"
:
"./components/quality/quality"
,
"record-item"
:
"
../receptionRecording
/components/recordItem/recordItem"
,
"record-item"
:
"/components/recordItem/recordItem"
,
"dialogue"
:
"./components/dialogue/dialogue"
},
"navigationStyle"
:
"custom"
...
...
packageIndex/pages/caseAudioList/caseAudioList.js
0 → 100644
View file @
a225312
// packageIndex/pages/caseAudioList/caseAudioList.js
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
import
api
from
'~/api/index/index'
Page
({
/**
* 页面的初始数据
*/
data
:
{
IMG_URL
,
navBarHeight
:
84
,
list
:
[],
detailInfo
:
{}
},
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
this
.
setData
({
navBarHeight
})
},
back
()
{
wx
.
navigateBack
()
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
this
.
setData
({
optionsId
:
options
?.
id
},
()
=>
{
this
.
getData
()
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
},
handlePresent
()
{
wx
.
switchTab
({
url
:
'/pages/tab/crew/crew'
})
},
getData
()
{
let
{
optionsId
}
=
this
.
data
api
.
getSubmitCaseAudioList
({
id
:
optionsId
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
data
?.
list
?.
forEach
(
val
=>
{
val
.
carBrand
=
val
.
oneCarBrand
,
val
.
receptionResult
=
val
.
receptionStatus
==
1
?
'成交'
:
val
.
receptionStatus
==
0
?
'战败'
:
''
})
this
.
setData
({
list
:
data
?.
list
||
[]
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
()
{
}
})
\ No newline at end of file
packageIndex/pages/caseAudioList/caseAudioList.json
0 → 100644
View file @
a225312
{
"usingComponents"
:
{
"record-item"
:
"/components/recordItem/recordItem"
},
"navigationStyle"
:
"custom"
}
\ No newline at end of file
packageIndex/pages/caseAudioList/caseAudioList.sass
0 → 100644
View file @
a225312
/* packageIndex/pages/caseAudioList/caseAudioList.wxss */
page
{
background
:
#F2F3F7
;
}
.caseAudioList-page
{
height
:
100vh
;
padding
:
0
32rpx
;
box-sizing
:
border-box
;
.card-item
{
margin-bottom
:
16rpx
;
}
}
.isFullSucreen-btn
{
padding-bottom
:
34px
!
important
;
}
.footer-btn
{
position
:
fixed
;
left
:
0
;
width
:
100%
;
bottom
:
0
;
min-height
:
100rpx
;
background
:
#FFFFFF
;
box-sizing
:
border-box
;
display
:
flex
;
align-items
:
center
;
font-weight
:
500
;
z-index
:
99
;
.btn
{
margin
:
16rpx
32rpx
;
width
:
calc
(
100%
-
64rpx
)
;
height
:
88rpx
;
text-align
:
center
;
line-height
:
88rpx
;
background
:
#2C66F7
;
border-radius
:
24rpx
;
font-size
:
32rpx
;
color
:
#FFFFFF
;
font-weight
:
500
;
&
.fixed-btn
{
position
:
fixed
;
left
:
0
;
bottom
:
144rpx
;
}
}
}
\ No newline at end of file
packageIndex/pages/caseAudioList/caseAudioList.wxml
0 → 100644
View file @
a225312
<!--packageIndex/pages/caseAudioList/caseAudioList.wxml-->
<navigation-bar bindnavbarReady="navbarReady"
class="navigation-header"
showBack
bindback="back"
navStyle="background-color: transparent;box-shadow:none;">
<view class="page-title">
提报优秀案例
</view>
</navigation-bar>
<scroll-view scroll-y class="caseAudioList-page" show-scrollbar="{{false}}" enhanced style="padding-top: calc({{navBarHeight}}px + 8rpx);padding-bottom: {{isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx'}}">
<block wx:if="{{list.length}}">
<view wx:for="{{list}}" wx:key="index">
<view class="card-item">
<record-item record="{{item}}" detailInfo="{{detailInfo}}"></record-item>
</view>
</view>
</block>
<block wx:else>
<empty-data />
</block>
<view style="width: 100%;height: 20rpx;background: transparent;"></view>
</scroll-view>
<view class="footer-btn {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="btn" bindtap="handlePresent">去提报</view>
</view>
\ No newline at end of file
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.js
View file @
a225312
...
...
@@ -13,8 +13,10 @@ Page({
orderObj
:
{
onDutyFlag
:
0
,
taskContext
:
''
,
taskImageList
:
[],
merchantName
:
''
nextWorkItems
:
''
,
needAssistItems
:
''
,
// taskImageList: [],
taskMerchantList
:
[]
},
showSelectPopup
:
false
},
...
...
@@ -56,8 +58,12 @@ Page({
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
let
taskContextLength
=
data
.
taskContext
?.
length
let
nextWorkItemsLength
=
data
.
nextWorkItems
?.
length
let
needAssistItemsLength
=
data
.
needAssistItems
?.
length
this
.
setData
({
taskContextLength
taskContextLength
,
nextWorkItemsLength
,
needAssistItemsLength
},
()
=>
{
this
.
setData
({
orderObj
:
data
||
{}
...
...
@@ -74,7 +80,7 @@ Page({
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
this
.
setData
({
m
erchantList
:
data
||
[]
taskM
erchantList
:
data
||
[]
})
}
else
{
wx
.
$util
.
showToast
(
message
)
...
...
@@ -87,49 +93,60 @@ Page({
let
{
value
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
'orderObj.onDutyFlag'
:
value
,
'orderObj.taskContext'
:
''
,
'orderObj.taskContext'
:
''
,
'orderObj.nextWorkItems'
:
''
,
'orderObj.needAssistItems'
:
''
,
taskContextLength
:
0
,
'orderObj.merchantId'
:
''
,
'orderObj.merchantName'
:
''
,
'orderObj.taskImageList'
:
[]
'orderObj.taskMerchantList'
:
[]
})
},
chooseMerchant
()
{
let
{
orderObj
,
m
erchantList
}
=
this
.
data
let
{
orderObj
,
taskM
erchantList
}
=
this
.
data
if
(
orderObj
.
taskStatus
==
2
)
return
this
.
setData
({
showSelectPopup
:
true
,
selectOptions
:
m
erchantList
,
selectValue
:
[
orderObj
.
merchantId
]
selectOptions
:
taskM
erchantList
,
selectValue
s
:
orderObj
.
taskMerchantList
?.
map
(
v
=>
{
return
v
.
merchantId
})
})
},
handlePopupConfirm
(
e
)
{
let
{
values
,
items
}
=
e
.
detail
this
.
setData
({
[
`orderObj.merchantId`
]:
values
[
0
],
[
'orderObj.merchantName'
]:
items
[
0
]?.
merchantName
'orderObj.taskMerchantList'
:
items
},
()
=>
{
this
.
hideSelectPopup
()
})
},
removeMerchant
(
e
)
{
if
(
this
.
data
.
orderObj
.
taskStatus
==
2
)
return
const
index
=
e
.
currentTarget
?.
dataset
?.
index
const
list
=
Array
.
isArray
(
this
.
data
.
orderObj
?.
taskMerchantList
)
?
this
.
data
.
orderObj
.
taskMerchantList
.
slice
()
:
[]
if
(
index
===
null
||
index
===
undefined
||
index
<
0
||
index
>=
list
.
length
)
return
list
.
splice
(
index
,
1
)
this
.
setData
({
'orderObj.taskMerchantList'
:
list
})
},
hideSelectPopup
()
{
this
.
setData
({
showSelectPopup
:
false
})
},
taskC
ontextInput
(
e
)
{
c
ontextInput
(
e
)
{
if
(
this
.
data
.
orderObj
.
taskStatus
==
2
)
return
let
val
=
e
.
detail
.
value
||
""
let
{
type
}
=
e
.
currentTarget
.
dataset
if
(
val
.
length
>
500
)
{
val
=
val
.
substring
(
0
,
500
)
}
this
.
setData
({
'orderObj.taskContext'
:
val
,
taskContextLength
:
val
.
length
[
`orderObj.
${
type
}
`
]
:
val
,
[
`
${
type
}
Length`
]
:
val
.
length
})
},
...
...
@@ -196,16 +213,17 @@ Page({
submit
()
{
let
{
orderObj
,
pageQuery
}
=
this
.
data
if
(
orderObj
.
onDutyFlag
==
0
)
{
if
(
!
orderObj
.
merchantId
||
!
orderObj
.
taskContext
||
!
orderObj
.
taskImageList
.
length
)
return
wx
.
$util
.
showToast
(
'请完成所有必填项'
)
if
(
!
orderObj
.
taskMerchantList
?.
length
||
!
orderObj
.
taskContext
||
!
orderObj
.
nextWorkItems
||
!
orderObj
.
needAssistItems
)
return
wx
.
$util
.
showToast
(
'请完成所有必填项'
)
}
let
params
=
{
id
:
pageQuery
?.
id
,
taskType
:
0
,
onDutyFlag
:
orderObj
.
onDutyFlag
,
merchantId
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
merchantId
:
''
,
merchantName
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
merchantName
:
''
,
taskMerchantList
:
orderObj
.
onDutyFlag
==
0
?
orderObj
?.
taskMerchantList
?.
map
(
val
=>
{
return
{
merchantId
:
val
.
merchantId
,
merchantName
:
val
.
merchantName
}})
:
[],
taskContext
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
taskContext
:
''
,
taskImageList
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
taskImageList
:
[],
nextWorkItems
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
nextWorkItems
:
''
,
needAssistItems
:
orderObj
.
onDutyFlag
==
0
?
orderObj
.
needAssistItems
:
''
// taskImageList: orderObj.onDutyFlag == 0 ? orderObj.taskImageList : [],
}
wx
.
$util
.
showLoading
()
api
.
submitSupervisorReport
(
params
).
then
(
res
=>
{
...
...
@@ -260,4 +278,4 @@ Page({
onShareAppMessage
()
{
}
})
\ No newline at end of file
})
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.json
View file @
a225312
{
"usingComponents"
:
{
"van-icon"
:
"@vant/weapp/icon/index"
,
"select-popup"
:
"/components/selectPopup/selectPopup"
},
"navigationStyle"
:
"custom"
...
...
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.sass
View file @
a225312
...
...
@@ -15,7 +15,62 @@ page {
background
:
#FFFFFF
;
border-radius
:
24rpx
;
font-size
:
28rpx
;
.item-box
{
.multiple-select
{
padding
:
0
32rpx
;
border-bottom
:
1rpx
solid
#eff0f2
;
.multiple-select__header
{
height
:
96rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.multiple-select__label
{
color
:
#292D33
;
}
.multiple-select__arrow
{
flex-shrink
:
0
;
width
:
32rpx
;
height
:
32rpx
;
transform
:
rotate
(
-90deg
)
;
}
.multiple-select__body
{
margin-bottom
:
16rpx
;
}
.multiple-tags
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
24rpx
;
}
.multiple-tag
{
display
:
inline-flex
;
align-items
:
center
;
max-width
:
100%
;
padding
:
0
16rpx
;
height
:
44rpx
;
border-radius
:
8rpx
;
background
:
#F6F7F9
;
border
:
2rpx
solid
#E6E8EC
;
box-sizing
:
border-box
;
}
.multiple-tag__text
{
font-size
:
28rpx
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
color
:
#292D33
;
}
.multiple-tag__close
{
margin-left
:
16rpx
;
color
:
#999EA8
;
font-size
:
32rpx
;
line-height
:
1
;
}
}
.placeholder
{
color
:
#BEC1C7
;
font-size
:
28rpx
;
}
.item-box
{
height
:
96rpx
;
display
:
flex
;
align-items
:
center
;
...
...
@@ -30,17 +85,6 @@ page {
align-items
:
center
;
justify-content
:
flex-end
;
width
:
calc
(
100%
-
158rpx
)
;
.value-text
{
text-align
:
right
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.placeholder
{
color
:
#BEC1C7
;
font-size
:
28rpx
;
}
.input
{
text-align
:
right
;
font-size
:
28rpx
;
...
...
@@ -82,7 +126,7 @@ page {
}
}
.remark_box
{
height
:
592
rpx
;
height
:
324
rpx
;
align-items
:
flex-start
;
justify-content
:
flex-start
;
flex-flow
:
column
;
...
...
@@ -93,10 +137,10 @@ page {
box-sizing
:
border-box
;
width
:
100%
;
border-radius
:
16rpx
;
padding
:
24rpx
24rpx
4
2
rpx
;
padding
:
24rpx
24rpx
4
8
rpx
;
background
:
#FFFFFF
;
border
:
2rpx
solid
#eff0f2
;
height
:
480
rpx
;
height
:
212
rpx
;
position
:
relative
;
font-size
:
28rpx
;
.textarea
{
...
...
@@ -166,11 +210,24 @@ page {
}
}
}
.isFullSucreen-btn
{
padding-bottom
:
34px
!
important
;
}
.footer-btn
{
padding-bottom
:
20rpx
;
position
:
fixed
;
left
:
0
;
width
:
100%
;
bottom
:
0
;
min-height
:
100rpx
;
background
:
#FFFFFF
;
box-sizing
:
border-box
;
display
:
flex
;
align-items
:
center
;
font-weight
:
500
;
z-index
:
99
;
.btn
{
margin
:
52rpx
64
rpx
;
width
:
calc
(
100%
-
128
rpx
)
;
margin
:
16rpx
32
rpx
;
width
:
calc
(
100%
-
64
rpx
)
;
height
:
88rpx
;
text-align
:
center
;
line-height
:
88rpx
;
...
...
@@ -179,10 +236,5 @@ page {
font-size
:
32rpx
;
color
:
#FFFFFF
;
font-weight
:
500
;
&
.fixed-btn
{
position
:
fixed
;
left
:
0
;
bottom
:
144rpx
;
}
}
}
packageIndex/pages/dailySupervisionReport/dailySupervisionReport.wxml
View file @
a225312
...
...
@@ -9,7 +9,7 @@
督导日报
</view>
</navigation-bar>
<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);
padding-bottom: {{orderObj.taskStatus != 2 ? (isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx') : '0'}};
">
<view class="report-page">
<view class="item-box">
<view class="lebel">当日状态<text class='required'>*</text></view>
...
...
@@ -27,24 +27,57 @@
</view>
</view>
<block wx:if="{{orderObj.onDutyFlag == 0}}">
<view class="item-box">
<
!-- <
view class="item-box">
<view class="label">选择门店<text class='required'>*</text></view>
<view class="value" bindtap="chooseMerchant">
<text wx:if="{{orderObj.merchantName}}" class="value-text">{{orderObj.merchantName}}</text>
<block wx:else>
<block wx:if="{{!orderObj.taskMerchantList.length}}">
<text class="placeholder">点击选择</text>
</block>
<text wx:else>已选{{orderObj.taskMerchantList.length}}个</text>
<image src="{{IMG_URL}}arrow.png" mode=""/>
</view>
</view> -->
<view class="multiple-select">
<view class="multiple-select__header">
<view class="multiple-select__label">选择门店<text class='required'>*</text></view>
<view bindtap="chooseMerchant">
<text class="placeholder" wx:if="{{orderObj.taskStatus != 2}}">点击选择(可多选)</text>
<image class="multiple-select__arrow" src="{{IMG_URL}}arrow.png" mode="aspectFit" />
</view>
</view>
<view class="multiple-select__body" wx:if="{{orderObj.taskMerchantList.length}}">
<view class="multiple-tags">
<block wx:for="{{orderObj.taskMerchantList}}" wx:key="merchantId" wx:for-index="index">
<view class="multiple-tag">
<text class="multiple-tag__text" style="max-width: {{orderObj.taskStatus == 2 ? '100%' : 'calc(100% - 36rpx)'}};">{{item.merchantName}}</text>
<text class="multiple-tag__close" wx:if="{{orderObj.taskStatus != 2}}" catchtap="removeMerchant" data-index="{{index}}">×</text>
</view>
</block>
</view>
</view>
</view>
<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">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="500" placeholder="请输入" class="textarea" bindinput="
taskContextInpu
t" />
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="500" placeholder="请输入" class="textarea" bindinput="
contextInput" data-type="taskContex
t" />
<view class="currentWordNumber">{{taskContextLength || 0}} / 500</view>
</view>
</view>
<view class="image-box">
<view class="item-box remark_box">
<view class="label">明日工作事项<text class='required'>*</text></view>
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.nextWorkItems }}" maxlength="500" placeholder="请输入" class="textarea" bindinput="contextInput" data-type="nextWorkItems" />
<view class="currentWordNumber">{{nextWorkItemsLength || 0}} / 500</view>
</view>
</view>
<view class="item-box remark_box">
<view class="label">需协助事项<text class='required'>*</text></view>
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.needAssistItems }}" maxlength="500" placeholder="请输入" class="textarea" bindinput="contextInput" data-type="needAssistItems" />
<view class="currentWordNumber">{{needAssistItemsLength || 0}} / 500</view>
</view>
</view>
<!-- <view class="image-box">
<view class="label">门店拍照<text class='required'>*</text></view>
<view class="upload_box">
<block wx:if="{{orderObj.taskImageList.length > 0}}">
...
...
@@ -62,12 +95,12 @@
</view>
</block>
</view>
</view>
</view>
-->
</block>
</view>
<view class="footer-btn" wx:if="{{orderObj.taskStatus != 2}}">
<view class="btn {{orderObj.onDutyFlag == 1 ? 'fixed-btn' : ''}}" bindtap="submit">提交</view>
</view>
<view style="width: 100%;height: 20rpx;background: transparent;"></view>
</scroll-view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" labelKey="merchantName" valueKey="merchantId" height="80%" title="门店选择" allowSearch="{{true}}" bindcancel="hideSelectPopup"></select-popup>
\ No newline at end of file
<view class="footer-btn {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{orderObj.taskStatus != 2}}">
<view class="btn" bindtap="submit">提交</view>
</view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" values="{{ selectValues }}" value="{{ selectValue }}" multiple bindconfirm="handlePopupConfirm" labelKey="merchantName" valueKey="merchantId" height="80%" title="门店选择" allowSearch="{{true}}" bindcancel="hideSelectPopup"></select-popup>
packageIndex/pages/mentorRequirements/mentorRequirements.js
0 → 100644
View file @
a225312
// packageIndex/pages/mentorRequirements/mentorRequirements.js
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
import
api
from
'~/api/index/index'
Page
({
/**
* 页面的初始数据
*/
data
:
{
IMG_URL
,
navBarHeight
:
84
,
list
:
[]
},
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
this
.
setData
({
navBarHeight
})
},
back
()
{
wx
.
navigateBack
()
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
this
.
setData
({
optionsId
:
options
?.
id
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
this
.
getList
()
},
handleMentor
()
{
wx
.
navigateTo
({
url
:
`/packageCrew/pages/mentoring/mentoring`
,
})
},
getList
()
{
// 获取带教数据
let
{
optionsId
}
=
this
.
data
api
.
getMentorRequireList
({
id
:
optionsId
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
this
.
setData
({
list
:
data
?.
list
||
[]
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
},
onViewItem
(
e
)
{
const
{
item
}
=
e
.
currentTarget
.
dataset
||
{}
wx
.
navigateTo
({
url
:
`/packageCrew/pages/mentoring/mentoring?id=
${
item
.
id
}
`
,
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
()
{
}
})
\ No newline at end of file
packageIndex/pages/mentorRequirements/mentorRequirements.json
0 → 100644
View file @
a225312
{
"usingComponents"
:
{},
"navigationStyle"
:
"custom"
}
\ No newline at end of file
packageIndex/pages/mentorRequirements/mentorRequirements.sass
0 → 100644
View file @
a225312
/* packageIndex/pages/mentorRequirements/mentorRequirements.wxss */
page
{
background
:
#F2F3F7
;
}
.mentorRequire-page
{
padding
:
8rpx
24rpx
;
height
:
100vh
;
box-sizing
:
border-box
;
.list-item
{
display
:
flex
;
align-items
:
center
;
gap
:
16rpx
;
padding
:
16rpx
;
border-radius
:
24rpx
;
background
:
#FFFFFF
;
margin-bottom
:
16rpx
;
}
.coach
{
flex-flow
:
column
;
align-items
:
flex-start
;
}
.icon
{
width
:
48rpx
;
height
:
48rpx
;
flex-shrink
:
0
;
}
.content
{
flex
:
1
;
min-width
:
0
;
}
.title
{
color
:
#222222
;
font-size
:
28rpx
;
line-height
:
40rpx
;
font-weight
:
600
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.sub
{
margin-top
:
8rpx
;
color
:
#999ea8
;
font-size
:
24rpx
;
line-height
:
34rpx
;
}
.btn-box
{
width
:
100%
;
}
.btn
{
float
:
right
;
width
:
88rpx
;
box-sizing
:
border-box
;
text-align
:
center
;
height
:
56rpx
;
line-height
:
56rpx
;
border-radius
:
28rpx
;
border
:
2rpx
solid
#2C66F7
;
color
:
#347bff
;
font-size
:
24rpx
;
background
:
#ffffff
;
flex-shrink
:
0
;
}
}
.isFullSucreen-btn
{
padding-bottom
:
34px
!
important
;
}
.footer-btn
{
position
:
fixed
;
left
:
0
;
width
:
100%
;
bottom
:
0
;
min-height
:
100rpx
;
background
:
#FFFFFF
;
box-sizing
:
border-box
;
display
:
flex
;
align-items
:
center
;
font-weight
:
500
;
z-index
:
99
;
.btn
{
margin
:
16rpx
32rpx
;
width
:
calc
(
100%
-
64rpx
)
;
height
:
88rpx
;
text-align
:
center
;
line-height
:
88rpx
;
background
:
#2C66F7
;
border-radius
:
24rpx
;
font-size
:
32rpx
;
color
:
#FFFFFF
;
font-weight
:
500
;
&
.fixed-btn
{
position
:
fixed
;
left
:
0
;
bottom
:
144rpx
;
}
}
}
\ No newline at end of file
packageIndex/pages/mentorRequirements/mentorRequirements.wxml
0 → 100644
View file @
a225312
<!--packageIndex/pages/mentorRequirements/mentorRequirements.wxml-->
<navigation-bar bindnavbarReady="navbarReady"
class="navigation-header"
showBack
bindback="back"
navStyle="background-color: transparent;box-shadow:none;">
<view class="page-title">
带教要求
</view>
</navigation-bar>
<scroll-view scroll-y class="mentorRequire-page" show-scrollbar="{{false}}" enhanced style="padding-top: calc({{navBarHeight}}px + 8rpx);padding-bottom: {{isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx'}};">
<block wx:if="{{list.length}}">
<view class="list-item coach" wx:for="{{list}}" wx:key="id">
<view style="display: flex;gap: 12rpx;">
<image class="icon" src="{{IMG_URL}}coaching-icon.png" mode=""/>
<view class="content">
<view class="title">{{'督导带教'}}</view>
<view class="sub">带教时间:{{item.teachingTime ||'-'}}</view>
</view>
</view>
<view class="btn-box">
<view class="btn" data-type="coach" data-item="{{item}}" bind:tap="onViewItem">查看</view>
</view>
</view>
</block>
<block wx:else>
<empty-data />
</block>
<view style="width: 100%;height: 20rpx;background: transparent;"></view>
</scroll-view>
<view class="footer-btn {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="btn" bindtap="handleMentor">填写带教记录</view>
</view>
\ No newline at end of file
packageIndex/pages/monthlyPlan/monthlyPlan.js
View file @
a225312
...
...
@@ -8,7 +8,9 @@ Page({
data
:
{
navBarHeight
:
84
,
orderObj
:
{
taskContext
:
''
taskContext
:
''
,
teachingProgress
:
''
,
nextMonthPlan
:
''
}
},
...
...
@@ -50,8 +52,12 @@ Page({
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
let
taskContextLength
=
data
.
taskContext
?.
length
let
teachingProgressLength
=
data
.
teachingProgress
?.
length
let
nextMonthPlanLength
=
data
.
nextMonthPlan
?.
length
this
.
setData
({
taskContextLength
taskContextLength
,
teachingProgressLength
,
nextMonthPlanLength
},
()
=>
{
this
.
setData
({
orderObj
:
data
||
{}
...
...
@@ -63,24 +69,27 @@ Page({
})
},
taskContextInput
(
e
)
{
textAreaInput
(
e
)
{
let
{
key
}
=
e
.
currentTarget
.
dataset
let
val
=
e
.
detail
.
value
||
""
if
(
val
.
length
>
1000
)
{
val
=
val
.
substring
(
0
,
1000
)
}
this
.
setData
({
'orderObj.taskContext'
:
val
,
taskContextLength
:
val
.
length
[
`orderObj.
${
key
}
`
]
:
val
,
[
`
${
key
}
Length`
]
:
val
.
length
})
},
submit
()
{
let
{
orderObj
,
pageQuery
}
=
this
.
data
if
(
!
orderObj
.
taskContext
)
return
wx
.
$util
.
showToast
(
'请完成所有必填项'
)
if
(
!
orderObj
.
taskContext
||
!
orderObj
.
teachingProgress
||
!
orderObj
.
nextMonthPlan
)
return
wx
.
$util
.
showToast
(
'请完成所有必填项'
)
let
params
=
{
id
:
pageQuery
?.
id
,
taskType
:
2
,
taskContext
:
orderObj
.
taskContext
taskContext
:
orderObj
.
taskContext
,
teachingProgress
:
orderObj
.
teachingProgress
,
nextMonthPlan
:
orderObj
.
nextMonthPlan
}
wx
.
$util
.
showLoading
()
api
.
submitMonthPlan
(
params
).
then
(
res
=>
{
...
...
packageIndex/pages/monthlyPlan/monthlyPlan.sass
View file @
a225312
...
...
@@ -11,7 +11,7 @@ page {
height
:
100vh
;
}
.monthlyPlan-page
{
margin
:
20rpx
;
margin
:
0
20rpx
;
background
:
#FFFFFF
;
border-radius
:
24rpx
;
font-size
:
28rpx
;
...
...
@@ -27,10 +27,11 @@ page {
}
}
.remark_box
{
height
:
1080
rpx
;
height
:
366
rpx
;
align-items
:
flex-start
;
justify-content
:
flex-start
;
flex-flow
:
column
;
padding-bottom
:
32rpx
;
.label
{
margin
:
28rpx
0
;
}
...
...
@@ -38,7 +39,7 @@ page {
box-sizing
:
border-box
;
width
:
100%
;
border-radius
:
16rpx
;
padding
:
24rpx
24rpx
4
2
rpx
;
padding
:
24rpx
24rpx
4
8
rpx
;
background
:
#FFFFFF
;
border
:
2rpx
solid
#eff0f2
;
height
:
960rpx
;
...
...
@@ -57,11 +58,24 @@ page {
}
}
}
.isFullSucreen-btn
{
padding-bottom
:
34px
!
important
;
}
.footer-btn
{
padding-bottom
:
20rpx
;
position
:
fixed
;
left
:
0
;
width
:
100%
;
bottom
:
0
;
min-height
:
100rpx
;
background
:
#FFFFFF
;
box-sizing
:
border-box
;
display
:
flex
;
align-items
:
center
;
font-weight
:
500
;
z-index
:
99
;
.btn
{
margin
:
52rpx
64
rpx
;
width
:
calc
(
100%
-
128
rpx
)
;
margin
:
16rpx
32
rpx
;
width
:
calc
(
100%
-
64
rpx
)
;
height
:
88rpx
;
text-align
:
center
;
line-height
:
88rpx
;
...
...
packageIndex/pages/monthlyPlan/monthlyPlan.wxml
View file @
a225312
...
...
@@ -8,17 +8,32 @@
督导月度计划
</view>
</navigation-bar>
<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);
padding-bottom: {{orderObj.taskStatus != 2 ? (isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx') : '0'}};
">
<view class="monthlyPlan-page">
<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">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="1000" placeholder="请输入" class="textarea" bindinput="t
askContextInpu
t" />
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="1000" placeholder="请输入" class="textarea" bindinput="t
extAreaInput" data-key="taskContex
t" />
<view class="currentWordNumber">{{taskContextLength || 0}} / 1000</view>
</view>
</view>
<view class="item-box remark_box">
<view class="label">带教进度/结果<text class='required'>*</text></view>
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.teachingProgress }}" maxlength="1000" placeholder="请输入" class="textarea" bindinput="textAreaInput" data-key="teachingProgress" />
<view class="currentWordNumber">{{teachingProgressLength || 0}} / 1000</view>
</view>
</view>
<view class="item-box remark_box">
<view class="label">下月计划<text class='required'>*</text></view>
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.nextMonthPlan }}" maxlength="1000" placeholder="请输入" class="textarea" bindinput="textAreaInput" data-key="nextMonthPlan" />
<view class="currentWordNumber">{{nextMonthPlanLength || 0}} / 1000</view>
</view>
</view>
</view>
<view class="footer-btn" wx:if="{{orderObj.taskStatus != 2}}">
<view class="btn {{orderObj.onBreak == 'Y' ? 'fixed-btn' : ''}}" bindtap="submit">提交</view>
</view>
</scroll-view>
\ No newline at end of file
<view style="width: 100%;height: 20rpx;background: transparent;"></view>
</scroll-view>
<view class="footer-btn {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{orderObj.taskStatus != 2}}">
<view class="btn {{orderObj.onBreak == 'Y' ? 'fixed-btn' : ''}}" bindtap="submit">提交</view>
</view>
\ No newline at end of file
pages/tab/crew/components/employeeRanking/employeeRanking.js
View file @
a225312
...
...
@@ -90,6 +90,7 @@ Component({
metrics
:
[],
sortKey
:
''
,
sortOrder
:
'desc'
,
keyword
:
''
,
displayList
:
[],
dotMaps
:
{
0
:
'red'
,
...
...
@@ -111,6 +112,18 @@ Component({
},
methods
:
{
input
(
e
)
{
let
{
value
}
=
e
.
detail
this
.
setData
({
keyword
:
value
})
},
search
()
{
this
.
applySearch
()
},
clear
()
{
this
.
setData
({
keyword
:
''
},
()
=>
{
this
.
applySearch
()
})
},
initLoad
()
{
let
{
mode
}
=
this
.
data
this
.
setData
({
...
...
@@ -128,7 +141,7 @@ Component({
const
sortOrder
=
this
.
data
.
sortOrder
||
this
.
data
.
initialSortOrder
||
'desc'
const
metrics
=
cfg
.
metrics
||
[]
const
metricWidth
=
`
${(
100
/
Math
.
max
(
1
,
metrics
.
length
)).
toFixed
(
2
)}
%`
const
displayList
=
this
.
buildDisplayList
(
this
.
properties
.
employeeList
,
metrics
)
const
displayList
=
this
.
buildDisplayList
(
this
.
getFilteredEmployeeList
(
this
.
properties
.
employeeList
)
,
metrics
)
this
.
setData
(
{
sortOptions
:
cfg
.
sortOptions
||
[],
...
...
@@ -171,7 +184,7 @@ Component({
onTapEmployee
(
e
)
{
if
(
this
.
data
.
scene
==
0
)
return
// 全业务不支持跳转详情
const
idx
=
e
.
currentTarget
?.
dataset
?.
index
const
employee
=
Array
.
isArray
(
this
.
properties
.
employeeList
)
?
this
.
properties
.
employee
List
[
idx
]
:
null
const
employee
=
Array
.
isArray
(
this
.
data
.
displayList
)
?
this
.
data
.
display
List
[
idx
]
:
null
this
.
triggerEvent
(
'employeeTap'
,
{
employee
})
},
...
...
@@ -194,5 +207,21 @@ Component({
}
})
},
applySearch
()
{
const
metrics
=
Array
.
isArray
(
this
.
data
.
metrics
)
?
this
.
data
.
metrics
:
this
.
getConfig
().
metrics
||
[]
const
displayList
=
this
.
buildDisplayList
(
this
.
getFilteredEmployeeList
(
this
.
properties
.
employeeList
),
metrics
)
this
.
setData
({
displayList
})
},
getFilteredEmployeeList
(
employeeList
)
{
if
(
!
Array
.
isArray
(
employeeList
))
return
[]
const
keyword
=
String
(
this
.
data
.
keyword
||
''
).
trim
()
if
(
!
keyword
)
return
employeeList
return
employeeList
.
filter
((
emp
)
=>
{
const
name
=
String
(
emp
?.
employeeName
||
''
).
trim
()
return
name
.
includes
(
keyword
)
})
},
}
})
pages/tab/crew/components/employeeRanking/employeeRanking.scss
View file @
a225312
...
...
@@ -88,7 +88,45 @@
color
:
#2c66f7
;
}
}
}
}
.search-box
{
width
:
100%
;
padding-top
:
16rpx
;
display
:
flex
;
align-items
:
center
;
background-color
:
#fff
;
box-sizing
:
border-box
;
.search-input
{
background
:
#F3F3F4
;
border-radius
:
38rpx
;
width
:
100%
;
height
:
72rpx
;
display
:
flex
;
align-items
:
center
;
.search-icon
{
width
:
28rpx
;
height
:
28rpx
;
margin
:
0
10rpx
0
26rpx
;
}
.search-clear
{
width
:
36rpx
;
height
:
36rpx
;
margin
:
0
26rpx
0
10rpx
;
}
.input
{
font-size
:
28rpx
;
width
:
calc
(
100%
-
136rpx
);
height
:
38rpx
;
line-height
:
38rpx
;
}
}
}
.search-box
.search-input
.input-placeholder
{
color
:
rgba
(
200
,
201
,
204
,
.89
);
}
.list
{
padding
:
8rpx
0
16rpx
;
...
...
pages/tab/crew/components/employeeRanking/employeeRanking.wxml
View file @
a225312
...
...
@@ -23,6 +23,15 @@
</block>
</view>
</scroll-view>
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="搜索" class="input" value="{{keyword}}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<block wx:if="{{keyword}}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block>
</view>
</view>
<view class="list" wx:if="{{displayList.length}}">
<block wx:for="{{displayList}}" wx:key="employeeId" wx:for-index="index">
<view class="card" bindtap="onTapEmployee" data-index="{{index}}">
...
...
pages/tab/crew/crew.js
View file @
a225312
...
...
@@ -246,6 +246,10 @@ Page({
},
getEmployeeRank(noAI) {
let { tabIndex, sceneTabIndex, startStr, endStr, sortField, sortOrder, timeDimension } = this.data
const sortComp = this.selectComponent('#employee-ranking')
if (sortComp) {
sortComp.clear()
}
this.setData({
employeeList: []
})
...
...
pages/tab/index/index.js
View file @
a225312
import
api
from
'~/api/index/index'
import
dayjs
from
'dayjs'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/'
let
timeoutId
Page
({
/**
* 页面的初始数据
...
...
@@ -27,13 +28,21 @@ Page({
background
:
'linear-gradient(90deg, #3D76FC 0%, #4DA6FF 100%)'
}],
tabList
:
[{
text
:
'每日任务'
text
:
'每日任务'
,
count
:
0
,
key
:
'dailyCount'
},
{
text
:
'本周任务'
text
:
'本周任务'
,
count
:
0
,
key
:
'weeklyCount'
},
{
text
:
'月度任务'
text
:
'月度任务'
,
count
:
0
,
key
:
'monthlyCount'
},
{
text
:
'专项任务'
text
:
'专项任务'
,
count
:
0
,
key
:
'specialCount'
}],
tabIndex
:
0
,
statusMap
:
{
...
...
@@ -48,9 +57,12 @@ Page({
1
:
{
name
:
'本周复盘'
},
2
:
{
name
:
'督导月度计划'
},
4
:
{
name
:
'专项任务'
},
6
:
{
name
:
'提报优秀案例录音'
},
7
:
{
name
:
'带教要求'
}
},
list
:
[],
scrollTop
:
0
scrollTop
:
0
,
showIcon1
:
true
},
onTabItemTap
(
e
)
{
// 点击埋点
...
...
@@ -74,6 +86,21 @@ Page({
isSticky
:
res
[
0
].
top
<=
navBarHeight
})
})
// 滚动时隐藏第一个图标,显示第二个图标
this
.
setData
({
showIcon1
:
false
})
// 清除之前的定时器
if
(
timeoutId
)
{
clearTimeout
(
timeoutId
)
}
// 设置一个定时器,在滚动停止后一定时间后恢复两个图标的显示状态
timeoutId
=
setTimeout
(()
=>
{
this
.
setData
({
showIcon1
:
true
})
},
1000
)
// 在这里设置等待的时间,单位是毫秒
},
/**
* 生命周期函数--监听页面加载
...
...
@@ -81,6 +108,7 @@ Page({
onLoad
:
function
(
options
)
{
let
userInfo
=
wx
.
$util
.
getUserInfo
()
this
.
setData
({
userInfo
})
this
.
getTabData
(
true
)
},
/**
* 生命周期函数--监听页面初次渲染完成
...
...
@@ -91,6 +119,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow
()
{
this
.
getTabData
()
this
.
getStaticData
()
this
.
setData
({
list
:
[],
...
...
@@ -101,6 +130,43 @@ Page({
this
.
getList
(
true
)
})
},
getTabData
(
loadFlag
)
{
let
{
tabIndex
,
tabList
,
startStr
,
endStr
}
=
this
.
data
let
userInfo
=
wx
.
$util
.
getUserInfo
()
let
params
=
{
supervisorPhone
:
userInfo
?.
phone
,
startDate
:
loadFlag
?
undefined
:
startStr
,
endDate
:
loadFlag
?
undefined
:
endStr
}
api
.
getTaskTabData
(
params
).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
loadFlag
)
{
tabList
?.
forEach
(
val
=>
{
val
.
count
=
data
[
val
.
key
]
>
99
?
'99+'
:
data
[
val
.
key
]
})
this
.
setData
({
tabList
})
}
else
{
// 仅更新当前选中tab数量
let
key
=
tabList
[
tabIndex
].
key
this
.
setData
({
[
`tabList[
${
tabIndex
}
].count`
]:
data
[
key
]
>
99
?
'99+'
:
data
[
key
]
})
}
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
},
handleMentoring
()
{
wx
.
$track
.
setTrackData
(
0
,
`supervisor_start_mentoring_index`
,
{},
''
)
wx
.
navigateTo
({
url
:
`/packageCrew/pages/mentoring/mentoring`
,
})
},
formatThousands
(
v
)
{
const
s
=
String
(
v
)
...
...
@@ -144,7 +210,9 @@ Page({
0
:
'/packageIndex/pages/dailySupervisionReport/dailySupervisionReport'
,
1
:
'/packageIndex/pages/weeklyReview/weeklyReview'
,
2
:
'/packageIndex/pages/monthlyPlan/monthlyPlan'
,
4
:
'/packageIndex/pages/specialTask/specialTask'
4
:
'/packageIndex/pages/specialTask/specialTask'
,
6
:
'/packageIndex/pages/caseAudioList/caseAudioList'
,
7
:
'/packageIndex/pages/mentorRequirements/mentorRequirements'
}
const
eventCode
=
{
3
:
{
view
:
'supervisor_recording_view'
,
execute
:
'supervisor_recording_execute'
},
...
...
@@ -153,9 +221,10 @@ Page({
1
:
{
view
:
'supervisor_weeklyReview_view'
,
execute
:
'supervisor_weeklyReview_execute'
},
2
:
{
view
:
'supervisor_monthlyPlan_view'
,
execute
:
'supervisor_monthlyPlan_execute'
},
4
:
{
view
:
'supervisor_specificTask_view'
,
execute
:
'supervisor_specificTask_execute'
},
6
:
{
view
:
'supervisor_caseAudioList_view'
,
execute
:
'supervisor_caseAudioList_view'
},
7
:
{
view
:
'supervisor_mentorRequirements_view'
,
execute
:
'supervisor_mentorRequirements_view'
}
}
let
status
=
target
.
taskStatus
!=
2
?
'execute'
:
'view'
console
.
log
(
eventCode
[
target
.
taskType
][
status
])
wx
.
$track
.
setTrackData
(
0
,
eventCode
[
target
.
taskType
][
status
],
{},
''
)
wx
.
navigateTo
({
url
:
`
${
pageUrl
[
target
.
taskType
]}
?taskStatus=
${
target
.
taskStatus
}
&id=
${
target
.
id
}
`
,
...
...
@@ -172,6 +241,7 @@ Page({
endStr
:
e
.
detail
.
endDay
?.
replace
(
/
\/
/g
,
'-'
)
},
()
=>
{
this
.
getList
(
true
)
this
.
getTabData
()
})
},
...
...
@@ -183,7 +253,7 @@ Page({
getList
(
repload
)
{
let
{
pageNum
,
nothing
,
startStr
,
endStr
,
tabIndex
,
topBoxHeight
,
scrollTop
}
=
this
.
data
if
(
nothing
)
return
const
taskList
=
[[
0
,
3
,
5
],
[
1
],
[
2
],
[
4
]]
const
taskList
=
[[
0
,
3
,
5
],
[
6
,
7
],
[
2
],
[
4
]]
wx
.
$util
.
showLoading
()
let
params
=
{
taskTypeList
:
taskList
[
tabIndex
],
...
...
pages/tab/index/index.sass
View file @
a225312
...
...
@@ -179,4 +179,57 @@ page {
}
}
}
}
.add-btn-box
{
width
:
260rpx
;
height
:
96rpx
;
border-radius
:
48rpx
;
opacity
:
1
;
background
:
#2C66F7
;
position
:
fixed
;
bottom
:
32rpx
;
right
:
20rpx
;
font-size
:
24rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.addBtn
{
width
:
260rpx
;
height
:
96rpx
;
border-radius
:
48rpx
;
opacity
:
1
;
background
:
#2C66F7
;
position
:
fixed
;
bottom
:
32rpx
;
right
:
20rpx
;
font-size
:
28rpx
;
font-weight
:
500
;
color
:
#FFFFFF
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.btn-text
{
margin-left
:
20rpx
;
}
}
.arrowIcon
{
width
:
32rpx
;
height
:
96rpx
;
opacity
:
1
;
position
:
fixed
;
bottom
:
32rpx
;
right
:
0
;
border-radius
:
16rpx
0
0
16rpx
;
background
:
#2C66F7
;
box-shadow
:
0
4rpx
20rpx
0
#000000
1a
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.image
{
width
:
32rpx
;
height
:
32rpx
;
}
}
\ No newline at end of file
pages/tab/index/index.wxml
View file @
a225312
...
...
@@ -30,7 +30,7 @@
<view class="data-container">
<view class="sticky-box {{isSticky ? 'is-sticky' : ''}}">
<view class="tab-box">
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" />
<tab-bar tabList="{{ tabList }}" b
adge="{{true}}" b
indclick="tabClick" activeIndex="{{ tabIndex }}" />
</view>
<view class="date">
<date-screen tabSelected="{{tabIndex}}" isSticky="{{isSticky}}" bind:search="search"></date-screen>
...
...
@@ -54,15 +54,15 @@
<view class="name" wx:if="{{item.taskType != 4}}">
{{missionMap[item.taskType].name}}
<text wx:if="{{item.taskType == 5}}">
-{{item.storeManagerName || '-'}}
</text>
<text wx:if="{{item.taskType == 5}}"></text>
</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">
<
!-- <
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>
</view>
-->
<block wx:if="{{item.taskType == 4}}">
<view class="list-item">
<image class="icon" src="{{IMG_URL}}matter-icon.png" mode="" />
...
...
@@ -85,8 +85,10 @@
<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="" />
<view class="label">完成时间:</view>
<view>{{item.updatedDate || '-'}}</view>
<view wx:if="{{item.taskStatus == 2}}">{{item.updatedDate || '-'}}</view>
<view wx:else>-</view>
</view>
<!-- 录音复盘任务进度 -->
<view wx:if="{{item.taskType == 3}}" class="list-item">
<view class="progress">
<view class="progress-line"></view>
...
...
@@ -97,6 +99,17 @@
<view class="num">{{item.audioReviewCompletedCount + '/' + item.audioReviewTotalCount}}</view>
</view>
</view>
<!-- 提报优秀案例录音/带教要求任务进度 -->
<view wx:if="{{item.taskType == 6 || item.taskType == 7}}" class="list-item">
<view class="progress">
<view class="progress-line"></view>
<view
class="progress-item"
style="width: {{ (item.weeklyTaskCompletedCount / item.weeklyTaskTotalCount * 100) + '%' }};"
></view>
<view class="num">{{item.weeklyTaskCompletedCount + '/' + item.weeklyTaskTotalCount}}</view>
</view>
</view>
<!-- 底部按钮 -->
<view class="btn-box">
...
...
@@ -121,4 +134,19 @@
</view>
</view>
</view>
</scroll-view>
\ No newline at end of file
</scroll-view>
<block wx:if="{{tabIndex == 0}}">
<block wx:if="{{showIcon1}}">
<view class="add-btn-box" bindtap="handleMentoring">
<view class="addBtn">
<van-icon name="plus" />
<view class="btn-text">带教记录</view>
</view>
</view>
</block>
<block wx:else>
<view class="arrowIcon">
<image class="image" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/usedCar/arrow-right.png" />
</view>
</block>
</block>
pages/wxLogin/wxLogin.js
View file @
a225312
...
...
@@ -319,7 +319,7 @@ Page({
wx
.
hideLoading
()
wx
.
showModal
({
title
:
'提示'
,
content
:
code
==
'30990103'
||
code
==
'30990105'
?
'抱歉,你没有
飞行
督导角色权限'
:
message
,
content
:
code
==
'30990103'
||
code
==
'30990105'
?
'抱歉,你没有督导角色权限'
:
message
,
showCancel
:
false
,
confirmText
:
'知道了'
,
confirmColor
:
'#2C66F7'
...
...
utils/track.js
View file @
a225312
...
...
@@ -138,7 +138,7 @@ class TRACK {
loginAccount
:
accountName
,
uuid
,
userType
,
systemSource
:
7
,
systemSource
:
8
,
eventTime
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
eventType
,
prePagePath
:
prePagePath
?
prePagePath
.
route
:
'/'
,
...
...
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