烟花爆竹实名登记前端
祖安之光
2026-03-17 6c65174e5f12e1b984e5f3d67c7d90b9d0417656
src/views/stock/enterpriseSale.vue
@@ -340,17 +340,17 @@
            },
            queryHandle: function () {
                this.currentPage = 1;
                const date1 = new Date(this.dateRange[0]);
                const date2 = new Date(this.dateRange[1]);
                const differenceInMs = Math.abs(date2 - date1);
                const differenceInDays = differenceInMs / (1000 * 60 * 60 * 24)
                if(differenceInDays > 32){
                    this.$message({
                        type: 'warning',
                        message: '时间跨度超过一个月的,请联系管理员查询数据'
                    })
                    return
                }
                // const date1 = new Date(this.dateRange[0]);
                // const date2 = new Date(this.dateRange[1]);
                // const differenceInMs = Math.abs(date2 - date1);
                // const differenceInDays = differenceInMs / (1000 * 60 * 60 * 24)
                // if(differenceInDays > 32){
                //     this.$message({
                //         type: 'warning',
                //         message: '时间跨度超过一个月的,请联系管理员查询数据'
                //     })
                //     return
                // }
                this.getSaleList();
            },
            handleSizeChange: function (val) {