Commit 802e8940 by zhangxw

工作台 驻店薪酬管理入口添加

1 parent fe4efe46
Showing 28 changed files with 1012 additions and 9 deletions
...@@ -75,7 +75,10 @@ ...@@ -75,7 +75,10 @@
"pages/carBrands/carBrands", "pages/carBrands/carBrands",
"pages/carSeries/carSeries", "pages/carSeries/carSeries",
"pages/performanceRating/rateList/retaList", "pages/performanceRating/rateList/retaList",
"pages/validReferralCount/referralCountList/referralCountList" "pages/validReferralCount/referralCountList/referralCountList",
"pages/attendanceStatis/attendanceList/attendanceList",
"pages/appealFormManage/appealFormList/appealFormList",
"pages/orderApprovalManage/orderApprovalList/orderApprovalList"
] ]
}, },
{ {
......
// packageWorkspace/pages/appealFormManage/appealFormList/appealFormList.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "申诉单列表"
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/appealFormManage/appealFormList/appealFormList.wxss */
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/appealFormManage/appealFormList/appealFormList.wxml-->
<text>packageWorkspace/pages/appealFormManage/appealFormList/appealFormList.wxml</text>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "考勤列表"
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList.wxss */
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList.wxml-->
<text>packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList.wxml</text>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "订单审核"
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxss */
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxml-->
<text>packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxml</text>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/performanceRating/components/levelRate/levelRate.js
Component({
/**
* 组件的属性列表
*/
properties: {
info: {
type: Object
}
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"van-rate": "@vant/weapp/rate/index"
}
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/performanceRating/components/levelRate/levelRate.wxss */
.rate-item {
display: flex;
align-items: center;
margin-bottom: 24rpx;
.level-item {
display: flex;
align-items: center;
justify-content: center;
width: 232rpx;
height: 60rpx;
border-radius: 40rpx;
margin-right: 24rpx;
}
.coeff {
margin-left: 12rpx;
color: #222222;
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/performanceRating/components/levelRate/levelRate.wxml-->
<view class="rate-item">
<view class="level-item" style="background: {{info.color}};">{{info.level}}级:{{info.score}}分</view>
<view class="rate-box">
<van-rate readonly value="{{ info.rate }}" count="{{info.maxRate}}" void-icon="star" size="16px" void-color="#DEE0E3" color="#FFB742" />
</view>
<view class="coeff">系数:{{info.coefficient}}</view>
</view>
// packageWorkspace/pages/performanceRating/components/selectPopup/selectPopup.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
Component({
options: {
addGlobalClass: true
},
properties: {
show: {
type: Boolean,
value: false
},
title: {
type: String,
value: ''
},
// 原始选项列表,支持任意字段名,通过 labelKey/valueKey 映射
options: {
type: Array,
value: []
},
// 是否多选
multiple: {
type: Boolean,
value: false
},
// 单选初始值
value: {
type: null,
value: null
},
// 多选初始值
values: {
type: Array,
value: []
},
// 字段映射
labelKey: {
type: String,
value: 'name'
},
valueKey: {
type: String,
value: 'value'
},
// 多选最大数量(不限制则设为 0 或不传)
max: {
type: Number,
value: 0
},
// 单选时点击即确认
confirmOnSelect: {
type: Boolean,
value: false
}
},
data: {
IMG_URL,
displayOptions: [], // 带 checked 的渲染选项
selectedValues: [] // 选中的值列表(单选也统一用数组)
},
observers: {
'options, multiple, value, values': function(options, multiple, value, values) {
this.initDisplay(options || [], multiple, value, values)
},
show(n) {
// 进出场时保持数据一致
if (n) {
this.initDisplay(this.properties.options || [], this.properties.multiple, this.properties.value, this.properties.values)
}
}
},
methods: {
initDisplay(options = [], multiple = false, value = null, values = []) {
console.log(value)
const vKey = this.properties.valueKey
// 初始选中值统一转为数组
const initSelected = multiple ? (Array.isArray(values) ? values.slice() : []) : (value !== null && value !== undefined ? value : [])
const display = (options || []).map(item => {
const val = item[vKey]
const checked = initSelected?.some(v => v === val)
return { ...item, checked }
})
this.setData({
displayOptions: display,
selectedValues: initSelected
})
},
toggle(e) {
const { index } = e.currentTarget.dataset
const { multiple, max, valueKey } = this.properties
const item = this.data.displayOptions[index]
if (!item || item.disabled) return
if (multiple) {
let nextChecked = !item.checked
// 限制最大数量
if (nextChecked && max > 0) {
const selectedCount = this.data.selectedValues.length
if (selectedCount >= max) {
// 可根据项目规范提示用户,这里不做 UI 弹窗,保持组件纯净
return
}
}
this.setData({ [`displayOptions[${index}].checked`]: nextChecked })
const val = item[valueKey]
let selected = this.data.selectedValues.slice()
const pos = selected.findIndex(v => v === val)
if (nextChecked && pos === -1) selected.push(val)
if (!nextChecked && pos > -1) selected.splice(pos, 1)
this.setData({ selectedValues: selected })
this.triggerEvent('change', { values: selected, items: this.getSelectedItems() })
} else {
// 单选:取消其他,选中当前
const currentVal = item[valueKey]
const display = this.data.displayOptions.map((it, idx) => ({ ...it, checked: idx === index ? !it.checked : false }))
const selected = display[index].checked ? [currentVal] : []
this.setData({ displayOptions: display, selectedValues: selected })
this.triggerEvent('change', { values: selected, items: this.getSelectedItems() })
if (this.properties.confirmOnSelect) {
this.onConfirm()
}
}
},
onCancel() {
this.triggerEvent('cancel')
},
onConfirm() {
const values = this.data.selectedValues
const items = this.getSelectedItems()
console.log(values)
this.triggerEvent('confirm', { values, items })
},
getSelectedItems() {
return (this.data.displayOptions || []).filter(it => it.checked)
}
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/performanceRating/components/selectPopup/selectPopup.wxss */
.sp-list {
padding: 0 32rpx;
box-sizing: border-box;
height: 100%;
.sp-item {
display: flex;
align-items: center;
justify-content: space-between;
height: 96rpx;
border-bottom: 2rpx solid #F0F2F5;
color: #333;
font-size: 28rpx;
&:last-child {
border-bottom: none;
}
.label {
max-width: 600rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.check {
width: 36rpx;
height: 36rpx;
}
}
.active {
.label {
color: #3D74FF;
}
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/performanceRating/components/selectPopup/selectPopup.wxml-->
<popup show="{{show}}" title="{{title}}" height="50%" bind:confirm="onConfirm" bind:hidePopup="onCancel" customPopupSlotStyle="overflow:auto;">
<scroll-view scroll-y show-scrollbar="{{false}}" enhanced class="sp-list">
<block wx:for="{{displayOptions}}" wx:key="value">
<view class="sp-item {{item.checked ? 'active' : ''}} {{item.disabled ? 'disabled' : ''}}" catchtap="toggle" data-index="{{index}}">
<text class="label">{{item[labelKey] || item.label || item.text}}</text>
<image class="check" src="{{IMG_URL}}checked.png" wx:if="{{item.checked}}" />
</view>
</block>
</scroll-view>
</popup>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/performanceRating/rateList/retaList.js // packageWorkspace/pages/performanceRating/rateList/retaList.js
const __NOW__ = new Date()
const __CUR_YM_TS__ = new Date(__NOW__.getFullYear(), __NOW__.getMonth(), 1).getTime()
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
IMG_URL,
monthText: `${__NOW__.getFullYear()}年${__NOW__.getMonth() + 1}月`,
maxMonthDate: __CUR_YM_TS__,
monthPickerValue: __CUR_YM_TS__,
pendingMonthValue: 0,
showRule: false,
rateRuleList: [{
level: 'S',
score: '>150',
color: '#E9E0FA',
rate: 6,
maxRate: 6,
coefficient: 2.0
}, {
level: 'A',
score: '>120',
color: '#D8F4D4',
rate: 5,
maxRate: 5,
coefficient: 1.5
}, {
level: 'B+',
score: '>110',
color: '#D6F5EF',
rate: 4,
maxRate: 5,
coefficient: 1.3
}, {
level: 'B',
score: '=100',
color: '#E6EFFF',
rate: 3,
maxRate: 5,
coefficient: 1
}, {
level: 'B-',
score: '<85',
color: '#D5F1FA',
rate: 2,
maxRate: 5,
coefficient: 0.7
}, {
level: 'C',
score: '<70',
color: '#F7EFCD',
rate: 1,
maxRate: 5,
coefficient: 0.5
}, {
level: 'D',
score: '<60',
color: '#F9E0E0',
rate: 0,
maxRate: 5,
coefficient: 0.0
}],
row1: [
{ label: '总人数', key: 'allAmount', value: 0 },
{ label: '当月入职人数', key: '', value: 0 }
],
row2: [
{ label: 'S', key: '', value: 0 },
{ label: 'A', value: 6 },
{ label: 'B+', value: 54 },
{ label: 'B', value: 51 },
{ label: 'B-', value: 4 },
{ label: 'C', value: 5 },
{ label: 'D', value: 3 }
],
filterObj: {
level: '',
status: ''
},
levelMap: {
'': '绩效',
'S': 'S',
'A': 'S',
'B+': 'B+',
'B': 'B',
'B-': 'B-',
'C': 'C',
'D': 'D'
},
statusMap: {
'': '处理状态',
'1': '未处理',
'2': '已处理'
},
levelList: [{
name: 'S',
value: 'S'
}, {
name: 'A',
value: 'A'
}, {
name: 'B+',
value: 'B+'
}, {
name: 'B',
value: 'B'
}, {
name: 'B-',
value: 'B-'
}, {
name: 'C',
value: 'C'
}, {
name: 'D',
value: 'D'
}],
statusList: [{
name: '已处理',
value: '1'
}, {
name: '未处理',
value: '2'
}]
}, },
/** /**
...@@ -29,6 +148,98 @@ Page({ ...@@ -29,6 +148,98 @@ Page({
}, },
openMonthPicker() {
console.log(this.data.monthPickerValue)
this.setData({ monthPickerShow: true, pendingMonthValue: this.data.monthPickerValue })
},
closeMonthPicker() {
this.setData({ monthPickerShow: false })
},
popupConfirm() {
const val = this.data.pendingMonthValue || this.data.monthPickerValue
if (val) {
const d = new Date(val)
this.setData({
monthPickerValue: val,
monthText: `${d.getFullYear()}年${d.getMonth() + 1}月`,
boardMonthActive: true,
boardScopeActive: false
}, () => {
this.getPageData()
})
}
this.closeMonthPicker()
},
cancel() {
this.closeMonthPicker()
},
onMonthChange(e) {
const values = e.detail.getValues()
const year = Number(String(values?.[0] || '').replace(/[年月日时分]/g, ''))
const month = Number(String(values?.[1] || '').replace(/[年月日时分]/g, ''))
if (!year || !month) return
const ts = new Date(year, month - 1, 1).getTime()
this.setData({ pendingMonthValue: ts })
},
// 展示规则说明
handleRuleShow() {
this.setData({
showRule: true
})
},
// 收起规则
handleRuleClose() {
this.setData({
showRule: false
})
},
// 重置筛选条件
handleFilterReset() {
this.setData({
filterObj: {
level: '',
status: ''
}
})
},
// 选择绩效等级
handleLevelFilter() {
let {
filterObj,
levelList
} = this.data
this.setData({
showSelectPopup: true,
selectOptions: levelList,
selectTitle: '绩效',
selectMultiple: false,
selectValue: [filterObj.level],
selectType: 'level'
})
},
// 选择处理状态
handleStatusFilter() {
},
handlePopupConfirm(e) {
let { values } = e.detail
let { selectType } = this.data
this.setData({
[`filterObj.${selectType}`]: values
})
this.hideSelectPopup()
},
hideSelectPopup() {
this.setData({
showSelectPopup: false
})
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
......
{ {
"usingComponents": {} "usingComponents": {
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"level-rate": "../components/levelRate/levelRate",
"select-popup": "../components/selectPopup/selectPopup"
},
"navigationBarTitleText": "绩效考核评分"
} }
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/performanceRating/rateList/retaList.wxss */
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/performanceRating/rateList/retaList.wxss */
page {
background: #F2F3F7;
}
.ratelist {
.flex {
display: flex;
align-items: center;
}
.top-box {
background: #FFF;
width: 100%;
height: var(--fontSize88);
padding: 0 var(--fontSize32);
justify-content: space-between;
box-sizing: border-box;
.date-box {
width: var(--fontSize286);
height: var(--fontSize64);
border-radius: var(--fontSize40);
background: #f2f3f5;
font-size: var(--fontSize32);
color: #222222;
justify-content: center;
image {
width: var(--fontSize32);
height: var(--fontSize32);
}
}
.btn-box {
font-size: 28rpx;
image {
width: 32rpx;
height: 32rpx;
margin-right: 8rpx;
}
}
}
.container {
padding: 16rpx 24rpx;
box-sizing: border-box;
height: calc(100vh - var(--fontSize88));
.rule-card {
background: #FFFFFF;
margin: -16rpx -24rpx 16rpx -16rpx;
padding: 24rpx;
border-radius: 0 0 32rpx 32rpx;
.title {
font-size: 28rpx;
color: #222222;
font-weight: 500;
margin-bottom: 32rpx;
image {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
margin-right: 8rpx;
}
}
.box {
font-size: 24rpx;
color: #777777;
margin-bottom: 32rpx;
.box-title {
font-size: 26rpx;
color: #222222;
margin-bottom: 16rpx;
}
}
.arrow-btn {
justify-content: center;
font-size: 24rpx;
color: #999999;
image {
width: 32rpx;
height: 32rpx;
transform: rotate(-90deg);
margin-left: 8rpx;
}
}
}
.top {
.title {
font-size: 26rpx;
color: #222222;
margin-bottom: 16rpx;
.tips {
color: #666666;
font-size: 24rpx;
margin-left: 8rpx;
}
}
.card-row {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
margin-bottom: 16rpx;
&.card-row2 {
display: grid;
grid-template-columns: repeat(4, 1fr);
margin-bottom: 0;
}
.card {
flex: 1;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
height: 128rpx;
border-radius: 24rpx;
background: #ffffff;
.label {
font-size: 24rpx;
color: #666666;
}
.value {
font-size: 36rpx;
color: #0066ff;
font-weight: bold;
margin-top: 10rpx;
}
}
}
}
.list-box {
padding-top: 24rpx;
.search-input {
position: sticky;
top: 0;
background: #ffffff;
border-radius: var(--fontSize38);
width: 100%;
height: var(--fontSize72);
display: flex;
align-items: center;
margin-bottom: 16rpx;
.search-icon {
width: var(--fontSize28);
height: var(--fontSize28);
margin: 0 var(--fontSize10) 0 var(--fontSize26);
}
.search-clear {
width: var(--fontSize36);
height: var(--fontSize36);
margin: 0 var(--fontSize26) 0 var(--fontSize10);
}
.input {
font-size: var(--fontSize28);
height: var(--fontSize38);
line-height: var(--fontSize38);
width: calc(100% - var(--fontSize136));
}
.input-placeholder {
color: #BBBBBB;
}
}
.filter-box {
justify-content: space-between;
.filter-item {
height: 56rpx;
border-radius: 56rpx;
background: #ffffff;
padding: 0 16rpx 0 24rpx;
font-size: 26rpx;
color: #666666;
margin-right: 16rpx;
&.active {
color: #2C66F7;
}
text {
line-height: 40rpx;
}
image {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
margin-left: 8rpx;
}
}
.reset-btn {
color: #222222;
font-size: 26rpx;
}
}
}
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/performanceRating/rateList/retaList.wxml--> <!--packageWorkspace/pages/performanceRating/rateList/retaList.wxml-->
<text>packageWorkspace/pages/performanceRating/rateList/retaList.wxml</text>
\ No newline at end of file \ No newline at end of file
<view class="ratelist">
<view class="top-box flex">
<view class="date-box flex" bindtap="openMonthPicker">
<text>{{monthText}}</text>
<image src="{{IMG_URL}}expand_icon.png" mode=""/>
</view>
<view class="flex btn-box">
<view class="note flex" bindtap="handleRuleShow">
<image src="" mode=""/>
<view>规则说明</view>
</view>
<view class="flex">
<image src="" mode=""/>
<view>批量操作</view>
</view>
</view>
</view>
<scroll-view class="container" scroll-y>
<view class="rule-card" wx:if="{{showRule}}">
<view class="title flex"><image src="" mode=""/>绩效评分规则总览</view>
<view class="box">
<view class="box-title">当月入职新员工规则</view>
<view class="box-content"><view>当月入职,出勤≥15天,产值<10000元 → 自动D级(系数:0)</view>除上述规则以外,当月入职的新员工绩效默认为【B】</view>
</view>
<view class="box">
<view class="box-title">常规评分规则</view>
<block wx:for="{{rateRuleList}}" wx:key="index">
<level-rate info="{{item}}" />
</block>
</view>
<view class="box">
<view class="box-title">非当月入职新员工规则</view>
<view class="box-content"><view>当月总产值<10,000元 → 自动D级(系数:0</view>除上述规则以外,当月入职的新员工绩效默认为【B】</view>
</view>
<view class="arrow-btn flex"><view class="flex" bindtap="handleRuleClose">收起规则<image src="{{IMG_URL}}arrow-left.png" mode=""/></view></view>
</view>
<view class="top">
<view class="title">统计卡片<text class="tips">规则影响统计</text></view>
<view class="card-row">
<view wx:for="{{row1}}" wx:key="index" class="card">
<text class="label">{{item.label}}</text>
<text class="value">{{item.value}}</text>
</view>
</view>
<view class="card-row card-row2">
<view wx:for="{{row2}}" wx:key="index" class="card">
<text class="label">{{item.label}}</text>
<text class="value">{{item.value}}</text>
</view>
</view>
</view>
<view class="list-box" style="height: 100vh;">
<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="filter-box flex">
<view class="flex">
<view class="filter-item flex {{filterObj.level ? 'active': ''}}" bindtap="handleLevelFilter">
<text>{{levelMap[filterObj.level]}}</text><image src="{{IMG_URL}}{{filterObj.level ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
<view class="filter-item flex {{filterObj.status ? 'active': ''}}" bindtap="handleStatusFilter">
<text>{{statusMap[filterObj.status]}}</text><image src="{{IMG_URL}}{{filterObj.status ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
</view>
<view class="reset-btn" bindtap="handleFilterReset">重置</view>
</view>
<view class="list" style="height: 2000rpx;">
</view>
</view>
</scroll-view>
</view>
<popup bind:hidePopup="cancel" bind:confirm="popupConfirm" customPopupSlotStyle="{{'height: calc(100% - 210rpx)'}}" show="{{monthPickerShow}}" title="选择月份" height="60%">
<van-datetime-picker
id="datePicker"
type="year-month"
model:value="{{pendingMonthValue}}"
max-date="{{maxMonthDate}}"
show-toolbar="{{false}}"
bind:change="onMonthChange"
/>
</popup>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{ selectMultiple }}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" title="{{ selectTitle }}" bindcancel="hideSelectPopup" customIsTab="{{ true }}"></select-popup>
\ No newline at end of file \ No newline at end of file
...@@ -49,6 +49,32 @@ Page({ ...@@ -49,6 +49,32 @@ Page({
url: "packageWorkspace.talentAnalysis", url: "packageWorkspace.talentAnalysis",
icon: "talent-analysis", icon: "talent-analysis",
trackingCode: 'regional-assistant-talent-analysis' trackingCode: 'regional-assistant-talent-analysis'
}],
compensationMenus: [{
name: "绩效评分",
path: "/packageWorkspace/pages/performanceRating/rateList/retaList",
icon: "performance_rating_icon",
trackingCode: 'regional-assistant-performance-rating'
}, {
name: "有效引荐数",
path: "/packageWorkspace/pages/validReferralCount/referralCountList/referralCountList",
icon: "valid_referrals_icon",
trackingCode: 'regional-assistant-valid-referrals'
}, {
name: "考勤统计",
path: "/packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList",
icon: "attendance_statistics_icon",
trackingCode: 'regional-assistant-attendance-statistics'
}, {
name: "申诉单",
path: "/packageWorkspace/pages/appealFormManage/appealFormList/appealFormList",
icon: "appeal_form_icon",
trackingCode: 'regional-assistant-appeal-form'
}, {
name: "订单审核",
path: "/packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList",
icon: "order_approval_icon",
trackingCode: 'regional-assistant-order-approval'
}] }]
}, },
...@@ -160,15 +186,21 @@ Page({ ...@@ -160,15 +186,21 @@ Page({
}, },
jumpTo(e) { jumpTo(e) {
let { url, query, trackingCode, params } = e.currentTarget.dataset.target let { url, query, trackingCode, params, path } = e.currentTarget.dataset.target
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
// 埋点 // 埋点
wx.$track.setTrackData(0, trackingCode, {}, '', userInfo?.sceneType) // wx.$track.setTrackData(0, trackingCode, {}, '', userInfo?.sceneType)
if (url == 'packageWorkspace.receptionRecords' && query) { if (url == 'packageWorkspace.receptionRecords' && query) {
return wx.navigateTo({ return wx.navigateTo({
url: '/packageWorkspace/pages/receptionRecords/receptionRecords?hideScore=1', url: '/packageWorkspace/pages/receptionRecords/receptionRecords?hideScore=1',
}) })
} }
if (path) {
wx.navigateTo({
url: `${path}`,
})
return
}
wx.$router.go(url, { wx.$router.go(url, {
params: params || {}, params: params || {},
}) })
......
...@@ -19,6 +19,8 @@ page { ...@@ -19,6 +19,8 @@ page {
} }
.container { .container {
padding-top: var(--fontSize1); padding-top: var(--fontSize1);
padding-bottom: var(--fontSize30);
overflow: auto;
} }
.banner-box { .banner-box {
height: var(--fontSize192); height: var(--fontSize192);
...@@ -52,6 +54,7 @@ page { ...@@ -52,6 +54,7 @@ page {
padding-top: var(--fontSize24); padding-top: var(--fontSize24);
background: #FFFFFF; background: #FFFFFF;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
gap: var(--fontSize18);
.label { .label {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: var(--fontSize24); font-size: var(--fontSize24);
......
<!--pages/tab/workspace/workspace.wxml--> <!--pages/tab/workspace/workspace.wxml-->
<navigation-bar bindnavbarReady="navbarReady" class="navigation-header" navStyle="background-color:transparent;box-shadow:none;"><view class="page-title">工作台</view></navigation-bar> <navigation-bar bindnavbarReady="navbarReady" class="navigation-header" navStyle="background-color:transparent;box-shadow:none;"><view class="page-title">工作台</view></navigation-bar>
<view class="bg"></view> <view class="bg"></view>
<view class="container" style="margin-top: {{navBarHeight}}px;"> <view class="container" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px);">
<view class="banner-box" wx:if="{{showBanner}}"> <view class="banner-box" wx:if="{{showBanner}}">
<image class="image" src="{{IMG_URL}}work-banner.png" mode=""/> <image class="image" src="{{IMG_URL}}work-banner.png" mode=""/>
<image class="close-icon" bindtap="closeBannaer" src="{{IMG_URL}}blue-close.png" alt=""/> <image class="close-icon" bindtap="closeBannaer" src="{{IMG_URL}}blue-close.png" alt=""/>
...@@ -42,6 +42,17 @@ ...@@ -42,6 +42,17 @@
</block> </block>
</view> </view>
</view> </view>
<view class="box">
<view class="label">驻店薪酬管理</view>
<view class="menu">
<block wx:for="{{ compensationMenus }}" wx:key="index">
<view class="item" bindtap="jump" data-target="{{ item }}">
<image src="{{ IMG_URL}}{{item.icon }}.png" />
<view class="label">{{item.name}}</view>
<view class="hot_icon" wx:if="{{ item.tipsNum }}">{{item.tipsNum > 99?'99+': item.tipsNum}}</view>
</view>
</block>
</view>
</view>
</view> </view>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!