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 01/12] 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(); From 9351b82d11efe53734aa60f3d168cc00f33eb1d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Thu, 25 Apr 2024 17:02:52 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/ingredientReport/day.vue | 20 +++++++++---------- src/views/report/qcReport/optimizeCutData.vue | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue index 47f90a44..a7740705 100644 --- a/src/views/report/ingredientReport/day.vue +++ b/src/views/report/ingredientReport/day.vue @@ -143,7 +143,7 @@ export default { valueFormat: "timestamp", rangeSeparator: '-', param: 'checkTime', - defaultSelect: Date.now(), + defaultSelect: Date.now() - 24 * 60 * 60 * 1000, width: 150 }, { @@ -169,9 +169,9 @@ export default { }, mounted() { // this.formConfig[1].defaultSelect[] - this.listQuery.startTime = Date.now() - this.time = moment(new Date(Date.now())).format('YYYY-MM-DD') - this.listQuery.endTime = Date.now() + 24 * 60 * 60 * 1000 + this.listQuery.startTime = Date.now() - 24 * 60 * 60 * 1000 + this.time = moment(new Date((Date.now() - 24 * 60 * 60 * 1000)).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(Date.now()).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + this.listQuery.endTime = Date.now() // this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000 this.getDataList() // this.getSpanArr(this.tableData) @@ -308,7 +308,7 @@ export default { 'sj11': null, 'sj14': null, - putType: '原料投入' + putType: '原料投入(kg)' }, { classType: 1, @@ -374,7 +374,7 @@ export default { 'sj11': null, 'sj14': null, - putType: '原料投入', + putType: '原料投入(kg)', }, { classType: 2, @@ -440,7 +440,7 @@ export default { 'sj11': null, 'sj14': null, - putType: '原料投入', + putType: '原料投入(kg)', }, { classType: 3, @@ -535,9 +535,9 @@ export default { // Date.now() - 24 * 60 * 60 - 1000 switch (val.btnName) { case 'search': - this.listQuery.startTime = val.checkTime ? val.checkTime : undefined; - this.time = moment(new Date(this.listQuery.startTime)).format('YYYY-MM-DD') - this.listQuery.endTime = val.checkTime ? val.checkTime + 24 * 60 * 60 * 1000 : undefined; + this.listQuery.startTime = val.checkTime ? new Date(new Date(val.checkTime).setHours(8, 0, 0, 0)).getTime() : undefined; + this.time = moment(new Date((val.checkTime)).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(val.checkTime + 24 * 60 * 60 * 1000).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + this.listQuery.endTime = val.checkTime ? new Date(new Date(val.checkTime + 24 * 60 * 60 * 1000).setHours(8, 0, 0, 0)).getTime() : undefined; this.getDataList(); break; case 'export': diff --git a/src/views/report/qcReport/optimizeCutData.vue b/src/views/report/qcReport/optimizeCutData.vue index 35a210f6..45729b4f 100644 --- a/src/views/report/qcReport/optimizeCutData.vue +++ b/src/views/report/qcReport/optimizeCutData.vue @@ -1,7 +1,7 @@ @@ -67,7 +67,7 @@ const tableProps = [ }, { prop: 'area', - label: '面积' + label: '面积(㎡)' }, { prop: 'rate', From ec550f22ec156cff7a3d6f78bcdec3f34a8ae981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Thu, 25 Apr 2024 17:08:59 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/ingredientReport/day.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue index a7740705..47473fe2 100644 --- a/src/views/report/ingredientReport/day.vue +++ b/src/views/report/ingredientReport/day.vue @@ -169,8 +169,8 @@ export default { }, mounted() { // this.formConfig[1].defaultSelect[] - this.listQuery.startTime = Date.now() - 24 * 60 * 60 * 1000 - this.time = moment(new Date((Date.now() - 24 * 60 * 60 * 1000)).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(Date.now()).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + this.listQuery.startTime = Date.now() + this.time = moment(new Date((Date.now())).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(Date.now())).format('YYYY-MM-DD HH:mm:ss') this.listQuery.endTime = Date.now() // this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000 this.getDataList() @@ -536,8 +536,8 @@ export default { switch (val.btnName) { case 'search': this.listQuery.startTime = val.checkTime ? new Date(new Date(val.checkTime).setHours(8, 0, 0, 0)).getTime() : undefined; - this.time = moment(new Date((val.checkTime)).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(val.checkTime + 24 * 60 * 60 * 1000).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') - this.listQuery.endTime = val.checkTime ? new Date(new Date(val.checkTime + 24 * 60 * 60 * 1000).setHours(8, 0, 0, 0)).getTime() : undefined; + this.time = moment(new Date((val.checkTime)).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(val.checkTime + 24 * 60 * 60 * 1000).setHours(7, 59, 59)).format('YYYY-MM-DD HH:mm:ss') + this.listQuery.endTime = val.checkTime ? new Date(new Date(val.checkTime + 24 * 60 * 60 * 1000).setHours(7, 59, 59)).getTime() : undefined; this.getDataList(); break; case 'export': From ef3f5d3fe77c0a3e721db06e424aa516a48b6579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Thu, 25 Apr 2024 17:14:16 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/ingredientReport/day.vue | 8 ++++++-- src/views/report/qcReport/cutDayReport/index.vue | 6 +++++- src/views/report/qcReport/fullInspection/index.vue | 6 +++++- src/views/report/qcReport/lineReport.vue | 7 ++++++- src/views/report/qcReport/optimizeCutData.vue | 6 +++++- 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue index 47473fe2..64d37df4 100644 --- a/src/views/report/ingredientReport/day.vue +++ b/src/views/report/ingredientReport/day.vue @@ -143,7 +143,7 @@ export default { valueFormat: "timestamp", rangeSeparator: '-', param: 'checkTime', - defaultSelect: Date.now() - 24 * 60 * 60 * 1000, + defaultSelect: Date.now(), width: 150 }, { @@ -170,7 +170,7 @@ export default { mounted() { // this.formConfig[1].defaultSelect[] this.listQuery.startTime = Date.now() - this.time = moment(new Date((Date.now())).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(Date.now())).format('YYYY-MM-DD HH:mm:ss') + this.time = moment(new Date((Date.now())).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(Date.now() + 24*60*60*1000).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') this.listQuery.endTime = Date.now() // this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000 this.getDataList() @@ -551,6 +551,10 @@ export default { };