-
+
diff --git a/src/views/report/Product/year.vue b/src/views/report/Product/year.vue
index 5eac943a..a49076a0 100644
--- a/src/views/report/Product/year.vue
+++ b/src/views/report/Product/year.vue
@@ -1,7 +1,7 @@
@@ -12,11 +12,11 @@
:model="listQuery"
class="blueTip">
@@ -93,9 +93,11 @@ export default {
let now = new Date()
now.setHours(0, 0, 0, 0)
now.setDate(1)
+ now.setMonth(0)
let startOfMonth = now.getTime()
- let firstDayOfMonth = new Date(startOfMonth)
- this.listQuery.time = parseTime(firstDayOfMonth)
+ // let firstDayOfMonth = new Date(startOfMonth)
+ // console.log('看看', parseTime(firstDayOfMonth))
+ this.listQuery.time = startOfMonth
},
mounted() {
this.getList();
From 9a291854102bcf71152f28bff32a458d680edb16 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Thu, 25 Apr 2024 14:46:32 +0800
Subject: [PATCH 2/2] 1
---
.../report/qcReport/israLineReport/index.vue | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/views/report/qcReport/israLineReport/index.vue b/src/views/report/qcReport/israLineReport/index.vue
index c9d898b9..9425fc20 100644
--- a/src/views/report/qcReport/israLineReport/index.vue
+++ b/src/views/report/qcReport/israLineReport/index.vue
@@ -108,8 +108,9 @@ export default {
let start = moment().format('yyyy-MM-DD');
let end = moment().format('yyyy-MM-DD');
this.formConfig[0].defaultSelect = [start, end];
- this.queryParams.startTime = moment(start + ' 00:00:00').valueOf();
- this.queryParams.endTime = moment(end + ' 23:59:59').valueOf();
+ this.queryParams.startTime =
+ moment(start + ' 00:00:00').valueOf() + 25200000;
+ this.queryParams.endTime = moment(end + ' 23:59:59').valueOf() + 25200000;
this.getList();
},
methods: {
@@ -238,12 +239,10 @@ export default {
buttonClick(val) {
if (val.btnName === 'search') {
if (val.timeVal && val.timeVal.length > 0) {
- this.queryParams.startTime = moment(
- val.timeVal[0] + ' 00:00:00'
- ).valueOf();
- this.queryParams.endTime = moment(
- val.timeVal[1] + ' 23:59:59'
- ).valueOf();
+ this.queryParams.startTime =
+ moment(val.timeVal[0] + ' 00:00:00').valueOf() + 25200000;
+ this.queryParams.endTime =
+ moment(val.timeVal[1] + ' 23:59:59').valueOf() + 25200000;
}
this.queryParams.lineId = val.lineId;
this.getList();