feat: 筛选时间条件增加时分秒
This commit is contained in:
@@ -229,6 +229,9 @@ export default {
|
||||
// 获取订单汇总
|
||||
async daycount() {
|
||||
try {
|
||||
if (this.query.createdAt[1]) {
|
||||
this.query.createdAt.splice(1, 1, this.query.createdAt[1].replace("00:00:00", "23:59:59"))
|
||||
}
|
||||
const res = await saleSummaryApi.count({
|
||||
beginDate: this.query.createdAt[0],
|
||||
endDate: this.query.createdAt[1],
|
||||
@@ -246,6 +249,9 @@ export default {
|
||||
async downloadHandle() {
|
||||
try {
|
||||
this.downloadLoading = true;
|
||||
if (this.query.createdAt[1]) {
|
||||
this.query.createdAt.splice(1, 1, this.query.createdAt[1].replace("00:00:00", "23:59:59"))
|
||||
}
|
||||
const file = await saleSummaryApi.export({
|
||||
beginDate: this.query.createdAt[0],
|
||||
endDate: this.query.createdAt[1],
|
||||
@@ -281,6 +287,9 @@ export default {
|
||||
this.tableData.loading = true;
|
||||
try {
|
||||
this.daycount();
|
||||
if (this.query.createdAt[1]) {
|
||||
this.query.createdAt.splice(1, 1, this.query.createdAt[1].replace("00:00:00", "23:59:59"))
|
||||
}
|
||||
const res = await saleSummaryApi.page({
|
||||
page: this.tableData.page,
|
||||
size: this.tableData.size,
|
||||
|
||||
Reference in New Issue
Block a user