diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysdaylogs/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysdaylogs/index.vue index 92c4a9c..3ade1e3 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yysdaylogs/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysdaylogs/index.vue @@ -375,6 +375,14 @@ export default { }, //初始化查询的默认数据 async initSearchData() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const startDate = `${year}-${month}-01 00:00:00`; + const startDateTimestamp = new Date(startDate).getTime(); + const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`; + const endDateTimestamp = new Date(endDate).getTime(); + this.query.manufactureTime = [startDateTimestamp, endDateTimestamp]; }, initData() { this.listLoading = true; diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysdaypackage/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysdaypackage/index.vue index 0ec7378..ec947f2 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yysdaypackage/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysdaypackage/index.vue @@ -379,6 +379,14 @@ export default { }, //初始化查询的默认数据 async initSearchData() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const startDate = `${year}-${month}-01 00:00:00`; + const startDateTimestamp = new Date(startDate).getTime(); + const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`; + const endDateTimestamp = new Date(endDate).getTime(); + this.query.manufactureTime = [startDateTimestamp, endDateTimestamp]; }, initData() { this.listLoading = true; diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysdayplan/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysdayplan/index.vue index 327ce1d..3899965 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yysdayplan/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysdayplan/index.vue @@ -359,6 +359,8 @@ export default { }, //初始化查询的默认数据 async initSearchData() { + const now = new Date(); + this.query.years= new Date(now.getFullYear(), now.getMonth(), 1).getTime(); }, initData() { diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysdaywork/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysdaywork/index.vue index facff13..7fbc9e4 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yysdaywork/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysdaywork/index.vue @@ -398,6 +398,14 @@ export default { }, //初始化查询的默认数据 async initSearchData() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const startDate = `${year}-${month}-01 00:00:00`; + const startDateTimestamp = new Date(startDate).getTime(); + const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`; + const endDateTimestamp = new Date(endDate).getTime(); + this.query.manufactureTime = [startDateTimestamp, endDateTimestamp]; }, initData() { this.listLoading = true; diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysfinished/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysfinished/index.vue index 675152a..22e1010 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yysfinished/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysfinished/index.vue @@ -345,6 +345,14 @@ export default { }, //初始化查询的默认数据 async initSearchData() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const startDate = `${year}-${month}-01 00:00:00`; + const startDateTimestamp = new Date(startDate).getTime(); + const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`; + const endDateTimestamp = new Date(endDate).getTime(); + this.query.manufactureTime = [startDateTimestamp, endDateTimestamp]; }, initData() { this.listLoading = true; diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yyspackagereport/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yyspackagereport/index.vue index 6fc4b85..1dd9c85 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yyspackagereport/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yyspackagereport/index.vue @@ -418,6 +418,14 @@ export default { }, //初始化查询的默认数据 async initSearchData() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const startDate = `${year}-${month}-01 00:00:00`; + const startDateTimestamp = new Date(startDate).getTime(); + const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`; + const endDateTimestamp = new Date(endDate).getTime(); + this.query.manufactureTime = [startDateTimestamp, endDateTimestamp]; }, initData() { this.listLoading = true; diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysprodreport/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysprodreport/index.vue index a8667a3..e742bbe 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yysprodreport/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysprodreport/index.vue @@ -417,6 +417,14 @@ export default { }, //初始化查询的默认数据 async initSearchData() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const startDate = `${year}-${month}-01 00:00:00`; + const startDateTimestamp = new Date(startDate).getTime(); + const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`; + const endDateTimestamp = new Date(endDate).getTime(); + this.query.manufactureTime = [startDateTimestamp, endDateTimestamp]; }, initData() { this.listLoading = true; diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysrequisitionreport/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysrequisitionreport/index.vue index a211729..bd93c53 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yysrequisitionreport/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysrequisitionreport/index.vue @@ -377,6 +377,14 @@ export default { }, //初始化查询的默认数据 async initSearchData() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const startDate = `${year}-${month}-01 00:00:00`; + const startDateTimestamp = new Date(startDate).getTime(); + const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`; + const endDateTimestamp = new Date(endDate).getTime(); + this.query.manufactureTime = [startDateTimestamp, endDateTimestamp]; }, initData() { this.listLoading = true; diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yyssemifinished/index.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yyssemifinished/index.vue index be0cb1a..c9b595e 100644 --- a/jnpf-java-boot/jnpf-web/src/views/yys/yyssemifinished/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/yys/yyssemifinished/index.vue @@ -345,6 +345,14 @@ export default { }, //初始化查询的默认数据 async initSearchData() { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); + const startDate = `${year}-${month}-01 00:00:00`; + const startDateTimestamp = new Date(startDate).getTime(); + const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`; + const endDateTimestamp = new Date(endDate).getTime(); + this.query.manufactureTime = [startDateTimestamp, endDateTimestamp]; }, initData() { this.listLoading = true;