Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
supervisor-miniprogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d5b44402
authored
Jun 04, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 督导统计 - 业务开发
1 parent
392349c6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
145 additions
and
5 deletions
packageIndex/components/dateScreen/dateScreen.js
packageIndex/components/dateScreen/dateScreen.json
packageIndex/components/dateScreen/dateScreen.sass
packageIndex/components/dateScreen/dateScreen.wxml
packageIndex/pages/stationStaffPerformance/stationStaffPerformance.js
packageIndex/pages/stationStaffPerformance/stationStaffPerformance.json
packageIndex/pages/stationStaffPerformance/stationStaffPerformance.wxml
packageIndex/pages/storePerformance/storePerformance.js
packageIndex/pages/storePerformance/storePerformance.json
packageIndex/components/dateScreen/dateScreen.js
0 → 100644
View file @
d5b4440
This diff is collapsed.
Click to expand it.
packageIndex/components/dateScreen/dateScreen.json
0 → 100644
View file @
d5b4440
{
"component"
:
true
,
"usingComponents"
:
{
"van-icon"
:
"@vant/weapp/icon/index"
,
"van-datetime-picker"
:
"@vant/weapp/datetime-picker/index"
,
"van-calendar"
:
"@vant/weapp/calendar/index"
,
"van-picker"
:
"@vant/weapp/picker/index"
}
}
\ No newline at end of file
packageIndex/components/dateScreen/dateScreen.sass
0 → 100644
View file @
d5b4440
/* components/dateScreen/dateScreen.wxss */
.date-screen
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.tab-section
{
box-sizing
:
border-box
;
width
:
278rpx
;
height
:
56rpx
;
display
:
flex
;
align-items
:
center
;
background
:
#FFFFFF
;
border-radius
:
56rpx
;
font-size
:
26rpx
;
color
:
#999999
;
padding
:
4rpx
;
&
.isSticky
{
background
:
#F7F8FA
;
}
.tab
{
flex
:
1
;
text-align
:
center
;
height
:
48rpx
;
line-height
:
48rpx
;
border-radius
:
48rpx
;
&
.active
{
color
:
#2C66F7
;
font-weight
:
500
;
background
:
#2c66f7
1a
;
}
}
}
.date-section
{
box-sizing
:
border-box
;
height
:
56rpx
;
flex
:
1
;
max-width
:
calc
(
100%
-
278rpx
)
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-around
;
.date-text
{
font-size
:
26rpx
;
text-align
:
center
;
width
:
320rpx
;
flex-shrink
:
0
;
}
.arrow
{
width
:
32rpx
;
}
}
}
\ No newline at end of file
packageIndex/components/dateScreen/dateScreen.wxml
0 → 100644
View file @
d5b4440
<!--components/dateScreen/dateScreen.wxml-->
<view class="date-screen">
<view class="tab-section {{ isSticky ? 'isSticky' : '' }}"
style="background: {{ customBackground }};"
wx:if="{{ !tabSelected || tabSelected == 3 }}">
<block wx:for="{{ dateList }}" wx:key="index">
<view class="tab {{ item.index==dateCurrent?'active':'' }}"
data-index="{{ item.index }}"
bind:tap="selectDate">
{{ item.title }}
</view>
</block>
</view>
<view class="date-section">
<view class="arrow left">
<van-icon wx:if="{{ !leftCurrent }}"
class="arrow-left"
name="arrow-left"
bind:tap="last" />
</view>
<view class="date-text" bind:tap="onDisplayDate">
{{ date }}
</view>
<view class="arrow right">
<van-icon wx:if="{{ !rightCurrent }}"
class="arrow-right"
name="arrow"
bind:tap="next" />
</view>
</view>
</view>
<!-- 年月日 -->
<block wx:if="{{ dateShow }}">
<popup bindcancel="cancel"
bindconfirm="confirm"
show="{{ dateShow }}"
title="{{ titleEnum[timeType] }}"
height="60vh">
<block wx:if="{{ timeType == 'date' || timeType == 'year-month' }}">
<van-datetime-picker id="datePicker"
show-toolbar="{{ false }}"
min-date="{{ minDate }}"
max-date="{{ maxDate }}"
model:value="{{ currentDate }}"
type="{{ timeType=='date'?'date':'year-month' }}"
bind:change="onChange"
bind:input="onInput" />
</block>
<!-- 周 -->
<block wx:if="{{ timeType == 'week' }}">
<van-picker id="weekPicker"
show-toolbar="{{ false }}"
model:value="{{ currentDate }}"
default-index="{{ defaultIndex }}"
value-key="label"
columns="{{ weekColumns }}"
bind:change="onWeekChange" />
</block>
</popup>
</block>
<block wx:if="{{ show }}">
<van-calendar id="calendar"
max-range="{{ 31 }}"
min-date="{{ minDate }}"
max-date="{{ maxDate }}"
show="{{ show }}"
type="range"
color="#2C66F7"
bind:confirm="onConfirm"
bind:close="onClose" />
</block>
packageIndex/pages/stationStaffPerformance/stationStaffPerformance.js
View file @
d5b4440
...
...
@@ -2,6 +2,7 @@ import { schemaList, schemaCommonBrandList } from "./stationStaffPerformance.dat
import
{
brandTypeList
}
from
"~/packageIndex/constant/performance.js"
;
import
{
getSupervisorStaffApi
}
from
"~/packageIndex/api/performance.js"
;
const
IMG_URL
=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/"
;
import
dayjs
from
"dayjs"
;
Page
({
data
:
{
IMG_URL
,
...
...
@@ -53,6 +54,12 @@ Page({
}
this
.
setData
({
brandTypeList
:
wx
.
$util
.
deepClone
(
brandTypeList
),
query
:
{
...
this
.
data
.
query
,
dateType
:
0
,
startDate
:
dayjs
().
startOf
(
"day"
).
format
(
"YYYY-MM-DD"
),
endDate
:
dayjs
().
endOf
(
"day"
).
format
(
"YYYY-MM-DD"
),
},
});
},
// onLoad(options) {
...
...
@@ -104,6 +111,7 @@ Page({
await
this
.
getData
();
},
async
handleSearch
({
detail
})
{
console
.
log
(
"handleSearch"
);
this
.
setData
({
query
:
{
...
this
.
data
.
query
,
...
...
packageIndex/pages/stationStaffPerformance/stationStaffPerformance.json
View file @
d5b4440
...
...
@@ -2,7 +2,7 @@
"usingComponents"
:
{
"TypeTabs"
:
"/packageIndex/components/typeTabs/typeTabs"
,
"StatisticsItem"
:
"/packageIndex/components/statisticsItem/statisticsItem"
,
"date-screen"
:
"/components/dateScreen/dateScreen"
,
"date-screen"
:
"/
packageIndex/
components/dateScreen/dateScreen"
,
"van-search"
:
"@vant/weapp/search/index"
},
"enablePullDownRefresh"
:
true
,
...
...
packageIndex/pages/stationStaffPerformance/stationStaffPerformance.wxml
View file @
d5b4440
...
...
@@ -20,9 +20,9 @@
<view class="date-filter-wrapper">
<date-screen customBackground="#f3f3f4"
tabSelected="{{ 3 }}"
init
StartD
ate="{{ query.startDate }}"
init
EndD
ate="{{ query.endDate }}"
init
TimeD
imension="{{ query.dateType }}"
init
-start-d
ate="{{ query.startDate }}"
init
-end-d
ate="{{ query.endDate }}"
init
-time-d
imension="{{ query.dateType }}"
bind:search="handleSearch"></date-screen>
</view>
<van-search value="{{ query.filterKey }}"
...
...
packageIndex/pages/storePerformance/storePerformance.js
View file @
d5b4440
...
...
@@ -88,6 +88,7 @@ Page({
await
this
.
getData
();
},
async
handleSearch
({
detail
})
{
console
.
log
(
"store search"
);
this
.
setData
({
query
:
{
...
this
.
data
.
query
,
...
...
packageIndex/pages/storePerformance/storePerformance.json
View file @
d5b4440
...
...
@@ -2,7 +2,7 @@
"usingComponents"
:
{
"TypeTabs"
:
"/packageIndex/components/typeTabs/typeTabs"
,
"StatisticsItem"
:
"/packageIndex/components/statisticsItem/statisticsItem"
,
"date-screen"
:
"/components/dateScreen/dateScreen"
,
"date-screen"
:
"/
packageIndex/
components/dateScreen/dateScreen"
,
"van-search"
:
"@vant/weapp/search/index"
,
"WarnList"
:
"/packageIndex/components/warnList/index"
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment