From d44f76b641f18a1ea30c08082398372a2265766b Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Mon, 4 Mar 2024 13:56:42 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E9=9B=86=E5=9B=A2-=E5=8C=85=E8=A3=85?= =?UTF-8?q?=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/orderGroup/components/orderGroupAdd.vue | 11 ++--------- src/views/order/base/orderGroup/index.vue | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/views/order/base/orderGroup/components/orderGroupAdd.vue b/src/views/order/base/orderGroup/components/orderGroupAdd.vue index 1c272dfb..a57e2909 100644 --- a/src/views/order/base/orderGroup/components/orderGroupAdd.vue +++ b/src/views/order/base/orderGroup/components/orderGroupAdd.vue @@ -60,14 +60,7 @@ - - - - + @@ -127,7 +120,7 @@ export default { this.form.customerId = res.data.customerId this.form.planQuantity = res.data.planQuantity this.form.deliveTime = res.data.deliveTime ? res.data.deliveTime : null - this.form.packReq = res.data.packReq ? res.data.packReq+'' : '' + this.form.packReq = res.data.packReq this.form.remark = res.data.remark setTimeout(() => { this.getSpecifications(this.form.planProductId) diff --git a/src/views/order/base/orderGroup/index.vue b/src/views/order/base/orderGroup/index.vue index d71b9638..d1303908 100644 --- a/src/views/order/base/orderGroup/index.vue +++ b/src/views/order/base/orderGroup/index.vue @@ -125,7 +125,7 @@ const tableProps = [ { prop: 'packReq', label: '包装要求', - filter: publicFormatter('pack_spec'), + // filter: publicFormatter('pack_spec'), minWidth: 120, showOverflowtooltip: true }, From 50cfcc3af2af4f1298f98056e7ece30cbda36cbd Mon Sep 17 00:00:00 2001 From: Melete Date: Mon, 4 Mar 2024 14:01:53 +0800 Subject: [PATCH 2/9] update --- src/views/specialEquipment/check/Config.vue | 2 +- src/views/specialEquipment/check/Content.vue | 2 +- src/views/specialEquipment/check/add.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/specialEquipment/check/Config.vue b/src/views/specialEquipment/check/Config.vue index 81ad4e45..8a9c28f8 100644 --- a/src/views/specialEquipment/check/Config.vue +++ b/src/views/specialEquipment/check/Config.vue @@ -45,7 +45,7 @@ @close="cancel" @cancel="cancel" @confirm="handleConfirm"> - + Date: Tue, 5 Mar 2024 09:48:16 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 2 +- .../quality/base/qualityHotMaterial/index.vue | 4 +- src/views/report/glass/day.vue | 11 +- src/views/report/glass/month.vue | 34 +- src/views/report/glass/weekly.vue | 12 +- src/views/report/glass/year.vue | 20 +- .../report/productionDayReport/index.vue | 143 +++--- .../report/productionMonthReport/index.vue | 77 ++- .../productionShipmentsReport/index.vue | 191 +++---- .../productionWeekReport copy/InputArea.vue | 37 -- .../productionWeekReport copy/index.vue | 468 ------------------ .../report/productionWeekReport/index.vue | 49 +- .../report/productionYearReport/index.vue | 143 ++++-- 13 files changed, 414 insertions(+), 777 deletions(-) delete mode 100644 src/views/report/productionWeekReport copy/InputArea.vue delete mode 100644 src/views/report/productionWeekReport copy/index.vue diff --git a/.env.dev b/.env.dev index a8a3e6c2..d0e92c5e 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2024-03-01 15:27:52 + # @LastEditTime: 2024-03-01 16:13:32 # @LastEditors: zhp # @Description: ### diff --git a/src/views/quality/base/qualityHotMaterial/index.vue b/src/views/quality/base/qualityHotMaterial/index.vue index 554aaedb..9e97cbc7 100644 --- a/src/views/quality/base/qualityHotMaterial/index.vue +++ b/src/views/quality/base/qualityHotMaterial/index.vue @@ -188,8 +188,8 @@ export default { case 'search': this.listQuery.pageNo = 1; this.listQuery.pageSize = 10; - this.listQuery.content = val.content ? val.content : undefined; - this.listQuery.typeId = val.typeId ? val.typeId : undefined; + this.listQuery.materialId = val.materialId ? val.materialId : undefined; + // this.listQuery.typeId = val.typeId ? val.typeId : undefined; this.getDataList(); break; case 'reset': diff --git a/src/views/report/glass/day.vue b/src/views/report/glass/day.vue index 33621499..844b5c83 100644 --- a/src/views/report/glass/day.vue +++ b/src/views/report/glass/day.vue @@ -1,7 +1,7 @@ @@ -62,9 +62,14 @@ export default { }; }, created() { - this.getDict() + this.getDict() + this.getTodayStartTimeAndEndTime() }, - methods: { + methods: { + getTodayStartTimeAndEndTime() { + this.reportTime = new Date() + this.changeTime(this.reportTime) + }, async getDict() { // 产线列表 const res = await getCorePLList(); diff --git a/src/views/report/glass/month.vue b/src/views/report/glass/month.vue index caa0b23b..a1514fc1 100644 --- a/src/views/report/glass/month.vue +++ b/src/views/report/glass/month.vue @@ -59,7 +59,8 @@ export default { all: {} }; }, - created() { + created() { + this.getCurrentMonthFirst() this.getDict() }, methods: { @@ -67,7 +68,15 @@ export default { // 产线列表 const res = await getCorePLList(); this.proLineList = res.data; - }, + }, + getCurrentMonthFirst() { + const date = new Date(); + date.setDate(1); + this.reportTime = date + // console.log(date) + this.changeTime(date) + // console.log(date.valueOf()); + }, // 获取数据列表 async getDataList() { this.dataListLoading = true; @@ -90,24 +99,35 @@ export default { this.dataListLoading = false; }); }, - changeTime(val) { + changeTime(val) { + console.log(val) if(val) { const timeStamp = val.getMonth(); //标准时间转为时间戳,毫秒级别 const fullyear = val.getFullYear() let days = 0 switch (timeStamp) { - case 0, 2, 4, 6, 7, 9, 11: + case 0: + case 2: + case 4: + case 6: + case 7: + case 9: + case 11: days = 31 break - case 3, 4, 8, 10: + case 3: + case 4: + case 8: + case 10: days = 30 break case 1: - if ((fullyear % 400 === 0) || (fullyear() % 4 === 0 && fullyear() % 100 !== 0)) { + if ((fullyear % 400 === 0) || (fullyear % 4 === 0 && fullyear % 100 !== 0)) { days = 29 } else { days = 28 - } + } + break } this.startTimeStamp = this.timeFun(new Date(fullyear, timeStamp, 1).getTime()); //开始时间 this.endTimeStamp = this.timeFun(new Date(fullyear, timeStamp, days, 23, 59, 59).getTime()); //结束时间 diff --git a/src/views/report/glass/weekly.vue b/src/views/report/glass/weekly.vue index cf36a70b..57993f21 100644 --- a/src/views/report/glass/weekly.vue +++ b/src/views/report/glass/weekly.vue @@ -93,7 +93,8 @@ export default { }, mounted() { // const day = new Date().getDay() - // console.log('周四', day) + // console.log('周四', day) + this.getCurrentWeekStartTimeAndEndTime() // this.changeTime(new Date(new Date().getTime() - day * 24 * 60 * 60 * 1000)) this.getDict() }, @@ -104,7 +105,11 @@ export default { this.proLineList = res.data; // this.getDataList() }); - }, + }, + getCurrentWeekStartTimeAndEndTime() { + this.reportTime = new Date() + this.changeTime(this.reportTime) + }, // 获取数据列表 async getDataList() { this.dataListLoading = true; @@ -127,7 +132,8 @@ export default { this.dataListLoading = false; }); }, - changeTime(val) { + changeTime(val) { + console.log(val); if(val) { let timeStamp = val.getTime(); //标准时间转为时间戳,毫秒级别 this.startTimeStamp = this.timeFun(timeStamp - 24 * 60 * 60 * 1000); //开始时间 diff --git a/src/views/report/glass/year.vue b/src/views/report/glass/year.vue index ff487c79..52954cc7 100644 --- a/src/views/report/glass/year.vue +++ b/src/views/report/glass/year.vue @@ -57,10 +57,24 @@ export default { all: {}, }; }, - created() { + created() { this.getDict() - }, - methods: { + }, + mounted () { + this.getCurrentYearFirst() + ; + }, + methods: { + getCurrentYearFirst() { + let date = new Date(); + 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 + }, async getDict() { // 产线列表 const res = await getCorePLList(); diff --git a/src/views/report/productionDayReport/index.vue b/src/views/report/productionDayReport/index.vue index 9b3a60ba..d3d5eacf 100644 --- a/src/views/report/productionDayReport/index.vue +++ b/src/views/report/productionDayReport/index.vue @@ -1,15 +1,15 @@