Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李智书
xzf_uniapp-wechat-web
Commits
95271cd4
Commit
95271cd4
authored
Sep 19, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消费报告
parent
70ccf82c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
22 deletions
+28
-22
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+28
-22
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
95271cd4
...
...
@@ -1866,14 +1866,17 @@ export default {
await
this
.
getCateringAbnormalGroupList
();
let
arr
=
this
.
cateringAbnormalGroupList
;
// arr = arr.sort((a,b) => Date.parse(b.statisticalDate) - Date.parse(a.statisticalDate))
arr
.
sort
((
a
,
b
)
=>
a
.
statisticalDate
.
localeCompare
(
b
.
statisticalDate
));
let
str
=
""
;
arr
.
forEach
((
x
)
=>
{
let
date
=
moment
(
x
.
date
).
format
(
"
M.D
"
);
str
=
str
+
date
+
"
,
"
;
});
str
=
str
.
substring
(
0
,
str
.
length
-
1
);
this
.
dateForStr
=
str
;
if
(
arr
.
length
){
// arr = arr.map(x => (x.date = moment(x.date).format('MM-DD')))
arr
.
sort
((
a
,
b
)
=>
a
.
statisticalDate
.
localeCompare
(
b
.
statisticalDate
));
let
str
=
""
;
arr
.
forEach
((
x
)
=>
{
let
date
=
moment
(
x
.
date
).
format
(
"
M.D
"
);
str
=
str
+
date
+
"
,
"
;
});
str
=
str
.
substring
(
0
,
str
.
length
-
1
);
this
.
dateForStr
=
str
;
}
console
.
log
(
arr
,
"
bbbbbbbbbbbbbbbbbbbbbbb
"
);
this
.
attendanceSituations
.
attendanceDate
=
this
.
formatDate
(
this
.
minDate
);
// 查询用户信息
...
...
@@ -1931,20 +1934,23 @@ export default {
this
.
cateringAbnormalGroupList
,
"
ddddddddddddddddddddddddddddd
"
);
let
arr
=
this
.
cateringAbnormalGroupList
;
arr
.
sort
((
a
,
b
)
=>
a
.
statisticalDate
.
localeCompare
(
b
.
statisticalDate
));
this
.
cateringAbnormalGroupList_
=
arr
.
filter
(
(
x
)
=>
x
.
statisticalDate
==
self
.
dataRangeArr
[
self
.
dataRangeIndex
].
startDate
);
let
str
=
""
;
arr
.
forEach
((
x
)
=>
{
let
date
=
moment
(
x
.
date
).
format
(
"
M.D
"
);
str
=
str
+
date
+
"
,
"
;
});
str
=
str
.
substring
(
0
,
str
.
length
-
1
);
this
.
dateForStr
=
str
;
let
arr
=
this
.
cateringAbnormalGroupList
;
if
(
arr
.
length
){
// arr = arr.map(x => (x.date = moment(x.date).format('MM-DD')))
arr
.
sort
((
a
,
b
)
=>
a
.
statisticalDate
.
localeCompare
(
b
.
statisticalDate
));
this
.
cateringAbnormalGroupList_
=
arr
.
filter
(
(
x
)
=>
x
.
statisticalDate
==
self
.
dataRangeArr
[
self
.
dataRangeIndex
].
startDate
);
let
str
=
""
;
arr
.
forEach
((
x
)
=>
{
let
date
=
moment
(
x
.
date
).
format
(
"
M.D
"
);
str
=
str
+
date
+
"
,
"
;
});
str
=
str
.
substring
(
0
,
str
.
length
-
1
);
this
.
dateForStr
=
str
;
}
}
this
.
diningSituations
.
diningSituationsRequestDate
=
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment