Commit 8ecdc964 by 前端

Merge branch 'SAAS+V5.6.1' into 'master'

上线合并

See merge request !14
2 parents b4f5f9e8 c2324afc
Showing 108 changed files with 4864 additions and 138 deletions
...@@ -115,5 +115,7 @@ ...@@ -115,5 +115,7 @@
"gitlens.codeLens.recentChange.enabled": true, "gitlens.codeLens.recentChange.enabled": true,
"gitlens.currentLineBlame": true, "gitlens.currentLineBlame": true,
"gitlens.currentLineBlame.format": "${author}, ${date} - ${message}", "gitlens.currentLineBlame.format": "${author}, ${date} - ${message}",
"gitlens.blame.visibility": "on" "gitlens.blame.visibility": "on",
// 待团队讨论后再开启
"prettier.enable": false
} }
\ No newline at end of file \ No newline at end of file
...@@ -423,5 +423,9 @@ module.exports = { ...@@ -423,5 +423,9 @@ module.exports = {
// 获取员工日报/周报/月报模版 // 获取员工日报/周报/月报模版
getStaffTemplate(data) { getStaffTemplate(data) {
return api.post('dj.api.carboutique.find.staff.good.news.template', data) return api.post('dj.api.carboutique.find.staff.good.news.template', data)
},
// 获取异常订单待审核数量
getOrderWaitForAudit(data) {
return api.post('dj.api.smartcarlife.goodsOrderApplyRecord.waitForAudit.count', data)
} }
} }
{ {
"pages": [ "pages": [
"pages/loading/loading", "pages/loading/loading",
"pages/sceneIndex/sceneIndex", "pages/sceneIndex/sceneIndex",
"pages/wxLogin/wxLogin", "pages/wxLogin/wxLogin",
"pages/accountItems/accountItems", "pages/accountItems/accountItems",
"pages/merchantList/merchantList", "pages/merchantList/merchantList",
"pages/nothing/nothing", "pages/nothing/nothing",
"pages/webView/webView", "pages/webView/webView",
"pages/tab/index/index", "pages/tab/index/index",
"pages/tab/workspace/workspace", "pages/tab/workspace/workspace",
"pages/tab/study/study", "pages/tab/study/study",
"pages/tab/mine/mine", "pages/tab/mine/mine",
"pages/log/log", "pages/log/log",
"pages/changeScene/changeScene", "pages/changeScene/changeScene",
"pages/h5AuthPhone/h5AuthPhone" "pages/h5AuthPhone/h5AuthPhone"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff", "navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "嘀加区域助手", "navigationBarTitleText": "嘀加区域助手",
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"pageOrientation": "auto" "pageOrientation": "auto"
}, },
"tabBar": { "tabBar": {
"color": "#999999", "color": "#999999",
"selectedColor": "#222222", "selectedColor": "#222222",
"backgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF",
"position": "bottom", "position": "bottom",
"list": [ "list": [
{ {
"pagePath": "pages/tab/index/index", "pagePath": "pages/tab/index/index",
"text": "首页", "text": "首页",
"iconPath": "images/tab-home.png", "iconPath": "images/tab-home.png",
"selectedIconPath": "images/tab-home-active.png" "selectedIconPath": "images/tab-home-active.png"
}, },
{ {
"pagePath": "pages/tab/workspace/workspace", "pagePath": "pages/tab/workspace/workspace",
"text": "工作台", "text": "工作台",
"iconPath": "images/tab-workspace.png", "iconPath": "images/tab-workspace.png",
"selectedIconPath": "images/tab-workspace-active.png" "selectedIconPath": "images/tab-workspace-active.png"
}, },
{ {
"pagePath": "pages/tab/study/study", "pagePath": "pages/tab/study/study",
"text": "学习", "text": "学习",
"iconPath": "images/tab-study.png", "iconPath": "images/tab-study.png",
"selectedIconPath": "images/tab-study-active.png" "selectedIconPath": "images/tab-study-active.png"
}, },
{ {
"pagePath": "pages/tab/mine/mine", "pagePath": "pages/tab/mine/mine",
"text": "我的", "text": "我的",
"iconPath": "images/tab-mine.png", "iconPath": "images/tab-mine.png",
"selectedIconPath": "images/tab-mine-active.png" "selectedIconPath": "images/tab-mine-active.png"
} }
] ]
}, },
"subpackages": [ "subpackages": [
{ {
"root": "packageWorkspace", "root": "packageWorkspace",
"name": "packageWorkspace", "name": "packageWorkspace",
"pages": [ "pages": [
"pages/serverCenter/view/serverCenter/serverCenter", "pages/serverCenter/view/serverCenter/serverCenter",
"pages/serverCenter/view/companyNoticeDetail/companyNoticeDetail", "pages/serverCenter/view/companyNoticeDetail/companyNoticeDetail",
"pages/refundOperationList/refundOperationList", "pages/refundOperationList/refundOperationList",
"pages/refundDetailList/refundDetailList", "pages/refundDetailList/refundDetailList",
"pages/refundApply/refundApply", "pages/refundApply/refundApply",
"pages/receptionRecords/receptionRecords", "pages/receptionRecords/receptionRecords",
"pages/receptionDetail/receptionDetail", "pages/receptionDetail/receptionDetail",
"pages/newReceptionRecords/newReceptionRecords", "pages/newReceptionRecords/newReceptionRecords",
"pages/residentManage/residentManage", "pages/residentManage/residentManage",
"pages/recruitManage/recruitDetail/recruitDetail", "pages/recruitManage/recruitDetail/recruitDetail",
"pages/recruitManage/recruitInsert/recruitInsert", "pages/recruitManage/recruitInsert/recruitInsert",
"pages/recruitManage/recruitResult/recruitResult", "pages/recruitManage/recruitResult/recruitResult",
"pages/recruitManage/recruitManage/recruitManage", "pages/recruitManage/recruitManage/recruitManage",
"pages/supervisorDaily/supervisorDaily", "pages/supervisorDaily/supervisorDaily",
"pages/talentAnalysis/talentAnalysis", "pages/talentAnalysis/talentAnalysis",
"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",
"root": "packageStudy", "pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail",
"name": "packageStudy", "pages/performanceRating/ruleNote/ruleNote",
"pages": [ "pages/performanceRating/rateEdit/rateEdit",
"pages/sceneMarket/index/index", "pages/performanceRating/rateDetail/rateDetail",
"pages/sceneMarket/clue/clue", "pages/performanceRating/batchOperation/batchOperation",
"pages/sceneMarket/clueForm/clueForm", "pages/validReferralCount/referraCountEdit/referraCountEdit",
"pages/sceneMarket/materialPage/materialPage", "pages/attendanceStatis/attendanceDetail/attendanceDetail",
"pages/sceneMarket/carBrands/carBrands", "pages/appealFormManage/appealFormDetail/appealFormDetail"
"pages/sceneMarket/carSeries/carSeries", ]
"pages/aiCheck/chat/chat", },
"pages/aiCheck/result/result", {
"pages/aiCheck/scene/scene", "root": "packageStudy",
"pages/aiCheck/start/start", "name": "packageStudy",
"pages/aiCheck/redundance/redundance", "pages": [
"pages/aiCheck/detail/detail", "pages/sceneMarket/index/index",
"pages/aiCheck/defense/defense" "pages/sceneMarket/clue/clue",
] "pages/sceneMarket/clueForm/clueForm",
} "pages/sceneMarket/materialPage/materialPage",
], "pages/sceneMarket/carBrands/carBrands",
"usingComponents": { "pages/sceneMarket/carSeries/carSeries",
"gl-textarea": "/components/GlTextarea/GlTextarea", "pages/aiCheck/chat/chat",
"gl-cell": "/components/GlCell/GlCell", "pages/aiCheck/result/result",
"gl-cust-form": "/components/GLCustForm/GLCustForm", "pages/aiCheck/scene/scene",
"calendar": "/components/Calendar/Calendar", "pages/aiCheck/start/start",
"navigation-bar": "/components/navigationBar/navigationBar", "pages/aiCheck/redundance/redundance",
"popup": "/components/Popup/Popup", "pages/aiCheck/detail/detail",
"search-input": "/components/SearchInput/SearchInput", "pages/aiCheck/defense/defense"
"tab-bar": "/components/TabBar/TabBar", ]
"modal": "components/modal/modal", }
"gl-image": "components/GlImage/index", ],
"van-field": "@vant/weapp/field/index", "usingComponents": {
"van-radio-group": "@vant/weapp/radio-group/index", "gl-textarea": "/components/GlTextarea/GlTextarea",
"van-radio": "@vant/weapp/radio/index", "gl-cell": "/components/GlCell/GlCell",
"van-popup": "@vant/weapp/popup/index", "gl-cust-form": "/components/GLCustForm/GLCustForm",
"van-dialog": "@vant/weapp/dialog/index", "calendar": "/components/Calendar/Calendar",
"van-uploader": "@vant/weapp/uploader/index", "navigation-bar": "/components/navigationBar/navigationBar",
"glsx-privacy": "glsk-applet-component/GlsxPrivacy/index", "popup": "/components/Popup/Popup",
"empty-data": "/components/EmptyData/EmptyData", "search-input": "/components/SearchInput/SearchInput",
"van-switch": "@vant/weapp/switch/index" "tab-bar": "/components/TabBar/TabBar",
}, "modal": "components/modal/modal",
"resolveAlias": { "gl-image": "components/GlImage/index",
"~/*": "/*" "van-field": "@vant/weapp/field/index",
}, "van-radio-group": "@vant/weapp/radio-group/index",
"sitemapLocation": "sitemap.json", "van-radio": "@vant/weapp/radio/index",
"permission": { "van-popup": "@vant/weapp/popup/index",
"scope.userLocation": { "van-dialog": "@vant/weapp/dialog/index",
"desc": "你的位置信息将用于小程序位置接口的效果展示" "van-uploader": "@vant/weapp/uploader/index",
} "glsx-privacy": "glsk-applet-component/GlsxPrivacy/index",
}, "empty-data": "/components/EmptyData/EmptyData",
"lazyCodeLoading": "requiredComponents", "van-switch": "@vant/weapp/switch/index"
"resizable": true },
"resolveAlias": {
"~/*": "/*"
},
"sitemapLocation": "sitemap.json",
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"lazyCodeLoading": "requiredComponents",
"resizable": true
} }
...@@ -9,6 +9,10 @@ Component({ ...@@ -9,6 +9,10 @@ Component({
emptyImageStyle: { emptyImageStyle: {
type: String, type: String,
value: 'width: var(--fontSize208);height: var(--fontSize208);' value: 'width: var(--fontSize208);height: var(--fontSize208);'
},
emptyText: {
type: String,
value: '暂无数据'
} }
}, },
......
<!--components/emptyData/emptyData.wxml--> <!--components/emptyData/emptyData.wxml-->
<view class="empty-box"> <view class="empty-box">
<image class="no-data-img" style="{{emptyImageStyle}}" src="{{IMG_URL}}empty-data.png" /> <image class="no-data-img" style="{{emptyImageStyle}}" src="{{IMG_URL}}empty-data.png" />
<view class="list-not-text">暂无数据</view> <view class="list-not-text">{{emptyText || '暂无数据'}}</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"TopToolbarPopup": "../TopToolbarPopup/TopToolbarPopup",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"van-picker": "@vant/weapp/picker/index",
"calendar": "../Calendar/Calendar"
}
}
<view class="filter-bar">
<!-- Search Area -->
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="{{searchPlaceholder}}" class="input" value="{{ searchValue }}" placeholder-class="input-placeholder" bindinput="onSearchInput" bindconfirm="onSearch" />
<block wx:if="{{ searchValue }}">
<image src="/images/clear.png" class="search-clear" catchtap="clearSearch" />
</block>
</view>
</view>
<!-- Filter Area -->
<view class="filter-box" wx:if="{{filters.length > 0}}">
<view class="filter-list">
<block wx:for="{{filters}}" wx:key="key">
<!-- Date Range Filter -->
<block wx:if="{{item.type === 'date-range'}}">
<calendar
class="calendar-wrapper"
allowSameDay
shortcut
bindselect="onDateRangeSelect"
calenderColor="#347BFF"
vertical
dateType='range'
minDate="2025-01-01"
maxDate="{{ maxDateForCalendar }}"
isComponents
data-index="{{index}}"
>
<view class="filter-item {{searchObj[item.key] ? 'active' : ''}}">
<text class="filter-text">{{searchObj[item.showKey || item.key] || item.label}}</text>
<image class="filter-icon" src="{{IMG_URL}}{{searchObj[item.key] ? 'expand_icon_blue' : 'expand_icon'}}.png" mode="" />
</view>
</calendar>
</block>
<!-- Other Filters (Month, Select) -->
<block wx:else>
<view class="filter-item {{searchObj[item.key] ? 'active' : ''}}" bindtap="onFilterTagTap" data-index="{{index}}">
<text class="filter-text">{{searchObj[item.showKey || item.key] || item.label}}</text>
<image class="filter-icon" src="{{IMG_URL}}{{searchObj[item.key] ? 'expand_icon_blue' : 'expand_icon'}}.png" mode="" />
</view>
</block>
</block>
</view>
<!-- Reset Button -->
<view class="reset-btn" bindtap="resetFilters">
重置
</view>
</view>
</view>
<!-- Dynamic Popup -->
<TopToolbarPopup show="{{showPopup}}" title="" bind:cancel="closePopup" bind:confirm="confirmPopup" height="{{height}}">
<!-- Content depends on active filter type -->
<block wx:if="{{activeFilterIndex > -1}}">
<!-- Type: Month -->
<block wx:if="{{filters[activeFilterIndex].type === 'month'}}">
<van-datetime-picker
type="{{filters[activeFilterIndex].pickerType || 'year-month'}}"
value="{{pickerViewValue}}"
bind:input="onDatePickChange"
show-toolbar="{{false}}"
min-date="{{minDate}}"
max-date="{{maxDate}}"
/>
</block>
<!-- Type: Select -->
<block wx:elif="{{filters[activeFilterIndex].type === 'select'}}">
<van-picker
columns="{{ currentSelectOptions }}"
value-key="confLabel"
default-index="{{ tempSelectIndex }}"
bind:change="onSelectPickerChange"
show-toolbar="{{false}}"
/>
</block>
</block>
</TopToolbarPopup>
/* components/FilterBar/FilterBar.wxss */
.filter-bar {
background: #FFFFFF;
padding: 16rpx 24rpx;
}
/* Search Box */
.search-box {
margin-bottom: 16rpx;
}
.search-input {
background: #F7F8FA;
border-radius: 72rpx;
width: 100%;
height: 72rpx;
display: flex;
align-items: center;
}
.search-icon {
width: 28rpx;
height: 28rpx;
margin: 0 10rpx 0 26rpx;
flex-shrink: 0;
}
.search-clear {
width: 36rpx;
height: 36rpx;
margin: 0 26rpx 0 10rpx;
flex-shrink: 0;
z-index: 10;
}
.input {
font-size: 28rpx;
height: 38rpx;
line-height: 38rpx;
flex: 1;
color: #333;
}
.input-placeholder {
color: #BBBBBB;
}
/* Filter Box */
.filter-box {
display: flex;
justify-content: space-between;
align-items: center;
}
.filter-list {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.filter-item {
height: 56rpx;
border-radius: 56rpx;
background: #F7F8FA;
padding: 0 16rpx 0 24rpx;
font-size: 26rpx;
color: #666666;
margin-right: 16rpx;
display: flex;
align-items: center;
/* Handle wrap if many filters */
}
.filter-item.active {
color: #2C66F7;
/* background: #F7F8FA; */
/* Background stays same in reference */
}
.filter-text {
line-height: 40rpx;
max-width: 170rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.filter-icon {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
margin-left: 4rpx;
}
.reset-btn {
color: #222222;
font-size: 26rpx;
padding: 10rpx;
flex-shrink: 0;
}
\ No newline at end of file \ No newline at end of file
// components/TopToolbarPopup/TopToolbarPopup.js
Component({
externalClasses: ['popup-slot-class'],
properties: {
show: {
type: Boolean,
value: false,
observer: function (n, o) {
n && wx.hideKeyboard()
this.setData({
showPopup: n
})
}
},
title: String,
height: {
type: String,
value: '85%'
},
slotStyle: String
},
data: {
isFullSucreen: false
},
methods: {
noScroll() { },
hidePopup() {
this.setData({
show: false
})
this.triggerEvent('cancel')
},
confirm() {
this.triggerEvent('confirm')
}
},
attached() {
this.setData({
isFullSucreen: wx.$util && wx.$util.isFullSucreen ? wx.$util.isFullSucreen(true) : false
})
}
})
{
"component": true,
"usingComponents": {}
}
<view class="popup" hidden="{{ !showPopup }}" catchtouchmove="noScroll">
<view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-content" style="height:{{ height }}">
<view class="popup-header">
<view class="action-btn cancel" bind:tap="hidePopup">取消</view>
<view class="title" wx:if="{{ title }}">{{title}}</view>
<view class="action-btn confirm" bind:tap="confirm">确定</view>
</view>
<view class="popup-slot popup-slot-class {{ isFullSucreen?'isFullSucreen':'' }}" style="{{slotStyle}}">
<slot></slot>
</view>
</view>
</view>
/* components/TopToolbarPopup/TopToolbarPopup.wxss */
.popup {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 998;
transform: translateZ(2px);
}
.popup-bg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgba(0, 0, 0, .6);
}
.popup-content {
position: absolute;
left: 0;
width: 100%;
background: #FFFFFF;
border-radius: var(--fontSize20) var(--fontSize20) 0 0;
animation: show-popup .5s forwards;
box-sizing: border-box;
padding: 0 var(--fontSize40);
display: flex;
flex-direction: column;
}
.popup-header {
height: var(--fontSize112);
display: flex;
align-items: center;
justify-content: space-between;
/* border-bottom: var(--fontSize2) solid #EBEDF0; */
flex-shrink: 0;
}
.popup-header .title {
font-size: var(--fontSize34);
color: #333333;
font-weight: bold;
}
.popup-header .action-btn {
font-size: var(--fontSize32);
padding: 0 var(--fontSize10);
}
.popup-header .cancel {
color: #666666;
}
.popup-header .confirm {
color: #2C66F7;
}
.popup-slot {
flex: 1;
overflow-y: auto;
/* height: calc(100% - var(--fontSize98)); */
}
.popup-slot.isFullSucreen {
padding-bottom: var(--fontSize68);
}
@keyframes show-popup {
0% {
bottom: -100%;
}
100% {
bottom: 0;
}
}
...@@ -11,11 +11,11 @@ Component({ ...@@ -11,11 +11,11 @@ Component({
}, },
methods: { methods: {
onModalBtn(e) { onModalBtn(e) {
this.triggerEvent('cancel'); this.triggerEvent('cancel')
}, },
onSelect(e) { onSelect(e) {
const item = e.currentTarget.dataset.item; const item = e.currentTarget.dataset.item
this.triggerEvent('select', item); this.triggerEvent('select', item)
} }
} }
}) })
...@@ -412,4 +412,60 @@ module.exports = { ...@@ -412,4 +412,60 @@ module.exports = {
outputValueStatistics(data) { outputValueStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.outputValueStatistics', data) return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.outputValueStatistics', data)
}, },
/** 门店有效引荐数列表 */
getReferralList(data) {
return api.post('dj.api.staff.miniprogram.effective.referral.store.list', data,
[],
'/rop-dj-staff-miniprogram/router')
},
/** 门店有效引荐数详情 */
getReferralDetail(data) {
return api.post('dj.api.staff.miniprogram.effective.referral.store.detail', data,
[],
'/rop-dj-staff-miniprogram/router')
},
/** 门店有效引荐数提交 */
referralSubmit(data) {
return api.post('dj.api.staff.miniprogram.effective.referral.store.submit', data,
[],
'/rop-dj-staff-miniprogram/router')
},
/** 考勤列表 */
getStaffAttendanceList(data) {
return api.post('dj.staff.api.attendance.list', data,
[],
'/rop-dj-staff-miniprogram/router')
},
/** 考勤明细汇总 */
getStaffAttendSummary(data) {
return api.post('dj.staff.api.attendance.summary', data,
[],
'/rop-dj-staff-miniprogram/router')
},
/** 考勤明细 */
getStaffDailyDetail(data) {
return api.post('dj.staff.api.attendance.daily.detail', data,
[],
'/rop-dj-staff-miniprogram/router')
},
/** 员工工资申诉记录分页查询 */
getSalaryApplyList(data) {
return api.post('dj.api.staff.miniprogram.salaryapply.page', data,
[],
'/rop-dj-staff-miniprogram/router')
},
/** 员工工资申诉记录详情根据id查询 */
getSalaryApplyDetail(data) {
return api.post('dj.api.staff.miniprogram.salaryapply.detailById', data,
[],
'/rop-dj-staff-miniprogram/router')
},
}; };
// 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
},
height: {
type: String
},
allowSearch: {
type: Boolean
}
},
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.setData({
searchValue: ''
})
this.initDisplay(this.properties.options || [], this.properties.multiple, this.properties.value, this.properties.values)
}
}
},
methods: {
initDisplay(options = [], multiple = false, value = null, values = []) {
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,
copyDisplayOptions: wx.$util.deepClone(display),
selectedValues: initSelected
})
},
toggle(e) {
const { index, item } = e.currentTarget.dataset
const { multiple, max, valueKey } = this.properties
let { displayOptions, copyDisplayOptions } = this.data
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 弹窗,保持组件纯净
this.triggerEvent('maxtips')
return
}
}
const selectIndex = displayOptions?.findIndex(v => v[valueKey] == item[valueKey])
this.setData({ [`displayOptions[${selectIndex}].checked`]: nextChecked })
const copySelectIndex = copyDisplayOptions?.findIndex(v => v[valueKey] == item[valueKey])
this.setData({ [`copyDisplayOptions[${copySelectIndex}].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()
}
}
},
search(e) {
let { labelKey, copyDisplayOptions, displayOptions, selectedValues, valueKey } = this.data
let { value } = e.detail
if (!value) {
copyDisplayOptions.map(i => {
i.checked = false
if (selectedValues.includes(i[valueKey])) i.checked = true
return i
})
this.setData({
displayOptions: copyDisplayOptions
})
} else {
let arr = []
copyDisplayOptions.map(i => {
i.checked = false
if (selectedValues.includes(i[valueKey])) i.checked = true
if (i[labelKey].indexOf(value) != -1) {
arr.push(i)
}
})
this.setData({
displayOptions: arr
})
}
},
onCancel() {
this.triggerEvent('cancel')
},
onConfirm() {
const values = this.data.selectedValues
const items = this.getSelectedItems()
this.triggerEvent('confirm', { values, items })
},
getSelectedItems() {
return (this.data.copyDisplayOptions || []).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%;
&.hassearch {
height: calc(100% - 104rpx);
}
.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: 580rpx;
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="{{height || '50%'}}" bind:confirm="onConfirm" bind:cancel="onCancel" customPopupSlotStyle="overflow:auto;">
<view wx:if="{{allowSearch}}">
<search-input bindsearch="search" placeholder="搜索" value="{{ searchValue }}" />
</view>
<scroll-view scroll-y show-scrollbar="{{false}}" enhanced class="sp-list {{allowSearch ? 'hassearch' : ''}}">
<block wx:if="{{displayOptions.length}}">
<block wx:for="{{displayOptions}}" wx:key="index">
<view class="sp-item {{item.checked ? 'active' : ''}} {{item.disabled ? 'disabled' : ''}}" catchtap="toggle" data-index="{{index}}" data-item="{{item}}">
<text class="label">{{item[labelKey] || item.label || item.text}}</text>
<image class="check" src="{{IMG_URL}}checked.png" wx:if="{{item.checked}}" />
</view>
</block>
</block>
<block wx:else>
<empty-data />
</block>
</scroll-view>
</popup>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/appealFormManage/appealFormDetail/appealFormDetail.js
import api from '../../../api'
Page({
/**
* 页面的初始数据
*/
data: {
routerParams: {},
info: {},
appealTypeStr: ''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.setData({
routerParams: options
})
this.getDetailInfo()
},
dealInfo(data) {
data.createdDateTxt = new Date(data.createdDate).format("yyyy-MM-dd hh:mm:ss")
return data || {}
},
getDetailInfo() {
const {routerParams } = this.data
const params = {
id: routerParams.id
}
api.getSalaryApplyDetail(params).then(res => {
let { code, data, message } = res;
if (code == 0) {
this.setData({
info: this.dealInfo(data),
appealTypeStr: this.getAppealTypeStr(data.appealType)
})
}
})
},
getAppealTypeStr(type) {
const map = {
1: '考勤',
2: '平板'
};
return map[type] || '';
},
/**
* Preview Image
*/
previewImage(e) {
const current = e.currentTarget.dataset.url;
const urls = e.currentTarget.dataset.urls.map(item => item.fileUrl);
wx.previewImage({
current,
urls
});
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"van-icon": "@vant/weapp/icon/index"
},
"navigationBarTitleText": "申诉单详情",
"navigationBarBackgroundColor": "#FFFFFF"
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/appealFormManage/appealFormDetail/appealFormDetail.wxss */
page {
background: #F2F3F7;
padding-bottom: 40rpx;
}
.detail-page {
padding: 24rpx;
}
.card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 32rpx;
margin-bottom: 24rpx;
}
.card-title {
font-size: 32rpx;
font-weight: 600;
color: #222222;
margin-bottom: 10rpx;
}
.row {
display: flex;
align-items: center;
}
.row-between {
display: flex;
justify-content: space-between;
align-items: center;
}
.align-start {
align-items: flex-start;
}
.mt-20 {
margin-top: 20rpx;
}
.mt-30 {
margin-top: 30rpx;
}
.ml-20 {
margin-left: 20rpx;
}
.name {
font-size: 32rpx;
font-weight: 600;
color: #222222;
}
.time {
font-size: 24rpx;
color: #999999;
font-weight: 400;
margin-left: 16rpx;
}
.label {
font-size: 28rpx;
color: #999999;
flex-shrink: 0;
}
.value {
font-size: 28rpx;
color: #222222;
-webkit-box-orient: vertical;
word-break: break-all;
}
.bold {
font-weight: 500;
}
.nowrap {
white-space: nowrap;
}
.desc-text {
line-height: 1.6;
text-align: justify;
}
.image-grid {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
}
.img {
width: 200rpx;
height: 200rpx;
border-radius: 8rpx;
background-color: #f8f8f8;
}
.flex-1 {
flex: 1;
}
<!--packageWorkspace/pages/appealFormManage/appealFormDetail/appealFormDetail.wxml-->
<view class="detail-page">
<!-- Header Card -->
<view class="card header-card">
<view class="row-between">
<view class="name">{{info.staffName}} <text class="time">{{info.createdDateTxt}}提交申请</text></view>
</view>
<view class="row mt-20">
<text class="label" style="color: #666666;">申诉类型:</text>
<text class="value">{{appealTypeStr}}</text>
</view>
</view>
<!-- Content Card -->
<view class="card content-card">
<view class="card-title">申诉内容</view>
<block wx:if="{{info.appealType == 1}}">
<view class="row mt-20">
<text class="label">本月实际出勤天数</text>
<text class="value ml-20">{{(info.actualAttendanceDays === null || info.actualAttendanceDays === undefined) ? '-' : (info.actualAttendanceDays + '天')}}</text>
</view>
<view class="row mt-20">
<text class="label">申诉修改实际出勤天数</text>
<text class="value ml-20">{{(info.applyActualAttendanceDays === null || info.applyActualAttendanceDays === undefined) ? '-' : (info.applyActualAttendanceDays + '天')}}</text>
</view>
</block>
<!-- Pad Info -->
<block wx:if="{{info.appealType == 2}}">
<view class="row mt-20">
<text class="label">平板录音完成总数</text>
<text class="value ml-20">{{(info.padRecordNum === null || info.padRecordNum === undefined) ? '-' : (info.padRecordNum + '条')}}</text>
</view>
<view class="row mt-20">
<text class="label">申诉修改录音完成总数</text>
<text class="value ml-20">{{(info.applyPadRecordNum === null || info.applyPadRecordNum === undefined) ? '-' : (info.applyPadRecordNum + '条')}}</text>
</view>
</block>
<view class="section-label mt-30 label">上传截图说明</view>
<view class="image-grid mt-20">
<block wx:for="{{info.attachmentList}}" wx:key="index">
<image
class="img"
src="{{item.fileUrl}}"
mode="aspectFill"
bindtap="previewImage"
data-url="{{item.fileUrl}}"
data-urls="{{info.attachmentList}}"
></image>
</block>
<view wx-if="{{!info.attachmentList.length}}">-</view>
</view>
<view class="row mt-30 align-start">
<text class="label nowrap">备注说明</text>
<text class="value ml-20 flex-1 desc-text">{{info.remark || '-'}}</text>
</view>
</view>
<!-- Reply Card -->
<!-- 处理状态(1:未处理,2:已处理) -->
<view class="card reply-card" wx-if="{{info.dealStatus == 2}}">
<view class="card-title">总部回复</view>
<!-- Attendance Reply -->
<block wx:if="{{info.appealType == 1}}">
<view class="row mt-30">
<text class="label">确认实际出勤天数</text>
<text class="value ml-20">{{(info.confirmActualAttendanceDays === null || info.confirmActualAttendanceDays === undefined) ? '-' : (info.confirmActualAttendanceDays + '天')}}</text>
</view>
</block>
<!-- Pad Reply -->
<block wx:if="{{info.appealType == 2}}">
<view class="row mt-30">
<text class="label">确认平板录音数</text>
<text class="value ml-20">{{(info.confirmPadRecordNum === null || info.confirmPadRecordNum === undefined) ? '-' : (info.confirmPadRecordNum + '条')}}</text>
</view>
</block>
<view class="row mt-30 align-start">
<text class="label nowrap">备注说明</text>
<text class="value ml-20 flex-1 desc-text">{{info.replyContent || '-'}}</text>
</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/appealFormManage/appealFormList/appealFormList.js
import api from "../../../api";
Page({
/**
* 页面的初始数据
*/
data: {
searchObj: {
staffName: "",
applyStartTime: "",
applyEndTime: "",
},
filterConfig: [
{
type: "select",
label: "申诉类型",
key: "appealType",
showKey: "appealTypeTxt",
optionId: "confId",
optionLabel: "confLabel",
optionsName: "appealTypeList",
optionList: [],
},
{
type: "date-range",
label: "申诉日期",
key: "appealDate",
startKey: "applyStartTime",
endKey: "applyEndTime",
},
{
type: "select",
label: "处理状态",
key: "dealStatus",
showKey: "dealStatusTxt",
optionId: "confId",
optionLabel: "confLabel",
optionsName: "dealStatusList",
optionList: [],
},
],
list: [],
triggered: false,
nothing: false,
appealTypeMap: {
1: "考勤",
2: "平板",
},
dealStatusMap: {
1: "未处理",
2: "已处理",
},
baseData: {
appealTypeList: [
{
confLabel: "考勤",
confId: "1",
},
{
confLabel: "平板",
confId: "2",
},
],
dealStatusList: [
{
confLabel: "未处理",
confId: "1",
},
{
confLabel: "已处理",
confId: "2",
},
],
},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getOptionsList("filterConfig");
this.search();
},
/**
* 筛选回调
*/
onFilterChange(e) {
this.setData({
searchObj: e.detail,
});
this.search();
},
/**
* 搜索
*/
search() {
this.setData({
list: [],
pageNum: 1,
flag: false,
nothing: false,
});
this.getList();
},
/**
* 获取列表数据 (Mock)
*/
getList() {
let { pageNum, nothing, searchObj } = this.data;
let userInfo = wx.$util.getUserInfo();
if (nothing) return;
wx.$util.showLoading();
api
.getSalaryApplyList({
...searchObj,
pageNum,
pageSize: 10,
})
.then((res) => {
wx.$util.hideLoading();
let total = 0;
let list = [];
let { code, data, message } = res;
console.log(data);
if (code == 0) {
list = data.list;
total = data.total;
} else {
wx.$util.showToast(message);
}
if (total != 0) {
this.setData({
[`list[${pageNum - 1}]`]: list,
});
}
this.setData({
total,
flag: true,
triggered: false,
pageNum: pageNum + 1,
nothing: pageNum == data.pages,
});
});
},
/**
* 下拉刷新
*/
onPullDownRefresh() {
this.search();
},
onReachBottom() {
this.getList();
},
getOptionsList(formName, refreshSigle) {
const formList = this.data[formName];
const { baseData } = this.data;
if (refreshSigle) {
var item = formList.find((k) => k.key == refreshSigle);
var index = formList.findIndex((k) => k.key == refreshSigle);
this.setData({
[`${formName}[${index}].optionList`]: wx.$util.deepClone(
baseData[item.optionsName],
),
});
} else {
formList.forEach((item, index) => {
if (
["select", "radio"].includes(item.type) &&
baseData[item.optionsName].length
) {
this.setData({
[`${formName}[${index}].optionList`]: wx.$util.deepClone(
baseData[item.optionsName],
),
});
}
});
}
},
/**
* 跳转详情 (如果有)
*/
handleDetail(e) {
let { target } = e.currentTarget.dataset;
wx.navigateTo({
url:
"/packageWorkspace/pages/appealFormManage/appealFormDetail/appealFormDetail?id=" +
target.id,
});
},
});
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"FilterBar": "/components/FilterBar/FilterBar",
"van-icon": "@vant/weapp/icon/index"
},
"navigationBarTitleText": "申诉单列表"
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/appealFormManage/appealFormList/appealFormList.wxss */
page {
background: #F2F3F7;
}
.list-page {
.top-box {
background: #FFFFFF;
}
.list {
.empty-box {
width: 100%;
height: 24rpx;
}
.item {
margin: 0 24rpx 24rpx;
border-radius: 32rpx;
background: #FFFFFF;
padding: 32rpx;
.item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24rpx;
.name {
font-size: 32rpx;
font-weight: 600;
color: #222222;
}
.ellipsis {
overflow: hidden;
display: -webkit-box !important;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
word-break: break-all;
}
.date-row {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: 20rpx;
.date {
font-size: 28rpx;
color: #333333;
margin-right: 8rpx;
}
.status-tag {
font-size: 24rpx;
padding: 6rpx 12rpx;
border-radius: 8rpx;
margin-right: 8rpx;
&.status-1 {
color: #FF9D0A;
background: #ff9d0a1a;
}
&.status-2 {
color: #35C376;
background: #35c3761a;
}
}
}
}
.item-body {
display: flex;
align-items: center;
.stat-item {
display: flex;
align-items: center;
.label {
font-size: 26rpx;
color: #999999;
margin-right: 32rpx;
}
.value {
font-size: 28rpx;
color: #222222;
font-weight: 500;
}
}
.stat-item:first-child {
margin-right: 27rpx;
}
}
}
.list-nothing {
text-align: center;
font-size: 24rpx;
color: #999;
padding: 20rpx 0;
}
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/appealFormManage/appealFormList/appealFormList.wxml-->
<view class="list-page">
<view class="top-box">
<FilterBar
searchPlaceholder="员工姓名"
searchKey="staffName"
filters="{{filterConfig}}"
searchObj="{{searchObj}}"
bind:filterChange="onFilterChange"
></FilterBar>
</view>
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="search"
bindscrolltolower="onReachBottom"
class="list"
style="height:calc(100vh - var(--fontSize184));"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<block wx:if="{{ list.length > 0 }}">
<view class="empty-box"></view>
<block wx:for="{{ list }}" wx:key="index">
<block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind">
<view class="item" bindtap="handleDetail" data-target="{{li}}">
<view class="item-header">
<view class="name ellipsis">{{li.staffName}}</view>
<view class="date-row">
<view class="status-tag status-{{li.dealStatus}}">{{dealStatusMap[li.dealStatus]}}</view>
<van-icon name="arrow" color="#ccc" size="16px" />
</view>
</view>
<view class="item-body">
<view class="stat-item">
<text class="label">申诉日期</text>
<text class="value">{{li.applyDate}}</text>
</view>
<view class="stat-item">
<text class="label">申诉类型</text>
<text class="value">{{appealTypeMap[li.appealType]}}</text>
</view>
</view>
</view>
</block>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<empty-data />
</block>
</scroll-view>
</view>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/attendanceStatis/attendanceDetail/attendanceDetail.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
import api from "../../../api";
// Store daily info at module level to be accessible by formatter
let dailyInfos = [];
Page({
/**
* 页面的初始数据
*/
data: {
IMG_URL,
routerParams: {},
summaryInfo: {},
detail: {},
formattedMonth: "",
minDate: new Date().getTime(),
maxDate: new Date().getTime(),
selectedDate: "", // YYYY-MM-DD
currentDayInfo: null, // { workTime, offWorkTime }
formatter(day) {
const date = new Date(day.date);
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, "0");
const d = date.getDate().toString().padStart(2, "0");
const dateStr = `${year}-${month}-${d}`;
// Find info for this date
const info = dailyInfos.find((item) => item.date === dateStr);
const hasRecord = info && (info.workTime || info.offWorkTime);
if (!hasRecord) {
day.className = "weekend-day";
}
return day;
},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.setData({
routerParams: JSON.parse(options.info),
});
this.getSummary();
this.getDetail();
},
getSummary() {
const { mobilePhone, attendanceMonth } = this.data.routerParams;
const params = {
mobilePhone,
attendanceMonth,
};
api.getStaffAttendSummary(params).then((res) => {
console.log(res);
let { code, data, message } = res;
if (code == "0") {
data.nameAvatar = data.name.slice(-2) || ''
this.setData({
summaryInfo: data,
});
}
});
},
getDetail() {
const { mobilePhone, attendanceMonth } = this.data.routerParams;
const params = {
mobilePhone,
attendanceMonth,
};
api.getStaffDailyDetail(params).then((res) => {
console.log(res);
let { code, data, message } = res;
if (code == "0") {
// Update module-level variable
data.attendanceDailyInfoDTOs.forEach((item) => {
// 截取不要秒,格式 HH:MM
item.offWorkTime = item.offWorkTime
? item.offWorkTime.slice(0, 5)
: "";
item.workTime = item.workTime ? item.workTime.slice(0, 5) : "";
});
dailyInfos = data.attendanceDailyInfoDTOs || [];
// Calculate min and max date based on attendanceMonth
let minDate = new Date().getTime();
let maxDate = new Date().getTime();
let defaultDate = new Date().getTime();
if (data.attendanceMonth) {
const parts = data.attendanceMonth.split("-");
if (parts.length === 2) {
const year = parseInt(parts[0]);
const month = parseInt(parts[1]);
// minDate: 1st day of the month
minDate = new Date(year, month - 1, 1).getTime();
// maxDate: Last day of the month
maxDate = new Date(year, month, 0).getTime();
// Default to the 5th for demo purposes as per screenshot, or minDate
defaultDate = minDate;
// Ensure defaultDate is within range
if (defaultDate < minDate) defaultDate = minDate;
if (defaultDate > maxDate) defaultDate = maxDate;
}
}
this.setData({
detail: data,
formattedMonth: this.formatMonth(data.attendanceMonth),
minDate,
maxDate,
defaultDate,
});
// Initialize selection (simulate selecting the default date)
const dateObj = new Date(defaultDate);
this.handleDateSelect(dateObj);
}
});
},
formatMonth(monthStr) {
if (!monthStr) return "";
// 假设 monthStr 格式为 "YYYY-MM"
const parts = monthStr.split("-");
if (parts.length === 2) {
return `${parts[0]}年${parseInt(parts[1])}月`; // parseInt 去掉月份前导0
}
return monthStr;
},
onSelect(event) {
this.handleDateSelect(event.detail);
},
handleDateSelect(date) {
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, "0");
const day = date.getDate().toString().padStart(2, "0");
const dateStr = `${year}-${month}-${day}`;
// Find info for this date
const dayInfo = this.data.detail.attendanceDailyInfoDTOs.find(
(item) => item.date === dateStr,
);
this.setData({
selectedDate: dateStr,
currentDayInfo: dayInfo || null,
});
},
});
{
"usingComponents": {
"van-icon": "@vant/weapp/icon/index",
"van-calendar": "@vant/weapp/calendar/index"
},
"navigationBarTitleText": "考勤明细"
}
/* packageWorkspace/pages/attendanceStatis/attendanceDetail/attendanceDetail.wxss */
page {
background: #F2F3F7;
}
.card {
background: #FFFFFF;
border-radius: 32rpx;
margin-bottom: 16rpx;
}
.ellipsis {
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
word-break: break-all;
}
/* User Card Styles */
.user-card {
display: flex;
align-items: center;
padding: 24rpx 32rpx;
border-radius: 0 0 32rpx 32rpx;
}
.avatar {
width: 72rpx;
height: 72rpx;
line-height: 72rpx;
text-align: center;
border-radius: 50%;
margin-right: 24rpx;
flex-shrink: 0;
background: #d5e4ff;
color: #2c66f7;
font-size: 28rpx;
font-weight: 600;
}
.name {
font-size: 28rpx;
font-weight: 600;
color: #222222;
margin-bottom: 8rpx;
}
.position {
font-size: 24rpx;
color: #666666;
}
/* Summary Card Styles */
.summary-card {
padding: 24rpx 32rpx;
}
.summary-title {
color: #222222;
font-size: 28rpx;
font-weight: 600;
margin-bottom: 16rpx;
}
.summary-grid {
display: flex;
justify-content: space-between;
}
.grid-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 16rpx 28rpx;
}
.value {
color: #222222;
font-size: 40rpx;
font-weight: 600;
line-height: 1;
margin-bottom: 8rpx;
font-family: DINAlternate-Bold, "PingFang SC", sans-serif; /* Use number font if available */
}
.label {
font-size: 24rpx;
color: #666666;
}
/* Calendar Card Styles */
.calendar-card {
padding-bottom: 32rpx;
overflow: hidden; /* Ensure calendar corners are clipped */
}
/* Custom Calendar Header */
.calendar-header {
display: flex;
justify-content: center;
padding: 12rpx 0;
}
.date-pill {
width: 282rpx;
height: 64rpx;
line-height: 64rpx;
border-radius: 40rpx;
text-align: center;
background: #f2f3f5;
color: #222222;
font-size: 28rpx;
}
.calendar {
.van-calendar__header {
box-shadow: none;
}
.van-calendar__selected-day {
background-color: #2C66F7;
color: #FFFFFF;
width: 64rpx;
height: 64rpx;
border-radius: 50%;
}
.van-calendar__day {
padding: 16rpx 0;
}
}
/* Hide default month title inside van-calendar */
.calendar .van-calendar__month-title {
display: none !important;
height: 0 !important;
}
/* Weekend Style */
.weekend-day {
color: #C8C9CC !important;
}
.attendance-time {
margin: 24rpx 32rpx 0;
padding-top: 46rpx;
border-top: 1rpx solid #e6e7eb;
}
.section-title {
font-size: 24rpx;
color: #666666;
margin-bottom: 24rpx;
}
.timeline-item {
position: relative;
display: flex;
align-items: flex-start;
padding-bottom: 48rpx;
}
.timeline-item:last-child {
padding-bottom: 0;
}
.dot {
box-sizing: border-box;
width: 16rpx;
height: 16rpx;
border-radius: 50%;
border: 4rpx solid #35c376;
background-color: #fff;
z-index: 1;
margin-top: 12rpx;
flex-shrink: 0;
}
.dot-green {
border-color: #00B578;
}
.dot-red {
border-color: #FA5151;
}
.line {
position: absolute;
top: 16rpx;
left: 8rpx;
width: 2rpx;
height: 100%;
background-color: #e6eaf0;
z-index: 0;
}
.content {
margin-left: 24rpx;
display: flex;
align-items: baseline;
}
.status-text {
color: #181a1f;
font-size: 28rpx;
margin-right: 24rpx;
}
.text-red {
color: #FA5151;
}
.label-text {
color: #808291;
font-size: 28rpx;
}
<!--packageWorkspace/pages/attendanceStatis/attendanceDetail/attendanceDetail.wxml-->
<view class="container">
<!-- User Info Card -->
<view class="card user-card">
<!-- <image class="avatar" src="{{IMG_URL}}default-avatar.png" /> -->
<view class="avatar">{{ summaryInfo.nameAvatar }}</view>
<view class="user-info">
<view class="name ellipsis">{{summaryInfo.name}}</view>
<view class="position ellipsis">{{summaryInfo.positionName}}</view>
</view>
</view>
<!-- Summary Card -->
<view class="card summary-card">
<view class="summary-title">{{formattedMonth}}汇总</view>
<view class="summary-grid">
<view class="grid-item">
<view class="value">{{summaryInfo.totalWorkHours}}</view>
<view class="label">出勤工时 (H)</view>
</view>
<view class="grid-item">
<view class="value {{summaryInfo.lateEarlyHours ? 'text-red' : ''}}">{{summaryInfo.lateEarlyHours}}</view>
<view class="label">迟到早退 (H)</view>
</view>
<view class="grid-item">
<view class="value {{summaryInfo.missingPunchCount ? 'text-red' : ''}}">{{summaryInfo.missingPunchCount}}</view>
<view class="label">缺卡 (次数)</view>
</view>
</view>
</view>
<!-- Calendar Card -->
<view class="card calendar-card">
<view class="calendar-header">
<view class="date-pill">{{detail.attendanceMonth}}</view>
</view>
<van-calendar
poppable="{{ false }}"
show-confirm="{{ false }}"
show-title="{{ false }}"
show-subtitle="{{ false }}"
show-mark="{{ false }}"
min-date="{{ minDate }}"
max-date="{{ maxDate }}"
default-date="{{ defaultDate }}"
class="calendar"
row-height="32"
formatter="{{ formatter }}"
bind:select="onSelect"
/>
<!-- Attendance Time Timeline -->
<view class="attendance-time">
<view class="section-title">考勤时间</view>
<!-- Start Work -->
<view class="timeline-item">
<view class="dot {{currentDayInfo.workTime ? 'dot-green' : 'dot-red'}}"></view>
<view class="line"></view>
<view class="content">
<text class="status-text {{currentDayInfo.workTime ? '' : 'text-red'}}">{{currentDayInfo.workTime ? currentDayInfo.workTime : '缺卡'}}</text>
<text class="label-text" wx:if="{{currentDayInfo.workTime}}"> 上班</text>
</view>
</view>
<!-- Off Work -->
<view class="timeline-item">
<view class="dot {{currentDayInfo.offWorkTime ? 'dot-green' : 'dot-red'}}"></view>
<view class="content">
<text class="status-text {{currentDayInfo.offWorkTime ? '' : 'text-red'}}">{{currentDayInfo.offWorkTime ? currentDayInfo.offWorkTime : '缺卡'}}</text>
<text class="label-text" wx:if="{{currentDayInfo.offWorkTime}}"> 下班</text>
</view>
</view>
</view>
</view>
</view>
// packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList.js
import api from '../../../api'
Page({
/**
* 页面的初始数据
*/
data: {
searchObj: {
name: "",
attendanceMonth: "",
},
filterConfig: [
{
type: "month",
label: "考勤月份",
key: "attendanceMonth",
},
],
list: [],
triggered: false,
nothing: false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.search();
},
/**
* 筛选回调
*/
onFilterChange(e) {
this.setData({
searchObj: e.detail,
});
this.search();
},
/**
* 搜索
*/
search() {
this.setData({
list: [],
pageNum: 1,
flag: false,
nothing: false,
});
this.getList();
},
/**
* 获取列表数据 (Mock)
*/
getList() {
// this.setData({
// list: [filteredList], // 二维数组结构,保持与referralCountList一致的渲染逻辑 if needed, but simple list is better.
// // Checking referralCountList.wxml: <block wx:for="{{ list }}" ...><block wx:for="{{ item }}" ...>
// // It seems referralCountList uses a 2D array for pagination pages. I will mimic that structure for consistency.
// triggered: false,
// nothing: true, // Mocking end of list
// });
let { pageNum, nothing, searchObj } = this.data;
let userInfo = wx.$util.getUserInfo();
if (nothing) return;
wx.$util.showLoading();
api
.getStaffAttendanceList({
...searchObj,
pageNum,
pageSize: 10,
})
.then((res) => {
wx.$util.hideLoading();
// let total = 0;
let list = [];
let { code, data, message } = res;
console.log(data)
if (code == 0) {
list = data;
// total = data.total;
} else {
wx.$util.showToast(message);
}
// if (total != 0) {
// this.setData({
// [`list[${pageNum - 1}]`]: list,
// });
// }
this.setData({
// total,
list,
flag: true,
triggered: false,
pageNum: pageNum + 1,
nothing: !!list.length,
});
});
},
/**
* 下拉刷新
*/
onPullDownRefresh() {
this.search();
},
/**
* 上拉加载
*/
onReachBottom() {
// Mock no more data
},
/**
* 跳转详情 (如果有)
*/
handleDetail(e) {
let { target } = e.currentTarget.dataset;
wx.navigateTo({
url:
"/packageWorkspace/pages/attendanceStatis/attendanceDetail/attendanceDetail?info=" +
JSON.stringify(target),
});
},
});
{
"usingComponents": {
"FilterBar": "/components/FilterBar/FilterBar",
"van-icon": "@vant/weapp/icon/index"
},
"navigationBarTitleText": "考勤列表"
}
/* packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList.wxss */
page {
background: #F2F3F7;
}
.list-page {
.top-box {
background: #FFFFFF;
}
.list {
.empty-box {
width: 100%;
height: 24rpx;
}
.item {
margin: 0 24rpx 24rpx;
border-radius: 32rpx;
background: #FFFFFF;
padding: 32rpx;
.item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24rpx;
.name {
font-size: 32rpx;
font-weight: 600;
color: #222222;
}
.ellipsis {
overflow: hidden;
display: -webkit-box !important;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
word-break: break-all;
}
.date-row {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: 20rpx;
.date {
font-size: 28rpx;
color: #333333;
margin-right: 8rpx;
}
}
}
.item-body {
display: flex;
align-items: center;
.stat-item {
display: flex;
align-items: center;
width: 50%;
.label {
font-size: 26rpx;
color: #999999;
margin-right: 32rpx;
}
.value {
font-size: 28rpx;
color: #222222;
font-weight: 500;
}
}
}
}
.list-nothing {
text-align: center;
font-size: 24rpx;
color: #999;
padding: 20rpx 0;
}
}
}
<!--packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList.wxml-->
<view class="list-page">
<view class="top-box">
<FilterBar
searchPlaceholder="员工姓名"
searchKey="name"
filters="{{filterConfig}}"
searchObj="{{searchObj}}"
bind:filterChange="onFilterChange"
></FilterBar>
</view>
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="search"
bindscrolltolower="onReachBottom"
class="list"
style="height:calc(100vh - var(--fontSize184));"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<block wx:if="{{ list.length > 0 }}">
<view class="empty-box"></view>
<!-- <block wx:for="{{ list }}" wx:key="index"> -->
<block wx:for="{{ list }}" wx:for-index="ind" wx:key="ind">
<view class="item" bindtap="handleDetail" data-target="{{item}}">
<view class="item-header">
<view class="name ellipsis">{{item.name}}</view>
<view class="date-row">
<text class="date">{{item.attendanceMonth}}</text>
<van-icon name="arrow" color="#ccc" size="16px" />
</view>
</view>
<view class="item-body">
<view class="stat-item">
<text class="label">应出勤天数</text>
<text class="value">{{item.expectedAttendanceDays}}</text>
</view>
<view class="stat-item">
<text class="label">实际出勤天数</text>
<text class="value">{{item.attendanceDays}}</text>
</view>
</view>
</view>
</block>
<!-- </block> -->
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<empty-data />
</block>
</scroll-view>
</view>
import api from '~/utils/request/request.js'
module.exports = {
// 获取订单审核列表
getOrderApplyList(data) {
return api.post('dj.api.smartcarlife.goodsOrderApplyRecord.page', data)
},
// 获取订单待审核详情
getOrderApplyDetail(data) {
return api.post('dj.api.smartcarlife.goodsOrderApplyRecord.detail.select', data)
},
// 订单申请审核
auditOrderApply(data) {
return api.post('dj.api.smartcarlife.goodsOrderApplyRecord.audit.update', data)
}
}
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/orderApprovalManage/components/approvalPopup/approvalPopup.js
Component({
/**
* 组件的属性列表
*/
properties: {
infoData: {
type: Object
},
show: {
type: Boolean,
observer: function(val) {
this.setData({remark: '', contentLength: 0})
}
}
},
/**
* 组件的初始数据
*/
data: {
contentLength: 0,
remark: ''
},
/**
* 组件的方法列表
*/
methods: {
textAreaInput(e) {
let val = e.detail.value || ""
if (val.length > 200) {
val = val.substring(0, 200)
}
this.setData({
remark: val,
contentLength: val.length
})
},
onConfirm() {
let { infoData, remark } = this.data
if (infoData.type == 2 && !remark) return wx.$util.showToast('请输入驳回备注')
this.triggerEvent('confirm', remark)
},
onCancel() {
this.triggerEvent('cancel')
}
}
})
\ 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/orderApprovalManage/components/approvalPopup/approvalPopup.wxss */
.container {
.label {
margin: 32rpx 0 16rpx;
font-size: 28rpx;
color: #222222;
.requiredLabel {
color: #F24724;
}
}
.textarea-wrap{
position: relative;
.textarea-input {
width: 100%;
height: 550rpx;
border-radius: 28rpx;
background: #f4f5f7;
padding: 24rpx;
box-sizing: border-box;
font-size: 28rpx;
}
.counter {
position: absolute;
right: 16rpx;
bottom: 8rpx;
font-size: 24rpx;
color: #BBBBBB;
}
}
.tips {
color: #999999;
font-size: 26rpx;
margin: 16rpx 0;
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/orderApprovalManage/components/approvalPopup/approvalPopup.wxml-->
<popup show="{{show}}" title="{{infoData.title}}" height="68%" bind:confirm="onConfirm" bind:cancel="onCancel" customPopupSlotStyle="overflow:auto;">
<scroll-view class="container">
<view class="label">{{infoData.label}}<text class="requiredLabel" wx:if="{{infoData.type == 2}}">*</text></view>
<view class="textarea-wrap">
<textarea class="textarea-input" placeholder-style="color:#BEC1C7" placeholder="请输入" maxlength="200" value="{{remark}}" bindinput="textAreaInput" />
<view class="counter">{{contentLength}}/200</view>
</view>
<view wx:if="{{infoData.type == 1}}" class="tips">审核通过后将自动流转至线上运营审核</view>
</scroll-view>
</popup>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/orderApprovalManage/components/goodsOrderItem/goodsOrderItem.js
Component({
/**
* 组件的属性列表
*/
properties: {
title: {
type: String,
value: '商品信息'
},
goodsData: {
type: Object,
value: {
subOrderList: [],
packageGoodsList: []
}
}
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
\ 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/orderApprovalManage/components/goodsOrderItem/goodsOrderItem.wxss */
.flex {
display: flex;
align-items: center;
}
.column {
flex-flow: column;
}
.flex-start {
align-items: flex-start;
}
.just-space {
justify-content: space-between;
}
.section {
border-radius: 32rpx;
background: #ffffff;
margin: 24rpx 0;
padding: 24rpx 32rpx;
.section-title {
font-size: 30rpx;
font-weight: 500;
color: #222222;
margin-bottom: 24rpx;
}
.order-item {
border-radius: 20rpx;
background: #f7f8fa;
padding: 24rpx;
margin-bottom: 24rpx;
color: #222222;
font-size: 26rpx;
&:last-child {
margin-bottom: 0;
}
.just-space {
justify-content: space-between;
}
.package-item {
margin-bottom: 24rpx;
}
.name {
width: 410rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
word-break: break-all;
}
.dot {
display: inline-block;
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background: #347BFF;
margin: 12rpx 12rpx 0 0;
}
.gray {
font-size: 24rpx;
color: #999999;
margin-top: 8rpx;
.tag {
display: inline-block;
width: 56rpx;
height: 28rpx;
line-height: 28rpx;
border-radius: 6rpx;
border: 2rpx solid #f4a08f;
text-align: center;
color: #F24724;
}
}
.item-right {
text-align: right;
}
.pl-24 {
padding-left: 24rpx;
}
.split {
margin: 0 12rpx;
}
.ml-24 {
margin-left: 24rpx;
}
.count {
font-size: 24rpx;
color: #999999;
margin-top: 8rpx;
padding-left: 24rpx;
}
.item {
font-size: 26rpx;
color: #222222;
}
.package-list {
.list-item {
padding: 24rpx;
margin: 0 -24rpx;
border-top: 1px solid #dfe4f2;
&:last-child {
padding-bottom: 0;
}
}
}
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/orderApprovalManage/components/goodsOrderItem/goodsOrderItem.wxml-->
<view class="section">
<view class="section-title">{{ title }}</view>
<!-- 普通商品 -->
<view class="order-item" wx:for="{{ goodsData.subOrderList }}" wx:key="index">
<view class="flex just-space flex-start">
<view class="item-left">
<view class="flex flex-start">
<text class="dot"></text>
<text class="name">{{ item.upgradeGoodsName }}</text>
</view>
<view class="gray pl-24">
<text>原价¥{{ item.totalPrice }}</text>
<text wx:if="{{ item.discountType && item.discountType != 3 && item.discountType != 5 }}" class="split">|</text>
<block wx:if="{{ item.discountType == 1 || item.discountType == 2 }}">
<text wx:if="{{ item.discountType == 1 }}">{{ item.discountValue }}折</text>
<text wx:else>折扣¥{{ item.discountValue }}</text>
</block>
<block wx:if="{{ item.discountType == 4 }}">
<text class="tag">赠品</text>
</block>
</view>
</view>
<view class="item-right">
<view class="price">¥{{ item.finalPrice }}</view>
<view class="gray">
共<text class="split">{{ item.number }}</text>件
</view>
</view>
</view>
</view>
<!-- 套餐商品 -->
<view class="order-item" wx:for="{{ goodsData.packageGoodsList }}" wx:key="index">
<view class="item flex just-space package-item">
<view class="item-left flex flex-start">
<text class="dot"></text>
<text class="name">{{ item.packageName }}</text>
</view>
<view class="item-right">
<text class="price">¥{{ item.packagePrice }}</text>
</view>
</view>
<view class="package-list">
<view
wx:for="{{ item.packageGoodsOrderList }}"
wx:for-item="subItem"
wx:for-index="subIndex"
wx:key="subIndex"
class="list-item flex just-space flex-start"
>
<view class="item-left">
<view class="flex flex-start pl-24">
<text class="name">{{ subItem.upgradeGoodsName }}</text>
</view>
<view class="gray pl-24">
<text>原价¥{{ subItem.totalPrice }}</text>
<text wx:if="{{ subItem.discountType && subItem.discountType != 3 && subItem.discountType != 5 }}" class="split">|</text>
<block wx:if="{{ subItem.discountType == 1 || subItem.discountType == 2 }}">
<text wx:if="{{ subItem.discountType == 1 }}">{{ subItem.discountValue }}折</text>
<text wx:else>折扣¥{{ subItem.discountValue }}</text>
</block>
<block wx:if="{{ subItem.discountType == 4 }}">
<text class="tag">赠品</text>
</block>
</view>
</view>
<view class="item-right">
<view class="price">¥{{ subItem.finalPrice }}</view>
<view class="gray">
共<text class="split">{{ subItem.number }}</text>件
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.js
import api from "~/packageWorkspace/pages/orderApprovalManage/api"
import NP from 'number-precision'
import dayjs from "dayjs"
Page({
/**
* 页面的初始数据
*/
data: {
// 订单信息
orderInfo: {},
statusMap: {
'1': {name: '待审核', tips: '请尽快处理', icon: 'more-o', color: '#FF9D0A'},
'2': {name: '已审核', tips: '订单已流转至线上运营审核', icon: 'passed', color: '#35C376'},
'3': {name: '已审核', tips: '订单已被线上运营审核通过', icon: 'passed', color: '#35C376'},
'4': {name: '已驳回', tips: '订单已驳回', icon: 'warning-o', color: '#666666'}
},
djOrderTypeMap: {
'': '订单类型',
'2': '打折策略',
'5': '组合付款',
'3': '买赠策略',
'4': '冲量活动',
'1': '正常订单'
},
orderForm:[{
label: '订单编号',
key: 'orderCode'
}, {
label: '订单类型',
key: 'djOrderType',
format: true
}, {
label: '总价',
key: 'finalPrice',
unit: '¥'
}, {
label: '提单人',
key: ['sellerName', 'merchantName'],
arr: true
}, {
label: '提单时间',
key: 'applyDate'
}],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
// 可以从 options 中获取订单ID,然后加载详情
const { orderCode } = options
if (orderCode) {
this.loadOrderDetail(orderCode)
}
},
processOrderData(rawOrder) {
if (!rawOrder) return rawOrder
const processed = { ...rawOrder }
// 处理普通商品订单(goodsOrderDTO)
if (processed.goodsOrderDTO) {
processed.goodsOrderDTO = this.addPackagePrice(processed.goodsOrderDTO)
}
// 处理原错误订单(oldGoodsOrderDTO)
if (processed.oldGoodsOrderDTO) {
processed.oldGoodsOrderDTO = this.addPackagePrice(processed.oldGoodsOrderDTO)
}
return processed
},
addPackagePrice(orderDTO) {
const dto = { ...orderDTO }
if (Array.isArray(dto.packageGoodsList)) {
dto.packageGoodsList = dto.packageGoodsList.map(pkg => {
let total = 0
if (Array.isArray(pkg.packageGoodsOrderList)) {
total = pkg.packageGoodsOrderList.reduce((sum, item) => {
// const itemTotal = NP.times(item.finalPrice || 0, item.number || 1)
return NP.plus(sum, item.finalPrice)
}, 0)
}
return {
...pkg,
packagePrice: total
}
})
}
return dto
},
/**
* 加载订单详情
*/
loadOrderDetail(orderCode) {
let { orderForm } = this.data
wx.$util.showLoading()
api.getOrderApplyDetail({orderCode}).then(res => {
wx.$util.hideLoading()
let { code, data, message } = res
if (code == 0) {
// 处理商品信息
const processedData = this.processOrderData(res.data || {})
this.setData({
orderInfo: processedData,
'orderInfo.applyDate': res.data.applyDate ? dayjs(res.data.applyDate).format('YYYY-MM-DD HH:mm:ss') : '-'
})
if (res.data?.oldGoodsOrderDTO) {
this.setData({
'orderInfo.oldOrderCode': res?.data.oldGoodsOrderDTO?.orderCode
}, () => {
const typeAIndex = orderForm.findIndex(f => f.key === 'djOrderType')
orderForm.splice(typeAIndex, 0, {
label: '原错误订单编号',
key: 'oldOrderCode'
})
this.setData({
orderForm
})
})
}
} else {
wx.$util.showToast(message)
}
})
},
/**
* 通过审核
*/
pass() {
this.setData({
showPopup: true,
popupInfo: {
type: '1',
title: '审核通过',
label: '通过备注'
}
})
},
/**
* 驳回
*/
reject() {
this.setData({
showPopup: true,
popupInfo: {
type: '2',
title: '审核驳回',
label: '驳回备注'
}
})
},
/**
* 提交审核结果
*/
handlePopupConfirm(e) {
if (this.data.submitFlag) return
this.setData({
submitFlag: true
})
wx.$util.showLoading()
const { orderInfo, popupInfo } = this.data
api.auditOrderApply({auditResult: popupInfo?.type, orderCode: orderInfo.orderCode, remark: e.detail}).then(res => {
wx.$util.hideLoading()
this.setData({
submitFlag: false
})
let { code, data, message } = res
if (code == 0) {
this.loadOrderDetail(orderInfo.orderCode)
const pages = getCurrentPages()
if (pages?.[pages.length - 2]) { // 从列表进入,审核后返回列表页
wx.navigateBack()
} else { // 企微消息直接进入页面 审核后关闭页面跳转到列表页
wx.reLaunch({url: '/packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList'})
}
} else {
wx.$util.showToast(message)
}
}).catch(() => {
wx.$util.hideLoading()
this.setData({
submitFlag: false
})
})
},
hidePopup() {
this.setData({showPopup: false})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"van-icon": "@vant/weapp/icon/index",
"approval-popup": "../components/approvalPopup/approvalPopup",
"goods-order-item": "../components/goodsOrderItem/goodsOrderItem"
},
"navigationBarTitleText": "审核详情"
}
\ No newline at end of file \ No newline at end of file
page {
background: #F2F3F7;
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
.flex {
display: flex;
align-items: center;
}
.column {
flex-flow: column;
}
.flex-start {
align-items: flex-start;
}
.page-container {
padding: 24rpx;
.content-scroll {
.status-section {
.status-text {
font-size: 36rpx;
font-weight: 500;
color: #222222;
margin-left: 20rpx;
}
.status-tip {
font-size: 26rpx;
color: #999999;
margin-left: 52rpx;
}
}
.section {
border-radius: 32rpx;
background: #ffffff;
margin: 24rpx 0;
padding: 24rpx 32rpx;
.section-title {
font-size: 30rpx;
font-weight: 500;
color: #222222;
margin-bottom: 24rpx;
}
.info-item {
display: flex;
align-items: center;
font-size: 26rpx;
color: #222222;
margin-bottom: 12rpx;
&:last-child {
margin-bottom: 0;
}
.info-label {
width: 184rpx;
margin-right: 32rpx;
color: #999999;
flex-shrink: 0;
}
.info-item {
.text-hide {
max-width: 280rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&.name {
max-width: 120rpx;
}
}
.split {
margin: 0 8rpx;
}
}
}
}
}
.empty-box {
width: 100%;
height: 180rpx;
}
.footerBtn {
position: fixed;
left: 0;
width: 100%;
bottom: 0;
min-height: var(--fontSize100);
background: #FFFFFF;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--fontSize32);
font-weight: 500;
z-index: 99;
padding: 20rpx 32rpx;
.btn {
width: 320rpx;
height: 80rpx;
border-radius: 20rpx;
text-align: center;
line-height: 80rpx;
font-size: 32rpx;
}
.cancel {
height: 76rpx;
line-height: 76rpx;
border: 2rpx solid #2C66F7;
background: #f0f4ff;
color: #2C66F7;
}
.confirm {
color: #ffffff;
font-weight: 500;
height: 80rpx;
line-height: 80rpx;
background: #347BFF;
}
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.wxml-->
<view class="page-container">
<!-- 页面内容 -->
<view class="content-scroll">
<!-- 审核状态标签 -->
<view class="status-section">
<view class="status-badge">
<van-icon name="{{statusMap[orderInfo.status].icon}}" color="{{statusMap[orderInfo.status].color}}"></van-icon>
<text class="status-text">{{statusMap[orderInfo.status].name}}</text>
</view>
<text class="status-tip">{{statusMap[orderInfo.status].tips}}</text>
</view>
<!-- 订单信息 -->
<view class="section">
<view class="section-title">订单信息</view>
<view class="info-item" wx:for="{{orderForm}}" wx:key="index">
<text class="info-label">{{item.label}}</text>
<block wx:if="{{item.format}}">
<view class="info-item">{{djOrderTypeMap[orderInfo[item.key]]}}</view>
</block>
<block wx:elif="{{item.arr}}">
<view class="info-item"><text class="name text-hide">{{orderInfo[item.key[0]]}}</text><text class="split">|</text><text class="text-hide">{{orderInfo[item.key[1]]}}</text></view>
</block>
<block wx:else>
<text class="info-value"><text style="margin-right: 8rpx;" wx:if="{{item.unit}}">{{item.unit}}</text>{{ orderInfo[item.key] }}</text>
</block>
</view>
</view>
<!-- 原错误订单商品信息 -->
<goods-order-item
wx:if="{{orderInfo.oldOrderCode}}"
title="原错误订单商品信息"
goodsData="{{orderInfo.oldGoodsOrderDTO}}"
/>
<!-- 新订单 / 普通订单 -->
<goods-order-item
title="{{orderInfo.oldOrderCode ? '新订单商品信息' : '商品信息'}}"
goodsData="{{orderInfo.goodsOrderDTO}}"
/>
<view class="empty-box"></view>
</view>
<view wx:if="{{orderInfo.status == 1}}" class="footerBtn {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="btn cancel" bindtap="reject">驳回</view>
<view class="btn confirm" bindtap="pass">通过</view>
</view>
</view>
<approval-popup wx:if="{{showPopup}}" show="{{ showPopup }}" infoData="{{popupInfo}}" bindconfirm="handlePopupConfirm" bindcancel="hidePopup"></approval-popup>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.js
import dayjs from 'dayjs'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
import api from '~/packageWorkspace/pages/orderApprovalManage/api'
Page({
/**
* 页面的初始数据
*/
data: {
IMG_URL,
filterObj: {
djOrderType: '',
auditStatus: '1',
date: ''
},
maxDate: new Date().format('yyyy-MM-dd'),
djOrderTypeMap: {
'': '订单类型',
'2': '打折策略',
'5': '组合付款',
'3': '买赠策略',
'4': '冲量活动',
'1': '正常订单'
},
auditStatusMap: {
'': '订单状态',
'1': '待审核',
'2': '已审核',
'3': '已驳回'
},
listAuditStatusMap: {
'1': {name: '待审核', color: '#FF9D0A', background: '#ff9d0a1a'},
'2': {name: '已审核', color: '#35C376', background: '#35C3761a'}, // 线上运营待审核,区域运营已审核过显示为已审核
'3': {name: '已审核', color: '#35C376', background: '#35C3761a'},
'4': {name: '已驳回', color: '#777777', background: '#7777771a'}
},
djOrderTypeList: [{
name: '全部',
value: ''
}, {
name: '打折策略',
value: '2'
}, {
name: '组合付款',
value: '5'
}, {
name: '买赠策略',
value: '3'
}, {
name: '冲量活动',
value: '4'
}, {
name: '正常订单',
value: '1'
}],
auditStatusList: [{
name: '全部',
value: ''
}, {
name: '待审核',
value: '1'
}, {
name: '已审核',
value: '2'
}, {
name: '已驳回',
value: '3'
}],
list: [],
errorOrderItems: [{
label: '订单类型',
key: 'djOrderType',
format: true
}, {
label: '原错误订单编号',
key: 'associationOrderCode'
}, {
label: '提单人',
key: 'sellerName'
}, {
label: '提单时间',
key: 'applyDate'
}],
orderItems: [{
label: '订单类型',
key: 'djOrderType',
format: true
}, {
label: '提单人',
key: 'sellerName'
}, {
label: '提单时间',
key: 'applyDate'
}]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
this.search()
},
input(e) {
let { value } = e.detail
this.setData({sellerName: value})
},
clear() {
this.setData({sellerName: ''})
this.search()
},
search() {
this.setData({
list: [],
pageNum: 1,
flag: false,
nothing: false,
})
this.getList()
},
getList() {
let { pageNum, nothing, filterObj, sellerName, endStr, startStr } = this.data
let userInfo = wx.$util.getUserInfo()
// 未获取到再获取一次
if ((userInfo?.sceneType) ?? '' === '') userInfo = wx.$util.getUserInfo()
if (nothing) return
wx.$util.showLoading()
let params = {
sellerName,
djOrderType: filterObj.djOrderType,
auditStatus: filterObj.auditStatus,
pageNum,
pageSize: 10,
applyStartDateStr: startStr,
applyEndDateStr: endStr,
sceneType: userInfo?.sceneType
}
api.getOrderApplyList(params).then(res => {
wx.$util.hideLoading()
let total = 0
let list = []
let {
code,
data,
message
} = res
data?.list?.forEach(val => {
val.applyDate = dayjs(val.applyDate).format('YYYY-MM-DD HH:mm:ss')
})
if (code == 0) {
list = data.list
total = data.total
} else {
wx.$util.showToast(message)
}
if (total != 0) {
this.setData({
[`list[${pageNum - 1}]`]: list
})
}
this.setData({
total,
flag: true,
triggered: false,
pageNum: pageNum + 1,
nothing: pageNum == data?.pages
})
})
},
scrollonReachBottom() {
this.getList()
},
handleDetail(e) {
let { target } = e.currentTarget.dataset
wx.navigateTo({
url: `/packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail?orderCode=${target.orderCode}`,
})
},
rangeSelect(e) {
let {
date: { start, end }
} = e.detail
this.setData({
['filterObj.date']: `${start} 至 ${end}`,
startStr: start,
endStr: end
}, () => {
this.search()
})
},
// 重置筛选条件
handleFilterReset() {
this.setData({
filterObj: {
djOrderType: '',
auditStatus: '',
date: ''
},
startStr: '',
endStr: ''
}, () => {
this.search()
})
},
// 选择订单类型
handleOrderTypeFilter() {
let {
filterObj,
djOrderTypeList
} = this.data
this.setData({
showSelectPopup: true,
selectOptions: djOrderTypeList,
selectTitle: '订单类型',
selectMultiple: false,
selectValue: [filterObj.djOrderType],
selectType: 'djOrderType'
})
},
// 选择处理状态
handleOrderStatusFilter() {
let {
filterObj,
auditStatusList
} = this.data
this.setData({
showSelectPopup: true,
selectOptions: auditStatusList,
selectTitle: '订单状态',
selectMultiple: false,
selectValue: [filterObj.auditStatus],
selectType: 'auditStatus'
})
},
handlePopupConfirm(e) {
let { values } = e.detail
let { selectType } = this.data
this.setData({
[`filterObj.${selectType}`]: values[0]
}, () => {
this.search()
})
this.hideSelectPopup()
},
hideSelectPopup() {
this.setData({
showSelectPopup: false
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"select-popup": "/packageWorkspace/components/selectPopup/selectPopup"
},
"navigationBarTitleText": "订单审核"
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxss */
page {
background: #F2F3F7;
}
.list-page {
.flex {
display: flex;
align-items: center;
}
.top-box {
background: #FFFFFF;
padding: 16rpx 24rpx 24rpx;
.search-input {
background: #F7F8FA;
border-radius: var(--fontSize72);
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: #F7F8FA;
padding: 0 16rpx 0 24rpx;
font-size: 26rpx;
color: #666666;
margin-right: 16rpx;
&.active {
color: #2C66F7;
}
.hide-text {
max-width: 170rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
text {
line-height: 40rpx;
}
image {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
}
}
.reset-btn {
color: #222222;
font-size: 26rpx;
}
}
}
.list {
.empty-box {
width: 100%;
height: 24rpx;
}
.item {
margin: 0 24rpx 24rpx;
border-radius: 32rpx;
background: #FFFFFF;
padding: 24rpx 32rpx;
.item-top {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 -24rpx;
padding: 0 24rpx 24rpx;
font-size: 26rpx;
font-weight: 500;
color: #666666;
border-bottom: 2rpx dashed #F0F1F5;
.code-text {
color: #222222;
margin-left: 16rpx;
}
.status {
height: 48rpx;
line-height: 48rpx;
border-radius: 8rpx;
padding: 0 12rpx;
}
}
.order-list {
padding: 24rpx 0;
.order {
margin-bottom: 12rpx;
font-size: 26rpx;
color: #222222;
&:last-child {
margin-bottom: 0;
}
.order-label {
width: 184rpx;
margin-right: 32rpx;
color: #999999;
}
}
}
.btn-box {
justify-content: space-between;
font-weight: 500;
.label {
font-size: 26rpx;
color: #666666;
margin-right: 16rpx;
}
.unit {
margin-right: 8rpx;
}
.btn {
font-weight: 400;
width: 168rpx;
height: 64rpx;
line-height: 64rpx;
text-align: center;
border-radius: 16rpx;
font-size: 26rpx;
color: #2C66F7;
background: #2c66f71a;
&.primary {
color: #FFFFFF;
background: #2c66f7;
}
}
}
}
}
.list-nothing {
padding: 0 0 50rpx;
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxml-->
<view class="list-page">
<view class="top-box">
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="员工姓名" class="input" value="{{ sellerName }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<block wx:if="{{ sellerName }}">
<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.djOrderType ? 'active': ''}}" bindtap="handleOrderTypeFilter">
<text>{{djOrderTypeMap[filterObj.djOrderType]}}</text><image src="{{IMG_URL}}{{filterObj.djOrderType ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
<view class="filter-item flex {{filterObj.auditStatus ? 'active': ''}}" bindtap="handleOrderStatusFilter">
<text>{{auditStatusMap[filterObj.auditStatus]}}</text><image src="{{IMG_URL}}{{filterObj.auditStatus ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
<calendar id="calender" class="calendar" allowSameDay shortcut bindselect="rangeSelect" calenderColor="#347BFF" vertical dateType='range' minDate="2024-01-01" maxDate="{{ maxDate }}" isComponents>
<view class="filter-item flex {{filterObj.date ? 'active': ''}}">
<text class="hide-text">{{filterObj.date || '提单日期'}}</text>
<image src="{{IMG_URL}}{{filterObj.date ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
</calendar>
</view>
<view class="reset-btn" bindtap="handleFilterReset">重置</view>
</view>
</view>
<scroll-view scroll-y enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom"
class="list"
style="height:calc(100vh - var(--fontSize184));"
refresher-threshold="104"
refresher-triggered="{{ triggered }}">
<block wx:if="{{ list.length > 0 }}">
<view class="empty-box"></view>
<block wx:for="{{ list }}" wx:key="index">
<block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind">
<view
data-ind="{{ ind }}"
data-index="{{ index }}"
>
<view
class="item content"
data-ind="{{ ind }}"
data-index="{{ index }}"
data-item="{{ li }}"
>
<view class="item-top">
<view class="code">
<text>订单编号</text>
<text class="code-text">{{li.orderCode}}</text>
</view>
<view class="status text-center" style="color:{{ listAuditStatusMap[li.status].color }};background-color:{{listAuditStatusMap[li.status].background }};">
{{listAuditStatusMap[li.status].name }}
</view>
</view>
<view class="order-list">
<block wx:for="{{li.associationOrderCode == 1 ? errorOrderItems : orderItems }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
<view class="order flex">
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block wx:if="{{ i.format }}">
<text>{{djOrderTypeMap[li[i.key]]}}</text>
</block>
<block wx:else>{{li[i.key] || ''}}</block>
</view>
</view>
</block>
</view>
<view class="btn-box flex">
<view><text class="label">总价</text><text class="unit">¥</text><text>{{li.finalPrice}}</text></view>
<view bindtap="handleDetail" data-target="{{li}}" class="btn {{li.status == 1 ? 'primary' : ''}}">{{li.status == 1 ? '审核' : '查看'}}</view>
</view>
</view>
</view>
</block>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<empty-data />
</block>
</scroll-view>
</view>
<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
import api from '~/utils/request/request.js'
const service = '/rop-dj-staff-miniprogram/router'
module.exports = {
// 获取绩效统计卡片
getPerformanceStatistics(data) {
return api.post('dj.staff.api.perf.appraisal.statistics.card', data, [], service)
},
// 获取月份绩效规则
getPerformanceRule(data) {
return api.post('dj.staff.api.perf.rule.config.get', data, [], service)
},
// 获取绩效考核列表
getPerformanceList(data) {
return api.post('dj.staff.api.perf.appraisal.list', data, [], service)
},
// 自动检测规则结果
autoDetectResult(data) {
return api.post('dj.staff.api.perf.appraisal.auto.detect.result', data, [], service)
},
// 绩效详情
performanceDetail(data) {
return api.post('dj.staff.api.perf.appraisal.detail', data, [], service)
},
// 单个提交规则评分
singleSubmit(data) {
return api.post('dj.staff.api.perf.appraisal.single.submit', data, [], service)
},
// 批量提交规则评分
batchSubmit(data) {
return api.post('dj.staff.api.perf.appraisal.batch.submit', data, [], service)
},
// 获取员工列表(过滤提交过两次的员工)
getStaffListAPI(data) {
return api.post('dj.staff.api.perf.staff.list', data, [], service)
},
// 获取批量员工的绩效详情数据
getBatchPerformanceInfo(data) {
return api.post('dj.staff.api.perf.appraisal.batch.detail', data, [], service)
},
// 获取算工资的时间节点
getPerformanceTimeCycle(data) {
return api.post(
'dj.staff.api.performance.time.cycle.list',
data,
[],
service
)
},
}
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"select-popup": "/packageWorkspace/components/selectPopup/selectPopup",
"help-popup": "../components/helpPopup/helpPopup"
},
"navigationBarTitleText": "批量操作"
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/performanceRating/batchOperation/batchOperation.wxss */
page {
background: #F2F3F7;
}
.blue {
color: #347BFF;
}
.page-container {
padding: 12rpx 24rpx;
.flex {
display: flex;
align-items: center;
}
.just-space {
justify-content: space-between;
}
.mar-l32 {
margin-left: 32rpx;
}
.content-box {
background: #FFFFFF;
border-radius: 32rpx;
padding: 32rpx 24rpx;
font-size: 28rpx;
margin-bottom: 24rpx;
.content-title {
font-weight: 500;
image {
width: 32rpx;
height: 32rpx;
}
.title-icon {
width: 6rpx;
height: 32rpx;
margin-right: 16rpx;
}
.nums {
font-weight: 400;
margin-right: 8rpx;
}
}
.tag-box {
margin-top: 32rpx;
display: flex;
flex-wrap: wrap;
gap: 8rpx;
.tag-item {
color: #2C66F7;
font-size: 24rpx;
font-weight: 500;
height: 52rpx;
padding: 0 16rpx;
border-radius: 4px;
background: #347bff1a;
max-width: calc(50% - 8rpx);
margin-bottom: 8rpx;
flex-wrap: nowrap;
.text-hidex {
flex-shrink: 0;
}
.level {
flex-shrink: 0;
.split {
margin: 0 6rpx;
}
}
}
}
.sub-title {
margin: 32rpx 0 16rpx 0;
font-weight: 500;
}
.radio-box {
.radio-item {
margin: 16rpx 0 24rpx;
padding: 10rpx 0;
&:last-child {
margin-bottom: 0;
}
.radio {
width: 28rpx;
height: 28rpx;
box-sizing: border-box;
padding: 4rpx;
flex-shrink: 0;
margin-right: 14rpx;
border-radius: 50%;
border: 2rpx solid #D0D2D6;
}
image {
width: 32rpx;
height: 32rpx;
margin-right: 10rpx;
}
}
}
.salary-box {
margin-top: 16rpx;
.salary-item {
flex: 1;
.label {
color: #999999;
font-size: 24rpx;
margin-bottom: 4rpx;
}
.value {
color: #222222;
font-size: 26rpx;
}
}
}
.manual-box {
margin-top: 16rpx;
border-radius: 20rpx;
background: #f7f8fa;
padding: 24rpx 20rpx;
font-size: 26rpx;
color: #222222;
.dot {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
margin-right: 16rpx;
background: #347BFF;
}
.select {
margin: 12rpx 0 12rpx 28rpx;
height: 72rpx;
border-radius: 16rpx;
background: #FFFFFF;
border: 2rpx solid #EFF0F2;
color: #222222;
font-size: 28rpx;
font-weight: 500;
padding: 0 20rpx;
&.gary {
color: #999EA8;
font-weight: 400;
}
image {
width: 32rpx;
height: 32rpx;
}
}
.rate {
margin-left: 28rpx;
}
}
.input-content {
margin: 16rpx 0;
font-size: 28rpx;
color: #222222;
image {
width: 28rpx;
height: 28rpx;
flex-shrink: 0;
margin: 0 16rpx 0 8rpx;
}
.input-box {
width: 196rpx;
height: 72rpx;
line-height: 72rpx;
box-sizing: border-box;
padding: 0 20rpx;
position: relative;
border-radius: 16rpx;
border: 2rpx solid #eff0f2;
.input {
height: 72rpx;
line-height: 72rpx;
width: 100%;
font-weight: 700;
}
}
}
.input-tips {
font-size: 24rpx;
color: #888888;
line-height: 1.5;
}
}
.btn-box {
padding: 32rpx 40rpx 68rpx;
font-size: 32rpx;
.btn {
width: 100%;
height: 88rpx;
border-radius: 24rpx;
margin-bottom: 20rpx;
text-align: center;
line-height: 88rpx;
background: #FFFFFF;
&.confirm {
background: #2C66F7;
color: #FFFFFF;
font-weight: 500;
}
}
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/performanceRating/batchOperation/batchOperation.wxml-->
<view class="page-container">
<view class="content-box">
<view class="content-title flex just-space">
<view class="flex">
<image class="title-icon" src="{{IMG_URL}}title_icon.png" mode=""/>
<text>当前选中</text>
</view>
<view class="flex" bindtap="handleSelectStaff">
<view class="nums">{{selectedStaffList.length}}位员工</view>
<image src="{{IMG_URL}}arrow-left.png" mode=""/>
</view>
</view>
<view class="tag-box" wx:if="{{selectedStaffList.length}}">
<block wx:for="{{selectedStaffList}}" wx:key="index">
<view class="tag-item flex"><view class="text-hide">{{item.name}}</view><view class="level" wx:if="{{item.levelCode}}"><text class="split">·</text>{{item.levelCode}}级</view></view>
</block>
</view>
</view>
<view class="content-box">
<view class="content-title flex">
<image class="title-icon" src="{{IMG_URL}}title_icon.png" mode=""/>
<text>批量操作类型</text>
</view>
<view class="sub-title">批量设置绩效等级</view>
<view class="radio-box">
<view class="radio-item flex" bindtap="changeRadio" data-value="1">
<image wx:if="{{batchConfigType == 1}}" src="{{IMG_URL}}radio-checked.png" mode=""/>
<view wx:else class="radio"></view>
<view class="label">统一设置相同等级</view>
</view>
<view class="radio-item flex" bindtap="changeRadio" data-value="2">
<image wx:if="{{batchConfigType == 2}}" src="{{IMG_URL}}radio-checked.png" mode=""/>
<view wx:else class="radio"></view>
<view class="label">手工单个调整评级</view>
</view>
</view>
</view>
<block wx:if="{{batchConfigType == 1}}">
<view class="content-box">
<view class="content-title flex">
<image class="title-icon" src="{{IMG_URL}}title_icon.png" mode=""/>
<text>统一评等级</text>
</view>
<view class="manual-box">
<view class="flex">
<view class="dot"></view>
<view>手动评分</view>
</view>
<view class="select flex just-space {{batchInfo.manualGradeCode ? '' : 'gary'}}" bindtap="selectLevelCode" data-batch="{{true}}">
{{batchInfo.manualGradeCode || '请选择等级'}}
<image src="{{IMG_URL}}expand_icon.png" mode=""/>
</view>
<view class="blue rate">
<text>评分:</text>
<text>{{batchInfo.manualScoreSymbolValue || 0}}分</text>
<text class="mar-l32">系数:</text>
<text>{{batchInfo.manualRewardCoefficient || '0'}}</text>
</view>
</view>
<view class="input-content flex">
<view>手动维护最终绩效金额</view>
<image src="{{IMG_URL}}caption-icon.png" class="help-icon" bindtap="handleHelpPopup" mode=""/>
<view class="input-box flex">
<input class='input' placeholder="请输入" value="{{batchInfo.manualFinalPerformanceAmount}}" placeholder-style="color: #999EA8;" bindinput="priceInput" type="digit"/>
<view>元</view>
</view>
</view>
<view class="input-tips">根据系数算出绩效,如觉得绩效金额不合适,可<text class="blue">手动输入</text>最终绩效金额</view>
</view>
</block>
<block wx:else>
<view class="content-box" wx:for="{{batchSingleList}}" wx:key="index">
<view class="content-title flex">
<image class="title-icon" src="{{IMG_URL}}note-icon.png" mode=""/>
<text>{{item.name}}</text><text wx:if="{{item.gradeCode}}">·{{item.gradeCode}}级</text>
</view>
<view class="salary-box flex">
<view class="salary-item">
<view class="label">绩效工资</view>
<view class="value">{{item.performanceSalary}}</view>
</view>
<view class="salary-item">
<view class="label">底薪</view>
<view class="value">{{item.baseSalary}}</view>
</view>
<view class="salary-item">
<view class="label">基本工资</view>
<view class="value">{{item.basicSalary}}</view>
</view>
</view>
<view class="manual-box">
<view class="flex">
<view class="dot"></view>
<view>手动评分</view>
</view>
<view class="select flex just-space {{item.manualGradeCode ? '' : 'gary'}}" bindtap="selectLevelCode" data-index="{{index}}">
{{item.manualGradeCode || '请选择等级'}}
<image src="{{IMG_URL}}expand_icon.png" mode=""/>
</view>
<view class="blue rate">
<text>评分:</text>
<text>{{item.manualScoreSymbolValue || 0}}分</text>
<text class="mar-l32">系数:</text>
<text>{{item.manualRewardCoefficient || '0'}}</text>
</view>
</view>
<view class="input-content flex">
<view>手动维护最终绩效金额</view>
<image src="{{IMG_URL}}caption-icon.png" class="help-icon" bindtap="handleHelpPopup" mode=""/>
<view class="input-box flex">
<input class='input' placeholder="请输入" value="{{item.manualFinalPerformanceAmount}}" data-index="{{index}}" placeholder-style="color: #999EA8;font-weight: 400;" bindinput="priceInput" type="digit"/>
<view>元</view>
</view>
</view>
<view class="input-tips">根据系数算出绩效,如觉得绩效金额不合适,可<text class="blue">手动输入</text>最终绩效金额</view>
</view>
</block>
<view class="btn-box">
<view class="btn confirm" bindtap="handleConfirm">提交</view>
</view>
</view>
<select-popup show="{{ showSelectPopup }}" height="{{selectType == 'staff' ? '75%' : '50%'}}" allowSearch="{{selectMultiple}}" options="{{ selectOptions }}" valueKey="{{selectType == 'staff' ? 'mobilePhone' : 'value'}}" multiple="{{ selectMultiple }}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" max="{{20}}" bindmaxtips="handleMaxTips" title="{{ selectTitle }}" bindcancel="hideSelectPopup" customIsTab="{{ true }}"></select-popup>
<help-popup show="{{showHelpPopup}}" />
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/performanceRating/components/helpPopup/helpPopup.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
Component({
/**
* 组件的属性列表
*/
properties: {
show: {
type: Boolean, //目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型)
value: false, // 默认值
observer(newVal, oldVal) {
if (newVal) {
this.createMaskAnimate(true)
} else {
this.createMaskAnimate(false)
}
}
},
},
/**
* 组件的初始数据
*/
data: {
IMG_URL,
helpContents: [{
title: '底薪',
value: '底薪=工资标准 / 应出勤天数×实际出勤天数×70%'
}, {
title: '绩效工资',
value: '绩效工资=工资标准 / 应出勤天数 × 实际出勤天数 × 30% × 绩效系数(如有手动维护绩效工资,则取最终手工维护的绩效金额)'
}, {
title: '基本工资',
value: '基本工资=底薪+绩效工资'
}, {
title: '手动维护最终绩效金额',
value: '手动维护最终绩效金额字段大于等级字段'
}],
maskAnimate: [],
frameAnimate: [],
},
/**
* 组件的方法列表
*/
methods: {
close() {
this.setData({
show: !this.data.show
})
},
//动画-遮罩层淡入淡出
createMaskAnimate(currentStatu) {
if (currentStatu) {
this.setData({
_show: currentStatu
})
this.createframeAnimate(true)
} else {
setTimeout(() => {
this.setData({
_show: false
})
}, 300)
this.createframeAnimate(false)
}
let maskAnimate = wx.createAnimation({
duration: 300,
timingFunction: 'ease-in-out',
delay: 0
})
this.maskAnimate = maskAnimate
maskAnimate.opacity(currentStatu ? 0.7 : 0).step()
setTimeout(() => {
this.setData({
maskAnimate: maskAnimate.export()
})
}, 50)
},
//动画-弹层内容Q弹
createframeAnimate(currentStatu) {
// return
let frameAnimate = wx.createAnimation({
duration: 300,
timingFunction: 'ease',
delay: 0
})
this.frameAnimate = frameAnimate
frameAnimate
.translate('-50%', '-50%')
.opacity(currentStatu ? 0.5 : 1)
.step()
// .scale(currentStatu ? 1.05 : 1)
this.setData({
frameAnimate: frameAnimate.export()
})
setTimeout(() => {
// 执行第二组动画
frameAnimate
.opacity(currentStatu ? 1 : 0)
.scale(currentStatu ? 1 : 0.9)
.step()
// 给数据对象储存的第一组动画,更替为执行完第二组动画的动画对象
this.setData({
frameAnimate: frameAnimate.export()
})
}, 150)
}
}
})
\ 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/helpPopup/helpPopup.wxss */
.popV {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
width: 100vw;
height: 100vh;
}
.popV-mask {
position: absolute;
width: 100%;
height: 100%;
background: rgba(0, 0, 0);
opacity: 0;
display: block;
}
.popV-content {
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%);
transform: translate(-50%);
width: var(--fontSize640);
box-sizing: border-box;
background: #FFFFFF;
border-radius: var(--fontSize32);
z-index: 1000;
display: flex;
flex-direction: column;
overflow: hidden;
opacity: 1;
.gradient {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 360rpx;
z-index: -1;
background: linear-gradient(to bottom, #DCE8FA, #FFFFFF);
}
.container {
padding: 48rpx;
.title {
text-align: center;
font-weight: 500;
font-size: 36rpx;
margin-bottom: 36rpx;
}
.content {
font-size: 28rpx;
color: #222222;
.cont-title {
display: flex;
align-items: center;
font-weight: 500;
margin: 16rpx 0;
image {
width: 6rpx;
height: 24rpx;
margin-right: 16rpx;
}
}
.cont-value {
font-size: 26rpx;
color: #666666;
}
}
}
.btn {
height: 96rpx;
line-height: 96rpx;
text-align: center;
border-top: 2rpx solid #F6F6F7;
color: #222222;
font-size: 32rpx;
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/performanceRating/components/helpPopup/helpPopup.wxml-->
<view wx:if="{{ _show }}" class="popV" catchtouchmove="move">
<view class="popV-mask" bindtap="selectMask" animation="{{ maskAnimate }}" />
<view class="popV-content" animation="{{ frameAnimate }}">
<view class="gradient"></view>
<view class="container">
<view class="title">帮助</view>
<view class="content">
<view wx:for="{{helpContents}}" wx:key="index">
<view class="cont-title">
<image src="{{IMG_URL}}title_icon.png" mode=""/>
<view class="label">{{item.title}}</view>
</view>
<view class="cont-value">{{item.value}}</view>
</view>
</view>
</view>
<view class="btn" bindtap="close">我知道了</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/performanceRating/components/levelRate/levelRate.js
import { starCountObj, levelColorObj } from '~/packageWorkspace/pages/performanceRating/constant'
Component({
/**
* 组件的属性列表
*/
properties: {
info: {
type: Object
},
hideStar: {
type: Boolean
}
},
/**
* 组件的初始数据
*/
data: {
colorObj: levelColorObj,
starCountObj: starCountObj
},
/**
* 组件的方法列表
*/
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;
.level-item {
display: flex;
align-items: center;
justify-content: center;
width: 232rpx;
height: 60rpx;
border-radius: 40rpx;
margin-right: 24rpx;
color: #222222;
font-weight: 500;
font-size: 28rpx;
}
.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: {{colorObj[info.levelCode]}};">{{info.levelCode}}级:{{info.scoreSymbolValue}}分</view>
<block wx:if="{{!hideStar}}">
<view class="rate-box">
<van-rate readonly value="{{ starCountObj[info.levelCode] }}" count="{{6}}" void-icon="star" size="16px" void-color="#DEE0E3" color="#FFB742" />
</view>
<view class="coeff">系数:{{info.rewardCoefficient}}</view>
</block>
</view>
export const levelColorObj = {
'S': '#E9E0FA',
'A': '#D8F4D4',
'B+': '#D6F5EF',
'B': '#E6EFFF',
'B-': '#D5F1FA',
'C': '#F7EFCD',
'D': '#F9E0E0'
}
export const starCountObj = {
'S': 6,
'A': 5,
'B+': 4,
'B': 3,
'B-': 2,
'C': 1,
'D': 0
}
export const levelMap = {
'': '绩效',
'S': 'S',
'A': 'A',
'B+': 'B+',
'B': 'B',
'B-': 'B-',
'C': 'C',
'D': 'D'
}
export const 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'
}]
export const statusMap = {
'': {name: '处理状态'},
'0': {name: '未处理', color: '#FF9D0A', background: '#ff9d0a1a'},
'1': {name: '已处理', color: '#35C376', background: '#35c3761a'}
}
export const statusList = [{
name: '已处理',
value: '1'
}, {
name: '未处理',
value: '0'
}]
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/performanceRating/rateDetail/rateDetail.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
import api from '~/packageWorkspace/pages/performanceRating/api'
import dayjs from 'dayjs'
Page({
/**
* 页面的初始数据
*/
data: {
IMG_URL,
navBarHeight: 0,
},
navbarReady(e) {
let navBarHeight = e.detail.height
this.setData({
navBarHeight
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.setData({
pageQuery: options,
currentMobile: options.mobilePhone
}, () => {
// 获取绩效评分详情
this.getDetail(options.mobilePhone)
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
getDetail(mobilePhone) {
let { pageQuery } = this.data
api.performanceDetail({queryMonth: pageQuery.queryMonth, mobilePhone}).then(res => {
let {code, message, data} = res
if (code == 0) {
this.setData({
info: {
...data,
entryDate: data?.entryDate ? dayjs(data?.entryDate).format('YYYY-MM-DD') : ''
},
performanceInfo: {
levelCode: data?.adoptType == 1 ? data?.autoGradeCode : data?.adoptType == 2 ? data?.manualGradeCode : '',
rewardCoefficient: data?.adoptType == 1 ? `${data?.autoRewardCoefficient}` : data?.adoptType == 2 ? `${data?.manualRewardCoefficient}` : '',
scoreSymbolValue: data?.adoptType == 1 ? data?.autoScoreSymbolValue : data?.adoptType == 2 ? data?.manualScoreSymbolValue : ''
}
})
} else {
wx.$util.showToast(message)
}
})
},
handleHelpPopup() {
this.setData({
showHelpPopup: true
})
},
back() {
wx.navigateBack()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"level-rate": "../components/levelRate/levelRate",
"help-popup": "../components/helpPopup/helpPopup"
},
"navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/performanceRating/rateDetail/rateDetail.wxss */
page {
background: #F2F3F7;
}
.title {
max-length: 360rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.flex {
display: flex;
align-items: center;
}
.just-space {
justify-content: space-between;
}
.mar-t32 {
margin-top: 32rpx;
}
.mar-l32 {
margin-left: 32rpx;
}
.container {
padding: 12rpx 24rpx;
.blue {
color: #347BFF;
}
.help-icon {
width: 28rpx;
height: 28rpx;
flex-shrink: 0;
margin-left: 8rpx;
}
.content-box {
border-radius: 32rpx;
background: #ffffff;
padding: 24rpx 28rpx;
margin-bottom: 24rpx;
color: #222222;
font-size: 26rpx;
.content-title {
font-size: 28rpx;
color: #222222;
font-weight: 500;
margin-bottom: 16rpx;
.title-icon {
width: 6rpx;
height: 32rpx;
margin-right: 16rpx;
}
image {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
margin-right: 8rpx;
}
.left {
width: 6rpx;
height: 32rpx;
border-radius: 6rpx;
overflow: hidden;
background: #347bff33;
position: relative;
margin-right: 16rpx;
.left-top {
width: 6rpx;
height: 16rpx;
border-radius: 6rpx;
overflow: hidden;
background: linear-gradient(180deg, #2c66f7 0%, #389fff 100%);
position: absolute;
top: 0;
left: 0;
}
}
.tips {
margin-left: 16rpx;
color: #888888;
font-size: 22rpx;
}
}
.label {
font-weight: 500;
}
.unit {
margin: 0 4rpx;
font-size: 28rpx;
font-weight: 500;
&.font-s20{
font-size: 40rpx;
}
}
.price-box {
font-weight: 500;
color: #222222;
.left,.right {
flex: 1;
}
.price {
margin: 16rpx 0;
font-size: 40rpx;
font-family: "numberBold";
}
}
.fancy-divider {
position: relative;
width: 100%;
height: 1px;
background: #347bff80;
&::before {
content: '';
position: absolute;
left: 30rpx;
top: -10rpx;
width: 16rpx;
height: 16rpx;
background-color: #FFFFFF;
border: 2rpx solid #347bff80;
border-color: transparent transparent #347bff80 #347bff80;
transform: rotate(-45deg);
}
}
.base-box {
margin-top: 24rpx;
.comput-price {
margin-top: 16rpx;
font-size: 40rpx;
font-family: "numberBold";
}
}
.gross-price {
text-align: center;
font-family: "numberBold";
font-size: 68rpx;
}
}
.top {
display: flex;
align-items: center;
justify-content: space-between;
padding: 28rpx 32rpx;
.name {
font-size: 30rpx;
color: #222222;
font-weight: 500;
text {
font-size: 22rpx;
color: #999999;
font-weight: 400;
margin-left: 16rpx;
}
}
.merchant {
margin-top: 10rpx;
font-size: 26rpx;
color: #666666;
}
.bg-image {
margin: -24rpx 0;
width: 186rpx;
height: 138rpx;
}
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/performanceRating/rateDetail/rateDetail.wxml-->
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back">
<view class="title">{{info.name}}绩效评分详情</view>
</navigation-bar>
<view class="container" style="margin-top: {{navBarHeight}}px;">
<view class="content-box top">
<view>
<view class="name">{{info.name}}<text>{{info.entryDate || '-'}}入职</text></view>
<view class="merchant">{{info.merchantName || '-'}}</view>
</view>
<image class="bg-image" src="{{IMG_URL}}rate_bg_image.png" mode=""/>
</view>
<view class="content-box">
<view class="content-title flex">
<image class="title-icon" src="{{IMG_URL}}title_icon.png" mode=""/>
<view>绩效评分</view>
</view>
<level-rate info="{{performanceInfo}}" />
</view>
<view class="content-box">
<view class="content-title flex">
<image class="title-icon" src="{{IMG_URL}}title_icon.png" mode=""/>
<view>工资</view>
<view class="tips">当前收入是预估的,可在收到工资条后发起考勤等申诉</view>
</view>
<view class="flex price-box">
<view class="left">
<view class="flex"><view class="label">绩效工资</view><image class="help-icon" bindtap="handleHelpPopup" src="{{IMG_URL}}caption-icon.png" mode=""/></view>
<view class="price blue">{{info.performanceSalary}}<text class="unit blue">元</text></view>
</view>
<view class="right">
<view class="flex"><view class="label">底薪</view><image class="help-icon" bindtap="handleHelpPopup" src="{{IMG_URL}}caption-icon.png" mode=""/></view>
<view class="price blue">{{info.baseSalary}}<text class="unit blue">元</text></view>
</view>
</view>
<view class="fancy-divider"></view>
<view class="base-box">
<view class="flex"><view class="label">基本工资</view><image class="help-icon" bindtap="handleHelpPopup" src="{{IMG_URL}}caption-icon.png" mode=""/></view>
<view class="comput-price">{{info.performanceSalary}}<text class="unit font-s20">+</text>{{info.baseSalary}}<text class="unit font-s20">=</text><text class="blue">{{info.basicSalary}}</text><text class="blue unit">元</text></view>
</view>
</view>
<view class="content-box">
<view class="content-title flex">
<image class="title-icon" src="{{IMG_URL}}title_icon.png" mode=""/>
<view>合计应发工资</view>
<view class="tips">工资条上的金额</view>
</view>
<block wx:if="{{info.totalGrossSalary}}">
<view class="gross-price blue">{{info.totalGrossSalary}}<text class="unit">元</text></view>
</block>
<block wx:else>
<empty-data emptyText="总部运营-薪酬专员 未出工资条" />
</block>
</view>
</view>
<help-popup show="{{showHelpPopup}}" />
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"select-popup": "/packageWorkspace/components/selectPopup/selectPopup",
"level-rate": "../components/levelRate/levelRate",
"help-popup": "../components/helpPopup/helpPopup"
},
"navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/performanceRating/rateDetail/rateDetail.wxss */
page {
background: #F2F3F7;
}
.title {
max-length: 360rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.flex {
display: flex;
align-items: center;
}
.just-space {
justify-content: space-between;
}
.mar-t32 {
margin-top: 32rpx;
}
.mar-l32 {
margin-left: 32rpx;
}
.container {
padding: 12rpx 24rpx;
.blue {
color: #347BFF;
}
.help-icon {
width: 28rpx;
height: 28rpx;
flex-shrink: 0;
margin-left: 8rpx;
}
.content-box {
border-radius: 32rpx;
background: #ffffff;
padding: 24rpx 28rpx;
margin-bottom: 24rpx;
color: #222222;
font-size: 26rpx;
.content-title {
font-size: 28rpx;
color: #222222;
font-weight: 500;
margin-bottom: 16rpx;
.title-icon {
width: 6rpx;
height: 32rpx;
margin-right: 16rpx;
}
image {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
margin-right: 8rpx;
}
.left {
width: 6rpx;
height: 32rpx;
border-radius: 6rpx;
overflow: hidden;
background: #347bff33;
position: relative;
margin-right: 16rpx;
.left-top {
width: 6rpx;
height: 16rpx;
border-radius: 6rpx;
overflow: hidden;
background: linear-gradient(180deg, #2c66f7 0%, #389fff 100%);
position: absolute;
top: 0;
left: 0;
}
}
.tips {
margin-left: 16rpx;
color: #888888;
font-size: 22rpx;
}
}
.level-box {
margin-top: 16rpx;
border-radius: 16rpx;
background: #f2f7ff;
padding: 24rpx;
font-size: 28rpx;
color: #133667;
.box-title {
font-weight: 500;
}
.mr-16 {
margin: 16rpx 0;
}
.weight {
font-weight: 600;
margin-left: 8rpx;
}
.rule-box {
border-radius: 28rpx;
background: #ffffffb0;
padding: 4rpx 20rpx;
font-size: 22rpx;
color: #666666;
image {
width: 24rpx;
height: 24rpx;
}
}
}
.radio-box {
border-bottom: 2rpx solid #F2F3F5;
}
.radio-item {
margin: 16rpx 0 24rpx;
padding: 10rpx 0;
.radio {
width: 28rpx;
height: 28rpx;
box-sizing: border-box;
padding: 4rpx;
flex-shrink: 0;
margin-right: 12rpx;
border-radius: 50%;
border: 2rpx solid #D0D2D6;
}
image {
width: 32rpx;
height: 32rpx;
margin-right: 8rpx;
}
}
.manual-box {
border-radius: 20rpx;
background: #f7f8fa;
padding: 24rpx 20rpx;
font-size: 26rpx;
color: #222222;
.dot {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
margin-right: 16rpx;
background: #347BFF;
}
.select {
margin: 12rpx 0 12rpx 28rpx;
height: 72rpx;
border-radius: 16rpx;
background: #FFFFFF;
border: 2rpx solid #EFF0F2;
color: #222222;
font-size: 28rpx;
font-weight: 500;
padding: 0 20rpx;
&.gary {
color: #999EA8;
font-weight: 400;
}
image {
width: 32rpx;
height: 32rpx;
}
}
.rate {
margin-left: 28rpx;
}
}
.input-content {
margin: 16rpx 0;
font-size: 28rpx;
color: #222222;
image {
width: 28rpx;
height: 28rpx;
flex-shrink: 0;
margin: 0 16rpx 0 8rpx;
}
.input-box {
width: 196rpx;
height: 72rpx;
line-height: 72rpx;
box-sizing: border-box;
padding: 0 20rpx;
position: relative;
border-radius: 16rpx;
border: 2rpx solid #eff0f2;
.input {
height: 72rpx;
line-height: 72rpx;
width: 100%;
font-weight: 700;
}
}
}
.input-tips {
font-size: 24rpx;
color: #888888;
line-height: 1.5;
}
.label {
font-weight: 500;
}
.unit {
margin: 0 4rpx;
font-size: 28rpx;
font-weight: 500;
&.font-s20{
font-size: 40rpx;
}
}
.price-box {
font-weight: 500;
color: #222222;
.left,.right {
flex: 1;
}
.price {
margin: 16rpx 0;
font-size: 40rpx;
font-family: "numberBold";
}
}
.fancy-divider {
position: relative;
width: 100%;
height: 1px;
background: #347bff80;
&::before {
content: '';
position: absolute;
left: 30rpx;
top: -10rpx;
width: 16rpx;
height: 16rpx;
background-color: #FFFFFF;
border: 2rpx solid #347bff80;
border-color: transparent transparent #347bff80 #347bff80;
transform: rotate(-45deg);
}
}
.base-box {
margin-top: 24rpx;
.comput-price {
margin-top: 16rpx;
font-size: 40rpx;
font-family: "numberBold";
}
}
.gross-price {
text-align: center;
font-family: "numberBold";
font-size: 68rpx;
}
}
.top {
display: flex;
align-items: center;
justify-content: space-between;
padding: 28rpx 32rpx;
.name {
font-size: 30rpx;
color: #222222;
font-weight: 500;
text {
font-size: 22rpx;
color: #999999;
font-weight: 400;
margin-left: 16rpx;
}
}
.merchant {
margin-top: 10rpx;
font-size: 26rpx;
color: #666666;
}
.bg-image {
margin: -24rpx 0;
width: 186rpx;
height: 138rpx;
}
}
.btn-box {
padding: 32rpx 40rpx 68rpx;
font-size: 32rpx;
.btn {
width: 100%;
height: 88rpx;
border-radius: 24rpx;
margin-bottom: 20rpx;
text-align: center;
line-height: 88rpx;
background: #FFFFFF;
&.confirm {
background: #2C66F7;
color: #FFFFFF;
font-weight: 500;
}
}
.btn-disabled {
opacity: .5;
}
}
.disabled {
background: #F7F8FA !important;
}
}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!