Commit 72c00d60 by zhangxw

Merge remote-tracking branch 'origin/SAAS+V5.8.1' into SAAS+V5.8.2

2 parents ecbaa823 4a6bad8c
Showing 44 changed files with 1123 additions and 244 deletions
...@@ -70,5 +70,13 @@ module.exports = { ...@@ -70,5 +70,13 @@ module.exports = {
// 人员带教 // 人员带教
submitMentorData(data) { submitMentorData(data) {
return api.post('dj.api.supervisor.mini.team.coaching.submit', data, [], '/rop-dj-supervisor-mini/router') 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')
} }
} }
...@@ -4,6 +4,10 @@ module.exports = { ...@@ -4,6 +4,10 @@ module.exports = {
getSupervisorStaticData(data) { getSupervisorStaticData(data) {
return api.post('dj.api.supervisor.mini.get.teamOverview', data, [], '/rop-dj-supervisor-mini/router') 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) { getMissionList(data) {
return api.post('dj.api.supervisor.mini.page.task', data, [], '/rop-dj-supervisor-mini/router') return api.post('dj.api.supervisor.mini.page.task', data, [], '/rop-dj-supervisor-mini/router')
...@@ -77,4 +81,16 @@ module.exports = { ...@@ -77,4 +81,16 @@ module.exports = {
findConversationDetailByBatchIdNew(data) { findConversationDetailByBatchIdNew(data) {
return api.post('dj.api.car.boutique.inspection.findConversationDetailByBatchIdNew', data, [], '/rop-dj-car-boutique/router') 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')
}
} }
...@@ -62,7 +62,9 @@ ...@@ -62,7 +62,9 @@
"pages/submitRecordingReview/submitRecordingReview", "pages/submitRecordingReview/submitRecordingReview",
"pages/weeklyReview/weeklyReview", "pages/weeklyReview/weeklyReview",
"pages/monthlyPlan/monthlyPlan", "pages/monthlyPlan/monthlyPlan",
"pages/specialTask/specialTask" "pages/specialTask/specialTask",
"pages/mentorRequirements/mentorRequirements",
"pages/caseAudioList/caseAudioList"
] ]
}, },
{ {
......
...@@ -19,7 +19,8 @@ Component({ ...@@ -19,7 +19,8 @@ Component({
} }
} }
}, },
scroll: Boolean scroll: Boolean,
badge: Boolean
}, },
/** /**
* 组件的初始数据 * 组件的初始数据
......
...@@ -14,8 +14,9 @@ ...@@ -14,8 +14,9 @@
<view class="tab" style="grid-template-columns: repeat({{tabList.length}}, 1fr);font-size:{{tabList.length>5?'var(--fontSize24)':''}} ;"> <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"> <block wx:for="{{tabList}}" wx:key="index">
<view class="tab-item {{tabIndex==index?'active':''}}" bindtap="change" data-index="{{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> <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> <view wx:if="{{badge && item.count}}" class="badge">{{item.count}}</view>
</view>
</block> </block>
<view class="active-doc" style="{{activeStyle}}" /> <view class="active-doc" style="{{activeStyle}}" />
</view> </view>
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
.tab .tab-item { .tab .tab-item {
text-align: center; text-align: center;
margin-right: 32rpx; margin-right: 32rpx;
position: relative;
} }
.scroll .tab-item { .scroll .tab-item {
...@@ -61,4 +62,19 @@ ...@@ -61,4 +62,19 @@
border-radius: var(--fontSize6); border-radius: var(--fontSize6);
background-color: #2C66F7; background-color: #2C66F7;
content: ''; 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: 134rpx;
font-size: 20rpx;
} }
\ No newline at end of file \ No newline at end of file
...@@ -395,12 +395,18 @@ Component({ ...@@ -395,12 +395,18 @@ Component({
}, },
// 年月日确认 // 年月日确认
confirm() { confirm() {
const { selectedDate, timeType, currentWeek, current } = this.data; const { selectedDate, timeType, currentWeek } = this.data;
const baseDate = selectedDate || this.data.currentDate || dayjs().valueOf();
const formatMap = { const formatMap = {
date: () => dayjs(selectedDate).format('YYYY/MM/DD'), date: () => dayjs(baseDate).format('YYYY/MM/DD'),
'year-month': () => dayjs(selectedDate).format('YYYY/MM'), 'year-month': () => dayjs(baseDate).format('YYYY/MM'),
week: () => `${currentWeek.startDate}-${currentWeek.endDate}` 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 calcBoundary = () => {
const { timeType, selectedDate, currentWeek, weekColumns, minDate } = this.data; const { timeType, selectedDate, currentWeek, weekColumns, minDate } = this.data;
...@@ -411,7 +417,7 @@ Component({ ...@@ -411,7 +417,7 @@ Component({
case 'date': { case 'date': {
const today = dayjs().startOf('day'); const today = dayjs().startOf('day');
const min = dayjs(minDate).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'); rightCurrent = sel.isSame(today, 'day');
leftCurrent = sel.isSame(min, 'day'); leftCurrent = sel.isSame(min, 'day');
break; break;
...@@ -419,7 +425,7 @@ Component({ ...@@ -419,7 +425,7 @@ Component({
case 'year-month': { case 'year-month': {
const current = dayjs().startOf('month'); const current = dayjs().startOf('month');
const min = dayjs(minDate).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'); rightCurrent = sel.isSame(current, 'month');
leftCurrent = sel.isSame(min, 'month'); leftCurrent = sel.isSame(min, 'month');
break; break;
...@@ -438,7 +444,7 @@ Component({ ...@@ -438,7 +444,7 @@ Component({
calcBoundary(); calcBoundary();
this.setData({ this.setData({
dateShow: false, dateShow: false,
currentDate: (formatMap[timeType] || (() => ''))(), currentDate: (valueMap[timeType] || (() => dayjs().valueOf()))(),
date: (formatMap[timeType] || (() => ''))() date: (formatMap[timeType] || (() => ''))()
}, () => { }, () => {
this._emitPopupVisible(false) this._emitPopupVisible(false)
......
...@@ -39,7 +39,7 @@ Component({ ...@@ -39,7 +39,7 @@ Component({
methods: { methods: {
onViewItem(e) { onViewItem(e) {
let { record, detailInfo } = this.data let { record, detailInfo } = this.data
record.storeManagerName = detailInfo.storeManagerName record.storeManagerName = detailInfo.storeManagerName || record.salesName
wx.navigateTo({ wx.navigateTo({
url: `/packageCrew/pages/recordingDetail/recordingDetail?record=${JSON.stringify(record)}`, url: `/packageCrew/pages/recordingDetail/recordingDetail?record=${JSON.stringify(record)}`,
}) })
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view class="phone">{{record.phoneNumber}}</view> <view class="phone">{{record.phoneNumber}}</view>
</view> </view>
<view class="right"> <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 class="status" style="color: {{statusMap[record.receptionResult].color}};background: {{statusMap[record.receptionResult].background}}">{{record.receptionResult}}</view>
</view> </view>
</view> </view>
......
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2; let index = 1;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
{ {
"usingComponents": { "usingComponents": {
"van-icon": "@vant/weapp/icon/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"select-popup": "/components/selectPopup/selectPopup" "select-popup": "/components/selectPopup/selectPopup"
}, },
"navigationStyle": "custom" "navigationStyle": "custom"
......
...@@ -134,8 +134,63 @@ page{ ...@@ -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 { .remark_box {
height: 592rpx; height: 382rpx;
align-items: flex-start; align-items: flex-start;
justify-content: flex-start; justify-content: flex-start;
flex-flow: column; flex-flow: column;
...@@ -149,7 +204,7 @@ page{ ...@@ -149,7 +204,7 @@ page{
padding: 24rpx 24rpx 42rpx; padding: 24rpx 24rpx 42rpx;
background: #FFFFFF; background: #FFFFFF;
border: 2rpx solid #eff0f2; border: 2rpx solid #eff0f2;
height: 480rpx; height: 262rpx;
position: relative; position: relative;
font-size: 28rpx; font-size: 28rpx;
.textarea { .textarea {
...@@ -219,24 +274,32 @@ page{ ...@@ -219,24 +274,32 @@ page{
} }
} }
} }
.footer-btn { }
padding-bottom: 20rpx; .isFullSucreen-btn {
.btn { padding-bottom: 34px !important;
margin: 52rpx 64rpx; }
width: calc(100% - 128rpx); .footer-btn {
height: 88rpx; position: fixed;
text-align: center; left: 0;
line-height: 88rpx; width: 100%;
background: #2C66F7; bottom: 0;
border-radius: 24rpx; min-height: 100rpx;
font-size: 32rpx; background: #FFFFFF;
color: #FFFFFF; box-sizing: border-box;
font-weight: 500; display: flex;
&.fixed-btn { align-items: center;
position: fixed; font-weight: 500;
left: 0; z-index: 99;
bottom: 144rpx; .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 \ No newline at end of file
}
...@@ -9,52 +9,96 @@ ...@@ -9,52 +9,96 @@
人员带教 人员带教
</view> </view>
</navigation-bar> </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 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="box padding-0">
<view class="item-box"> <block wx:for="{{formItems}}" wx:key="index">
<view class="label">督导门店<text class='required'>*</text></view> <block wx:if="{{!item.hide}}">
<view class="value" bindtap="chooseSelect" data-type="merchant"> <!-- <view class="item-box">
<text wx:if="{{orderObj.merchantName}}" class="value-text">{{orderObj.merchantName}}</text> <view class="label">{{item.label}}<text class='required'>*</text></view>
<block wx:else> <view wx:if="{{item.type == 'select'}}" class="value" bindtap="chooseSelect" data-item="{{item}}">
<text class="placeholder">点击选择</text> <block wx:if="{{orderObj[item.valueText] || orderObj[item.value].length}}">
</block> <text wx:if="{{item.selectMultiple}}">已选{{orderObj[item.value].length}}{{item.unit}}</text>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/> <text wx:if="{{orderObj[item.valueText]}}" class="value-text">{{orderObj[item.valueText]}}</text>
</view> </block>
</view> <block wx:else>
<view class="item-box"> <text wx:if="{{!item.selectMultiple}}" class="placeholder">点击选择</text>
<view class="label">推送课程<text class='required'>*</text></view> <text wx:else class="placeholder">点击选择(可多选)</text>
<view class="value" bindtap="chooseSelect" data-type="course"> </block>
<text wx:if="{{orderObj.courseList.length}}" class="value-text">已选{{orderObj.courseList.length}}课</text> <image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
<block wx:else> </view>
<text class="placeholder">点击选择</text> <view class="value_box" wx:elif="{{item.type == 'radio'}}">
</block> <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 src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/> <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> <view wx:else class="circle"></view>
</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="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="1000" placeholder="请输入" class="textarea" bindinput="taskContextInput" /> <textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="1000" placeholder="请输入" class="textarea" bindinput="taskContextInput" />
<view class="currentWordNumber">{{taskContextLength || 0}} / 1000</view> <view class="currentWordNumber">{{taskContextLength || 0}} / 1000</view>
</view> </view>
</view> </view>
<view class="image-box"> <view class="image-box">
<view class="label">门店拍照<text class='required'>*</text></view> <view class="label">带教照片佐证<text class='required'>*</text></view>
<view class="upload_box"> <view class="upload_box">
<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">
...@@ -73,8 +117,12 @@ ...@@ -73,8 +117,12 @@
</view> </view>
</view> </view>
</view> </view>
<view class="footer-btn" wx:if="{{orderObj.taskStatus != 2}}"> <view style="width: 100%;height: 20rpx;background: transparent;"></view>
<view class="btn {{orderObj.onBreak == 'Y' ? 'fixed-btn' : ''}}" bindtap="submit">提交</view>
</view>
</scroll-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 \ 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>
...@@ -226,9 +226,8 @@ Page({ ...@@ -226,9 +226,8 @@ Page({
// 发起带教 // 发起带教
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?storeManagerName=${baseInfo.name}&gender=${baseInfo.gender}&storeManagerPhone=${baseInfo.phone}&entryDate=${baseInfo.entryDate || ''}&business=${baseInfo.business || ''}`, url: `/packageCrew/pages/mentoring/mentoring`,
}) })
}, },
// 调店记录 // 调店记录
......
{ {
"usingComponents": { "usingComponents": {
"record-item": "./components/recordItem/recordItem", "record-item": "/components/recordItem/recordItem",
"date-screen": "/components/dateScreen/dateScreen" "date-screen": "/components/dateScreen/dateScreen"
}, },
"navigationBarTitleText": "接待录音" "navigationBarTitleText": "接待录音"
......
...@@ -29,6 +29,7 @@ Page({ ...@@ -29,6 +29,7 @@ Page({
*/ */
async onLoad(options) { async onLoad(options) {
const record = JSON.parse(options.record) const record = JSON.parse(options.record)
console.log(record, '22222222')
this.setData({ this.setData({
record, record,
detailInfo: {storeManagerName: record.storeManagerName}, detailInfo: {storeManagerName: record.storeManagerName},
......
{ {
"usingComponents": { "usingComponents": {
"quality": "./components/quality/quality", "quality": "./components/quality/quality",
"record-item": "../receptionRecording/components/recordItem/recordItem", "record-item": "/components/recordItem/recordItem",
"dialogue":"./components/dialogue/dialogue" "dialogue":"./components/dialogue/dialogue"
}, },
"navigationStyle": "custom" "navigationStyle": "custom"
......
// 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 \ No newline at end of file
{
"usingComponents": {
"record-item": "/components/recordItem/recordItem"
},
"navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
/* 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 \ No newline at end of file
<!--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 \ No newline at end of file
...@@ -13,8 +13,10 @@ Page({ ...@@ -13,8 +13,10 @@ Page({
orderObj: { orderObj: {
onDutyFlag: 0, onDutyFlag: 0,
taskContext: '', taskContext: '',
taskImageList: [], nextWorkItems: '',
merchantName: '' needAssistItems: '',
// taskImageList: [],
taskMerchantList: []
}, },
showSelectPopup: false showSelectPopup: false
}, },
...@@ -56,8 +58,12 @@ Page({ ...@@ -56,8 +58,12 @@ Page({
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
let taskContextLength = data.taskContext?.length let taskContextLength = data.taskContext?.length
let nextWorkItemsLength = data.nextWorkItems?.length
let needAssistItemsLength = data.needAssistItems?.length
this.setData({ this.setData({
taskContextLength taskContextLength,
nextWorkItemsLength,
needAssistItemsLength
}, () => { }, () => {
this.setData({ this.setData({
orderObj: data || {} orderObj: data || {}
...@@ -74,7 +80,7 @@ Page({ ...@@ -74,7 +80,7 @@ Page({
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
merchantList: data || [] taskMerchantList: data || []
}) })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
...@@ -87,49 +93,60 @@ Page({ ...@@ -87,49 +93,60 @@ Page({
let { value } = e.currentTarget.dataset let { value } = e.currentTarget.dataset
this.setData({ this.setData({
'orderObj.onDutyFlag': value, 'orderObj.onDutyFlag': value,
'orderObj.taskContext': '', 'orderObj.taskContext': '',
'orderObj.nextWorkItems': '',
'orderObj.needAssistItems': '',
taskContextLength: 0, taskContextLength: 0,
'orderObj.merchantId': '', 'orderObj.taskMerchantList': []
'orderObj.merchantName': '',
'orderObj.taskImageList': []
}) })
}, },
chooseMerchant() { chooseMerchant() {
let { orderObj, merchantList } = this.data let { orderObj, taskMerchantList } = this.data
if (orderObj.taskStatus == 2) return if (orderObj.taskStatus == 2) return
this.setData({ this.setData({
showSelectPopup: true, showSelectPopup: true,
selectOptions: merchantList, selectOptions: taskMerchantList,
selectValue: [orderObj.merchantId] selectValues: orderObj.taskMerchantList?.map(v => { return v.merchantId })
}) })
}, },
handlePopupConfirm(e) { handlePopupConfirm(e) {
let { values, items } = e.detail let { values, items } = e.detail
this.setData({ this.setData({
[`orderObj.merchantId`]: values[0], 'orderObj.taskMerchantList': items
['orderObj.merchantName']: items[0]?.merchantName
}, () => { }, () => {
this.hideSelectPopup() 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() { hideSelectPopup() {
this.setData({ this.setData({
showSelectPopup: false showSelectPopup: false
}) })
}, },
taskContextInput(e) { contextInput(e) {
if (this.data.orderObj.taskStatus == 2) return if (this.data.orderObj.taskStatus == 2) return
let val = e.detail.value || "" let val = e.detail.value || ""
let { type } = e.currentTarget.dataset
if (val.length > 500) { if (val.length > 500) {
val = val.substring(0, 500) val = val.substring(0, 500)
} }
this.setData({ this.setData({
'orderObj.taskContext': val, [`orderObj.${type}`]: val,
taskContextLength: val.length [`${type}Length`]: val.length
}) })
}, },
...@@ -196,16 +213,17 @@ Page({ ...@@ -196,16 +213,17 @@ Page({
submit() { submit() {
let { orderObj, pageQuery } = this.data let { orderObj, pageQuery } = this.data
if (orderObj.onDutyFlag == 0) { 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 = { let params = {
id: pageQuery?.id, id: pageQuery?.id,
taskType: 0, taskType: 0,
onDutyFlag: orderObj.onDutyFlag, onDutyFlag: orderObj.onDutyFlag,
merchantId: orderObj.onDutyFlag == 0 ? orderObj.merchantId : '', taskMerchantList: orderObj.onDutyFlag == 0 ? orderObj?.taskMerchantList?.map(val => {return {merchantId: val.merchantId, merchantName: val.merchantName}}) : [],
merchantName: orderObj.onDutyFlag == 0 ? orderObj.merchantName : '',
taskContext: orderObj.onDutyFlag == 0 ? orderObj.taskContext : '', 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() wx.$util.showLoading()
api.submitSupervisorReport(params).then(res => { api.submitSupervisorReport(params).then(res => {
...@@ -260,4 +278,4 @@ Page({ ...@@ -260,4 +278,4 @@ Page({
onShareAppMessage() { onShareAppMessage() {
} }
})
\ No newline at end of file \ No newline at end of file
})
{ {
"usingComponents": { "usingComponents": {
"van-icon": "@vant/weapp/icon/index",
"select-popup": "/components/selectPopup/selectPopup" "select-popup": "/components/selectPopup/selectPopup"
}, },
"navigationStyle": "custom" "navigationStyle": "custom"
......
...@@ -15,7 +15,62 @@ page { ...@@ -15,7 +15,62 @@ page {
background: #FFFFFF; background: #FFFFFF;
border-radius: 24rpx; border-radius: 24rpx;
font-size: 28rpx; 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; height: 96rpx;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -30,17 +85,6 @@ page { ...@@ -30,17 +85,6 @@ page {
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
width: calc(100% - 158rpx); 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 { .input {
text-align: right; text-align: right;
font-size: 28rpx; font-size: 28rpx;
...@@ -82,7 +126,7 @@ page { ...@@ -82,7 +126,7 @@ page {
} }
} }
.remark_box { .remark_box {
height: 592rpx; height: 324rpx;
align-items: flex-start; align-items: flex-start;
justify-content: flex-start; justify-content: flex-start;
flex-flow: column; flex-flow: column;
...@@ -93,10 +137,10 @@ page { ...@@ -93,10 +137,10 @@ page {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
border-radius: 16rpx; border-radius: 16rpx;
padding: 24rpx 24rpx 42rpx; padding: 24rpx 24rpx 48rpx;
background: #FFFFFF; background: #FFFFFF;
border: 2rpx solid #eff0f2; border: 2rpx solid #eff0f2;
height: 480rpx; height: 212rpx;
position: relative; position: relative;
font-size: 28rpx; font-size: 28rpx;
.textarea { .textarea {
...@@ -166,11 +210,24 @@ page { ...@@ -166,11 +210,24 @@ page {
} }
} }
} }
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
.footer-btn { .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 { .btn {
margin: 52rpx 64rpx; margin: 16rpx 32rpx;
width: calc(100% - 128rpx); width: calc(100% - 64rpx);
height: 88rpx; height: 88rpx;
text-align: center; text-align: center;
line-height: 88rpx; line-height: 88rpx;
...@@ -179,10 +236,5 @@ page { ...@@ -179,10 +236,5 @@ page {
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
font-weight: 500; font-weight: 500;
&.fixed-btn {
position: fixed;
left: 0;
bottom: 144rpx;
}
} }
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
督导日报 督导日报
</view> </view>
</navigation-bar> </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="report-page">
<view class="item-box"> <view class="item-box">
<view class="lebel">当日状态<text class='required'>*</text></view> <view class="lebel">当日状态<text class='required'>*</text></view>
...@@ -27,24 +27,57 @@ ...@@ -27,24 +27,57 @@
</view> </view>
</view> </view>
<block wx:if="{{orderObj.onDutyFlag == 0}}"> <block wx:if="{{orderObj.onDutyFlag == 0}}">
<view class="item-box"> <!-- <view class="item-box">
<view class="label">选择门店<text class='required'>*</text></view> <view class="label">选择门店<text class='required'>*</text></view>
<view class="value" bindtap="chooseMerchant"> <view class="value" bindtap="chooseMerchant">
<text wx:if="{{orderObj.merchantName}}" class="value-text">{{orderObj.merchantName}}</text> <block wx:if="{{!orderObj.taskMerchantList.length}}">
<block wx:else>
<text class="placeholder">点击选择</text> <text class="placeholder">点击选择</text>
</block> </block>
<text wx:else>已选{{orderObj.taskMerchantList.length}}个</text>
<image src="{{IMG_URL}}arrow.png" mode=""/> <image src="{{IMG_URL}}arrow.png" mode=""/>
</view> </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>
<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="500" placeholder="请输入" class="textarea" bindinput="taskContextInput" /> <textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="500" placeholder="请输入" class="textarea" bindinput="contextInput" data-type="taskContext" />
<view class="currentWordNumber">{{taskContextLength || 0}} / 500</view> <view class="currentWordNumber">{{taskContextLength || 0}} / 500</view>
</view> </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="label">门店拍照<text class='required'>*</text></view>
<view class="upload_box"> <view class="upload_box">
<block wx:if="{{orderObj.taskImageList.length > 0}}"> <block wx:if="{{orderObj.taskImageList.length > 0}}">
...@@ -62,12 +95,12 @@ ...@@ -62,12 +95,12 @@
</view> </view>
</block> </block>
</view> </view>
</view> </view> -->
</block> </block>
</view> </view>
<view class="footer-btn" wx:if="{{orderObj.taskStatus != 2}}"> <view style="width: 100%;height: 20rpx;background: transparent;"></view>
<view class="btn {{orderObj.onDutyFlag == 1 ? 'fixed-btn' : ''}}" bindtap="submit">提交</view>
</view>
</scroll-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 \ 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
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 \ No newline at end of file
{
"usingComponents": {},
"navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
/* 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 \ No newline at end of file
<!--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 \ No newline at end of file
...@@ -8,7 +8,9 @@ Page({ ...@@ -8,7 +8,9 @@ Page({
data: { data: {
navBarHeight: 84, navBarHeight: 84,
orderObj: { orderObj: {
taskContext: '' taskContext: '',
teachingProgress: '',
nextMonthPlan: ''
} }
}, },
...@@ -50,8 +52,12 @@ Page({ ...@@ -50,8 +52,12 @@ Page({
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
let taskContextLength = data.taskContext?.length let taskContextLength = data.taskContext?.length
let teachingProgressLength = data.teachingProgress?.length
let nextMonthPlanLength = data.nextMonthPlan?.length
this.setData({ this.setData({
taskContextLength taskContextLength,
teachingProgressLength,
nextMonthPlanLength
}, () => { }, () => {
this.setData({ this.setData({
orderObj: data || {} orderObj: data || {}
...@@ -63,24 +69,27 @@ Page({ ...@@ -63,24 +69,27 @@ Page({
}) })
}, },
taskContextInput(e) { textAreaInput(e) {
let { key } = e.currentTarget.dataset
let val = e.detail.value || "" let val = e.detail.value || ""
if (val.length > 1000) { if (val.length > 1000) {
val = val.substring(0, 1000) val = val.substring(0, 1000)
} }
this.setData({ this.setData({
'orderObj.taskContext': val, [`orderObj.${key}`]: val,
taskContextLength: val.length [`${key}Length`]: val.length
}) })
}, },
submit() { submit() {
let { orderObj, pageQuery } = this.data 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 = { let params = {
id: pageQuery?.id, id: pageQuery?.id,
taskType: 2, taskType: 2,
taskContext: orderObj.taskContext taskContext: orderObj.taskContext,
teachingProgress: orderObj.teachingProgress,
nextMonthPlan: orderObj.nextMonthPlan
} }
wx.$util.showLoading() wx.$util.showLoading()
api.submitMonthPlan(params).then(res => { api.submitMonthPlan(params).then(res => {
......
...@@ -11,7 +11,7 @@ page { ...@@ -11,7 +11,7 @@ page {
height: 100vh; height: 100vh;
} }
.monthlyPlan-page { .monthlyPlan-page {
margin: 20rpx; margin: 0 20rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 24rpx; border-radius: 24rpx;
font-size: 28rpx; font-size: 28rpx;
...@@ -27,10 +27,11 @@ page { ...@@ -27,10 +27,11 @@ page {
} }
} }
.remark_box { .remark_box {
height: 1080rpx; height: 366rpx;
align-items: flex-start; align-items: flex-start;
justify-content: flex-start; justify-content: flex-start;
flex-flow: column; flex-flow: column;
padding-bottom: 32rpx;
.label { .label {
margin: 28rpx 0; margin: 28rpx 0;
} }
...@@ -38,7 +39,7 @@ page { ...@@ -38,7 +39,7 @@ page {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
border-radius: 16rpx; border-radius: 16rpx;
padding: 24rpx 24rpx 42rpx; padding: 24rpx 24rpx 48rpx;
background: #FFFFFF; background: #FFFFFF;
border: 2rpx solid #eff0f2; border: 2rpx solid #eff0f2;
height: 960rpx; height: 960rpx;
...@@ -57,11 +58,24 @@ page { ...@@ -57,11 +58,24 @@ page {
} }
} }
} }
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
.footer-btn { .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 { .btn {
margin: 52rpx 64rpx; margin: 16rpx 32rpx;
width: calc(100% - 128rpx); width: calc(100% - 64rpx);
height: 88rpx; height: 88rpx;
text-align: center; text-align: center;
line-height: 88rpx; line-height: 88rpx;
......
...@@ -8,17 +8,32 @@ ...@@ -8,17 +8,32 @@
督导月度计划 督导月度计划
</view> </view>
</navigation-bar> </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="monthlyPlan-page">
<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="1000" placeholder="请输入" class="textarea" bindinput="taskContextInput" /> <textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="1000" placeholder="请输入" class="textarea" bindinput="textAreaInput" data-key="taskContext" />
<view class="currentWordNumber">{{taskContextLength || 0}} / 1000</view> <view class="currentWordNumber">{{taskContextLength || 0}} / 1000</view>
</view> </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>
<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 \ 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 \ No newline at end of file
...@@ -90,6 +90,7 @@ Component({ ...@@ -90,6 +90,7 @@ Component({
metrics: [], metrics: [],
sortKey: '', sortKey: '',
sortOrder: 'desc', sortOrder: 'desc',
keyword: '',
displayList: [], displayList: [],
dotMaps: { dotMaps: {
0: 'red', 0: 'red',
...@@ -111,6 +112,18 @@ Component({ ...@@ -111,6 +112,18 @@ Component({
}, },
methods: { methods: {
input(e) {
let { value } = e.detail
this.setData({ keyword: value })
},
search() {
this.applySearch()
},
clear() {
this.setData({keyword: ''}, () => {
this.applySearch()
})
},
initLoad() { initLoad() {
let { mode } = this.data let { mode } = this.data
this.setData({ this.setData({
...@@ -128,7 +141,7 @@ Component({ ...@@ -128,7 +141,7 @@ Component({
const sortOrder = this.data.sortOrder || this.data.initialSortOrder || 'desc' const sortOrder = this.data.sortOrder || this.data.initialSortOrder || 'desc'
const metrics = cfg.metrics || [] const metrics = cfg.metrics || []
const metricWidth = `${(100 / Math.max(1, metrics.length)).toFixed(2)}%` 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( this.setData(
{ {
sortOptions: cfg.sortOptions || [], sortOptions: cfg.sortOptions || [],
...@@ -171,7 +184,7 @@ Component({ ...@@ -171,7 +184,7 @@ Component({
onTapEmployee(e) { onTapEmployee(e) {
if (this.data.scene == 0) return // 全业务不支持跳转详情 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.data.displayList) ? this.data.displayList[idx] : null
this.triggerEvent('employeeTap', { employee }) this.triggerEvent('employeeTap', { employee })
}, },
...@@ -194,5 +207,21 @@ Component({ ...@@ -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)
})
},
} }
}) })
...@@ -88,7 +88,45 @@ ...@@ -88,7 +88,45 @@
color: #2c66f7; 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 { .list {
padding: 8rpx 0 16rpx; padding: 8rpx 0 16rpx;
......
...@@ -23,6 +23,15 @@ ...@@ -23,6 +23,15 @@
</block> </block>
</view> </view>
</scroll-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}}"> <view class="list" wx:if="{{displayList.length}}">
<block wx:for="{{displayList}}" wx:key="employeeId" wx:for-index="index"> <block wx:for="{{displayList}}" wx:key="employeeId" wx:for-index="index">
<view class="card" bindtap="onTapEmployee" data-index="{{index}}"> <view class="card" bindtap="onTapEmployee" data-index="{{index}}">
......
...@@ -246,6 +246,10 @@ Page({ ...@@ -246,6 +246,10 @@ Page({
}, },
getEmployeeRank(noAI) { getEmployeeRank(noAI) {
let { tabIndex, sceneTabIndex, startStr, endStr, sortField, sortOrder, timeDimension } = this.data let { tabIndex, sceneTabIndex, startStr, endStr, sortField, sortOrder, timeDimension } = this.data
const sortComp = this.selectComponent('#employee-ranking')
if (sortComp) {
sortComp.clear()
}
this.setData({ this.setData({
employeeList: [] employeeList: []
}) })
......
...@@ -179,4 +179,57 @@ page { ...@@ -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: 32rpx;
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 #0000001a;
display: flex;
align-items: center;
justify-content: center;
.image {
width: 32rpx;
height: 32rpx;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -41,9 +41,7 @@ ...@@ -41,9 +41,7 @@
<view class="data-container"> <view class="data-container">
<view class="sticky-box {{ isSticky ? 'is-sticky' : '' }}"> <view class="sticky-box {{ isSticky ? 'is-sticky' : '' }}">
<view class="tab-box"> <view class="tab-box">
<tab-bar tabList="{{ tabList }}" <tab-bar tabList="{{ tabList }}" badge="{{true}}" bindclick="tabClick" activeIndex="{{ tabIndex }}" />
bindclick="tabClick"
activeIndex="{{ tabIndex }}" />
</view> </view>
<view class="date"> <view class="date">
<date-screen tabSelected="{{ tabIndex }}" <date-screen tabSelected="{{ tabIndex }}"
...@@ -56,92 +54,86 @@ ...@@ -56,92 +54,86 @@
</view> </view>
<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 }}" <block wx:for="{{ list }}" wx:for-item="val" wx:for-index="sIndex" wx:key="sIndex">
wx:for-item="val" <block wx:for="{{val}}" wx:key="index">
wx:for-index="sIndex" <view class="item content">
wx:key="sIndex"> <!-- 顶部状态和标题 -->
<block wx:for="{{ val }}" wx:key="index"> <view class="item-top">
<view class="item content"> <view
<!-- 顶部状态和标题 --> class="status text-center"
<view class="item-top"> style="color: {{statusMap[item.taskStatus].color}}; background-color: {{statusMap[item.taskStatus].background}};"
<view class="status text-center" >
style="color: {{ statusMap[item.taskStatus].color }}; background-color: {{ statusMap[item.taskStatus].background }};"> {{statusMap[item.taskStatus].name}}
{{ statusMap[item.taskStatus].name }}
</view>
<view class="name" wx:if="{{ item.taskType != 4 }}">
{{ missionMap[item.taskType].name }}<text wx:if="{{ item.taskType == 5 }}">-{{ item.storeManagerName || '-' }}</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">
<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>
<view class="text-hide">
{{ item.taskDesc || '-' }} <view class="name" wx:if="{{item.taskType != 4}}">
{{missionMap[item.taskType].name}}
<text wx:if="{{item.taskType == 5}}"></text>
</view> </view>
<view class="name" wx:else>{{item.merchantName || '-'}}</view>
</view> </view>
<view wx:if="{{ 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" <image class="icon" src="{{IMG_URL}}task-icon.png" mode="" />
src="{{ IMG_URL }}task-icon.png" <view class="label">{{['日报内容:', '复盘内容:', '月度计划:'][item.taskType]}}</view>
mode="" /> <view class="text-hide">{{item.taskContext || '-'}}</view>
<view class="label"> </view> -->
专项任务: <block wx:if="{{item.taskType == 4}}">
</view> <view class="list-item">
<view class="text-hide"> <image class="icon" src="{{IMG_URL}}matter-icon.png" mode="" />
{{ item.taskContext || '-' }} <view class="label">事项描述:</view>
<view class="text-hide">{{item.taskDesc || '-'}}</view>
</view> </view>
</view>
<view wx:else class="list-item"> <view wx:if="{{item.taskStatus == 2}}" class="list-item">
<image class="icon" <image class="icon" src="{{IMG_URL}}task-icon.png" mode="" />
src="{{ IMG_URL }}time-icon.png" <view class="label">专项任务:</view>
mode="" /> <view class="text-hide">{{item.taskContext || '-'}}</view>
<view class="label">
创建时间:
</view> </view>
<view>
{{ item.createTime || '-' }} <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> </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="" />
<view class="label">完成时间:</view>
<view wx:if="{{item.taskStatus == 2}}">{{item.updatedDate || '-'}}</view>
<view wx:else>-</view>
</view> </view>
</block> <!-- 录音复盘任务进度 -->
<view wx:if="{{ item.taskType != 4 || (item.taskType == 4 && item.taskStatus == 2) }}" <view wx:if="{{item.taskType == 3}}" class="list-item">
class="list-item"> <view class="progress">
<image class="icon" <view class="progress-line"></view>
src="{{ IMG_URL }}time-icon.png" <view
mode="" /> class="progress-item"
<view class="label"> style="width: {{ (item.audioReviewCompletedCount / item.audioReviewTotalCount * 100) + '%' }}"
完成时间: ></view>
<view class="num">{{item.audioReviewCompletedCount + '/' + item.audioReviewTotalCount}}</view>
</view>
</view> </view>
<view> <!-- 提报优秀案例录音/带教要求任务进度 -->
{{ item.updatedDate || '-' }} <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>
</view>
<view wx:if="{{ item.taskType == 3 }}" class="list-item"> <!-- 底部按钮 -->
<view class="progress"> <view class="btn-box">
<view class="progress-line"></view> <view
<view class="progress-item" bindtap="jump"
style="width: {{ (item.audioReviewCompletedCount / item.audioReviewTotalCount * 100) + '%' }}"></view> data-target="{{item}}"
<view class="num"> class="btn {{item.taskStatus == 2 ? '' : 'primary'}}"
{{ item.audioReviewCompletedCount + '/' + item.audioReviewTotalCount }} >
{{item.taskStatus == 2 ? '查看' : '去执行'}}
</view> </view>
</view> </view>
</view> </view>
...@@ -153,7 +145,7 @@ ...@@ -153,7 +145,7 @@
{{ item.taskStatus == 2 ? '查看' : '去执行' }} {{ item.taskStatus == 2 ? '查看' : '去执行' }}
</view> </view>
</view> </view>
</view> </block>
</block> </block>
</block> </block>
<block wx:if="{{ nothing }}"> <block wx:if="{{ nothing }}">
...@@ -161,7 +153,6 @@ ...@@ -161,7 +153,6 @@
到底了~ 到底了~
</view> </view>
</block> </block>
</block>
<block wx:else> <block wx:else>
<empty-data /> <empty-data />
</block> </block>
...@@ -169,3 +160,18 @@ ...@@ -169,3 +160,18 @@
</view> </view>
</view> </view>
</scroll-view> </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>
...@@ -319,7 +319,7 @@ Page({ ...@@ -319,7 +319,7 @@ Page({
wx.hideLoading() wx.hideLoading()
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: code == '30990103' || code == '30990105' ? '抱歉,你没有飞行督导角色权限' : message, content: code == '30990103' || code == '30990105' ? '抱歉,你没有督导角色权限' : message,
showCancel: false, showCancel: false,
confirmText: '知道了', confirmText: '知道了',
confirmColor: '#2C66F7' confirmColor: '#2C66F7'
......
...@@ -138,7 +138,7 @@ class TRACK { ...@@ -138,7 +138,7 @@ class TRACK {
loginAccount: accountName, loginAccount: accountName,
uuid, uuid,
userType, userType,
systemSource: 7, systemSource: 8,
eventTime: new Date().format('yyyy-MM-dd hh:mm:ss'), eventTime: new Date().format('yyyy-MM-dd hh:mm:ss'),
eventType, eventType,
prePagePath: prePagePath ? prePagePath.route : '/', prePagePath: prePagePath ? prePagePath.route : '/',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!