From df75aa04a1d5d755dacaa6725a9b0ef43475f16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Mon, 11 Mar 2024 15:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qualityInspectionBoxBtn/dialogForm.vue | 8 +- src/views/report/glass/day.vue | 4 +- src/views/report/glass/inputTable.vue | 43 ++++------ src/views/report/glass/month.vue | 8 +- src/views/report/glass/weekly.vue | 4 +- src/views/report/glass/year.vue | 16 ++-- .../report/productionDayReport/index.vue | 63 +++++++-------- .../report/productionMonthReport/index.vue | 78 +++++++++--------- .../productionShipmentsReport/index.vue | 50 ++++-------- .../report/productionWeekReport/index.vue | 55 +++++++------ .../report/productionYearReport/index.vue | 81 +++++++++---------- 11 files changed, 192 insertions(+), 218 deletions(-) diff --git a/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue b/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue index c400d645..1c46944f 100644 --- a/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue +++ b/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue @@ -11,7 +11,7 @@ - @@ -19,7 +19,8 @@ - + @@ -109,6 +110,7 @@ export default { productionLineId: null, inspectionDetIdList:[], }, + disabled:false, formLoading: true, productionLineList: [], inspectionDetList:[], @@ -148,6 +150,7 @@ export default { // if(obj.id) if (obj) { this.dataForm.id = obj.id || null; + this.disabled = true } this.$nextTick(() => { this.$refs["dataForm"].resetFields() @@ -167,7 +170,6 @@ export default { console.log(1111); this.urlOptions.infoURL(obj.id).then(response => { this.dataForm.id = response.data.id - // if (this.setData) { // this.setDataForm() // } diff --git a/src/views/report/glass/day.vue b/src/views/report/glass/day.vue index 1a852e9d..e509315b 100644 --- a/src/views/report/glass/day.vue +++ b/src/views/report/glass/day.vue @@ -1,7 +1,7 @@ @@ -140,7 +140,7 @@ export default { // console.log(val.setHours(7, 0, 0)) // console.log(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000) // let time = this.format(val.setHours(7, 0, 0)) - this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 0)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 + this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 1)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 this.listQuery.reportTime[1] = this.format(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000 console.log(this.listQuery.reportTime); } else { diff --git a/src/views/report/glass/inputTable.vue b/src/views/report/glass/inputTable.vue index 8b7b425a..11358799 100644 --- a/src/views/report/glass/inputTable.vue +++ b/src/views/report/glass/inputTable.vue @@ -1,46 +1,33 @@ @@ -189,6 +176,10 @@ const cols = [ text1 = '本月' text2 = '上月' text3 = '原片合计(片/月)' + } else if (newv === 2) { + text1 = '今日' + text2 = '昨日' + text3 = '原片合计(片/日)' } else { text1 = '本年' text2 = '上年' diff --git a/src/views/report/glass/month.vue b/src/views/report/glass/month.vue index 451d9f5a..be544162 100644 --- a/src/views/report/glass/month.vue +++ b/src/views/report/glass/month.vue @@ -128,11 +128,11 @@ export default { } break } - this.startTimeStamp = this.timeFun(new Date(fullyear, timeStamp, 1).getTime()); //开始时间 - this.endTimeStamp = this.timeFun(new Date(fullyear, timeStamp, days, 23, 59, 59).getTime()); //结束时间 + this.startTimeStamp = this.timeFun(new Date(fullyear, timeStamp, 1, 7, 0, 1).getTime()); //开始时间 + this.endTimeStamp = this.timeFun(new Date(fullyear, timeStamp, days, 7, 0, 0).getTime()); //结束时间 console.log(this.startTimeStamp, this.endTimeStamp) - this.listQuery.reportTime[0] = parseTime(new Date(fullyear, timeStamp, 1).getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 - this.listQuery.reportTime[1] = parseTime(new Date(fullyear, timeStamp, days, 23, 59, 59).getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000 + this.listQuery.reportTime[0] = parseTime(new Date(fullyear, timeStamp, 1, 7, 0, 1).getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 + this.listQuery.reportTime[1] = parseTime(new Date(fullyear, timeStamp, days, 7, 0, 0).getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000 } else { this.listQuery.reportTime = [] } diff --git a/src/views/report/glass/weekly.vue b/src/views/report/glass/weekly.vue index e1adf4af..0ad4c820 100644 --- a/src/views/report/glass/weekly.vue +++ b/src/views/report/glass/weekly.vue @@ -138,8 +138,8 @@ export default { this.startTimeStamp = this.timeFun(timeStamp - 24 * 60 * 60 * 1000); //开始时间 this.endTimeStamp = this.timeFun(timeStamp + (24 * 60 * 60 * 1000) * 5); //结束时间 console.log(this.startTimeStamp, this.endTimeStamp) - this.listQuery.reportTime[0] = parseTime(new Date(this.startTimeStamp + ' 00:00:00').getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 - this.listQuery.reportTime[1] = parseTime(new Date(this.endTimeStamp + ' 23:59:59').getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000 + this.listQuery.reportTime[0] = parseTime(new Date(this.startTimeStamp + ' 07:00:01').getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 + this.listQuery.reportTime[1] = parseTime(new Date(this.endTimeStamp + ' 07:00:01').getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000 } else { this.listQuery.reportTime = [] } diff --git a/src/views/report/glass/year.vue b/src/views/report/glass/year.vue index a66e55f0..66959702 100644 --- a/src/views/report/glass/year.vue +++ b/src/views/report/glass/year.vue @@ -65,10 +65,10 @@ export default { date.setDate(1); date.setMonth(0); this.reportTime = date; - this.startTimeStamp = this.timeFun(new Date(new Date().getFullYear(), 0, 1).getTime()); //开始时间 - this.endTimeStamp = this.timeFun(new Date(new Date().getFullYear(), 11, 31, 23, 59, 59).getTime()); //结束时间 - this.listQuery.reportTime[0] = parseTime(new Date(new Date().getFullYear(), 0, 1).getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 - this.listQuery.reportTime[1] = parseTime(new Date(new Date().getFullYear(), 11, 31, 23, 59, 59).getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 100 + this.startTimeStamp = this.timeFun(new Date(new Date().getFullYear(), 0, 1,7,0,1).getTime()); //开始时间 + this.endTimeStamp = this.timeFun(new Date(new Date().getFullYear(), 11, 31, 7, 0, 0).getTime()); //结束时间 + this.listQuery.reportTime[0] = parseTime(new Date(new Date().getFullYear(), 0, 1, 7, 0, 1).getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 + this.listQuery.reportTime[1] = parseTime(new Date(new Date().getFullYear(), 11, 31, 7, 0, 0).getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 100 }, async getDict() { // 产线列表 @@ -103,10 +103,10 @@ export default { changeTime(val) { if(val) { // let timeStamp = val.getTime(); //标准时间转为时间戳,毫秒级别 - this.startTimeStamp = this.timeFun(new Date(val.getFullYear(), 0, 1).getTime()); //开始时间 - this.endTimeStamp = this.timeFun(new Date(val.getFullYear(), 11, 31, 23, 59, 59).getTime()); //结束时间 - this.listQuery.reportTime[0] = parseTime(new Date(val.getFullYear(), 0, 1).getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 - this.listQuery.reportTime[1] = parseTime(new Date(val.getFullYear(), 11, 31, 23, 59, 59).getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000 + this.startTimeStamp = this.timeFun(new Date(val.getFullYear(), 0, 1, 7, 0, 1).getTime()); //开始时间 + this.endTimeStamp = this.timeFun(new Date(val.getFullYear(), 11, 31, 7, 0, 0).getTime()); //结束时间 + this.listQuery.reportTime[0] = parseTime(new Date(val.getFullYear(), 0, 1, 7, 0, 1).getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000 + this.listQuery.reportTime[1] = parseTime(new Date(val.getFullYear(), 11, 31, 7, 0, 0).getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000 } else { this.listQuery.reportTime = [] } diff --git a/src/views/report/productionDayReport/index.vue b/src/views/report/productionDayReport/index.vue index 91c58804..17164401 100644 --- a/src/views/report/productionDayReport/index.vue +++ b/src/views/report/productionDayReport/index.vue @@ -1,7 +1,7 @@ @@ -24,49 +24,49 @@ background: '#F2F4F9', color: '#606266' }"> - - + + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - +